Interface LineItemPriceMode

All Superinterfaces:
io.vrap.rmf.base.client.JsonEnum
All Known Implementing Classes:
LineItemPriceMode.LineItemPriceModeEnum

public interface LineItemPriceMode extends io.vrap.rmf.base.client.JsonEnum

This mode indicates how the price is set for the Line Item.

  • Field Details

    • PLATFORM

      The price is selected from the Product Variant. This is the default mode.

    • EXTERNAL_PRICE

      The Line Item price is set externally. Cart Discounts can apply to Line Items with this price mode. All update actions that change the quantity of a Line Item with this price mode require the externalPrice field to be given.

    • EXTERNAL_TOTAL

      The Line Item price with the total is set externally. Cart Discounts are deactivated for Line Items with this price mode. Although a Line Item with this price mode has both price and totalPrice set externally, only totalPrice is used to calculate the total price of a Cart. All update actions that change the quantity of a Line Item with this price mode can set the new price with the externalTotal field. If the externalTotal field is not given in the update actions, the external price is unset and the price mode is set to Platform.

  • Method Details

    • getJsonName

      the JSON value
      Specified by:
      getJsonName in interface io.vrap.rmf.base.client.JsonEnum
      Returns:
      json value
    • name

      the enum value
      Specified by:
      name in interface io.vrap.rmf.base.client.JsonEnum
      Returns:
      name
    • toString

      convert value to string
      Specified by:
      toString in interface io.vrap.rmf.base.client.JsonEnum
      Overrides:
      toString in class Object
      Returns:
      string representation
    • findEnum

      factory method for a enum value of LineItemPriceMode if no enum has been found an anonymous instance will be created
      Parameters:
      value - the enum value to be wrapped
      Returns:
      enum instance
    • findEnumViaJsonName

      method to find enum using the JSON value
      Parameters:
      jsonName - the json value to be wrapped
      Returns:
      optional of enum instance
    • values

      possible enum values
      Returns:
      array of possible enum values