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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for QuoteChangeCustomerAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for QuoteChangeCustomerActionbuilder(QuoteChangeCustomerAction template) create builder for QuoteChangeCustomerAction instancecopyDeep()static QuoteChangeCustomerActiondeepCopy(QuoteChangeCustomerAction template) factory method to create a deep copy of QuoteChangeCustomerAction@NotNull @Valid CustomerResourceIdentifierNew Customer to own the Quote.static QuoteChangeCustomerActionof()factory methodstatic QuoteChangeCustomerActionof(QuoteChangeCustomerAction template) factory method to create a shallow copy QuoteChangeCustomerActionvoidsetCustomer(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> Taccessor map functionMethods inherited from interface com.commercetools.api.models.quote.QuoteUpdateAction
getAction, withQuoteUpdateActionMethods 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
-
copyDeep
QuoteChangeCustomerAction copyDeep()- Specified by:
copyDeepin interfaceQuoteUpdateAction
-
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
-