Interface DiscreteOrderItem

All Superinterfaces:
Cloneable, MultiTenantCloneable<OrderItem>, OrderItem, Serializable, SkuAccessor
All Known Subinterfaces:
DynamicPriceDiscreteOrderItem, GiftWrapOrderItem
All Known Implementing Classes:
DiscreteOrderItemImpl, DynamicPriceDiscreteOrderItemImpl, GiftWrapOrderItemImpl

public interface DiscreteOrderItem extends OrderItem, SkuAccessor, Cloneable
  • Method Details

    • getSku

      Sku getSku()
      Specified by:
      getSku in interface SkuAccessor
    • setSku

      void setSku(Sku sku)
    • getProduct

      Product getProduct()
    • setProduct

      void setProduct(Product product)
    • getBundleOrderItem

      BundleOrderItem getBundleOrderItem()
      If this item is part of a bundle, this method will return the containing bundle item.
      Returns:
    • setBundleOrderItem

      void setBundleOrderItem(BundleOrderItem bundleOrderItem)
      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

      void setSkuBundleItem(SkuBundleItem skuBundleItem)
      Sets the associated skuBundleItem.
      Parameters:
      skuBundleItem -
    • getTaxablePrice

      Money getTaxablePrice()
      Specified by:
      getTaxablePrice in interface OrderItem
      Returns:
    • getAdditionalAttributes

      Map<String,String> getAdditionalAttributes()
      Deprecated.
      use getOrderItemAttributes instead
      Arbitrary attributes associated with the order item
      Returns:
      the attributes
    • setAdditionalAttributes

      void setAdditionalAttributes(Map<String,String> additionalAttributes)
      Deprecated.
      use setOrderItemAttributes instead
      Arbitrary attributes associated with the order item
      Parameters:
      additionalAttributes - the map of attributes
    • getBaseRetailPrice

      Money getBaseRetailPrice()
    • setBaseRetailPrice

      void setBaseRetailPrice(Money baseRetailPrice)
    • getBaseSalePrice

      Money getBaseSalePrice()
    • setBaseSalePrice

      void setBaseSalePrice(Money baseSalePrice)
    • getDiscreteOrderItemFeePrices

      List<DiscreteOrderItemFeePrice> getDiscreteOrderItemFeePrices()
    • setDiscreteOrderItemFeePrices

      void setDiscreteOrderItemFeePrices(List<DiscreteOrderItemFeePrice> orderItemFeePrices)
    • 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:
      isSkuActive in interface OrderItem