Interface OrderSetCustomerIdAction
- All Superinterfaces:
OrderUpdateAction
,ResourceUpdateAction<OrderUpdateAction>
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
OrderSetCustomerIdAction orderSetCustomerIdAction = OrderSetCustomerIdAction.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for OrderSetCustomerIdAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for OrderSetCustomerIdActionbuilder
(OrderSetCustomerIdAction template) create builder for OrderSetCustomerIdAction instancestatic OrderSetCustomerIdAction
deepCopy
(OrderSetCustomerIdAction template) factory method to create a deep copy of OrderSetCustomerIdActionid
of an existing Customer.static OrderSetCustomerIdAction
of()
factory methodstatic OrderSetCustomerIdAction
of
(OrderSetCustomerIdAction template) factory method to create a shallow copy OrderSetCustomerIdActionvoid
setCustomerId
(String customerId) id
of an existing Customer.static com.fasterxml.jackson.core.type.TypeReference<OrderSetCustomerIdAction>
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_ID
discriminator value for OrderSetCustomerIdAction- 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 OrderSetCustomerIdAction
-
of
factory method to create a shallow copy OrderSetCustomerIdAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of OrderSetCustomerIdAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for OrderSetCustomerIdAction- Returns:
- builder
-
builder
create builder for OrderSetCustomerIdAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withOrderSetCustomerIdAction
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
-