Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
super params
  • Loading branch information
jmagman committed Feb 16, 2023
commit 8fe4a46fa76f759dedd9989efcc8b000a679416d
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,15 @@ class AppStoreProductDetails extends ProductDetails {
/// Creates a new AppStore specific product details object with the provided
/// details.
AppStoreProductDetails({
required String id,
required String title,
required String description,
required String price,
required double rawPrice,
required String currencyCode,
required super.id,
required super.title,
required super.description,
required super.price,
required super.rawPrice,
required super.currencyCode,
required this.skProduct,
required String currencySymbol,
}) : super(
id: id,
title: title,
description: description,
price: price,
rawPrice: rawPrice,
currencyCode: currencyCode,
currencySymbol: currencySymbol,
);
required super.currencySymbol,
});

/// Generate a [AppStoreProductDetails] object based on an iOS [SKProductWrapper] object.
factory AppStoreProductDetails.fromSKProduct(SKProductWrapper product) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,15 @@ import '../store_kit_wrappers/enum_converters.dart';
class AppStorePurchaseDetails extends PurchaseDetails {
/// Creates a new AppStore specific purchase details object with the provided
/// details.
AppStorePurchaseDetails(
{String? purchaseID,
required String productID,
required PurchaseVerificationData verificationData,
required String? transactionDate,
required this.skPaymentTransaction,
required PurchaseStatus status})
AppStorePurchaseDetails({
super.purchaseID,
required super.productID,
required super.verificationData,
required super.transactionDate,
required this.skPaymentTransaction,
required PurchaseStatus status,
})
: super(
productID: productID,
purchaseID: purchaseID,
transactionDate: transactionDate,
verificationData: verificationData,
status: status) {
this.status = status;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,12 @@ import '../../store_kit_wrappers.dart';
class AppStorePurchaseParam extends PurchaseParam {
/// Creates a new [AppStorePurchaseParam] object with the given data.
AppStorePurchaseParam({
required ProductDetails productDetails,
String? applicationUserName,
required super.productDetails,
super.applicationUserName,
this.quantity = 1,
this.simulatesAskToBuyInSandbox = false,
this.discount,
}) : super(
productDetails: productDetails,
applicationUserName: applicationUserName,
);
});

/// Set it to `true` to produce an "ask to buy" flow for this payment in the
/// sandbox.
Expand Down