Read-only view of a single ProductOrder line item within a cart, built from the persisted entity for use in templates and JSON responses. Carries the product, quantity, pricing, currency and any answered order options for the line item.


Properties

PropertyReturnsDescription
currencyIdStringIdentifier of the currency the order was priced in.
idlongDatabase id of the underlying ProductOrder.
itemDescriptionStringFree text description of the item, as recorded on the order at the time of purchase.
itemHrefStringURL of the item that was purchased.
orderedDateDateDate and time the order was placed.
productProductBeanThe product this line item is for.
productOrderOptionsList<ProductOrderOptionBean>The parameter options answered for this order, such as selected product variants.
quantityBigDecimalNumber of units ordered.
unitCostBigDecimalPrice of a single unit at the time the order was placed.

Methods

getId() · getProduct() · getQuantity() · getUnitCost() · getCurrencyId() · getItemDescription() · getItemHref() · getOrderedDate() · getProductOrderOptions()

getId()

Returns: long

Database id of the underlying ProductOrder.

getProduct()

Returns: ProductBean

The product this line item is for.

getQuantity()

Returns: BigDecimal

Number of units ordered.

getUnitCost()

Returns: BigDecimal

Price of a single unit at the time the order was placed.

getCurrencyId()

Returns: String

Identifier of the currency the order was priced in.

getItemDescription()

Returns: String

Free text description of the item, as recorded on the order at the time of purchase.

getItemHref()

Returns: String

URL of the item that was purchased.

getOrderedDate()

Returns: Date

Date and time the order was placed.

getProductOrderOptions()

Returns: List<ProductOrderOptionBean>

The parameter options answered for this order, such as selected product variants.

To get full access to the Kademi Hub existing customers can login here, or new customers can register here.