Browse Source

:art: 修复分账执行接口金额类型错误问题

四叶草 1 year ago
parent
commit
189bcdc1d3

+ 10 - 0
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharing/request/ProfitSharingV3Request.java

@@ -129,6 +129,16 @@ public class ProfitSharingV3Request implements Serializable {
 
     /**
      * <pre>
+     * 字段名:分账金额
+     * 是否必填:是
+     * 描述: 分账金额,单位为分,只能为整数,不能超过原订单支付金额及最大分账比例金额
+     * </pre>
+     */
+    @SerializedName("amount")
+    private Integer amount;
+
+    /**
+     * <pre>
      * 字段名:分账个人接收方姓名
      * 是否必填:否
      * 描述:

+ 1 - 1
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharing/result/ProfitSharingResult.java

@@ -133,7 +133,7 @@ public class ProfitSharingResult extends BaseWxPayResult implements Serializable
      * </pre>
      */
     @SerializedName("amount")
-    private Long amount;
+    private Integer amount;
 
     /**
      * <pre>