Skip to content

补齐 WxChannelAfterSaleService 缺失的 9 个官方售后端点(含保障单与工单同步)#4034

Draft
Copilot wants to merge 2 commits into
developfrom
copilot/add-wxchannel-aftersale-endpoints
Draft

补齐 WxChannelAfterSaleService 缺失的 9 个官方售后端点(含保障单与工单同步)#4034
Copilot wants to merge 2 commits into
developfrom
copilot/add-wxchannel-aftersale-endpoints

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 31, 2026

weixin-java-channel 的售后服务接口缺失微信小店官方文档中已提供的 9 个端点,导致代客售后、极速换货处理、保障单处理和工单同步场景无法通过 SDK 调用。
本变更按官方文档补齐端点常量、服务接口、实现与请求/响应模型,统一接入现有解码路径。

  • 接口面补齐(Service + Impl)

    • 新增 9 个服务方法:genAfterSaleOrderrefundPriceDiffapplyVirtualTelNumhandleFastExchangeReceiptgetGuaranteeOrdermerchantAcceptGuaranteemerchantModifyGuaranteemerchantProofGuaranteesyncWorkOrder
    • WxChannelAfterSaleServiceImpl 完成对应调用实现,复用 ResponseUtils.decode(...) 返回类型化结果
  • API 常量补齐(AfterSale URL)

    • WxChannelApiUrlConstants.AfterSale 增加 9 个缺失端点常量,覆盖代客售后、退差价、虚拟号、极速换货、保障单与工单同步
  • 数据模型补齐(严格对齐官方字段)

    • 新增请求/响应模型:
      • AfterSaleGenAfterSaleOrderParam
      • AfterSaleRefundPriceDiffParam
      • AfterSaleHandleFastExchangeReceiptParam
      • GuaranteeOrderIdParam
      • GuaranteeMerchantModifyParam
      • GuaranteeMerchantProofParam
      • SyncWorkOrderParam(含工单嵌套结构)
      • AfterSaleCreateResponse
      • AfterSaleVirtualTelNumResponse
      • GuaranteeOrderResponse
  • 示例(新增端点调用方式)

@Override
public AfterSaleCreateResponse refundPriceDiff(AfterSaleRefundPriceDiffParam param) throws WxErrorException {
  String resJson = shopService.post(AFTER_SALE_REFUND_PRICE_DIFF_URL, param);
  return ResponseUtils.decode(resJson, AfterSaleCreateResponse.class);
}

Copilot AI changed the title [WIP] Add missing after sale endpoints for WxChannelAfterSaleService 补齐 WxChannelAfterSaleService 缺失的 9 个官方售后端点(含保障单与工单同步) Jun 1, 2026
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.

[weixin-java-channel] WxChannelAfterSaleService 缺失代客售后/保障单等9个端点

2 participants