Interface OrderDeletedMessage

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

public interface OrderDeletedMessage extends OrderMessage

Generated after a successful Delete Order request.


Example to create an instance using the builder pattern

     OrderDeletedMessage orderDeletedMessage = OrderDeletedMessage.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)
             .order(orderBuilder -> orderBuilder)
             .build()
 
  • Field Details

  • Method Details

    • getOrder

      @NotNull @Valid @NotNull @Valid Order getOrder()

      Order that has been deleted.

      Returns:
      order
    • setOrder

      void setOrder(Order order)

      Order that has been deleted.

      Parameters:
      order - value to be set
    • of

      static OrderDeletedMessage of()
      factory method
      Returns:
      instance of OrderDeletedMessage
    • of

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

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

      static OrderDeletedMessageBuilder builder()
      builder factory method for OrderDeletedMessage
      Returns:
      builder
    • builder

      create builder for OrderDeletedMessage instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withOrderDeletedMessage

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