PaymentMean

public struct PaymentMean : Codable, Identifiable, Equatable, Hashable

Represents a payment mean.

  • id

    The identifier of the payment mean.

    Declaration

    Swift

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

    Declaration

    Swift

    public let paymentSourceId: String
  • The external ID of the payment mean.

    Declaration

    Swift

    public let externalId: String
  • The consumer PSP ID.

    Declaration

    Swift

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

    Declaration

    Swift

    public let paymentSourceType: String
  • The display name of the payment source.

    Declaration

    Swift

    public let paymentSourceDisplayName: String
  • The display digits of the payment source.

    Declaration

    Swift

    public let paymentSourceDisplayDigits: String
  • The public key associated with the payment mean.

    Declaration

    Swift

    public let publicKey: PublicKey
  • The embedded objects associated with the payment mean.

    Declaration

    Swift

    public let embedded: Embedded?
  • Initializes a payment mean with the provided properties.

    Declaration

    Swift

    public init(
        id: String,
        paymentSourceId: String,
        externalId: String,
        consumerPspId: String,
        paymentSourceType: String,
        paymentSourceDisplayName: String,
        paymentSourceDisplayDigits: String,
        publicKey: PublicKey,
        embedded: Embedded? = nil
    )

    Parameters

    id

    The identifier of the payment mean.

    paymentSourceId

    The identifier of the associated payment source.

    externalId

    The external identifier of the payment mean.

    consumerPspId

    The consumer PSP identifier.

    paymentSourceType

    The type of the payment source.

    paymentSourceDisplayName

    The display name of the payment source.

    paymentSourceDisplayDigits

    The display digits of the payment source.

    publicKey

    The public key associated with the payment mean.

    embedded

    The embedded objects associated with the payment mean.

  • Represents the embedded objects associated with a payment mean.

    See more

    Declaration

    Swift

    struct Embedded : Codable, Equatable, Hashable
  • A stub instance of PaymentMean for testing purposes.

    Declaration

    Swift

    static let stub: PaymentMean