OrderPayer

@objc(PPCOrderPayer)
@objcMembers
class OrderPayer
extension OrderPayer : CVarArg, CustomDebugStringConvertible, CustomStringConvertible, Decodable, Encodable, Equatable, Hashable, NSObjectProtocol

A class that represents the possible values to be passed as part of the payer object. Payer object documentation guide

  • The name of the payer. Supports only the given_name and surname properties.

    See more

    Declaration

    Swift

    @objc(PPCOrderPayerName)
    @objcMembers
    class Name
    extension OrderPayer.Name : CVarArg, CustomDebugStringConvertible, CustomStringConvertible, Decodable, Encodable, Equatable, Hashable, NSObjectProtocol
  • The phone number of the customer. Available only when you enable the Contact Telephone Number option in the Profile & Settings for the merchant’s PayPal account. The phone.phone_number supports only national_number.

    See more

    Declaration

    Swift

    @objc(PPCOrderPayerPhone)
    @objcMembers
    class Phone
    extension OrderPayer.Phone : CVarArg, CustomDebugStringConvertible, CustomStringConvertible, Decodable, Encodable, Equatable, Hashable, NSObjectProtocol
  • The phone number, in its canonical international E.164 numbering plan format. Supports only the national_number property.

    See more

    Declaration

    Swift

    @objc(PPCOrderPayerPhoneNumber)
    @objcMembers
    class PhoneNumber
    extension OrderPayer.PhoneNumber : CVarArg, CustomDebugStringConvertible, CustomStringConvertible, Decodable, Encodable, Equatable, Hashable, NSObjectProtocol
  • The phone type.

    See more

    Declaration

    Swift

    @objc(PPCOrderPayerPhoneType)
    enum PhoneType
    extension OrderPayer.PhoneType : CaseIterable, Equatable, Hashable, RawRepresentable
  • The type of the Tax ID

    See more

    Declaration

    Swift

    @objc(PPCOrderPayerTaxIdType)
    enum TaxIdType
    extension OrderPayer.TaxIdType : CaseIterable, Equatable, Hashable, RawRepresentable
  • The tax information of the payer. Required only for Brazilian payer’s. Both tax_id and tax_id_type are required.

    See more

    Declaration

    Swift

    @objc(PPCOrderPayerTaxInfo)
    @objcMembers
    class TaxInfo
    extension OrderPayer.TaxInfo : CVarArg, CustomDebugStringConvertible, CustomStringConvertible, Decodable, Encodable, Equatable, Hashable, NSObjectProtocol
  • The address of the payer. Supports only the address_line_1, address_line_2, admin_area_1, admin_area_2, postal_code, and country_code properties. Also referred to as the billing address of the customer.

    Declaration

    Swift

    let address: OrderAddress?
  • The birth date of the payer in YYYY-MM-DD format.

    Declaration

    Swift

    let birthDate: String?
  • The email address of the payer.

    Declaration

    Swift

    let emailAddress: String?
  • 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(name: OrderPayer.Name? = nil, emailAddress: String? = nil, payerId: String? = nil, phone: OrderPayer.Phone? = nil, birthDate: String? = nil, taxInfo: OrderPayer.TaxInfo? = nil, address: OrderAddress? = nil)
  • The name of the payer. Supports only the given_name and surname properties.

    Declaration

    Swift

    let name: OrderPayer.Name?
  • The PayPal-assigned ID for the payer.

    Declaration

    Swift

    let payerId: String?
  • The phone number of the customer. Available only when you enable the Contact Telephone Number option in the Profile & Settings for themerchant’s PayPal account. The phone.phone_number supports only national_number.

    Declaration

    Swift

    let phone: OrderPayer.Phone?
  • The tax information of the payer. Required only for Brazilian payers. Both tax_id and tax_id_type are required.

    Declaration

    Swift

    let taxInfo: OrderPayer.TaxInfo?