public enum TradeState extends Enum<TradeState>
| Enum Constant and Description |
|---|
CLOSED
已关闭
|
NOTPAY
未支付
|
PAYERROR
支付失败(其他原因,如银行返回失败)
|
REFUND
转入退款
|
REVOKED
已撤销(刷卡支付)
|
SUCCESS
支付成功
|
USERPAYING
已撤销(刷卡支付)
|
| Modifier and Type | Method and Description |
|---|---|
static TradeState |
from(String s) |
String |
type() |
static TradeState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TradeState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
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 TradeState[] values()
for (TradeState c : TradeState.values()) System.out.println(c);
public static TradeState valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String type()
public static TradeState from(String s)
Copyright © 2018. All rights reserved.