Enum Class DefaultFeeCalculationOperation

java.lang.Object
java.lang.Enum<DefaultFeeCalculationOperation>
com.broadleafcommerce.cartoperation.domain.enums.DefaultFeeCalculationOperation
All Implemented Interfaces:
Serializable, Comparable<DefaultFeeCalculationOperation>, Constable

public enum DefaultFeeCalculationOperation extends Enum<DefaultFeeCalculationOperation>
Represents the operation to be used when calculating the fee to be applied to a cart and its items.
Since:
Cart Operation Services 2.3.0, Release Train 2.3.0
Author:
Julia Lopez-Pozas (jlopezpozas)
  • Enum Constant Details

  • Method Details

    • values

      public static DefaultFeeCalculationOperation[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static DefaultFeeCalculationOperation valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • isFixedAmount

      public static boolean isFixedAmount(String operation)
    • isRate

      public static boolean isRate(String operation)