Interface CustomerSetCustomerNumberAction
- All Superinterfaces:
CustomerUpdateAction
,ResourceUpdateAction<CustomerUpdateAction>
Sets a new ID that can be used to refer to a Customer in a human-reabable way (for use in emails, invoices, etc).
Example to create an instance using the builder pattern
CustomerSetCustomerNumberAction customerSetCustomerNumberAction = CustomerSetCustomerNumberAction.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for CustomerSetCustomerNumberAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CustomerSetCustomerNumberActionbuilder
(CustomerSetCustomerNumberAction template) create builder for CustomerSetCustomerNumberAction instancedeepCopy
(CustomerSetCustomerNumberAction template) factory method to create a deep copy of CustomerSetCustomerNumberActionValue to set.of()
factory methodof
(CustomerSetCustomerNumberAction template) factory method to create a shallow copy CustomerSetCustomerNumberActionvoid
setCustomerNumber
(String customerNumber) Value to set.static com.fasterxml.jackson.core.type.TypeReference<CustomerSetCustomerNumberAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.customer.CustomerUpdateAction
getAction, withCustomerUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_CUSTOMER_NUMBER
discriminator value for CustomerSetCustomerNumberAction- See Also:
-
-
Method Details
-
getCustomerNumber
String getCustomerNumber()Value to set. Once set, it cannot be changed.
- Returns:
- customerNumber
-
setCustomerNumber
Value to set. Once set, it cannot be changed.
- Parameters:
customerNumber
- value to be set
-
of
factory method- Returns:
- instance of CustomerSetCustomerNumberAction
-
of
factory method to create a shallow copy CustomerSetCustomerNumberAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static CustomerSetCustomerNumberAction deepCopy(@Nullable CustomerSetCustomerNumberAction template) factory method to create a deep copy of CustomerSetCustomerNumberAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CustomerSetCustomerNumberAction- Returns:
- builder
-
builder
create builder for CustomerSetCustomerNumberAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCustomerSetCustomerNumberAction
default <T> T withCustomerSetCustomerNumberAction(Function<CustomerSetCustomerNumberAction, 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<CustomerSetCustomerNumberAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-