<?php

namespace App\Listeners;

use App\Constant\PayConstant;
use App\Http\Controllers\Module\MorningSignIn\Services\MorningSignInService;
use App\Http\Controllers\Module\MorningSignIn\Type\PromiseStatus;
use App\Modules\AudioRedbag\Types\PackagePayStatus;
use App\Modules\AudioRedbag\Types\PackageStatus;
use App\Modules\Modules;
use App\Services\PlatformService;
use Carbon\Carbon;
use Edwin404\Base\Support\DatetimeHelper;
use Edwin404\Base\Support\ModelHelper;
use Edwin404\Member\Services\MemberMoneyService;
use Edwin404\Pay\Events\OrderPayedEvent;
use Edwin404\Shop\Types\OrderStatus;
use Edwin404\User\Services\UserService;

class PayListener
{

    public function onOrderPayed(OrderPayedEvent $event)
    {
        $biz = $event->biz;
        $bizId = $event->bizId;
    }

    public function subscribe($events)
    {
        $events->listen(
            OrderPayedEvent::class,
            '\App\Listeners\PayListener@onOrderPayed'
        );
    }
}