All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hn.pay.alipay.enums.TradeStatus Maven / Gradle / Ivy

There is a newer version: 1.0.18
Show newest version
package com.hn.pay.alipay.enums;

/**
 * 交易状态
 */
public enum TradeStatus {
    /**
     * 交易创建,等待买家付款
     */
    WAIT_BUYER_PAY,
    /**
     * 未付款交易超时关闭,或支付完成后全额退款
     */
    TRADE_CLOSED,
    /**
     * 交易支付成功
     */
    TRADE_SUCCESS,
    /**
     * 交易结束,不可退款
     */
    TRADE_FINISHED;

    public boolean equals(String tradeStatus) {
        return String.valueOf(this).equals(tradeStatus);
    }

    public static void main(String[] args) {
        System.out.println(TradeStatus.TRADE_SUCCESS.equals("TRADE_SUCCESS"));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy