package com.bonus.canteen.core.marketing.v2.rule.price.constants;

import com.bonus.canteen.core.marketing.util.ICommonEnum;

public enum RulePriceLimitEnum implements ICommonEnum {
   LIMIT_DAY(1, "按日限制"),
   LIMIT_MONTH(2, "按月限制"),
   LIMIT_MEALTIME(3, "按餐次限制");

   private final Integer key;
   private final String value;

   @Override
   public Integer getKey() {
      return this.key;
   }

   @Override
   public String getValue() {
      return this.value;
   }

   private RulePriceLimitEnum(final Integer key, final String value) {
      this.key = key;
      this.value = value;
   }

   // $FF: synthetic method
   private static RulePriceLimitEnum[] $values() {
      return new RulePriceLimitEnum[]{LIMIT_DAY, LIMIT_MONTH, LIMIT_MEALTIME};
   }
}
