From e54d7a145a86661d7588d8963798a6bdc4ab4521 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 26 Jan 2026 14:37:54 +0000 Subject: [PATCH 1/3] Initial plan From 72c1f14fb1b4ecc4461998d7cdd449c00d181407 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 26 Jan 2026 14:41:19 +0000 Subject: [PATCH 2/3] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=BE=AE=E5=B7=A5?= =?UTF-8?q?=E5=8D=A1=E6=89=B9=E9=87=8F=E8=BD=AC=E8=B4=A6=E7=BC=BA=E5=A4=B1?= =?UTF-8?q?=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: binarywang <1343140+binarywang@users.noreply.github.com> --- .../PayrollTransferBatchesRequest.java | 70 +++++++++++++++++++ .../service/impl/PayrollServiceImplTest.java | 4 ++ 2 files changed, 74 insertions(+) diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/PayrollTransferBatchesRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/PayrollTransferBatchesRequest.java index 50954e70e..4b4459db8 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/PayrollTransferBatchesRequest.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/PayrollTransferBatchesRequest.java @@ -142,6 +142,61 @@ public class PayrollTransferBatchesRequest implements Serializable { @SerializedName(value = "total_num") private Integer totalNum; + /** + *
+ * 字段名:用工类型 + * 变量名:employment_type + * 是否必填:是 + * 类型:string[1, 32] + * 描述: + * 微工卡服务仅支持用于与商户有用工关系的用户,需明确用工类型;参考值: + * LONG_TERM_EMPLOYMENT:长期用工 + * SHORT_TERM_EMPLOYMENT:短期用工 + * COOPERATION_EMPLOYMENT:合作关系 + * 示例值:LONG_TERM_EMPLOYMENT + *+ */ + @SerializedName(value = "employment_type") + private String employmentType; + + /** + *
+ * 字段名:用工场景 + * 变量名:employment_scene + * 是否必填:否 + * 类型:string[1, 32] + * 描述: + * 用工场景,参考值: + * LOGISTICS:物流 + * MANUFACTURING:制造业 + * HOTEL:酒店 + * CATERING:餐饮业 + * EVENT:活动促销 + * RETAIL:零售 + * OTHERS:其他 + * 示例值:LOGISTICS + *+ */ + @SerializedName(value = "employment_scene") + private String employmentScene; + + /** + *
+ * 字段名:特约商户授权类型 + * 变量名:authorization_type + * 是否必填:是 + * 类型:string[1, 32] + * 描述: + * 特约商户授权类型: + * INFORMATION_AUTHORIZATION_TYPE:特约商户信息授权类型 + * FUND_AUTHORIZATION_TYPE:特约商户资金授权类型 + * INFORMATION_AND_FUND_AUTHORIZATION_TYPE:特约商户信息和资金授权类型 + * 示例值:INFORMATION_AUTHORIZATION_TYPE + *+ */ + @SerializedName(value = "authorization_type") + private String authorizationType; + /** *
* 字段名:转账明细列表
@@ -235,5 +290,20 @@ public static class TransferDetail implements Serializable {
@SpecEncrypt
@SerializedName(value = "user_name")
private String userName;
+
+ /**
+ *
+ * 字段名:收款用户身份证
+ * 变量名:user_id_card
+ * 是否必填:否
+ * 类型:string[1, 1024]
+ * 描述:
+ * 收款用户身份证号。该字段需进行加密处理,加密方法详见敏感信息加密说明
+ * 示例值:8609cb22e1774a50a930e414cc71eca06121bcd266335cda230d24a7886a8d9f
+ *
+ */
+ @SpecEncrypt
+ @SerializedName(value = "user_id_card")
+ private String userIdCard;
}
}
diff --git a/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/PayrollServiceImplTest.java b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/PayrollServiceImplTest.java
index 20bb33d7f..a5421f5dc 100644
--- a/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/PayrollServiceImplTest.java
+++ b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/PayrollServiceImplTest.java
@@ -139,6 +139,9 @@ public void payrollCardTransferBatches() throws WxPayException {
.batchRemark("2019年1月深圳分部报销单")
.totalAmount(200000L)
.totalNum(1)
+ .employmentType("LONG_TERM_EMPLOYMENT")
+ .employmentScene("LOGISTICS")
+ .authorizationType("INFORMATION_AUTHORIZATION_TYPE")
.transferDetailList(Collections.singletonList(
PayrollTransferBatchesRequest.TransferDetail.builder()
.outDetailNo("x23zy545Bd5436" + System.currentTimeMillis())
@@ -146,6 +149,7 @@ public void payrollCardTransferBatches() throws WxPayException {
.transferRemark("2020年4月报销")
.openid("o-MYE42l80oelYMDE34nYD456Xoy")
.userName("张三")
+ .userIdCard("8609cb22e1774a50a930e414cc71eca06121bcd266335cda230d24a7886a8d9f")
.build()
))
.build();
From b3cd0903cc41eeea308987d4c32f55e282096c60 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Mon, 26 Jan 2026 14:45:52 +0000
Subject: [PATCH 3/3] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=AD=97=E6=AE=B5?=
=?UTF-8?q?=E6=B3=A8=E9=87=8A=E6=A0=BC=E5=BC=8F=E4=BF=9D=E6=8C=81=E4=B8=8E?=
=?UTF-8?q?=E9=A1=B9=E7=9B=AE=E5=85=B6=E4=BB=96=E7=B1=BB=E4=B8=80=E8=87=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Co-authored-by: binarywang <1343140+binarywang@users.noreply.github.com>
---
.../PayrollTransferBatchesRequest.java | 26 +++++++++----------
1 file changed, 13 insertions(+), 13 deletions(-)
diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/PayrollTransferBatchesRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/PayrollTransferBatchesRequest.java
index 4b4459db8..523d21c99 100644
--- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/PayrollTransferBatchesRequest.java
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/PayrollTransferBatchesRequest.java
@@ -147,11 +147,11 @@ public class PayrollTransferBatchesRequest implements Serializable {
* 字段名:用工类型
* 变量名:employment_type
* 是否必填:是
- * 类型:string[1, 32]
+ * 类型:string[1,32]
* 描述:
* 微工卡服务仅支持用于与商户有用工关系的用户,需明确用工类型;参考值:
- * LONG_TERM_EMPLOYMENT:长期用工
- * SHORT_TERM_EMPLOYMENT:短期用工
+ * LONG_TERM_EMPLOYMENT:长期用工,
+ * SHORT_TERM_EMPLOYMENT:短期用工,
* COOPERATION_EMPLOYMENT:合作关系
* 示例值:LONG_TERM_EMPLOYMENT
*
@@ -164,15 +164,15 @@ public class PayrollTransferBatchesRequest implements Serializable {
* 字段名:用工场景
* 变量名:employment_scene
* 是否必填:否
- * 类型:string[1, 32]
+ * 类型:string[1,32]
* 描述:
* 用工场景,参考值:
- * LOGISTICS:物流
- * MANUFACTURING:制造业
- * HOTEL:酒店
- * CATERING:餐饮业
- * EVENT:活动促销
- * RETAIL:零售
+ * LOGISTICS:物流;
+ * MANUFACTURING:制造业;
+ * HOTEL:酒店;
+ * CATERING:餐饮业;
+ * EVENT:活动促销;
+ * RETAIL:零售;
* OTHERS:其他
* 示例值:LOGISTICS
*
@@ -185,11 +185,11 @@ public class PayrollTransferBatchesRequest implements Serializable {
* 字段名:特约商户授权类型
* 变量名:authorization_type
* 是否必填:是
- * 类型:string[1, 32]
+ * 类型:string[1,32]
* 描述:
* 特约商户授权类型:
- * INFORMATION_AUTHORIZATION_TYPE:特约商户信息授权类型
- * FUND_AUTHORIZATION_TYPE:特约商户资金授权类型
+ * INFORMATION_AUTHORIZATION_TYPE:特约商户信息授权类型,
+ * FUND_AUTHORIZATION_TYPE:特约商户资金授权类型,
* INFORMATION_AND_FUND_AUTHORIZATION_TYPE:特约商户信息和资金授权类型
* 示例值:INFORMATION_AUTHORIZATION_TYPE
*