-
-
Notifications
You must be signed in to change notification settings - Fork 9k
微信医保相关接口 #3816
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
微信医保相关接口 #3816
Conversation
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
本 PR 为 WxJava 项目添加了微信支付 V3 医保相关接口的完整支持,使项目能够从微信医保 V2 接口迁移到 V3 接口。这是一个功能完善的新增特性,包含了医保自费混合收款的核心业务流程。
主要变更:
- 新增 MiPayService 接口及其实现,提供医保下单、查询、通知解析和退款通知功能
- 添加完整的请求/响应 Bean 类,支持医保混合支付的各种场景
- 引入8个枚举类型,规范医保支付相关的业务状态和类型定义
Reviewed changes
Copilot reviewed 17 out of 17 changed files in this pull request and generated 14 comments.
Show a summary per file
| File | Description |
|---|---|
| MiPayService.java | 定义医保服务接口,包含4个核心方法:下单、按混合订单号查询、按从业机构订单号查询、通知解析和退款通知 |
| MiPayServiceImpl.java | 实现医保服务接口,调用微信支付 V3 API 完成医保业务操作 |
| BaseWxPayServiceImpl.java | 集成 MiPayService,添加服务实例并调整导入顺序 |
| WxPayService.java | 添加获取医保服务的 getter 方法 |
| MiPayNotifyV3Result.java | 医保混合收款成功通知的结果类,包含解密后的订单详情 |
| MedInsOrdersRequest.java | 医保自费混合收款下单请求类,支持敏感字段加密 |
| MedInsOrdersResult.java | 医保下单响应类,包含完整的订单状态和金额信息 |
| MedInsRefundNotifyRequest.java | 医保退款通知请求类,用于向微信通知医保订单退款结果 |
| MixPayTypeEnum.java | 混合支付类型枚举(纯现金、纯医保、混合支付) |
| OrderTypeEnum.java | 订单类型枚举(挂号、诊间、住院、药店等11种类型) |
| MixPayStatusEnum.java | 混合支付状态枚举(已创建、成功、已退款、失败) |
| SelfPayStatusEnum.java | 自费支付状态枚举 |
| MedInsPayStatusEnum.java | 医保支付状态枚举 |
| UserCardTypeEnum.java | 用户证件类型枚举(身份证、护照、户口本等8种) |
| CashAddTypeEnum.java | 现金增加类型枚举(运费、其他医疗费用等) |
| CashReduceTypeEnum.java | 现金减少类型枚举(医院减免、药店折扣、押金扣除等) |
| MiPayServiceImplTest.java | 医保服务的测试类,包含5个测试方法验证各项功能 |
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/MiPayServiceImpl.java
Outdated
Show resolved
Hide resolved
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/WxPayService.java
Outdated
Show resolved
Hide resolved
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/mipay/MedInsOrdersRequest.java
Outdated
Show resolved
Hide resolved
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/mipay/MedInsOrdersRequest.java
Outdated
Show resolved
Hide resolved
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/mipay/MedInsOrdersResult.java
Outdated
Show resolved
Hide resolved
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/mipay/MedInsOrdersRequest.java
Outdated
Show resolved
Hide resolved
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/mipay/MedInsOrdersRequest.java
Show resolved
Hide resolved
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/mipay/MedInsOrdersRequest.java
Show resolved
Hide resolved
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/notify/MiPayNotifyV3Result.java
Show resolved
Hide resolved
...in-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImpl.java
Show resolved
Hide resolved
Contributor
Author
|
已经按照copilot要求修改了,可以合并了吗 |
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.
公司的项目要从微信医保V2的接口转为V3,看到WxJava没有相关的接口,就来贡献一波
微信支付文档:https://pay.weixin.qq.com/doc/v3/partner/4012503131