Class PriceInfoContext
java.lang.Object
com.broadleafcommerce.pricing.client.domain.context.PriceInfoContext
- All Implemented Interfaces:
Serializable
DTO data needed when requesting
PriceInfos for PriceableTargets.- Author:
- Chad Harchar (charchar)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanOnly relevant for recurring PriceData.static final Stringprotected Set<PriceableTarget>PriceableTargetsto be priced.protected Set<PriceListRef>PriceListRefsto query for prices for the targets.protected javax.money.CurrencyUnitThis will be populated in the pricing service from thePriceContext.getCurrency().protected booleanWhether to excludePriceInfo.getPriceTypeDetails()from the response. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanPriceableTargetsto be priced.PriceListRefsto query for prices for the targets.javax.money.CurrencyUnitThis will be populated in the pricing service from thePriceContext.getCurrency().inthashCode()booleanOnly relevant for recurring PriceData.booleanOnly relevant for recurring PriceData.booleanWhether to excludePriceInfo.getPriceTypeDetails()from the response.voidsetFilterByPaymentStrategy(boolean filterByPaymentStrategy) Only relevant for recurring PriceData.voidsetGetAllAvailableFrequencies(boolean getAllAvailableFrequencies) Only relevant for recurring PriceData.voidsetPriceableTargets(Set<PriceableTarget> priceableTargets) PriceableTargetsto be priced.voidsetPriceLists(Set<PriceListRef> priceLists) PriceListRefsto query for prices for the targets.voidsetRequestedCurrency(javax.money.CurrencyUnit requestedCurrency) This will be populated in the pricing service from thePriceContext.getCurrency().voidsetSkipDetails(boolean skipDetails) Whether to excludePriceInfo.getPriceTypeDetails()from the response.toString()
-
Field Details
-
PRICE_INFO_CONTEXT_HEADER
- See Also:
-
priceableTargets
PriceableTargetsto be priced. -
priceLists
PriceListRefsto query for prices for the targets. -
skipDetails
protected boolean skipDetailsWhether to excludePriceInfo.getPriceTypeDetails()from the response. -
getAllAvailableFrequencies
protected boolean getAllAvailableFrequenciesOnly relevant for recurring PriceData. If true, the response will include all frequencies that have a corresponding PriceData for the given target.For example, if there are 2 PriceData records for the same target for the 2-year term, one with a frequency of 1 MONTHLY and one with a frequency of 1 ANNUALLY, the response will include both PriceData records.
- Since:
- 2.0.4
-
requestedCurrency
protected javax.money.CurrencyUnit requestedCurrencyThis will be populated in the pricing service from thePriceContext.getCurrency(). Any setting from outside the service will by default be ignored.- Since:
- Pricing Client 2.0.4
-
-
Constructor Details
-
PriceInfoContext
public PriceInfoContext()
-
-
Method Details
-
getPriceableTargets
PriceableTargetsto be priced. -
getPriceLists
PriceListRefsto query for prices for the targets. -
isSkipDetails
public boolean isSkipDetails()Whether to excludePriceInfo.getPriceTypeDetails()from the response. -
isGetAllAvailableFrequencies
public boolean isGetAllAvailableFrequencies()Only relevant for recurring PriceData. If true, the response will include all frequencies that have a corresponding PriceData for the given target.For example, if there are 2 PriceData records for the same target for the 2-year term, one with a frequency of 1 MONTHLY and one with a frequency of 1 ANNUALLY, the response will include both PriceData records.
- Since:
- 2.0.4
-
isFilterByPaymentStrategy
public boolean isFilterByPaymentStrategy()Only relevant for recurring PriceData. Whether to filter the PriceData matching thepriceableTargetsby theirpayment strategy.- Since:
- 2.0.4
-
getRequestedCurrency
public javax.money.CurrencyUnit getRequestedCurrency()This will be populated in the pricing service from thePriceContext.getCurrency(). Any setting from outside the service will by default be ignored.- Since:
- Pricing Client 2.0.4
-
setPriceableTargets
PriceableTargetsto be priced. -
setPriceLists
PriceListRefsto query for prices for the targets. -
setSkipDetails
public void setSkipDetails(boolean skipDetails) Whether to excludePriceInfo.getPriceTypeDetails()from the response. -
setGetAllAvailableFrequencies
public void setGetAllAvailableFrequencies(boolean getAllAvailableFrequencies) Only relevant for recurring PriceData. If true, the response will include all frequencies that have a corresponding PriceData for the given target.For example, if there are 2 PriceData records for the same target for the 2-year term, one with a frequency of 1 MONTHLY and one with a frequency of 1 ANNUALLY, the response will include both PriceData records.
- Since:
- 2.0.4
-
setFilterByPaymentStrategy
public void setFilterByPaymentStrategy(boolean filterByPaymentStrategy) Only relevant for recurring PriceData. Whether to filter the PriceData matching thepriceableTargetsby theirpayment strategy.- Since:
- 2.0.4
-
setRequestedCurrency
public void setRequestedCurrency(javax.money.CurrencyUnit requestedCurrency) This will be populated in the pricing service from thePriceContext.getCurrency(). Any setting from outside the service will by default be ignored.- Since:
- Pricing Client 2.0.4
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-