PaymentSource

public struct PaymentSource : Decodable, Identifiable, Equatable, Hashable

Represents a payment source.

  • id

    The identifier of the payment source.

    Declaration

    Swift

    public let id: String
  • The type of the payment source.

    Declaration

    Swift

    public let type: String
  • The external identifier of the payment source.

    Declaration

    Swift

    public let externalId: String
  • The consumer PSP identifier.

    Declaration

    Swift

    public let consumerPspId: String
  • The IBAN associated with the payment source.

    Declaration

    Swift

    public let iban: String
  • Initializes a payment source with the provided properties.

    Declaration

    Swift

    public init(
        id: String,
        type: String,
        externalId: String,
        consumerPspId: String,
        iban: String
    )

    Parameters

    id

    The identifier of the payment source.

    type

    The type of the payment source.

    externalId

    The external identifier of the payment source.

    consumerPspId

    The consumer PSP identifier.

    iban

    The IBAN associated with the payment source.

  • A stub instance of PaymentSource for testing purposes.

    Declaration

    Swift

    static let stub: PaymentSource