Interface ReturnInfo


public interface ReturnInfo
ReturnInfo
Example to create an instance using the builder pattern

     ReturnInfo returnInfo = ReturnInfo.builder()
             .plusItems(itemsBuilder -> itemsBuilder)
             .returnTrackingId("{returnTrackingId}")
             .returnDate("{returnDate}")
             .build()
 
  • Method Details

    • getItems

      @NotNull @Valid @NotNull @Valid List<ReturnItem> getItems()
      Returns:
      items
    • getReturnTrackingId

      @NotNull @NotNull String getReturnTrackingId()

      Identifies, which return tracking ID is connected to this particular return.

      Returns:
      returnTrackingId
    • getReturnDate

      @NotNull @NotNull String getReturnDate()
      Returns:
      returnDate
    • setItems

      void setItems(ReturnItem... items)
      set items
      Parameters:
      items - values to be set
    • setItems

      void setItems(List<ReturnItem> items)
      set items
      Parameters:
      items - values to be set
    • setReturnTrackingId

      void setReturnTrackingId(String returnTrackingId)

      Identifies, which return tracking ID is connected to this particular return.

      Parameters:
      returnTrackingId - value to be set
    • setReturnDate

      void setReturnDate(String returnDate)
      set returnDate
      Parameters:
      returnDate - value to be set
    • of

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

      static ReturnInfo of(ReturnInfo template)
      factory method to create a shallow copy ReturnInfo
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

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

      static ReturnInfoBuilder builder()
      builder factory method for ReturnInfo
      Returns:
      builder
    • builder

      static ReturnInfoBuilder builder(ReturnInfo template)
      create builder for ReturnInfo instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withReturnInfo

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