Phone
@objc(PPCOrderPayerPhone)
@objcMembers
class Phone
extension OrderPayer.Phone : 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
.
-
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
required init(from decoder: Decoder) throws
-
Undocumented
Declaration
Swift
init(phoneNumber: OrderPayer.PhoneNumber, phoneType: OrderPayer.PhoneType = .none)
-
The phone number, in its canonical international E.164 numbering plan format. Supports only the national_number property.
Declaration
Swift
let phoneNumber: OrderPayer.PhoneNumber
-
The phone type.
Declaration
Swift
let phoneType: OrderPayer.PhoneType