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.
Constructors
Section titled “Constructors”| BestReward | constructor(formatted: String, payoutType: String, minPurchaseAmount: String?, minPurchaseValue: Double?, lockupDurationDays: Double?, isProductScoped: Boolean, matchedProducts: List<ProductDetails>?) |
Properties
Section titled “Properties”| Name | Summary |
|---|---|
| formatted | val formatted: String |
| isProductScoped | val isProductScoped: Boolean Whether the selected campaign is gated to a productScope; not the reward’s basis. |
| lockupDurationDays | val lockupDurationDays: Double? |
| matchedProducts | val matchedProducts: List<ProductDetails>? The requested products matching the winning campaign’s scope; null when unscoped or none requested. |
| minPurchaseAmount | val minPurchaseAmount: String? |
| minPurchaseValue | val minPurchaseValue: Double? |
| payoutType | val payoutType: Stringfixed/percentage/tiered. String, not an enum, so a new server value still decodes. |
Functions
Section titled “Functions”| Name | Summary |
|---|---|
| equals | open operator override fun equals(other: Any?): Boolean |
| hashCode | open override fun hashCode(): Int |
| toString | open override fun toString(): String |