Interface DiscreteOrderItem
- All Superinterfaces:
Cloneable,org.broadleafcommerce.common.copy.MultiTenantCloneable<OrderItem>,OrderItem,Serializable,SkuAccessor
- All Known Subinterfaces:
DynamicPriceDiscreteOrderItem,GiftWrapOrderItem
- All Known Implementing Classes:
DiscreteOrderItemImpl,DynamicPriceDiscreteOrderItemImpl,GiftWrapOrderItemImpl
-
Method Summary
Modifier and TypeMethodDescriptionFor items that are part of a bundle, this method will return the parent bundle item.Deprecated.use getOrderItemAttributes insteadorg.broadleafcommerce.common.money.Moneyorg.broadleafcommerce.common.money.MoneyIf this item is part of a bundle, this method will return the containing bundle item.getSku()If this item is part of a bundle that was created via a ProductBundle, then this method returns a reference to the corresponding SkuBundleItem.org.broadleafcommerce.common.money.MoneybooleanReturns a boolean indicating whether this sku is active.voidsetAdditionalAttributes(Map<String, String> additionalAttributes) Deprecated.use setOrderItemAttributes insteadvoidsetBaseRetailPrice(org.broadleafcommerce.common.money.Money baseRetailPrice) voidsetBaseSalePrice(org.broadleafcommerce.common.money.Money baseSalePrice) voidsetBundleOrderItem(BundleOrderItem bundleOrderItem) Sets the parent bundle item.voidsetDiscreteOrderItemFeePrices(List<DiscreteOrderItemFeePrice> orderItemFeePrices) voidsetProduct(Product product) voidvoidsetSkuBundleItem(SkuBundleItem skuBundleItem) Sets the associated skuBundleItem.Methods inherited from interface org.broadleafcommerce.common.copy.MultiTenantCloneable
createOrRetrieveCopyInstanceMethods inherited from interface org.broadleafcommerce.core.order.domain.OrderItem
addCandidateItemOffer, assignFinalPrice, clone, finalizePrice, getAdjustmentValue, getAuditable, getAverageAdjustmentValue, getAveragePrice, getCandidateItemOffers, getCartMessages, getCategory, getChildOrderItems, getFutureCreditTotalAdjustmentValue, getFutureCreditTotalAdjustmentValue, getGiftWrapOrderItem, getHasValidationError, getId, getIsDiscounted, getIsOnSale, getName, getOrder, getOrderItemAdjustments, getOrderItemAttributes, getOrderItemPriceDetails, getOrderItemQualifiers, getOrderItemType, getParentOrderItem, getPersonalMessage, getPrice, getPriceBeforeAdjustments, getPriceBeforeAdjustments, getProratedOrderItemAdjustments, getQuantity, getRetailPrice, getSalePrice, getTotalAdjustmentValue, getTotalAdjustmentValue, getTotalPrice, getTotalPrice, getTotalPriceBeforeAdjustments, isAParentOf, isChildOrderItem, isDiscountingAllowed, isInCategory, isRetailPriceOverride, isSalePriceOverride, isTaxable, removeAllAdjustments, removeAllCandidateItemOffers, setAuditable, setCandidateItemOffers, setCartMessages, setCategory, setChildOrderItems, setDiscountingAllowed, setGiftWrapOrderItem, setHasValidationError, setId, setName, setOrder, setOrderItemAdjustments, setOrderItemAttributes, setOrderItemPriceDetails, setOrderItemQualifiers, setOrderItemType, setParentOrderItem, setPersonalMessage, setPrice, setProratedOrderItemAdjustments, setQuantity, setRetailPrice, setRetailPriceOverride, setSalePrice, setSalePriceOverride, setTaxable, updateSaleAndRetailPrices
-
Method Details
-
getSku
Sku getSku()- Specified by:
getSkuin interfaceSkuAccessor
-
setSku
-
getProduct
Product getProduct() -
setProduct
-
getBundleOrderItem
BundleOrderItem getBundleOrderItem()If this item is part of a bundle, this method will return the containing bundle item.- Returns:
-
setBundleOrderItem
Sets the parent bundle item.Setting to null removes this item from the bundle.
- Parameters:
bundleOrderItem-
-
getSkuBundleItem
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.For manually created
For all others, this method returns null.
- Returns:
-
setSkuBundleItem
Sets the associated skuBundleItem.- Parameters:
skuBundleItem-
-
getTaxablePrice
org.broadleafcommerce.common.money.Money getTaxablePrice()- Specified by:
getTaxablePricein interfaceOrderItem- Returns:
-
getAdditionalAttributes
Deprecated.use getOrderItemAttributes insteadArbitrary attributes associated with the order item- Returns:
- the attributes
-
setAdditionalAttributes
Deprecated.use setOrderItemAttributes insteadArbitrary attributes associated with the order item- Parameters:
additionalAttributes- the map of attributes
-
getBaseRetailPrice
org.broadleafcommerce.common.money.Money getBaseRetailPrice() -
setBaseRetailPrice
void setBaseRetailPrice(org.broadleafcommerce.common.money.Money baseRetailPrice) -
getBaseSalePrice
org.broadleafcommerce.common.money.Money getBaseSalePrice() -
setBaseSalePrice
void setBaseSalePrice(org.broadleafcommerce.common.money.Money baseSalePrice) -
getDiscreteOrderItemFeePrices
List<DiscreteOrderItemFeePrice> getDiscreteOrderItemFeePrices() -
setDiscreteOrderItemFeePrices
-
findParentItem
BundleOrderItem findParentItem()For items that are part of a bundle, this method will return the parent bundle item. Otherwise, returns null.- Returns:
-
isSkuActive
boolean isSkuActive()Returns a boolean indicating whether this sku is active. This is used to determine whether a user the sku can add the sku to their cart.- Specified by:
isSkuActivein interfaceOrderItem
-