forked from Yara724/api
car body implemented
This commit is contained in:
@@ -16,6 +16,26 @@ export const FANAVARAN_REMOTE_LOOKUPS: FanavaranRemoteLookupDefinition[] = [
|
||||
url: `${FANAVARAN_LOOKUP_BASE_URL}/car/base-info/accident-causes`,
|
||||
cacheFile: "accident-causes.json",
|
||||
},
|
||||
{
|
||||
name: "vehicle-hull-accident-types",
|
||||
url: `${FANAVARAN_LOOKUP_BASE_URL}/car/base-info/vehicle-hull-accident-types`,
|
||||
cacheFile: "vehicle-hull-accident-types.json",
|
||||
},
|
||||
{
|
||||
name: "vehicle-hull-accident-culprit-type",
|
||||
url: `${FANAVARAN_LOOKUP_BASE_URL}/car/code-list/vehicle-hull-accident-culprit-type`,
|
||||
cacheFile: "vehicle-hull-accident-culprit-type.json",
|
||||
},
|
||||
{
|
||||
name: "vehicle-hull-dmg-kind",
|
||||
url: `${FANAVARAN_LOOKUP_BASE_URL}/car/code-list/vehicle-hull-dmg-kind`,
|
||||
cacheFile: "vehicle-hull-dmg-kind.json",
|
||||
},
|
||||
{
|
||||
name: "vehicle-hull-dmg-cost-kinds",
|
||||
url: `${FANAVARAN_LOOKUP_BASE_URL}/car/base-info/vehicle-hull-dmg-cost-kinds`,
|
||||
cacheFile: "vehicle-hull-dmg-cost-kinds.json",
|
||||
},
|
||||
{
|
||||
name: "accident-report-type",
|
||||
url: `${FANAVARAN_LOOKUP_BASE_URL}/car/code-list/accident-report-type`,
|
||||
|
||||
@@ -277,6 +277,16 @@ export class FanavaranLookupService {
|
||||
return this.fetchFromFanavaran(clientKey, url, options);
|
||||
}
|
||||
|
||||
/** GEN.06 VehicleHullAccessoryId — requires hull PolicyId (کد رایانه بیمهنامه). */
|
||||
async vehicleHullDmgAccessoriesByPolicyId(
|
||||
clientKey: FanavaranClientKey,
|
||||
policyId: number,
|
||||
options?: { contractIdOverride?: string },
|
||||
): Promise<unknown> {
|
||||
const url = `${FANAVARAN_LOOKUP_BASE_URL}/car/vehicle-hull-policies/${policyId}/dmg-accessories`;
|
||||
return this.fetchFromFanavaran(clientKey, url, options);
|
||||
}
|
||||
|
||||
async vehicleById(
|
||||
clientKey: FanavaranClientKey,
|
||||
vehicleId: number,
|
||||
|
||||
Reference in New Issue
Block a user