com.foxinmy.weixin4j.type
Enum TradeState

java.lang.Object
  extended by java.lang.Enum<TradeState>
      extended by com.foxinmy.weixin4j.type.TradeState
All Implemented Interfaces:
Serializable, Comparable<TradeState>

public enum TradeState
extends Enum<TradeState>

交易状态

Since:
JDK 1.6
Author:
jinyu(foxinmy@gmail.com)
See Also:

Enum Constant Summary
CLOSED
          已关闭
NOPAY
          未支付(输入密码或 确认支付超时)
NOTPAY
          未支付
PAYERROR
          支付失败(其他 原因,如银行返回失败)
REFUND
          转入退款
REVOKED
          已撤销
SUCCESS
          支付成功
USERPAYING
          用户支付中
 
Method Summary
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.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

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 name
NullPointerException - if the argument is null


Copyright © 2014–2017. All rights reserved.