commit 6435ee119eae8a1653820c2d7a6a29ac5573abf0
parent bc0a0add2f5019b720f245dbfc36951630388aa1
Author: Sebastian <sebasjm@gmail.com>
Date: Thu, 26 Dec 2024 13:19:40 -0300
add gana for aml
Diffstat:
11 files changed, 358 insertions(+), 4 deletions(-)
diff --git a/gnu-taler-aml-attributes/.gitignore b/gnu-taler-aml-attributes/.gitignore
@@ -0,0 +1,7 @@
+*.c
+*.kt
+*.h
+*.tmp
+*.ts
+*.go
+*.rs
diff --git a/gnu-taler-aml-attributes/Makefile b/gnu-taler-aml-attributes/Makefile
@@ -0,0 +1,27 @@
+FILES=taler_kyc_attributes.ts \
+ taler_kyc_attributes.rst
+
+all: check $(FILES)
+
+check: registry.rec
+ recfix --check registry.rec
+
+distclean:
+ rm -f *.tmp
+
+clean:
+ rm -f $(FILES) *.tmp
+
+taler_kyc_attributes.ts.tmp: registry.rec ts.template
+ ../format.sh ts.template < registry.rec > $@
+
+taler_kyc_attributes.ts: ts.header taler_kyc_attributes.ts.tmp ts.footer
+ cat $^ > $@
+
+taler_kyc_attributes.rst.tmp: registry.rec rst.template
+ ../format.sh rst.template < registry.rec > $@
+
+taler_kyc_attributes.rst: rst.header taler_kyc_attributes.rst.tmp rst.footer
+ cat $^ > $@
+
+.PHONY: check clean distclean
diff --git a/gnu-taler-aml-attributes/registry.rec b/gnu-taler-aml-attributes/registry.rec
@@ -0,0 +1,271 @@
+# -*- mode: rec -*-
+#
+# Registry for GNU Taler attributes, as per Design document 31
+#
+%rec: TalerAttributes
+%key: Identifier
+%typedef: Identifier_t regexp /^[ABCDEFGHIJKLMNOPQRSTUVWXYZ_][ABCDEFGHIJKLMNOPQRSTUVWXYZ_0123456789:\.]*$/
+%type: Identifier Identifier_t
+%unique: Identifier
+%mandatory: Identifier
+%typedef: Description_t regexp |^[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_-][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_\(\)\.,;!"':#\/ -]*$|
+%type: Description Description_t
+%mandatory: Description
+%mandatory: Required
+%mandatory: Format
+%allowed: Comment
+%sort: Identifier Description Required
+
+## All VQF forms
+
+# Customer is the person with whom the member concludes the contract with regard to the financia service provided.
+
+Identifier: OFFICER_FULL_NAME
+Description: Full legal name of the officer filling the form.
+Format: text/plain
+Required: true
+
+Identifier: FORM_FILLING_DATE
+Description: When the form was completed.
+Format: text/plain
+Required: true
+
+## Form VQF 902.1e
+
+# 1
+# Information of the customer
+
+Identifier: CUSTOMER_NATURAL_FULL_NAME
+Description: .
+Format: text/plain
+Required: true
+Comment: If the customer is a natural person.
+
+Identifier: CUSTOMER_NATURAL_RESIDENTIAL_ADDRESS
+Description: .
+Format: text/plain
+Required: true
+Comment: If the customer is a natural person.
+
+Identifier: CUSTOMER_NATURAL_PHONE
+Description: .
+Format: text/plain
+Required: false
+Comment: If the customer is a natural person.
+
+Identifier: CUSTOMER_NATURAL_EMAIL
+Description: .
+Format: text/plain
+Required: false
+Comment: If the customer is a natural person.
+
+Identifier: CUSTOMER_NATURAL_BIRTHDATE
+Description: .
+Format: text/plain
+Required: true
+Comment: If the customer is a natural person.
+
+Identifier: CUSTOMER_NATURAL_NATIONALITY_CC
+Description: .
+Format: text/plain
+Required: true
+Comment: If the customer is a natural person.
+
+Identifier: CUSTOMER_NATURAL_NATIONAL_ID
+Description: .
+Format: text/plain
+Required: true
+Comment: If the customer is a natural person.
+
+Identifier: CUSTOMER_NATURAL_COMPANY_NAME
+Description: .
+Format: text/plain
+Required: false
+Comment: If the customer is a natural person.
+
+Identifier: CUSTOMER_NATURAL_REGISTERED_OFFICE
+Description: .
+Format: text/plain
+Required: false
+Comment: If the customer is a natural person.
+
+Identifier: CUSTOMER_NATURAL_COMPANY_ID
+Description: .
+Format: text/plain
+Required: false
+Comment: If the customer is a natural person.
+
+Identifier: CUSTOMER_ENTITY_COMPANY_NAME
+Description: .
+Format: text/plain
+Required: true
+Comment: If the customer is a legal entity.
+
+Identifier: CUSTOMER_ENTITY_ADDRESS
+Description: .
+Format: text/plain
+Required: true
+Comment: If the customer is a legal entity.
+
+Identifier: CUSTOMER_ENTITY_CONTACT_PERSON_NAME
+Description: .
+Format: text/plain
+Required: false
+Comment: If the customer is a legal entity.
+
+Identifier: CUSTOMER_ENTITY_PHONE
+Description: .
+Format: text/plain
+Required: false
+Comment: If the customer is a legal entity.
+
+Identifier: CUSTOMER_ENTITY_EMAIL
+Description: .
+Format: text/plain
+Required: false
+Comment: If the customer is a legal entity.
+
+Identifier: CUSTOMER_ENTITY_ID
+Description: .
+Format: text/plain
+Required: true
+Comment: If the customer is a legal entity.
+
+# 2
+# Information of the founders
+# Founders are natural persons who establish the business for legal entities and partnerships
+
+Identifier: FOUNDER_FULL_NAME
+Description: .
+Format: text/plain
+Required: true
+
+Identifier: FOUNDER_RESIDENTIAL_ADDRESS
+Description: .
+Format: text/plain
+Required: true
+
+Identifier: FOUNDER_BIRTHDATE
+Description: .
+Format: text/plain
+Required: true
+
+Identifier: FOUNDER_NATIONALITY_CC
+Description: .
+Format: text/plain
+Required: true
+
+Identifier: FOUNDER_AUTHORIZATION_TYPE
+Description: .
+Format: text/plain
+Comment: signatory of representation
+Required: true
+
+Identifier: FOUNDER_NATIONAL_ID
+Description: .
+Format: text/plain
+Required: true
+
+Identifier: FOUNDER_POWER_OF_ATTORNEY
+Description: .
+Format: text/plain
+Comment: Could be "cr extract", "mandate" or "other"
+Required: true
+
+# 3
+# Acceptance of business relationship
+
+Identifier: ACCEPTANCE_DATE
+Description: .
+Format: text/plain
+Comment: Conclusion of the conract
+Required: false
+
+Identifier: ACCEPTANCE_METHOD
+Description: .
+Format: text/plain
+Comment: Accepted by face to face or correspondence
+Required: false
+
+Identifier: ACCEPTANCE_CORRESPONDENCE_SERVICE_TYPE
+Description: .
+Format: text/plain
+Comment: to the customer, hold at bank, to the member or to a third party
+Required: false
+
+Identifier: ACCEPTANCE_LANGUAGE
+Description: .
+Format: text/plain
+Comment:
+Required: false
+
+Identifier: ACCEPTANCE_ADDITIONAL_INFO
+Description: .
+Format: text/plain
+Comment:
+Required: false
+
+# 4
+# Information on the beneficial owner of the assets and/or controlling person
+# defines the customer type
+
+Identifier: CUSTOMER_TYPE
+Description: .
+Format: text/plain
+Comment: Value could be natural person and sole beneficial, legal entity, a foundation, a trust, a life insurance or all other cases.
+Required: true
+
+# 5
+# Embargo procedures/terrorism list
+
+Identifier: EMBARGO_TERRIRISM_INFO
+Description: .
+Format: text/plain
+Comment: Verification whether the customer or any involved persons are listed on an embargo-/terrorism list
+Required: false
+
+# 6
+# Type and purpose of business relationship
+
+Identifier: RELATIONSHIP_TYPE
+Description: .
+Format: text/plain
+Comment: Could be "money exchange", "money and asset transfer" or other
+Required: false
+
+Identifier: RELATIONSHIP_PURPOSE
+Description: .
+Format: text/plain
+Comment:
+Required: false
+
+## Form VQF 902.4e
+## Form VQF 902.5e
+## Form VQF 902.8ew
+## Form VQF 902.9e
+## Form VQF 902.11e
+## Form VQF 902.12e
+## Form VQF 902.13e
+## Form VQF 902.14e
+## Form VQF 902.15e
+
+Identifier: PERSON_LAST_NAME
+Description: Last name of an individual as in the national identity card.
+Format: text/plain
+
+Identifier: PERSON_NATIONAL_ID
+Description: Identification number or string of national identity card.
+Format: text/plain
+
+Identifier: PERSON_DATE_OF_BIRTH
+Description: Date of birth of an individual. Format is YYYY-MM-DD.
+Format: text/plain
+
+Identifier: PERSON_NATIONAL_ID_SCAN
+Description: Scan of a recognized national identity card of an individual.
+Format: text/pdf
+
+Identifier: PERSON_NATIONALITY_CC
+Description: Nationality of an individual. Format is 2-letter ISO country-code.
+Format: text/plain
+
diff --git a/gnu-taler-aml-attributes/rst.footer b/gnu-taler-aml-attributes/rst.footer
diff --git a/gnu-taler-aml-attributes/rst.header b/gnu-taler-aml-attributes/rst.header
@@ -0,0 +1,14 @@
+GNU Taler Aml Attributes
+---------------------
+
+Entries
+^^^^^^^
+
+.. list-table:: GNU Taler AML Attributes
+ :widths: auto
+ :header-rows: 1
+
+ * - Name
+ - Value
+ - HTTP Status
+ - Description
diff --git a/gnu-taler-aml-attributes/rst.template b/gnu-taler-aml-attributes/rst.template
@@ -0,0 +1,4 @@
+ * - {{Identifier}}
+ - {{Format}}
+ - {{Description}}
+ - {{Comment}}
diff --git a/gnu-taler-aml-attributes/ts.footer b/gnu-taler-aml-attributes/ts.footer
@@ -0,0 +1,3 @@
+
+
+}
diff --git a/gnu-taler-aml-attributes/ts.header b/gnu-taler-aml-attributes/ts.header
@@ -0,0 +1,24 @@
+/*
+ This file is part of GNU Taler
+ Copyright (C) 2012-2020 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.
+ */
+
+export enum TalerAmlAttributes {
diff --git a/gnu-taler-aml-attributes/ts.template b/gnu-taler-aml-attributes/ts.template
@@ -0,0 +1,6 @@
+
+
+ /**
+ * {{Description}}
+ */
+ {{Name}} = {{Value}},
diff --git a/gnu-taler-kyc-attributes/rst.header b/gnu-taler-kyc-attributes/rst.header
@@ -1,10 +1,10 @@
-GNU Taler Error Codes
+GNU Taler Kyc Attributes
---------------------
Entries
^^^^^^^
-.. list-table:: GNU Taler Error Codes
+.. list-table:: GNU Taler Kyc Attributes
:widths: auto
:header-rows: 1
diff --git a/gnu-taler-kyc-attributes/ts.template b/gnu-taler-kyc-attributes/ts.template
@@ -2,7 +2,5 @@
/**
* {{Description}}
- * Returned with an HTTP status code of #MHD_HTTP_{{HttpStatus_Identifier}} ({{HttpStatus_Value}}).
- * (A value of 0 indicates that the error is generated client-side).
*/
{{Name}} = {{Value}},