Skip to content

Commit

Permalink
feat(passport-application): Required fixed props values (#16197)
Browse files Browse the repository at this point in the history
* type subtype props

* trigger

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
2 people authored and thoreyjona committed Oct 2, 2024
1 parent bd77ce4 commit af114c2
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand All @@ -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) {
Expand Down

0 comments on commit af114c2

Please sign in to comment.