Class PriceCartRequest
- java.lang.Object
-
- com.broadleafcommerce.cartoperation.web.endpoint.domain.CartModifyingRequest
-
- com.broadleafcommerce.cartoperation.web.endpoint.domain.PriceCartRequest
-
- All Implemented Interfaces:
CartVersionedRequest,com.broadleafcommerce.money.CurrencyConsumer,Serializable,javax.money.CurrencySupplier
public class PriceCartRequest extends CartModifyingRequest implements Serializable, javax.money.CurrencySupplier, com.broadleafcommerce.money.CurrencyConsumer
A DTO used to provide context on a request to price a cart.- Author:
- Chad Harchar (charchar)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PriceCartRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)javax.money.CurrencyUnitgetCurrency()The currency to price the cart against.LocalegetLocale()The locale to price the cart against.inthashCode()voidsetCurrency(javax.money.CurrencyUnit currency)The currency to price the cart against.voidsetLocale(Locale locale)The locale to price the cart against.StringtoString()-
Methods inherited from class com.broadleafcommerce.cartoperation.web.endpoint.domain.CartModifyingRequest
getCartVersion, getVersion, setCartVersion, setVersion
-
-
-
-
Method Detail
-
getLocale
public Locale 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.
-
setLocale
public void setLocale(Locale locale)
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
public boolean equals(Object o)
- Overrides:
equalsin classCartModifyingRequest
-
canEqual
protected boolean canEqual(Object other)
- Overrides:
canEqualin classCartModifyingRequest
-
hashCode
public int hashCode()
- Overrides:
hashCodein classCartModifyingRequest
-
toString
public String toString()
- Overrides:
toStringin classCartModifyingRequest
-
-