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 TypeMethodDescriptionvoid
addAttribute
(String name, Object value) The account id to read theOrders
.Read theOrders
with the specifiedOrder.getEmailAddress()
excluding the orders with non-nullcustomerId
The customer id to read theOrders
.JSON data which isn't already stored in other fields.boolean
If this value istrue
the order fulfillments will be fetched with theitems
.boolean
If this value istrue
theCustomerOrderInfo.getFulfillments()
will be populated with the associatedOrderFulfillment
.void
setAccountId
(String accountId) The account id to read theOrders
.void
setCustomerEmail
(String customerEmail) Read theOrders
with the specifiedOrder.getEmailAddress()
excluding the orders with non-nullcustomerId
void
setCustomerId
(String customerId) The customer id to read theOrders
.void
setFetchOrderFulfillmentItems
(boolean fetchOrderFulfillmentItems) If this value istrue
the order fulfillments will be fetched with theitems
.void
setFetchOrderFulfillments
(boolean fetchOrderFulfillments) If this value istrue
theCustomerOrderInfo.getFulfillments()
will be populated with the associatedOrderFulfillment
.void
setJsonMap
(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
customerId
is not null. -
getCustomerEmail
Read theOrders
with the specifiedOrder.getEmailAddress()
excluding the orders with non-nullcustomerId
This parameter is used only if the
customerId
is null. -
isFetchOrderFulfillments
public boolean isFetchOrderFulfillments()If this value istrue
theCustomerOrderInfo.getFulfillments()
will be populated with the associatedOrderFulfillment
. Defaults totrue
. -
isFetchOrderFulfillmentItems
public boolean isFetchOrderFulfillmentItems()If this value istrue
the 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
customerId
is not null. -
setCustomerEmail
Read theOrders
with the specifiedOrder.getEmailAddress()
excluding the orders with non-nullcustomerId
This parameter is used only if the
customerId
is null. -
setFetchOrderFulfillments
public void setFetchOrderFulfillments(boolean fetchOrderFulfillments) If this value istrue
theCustomerOrderInfo.getFulfillments()
will be populated with the associatedOrderFulfillment
. Defaults totrue
. -
setFetchOrderFulfillmentItems
public void setFetchOrderFulfillmentItems(boolean fetchOrderFulfillmentItems) If this value istrue
the 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
-