Class AbstractItem

An item which references, or in other words is based upon, an OrderItem. Provides methods to access the OrderItem, the order LineItem which has been extended, and the Order. In addition it defines methods to access item level prices and the item id. Supports custom-properties.

AppeasementItem, InvoiceItem, ReturnCaseItem, ReturnItem, ShippingOrderItem

PropertyDescription
grossPrice: Money (read-only)Gross price of item.
itemID: String (read-only)The item-id used for referencing between items
lineItem: LineItem (read-only)Returns the Order Product- or Shipping- LineItem associated with this item.
netPrice: Money (read-only)Net price of item.
orderItem: OrderItem (read-only)Returns the order item extensions related to this item.
orderItemID: String (read-only)The order-item-id used for referencing the OrderItem
tax: Money (read-only)Total tax for item.
taxBasis: Money (read-only)Price of entire item on which tax calculation is based.
taxItems: Collection (read-only)Tax items representing a tax breakdown

This class does not have a constructor, so you cannot create it directly.

MethodDescription
getGrossPrice()Gross price of item.
getItemID()The item-id used for referencing between items
getLineItem()Returns the Order Product- or Shipping- LineItem associated with this item.
getNetPrice()Net price of item.
getOrderItem()Returns the order item extensions related to this item.
getOrderItemID()The order-item-id used for referencing the OrderItem
getTax()Total tax for item.
getTaxBasis()Price of entire item on which tax calculation is based.
getTaxItems()Tax items representing a tax breakdown

describe, getCustom

assign, create, create, defineProperties, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toLocaleString, toString, valueOf, values

grossPrice: Money (read-only)

Gross price of item.


itemID: String (read-only)

The item-id used for referencing between items


lineItem: LineItem (read-only)

Returns the Order Product- or Shipping- LineItem associated with this item. Should never return null.


netPrice: Money (read-only)

Net price of item.


orderItem: OrderItem (read-only)

Returns the order item extensions related to this item. Should never return null.


orderItemID: String (read-only)

The order-item-id used for referencing the OrderItem


tax: Money (read-only)

Total tax for item.


taxBasis: Money (read-only)

Price of entire item on which tax calculation is based. Same as getNetPrice() or getGrossPrice() depending on whether the order is based on net or gross prices.


taxItems: Collection (read-only)

Tax items representing a tax breakdown

See Also:


getGrossPrice(): Money

Gross price of item.

Returns:

  • Gross price of item.

getItemID(): String

The item-id used for referencing between items

Returns:

  • the item-id used for referencing between items

getLineItem(): LineItem

Returns the Order Product- or Shipping- LineItem associated with this item. Should never return null.

Returns:

  • the Order Product- or Shipping- LineItem associated with this item

getNetPrice(): Money

Net price of item.

Returns:

  • Net price of item.

getOrderItem(): OrderItem

Returns the order item extensions related to this item. Should never return null.

Returns:

  • the order item extensions related to this item

getOrderItemID(): String

The order-item-id used for referencing the OrderItem

Returns:

  • the order-item-id used for referencing the OrderItem

getTax(): Money

Total tax for item.

Returns:

  • Total tax for item.

getTaxBasis(): Money

Price of entire item on which tax calculation is based. Same as getNetPrice() or getGrossPrice() depending on whether the order is based on net or gross prices.

Returns:

  • Price of entire item on which tax calculation is based

getTaxItems(): Collection

Tax items representing a tax breakdown

Returns:

  • tax items representing a tax breakdown

See Also: