<NME> YiJiTransactionType.java
<BEF> package com.egzosn.pay.yiji.bean;

import com.egzosn.pay.common.bean.TransactionType;

/**
 * 易极付交易类型
 * <pre>
 * 说明交易类型主要用于支付接口调用参数所需
 *
 * </pre>
 *
 * @author egan
 *
 * email egzosn@gmail.com
 * date 2019/04/15 22:58
 */
public enum  YiJiTransactionType implements TransactionType {
    /**
     * 跳转微支付
     */
    commonWchatTradeRedirect("commonWchatTradeRedirect"),
    /**
     * 跳转收银台支付
     */
    commonTradePay("commonTradePay"),
    /**
     * 跨境订单同步
     */
    corderRemittanceSynOrder("corderRemittanceSynOrder"),
    /**
     * 国际转账
     */
    applyRemittranceWithSynOrder("applyRemittranceWithSynOrder")

;

    private String method;

    YiJiTransactionType(String method) {
        this.method = method;
        this.method = method;
    }

    @Override
        return this.name();
    }

    /**
     * 获取接口名称
     * @return 接口名称
     */
    @Override
    @Override
        return this.method;
    }

}
}

<MSG> 易极付功能完成

<DFF> @@ -1,7 +1,11 @@
 package com.egzosn.pay.yiji.bean;
 
+import com.egzosn.pay.common.bean.PayOrder;
 import com.egzosn.pay.common.bean.TransactionType;
 
+import java.util.HashMap;
+import java.util.Map;
+
 /**
  * 易极付交易类型
  * <pre>
@@ -10,11 +14,11 @@ import com.egzosn.pay.common.bean.TransactionType;
  * </pre>
  *
  * @author egan
- *
- * email egzosn@gmail.com
- * date 2019/04/15 22:58
+ *         <p>
+ *         email egzosn@gmail.com
+ *         date 2019/04/15 22:58
  */
-public enum  YiJiTransactionType implements TransactionType {
+public enum YiJiTransactionType implements TransactionType {
     /**
      * 跳转微支付
      */
@@ -22,19 +26,35 @@ public enum  YiJiTransactionType implements TransactionType {
     /**
      * 跳转收银台支付
      */
-    commonTradePay("commonTradePay"),
+    commonTradePay("commonTradePay"){
+        public String getVersion() {
+            return "2.0";
+        }
+    },
+    tradeRefund("tradeRefund"),
     /**
      * 跨境订单同步
-     */
+     *//*
     corderRemittanceSynOrder("corderRemittanceSynOrder"),
+    */
     /**
      * 国际转账
      */
     applyRemittranceWithSynOrder("applyRemittranceWithSynOrder")
-
-;
+    ;
 
     private String method;
+    /**
+     * 版本
+     */
+    private String version = "1.0";
+
+    private static final Map<String, TransactionType> transactiontypes = new HashMap<String, TransactionType>();
+    static {
+        for (TransactionType type : YiJiTransactionType.values()){
+            transactiontypes.put(type.getMethod(), type);
+        }
+    }
 
     YiJiTransactionType(String method) {
         this.method = method;
@@ -45,8 +65,13 @@ public enum  YiJiTransactionType implements TransactionType {
         return this.name();
     }
 
+    public String getVersion() {
+        return version;
+    }
+
     /**
      * 获取接口名称
+     *
      * @return 接口名称
      */
     @Override
@@ -54,4 +79,13 @@ public enum  YiJiTransactionType implements TransactionType {
         return this.method;
     }
 
+
+    public void setAttribute(Map<String, Object> parameters, PayOrder order) {
+        parameters.put("version", getVersion());
+    }
+
+    public static TransactionType getTransactionType(String method) {
+        return transactiontypes.get(method);
+    }
+
 }

易极付功能完成