Interface BasePriceableTarget
- All Known Implementing Classes:
- PriceableTarget,- PriceableTargetRef
public interface BasePriceableTarget
Defines the essential properties of a priceable target to make comparisons and shared logic
 easier between 
PriceableTarget and PriceableTargetRef.- Since:
- Pricing Client 2.0.3
- Author:
- Nathan Moore (nathandmoore)
- See Also:
- 
Method SummaryModifier and TypeMethodDescriptionGets the characteristics of the target, e.g.,capacity:128GB.Gets the identifier of the target.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.voidsetCharacteristics(Map<String, String> characteristics) Sets the characteristics of the target, e.g., size: red, capacity: 128GB.voidsetTargetId(String id) Sets the identifier of the target.voidsetTargetType(String type) Sets the type of the target, e.g., SKU or PRICING_KEY.voidsetTermDurationLength(Integer durationLength) Sets the term duration length of the target, e.g., 12, 24, 36.voidsetTermDurationType(String type) 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.
- 
Method Details- 
getTargetIdString getTargetId()Gets the identifier of the target.- Returns:
- the identifier of the target.
 
- 
setTargetIdSets the identifier of the target.- Parameters:
- id- the identifier of the target.
 
- 
getTargetTypeString getTargetType()Gets the type of the target, e.g., SKU or PRICING_KEY.- Returns:
- the identifier of the target.
 
- 
setTargetTypeSets the type of the target, e.g., SKU or PRICING_KEY.- Parameters:
- type- the type of the target.
 
- 
getVendorRefString getVendorRef()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.- Returns:
- a reference to a vendor (e.g. vendorId or vendorCode)
 
- 
setVendorRefKey to external system indicating that this PriceableTarget is specific to a vendor.- Parameters:
- vendorRef- a reference to a vendor (e.g. vendorId or vendorCode)
 
- 
getTermDurationLengthInteger getTermDurationLength()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.- Returns:
- the term duration length of the price desired for the target.
 
- 
setTermDurationLengthSets the term duration length of the target, e.g., 12, 24, 36.- Parameters:
- durationLength- the term duration length of the price desired for the target.
 
- 
getTermDurationTypeString getTermDurationType()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.- Returns:
- the term duration type of the price desired for the target
 
- 
setTermDurationTypeSets the term duration type of the target, e.g., DAYS, MONTHS, YEARS.- Parameters:
- type- the term duration type of the price desired for the target
 
- 
getCharacteristicsGets 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.- Returns:
- the characteristics of the target
 
- 
setCharacteristicsSets the characteristics of the target, e.g., size: red, capacity: 128GB.- Parameters:
- characteristics- the characteristics of the target
 
 
-