Interface StagedOrderSetCustomerEmailAction
- All Superinterfaces:
ResourceUpdateAction<StagedOrderUpdateAction>
,StagedOrderUpdateAction
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
StagedOrderSetCustomerEmailAction stagedOrderSetCustomerEmailAction = StagedOrderSetCustomerEmailAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for StagedOrderSetCustomerEmailAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for StagedOrderSetCustomerEmailActionbuilder
(StagedOrderSetCustomerEmailAction template) create builder for StagedOrderSetCustomerEmailAction instancedeepCopy
(StagedOrderSetCustomerEmailAction template) factory method to create a deep copy of StagedOrderSetCustomerEmailActiongetEmail()
Value to set.of()
factory methodof
(StagedOrderSetCustomerEmailAction template) factory method to create a shallow copy StagedOrderSetCustomerEmailActionvoid
Value to set.static com.fasterxml.jackson.core.type.TypeReference<StagedOrderSetCustomerEmailAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
Methods inherited from interface com.commercetools.api.models.order.StagedOrderUpdateAction
getAction, withStagedOrderUpdateAction
-
Field Details
-
SET_CUSTOMER_EMAIL
discriminator value for StagedOrderSetCustomerEmailAction- See Also:
-
-
Method Details
-
getEmail
String getEmail()Value to set. If empty, any existing value will be removed.
- Returns:
-
setEmail
Value to set. If empty, any existing value will be removed.
- Parameters:
email
- value to be set
-
of
factory method- Returns:
- instance of StagedOrderSetCustomerEmailAction
-
of
factory method to create a shallow copy StagedOrderSetCustomerEmailAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static StagedOrderSetCustomerEmailAction deepCopy(@Nullable StagedOrderSetCustomerEmailAction template) factory method to create a deep copy of StagedOrderSetCustomerEmailAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StagedOrderSetCustomerEmailAction- Returns:
- builder
-
builder
create builder for StagedOrderSetCustomerEmailAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStagedOrderSetCustomerEmailAction
default <T> T withStagedOrderSetCustomerEmailAction(Function<StagedOrderSetCustomerEmailAction, T> helper) accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<StagedOrderSetCustomerEmailAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-