WalletProvisioningRepositoryProtocol
public protocol WalletProvisioningRepositoryProtocol
A protocol for managing wallet provisioning operations.
-
Creates a wallet provisioning for the specified wallet ID.
Declaration
Swift
func createWalletProvisioning(walletId: String, payload: CreateWalletProvisioningPayload) -> AnyPublisher<Provisioning, NetworkError>
Parameters
walletId
The ID of the wallet for which to create the provisioning.
payload
The payload containing the details of the provisioning.
Return Value
A publisher that emits the created
Provisioning
or an error of typeNetworkError
. -
Retrieves the wallet provisioning with the specified ID for the given wallet.
Declaration
Swift
func fetchWalletProvisioning(walletId: String, provisioningId: String) -> AnyPublisher<Provisioning, NetworkError>
Parameters
walletId
The ID of the wallet.
provisioningId
The ID of the provisioning to retrieve.
Return Value
A publisher that emits the retrieved
Provisioning
or an error of typeNetworkError
. -
Retrieves all wallet provisionings for the specified wallet.
Declaration
Swift
func fetchWalletProvisionings(walletId: String) -> AnyPublisher<AllProvisioningsResponse, NetworkError>
Parameters
walletId
The ID of the wallet.
Return Value
A publisher that emits the retrieved
AllProvisioningsResponse
or an error of typeNetworkError
.