1
0
forked from Yara724/api

YARA-1061

This commit is contained in:
SepehrYahyaee
2026-07-18 14:30:26 +03:30
parent f39c50aeb0
commit 5b114c2069
3 changed files with 40 additions and 1 deletions

View File

@@ -1012,11 +1012,20 @@ export class SandHubService {
IssueDate: newResponse.persianStartDate || newResponse.IssueDate,
EndDate: newResponse.persianEndDate || newResponse.EndDate,
// Insurance policy number — canonical Tejarat name is PrntPlcyCmpDocNo;
// newer API formats surface it as printNumber or insuranceNumber.
PrntPlcyCmpDocNo:
newResponse.PrntPlcyCmpDocNo ||
newResponse.printNumber ||
newResponse.insuranceNumber ||
null,
// Insurance details
LastCompanyDocumentNumber:
newResponse.lastCompanyInsuranceNumber ||
newResponse.LastCompanyDocumentNumber ||
newResponse.insuranceNumber,
newResponse.insuranceNumber ||
null,
// Technical details
MtrNum: newResponse.MtrNum || newResponse.mtrnum,