Skip to content

BestReward

class BestReward(val formatted: String, val payoutType: String, val minPurchaseAmount: String?, val minPurchaseValue: Double?, val lockupDurationDays: Double?, val isProductScoped: Boolean, val matchedProducts: List<ProductDetails>?)

The single reward worth advertising, formatted server-side. formatted contains a non-breaking space (U+00A0) before the currency symbol; render as-is, do not reformat.

BestRewardconstructor(formatted: String, payoutType: String, minPurchaseAmount: String?, minPurchaseValue: Double?, lockupDurationDays: Double?, isProductScoped: Boolean, matchedProducts: List<ProductDetails>?)
NameSummary
formattedval formatted: String
isProductScopedval isProductScoped: Boolean
Whether the selected campaign is gated to a productScope; not the reward’s basis.
lockupDurationDaysval lockupDurationDays: Double?
matchedProductsval matchedProducts: List<ProductDetails>?
The requested products matching the winning campaign’s scope; null when unscoped or none requested.
minPurchaseAmountval minPurchaseAmount: String?
minPurchaseValueval minPurchaseValue: Double?
payoutTypeval payoutType: String
fixed/percentage/tiered. String, not an enum, so a new server value still decodes.
NameSummary
equalsopen operator override fun equals(other: Any?): Boolean
hashCodeopen override fun hashCode(): Int
toStringopen override fun toString(): String