Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function storePolicy(
- string memory _PolicyID,
- string memory _InsuredFullName ,
- string memory _PolicyType ,
- string memory _InsuredPremium ,
- string memory _InsuredVehicleNo ,
- string memory _PolicyStartDate ,
- string memory _PolicyEndDate
- )
- public
- {
- policy[_PolicyID].PolicyID =_PolicyID;
- policy[_PolicyID].InsuredFullName = _InsuredFullName;
- policy[_PolicyID].PolicyType = _PolicyType;
- policy[_PolicyID].InsuredPremium = _InsuredPremium;
- policy[_PolicyID].InsuredVehicleNo = _InsuredVehicleNo;
- policy[_PolicyID].PolicyStartDate = _PolicyStartDate;
- policy[_PolicyID].PolicyEndDate = _PolicyEndDate;
- policy[_PolicyID].policyCount = policyIndex.push(_PolicyID)-1;
- }
- app.post('/storePolicy', (req, res) => {
- let PolicyID = req.query.PolicyID;
- let InsuredFullName = req.query.InsuredFullName;
- let PolicyType = req.query.PolicyType;
- let InsuredPremium = req.query.InsuredPremium;
- let InsuredVehicleNo = req.query.InsuredVehicleNo;
- let PolicyStartDate = req.query.PolicyStartDate;
- let PolicyEndDate = req.query.PolicyEndDate;
- let defaultAaccount = '0x7cC6C0f909824842C8faBDAB63C27d34c1747Bc7';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement