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

Retrieves a collection of milestones for a specific streak.

Link copied to clipboard

Asynchronously retrieves a collection of milestones for a specific streak.

Link copied to clipboard
abstract suspend fun getAllStreaks(parameters: GetAllStreaksParameters? = null): StreakList

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
abstract suspend fun getStreak(parameters: GetStreakParameters): Streak

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

Asynchronously retrieves a single milestone for a specific streak.