Wallet
public struct Wallet : Codable, Identifiable, Equatable
A struct representing a wallet.
-
The unique identifier of the wallet.
Declaration
Swift
public let id: String
-
The consumer ID associated with the wallet.
Declaration
Swift
public let consumerId: String
-
The Host info associated with the wallet.
Declaration
Swift
public let host: Host
-
The public key of the wallet.
Declaration
Swift
public let walletPublicKey: PublicKey
-
HAL links associated with the wallet.
Declaration
Swift
public let links: WalletLinks?
-
The payment means embedded within the wallet.
Declaration
Swift
public let embedded: PaymentMeans?
-
Initializes a new instance of Wallet.
Declaration
Swift
public init( id: String, consumerId: String, host: Host, walletPublicKey: PublicKey, links: WalletLinks? = nil, embedded: PaymentMeans? = nil )
Parameters
id
The unique identifier of the wallet.
consumerId
The consumer ID associated with the wallet.
host
The Host information associated with the wallet.
walletPublicKey
The public key of the wallet.
links
HAL links associated with the wallet.
embedded
The payment means embedded within the wallet.
-
Returns the account name associated with the specified payment source ID.
Declaration
Swift
func accountName(_ paymentSourceId: String) -> String?
Parameters
paymentSourceId
The payment source ID.
Return Value
The account name, or
nil
if not found. -
HAL links associated with the wallet.
Declaration
Swift
struct WalletLinks : Codable, Equatable, Hashable
-
Host information associated with the wallet.
See moreDeclaration
Swift
struct Host : Codable, Equatable
-
Device information associated with the wallet.
See moreDeclaration
Swift
struct Device : Codable, Equatable
-
App information associated with the wallet.
See moreDeclaration
Swift
struct App : Codable, Equatable