Interface OrderEditAppliedMessage

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

public interface OrderEditAppliedMessage extends OrderMessage

Generated after successfully applying an OrderEdit.


Example to create an instance using the builder pattern

     OrderEditAppliedMessage orderEditAppliedMessage = OrderEditAppliedMessage.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)
             .edit(editBuilder -> editBuilder)
             .result(resultBuilder -> resultBuilder)
             .build()
 
  • Field Details

    • ORDER_EDIT_APPLIED

      static final String ORDER_EDIT_APPLIED
      discriminator value for OrderEditAppliedMessage
      See Also:
  • Method Details

    • getEdit

      @NotNull @Valid @NotNull @Valid OrderEdit getEdit()

      OrderEdit that was applied.

      Returns:
      edit
    • getResult

      @NotNull @Valid @NotNull @Valid OrderEditApplied getResult()

      Information about a successfully applied OrderEdit.

      Returns:
      result
    • setEdit

      void setEdit(OrderEdit edit)

      OrderEdit that was applied.

      Parameters:
      edit - value to be set
    • setResult

      void setResult(OrderEditApplied result)

      Information about a successfully applied OrderEdit.

      Parameters:
      result - value to be set
    • of

      factory method
      Returns:
      instance of OrderEditAppliedMessage
    • of

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

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

      builder factory method for OrderEditAppliedMessage
      Returns:
      builder
    • builder

      create builder for OrderEditAppliedMessage instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withOrderEditAppliedMessage

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