1
0
forked from Yara724/api

lookup of person role added + inquiry by unique identifier + put driver id in payload

This commit is contained in:
Soheil Hajizadeh
2026-07-07 17:29:48 +03:30
parent 1c6678d8e4
commit 1e6c36cbd4
5 changed files with 141 additions and 1 deletions

View File

@@ -255,6 +255,24 @@ export class FanavaranLookupService {
return this.fetchFromFanavaran(clientKey, url);
}
async inquiryByUniqueIdentifier(
clientKey: FanavaranClientKey,
params: {
nationalCode: string;
birthYear: number;
birthMonth: number;
birthDay: number;
},
): Promise<unknown> {
const url =
`${FANAVARAN_LOOKUP_BASE_URL}/common/parties/inquiry-by-unique-identifier` +
`?NationalCode=${encodeURIComponent(params.nationalCode)}` +
`&BirthYear=${params.birthYear}` +
`&BirthMonth=${params.birthMonth}` +
`&BirthDay=${params.birthDay}`;
return this.fetchFromFanavaran(clientKey, url);
}
mapFanavaranAccidentCausesToReasonOptions(
causes: unknown,
): { id: number; label: string; fanavaran: number }[] {