forked from Yara724/api
update the fanavaran for both tejarat no and parsian clients , dont forget about the env files
This commit is contained in:
@@ -123,11 +123,37 @@ export class LookupsService {
|
||||
return await this.getClientRemoteLookup("person-role");
|
||||
}
|
||||
|
||||
async getFileTypes(): Promise<any> {
|
||||
return await this.getClientRemoteLookup("file-types");
|
||||
}
|
||||
|
||||
async inquiryByVin(vin: string): Promise<unknown> {
|
||||
const clientKey = this.activeClientKey();
|
||||
return this.fanavaranLookupService.inquiryByVin(clientKey, vin);
|
||||
}
|
||||
|
||||
async myPolicies(
|
||||
nationalCode: string,
|
||||
insuranceLineId: number = 5,
|
||||
): Promise<unknown> {
|
||||
const clientKey = this.activeClientKey();
|
||||
return this.fanavaranLookupService.myPolicies(
|
||||
clientKey,
|
||||
nationalCode,
|
||||
insuranceLineId,
|
||||
);
|
||||
}
|
||||
|
||||
async thirdPartyPolicyById(policyId: number): Promise<unknown> {
|
||||
const clientKey = this.activeClientKey();
|
||||
return this.fanavaranLookupService.thirdPartyPolicyById(clientKey, policyId);
|
||||
}
|
||||
|
||||
async bodyPolicyById(policyId: number): Promise<unknown> {
|
||||
const clientKey = this.activeClientKey();
|
||||
return this.fanavaranLookupService.bodyPolicyById(clientKey, policyId);
|
||||
}
|
||||
|
||||
async getAccidentWay(): Promise<{ id: number; label: string }[]> {
|
||||
const clientKey = this.activeClientKey();
|
||||
const fileName = TEJARAT_STATIC_ACCIDENT_FILES.accidentWay;
|
||||
|
||||
Reference in New Issue
Block a user