<?php

declare(strict_types=1);

namespace App\Constants;

use Hyperf\Constants\Annotation\Constants;
use Hyperf\Constants\Annotation\Message;
use Hyperf\Constants\EnumConstantsTrait;

#[Constants]
enum RefundType: int
{
    use EnumConstantsTrait;

    #[Message("Refund before shipping")] // 未货前退款
    case RETURN_BEFORE_SHIPPING = 1;

    #[Message("Refund after return")] // 退货退款
    case RETURN_AND_REFUND = 2;

    #[Message("Partial refund after return")] // 退货后部分退款
    case PARTIAL_REFUND  = 3;

    #[Message("Refund without return")] // 无须退货的退款
    case REFUND_WITHOUT_RETURN = 4;

    #[Message("Instant refund without return")] // 下单后闪电退款，尚未发货，无须退货
    case INSTANT_REFUND_WITHOUT_RETURN = 5;
}
