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..7b7eff023 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();