package com.bonus.canteen.core.order.common.constants;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public enum OrderAmountDetailTypeEnum {
   PAY(1, "支付"),
   REFUND(2, "退款");

   private final Integer key;
   private final String desc;

   private OrderAmountDetailTypeEnum(Integer key, String desc) {
      this.key = key;
      this.desc = desc;
   }

   public static List<Map<String, Object>> getAllEnumsList() {
      OrderAmountDetailTypeEnum[] enums = values();
      List<Map<String, Object>> list = new ArrayList();
      OrderAmountDetailTypeEnum[] var2 = enums;
      int var3 = enums.length;

      for(int var4 = 0; var4 < var3; ++var4) {
         OrderAmountDetailTypeEnum stateEnum = var2[var4];
         Map<String, Object> map = new HashMap();
         map.put("key", stateEnum.getKey());
         map.put("value", stateEnum.getDesc());
         list.add(map);
      }

      return list;
   }

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

   public String getDesc() {
      return this.desc;
   }

   // $FF: synthetic method
   private static OrderAmountDetailTypeEnum[] $values() {
      return new OrderAmountDetailTypeEnum[]{PAY, REFUND};
   }
}
