AlCards

public final class AlCards : Sendable

SDK Initialization object.

  • AlCards object instance.

    Declaration

    Swift

    public static let shared: AlCards

Cards

  • 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

    Return Value

    A Card.

  • Gets a card.

    Declaration

    Swift

    public func getCard(
        token: String,
        walletUuid: String,
        cardUuid: String
    ) async throws(ALEventError) -> 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.

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

  • 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

    A CardSensitiveData.

  • Lists cards.

    Declaration

    Swift

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

    Parameters

    token

    The token to authenticate the SDK.

    walletUuid

    The uuid of the wallet.

    Return Value

    A Card list.

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

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

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

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

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

  • 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

    Return Value

    A Card.

Incentives