ODARenewalService
public final actor ODARenewalService
This service is used to perform the ODA certificate renewal in the card.
-
The ODA renewal service error.
See moreDeclaration
Swift
public enum Error : Swift.Error, Sendable -
Initializes the ODA renewal service.
Declaration
Swift
public init() -
renewIfNeeded(digitalCardID:AsynchronousisForced: ) Renews the digital card if a renewal is needed.
Throws:
digitalCardNotFound(digitalCardID:)if no digital card is found for the identifier provided.digitalCardNotEnrolledif CPS is not enrolled.serverError(_:)if the renewal operation fails due to an unsuccessful response.
Declaration
Swift
public func renewIfNeeded(digitalCardID: String, isForced: Bool = false) async throwsParameters
digitalCardIDThe identifiers of the digital card to be renewed.
isForcedA force request is sent to the server even if a renewal is not required for the card.
ODARenewalService Actor Reference