ShippingDetails constructor

const ShippingDetails({
  1. @Default(ShippingDetailsAddress()) ShippingDetailsAddress address,
  2. String? carrier,
  3. String? name,
  4. String? phone,
  5. @JsonKey(name: 'tracking_number') String? trackingNumber,
})

Implementation

const factory ShippingDetails({
  /// Shipping address.
  @Default(ShippingDetailsAddress()) ShippingDetailsAddress address,

  /// The delivery service that shipped a physical product,
  /// such as Fedex, UPS, USPS, etc.
  String? carrier,

  /// Recipient name.

  String? name,

  /// Recipient phone (including extension).

  String? phone,

  /// The tracking number for a physical product, obtained from the
  /// delivery service. If multiple tracking numbers were
  /// generated for this purchase, please separate them with commas.
  @JsonKey(name: 'tracking_number') String? trackingNumber,
}) = _PaymentElementChangeEvent;