ReplenishmentService
public final actor ReplenishmentService
A class to manage the replenishment service.
-
Constructor to initialize
ReplenishmentService.Declaration
Swift
public init() -
replenish(digitalCardID:AsynchronousisForced: ) Request pull-mode request to replenish the card.
When the card is out of credentials, then application may need to ask for credentials to server to continue to the payments.
After this request, CPS server will send a push for the credentials.Throws:
networkErrorif there is a network connectivity error or connection timeout.serverError(_:)if there is any server error or communication error.missingWalletSecureEnrollmentif the wallet secure enrollment is not performed.deviceEnvironmentUnsafe(_:)if device environment is unsafe.- Else,
unknown(_:)if an unexpected error encountered.
Declaration
Swift
public func replenish(digitalCardID: String, isForced: Bool = false) async throwsParameters
digitalCardIDDigital card ID to replenish.
isForcedForce sending request to server even if replenishment is not needed for the card.
-
Replenishment errors.
See moreDeclaration
Swift
public enum Error : Swift.Error
ReplenishmentService Actor Reference