DiscountOption

data class DiscountOption(val amount: Long, val currencyCode: String, val type: DiscountOptionType, val redemption: DiscountRedemption?)

Data class representing one eligible discount line the customer can apply, including the monetary effect and how to reference it when confirming the payment.

Parameters

amount

Discount amount in minor currency units.

currencyCode

Currency alphabetic code as specified by ISO 4217.

type

Discount source type.

redemption

Identifies the chosen discount option for redemption APIs.

Constructors

Link copied to clipboard
constructor(amount: Long, currencyCode: String, type: DiscountOptionType, redemption: DiscountRedemption?)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard