Class: BasketItem

timapi.BasketItem()

Item of a basket

Overview

Members-Overview

Methods-Overview

Constructor

new BasketItem()

Create empty BasketItem

Member-List

amountGross :timapi.Amount

Gross amount.

amountTax :timapi.Amount

Tax amount.

amountTotal :timapi.Amount

Total amount.

authResult :Number

Acquirers result code, which indicates the result of a restriction request.

itemId :String

Identifies the item.

itemQuantity :timapi.ItemQuantity

Quantity of the product.

loyaltyId :String

Identifies the loyalty type.

petrolPumpNumber :Number

Specifies the used petrol pump number used in a sixml:Item as part of a sixml:Basket.

prodDescription :String

ProdDescription.

unitAmountDiscount :timapi.Amount

Unit amount discount.

unitAmountGross :timapi.Amount

Unit amount gross.

Methods

discountId()

Discount ID if AmountDiscount. Returns undefined if amount discount is undefined.

toString() → {String}

Get string representation for debugging purpose.
Returns:
String representation

Type: String

(static) copy(basketItem) → {timapi.BasketItem}

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

Type: timapi.BasketItem