Interface QuoteCustomerChangedMessage

All Superinterfaces:
BaseResource, DomainResource<Message>, Identifiable<Message>, Message, Versioned<Message>

public interface QuoteCustomerChangedMessage extends Message

Generated after a successful Change Customer update action.


Example to create an instance using the builder pattern

     QuoteCustomerChangedMessage quoteCustomerChangedMessage = QuoteCustomerChangedMessage.builder()
             .id("{id}")
             .version(0.3)
             .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
             .lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
             .sequenceNumber(0.3)
             .resource(resourceBuilder -> resourceBuilder)
             .resourceVersion(0.3)
             .customer(customerBuilder -> customerBuilder)
             .previousCustomer(previousCustomerBuilder -> previousCustomerBuilder)
             .build()
 
  • Field Details

    • QUOTE_CUSTOMER_CHANGED

      static final String QUOTE_CUSTOMER_CHANGED
      discriminator value for QuoteCustomerChangedMessage
      See Also:
  • Method Details

    • getCustomer

      @NotNull @Valid @NotNull @Valid CustomerReference getCustomer()

      The Buyer who now owns the Quote.

      Returns:
      customer
    • getPreviousCustomer

      @NotNull @Valid @NotNull @Valid CustomerReference getPreviousCustomer()

      The previous Buyer.

      Returns:
      previousCustomer
    • setCustomer

      void setCustomer(CustomerReference customer)

      The Buyer who now owns the Quote.

      Parameters:
      customer - value to be set
    • setPreviousCustomer

      void setPreviousCustomer(CustomerReference previousCustomer)

      The previous Buyer.

      Parameters:
      previousCustomer - value to be set
    • of

      factory method
      Returns:
      instance of QuoteCustomerChangedMessage
    • of

      factory method to create a shallow copy QuoteCustomerChangedMessage
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

      factory method to create a deep copy of QuoteCustomerChangedMessage
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      builder factory method for QuoteCustomerChangedMessage
      Returns:
      builder
    • builder

      create builder for QuoteCustomerChangedMessage instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withQuoteCustomerChangedMessage

      default <T> T withQuoteCustomerChangedMessage(Function<QuoteCustomerChangedMessage,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<QuoteCustomerChangedMessage> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference