25 lines
719 B
PHP
25 lines
719 B
PHP
<?php
|
|
|
|
namespace Modules\Core\Order\Events;
|
|
|
|
use Illuminate\Foundation\Events\Dispatchable;
|
|
use Lunar\Models\Order;
|
|
use Modules\Core\Shipping\Models\ShipmentInfo;
|
|
|
|
/**
|
|
* Dispatched by Order's DeriveOrderDeliveredFromShipment listener, which
|
|
* reacts to Shipping's ShipmentStatusUpdatedByCarrier — delivery is a
|
|
* tracking checkpoint, not a manual status write, so it never goes through
|
|
* OrderStatusUpdated. Order.status itself is left untouched here; this is
|
|
* only the signal for delivery notifications and similar reactions.
|
|
*/
|
|
class OrderDelivered
|
|
{
|
|
use Dispatchable;
|
|
|
|
public function __construct(
|
|
public readonly Order $order,
|
|
public readonly ShipmentInfo $shipmentInfo,
|
|
) {}
|
|
}
|