Interface OrderSetLineItemShippingDetailsAction

All Superinterfaces:
OrderUpdateAction, ResourceUpdateAction<OrderUpdateAction>

public interface OrderSetLineItemShippingDetailsAction extends OrderUpdateAction
OrderSetLineItemShippingDetailsAction
Example to create an instance using the builder pattern

     OrderSetLineItemShippingDetailsAction orderSetLineItemShippingDetailsAction = OrderSetLineItemShippingDetailsAction.builder()
             .build()
 
  • Field Details

    • SET_LINE_ITEM_SHIPPING_DETAILS

      static final String SET_LINE_ITEM_SHIPPING_DETAILS
      discriminator value for OrderSetLineItemShippingDetailsAction
      See Also:
  • Method Details

    • getLineItemId

      String getLineItemId()

      id of the LineItem to update. Either lineItemId or lineItemKey is required.

      Returns:
      lineItemId
    • getLineItemKey

      String getLineItemKey()

      key of the LineItem to update. Either lineItemId or lineItemKey is required.

      Returns:
      lineItemKey
    • getShippingDetails

      @Valid @Valid ItemShippingDetailsDraft getShippingDetails()

      Value to set. If empty, the existing value is removed.

      Returns:
      shippingDetails
    • setLineItemId

      void setLineItemId(String lineItemId)

      id of the LineItem to update. Either lineItemId or lineItemKey is required.

      Parameters:
      lineItemId - value to be set
    • setLineItemKey

      void setLineItemKey(String lineItemKey)

      key of the LineItem to update. Either lineItemId or lineItemKey is required.

      Parameters:
      lineItemKey - value to be set
    • setShippingDetails

      void setShippingDetails(ItemShippingDetailsDraft shippingDetails)

      Value to set. If empty, the existing value is removed.

      Parameters:
      shippingDetails - value to be set
    • of

      factory method
      Returns:
      instance of OrderSetLineItemShippingDetailsAction
    • of

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

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

      builder factory method for OrderSetLineItemShippingDetailsAction
      Returns:
      builder
    • builder

      create builder for OrderSetLineItemShippingDetailsAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withOrderSetLineItemShippingDetailsAction

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