add shopee enum
This commit is contained in:
@@ -0,0 +1,33 @@
|
|||||||
|
<?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 ItemStatus: string
|
||||||
|
{
|
||||||
|
use EnumConstantsTrait;
|
||||||
|
|
||||||
|
#[Message("Normal")]
|
||||||
|
case NORMAL = 'NORMAL';
|
||||||
|
|
||||||
|
#[Message("Banned")]
|
||||||
|
case BANNED = 'BANNED';
|
||||||
|
|
||||||
|
#[Message("Unlisted")]
|
||||||
|
case UNLIST = 'UNLIST';
|
||||||
|
|
||||||
|
#[Message("Reviewing")]
|
||||||
|
case REVIEWING = 'REVIEWING';
|
||||||
|
|
||||||
|
#[Message("Seller deleted")]
|
||||||
|
case SELLER_DELETE = 'SELLER_DELETE';
|
||||||
|
|
||||||
|
#[Message("Shopee deleted")]
|
||||||
|
case SHOPEE_DELETE = 'SHOPEE_DELETE';
|
||||||
|
}
|
||||||
@@ -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';
|
||||||
|
}
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
<?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 ReturnStatus: string
|
||||||
|
{
|
||||||
|
use EnumConstantsTrait;
|
||||||
|
|
||||||
|
#[Message("Return requested")]
|
||||||
|
case REQUESTED = 'REQUESTED';
|
||||||
|
|
||||||
|
#[Message("Return accepted")]
|
||||||
|
case ACCEPTED = 'ACCEPTED';
|
||||||
|
|
||||||
|
#[Message("Return cancelled")]
|
||||||
|
case CANCELLED = 'CANCELLED';
|
||||||
|
|
||||||
|
#[Message("Return judging")]
|
||||||
|
case JUDGING = 'JUDGING';
|
||||||
|
|
||||||
|
#[Message("Return closed")]
|
||||||
|
case CLOSED = 'CLOSED';
|
||||||
|
|
||||||
|
#[Message("Return processing")]
|
||||||
|
case PROCESSING = 'PROCESSING';
|
||||||
|
|
||||||
|
#[Message("Seller dispute")]
|
||||||
|
case SELLER_DISPUTE = 'SELLER_DISPUTE';
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user