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.

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.

merchantOptions :Array.<timapi.MerchantOption>

Additional merchant options.

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