@Entity public class DiscreteOrderItemImpl extends OrderItemImpl implements DiscreteOrderItem
| Modifier and Type | Class and Description |
|---|---|
static class |
DiscreteOrderItemImpl.Presentation |
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,String> |
additionalAttributes
Deprecated.
|
protected BigDecimal |
baseRetailPrice |
protected BigDecimal |
baseSalePrice |
protected BundleOrderItem |
bundleOrderItem |
protected List<DiscreteOrderItemFeePrice> |
discreteOrderItemFeePrices |
protected Product |
product |
protected Sku |
sku |
protected SkuBundleItem |
skuBundleItem |
candidateItemOffers, category, childOrderItems, discountsAllowed, giftWrapOrderItem, id, itemTaxable, name, order, orderItemAdjustments, orderItemAttributeMap, orderItemPriceDetails, orderItemQualifiers, orderItemType, parentOrderItem, personalMessage, price, quantity, retailPrice, retailPriceOverride, salePrice, salePriceOverride, totalTaxMAIN_ENTITY_NAME_PROPERTY| Constructor and Description |
|---|
DiscreteOrderItemImpl() |
| Modifier and Type | Method and Description |
|---|---|
OrderItem |
clone() |
protected Money |
convertToMoney(BigDecimal amount) |
boolean |
equals(Object obj) |
BundleOrderItem |
findParentItem()
For items that are part of a bundle, this method will return the parent bundle item.
|
Map<String,String> |
getAdditionalAttributes()
Arbitrary attributes associated with the order item
|
Money |
getBaseRetailPrice() |
Money |
getBaseSalePrice() |
BundleOrderItem |
getBundleOrderItem()
If this item is part of a bundle, this method will return the containing bundle item.
|
List<DiscreteOrderItemFeePrice> |
getDiscreteOrderItemFeePrices() |
String |
getName()
Generally copied from the Sku.getName()
|
Order |
getOrder()
Reference back to the containing order.
|
Product |
getProduct() |
Sku |
getSku() |
SkuBundleItem |
getSkuBundleItem()
If this item is part of a bundle that was created via a ProductBundle, then this
method returns a reference to the corresponding SkuBundleItem.
|
int |
hashCode() |
boolean |
isDiscountingAllowed()
If true, this item can be discounted..
|
boolean |
isSkuActive()
Returns a boolean indicating whether this sku is active.
|
Boolean |
isTaxable()
Returns whether or not this item is taxable.
|
void |
setAdditionalAttributes(Map<String,String> additionalAttributes)
Arbitrary attributes associated with the order item
|
void |
setBaseRetailPrice(Money baseRetailPrice) |
void |
setBaseSalePrice(Money baseSalePrice) |
void |
setBundleOrderItem(BundleOrderItem bundleOrderItem)
Sets the parent bundle item.
|
void |
setDiscreteOrderItemFeePrices(List<DiscreteOrderItemFeePrice> discreteOrderItemFeePrices) |
void |
setOrder(Order order)
Sets the order for this orderItem.
|
void |
setProduct(Product product) |
void |
setSku(Sku sku) |
void |
setSkuBundleItem(SkuBundleItem SkuBundleItem)
Sets the associated SkuBundleItem.
|
boolean |
updateSaleAndRetailPrices()
Used to reset the base price of the item that the pricing engine uses.
|
addCandidateItemOffer, assignFinalPrice, checkCloneable, convertOrderItemType, finalizePrice, getAdjustmentValue, getAverageAdjustmentValue, getAveragePrice, getCandidateItemOffers, getCategory, getChildOrderItems, getCurrencyCode, getGiftWrapOrderItem, getId, getIsDiscounted, getIsOnSale, getMainEntityName, getOrderItemAdjustments, getOrderItemAttributes, getOrderItemPriceDetails, getOrderItemQualifiers, getOrderItemType, getParentOrderItem, getPersonalMessage, getPrice, getPriceBeforeAdjustments, getQuantity, getRetailPrice, getSalePrice, getTaxablePrice, getTotalAdjustmentValue, getTotalPrice, getTotalPriceBeforeAdjustments, isAParentOf, isInCategory, isRetailPriceOverride, isSalePriceOverride, removeAllAdjustments, removeAllCandidateItemOffers, setCandidateItemOffers, setCategory, setChildOrderItems, setDiscountingAllowed, setGiftWrapOrderItem, setId, setName, setOrderItemAdjustments, setOrderItemAttributes, setOrderItemPriceDetails, setOrderItemQualifiers, setOrderItemType, setParentOrderItem, setPersonalMessage, setPrice, setQuantity, setRetailPrice, setRetailPriceOverride, setSalePrice, setSalePriceOverride, setTaxablefinalize, getClass, notify, notifyAll, toString, wait, wait, waitgetTaxablePriceaddCandidateItemOffer, assignFinalPrice, finalizePrice, getAdjustmentValue, getAverageAdjustmentValue, getAveragePrice, getCandidateItemOffers, getCategory, getChildOrderItems, getGiftWrapOrderItem, getId, getIsDiscounted, getIsOnSale, getOrderItemAdjustments, getOrderItemAttributes, getOrderItemPriceDetails, getOrderItemQualifiers, getOrderItemType, getParentOrderItem, getPersonalMessage, getPrice, getPriceBeforeAdjustments, getQuantity, getRetailPrice, getSalePrice, getTotalAdjustmentValue, getTotalPrice, getTotalPriceBeforeAdjustments, isAParentOf, isInCategory, isRetailPriceOverride, isSalePriceOverride, removeAllAdjustments, removeAllCandidateItemOffers, setCandidateItemOffers, setCategory, setChildOrderItems, setDiscountingAllowed, setGiftWrapOrderItem, setId, setName, setOrderItemAdjustments, setOrderItemAttributes, setOrderItemPriceDetails, setOrderItemQualifiers, setOrderItemType, setParentOrderItem, setPersonalMessage, setPrice, setQuantity, setRetailPrice, setRetailPriceOverride, setSalePrice, setSalePriceOverride, setTaxableprotected BigDecimal baseRetailPrice
protected BigDecimal baseSalePrice
protected Sku sku
protected Product product
protected BundleOrderItem bundleOrderItem
protected SkuBundleItem skuBundleItem
@Deprecated protected Map<String,String> additionalAttributes
protected List<DiscreteOrderItemFeePrice> discreteOrderItemFeePrices
public Sku getSku()
getSku in interface DiscreteOrderItemgetSku in interface SkuAccessorpublic void setSku(Sku sku)
setSku in interface DiscreteOrderItempublic Boolean isTaxable()
OrderItemisTaxable in interface OrderItemisTaxable in class OrderItemImplpublic Product getProduct()
getProduct in interface DiscreteOrderItempublic void setProduct(Product product)
setProduct in interface DiscreteOrderItempublic BundleOrderItem getBundleOrderItem()
DiscreteOrderItemgetBundleOrderItem in interface DiscreteOrderItempublic void setBundleOrderItem(BundleOrderItem bundleOrderItem)
DiscreteOrderItemsetBundleOrderItem in interface DiscreteOrderItempublic void setOrder(Order order)
OrderItemsetOrder in interface OrderItemsetOrder in class OrderItemImplpublic SkuBundleItem getSkuBundleItem()
getSkuBundleItem in interface DiscreteOrderItempublic void setSkuBundleItem(SkuBundleItem SkuBundleItem)
setSkuBundleItem in interface DiscreteOrderItemSkuBundleItem - public String getName()
OrderItemgetName in interface OrderItemgetName in class OrderItemImplpublic Order getOrder()
OrderItemgetOrder in interface OrderItemgetOrder in class OrderItemImplpublic boolean updateSaleAndRetailPrices()
OrderItemupdateSaleAndRetailPrices in interface OrderItemupdateSaleAndRetailPrices in class OrderItemImplpublic Map<String,String> getAdditionalAttributes()
DiscreteOrderItemgetAdditionalAttributes in interface DiscreteOrderItempublic void setAdditionalAttributes(Map<String,String> additionalAttributes)
DiscreteOrderItemsetAdditionalAttributes in interface DiscreteOrderItemadditionalAttributes - the map of attributespublic Money getBaseRetailPrice()
getBaseRetailPrice in interface DiscreteOrderItempublic void setBaseRetailPrice(Money baseRetailPrice)
setBaseRetailPrice in interface DiscreteOrderItempublic Money getBaseSalePrice()
getBaseSalePrice in interface DiscreteOrderItempublic void setBaseSalePrice(Money baseSalePrice)
setBaseSalePrice in interface DiscreteOrderItempublic List<DiscreteOrderItemFeePrice> getDiscreteOrderItemFeePrices()
getDiscreteOrderItemFeePrices in interface DiscreteOrderItempublic void setDiscreteOrderItemFeePrices(List<DiscreteOrderItemFeePrice> discreteOrderItemFeePrices)
setDiscreteOrderItemFeePrices in interface DiscreteOrderItemprotected Money convertToMoney(BigDecimal amount)
convertToMoney in class OrderItemImplpublic OrderItem clone()
clone in interface OrderItemclone in class OrderItemImplpublic boolean equals(Object obj)
equals in class OrderItemImplpublic int hashCode()
hashCode in class OrderItemImplpublic boolean isDiscountingAllowed()
OrderItemisDiscountingAllowed in interface OrderItemisDiscountingAllowed in class OrderItemImplpublic BundleOrderItem findParentItem()
DiscreteOrderItemfindParentItem in interface DiscreteOrderItempublic boolean isSkuActive()
OrderItemisSkuActive in interface DiscreteOrderItemisSkuActive in interface OrderItemisSkuActive in class OrderItemImplCopyright © 2015. All Rights Reserved.