From 9f447729e1142e119e13eae6f4d1449296411376 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafn=20=C3=81rnason?= Date: Mon, 30 Sep 2024 10:35:50 +0000 Subject: [PATCH] feat(passport-application): Required fixed props values (#16197) * type subtype props * trigger --------- Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> --- .../lib/modules/templates/passport/passport.service.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/libs/application/template-api-modules/src/lib/modules/templates/passport/passport.service.ts b/libs/application/template-api-modules/src/lib/modules/templates/passport/passport.service.ts index 8e93ef53c9d4..8181d7e4ca72 100644 --- a/libs/application/template-api-modules/src/lib/modules/templates/passport/passport.service.ts +++ b/libs/application/template-api-modules/src/lib/modules/templates/passport/passport.service.ts @@ -173,8 +173,9 @@ export class PassportService extends BaseTemplateApiService { const forUser = !!passport.userPassport let result + const PASSPORT_TYPE = 'P' + const PASSPORT_SUBTYPE = 'A' if (forUser) { - this.logger.info('preregisterIdentityDocument', applicationId) result = await this.passportApi.preregisterIdentityDocument(auth, { guid: application.id, appliedForPersonId: auth.nationalId, @@ -186,10 +187,10 @@ export class PassportService extends BaseTemplateApiService { phoneMobile: personalInfo.phoneNumber, email: personalInfo.email, }, + type: PASSPORT_TYPE, + subType: PASSPORT_SUBTYPE, }) - this.logger.info('preregisterIdentityDocument result', result) } else { - this.logger.info('preregisterChildIdentityDocument', applicationId) result = await this.passportApi.preregisterChildIdentityDocument(auth, { guid: application.id, appliedForPersonId: childsPersonalInfo.nationalId, @@ -211,8 +212,9 @@ export class PassportService extends BaseTemplateApiService { phoneMobile: childsPersonalInfo.guardian1.phoneNumber, email: childsPersonalInfo.guardian1.email, }, + type: PASSPORT_TYPE, + subType: PASSPORT_SUBTYPE, }) - this.logger.info('preregisterChildIdentityDocument result', result) } if (!result || !result.success) {