Class OrderPricing
java.lang.Object
com.broadleafcommerce.tabby.provider.domain.OrderPricing
- All Implemented Interfaces:
Serializable
- Author:
- Dima Myroniuk (dmyroniuk)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAttribute
(String name, Object value) Add a value to the JSON data.protected boolean
boolean
getAttribute
(String name) Get a value from the JSON data.JSON data for the order pricing object which isn't already stored in other fields.javax.money.MonetaryAmount
getTotal()
The total price of this Order.int
hashCode()
void
setJsonMap
(Map<String, Object> jsonMap) JSON data for the order pricing object which isn't already stored in other fields.void
setTotal
(javax.money.MonetaryAmount total) The total price of this Order.toString()
-
Constructor Details
-
OrderPricing
public OrderPricing()
-
-
Method Details
-
addAttribute
Add a value to the JSON data. Necessary for populating the JSON from the payload.- Parameters:
name
- the attribute namevalue
- the attribute value
-
getAttribute
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
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
JSON data for the order pricing object which isn't already stored in other fields.- Parameters:
jsonMap
- JSON order object data
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-