Class OrderPricing

java.lang.Object
com.broadleafcommerce.tabby.provider.domain.OrderPricing
All Implemented Interfaces:
Serializable

public class OrderPricing extends Object implements Serializable
Author:
Dima Myroniuk (dmyroniuk)
See Also:
  • Constructor Details

    • OrderPricing

      public OrderPricing()
  • Method Details

    • addAttribute

      public void addAttribute(String name, Object value)
      Add a value to the JSON data. Necessary for populating the JSON from the payload.
      Parameters:
      name - the attribute name
      value - the attribute value
    • getAttribute

      public Object getAttribute(String name)
      Get a value from the JSON data. Necessary for populating the JSON from the payload.
      Parameters:
      name - the attribute name
    • getTotal

      public javax.money.MonetaryAmount getTotal()
      The total price of this Order.
      Returns:
      The total price of this Order.
    • getJsonMap

      public Map<String,Object> getJsonMap()
      JSON data for the order pricing object which isn't already stored in other fields.
      Returns:
      JSON order object data
    • setTotal

      public void setTotal(javax.money.MonetaryAmount total)
      The total price of this Order.
      Parameters:
      total - The total price of this Order.
    • setJsonMap

      public void setJsonMap(Map<String,Object> jsonMap)
      JSON data for the order pricing object which isn't already stored in other fields.
      Parameters:
      jsonMap - JSON order object data
    • equals

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

      protected boolean canEqual(Object other)
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object