AlCards
public final class AlCards
SDK Initialization object.
-
AlCards
object instance.Declaration
Swift
public static let shared: AlCards
-
Creates a card.
Declaration
Swift
public func createCard( token: String, walletUuid: String, data: CardRequest, delegate: CardIssuanceDelegate)
Parameters
token
The token to authenticate the SDK.
walletUuid
The uuid of the wallet.
data
A
CardRequest
data model.delegate
The delegate to receive SDK updates.
-
Creates a card.
Declaration
Swift
public func createNonReloadablePrepaidCard( token: String, accountUuid: String, data: NonReloadablePrepaidCardRequest, delegate: CardIssuanceDelegate)
Parameters
token
The token to authenticate the SDK.
accountUuid
The uuid of the account.
data
A
NonReloadablePrepaidCardRequest
data model.delegate
The delegate to receive SDK updates.
-
Gets a card.
Declaration
Swift
public func getCard( token: String, walletUuid: String, cardUuid: String, delegate: CardIssuanceDelegate)
Parameters
token
The token to authenticate the SDK.
walletUuid
The uuid of the wallet.
cardUuid
The uuid of the card.
delegate
The delegate to receive SDK updates.
-
Gets a card image.
Declaration
Swift
public func getCardImage( token: String, walletUuid: String, cardUuid: String, delegate: CardIssuanceDelegate)
Parameters
token
The token to authenticate the SDK.
walletUuid
The uuid of the wallet.
cardUuid
The uuid of the card.
delegate
The delegate to receive SDK updates.
-
Gets a card sensitive data.
Declaration
Swift
public func getCardSensitiveData( token: String, walletUuid: String, cardUuid: String, delegate: CardIssuanceDelegate)
Parameters
token
The token to authenticate the SDK.
walletUuid
The uuid of the wallet.
cardUuid
The uuid of the card.
delegate
The delegate to receive SDK updates.
-
Lists cards.
Declaration
Swift
public func listCards( token: String, walletUuid: String, delegate: CardIssuanceDelegate)
Parameters
token
The token to authenticate the SDK.
walletUuid
The uuid of the wallet.
delegate
The delegate to receive SDK updates.
-
Sets a card’s state.
Declaration
Swift
public func setCardState( token: String, walletUuid: String, cardUuid: String, state: CardState, delegate: CardIssuanceDelegate)
Parameters
token
The token to authenticate the SDK.
walletUuid
The uuid of the wallet.
cardUuid
The uuid of the card.
state
The
CardState
option.delegate
The delegate to receive SDK updates.
-
Updates a card.
Declaration
Swift
public func updateCard( token: String, walletUuid: String, cardUuid: String, data: UpdateCardRequest, delegate: CardIssuanceDelegate)
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.delegate
The delegate to receive SDK updates.
-
Cancels a card.
Declaration
Swift
public func cancelCard( token: String, walletUuid: String, cardUuid: String, delegate: CardIssuanceDelegate)
Parameters
token
The token to authenticate the SDK.
walletUuid
The uuid of the wallet.
cardUuid
The uuid of the card.
delegate
The delegate to receive SDK updates.
-
Activates a card.
Declaration
Swift
public func activateCard( token: String, walletUuid: String, cardUuid: String, data: ActivateCardRequest, delegate: CardIssuanceDelegate)
Parameters
token
The token to authenticate the SDK.
walletUuid
The uuid of the wallet.
cardUuid
The uuid of the card.
data
ActivateCardRequest
data model.delegate
The delegate to receive SDK updates.
-
Sets a card pin.
Declaration
Swift
public func setCardPin( token: String, cardUuid: String, data: SetCardPinRequest, delegate: CardIssuanceDelegate)
Parameters
token
The token to authenticate the SDK.
cardUuid
The uuid of the card.
data
SetCardPinRequest
data model.delegate
The delegate to receive SDK updates.
-
Reissue or replace a card.
Declaration
Swift
public func reissueOrReplaceCard( token: String, cardUuid: String, data: ReissueReplaceCardRequest, delegate: CardIssuanceDelegate)
Parameters
token
The token to authenticate the SDK.
cardUuid
The uuid of the card.
data
ReissueReplaceCardRequest
data model.delegate
The delegate to receive SDK updates.
-
createAddCardToWalletViewController(token:
delegate: accountUuid: cardUuid: cardholderName: lastFourDigits: paymentNetwork: ) Create and returns a
DigitalWalletAddCardViewController
.Declaration
Swift
public func createAddCardToWalletViewController( token: String, delegate: DigitalWalletDelegate, accountUuid: String, cardUuid: String, cardholderName: String, lastFourDigits: String, paymentNetwork: PKPaymentNetwork) -> DigitalWalletAddCardViewController?
Parameters
token
The token to authenticate the SDK.
delegate
The delegate to receive SDK updates.
extraData
Extra data to be sent along card data.
validation
A custom fields validation to apply to the view. If
nil
is passed the default validations are applied.style
The style customizations object. If
nil
is passed the default style is applied.Return Value
A
DigitalWalletAddCardViewController
instance. -
Register a
DigitalWalletAddCardViewController
initialized from Interface Builder.Declaration
Swift
public func registerAddCardToWalletViewController( token: String, viewController: DigitalWalletAddCardViewController, delegate: DigitalWalletDelegate)
Parameters
token
The token to authenticate the SDK.
viewController
The
DigitalWalletAddCardViewController
view controller.delegate
The delegate to receive SDK updates.
-
Gets an incentive.
Declaration
Swift
public func getIncentive( token: String, ruleUuid: String, delegate: IncentivesDelegate)
Parameters
token
The token to authenticate the SDK.
ruleUuid
The uuid of the rule.
delegate
The delegate to receive SDK updates.
-
Lists incentives.
Declaration
Swift
public func listIncentives( token: String, query: IncentivesQuery?, delegate: IncentivesDelegate)
Parameters
token
The token to authenticate the SDK.
query
The query.
delegate
The delegate to receive SDK updates.
-
Async bindings.
See moreDeclaration
Swift
public class Async
-
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
A
NonReloadablePrepaidCardRequest
data model.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
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
ReissueReplaceCardRequest
data model.completion
Called when the call was completed.
-
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 moreDeclaration
Swift
public class Futures