This commit is contained in:
2026-10-21 21:30:24 +08:00
parent 234216b3eb
commit 5356a8c898
28 changed files with 1543 additions and 45 deletions
@@ -75,6 +75,16 @@ async function createFixtureCustomer(context) {
}
export async function run(context) {
if (context.options?.fixedCustomerId) {
const tenantId = context.context.merchantQualificationFixture?.tenantId
if (!tenantId) throw new Error('固定客户前置未完成,禁止创建海外仓费用客户')
const response = await context.request('GET', `/api/platform/v1/iam/tenants/${encodeURIComponent(tenantId)}/overseas-storage-fees`)
const view = context.apiSuccess(MODULE, '读取固定客户海外仓费用配置', response)
context.assert(MODULE, '费用配置属于固定客户', response, id(view?.customerId) === id(tenantId), `customerId=${id(view?.customerId)}`, OPTIONS)
context.addCoverageGap(MODULE, SCENARIO, '固定客户模式排除费用规则破坏性生命周期',
'只读现有费用配置,不覆盖共享客户费率或归档客户', 'not-implemented', {blocking:false})
return
}
const start = context.steps.length
// Always create a module-owned customer. The customers module may archive its
// own fixture, and this lifecycle must never depend on that or on history.