From 71ba4a4e96554c2b86632a761069600004fc2386 Mon Sep 17 00:00:00 2001 From: berglindoma13 Date: Fri, 24 May 2024 13:00:39 +0000 Subject: [PATCH] added busetuskilyrdi and nationality of children --- .../citizenship/citizenship.service.ts | 79 +- .../citizenship/types/index.ts | 5 + .../citizenship/src/dataProviders/index.ts | 5 - .../src/fields/FormerIcelander/index.tsx | 46 - .../citizenship/src/fields/index.ts | 1 - .../FormerIcelanderSubSection.ts | 78 +- .../MaritalStatusSubSection.ts | 42 +- .../InformationSection/ParentsSubSection.ts | 28 +- .../src/forms/Prerequisites/index.ts | 5 - .../src/lib/CitizenshipTemplate.ts | 2 - .../citizenship/src/shared/constants.ts | 1 - .../citizenship/src/shared/types.ts | 8 + .../src/clientConfig.json | 2086 +---------------- .../directorateOfImmigrationClient.service.ts | 1 + .../directorateOfImmigrationClient.types.ts | 1 + 15 files changed, 153 insertions(+), 2235 deletions(-) delete mode 100644 libs/application/templates/directorate-of-immigration/citizenship/src/fields/FormerIcelander/index.tsx diff --git a/libs/application/template-api-modules/src/lib/modules/templates/directorate-of-immigration/citizenship/citizenship.service.ts b/libs/application/template-api-modules/src/lib/modules/templates/directorate-of-immigration/citizenship/citizenship.service.ts index 69c49271c7b4..76d455e44a85 100644 --- a/libs/application/template-api-modules/src/lib/modules/templates/directorate-of-immigration/citizenship/citizenship.service.ts +++ b/libs/application/template-api-modules/src/lib/modules/templates/directorate-of-immigration/citizenship/citizenship.service.ts @@ -38,9 +38,9 @@ export class CitizenshipService extends BaseTemplateApiService { super(ApplicationTypes.CITIZENSHIP) } - async getResidenceConditionInfo({ - auth, - }: TemplateApiModuleActionProps): Promise { + async getResidenceConditionInfo( + auth: Auth, + ): Promise { return this.directorateOfImmigrationClient.getCitizenshipResidenceConditionInfo( auth, ) @@ -78,7 +78,7 @@ export class CitizenshipService extends BaseTemplateApiService { throw new TemplateApiError( { title: errorMessages.applicationConditionsNotMet, - summary: '', + summary: errorMessages.applicationConditionsNotMet, }, 400, ) @@ -87,17 +87,29 @@ export class CitizenshipService extends BaseTemplateApiService { const applicantInformationItem: ApplicantInformation = {} if (validApplicant.applicantExists === true) { - const [countryOfResidenceList, passportItem, staysAbroadList] = - await Promise.all([ - this.getCurrentCountryOfResidenceList(auth), - this.getCurrentPassportItem(auth), - this.getCurrentStayAbroadList(auth), - ]) + const [ + countryOfResidenceList, + passportItem, + staysAbroadList, + residenceConditionInfo, + ] = await Promise.all([ + this.getCurrentCountryOfResidenceList(auth), + this.getCurrentPassportItem(auth), + this.getCurrentStayAbroadList(auth), + this.getResidenceConditionInfo(auth), + ]) applicantInformationItem.currentCountryOfResidenceList = countryOfResidenceList applicantInformationItem.currentPassportItem = passportItem applicantInformationItem.currentStaysAbroadList = staysAbroadList + applicantInformationItem.residenceConditionInfo = residenceConditionInfo + } else { + applicantInformationItem.eesNordicCitizen = + validApplicant.eesNordicCitizen + applicantInformationItem.eesResidenceCondition = + validApplicant.eesResidenceCondition + applicantInformationItem.spouseIsCitizen = validApplicant.spouseIsCitizen } return applicantInformationItem @@ -154,24 +166,12 @@ export class CitizenshipService extends BaseTemplateApiService { application, auth, }: TemplateApiModuleActionProps) { - const answers = application.answers as CitizenshipAnswers - - const residenceConditionInfo = - await this.directorateOfImmigrationClient.getCitizenshipResidenceConditionInfo( - auth, - ) - - // throw error in case the residence condition list changed since prerequisite step and - // user does not fulfill any other condition - if ( - !residenceConditionInfo.isAnyResConValid && - answers.parentInformation?.hasValidParents !== YES && - answers.formerIcelander !== YES - ) { + const validApplicant = await this.getApplicantValidity(auth) + if (!validApplicant.applicantExists && !validApplicant.isEESCitizen) { throw new TemplateApiError( { - title: errorMessages.noResidenceConditionPossible, - summary: errorMessages.noResidenceConditionPossible, + title: errorMessages.applicationConditionsNotMet, + summary: errorMessages.applicationConditionsNotMet, }, 400, ) @@ -270,14 +270,25 @@ export class CitizenshipService extends BaseTemplateApiService { auth, { selectedChildren: - answers.selectedChildrenExtraData?.map((c) => ({ - nationalId: c.nationalId, - otherParentNationalId: c.otherParentNationalId, - otherParentBirtDate: c.otherParentBirtDate - ? new Date(c.otherParentBirtDate) - : undefined, - otherParentName: c.otherParentName, - })) || [], + answers.selectedChildrenExtraData?.map((c) => { + const childrenCustodyInformation = application.externalData + .childrenCustodyInformation + .data as ApplicantChildCustodyInformation[] + + const thisChild = childrenCustodyInformation.find( + (x) => x.nationalId === c.nationalId, + ) + + return { + nationalId: c.nationalId, + otherParentNationalId: c.otherParentNationalId, + otherParentBirtDate: c.otherParentBirtDate + ? new Date(c.otherParentBirtDate) + : undefined, + otherParentName: c.otherParentName, + citizenship: thisChild?.citizenship?.code || '', + } + }) || [], isFormerIcelandicCitizen: answers.formerIcelander === YES, givenName: individual?.givenName, familyName: individual?.familyName, diff --git a/libs/application/template-api-modules/src/lib/modules/templates/directorate-of-immigration/citizenship/types/index.ts b/libs/application/template-api-modules/src/lib/modules/templates/directorate-of-immigration/citizenship/types/index.ts index 37d2688a90e3..9dd7870dfdb6 100644 --- a/libs/application/template-api-modules/src/lib/modules/templates/directorate-of-immigration/citizenship/types/index.ts +++ b/libs/application/template-api-modules/src/lib/modules/templates/directorate-of-immigration/citizenship/types/index.ts @@ -1,4 +1,5 @@ import { + ApplicantResidenceConditionViewModel, CountryOfResidenceViewModel, ResidenceAbroadViewModel, TravelDocumentViewModel, @@ -8,4 +9,8 @@ export interface ApplicantInformation { currentCountryOfResidenceList?: CountryOfResidenceViewModel[] currentPassportItem?: TravelDocumentViewModel currentStaysAbroadList?: ResidenceAbroadViewModel[] + residenceConditionInfo?: ApplicantResidenceConditionViewModel + eesNordicCitizen?: boolean + eesResidenceCondition?: boolean + spouseIsCitizen?: boolean } diff --git a/libs/application/templates/directorate-of-immigration/citizenship/src/dataProviders/index.ts b/libs/application/templates/directorate-of-immigration/citizenship/src/dataProviders/index.ts index f8de130e36d1..ef00215234fb 100644 --- a/libs/application/templates/directorate-of-immigration/citizenship/src/dataProviders/index.ts +++ b/libs/application/templates/directorate-of-immigration/citizenship/src/dataProviders/index.ts @@ -23,11 +23,6 @@ export const ApplicantInformationApi = defineTemplateApi({ externalDataId: 'applicantInformation', }) -export const ResidenceConditionInfoApi = defineTemplateApi({ - action: ApiActions.getResidenceConditionInfo, - externalDataId: 'residenceConditionInfo', -}) - export const ResidenceInIcelandLastChangeDateApi = defineTemplateApi({ action: ApiActions.getResidenceInIcelandLastChangeDate, externalDataId: 'residenceInIcelandLastChangeDate', diff --git a/libs/application/templates/directorate-of-immigration/citizenship/src/fields/FormerIcelander/index.tsx b/libs/application/templates/directorate-of-immigration/citizenship/src/fields/FormerIcelander/index.tsx deleted file mode 100644 index 8596a0615a5a..000000000000 --- a/libs/application/templates/directorate-of-immigration/citizenship/src/fields/FormerIcelander/index.tsx +++ /dev/null @@ -1,46 +0,0 @@ -import { FC, useState } from 'react' -import { information } from '../../lib/messages' -import { Box } from '@island.is/island-ui/core' -import { RadioController } from '@island.is/shared/form-fields' -import { useLocale } from '@island.is/localization' -import { getValueViaPath, NO, YES } from '@island.is/application/core' -import { FieldBaseProps } from '@island.is/application/types' - -export const FormerIcelander: FC = ({ application }) => { - const { answers } = application - - const [isFormerIcelander, setIsFormerIcelander] = useState( - getValueViaPath(answers, 'formerIcelander', '') as string, - ) - - const { formatMessage } = useLocale() - - const handleIsFormerIcelanderChange = (value: string) => { - setIsFormerIcelander(value) - } - - return ( - - { - handleIsFormerIcelanderChange(value) - }} - defaultValue={isFormerIcelander} - options={[ - { - value: YES, - label: formatMessage( - information.labels.radioButtons.radioOptionYes, - ), - }, - { - value: NO, - label: formatMessage(information.labels.radioButtons.radioOptionNo), - }, - ]} - /> - - ) -} diff --git a/libs/application/templates/directorate-of-immigration/citizenship/src/fields/index.ts b/libs/application/templates/directorate-of-immigration/citizenship/src/fields/index.ts index b5f03c1f7246..224d3fbc69f6 100644 --- a/libs/application/templates/directorate-of-immigration/citizenship/src/fields/index.ts +++ b/libs/application/templates/directorate-of-immigration/citizenship/src/fields/index.ts @@ -5,6 +5,5 @@ export { Parents } from './Parents' export { StaysAbroad } from './StaysAbroad' export { CriminalRecords } from './CriminalRecords' export { Review } from './Review' -export { FormerIcelander } from './FormerIcelander' export { HiddenTextInput } from './HiddenTextInput' export { MoreChildInfo } from './SelectedChildrenExtra' diff --git a/libs/application/templates/directorate-of-immigration/citizenship/src/forms/CitizenshipForm/InformationSection/FormerIcelanderSubSection.ts b/libs/application/templates/directorate-of-immigration/citizenship/src/forms/CitizenshipForm/InformationSection/FormerIcelanderSubSection.ts index ad32205529ef..09453213a773 100644 --- a/libs/application/templates/directorate-of-immigration/citizenship/src/forms/CitizenshipForm/InformationSection/FormerIcelanderSubSection.ts +++ b/libs/application/templates/directorate-of-immigration/citizenship/src/forms/CitizenshipForm/InformationSection/FormerIcelanderSubSection.ts @@ -7,27 +7,46 @@ import { getValueViaPath, } from '@island.is/application/core' import { information } from '../../../lib/messages' -import { Answer, YES } from '@island.is/application/types' +import { Answer, FormValue, YES } from '@island.is/application/types' import { Citizenship } from '../../../lib/dataSchema' -import { ApplicantResidenceConditionViewModel } from '@island.is/clients/directorate-of-immigration' +import { ApplicantInformation, ParentsToApplicant } from '../../../shared' export const FormerIcelanderSubSection = buildSubSection({ id: 'formerIcelander', title: information.labels.formerIcelander.subSectionTitle, - condition: (answer: Answer, externalData) => { - const answers = answer as Citizenship - const hasValidParents = answers?.parentInformation?.hasValidParents === YES - + condition: (formValue: FormValue, externalData) => { const residenceConditionInfo = getValueViaPath( externalData, - 'residenceConditionInfo.data', + 'applicantInformation.data.residenceConditionInfo', {}, - ) as ApplicantResidenceConditionViewModel - const isAnyResConValid = residenceConditionInfo.isAnyResConValid + ) as ApplicantInformation + + const parentAnswer = getValueViaPath( + formValue, + 'parentInformation.parents', + [], + ) as Array + + const totalParentsInAnswer = parentAnswer.filter( + (x) => x.wasRemoved === 'false', + ) + const hasResConMaritalStatus = + residenceConditionInfo.cohabitationISCitizen5YearDomicile || + residenceConditionInfo.cohabitationISCitizen5YrsDomicileMissingDate || + residenceConditionInfo.marriedISCitizenDomicile4Years || + residenceConditionInfo.marriedISCitizenDomicile4YrsMissingDate + + const hasOtherValidResidenceConditions = + residenceConditionInfo.domicileResidence7Years || + residenceConditionInfo.asylumSeekerOrHumanitarianResPerm5year || + residenceConditionInfo.noNationalityAnd5YearsDomicile || + residenceConditionInfo.nordicCitizenship4YearDomicile - // TODO revert - // return !isAnyResConValid && !hasValidParents - return !hasValidParents + return ( + !hasResConMaritalStatus && + !hasOtherValidResidenceConditions && + totalParentsInAnswer.length === 0 + ) }, children: [ buildMultiField({ @@ -49,24 +68,23 @@ export const FormerIcelanderSubSection = buildSubSection({ { value: NO, label: information.labels.radioButtons.radioOptionNo }, ], }), - // TODO revert - // buildAlertMessageField({ - // id: 'formerIcelanderAlert', - // title: information.labels.formerIcelander.alertTitle, - // alertType: 'error', - // message: information.labels.formerIcelander.alertDescription, - // condition: (answer: Answer) => { - // const answers = answer as Citizenship - // return answers?.formerIcelander === NO - // }, - // links: [ - // { - // title: information.labels.formerIcelander.alertLinkTitle, - // url: information.labels.formerIcelander.alertLinkUrl, - // isExternal: true, - // }, - // ], - // }), + buildAlertMessageField({ + id: 'formerIcelanderAlert', + title: information.labels.formerIcelander.alertTitle, + alertType: 'error', + message: information.labels.formerIcelander.alertDescription, + condition: (answer: Answer) => { + const answers = answer as Citizenship + return answers?.formerIcelander === NO + }, + links: [ + { + title: information.labels.formerIcelander.alertLinkTitle, + url: information.labels.formerIcelander.alertLinkUrl, + isExternal: true, + }, + ], + }), ], }), ], diff --git a/libs/application/templates/directorate-of-immigration/citizenship/src/forms/CitizenshipForm/InformationSection/MaritalStatusSubSection.ts b/libs/application/templates/directorate-of-immigration/citizenship/src/forms/CitizenshipForm/InformationSection/MaritalStatusSubSection.ts index 95e011f82b71..b2aed0f500ab 100644 --- a/libs/application/templates/directorate-of-immigration/citizenship/src/forms/CitizenshipForm/InformationSection/MaritalStatusSubSection.ts +++ b/libs/application/templates/directorate-of-immigration/citizenship/src/forms/CitizenshipForm/InformationSection/MaritalStatusSubSection.ts @@ -7,41 +7,45 @@ import { } from '@island.is/application/core' import { information } from '../../../lib/messages' import { Application } from '@island.is/api/schema' -import { ApplicantResidenceConditionViewModel } from '@island.is/clients/directorate-of-immigration' import { formatDate } from '../../../utils' import { Routes } from '../../../lib/constants' import { NationalRegistryIndividual, NationalRegistrySpouse, } from '@island.is/application/types' +import { ApplicantInformation } from '../../../shared' export const MaritalStatusSubSection = buildSubSection({ id: Routes.MARITALSTATUS, title: information.labels.maritalStatus.subSectionTitle, condition: (_, externalData) => { - const spouseDetails = getValueViaPath( - externalData, - 'spouseDetails.data', - undefined, - ) as NationalRegistrySpouse | undefined - const maritalStatus = spouseDetails?.maritalStatus - const hasSpouse = !!spouseDetails?.nationalId - const isMarriedOrCohabitation = - maritalStatus === '3' || (maritalStatus === '1' && hasSpouse) - // Check if the only residence condition that the applicant can apply for, is related to marital status const residenceConditionInfo = getValueViaPath( externalData, - 'residenceConditionInfo.data', + 'applicantInformation.data.residenceConditionInfo', {}, - ) as ApplicantResidenceConditionViewModel - const hasOnlyResConMaritalStatus = - residenceConditionInfo.isAnyResConValid && - residenceConditionInfo.isOnlyMarriedOrCohabitationWithISCitizen + ) as ApplicantInformation + + const hasResConMaritalStatus = + residenceConditionInfo.cohabitationISCitizen5YearDomicile || + residenceConditionInfo.cohabitationISCitizen5YrsDomicileMissingDate || + residenceConditionInfo.marriedISCitizenDomicile4Years || + residenceConditionInfo.marriedISCitizenDomicile4YrsMissingDate + + const hasOtherValidResidenceConditions = + residenceConditionInfo.domicileResidence7Years || + residenceConditionInfo.asylumSeekerOrHumanitarianResPerm5year || + residenceConditionInfo.noNationalityAnd5YearsDomicile || + residenceConditionInfo.nordicCitizenship4YearDomicile + + const spouseIsCitizen = residenceConditionInfo.spouseIsCitizen + const eesResidenceCondition = residenceConditionInfo.eesResidenceCondition + const showThisPage = spouseIsCitizen && !eesResidenceCondition - // TODO revert - // return isMarriedOrCohabitation && hasOnlyResConMaritalStatus - return isMarriedOrCohabitation + return ( + (!!hasResConMaritalStatus && !hasOtherValidResidenceConditions) || + !!showThisPage + ) }, children: [ buildMultiField({ diff --git a/libs/application/templates/directorate-of-immigration/citizenship/src/forms/CitizenshipForm/InformationSection/ParentsSubSection.ts b/libs/application/templates/directorate-of-immigration/citizenship/src/forms/CitizenshipForm/InformationSection/ParentsSubSection.ts index 30614805c663..40699c1e0d20 100644 --- a/libs/application/templates/directorate-of-immigration/citizenship/src/forms/CitizenshipForm/InformationSection/ParentsSubSection.ts +++ b/libs/application/templates/directorate-of-immigration/citizenship/src/forms/CitizenshipForm/InformationSection/ParentsSubSection.ts @@ -6,7 +6,7 @@ import { } from '@island.is/application/core' import { information } from '../../../lib/messages' import { Routes } from '../../../lib/constants' -import { ApplicantResidenceConditionViewModel } from '@island.is/clients/directorate-of-immigration' +import { ApplicantInformation } from '../../../shared' export const ParentsSubSection = buildSubSection({ id: Routes.PARENTINFORMATION, @@ -14,14 +14,28 @@ export const ParentsSubSection = buildSubSection({ condition: (_, externalData) => { const residenceConditionInfo = getValueViaPath( externalData, - 'residenceConditionInfo.data', + 'applicantInformation.data.residenceConditionInfo', {}, - ) as ApplicantResidenceConditionViewModel - const isAnyResConValid = residenceConditionInfo.isAnyResConValid + ) as ApplicantInformation - // TODO revert - // return !isAnyResConValid - return true + const hasResConMaritalStatus = + residenceConditionInfo.cohabitationISCitizen5YearDomicile || + residenceConditionInfo.cohabitationISCitizen5YrsDomicileMissingDate || + residenceConditionInfo.marriedISCitizenDomicile4Years || + residenceConditionInfo.marriedISCitizenDomicile4YrsMissingDate + + const hasOtherValidResidenceConditions = + residenceConditionInfo.domicileResidence7Years || + residenceConditionInfo.asylumSeekerOrHumanitarianResPerm5year || + residenceConditionInfo.noNationalityAnd5YearsDomicile || + residenceConditionInfo.nordicCitizenship4YearDomicile + + const eesResidenceCondition = residenceConditionInfo.eesResidenceCondition + + return ( + (!hasResConMaritalStatus && !hasOtherValidResidenceConditions) || + !eesResidenceCondition + ) //only show this screen if cohabitation is not a reason for applying and no other conditions are met }, children: [ buildMultiField({ diff --git a/libs/application/templates/directorate-of-immigration/citizenship/src/forms/Prerequisites/index.ts b/libs/application/templates/directorate-of-immigration/citizenship/src/forms/Prerequisites/index.ts index d845c241b098..48a928931113 100644 --- a/libs/application/templates/directorate-of-immigration/citizenship/src/forms/Prerequisites/index.ts +++ b/libs/application/templates/directorate-of-immigration/citizenship/src/forms/Prerequisites/index.ts @@ -22,7 +22,6 @@ import { NationalRegistryBirthplaceApi, NationalRegistryParentsApi, NationalRegistrySpouseDetailsApi, - ResidenceConditionInfoApi, ResidenceInIcelandLastChangeDateApi, UserProfileApi, UtlendingastofnunPaymentCatalogApi, @@ -95,10 +94,6 @@ export const Prerequisites: Form = buildForm({ provider: ApplicantInformationApi, title: '', }), - buildDataProviderItem({ - provider: ResidenceConditionInfoApi, - title: '', - }), buildDataProviderItem({ provider: CountriesApi, title: '', diff --git a/libs/application/templates/directorate-of-immigration/citizenship/src/lib/CitizenshipTemplate.ts b/libs/application/templates/directorate-of-immigration/citizenship/src/lib/CitizenshipTemplate.ts index 1f9bdba16bbb..936f02db4cc2 100644 --- a/libs/application/templates/directorate-of-immigration/citizenship/src/lib/CitizenshipTemplate.ts +++ b/libs/application/templates/directorate-of-immigration/citizenship/src/lib/CitizenshipTemplate.ts @@ -29,7 +29,6 @@ import { NationalRegistrySpouseDetailsApi, NationalRegistryIndividualApi, NationalRegistryBirthplaceApi, - ResidenceConditionInfoApi, ResidenceInIcelandLastChangeDateApi, CountriesApi, TravelDocumentTypesApi, @@ -92,7 +91,6 @@ const template: ApplicationTemplate< NationalRegistryParentsApi, ChildrenCustodyInformationApi, UserProfileApi, - ResidenceConditionInfoApi, ResidenceInIcelandLastChangeDateApi, CountriesApi, UtlendingastofnunPaymentCatalogApi, diff --git a/libs/application/templates/directorate-of-immigration/citizenship/src/shared/constants.ts b/libs/application/templates/directorate-of-immigration/citizenship/src/shared/constants.ts index ee647fdd0791..c1e5239406a8 100644 --- a/libs/application/templates/directorate-of-immigration/citizenship/src/shared/constants.ts +++ b/libs/application/templates/directorate-of-immigration/citizenship/src/shared/constants.ts @@ -1,5 +1,4 @@ export enum ApiActions { - getResidenceConditionInfo = 'getResidenceConditionInfo', getCurrentCountryOfResidenceList = 'getCurrentCountryOfResidenceList', getResidenceInIcelandLastChangeDate = 'getResidenceInIcelandLastChangeDate', submitApplication = 'submitApplication', diff --git a/libs/application/templates/directorate-of-immigration/citizenship/src/shared/types.ts b/libs/application/templates/directorate-of-immigration/citizenship/src/shared/types.ts index 0fbb89398b9d..0c79c389cdda 100644 --- a/libs/application/templates/directorate-of-immigration/citizenship/src/shared/types.ts +++ b/libs/application/templates/directorate-of-immigration/citizenship/src/shared/types.ts @@ -5,8 +5,16 @@ import { SelectedChildSchema, } from '../lib/dataSchema' import { z } from 'zod' +import { ApplicantResidenceConditionViewModel } from '@island.is/clients/directorate-of-immigration' export type ParentsToApplicant = z.TypeOf export type ChildrenOfApplicant = z.TypeOf export type CountryOfResidence = z.TypeOf export type CountryOfVisit = z.TypeOf + +export interface ApplicantInformation + extends ApplicantResidenceConditionViewModel { + eesNordicCitizen?: boolean + eesResidenceCondition?: boolean + spouseIsCitizen?: boolean +} diff --git a/libs/clients/directorate-of-immigration/src/clientConfig.json b/libs/clients/directorate-of-immigration/src/clientConfig.json index cb09624804b6..5b4dc35abb61 100644 --- a/libs/clients/directorate-of-immigration/src/clientConfig.json +++ b/libs/clients/directorate-of-immigration/src/clientConfig.json @@ -1,2085 +1 @@ -{ - "openapi": "3.0.1", - "info": { "title": "ST2-api", "version": "v1" }, - "paths": { - "/api/Applicant/GetCitizenshipValidity": { - "get": { - "tags": ["Applicant"], - "responses": { - "200": { - "description": "Success", - "content": { - "text/plain": { - "schema": { "$ref": "#/components/schemas/CitizenshipValidity" } - }, - "application/json": { - "schema": { "$ref": "#/components/schemas/CitizenshipValidity" } - }, - "text/json": { - "schema": { "$ref": "#/components/schemas/CitizenshipValidity" } - } - } - } - } - } - }, - "/api/Applicant/Get": { - "get": { - "tags": ["Applicant"], - "responses": { - "200": { - "description": "Success", - "content": { - "text/plain": { - "schema": { "$ref": "#/components/schemas/ApplicantViewModel" } - }, - "application/json": { - "schema": { "$ref": "#/components/schemas/ApplicantViewModel" } - }, - "text/json": { - "schema": { "$ref": "#/components/schemas/ApplicantViewModel" } - } - } - } - } - } - }, - "/api/Applicant/GetTokenSSNR": { - "get": { - "tags": ["Applicant"], - "responses": { - "200": { - "description": "Success", - "content": { - "text/plain": { "schema": { "type": "string" } }, - "application/json": { "schema": { "type": "string" } }, - "text/json": { "schema": { "type": "string" } } - } - } - } - } - }, - "/api/Applicant": { - "post": { - "tags": ["Applicant"], - "requestBody": { - "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/ApplicantNewModel" } - }, - "text/json": { - "schema": { "$ref": "#/components/schemas/ApplicantNewModel" } - }, - "application/*+json": { - "schema": { "$ref": "#/components/schemas/ApplicantNewModel" } - } - } - }, - "responses": { - "200": { - "description": "Success", - "content": { - "text/plain": { "schema": { "type": "string" } }, - "application/json": { "schema": { "type": "string" } }, - "text/json": { "schema": { "type": "string" } } - } - } - } - }, - "patch": { - "tags": ["Applicant"], - "requestBody": { - "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/ApplicantEditModel" } - }, - "text/json": { - "schema": { "$ref": "#/components/schemas/ApplicantEditModel" } - }, - "application/*+json": { - "schema": { "$ref": "#/components/schemas/ApplicantEditModel" } - } - } - }, - "responses": { - "200": { - "description": "Success", - "content": { - "text/plain": { "schema": { "type": "string" } }, - "application/json": { "schema": { "type": "string" } }, - "text/json": { "schema": { "type": "string" } } - } - } - } - } - }, - "/api/Applicant/NewChild": { - "post": { - "tags": ["Applicant"], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApplicantNewChildModel" - } - }, - "text/json": { - "schema": { - "$ref": "#/components/schemas/ApplicantNewChildModel" - } - }, - "application/*+json": { - "schema": { - "$ref": "#/components/schemas/ApplicantNewChildModel" - } - } - } - }, - "responses": { - "200": { - "description": "Success", - "content": { - "text/plain": { "schema": { "type": "string" } }, - "application/json": { "schema": { "type": "string" } }, - "text/json": { "schema": { "type": "string" } } - } - } - } - } - }, - "/api/ApplicantResidenceCondition/Get": { - "get": { - "tags": ["ApplicantResidenceCondition"], - "responses": { - "200": { - "description": "Success", - "content": { - "text/plain": { - "schema": { - "$ref": "#/components/schemas/ApplicantResidenceConditionViewModel" - } - }, - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApplicantResidenceConditionViewModel" - } - }, - "text/json": { - "schema": { - "$ref": "#/components/schemas/ApplicantResidenceConditionViewModel" - } - } - } - } - } - } - }, - "/api/Application/Citizenship": { - "post": { - "tags": ["Application"], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApplicationCitizienshipNewModel" - } - }, - "text/json": { - "schema": { - "$ref": "#/components/schemas/ApplicationCitizienshipNewModel" - } - }, - "application/*+json": { - "schema": { - "$ref": "#/components/schemas/ApplicationCitizienshipNewModel" - } - } - } - }, - "responses": { - "200": { - "description": "Success", - "content": { - "text/plain": { "schema": { "type": "string" } }, - "application/json": { "schema": { "type": "string" } }, - "text/json": { "schema": { "type": "string" } } - } - } - } - } - }, - "/api/Application/Citizenship/{ssnr}": { - "post": { - "tags": ["Application"], - "parameters": [ - { - "name": "ssnr", - "in": "path", - "required": true, - "style": "simple", - "schema": { "type": "string" } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApplicationCitizienshipNewModel" - } - }, - "text/json": { - "schema": { - "$ref": "#/components/schemas/ApplicationCitizienshipNewModel" - } - }, - "application/*+json": { - "schema": { - "$ref": "#/components/schemas/ApplicationCitizienshipNewModel" - } - } - } - }, - "responses": { - "200": { - "description": "Success", - "content": { - "text/plain": { "schema": { "type": "string" } }, - "application/json": { "schema": { "type": "string" } }, - "text/json": { "schema": { "type": "string" } } - } - } - } - } - }, - "/api/Application/CitizenshipComplete": { - "post": { - "tags": ["Application"], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApplicationCitizenshipCompleteNewModel" - } - }, - "text/json": { - "schema": { - "$ref": "#/components/schemas/ApplicationCitizenshipCompleteNewModel" - } - }, - "application/*+json": { - "schema": { - "$ref": "#/components/schemas/ApplicationCitizenshipCompleteNewModel" - } - } - } - }, - "responses": { - "200": { - "description": "Success", - "content": { - "text/plain": { "schema": { "type": "string" } }, - "application/json": { "schema": { "type": "string" } }, - "text/json": { "schema": { "type": "string" } } - } - } - } - } - }, - "/api/Application/CitizenshipChildComplete": { - "post": { - "tags": ["Application"], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApplicationCitizenshipChildCompleteNewModel" - } - }, - "text/json": { - "schema": { - "$ref": "#/components/schemas/ApplicationCitizenshipChildCompleteNewModel" - } - }, - "application/*+json": { - "schema": { - "$ref": "#/components/schemas/ApplicationCitizenshipChildCompleteNewModel" - } - } - } - }, - "responses": { - "200": { - "description": "Success", - "content": { - "text/plain": { "schema": { "type": "string" } }, - "application/json": { "schema": { "type": "string" } }, - "text/json": { "schema": { "type": "string" } } - } - } - } - } - }, - "/api/Application/{applicationId}": { - "get": { - "tags": ["Application"], - "parameters": [ - { - "name": "applicationId", - "in": "path", - "required": true, - "style": "simple", - "schema": { "type": "string" } - } - ], - "responses": { - "200": { - "description": "Success", - "content": { - "text/plain": { - "schema": { - "$ref": "#/components/schemas/ApplicationViewCompleteModel" - } - }, - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApplicationViewCompleteModel" - } - }, - "text/json": { - "schema": { - "$ref": "#/components/schemas/ApplicationViewCompleteModel" - } - } - } - } - } - } - }, - "/api/Application/GetAll/{ssnr}": { - "get": { - "tags": ["Application"], - "parameters": [ - { - "name": "ssnr", - "in": "path", - "required": true, - "style": "simple", - "schema": { "type": "string" } - } - ], - "responses": { - "200": { - "description": "Success", - "content": { - "text/plain": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ApplicationViewModel" - } - } - }, - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ApplicationViewModel" - } - } - }, - "text/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ApplicationViewModel" - } - } - } - } - } - } - } - }, - "/api/Application/Confirm/{applicationId}": { - "patch": { - "tags": ["Application"], - "parameters": [ - { - "name": "applicationId", - "in": "path", - "required": true, - "style": "simple", - "schema": { "type": "string" } - } - ], - "responses": { - "200": { - "description": "Success", - "content": { - "text/plain": { "schema": { "type": "boolean" } }, - "application/json": { "schema": { "type": "boolean" } }, - "text/json": { "schema": { "type": "boolean" } } - } - } - } - } - }, - "/api/Application": { - "post": { - "tags": ["Application"], - "requestBody": { - "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/ApplicationNewModel" } - }, - "text/json": { - "schema": { "$ref": "#/components/schemas/ApplicationNewModel" } - }, - "application/*+json": { - "schema": { "$ref": "#/components/schemas/ApplicationNewModel" } - } - } - }, - "responses": { - "200": { - "description": "Success", - "content": { - "text/plain": { "schema": { "type": "string" } }, - "application/json": { "schema": { "type": "string" } }, - "text/json": { "schema": { "type": "string" } } - } - } - } - } - }, - "/api/Application/GetAll": { - "get": { - "tags": ["Application"], - "responses": { - "200": { - "description": "Success", - "content": { - "text/plain": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ApplicationViewModel" - } - } - }, - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ApplicationViewModel" - } - } - }, - "text/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ApplicationViewModel" - } - } - } - } - } - } - } - }, - "/api/ApplicationAttachment/{applicationId}": { - "post": { - "tags": ["ApplicationAttachment"], - "summary": "Allowable mime types: image/jpeg, application/pdf, image/jpg", - "parameters": [ - { - "name": "applicationId", - "in": "path", - "required": true, - "style": "simple", - "schema": { "type": "string" } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApplicationAttachmentNewModel" - } - }, - "text/json": { - "schema": { - "$ref": "#/components/schemas/ApplicationAttachmentNewModel" - } - }, - "application/*+json": { - "schema": { - "$ref": "#/components/schemas/ApplicationAttachmentNewModel" - } - } - } - }, - "responses": { - "200": { - "description": "Success", - "content": { - "text/plain": { "schema": { "type": "string" } }, - "application/json": { "schema": { "type": "string" } }, - "text/json": { "schema": { "type": "string" } } - } - }, - "403": { - "description": "Forbidden", - "content": { - "text/plain": { - "schema": { "$ref": "#/components/schemas/ProblemDetails" } - }, - "application/json": { - "schema": { "$ref": "#/components/schemas/ProblemDetails" } - }, - "text/json": { - "schema": { "$ref": "#/components/schemas/ProblemDetails" } - } - } - } - } - } - }, - "/api/ApplicationAttachment/NewItems/{applicationId}": { - "post": { - "tags": ["ApplicationAttachment"], - "summary": "Allowable mime types: image/jpeg, application/pdf, image/jpg", - "parameters": [ - { - "name": "applicationId", - "in": "path", - "required": true, - "style": "simple", - "schema": { "type": "string" } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApplicationAttachmentArrayNewModel" - } - }, - "text/json": { - "schema": { - "$ref": "#/components/schemas/ApplicationAttachmentArrayNewModel" - } - }, - "application/*+json": { - "schema": { - "$ref": "#/components/schemas/ApplicationAttachmentArrayNewModel" - } - } - } - }, - "responses": { - "200": { - "description": "Success", - "content": { - "text/plain": { "schema": { "type": "string" } }, - "application/json": { "schema": { "type": "string" } }, - "text/json": { "schema": { "type": "string" } } - } - }, - "403": { - "description": "Forbidden", - "content": { - "text/plain": { - "schema": { "$ref": "#/components/schemas/ProblemDetails" } - }, - "application/json": { - "schema": { "$ref": "#/components/schemas/ProblemDetails" } - }, - "text/json": { - "schema": { "$ref": "#/components/schemas/ProblemDetails" } - } - } - } - } - } - }, - "/api/CountryOfResidence": { - "post": { - "tags": ["CountryOfResidence"], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CountryOfResidenceNewModel" - } - }, - "text/json": { - "schema": { - "$ref": "#/components/schemas/CountryOfResidenceNewModel" - } - }, - "application/*+json": { - "schema": { - "$ref": "#/components/schemas/CountryOfResidenceNewModel" - } - } - } - }, - "responses": { - "200": { - "description": "Success", - "content": { - "text/plain": { "schema": { "type": "string" } }, - "application/json": { "schema": { "type": "string" } }, - "text/json": { "schema": { "type": "string" } } - } - } - } - } - }, - "/api/CountryOfResidence/GetAll": { - "get": { - "tags": ["CountryOfResidence"], - "responses": { - "200": { - "description": "Success", - "content": { - "text/plain": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/CountryOfResidenceViewModel" - } - } - }, - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/CountryOfResidenceViewModel" - } - } - }, - "text/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/CountryOfResidenceViewModel" - } - } - } - } - } - } - } - }, - "/api/CriminalRecord": { - "post": { - "tags": ["CriminalRecord"], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CriminalRecordNewModel" - } - }, - "text/json": { - "schema": { - "$ref": "#/components/schemas/CriminalRecordNewModel" - } - }, - "application/*+json": { - "schema": { - "$ref": "#/components/schemas/CriminalRecordNewModel" - } - } - } - }, - "responses": { - "200": { - "description": "Success", - "content": { - "text/plain": { "schema": { "type": "string" } }, - "application/json": { "schema": { "type": "string" } }, - "text/json": { "schema": { "type": "string" } } - } - } - } - } - }, - "/api/CriminalRecord/GetAll": { - "get": { - "tags": ["CriminalRecord"], - "responses": { - "200": { - "description": "Success", - "content": { - "text/plain": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/CriminalRecordViewModel" - } - } - }, - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/CriminalRecordViewModel" - } - } - }, - "text/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/CriminalRecordViewModel" - } - } - } - } - } - } - } - }, - "/api/Employer/GetAll/{applicationId}": { - "get": { - "tags": ["Employer"], - "parameters": [ - { - "name": "applicationId", - "in": "path", - "required": true, - "style": "simple", - "schema": { "type": "string" } - } - ], - "responses": { - "200": { - "description": "Success", - "content": { - "text/plain": { - "schema": { - "type": "array", - "items": { "$ref": "#/components/schemas/EmployerViewModel" } - } - }, - "application/json": { - "schema": { - "type": "array", - "items": { "$ref": "#/components/schemas/EmployerViewModel" } - } - }, - "text/json": { - "schema": { - "type": "array", - "items": { "$ref": "#/components/schemas/EmployerViewModel" } - } - } - } - } - } - } - }, - "/api/Employer/{applicationId}": { - "post": { - "tags": ["Employer"], - "parameters": [ - { - "name": "applicationId", - "in": "path", - "required": true, - "style": "simple", - "schema": { "type": "string" } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/EmployerNewModel" } - }, - "text/json": { - "schema": { "$ref": "#/components/schemas/EmployerNewModel" } - }, - "application/*+json": { - "schema": { "$ref": "#/components/schemas/EmployerNewModel" } - } - } - }, - "responses": { - "200": { - "description": "Success", - "content": { - "text/plain": { "schema": { "type": "string" } }, - "application/json": { "schema": { "type": "string" } }, - "text/json": { "schema": { "type": "string" } } - } - } - } - } - }, - "/api/OptionSet/{lookupType}": { - "get": { - "tags": ["OptionSet"], - "parameters": [ - { - "name": "lookupType", - "in": "path", - "required": true, - "style": "simple", - "schema": { "$ref": "#/components/schemas/LookupType" } - } - ], - "responses": { - "200": { - "description": "Success", - "content": { - "text/plain": { - "schema": { - "type": "array", - "items": { "$ref": "#/components/schemas/OptionSetItem" } - } - }, - "application/json": { - "schema": { - "type": "array", - "items": { "$ref": "#/components/schemas/OptionSetItem" } - } - }, - "text/json": { - "schema": { - "type": "array", - "items": { "$ref": "#/components/schemas/OptionSetItem" } - } - } - } - } - } - } - }, - "/api/OptionSet/GetSingle/{lookupType}/{id}": { - "get": { - "tags": ["OptionSet"], - "parameters": [ - { - "name": "lookupType", - "in": "path", - "required": true, - "style": "simple", - "schema": { "$ref": "#/components/schemas/LookupType" } - }, - { - "name": "id", - "in": "path", - "required": true, - "style": "simple", - "schema": { "type": "string" } - } - ], - "responses": { - "200": { - "description": "Success", - "content": { - "text/plain": { - "schema": { "$ref": "#/components/schemas/OptionSetItem" } - }, - "application/json": { - "schema": { "$ref": "#/components/schemas/OptionSetItem" } - }, - "text/json": { - "schema": { "$ref": "#/components/schemas/OptionSetItem" } - } - } - } - } - } - }, - "/api/ResidenceAbroad/GetAll": { - "get": { - "tags": ["ResidenceAbroad"], - "responses": { - "200": { - "description": "Success", - "content": { - "text/plain": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ResidenceAbroadViewModel" - } - } - }, - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ResidenceAbroadViewModel" - } - } - }, - "text/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ResidenceAbroadViewModel" - } - } - } - } - } - } - } - }, - "/api/ResidenceAbroad/{applicationId}": { - "post": { - "tags": ["ResidenceAbroad"], - "parameters": [ - { - "name": "applicationId", - "in": "path", - "required": true, - "style": "simple", - "schema": { "type": "string" } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ResidenceAbroadNewModel" - } - }, - "text/json": { - "schema": { - "$ref": "#/components/schemas/ResidenceAbroadNewModel" - } - }, - "application/*+json": { - "schema": { - "$ref": "#/components/schemas/ResidenceAbroadNewModel" - } - } - } - }, - "responses": { - "200": { - "description": "Success", - "content": { - "text/plain": { "schema": { "type": "string" } }, - "application/json": { "schema": { "type": "string" } }, - "text/json": { "schema": { "type": "string" } } - } - } - } - } - }, - "/api/ResidenceAbroad/GetAll/{applicationId}": { - "get": { - "tags": ["ResidenceAbroad"], - "parameters": [ - { - "name": "applicationId", - "in": "path", - "required": true, - "style": "simple", - "schema": { "type": "string" } - } - ], - "responses": { - "200": { - "description": "Success", - "content": { - "text/plain": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ResidenceAbroadViewModel" - } - } - }, - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ResidenceAbroadViewModel" - } - } - }, - "text/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ResidenceAbroadViewModel" - } - } - } - } - } - } - } - }, - "/api/ResidencePermitClassification": { - "get": { - "tags": ["ResidencePermitClassification"], - "responses": { - "200": { - "description": "Success", - "content": { - "text/plain": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ClassificationViewModel" - } - } - }, - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ClassificationViewModel" - } - } - }, - "text/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ClassificationViewModel" - } - } - } - } - } - } - } - }, - "/api/ResidencePermitClassification/ClassificationType/{classificationId}": { - "get": { - "tags": ["ResidencePermitClassification"], - "parameters": [ - { - "name": "classificationId", - "in": "path", - "required": true, - "style": "simple", - "schema": { "type": "string" } - } - ], - "responses": { - "200": { - "description": "Success", - "content": { - "text/plain": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ClassificationTypeViewModel" - } - } - }, - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ClassificationTypeViewModel" - } - } - }, - "text/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ClassificationTypeViewModel" - } - } - } - } - } - } - } - }, - "/api/ResidencePermitClassification/ClassificationDetail/{classificationTypeId}": { - "get": { - "tags": ["ResidencePermitClassification"], - "parameters": [ - { - "name": "classificationTypeId", - "in": "path", - "required": true, - "style": "simple", - "schema": { "type": "string" } - } - ], - "responses": { - "200": { - "description": "Success", - "content": { - "text/plain": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ClassificationDetailViewModel" - } - } - }, - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ClassificationDetailViewModel" - } - } - }, - "text/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ClassificationDetailViewModel" - } - } - } - } - } - } - } - }, - "/api/StaticData/GetAll": { - "get": { - "tags": ["StaticData"], - "responses": { - "200": { - "description": "Success", - "content": { - "text/plain": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/StaticDataViewModel" - } - } - }, - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/StaticDataViewModel" - } - } - }, - "text/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/StaticDataViewModel" - } - } - } - } - } - } - } - }, - "/api/StaticData/{staticDataId}": { - "get": { - "tags": ["StaticData"], - "parameters": [ - { - "name": "staticDataId", - "in": "path", - "required": true, - "style": "simple", - "schema": { "type": "string" } - } - ], - "responses": { - "200": { - "description": "Success", - "content": { - "text/plain": { - "schema": { - "$ref": "#/components/schemas/ApplicationViewModel" - } - }, - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApplicationViewModel" - } - }, - "text/json": { - "schema": { - "$ref": "#/components/schemas/ApplicationViewModel" - } - } - } - } - } - } - }, - "/api/Study": { - "post": { - "tags": ["Study"], - "requestBody": { - "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/StudyNewModel" } - }, - "text/json": { - "schema": { "$ref": "#/components/schemas/StudyNewModel" } - }, - "application/*+json": { - "schema": { "$ref": "#/components/schemas/StudyNewModel" } - } - } - }, - "responses": { - "200": { - "description": "Success", - "content": { - "text/plain": { "schema": { "type": "string" } }, - "application/json": { "schema": { "type": "string" } }, - "text/json": { "schema": { "type": "string" } } - } - } - } - } - }, - "/api/Study/GetAll": { - "get": { - "tags": ["Study"], - "responses": { - "200": { - "description": "Success", - "content": { - "text/plain": { - "schema": { - "type": "array", - "items": { "$ref": "#/components/schemas/StudyViewModel" } - } - }, - "application/json": { - "schema": { - "type": "array", - "items": { "$ref": "#/components/schemas/StudyViewModel" } - } - }, - "text/json": { - "schema": { - "type": "array", - "items": { "$ref": "#/components/schemas/StudyViewModel" } - } - } - } - } - } - } - }, - "/api/TravelDocument/GetAll": { - "get": { - "tags": ["TravelDocument"], - "responses": { - "200": { - "description": "Success", - "content": { - "text/plain": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/TravelDocumentViewModel" - } - } - }, - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/TravelDocumentViewModel" - } - } - }, - "text/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/TravelDocumentViewModel" - } - } - } - } - } - } - } - }, - "/api/TravelDocument/{applicationId}": { - "post": { - "tags": ["TravelDocument"], - "parameters": [ - { - "name": "applicationId", - "in": "path", - "required": true, - "style": "simple", - "schema": { "type": "string" } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/TravelDocumentNewModel" - } - }, - "text/json": { - "schema": { - "$ref": "#/components/schemas/TravelDocumentNewModel" - } - }, - "application/*+json": { - "schema": { - "$ref": "#/components/schemas/TravelDocumentNewModel" - } - } - } - }, - "responses": { - "200": { - "description": "Success", - "content": { - "text/plain": { "schema": { "type": "string" } }, - "application/json": { "schema": { "type": "string" } }, - "text/json": { "schema": { "type": "string" } } - } - } - } - } - }, - "/api/TravelDocument/GetAll/{applicationId}": { - "get": { - "tags": ["TravelDocument"], - "parameters": [ - { - "name": "applicationId", - "in": "path", - "required": true, - "style": "simple", - "schema": { "type": "string" } - } - ], - "responses": { - "200": { - "description": "Success", - "content": { - "text/plain": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/TravelDocumentViewModel" - } - } - }, - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/TravelDocumentViewModel" - } - } - }, - "text/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/TravelDocumentViewModel" - } - } - } - } - } - } - } - } - }, - "components": { - "schemas": { - "ApplicantCompleteNewModel": { - "type": "object", - "properties": { - "icelandicIDNO": { "type": "string", "nullable": true }, - "icelandicIDNOWithHyphen": { - "type": "string", - "nullable": true, - "readOnly": true - }, - "givenName": { "type": "string", "nullable": true }, - "surName": { "type": "string", "nullable": true }, - "emailAddress": { "type": "string", "nullable": true }, - "telephone": { "type": "string", "nullable": true }, - "addressCity": { "type": "string", "nullable": true }, - "countryOfResidence": { - "type": "array", - "items": { - "$ref": "#/components/schemas/CountryOfResidenceNewModel" - }, - "nullable": true - } - }, - "additionalProperties": false - }, - "ApplicantEditModel": { - "type": "object", - "properties": { - "emailAddress": { "type": "string", "nullable": true }, - "telephone": { "type": "string", "nullable": true } - }, - "additionalProperties": false - }, - "ApplicantNewChildModel": { - "type": "object", - "properties": { - "icelandicIDNO": { "type": "string", "nullable": true }, - "icelandicIDNOWithHyphen": { - "type": "string", - "nullable": true, - "readOnly": true - }, - "givenName": { "type": "string", "nullable": true }, - "surName": { "type": "string", "nullable": true } - }, - "additionalProperties": false - }, - "ApplicantNewModel": { - "type": "object", - "properties": { - "icelandicIDNO": { "type": "string", "nullable": true }, - "icelandicIDNOWithHyphen": { - "type": "string", - "nullable": true, - "readOnly": true - }, - "givenName": { "type": "string", "nullable": true }, - "surName": { "type": "string", "nullable": true }, - "emailAddress": { "type": "string", "nullable": true }, - "telephone": { "type": "string", "nullable": true }, - "addressCity": { "type": "string", "nullable": true } - }, - "additionalProperties": false - }, - "ApplicantResidenceConditionViewModel": { - "type": "object", - "properties": { - "isAnyResConValid": { "type": "boolean" }, - "isOnlyMarriedOrCohabitationWithISCitizen": { "type": "boolean" } - }, - "additionalProperties": false - }, - "ApplicantViewModel": { - "type": "object", - "properties": { - "name": { "type": "string", "nullable": true }, - "applicantNumber": { "type": "string", "nullable": true }, - "dateOfBirth": { - "type": "string", - "format": "date-time", - "nullable": true - }, - "nationalityId": { - "type": "integer", - "format": "int32", - "nullable": true - }, - "emailAddress": { "type": "string", "nullable": true }, - "addressName": { "type": "string", "nullable": true }, - "addressCity": { "type": "string", "nullable": true }, - "dateOfDomicileRegistration": { - "type": "string", - "format": "date-time", - "nullable": true - }, - "residenceConditionId": { - "type": "integer", - "format": "int32", - "nullable": true - }, - "residenceConditionName": { "type": "string", "nullable": true }, - "maritalStatus": { - "type": "integer", - "format": "int32", - "nullable": true - }, - "maritalStatusName": { "type": "string", "nullable": true }, - "icelandicIDNO": { "type": "string", "nullable": true }, - "icelandicIDNOWithHyphen": { "type": "string", "nullable": true }, - "telephone": { "type": "string", "nullable": true }, - "applicantId": { "type": "string", "nullable": true }, - "children": { - "type": "array", - "items": { "$ref": "#/components/schemas/ApplicantViewModel" }, - "nullable": true - }, - "applications": { - "type": "array", - "items": { "$ref": "#/components/schemas/ApplicationViewModel" }, - "nullable": true - } - }, - "additionalProperties": false - }, - "ApplicantViewSimpleModel": { - "type": "object", - "properties": { - "icelandicIDNO": { "type": "string", "nullable": true }, - "icelandicIDNOWithHyphen": { - "type": "string", - "nullable": true, - "readOnly": true - }, - "emailAddress": { "type": "string", "nullable": true }, - "telephone": { "type": "string", "nullable": true }, - "addressCity": { "type": "string", "nullable": true }, - "applicantId": { "type": "string", "nullable": true }, - "givenName": { "type": "string", "nullable": true }, - "surName": { "type": "string", "nullable": true }, - "countryOfResidence": { - "type": "array", - "items": { - "$ref": "#/components/schemas/CountryOfResidenceViewModel" - }, - "nullable": true - } - }, - "additionalProperties": false - }, - "ApplicationAttachmentArrayNewModel": { - "type": "object", - "properties": { - "applicationAttachments": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ApplicationAttachmentNewModel" - }, - "nullable": true - } - }, - "additionalProperties": false - }, - "ApplicationAttachmentNewModel": { - "type": "object", - "properties": { - "attachmentType": { "$ref": "#/components/schemas/AttachmentType" }, - "fileName": { "type": "string", "nullable": true }, - "base64Contents": { "type": "string", "nullable": true }, - "countryCode": { "type": "string", "nullable": true } - }, - "additionalProperties": false - }, - "ApplicationCitizenshipChildCompleteNewModel": { - "type": "object", - "properties": { - "parentApplicationId": { "type": "string", "nullable": true }, - "applicant": { - "$ref": "#/components/schemas/ApplicantNewChildModel" - }, - "travelDocuments": { - "type": "array", - "items": { "$ref": "#/components/schemas/TravelDocumentNewModel" }, - "nullable": true - }, - "staticData": { - "$ref": "#/components/schemas/StaticDataChildNewModel" - } - }, - "additionalProperties": false - }, - "ApplicationCitizenshipCompleteNewModel": { - "type": "object", - "properties": { - "applicant": { - "$ref": "#/components/schemas/ApplicantCompleteNewModel" - }, - "residenceAbroads": { - "type": "array", - "items": { "$ref": "#/components/schemas/ResidenceAbroadNewModel" }, - "nullable": true - }, - "travelDocuments": { - "type": "array", - "items": { "$ref": "#/components/schemas/TravelDocumentNewModel" }, - "nullable": true - }, - "staticData": { - "$ref": "#/components/schemas/StaticDataApplicantNewModel" - } - }, - "additionalProperties": false - }, - "ApplicationCitizienshipNewModel": { - "type": "object", - "properties": { - "staticDataId": { "type": "string", "nullable": true } - }, - "additionalProperties": false - }, - "ApplicationNewModel": { - "type": "object", - "properties": { - "staticDataId": { "type": "string", "nullable": true }, - "caseTypeId": { "type": "integer", "format": "int32" }, - "classificationId": { "type": "string", "nullable": true }, - "classificationTypeId": { "type": "string", "nullable": true }, - "classificationDetailId": { "type": "string", "nullable": true }, - "parentApplicationId": { "type": "string", "nullable": true } - }, - "additionalProperties": false - }, - "ApplicationViewCompleteModel": { - "type": "object", - "properties": { - "caseTypeId": { - "type": "integer", - "format": "int32", - "nullable": true - }, - "caseTypeName": { "type": "string", "nullable": true }, - "classificationId": { "type": "string", "nullable": true }, - "classificationName": { "type": "string", "nullable": true }, - "classificationTypeId": { "type": "string", "nullable": true }, - "classificationTypeName": { "type": "string", "nullable": true }, - "classificationDetailId": { "type": "string", "nullable": true }, - "classificationDetailName": { "type": "string", "nullable": true }, - "staticDataId": { "type": "string", "nullable": true }, - "applicationId": { "type": "string", "nullable": true }, - "parentApplicationId": { "type": "string", "nullable": true }, - "createdOn": { "type": "string", "format": "date-time" }, - "permitValidTo": { - "type": "string", - "format": "date-time", - "nullable": true - }, - "ticketNumber": { "type": "string", "nullable": true }, - "applicant": { - "$ref": "#/components/schemas/ApplicantViewSimpleModel" - }, - "staticData": { "$ref": "#/components/schemas/StaticDataViewModel" }, - "residenceAbroads": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ResidenceAbroadViewModel" - }, - "nullable": true - }, - "travelDocuments": { - "type": "array", - "items": { "$ref": "#/components/schemas/TravelDocumentViewModel" }, - "nullable": true - } - }, - "additionalProperties": false - }, - "ApplicationViewModel": { - "type": "object", - "properties": { - "caseTypeId": { - "type": "integer", - "format": "int32", - "nullable": true - }, - "caseTypeName": { "type": "string", "nullable": true }, - "classificationId": { "type": "string", "nullable": true }, - "classificationName": { "type": "string", "nullable": true }, - "classificationTypeId": { "type": "string", "nullable": true }, - "classificationTypeName": { "type": "string", "nullable": true }, - "classificationDetailId": { "type": "string", "nullable": true }, - "classificationDetailName": { "type": "string", "nullable": true }, - "staticDataId": { "type": "string", "nullable": true }, - "applicationId": { "type": "string", "nullable": true }, - "parentApplicationId": { "type": "string", "nullable": true }, - "createdOn": { "type": "string", "format": "date-time" }, - "permitValidTo": { - "type": "string", - "format": "date-time", - "nullable": true - }, - "ticketNumber": { "type": "string", "nullable": true } - }, - "additionalProperties": false - }, - "AttachmentType": { - "enum": [ - "Passport", - "PassportOtherAttachment", - "BirtCertificate", - "ProofOfFinancialCapabilityApplicant", - "ProofOfFinancialCapabilityMunicipality", - "DomicileHistory", - "ConfirmationIcelandicLanguage", - "WrittenConfirmationChild", - "ConfirmationOtherParent", - "CustodyDocuments", - "CriminalRecord" - ], - "type": "string" - }, - "CitizenshipValidity": { - "type": "object", - "properties": { - "applicantExists": { "type": "boolean" }, - "isEESCitizen": { "type": "boolean" } - }, - "additionalProperties": false - }, - "ClassificationDetailViewModel": { - "type": "object", - "properties": { - "name": { "type": "string", "nullable": true }, - "classificationDetailId": { "type": "string", "nullable": true } - }, - "additionalProperties": false - }, - "ClassificationTypeViewModel": { - "type": "object", - "properties": { - "name": { "type": "string", "nullable": true }, - "classificationTypeId": { "type": "string", "nullable": true } - }, - "additionalProperties": false - }, - "ClassificationViewModel": { - "type": "object", - "properties": { - "name": { "type": "string", "nullable": true }, - "classificationId": { "type": "string", "nullable": true } - }, - "additionalProperties": false - }, - "CountryOfResidenceNewModel": { - "type": "object", - "properties": { - "countryId": { "type": "integer", "format": "int32" }, - "dateFrom": { "type": "string", "format": "date-time" }, - "dateTo": { "type": "string", "format": "date-time" } - }, - "additionalProperties": false - }, - "CountryOfResidenceViewModel": { - "type": "object", - "properties": { - "countryId": { "type": "integer", "format": "int32" }, - "countryName": { "type": "string", "nullable": true }, - "countryOfResidenceId": { "type": "string", "nullable": true }, - "dateFrom": { - "type": "string", - "format": "date-time", - "nullable": true - }, - "dateTo": { - "type": "string", - "format": "date-time", - "nullable": true - } - }, - "additionalProperties": false - }, - "CriminalRecordNewModel": { - "type": "object", - "properties": { - "countryId": { "type": "integer", "format": "int32" }, - "offence": { "type": "string", "nullable": true }, - "punishment": { "type": "string", "nullable": true }, - "when": { "type": "string", "format": "date-time", "nullable": true } - }, - "additionalProperties": false - }, - "CriminalRecordViewModel": { - "type": "object", - "properties": { - "accountid": { "type": "string", "nullable": true }, - "criminalRecordId": { "type": "string", "nullable": true }, - "countryId": { "type": "integer", "format": "int32" }, - "countryName": { "type": "string", "nullable": true }, - "offence": { "type": "string", "nullable": true }, - "punishment": { "type": "string", "nullable": true }, - "when": { "type": "string", "nullable": true } - }, - "additionalProperties": false - }, - "EmployerNewModel": { - "type": "object", - "properties": { - "companyName": { "type": "string", "nullable": true }, - "countryId": { - "type": "integer", - "format": "int32", - "nullable": true - }, - "dateFrom": { - "type": "string", - "format": "date-time", - "nullable": true - }, - "dateTo": { - "type": "string", - "format": "date-time", - "nullable": true - }, - "icelandicIDNO": { "type": "string", "nullable": true } - }, - "additionalProperties": false - }, - "EmployerViewModel": { - "type": "object", - "properties": { - "companyName": { "type": "string", "nullable": true }, - "countryId": { - "type": "integer", - "format": "int32", - "nullable": true - }, - "dateFrom": { - "type": "string", - "format": "date-time", - "nullable": true - }, - "dateTo": { - "type": "string", - "format": "date-time", - "nullable": true - }, - "icelandicIDNO": { "type": "string", "nullable": true }, - "employerid": { "type": "string", "nullable": true } - }, - "additionalProperties": false - }, - "LookupType": { - "enum": [ - "GenderTypes", - "Languages", - "Nationalities", - "MaritalStatuses", - "ResidenceConditions", - "CaseType", - "TravelDocumentTypes", - "Countries", - "FamilyConnections" - ], - "type": "string" - }, - "OptionSetItem": { - "type": "object", - "properties": { - "id": { "type": "integer", "format": "int32" }, - "name": { "type": "string", "nullable": true } - }, - "additionalProperties": false - }, - "ProblemDetails": { - "type": "object", - "properties": { - "type": { "type": "string", "nullable": true }, - "title": { "type": "string", "nullable": true }, - "status": { "type": "integer", "format": "int32", "nullable": true }, - "detail": { "type": "string", "nullable": true }, - "instance": { "type": "string", "nullable": true } - }, - "additionalProperties": false - }, - "ResidenceAbroadNewModel": { - "type": "object", - "properties": { - "countryId": { "type": "integer", "format": "int32" }, - "dateFrom": { "type": "string", "format": "date-time" }, - "dateTo": { "type": "string", "format": "date-time" }, - "purposeOfStay": { "type": "string", "nullable": true } - }, - "additionalProperties": false - }, - "ResidenceAbroadViewModel": { - "type": "object", - "properties": { - "countryId": { "type": "integer", "format": "int32" }, - "countryName": { "type": "string", "nullable": true }, - "dateFrom": { "type": "string", "format": "date-time" }, - "dateTo": { "type": "string", "format": "date-time" }, - "purposeOfStay": { "type": "string", "nullable": true }, - "residenceAbroadId": { "type": "string", "nullable": true }, - "applicationId": { "type": "string", "nullable": true }, - "applicantId": { "type": "string", "nullable": true } - }, - "additionalProperties": false - }, - "StaticDataApplicantNewModel": { - "type": "object", - "properties": { - "address": { "type": "string", "nullable": true }, - "municipality": { "type": "string", "nullable": true }, - "nationality": { "type": "string", "nullable": true }, - "dateOfDomicileRegistration": { "type": "string", "nullable": true }, - "countryOfBirth": { "type": "string", "nullable": true }, - "maritalStatus": { "type": "string", "nullable": true }, - "dateOfMarriage": { "type": "string", "nullable": true }, - "spouseSSN": { "type": "string", "nullable": true }, - "spouseName": { "type": "string", "nullable": true }, - "spouseCountryOfBirth": { "type": "string", "nullable": true }, - "spouseCitizenship": { "type": "string", "nullable": true }, - "spouseAddress": { "type": "string", "nullable": true }, - "spouseAddressMismatchReason": { "type": "string", "nullable": true }, - "parent1SSN": { "type": "string", "nullable": true }, - "parent1Name": { "type": "string", "nullable": true }, - "postalCode": { "type": "string", "nullable": true }, - "parent2SSN": { "type": "string", "nullable": true }, - "parent2Name": { "type": "string", "nullable": true }, - "applicantIsChildOfIcelandicCitizen": { - "type": "boolean", - "nullable": true - }, - "applicantIsFormerIcelandicCitizen": { - "type": "boolean", - "nullable": true - } - }, - "additionalProperties": false - }, - "StaticDataChildNewModel": { - "type": "object", - "properties": { - "parent2SSN": { "type": "string", "nullable": true }, - "parent2Name": { "type": "string", "nullable": true }, - "parent2BirthDate": { "type": "string", "nullable": true } - }, - "additionalProperties": false - }, - "StaticDataViewModel": { - "required": ["name", "ssn"], - "type": "object", - "properties": { - "address": { "type": "string", "nullable": true }, - "municipality": { "type": "string", "nullable": true }, - "nationality": { "type": "string", "nullable": true }, - "dateOfDomicileRegistration": { "type": "string", "nullable": true }, - "countryOfBirth": { "type": "string", "nullable": true }, - "maritalStatus": { "type": "string", "nullable": true }, - "dateOfMarriage": { "type": "string", "nullable": true }, - "spouseSSN": { "type": "string", "nullable": true }, - "spouseName": { "type": "string", "nullable": true }, - "spouseCountryOfBirth": { "type": "string", "nullable": true }, - "spouseCitizenship": { "type": "string", "nullable": true }, - "spouseAddress": { "type": "string", "nullable": true }, - "spouseAddressMismatchReason": { "type": "string", "nullable": true }, - "parent1SSN": { "type": "string", "nullable": true }, - "parent1Name": { "type": "string", "nullable": true }, - "postalCode": { "type": "string", "nullable": true }, - "parent2SSN": { "type": "string", "nullable": true }, - "parent2Name": { "type": "string", "nullable": true }, - "applicantIsChildOfIcelandicCitizen": { - "type": "boolean", - "nullable": true - }, - "applicantIsFormerIcelandicCitizen": { - "type": "boolean", - "nullable": true - }, - "parent2BirthDate": { "type": "string", "nullable": true }, - "staticDataId": { "type": "string", "nullable": true }, - "ssn": { "minLength": 1, "type": "string" }, - "name": { "minLength": 1, "type": "string" }, - "phone": { "type": "string", "nullable": true } - }, - "additionalProperties": false - }, - "StudyNewModel": { - "type": "object", - "properties": { - "icelandicIDNO": { "type": "string", "nullable": true }, - "school": { "type": "string", "nullable": true } - }, - "additionalProperties": false - }, - "StudyViewModel": { - "type": "object", - "properties": { - "studyId": { "type": "string", "nullable": true }, - "icelandicIDNO": { "type": "string", "nullable": true }, - "school": { "type": "string", "nullable": true }, - "createdOn": { "type": "string", "format": "date-time" } - }, - "additionalProperties": false - }, - "TravelDocumentIncidentViewModel": { - "type": "object", - "properties": { - "applicationId": { "type": "string", "nullable": true } - }, - "additionalProperties": false - }, - "TravelDocumentNewModel": { - "type": "object", - "properties": { - "dateOfExpiry": { - "type": "string", - "format": "date-time", - "nullable": true - }, - "dateOfIssue": { - "type": "string", - "format": "date-time", - "nullable": true - }, - "issuingCountryId": { "type": "integer", "format": "int32" }, - "name": { "type": "string", "nullable": true }, - "travelDocumentNo": { "type": "string", "nullable": true }, - "travelDocumentTypeId": { "type": "integer", "format": "int32" } - }, - "additionalProperties": false - }, - "TravelDocumentViewModel": { - "type": "object", - "properties": { - "travelDocumentId": { "type": "string", "nullable": true }, - "applicantId": { "type": "string", "nullable": true }, - "dateOfExpiry": { - "type": "string", - "format": "date-time", - "nullable": true - }, - "dateOfIssue": { - "type": "string", - "format": "date-time", - "nullable": true - }, - "issuingCountryId": { - "type": "integer", - "format": "int32", - "nullable": true - }, - "issuingCountryName": { "type": "string", "nullable": true }, - "name": { "type": "string", "nullable": true }, - "travelDocumentNo": { "type": "string", "nullable": true }, - "travelDocumentTypeId": { - "type": "integer", - "format": "int32", - "nullable": true - }, - "travelDocumentTypeName": { "type": "string", "nullable": true }, - "createdOn": { "type": "string", "format": "date-time" }, - "applications": { - "type": "array", - "items": { - "$ref": "#/components/schemas/TravelDocumentIncidentViewModel" - }, - "nullable": true - } - }, - "additionalProperties": false - } - }, - "securitySchemes": { - "bearerAuth": { - "type": "http", - "description": "Input bearer token to access this API", - "scheme": "bearer" - } - } - }, - "security": [{ "bearerAuth": [] }] -} +{ "openapi": "3.0.1", "info": { "title": "ST2-api", "version": "v1" }, "paths": { "/api/Applicant/GetCitizenshipValidity": { "get": { "tags": [ "Applicant" ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/CitizenshipValidity" } }, "application/json": { "schema": { "$ref": "#/components/schemas/CitizenshipValidity" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CitizenshipValidity" } } } } } } }, "/api/Applicant/Get": { "get": { "tags": [ "Applicant" ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApplicantViewModel" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApplicantViewModel" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApplicantViewModel" } } } } } } }, "/api/Applicant/GetTokenSSNR": { "get": { "tags": [ "Applicant" ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "string" } }, "application/json": { "schema": { "type": "string" } }, "text/json": { "schema": { "type": "string" } } } } } } }, "/api/Applicant": { "post": { "tags": [ "Applicant" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApplicantNewModel" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApplicantNewModel" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/ApplicantNewModel" } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "string" } }, "application/json": { "schema": { "type": "string" } }, "text/json": { "schema": { "type": "string" } } } } } }, "patch": { "tags": [ "Applicant" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApplicantEditModel" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApplicantEditModel" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/ApplicantEditModel" } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "string" } }, "application/json": { "schema": { "type": "string" } }, "text/json": { "schema": { "type": "string" } } } } } } }, "/api/Applicant/NewChild": { "post": { "tags": [ "Applicant" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApplicantNewChildModel" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApplicantNewChildModel" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/ApplicantNewChildModel" } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "string" } }, "application/json": { "schema": { "type": "string" } }, "text/json": { "schema": { "type": "string" } } } } } } }, "/api/ApplicantResidenceCondition/Get": { "get": { "tags": [ "ApplicantResidenceCondition" ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApplicantResidenceConditionViewModel" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApplicantResidenceConditionViewModel" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApplicantResidenceConditionViewModel" } } } } } } }, "/api/Application/Citizenship": { "post": { "tags": [ "Application" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApplicationCitizienshipNewModel" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApplicationCitizienshipNewModel" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/ApplicationCitizienshipNewModel" } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "string" } }, "application/json": { "schema": { "type": "string" } }, "text/json": { "schema": { "type": "string" } } } } } } }, "/api/Application/Citizenship/{ssnr}": { "post": { "tags": [ "Application" ], "parameters": [ { "name": "ssnr", "in": "path", "required": true, "style": "simple", "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApplicationCitizienshipNewModel" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApplicationCitizienshipNewModel" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/ApplicationCitizienshipNewModel" } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "string" } }, "application/json": { "schema": { "type": "string" } }, "text/json": { "schema": { "type": "string" } } } } } } }, "/api/Application/CitizenshipComplete": { "post": { "tags": [ "Application" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApplicationCitizenshipCompleteNewModel" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApplicationCitizenshipCompleteNewModel" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/ApplicationCitizenshipCompleteNewModel" } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "string" } }, "application/json": { "schema": { "type": "string" } }, "text/json": { "schema": { "type": "string" } } } } } } }, "/api/Application/CitizenshipChildComplete": { "post": { "tags": [ "Application" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApplicationCitizenshipChildCompleteNewModel" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApplicationCitizenshipChildCompleteNewModel" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/ApplicationCitizenshipChildCompleteNewModel" } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "string" } }, "application/json": { "schema": { "type": "string" } }, "text/json": { "schema": { "type": "string" } } } } } } }, "/api/Application/{applicationId}": { "get": { "tags": [ "Application" ], "parameters": [ { "name": "applicationId", "in": "path", "required": true, "style": "simple", "schema": { "type": "string" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApplicationViewCompleteModel" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApplicationViewCompleteModel" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApplicationViewCompleteModel" } } } } } } }, "/api/Application/GetAll/{ssnr}": { "get": { "tags": [ "Application" ], "parameters": [ { "name": "ssnr", "in": "path", "required": true, "style": "simple", "schema": { "type": "string" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ApplicationViewModel" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ApplicationViewModel" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ApplicationViewModel" } } } } } } } }, "/api/Application/Confirm/{applicationId}": { "patch": { "tags": [ "Application" ], "parameters": [ { "name": "applicationId", "in": "path", "required": true, "style": "simple", "schema": { "type": "string" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "boolean" } }, "application/json": { "schema": { "type": "boolean" } }, "text/json": { "schema": { "type": "boolean" } } } } } } }, "/api/Application": { "post": { "tags": [ "Application" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApplicationNewModel" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApplicationNewModel" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/ApplicationNewModel" } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "string" } }, "application/json": { "schema": { "type": "string" } }, "text/json": { "schema": { "type": "string" } } } } } } }, "/api/Application/GetAll": { "get": { "tags": [ "Application" ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ApplicationViewModel" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ApplicationViewModel" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ApplicationViewModel" } } } } } } } }, "/api/ApplicationAttachment/{applicationId}": { "post": { "tags": [ "ApplicationAttachment" ], "summary": "Allowable mime types: image/jpeg, application/pdf, image/jpg", "parameters": [ { "name": "applicationId", "in": "path", "required": true, "style": "simple", "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApplicationAttachmentNewModel" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApplicationAttachmentNewModel" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/ApplicationAttachmentNewModel" } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "string" } }, "application/json": { "schema": { "type": "string" } }, "text/json": { "schema": { "type": "string" } } } }, "403": { "description": "Forbidden", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } } }, "/api/ApplicationAttachment/NewItems/{applicationId}": { "post": { "tags": [ "ApplicationAttachment" ], "summary": "Allowable mime types: image/jpeg, application/pdf, image/jpg", "parameters": [ { "name": "applicationId", "in": "path", "required": true, "style": "simple", "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApplicationAttachmentArrayNewModel" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApplicationAttachmentArrayNewModel" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/ApplicationAttachmentArrayNewModel" } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "string" } }, "application/json": { "schema": { "type": "string" } }, "text/json": { "schema": { "type": "string" } } } }, "403": { "description": "Forbidden", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } } }, "/api/CountryOfResidence": { "post": { "tags": [ "CountryOfResidence" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CountryOfResidenceNewModel" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CountryOfResidenceNewModel" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/CountryOfResidenceNewModel" } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "string" } }, "application/json": { "schema": { "type": "string" } }, "text/json": { "schema": { "type": "string" } } } } } } }, "/api/CountryOfResidence/GetAll": { "get": { "tags": [ "CountryOfResidence" ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/CountryOfResidenceViewModel" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/CountryOfResidenceViewModel" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/CountryOfResidenceViewModel" } } } } } } } }, "/api/CriminalRecord": { "post": { "tags": [ "CriminalRecord" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CriminalRecordNewModel" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CriminalRecordNewModel" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/CriminalRecordNewModel" } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "string" } }, "application/json": { "schema": { "type": "string" } }, "text/json": { "schema": { "type": "string" } } } } } } }, "/api/CriminalRecord/GetAll": { "get": { "tags": [ "CriminalRecord" ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/CriminalRecordViewModel" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/CriminalRecordViewModel" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/CriminalRecordViewModel" } } } } } } } }, "/api/Employer/GetAll/{applicationId}": { "get": { "tags": [ "Employer" ], "parameters": [ { "name": "applicationId", "in": "path", "required": true, "style": "simple", "schema": { "type": "string" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/EmployerViewModel" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/EmployerViewModel" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/EmployerViewModel" } } } } } } } }, "/api/Employer/{applicationId}": { "post": { "tags": [ "Employer" ], "parameters": [ { "name": "applicationId", "in": "path", "required": true, "style": "simple", "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EmployerNewModel" } }, "text/json": { "schema": { "$ref": "#/components/schemas/EmployerNewModel" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/EmployerNewModel" } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "string" } }, "application/json": { "schema": { "type": "string" } }, "text/json": { "schema": { "type": "string" } } } } } } }, "/api/OptionSet/{lookupType}": { "get": { "tags": [ "OptionSet" ], "parameters": [ { "name": "lookupType", "in": "path", "required": true, "style": "simple", "schema": { "$ref": "#/components/schemas/LookupType" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/OptionSetItem" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/OptionSetItem" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/OptionSetItem" } } } } } } } }, "/api/OptionSet/GetSingle/{lookupType}/{id}": { "get": { "tags": [ "OptionSet" ], "parameters": [ { "name": "lookupType", "in": "path", "required": true, "style": "simple", "schema": { "$ref": "#/components/schemas/LookupType" } }, { "name": "id", "in": "path", "required": true, "style": "simple", "schema": { "type": "string" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/OptionSetItem" } }, "application/json": { "schema": { "$ref": "#/components/schemas/OptionSetItem" } }, "text/json": { "schema": { "$ref": "#/components/schemas/OptionSetItem" } } } } } } }, "/api/ResidenceAbroad/GetAll": { "get": { "tags": [ "ResidenceAbroad" ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ResidenceAbroadViewModel" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ResidenceAbroadViewModel" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ResidenceAbroadViewModel" } } } } } } } }, "/api/ResidenceAbroad/{applicationId}": { "post": { "tags": [ "ResidenceAbroad" ], "parameters": [ { "name": "applicationId", "in": "path", "required": true, "style": "simple", "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ResidenceAbroadNewModel" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ResidenceAbroadNewModel" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/ResidenceAbroadNewModel" } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "string" } }, "application/json": { "schema": { "type": "string" } }, "text/json": { "schema": { "type": "string" } } } } } } }, "/api/ResidenceAbroad/GetAll/{applicationId}": { "get": { "tags": [ "ResidenceAbroad" ], "parameters": [ { "name": "applicationId", "in": "path", "required": true, "style": "simple", "schema": { "type": "string" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ResidenceAbroadViewModel" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ResidenceAbroadViewModel" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ResidenceAbroadViewModel" } } } } } } } }, "/api/ResidencePermitClassification": { "get": { "tags": [ "ResidencePermitClassification" ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ClassificationViewModel" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ClassificationViewModel" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ClassificationViewModel" } } } } } } } }, "/api/ResidencePermitClassification/ClassificationType/{classificationId}": { "get": { "tags": [ "ResidencePermitClassification" ], "parameters": [ { "name": "classificationId", "in": "path", "required": true, "style": "simple", "schema": { "type": "string" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ClassificationTypeViewModel" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ClassificationTypeViewModel" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ClassificationTypeViewModel" } } } } } } } }, "/api/ResidencePermitClassification/ClassificationDetail/{classificationTypeId}": { "get": { "tags": [ "ResidencePermitClassification" ], "parameters": [ { "name": "classificationTypeId", "in": "path", "required": true, "style": "simple", "schema": { "type": "string" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ClassificationDetailViewModel" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ClassificationDetailViewModel" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ClassificationDetailViewModel" } } } } } } } }, "/api/StaticData/GetAll": { "get": { "tags": [ "StaticData" ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/StaticDataViewModel" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/StaticDataViewModel" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/StaticDataViewModel" } } } } } } } }, "/api/StaticData/{staticDataId}": { "get": { "tags": [ "StaticData" ], "parameters": [ { "name": "staticDataId", "in": "path", "required": true, "style": "simple", "schema": { "type": "string" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApplicationViewModel" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApplicationViewModel" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApplicationViewModel" } } } } } } }, "/api/Study": { "post": { "tags": [ "Study" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/StudyNewModel" } }, "text/json": { "schema": { "$ref": "#/components/schemas/StudyNewModel" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/StudyNewModel" } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "string" } }, "application/json": { "schema": { "type": "string" } }, "text/json": { "schema": { "type": "string" } } } } } } }, "/api/Study/GetAll": { "get": { "tags": [ "Study" ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/StudyViewModel" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/StudyViewModel" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/StudyViewModel" } } } } } } } }, "/api/TravelDocument/GetAll": { "get": { "tags": [ "TravelDocument" ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/TravelDocumentViewModel" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/TravelDocumentViewModel" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/TravelDocumentViewModel" } } } } } } } }, "/api/TravelDocument/{applicationId}": { "post": { "tags": [ "TravelDocument" ], "parameters": [ { "name": "applicationId", "in": "path", "required": true, "style": "simple", "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TravelDocumentNewModel" } }, "text/json": { "schema": { "$ref": "#/components/schemas/TravelDocumentNewModel" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/TravelDocumentNewModel" } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "string" } }, "application/json": { "schema": { "type": "string" } }, "text/json": { "schema": { "type": "string" } } } } } } }, "/api/TravelDocument/GetAll/{applicationId}": { "get": { "tags": [ "TravelDocument" ], "parameters": [ { "name": "applicationId", "in": "path", "required": true, "style": "simple", "schema": { "type": "string" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/TravelDocumentViewModel" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/TravelDocumentViewModel" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/TravelDocumentViewModel" } } } } } } } } }, "components": { "schemas": { "ApplicantCompleteNewModel": { "type": "object", "properties": { "icelandicIDNO": { "type": "string", "nullable": true }, "icelandicIDNOWithHyphen": { "type": "string", "nullable": true, "readOnly": true }, "givenName": { "type": "string", "nullable": true }, "surName": { "type": "string", "nullable": true }, "emailAddress": { "type": "string", "nullable": true }, "telephone": { "type": "string", "nullable": true }, "addressCity": { "type": "string", "nullable": true }, "countryOfResidence": { "type": "array", "items": { "$ref": "#/components/schemas/CountryOfResidenceNewModel" }, "nullable": true } }, "additionalProperties": false }, "ApplicantEditModel": { "type": "object", "properties": { "emailAddress": { "type": "string", "nullable": true }, "telephone": { "type": "string", "nullable": true } }, "additionalProperties": false }, "ApplicantNewChildModel": { "type": "object", "properties": { "icelandicIDNO": { "type": "string", "nullable": true }, "icelandicIDNOWithHyphen": { "type": "string", "nullable": true, "readOnly": true }, "givenName": { "type": "string", "nullable": true }, "surName": { "type": "string", "nullable": true } }, "additionalProperties": false }, "ApplicantNewModel": { "type": "object", "properties": { "icelandicIDNO": { "type": "string", "nullable": true }, "icelandicIDNOWithHyphen": { "type": "string", "nullable": true, "readOnly": true }, "givenName": { "type": "string", "nullable": true }, "surName": { "type": "string", "nullable": true }, "emailAddress": { "type": "string", "nullable": true }, "telephone": { "type": "string", "nullable": true }, "addressCity": { "type": "string", "nullable": true } }, "additionalProperties": false }, "ApplicantResidenceConditionViewModel": { "type": "object", "properties": { "isAnyResConValid": { "type": "boolean" }, "domicileResidence7Years": { "type": "boolean" }, "cohabitationISCitizen5YrsDomicileMissingDate": { "type": "boolean" }, "asylumSeekerOrHumanitarianResPerm5year": { "type": "boolean" }, "cohabitationISCitizen5YearDomicile": { "type": "boolean" }, "isMarriedOrCohabiationWithISCitizen": { "type": "boolean" }, "marriedISCitizenDomicile4Years": { "type": "boolean" }, "noNationalityAnd5YearsDomicile": { "type": "boolean" }, "nordicCitizenship4YearDomicile": { "type": "boolean" }, "marriedISCitizenDomicile4YrsMissingDate": { "type": "boolean" } }, "additionalProperties": false }, "ApplicantViewModel": { "type": "object", "properties": { "name": { "type": "string", "nullable": true }, "applicantNumber": { "type": "string", "nullable": true }, "dateOfBirth": { "type": "string", "format": "date-time", "nullable": true }, "nationalityId": { "type": "integer", "format": "int32", "nullable": true }, "emailAddress": { "type": "string", "nullable": true }, "addressName": { "type": "string", "nullable": true }, "addressCity": { "type": "string", "nullable": true }, "dateOfDomicileRegistration": { "type": "string", "format": "date-time", "nullable": true }, "residenceConditionId": { "type": "integer", "format": "int32", "nullable": true }, "residenceConditionName": { "type": "string", "nullable": true }, "maritalStatus": { "type": "integer", "format": "int32", "nullable": true }, "maritalStatusName": { "type": "string", "nullable": true }, "icelandicIDNO": { "type": "string", "nullable": true }, "icelandicIDNOWithHyphen": { "type": "string", "nullable": true }, "telephone": { "type": "string", "nullable": true }, "applicantId": { "type": "string", "nullable": true }, "children": { "type": "array", "items": { "$ref": "#/components/schemas/ApplicantViewModel" }, "nullable": true }, "applications": { "type": "array", "items": { "$ref": "#/components/schemas/ApplicationViewModel" }, "nullable": true } }, "additionalProperties": false }, "ApplicantViewSimpleModel": { "type": "object", "properties": { "icelandicIDNO": { "type": "string", "nullable": true }, "icelandicIDNOWithHyphen": { "type": "string", "nullable": true, "readOnly": true }, "emailAddress": { "type": "string", "nullable": true }, "telephone": { "type": "string", "nullable": true }, "addressCity": { "type": "string", "nullable": true }, "applicantId": { "type": "string", "nullable": true }, "givenName": { "type": "string", "nullable": true }, "surName": { "type": "string", "nullable": true }, "countryOfResidence": { "type": "array", "items": { "$ref": "#/components/schemas/CountryOfResidenceViewModel" }, "nullable": true } }, "additionalProperties": false }, "ApplicationAttachmentArrayNewModel": { "type": "object", "properties": { "applicationAttachments": { "type": "array", "items": { "$ref": "#/components/schemas/ApplicationAttachmentNewModel" }, "nullable": true } }, "additionalProperties": false }, "ApplicationAttachmentNewModel": { "type": "object", "properties": { "attachmentType": { "$ref": "#/components/schemas/AttachmentType" }, "fileName": { "type": "string", "nullable": true }, "base64Contents": { "type": "string", "nullable": true }, "countryCode": { "type": "string", "nullable": true } }, "additionalProperties": false }, "ApplicationCitizenshipChildCompleteNewModel": { "type": "object", "properties": { "parentApplicationId": { "type": "string", "nullable": true }, "applicant": { "$ref": "#/components/schemas/ApplicantNewChildModel" }, "travelDocuments": { "type": "array", "items": { "$ref": "#/components/schemas/TravelDocumentNewModel" }, "nullable": true }, "staticData": { "$ref": "#/components/schemas/StaticDataChildNewModel" } }, "additionalProperties": false }, "ApplicationCitizenshipCompleteNewModel": { "type": "object", "properties": { "applicant": { "$ref": "#/components/schemas/ApplicantCompleteNewModel" }, "residenceAbroads": { "type": "array", "items": { "$ref": "#/components/schemas/ResidenceAbroadNewModel" }, "nullable": true }, "travelDocuments": { "type": "array", "items": { "$ref": "#/components/schemas/TravelDocumentNewModel" }, "nullable": true }, "staticData": { "$ref": "#/components/schemas/StaticDataApplicantNewModel" } }, "additionalProperties": false }, "ApplicationCitizienshipNewModel": { "type": "object", "properties": { "staticDataId": { "type": "string", "nullable": true } }, "additionalProperties": false }, "ApplicationNewModel": { "type": "object", "properties": { "staticDataId": { "type": "string", "nullable": true }, "caseTypeId": { "type": "integer", "format": "int32" }, "classificationId": { "type": "string", "nullable": true }, "classificationTypeId": { "type": "string", "nullable": true }, "classificationDetailId": { "type": "string", "nullable": true }, "parentApplicationId": { "type": "string", "nullable": true } }, "additionalProperties": false }, "ApplicationViewCompleteModel": { "type": "object", "properties": { "caseTypeId": { "type": "integer", "format": "int32", "nullable": true }, "caseTypeName": { "type": "string", "nullable": true }, "classificationId": { "type": "string", "nullable": true }, "classificationName": { "type": "string", "nullable": true }, "classificationTypeId": { "type": "string", "nullable": true }, "classificationTypeName": { "type": "string", "nullable": true }, "classificationDetailId": { "type": "string", "nullable": true }, "classificationDetailName": { "type": "string", "nullable": true }, "staticDataId": { "type": "string", "nullable": true }, "applicationId": { "type": "string", "nullable": true }, "parentApplicationId": { "type": "string", "nullable": true }, "createdOn": { "type": "string", "format": "date-time" }, "permitValidTo": { "type": "string", "format": "date-time", "nullable": true }, "ticketNumber": { "type": "string", "nullable": true }, "applicant": { "$ref": "#/components/schemas/ApplicantViewSimpleModel" }, "staticData": { "$ref": "#/components/schemas/StaticDataViewModel" }, "residenceAbroads": { "type": "array", "items": { "$ref": "#/components/schemas/ResidenceAbroadViewModel" }, "nullable": true }, "travelDocuments": { "type": "array", "items": { "$ref": "#/components/schemas/TravelDocumentViewModel" }, "nullable": true } }, "additionalProperties": false }, "ApplicationViewModel": { "type": "object", "properties": { "caseTypeId": { "type": "integer", "format": "int32", "nullable": true }, "caseTypeName": { "type": "string", "nullable": true }, "classificationId": { "type": "string", "nullable": true }, "classificationName": { "type": "string", "nullable": true }, "classificationTypeId": { "type": "string", "nullable": true }, "classificationTypeName": { "type": "string", "nullable": true }, "classificationDetailId": { "type": "string", "nullable": true }, "classificationDetailName": { "type": "string", "nullable": true }, "staticDataId": { "type": "string", "nullable": true }, "applicationId": { "type": "string", "nullable": true }, "parentApplicationId": { "type": "string", "nullable": true }, "createdOn": { "type": "string", "format": "date-time" }, "permitValidTo": { "type": "string", "format": "date-time", "nullable": true }, "ticketNumber": { "type": "string", "nullable": true } }, "additionalProperties": false }, "AttachmentType": { "enum": [ "Passport", "PassportOtherAttachment", "BirtCertificate", "ProofOfFinancialCapabilityApplicant", "ProofOfFinancialCapabilityMunicipality", "DomicileHistory", "ConfirmationIcelandicLanguage", "WrittenConfirmationChild", "ConfirmationOtherParent", "CustodyDocuments", "CriminalRecord" ], "type": "string" }, "CitizenshipValidity": { "type": "object", "properties": { "applicantExists": { "type": "boolean" }, "isEESCitizen": { "type": "boolean" }, "eesNordicCitizen": { "type": "boolean" }, "eesResidenceCondition": { "type": "boolean" }, "spouseIsCitizen": { "type": "boolean" } }, "additionalProperties": false }, "ClassificationDetailViewModel": { "type": "object", "properties": { "name": { "type": "string", "nullable": true }, "classificationDetailId": { "type": "string", "nullable": true } }, "additionalProperties": false }, "ClassificationTypeViewModel": { "type": "object", "properties": { "name": { "type": "string", "nullable": true }, "classificationTypeId": { "type": "string", "nullable": true } }, "additionalProperties": false }, "ClassificationViewModel": { "type": "object", "properties": { "name": { "type": "string", "nullable": true }, "classificationId": { "type": "string", "nullable": true } }, "additionalProperties": false }, "CountryOfResidenceNewModel": { "type": "object", "properties": { "countryId": { "type": "integer", "format": "int32" }, "dateFrom": { "type": "string", "format": "date-time" }, "dateTo": { "type": "string", "format": "date-time" } }, "additionalProperties": false }, "CountryOfResidenceViewModel": { "type": "object", "properties": { "countryId": { "type": "integer", "format": "int32" }, "countryName": { "type": "string", "nullable": true }, "countryOfResidenceId": { "type": "string", "nullable": true }, "dateFrom": { "type": "string", "format": "date-time", "nullable": true }, "dateTo": { "type": "string", "format": "date-time", "nullable": true } }, "additionalProperties": false }, "CriminalRecordNewModel": { "type": "object", "properties": { "countryId": { "type": "integer", "format": "int32" }, "offence": { "type": "string", "nullable": true }, "punishment": { "type": "string", "nullable": true }, "when": { "type": "string", "format": "date-time", "nullable": true } }, "additionalProperties": false }, "CriminalRecordViewModel": { "type": "object", "properties": { "accountid": { "type": "string", "nullable": true }, "criminalRecordId": { "type": "string", "nullable": true }, "countryId": { "type": "integer", "format": "int32" }, "countryName": { "type": "string", "nullable": true }, "offence": { "type": "string", "nullable": true }, "punishment": { "type": "string", "nullable": true }, "when": { "type": "string", "nullable": true } }, "additionalProperties": false }, "EmployerNewModel": { "type": "object", "properties": { "companyName": { "type": "string", "nullable": true }, "countryId": { "type": "integer", "format": "int32", "nullable": true }, "dateFrom": { "type": "string", "format": "date-time", "nullable": true }, "dateTo": { "type": "string", "format": "date-time", "nullable": true }, "icelandicIDNO": { "type": "string", "nullable": true } }, "additionalProperties": false }, "EmployerViewModel": { "type": "object", "properties": { "companyName": { "type": "string", "nullable": true }, "countryId": { "type": "integer", "format": "int32", "nullable": true }, "dateFrom": { "type": "string", "format": "date-time", "nullable": true }, "dateTo": { "type": "string", "format": "date-time", "nullable": true }, "icelandicIDNO": { "type": "string", "nullable": true }, "employerid": { "type": "string", "nullable": true } }, "additionalProperties": false }, "LookupType": { "enum": [ "GenderTypes", "Languages", "Nationalities", "MaritalStatuses", "ResidenceConditions", "CaseType", "TravelDocumentTypes", "Countries", "FamilyConnections" ], "type": "string" }, "OptionSetItem": { "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "name": { "type": "string", "nullable": true } }, "additionalProperties": false }, "ProblemDetails": { "type": "object", "properties": { "type": { "type": "string", "nullable": true }, "title": { "type": "string", "nullable": true }, "status": { "type": "integer", "format": "int32", "nullable": true }, "detail": { "type": "string", "nullable": true }, "instance": { "type": "string", "nullable": true } }, "additionalProperties": false }, "ResidenceAbroadNewModel": { "type": "object", "properties": { "countryId": { "type": "integer", "format": "int32" }, "dateFrom": { "type": "string", "format": "date-time" }, "dateTo": { "type": "string", "format": "date-time" }, "purposeOfStay": { "type": "string", "nullable": true } }, "additionalProperties": false }, "ResidenceAbroadViewModel": { "type": "object", "properties": { "countryId": { "type": "integer", "format": "int32" }, "countryName": { "type": "string", "nullable": true }, "dateFrom": { "type": "string", "format": "date-time" }, "dateTo": { "type": "string", "format": "date-time" }, "purposeOfStay": { "type": "string", "nullable": true }, "residenceAbroadId": { "type": "string", "nullable": true }, "applicationId": { "type": "string", "nullable": true }, "applicantId": { "type": "string", "nullable": true } }, "additionalProperties": false }, "StaticDataApplicantNewModel": { "type": "object", "properties": { "address": { "type": "string", "nullable": true }, "municipality": { "type": "string", "nullable": true }, "nationality": { "type": "string", "nullable": true }, "dateOfDomicileRegistration": { "type": "string", "nullable": true }, "countryOfBirth": { "type": "string", "nullable": true }, "maritalStatus": { "type": "string", "nullable": true }, "dateOfMarriage": { "type": "string", "nullable": true }, "spouseSSN": { "type": "string", "nullable": true }, "spouseName": { "type": "string", "nullable": true }, "spouseCountryOfBirth": { "type": "string", "nullable": true }, "spouseCitizenship": { "type": "string", "nullable": true }, "spouseAddress": { "type": "string", "nullable": true }, "spouseAddressMismatchReason": { "type": "string", "nullable": true }, "parent1SSN": { "type": "string", "nullable": true }, "parent1Name": { "type": "string", "nullable": true }, "postalCode": { "type": "string", "nullable": true }, "parent2SSN": { "type": "string", "nullable": true }, "parentOfChild2SSN": { "type": "string", "nullable": true }, "parent2Name": { "type": "string", "nullable": true }, "parentOfChild2Name": { "type": "string", "nullable": true }, "applicantIsChildOfIcelandicCitizen": { "type": "boolean", "nullable": true }, "applicantIsFormerIcelandicCitizen": { "type": "boolean", "nullable": true } }, "additionalProperties": false }, "StaticDataChildNewModel": { "type": "object", "properties": { "parent2SSN": { "type": "string", "nullable": true }, "parent2Name": { "type": "string", "nullable": true }, "parent2BirthDate": { "type": "string", "nullable": true }, "nationality": { "type": "string", "nullable": true } }, "additionalProperties": false }, "StaticDataViewModel": { "required": [ "name", "ssn" ], "type": "object", "properties": { "address": { "type": "string", "nullable": true }, "municipality": { "type": "string", "nullable": true }, "nationality": { "type": "string", "nullable": true }, "dateOfDomicileRegistration": { "type": "string", "nullable": true }, "countryOfBirth": { "type": "string", "nullable": true }, "maritalStatus": { "type": "string", "nullable": true }, "dateOfMarriage": { "type": "string", "nullable": true }, "spouseSSN": { "type": "string", "nullable": true }, "spouseName": { "type": "string", "nullable": true }, "spouseCountryOfBirth": { "type": "string", "nullable": true }, "spouseCitizenship": { "type": "string", "nullable": true }, "spouseAddress": { "type": "string", "nullable": true }, "spouseAddressMismatchReason": { "type": "string", "nullable": true }, "parent1SSN": { "type": "string", "nullable": true }, "parent1Name": { "type": "string", "nullable": true }, "postalCode": { "type": "string", "nullable": true }, "parent2SSN": { "type": "string", "nullable": true }, "parentOfChild2SSN": { "type": "string", "nullable": true }, "parent2Name": { "type": "string", "nullable": true }, "parentOfChild2Name": { "type": "string", "nullable": true }, "applicantIsChildOfIcelandicCitizen": { "type": "boolean", "nullable": true }, "applicantIsFormerIcelandicCitizen": { "type": "boolean", "nullable": true }, "parent2BirthDate": { "type": "string", "nullable": true }, "staticDataId": { "type": "string", "nullable": true }, "ssn": { "minLength": 1, "type": "string" }, "name": { "minLength": 1, "type": "string" }, "phone": { "type": "string", "nullable": true } }, "additionalProperties": false }, "StudyNewModel": { "type": "object", "properties": { "icelandicIDNO": { "type": "string", "nullable": true }, "school": { "type": "string", "nullable": true } }, "additionalProperties": false }, "StudyViewModel": { "type": "object", "properties": { "studyId": { "type": "string", "nullable": true }, "icelandicIDNO": { "type": "string", "nullable": true }, "school": { "type": "string", "nullable": true }, "createdOn": { "type": "string", "format": "date-time" } }, "additionalProperties": false }, "TravelDocumentIncidentViewModel": { "type": "object", "properties": { "applicationId": { "type": "string", "nullable": true } }, "additionalProperties": false }, "TravelDocumentNewModel": { "type": "object", "properties": { "dateOfExpiry": { "type": "string", "format": "date-time", "nullable": true }, "dateOfIssue": { "type": "string", "format": "date-time", "nullable": true }, "issuingCountryId": { "type": "integer", "format": "int32" }, "name": { "type": "string", "nullable": true }, "travelDocumentNo": { "type": "string", "nullable": true }, "travelDocumentTypeId": { "type": "integer", "format": "int32" } }, "additionalProperties": false }, "TravelDocumentViewModel": { "type": "object", "properties": { "travelDocumentId": { "type": "string", "nullable": true }, "applicantId": { "type": "string", "nullable": true }, "dateOfExpiry": { "type": "string", "format": "date-time", "nullable": true }, "dateOfIssue": { "type": "string", "format": "date-time", "nullable": true }, "issuingCountryId": { "type": "integer", "format": "int32", "nullable": true }, "issuingCountryName": { "type": "string", "nullable": true }, "name": { "type": "string", "nullable": true }, "travelDocumentNo": { "type": "string", "nullable": true }, "travelDocumentTypeId": { "type": "integer", "format": "int32", "nullable": true }, "travelDocumentTypeName": { "type": "string", "nullable": true }, "createdOn": { "type": "string", "format": "date-time" }, "applications": { "type": "array", "items": { "$ref": "#/components/schemas/TravelDocumentIncidentViewModel" }, "nullable": true } }, "additionalProperties": false } }, "securitySchemes": { "bearerAuth": { "type": "http", "description": "Input bearer token to access this API", "scheme": "bearer" } } }, "security": [ { "bearerAuth": [] } ] } diff --git a/libs/clients/directorate-of-immigration/src/lib/directorateOfImmigrationClient.service.ts b/libs/clients/directorate-of-immigration/src/lib/directorateOfImmigrationClient.service.ts index 5575c32a008b..316482249036 100644 --- a/libs/clients/directorate-of-immigration/src/lib/directorateOfImmigrationClient.service.ts +++ b/libs/clients/directorate-of-immigration/src/lib/directorateOfImmigrationClient.service.ts @@ -310,6 +310,7 @@ export class DirectorateOfImmigrationClient { ? new Date(selectedChild.otherParentBirtDate).toISOString() : undefined, parent2Name: selectedChild.otherParentName, + nationality: childInfo.citizenship, }, }, }) diff --git a/libs/clients/directorate-of-immigration/src/lib/directorateOfImmigrationClient.types.ts b/libs/clients/directorate-of-immigration/src/lib/directorateOfImmigrationClient.types.ts index bd820b1dc4e6..dc528da47edc 100644 --- a/libs/clients/directorate-of-immigration/src/lib/directorateOfImmigrationClient.types.ts +++ b/libs/clients/directorate-of-immigration/src/lib/directorateOfImmigrationClient.types.ts @@ -68,6 +68,7 @@ export interface CitizenshipApplication { fullName: string givenName?: string | null familyName?: string | null + citizenship?: string }[] childrenPassport: { nationalId: string