public enum TradeState extends Enum<TradeState>
| 枚举常量和说明 |
|---|
ACCEPT
已接收,等待扣款
|
CLOSED
已关闭
|
ERROR
异常
|
NOTPAY
未支付
|
PAYERROR
支付失败(其他原因,如银行返回失败)
|
REFUND
转入退款
|
REVOKED
已撤销(刷卡支付)
|
SUCCESS
支付成功
|
USERPAYING
用户支付中
|
| 限定符和类型 | 方法和说明 |
|---|---|
static TradeState |
of(String status) |
static TradeState |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static TradeState[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final TradeState SUCCESS
public static final TradeState REFUND
public static final TradeState NOTPAY
public static final TradeState CLOSED
public static final TradeState REVOKED
public static final TradeState USERPAYING
public static final TradeState PAYERROR
public static final TradeState ACCEPT
public static final TradeState ERROR
public static TradeState[] values()
for (TradeState c : TradeState.values()) System.out.println(c);
public static TradeState valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public static TradeState of(String status)
Copyright © 2023. All rights reserved.