Class BundleOrderItemImpl

java.lang.Object
org.broadleafcommerce.core.order.domain.OrderItemImpl
org.broadleafcommerce.core.order.domain.BundleOrderItemImpl
All Implemented Interfaces:
Serializable, Cloneable, org.broadleafcommerce.common.admin.domain.AdminMainEntity, org.broadleafcommerce.common.copy.MultiTenantCloneable<OrderItem>, org.broadleafcommerce.common.currency.util.CurrencyCodeIdentifiable, BundleOrderItem, OrderItem, OrderItemContainer, SkuAccessor

@Deprecated @Entity public class BundleOrderItemImpl extends OrderItemImpl implements BundleOrderItem
Deprecated.
See Also:
  • Field Details

    • discreteOrderItems

      protected List<DiscreteOrderItem> discreteOrderItems
      Deprecated.
    • bundleOrderItemFeePrices

      protected List<BundleOrderItemFeePrice> bundleOrderItemFeePrices
      Deprecated.
    • baseRetailPrice

      protected BigDecimal baseRetailPrice
      Deprecated.
    • baseSalePrice

      protected BigDecimal baseSalePrice
      Deprecated.
    • sku

      protected Sku sku
      Deprecated.
    • productBundle

      protected ProductBundle productBundle
      Deprecated.
    • deproxiedSku

      protected Sku deproxiedSku
      Deprecated.
    • deproxiedProductBundle

      protected ProductBundle deproxiedProductBundle
      Deprecated.
  • Constructor Details

    • BundleOrderItemImpl

      public BundleOrderItemImpl()
      Deprecated.
  • Method Details

    • getSku

      public Sku getSku()
      Deprecated.
      Description copied from interface: BundleOrderItem
      For BundleOrderItem created from a ProductBundle, this will represent the default sku of the product bundle.

      This can be null for implementations that programatically create product bundles.

      Specified by:
      getSku in interface BundleOrderItem
      Specified by:
      getSku in interface SkuAccessor
    • setSku

      public void setSku(Sku sku)
      Deprecated.
      Specified by:
      setSku in interface BundleOrderItem
    • getProductBundle

      public ProductBundle getProductBundle()
      Deprecated.
      Description copied from interface: BundleOrderItem
      Returns the associated ProductBundle or null if not applicable.

      If null, then this ProductBundle was manually created.

      Specified by:
      getProductBundle in interface BundleOrderItem
      Returns:
    • setProductBundle

      public void setProductBundle(ProductBundle productBundle)
      Deprecated.
      Description copied from interface: BundleOrderItem
      Sets the ProductBundle associated with this BundleOrderItem.
      Specified by:
      setProductBundle in interface BundleOrderItem
    • getOrderItems

      public List<? extends OrderItem> getOrderItems()
      Deprecated.
      Specified by:
      getOrderItems in interface OrderItemContainer
    • getAllowDiscountsOnChildItems

      public boolean getAllowDiscountsOnChildItems()
      Deprecated.
      Description copied from interface: OrderItemContainer
      Returns true if the contained items can be discounted.
      Specified by:
      getAllowDiscountsOnChildItems in interface OrderItemContainer
      Returns:
    • isPricingAtContainerLevel

      public boolean isPricingAtContainerLevel()
      Deprecated.
      Description copied from interface: OrderItemContainer
      Returns true if pricing operations are at the container level (as opposed to being the sum of the contained items)
      Specified by:
      isPricingAtContainerLevel in interface OrderItemContainer
      Returns:
    • isDiscountingAllowed

      public boolean isDiscountingAllowed()
      Deprecated.
      Description copied from interface: OrderItem
      If true, this item can be discounted..
      Specified by:
      isDiscountingAllowed in interface OrderItem
      Overrides:
      isDiscountingAllowed in class OrderItemImpl
    • getDiscreteOrderItems

      public List<DiscreteOrderItem> getDiscreteOrderItems()
      Deprecated.
      Specified by:
      getDiscreteOrderItems in interface BundleOrderItem
    • setDiscreteOrderItems

      public void setDiscreteOrderItems(List<DiscreteOrderItem> discreteOrderItems)
      Deprecated.
      Specified by:
      setDiscreteOrderItems in interface BundleOrderItem
    • getBundleOrderItemFeePrices

      public List<BundleOrderItemFeePrice> getBundleOrderItemFeePrices()
      Deprecated.
      Specified by:
      getBundleOrderItemFeePrices in interface BundleOrderItem
    • setBundleOrderItemFeePrices

      public void setBundleOrderItemFeePrices(List<BundleOrderItemFeePrice> bundleOrderItemFeePrices)
      Deprecated.
      Specified by:
      setBundleOrderItemFeePrices in interface BundleOrderItem
    • getTaxablePrice

      public org.broadleafcommerce.common.money.Money getTaxablePrice()
      Deprecated.
      Specified by:
      getTaxablePrice in interface BundleOrderItem
      Specified by:
      getTaxablePrice in interface OrderItem
      Overrides:
      getTaxablePrice in class OrderItemImpl
      Returns:
    • isTaxable

      public Boolean isTaxable()
      Deprecated.
      Description copied from interface: OrderItem
      Returns whether or not this item is taxable. If this flag is not set, it returns true by default
      Specified by:
      isTaxable in interface OrderItem
      Overrides:
      isTaxable in class OrderItemImpl
      Returns:
      the taxable flag. If null, returns true
    • shouldSumItems

      public boolean shouldSumItems()
      Deprecated.
      Specified by:
      shouldSumItems in interface BundleOrderItem
    • getRetailPrice

      public org.broadleafcommerce.common.money.Money getRetailPrice()
      Deprecated.
      Description copied from interface: OrderItem
      The retail price of the item that was added to the Order 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.
      Specified by:
      getRetailPrice in interface OrderItem
      Overrides:
      getRetailPrice in class OrderItemImpl
      Returns:
    • getSalePrice

      public org.broadleafcommerce.common.money.Money getSalePrice()
      Deprecated.
      Description copied from interface: OrderItem
      Returns the salePrice for this item. Note this method will return the lower of the retailPrice or salePrice. It will return the retailPrice instead of null.

      For SKU based pricing, a call to OrderItem.updateSaleAndRetailPrices() will ensure that the retailPrice being used is current.

      Specified by:
      getSalePrice in interface OrderItem
      Overrides:
      getSalePrice in class OrderItemImpl
      Returns:
    • getBaseRetailPrice

      public org.broadleafcommerce.common.money.Money getBaseRetailPrice()
      Deprecated.
      Specified by:
      getBaseRetailPrice in interface BundleOrderItem
    • setBaseRetailPrice

      public void setBaseRetailPrice(org.broadleafcommerce.common.money.Money baseRetailPrice)
      Deprecated.
      Specified by:
      setBaseRetailPrice in interface BundleOrderItem
    • getBaseSalePrice

      public org.broadleafcommerce.common.money.Money getBaseSalePrice()
      Deprecated.
      Specified by:
      getBaseSalePrice in interface BundleOrderItem
    • setBaseSalePrice

      public void setBaseSalePrice(org.broadleafcommerce.common.money.Money baseSalePrice)
      Deprecated.
      Specified by:
      setBaseSalePrice in interface BundleOrderItem
    • hasAdjustedItems

      public boolean hasAdjustedItems()
      Deprecated.
      Specified by:
      hasAdjustedItems in interface BundleOrderItem
    • updateSaleAndRetailPrices

      public boolean updateSaleAndRetailPrices()
      Deprecated.
      Description copied from interface: OrderItem
      Used to reset the base price of the item that the pricing engine uses.

      Generally, this will update the retailPrice and salePrice based on the corresponding value in the SKU.

      If the retail or sale price was manually set, this method will not change those prices.

      For non-manually set prices, prices can change based on system activities such as locale changes and customer authentication, this method is used to ensure that all cart items reflect the current base price before executing other pricing / adjustment operations.

      Other known scenarios that can effect the base prices include the automatic bundling or loading a stale cart from the database.

      See notes in subclasses for specific behavior of this method.

      Specified by:
      updateSaleAndRetailPrices in interface OrderItem
      Overrides:
      updateSaleAndRetailPrices in class OrderItemImpl
      Returns:
      true if the base prices changed as a result of this call
    • equals

      public boolean equals(Object obj)
      Deprecated.
      Overrides:
      equals in class OrderItemImpl
    • getProduct

      public Product getProduct()
      Deprecated.
      Description copied from interface: BundleOrderItem
      Same as getProductBundle.
      Specified by:
      getProduct in interface BundleOrderItem
    • convertToMoney

      protected org.broadleafcommerce.common.money.Money convertToMoney(BigDecimal amount)
      Deprecated.
      Overrides:
      convertToMoney in class OrderItemImpl
    • getTotalPrice

      public org.broadleafcommerce.common.money.Money getTotalPrice()
      Deprecated.
      Description copied from interface: OrderItem
      Returns the total price to be paid for this order item including item-level adjustments.

      It does not include the effect of order level adjustments. Calculated by looping through the orderItemPriceDetails

      Specified by:
      getTotalPrice in interface OrderItem
      Overrides:
      getTotalPrice in class OrderItemImpl
      Returns:
    • isSkuActive

      public boolean isSkuActive()
      Deprecated.
      Description copied from interface: OrderItem
      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:
      isSkuActive in interface OrderItem
      Overrides:
      isSkuActive in class OrderItemImpl
    • clone

      public OrderItem clone()
      Deprecated.
      Specified by:
      clone in interface OrderItem
      Overrides:
      clone in class OrderItemImpl
    • hashCode

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class OrderItemImpl
    • createOrRetrieveCopyInstance

      public org.broadleafcommerce.common.copy.CreateResponse<BundleOrderItem> createOrRetrieveCopyInstance(org.broadleafcommerce.common.copy.MultiTenantCopyContext context) throws CloneNotSupportedException
      Deprecated.
      Specified by:
      createOrRetrieveCopyInstance in interface org.broadleafcommerce.common.copy.MultiTenantCloneable<OrderItem>
      Overrides:
      createOrRetrieveCopyInstance in class OrderItemImpl
      Throws:
      CloneNotSupportedException