Async

public class Async

Async bindings.

Cards

  • 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

    Return Value

    A Card object.

  • Gets a card.

    Declaration

    Swift

    public func getCard(
        token: String,
        walletUuid: String,
        cardUuid: String)
    async throws -> Card

    Parameters

    token

    The token to authenticate the SDK.

    walletUuid

    The uuid of the wallet.

    cardUuid

    The uuid of the card.

    Return Value

    A Card object.

  • 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.

  • 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.

  • Lists cards.

    Declaration

    Swift

    public func listCards(
        token: String,
        walletUuid: String)
    async throws -> [Card]

    Parameters

    token

    The token to authenticate the SDK.

    walletUuid

    The uuid of the wallet.

    Return Value

    A Card array.

  • Sets a card’s state.

    Declaration

    Swift

    public func setCardState(
        token: String,
        walletUuid: String,
        cardUuid: String,
        state: CardState)
    async throws -> CardState

    Parameters

    token

    The token to authenticate the SDK.

    walletUuid

    The uuid of the wallet.

    cardUuid

    The uuid of the card.

    state

    The CardState option.

    Return Value

    A CardState case.

  • 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.

  • 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.

  • 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.

  • 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.

  • 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

    Return Value

    A Card object.

Incentives