Reward

data class Reward(val id: Int, val name: String, val inventoryCount: Int, val description: String, val maxRedemptionCount: Int, val cost: RewardValue?, val startAt: Calendar, val expiryAt: Calendar?, val imageUrl: String, val categories: List<String>)

Data class representing a reward in the loyalty program.

Parameters

id

The ID of the reward in the reward store.

name

The name of the reward in the reward store.

inventoryCount

How many of this reward are available in the reward store.

description

Description of the reward in the reward store.

maxRedemptionCount

How many of this reward can be redeemed.

cost

The cost of the award.

startAt

The time the reward is available for redemption.

expiryAt

The time the reward is no longer available for redemption.

imageUrl

URL of the reward image in the reward store.

categories

List of reward categories.

Constructors

Link copied to clipboard
constructor(id: Int, name: String, inventoryCount: Int, description: String, maxRedemptionCount: Int, cost: RewardValue?, startAt: Calendar, expiryAt: Calendar?, imageUrl: String, categories: List<String>)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val id: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard