add shopee enum
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
<?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';
|
||||
}
|
||||
Reference in New Issue
Block a user