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 boolean
boolean
Gets 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.int
hashCode()
void
setCharacteristics
(Map<String, String> characteristics) Sets the characteristics of the target, e.g., size: red, capacity: 128GB.void
setTargetId
(String targetId) Sets the identifier of the target.void
setTargetQuantity
(Integer targetQuantity) The quantity of the entity to be priced.void
setTargetType
(String targetType) Sets the type of the target, e.g., SKU or PRICING_KEY.void
setTermDurationLength
(Integer termDurationLength) Sets the term duration length of the target, e.g., 12, 24, 36.void
setTermDurationType
(String termDurationType) Sets the term duration type of the target, e.g., DAYS, MONTHS, YEARS.void
setVendorRef
(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:BasePriceableTarget
Gets the identifier of the target.- Specified by:
getTargetId
in interfaceBasePriceableTarget
- Returns:
- the identifier of the target.
- See Also:
-
getTargetType
Description copied from interface:BasePriceableTarget
Gets the type of the target, e.g., SKU or PRICING_KEY.- Specified by:
getTargetType
in 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:BasePriceableTarget
Key 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:
getVendorRef
in interfaceBasePriceableTarget
- Returns:
- a reference to a vendor (e.g. vendorId or vendorCode)
- See Also:
-
getTermDurationLength
Description copied from interface:BasePriceableTarget
Gets 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:
getTermDurationLength
in 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:BasePriceableTarget
Gets 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:
getTermDurationType
in 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:BasePriceableTarget
Gets 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:
getCharacteristics
in interfaceBasePriceableTarget
- Returns:
- the characteristics of the target
- Since:
- Pricing Client 2.0.3
- See Also:
-
setTargetId
Description copied from interface:BasePriceableTarget
Sets the identifier of the target.- Specified by:
setTargetId
in interfaceBasePriceableTarget
- Parameters:
targetId
- the identifier of the target.- See Also:
-
setTargetType
Description copied from interface:BasePriceableTarget
Sets the type of the target, e.g., SKU or PRICING_KEY.- Specified by:
setTargetType
in 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:BasePriceableTarget
Key to external system indicating that this PriceableTarget is specific to a vendor.- Specified by:
setVendorRef
in interfaceBasePriceableTarget
- Parameters:
vendorRef
- a reference to a vendor (e.g. vendorId or vendorCode)- See Also:
-
setTermDurationLength
Description copied from interface:BasePriceableTarget
Sets the term duration length of the target, e.g., 12, 24, 36.- Specified by:
setTermDurationLength
in 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:BasePriceableTarget
Sets the term duration type of the target, e.g., DAYS, MONTHS, YEARS.- Specified by:
setTermDurationType
in 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:BasePriceableTarget
Sets the characteristics of the target, e.g., size: red, capacity: 128GB.- Specified by:
setCharacteristics
in interfaceBasePriceableTarget
- Parameters:
characteristics
- the characteristics of the target- Since:
- Pricing Client 2.0.3
- See Also:
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-