You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lml
e3a087dfc8
fix(walmart): 退货详情与发货信息改用官方存在的接口
沃尔玛官方 spec 里这两条路由都不存在,原实现会 404:
- GET /v3/returns/{returnOrderId}:Returns spec 只有 GET /v3/returns 与 POST .../refund
- GET /v3/orders/{id}/shipping:Orders spec 里该路径只有 POST(标发)
【改动】
- getReturn 改走列表接口 GET /v3/returns?returnOrderId=xxx&limit=1;
平台不保证过滤生效(沙箱 mock 就不生效),本地再按单号筛一次,
避免把别的退货单混进来
- getShipping 改读订单详情 GET /v3/orders/{id},从
orderLines[].orderLineStatuses[].trackingInfo 抽行级发货记录;
数据与「发货信息」完全一致
- 两个方法的对外签名不变,调用方无需改动
- 删除不再使用的 WalmartShipmentDtos 与 orders/shipping.json、
returns/detail.json 两个夹具
【顺带修复】
- markShipped 解析响应改用 parseQuietly:平台只回受理结果或空体时
返回最小结果而不是抛异常,避免成功的发货被幂等层记成 FAILED 后重试重复发货
【测试】158 个;新增「平台返回多条退货单时本地只保留目标单」
「无 trackingInfo 时返回空列表」等用例。
Co-Authored-By: Claude Code <noreply@anthropic.com>
|
1 day ago |
| .. |
|
src
|
fix(walmart): 退货详情与发货信息改用官方存在的接口
|
1 day ago |
|
pom.xml
|
feat(walmart): 沃尔玛 Marketplace 直连适配器(只读一期)
|
2 days ago |