TransactionAmounts

class TransactionAmounts(totalAmount: Long = 0, cashBackAmount: Long = 0, vatAmount: Long = 0, cashAdvanceChargeAmount: Long = 0, tipAmount: Long = 0)

The TransactionAmounts class contains different type of amounts used in a transaction. The main use case for this class is when update of the transaction amount is needed for a pending transaction.

Constructors

Link copied to clipboard
fun TransactionAmounts(totalAmount: Long = 0, cashBackAmount: Long = 0, vatAmount: Long = 0, cashAdvanceChargeAmount: Long = 0, tipAmount: Long = 0)

Functions

Link copied to clipboard

Get cash advance charge amount.

Link copied to clipboard

Get the cash back amount.

Link copied to clipboard
Link copied to clipboard

Get the total amount.

Link copied to clipboard

Get the VAT amount.

Link copied to clipboard
fun setCashAdvanceChargeAmount(cashAdvanceChargeAmount: Long)

Set the cash advance charge amount.

Link copied to clipboard
fun setCashBackAmount(cashBackAmount: Long)

Set the cash back amount.

Link copied to clipboard
fun setTipAmount(amount: Long)
Link copied to clipboard
fun setTotalAmount(totalAmount: Long)

Set the total amount.

Link copied to clipboard
fun setVatAmount(vatAmount: Long)

Set the VAT amount.