com.zopen.alipay.pay.dto.constant.AlipayTradeStateEnum Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zopen-ato-starter Show documentation
Show all versions of zopen-ato-starter Show documentation
Alibaba Tencent And Others For Spring Boot.
package com.zopen.alipay.pay.dto.constant;
/**
* 支付宝订单交易状态
*
* @author [email protected]
* @since 2019/8/24
*/
public enum AlipayTradeStateEnum {
// 交易创建,等待买家付款
WAIT_BUYER_PAY("交易创建", false),
// 交易支付成功
TRADE_SUCCESS("支付成功", true),
// 交易结束,不可退款
TRADE_FINISHED("交易完成", true),
// 未付款交易超时关闭,或支付完成后全额退款
TRADE_CLOSED("交易关闭", true);
private String desc;
private Boolean notify;
AlipayTradeStateEnum(String desc, Boolean notify) {
this.desc = desc;
this.notify = notify;
}
public String getDesc() {
return desc;
}
public Boolean getNotify() {
return notify;
}
}