Futures

public class Futures

Combine bindings.

Cards

  • Creates a card.

    Declaration

    Swift

    public func createCard(
        token: String,
        walletUuid: String,
        data: CardRequest)
    -> Future<Card, EventError>

    Parameters

    token

    The token to authenticate the SDK.

    walletUuid

    The uuid of the wallet.

    data

    A CardRequest data model.

    Return Value

    A Future object.

  • Creates a card.

    Declaration

    Swift

    public func createNonReloadablePrepaidCard(
        token: String,
        accountUuid: String,
        data: NonReloadablePrepaidCardRequest)
    -> Future<Card, EventError>

    Parameters

    token

    The token to authenticate the SDK.

    accountUuid

    The uuid of the account.

    data

    Return Value

    A Future object.

  • Gets a card.

    Declaration

    Swift

    public func getCard(
        token: String,
        walletUuid: String,
        cardUuid: String)
    -> Future<Card, EventError>

    Parameters

    token

    The token to authenticate the SDK.

    walletUuid

    The uuid of the wallet.

    cardUuid

    The uuid of the card.

    Return Value

    A Future object.

  • Gets a card image.

    Declaration

    Swift

    public func getCardImage(
        token: String,
        walletUuid: String,
        cardUuid: String)
    -> Future<UIImage, EventError>

    Parameters

    token

    The token to authenticate the SDK.

    walletUuid

    The uuid of the wallet.

    cardUuid

    The uuid of the card.

    Return Value

    A Future object.

  • Gets a card sensitive data.

    Declaration

    Swift

    public func getCardSensitiveData(
        token: String,
        walletUuid: String,
        cardUuid: String)
    -> Future<CardSensitiveData, EventError>

    Parameters

    token

    The token to authenticate the SDK.

    walletUuid

    The uuid of the wallet.

    cardUuid

    The uuid of the card.

    Return Value

    A Future object.

  • Lists cards.

    Declaration

    Swift

    public func listCards(
        token: String,
        walletUuid: String)
    -> Future<[Card], EventError>

    Parameters

    token

    The token to authenticate the SDK.

    walletUuid

    The uuid of the wallet.

    Return Value

    A Future object.

  • Sets a card’s state.

    Declaration

    Swift

    public func setCardState(
        token: String,
        walletUuid: String,
        cardUuid: String,
        state: CardState)
    -> Future<CardState, EventError>

    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 Future object.

  • Updates a card.

    Declaration

    Swift

    public func updateCard(
        token: String,
        walletUuid: String,
        cardUuid: String,
        data: UpdateCardRequest)
    -> Future<Card, EventError>

    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 Future object.

  • Cancels a card.

    Declaration

    Swift

    public func cancelCard(
        token: String,
        walletUuid: String,
        cardUuid: String)
    -> Future<Bool, EventError>

    Parameters

    token

    The token to authenticate the SDK.

    walletUuid

    The uuid of the wallet.

    cardUuid

    The uuid of the card.

    Return Value

    A Future object.

  • Activates a card.

    Declaration

    Swift

    public func activateCard(
        token: String,
        walletUuid: String,
        cardUuid: String,
        data: ActivateCardRequest)
    -> Future<Bool, EventError>

    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

    A Future object.

  • Sets a card pin.

    Declaration

    Swift

    public func setCardPin(
        token: String,
        cardUuid: String,
        data: SetCardPinRequest)
    -> Future<Bool, EventError>

    Parameters

    token

    The token to authenticate the SDK.

    cardUuid

    The uuid of the card.

    data

    SetCardPinRequest data model.

    Return Value

    A Future object.

  • Reissue or replace a card.

    Declaration

    Swift

    public func reissueOrReplaceCard(
        token: String,
        cardUuid: String,
        data: ReissueReplaceCardRequest)
    -> Future<Card, EventError>

    Parameters

    token

    The token to authenticate the SDK.

    cardUuid

    The uuid of the card.

    data

    Return Value

    A Future object.

Incentives

  • Gets incentive.

    Declaration

    Swift

    public func getIncentive(
        token: String,
        ruleUuid: String)
    -> Future<IncentiveRule, EventError>

    Parameters

    token

    The token to authenticate the SDK.

    ruleUuid

    The uuid of the rule.

    Return Value

    A Future object.

  • Lists incentives.

    Declaration

    Swift

    public func listIncentives(
        token: String,
        query: IncentivesQuery?)
    -> Future<[IncentiveRule], EventError>

    Parameters

    token

    The token to authenticate the SDK.

    query

    The query.

    Return Value

    A Future object.