[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-typescript-core] 01/02: add gls onboarding placeholder
From: |
gnunet |
Subject: |
[taler-typescript-core] 01/02: add gls onboarding placeholder |
Date: |
Tue, 21 Jan 2025 22:17:21 +0100 |
This is an automated email from the git hooks/post-receive script.
sebasjm pushed a commit to branch master
in repository taler-typescript-core.
commit e9a3fce8d605e11360fe40dba74474f0585856f1
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Tue Jan 21 18:11:02 2025 -0300
add gls onboarding placeholder
---
packages/kyc-ui/src/forms/index.ts | 7 ++++
packages/web-util/src/forms/gana/GLS_Onboarding.ts | 41 ++++++++++++++++++++++
.../src/forms/gana/taler_form_attributes.ts | 5 +++
packages/web-util/src/forms/index.ts | 1 +
4 files changed, 54 insertions(+)
diff --git a/packages/kyc-ui/src/forms/index.ts
b/packages/kyc-ui/src/forms/index.ts
index 29de3b13a..2f626c610 100644
--- 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,
@@ -53,6 +54,12 @@ export const preloadedForms: (
version: 1,
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.`,
diff --git a/packages/web-util/src/forms/gana/GLS_Onboarding.ts
b/packages/web-util/src/forms/gana/GLS_Onboarding.ts
new file mode 100644
index 000000000..53ba8673b
--- /dev/null
+++ 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
index 7fcd63975..238d58728 100644
--- 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
index 8908166a9..2d81e5557 100644
--- 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";
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.