Class DependentItemDetails
java.lang.Object
com.broadleafcommerce.cart.client.domain.DependentItemDetails
- All Implemented Interfaces:
Serializable
Contains details to attach to a dependent
CartItem
. Should only be assigned to items
within CartItem.getDependentCartItems()
.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Dictates how the dependent item should be priced.The key to use to relate to thisCartItem
to a configured productItemChoice
.javax.money.MonetaryAmount
In the case of aSpecificItemChoice
, this will be populated with the override price of the parentItemChoice
.In the case of aSpecificItemChoice
, this will be populated with the pricing key of the parentItemChoice
.Pricing overrides if specific variants of the main product this item belongs to are added to the cart.int
hashCode()
void
setAdditionalItemPricing
(AdditionalItemPricing additionalItemPricing) Dictates how the dependent item should be priced.void
setItemChoiceKey
(String itemChoiceKey) The key to use to relate to thisCartItem
to a configured productItemChoice
.void
setItemChoiceOverridePrice
(javax.money.MonetaryAmount itemChoiceOverridePrice) In the case of aSpecificItemChoice
, this will be populated with the override price of the parentItemChoice
.void
setItemChoicePricingKey
(String itemChoicePricingKey) In the case of aSpecificItemChoice
, this will be populated with the pricing key of the parentItemChoice
.void
setVariantPricing
(Map<String, SpecificItemChoiceVariantPricingOverride> variantPricing) Pricing overrides if specific variants of the main product this item belongs to are added to the cart.toString()
-
Constructor Details
-
DependentItemDetails
public DependentItemDetails()
-
-
Method Details
-
getItemChoiceKey
The key to use to relate to thisCartItem
to a configured productItemChoice
.- Returns:
- The key to use to relate to this
CartItem
to a configured productItemChoice
.
-
getItemChoiceOverridePrice
public javax.money.MonetaryAmount getItemChoiceOverridePrice()In the case of aSpecificItemChoice
, this will be populated with the override price of the parentItemChoice
.- Returns:
- The override price of this item's parent
ItemChoice
-
getItemChoicePricingKey
In the case of aSpecificItemChoice
, this will be populated with the pricing key of the parentItemChoice
.- Returns:
- The pricing key of this item's parent
ItemChoice
, usually a UUID
-
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
The key to use to relate to thisCartItem
to a configured productItemChoice
.- Parameters:
itemChoiceKey
- The key to use to relate to thisCartItem
to a configured productItemChoice
.
-
setItemChoiceOverridePrice
public void setItemChoiceOverridePrice(javax.money.MonetaryAmount itemChoiceOverridePrice) In the case of aSpecificItemChoice
, this will be populated with the override price of the parentItemChoice
.- Parameters:
itemChoiceOverridePrice
- The override price of this item's parentItemChoice
-
setItemChoicePricingKey
In the case of aSpecificItemChoice
, this will be populated with the pricing key of the parentItemChoice
.- Parameters:
itemChoicePricingKey
- The pricing key of this item's parentItemChoice
, usually a UUID
-
setAdditionalItemPricing
Dictates how the dependent item should be priced.- Parameters:
additionalItemPricing
- Dictates how the dependent item should be priced.
-
setVariantPricing
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
-
canEqual
-
hashCode
public int hashCode() -
toString
-