Package com.foxinmy.weixin4j.pay.type
Enum IdType
- java.lang.Object
-
- java.lang.Enum<IdType>
-
- com.foxinmy.weixin4j.pay.type.IdType
-
- All Implemented Interfaces:
Serializable
,Comparable<IdType>
public enum IdType extends Enum<IdType>
ID类型- Since:
- JDK 1.6
- Author:
- jinyu(foxinmy@gmail.com)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description REFUNDID
微信退款单号REFUNDNO
商户退款号SUBORDERID
微信子订单号SUBORDERNO
商户子订单号TRADENO
商户订单号TRANSACTIONID
微信订单号
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
static IdType
valueOf(String name)
Returns the enum constant of this type with the specified name.static IdType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
REFUNDID
public static final IdType REFUNDID
微信退款单号
-
TRANSACTIONID
public static final IdType TRANSACTIONID
微信订单号
-
TRADENO
public static final IdType TRADENO
商户订单号
-
REFUNDNO
public static final IdType REFUNDNO
商户退款号
-
SUBORDERNO
public static final IdType SUBORDERNO
商户子订单号
-
SUBORDERID
public static final IdType SUBORDERID
微信子订单号
-
-
Method Detail
-
values
public static IdType[] 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 (IdType c : IdType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IdType 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
-
getName
public String getName()
-
-