Interface ReturnInfoDraft

All Superinterfaces:
Draft<ReturnInfoDraft>

public interface ReturnInfoDraft extends Draft<ReturnInfoDraft>
ReturnInfoDraft
Example to create an instance using the builder pattern

     ReturnInfoDraft returnInfoDraft = ReturnInfoDraft.builder()
             .plusItems(itemsBuilder -> itemsBuilder)
             .build()
 
  • Method Details

    • getItems

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

      Information on the Line Items or Custom Line Items returned.

      Returns:
      items
    • getReturnTrackingId

      String getReturnTrackingId()

      User-defined identifier for tracking the return.

      Returns:
      returnTrackingId
    • getReturnDate

      ZonedDateTime getReturnDate()

      Date and time (UTC) the return is initiated.

      Returns:
      returnDate
    • setItems

      void setItems(ReturnItemDraft... items)

      Information on the Line Items or Custom Line Items returned.

      Parameters:
      items - values to be set
    • setItems

      void setItems(List<ReturnItemDraft> items)

      Information on the Line Items or Custom Line Items returned.

      Parameters:
      items - values to be set
    • setReturnTrackingId

      void setReturnTrackingId(String returnTrackingId)

      User-defined identifier for tracking the return.

      Parameters:
      returnTrackingId - value to be set
    • setReturnDate

      void setReturnDate(ZonedDateTime returnDate)

      Date and time (UTC) the return is initiated.

      Parameters:
      returnDate - value to be set
    • of

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

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

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

      static ReturnInfoDraftBuilder builder()
      builder factory method for ReturnInfoDraft
      Returns:
      builder
    • builder

      static ReturnInfoDraftBuilder builder(ReturnInfoDraft template)
      create builder for ReturnInfoDraft instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withReturnInfoDraft

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