Interface CustomLineItemReturnItem

All Superinterfaces:
Customizable<ReturnItem>, ReturnItem

public interface CustomLineItemReturnItem extends ReturnItem
CustomLineItemReturnItem
Example to create an instance using the builder pattern

     CustomLineItemReturnItem customLineItemReturnItem = CustomLineItemReturnItem.builder()
             .id("{id}")
             .quantity(0.3)
             .shipmentState(ReturnShipmentState.ADVISED)
             .paymentState(ReturnPaymentState.NON_REFUNDABLE)
             .lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
             .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
             .customLineItemId("{customLineItemId}")
             .build()
 
  • Field Details

    • CUSTOM_LINE_ITEM_RETURN_ITEM

      static final String CUSTOM_LINE_ITEM_RETURN_ITEM
      discriminator value for CustomLineItemReturnItem
      See Also:
  • Method Details

    • getKey

      String getKey()

      User-defined unique identifier of the CustomLineItemReturnItem.

      Specified by:
      getKey in interface ReturnItem
      Returns:
      key
    • getCustomLineItemId

      @NotNull @NotNull String getCustomLineItemId()

      id of the returned CustomLineItem.

      Returns:
      customLineItemId
    • getQuantity

      @NotNull @NotNull Long getQuantity()

      Number of Custom Line Items returned.

      Specified by:
      getQuantity in interface ReturnItem
      Returns:
      quantity
    • setKey

      void setKey(String key)

      User-defined unique identifier of the CustomLineItemReturnItem.

      Specified by:
      setKey in interface ReturnItem
      Parameters:
      key - value to be set
    • setCustomLineItemId

      void setCustomLineItemId(String customLineItemId)

      id of the returned CustomLineItem.

      Parameters:
      customLineItemId - value to be set
    • setQuantity

      void setQuantity(Long quantity)

      Number of Custom Line Items returned.

      Specified by:
      setQuantity in interface ReturnItem
      Parameters:
      quantity - value to be set
    • of

      factory method
      Returns:
      instance of CustomLineItemReturnItem
    • of

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

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

      builder factory method for CustomLineItemReturnItem
      Returns:
      builder
    • builder

      create builder for CustomLineItemReturnItem instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withCustomLineItemReturnItem

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