Class PriceableTargetRef
java.lang.Object
com.broadleafcommerce.pricing.client.domain.PriceableTargetRef
- All Implemented Interfaces:
BasePriceableTarget,Serializable
This represents a slimmed-down version of
PriceableTarget that contains only that
information which can be used to uniquely identify a target.- Author:
- Nathan Moore (nathanmoore)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanGets the characteristics of the target, e.g.,capacity:128GB.Gets the identifier of the target.The quantity of the entity to be priced.Gets the type of the target, e.g., SKU or PRICING_KEY.Gets the term duration length of the target, e.g., 12, 24, 36.Gets the term duration type of the target, e.g., DAYS, MONTHS, YEARS.Key to external system indicating that this PriceableTarget is specific to a vendor.inthashCode()voidsetCharacteristics(Map<String, String> characteristics) Sets the characteristics of the target, e.g., size: red, capacity: 128GB.voidsetTargetId(String targetId) Sets the identifier of the target.voidsetTargetQuantity(Integer targetQuantity) The quantity of the entity to be priced.voidsetTargetType(String targetType) Sets the type of the target, e.g., SKU or PRICING_KEY.voidsetTermDurationLength(Integer termDurationLength) Sets the term duration length of the target, e.g., 12, 24, 36.voidsetTermDurationType(String termDurationType) Sets the term duration type of the target, e.g., DAYS, MONTHS, YEARS.voidsetVendorRef(String vendorRef) Key to external system indicating that this PriceableTarget is specific to a vendor.toString()
-
Constructor Details
-
PriceableTargetRef
public PriceableTargetRef()
-
-
Method Details
-
getTargetId
Description copied from interface:BasePriceableTargetGets the identifier of the target.- Specified by:
getTargetIdin interfaceBasePriceableTarget- Returns:
- the identifier of the target.
- See Also:
-
getTargetType
Description copied from interface:BasePriceableTargetGets the type of the target, e.g., SKU or PRICING_KEY.- Specified by:
getTargetTypein interfaceBasePriceableTarget- Returns:
- the identifier of the target.
- See Also:
-
getTargetQuantity
The quantity of the entity to be priced. This is used to determine when a price data tier should apply as the best overall price. -
getVendorRef
Description copied from interface:BasePriceableTargetKey to external system indicating that this PriceableTarget is specific to a vendor. This can be populated to support security controls based on a vendor based claim.- Specified by:
getVendorRefin interfaceBasePriceableTarget- Returns:
- a reference to a vendor (e.g. vendorId or vendorCode)
- See Also:
-
getTermDurationLength
Description copied from interface:BasePriceableTargetGets the term duration length of the target, e.g., 12, 24, 36. This indicates that the caller wants a specific price for the given term length and prices should be filtered accordingly.- Specified by:
getTermDurationLengthin interfaceBasePriceableTarget- Returns:
- the term duration length of the price desired for the target.
- Since:
- Pricing Client 2.0.3
- See Also:
-
getTermDurationType
Description copied from interface:BasePriceableTargetGets the term duration type of the target, e.g., DAYS, MONTHS, YEARS. This indicates that the caller wants a specific price for the given term type and prices should be filtered accordingly.- Specified by:
getTermDurationTypein interfaceBasePriceableTarget- Returns:
- the term duration type of the price desired for the target
- Since:
- Pricing Client 2.0.3
- See Also:
-
getCharacteristics
Description copied from interface:BasePriceableTargetGets the characteristics of the target, e.g.,capacity:128GB. This indicates that the caller wants a specific price targeting these characteristics not just a base or default price for the target item. This is useful when the target is a flattened Product with no variations but still has configurable options that could drive pricing.- Specified by:
getCharacteristicsin interfaceBasePriceableTarget- Returns:
- the characteristics of the target
- Since:
- Pricing Client 2.0.3
- See Also:
-
setTargetId
Description copied from interface:BasePriceableTargetSets the identifier of the target.- Specified by:
setTargetIdin interfaceBasePriceableTarget- Parameters:
targetId- the identifier of the target.- See Also:
-
setTargetType
Description copied from interface:BasePriceableTargetSets the type of the target, e.g., SKU or PRICING_KEY.- Specified by:
setTargetTypein interfaceBasePriceableTarget- Parameters:
targetType- the type of the target.- See Also:
-
setTargetQuantity
The quantity of the entity to be priced. This is used to determine when a price data tier should apply as the best overall price. -
setVendorRef
Description copied from interface:BasePriceableTargetKey to external system indicating that this PriceableTarget is specific to a vendor.- Specified by:
setVendorRefin interfaceBasePriceableTarget- Parameters:
vendorRef- a reference to a vendor (e.g. vendorId or vendorCode)- See Also:
-
setTermDurationLength
Description copied from interface:BasePriceableTargetSets the term duration length of the target, e.g., 12, 24, 36.- Specified by:
setTermDurationLengthin interfaceBasePriceableTarget- Parameters:
termDurationLength- the term duration length of the price desired for the target.- Since:
- Pricing Client 2.0.3
- See Also:
-
setTermDurationType
Description copied from interface:BasePriceableTargetSets the term duration type of the target, e.g., DAYS, MONTHS, YEARS.- Specified by:
setTermDurationTypein interfaceBasePriceableTarget- Parameters:
termDurationType- the term duration type of the price desired for the target- Since:
- Pricing Client 2.0.3
- See Also:
-
setCharacteristics
Description copied from interface:BasePriceableTargetSets the characteristics of the target, e.g., size: red, capacity: 128GB.- Specified by:
setCharacteristicsin interfaceBasePriceableTarget- Parameters:
characteristics- the characteristics of the target- Since:
- Pricing Client 2.0.3
- See Also:
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-