Streak

sealed interface Streak

A streak tracks a user's progress as they repeat a defined action consistently over time. It continues as long as the rules are met, and resets if interrupted.

Inheritors

Properties

Link copied to clipboard
abstract val action: LoyaltyAction

The customer action required to make progress in the streak.

Link copied to clipboard
abstract val description: String

Describes the purpose, rules, or goal of the streak.

Link copied to clipboard
abstract val expirationTime: Calendar?

The date and time when the streak campaign expires.

Link copied to clipboard
abstract val id: String

Unique identifier of the streak.

Link copied to clipboard
abstract val name: String

Display name of the streak.

Link copied to clipboard
abstract val startTime: Calendar

When the streak becomes available to customers.

Link copied to clipboard
abstract val status: StreakStatus

Current state of the customer's participation in the streak.

Link copied to clipboard
abstract val type: StreakType

Determines how progress is accumulated and when the streak resets.