*/ class RefundStatusEnum extends BaseEnum { const APPLY = 10; const SALES_RETURN = 20; const AFFIRM_SALES_RETURN = 30; const AFFIRM_RETURN_MONEY = 40; const CONSENT = 50; const NO_PASS_ALWAYS = -10; const CANCEL = -20; const NO_PASS = -30; // 换货 const AFFIRM_SHIPMENTS = 41; const SHIPMENTS = 42; const MEMBER_AFFIRM = 43; /** * @return array */ public static function getMap(): array { return [ self::APPLY => '买家退款申请', // 发起了退款申请,等待卖家处理 self::SALES_RETURN => '等待买家退货', // 卖家已同意退款申请,等待买家退货 self::AFFIRM_SALES_RETURN => '等待卖家确认收货', // 买家已退货,等待卖家确认收货 self::AFFIRM_RETURN_MONEY => '等待卖家确认退款', self::CONSENT => '卖家同意退款', self::NO_PASS_ALWAYS => '退款已拒绝', // 不允许再次申请 self::CANCEL => '退款已关闭', self::NO_PASS => '退款申请不通过', // 换货 self::AFFIRM_SHIPMENTS => '等待卖家发货', self::SHIPMENTS => '等待买家收到商品', self::MEMBER_AFFIRM => '换货完成', // 等待买家确认收货 ]; } /** * 再退款(售后)状态 * * @return array */ public static function refund() { return [ self::APPLY, self::SALES_RETURN, self::AFFIRM_SALES_RETURN, self::AFFIRM_RETURN_MONEY, self::AFFIRM_SHIPMENTS, // 换货 self::SHIPMENTS, // 换货 ]; } /** * 可发货状态 * * @return array */ public static function deliver() { return [ 0, self::NO_PASS_ALWAYS, self::CANCEL, self::NO_PASS, self::MEMBER_AFFIRM, ]; } /** * 可评价状态 */ public static function evaluate() { return [ self::NO_PASS_ALWAYS, self::CANCEL, self::MEMBER_AFFIRM, 0 ]; } }