|
@@ -28,13 +28,12 @@ enum BalpayLogTypeEnum: int
|
|
|
* 解冻
|
|
* 解冻
|
|
|
*/
|
|
*/
|
|
|
case UNFREEZE = 5;
|
|
case UNFREEZE = 5;
|
|
|
- /**
|
|
|
|
|
|
|
+ /**
|
|
|
* 提现
|
|
* 提现
|
|
|
*/
|
|
*/
|
|
|
case WITHDRAWAL = 6;
|
|
case WITHDRAWAL = 6;
|
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
public function toString(): string
|
|
public function toString(): string
|
|
|
{
|
|
{
|
|
|
return match ($this) {
|
|
return match ($this) {
|
|
@@ -50,7 +49,10 @@ enum BalpayLogTypeEnum: int
|
|
|
public function negative(): bool
|
|
public function negative(): bool
|
|
|
{
|
|
{
|
|
|
return match ($this) {
|
|
return match ($this) {
|
|
|
- self::CONSUMTION, self::FREEZE => true,
|
|
|
|
|
|
|
+ self::CONSUMTION,
|
|
|
|
|
+ self::FREEZE,
|
|
|
|
|
+ self::WITHDRAWAL
|
|
|
|
|
+ => true,
|
|
|
default => false,
|
|
default => false,
|
|
|
};
|
|
};
|
|
|
}
|
|
}
|