Interface StagedOrderAddReturnInfoAction

All Superinterfaces:
ResourceUpdateAction<StagedOrderUpdateAction>, StagedOrderUpdateAction

public interface StagedOrderAddReturnInfoAction extends StagedOrderUpdateAction

Produces the Return Info Added Message.


Example to create an instance using the builder pattern

     StagedOrderAddReturnInfoAction stagedOrderAddReturnInfoAction = StagedOrderAddReturnInfoAction.builder()
             .plusItems(itemsBuilder -> itemsBuilder)
             .build()
 
  • Field Details

    • ADD_RETURN_INFO

      static final String ADD_RETURN_INFO
      discriminator value for StagedOrderAddReturnInfoAction
      See Also:
  • Method Details

    • getReturnTrackingId

      String getReturnTrackingId()

      Value to set.

      Returns:
      returnTrackingId
    • getItems

      @NotNull @Valid @NotNull @Valid List<ReturnItemDraft> getItems()

      Items to be returned. Must not be empty.

      Returns:
      items
    • getReturnDate

      ZonedDateTime getReturnDate()

      Value to set. If not set, it defaults to the current date and time.

      Returns:
      returnDate
    • setReturnTrackingId

      void setReturnTrackingId(String returnTrackingId)

      Value to set.

      Parameters:
      returnTrackingId - value to be set
    • setItems

      void setItems(ReturnItemDraft... items)

      Items to be returned. Must not be empty.

      Parameters:
      items - values to be set
    • setItems

      void setItems(List<ReturnItemDraft> items)

      Items to be returned. Must not be empty.

      Parameters:
      items - values to be set
    • setReturnDate

      void setReturnDate(ZonedDateTime returnDate)

      Value to set. If not set, it defaults to the current date and time.

      Parameters:
      returnDate - value to be set
    • of

      factory method
      Returns:
      instance of StagedOrderAddReturnInfoAction
    • of

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

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

      builder factory method for StagedOrderAddReturnInfoAction
      Returns:
      builder
    • builder

      create builder for StagedOrderAddReturnInfoAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withStagedOrderAddReturnInfoAction

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