Interface OrderEditPreviewFailure

All Superinterfaces:
OrderEditResult
All Known Implementing Classes:
OrderEditPreviewFailureImpl

public interface OrderEditPreviewFailure extends OrderEditResult

Result of a failed application of stagedActions to the Order. The data is calculated on the fly and is not queryable.


Example to create an instance using the builder pattern

     OrderEditPreviewFailure orderEditPreviewFailure = OrderEditPreviewFailure.builder()
             .plusErrors(errorsBuilder -> errorsBuilder)
             .build()
 
  • Field Details

    • PREVIEW_FAILURE

      static final String PREVIEW_FAILURE
      discriminator value for OrderEditPreviewFailure
      See Also:
  • Method Details

    • getErrors

      @NotNull @Valid @NotNull @Valid List<ErrorObject> getErrors()

      Errors returned.

      Returns:
      errors
    • setErrors

      void setErrors(ErrorObject... errors)

      Errors returned.

      Parameters:
      errors - values to be set
    • setErrors

      void setErrors(List<ErrorObject> errors)

      Errors returned.

      Parameters:
      errors - values to be set
    • of

      factory method
      Returns:
      instance of OrderEditPreviewFailure
    • of

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

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

      builder factory method for OrderEditPreviewFailure
      Returns:
      builder
    • builder

      create builder for OrderEditPreviewFailure instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withOrderEditPreviewFailure

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