Class OverridePriceRequest

java.lang.Object
com.broadleafcommerce.cartoperation.web.endpoint.domain.CartItemModifyingRequest
com.broadleafcommerce.cartoperation.web.endpoint.domain.OverridePriceRequest
All Implemented Interfaces:
CartVersionedRequest, Serializable

public class OverridePriceRequest extends CartItemModifyingRequest implements Serializable
DTO for a request to update the prices.
Author:
Dima Myroniuk (dmyroniuk)
See Also:
  • Constructor Details

    • OverridePriceRequest

      public OverridePriceRequest()
  • Method Details

    • getOverridePrice

      public javax.money.MonetaryAmount getOverridePrice()
      The new price value.
      Returns:
      the price value.
    • getReason

      public String getReason()
      The reason the override was performed, for example, "Price Match".
      Returns:
      The reason the override was performed.
    • getComment

      public String getComment()
      The optional, long-form comment explaining any extra context for the override.
      Returns:
      The optional, long-form comment explaining any extra context for the override.
    • setOverridePrice

      public void setOverridePrice(javax.money.MonetaryAmount overridePrice)
      The new price value.
      Parameters:
      overridePrice - the price value.
    • setReason

      public void setReason(String reason)
      The reason the override was performed, for example, "Price Match".
      Parameters:
      reason - The reason the override was performed.
    • setComment

      public void setComment(String comment)
      The optional, long-form comment explaining any extra context for the override.
      Parameters:
      comment - The optional, long-form comment explaining any extra context for the override.
    • equals

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

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

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

      public String toString()
      Overrides:
      toString in class CartItemModifyingRequest