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 SummaryEnum Constants Enum Constant Description REFUNDID微信退款单号REFUNDNO商户退款号SUBORDERID微信子订单号SUBORDERNO商户子订单号TRADENO商户订单号TRANSACTIONID微信订单号
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()static IdTypevalueOf(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- 
REFUNDIDpublic static final IdType REFUNDID 微信退款单号
 - 
TRANSACTIONIDpublic static final IdType TRANSACTIONID 微信订单号
 - 
TRADENOpublic static final IdType TRADENO 商户订单号
 - 
REFUNDNOpublic static final IdType REFUNDNO 商户退款号
 - 
SUBORDERNOpublic static final IdType SUBORDERNO 商户子订单号
 - 
SUBORDERIDpublic static final IdType SUBORDERID 微信子订单号
 
- 
 - 
Method Detail- 
valuespublic 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
 
 - 
valueOfpublic 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 name
- NullPointerException- if the argument is null
 
 - 
getNamepublic String getName() 
 
- 
 
-