Class ReadCustomerOrdersRequest
java.lang.Object
com.broadleafcommerce.order.web.endpoint.domain.ReadCustomerOrdersRequest
- All Implemented Interfaces:
Serializable
The request to read the customer Orders and its related data.
- Author:
- Dima Myroniuk (dmyroniuk)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAttribute(String name, Object value) The account id to read theOrders.Read theOrderswith the specifiedOrder.getEmailAddress()excluding the orders with non-nullcustomerIdThe customer id to read theOrders.JSON data which isn't already stored in other fields.booleanIf this value istruethe order fulfillments will be fetched with theitems.booleanIf this value istruetheCustomerOrderInfo.getFulfillments()will be populated with the associatedOrderFulfillment.voidsetAccountId(String accountId) The account id to read theOrders.voidsetCustomerEmail(String customerEmail) Read theOrderswith the specifiedOrder.getEmailAddress()excluding the orders with non-nullcustomerIdvoidsetCustomerId(String customerId) The customer id to read theOrders.voidsetFetchOrderFulfillmentItems(boolean fetchOrderFulfillmentItems) If this value istruethe order fulfillments will be fetched with theitems.voidsetFetchOrderFulfillments(boolean fetchOrderFulfillments) If this value istruetheCustomerOrderInfo.getFulfillments()will be populated with the associatedOrderFulfillment.voidsetJsonMap(Map<String, Object> jsonMap) JSON data which isn't already stored in other fields.
-
Constructor Details
-
ReadCustomerOrdersRequest
public ReadCustomerOrdersRequest()
-
-
Method Details
-
addAttribute
-
getAttribute
-
getCustomerId
The customer id to read theOrders. -
getAccountId
The account id to read theOrders.This parameter is used only if the
customerIdis not null. -
getCustomerEmail
Read theOrderswith the specifiedOrder.getEmailAddress()excluding the orders with non-nullcustomerIdThis parameter is used only if the
customerIdis null. -
isFetchOrderFulfillments
public boolean isFetchOrderFulfillments()If this value istruetheCustomerOrderInfo.getFulfillments()will be populated with the associatedOrderFulfillment. Defaults totrue. -
isFetchOrderFulfillmentItems
public boolean isFetchOrderFulfillmentItems()If this value istruethe order fulfillments will be fetched with theitems. Defaults tofalse. -
getJsonMap
JSON data which isn't already stored in other fields.- Returns:
- JSON object data
-
setCustomerId
The customer id to read theOrders. -
setAccountId
The account id to read theOrders.This parameter is used only if the
customerIdis not null. -
setCustomerEmail
Read theOrderswith the specifiedOrder.getEmailAddress()excluding the orders with non-nullcustomerIdThis parameter is used only if the
customerIdis null. -
setFetchOrderFulfillments
public void setFetchOrderFulfillments(boolean fetchOrderFulfillments) If this value istruetheCustomerOrderInfo.getFulfillments()will be populated with the associatedOrderFulfillment. Defaults totrue. -
setFetchOrderFulfillmentItems
public void setFetchOrderFulfillmentItems(boolean fetchOrderFulfillmentItems) If this value istruethe order fulfillments will be fetched with theitems. Defaults tofalse. -
setJsonMap
JSON data which isn't already stored in other fields.- Parameters:
jsonMap- JSON object data
-