package com.liquidnet.service.dragon.constant;

/**
 *
 */
public class DragonConstant {
    public enum payChannelEnum{
        ALIPAY("alipay","支付宝"),
        WEPAY ("wePay","微信"),
        CLOUDPAY("cloudPay","云闪付");
        private String code;
        private String message;
        payChannelEnum(String code, String message) {
            this.code = code;
            this.message = message;
        }
    }
    /**
     * 支付状态
     */
    public enum payStatusEnum{
        STATUS_UNPAID("0","未支付，或支付中"),
        STATUS_PAID("1","已支付"),
        STATUS_SUCCESS("2","已支付，通知成功，交易结束"),
        STATUS_FAIL("3","已支付，通知失败，交易结束"),
        STATUS_EXPIRE("4","已支付，通知超时，交易结束");

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

    /**
     * 支付业务类型
     */
    public enum bussinessTypeEnum{
        TYPE_TICKET("TICKET","票务购买（实物购买）"),
        TYPE_PRODUCT("PRODUCT","商品购买（实物购买）"),
        TYPE_COST("COST","活动资费（活动成本费、活动报名费）"),
        TYPE_MBEANS("MBEANS","点豆充值（虚拟道具）"),
        TYPE_LIVE("LIVE","直播付费（数字资产）"),
        TYPE_VIDEO("VIDEO","点播付费（数字资产）"),
        TYPE_VIP("VIP","会员购买（数字+实物资产）"),
        TYPE_CLUB("CLUB","会员购买（数字+实物资产）"),
        TYPE_STRAWBERRY("STRAWBERRY","现场购买 (实物资产)");

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

    /**
     * 支付类型
     */
    public enum payTypeEnum{
        PAYMENT_TYPE_APP_ALIPAY("APPALIPAY","App内支付宝支付"),
        PAYMENT_TYPE_APP_WEPAY("APPWEPAY","App内微信支付"),
        PAYMENT_TYPE_APP_IAP("APPIAP","App内IAP(In-App Purchase)支付，iOS虚拟道具支付"),
        PAYMENT_TYPE_WAP_ALIPAY("WAPALIPAY","手机网页内支付宝支付"),
        PAYMENT_TYPE_WAP_WEPAY("WAPWEPAY","手机网页调起微信支付"),
        PAYMENT_TYPE_WEB_ALIPAY("WEBALIPAY","电脑网页内支付宝即时到账支付"),
        PAYMENT_TYPE_WEB_WEPAY("WEBWEPAY","电脑网页内微信二维码支付，用户打开微信扫码支付"),
        PAYMENT_TYPE_JS_WEPAY("JSWEPAY","微信内网页、微信公众号"),
        PAYMENT_TYPE_APPLET_WEPAY("APPLETWEPAY","微信小程序");

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