From 36e70ff930c8fee71701456ce8c16d41aed4e293 Mon Sep 17 00:00:00 2001 From: twinklelx Date: Mon, 17 Jun 2024 13:08:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8F=91=E8=B5=B7=E5=95=86?= =?UTF-8?q?=E5=AE=B6=E8=BD=AC=E8=B4=A6=E6=8E=A5=E5=8F=A3=E7=9A=84notify=5F?= =?UTF-8?q?url=E5=AD=97=E6=AE=B5=20(#278)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加发起商家转账接口的notify_url字段,用以设置回调地址 --- .../model/InitiateBatchTransferRequest.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/service/src/main/java/com/wechat/pay/java/service/transferbatch/model/InitiateBatchTransferRequest.java b/service/src/main/java/com/wechat/pay/java/service/transferbatch/model/InitiateBatchTransferRequest.java index c5b451b2..ae419e38 100644 --- a/service/src/main/java/com/wechat/pay/java/service/transferbatch/model/InitiateBatchTransferRequest.java +++ b/service/src/main/java/com/wechat/pay/java/service/transferbatch/model/InitiateBatchTransferRequest.java @@ -55,6 +55,10 @@ public class InitiateBatchTransferRequest { @SerializedName("transfer_scene_id") private String transferSceneId; + /** 通知地址 说明:异步接收微信支付结果通知的回调地址,通知url必须为公网可访问的url,必须为https,不能携带参数。 */ + @SerializedName("notify_url") + private String notifyUrl; + public String getAppid() { return appid; } @@ -119,6 +123,14 @@ public void setTransferSceneId(String transferSceneId) { this.transferSceneId = transferSceneId; } + public String getNotifyUrl() { + return notifyUrl; + } + + public void setNotifyUrl(String notifyUrl) { + this.notifyUrl = notifyUrl; + } + @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -131,6 +143,7 @@ public String toString() { sb.append(" totalNum: ").append(toIndentedString(totalNum)).append("\n"); sb.append(" transferDetailList: ").append(toIndentedString(transferDetailList)).append("\n"); sb.append(" transferSceneId: ").append(toIndentedString(transferSceneId)).append("\n"); + sb.append(" notifyUrl: ").append(toIndentedString(notifyUrl)).append("\n"); sb.append("}"); return sb.toString(); } @@ -153,6 +166,7 @@ public InitiateBatchTransferRequest cloneWithCipher(UnaryOperator s) { } } copy.transferSceneId = transferSceneId; + copy.notifyUrl = notifyUrl; return copy; } }