<?php

namespace App\Listeners;

use Illuminate\Contracts\Queue\ShouldQueue;
use Modules\User\Events\UserOrderPaid;

class UserOrderPaidListener implements ShouldQueue
{

    public function handle(UserOrderPaid $event)
    {
        $order    = $event->order;
        $user     = $event->order->user;
        $identity = $event->order->identity;
        $source   = [
            'identity_id' => $identity->id,
            'order_id'    => $event->order->id,
            'type'        => $event->order->type,
        ];
    }

}
