26 lines
765 B
PHP
26 lines
765 B
PHP
<?php
|
|
|
|
namespace Modules\Core\Order\Events;
|
|
|
|
use Illuminate\Foundation\Events\Dispatchable;
|
|
use Lunar\Models\Order;
|
|
|
|
/**
|
|
* Dispatched by Modules\Core\Order\Services\OrderFulfillmentService::
|
|
* markPickedUp(), the staff-driven "Update Status" action's handling of
|
|
* the 'picked_up' target — the customer has collected a store-pickup
|
|
* order in person. Store-pickup only; a carrier order's equivalent
|
|
* "arrived" moment is OrderDelivered. Modules\Core\Order\Listeners\
|
|
* CompleteOrderOnPickedUp reacts to this by moving `status` straight to
|
|
* 'completed' — no return-window step for store-pickup, per the business
|
|
* design.
|
|
*/
|
|
class OrderPickedUp
|
|
{
|
|
use Dispatchable;
|
|
|
|
public function __construct(
|
|
public readonly Order $order,
|
|
) {}
|
|
}
|