LoyaltyRewardsService

Interface for managing loyalty rewards and redemptions. Provides functionality for retrieving available rewards and redeeming rewards using accumulated loyalty points. Enables partners to present rewards to customers and allow reward redemption within their applications.

Functions

Link copied to clipboard
abstract suspend fun getAllAvailableRewards(parameters: GetAllAvailableRewardsParameters? = null): RewardList

Retrieves rewards that are currently active and eligible for redemption.

Link copied to clipboard

Asynchronously retrieves rewards that are currently active and eligible for redemption.

Link copied to clipboard

Retrieves a list of all reward redemptions made by a customer.

Link copied to clipboard

Asynchronously retrieves a list of all reward redemptions made by a customer.

Link copied to clipboard
abstract suspend fun getReward(rewardId: String): Reward

Retrieves a reward by its unique identifier.

Link copied to clipboard
open fun getRewardAsync(rewardId: String, cancellationSignal: CancellationSignal?, callback: WalletCallback<Reward>)

Asynchronously retrieves a reward by its unique identifier.

Link copied to clipboard
abstract suspend fun getRewardRedemption(redemptionId: String): RewardRedemption

Retrieves a reward redemption by its unique identifier.

Link copied to clipboard
open fun getRewardRedemptionAsync(redemptionId: String, cancellationSignal: CancellationSignal?, callback: WalletCallback<RewardRedemption>)

Retrieves a reward redemption by its unique identifier.

Link copied to clipboard
abstract suspend fun redeemReward(rewardId: String, request: RewardRedemptionRequest): RewardRedemption

Redeem an active reward.

Link copied to clipboard
open fun redeemRewardAsync(rewardId: String, request: RewardRedemptionRequest, cancellationSignal: CancellationSignal?, callback: WalletCallback<RewardRedemption>)

Asynchronously redeem an active reward.