PhoneNumber

@objc(PPCOrderPayerPhoneNumber)
@objcMembers
class PhoneNumber
extension OrderPayer.PhoneNumber : 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.

  • 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(nationalNumber: String)
  • The national number, in its canonical international E.164 numbering plan format. The combined length of the country calling code (CC) and the national number must not be greater than 15 digits. The national number consists of a national destination code (NDC) and subscriber number (SN).

    • Minimum length: 1
    • Maximum length: 14
    • Pattern: ^[0-9]{1,14}?$

    Declaration

    Swift

    let nationalNumber: String