diff options
Diffstat (limited to 'packages/exchange-backoffice-ui/src/forms/902_13e.ts')
-rw-r--r-- | packages/exchange-backoffice-ui/src/forms/902_13e.ts | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/packages/exchange-backoffice-ui/src/forms/902_13e.ts b/packages/exchange-backoffice-ui/src/forms/902_13e.ts index bca96e842..e933432e4 100644 --- a/packages/exchange-backoffice-ui/src/forms/902_13e.ts +++ b/packages/exchange-backoffice-ui/src/forms/902_13e.ts @@ -1,8 +1,9 @@ import { AbsoluteTime, TranslatedString } from "@gnu-taler/taler-util"; import { FormState } from "../handlers/FormProvider.js"; import { FlexibleForm } from "./index.js"; +import { State } from "../pages/AntiMoneyLaunderingForm.js"; -export const v1: FlexibleForm<Form902_13e.Form> = { +export const v1 = (current: State): FlexibleForm<Form902_13.Form> => ({ versionId: "2023-05-15", design: [ { @@ -441,8 +442,8 @@ export const v1: FlexibleForm<Form902_13e.Form> = { }, ], behavior: function formBehavior( - v: Partial<Form902_13e.Form>, - ): FormState<Form902_13e.Form> { + v: Partial<Form902_13.Form>, + ): FormState<Form902_13.Form> { return { settlors: { elements: (v.settlors ?? []).map((f) => { @@ -476,9 +477,9 @@ export const v1: FlexibleForm<Form902_13e.Form> = { }, }; }, -}; +}); -namespace Form902_13e { +namespace Form902_13 { interface Foundation { name: string; type: "discretionary" | "non-discretionary"; |