PaymentAmounts

data class PaymentAmounts(val currency: String, val amount: BigDecimal, val tipAmount: BigDecimal? = null, val cashbackAmount: BigDecimal? = null, val paidAmount: BigDecimal? = null)

Utility class for transaction amounts specification

Constructors

Link copied to clipboard
constructor(currency: String, amount: BigDecimal, tipAmount: BigDecimal? = null, cashbackAmount: BigDecimal? = null, paidAmount: BigDecimal? = null)

Properties

Link copied to clipboard

Amount requested by the Sale for the payment.

Link copied to clipboard

The cash-back part of the amount requested by the Sale for the payment

Link copied to clipboard

Currency of a monetary amount.

Link copied to clipboard
val paidAmount: BigDecimal? = null

Amount already paid amount in case of split payment.

Link copied to clipboard
val tipAmount: BigDecimal? = null

Amount paid for a tip.