Interface OrderCreatedMessagePayload

All Superinterfaces:
MessagePayload, MessagePayloadMixin, OrderMessagePayload

public interface OrderCreatedMessagePayload extends OrderMessagePayload

Generated after a successful Create Order request.


Example to create an instance using the builder pattern

     OrderCreatedMessagePayload orderCreatedMessagePayload = OrderCreatedMessagePayload.builder()
             .order(orderBuilder -> orderBuilder)
             .build()
 
  • Field Details

  • Method Details

    • getOrder

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

      Order that was created.

      Returns:
      order
    • setOrder

      void setOrder(Order order)

      Order that was created.

      Parameters:
      order - value to be set
    • of

      factory method
      Returns:
      instance of OrderCreatedMessagePayload
    • of

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

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

      builder factory method for OrderCreatedMessagePayload
      Returns:
      builder
    • builder

      create builder for OrderCreatedMessagePayload instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withOrderCreatedMessagePayload

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