Interface OrderSetCustomerEmailAction
- All Superinterfaces:
OrderUpdateAction
,ResourceUpdateAction<OrderUpdateAction>
This action updates the customerEmail
on the Order, but it does not change the Customer email on the Cart the Order has been created from.
Produces the Order Customer Email Set Message.
Example to create an instance using the builder pattern
OrderSetCustomerEmailAction orderSetCustomerEmailAction = OrderSetCustomerEmailAction.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for OrderSetCustomerEmailAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for OrderSetCustomerEmailActionbuilder
(OrderSetCustomerEmailAction template) create builder for OrderSetCustomerEmailAction instancestatic OrderSetCustomerEmailAction
deepCopy
(OrderSetCustomerEmailAction template) factory method to create a deep copy of OrderSetCustomerEmailActiongetEmail()
Value to set.static OrderSetCustomerEmailAction
of()
factory methodstatic OrderSetCustomerEmailAction
of
(OrderSetCustomerEmailAction template) factory method to create a shallow copy OrderSetCustomerEmailActionvoid
Value to set.static com.fasterxml.jackson.core.type.TypeReference<OrderSetCustomerEmailAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.order.OrderUpdateAction
getAction, withOrderUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_CUSTOMER_EMAIL
discriminator value for OrderSetCustomerEmailAction- See Also:
-
-
Method Details
-
getEmail
String getEmail()Value to set. If empty, any existing value is removed.
- Returns:
-
setEmail
Value to set. If empty, any existing value is removed.
- Parameters:
email
- value to be set
-
of
factory method- Returns:
- instance of OrderSetCustomerEmailAction
-
of
factory method to create a shallow copy OrderSetCustomerEmailAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static OrderSetCustomerEmailAction deepCopy(@Nullable OrderSetCustomerEmailAction template) factory method to create a deep copy of OrderSetCustomerEmailAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for OrderSetCustomerEmailAction- Returns:
- builder
-
builder
create builder for OrderSetCustomerEmailAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withOrderSetCustomerEmailAction
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-