ApplePayCartSummaryItem.deferred constructor
- @JsonSerializable(explicitToJson: true)
- @FreezedUnionValue('Deferred')
Use this type for a payment that occurs in the future, such as a pre-order. Only available on iOS 15 and up, otherwise falls back to ImmediateCartSummaryItem
Implementation
@JsonSerializable(explicitToJson: true)
@FreezedUnionValue('Deferred')
/// Use this type for a payment that occurs in the future, such as a pre-order. Only available on iOS 15 and up, otherwise falls back to ImmediateCartSummaryItem
const factory ApplePayCartSummaryItem.deferred({
/// Short localized description of the item.
required String label,
/// The monetary amount.
required String amount,
/// The unix timestamp of the date, in the future, of the payment. Measured in seconds.
required int deferredDate,
}) = DeferredSummaryItem;