Skip to content

Commit 99a55e6

Browse files
binarywanggitee-org
authored andcommitted
🎨 v3api加入support_fapiao字段
2 parents 431e83b + 3ced24e commit 99a55e6

2 files changed

Lines changed: 22 additions & 38 deletions

File tree

weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/PartnerTransactionsRequest.java

Lines changed: 11 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ public class PartnerTransactionsRequest implements Serializable {
3838
*/
3939
@SerializedName(value = "sp_appid")
4040
private String spAppid;
41-
4241
/**
4342
* <pre>
4443
* 字段名:服务商户号
@@ -52,7 +51,6 @@ public class PartnerTransactionsRequest implements Serializable {
5251
*/
5352
@SerializedName(value = "sp_mchid")
5453
private String spMchid;
55-
5654
/**
5755
* <pre>
5856
* 字段名:子商户公众号ID
@@ -79,7 +77,6 @@ public class PartnerTransactionsRequest implements Serializable {
7977
*/
8078
@SerializedName(value = "sub_mchid")
8179
private String subMchid;
82-
8380
/**
8481
* <pre>
8582
* 字段名:商品描述
@@ -93,7 +90,6 @@ public class PartnerTransactionsRequest implements Serializable {
9390
*/
9491
@SerializedName(value = "description")
9592
private String description;
96-
9793
/**
9894
* <pre>
9995
* 字段名:商户订单号
@@ -108,7 +104,6 @@ public class PartnerTransactionsRequest implements Serializable {
108104
*/
109105
@SerializedName(value = "out_trade_no")
110106
private String outTradeNo;
111-
112107
/**
113108
* <pre>
114109
* 字段名:交易结束时间
@@ -122,7 +117,6 @@ public class PartnerTransactionsRequest implements Serializable {
122117
*/
123118
@SerializedName(value = "time_expire")
124119
private String timeExpire;
125-
126120
/**
127121
* <pre>
128122
* 字段名:附加数据
@@ -136,7 +130,6 @@ public class PartnerTransactionsRequest implements Serializable {
136130
*/
137131
@SerializedName(value = "attach")
138132
private String attach;
139-
140133
/**
141134
* <pre>
142135
* 字段名:通知地址
@@ -150,7 +143,6 @@ public class PartnerTransactionsRequest implements Serializable {
150143
*/
151144
@SerializedName(value = "notify_url")
152145
private String notifyUrl;
153-
154146
/**
155147
* <pre>
156148
* 字段名:订单优惠标记
@@ -164,7 +156,17 @@ public class PartnerTransactionsRequest implements Serializable {
164156
*/
165157
@SerializedName(value = "goods_tag")
166158
private String goodsTag;
167-
159+
/**
160+
* <pre>
161+
* 字段名:电子发票入口开放标识
162+
* 变量名:support_fapiao
163+
* 是否必填:否
164+
* 类型:boolean
165+
* 描述:传入true时,支付成功消息和支付详情页将出现开票入口。需要在微信支付商户平台或微信公众平台开通电子发票功能,传此字段才可生效。
166+
* </pre>
167+
*/
168+
@SerializedName(value = "support_fapiao")
169+
private Boolean supportFapiao;
168170
/**
169171
* <pre>
170172
* 字段名:+结算信息
@@ -176,7 +178,6 @@ public class PartnerTransactionsRequest implements Serializable {
176178
*/
177179
@SerializedName(value = "settle_info")
178180
private SettleInfo settleInfo;
179-
180181
/**
181182
* <pre>
182183
* 字段名:订单金额
@@ -189,7 +190,6 @@ public class PartnerTransactionsRequest implements Serializable {
189190
*/
190191
@SerializedName(value = "amount")
191192
private Amount amount;
192-
193193
/**
194194
* <pre>
195195
* 字段名:优惠功能
@@ -202,7 +202,6 @@ public class PartnerTransactionsRequest implements Serializable {
202202
*/
203203
@SerializedName(value = "detail")
204204
private Discount detail;
205-
206205
/**
207206
* <pre>
208207
* 字段名:支付者
@@ -215,7 +214,6 @@ public class PartnerTransactionsRequest implements Serializable {
215214
*/
216215
@SerializedName(value = "payer")
217216
private Payer payer;
218-
219217
/**
220218
* <pre>
221219
* 字段名:场景信息
@@ -249,7 +247,6 @@ public static class Discount implements Serializable {
249247
*/
250248
@SerializedName(value = "cost_price")
251249
private Integer costPrice;
252-
253250
/**
254251
* <pre>
255252
* 字段名:商品小票ID
@@ -263,7 +260,6 @@ public static class Discount implements Serializable {
263260
*/
264261
@SerializedName(value = "invoice_id")
265262
private String invoiceId;
266-
267263
/**
268264
* <pre>
269265
* 字段名:单品列表
@@ -298,7 +294,6 @@ public static class Amount implements Serializable {
298294
*/
299295
@SerializedName(value = "total")
300296
private Integer total;
301-
302297
/**
303298
* <pre>
304299
* 字段名:币类型
@@ -312,7 +307,6 @@ public static class Amount implements Serializable {
312307
*/
313308
@SerializedName(value = "currency")
314309
private String currency;
315-
316310
}
317311

318312
@Data
@@ -334,7 +328,6 @@ public static class Payer implements Serializable {
334328
*/
335329
@SerializedName(value = "sp_openid")
336330
private String spOpenid;
337-
338331
/**
339332
* <pre>
340333
* 字段名:用户子标识
@@ -348,7 +341,6 @@ public static class Payer implements Serializable {
348341
*/
349342
@SerializedName(value = "sub_openid")
350343
private String subOpenid;
351-
352344
}
353345

