Async
public class Async
Async bindings.
-
createCard(token:
AsynchronouswalletUuid: data: ) Creates a card.
Declaration
Swift
public func createCard( token: String, walletUuid: String, data: CardRequest) async throws -> Card
Parameters
token
The token to authenticate the SDK.
walletUuid
The uuid of the wallet.
data
A
CardRequest
data model.Return Value
A
Card
object. -
Creates a card.
Declaration
Swift
public func createNonReloadablePrepaidCard( token: String, accountUuid: String, data: NonReloadablePrepaidCardRequest) async throws -> Card
Parameters
token
The token to authenticate the SDK.
accountUuid
The uuid of the account.
data
A
NonReloadablePrepaidCardRequest
data model.Return Value
A
Card
object. -
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 -> 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
object. -
getCardSensitiveData(token:
AsynchronouswalletUuid: cardUuid: ) Gets a card sensitive data.
Declaration
Swift
public func getCardSensitiveData( token: String, walletUuid: String, cardUuid: String) async throws -> CardSensitiveData
Parameters
token
The token to authenticate the SDK.
walletUuid
The uuid of the wallet.
cardUuid
The uuid of the card.
Return Value
A
CardSensitiveData
object. -
listCards(token:
AsynchronouswalletUuid: ) -
setCardState(token:
AsynchronouswalletUuid: cardUuid: state: ) -
updateCard(token:
AsynchronouswalletUuid: cardUuid: data: ) Updates a card.
Declaration
Swift
public func updateCard( token: String, walletUuid: String, cardUuid: String, data: UpdateCardRequest) async throws -> 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
object. -
cancelCard(token:
AsynchronouswalletUuid: cardUuid: ) Cancels a card.
Declaration
Swift
public func cancelCard( token: String, walletUuid: String, cardUuid: String) async throws -> Bool
Parameters
token
The token to authenticate the SDK.
walletUuid
The uuid of the wallet.
cardUuid
The uuid of the card.
Return Value
True
if successful. -
activateCard(token:
AsynchronouswalletUuid: cardUuid: data: ) Activates a card.
Declaration
Swift
public func activateCard( token: String, walletUuid: String, cardUuid: String, data: ActivateCardRequest) async throws -> Bool
Parameters
token
The token to authenticate the SDK.
walletUuid
The uuid of the wallet.
cardUuid
The uuid of the card.
data
ActivateCardRequest
data model.Return Value
True
if successful. -
setCardPin(token:
AsynchronouscardUuid: data: ) Sets a card pin.
Declaration
Swift
public func setCardPin( token: String, cardUuid: String, data: SetCardPinRequest) async throws -> Bool
Parameters
token
The token to authenticate the SDK.
cardUuid
The uuid of the card.
data
SetCardPinRequest
data model.Return Value
True
if successful. -
reissueOrReplaceCard(token:
AsynchronouscardUuid: data: ) Reissue or replace a card.
Declaration
Swift
public func reissueOrReplaceCard( token: String, cardUuid: String, data: ReissueReplaceCardRequest) async throws -> Card
Parameters
token
The token to authenticate the SDK.
cardUuid
The uuid of the card.
data
ReissueReplaceCardRequest
data model.Return Value
A
Card
object.
-
getIncentive(token:
AsynchronousruleUuid: ) Gets incentive.
Declaration
Swift
public func getIncentive( token: String, ruleUuid: String) async throws -> IncentiveRule
Parameters
token
The token to authenticate the SDK.
ruleUuid
The uuid of the rule.
Return Value
A
IncentiveRule
object. -
listIncentives(token:
Asynchronousquery: ) Lists incentives.
Declaration
Swift
public func listIncentives( token: String, query: IncentivesQuery?) async throws -> [IncentiveRule]
Parameters
token
The token to authenticate the SDK.
query
The query.
Return Value
A
IncentiveRule
array.