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:
  • 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

      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:
      getCurrency in interface javax.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

      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:
      setCurrency in interface com.broadleafcommerce.money.CurrencyConsumer
      Parameters:
      currency - The currency to price the cart against.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class CartModifyingRequest
    • canEqual

      protected boolean canEqual(Object other)
      Overrides:
      canEqual in class CartModifyingRequest
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class CartModifyingRequest
    • toString

      public String toString()
      Overrides:
      toString in class CartModifyingRequest