Shipping

@objc(PPCPurchaseUnitShipping)
@objcMembers
class Shipping
extension PurchaseUnit.Shipping : CVarArg, CustomDebugStringConvertible, CustomStringConvertible, Decodable, Encodable, Equatable, Hashable, NSObjectProtocol

The name and address of the person to whom to ship the items.

  • The address of the person to whom to ship the items. Supports only the address_line_1, address_line_2, admin_area_1, admin_area_2, postal_code, and country_code properties.

    Declaration

    Swift

    let address: OrderAddress?
  • Creates a new instance by decoding from the given decoder.

    This initializer throws an error if reading from the decoder fails, or if the data read is corrupted or otherwise invalid.

    Declaration

    Swift

    init(from decoder: Decoder) throws
  • Undocumented

    Declaration

    Swift

    init(shippingName: PurchaseUnit.ShippingName? = nil, address: OrderAddress? = nil, options: [ShippingMethod]? = nil)
  • All available shipping options for an order

    Declaration

    Swift

    let options: [ShippingMethod]?
  • The name of the person to whom to ship the items. Supports only the full_name property.

    Declaration

    Swift

    let shippingName: PurchaseUnit.ShippingName?