@Entity public class BundleOrderItemImpl extends OrderItemImpl implements BundleOrderItem
| Modifier and Type | Class and Description |
|---|---|
static class |
BundleOrderItemImpl.Presentation |
| Modifier and Type | Field and Description |
|---|---|
protected BigDecimal |
baseRetailPrice |
protected BigDecimal |
baseSalePrice |
protected List<BundleOrderItemFeePrice> |
bundleOrderItemFeePrices |
protected List<DiscreteOrderItem> |
discreteOrderItems |
protected ProductBundle |
productBundle |
protected Sku |
sku |
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 |
|---|
BundleOrderItemImpl() |
| Modifier and Type | Method and Description |
|---|---|
OrderItem |
clone() |
protected Money |
convertToMoney(BigDecimal amount) |
boolean |
equals(Object obj) |
boolean |
getAllowDiscountsOnChildItems()
Returns true if the contained items can be discounted.
|
Money |
getBaseRetailPrice() |
Money |
getBaseSalePrice() |
List<BundleOrderItemFeePrice> |
getBundleOrderItemFeePrices() |
List<DiscreteOrderItem> |
getDiscreteOrderItems() |
List<? extends OrderItem> |
getOrderItems() |
Product |
getProduct()
Same as getProductBundle.
|
ProductBundle |
getProductBundle()
Returns the associated ProductBundle or null if not applicable.
|
Money |
getRetailPrice()
The retail price of the item that was added to the
Order at the time that this was added. |
Money |
getSalePrice()
Returns the salePrice for this item.
|
Sku |
getSku()
For BundleOrderItem created from a ProductBundle, this will represent the default sku of
the product bundle.
|
Money |
getTaxablePrice() |
Money |
getTotalPrice()
Returns the total price to be paid for this order item including item-level adjustments.
|
boolean |
hasAdjustedItems() |
int |
hashCode() |
boolean |
isDiscountingAllowed()
If true, this item can be discounted..
|
boolean |
isPricingAtContainerLevel()
Returns true if pricing operations are at the container level (as opposed to being
the sum of the contained items)
|
boolean |
isSkuActive()
Returns a boolean indicating whether this sku is active.
|
Boolean |
isTaxable()
Returns whether or not this item is taxable.
|
void |
setBaseRetailPrice(Money baseRetailPrice) |
void |
setBaseSalePrice(Money baseSalePrice) |
void |
setBundleOrderItemFeePrices(List<BundleOrderItemFeePrice> bundleOrderItemFeePrices) |
void |
setDiscreteOrderItems(List<DiscreteOrderItem> discreteOrderItems) |
void |
setProductBundle(ProductBundle productBundle)
Sets the ProductBundle associated with this BundleOrderItem.
|
void |
setSku(Sku sku) |
boolean |
shouldSumItems() |
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, getName, getOrder, getOrderItemAdjustments, getOrderItemAttributes, getOrderItemPriceDetails, getOrderItemQualifiers, getOrderItemType, getParentOrderItem, getPersonalMessage, getPrice, getPriceBeforeAdjustments, getQuantity, getTotalAdjustmentValue, getTotalPriceBeforeAdjustments, isAParentOf, isInCategory, isRetailPriceOverride, isSalePriceOverride, removeAllAdjustments, removeAllCandidateItemOffers, setCandidateItemOffers, setCategory, setChildOrderItems, setDiscountingAllowed, setGiftWrapOrderItem, setId, setName, setOrder, setOrderItemAdjustments, setOrderItemAttributes, setOrderItemPriceDetails, setOrderItemQualifiers, setOrderItemType, setParentOrderItem, setPersonalMessage, setPrice, setQuantity, setRetailPrice, setRetailPriceOverride, setSalePrice, setSalePriceOverride, setTaxablefinalize, getClass, notify, notifyAll, toString, wait, wait, waitaddCandidateItemOffer, assignFinalPrice, finalizePrice, getAdjustmentValue, getAverageAdjustmentValue, getAveragePrice, getCandidateItemOffers, getCategory, getChildOrderItems, getGiftWrapOrderItem, getId, getIsDiscounted, getIsOnSale, getName, getOrder, getOrderItemAdjustments, getOrderItemAttributes, getOrderItemPriceDetails, getOrderItemQualifiers, getOrderItemType, getParentOrderItem, getPersonalMessage, getPrice, getPriceBeforeAdjustments, getQuantity, getTotalAdjustmentValue, getTotalPriceBeforeAdjustments, isAParentOf, isInCategory, isRetailPriceOverride, isSalePriceOverride, removeAllAdjustments, removeAllCandidateItemOffers, setCandidateItemOffers, setCategory, setChildOrderItems, setDiscountingAllowed, setGiftWrapOrderItem, setId, setName, setOrder, setOrderItemAdjustments, setOrderItemAttributes, setOrderItemPriceDetails, setOrderItemQualifiers, setOrderItemType, setParentOrderItem, setPersonalMessage, setPrice, setQuantity, setRetailPrice, setRetailPriceOverride, setSalePrice, setSalePriceOverride, setTaxableprotected List<DiscreteOrderItem> discreteOrderItems
protected List<BundleOrderItemFeePrice> bundleOrderItemFeePrices
protected BigDecimal baseRetailPrice
protected BigDecimal baseSalePrice
protected Sku sku
protected ProductBundle productBundle
public Sku getSku()
BundleOrderItemgetSku in interface BundleOrderItemgetSku in interface SkuAccessorpublic void setSku(Sku sku)
setSku in interface BundleOrderItempublic ProductBundle getProductBundle()
BundleOrderItemgetProductBundle in interface BundleOrderItempublic void setProductBundle(ProductBundle productBundle)
BundleOrderItemsetProductBundle in interface BundleOrderItempublic List<? extends OrderItem> getOrderItems()
getOrderItems in interface OrderItemContainerpublic boolean getAllowDiscountsOnChildItems()
OrderItemContainergetAllowDiscountsOnChildItems in interface OrderItemContainerpublic boolean isPricingAtContainerLevel()
OrderItemContainerisPricingAtContainerLevel in interface OrderItemContainerpublic boolean isDiscountingAllowed()
OrderItemisDiscountingAllowed in interface OrderItemisDiscountingAllowed in class OrderItemImplpublic List<DiscreteOrderItem> getDiscreteOrderItems()
getDiscreteOrderItems in interface BundleOrderItempublic void setDiscreteOrderItems(List<DiscreteOrderItem> discreteOrderItems)
setDiscreteOrderItems in interface BundleOrderItempublic List<BundleOrderItemFeePrice> getBundleOrderItemFeePrices()
getBundleOrderItemFeePrices in interface BundleOrderItempublic void setBundleOrderItemFeePrices(List<BundleOrderItemFeePrice> bundleOrderItemFeePrices)
setBundleOrderItemFeePrices in interface BundleOrderItempublic Money getTaxablePrice()
getTaxablePrice in interface BundleOrderItemgetTaxablePrice in interface OrderItemgetTaxablePrice in class OrderItemImplpublic Boolean isTaxable()
OrderItemisTaxable in interface OrderItemisTaxable in class OrderItemImplpublic boolean shouldSumItems()
shouldSumItems in interface BundleOrderItempublic Money getRetailPrice()
OrderItemOrder at the time that this was added. This is preferable
to use as opposed to checking the price of the item that was added from the catalog domain (like in
DiscreteOrderItem, using DiscreteOrderItem.getSku()'s retail price) since the price in the catalog
domain could have changed since the item was added to the Order.getRetailPrice in interface OrderItemgetRetailPrice in class OrderItemImplpublic Money getSalePrice()
OrderItemOrderItem.updateSaleAndRetailPrices() will ensure that the
retailPrice being used is current.getSalePrice in interface OrderItemgetSalePrice in class OrderItemImplpublic Money getBaseRetailPrice()
getBaseRetailPrice in interface BundleOrderItempublic void setBaseRetailPrice(Money baseRetailPrice)
setBaseRetailPrice in interface BundleOrderItempublic Money getBaseSalePrice()
getBaseSalePrice in interface BundleOrderItempublic void setBaseSalePrice(Money baseSalePrice)
setBaseSalePrice in interface BundleOrderItempublic boolean hasAdjustedItems()
hasAdjustedItems in interface BundleOrderItempublic boolean updateSaleAndRetailPrices()
OrderItemupdateSaleAndRetailPrices in interface OrderItemupdateSaleAndRetailPrices in class OrderItemImplpublic boolean equals(Object obj)
equals in class OrderItemImplpublic Product getProduct()
BundleOrderItemgetProduct in interface BundleOrderItemprotected Money convertToMoney(BigDecimal amount)
convertToMoney in class OrderItemImplpublic Money getTotalPrice()
OrderItemgetTotalPrice in interface OrderItemgetTotalPrice in class OrderItemImplpublic boolean isSkuActive()
OrderItemisSkuActive in interface OrderItemisSkuActive in class OrderItemImplpublic OrderItem clone()
clone in interface OrderItemclone in class OrderItemImplpublic int hashCode()
hashCode in class OrderItemImplCopyright © 2014. All Rights Reserved.