This commit is contained in:
2025-04-16 14:37:24 +08:00
parent 8ac386242d
commit f6f847e41c
20 changed files with 713 additions and 54 deletions

View File

@ -0,0 +1,34 @@
package com.ycwl.basic.pay.entity;
import lombok.Data;
@Data
public class PayResponse {
private boolean valid;
private String orderNo;
private Object originalResponse;
private Integer orderPrice;
private Integer payPrice;
private PAY_STATE state;
private String payTime;
public boolean isPay() {
return state == PAY_STATE.SUCCESS;
}
public boolean isCancel() {
return state == PAY_STATE.CANCEL;
}
public boolean isRefund() {
return state == PAY_STATE.REFUND;
}
public enum PAY_STATE {
SUCCESS,
CANCEL,
REFUND,
FAIL,
UNKNOWN;
}
}