commit e9a3fce8d605e11360fe40dba74474f0585856f1
parent 64e63d5089f5ab4049dfd466bcb64bb194e69aeb
Author: Sebastian <sebasjm@gmail.com>
Date: Tue, 21 Jan 2025 18:11:02 -0300
add gls onboarding placeholder
Diffstat:
4 files changed, 54 insertions(+), 0 deletions(-)
diff --git a/packages/kyc-ui/src/forms/index.ts b/packages/kyc-ui/src/forms/index.ts
@@ -15,6 +15,7 @@
*/
import {
FormMetadata,
+ GLS_Onboarding,
InternationalizationAPI,
VQF_902_1,
VQF_902_11,
@@ -54,6 +55,12 @@ export const preloadedForms: (
config: acceptTos(i18n, context),
},
{
+ label: i18n.str`GLS onboarding`,
+ id: "gls-onboarding",
+ version: 1,
+ config: GLS_Onboarding(i18n),
+ },
+ {
label: i18n.str`Identification Form`,
description: i18n.str`The customer has to be identified on entering into a permanent business relationship or on concluding a cash transaction, which meets the according threshold.`,
id: "vqf-902-1",
diff --git a/packages/web-util/src/forms/gana/GLS_Onboarding.ts b/packages/web-util/src/forms/gana/GLS_Onboarding.ts
@@ -0,0 +1,41 @@
+import {
+ InternationalizationAPI,
+ UIHandlerId,
+ SelectUiChoice,
+ DoubleColumnFormDesign,
+} from "@gnu-taler/web-util/browser";
+import { TalerFormAttributes } from "./taler_form_attributes.js";
+
+export function GLS_Onboarding(
+ i18n: InternationalizationAPI,
+): DoubleColumnFormDesign {
+ return {
+ type: "double-column",
+ sections: [
+ {
+ title: i18n.str`This form was completed by`,
+ fields: [
+ {
+ id: "TAX_IS_ACTIVE" satisfies keyof TalerFormAttributes.GLS_Onboarding as UIHandlerId,
+ label: i18n.str`Is tax active?`,
+ // gana_type: "AbsoluteDateTime",
+ type: "toggle",
+ },
+ ],
+ },
+ {
+ 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.`,
+ fields: [
+ {
+ id: "PERSON_FULL_NAME" satisfies keyof TalerFormAttributes.GLS_Onboarding as UIHandlerId,
+ label: i18n.str`Full name`,
+ // gana_type: "String",
+ type: "text",
+ required: true,
+ },
+ ],
+ },
+ ],
+ };
+}
diff --git a/packages/web-util/src/forms/gana/taler_form_attributes.ts b/packages/web-util/src/forms/gana/taler_form_attributes.ts
@@ -1330,6 +1330,11 @@ export namespace TalerFormAttributes {
* Required: false
*/
ACCOUNT_PEP?: Boolean;
+ /**
+ * Is the client's account currently frozen?
+ * Required: false
+ */
+ ACCOUNT_FROZEN?: Boolean;
}
export interface AccountProperties_TOPS {
/**
diff --git a/packages/web-util/src/forms/index.ts b/packages/web-util/src/forms/index.ts
@@ -13,6 +13,7 @@ export * from "./gana/VQF_902_12.js";
export * from "./gana/VQF_902_13.js";
export * from "./gana/VQF_902_14.js";
export * from "./gana/VQF_902_15.js";
+export * from "./gana/GLS_Onboarding.js";
export * from "./gana/taler_form_attributes.js";
export * from "./fields/InputAbsoluteTime.js";
export * from "./fields/InputAmount.js";