Align commerce module with the monorepo module structure by updating all namespaces to use the Core\Mod\Commerce convention. This change supports the recent monorepo separation and ensures consistency with other modules. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
24 lines
462 B
PHP
24 lines
462 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Core\Mod\Commerce\Events;
|
|
|
|
use Illuminate\Foundation\Events\Dispatchable;
|
|
use Illuminate\Queue\SerializesModels;
|
|
use Core\Mod\Commerce\Models\Order;
|
|
use Core\Mod\Commerce\Models\Payment;
|
|
|
|
/**
|
|
* Event fired when an order is successfully paid.
|
|
*/
|
|
class OrderPaid
|
|
{
|
|
use Dispatchable;
|
|
use SerializesModels;
|
|
|
|
public function __construct(
|
|
public Order $order,
|
|
public Payment $payment
|
|
) {}
|
|
}
|