vnwalletui / com.venuenext.vnwalletui.model / BenefitsAndAwardsListItem

BenefitsAndAwardsListItem

data class BenefitsAndAwardsListItem

Parameters

awardThreshold - : if INVALID_AWARD_THRESHOLD, then value was not present in API call. Usually, this means that the item is not a cash back award rule. However, if it is a cash back award rule and the value is null, that means it was incorrectly configured.

amountForNextAward - : if INVALID_AMOUNT_FOR_NEXT_AWARD, then value was not present in API call. Usually, this means that the item is not a cash back award rule. However, if it is a cash back award rule and the value is null, that means it was incorrectly configured.

Constructors

<init>

BenefitsAndAwardsListItem(name: String, description: String?, imageUrl: String?, amount: Int, awardThreshold: Int = INVALID_AWARD_THRESHOLD, amountForNextAward: Int = INVALID_AMOUNT_FOR_NEXT_AWARD, action: () -> Unit)

Properties

action

val action: () -> Unit

amount

val amount: Int

amountForNextAward

: if INVALID_AMOUNT_FOR_NEXT_AWARD, then value was not present in API call. Usually, this means that the item is not a cash back award rule. However, if it is a cash back award rule and the value is null, that means it was incorrectly configured.

val amountForNextAward: Int

awardThreshold

: if INVALID_AWARD_THRESHOLD, then value was not present in API call. Usually, this means that the item is not a cash back award rule. However, if it is a cash back award rule and the value is null, that means it was incorrectly configured.

val awardThreshold: Int

description

val description: String?

imageUrl

val imageUrl: String?

isCashBackRule

val isCashBackRule: Boolean

name

val name: String