<?php

namespace app\common\enum\store;

use app\common\enum\CommonEnum;

class StoreGroupOrderEnum extends CommonEnum
{
    const IS_DEL = parent::IS_DEL;

    // 支付方式
    const PAY_TYPE = [
        'BALANCE' => ['code' => 0, 'name' => '余额支付'],
        'WECHAT' => ['code' => 1, 'name' => '微信支付'],
        'MINI_PROGRAM' => ['code' => 2, 'name' => '小程序支付'],
        'H5' => ['code' => 3, 'name' => 'H5支付'],
        'ALIPAY' => ['code' => 4, 'name' => '支付宝支付'],
    ];

    // 分账状态
    const SPLIT_STATUS = [
        'NOT_SPLIT' => ['code' => 0, 'name' => '未分账'],
        'SPLIT_SUCCESS' => ['code' => 1, 'name' => '分账成功'],
        'SPLIT_FAILED' => ['code' => 2, 'name' => '分账失败'],
    ];

    // 是否提醒
    const IS_REMIND = [
        'NO' => ['code' => 0, 'name' => '不提醒'],
        'YES' => ['code' => 1, 'name' => '提醒'],
    ];

    // 是否为测试订单
    const TEST_ORDER = [
        'NO' => ['code' => 0, 'name' => '不是测试订单'],
        'YES' => ['code' => 1, 'name' => '是测试订单'],
    ];

    // 支付状态
    const PAID = [
        'NO' => ['code' => 0, 'name' => '未支付'],
        'YES' => ['code' => 1, 'name' => '已支付'],
    ];

    // 微信支付渠道后台设置
    const PAY_WX = [
        'ONE' => ['code' => 1, 'name' => '未知'], // 代码中有使用 但现在未知是何定义
        'TDBA' => ['code' => 2, 'name' => '天地博爱'],
        'TDYL' => ['code' => 3, 'name' => '天地易联']
    ];
}