PaymentMean
public struct PaymentMean : Codable, Identifiable, Equatable, Hashable
Represents a payment mean.
-
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?
-
init(id:
paymentSourceId: externalId: consumerPspId: paymentSourceType: paymentSourceDisplayName: paymentSourceDisplayDigits: publicKey: embedded: ) Initializes a payment mean with the provided properties.
Declaration
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 moreDeclaration
Swift
struct Embedded : Codable, Equatable, Hashable
-
A stub instance of
PaymentMean
for testing purposes.Declaration
Swift
static let stub: PaymentMean