[微信支付]支持开具旅客运输行业电子发票接口 - #4116
Open
MRLEILOVE wants to merge 7 commits into
Open
Conversation
- 获取订单详情 - 获取订单列表 - 延长试用期
- 在 PartnerInvoiceService 中添加 issuePassengerTransportInvoice 方法 - 实现旅客运输发票开具接口的具体逻辑 - 添加 PassengerTransportInvoiceRequest 数据结构及其嵌套类 - 为新功能创建完整的单元测试用例 - 更新文档说明,明确 new-tax-control-fapiao API 的实现情况 - 添加旅客运输发票相关字段的序列化支持
🤖 Augment PR Summary变更概述:
🤖 Was this summary useful? React with 👍 or 👎 |
There was a problem hiding this comment.
🟡 Changes recommended
需要解决公共接口兼容性以及重复购买方模型造成的 API 割裂。
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
为微信支付模块新增旅客运输行业电子发票开具能力,对应 Issue #4097。
Changes:
- 新增旅客运输发票请求模型及序列化测试。
- 扩展服务接口并调用对应 V3 接口。
- 更新电子发票能力说明文档。
File summaries
| File | Description |
|---|---|
PassengerTransportInvoiceRequest.java |
定义旅客运输发票请求模型 |
PartnerInvoiceService.java |
暴露开票接口 |
PartnerInvoiceServiceImpl.java |
实现 V3 请求 |
PassengerTransportInvoiceRequestTest.java |
验证字段序列化 |
PartnerInvoiceServiceImplTest.java |
验证请求路径和内容 |
ELECTRONIC_INVOICE_API_COMPARISON.md |
更新实现状态 |
Review details
- Files reviewed: 6/6 changed files
- Comments generated: 2
- Review effort level: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
+36
to
+37
| @SerializedName("buyer_information") | ||
| private BuyerInformation buyerInformation; |
| * @throws WxPayException 微信支付异常 | ||
| * @see <a href="https://pay.weixin.qq.com/doc/v3/partner/4025863376">官方文档</a> | ||
| */ | ||
| void issuePassengerTransportInvoice(PassengerTransportInvoiceRequest request) throws WxPayException; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
相关issues: #4097