Package com.foxinmy.weixin4j.pay.type
Enum TradeState
- java.lang.Object
-
- java.lang.Enum<TradeState>
-
- com.foxinmy.weixin4j.pay.type.TradeState
-
- All Implemented Interfaces:
Serializable
,Comparable<TradeState>
public enum TradeState extends Enum<TradeState>
交易状态- Since:
- JDK 1.6
- Author:
- jinyu(foxinmy@gmail.com)
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
Enum Constant Detail
-
SUCCESS
public static final TradeState SUCCESS
支付成功
-
REFUND
public static final TradeState REFUND
转入退款
-
NOTPAY
public static final TradeState NOTPAY
未支付
-
CLOSED
public static final TradeState CLOSED
已关闭
-
REVOKED
public static final TradeState REVOKED
已撤销
-
USERPAYING
public static final TradeState USERPAYING
用户支付中
-
NOPAY
public static final TradeState NOPAY
未支付(输入密码或 确认支付超时)
-
PAYERROR
public static final TradeState PAYERROR
支付失败(其他 原因,如银行返回失败)
-
-
Method Detail
-
values
public static TradeState[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TradeState c : TradeState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TradeState valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-