mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2026-03-10 00:13:40 +08:00
🆕 #2692【企业微信】增加家校应用-班级收款接口支持
This commit is contained in:
@@ -0,0 +1,65 @@
|
||||
package me.chanjar.weixin.cp.bean.school;
|
||||
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import lombok.Data;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import me.chanjar.weixin.cp.bean.WxCpBaseResp;
|
||||
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 获取学生付款结果.
|
||||
*
|
||||
* @author Wang_Wong
|
||||
*/
|
||||
@Data
|
||||
public class WxCpPaymentResult extends WxCpBaseResp implements Serializable {
|
||||
private static final long serialVersionUID = -5028321625142879581L;
|
||||
|
||||
@SerializedName("project_name")
|
||||
private String projectName;
|
||||
|
||||
@SerializedName("amount")
|
||||
private Integer amount;
|
||||
|
||||
@SerializedName("payment_result")
|
||||
private List<PaymentResult> paymentResult;
|
||||
|
||||
@Setter
|
||||
@Getter
|
||||
public static class PaymentResult{
|
||||
|
||||
@SerializedName("student_userid")
|
||||
private String studentUserId;
|
||||
|
||||
@SerializedName("trade_no")
|
||||
private String tradeNo;
|
||||
|
||||
@SerializedName("payer_parent_userid")
|
||||
private String payerParentUserId;
|
||||
|
||||
@SerializedName("trade_state")
|
||||
private Integer tradeState;
|
||||
|
||||
public static PaymentResult fromJson(String json) {
|
||||
return WxCpGsonBuilder.create().fromJson(json, PaymentResult.class);
|
||||
}
|
||||
|
||||
public String toJson() {
|
||||
return WxCpGsonBuilder.create().toJson(this);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public static WxCpPaymentResult fromJson(String json) {
|
||||
return WxCpGsonBuilder.create().fromJson(json, WxCpPaymentResult.class);
|
||||
}
|
||||
|
||||
public String toJson() {
|
||||
return WxCpGsonBuilder.create().toJson(this);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
package me.chanjar.weixin.cp.bean.school;
|
||||
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import lombok.Data;
|
||||
import me.chanjar.weixin.cp.bean.WxCpBaseResp;
|
||||
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 获取订单详情.
|
||||
*
|
||||
* @author Wang_Wong
|
||||
*/
|
||||
@Data
|
||||
public class WxCpTrade extends WxCpBaseResp implements Serializable {
|
||||
private static final long serialVersionUID = -5028321625142879581L;
|
||||
|
||||
/**
|
||||
* 微信交易单号
|
||||
*/
|
||||
@SerializedName("transaction_id")
|
||||
private String transactionId;
|
||||
|
||||
/**
|
||||
* 交易时间
|
||||
*/
|
||||
@SerializedName("pay_time")
|
||||
private Long payTime;
|
||||
|
||||
public static WxCpTrade fromJson(String json) {
|
||||
return WxCpGsonBuilder.create().fromJson(json, WxCpTrade.class);
|
||||
}
|
||||
|
||||
public String toJson() {
|
||||
return WxCpGsonBuilder.create().toJson(this);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user