Files
one-pipe-system/openspec/changes/update-refund-management/specs/wechat-configs/spec.md
2026-09-17 12:16:20 +08:00

15 lines
798 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
## ADDED Requirements
### Requirement: 旧支付配置退款凭证字段
支付配置(`/api/admin/wechat-configs`)创建/更新请求 MUST 支持可选 `wx_client_cert_content``wx_client_key_content`PEM 文本);列表/详情/active 响应类型 MUST 补充同名字段。
#### Scenario: 支付配置表单新增 PEM 输入
- **GIVEN** 打开支付配置新建/编辑表单
- **WHEN** 渲染表单
- **THEN** 表单 MUST 提供「客户端证书内容」「客户端私钥内容」两个可选文本域,且不填可正常保存
#### Scenario: 配置详情展示 PEM 字段
- **GIVEN** 打开支付配置详情
- **WHEN** 详情响应包含两个 PEM 字段
- **THEN** 前端 MUST 按既有凭证展示约定透出字段内容(不回显或仅展示存在性,按现状约定)