Interface StagedOrderSetCustomerIdAction
- All Superinterfaces:
ResourceUpdateAction<StagedOrderUpdateAction>
,StagedOrderUpdateAction
Setting the Order's customerId
does not recalculate prices or discounts on the Order. If the Customer belongs to a Customer Group, customerGroup
on the Order is updated automatically.
Produces the OrderCustomerSet Message.
Example to create an instance using the builder pattern
StagedOrderSetCustomerIdAction stagedOrderSetCustomerIdAction = StagedOrderSetCustomerIdAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for StagedOrderSetCustomerIdAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for StagedOrderSetCustomerIdActionbuilder
(StagedOrderSetCustomerIdAction template) create builder for StagedOrderSetCustomerIdAction instancedeepCopy
(StagedOrderSetCustomerIdAction template) factory method to create a deep copy of StagedOrderSetCustomerIdActionid
of an existing Customer.of()
factory methodof
(StagedOrderSetCustomerIdAction template) factory method to create a shallow copy StagedOrderSetCustomerIdActionvoid
setCustomerId
(String customerId) id
of an existing Customer.static com.fasterxml.jackson.core.type.TypeReference<StagedOrderSetCustomerIdAction>
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_ID
discriminator value for StagedOrderSetCustomerIdAction- See Also:
-
-
Method Details
-
getCustomerId
String getCustomerId()id
of an existing Customer. If empty, any existing value is removed.- Returns:
- customerId
-
setCustomerId
id
of an existing Customer. If empty, any existing value is removed.- Parameters:
customerId
- value to be set
-
of
factory method- Returns:
- instance of StagedOrderSetCustomerIdAction
-
of
factory method to create a shallow copy StagedOrderSetCustomerIdAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static StagedOrderSetCustomerIdAction deepCopy(@Nullable StagedOrderSetCustomerIdAction template) factory method to create a deep copy of StagedOrderSetCustomerIdAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StagedOrderSetCustomerIdAction- Returns:
- builder
-
builder
create builder for StagedOrderSetCustomerIdAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStagedOrderSetCustomerIdAction
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<StagedOrderSetCustomerIdAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-