package com.czg.constants;

/**
 * 支付类型枚举
 * tb_order_payment
 *
 * @author ww
 */
public interface PayTypeConstants {
    class SourceType {
        /**
         * 订单支付
         */
        public static final String ORDER = "order";
        /**
         * 霸王餐
         */
        public static final String FREE = "free";
        /**
         * 会员充值
         */
        public static final String MEMBER_IN = "memberIn";
        /**
         * 会员购买开通
         */
        public static final String MEMBER_PAY = "memberPay";
        /**
         * 分销员购买开通
         */
        public static final String DISTRIBUTION = "distribution";
        /**
         * 商家运营余额充值
         */
        public static final String DISTRIBUTION_RECHARGE = "distributionRecharge";
        /**
         * 积分商品购买
         */
        public static final String POINT = "point";
        /**
         * 拼团商品购买
         */
        public static final String WARE = "ware";

        /**
         * 套餐推广
         * package promotion
         */
        public static final String PP = "pp";
    }

    class PayType {
        //支付
        public static final String PAY = "pay";
        //退款
        public static final String REFUND = "refund";
        /**
         * 退款补偿  退款失败的情况 会触发补偿
         * {@link com.czg.task.OTimeTask#refundCompensate()}
         */
        public static final String REFUND_COMPENSATE = "refundCompensate";
    }
    class PayStatus {
        //初始化
        public static final String INIT = "init";
        //支付成功
        public static final String SUCCESS = "success";
        //支付失败
        public static final String FAIL = "fail";
    }
}