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 Stringdiscriminator value for StagedOrderSetCustomerIdAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for StagedOrderSetCustomerIdActionbuilder(StagedOrderSetCustomerIdAction template) create builder for StagedOrderSetCustomerIdAction instancecopyDeep()deepCopy(StagedOrderSetCustomerIdAction template) factory method to create a deep copy of StagedOrderSetCustomerIdActionidof an existing Customer.of()factory methodof(StagedOrderSetCustomerIdAction template) factory method to create a shallow copy StagedOrderSetCustomerIdActionvoidsetCustomerId(String customerId) idof an existing Customer.static com.fasterxml.jackson.core.type.TypeReference<StagedOrderSetCustomerIdAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
getMethods 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()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 StagedOrderSetCustomerIdAction
-
of
factory method to create a shallow copy StagedOrderSetCustomerIdAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
StagedOrderSetCustomerIdAction copyDeep()- Specified by:
copyDeepin interfaceStagedOrderUpdateAction
-
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
-