Class PriceCartRequest
java.lang.Object
com.broadleafcommerce.subscriptionoperation.web.domain.PriceCartRequest
- All Implemented Interfaces:
com.broadleafcommerce.money.CurrencyConsumer,Serializable,javax.money.CurrencySupplier
public class PriceCartRequest
extends Object
implements Serializable, javax.money.CurrencySupplier, com.broadleafcommerce.money.CurrencyConsumer
A DTO used to provide context on a request to price a cart.
- Author:
- Nathan Moore (nathandmoore)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanjavax.money.CurrencyUnitThe currency to price the cart against.The locale to price the cart against.inthashCode()booleanDeclares if catalog prices should also be gathered as part of the repricing process.voidsetCurrency(javax.money.CurrencyUnit currency) The currency to price the cart against.voidThe locale to price the cart against.voidsetUpdateCatalogPricing(boolean updateCatalogPricing) Declares if catalog prices should also be gathered as part of the repricing process.toString()
-
Constructor Details
-
PriceCartRequest
public PriceCartRequest()
-
-
Method Details
-
isUpdateCatalogPricing
public boolean isUpdateCatalogPricing()Declares if catalog prices should also be gathered as part of the repricing process.- Returns:
- Whether catalog prices should also be gathered as part of the repricing process.
-
getLocale
The locale to price the cart against.- Returns:
- The locale to price the cart against.
-
getCurrency
public javax.money.CurrencyUnit getCurrency()The currency to price the cart against.- Specified by:
getCurrencyin interfacejavax.money.CurrencySupplier- Returns:
- The currency to price the cart against.
-
setUpdateCatalogPricing
public void setUpdateCatalogPricing(boolean updateCatalogPricing) Declares if catalog prices should also be gathered as part of the repricing process.- Parameters:
updateCatalogPricing- Whether catalog prices should also be gathered as part of the repricing process.
-
setLocale
The locale to price the cart against.- Parameters:
locale- The locale to price the cart against.
-
setCurrency
public void setCurrency(javax.money.CurrencyUnit currency) The currency to price the cart against.- Specified by:
setCurrencyin interfacecom.broadleafcommerce.money.CurrencyConsumer- Parameters:
currency- The currency to price the cart against.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-