From 3b3ec6b5c8ad88b2abc03f41ef7660b294ee8061 Mon Sep 17 00:00:00 2001 From: Omri Levy Date: Wed, 1 Jan 2025 11:33:50 +0200 Subject: [PATCH] feat(*): removed gender from add ubo flow --- .../ubos-form-json-definition.ts | 27 ------------------- .../case-management.service.ts | 1 - 2 files changed, 28 deletions(-) diff --git a/apps/backoffice-v2/src/lib/blocks/hooks/useManageUbosBlock/ubos-form-json-definition.ts b/apps/backoffice-v2/src/lib/blocks/hooks/useManageUbosBlock/ubos-form-json-definition.ts index 0fd2391805..c472776fa6 100644 --- a/apps/backoffice-v2/src/lib/blocks/hooks/useManageUbosBlock/ubos-form-json-definition.ts +++ b/apps/backoffice-v2/src/lib/blocks/hooks/useManageUbosBlock/ubos-form-json-definition.ts @@ -18,7 +18,6 @@ export const ubosFormJsonDefinition = { 'company-ownership-passport-number-input', 'company-ownership-date-of-birth-input', 'company-ownership-nationality-input', - 'company-ownership-gender-input', 'company-ownership-country-input', 'company-ownership-city-input', ], @@ -176,32 +175,6 @@ export const ubosFormJsonDefinition = { }, }, }, - { - name: 'company-ownership-gender-input', - type: 'json-form:text', - valueDestination: 'gender', - options: { - label: 'text.companyOwnership.gender.label', - hint: 'text.companyOwnership.gender.placeholder', - jsonFormDefinition: { - type: 'string', - oneOf: [ - { - title: 'text.companyOwnership.gender.male', - const: 'male', - }, - { - title: 'text.companyOwnership.gender.female', - const: 'female', - }, - { - title: 'text.companyOwnership.gender.other', - const: 'other', - }, - ], - }, - }, - }, { name: 'company-ownership-country-input', type: 'json-form:text', diff --git a/services/workflows-service/src/case-management/case-management.service.ts b/services/workflows-service/src/case-management/case-management.service.ts index 0d6d474b8d..fd68957d15 100644 --- a/services/workflows-service/src/case-management/case-management.service.ts +++ b/services/workflows-service/src/case-management/case-management.service.ts @@ -117,7 +117,6 @@ export class CaseManagementService { passportNumber: ubo.passportNumber, dateOfBirth: ubo.dateOfBirth, placeOfBirth: ubo.placeOfBirth, - gender: ubo.gender, country: ubo.country, city: ubo.city, street: ubo.street,