Class: TransactionRequest

timapi.TransactionRequest()

Contains configuration for transaction used by timapi.Terminal or timapi.Terminal.

Overview

Members-Overview

Methods-Overview

Constructor

new TransactionRequest()

Create empty TransactionRequest

Member-List

additionalInfo :Map.<Number, String>

Additional information list.

amount :timapi.Amount

Transaction amount and currency.

amountDiscount :timapi.AmountDiscount

Discount amount. This parameter is only used if timapi.constants.Guides.valueAddedServices is enabled.

amountOther :timapi.Amount

Cashback amount and currency. This parameter is only used if timapi.constants.Guides.advancedRetail is enabled.

amountTip :timapi.Amount

Proposed tip amount. This parameter is only used if timapi.constants.Guides.gastro is enabled.

basket :timapi.Basket

Petrol: Basket.

customerData :Map.<timapi.constants.CustomerDataType, String>

Customer data.

loyaltyCouponList :Array.<timapi.LoyaltyCoupon>

Loyalty coupon list. Only used if timapi.constants.Guides.valueAddedServices is enabled.

merchantOptions :Array.<timapi.MerchantOption>

Additional merchant options.

retainCard :Boolean

Retain card.

transactionData :timapi.TransactionData

Transaction information.

userId :Number

ECR user identifier.

Methods

(static) copy(transactionRequest) → {timapi.TransactionRequest}

Creates a copy of a timapi.TransactionRequest object.
Parameters:
Name Type Description
transactionRequest timapi.TransactionRequest Original
Returns:
Copy of original

Type: timapi.TransactionRequest

toString() → {String}

String representation for debugging purpose.
Returns:
String representation

Type: String