354346
@Data
@@ -371,7 +363,6 @@ public static class SettleInfo implements Serializable {
371363
*/
372364
@SerializedName(value = "profit_sharing")
373365
private Boolean profitSharing;
374-
375366
/**
376367
* <pre>
377368
* 字段名:补差金额
@@ -386,7 +377,6 @@ public static class SettleInfo implements Serializable {
386377
*/
387378
@SerializedName(value = "subsidy_amount")
388379
private BigDecimal subsidyAmount;
389-
390380
}
391381

392382
@Data
@@ -407,7 +397,6 @@ public static class GoodsDetail implements Serializable {
407397
*/
408398
@SerializedName(value = "merchant_goods_id")
409399
private String merchantGoodsId;
410-
411400
/**
412401
* <pre>
413402
* 字段名:微信侧商品编码
@@ -421,7 +410,6 @@ public static class GoodsDetail implements Serializable {
421410
*/
422411
@SerializedName(value = "wechatpay_goods_id")
423412
private String wechatpayGoodsId;
424-
425413
/**
426414
* <pre>
427415
* 字段名:商品名称
@@ -435,7 +423,6 @@ public static class GoodsDetail implements Serializable {
435423
*/
436424
@SerializedName(value = "goods_name")
437425
private String goodsName;
438-
439426
/**
440427
* <pre>
441428
* 字段名:商品数量
@@ -449,7 +436,6 @@ public static class GoodsDetail implements Serializable {
449436
*/
450437
@SerializedName(value = "quantity")
451438
private Integer quantity;
452-
453439
/**
454440
* <pre>
455441
* 字段名:商品单价
@@ -484,7 +470,6 @@ public static class SceneInfo implements Serializable {
484470
*/
485471
@SerializedName(value = "device_id")
486472
private String deviceId;
487-
488473
/**
489474
* <pre>
490475
* 字段名:用户终端IP
@@ -499,7 +484,6 @@ public static class SceneInfo implements Serializable {
499484
*/
500485
@SerializedName(value = "payer_client_ip")
501486
private String payerClientIp;
502-
503487
/**
504488
* <pre>
505489
* 字段名:H5场景信息
@@ -512,7 +496,6 @@ public static class SceneInfo implements Serializable {
512496
*/
513497
@SerializedName(value = "h5_info")
514498
private H5Info h5Info;
515-
516499
/**
517500
* <pre>
518501
* 字段名:商户门店信息
@@ -525,7 +508,6 @@ public static class SceneInfo implements Serializable {
525508
*/
526509
@SerializedName(value = "store_info")
527510
private StoreInfo storeInfo;
528-
529511
}
530512

531513
@Data
@@ -549,7 +531,6 @@ public static class H5Info implements Serializable {
549531
*/
550532
@SerializedName(value = "type")
551533
private String type;
552-
553534
/**
554535
* <pre>
555536
* 字段名:应用名称
@@ -563,7 +544,6 @@ public static class H5Info implements Serializable {
563544
*/
564545
@SerializedName(value = "app_name")
565546
private String appName;
566-
567547
/**
568548
* <pre>
569549
* 字段名:网站URL
@@ -577,7 +557,6 @@ public static class H5Info implements Serializable {
577557
*/
578558
@SerializedName(value = "app_url")
579559
private String appUrl;
580-
581560
/**
582561
* <pre>
583562
* 字段名:iOS平台BundleID
@@ -591,7 +570,6 @@ public static class H5Info implements Serializable {
591570
*/
592571
@SerializedName(value = "bundle_id")
593572
private String bundleId;
594-
595573
/**
596574
* <pre>
597575
* 字段名:Android平台PackageName
@@ -605,7 +583,6 @@ public static class H5Info implements Serializable {
605583
*/
606584
@SerializedName(value = "package_name")
607585
private String packageName;
608-
609586
}
610587

611588
@Data
@@ -626,7 +603,6 @@ public static class StoreInfo implements Serializable {
626603
*/
627604
@SerializedName(value = "id")
628605
private String id;
629-
630606
/**
631607
* <pre>
632608
* 字段名:门店名称
@@ -640,7 +616,6 @@ public static class StoreInfo implements Serializable {
640616
*/
641617
@SerializedName(value = "name")
642618
private String name;
643-
644619
/**
645620
* <pre>
646621
* 字段名:地区编码
@@ -654,7 +629,6 @@ public static class StoreInfo implements Serializable {
654629
*/
655630
@SerializedName(value = "area_code")
656631
private String areaCode;
657-
658632
/**
659633
* <pre>
660634
* 字段名:详细地址
@@ -668,6 +642,5 @@ public static class StoreInfo implements Serializable {
668642
*/
669643
@SerializedName(value = "address")
670644
private String address;
671-
672645
}
673646
}

weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxPayUnifiedOrderV3Request.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,17 @@ public class WxPayUnifiedOrderV3Request implements Serializable {
130130
*/
131131
@SerializedName(value = "goods_tag")
132132
private String goodsTag;
133+
/**
134+
* <pre>
135+
* 字段名:电子发票入口开放标识
136+
* 变量名:support_fapiao
137+
* 是否必填:否
138+
* 类型:boolean
139+
* 描述:传入true时,支付成功消息和支付详情页将出现开票入口。需要在微信支付商户平台或微信公众平台开通电子发票功能,传此字段才可生效。
140+
* </pre>
141+
*/
142+
@SerializedName(value = "support_fapiao")
143+
private Boolean supportFapiao;
133144
/**
134145
* <pre>
135146
* 字段名:订单金额

0 commit comments

Comments
 (0)