Interface MyCartSetLineItemSupplyChannelAction

All Superinterfaces:
MyCartUpdateAction, ResourceUpdateAction<MyCartUpdateAction>

public interface MyCartSetLineItemSupplyChannelAction extends MyCartUpdateAction

Performing this action has no impact on inventory that should be reserved.


Example to create an instance using the builder pattern

     MyCartSetLineItemSupplyChannelAction myCartSetLineItemSupplyChannelAction = MyCartSetLineItemSupplyChannelAction.builder()
             .build()
 
  • Field Details

    • SET_LINE_ITEM_SUPPLY_CHANNEL

      static final String SET_LINE_ITEM_SUPPLY_CHANNEL
      discriminator value for MyCartSetLineItemSupplyChannelAction
      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
    • getSupplyChannel

      @Valid @Valid ChannelResourceIdentifier getSupplyChannel()
      • If present, a Reference to the Channel is set for the LineItem specified by lineItemId.
      • If not present, the current Reference to a supply channel will be removed from the LineItem specified by lineItemId. The Channel must have the InventorySupply ChannelRoleEnum.
      Returns:
      supplyChannel
    • 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
    • setSupplyChannel

      void setSupplyChannel(ChannelResourceIdentifier supplyChannel)
      • If present, a Reference to the Channel is set for the LineItem specified by lineItemId.
      • If not present, the current Reference to a supply channel will be removed from the LineItem specified by lineItemId. The Channel must have the InventorySupply ChannelRoleEnum.
      Parameters:
      supplyChannel - value to be set
    • of

      factory method
      Returns:
      instance of MyCartSetLineItemSupplyChannelAction
    • of

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

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

      builder factory method for MyCartSetLineItemSupplyChannelAction
      Returns:
      builder
    • builder

      create builder for MyCartSetLineItemSupplyChannelAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withMyCartSetLineItemSupplyChannelAction

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