ApplePayShippingMethod constructor
- @JsonSerializable(explicitToJson: true)
const
ApplePayShippingMethod(
{ - required String label,
- required String amount,
- required String identifier,
- bool? isPending,
- String? detail,
- int? startDate,
- int? endDate,
})
Implementation
@JsonSerializable(explicitToJson: true)
const factory ApplePayShippingMethod({
/// A short, localized description.
required String label,
/// The cost associated with this shipping option.
required String amount,
/// A unique identifier for the shipping method.
required String identifier,
/// When creating items for estimates or charges whose final value is not yet known, set this to true.
///
/// Defaults to false.
bool? isPending,
/// A user-readable description of the shipping method.
///
/// For example “Ships in 24 hours.” Don't repeat content
String? detail,
/// The unix timestamp of the start date of the expected range of delivery or shipping dates for a package, or the time range when an item is available for pickup.
///
/// Measured in seconds
int? startDate,
/// The unix timestamp of the end date of the expected range of delivery or shipping dates for a package, or the time range when an item is available for pickup.
///
/// Measured in seconds.
int? endDate,
}) = _ApplePayShippingMethod;