<?php


namespace Mehrab\Payment\Providers;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
use Mehrab\OrderService\Listeners\PaymentOrderServiceListener;
use Mehrab\Payment\Events\PaymentCashWasSuccessfulEvent;
use Mehrab\Payment\Events\PaymentOnlineWasSuccessfulEvent;
use Mehrab\Payment\Listeners\AddAmountSellerListener;
use Mehrab\Payment\Listeners\ReduceAmountSellerListener;


class EventServiceProvider extends ServiceProvider
{

    protected $listen = [
        PaymentOnlineWasSuccessfulEvent::class => [
            AddAmountSellerListener::class,
            PaymentOrderServiceListener::class,
        ],
        PaymentCashWasSuccessfulEvent::class => [
            ReduceAmountSellerListener::class,
            PaymentOrderServiceListener::class,
        ]
    ];

    public function boot()
    {
        //
    }
}
