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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for OrderSetCustomerIdAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for OrderSetCustomerIdActionbuilder(OrderSetCustomerIdAction template) create builder for OrderSetCustomerIdAction instancecopyDeep()static OrderSetCustomerIdActiondeepCopy(OrderSetCustomerIdAction template) factory method to create a deep copy of OrderSetCustomerIdActionidof an existing Customer.static OrderSetCustomerIdActionof()factory methodstatic OrderSetCustomerIdActionof(OrderSetCustomerIdAction template) factory method to create a shallow copy OrderSetCustomerIdActionvoidsetCustomerId(String customerId) idof an existing Customer.static com.fasterxml.jackson.core.type.TypeReference<OrderSetCustomerIdAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.order.OrderUpdateAction
getAction, withOrderUpdateActionMethods 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()idof an existing Customer. If empty, any existing value is removed.- Returns:
- customerId
-
setCustomerId
idof 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
-
copyDeep
OrderSetCustomerIdAction copyDeep()- Specified by:
copyDeepin interfaceOrderUpdateAction
-
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
-