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.
All Known Subclasses
AppeasementItem , InvoiceItem , ReturnCaseItem , ReturnItem , ShippingOrderItem
Property Summary
Constructor Summary
This class does not have a constructor, so you cannot create it directly.
Method Summary
Methods inherited from class Extensible
describe , getCustom
Methods inherited from class Object
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
Property Details
grossPrice
grossPrice: Money (read-only)
Gross price of item.
itemID
itemID: String (read-only)
The item-id used for referencing between items
lineItem
lineItem: LineItem (read-only)
Returns the Order Product- or Shipping- LineItem associated with this item. Should never return null.
netPrice
netPrice: Money (read-only)
Net price of item.
orderItem
orderItem: OrderItem (read-only)
Returns the order item extensions related to this item. Should never return null.
orderItemID
orderItemID: String (read-only)
The order-item-id used for referencing the OrderItem
tax
tax: Money (read-only)
Total tax for item.
taxBasis
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
taxItems: Collection (read-only)
Tax items representing a tax breakdown
See Also:
Method Details
getGrossPrice()
getGrossPrice(): Money
Gross price of item.
Returns:
getItemID()
getItemID(): String
The item-id used for referencing between items
Returns:
the item-id used for referencing between items
getLineItem()
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()
getNetPrice(): Money
Net price of item.
Returns:
getOrderItem()
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()
getOrderItemID(): String
The order-item-id used for referencing the OrderItem
Returns:
the order-item-id used for referencing the OrderItem
getTax()
getTax(): Money
Total tax for item.
Returns:
getTaxBasis()
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()
getTaxItems(): Collection
Tax items representing a tax breakdown
Returns:
tax items representing a tax breakdown
See Also: