Files
datahub/backend/app/Platform/Shopee/Constants/OrderStatus.php
T
2025-12-09 15:46:01 +08:00

46 lines
1.3 KiB
PHP

<?php
declare(strict_types=1);
namespace App\Platform\Shopee\Constants;
use Hyperf\Constants\Annotation\Constants;
use Hyperf\Constants\Annotation\Message;
use Hyperf\Constants\EnumConstantsTrait;
#[Constants]
enum OrderStatus: string
{
use EnumConstantsTrait;
#[Message("Order is created, buyer has not paid yet.")]
case UNPAID = 'UNPAID';
#[Message("Seller can arrange shipment.")]
case READY_TO_SHIP = 'READY_TO_SHIP';
#[Message("Seller has arranged shipment online and got tracking number from 3PL.")]
case PROCESSED = 'PROCESSED';
#[Message("3PL pickup parcel fail. Need to re arrange shipment.")]
case RETRY_SHIP = 'RETRY_SHIP';
#[Message("The parcel has been drop to 3PL or picked up by 3PL.")]
case SHIPPED = 'SHIPPED';
#[Message("The order has been received by buyer.")]
case TO_CONFIRM_RECEIVE = 'TO_CONFIRM_RECEIVE';
#[Message("The order's cancelation is under processing.")]
case IN_CANCEL = 'IN_CANCEL';
#[Message("The order has been canceled.")]
case CANCELLED = 'CANCELLED';
#[Message("The buyer requested to return the order and order's return is processing.")]
case TO_RETURN = 'TO_RETURN';
#[Message("The order has been completed.")]
case COMPLETED = 'COMPLETED';
}