Interface OrderEditResult

All Known Subinterfaces:
OrderEditApplied, OrderEditNotProcessed, OrderEditPreviewFailure, OrderEditPreviewSuccess

public interface OrderEditResult
OrderEditResult
Example to create a subtype instance using the builder pattern

     OrderEditResult orderEditResult = OrderEditResult.appliedBuilder()
             appliedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
             excerptBeforeEdit(excerptBeforeEditBuilder -> excerptBeforeEditBuilder)
             excerptAfterEdit(excerptAfterEditBuilder -> excerptAfterEditBuilder)
             .build()
 
  • Method Details

    • getType

      @NotNull @NotNull String getType()
      Returns:
      type
    • deepCopy

      @Nullable static OrderEditResult deepCopy(@Nullable OrderEditResult template)
      factory method to create a deep copy of OrderEditResult
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • appliedBuilder

      static OrderEditAppliedBuilder appliedBuilder()
      builder for applied subtype
      Returns:
      builder
    • notProcessedBuilder

      static OrderEditNotProcessedBuilder notProcessedBuilder()
      builder for notProcessed subtype
      Returns:
      builder
    • previewFailureBuilder

      static OrderEditPreviewFailureBuilder previewFailureBuilder()
      builder for previewFailure subtype
      Returns:
      builder
    • previewSuccessBuilder

      static OrderEditPreviewSuccessBuilder previewSuccessBuilder()
      builder for previewSuccess subtype
      Returns:
      builder
    • withOrderEditResult

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