CardsSdk

object CardsSdk

To call the Cards Sdk services directly.

Types

Link copied to clipboard
enum Features : Enum<CardsSdk.Features>

Features.

Functions

Link copied to clipboard
suspend fun activateCard(    sessionToken: String,     walletUuid: String,     cardUuid: String,     data: ActivateCardRequest): Response<Any>
fun activateCard(    sessionToken: String,     walletUuid: String,     cardUuid: String,     data: ActivateCardRequest,     clientCallback: ActivateCardSdkCallback)

Headless call to activate an issued card.

Link copied to clipboard
fun addCardDigitalWalletSamsungPayByIntent(    parentActivity: Activity,     sessionToken: String,     walletUuid: String,     cardUuid: String,     cardBrand: CardBrandModel,     samsungServiceId: String): Intent

Add card to digital wallet samsung through Activity. Set callback AddCardDigitalWalletSdkCallback in CardsSdk.setEventListener.

Link copied to clipboard
suspend fun cancelCard(    sessionToken: String,     walletUuid: String,     cardUuid: String): Response<Any>
fun cancelCard(    sessionToken: String,     walletUuid: String,     cardUuid: String,     clientCallback: CancelCardSdkCallback)

Headless call to cancel an issued card.

Link copied to clipboard
suspend fun createCard(    sessionToken: String,     walletUuid: String,     data: IssueCardRequest): Response<IssuedCardDetailsModel>
fun createCard(    sessionToken: String,     walletUuid: String,     data: IssueCardRequest,     clientCallback: CreateCardSdkCallback)

Headless call to create a new issued card associated to a wallet.

Link copied to clipboard
suspend fun freezeCard(    sessionToken: String,     walletUuid: String,     cardUuid: String): Response<Any>
fun freezeCard(    sessionToken: String,     walletUuid: String,     cardUuid: String,     clientCallback: FreezeCardSdkCallback)

Headless call to freeze an issued card.

Link copied to clipboard
suspend fun getCard(    sessionToken: String,     walletUuid: String,     cardUuid: String): Response<IssuedCardDetailsModel>
fun getCard(    sessionToken: String,     walletUuid: String,     cardUuid: String,     clientCallback: GetCardSdkCallback)

Headless call to get an issued card.

Link copied to clipboard
suspend fun getCardImage(    sessionToken: String,     walletUuid: String,     cardUuid: String): Response<Bitmap>

Headless call to get and issued card image.

fun getCardImage(    sessionToken: String,     walletUuid: String,     cardUuid: String,     clientCallback: GetCardImageSdkCallback)

Headless call to get an issued card image.

Link copied to clipboard
suspend fun getCardSensitiveData(    sessionToken: String,     walletUuid: String,     cardUuid: String): Response<CardSensitiveDataModel>
fun getCardSensitiveData(    sessionToken: String,     walletUuid: String,     cardUuid: String,     clientCallback: GetCardSensitiveDataSdkCallback)

Headless call to get an issued card sensitive data.

Link copied to clipboard
suspend fun getIncentiveRule(sessionToken: String, incentiveRuleUuid: String): Response<IncentiveRuleDetailsModel>
fun getIncentiveRule(    sessionToken: String,     incentiveRuleUuid: String,     clientCallback: GetIncentiveRuleSdkCallback)

Headless call to get an incentive rule.

Link copied to clipboard
fun init()

Init the Sdk.

Link copied to clipboard
suspend fun listCards(    sessionToken: String,     walletUuid: String,     limit: Int? = null,     offset: Int? = null): Response<List<IssuedCardDetailsModel>>
fun listCards(    sessionToken: String,     walletUuid: String,     limit: Int? = null,     offset: Int? = null,     clientCallback: ListCardsSdkCallback)

Headless call to get a list of issued cards associated to a wallet.

Link copied to clipboard
suspend fun listIncentiveRules(    sessionToken: String,     limit: Int? = null,     offset: Int? = null,     incentiveScope: IncentiveScopeModel? = null,     incentiveType: IncentiveTypeModel? = null): Response<List<IncentiveRuleDetailsModel>>
fun listIncentiveRules(    sessionToken: String,     limit: Int? = null,     offset: Int? = null,     incentiveScope: IncentiveScopeModel? = null,     incentiveType: IncentiveTypeModel? = null,     clientCallback: ListIncentiveRulesSdkCallback)

Headless call to get a list of incentive rules.

Link copied to clipboard
fun removeCustomization()

Removes the customization object for the Sdk views.

Link copied to clipboard
fun removeEventListener()

remove the handler for the Sdk's events.

Link copied to clipboard
fun setCustomize(customize: CardsCustomize)

Set the customization for the Sdk's views.

Link copied to clipboard
fun setEventListener(listener: CardsSdkCallback)

Set the handler for the Sdk's events.

Link copied to clipboard
suspend fun unfreezeCard(    sessionToken: String,     walletUuid: String,     cardUuid: String): Response<Any>
fun unfreezeCard(    sessionToken: String,     walletUuid: String,     cardUuid: String,     clientCallback: UnfreezeCardSdkCallback)

Headless call to unfreeze an issued card.

Link copied to clipboard
suspend fun updateCard(    sessionToken: String,     walletUuid: String,     cardUuid: String,     data: CardUpdateRequest): Response<IssuedCardDetailsModel>
fun updateCard(    sessionToken: String,     walletUuid: String,     cardUuid: String,     data: CardUpdateRequest,     clientCallback: UpdateCardSdkCallback)

Headless call to update an issued card.