BillingAppliedDiscount
@Serializable
A catalog discount applied to a checkout or payment.
Constructors
Link copied to clipboard
constructor(amount: BillingMoneyAmount, discountId: String, name: String, effect: BillingDiscountEffect = BillingDiscountEffect.UNKNOWN, percentOff: Double? = null, amountOff: BillingMoneyAmount? = null, promoCode: String? = null, cyclesRemaining: Int? = null, durationInCycles: Int? = null)
Properties
Link copied to clipboard
The monetary value of the discount applied to the transaction.
Link copied to clipboard
The configured fixed amount off when effect is BillingDiscountEffect.FIXED_AMOUNT.
Link copied to clipboard
The number of billing cycles for which the discount remains active. null means the discount does not expire after a fixed number of cycles.
Link copied to clipboard
The unique identifier of the discount.
Link copied to clipboard
The originally configured duration in billing cycles. null means the discount does not expire after a fixed number of cycles.
Link copied to clipboard
Whether the discount subtracts a percentage or a fixed amount.
Link copied to clipboard
The percentage deducted when effect is BillingDiscountEffect.PERCENTAGE.