TransactionRequest

abstract class TransactionRequest(currencyId: Int = 0, totalAmount: Long = 0, saleId: String = "", loyaltyApplications: Array<String> = emptyArray(), paymentMethod: String = "")

Contains the details of a new transaction. This class should not be used directly by the POS application. The POS application should instantiate one of the subclasses of this class when a transaction should be performed.

See also

Constructors

Link copied to clipboard
fun TransactionRequest(currencyId: Int = 0, totalAmount: Long = 0, saleId: String = "", loyaltyApplications: Array<String> = emptyArray(), paymentMethod: String = "")

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun setCurrencyId(value: Int)
Link copied to clipboard
Link copied to clipboard
fun setLoyaltyApplications(applications: Array<String>)
Link copied to clipboard
open fun setPaymentMethod(paymentMethod: String)

Specifies that a specific payment method should be used in this transaction.

Link copied to clipboard
fun setSaleId(value: String)
Link copied to clipboard
fun setTotalAmount(value: Long)

Inheritors

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