Implemented KYB, compliance decisions, integration, and testing

This commit is contained in:
Oleksandr Prokhorenko
2026-09-24 21:31:42 +03:00
parent 382f6e8841
commit 1f8721e742
36 changed files with 2279 additions and 233 deletions
+4 -1
View File
@@ -96,7 +96,7 @@ test('staff creation is atomic, minimally required, role-bound and strict', asyn
assert.equal(m.website, null);
assert.equal(m.country, null);
assert.equal(m.industry, null);
assert.equal(m.checklist.length, 4);
assert.equal(m.checklist.length, 3);
assert.ok(m.checklist.every((item) => item.state === 'MISSING'));
assert.equal(m.events.length, 1);
assert.equal(m.activities.length, 1);
@@ -313,8 +313,11 @@ test('every rejection role and stage rule is enforced, with terminal outcomes an
merchantId: clone,
cycle: 1,
decision: 'APPROVED',
riskLevel: 'LOW',
reason: 'Approval retained during commercial closure',
submittedById: 'user-head',
reviewerId: 'user-compliance',
submittedAt: new Date(Date.now() - 1000),
decidedAt: new Date(),
snapshot: approved.reviews[0].snapshot,
},