Enum Class PayStatus

java.lang.Object
java.lang.Enum<PayStatus>
com.abasecode.opencode.pay.entity.PayStatus
所有已实现的接口:
Serializable, Comparable<PayStatus>, java.lang.constant.Constable

public enum PayStatus extends Enum<PayStatus>
作者:
Jon e-mail: ijonso123@gmail.com url: Jon's blog url: project github url: AbaseCode.com
  • 枚举常量详细资料

    • WAIT_PAY

      public static final PayStatus WAIT_PAY
      交易创建,等待买家付款
    • TRADE_REFUND

      public static final PayStatus TRADE_REFUND
      交易后退款
    • TRADE_CLOSED

      public static final PayStatus TRADE_CLOSED
      未付款交易超时关闭,或支付完成后全额退款
    • TRADE_SUCCESS

      public static final PayStatus TRADE_SUCCESS
      交易支付成功
    • TRADE_FINISHED

      public static final PayStatus TRADE_FINISHED
      交易结束,不可退款
    • TRADE_FAILED

      public static final PayStatus TRADE_FAILED
    • UNKNOWN

      public static final PayStatus UNKNOWN
      未知状态
  • 字段详细资料

    • code

      private int code
    • name

      private String name
  • 构造器详细资料

    • PayStatus

      private PayStatus(int code, String name)
  • 方法详细资料

    • values

      public static PayStatus[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      返回:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static PayStatus valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      参数:
      name - 要返回的枚举常量的名称。
      返回:
      返回带有指定名称的枚举常量
      抛出:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - 如果参数为空值