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
| Property | Returns | Description |
|---|---|---|
| currencyId | String | Identifier of the currency the order was priced in. |
| id | long | Database id of the underlying ProductOrder. |
| itemDescription | String | Free text description of the item, as recorded on the order at the time of purchase. |
| itemHref | String | URL of the item that was purchased. |
| orderedDate | Date | Date and time the order was placed. |
| product | ProductBean | The product this line item is for. |
| productOrderOptions | List<ProductOrderOptionBean> | The parameter options answered for this order, such as selected product variants. |
| quantity | BigDecimal | Number of units ordered. |
| unitCost | BigDecimal | Price 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.