package com.liquidnet.service.dragon.channel.unionpay.constant;

/**
 * @author AnJiabin <anjiabin@zhengzai.tv>
 * @version V1.0
 * @Description: TODO
 * @class: UnionpayConstant
 * @Package com.liquidnet.service.dragon.channel.unionpay.constant
 * @Copyright: LightNet @ Copyright (c) 2021
 * @date 2021/11/8 18:12
 */
public class UnionpayConstant {
    //默认配置的是UTF-8
    public static String encoding = "UTF-8";
    public enum UnionTradeStateEnum {
        TRADE_CLOSED ("TRADE_CLOSED","交易关闭"),
        TRADE_FINISHED ("TRADE_FINISHED","支付完成"),
        TRADE_DEFECTIVENESS_SUCCESS ("A6","有缺陷的成功"),
        TRADE_SUCCESS ("00","支付成功"),
        WAIT_BUYER_PAY ("WAIT_BUYER_PAY","交易创建"),

        FAIL("01","支付失败");

        private String code;
        private String message;
        UnionTradeStateEnum(String code, String message) {
            this.code = code;
            this.message = message;
        }

        public String getCode() {
            return code;
        }
    }
}
