ReplenishmentService

public final actor ReplenishmentService

A class to manage the replenishment service.

  • Constructor to initialize ReplenishmentService.

    Declaration

    Swift

    public init()
  • 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:

    Declaration

    Swift

    public func replenish(digitalCardID: String, isForced: Bool = false) async throws

    Parameters

    digitalCardID

    Digital card ID to replenish.

    isForced

    Force sending request to server even if replenishment is not needed for the card.

  • Replenishment errors.

    See more

    Declaration

    Swift

    public enum Error : Swift.Error