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 SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static TradeStatevalueOf(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- 
SUCCESSpublic static final TradeState SUCCESS 支付成功
 - 
REFUNDpublic static final TradeState REFUND 转入退款
 - 
NOTPAYpublic static final TradeState NOTPAY 未支付
 - 
CLOSEDpublic static final TradeState CLOSED 已关闭
 - 
REVOKEDpublic static final TradeState REVOKED 已撤销
 - 
USERPAYINGpublic static final TradeState USERPAYING 用户支付中
 - 
NOPAYpublic static final TradeState NOPAY 未支付(输入密码或 确认支付超时)
 - 
PAYERRORpublic static final TradeState PAYERROR 支付失败(其他 原因,如银行返回失败)
 
- 
 - 
Method Detail- 
valuespublic 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
 
 - 
valueOfpublic 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 name
- NullPointerException- if the argument is null
 
 
- 
 
-