Interface CartSetLineItemInventoryModeAction

All Superinterfaces:
CartUpdateAction, ResourceUpdateAction<CartUpdateAction>

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

     CartSetLineItemInventoryModeAction cartSetLineItemInventoryModeAction = CartSetLineItemInventoryModeAction.builder()
             .build()
 
  • Field Details

    • SET_LINE_ITEM_INVENTORY_MODE

      static final String SET_LINE_ITEM_INVENTORY_MODE
      discriminator value for CartSetLineItemInventoryModeAction
      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
    • getInventoryMode

      InventoryMode getInventoryMode()

      Inventory mode specific to the Line Item only, and valid for the entire quantity of the Line Item. Set only if the inventory mode should be different from the inventoryMode specified on the Cart.

      Returns:
      inventoryMode
    • 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
    • setInventoryMode

      void setInventoryMode(InventoryMode inventoryMode)

      Inventory mode specific to the Line Item only, and valid for the entire quantity of the Line Item. Set only if the inventory mode should be different from the inventoryMode specified on the Cart.

      Parameters:
      inventoryMode - value to be set
    • of

      factory method
      Returns:
      instance of CartSetLineItemInventoryModeAction
    • of

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

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

      builder factory method for CartSetLineItemInventoryModeAction
      Returns:
      builder
    • builder

      create builder for CartSetLineItemInventoryModeAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withCartSetLineItemInventoryModeAction

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