Interface CartSetCustomLineItemShippingDetailsAction

All Superinterfaces:
CartUpdateAction, ResourceUpdateAction<CartUpdateAction>

public interface CartSetCustomLineItemShippingDetailsAction extends CartUpdateAction
CartSetCustomLineItemShippingDetailsAction
Example to create an instance using the builder pattern

     CartSetCustomLineItemShippingDetailsAction cartSetCustomLineItemShippingDetailsAction = CartSetCustomLineItemShippingDetailsAction.builder()
             .build()
 
  • Field Details

    • SET_CUSTOM_LINE_ITEM_SHIPPING_DETAILS

      static final String SET_CUSTOM_LINE_ITEM_SHIPPING_DETAILS
      discriminator value for CartSetCustomLineItemShippingDetailsAction
      See Also:
  • Method Details

    • getCustomLineItemId

      String getCustomLineItemId()

      id of the CustomLineItem to update. Either customLineItemId or customLineItemKey is required.

      Returns:
      customLineItemId
    • getCustomLineItemKey

      String getCustomLineItemKey()

      key of the CustomLineItem to update. Either customLineItemId or customLineItemKey is required.

      Returns:
      customLineItemKey
    • getShippingDetails

      @Valid @Valid ItemShippingDetailsDraft getShippingDetails()

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

      Returns:
      shippingDetails
    • setCustomLineItemId

      void setCustomLineItemId(String customLineItemId)

      id of the CustomLineItem to update. Either customLineItemId or customLineItemKey is required.

      Parameters:
      customLineItemId - value to be set
    • setCustomLineItemKey

      void setCustomLineItemKey(String customLineItemKey)

      key of the CustomLineItem to update. Either customLineItemId or customLineItemKey is required.

      Parameters:
      customLineItemKey - value to be set
    • setShippingDetails

      void setShippingDetails(ItemShippingDetailsDraft shippingDetails)

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

      Parameters:
      shippingDetails - value to be set
    • of

      factory method
      Returns:
      instance of CartSetCustomLineItemShippingDetailsAction
    • of

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

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

      builder factory method for CartSetCustomLineItemShippingDetailsAction
      Returns:
      builder
    • builder

      create builder for CartSetCustomLineItemShippingDetailsAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withCartSetCustomLineItemShippingDetailsAction

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