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