1
0
mirror of synced 2026-02-04 08:18:53 +08:00

🎨 #3872 【微信支付】补充微工卡批量转账 API 缺失的必要字段

This commit is contained in:
Copilot
2026-01-31 22:54:53 +08:00
committed by GitHub
parent 780c24bda0
commit 3965823f0d
2 changed files with 74 additions and 0 deletions

View File

@@ -142,6 +142,61 @@ public class PayrollTransferBatchesRequest implements Serializable {
@SerializedName(value = "total_num")
private Integer totalNum;
/**
* <pre>
* 字段名:用工类型
* 变量名employment_type
* 是否必填:是
* 类型string[1, 32]
* 描述:
* 微工卡服务仅支持用于与商户有用工关系的用户,需明确用工类型;参考值:
* LONG_TERM_EMPLOYMENT长期用工
* SHORT_TERM_EMPLOYMENT短期用工
* COOPERATION_EMPLOYMENT合作关系
* 示例值LONG_TERM_EMPLOYMENT
* </pre>
*/
@SerializedName(value = "employment_type")
private String employmentType;
/**
* <pre>
* 字段名:用工场景
* 变量名employment_scene
* 是否必填:否
* 类型string[1, 32]
* 描述:
* 用工场景,参考值:
* LOGISTICS物流
* MANUFACTURING制造业
* HOTEL酒店
* CATERING餐饮业
* EVENT活动促销
* RETAIL零售
* OTHERS其他
* 示例值LOGISTICS
* </pre>
*/
@SerializedName(value = "employment_scene")
private String employmentScene;
/**
* <pre>
* 字段名:特约商户授权类型
* 变量名authorization_type
* 是否必填:是
* 类型string[1, 32]
* 描述:
* 特约商户授权类型:
* INFORMATION_AUTHORIZATION_TYPE特约商户信息授权类型
* FUND_AUTHORIZATION_TYPE特约商户资金授权类型
* INFORMATION_AND_FUND_AUTHORIZATION_TYPE特约商户信息和资金授权类型
* 示例值INFORMATION_AUTHORIZATION_TYPE
* </pre>
*/
@SerializedName(value = "authorization_type")
private String authorizationType;
/**
* <pre>
* 字段名:转账明细列表
@@ -235,5 +290,20 @@ public class PayrollTransferBatchesRequest implements Serializable {
@SpecEncrypt
@SerializedName(value = "user_name")
private String userName;
/**
* <pre>
* 字段名:收款用户身份证
* 变量名user_id_card
* 是否必填:否
* 类型string[1, 1024]
* 描述:
* 收款用户身份证号。该字段需进行加密处理,加密方法详见敏感信息加密说明
* 示例值8609cb22e1774a50a930e414cc71eca06121bcd266335cda230d24a7886a8d9f
* </pre>
*/
@SpecEncrypt
@SerializedName(value = "user_id_card")
private String userIdCard;
}
}

View File

@@ -139,6 +139,9 @@ public class PayrollServiceImplTest {
.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 class PayrollServiceImplTest {
.transferRemark("2020年4月报销")
.openid("o-MYE42l80oelYMDE34nYD456Xoy")
.userName("张三")
.userIdCard("8609cb22e1774a50a930e414cc71eca06121bcd266335cda230d24a7886a8d9f")
.build()
))
.build();