Skip to content

支付模块:为直连商户补齐“用户授权免确认模式”转账接口能力#4018

Merged
binarywang merged 2 commits into
developfrom
copilot/support-user-authorize-no-confirmation
May 27, 2026
Merged

支付模块:为直连商户补齐“用户授权免确认模式”转账接口能力#4018
binarywang merged 2 commits into
developfrom
copilot/support-user-authorize-no-confirmation

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 27, 2026

当前 TransferService 已具备“用户授权免确认模式”相关能力,但 MerchantTransferService(直连商户入口)未暴露对应接口,导致该模式在直连商户 API 侧不可用。
本次改动在不重复实现底层逻辑的前提下,补齐直连商户服务层的接口与调用链。

  • 问题概述

    • MerchantTransferService 缺少“用户授权免确认模式”相关接口,业务方无法通过直连商户服务直接调用该能力。
  • 接口补齐(服务定义)

    • MerchantTransferService 新增以下方法:
      • getUserAuthorizationStatus
      • reservationTransferBatch
      • getReservationTransferBatchByOutBatchNo
      • getReservationTransferBatchByReservationBatchNo
      • parseReservationTransferNotifyResult
      • closeReservationTransferBatch
  • 实现方式(服务实现)

    • MerchantTransferServiceImpl 中新增对应实现,统一委托给已有的 TransferService 能力,保持行为一致并避免重复逻辑。
  • 单元测试补充

    • MerchantTransferServiceImplTest 增加上述新增接口的调用用例,覆盖直连商户入口的可用性与参数传递路径。
@Override
public ReservationTransferBatchResult reservationTransferBatch(ReservationTransferBatchRequest request) throws WxPayException {
  return this.wxPayService.getTransferService().reservationTransferBatch(request);
}

Copilot AI changed the title [WIP] Add support for user authorization no confirmation mode 支付模块:为直连商户补齐“用户授权免确认模式”转账接口能力 May 27, 2026
Copilot AI requested a review from binarywang May 27, 2026 12:00
@binarywang binarywang marked this pull request as ready for review May 27, 2026 12:08
Copilot AI review requested due to automatic review settings May 27, 2026 12:08
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.

Repository owner deleted a comment from chatgpt-codex-connector Bot May 27, 2026
@binarywang binarywang requested a review from Copilot May 27, 2026 12:46

This comment was marked as abuse.

@binarywang binarywang merged commit da27a75 into develop May 27, 2026
@binarywang binarywang deleted the copilot/support-user-authorize-no-confirmation branch May 27, 2026 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

商家转账:用户授权免确认模式 相关接口 现在不支持

3 participants