ApplePayPresentParams constructor
Implementation
@JsonSerializable(explicitToJson: true)
const factory ApplePayPresentParams({
/// Line Items of the payment request.
required List<ApplePayCartSummaryItem> cartItems,
/// The two letter ISO 3166 country code representing the merchant.
required String country,
/// The three letter ISO 4217 code for the currency.
required String currency,
/// Fields that will be shown on the required shipping address section. If
/// empty no fields will be displayed.
List<ApplePayContactFieldsType>? requiredShippingAddressFields,
/// Fields that will be shown on the required billing address section. If
/// empty no fields will be displayed.
List<ApplePayContactFieldsType>? requiredBillingContactFields,
/// List of available shipping methods for goods.
List<ApplePayShippingMethod>? shippingMethods,
/// Add support for jcb as additional payment method.
@Default(false) bool jcbEnabled,
}) = _ApplePayPresentParams;