//Granify Android SDK/com.granifyinc.granifysdk.models/DiscountCode
DiscountCode
@Serializable
data class DiscountCode(val code: String, val amount: Price)
Represents an order discount code.
Typically this is some coupon or promo code entered by the user to apply the discount to their order.
Parameters
androidJvm
code | The discount code string. |
amount | The discounted amount. |
Constructors
DiscountCode | [androidJvm] constructor(code: String, amount: Price) Creates a DiscountCode instance. |
Properties
Name | Summary |
---|---|
amount | [androidJvm] val amount: Price |
code | [androidJvm] val code: String |