proto.api.APPLY_REFUND_STATUS
*/
class APPLY_REFUND_STATUS
{
/**
* 保留
*
* Generated from protobuf enum APPLY_REFUND_STATUS_RESERVED = 0;
*/
const APPLY_REFUND_STATUS_RESERVED = 0;
/**
* 待确认状态
*
* Generated from protobuf enum APPLY_REFUND_STATUS_WAIT_CONFIRM = 1;
*/
const APPLY_REFUND_STATUS_WAIT_CONFIRM = 1;
/**
* 待审核状态
*
* Generated from protobuf enum APPLY_REFUND_STATUS_WAIT_AUDIT = 2;
*/
const APPLY_REFUND_STATUS_WAIT_AUDIT = 2;
/**
* 退款中状态
*
* Generated from protobuf enum APPLY_REFUND_STATUS_REFUNDING = 3;
*/
const APPLY_REFUND_STATUS_REFUNDING = 3;
/**
* 退款完成状态
*
* Generated from protobuf enum APPLY_REFUND_STATUS_REFUND_SUCCESS = 4;
*/
const APPLY_REFUND_STATUS_REFUND_SUCCESS = 4;
/**
* 审核失败
*
* Generated from protobuf enum APPLY_REFUND_STATUS_AUDIT_FAIL = 5;
*/
const APPLY_REFUND_STATUS_AUDIT_FAIL = 5;
/**
* 退款失败
*
* Generated from protobuf enum APPLY_REFUND_STATUS_REFUND_FAIL = 6;
*/
const APPLY_REFUND_STATUS_REFUND_FAIL = 6;
/**
* 拒绝退款
*
* Generated from protobuf enum APPLY_REFUND_STATUS_REFUND_REJECT = 7;
*/
const APPLY_REFUND_STATUS_REFUND_REJECT = 7;
private static $valueToName = [
self::APPLY_REFUND_STATUS_RESERVED => 'APPLY_REFUND_STATUS_RESERVED',
self::APPLY_REFUND_STATUS_WAIT_CONFIRM => 'APPLY_REFUND_STATUS_WAIT_CONFIRM',
self::APPLY_REFUND_STATUS_WAIT_AUDIT => 'APPLY_REFUND_STATUS_WAIT_AUDIT',
self::APPLY_REFUND_STATUS_REFUNDING => 'APPLY_REFUND_STATUS_REFUNDING',
self::APPLY_REFUND_STATUS_REFUND_SUCCESS => 'APPLY_REFUND_STATUS_REFUND_SUCCESS',
self::APPLY_REFUND_STATUS_AUDIT_FAIL => 'APPLY_REFUND_STATUS_AUDIT_FAIL',
self::APPLY_REFUND_STATUS_REFUND_FAIL => 'APPLY_REFUND_STATUS_REFUND_FAIL',
self::APPLY_REFUND_STATUS_REFUND_REJECT => 'APPLY_REFUND_STATUS_REFUND_REJECT',
];
public static function name($value)
{
if (!isset(self::$valueToName[$value])) {
throw new UnexpectedValueException(sprintf(
'Enum %s has no name defined for value %s', __CLASS__, $value));
}
return self::$valueToName[$value];
}
public static function value($name)
{
$const = __CLASS__ . '::' . strtoupper($name);
if (!defined($const)) {
throw new UnexpectedValueException(sprintf(
'Enum %s has no value defined for name %s', __CLASS__, $name));
}
return constant($const);
}
}