ShippingPreference

@objc(PPCOrderApplicationContextShippingPreference)
enum ShippingPreference
extension OrderApplicationContext.ShippingPreference : Equatable, Hashable, RawRepresentable

Shipping preference set by the merchant. Affects the ability of the payer to change their shipping information within the PayPal SDK

  • Use the customer-provided shipping address on the PayPal site.

    Declaration

    Swift

    case getFromFile
  • Creates a new instance with the specified raw value.

    If there is no value of the type that corresponds with the specified raw value, this initializer returns nil. For example:

    enum PaperSize: String {
        case A4, A5, Letter, Legal
    }
    
    print(PaperSize(rawValue: "Legal"))
    // Prints "Optional("PaperSize.Legal")"
    
    print(PaperSize(rawValue: "Tabloid"))
    // Prints "nil"
    

    Declaration

    Swift

    init?(rawValue: Int)
  • Redact the shipping address from the PayPal site. Recommended for digital goods.

    Declaration

    Swift

    case noShipping
  • Undocumented

    Declaration

    Swift

    case none
  • Use the merchant-provided address. The customer cannot change this address on the PayPal site.

    Declaration

    Swift

    case setProvidedAddress