Class Order
java.lang.Object
com.broadleafcommerce.tabby.provider.domain.Order
- Author:
- Dima Myroniuk (dmyroniuk)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAttribute
(String name, Object value) Add a value to the JSON data.getAttribute
(String name) Get a value from the JSON data.The name of the customer that owns this order.The customer's email address.getId()
The context ID of the order.JSON data for the order object which isn't already stored in other fields.Embedded container for all pricing information on this order.The status of this order.The date that this order was submitted.void
setCustomerName
(String customerName) The name of the customer that owns this order.void
setEmailAddress
(String emailAddress) The customer's email address.void
The context ID of the order.void
setJsonMap
(Map<String, Object> jsonMap) JSON data for the order object which isn't already stored in other fields.void
setOrderPricing
(OrderPricing orderPricing) Embedded container for all pricing information on this order.void
The status of this order.void
setSubmitDate
(Instant submitDate) The date that this order was submitted.
-
Constructor Details
-
Order
public Order()
-
-
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
-
getId
The context ID of the order.- Returns:
- the context ID of the order
-
getStatus
The status of this order.- Returns:
- The status of this order.
-
getCustomerName
The name of the customer that owns this order.- Returns:
- The name of the customer that owns this order.
-
getEmailAddress
The customer's email address.- Returns:
- The customer's email address.
-
getSubmitDate
The date that this order was submitted.- Returns:
- The date that this order was submitted.
-
getOrderPricing
Embedded container for all pricing information on this order.- Returns:
- Embedded container for all pricing information on this order.
-
getJsonMap
JSON data for the order object which isn't already stored in other fields.- Returns:
- JSON order object data
-
setId
The context ID of the order.- Parameters:
id
- the context ID of the order
-
setStatus
The status of this order.- Parameters:
status
- The status of this order.
-
setCustomerName
The name of the customer that owns this order.- Parameters:
customerName
- The name of the customer that owns this order.
-
setEmailAddress
The customer's email address.- Parameters:
emailAddress
- The customer's email address.
-
setSubmitDate
The date that this order was submitted.- Parameters:
submitDate
- The date that this order was submitted.
-
setOrderPricing
Embedded container for all pricing information on this order.- Parameters:
orderPricing
- Embedded container for all pricing information on this order.
-
setJsonMap
JSON data for the order object which isn't already stored in other fields.- Parameters:
jsonMap
- JSON order object data
-