支付模块:为直连商户补齐“用户授权免确认模式”转账接口能力#4018
Merged
binarywang merged 2 commits intoMay 27, 2026
Merged
Conversation
Copilot
AI
changed the title
[WIP] Add support for user authorization no confirmation mode
支付模块:为直连商户补齐“用户授权免确认模式”转账接口能力
May 27, 2026
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.
当前
TransferService已具备“用户授权免确认模式”相关能力,但MerchantTransferService(直连商户入口)未暴露对应接口,导致该模式在直连商户 API 侧不可用。本次改动在不重复实现底层逻辑的前提下,补齐直连商户服务层的接口与调用链。
问题概述
MerchantTransferService缺少“用户授权免确认模式”相关接口,业务方无法通过直连商户服务直接调用该能力。接口补齐(服务定义)
MerchantTransferService新增以下方法:getUserAuthorizationStatusreservationTransferBatchgetReservationTransferBatchByOutBatchNogetReservationTransferBatchByReservationBatchNoparseReservationTransferNotifyResultcloseReservationTransferBatch实现方式(服务实现)
MerchantTransferServiceImpl中新增对应实现,统一委托给已有的TransferService能力,保持行为一致并避免重复逻辑。单元测试补充
MerchantTransferServiceImplTest增加上述新增接口的调用用例,覆盖直连商户入口的可用性与参数传递路径。