Class DependentItemDetails

java.lang.Object
com.broadleafcommerce.cart.client.domain.DependentItemDetails
All Implemented Interfaces:
Serializable

public class DependentItemDetails extends Object implements Serializable
Contains details to attach to a dependent CartItem. Should only be assigned to items within CartItem.getDependentCartItems().
See Also:
  • Constructor Details

    • DependentItemDetails

      public DependentItemDetails()
  • Method Details

    • getItemChoiceKey

      public String getItemChoiceKey()
      The key to use to relate to this CartItem to a configured product ItemChoice.
      Returns:
      The key to use to relate to this CartItem to a configured product ItemChoice.
    • getItemChoiceOverridePrice

      public javax.money.MonetaryAmount getItemChoiceOverridePrice()
      In the case of a SpecificItemChoice, this will be populated with the override price of the parent ItemChoice.
      Returns:
      The override price of this item's parent ItemChoice
    • getItemChoicePricingKey

      public String getItemChoicePricingKey()
      In the case of a SpecificItemChoice, this will be populated with the pricing key of the parent ItemChoice.
      Returns:
      The pricing key of this item's parent ItemChoice, usually a UUID
    • getAdditionalItemPricing

      @Nullable public AdditionalItemPricing getAdditionalItemPricing()
      Dictates how the dependent item should be priced.
      Returns:
      Dictates how the dependent item should be priced.
    • getVariantPricing

      Pricing overrides if specific variants of the main product this item belongs to are added to the cart.
      Returns:
      Pricing overrides if specific variants of the main product are added to the cart.
    • setItemChoiceKey

      public void setItemChoiceKey(String itemChoiceKey)
      The key to use to relate to this CartItem to a configured product ItemChoice.
      Parameters:
      itemChoiceKey - The key to use to relate to this CartItem to a configured product ItemChoice.
    • setItemChoiceOverridePrice

      public void setItemChoiceOverridePrice(javax.money.MonetaryAmount itemChoiceOverridePrice)
      In the case of a SpecificItemChoice, this will be populated with the override price of the parent ItemChoice.
      Parameters:
      itemChoiceOverridePrice - The override price of this item's parent ItemChoice
    • setItemChoicePricingKey

      public void setItemChoicePricingKey(String itemChoicePricingKey)
      In the case of a SpecificItemChoice, this will be populated with the pricing key of the parent ItemChoice.
      Parameters:
      itemChoicePricingKey - The pricing key of this item's parent ItemChoice, usually a UUID
    • setAdditionalItemPricing

      public void setAdditionalItemPricing(@Nullable AdditionalItemPricing additionalItemPricing)
      Dictates how the dependent item should be priced.
      Parameters:
      additionalItemPricing - Dictates how the dependent item should be priced.
    • setVariantPricing

      public void setVariantPricing(Map<String,SpecificItemChoiceVariantPricingOverride> variantPricing)
      Pricing overrides if specific variants of the main product this item belongs to are added to the cart.
      Parameters:
      variantPricing - Pricing overrides if specific variants of the main product are added to the cart.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object