taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit 0d46a621ebe25a5857f5dd91cd5e9db9a419f9f6
parent b4042c34bc9933071be192c4a87093d4260a2668
Author: Sebastian <sebasjm@gmail.com>
Date:   Wed, 23 Apr 2025 16:46:49 -0300

account props

Diffstat:
Mpackages/taler-util/src/index.ts | 1+
Apackages/taler-util/src/taler-account-properties.ts | 136+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 137 insertions(+), 0 deletions(-)

diff --git a/packages/taler-util/src/index.ts b/packages/taler-util/src/index.ts @@ -88,6 +88,7 @@ export * from "./account-restrictions.js"; export * from "./aml/aml-events.js"; export * from "./aml/aml-properties.js"; export * from "./taler-form-attributes.js"; +export * from "./taler-account-properties.js"; export * from "./iso-3166.js"; export * from "./iso-4217.js"; diff --git a/packages/taler-util/src/taler-account-properties.ts b/packages/taler-util/src/taler-account-properties.ts @@ -0,0 +1,136 @@ +/* + This file is part of GNU Taler + Copyright (C) 2012-2025 Taler Systems SA + + GNU Taler is free software: you can redistribute it and/or modify it + under the terms of the GNU Lesser General Public License as published + by the Free Software Foundation, either version 3 of the License, + or (at your option) any later version. + + GNU Taler is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. + + SPDX-License-Identifier: LGPL3.0-or-later + + Note: the LGPL does not apply to all components of GNU Taler, + but it does apply to this file. + */ + +/** + * Imports. + */ + +export const TalerAmlProperties = { + /** + * Description: Current note on the GWG file. + * + * GANA Type: String + * Deployment: TOPS + */ + FILE_NOTE: "FILE_NOTE" as const, + /** + * Description: Customer name or internal alias. + * + * GANA Type: String + * Deployment: TOPS + */ + CUSTOMER_LABEL: "CUSTOMER_LABEL" as const, + /** + * Description: Boolean flag indicating whether the account has been opened. The definition of opening an account is deployment-specific. + * + * GANA Type: Boolean + * Deployment: TOPS + */ + AML_ACCOUNT_OPEN: "AML_ACCOUNT_OPEN" as const, + /** + * Description: True if the customer is a domestic PEP. + * + * GANA Type: Boolean + * Deployment: TOPS + */ + AML_DOMESTIC_PEP: "AML_DOMESTIC_PEP" as const, + /** + * Description: True if the customer is a foreign PEP. + * + * GANA Type: Boolean + * Deployment: TOPS + */ + AML_FOREIGN_PEP: "AML_FOREIGN_PEP" as const, + /** + * Description: True if the customer is a international organization PEP. + * + * GANA Type: Boolean + * Deployment: TOPS + */ + AML_INTERNATIONAL_ORG_PEP: "AML_INTERNATIONAL_ORG_PEP" as const, + /** + * Description: True if the customer is a high-risk business. + * + * GANA Type: Boolean + * Deployment: TOPS + */ + AML_HIGH_RISK_CUSTOMER: "AML_HIGH_RISK_CUSTOMER" as const, + /** + * Description: True if the customer is associated with a high-risk country. + * + * GANA Type: Boolean + * Deployment: TOPS + */ + AML_HIGH_RISK_COUNTRY: "AML_HIGH_RISK_COUNTRY" as const, + /** + * Description: The account has been marked as idle. + * + * GANA Type: Boolean + * Deployment: TOPS + */ + AML_ACCOUNT_IDLE: "AML_ACCOUNT_IDLE" as const, + /** + * Description: The MROS reporting state for the account. + * + * GANA Type: 'NONE' | 'INVESTIGATION_PENDING' | 'INVESTIGATION_COMPLETED_WITHOUT_SUSPICION' | 'REPORTED_SUSPICION_SIMPLE' | 'REPORTED_SUSPICION_SUBSTANTIATED' + * Deployment: TOPS + */ + AML_INVESTIGATION_STATE: "AML_INVESTIGATION_STATE" as const, + /** + * Description: Informal reason why the AML investigation was triggered. Examples include suspicious transaction or (automated) sanction list match + * + * GANA Type: String + * Deployment: TOPS + */ + AML_INVESTIGATION_TRIGGER: "AML_INVESTIGATION_TRIGGER" as const, + /** + * Description: Identifies the sanction list entry that the account matched against (best match, does not mean it was a good match) + * + * GANA Type: String + * Deployment: TOPS + */ + SANCTION_LIST_BEST_MATCH: "SANCTION_LIST_BEST_MATCH" as const, + /** + * Description: Score for how good the sanction list match was (0: none, 10**9: perfect match) + * + * GANA Type: Integer + * Deployment: TOPS + */ + SANCTION_LIST_RATING: "SANCTION_LIST_RATING" as const, + /** + * Description: Score for how much supporting data we had for the sanction list match (0: none, 10**9: all fields available) + * + * GANA Type: Integer + * Deployment: TOPS + */ + SANCTION_LIST_CONFIDENCE: "SANCTION_LIST_CONFIDENCE" as const, + /** + * Description: Suppress flagging this account when it creates a hit on a sanctions list, this is a false-positive. + * + * GANA Type: Boolean + * Deployment: TOPS + */ + SANCTION_LIST_SUPPRESS: "SANCTION_LIST_SUPPRESS" as const, + + +}