Before we can request a quote for the necessary vehicle repairs, first we need to issue a missing insurance policy for one of the vehicles, as this policy is not part of the demo assets. An insurer can use the issuePolicy transaction/function of the chaincode, as you might guess, to issue a new policy to the owner of a vehicle.
Examine the "Issue insurance policy to JN6ND01S3GX194659" HTTP request of the Postman collection. The request requires a total of 12 input arguments to create the new insurance policy successfully.
The 12 expected arguments are as follows:
- authorizedBy
- validFrom
- validTo
- registeredVehicle
- countryCode
- insurerCode
- policyNumber
- vehicleCategory
- vehicleMake
- coverage
- policyholder
- issuedBy