Interface QuoteCustomerChangedMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
- All Known Implementing Classes:
QuoteCustomerChangedMessagePayloadImpl
Generated after a successful Change Customer update action.
Example to create an instance using the builder pattern
QuoteCustomerChangedMessagePayload quoteCustomerChangedMessagePayload = QuoteCustomerChangedMessagePayload.builder()
.customer(customerBuilder -> customerBuilder)
.previousCustomer(previousCustomerBuilder -> previousCustomerBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for QuoteCustomerChangedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for QuoteCustomerChangedMessagePayloadbuilder
(QuoteCustomerChangedMessagePayload template) create builder for QuoteCustomerChangedMessagePayload instancedeepCopy
(QuoteCustomerChangedMessagePayload template) factory method to create a deep copy of QuoteCustomerChangedMessagePayload@NotNull @Valid CustomerReference
The Buyer who now owns the Quote.@NotNull @Valid CustomerReference
The previous Buyer.of()
factory methodof
(QuoteCustomerChangedMessagePayload template) factory method to create a shallow copy QuoteCustomerChangedMessagePayloadvoid
setCustomer
(CustomerReference customer) The Buyer who now owns the Quote.void
setPreviousCustomer
(CustomerReference previousCustomer) The previous Buyer.static com.fasterxml.jackson.core.type.TypeReference<QuoteCustomerChangedMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
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_CUSTOMER_CHANGED
discriminator value for QuoteCustomerChangedMessagePayload- See Also:
-
-
Method Details
-
getCustomer
The Buyer who now owns the Quote.
- Returns:
- customer
-
getPreviousCustomer
The previous Buyer.
- Returns:
- previousCustomer
-
setCustomer
The Buyer who now owns the Quote.
- Parameters:
customer
- value to be set
-
setPreviousCustomer
The previous Buyer.
- Parameters:
previousCustomer
- value to be set
-
of
factory method- Returns:
- instance of QuoteCustomerChangedMessagePayload
-
of
factory method to create a shallow copy QuoteCustomerChangedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static QuoteCustomerChangedMessagePayload deepCopy(@Nullable QuoteCustomerChangedMessagePayload template) factory method to create a deep copy of QuoteCustomerChangedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for QuoteCustomerChangedMessagePayload- Returns:
- builder
-
builder
static QuoteCustomerChangedMessagePayloadBuilder builder(QuoteCustomerChangedMessagePayload template) create builder for QuoteCustomerChangedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withQuoteCustomerChangedMessagePayload
default <T> T withQuoteCustomerChangedMessagePayload(Function<QuoteCustomerChangedMessagePayload, 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<QuoteCustomerChangedMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-