Loyalty Streaks Service
interface LoyaltyStreaksService
Interface for retrieving loyalty streaks and their milestones. A streak tracks a customer's progress as they repeat a defined action consistently over time.
Functions
Link copied to clipboard
abstract suspend fun getAllStreakMilestones(parameters: GetAllStreakMilestonesParameters): StreakMilestoneList
Retrieves a collection of milestones for a specific streak.
Link copied to clipboard
open fun getAllStreakMilestonesAsync(parameters: GetAllStreakMilestonesParameters, cancellationSignal: CancellationSignal?, callback: WalletCallback<StreakMilestoneList>)
Asynchronously retrieves a collection of milestones for a specific streak.
Link copied to clipboard
Retrieves a collection of streaks visible to the customer.
Link copied to clipboard
open fun getAllStreaksAsync(parameters: GetAllStreaksParameters? = null, cancellationSignal: CancellationSignal?, callback: WalletCallback<StreakList>)
Asynchronously retrieves a collection of streaks visible to the customer.
Link copied to clipboard
Retrieves a single streak by its type and identifier.
Link copied to clipboard
open fun getStreakAsync(parameters: GetStreakParameters, cancellationSignal: CancellationSignal?, callback: WalletCallback<Streak>)
Asynchronously retrieves a single streak by its type and identifier.
Link copied to clipboard
Retrieves a single milestone for a specific streak.
Link copied to clipboard
open fun getStreakMilestoneAsync(parameters: GetStreakMilestoneParameters, cancellationSignal: CancellationSignal?, callback: WalletCallback<StreakMilestone>)
Asynchronously retrieves a single milestone for a specific streak.