@Entity public class OrderItemPriceDetailImpl extends Object implements OrderItemPriceDetail, CurrencyCodeIdentifiable
| Modifier and Type | Field and Description |
|---|---|
protected Long |
id |
protected OrderItem |
orderItem |
protected List<OrderItemPriceDetailAdjustment> |
orderItemPriceDetailAdjustments |
protected int |
quantity |
protected Boolean |
useSalePrice |
| Constructor and Description |
|---|
OrderItemPriceDetailImpl() |
| Modifier and Type | Method and Description |
|---|---|
Money |
getAdjustmentValue()
Returns the value of all adjustments for a single quantity of the item.
|
protected BroadleafCurrency |
getCurrency() |
String |
getCurrencyCode() |
Long |
getId()
The unique identifier of this OrderItem
|
OrderItem |
getOrderItem()
Reference back to the containing orderItem.
|
List<OrderItemPriceDetailAdjustment> |
getOrderItemPriceDetailAdjustments()
Returns a List of the adjustments that effected this priceDetail.
|
int |
getQuantity()
The quantity of this
OrderItemPriceDetail. |
Money |
getTotalAdjustedPrice()
Returns the total adjustedPrice.
|
Money |
getTotalAdjustmentValue()
Returns getAdjustmentValue() * the quantity.
|
boolean |
getUseSalePrice()
Indicates that the adjustments were based off of the item's sale price.
|
void |
setId(Long id)
Sets the unique id of the OrderItem.
|
void |
setOrderItem(OrderItem orderItem)
Sets the orderItem for this itemPriceDetail.
|
void |
setOrderItemAdjustments(List<OrderItemPriceDetailAdjustment> orderItemPriceDetailAdjustments)
Sets the list of OrderItemPriceDetailAdjustment
|
void |
setQuantity(int quantity)
Returns the quantity
|
void |
setUseSalePrice(boolean useSalePrice)
Set that the adjustments should be taken off of the item's sale price.
|
protected Long id
protected OrderItem orderItem
protected List<OrderItemPriceDetailAdjustment> orderItemPriceDetailAdjustments
protected int quantity
protected Boolean useSalePrice
public Long getId()
OrderItemPriceDetailgetId in interface OrderItemPriceDetailpublic void setId(Long id)
OrderItemPriceDetailsetId in interface OrderItemPriceDetailpublic OrderItem getOrderItem()
OrderItemPriceDetailgetOrderItem in interface OrderItemPriceDetailpublic void setOrderItem(OrderItem orderItem)
OrderItemPriceDetailsetOrderItem in interface OrderItemPriceDetailpublic List<OrderItemPriceDetailAdjustment> getOrderItemPriceDetailAdjustments()
OrderItemPriceDetailgetOrderItemPriceDetailAdjustments in interface OrderItemPriceDetailpublic void setOrderItemAdjustments(List<OrderItemPriceDetailAdjustment> orderItemPriceDetailAdjustments)
OrderItemPriceDetailsetOrderItemAdjustments in interface OrderItemPriceDetailpublic int getQuantity()
OrderItemPriceDetailOrderItemPriceDetail.getQuantity in interface OrderItemPriceDetailpublic void setQuantity(int quantity)
OrderItemPriceDetailsetQuantity in interface OrderItemPriceDetailprotected BroadleafCurrency getCurrency()
public Money getAdjustmentValue()
OrderItemPriceDetailOrderItemPriceDetail.getTotalAdjustmentValue() to get the total for all quantities of this item.getAdjustmentValue in interface OrderItemPriceDetailpublic Money getTotalAdjustmentValue()
OrderItemPriceDetailgetTotalAdjustmentValue in interface OrderItemPriceDetailpublic Money getTotalAdjustedPrice()
OrderItemPriceDetailgetTotalAdjustedPrice in interface OrderItemPriceDetailpublic boolean getUseSalePrice()
OrderItemPriceDetailgetUseSalePrice in interface OrderItemPriceDetailpublic void setUseSalePrice(boolean useSalePrice)
OrderItemPriceDetailsetUseSalePrice in interface OrderItemPriceDetailpublic String getCurrencyCode()
getCurrencyCode in interface CurrencyCodeIdentifiableCopyright © 2015. All Rights Reserved.