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
See moregiven_nameandsurnameproperties.Declaration
Swift
@objc(PPCOrderPayerName) @objcMembers class Nameextension 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
See morephone.phone_numbersupports onlynational_number.Declaration
Swift
@objc(PPCOrderPayerPhone) @objcMembers class Phoneextension 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 moreDeclaration
Swift
@objc(PPCOrderPayerPhoneNumber) @objcMembers class PhoneNumberextension OrderPayer.PhoneNumber : CVarArg, CustomDebugStringConvertible, CustomStringConvertible, Decodable, Encodable, Equatable, Hashable, NSObjectProtocol -
The phone type.
See moreDeclaration
Swift
@objc(PPCOrderPayerPhoneType) enum PhoneTypeextension OrderPayer.PhoneType : CaseIterable, Equatable, Hashable, RawRepresentable -
The type of the Tax ID
See moreDeclaration
Swift
@objc(PPCOrderPayerTaxIdType) enum TaxIdTypeextension OrderPayer.TaxIdType : CaseIterable, Equatable, Hashable, RawRepresentable -
The tax information of the payer. Required only for Brazilian payer’s. Both
See moretax_idandtax_id_typeare required.Declaration
Swift
@objc(PPCOrderPayerTaxInfo) @objcMembers class TaxInfoextension 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, andcountry_codeproperties. 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_nameandsurnameproperties.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_numbersupports onlynational_number.Declaration
Swift
let phone: OrderPayer.Phone? -
The tax information of the payer. Required only for Brazilian payers. Both
tax_idandtax_id_typeare required.Declaration
Swift
let taxInfo: OrderPayer.TaxInfo?
View on GitHub
Install in Dash
OrderPayer Class Reference