TaxInfo

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

The tax information of the payer. Required only for Brazilian payer’s. Both tax_id and tax_id_type are required.

  • 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(taxId: String, taxIdType: OrderPayer.TaxIdType)
  • The customer’s tax ID. Supported for the PayPal payment method only. Typically, the tax ID is 11 characters long for individuals and 14 characters long for businesses.

    • Maximum length: 14

    Declaration

    Swift

    let taxId: String
  • The customer’s tax ID type. Supported for the PayPal payment method only.

    Declaration

    Swift

    let taxIdType: OrderPayer.TaxIdType