summaryrefslogtreecommitdiff
path: root/packages/aml-backoffice-ui/src/forms/902_1e.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/aml-backoffice-ui/src/forms/902_1e.ts')
-rw-r--r--packages/aml-backoffice-ui/src/forms/902_1e.ts360
1 files changed, 178 insertions, 182 deletions
diff --git a/packages/aml-backoffice-ui/src/forms/902_1e.ts b/packages/aml-backoffice-ui/src/forms/902_1e.ts
index 2287db369..58ef7e2e8 100644
--- a/packages/aml-backoffice-ui/src/forms/902_1e.ts
+++ b/packages/aml-backoffice-ui/src/forms/902_1e.ts
@@ -1,18 +1,32 @@
-import type { AbsoluteTime, TranslatedString } from "@gnu-taler/taler-util";
-import type { FlexibleForm, FormState, InternationalizationAPI } from "@gnu-taler/web-util/browser";
-import { BaseForm, uiForms } from "./declaration.js";
+/*
+ This file is part of GNU Taler
+ (C) 2022-2024 Taler Systems S.A.
+
+ GNU Taler is free software; you can redistribute it and/or modify it under the
+ terms of the GNU General Public License as published by the Free Software
+ Foundation; either version 3, 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 General Public License for more details.
+
+ You should have received a copy of the GNU General Public License along with
+ GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
+ */
+import type { AbsoluteTime } from "@gnu-taler/taler-util";
+import type { InternationalizationAPI } from "@gnu-taler/web-util/browser";
+import { BaseForm } from "../context/ui-forms.js";
import { resolutionSection } from "./simplest.js";
-export const v1 = (i18n: InternationalizationAPI) => (current: BaseForm): FlexibleForm<Form902_1.Form> => ({
+export const v1 = (i18n: InternationalizationAPI) => ({
design: [
{
title: i18n.str`Information on customer`,
- description:
- i18n.str`The customer is the person with whom the member concludes the contract with regard to the financial service provided (civil law). Does the member act as director of a domiciliary company, this domiciliary company is the customer.`,
+ description: i18n.str`The customer is the person with whom the member concludes the contract with regard to the financial service provided (civil law). Does the member act as director of a domiciliary company, this domiciliary company is the customer.`,
fields: [
{
type: "choiceStacked",
- props: {
+ properties: {
name: "customerType",
label: i18n.str`Type of customer`,
required: true,
@@ -30,7 +44,7 @@ export const v1 = (i18n: InternationalizationAPI) => (current: BaseForm): Flexib
},
{
type: "text",
- props: {
+ properties: {
name: "naturalCustomer.fullName",
label: i18n.str`Full name`,
required: true,
@@ -38,7 +52,7 @@ export const v1 = (i18n: InternationalizationAPI) => (current: BaseForm): Flexib
},
{
type: "text",
- props: {
+ properties: {
name: "naturalCustomer.address",
label: i18n.str`Residential address`,
required: true,
@@ -46,21 +60,21 @@ export const v1 = (i18n: InternationalizationAPI) => (current: BaseForm): Flexib
},
{
type: "integer",
- props: {
+ properties: {
name: "naturalCustomer.telephone",
label: i18n.str`Telephone`,
},
},
{
type: "text",
- props: {
+ properties: {
name: "naturalCustomer.email",
label: i18n.str`E-mail`,
},
},
{
type: "absoluteTime",
- props: {
+ properties: {
name: "naturalCustomer.dateOfBirth",
label: i18n.str`Date of birth`,
required: true,
@@ -69,7 +83,7 @@ export const v1 = (i18n: InternationalizationAPI) => (current: BaseForm): Flexib
},
{
type: "text",
- props: {
+ properties: {
name: "naturalCustomer.nationality",
label: i18n.str`Nationality`,
required: true,
@@ -77,7 +91,7 @@ export const v1 = (i18n: InternationalizationAPI) => (current: BaseForm): Flexib
},
{
type: "text",
- props: {
+ properties: {
name: "naturalCustomer.document",
label: i18n.str`Identification document`,
required: true,
@@ -85,7 +99,7 @@ export const v1 = (i18n: InternationalizationAPI) => (current: BaseForm): Flexib
},
{
type: "file",
- props: {
+ properties: {
name: "naturalCustomer.documentAttachment",
label: i18n.str`Document attachment`,
required: true,
@@ -96,28 +110,28 @@ export const v1 = (i18n: InternationalizationAPI) => (current: BaseForm): Flexib
},
{
type: "text",
- props: {
+ properties: {
name: "naturalCustomer.companyName",
label: i18n.str`Company name`,
},
},
{
type: "text",
- props: {
+ properties: {
name: "naturalCustomer.office",
label: i18n.str`Registered office`,
},
},
{
type: "text",
- props: {
+ properties: {
name: "naturalCustomer.companyDocument",
label: i18n.str`Company identification document`,
},
},
{
type: "file",
- props: {
+ properties: {
name: "naturalCustomer.companyDocumentAttachment",
label: i18n.str`Document attachment`,
required: true,
@@ -128,7 +142,7 @@ export const v1 = (i18n: InternationalizationAPI) => (current: BaseForm): Flexib
},
{
type: "text",
- props: {
+ properties: {
name: "legalCustomer.companyName",
label: i18n.str`Company name`,
required: true,
@@ -136,7 +150,7 @@ export const v1 = (i18n: InternationalizationAPI) => (current: BaseForm): Flexib
},
{
type: "text",
- props: {
+ properties: {
name: "legalCustomer.domicile",
label: i18n.str`Domicile`,
required: true,
@@ -144,28 +158,28 @@ export const v1 = (i18n: InternationalizationAPI) => (current: BaseForm): Flexib
},
{
type: "text",
- props: {
+ properties: {
name: "legalCustomer.contactPerson",
label: i18n.str`Contact person`,
},
},
{
type: "text",
- props: {
+ properties: {
name: "legalCustomer.telephone",
label: i18n.str`Telephone`,
},
},
{
type: "text",
- props: {
+ properties: {
name: "legalCustomer.email",
label: i18n.str`E-mail`,
},
},
{
type: "text",
- props: {
+ properties: {
name: "legalCustomer.document",
label: i18n.str`Identification document`,
help: i18n.str`Not older than 12 month`,
@@ -173,7 +187,7 @@ export const v1 = (i18n: InternationalizationAPI) => (current: BaseForm): Flexib
},
{
type: "file",
- props: {
+ properties: {
name: "legalCustomer.documentAttachment",
label: i18n.str`Document attachment`,
required: true,
@@ -185,14 +199,12 @@ export const v1 = (i18n: InternationalizationAPI) => (current: BaseForm): Flexib
],
},
{
- title:
- i18n.str`Information on the natural persons who establish the business relationship for legal entities and partnerships`,
- description:
- i18n.str`For legal entities and partnerships the identity of the natural persons who establish the business relationship must be verified.`,
+ title: i18n.str`Information on the natural persons who establish the business relationship for legal entities and partnerships`,
+ description: i18n.str`For legal entities and partnerships the identity of the natural persons who establish the business relationship must be verified.`,
fields: [
{
type: "array",
- props: {
+ properties: {
name: "businessEstablisher",
label: i18n.str`Persons`,
required: true,
@@ -200,7 +212,7 @@ export const v1 = (i18n: InternationalizationAPI) => (current: BaseForm): Flexib
fields: [
{
type: "text",
- props: {
+ properties: {
name: "fullName",
label: i18n.str`Full name`,
required: true,
@@ -208,7 +220,7 @@ export const v1 = (i18n: InternationalizationAPI) => (current: BaseForm): Flexib
},
{
type: "text",
- props: {
+ properties: {
name: "address",
label: i18n.str`Residential address`,
required: true,
@@ -216,7 +228,7 @@ export const v1 = (i18n: InternationalizationAPI) => (current: BaseForm): Flexib
},
{
type: "absoluteTime",
- props: {
+ properties: {
name: "dateOfBirth",
label: i18n.str`Date of birth`,
required: true,
@@ -225,7 +237,7 @@ export const v1 = (i18n: InternationalizationAPI) => (current: BaseForm): Flexib
},
{
type: "text",
- props: {
+ properties: {
name: "nationality",
label: i18n.str`Nationality`,
required: true,
@@ -233,19 +245,17 @@ export const v1 = (i18n: InternationalizationAPI) => (current: BaseForm): Flexib
},
{
type: "text",
- props: {
+ properties: {
name: "typeOfAuthorization",
- label:
- i18n.str`Type of authorization (signatory of representation)`,
+ label: i18n.str`Type of authorization (signatory of representation)`,
required: true,
},
},
{
type: "file",
- props: {
+ properties: {
name: "documentAttachment",
- label:
- i18n.str`Identification document attachment`,
+ label: i18n.str`Identification document attachment`,
required: true,
maxBites: 2 * 1024 * 1024,
accept: ".png",
@@ -254,7 +264,7 @@ export const v1 = (i18n: InternationalizationAPI) => (current: BaseForm): Flexib
},
{
type: "choiceStacked",
- props: {
+ properties: {
name: "powerOfAttorneyArrangements",
label: i18n.str`Power of attorney arrangements`,
required: true,
@@ -276,7 +286,7 @@ export const v1 = (i18n: InternationalizationAPI) => (current: BaseForm): Flexib
},
{
type: "text",
- props: {
+ properties: {
name: "powerOfAttorneyArrangementsOther",
label: i18n.str`Power of attorney arrangements`,
required: true,
@@ -293,7 +303,7 @@ export const v1 = (i18n: InternationalizationAPI) => (current: BaseForm): Flexib
fields: [
{
type: "absoluteTime",
- props: {
+ properties: {
name: "acceptance.when",
pattern: "dd/MM/yyyy",
label: i18n.str`Date (conclusion of contract)`,
@@ -302,7 +312,7 @@ export const v1 = (i18n: InternationalizationAPI) => (current: BaseForm): Flexib
},
{
type: "choiceStacked",
- props: {
+ properties: {
name: "acceptance.acceptedBy",
label: i18n.str`Accepted by`,
required: true,
@@ -312,13 +322,11 @@ export const v1 = (i18n: InternationalizationAPI) => (current: BaseForm): Flexib
value: "face-to-face",
},
{
- label:
- i18n.str`Correspondence: authenticated copy of identification document obtained`,
+ label: i18n.str`Correspondence: authenticated copy of identification document obtained`,
value: "correspondence-document",
},
{
- label:
- i18n.str`Correspondence: residential address validated`,
+ label: i18n.str`Correspondence: residential address validated`,
value: "correspondence-address",
},
],
@@ -326,7 +334,7 @@ export const v1 = (i18n: InternationalizationAPI) => (current: BaseForm): Flexib
},
{
type: "choiceStacked",
- props: {
+ properties: {
name: "acceptance.typeOfCorrespondence",
label: i18n.str`Type of correspondence service`,
choices: [
@@ -351,7 +359,7 @@ export const v1 = (i18n: InternationalizationAPI) => (current: BaseForm): Flexib
},
{
type: "text",
- props: {
+ properties: {
name: "acceptance.thirdPartyFullName",
label: i18n.str`Third party full name`,
required: true,
@@ -359,7 +367,7 @@ export const v1 = (i18n: InternationalizationAPI) => (current: BaseForm): Flexib
},
{
type: "text",
- props: {
+ properties: {
name: "acceptance.thirdPartyAddress",
label: i18n.str`Third party address`,
required: true,
@@ -367,16 +375,16 @@ export const v1 = (i18n: InternationalizationAPI) => (current: BaseForm): Flexib
},
{
type: "selectMultiple",
- props: {
+ properties: {
name: "acceptance.language",
label: i18n.str`Languages`,
- choices: uiForms.currencies(i18n),
+ choices: ["asd"],
unique: true,
},
},
{
type: "textArea",
- props: {
+ properties: {
name: "acceptance.furtherInformation",
label: i18n.str`Further information`,
},
@@ -384,36 +392,30 @@ export const v1 = (i18n: InternationalizationAPI) => (current: BaseForm): Flexib
],
},
{
- title:
- i18n.str`Information on the beneficial owner of the assets and/or controlling person`,
- description:
- i18n.str`Establishment of the beneficial owner of the assets and/or controlling person`,
+ title: i18n.str`Information on the beneficial owner of the assets and/or controlling person`,
+ description: i18n.str`Establishment of the beneficial owner of the assets and/or controlling person`,
fields: [
{
type: "choiceStacked",
- props: {
+ properties: {
name: "establishment",
label: i18n.str`The customer is`,
required: true,
choices: [
{
- label:
- i18n.str`a natural person and there are no doubts that this person is the sole beneficial owner of the assets`,
+ label: i18n.str`a natural person and there are no doubts that this person is the sole beneficial owner of the assets`,
value: "natural",
},
{
- label:
- i18n.str`a foundation (or a similar construct; incl. underlying companies)`,
+ label: i18n.str`a foundation (or a similar construct; incl. underlying companies)`,
value: "foundation",
},
{
- label:
- i18n.str`a trust (incl. underlying companies)`,
+ label: i18n.str`a trust (incl. underlying companies)`,
value: "trust",
},
{
- label:
- i18n.str`a life insurance policy with separately managed accounts/securities accounts`,
+ label: i18n.str`a life insurance policy with separately managed accounts/securities accounts`,
value: "insurance-wrapper",
},
{
@@ -426,14 +428,12 @@ export const v1 = (i18n: InternationalizationAPI) => (current: BaseForm): Flexib
],
},
{
- title:
- i18n.str`Evaluation with regard to embargo procedures/terrorism lists on establishing the business relationship`,
- description:
- i18n.str`Verification whether the customer, beneficial owners of the assets, controlling persons, authorized representatives or other involved persons are listed on an embargo/terrorism list (date of verification/result)`,
+ title: i18n.str`Evaluation with regard to embargo procedures/terrorism lists on establishing the business relationship`,
+ description: i18n.str`Verification whether the customer, beneficial owners of the assets, controlling persons, authorized representatives or other involved persons are listed on an embargo/terrorism list (date of verification/result)`,
fields: [
{
type: "textArea",
- props: {
+ properties: {
name: "embargoEvaluation",
help: i18n.str`The evaluation must be made at the beginning of the business relationship and has to be repeated in the case of permanent business relationship every time the according lists are updated.`,
label: i18n.str`Evaluation`,
@@ -442,14 +442,12 @@ export const v1 = (i18n: InternationalizationAPI) => (current: BaseForm): Flexib
],
},
{
- title:
- i18n.str`In the case of cash transactions/occasional customers: Information on type and purpose of business relationship`,
- description:
- i18n.str`These details are only necessary for occasional customers, i.e. money exchange, money and asset transfer or other cash transactions provided that no customer profile (VQF doc. No. 902.5) is created`,
+ title: i18n.str`In the case of cash transactions/occasional customers: Information on type and purpose of business relationship`,
+ description: i18n.str`These details are only necessary for occasional customers, i.e. money exchange, money and asset transfer or other cash transactions provided that no customer profile (VQF doc. No. 902.5) is created`,
fields: [
{
type: "choiceStacked",
- props: {
+ properties: {
name: "cashTransactions.typeOfBusiness",
label: i18n.str`Type of business relationship`,
choices: [
@@ -462,8 +460,7 @@ export const v1 = (i18n: InternationalizationAPI) => (current: BaseForm): Flexib
value: "money-and-asset-transfer",
},
{
- label:
- i18n.str`Other cash transactions. Specify below`,
+ label: i18n.str`Other cash transactions. Specify below`,
value: "other",
},
],
@@ -471,7 +468,7 @@ export const v1 = (i18n: InternationalizationAPI) => (current: BaseForm): Flexib
},
{
type: "text",
- props: {
+ properties: {
name: "cashTransactions.otherTypeOfBusiness",
required: true,
label: i18n.str`Specify other cash transactions:`,
@@ -479,108 +476,107 @@ export const v1 = (i18n: InternationalizationAPI) => (current: BaseForm): Flexib
},
{
type: "textArea",
- props: {
+ properties: {
name: "cashTransactions.purpose",
- label:
- i18n.str`Purpose of the business relationship (purpose of service requested)`,
+ label: i18n.str`Purpose of the business relationship (purpose of service requested)`,
},
},
],
},
- resolutionSection(current, i18n),
+ resolutionSection(i18n),
],
- behavior: function formBehavior(
- v: Partial<Form902_1.Form>,
- ): FormState<Form902_1.Form> {
- return {
- fullName: {
- disabled: true,
- },
- businessEstablisher: {
- elements: (v.businessEstablisher ?? []).map((be) => {
- return {
- powerOfAttorneyArrangementsOther: {
- hidden: be.powerOfAttorneyArrangements !== "other",
- },
- };
- }),
- },
- acceptance: {
- thirdPartyFullName: {
- hidden: v.acceptance?.typeOfCorrespondence !== "third-party",
- },
- thirdPartyAddress: {
- hidden: v.acceptance?.typeOfCorrespondence !== "third-party",
- },
- },
- cashTransactions: {
- otherTypeOfBusiness: {
- hidden: v.cashTransactions?.typeOfBusiness !== "other",
- },
- },
- naturalCustomer: {
- fullName: {
- hidden: v.customerType !== "natural",
- },
- address: {
- hidden: v.customerType !== "natural",
- },
- telephone: {
- hidden: v.customerType !== "natural",
- },
- email: {
- hidden: v.customerType !== "natural",
- },
- dateOfBirth: {
- hidden: v.customerType !== "natural",
- },
- nationality: {
- hidden: v.customerType !== "natural",
- },
- document: {
- hidden: v.customerType !== "natural",
- },
- companyName: {
- hidden: v.customerType !== "natural",
- },
- office: {
- hidden: v.customerType !== "natural",
- },
- companyDocument: {
- hidden: v.customerType !== "natural",
- },
- companyDocumentAttachment: {
- hidden: v.customerType !== "natural",
- },
- documentAttachment: {
- hidden: v.customerType !== "natural",
- },
- },
- legalCustomer: {
- companyName: {
- hidden: v.customerType !== "legal",
- },
- contactPerson: {
- hidden: v.customerType !== "legal",
- },
- document: {
- hidden: v.customerType !== "legal",
- },
- domicile: {
- hidden: v.customerType !== "legal",
- },
- email: {
- hidden: v.customerType !== "legal",
- },
- telephone: {
- hidden: v.customerType !== "legal",
- },
- documentAttachment: {
- hidden: v.customerType !== "legal",
- },
- },
- };
- },
+ // behavior: function formBehavior(
+ // v: Partial<Form902_1.Form>,
+ // ): FormState<Form902_1.Form> {
+ // return {
+ // fullName: {
+ // disabled: true,
+ // },
+ // businessEstablisher: {
+ // elements: (v.businessEstablisher ?? []).map((be) => {
+ // return {
+ // powerOfAttorneyArrangementsOther: {
+ // hidden: be.powerOfAttorneyArrangements !== "other",
+ // },
+ // };
+ // }),
+ // },
+ // acceptance: {
+ // thirdPartyFullName: {
+ // hidden: v.acceptance?.typeOfCorrespondence !== "third-party",
+ // },
+ // thirdPartyAddress: {
+ // hidden: v.acceptance?.typeOfCorrespondence !== "third-party",
+ // },
+ // },
+ // cashTransactions: {
+ // otherTypeOfBusiness: {
+ // hidden: v.cashTransactions?.typeOfBusiness !== "other",
+ // },
+ // },
+ // naturalCustomer: {
+ // fullName: {
+ // hidden: v.customerType !== "natural",
+ // },
+ // address: {
+ // hidden: v.customerType !== "natural",
+ // },
+ // telephone: {
+ // hidden: v.customerType !== "natural",
+ // },
+ // email: {
+ // hidden: v.customerType !== "natural",
+ // },
+ // dateOfBirth: {
+ // hidden: v.customerType !== "natural",
+ // },
+ // nationality: {
+ // hidden: v.customerType !== "natural",
+ // },
+ // document: {
+ // hidden: v.customerType !== "natural",
+ // },
+ // companyName: {
+ // hidden: v.customerType !== "natural",
+ // },
+ // office: {
+ // hidden: v.customerType !== "natural",
+ // },
+ // companyDocument: {
+ // hidden: v.customerType !== "natural",
+ // },
+ // companyDocumentAttachment: {
+ // hidden: v.customerType !== "natural",
+ // },
+ // documentAttachment: {
+ // hidden: v.customerType !== "natural",
+ // },
+ // },
+ // legalCustomer: {
+ // companyName: {
+ // hidden: v.customerType !== "legal",
+ // },
+ // contactPerson: {
+ // hidden: v.customerType !== "legal",
+ // },
+ // document: {
+ // hidden: v.customerType !== "legal",
+ // },
+ // domicile: {
+ // hidden: v.customerType !== "legal",
+ // },
+ // email: {
+ // hidden: v.customerType !== "legal",
+ // },
+ // telephone: {
+ // hidden: v.customerType !== "legal",
+ // },
+ // documentAttachment: {
+ // hidden: v.customerType !== "legal",
+ // },
+ // },
+ // };
+ // },
});
namespace Form902_1 {
@@ -632,11 +628,11 @@ namespace Form902_1 {
interface BeneficialOwner {
establishment:
- | "natural-person"
- | "foundation"
- | "trust"
- | "insurance-wrapper"
- | "other";
+ | "natural-person"
+ | "foundation"
+ | "trust"
+ | "insurance-wrapper"
+ | "other";
}
interface CashTransactions {