Class AdditionalItemPricing
- All Implemented Interfaces:
 Serializable
- See Also:
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanjavax.money.MonetaryAmountThe price of this choice, only relevant when the pricing model of this choice isADD_TO_PARENT.System-wide unique identifier to configure specific pricing for the choice.The type of the item to which this pricing belongs, for exampleSKUorPRICING_KEY.inthashCode()voidsetOverridePrice(javax.money.MonetaryAmount overridePrice) The price of this choice, only relevant when the pricing model of this choice isADD_TO_PARENT.voidsetPricingKey(String pricingKey) System-wide unique identifier to configure specific pricing for the choice.voidsetPricingTargetType(String pricingTargetType) The type of the item to which this pricing belongs, for exampleSKUorPRICING_KEY.toString() 
- 
Constructor Details
- 
AdditionalItemPricing
 - 
AdditionalItemPricing
public AdditionalItemPricing() 
 - 
 - 
Method Details
- 
getOverridePrice
public javax.money.MonetaryAmount getOverridePrice()The price of this choice, only relevant when the pricing model of this choice is
ADD_TO_PARENT. If no pricing is specified here, the price of the target product, variant, or selected product from the target category will be used.If this is a
SPECIFIC_PRODUCTSorSPECIFIC_VARIANTStyped item choice, then any price set here will override any item pricing set in the specific choice.- Returns:
 - the price of this add-on
 
 - 
getPricingKey
System-wide unique identifier to configure specific pricing for the choice. Relevant if pricing data is managed in a separate system or data store, like the Broadleaf pricing services. Only relevant if the pricing model isADD_TO_PARENT.- Returns:
 - a unique key to identify this add-on
 
 - 
getPricingTargetType
The type of the item to which this pricing belongs, for exampleSKUorPRICING_KEY.- Returns:
 - The type of the item to which this pricing belongs.
 
 - 
setOverridePrice
public void setOverridePrice(javax.money.MonetaryAmount overridePrice) The price of this choice, only relevant when the pricing model of this choice is
ADD_TO_PARENT. If no pricing is specified here, the price of the target product, variant, or selected product from the target category will be used.If this is a
SPECIFIC_PRODUCTSorSPECIFIC_VARIANTStyped item choice, then any price set here will override any item pricing set in the specific choice.- Parameters:
 overridePrice- the price of this add-on
 - 
setPricingKey
System-wide unique identifier to configure specific pricing for the choice. Relevant if pricing data is managed in a separate system or data store, like the Broadleaf pricing services. Only relevant if the pricing model isADD_TO_PARENT.- Parameters:
 pricingKey- a unique key to identify this add-on (usually a UUID)
 - 
setPricingTargetType
The type of the item to which this pricing belongs, for exampleSKUorPRICING_KEY.- Parameters:
 targetType- The type of the item to which this pricing belongs.
 - 
equals
 - 
canEqual
 - 
hashCode
public int hashCode() - 
toString
 
 -