Payment

public struct Payment
extension Payment: Decodable

Struct for payment response

  • An initializer for a Payment structure

    Declaration

    Swift

    public init(paidAt: String,
                recipient: String,
                iban: String,
                bic: String? = nil,
                amount: String,
                purpose: String,
                links: PaymentLinks? = nil)

    Parameters

    paidAt

    ISO 8601 date string defining point in time when the payment request was resolved.

    recipient

    the recipient of the payment.

    iban

    the iban (international bank account number) of the payment recipient.

    bic

    the bic (bank identifier code) for the payment.

    purpose

    the purpose of the payment, e.g. the invoice or customer identifier.

    links

    object with links to other resources e.g. document and paymentRequest.

  • Undocumented

    Declaration

    Swift

    public var paidAt: String
  • Undocumented

    Declaration

    Swift

    public var recipient: String
  • Undocumented

    Declaration

    Swift

    public var iban: String
  • bic

    Undocumented

    Declaration

    Swift

    public var bic: String?
  • Undocumented

    Declaration

    Swift

    public var amount: String
  • Undocumented

    Declaration

    Swift

    public var purpose: String
  • Declaration

    Swift

    public init(from decoder: Decoder) throws