AlCards
public final class AlCards : Sendable
SDK Initialization object.
-
AlCardsobject instance.Declaration
Swift
public static let shared: AlCards
-
createCard(token:AsynchronouswalletUuid: data: ) Creates a card.
Declaration
Swift
public func createCard( token: String, walletUuid: String, data: CardRequest ) async throws(ALEventError) -> CardParameters
tokenThe token to authenticate the SDK.
walletUuidThe uuid of the wallet.
dataA
CardRequestdata model.Return Value
A
Card. -
Creates a card.
Declaration
Swift
public func createNonReloadablePrepaidCard( token: String, accountUuid: String, data: NonReloadablePrepaidCardRequest ) async throws(ALEventError) -> CardParameters
tokenThe token to authenticate the SDK.
accountUuidThe uuid of the account.
dataA
NonReloadablePrepaidCardRequestdata model.Return Value
A
Card. -
getCard(token:AsynchronouswalletUuid: cardUuid: ) -
getCardImage(token:AsynchronouswalletUuid: cardUuid: ) Gets a card image.
Declaration
Swift
public func getCardImage( token: String, walletUuid: String, cardUuid: String ) async throws(ALEventError) -> UIImageParameters
tokenThe token to authenticate the SDK.
walletUuidThe uuid of the wallet.
cardUuidThe uuid of the card.
Return Value
A
UIImage. -
getCardSensitiveData(token:AsynchronouswalletUuid: cardUuid: ) Gets a card sensitive data.
Declaration
Swift
public func getCardSensitiveData( token: String, walletUuid: String, cardUuid: String ) async throws(ALEventError) -> CardSensitiveDataParameters
tokenThe token to authenticate the SDK.
walletUuidThe uuid of the wallet.
cardUuidThe uuid of the card.
Return Value
-
listCards(token:AsynchronouswalletUuid: ) -
setCardState(token:AsynchronouswalletUuid: cardUuid: state: ) Sets a card’s state.
Declaration
Swift
public func setCardState( token: String, walletUuid: String, cardUuid: String, state: CardState ) async throws(ALEventError)Parameters
tokenThe token to authenticate the SDK.
walletUuidThe uuid of the wallet.
cardUuidThe uuid of the card.
stateThe
CardStateoption. -
updateCard(token:AsynchronouswalletUuid: cardUuid: data: ) Updates a card.
Declaration
Swift
public func updateCard( token: String, walletUuid: String, cardUuid: String, data: UpdateCardRequest ) async throws(ALEventError) -> CardParameters
tokenThe token to authenticate the SDK.
walletUuidThe uuid of the wallet.
cardUuidThe uuid of the card.
dataA
UpdateCardRequestdata model.Return Value
A
Card. -
cancelCard(token:AsynchronouswalletUuid: cardUuid: ) Cancels a card.
Declaration
Swift
public func cancelCard( token: String, walletUuid: String, cardUuid: String ) async throws(ALEventError)Parameters
tokenThe token to authenticate the SDK.
walletUuidThe uuid of the wallet.
cardUuidThe uuid of the card.
-
activateCard(token:AsynchronouswalletUuid: cardUuid: data: ) Activates a card.
Declaration
Swift
public func activateCard( token: String, walletUuid: String, cardUuid: String, data: ActivateCardRequest ) async throws(ALEventError)Parameters
tokenThe token to authenticate the SDK.
walletUuidThe uuid of the wallet.
cardUuidThe uuid of the card.
dataActivateCardRequestdata model. -
setCardPin(token:AsynchronouscardUuid: data: ) Sets a card pin.
Declaration
Swift
public func setCardPin( token: String, cardUuid: String, data: SetCardPinRequest ) async throws(ALEventError)Parameters
tokenThe token to authenticate the SDK.
cardUuidThe uuid of the card.
dataSetCardPinRequestdata model. -
reissueOrReplaceCard(token:AsynchronouscardUuid: data: ) Reissue or replace a card.
Declaration
Swift
public func reissueOrReplaceCard( token: String, cardUuid: String, data: ReissueReplaceCardRequest ) async throws(ALEventError) -> CardParameters
tokenThe token to authenticate the SDK.
cardUuidThe uuid of the card.
dataReissueReplaceCardRequestdata model.Return Value
A
Card.
-
getIncentive(token:AsynchronousruleUuid: ) Gets an incentive.
Declaration
Swift
public func getIncentive( token: String, ruleUuid: String ) async throws(ALEventError) -> IncentiveRuleParameters
tokenThe token to authenticate the SDK.
ruleUuidThe uuid of the rule.
Return Value
-
listIncentives(token:Asynchronousquery: ) Lists incentives.
Declaration
Swift
public func listIncentives( token: String, query: IncentivesQuery? ) async throws(ALEventError) -> [IncentiveRule]Parameters
tokenThe token to authenticate the SDK.
queryThe query.
Return Value
A
IncentiveRulelist. -
UI.
See moreDeclaration
Swift
final class UserInterface : Sendable -
UIobject instance.Declaration
Swift
static let userInterface: UserInterface
View on GitHub