com.foxinmy.weixin4j.type
Enum IdType

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

public enum IdType
extends Enum<IdType>

ID类型

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

Enum Constant Summary
REFUNDID
          微信退款单号
REFUNDNO
          商户退款号
SUBORDERID
          微信子订单号
SUBORDERNO
          商户子订单号
TRADENO
          商户订单号
TRANSACTIONID
          微信订单号
 
Method Summary
 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.
 
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

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

getName

public String getName()


Copyright © 2014–2017. All rights reserved.