no message
This commit is contained in:
74
src/main/java/com/sczx/pay/dto/PaymentRequest.java
Normal file
74
src/main/java/com/sczx/pay/dto/PaymentRequest.java
Normal file
@ -0,0 +1,74 @@
|
||||
package com.sczx.pay.dto;
|
||||
|
||||
/**
|
||||
* 支付请求数据传输对象
|
||||
*/
|
||||
public class PaymentRequest {
|
||||
private Long companyId; // 公司ID
|
||||
private String body; // 商品描述
|
||||
private String outTradeNo; // 商户订单号
|
||||
private Integer totalFee; // 总金额,单位为分
|
||||
private String spbillCreateIp; // 终端IP
|
||||
private String openId; // 用户标识
|
||||
private String attach; // 附加数据
|
||||
|
||||
// 构造函数
|
||||
public PaymentRequest() {}
|
||||
|
||||
// getter和setter方法
|
||||
public Long getCompanyId() {
|
||||
return companyId;
|
||||
}
|
||||
|
||||
public void setCompanyId(Long companyId) {
|
||||
this.companyId = companyId;
|
||||
}
|
||||
|
||||
public String getBody() {
|
||||
return body;
|
||||
}
|
||||
|
||||
public void setBody(String body) {
|
||||
this.body = body;
|
||||
}
|
||||
|
||||
public String getOutTradeNo() {
|
||||
return outTradeNo;
|
||||
}
|
||||
|
||||
public void setOutTradeNo(String outTradeNo) {
|
||||
this.outTradeNo = outTradeNo;
|
||||
}
|
||||
|
||||
public Integer getTotalFee() {
|
||||
return totalFee;
|
||||
}
|
||||
|
||||
public void setTotalFee(Integer totalFee) {
|
||||
this.totalFee = totalFee;
|
||||
}
|
||||
|
||||
public String getSpbillCreateIp() {
|
||||
return spbillCreateIp;
|
||||
}
|
||||
|
||||
public void setSpbillCreateIp(String spbillCreateIp) {
|
||||
this.spbillCreateIp = spbillCreateIp;
|
||||
}
|
||||
|
||||
public String getOpenId() {
|
||||
return openId;
|
||||
}
|
||||
|
||||
public void setOpenId(String openId) {
|
||||
this.openId = openId;
|
||||
}
|
||||
|
||||
public String getAttach() {
|
||||
return attach;
|
||||
}
|
||||
|
||||
public void setAttach(String attach) {
|
||||
this.attach = attach;
|
||||
}
|
||||
}
|
||||
38
src/main/java/com/sczx/pay/dto/PaymentResponse.java
Normal file
38
src/main/java/com/sczx/pay/dto/PaymentResponse.java
Normal file
@ -0,0 +1,38 @@
|
||||
package com.sczx.pay.dto;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 支付响应数据传输对象
|
||||
*/
|
||||
public class PaymentResponse {
|
||||
private String code;
|
||||
private String message;
|
||||
private Map<String, String> payData;
|
||||
|
||||
public PaymentResponse() {}
|
||||
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(String code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getMessage() {
|
||||
return message;
|
||||
}
|
||||
|
||||
public void setMessage(String message) {
|
||||
this.message = message;
|
||||
}
|
||||
|
||||
public Map<String, String> getPayData() {
|
||||
return payData;
|
||||
}
|
||||
|
||||
public void setPayData(Map<String, String> payData) {
|
||||
this.payData = payData;
|
||||
}
|
||||
}
|
||||
65
src/main/java/com/sczx/pay/dto/RefundRequest.java
Normal file
65
src/main/java/com/sczx/pay/dto/RefundRequest.java
Normal file
@ -0,0 +1,65 @@
|
||||
package com.sczx.pay.dto;
|
||||
|
||||
/**
|
||||
* 退款请求数据传输对象
|
||||
*/
|
||||
public class RefundRequest {
|
||||
private Long companyId; // 公司ID
|
||||
private String outTradeNo; // 商户订单号
|
||||
private String outRefundNo; // 商户退款单号
|
||||
private Integer totalFee; // 订单金额(分)
|
||||
private Integer refundFee; // 退款金额(分)
|
||||
private String refundDesc; // 退款原因
|
||||
|
||||
// 构造函数
|
||||
public RefundRequest() {}
|
||||
|
||||
// getter和setter方法
|
||||
public Long getCompanyId() {
|
||||
return companyId;
|
||||
}
|
||||
|
||||
public void setCompanyId(Long companyId) {
|
||||
this.companyId = companyId;
|
||||
}
|
||||
|
||||
public String getOutTradeNo() {
|
||||
return outTradeNo;
|
||||
}
|
||||
|
||||
public void setOutTradeNo(String outTradeNo) {
|
||||
this.outTradeNo = outTradeNo;
|
||||
}
|
||||
|
||||
public String getOutRefundNo() {
|
||||
return outRefundNo;
|
||||
}
|
||||
|
||||
public void setOutRefundNo(String outRefundNo) {
|
||||
this.outRefundNo = outRefundNo;
|
||||
}
|
||||
|
||||
public Integer getTotalFee() {
|
||||
return totalFee;
|
||||
}
|
||||
|
||||
public void setTotalFee(Integer totalFee) {
|
||||
this.totalFee = totalFee;
|
||||
}
|
||||
|
||||
public Integer getRefundFee() {
|
||||
return refundFee;
|
||||
}
|
||||
|
||||
public void setRefundFee(Integer refundFee) {
|
||||
this.refundFee = refundFee;
|
||||
}
|
||||
|
||||
public String getRefundDesc() {
|
||||
return refundDesc;
|
||||
}
|
||||
|
||||
public void setRefundDesc(String refundDesc) {
|
||||
this.refundDesc = refundDesc;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user