AlCards

public final class AlCards

SDK Initialization object.

  • AlCards object instance.

    Declaration

    Swift

    public static let shared: AlCards
  • Futures object instance.

    Declaration

    Swift

    public private(set) lazy var combine: Futures { get set }
  • Async object instance.

    Declaration

    Swift

    public private(set) lazy var async: Async { get set }

Cards

Digital Card

Incentives

Cards

  • Creates a card.

    Declaration

    Swift

    func createCard(
        token: String,
        walletUuid: String,
        data: CardRequest,
        completion: @escaping (Result<Card, EventError>) -> Void)

    Parameters

    token

    The token to authenticate the SDK.

    walletUuid

    The uuid of the wallet.

    data

    A CardRequest data model.

    completion

    Called when the call was completed.

  • Creates a card.

    Declaration

    Swift

    func createNonReloadablePrepaidCard(
        token: String,
        accountUuid: String,
        data: NonReloadablePrepaidCardRequest,
        completion: @escaping (Result<Card, EventError>) -> Void)

    Parameters

    token

    The token to authenticate the SDK.

    accountUuid

    The uuid of the account.

    data
    completion

    Called when the call was completed.

  • Gets a card.

    Declaration

    Swift

    func getCard(
        token: String,
        walletUuid: String,
        cardUuid: String,
        completion: @escaping (Result<Card, EventError>) -> Void)

    Parameters

    token

    The token to authenticate the SDK.

    walletUuid

    The uuid of the wallet.

    cardUuid

    The uuid of the card.

    completion

    Called when the call was completed.

  • Gets a card image.

    Declaration

    Swift

    func getCardImage(
        token: String,
        walletUuid: String,
        cardUuid: String,
        completion: @escaping (Result<UIImage, EventError>) -> Void)

    Parameters

    token

    The token to authenticate the SDK.

    walletUuid

    The uuid of the wallet.

    cardUuid

    The uuid of the card.

    completion

    Called when the call was completed.

  • Gets a card sensitive data.

    Declaration

    Swift

    func getCardSensitiveData(
        token: String,
        walletUuid: String,
        cardUuid: String,
        completion: @escaping (Result<CardSensitiveData, EventError>) -> Void)

    Parameters

    token

    The token to authenticate the SDK.

    walletUuid

    The uuid of the wallet.

    cardUuid

    The uuid of the card.

    completion

    Called when the call was completed.

  • Lists cards.

    Declaration

    Swift

    func listCards(
        token: String,
        walletUuid: String,
        completion: @escaping (Result<[Card], EventError>) -> Void)

    Parameters

    token

    The token to authenticate the SDK.

    walletUuid

    The uuid of the wallet.

    completion

    Called when the call was completed.

  • Sets a card’s state.

    Declaration

    Swift

    func setCardState(
        token: String,
        walletUuid: String,
        cardUuid: String,
        state: CardState,
        completion: @escaping (Result<CardState, EventError>) -> Void)

    Parameters

    token

    The token to authenticate the SDK.

    walletUuid

    The uuid of the wallet.

    cardUuid

    The uuid of the card.

    state

    The CardState option.

    completion

    Called when the call was completed.

  • Updates a card.

    Declaration

    Swift

    func updateCard(
        token: String,
        walletUuid: String,
        cardUuid: String,
        data: UpdateCardRequest,
        completion: @escaping (Result<Card, EventError>) -> Void)

    Parameters

    token

    The token to authenticate the SDK.

    walletUuid

    The uuid of the wallet.

    cardUuid

    The uuid of the card.

    data

    A CardUpdateRequest data model.

    completion

    Called when the call was completed.

  • Cancels a card.

    Declaration

    Swift

    func cancelCard(
        token: String,
        walletUuid: String,
        cardUuid: String,
        completion: @escaping (Result<Bool, EventError>) -> Void)

    Parameters

    token

    The token to authenticate the SDK.

    walletUuid

    The uuid of the wallet.

    cardUuid

    The uuid of the card.

    completion

    Called when the call was completed.

  • Activates a card.

    Declaration

    Swift

    func activateCard(token: String,
                      walletUuid: String,
                      cardUuid: String,
                      data: ActivateCardRequest,
                      completion: @escaping (Result<Bool, EventError>) -> Void)

    Parameters

    token

    The token to authenticate the SDK.

    walletUuid

    The uuid of the wallet.

    cardUuid

    The uuid of the card.

    data

    ActivateCardRequest data model.

    completion

    Called when the call was completed.

  • Sets a card pin.

    Declaration

    Swift

    func setCardPin(token: String,
                    cardUuid: String,
                    data: SetCardPinRequest,
                    completion: @escaping (Result<Bool, EventError>) -> Void)

    Parameters

    token

    The token to authenticate the SDK.

    cardUuid

    The uuid of the card.

    data

    SetCardPinRequest data model.

    completion

    Called when the call was completed.

  • Reissue or replace a card.

    Declaration

    Swift

    func reissueOrReplaceCard(
        token: String,
        cardUuid: String,
        data: ReissueReplaceCardRequest,
        completion: @escaping (Result<Card, EventError>) -> Void)

    Parameters

    token

    The token to authenticate the SDK.

    cardUuid

    The uuid of the card.

    data
    completion

    Called when the call was completed.

Incentives

  • Gets incentive.

    Declaration

    Swift

    func getIncentive(
        token: String,
        ruleUuid: String,
        completion: @escaping (Result<IncentiveRule, EventError>) -> Void)

    Parameters

    token

    The token to authenticate the SDK.

    ruleUuid

    The uuid of the rule.

    completion

    Called when the call was completed.

  • Lists incentives.

    Declaration

    Swift

    func listIncentives(
        token: String,
        query: IncentivesQuery?,
        completion: @escaping (Result<[IncentiveRule], EventError>) -> Void)

    Parameters

    token

    The token to authenticate the SDK.

    query

    The query.

    completion

    Called when the call was completed.

  • Combine bindings.

    See more

    Declaration

    Swift

    public class Futures