Interface CartChangeCustomLineItemPriceModeAction

All Superinterfaces:
CartUpdateAction, ResourceUpdateAction<CartUpdateAction>

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

     CartChangeCustomLineItemPriceModeAction cartChangeCustomLineItemPriceModeAction = CartChangeCustomLineItemPriceModeAction.builder()
             .mode(CustomLineItemPriceMode.STANDARD)
             .build()
 
  • Field Details

    • CHANGE_CUSTOM_LINE_ITEM_PRICE_MODE

      static final String CHANGE_CUSTOM_LINE_ITEM_PRICE_MODE
      discriminator value for CartChangeCustomLineItemPriceModeAction
      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
    • getMode

      @NotNull @NotNull CustomLineItemPriceMode getMode()

      New value to set. Must not be empty.

      Returns:
      mode
    • 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
    • setMode

      void setMode(CustomLineItemPriceMode mode)

      New value to set. Must not be empty.

      Parameters:
      mode - value to be set
    • of

      factory method
      Returns:
      instance of CartChangeCustomLineItemPriceModeAction
    • of

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

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

      builder factory method for CartChangeCustomLineItemPriceModeAction
      Returns:
      builder
    • builder

      create builder for CartChangeCustomLineItemPriceModeAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withCartChangeCustomLineItemPriceModeAction

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