commit 1b6d523c11da0a6e15f0bd2a626038ac77747815
parent e70c39528e6e057e3f8dbd2f99a055dd36fef814
Author: Florian Dold <florian@dold.me>
Date: Wed, 28 Jan 2026 00:21:04 +0100
aml: fix prop derivation and test
Diffstat:
2 files changed, 1 insertion(+), 13 deletions(-)
diff --git a/packages/taler-util/src/aml/properties.test.ts b/packages/taler-util/src/aml/properties.test.ts
@@ -24,18 +24,6 @@ test("AML prop derivation for TOPS, unknown form", (t) => {
const props = deriveTopsAmlProperties("custom_does_not_exist132", {}, {});
t.deepEqual(props, {});
}
- {
- const props = deriveTopsAmlProperties(
- "vqf_902_4",
- {
- [TalerFormAttributes.RISK_CLASSIFICATION_LEVEL]: "HIGH_RISK",
- },
- {},
- );
- t.deepEqual(props, {
- [TalerAmlProperties.HIGH_RISK_CUSTOMER]: true,
- });
- }
});
test("AML prop derivation for TOPS, vqf_902_4", (t) => {
diff --git a/packages/taler-util/src/aml/properties.ts b/packages/taler-util/src/aml/properties.ts
@@ -108,7 +108,7 @@ export const PropertiesDerivation_TOPS: PropertiesDerivationFunctionByPropertyNa
// if one of the vqf 902.1 then the account is being open
return true;
}
- return false;
+ return undefined;
},
},
PEP_DOMESTIC: {