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 {
    public enum UnionpayTradeStateEnum {
        TRADE_CLOSED ("TRADE_CLOSED","交易关闭"),
        TRADE_FINISHED ("TRADE_FINISHED","支付完成"),

        TRADE_SUCCESS ("TRADE_SUCCESS","支付成功"),
        WAIT_BUYER_PAY ("WAIT_BUYER_PAY","交易创建"),

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

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

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