WalletProvisioningService
public struct WalletProvisioningService : WalletProvisioningServicing
A service implementation for managing wallet provisioning operations.
-
Initializes a new
WalletProvisioningService
instance.Declaration
Swift
public init(repository: WalletProvisioningRepositoryProtocol)
Parameters
repository
The repository for wallet provisioning operations.
-
Creates a new wallet provisioning.
Declaration
Swift
@MainActor public func createWalletProvisioning( walletId: String, payload: CreateWalletProvisioningPayload, response: LoadableSubject<Provisioning> )
Parameters
walletId
The ID of the wallet.
payload
The payload for creating the wallet provisioning.
response
The loadable subject to track the response. The loadable subject tracks the state of the wallet provisioning creation operation, representing the success state with the created
Provisioning
value or the failure state with the associatedNetworkError
. -
Retrieves the wallet provisioning with the specified ID.
Declaration
Swift
@MainActor public func fetchWalletProvisioning( walletId: String, provisioningId: String, response: LoadableSubject<Provisioning> )
Parameters
walletId
The ID of the wallet to retrieve.
provisioningId
The ID of the provisioning.
response
The loadable subject to track the response. The loadable subject tracks the state of the wallet provisioning retrieval operation, representing the success state with the loaded
Provisioning
value or the failure state with the associatedNetworkError
. -
Retrieves all wallet provisionings associated with the specified wallet ID.
Declaration
Swift
@MainActor public func fetchWalletProvisionings( walletId: String, response: LoadableSubject<AllProvisioningsResponse> )
Parameters
walletId
The ID of the wallet.
response
The loadable subject to track the response. The loadable subject tracks the state of the wallet provisionings retrieval operation, representing the success state with the loaded
AllProvisioningsResponse
value or the failure state with the associatedNetworkError
.