Added CancelOrder action with output handling for order cancellation. Introduced CancelOrderOutput enum to represent cancellation states. Refactored ShopPolicy to simplify user checks in viewPickupTimeslots. Updated tests to reflect changes in policy behavior.
11 lines
135 B
PHP
11 lines
135 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Cqs\Actions\Orders;
|
|
|
|
enum CancelOrderOutput
|
|
{
|
|
case CANCELLED;
|
|
case NOT_FOUND;
|
|
}
|