Files
datahub/backend/app/Platform/Shopee/Constants/OrderStatus.php
T

46 lines
1.1 KiB
PHP
Raw Normal View History

2025-12-09 15:46:01 +08:00
<?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]
2025-12-09 16:02:52 +08:00
enum OrderStatus: int
2025-12-09 15:46:01 +08:00
{
use EnumConstantsTrait;
#[Message("Order is created, buyer has not paid yet.")]
2025-12-09 16:02:52 +08:00
case UNPAID = 1;
2025-12-09 15:46:01 +08:00
#[Message("Seller can arrange shipment.")]
2025-12-09 16:02:52 +08:00
case READY_TO_SHIP = 2;
2025-12-09 15:46:01 +08:00
#[Message("Seller has arranged shipment online and got tracking number from 3PL.")]
2025-12-09 16:02:52 +08:00
case PROCESSED = 3;
2025-12-09 15:46:01 +08:00
#[Message("3PL pickup parcel fail. Need to re arrange shipment.")]
2025-12-09 16:02:52 +08:00
case RETRY_SHIP = 4;
2025-12-09 15:46:01 +08:00
#[Message("The parcel has been drop to 3PL or picked up by 3PL.")]
2025-12-09 16:02:52 +08:00
case SHIPPED = 5;
2025-12-09 15:46:01 +08:00
#[Message("The order has been received by buyer.")]
2025-12-09 16:02:52 +08:00
case TO_CONFIRM_RECEIVE = 6;
2025-12-09 15:46:01 +08:00
#[Message("The order's cancelation is under processing.")]
2025-12-09 16:02:52 +08:00
case IN_CANCEL = 7;
2025-12-09 15:46:01 +08:00
#[Message("The order has been canceled.")]
2025-12-09 16:02:52 +08:00
case CANCELLED = 8;
2025-12-09 15:46:01 +08:00
#[Message("The buyer requested to return the order and order's return is processing.")]
2025-12-09 16:02:52 +08:00
case TO_RETURN = 9;
2025-12-09 15:46:01 +08:00
#[Message("The order has been completed.")]
2025-12-09 16:02:52 +08:00
case COMPLETED = 10;
2025-12-09 15:46:01 +08:00
}