Interface QuoteRequestChangeCustomerAction
- All Superinterfaces:
QuoteRequestUpdateAction
,ResourceUpdateAction<QuoteRequestUpdateAction>
Changes the owner of a Quote Request to a different Customer. Customer Group is not updated. This update action produces the Quote Request Customer Changed Message.
Example to create an instance using the builder pattern
QuoteRequestChangeCustomerAction quoteRequestChangeCustomerAction = QuoteRequestChangeCustomerAction.builder()
.customer(customerBuilder -> customerBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for QuoteRequestChangeCustomerAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for QuoteRequestChangeCustomerActionbuilder
(QuoteRequestChangeCustomerAction template) create builder for QuoteRequestChangeCustomerAction instancedeepCopy
(QuoteRequestChangeCustomerAction template) factory method to create a deep copy of QuoteRequestChangeCustomerAction@NotNull @Valid CustomerResourceIdentifier
New Customer to own the Quote Request.of()
factory methodof
(QuoteRequestChangeCustomerAction template) factory method to create a shallow copy QuoteRequestChangeCustomerActionvoid
setCustomer
(CustomerResourceIdentifier customer) New Customer to own the Quote Request.static com.fasterxml.jackson.core.type.TypeReference<QuoteRequestChangeCustomerAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.quote_request.QuoteRequestUpdateAction
getAction, withQuoteRequestUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
CHANGE_CUSTOMER
discriminator value for QuoteRequestChangeCustomerAction- See Also:
-
-
Method Details
-
getCustomer
New Customer to own the Quote Request.
- Returns:
- customer
-
setCustomer
New Customer to own the Quote Request.
- Parameters:
customer
- value to be set
-
of
factory method- Returns:
- instance of QuoteRequestChangeCustomerAction
-
of
factory method to create a shallow copy QuoteRequestChangeCustomerAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static QuoteRequestChangeCustomerAction deepCopy(@Nullable QuoteRequestChangeCustomerAction template) factory method to create a deep copy of QuoteRequestChangeCustomerAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for QuoteRequestChangeCustomerAction- Returns:
- builder
-
builder
create builder for QuoteRequestChangeCustomerAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withQuoteRequestChangeCustomerAction
default <T> T withQuoteRequestChangeCustomerAction(Function<QuoteRequestChangeCustomerAction, 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<QuoteRequestChangeCustomerAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-