AlCards
public final class AlCards : Sendable
SDK Initialization object.
-
AlCards
object 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) -> Card
Parameters
token
The token to authenticate the SDK.
walletUuid
The uuid of the wallet.
data
A
CardRequest
data model.Return Value
A
Card
. -
Creates a card.
Declaration
Swift
public func createNonReloadablePrepaidCard( token: String, accountUuid: String, data: NonReloadablePrepaidCardRequest ) async throws(ALEventError) -> Card
Parameters
token
The token to authenticate the SDK.
accountUuid
The uuid of the account.
data
A
NonReloadablePrepaidCardRequest
data 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) -> UIImage
Parameters
token
The token to authenticate the SDK.
walletUuid
The uuid of the wallet.
cardUuid
The 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) -> CardSensitiveData
Parameters
token
The token to authenticate the SDK.
walletUuid
The uuid of the wallet.
cardUuid
The 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
token
The token to authenticate the SDK.
walletUuid
The uuid of the wallet.
cardUuid
The uuid of the card.
state
The
CardState
option. -
updateCard(token:
AsynchronouswalletUuid: cardUuid: data: ) Updates a card.
Declaration
Swift
public func updateCard( token: String, walletUuid: String, cardUuid: String, data: UpdateCardRequest ) async throws(ALEventError) -> Card
Parameters
token
The token to authenticate the SDK.
walletUuid
The uuid of the wallet.
cardUuid
The uuid of the card.
data
A
UpdateCardRequest
data 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
token
The token to authenticate the SDK.
walletUuid
The uuid of the wallet.
cardUuid
The 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
token
The token to authenticate the SDK.
walletUuid
The uuid of the wallet.
cardUuid
The uuid of the card.
data
ActivateCardRequest
data model. -
setCardPin(token:
AsynchronouscardUuid: data: ) Sets a card pin.
Declaration
Swift
public func setCardPin( token: String, cardUuid: String, data: SetCardPinRequest ) async throws(ALEventError)
Parameters
token
The token to authenticate the SDK.
cardUuid
The uuid of the card.
data
SetCardPinRequest
data model. -
reissueOrReplaceCard(token:
AsynchronouscardUuid: data: ) Reissue or replace a card.
Declaration
Swift
public func reissueOrReplaceCard( token: String, cardUuid: String, data: ReissueReplaceCardRequest ) async throws(ALEventError) -> Card
Parameters
token
The token to authenticate the SDK.
cardUuid
The uuid of the card.
data
ReissueReplaceCardRequest
data model.Return Value
A
Card
.
-
getIncentive(token:
AsynchronousruleUuid: ) Gets an incentive.
Declaration
Swift
public func getIncentive( token: String, ruleUuid: String ) async throws(ALEventError) -> IncentiveRule
Parameters
token
The token to authenticate the SDK.
ruleUuid
The 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
token
The token to authenticate the SDK.
query
The query.
Return Value
A
IncentiveRule
list. -
UI.
See moreDeclaration
Swift
final class UserInterface : Sendable
-
UI
object instance.Declaration
Swift
static let userInterface: UserInterface