Interface QuoteRequestCustomerChangedMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after a successful Change Customer update action.
Example to create an instance using the builder pattern
QuoteRequestCustomerChangedMessagePayload quoteRequestCustomerChangedMessagePayload = QuoteRequestCustomerChangedMessagePayload.builder()
.customer(customerBuilder -> customerBuilder)
.previousCustomer(previousCustomerBuilder -> previousCustomerBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for QuoteRequestCustomerChangedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for QuoteRequestCustomerChangedMessagePayloadcreate builder for QuoteRequestCustomerChangedMessagePayload instancefactory method to create a deep copy of QuoteRequestCustomerChangedMessagePayload@NotNull @Valid CustomerReference
The Buyer who now owns the Quote Request.@NotNull @Valid CustomerReference
The previous Buyer.of()
factory methodof
(QuoteRequestCustomerChangedMessagePayload template) factory method to create a shallow copy QuoteRequestCustomerChangedMessagePayloadvoid
setCustomer
(CustomerReference customer) The Buyer who now owns the Quote Request.void
setPreviousCustomer
(CustomerReference previousCustomer) The previous Buyer.static com.fasterxml.jackson.core.type.TypeReference<QuoteRequestCustomerChangedMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withQuoteRequestCustomerChangedMessagePayload
(Function<QuoteRequestCustomerChangedMessagePayload, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.message.MessagePayload
getType, withMessagePayload
Methods inherited from interface com.commercetools.api.models.message.MessagePayloadMixin
as
-
Field Details
-
QUOTE_REQUEST_CUSTOMER_CHANGED
discriminator value for QuoteRequestCustomerChangedMessagePayload- See Also:
-
-
Method Details
-
getCustomer
The Buyer who now owns the Quote Request.
- Returns:
- customer
-
getPreviousCustomer
The previous Buyer.
- Returns:
- previousCustomer
-
setCustomer
The Buyer who now owns the Quote Request.
- Parameters:
customer
- value to be set
-
setPreviousCustomer
The previous Buyer.
- Parameters:
previousCustomer
- value to be set
-
of
factory method- Returns:
- instance of QuoteRequestCustomerChangedMessagePayload
-
of
static QuoteRequestCustomerChangedMessagePayload of(QuoteRequestCustomerChangedMessagePayload template) factory method to create a shallow copy QuoteRequestCustomerChangedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static QuoteRequestCustomerChangedMessagePayload deepCopy(@Nullable QuoteRequestCustomerChangedMessagePayload template) factory method to create a deep copy of QuoteRequestCustomerChangedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for QuoteRequestCustomerChangedMessagePayload- Returns:
- builder
-
builder
static QuoteRequestCustomerChangedMessagePayloadBuilder builder(QuoteRequestCustomerChangedMessagePayload template) create builder for QuoteRequestCustomerChangedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withQuoteRequestCustomerChangedMessagePayload
default <T> T withQuoteRequestCustomerChangedMessagePayload(Function<QuoteRequestCustomerChangedMessagePayload, 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<QuoteRequestCustomerChangedMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-