{ "info": { "_postman_id": "2df5de23-8366-4e47-a638-5aba400caf35", "name": "Estimate Service - Postman Test Suite", "description": "## Prerequisites\n\nBefore running this collection, make sure to:\n\n- Set up your environment variables.\n \n- Set up the base url\n \n- Setup the auth token by logging in\n \n- To fill the estimate details You can fetch the sor details from mdms v2 for appropriate sor and then fill the UOM and SorID for that sor.\n \n- After filling the Appropriate SOR and estimate details Check that workflow is correct or not then You can run the collection.\n \n- It will execute all the endpoints by checking all the scenarios.", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", "_exporter_id": "28174622" }, "item": [ { "name": "Login User", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () =>", " pm.expect(pm.response.to.have.status(200))", ");", "", "pm.test(\"print and save access token in environment\", function () {", " var res = pm.response.json();", " var authToken = res.access_token;", " console.log('authToken:', authToken);", " pm.environment.set('auth',authToken);", "}", ");" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "authority", "value": "unified-dev.digit.org" }, { "key": "accept", "value": "application/json, text/plain, */*" }, { "key": "accept-language", "value": "en-GB,en-US;q=0.9,en;q=0.8" }, { "key": "authorization", "value": "Basic ZWdvdi11c2VyLWNsaWVudDo=" }, { "key": "content-type", "value": "application/x-www-form-urlencoded" }, { "key": "cookie", "value": "_ga_6130JJKLD4=GS1.1.1689144121.1.1.1689144147.34.0.0; _ga_2E44ZSYXS7=GS1.1.1693551022.10.0.1693551537.0.0.0; _ga=GA1.1.1506416593.1687179320; _ga_P1TZCPKF6S=GS1.1.1695629661.2.0.1695629664.57.0.0; _ga_H9YC8FEN6F=GS1.1.1696831541.125.1.1696831564.37.0.0; io=f_4QRb-VaOOVAUJ0AAAB; locale=en_IN; PGADMIN_LANGUAGE=en; __cuid=44ff2be0a12e4499973904b80d92ef3d; amp_fef1e8=21a46ed7-716d-4b59-aa13-c513dd00a213R...1hflua14j.1hflua14o.kq.46.p0; _ga_XBQP06FR8V=GS1.1.1700469736.4.0.1700469739.57.0.0; _oauth2_proxy=eyJFbWFpbCI6ImFuc2guZ295YWxAZWdvdmVybm1lbnRzLm9yZyIsIlVzZXIiOiJhbnNoLWVnb3YifQ==|1700724084|8Aayfxx0DRsJ4Lgw6jJiVnYjs_k=" }, { "key": "origin", "value": "https://unified-dev.digit.org" }, { "key": "referer", "value": "https://unified-dev.digit.org/works-ui/employee/user/login?from=%2Fworks-ui%2Femployee" }, { "key": "sec-ch-ua", "value": "\"Chromium\";v=\"118\", \"Google Chrome\";v=\"118\", \"Not=A?Brand\";v=\"99\"" }, { "key": "sec-ch-ua-mobile", "value": "?0" }, { "key": "sec-ch-ua-platform", "value": "\"Linux\"" }, { "key": "sec-fetch-dest", "value": "empty" }, { "key": "sec-fetch-mode", "value": "cors" }, { "key": "sec-fetch-site", "value": "same-origin" }, { "key": "user-agent", "value": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36" } ], "body": { "mode": "urlencoded", "urlencoded": [ { "key": "username", "value": "AUTO1", "type": "text" }, { "key": "password", "value": "eGov@123", "type": "text" }, { "key": "userType", "value": "EMPLOYEE", "type": "text" }, { "key": "tenantId", "value": "pg.citya", "type": "text" }, { "key": "scope", "value": "read", "type": "text" }, { "key": "grant_type", "value": "password", "type": "text" } ] }, "url": { "raw": "{{base_url}}/user/oauth/token?_=1700804704480", "host": [ "{{base_url}}" ], "path": [ "user", "oauth", "token" ], "query": [ { "key": "_", "value": "1700804704480" } ] } }, "response": [] }, { "name": "Create Estimate - Success", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"RequestInfo is required\", function () {\r", " var req = JSON.parse(pm.request.body.raw);\r", " pm.expect(req.RequestInfo).to.not.be.null;\r", " pm.expect(req.RequestInfo).to.not.be.undefined;\r", "});\r", "\r", "pm.test(\"TenantId is required\", function () {\r", " var req = JSON.parse(pm.request.body.raw);\r", " var estimate = req.estimate;\r", " pm.expect(estimate.tenantId).to.not.be.null;\r", " pm.expect(estimate.tenantId).to.not.be.undefined;\r", " pm.expect(estimate.tenantId).to.not.eql(\"\"); \r", "});\r", "\r", "pm.test(\"Name is mandatory\", function () {\r", " var req = JSON.parse(pm.request.body.raw);\r", " var estimate = req.estimate;\r", " pm.expect(estimate.tenantId).to.not.be.null;\r", " pm.expect(estimate.tenantId).to.not.be.undefined;\r", " pm.expect(estimate.tenantId).to.not.eql(\"\");;\r", "});\r", "\r", "pm.test(\"print and save EstimateId in environment\", function () {\r", " var res = pm.response.json();\r", " var estId = res.estimates[0].id;\r", " console.log('id:', estId);\r", " pm.environment.set('estId-WO',estId);\r", "}\r", ");\r", "\r", "pm.test(\"print and save EstimateNumber in environment\", function () {\r", " var res = pm.response.json();\r", " var estNo = res.estimates[0].estimateNumber;\r", " console.log('estimateNumber:', estNo);\r", " pm.environment.set('estNo-WO',estNo);\r", "}\r", ");\r", "\r", "let responseData = pm.response.json();\r", "\r", "pm.test(\"Response is successful\", () =>\r", " pm.expect(pm.response.to.have.status(200))\r", ");\r", "\r", "//Storing the response data into collection variable to reuse\r", "\r", "pm.collectionVariables.set(\"fileName\", responseData.estimates[0].additionalDetails.documents[0].fileName);\r", "\r", "pm.environment.set(\"estfileName\", responseData.estimates[0].additionalDetails.documents[0].fileName);\r", "\r", "pm.collectionVariables.set(\"fileStoreId\", responseData.estimates[0].additionalDetails.documents[0].fileStoreId);\r", "\r", "pm.environment.set(\"estfileStoreId\", responseData.estimates[0].additionalDetails.documents[0].fileStoreId);\r", "\r", "pm.collectionVariables.set(\"fileType\", responseData.estimates[0].additionalDetails.documents[0].fileType);\r", "\r", "pm.environment.set(\"estfileType\", responseData.estimates[0].additionalDetails.documents[0].fileType);\r", "\r", "pm.collectionVariables.set(\"boundaryType\", responseData.estimates[0].address.boundaryType);\r", "\r", "pm.collectionVariables.set(\"boundary\", responseData.estimates[0].address.boundary);\r", "pm.collectionVariables.set(\"estimateId\", responseData.estimates[0].id);\r", "\r", "pm.collectionVariables.set(\"estimateNumber\", responseData.estimates[0].estimateNumber);\r", "\r", "pm.collectionVariables.set(\"createdTime\", (responseData.estimates[0].auditDetails.createdTime));\r", "\r", "pm.collectionVariables.set(\"lastModifiedTime\", (responseData.estimates[0].auditDetails.lastModifiedTime));\r", "\r", "pm.collectionVariables.set(\"wfStatus\", responseData.estimates[0].status);\r", "\r", "pm.collectionVariables.set(\"Lineitem1\", responseData.estimates[0].estimateDetails[0].id);\r", "\r", "pm.environment.set(\"estLineitem1\", responseData.estimates[0].estimateDetails[0].id);\r", "\r", "pm.collectionVariables.set(\"Lineamount1\", responseData.estimates[0].estimateDetails[0].amountDetail[0].id);\r", "\r", "pm.environment.set(\"estLineamount1\", responseData.estimates[0].estimateDetails[0].amountDetail[0].id);\r", "\r", "pm.collectionVariables.set(\"Lineitem2\", responseData.estimates[0].estimateDetails[1].id);\r", "\r", "pm.environment.set(\"estLineitem2\", responseData.estimates[0].estimateDetails[1].id);\r", "\r", "pm.collectionVariables.set(\"estLineamount2\", responseData.estimates[0].estimateDetails[1].amountDetail[0].id);\r", "\r", "pm.environment.set(\"estLineamount2\", responseData.estimates[0].estimateDetails[1].amountDetail[0].id);\r", "\r", "pm.environment.set(\"prevEstLineitem1\", responseData.estimates[0].estimateDetails[0].previousLineItemId);\r", "\r", "pm.environment.set(\"prevEstLineitem2\", responseData.estimates[0].estimateDetails[1].previousLineItemId);\r", "\r", "\r", "// Extract the total estimated amount from the response (use the correct JSON property name)\r", "var totalEstimatedAmount = responseData.estimates[0].additionalDetails.totalEstimatedAmount;\r", "\r", "var decimalPart = totalEstimatedAmount - Math.floor(totalEstimatedAmount);// Get the decimal part of the total estimated amount\r", "\r", "if (decimalPart >=0.5) {\r", " totalEstimatedAmount = Math.ceil(totalEstimatedAmount);// Check if the decimal part is greater than 0.5 and adjust the total amount accordingly\r", "} else {\r", " totalEstimatedAmount = Math.floor(totalEstimatedAmount);\r", "}\r", "\r", "pm.collectionVariables.set(\"totalEstimatedAmount\", totalEstimatedAmount);// Store the rounded amount in a collection variable (replace 'roundedAmount' and 'myCollectionVar' as needed)\r", "\r", "pm.environment.set(\"totalEstimatedAmount\", totalEstimatedAmount);\r", "" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"estimate\": {\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"projectId\": \"{{PJId-est}}\",\r\n \"status\": \"ACTIVE\",\r\n \"wfStatus\": \"CREATED\",\r\n \"name\": \"{{randomWord}}\",\r\n \"description\": \"{{randomWord}}\",\r\n \"executingDepartment\": \"WRK\",\r\n \"address\": {\r\n \"id\": \"{{PJ-addressid}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"clientReferenceId\": null,\r\n \"doorNo\": null,\r\n \"latitude\": 0,\r\n \"longitude\": 0,\r\n \"locationAccuracy\": 0,\r\n \"type\": null,\r\n \"addressLine1\": null,\r\n \"addressLine2\": null,\r\n \"landmark\": null,\r\n \"city\": \"{{tenantId}}\",\r\n \"pincode\": null,\r\n \"buildingName\": null,\r\n \"street\": null,\r\n \"boundaryType\": \"{{boundaryType}}\",\r\n \"boundary\": \"{{boundary}}\",\r\n \"locality\": null\r\n },\r\n \"estimateDetails\": [\r\n {\r\n \"sorId\": \"SOR_000196\",\r\n \"category\": \"SOR\",\r\n \"name\": \"P.C.C. Grade M25 Using Batching plant, Transit Mixer and concrete pump (Data for 120.00 Cum) [First Floor]\",\r\n \"description\": \"LHS\",\r\n \"unitRate\": 439070.35,\r\n \"noOfunit\": 1,\r\n \"uom\": \"CUM\",\r\n \"uomValue\": 0.0,\r\n \"length\": 1,\r\n \"width\": 1,\r\n \"height\": 1,\r\n \"quantity\": 1,\r\n \"isDeduction\": false,\r\n \"amountDetail\": [\r\n {\r\n \"type\": \"EstimatedAmount\",\r\n \"amount\": 439070.35,\r\n \"isActive\": true,\r\n \"additionalDetails\": null\r\n }\r\n ],\r\n \"isActive\": true,\r\n \"additionalDetails\": null\r\n },\r\n {\r\n \"category\": \"OVERHEAD\",\r\n \"name\": \"GST\",\r\n \"description\": \"Goods and Service Tax\",\r\n \"amountDetail\": [\r\n {\r\n \"type\": \"GST\",\r\n \"amount\": \"585.6\"\r\n }\r\n ],\r\n \"additionalDetails\": {\r\n \"row\": {\r\n \"percentage\": \"18 %\",\r\n \"name\": {\r\n \"id\": \"2\",\r\n \"code\": \"GST\",\r\n \"description\": \"Goods and Service Tax\",\r\n \"active\": true,\r\n \"isAutoCalculated\": true,\r\n \"type\": \"percentage\",\r\n \"value\": \"18\",\r\n \"isWorkOrderValue\": true,\r\n \"effectiveFrom\": \"{{dateOfProposal}}\",\r\n \"effectiveTo\": null,\r\n \"name\": \"ES_COMMON_OVERHEADS_GST\"\r\n },\r\n \"amount\": \"585.6\"\r\n }\r\n }\r\n }\r\n ],\r\n \"additionalDetails\": {\r\n \"documents\": [\r\n {\r\n \"fileName\": \"WorkOrder-WO_2023-24_000266 (2).pdf\",\r\n \"fileStoreId\": \"8234d8ef-73d7-4986-b5af-c557a6436c94\",\r\n \"documentUid\": \"8234d8ef-73d7-4986-b5af-c557a6436c94\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_DETAILED_ESTIMATE\"\r\n },\r\n {\r\n \"fileName\": \"Muster-roll-MR_2023-24_06_08_000427.pdf\",\r\n \"fileStoreId\": \"652d5212-477d-4c98-8deb-599f3e5f16a8\",\r\n \"documentUid\": \"652d5212-477d-4c98-8deb-599f3e5f16a8\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_LABOUR_ANALYSIS\"\r\n },\r\n {\r\n \"fileName\": \"WorkOrder (3).pdf\",\r\n \"fileStoreId\": \"e29bd685-a6dc-420f-8c22-59dc4061689a\",\r\n \"documentUid\": \"e29bd685-a6dc-420f-8c22-59dc4061689a\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_MATERIAL_ANALYSIS\"\r\n },\r\n {\r\n \"fileType\": \"ESTIMATE_DOC_DESIGN_DOCUMENT\"\r\n },\r\n {\r\n \"fileName\": \"\",\r\n \"fileType\": \"Others\"\r\n }\r\n ],\r\n \"labourMaterialAnalysis\": {\r\n \"labour\": \"50\",\r\n \"material\": \"50\"\r\n },\r\n \"creator\": \"SMS QA testing\",\r\n \"location\": {\r\n \"locality\": \"B1\",\r\n \"ward\": \"B1\",\r\n \"city\": \"{{tenantId}}\"\r\n },\r\n \"ward\": \"B1\",\r\n \"locality\": \"SUN01\",\r\n \"projectNumber\": \"{{PJNo-est}}\",\r\n \"totalEstimatedAmount\": 10012.3,\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"projectName\": \"{{randomWord}}\"\r\n }\r\n },\r\n \"workflow\": {\r\n \"action\": \"SUBMIT\"\r\n },\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"authToken\": \"{{auth}}\",\r\n \"msgId\": \"1694064135997|en_IN\",\r\n \"plainAccessRequest\": {}\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/estimate/v1/_create", "host": [ "{{base_url}}" ], "path": [ "estimate", "v1", "_create" ] } }, "response": [ { "name": "_create_estimate-success", "originalRequest": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"estimate\": {\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"projectId\": \"{{PJId-est}}\",\r\n \"status\": \"ACTIVE\",\r\n \"wfStatus\": \"CREATED\",\r\n \"name\": \"{{randomWord}}\",\r\n \"description\": \"{{randomWord}}\",\r\n \"executingDepartment\": \"WRK\",\r\n \"address\": {\r\n \"id\": \"{{PJ-addressid}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"clientReferenceId\": null,\r\n \"doorNo\": null,\r\n \"latitude\": 0,\r\n \"longitude\": 0,\r\n \"locationAccuracy\": 0,\r\n \"type\": null,\r\n \"addressLine1\": null,\r\n \"addressLine2\": null,\r\n \"landmark\": null,\r\n \"city\": \"{{tenantId}}\",\r\n \"pincode\": null,\r\n \"buildingName\": null,\r\n \"street\": null,\r\n \"boundaryType\": \"Ward\",\r\n \"boundary\": \"B1\",\r\n \"locality\": null\r\n },\r\n \"estimateDetails\": [\r\n {\r\n \"sorId\": 45,\r\n \"category\": \"NON-SOR\",\r\n \"name\": \"Testing 01\",\r\n \"description\": \"Testing 01\",\r\n \"unitRate\": \"250\",\r\n \"noOfunit\": \"12\",\r\n \"uom\": \"KG\",\r\n \"amountDetail\": [\r\n {\r\n \"type\": \"EstimatedAmount\",\r\n \"amount\": \"3000.00\",\r\n \"additionalDetails\": {}\r\n }\r\n ]\r\n },\r\n {\r\n \"sorId\": 45,\r\n \"category\": \"NON-SOR\",\r\n \"name\": \"Testing 02\",\r\n \"description\": \"Testing 02\",\r\n \"unitRate\": \"125\",\r\n \"noOfunit\": \"25\",\r\n \"uom\": \"SQM\",\r\n \"amountDetail\": [\r\n {\r\n \"type\": \"EstimatedAmount\",\r\n \"amount\": \"3125.00\",\r\n \"additionalDetails\": {}\r\n }\r\n ]\r\n },\r\n {\r\n \"sorId\": 45,\r\n \"category\": \"NON-SOR\",\r\n \"name\": \"Testing 03\",\r\n \"description\": \"Testing 03\",\r\n \"unitRate\": \"135\",\r\n \"noOfunit\": \"11\",\r\n \"uom\": \"RMT\",\r\n \"amountDetail\": [\r\n {\r\n \"type\": \"EstimatedAmount\",\r\n \"amount\": \"1485.00\",\r\n \"additionalDetails\": {}\r\n }\r\n ]\r\n },\r\n {\r\n \"category\": \"OVERHEAD\",\r\n \"name\": \"GST\",\r\n \"description\": \"Goods and Service Tax\",\r\n \"amountDetail\": [\r\n {\r\n \"type\": \"GST\",\r\n \"amount\": \"1369.80\"\r\n }\r\n ],\r\n \"additionalDetails\": {\r\n \"row\": {\r\n \"percentage\": \"18 %\",\r\n \"name\": {\r\n \"id\": \"2\",\r\n \"code\": \"GST\",\r\n \"description\": \"Goods and Service Tax\",\r\n \"active\": true,\r\n \"isAutoCalculated\": true,\r\n \"type\": \"percentage\",\r\n \"value\": \"18\",\r\n \"isWorkOrderValue\": true,\r\n \"effectiveFrom\": \"{{dateOfProposal}}\",\r\n \"effectiveTo\": null,\r\n \"name\": \"ES_COMMON_OVERHEADS_GST\"\r\n },\r\n \"amount\": \"1369.80\"\r\n }\r\n }\r\n }\r\n ],\r\n \"additionalDetails\": {\r\n \"documents\": [\r\n {\r\n \"fileName\": \"WorkOrder-WO_2023-24_000266 (2).pdf\",\r\n \"fileStoreId\": \"8234d8ef-73d7-4986-b5af-c557a6436c94\",\r\n \"documentUid\": \"8234d8ef-73d7-4986-b5af-c557a6436c94\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_DETAILED_ESTIMATE\"\r\n },\r\n {\r\n \"fileName\": \"Muster-roll-MR_2023-24_06_08_000427.pdf\",\r\n \"fileStoreId\": \"652d5212-477d-4c98-8deb-599f3e5f16a8\",\r\n \"documentUid\": \"652d5212-477d-4c98-8deb-599f3e5f16a8\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_LABOUR_ANALYSIS\"\r\n },\r\n {\r\n \"fileName\": \"WorkOrder (3).pdf\",\r\n \"fileStoreId\": \"e29bd685-a6dc-420f-8c22-59dc4061689a\",\r\n \"documentUid\": \"e29bd685-a6dc-420f-8c22-59dc4061689a\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_MATERIAL_ANALYSIS\"\r\n },\r\n {\r\n \"fileType\": \"ESTIMATE_DOC_DESIGN_DOCUMENT\"\r\n },\r\n {\r\n \"fileName\": \"\",\r\n \"fileType\": \"Others\"\r\n }\r\n ],\r\n \"labourMaterialAnalysis\": {\r\n \"labour\": \"50\",\r\n \"material\": \"50\"\r\n },\r\n \"creator\": \"SMS QA testing\",\r\n \"location\": {\r\n \"locality\": \"B1\",\r\n \"ward\": \"B1\",\r\n \"city\": \"{{tenantId}}\"\r\n },\r\n \"ward\": \"B1\",\r\n \"locality\": \"SUN01\",\r\n \"projectNumber\": \"PJ/2023-24/09/000767\",\r\n \"totalEstimatedAmount\": 8979.8,\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"projectName\": \"Test Automation\"\r\n }\r\n },\r\n \"workflow\": {\r\n \"action\": \"SUBMIT\",\r\n \"assignees\": [\r\n \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\"\r\n ]\r\n },\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"authToken\": \"{{auth}}\",\r\n \"userInfo\": {\r\n \"id\": 444,\r\n \"uuid\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\r\n \"userName\": \"SMS QA testing\",\r\n \"name\": \"SMS QA testing\",\r\n \"mobileNumber\": \"9043685314\",\r\n \"emailId\": \"\",\r\n \"locale\": null,\r\n \"type\": \"EMPLOYEE\",\r\n \"roles\": [\r\n {\r\n \"name\": \"HRMS Admin\",\r\n \"code\": \"HRMS_ADMIN\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"WORK_ORDER_VIEWER\",\r\n \"code\": \"WORK_ORDER_VIEWER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"BILL_ACCOUNTANT\",\r\n \"code\": \"BILL_ACCOUNTANT\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"WORK ORDER CREATOR\",\r\n \"code\": \"WORK_ORDER_CREATOR\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"ESTIMATE VERIFIER\",\r\n \"code\": \"ESTIMATE_VERIFIER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"BILL_VERIFIER\",\r\n \"code\": \"BILL_VERIFIER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"ESTIMATE APPROVER\",\r\n \"code\": \"ESTIMATE_APPROVER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"Organization viewer\",\r\n \"code\": \"ORG_VIEWER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"WORK ORDER VERIFIER\",\r\n \"code\": \"WORK_ORDER_VERIFIER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"PROJECT VIEWER\",\r\n \"code\": \"PROJECT_VIEWER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"BILL_APPROVER\",\r\n \"code\": \"BILL_APPROVER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"MUSTER ROLL VERIFIER\",\r\n \"code\": \"MUSTER_ROLL_VERIFIER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"OFFICER IN CHARGE\",\r\n \"code\": \"OFFICER_IN_CHARGE\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"PROJECT CREATOR\",\r\n \"code\": \"PROJECT_CREATOR\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"Employee Common\",\r\n \"code\": \"EMPLOYEE_COMMON\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"BILL_VIEWER\",\r\n \"code\": \"BILL_VIEWER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"TECHNICAL SANCTIONER\",\r\n \"code\": \"TECHNICAL_SANCTIONER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"BILL_CREATOR\",\r\n \"code\": \"BILL_CREATOR\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"MUSTER ROLL APPROVER\",\r\n \"code\": \"MUSTER_ROLL_APPROVER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"ESTIMATE VIEWER\",\r\n \"code\": \"ESTIMATE_VIEWER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"WORK ORDER APPROVER\",\r\n \"code\": \"WORK_ORDER_APPROVER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"ESTIMATE CREATOR\",\r\n \"code\": \"ESTIMATE_CREATOR\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"State Dashboard Admin\",\r\n \"code\": \"STADMIN\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"MUKTA Admin\",\r\n \"code\": \"MUKTA_ADMIN\",\r\n \"tenantId\": \"pg.citya\"\r\n }\r\n ],\r\n \"active\": true,\r\n \"tenantId\": \"pg.citya\",\r\n \"permanentCity\": \"CityA\"\r\n },\r\n \"msgId\": \"1694064135997|en_IN\",\r\n \"plainAccessRequest\": {}\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/estimate/v1/_create", "host": [ "{{base_url}}" ], "path": [ "estimate", "v1", "_create" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Date", "value": "Thu, 07 Sep 2023 07:44:30 GMT" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "Vary", "value": "Accept-Encoding" }, { "key": "Strict-Transport-Security", "value": "max-age=63072000; includeSubdomains; preload" }, { "key": "X-Lua-Resty-WAF-ID", "value": "7bcb9df1944a60e3d526" }, { "key": "x-correlation-id", "value": "bc17f438-f65d-45b8-b0cf-405c03c146b8" }, { "key": "Cache-Control", "value": "no-cache, no-store, max-age=0, must-revalidate" }, { "key": "Content-Security-Policy", "value": "default-src 'self' https: 'unsafe-eval' 'unsafe-inline'; object-src 'none'; img-src 'self' https: data: blob:; style-src https: blob: 'unsafe-inline'; worker-src 'self' blob:; font-src 'self' https: data: blob:; child-src 'self' https: data: blob:;" }, { "key": "Referrer-Policy", "value": "no-referrer-when-downgrade" }, { "key": "X-Content-Type-Options", "value": "nosniff" }, { "key": "X-Download-Options", "value": "noopen" }, { "key": "X-Frame-Options", "value": "sameorigin" }, { "key": "X-XSS-Protection", "value": "1" }, { "key": "Content-Encoding", "value": "gzip" } ], "cookie": [], "body": "{\n \"ResponseInfo\": {\n \"apiId\": \"Rainmaker\",\n \"ver\": null,\n \"ts\": null,\n \"resMsgId\": \"uief87324\",\n \"msgId\": \"1694064135997|en_IN\",\n \"status\": \"successful\"\n },\n \"estimates\": [\n {\n \"id\": \"75f0dd96-21ee-4974-bee9-4ea37952d9fb\",\n \"tenantId\": \"pg.citya\",\n \"estimateNumber\": \"ES/2023-24/000741\",\n \"projectId\": \"32ba7edc-14ba-4034-9a41-f5ee3663681e\",\n \"proposalDate\": 1694072670231,\n \"status\": \"INWORKFLOW\",\n \"wfStatus\": \"PENDINGFORVERIFICATION\",\n \"name\": \"urate\",\n \"referenceNumber\": null,\n \"description\": \"urate\",\n \"executingDepartment\": \"WRK\",\n \"address\": {\n \"id\": \"5f7a4913-4d57-410f-bffe-c1e3fb63d3d8\",\n \"tenantId\": \"pg.citya\",\n \"doorNo\": null,\n \"latitude\": 0,\n \"longitude\": 0,\n \"locationAccuracy\": 0,\n \"type\": null,\n \"addressNumber\": null,\n \"addressLine1\": null,\n \"addressLine2\": null,\n \"landmark\": null,\n \"city\": \"pg.citya\",\n \"pincode\": null,\n \"detail\": null,\n \"buildingName\": null,\n \"street\": null,\n \"boundaryType\": \"Ward\",\n \"boundary\": \"B1\",\n \"auditDetails\": null\n },\n \"estimateDetails\": [\n {\n \"id\": \"6ef721f5-2f4f-4b02-a08d-e3697dc34b9b\",\n \"sorId\": \"45\",\n \"category\": \"NON-SOR\",\n \"name\": \"Testing 01\",\n \"description\": \"Testing 01\",\n \"unitRate\": 250,\n \"noOfunit\": 12,\n \"uom\": \"KG\",\n \"uomValue\": null,\n \"amountDetail\": [\n {\n \"id\": \"88f2c99b-91f7-4fe2-b1e8-aa4ddf681ef9\",\n \"type\": \"EstimatedAmount\",\n \"amount\": 3000,\n \"isActive\": true,\n \"additionalDetails\": {}\n }\n ],\n \"isActive\": true,\n \"additionalDetails\": null\n },\n {\n \"id\": \"eadad260-916e-4a0b-b0ff-a3364b6019da\",\n \"sorId\": \"45\",\n \"category\": \"NON-SOR\",\n \"name\": \"Testing 02\",\n \"description\": \"Testing 02\",\n \"unitRate\": 125,\n \"noOfunit\": 25,\n \"uom\": \"SQM\",\n \"uomValue\": null,\n \"amountDetail\": [\n {\n \"id\": \"2ec1be67-b482-40e4-a8ca-098d454a9c8a\",\n \"type\": \"EstimatedAmount\",\n \"amount\": 3125,\n \"isActive\": true,\n \"additionalDetails\": {}\n }\n ],\n \"isActive\": true,\n \"additionalDetails\": null\n },\n {\n \"id\": \"b3996d49-4183-4585-a406-b038ab498197\",\n \"sorId\": \"45\",\n \"category\": \"NON-SOR\",\n \"name\": \"Testing 03\",\n \"description\": \"Testing 03\",\n \"unitRate\": 135,\n \"noOfunit\": 11,\n \"uom\": \"RMT\",\n \"uomValue\": null,\n \"amountDetail\": [\n {\n \"id\": \"003a20b9-4ea0-40fe-ad64-22149a43b6ed\",\n \"type\": \"EstimatedAmount\",\n \"amount\": 1485,\n \"isActive\": true,\n \"additionalDetails\": {}\n }\n ],\n \"isActive\": true,\n \"additionalDetails\": null\n },\n {\n \"id\": \"6615ffe6-43a2-4923-9935-25a7f5f6304a\",\n \"sorId\": null,\n \"category\": \"OVERHEAD\",\n \"name\": \"GST\",\n \"description\": \"Goods and Service Tax\",\n \"unitRate\": null,\n \"noOfunit\": null,\n \"uom\": null,\n \"uomValue\": null,\n \"amountDetail\": [\n {\n \"id\": \"9b50b779-546a-46aa-b3f3-75ea54839bca\",\n \"type\": \"GST\",\n \"amount\": 1369.8,\n \"isActive\": true,\n \"additionalDetails\": null\n }\n ],\n \"isActive\": true,\n \"additionalDetails\": {\n \"row\": {\n \"percentage\": \"18 %\",\n \"name\": {\n \"id\": \"2\",\n \"code\": \"GST\",\n \"description\": \"Goods and Service Tax\",\n \"active\": true,\n \"isAutoCalculated\": true,\n \"type\": \"percentage\",\n \"value\": \"18\",\n \"isWorkOrderValue\": true,\n \"effectiveFrom\": \"1694072657523\",\n \"effectiveTo\": null,\n \"name\": \"ES_COMMON_OVERHEADS_GST\"\n },\n \"amount\": \"1369.80\"\n }\n }\n }\n ],\n \"auditDetails\": {\n \"createdBy\": \"85d48838-bb62-4eba-9e41-bddbf00add5b\",\n \"lastModifiedBy\": \"85d48838-bb62-4eba-9e41-bddbf00add5b\",\n \"createdTime\": 1694072670231,\n \"lastModifiedTime\": 1694072670231\n },\n \"additionalDetails\": {\n \"documents\": [\n {\n \"fileName\": \"WorkOrder-WO_2023-24_000266 (2).pdf\",\n \"fileStoreId\": \"8234d8ef-73d7-4986-b5af-c557a6436c94\",\n \"documentUid\": \"8234d8ef-73d7-4986-b5af-c557a6436c94\",\n \"tenantId\": \"pg.citya\",\n \"fileType\": \"ESTIMATE_DOC_DETAILED_ESTIMATE\"\n },\n {\n \"fileName\": \"Muster-roll-MR_2023-24_06_08_000427.pdf\",\n \"fileStoreId\": \"652d5212-477d-4c98-8deb-599f3e5f16a8\",\n \"documentUid\": \"652d5212-477d-4c98-8deb-599f3e5f16a8\",\n \"tenantId\": \"pg.citya\",\n \"fileType\": \"ESTIMATE_DOC_LABOUR_ANALYSIS\"\n },\n {\n \"fileName\": \"WorkOrder (3).pdf\",\n \"fileStoreId\": \"e29bd685-a6dc-420f-8c22-59dc4061689a\",\n \"documentUid\": \"e29bd685-a6dc-420f-8c22-59dc4061689a\",\n \"tenantId\": \"pg.citya\",\n \"fileType\": \"ESTIMATE_DOC_MATERIAL_ANALYSIS\"\n },\n {\n \"fileType\": \"ESTIMATE_DOC_DESIGN_DOCUMENT\"\n },\n {\n \"fileName\": \"\",\n \"fileType\": \"Others\"\n }\n ],\n \"labourMaterialAnalysis\": {\n \"labour\": \"50\",\n \"material\": \"50\"\n },\n \"creator\": \"SMS QA testing\",\n \"location\": {\n \"locality\": \"B1\",\n \"ward\": \"B1\",\n \"city\": \"pg.citya\"\n },\n \"ward\": \"B1\",\n \"locality\": \"SUN01\",\n \"projectNumber\": \"PJ/2023-24/09/000767\",\n \"totalEstimatedAmount\": 8979.8,\n \"tenantId\": \"pg.citya\",\n \"projectName\": \"Test Automation\"\n },\n \"project\": null,\n \"ProcessInstances\": null\n }\n ],\n \"TotalCount\": null\n}" }, { "name": "Create Estimate - Success", "originalRequest": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"estimate\": {\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"projectId\": \"{{PJId-est}}\",\r\n \"status\": \"ACTIVE\",\r\n \"wfStatus\": \"CREATED\",\r\n \"name\": \"{{randomWord}}\",\r\n \"description\": \"{{randomWord}}\",\r\n \"executingDepartment\": \"WRK\",\r\n \"address\": {\r\n \"id\": \"{{PJ-addressid}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"clientReferenceId\": null,\r\n \"doorNo\": null,\r\n \"latitude\": 0,\r\n \"longitude\": 0,\r\n \"locationAccuracy\": 0,\r\n \"type\": null,\r\n \"addressLine1\": null,\r\n \"addressLine2\": null,\r\n \"landmark\": null,\r\n \"city\": \"{{tenantId}}\",\r\n \"pincode\": null,\r\n \"buildingName\": null,\r\n \"street\": null,\r\n \"boundaryType\": \"{{boundaryType}}\",\r\n \"boundary\": \"{{boundary}}\",\r\n \"locality\": null\r\n },\r\n \"estimateDetails\": [\r\n {\r\n \"sorId\": 45,\r\n \"category\": \"NON-SOR\",\r\n \"name\": \"Testing 01\",\r\n \"description\": \"Testing 01\",\r\n \"unitRate\": \"250.28\",\r\n \"noOfunit\": \"13\",\r\n \"uom\": \"KG\",\r\n \"amountDetail\": [\r\n {\r\n \"type\": \"EstimatedAmount\",\r\n \"amount\": \"3253.6\",\r\n \"additionalDetails\": {}\r\n }\r\n ]\r\n },\r\n {\r\n \"category\": \"OVERHEAD\",\r\n \"name\": \"GST\",\r\n \"description\": \"Goods and Service Tax\",\r\n \"amountDetail\": [\r\n {\r\n \"type\": \"GST\",\r\n \"amount\": \"585.6\"\r\n }\r\n ],\r\n \"additionalDetails\": {\r\n \"row\": {\r\n \"percentage\": \"18 %\",\r\n \"name\": {\r\n \"id\": \"2\",\r\n \"code\": \"GST\",\r\n \"description\": \"Goods and Service Tax\",\r\n \"active\": true,\r\n \"isAutoCalculated\": true,\r\n \"type\": \"percentage\",\r\n \"value\": \"18\",\r\n \"isWorkOrderValue\": true,\r\n \"effectiveFrom\": \"{{dateOfProposal}}\",\r\n \"effectiveTo\": null,\r\n \"name\": \"ES_COMMON_OVERHEADS_GST\"\r\n },\r\n \"amount\": \"585.6\"\r\n }\r\n }\r\n }\r\n ],\r\n \"additionalDetails\": {\r\n \"documents\": [\r\n {\r\n \"fileName\": \"WorkOrder-WO_2023-24_000266 (2).pdf\",\r\n \"fileStoreId\": \"8234d8ef-73d7-4986-b5af-c557a6436c94\",\r\n \"documentUid\": \"8234d8ef-73d7-4986-b5af-c557a6436c94\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_DETAILED_ESTIMATE\"\r\n },\r\n {\r\n \"fileName\": \"Muster-roll-MR_2023-24_06_08_000427.pdf\",\r\n \"fileStoreId\": \"652d5212-477d-4c98-8deb-599f3e5f16a8\",\r\n \"documentUid\": \"652d5212-477d-4c98-8deb-599f3e5f16a8\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_LABOUR_ANALYSIS\"\r\n },\r\n {\r\n \"fileName\": \"WorkOrder (3).pdf\",\r\n \"fileStoreId\": \"e29bd685-a6dc-420f-8c22-59dc4061689a\",\r\n \"documentUid\": \"e29bd685-a6dc-420f-8c22-59dc4061689a\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_MATERIAL_ANALYSIS\"\r\n },\r\n {\r\n \"fileType\": \"ESTIMATE_DOC_DESIGN_DOCUMENT\"\r\n },\r\n {\r\n \"fileName\": \"\",\r\n \"fileType\": \"Others\"\r\n }\r\n ],\r\n \"labourMaterialAnalysis\": {\r\n \"labour\": \"50\",\r\n \"material\": \"50\"\r\n },\r\n \"creator\": \"SMS QA testing\",\r\n \"location\": {\r\n \"locality\": \"B1\",\r\n \"ward\": \"B1\",\r\n \"city\": \"{{tenantId}}\"\r\n },\r\n \"ward\": \"B1\",\r\n \"locality\": \"SUN01\",\r\n \"projectNumber\": \"{{PJNo-est}}\",\r\n \"totalEstimatedAmount\": 10012.3,\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"projectName\": \"{{randomWord}}\"\r\n }\r\n },\r\n \"workflow\": {\r\n \"action\": \"SUBMIT\"\r\n },\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"authToken\": \"{{auth}}\",\r\n \"msgId\": \"1694064135997|en_IN\",\r\n \"plainAccessRequest\": {}\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/estimate/v1/_create", "host": [ "{{base_url}}" ], "path": [ "estimate", "v1", "_create" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Date", "value": "Tue, 28 Nov 2023 06:29:04 GMT" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "x-correlation-id", "value": "0814d9e7-a304-490e-8432-067d25d85556" }, { "key": "Cache-Control", "value": "no-cache, no-store, max-age=0, must-revalidate" }, { "key": "Strict-Transport-Security", "value": "max-age=15724800; includeSubDomains" } ], "cookie": [], "body": "{\n \"ResponseInfo\": {\n \"apiId\": \"Rainmaker\",\n \"ver\": null,\n \"ts\": null,\n \"resMsgId\": \"uief87324\",\n \"msgId\": \"1694064135997|en_IN\",\n \"status\": \"successful\"\n },\n \"estimates\": [\n {\n \"id\": \"80484679-44eb-4e89-bd7a-02e0d1b8c43a\",\n \"tenantId\": \"pg.citya\",\n \"estimateNumber\": \"ES/2023-24/002180\",\n \"revisionNumber\": null,\n \"businessService\": null,\n \"versionNumber\": 1,\n \"oldUuid\": null,\n \"projectId\": \"92859682-0971-4ea0-9a32-4cc7d5b21c18\",\n \"proposalDate\": 1701152944380,\n \"status\": \"INWORKFLOW\",\n \"wfStatus\": \"PENDINGFORVERIFICATION\",\n \"name\": \"Inbox\",\n \"referenceNumber\": null,\n \"description\": \"Inbox\",\n \"executingDepartment\": \"WRK\",\n \"address\": {\n \"id\": \"5b21e50a-d74f-4279-afc0-4d54bb0cb104\",\n \"tenantId\": \"pg.citya\",\n \"doorNo\": null,\n \"latitude\": 0,\n \"longitude\": 0,\n \"locationAccuracy\": 0,\n \"type\": null,\n \"addressNumber\": null,\n \"addressLine1\": null,\n \"addressLine2\": null,\n \"landmark\": null,\n \"city\": \"pg.citya\",\n \"pincode\": null,\n \"detail\": null,\n \"buildingName\": null,\n \"street\": null,\n \"boundaryType\": \"\",\n \"boundary\": \"\",\n \"auditDetails\": null\n },\n \"estimateDetails\": [\n {\n \"id\": \"3ea07ec3-cae8-4679-b3d8-1f9dff93dc24\",\n \"previousLineItemId\": null,\n \"sorId\": \"45\",\n \"category\": \"NON-SOR\",\n \"name\": \"Testing 01\",\n \"description\": \"Testing 01\",\n \"unitRate\": 250.28,\n \"noOfunit\": 13,\n \"uom\": \"KG\",\n \"uomValue\": null,\n \"length\": null,\n \"width\": null,\n \"height\": null,\n \"quantity\": null,\n \"isDeduction\": null,\n \"amountDetail\": [\n {\n \"id\": \"18451c3e-0806-4e06-93ec-97accc3b5c5c\",\n \"type\": \"EstimatedAmount\",\n \"amount\": 3253.6,\n \"isActive\": true,\n \"additionalDetails\": {}\n }\n ],\n \"isActive\": true,\n \"additionalDetails\": null\n },\n {\n \"id\": \"3b86c2b5-e0c0-4546-91af-9152ebb25969\",\n \"previousLineItemId\": null,\n \"sorId\": null,\n \"category\": \"OVERHEAD\",\n \"name\": \"GST\",\n \"description\": \"Goods and Service Tax\",\n \"unitRate\": null,\n \"noOfunit\": null,\n \"uom\": null,\n \"uomValue\": null,\n \"length\": null,\n \"width\": null,\n \"height\": null,\n \"quantity\": null,\n \"isDeduction\": null,\n \"amountDetail\": [\n {\n \"id\": \"5013011d-277a-48cc-9f86-7584f8b1198a\",\n \"type\": \"GST\",\n \"amount\": 585.6,\n \"isActive\": true,\n \"additionalDetails\": null\n }\n ],\n \"isActive\": true,\n \"additionalDetails\": {\n \"row\": {\n \"percentage\": \"18 %\",\n \"name\": {\n \"id\": \"2\",\n \"code\": \"GST\",\n \"description\": \"Goods and Service Tax\",\n \"active\": true,\n \"isAutoCalculated\": true,\n \"type\": \"percentage\",\n \"value\": \"18\",\n \"isWorkOrderValue\": true,\n \"effectiveFrom\": \"\",\n \"effectiveTo\": null,\n \"name\": \"ES_COMMON_OVERHEADS_GST\"\n },\n \"amount\": \"585.6\"\n }\n }\n }\n ],\n \"auditDetails\": {\n \"createdBy\": \"40e3b45a-0f64-4e8c-8768-aab82c095b2d\",\n \"lastModifiedBy\": \"40e3b45a-0f64-4e8c-8768-aab82c095b2d\",\n \"createdTime\": 1701152944380,\n \"lastModifiedTime\": 1701152944380\n },\n \"additionalDetails\": {\n \"documents\": [\n {\n \"fileName\": \"WorkOrder-WO_2023-24_000266 (2).pdf\",\n \"fileStoreId\": \"8234d8ef-73d7-4986-b5af-c557a6436c94\",\n \"documentUid\": \"8234d8ef-73d7-4986-b5af-c557a6436c94\",\n \"tenantId\": \"pg.citya\",\n \"fileType\": \"ESTIMATE_DOC_DETAILED_ESTIMATE\"\n },\n {\n \"fileName\": \"Muster-roll-MR_2023-24_06_08_000427.pdf\",\n \"fileStoreId\": \"652d5212-477d-4c98-8deb-599f3e5f16a8\",\n \"documentUid\": \"652d5212-477d-4c98-8deb-599f3e5f16a8\",\n \"tenantId\": \"pg.citya\",\n \"fileType\": \"ESTIMATE_DOC_LABOUR_ANALYSIS\"\n },\n {\n \"fileName\": \"WorkOrder (3).pdf\",\n \"fileStoreId\": \"e29bd685-a6dc-420f-8c22-59dc4061689a\",\n \"documentUid\": \"e29bd685-a6dc-420f-8c22-59dc4061689a\",\n \"tenantId\": \"pg.citya\",\n \"fileType\": \"ESTIMATE_DOC_MATERIAL_ANALYSIS\"\n },\n {\n \"fileType\": \"ESTIMATE_DOC_DESIGN_DOCUMENT\"\n },\n {\n \"fileName\": \"\",\n \"fileType\": \"Others\"\n }\n ],\n \"labourMaterialAnalysis\": {\n \"labour\": \"50\",\n \"material\": \"50\"\n },\n \"creator\": \"SMS QA testing\",\n \"location\": {\n \"locality\": \"B1\",\n \"ward\": \"B1\",\n \"city\": \"pg.citya\"\n },\n \"ward\": \"B1\",\n \"locality\": \"SUN01\",\n \"projectNumber\": \"PJ/2023-24/05/002231\",\n \"totalEstimatedAmount\": 10012.3,\n \"tenantId\": \"pg.citya\",\n \"projectName\": \"Inbox\"\n },\n \"project\": null,\n \"ProcessInstances\": null\n }\n ],\n \"TotalCount\": null\n}" } ] }, { "name": "Create Estimate - Validation error - TenantId Mandatory", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => {\r", " pm.expect(pm.response.to.have.status(400));\r", "});\r", " \r", "\r", "pm.test(\"Correct Error with message and code is received\", function () {\r", " var res = pm.response.json();\r", " var code = res.Errors[0].code;\r", " var message = res.Errors[0].message;\r", " pm.expect(code).to.eql(\"TENANT_ID\");\r", " pm.expect(message).to.eql(\"TenantId is mandatory\");\r", " }\r", ");" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"estimate\": {\r\n \"projectId\": \"{{PJId-est}}\",\r\n \"status\": \"ACTIVE\",\r\n \"wfStatus\": \"CREATED\",\r\n \"name\": \"{{randomWord}}\",\r\n \"description\": \"{{randomWord}}\",\r\n \"executingDepartment\": \"WRK\",\r\n \"address\": {\r\n \"id\": \"{{PJ-addressid}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"clientReferenceId\": null,\r\n \"doorNo\": null,\r\n \"latitude\": 0,\r\n \"longitude\": 0,\r\n \"locationAccuracy\": 0,\r\n \"type\": null,\r\n \"addressLine1\": null,\r\n \"addressLine2\": null,\r\n \"landmark\": null,\r\n \"city\": \"{{tenantId}}\",\r\n \"pincode\": null,\r\n \"buildingName\": null,\r\n \"street\": null,\r\n \"boundaryType\": \"{{boundaryType}}\",\r\n \"boundary\": \"{{boundary}}\",\r\n \"locality\": null\r\n },\r\n \"estimateDetails\": [\r\n {\r\n \"sorId\": 45,\r\n \"category\": \"NON-SOR\",\r\n \"name\": \"Testing 01\",\r\n \"description\": \"Testing 01\",\r\n \"unitRate\": \"250\",\r\n \"noOfunit\": \"12\",\r\n \"uom\": \"KG\",\r\n \"amountDetail\": [\r\n {\r\n \"type\": \"EstimatedAmount\",\r\n \"amount\": \"3000.00\",\r\n \"additionalDetails\": {}\r\n }\r\n ]\r\n },\r\n {\r\n \"sorId\": 45,\r\n \"category\": \"NON-SOR\",\r\n \"name\": \"Testing 02\",\r\n \"description\": \"Testing 02\",\r\n \"unitRate\": \"125\",\r\n \"noOfunit\": \"25\",\r\n \"uom\": \"SQM\",\r\n \"amountDetail\": [\r\n {\r\n \"type\": \"EstimatedAmount\",\r\n \"amount\": \"3125.00\",\r\n \"additionalDetails\": {}\r\n }\r\n ]\r\n },\r\n {\r\n \"sorId\": 45,\r\n \"category\": \"NON-SOR\",\r\n \"name\": \"Testing 03\",\r\n \"description\": \"Testing 03\",\r\n \"unitRate\": \"135\",\r\n \"noOfunit\": \"11\",\r\n \"uom\": \"RMT\",\r\n \"amountDetail\": [\r\n {\r\n \"type\": \"EstimatedAmount\",\r\n \"amount\": \"1485.00\",\r\n \"additionalDetails\": {}\r\n }\r\n ]\r\n },\r\n {\r\n \"category\": \"OVERHEAD\",\r\n \"name\": \"GST\",\r\n \"description\": \"Goods and Service Tax\",\r\n \"amountDetail\": [\r\n {\r\n \"type\": \"GST\",\r\n \"amount\": \"1369.80\"\r\n }\r\n ],\r\n \"additionalDetails\": {\r\n \"row\": {\r\n \"percentage\": \"18 %\",\r\n \"name\": {\r\n \"id\": \"2\",\r\n \"code\": \"GST\",\r\n \"description\": \"Goods and Service Tax\",\r\n \"active\": true,\r\n \"isAutoCalculated\": true,\r\n \"type\": \"percentage\",\r\n \"value\": \"18\",\r\n \"isWorkOrderValue\": true,\r\n \"effectiveFrom\": \"{{dateOfProposal}}\",\r\n \"effectiveTo\": null,\r\n \"name\": \"ES_COMMON_OVERHEADS_GST\"\r\n },\r\n \"amount\": \"1369.80\"\r\n }\r\n }\r\n }\r\n ],\r\n \"additionalDetails\": {\r\n \"documents\": [\r\n {\r\n \"fileName\": \"WorkOrder-WO_2023-24_000266 (2).pdf\",\r\n \"fileStoreId\": \"8234d8ef-73d7-4986-b5af-c557a6436c94\",\r\n \"documentUid\": \"8234d8ef-73d7-4986-b5af-c557a6436c94\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_DETAILED_ESTIMATE\"\r\n },\r\n {\r\n \"fileName\": \"Muster-roll-MR_2023-24_06_08_000427.pdf\",\r\n \"fileStoreId\": \"652d5212-477d-4c98-8deb-599f3e5f16a8\",\r\n \"documentUid\": \"652d5212-477d-4c98-8deb-599f3e5f16a8\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_LABOUR_ANALYSIS\"\r\n },\r\n {\r\n \"fileName\": \"WorkOrder (3).pdf\",\r\n \"fileStoreId\": \"e29bd685-a6dc-420f-8c22-59dc4061689a\",\r\n \"documentUid\": \"e29bd685-a6dc-420f-8c22-59dc4061689a\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_MATERIAL_ANALYSIS\"\r\n },\r\n {\r\n \"fileType\": \"ESTIMATE_DOC_DESIGN_DOCUMENT\"\r\n },\r\n {\r\n \"fileName\": \"\",\r\n \"fileType\": \"Others\"\r\n }\r\n ],\r\n \"labourMaterialAnalysis\": {\r\n \"labour\": \"50\",\r\n \"material\": \"50\"\r\n },\r\n \"creator\": \"SMS QA testing\",\r\n \"location\": {\r\n \"locality\": \"B1\",\r\n \"ward\": \"B1\",\r\n \"city\": \"{{tenantId}}\"\r\n },\r\n \"ward\": \"B1\",\r\n \"locality\": \"SUN01\",\r\n \"projectNumber\": \"{{PJNo-est}}\",\r\n \"totalEstimatedAmount\": 8979.8,\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"projectName\": \"{{randomWord}}\"\r\n }\r\n },\r\n \"workflow\": {\r\n \"action\": \"SUBMIT\",\r\n \"assignees\": [\r\n \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\"\r\n ]\r\n },\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"authToken\": \"{{auth}}\",\r\n \"userInfo\": {\r\n \"id\": 444,\r\n \"uuid\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\r\n \"userName\": \"SMS QA testing\",\r\n \"name\": \"SMS QA testing\",\r\n \"mobileNumber\": \"9043685314\",\r\n \"emailId\": \"\",\r\n \"locale\": null,\r\n \"type\": \"EMPLOYEE\",\r\n \"roles\": [\r\n {\r\n \"name\": \"HRMS Admin\",\r\n \"code\": \"HRMS_ADMIN\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"WORK_ORDER_VIEWER\",\r\n \"code\": \"WORK_ORDER_VIEWER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"BILL_ACCOUNTANT\",\r\n \"code\": \"BILL_ACCOUNTANT\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"WORK ORDER CREATOR\",\r\n \"code\": \"WORK_ORDER_CREATOR\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"ESTIMATE VERIFIER\",\r\n \"code\": \"ESTIMATE_VERIFIER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"BILL_VERIFIER\",\r\n \"code\": \"BILL_VERIFIER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"ESTIMATE APPROVER\",\r\n \"code\": \"ESTIMATE_APPROVER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"Organization viewer\",\r\n \"code\": \"ORG_VIEWER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"WORK ORDER VERIFIER\",\r\n \"code\": \"WORK_ORDER_VERIFIER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"PROJECT VIEWER\",\r\n \"code\": \"PROJECT_VIEWER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"BILL_APPROVER\",\r\n \"code\": \"BILL_APPROVER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"MUSTER ROLL VERIFIER\",\r\n \"code\": \"MUSTER_ROLL_VERIFIER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"OFFICER IN CHARGE\",\r\n \"code\": \"OFFICER_IN_CHARGE\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"PROJECT CREATOR\",\r\n \"code\": \"PROJECT_CREATOR\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"Employee Common\",\r\n \"code\": \"EMPLOYEE_COMMON\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"BILL_VIEWER\",\r\n \"code\": \"BILL_VIEWER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"TECHNICAL SANCTIONER\",\r\n \"code\": \"TECHNICAL_SANCTIONER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"BILL_CREATOR\",\r\n \"code\": \"BILL_CREATOR\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"MUSTER ROLL APPROVER\",\r\n \"code\": \"MUSTER_ROLL_APPROVER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"ESTIMATE VIEWER\",\r\n \"code\": \"ESTIMATE_VIEWER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"WORK ORDER APPROVER\",\r\n \"code\": \"WORK_ORDER_APPROVER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"ESTIMATE CREATOR\",\r\n \"code\": \"ESTIMATE_CREATOR\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"State Dashboard Admin\",\r\n \"code\": \"STADMIN\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"MUKTA Admin\",\r\n \"code\": \"MUKTA_ADMIN\",\r\n \"tenantId\": \"pg.citya\"\r\n }\r\n ],\r\n \"active\": true,\r\n \"tenantId\": \"pg.citya\",\r\n \"permanentCity\": \"CityA\"\r\n },\r\n \"msgId\": \"1694064135997|en_IN\",\r\n \"plainAccessRequest\": {}\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/estimate/v1/_create", "host": [ "{{base_url}}" ], "path": [ "estimate", "v1", "_create" ] } }, "response": [] }, { "name": "Create Estimate - Validation error - Atleast One SOR or NONSOR is present", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => {\r", " pm.expect(pm.response.to.have.status(400));\r", "});\r", " \r", "\r", "pm.test(\"Atleast one SOR or Non-SOR should be present\", function () {\r", " var res = pm.response.json();\r", " var code = res.Errors[0].code;\r", " var message = res.Errors[0].message;\r", " pm.expect(code).to.eql(\"ESTIMATE.DETAIL.CATEGORY\");\r", " pm.expect(message).to.eql(\"Atleast one SOR or Non-SOR should be present\");\r", " }\r", ");" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"estimate\": {\r\n \"projectId\": \"{{PJId-est}}\",\r\n \"status\": \"ACTIVE\",\r\n \"wfStatus\": \"CREATED\",\r\n \"name\": \"{{randomWord}}\",\r\n \"description\": \"{{randomWord}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"executingDepartment\": \"WRK\",\r\n \"address\": {\r\n \"id\": \"{{PJ-addressid}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"clientReferenceId\": null,\r\n \"doorNo\": null,\r\n \"latitude\": 0,\r\n \"longitude\": 0,\r\n \"locationAccuracy\": 0,\r\n \"type\": null,\r\n \"addressLine1\": null,\r\n \"addressLine2\": null,\r\n \"landmark\": null,\r\n \"city\": \"{{tenantId}}\",\r\n \"pincode\": null,\r\n \"buildingName\": null,\r\n \"street\": null,\r\n \"boundaryType\": \"{{boundaryType}}\",\r\n \"boundary\": \"{{boundary}}\",\r\n \"locality\": null\r\n },\r\n \"estimateDetails\": [\r\n {\r\n \"category\": \"OVERHEAD\",\r\n \"name\": \"GST\",\r\n \"description\": \"Goods and Service Tax\",\r\n \"amountDetail\": [\r\n {\r\n \"type\": \"GST\",\r\n \"amount\": \"1369.80\"\r\n }\r\n ],\r\n \"additionalDetails\": {\r\n \"row\": {\r\n \"percentage\": \"18 %\",\r\n \"name\": {\r\n \"id\": \"2\",\r\n \"code\": \"GST\",\r\n \"description\": \"Goods and Service Tax\",\r\n \"active\": true,\r\n \"isAutoCalculated\": true,\r\n \"type\": \"percentage\",\r\n \"value\": \"18\",\r\n \"isWorkOrderValue\": true,\r\n \"effectiveFrom\": \"{{dateOfProposal}}\",\r\n \"effectiveTo\": null,\r\n \"name\": \"ES_COMMON_OVERHEADS_GST\"\r\n },\r\n \"amount\": \"1369.80\"\r\n }\r\n }\r\n }\r\n ],\r\n \"additionalDetails\": {\r\n \"documents\": [\r\n {\r\n \"fileName\": \"WorkOrder-WO_2023-24_000266 (2).pdf\",\r\n \"fileStoreId\": \"8234d8ef-73d7-4986-b5af-c557a6436c94\",\r\n \"documentUid\": \"8234d8ef-73d7-4986-b5af-c557a6436c94\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_DETAILED_ESTIMATE\"\r\n },\r\n {\r\n \"fileName\": \"Muster-roll-MR_2023-24_06_08_000427.pdf\",\r\n \"fileStoreId\": \"652d5212-477d-4c98-8deb-599f3e5f16a8\",\r\n \"documentUid\": \"652d5212-477d-4c98-8deb-599f3e5f16a8\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_LABOUR_ANALYSIS\"\r\n },\r\n {\r\n \"fileName\": \"WorkOrder (3).pdf\",\r\n \"fileStoreId\": \"e29bd685-a6dc-420f-8c22-59dc4061689a\",\r\n \"documentUid\": \"e29bd685-a6dc-420f-8c22-59dc4061689a\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_MATERIAL_ANALYSIS\"\r\n },\r\n {\r\n \"fileType\": \"ESTIMATE_DOC_DESIGN_DOCUMENT\"\r\n },\r\n {\r\n \"fileName\": \"\",\r\n \"fileType\": \"Others\"\r\n }\r\n ],\r\n \"labourMaterialAnalysis\": {\r\n \"labour\": \"50\",\r\n \"material\": \"50\"\r\n },\r\n \"creator\": \"SMS QA testing\",\r\n \"location\": {\r\n \"locality\": \"B1\",\r\n \"ward\": \"B1\",\r\n \"city\": \"{{tenantId}}\"\r\n },\r\n \"ward\": \"B1\",\r\n \"locality\": \"SUN01\",\r\n \"projectNumber\": \"{{PJNo-est}}\",\r\n \"totalEstimatedAmount\": 8979.8,\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"projectName\": \"{{randomWord}}\"\r\n }\r\n },\r\n \"workflow\": {\r\n \"action\": \"SUBMIT\",\r\n \"assignees\": [\r\n \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\"\r\n ]\r\n },\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"authToken\": \"{{auth}}\",\r\n \"userInfo\": {\r\n \"id\": 444,\r\n \"uuid\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\r\n \"userName\": \"SMS QA testing\",\r\n \"name\": \"SMS QA testing\",\r\n \"mobileNumber\": \"9043685314\",\r\n \"emailId\": \"\",\r\n \"locale\": null,\r\n \"type\": \"EMPLOYEE\",\r\n \"roles\": [\r\n {\r\n \"name\": \"HRMS Admin\",\r\n \"code\": \"HRMS_ADMIN\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"WORK_ORDER_VIEWER\",\r\n \"code\": \"WORK_ORDER_VIEWER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"BILL_ACCOUNTANT\",\r\n \"code\": \"BILL_ACCOUNTANT\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"WORK ORDER CREATOR\",\r\n \"code\": \"WORK_ORDER_CREATOR\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"ESTIMATE VERIFIER\",\r\n \"code\": \"ESTIMATE_VERIFIER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"BILL_VERIFIER\",\r\n \"code\": \"BILL_VERIFIER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"ESTIMATE APPROVER\",\r\n \"code\": \"ESTIMATE_APPROVER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"Organization viewer\",\r\n \"code\": \"ORG_VIEWER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"WORK ORDER VERIFIER\",\r\n \"code\": \"WORK_ORDER_VERIFIER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"PROJECT VIEWER\",\r\n \"code\": \"PROJECT_VIEWER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"BILL_APPROVER\",\r\n \"code\": \"BILL_APPROVER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"MUSTER ROLL VERIFIER\",\r\n \"code\": \"MUSTER_ROLL_VERIFIER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"OFFICER IN CHARGE\",\r\n \"code\": \"OFFICER_IN_CHARGE\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"PROJECT CREATOR\",\r\n \"code\": \"PROJECT_CREATOR\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"Employee Common\",\r\n \"code\": \"EMPLOYEE_COMMON\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"BILL_VIEWER\",\r\n \"code\": \"BILL_VIEWER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"TECHNICAL SANCTIONER\",\r\n \"code\": \"TECHNICAL_SANCTIONER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"BILL_CREATOR\",\r\n \"code\": \"BILL_CREATOR\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"MUSTER ROLL APPROVER\",\r\n \"code\": \"MUSTER_ROLL_APPROVER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"ESTIMATE VIEWER\",\r\n \"code\": \"ESTIMATE_VIEWER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"WORK ORDER APPROVER\",\r\n \"code\": \"WORK_ORDER_APPROVER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"ESTIMATE CREATOR\",\r\n \"code\": \"ESTIMATE_CREATOR\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"State Dashboard Admin\",\r\n \"code\": \"STADMIN\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"MUKTA Admin\",\r\n \"code\": \"MUKTA_ADMIN\",\r\n \"tenantId\": \"pg.citya\"\r\n }\r\n ],\r\n \"active\": true,\r\n \"tenantId\": \"pg.citya\",\r\n \"permanentCity\": \"CityA\"\r\n },\r\n \"msgId\": \"1694064135997|en_IN\",\r\n \"plainAccessRequest\": {}\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/estimate/v1/_create", "host": [ "{{base_url}}" ], "path": [ "estimate", "v1", "_create" ] } }, "response": [] }, { "name": "Create Estimate - Validation error - Address is null", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is not successful\", () =>\r", " pm.expect(pm.response.to.have.status(400))\r", ");\r", "\r", "pm.test(\"Correct Error with message and code is received\", function () {\r", " var res = pm.response.json();\r", " var code = res.Errors[0].code;\r", " var message = res.Errors[0].message;\r", " pm.expect(code).to.eql(\"ADDRESS\");\r", " pm.expect(message).to.eql(\"Address is mandatory\");\r", "}\r", ");" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"estimate\": {\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"projectId\": \"{{PJId-est}}\",\r\n \"status\": \"ACTIVE\",\r\n \"wfStatus\": \"CREATED\",\r\n \"name\": \"{{randomWord}}\",\r\n \"description\": \"{{randomWord}}\",\r\n \"executingDepartment\": \"WRK\",\r\n \"address\": null,\r\n \"estimateDetails\": [\r\n {\r\n \"sorId\": 45,\r\n \"category\": \"NON-SOR\",\r\n \"name\": \"Testing 01\",\r\n \"description\": \"Testing 01\",\r\n \"unitRate\": \"250\",\r\n \"noOfunit\": \"12\",\r\n \"uom\": \"KG\",\r\n \"amountDetail\": [\r\n {\r\n \"type\": \"EstimatedAmount\",\r\n \"amount\": \"3000.00\",\r\n \"additionalDetails\": {}\r\n }\r\n ]\r\n },\r\n {\r\n \"sorId\": 45,\r\n \"category\": \"NON-SOR\",\r\n \"name\": \"Testing 02\",\r\n \"description\": \"Testing 02\",\r\n \"unitRate\": \"125\",\r\n \"noOfunit\": \"25\",\r\n \"uom\": \"SQM\",\r\n \"amountDetail\": [\r\n {\r\n \"type\": \"EstimatedAmount\",\r\n \"amount\": \"3125.00\",\r\n \"additionalDetails\": {}\r\n }\r\n ]\r\n },\r\n {\r\n \"sorId\": 45,\r\n \"category\": \"NON-SOR\",\r\n \"name\": \"Testing 03\",\r\n \"description\": \"Testing 03\",\r\n \"unitRate\": \"135\",\r\n \"noOfunit\": \"11\",\r\n \"uom\": \"RMT\",\r\n \"amountDetail\": [\r\n {\r\n \"type\": \"EstimatedAmount\",\r\n \"amount\": \"1485.00\",\r\n \"additionalDetails\": {}\r\n }\r\n ]\r\n },\r\n {\r\n \"category\": \"OVERHEAD\",\r\n \"name\": \"GST\",\r\n \"description\": \"Goods and Service Tax\",\r\n \"amountDetail\": [\r\n {\r\n \"type\": \"GST\",\r\n \"amount\": \"1369.80\"\r\n }\r\n ],\r\n \"additionalDetails\": {\r\n \"row\": {\r\n \"percentage\": \"18 %\",\r\n \"name\": {\r\n \"id\": \"2\",\r\n \"code\": \"GST\",\r\n \"description\": \"Goods and Service Tax\",\r\n \"active\": true,\r\n \"isAutoCalculated\": true,\r\n \"type\": \"percentage\",\r\n \"value\": \"18\",\r\n \"isWorkOrderValue\": true,\r\n \"effectiveFrom\": \"{{dateOfProposal}}\",\r\n \"effectiveTo\": null,\r\n \"name\": \"ES_COMMON_OVERHEADS_GST\"\r\n },\r\n \"amount\": \"1369.80\"\r\n }\r\n }\r\n }\r\n ],\r\n \"additionalDetails\": {\r\n \"documents\": [\r\n {\r\n \"fileName\": \"{{fileName}}\",\r\n \"fileStoreId\": \"{{fileStoreId}}\",\r\n \"documentUid\": \"{{fileStoreId}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_DETAILED_ESTIMATE\"\r\n },\r\n {\r\n \"fileName\": \"{{fileName}}\",\r\n \"fileStoreId\": \"{{fileStoreId}}\",\r\n \"documentUid\": \"{{fileStoreId}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_LABOUR_ANALYSIS\"\r\n },\r\n {\r\n \"fileName\": \"{{fileName}}\",\r\n \"fileStoreId\": \"{{fileStoreId}}\",\r\n \"documentUid\": \"{{fileStoreId}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_MATERIAL_ANALYSIS\"\r\n },\r\n {\r\n \"fileType\": \"ESTIMATE_DOC_DESIGN_DOCUMENT\"\r\n },\r\n {\r\n \"fileName\": \"\",\r\n \"fileType\": \"Others\"\r\n }\r\n ],\r\n \"labourMaterialAnalysis\": {\r\n \"labour\": \"50\",\r\n \"material\": \"50\"\r\n },\r\n \"creator\": \"SMS QA testing\",\r\n \"location\": {\r\n \"locality\": \"B1\",\r\n \"ward\": \"B1\",\r\n \"city\": \"{{tenantId}}\"\r\n },\r\n \"ward\": \"B1\",\r\n \"locality\": \"SUN01\",\r\n \"projectNumber\": \"{{PJNo-est}}\",\r\n \"totalEstimatedAmount\": 8979.8,\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"projectName\": \"{{randomWord}}\"\r\n }\r\n },\r\n \"workflow\": {\r\n \"action\": \"SUBMIT\",\r\n \"assignees\": [\r\n \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\"\r\n ]\r\n },\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"authToken\": \"{{auth}}\",\r\n \"userInfo\": {\r\n \"id\": 444,\r\n \"uuid\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\r\n \"userName\": \"SMS QA testing\",\r\n \"name\": \"SMS QA testing\",\r\n \"mobileNumber\": \"9043685314\",\r\n \"emailId\": \"\",\r\n \"locale\": null,\r\n \"type\": \"EMPLOYEE\",\r\n \"roles\": [\r\n {\r\n \"name\": \"HRMS Admin\",\r\n \"code\": \"HRMS_ADMIN\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"WORK_ORDER_VIEWER\",\r\n \"code\": \"WORK_ORDER_VIEWER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"BILL_ACCOUNTANT\",\r\n \"code\": \"BILL_ACCOUNTANT\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"WORK ORDER CREATOR\",\r\n \"code\": \"WORK_ORDER_CREATOR\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"ESTIMATE VERIFIER\",\r\n \"code\": \"ESTIMATE_VERIFIER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"BILL_VERIFIER\",\r\n \"code\": \"BILL_VERIFIER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"ESTIMATE APPROVER\",\r\n \"code\": \"ESTIMATE_APPROVER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"Organization viewer\",\r\n \"code\": \"ORG_VIEWER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"WORK ORDER VERIFIER\",\r\n \"code\": \"WORK_ORDER_VERIFIER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"PROJECT VIEWER\",\r\n \"code\": \"PROJECT_VIEWER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"BILL_APPROVER\",\r\n \"code\": \"BILL_APPROVER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"MUSTER ROLL VERIFIER\",\r\n \"code\": \"MUSTER_ROLL_VERIFIER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"OFFICER IN CHARGE\",\r\n \"code\": \"OFFICER_IN_CHARGE\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"PROJECT CREATOR\",\r\n \"code\": \"PROJECT_CREATOR\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"Employee Common\",\r\n \"code\": \"EMPLOYEE_COMMON\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"BILL_VIEWER\",\r\n \"code\": \"BILL_VIEWER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"TECHNICAL SANCTIONER\",\r\n \"code\": \"TECHNICAL_SANCTIONER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"BILL_CREATOR\",\r\n \"code\": \"BILL_CREATOR\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"MUSTER ROLL APPROVER\",\r\n \"code\": \"MUSTER_ROLL_APPROVER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"ESTIMATE VIEWER\",\r\n \"code\": \"ESTIMATE_VIEWER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"WORK ORDER APPROVER\",\r\n \"code\": \"WORK_ORDER_APPROVER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"ESTIMATE CREATOR\",\r\n \"code\": \"ESTIMATE_CREATOR\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"State Dashboard Admin\",\r\n \"code\": \"STADMIN\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"MUKTA Admin\",\r\n \"code\": \"MUKTA_ADMIN\",\r\n \"tenantId\": \"pg.citya\"\r\n }\r\n ],\r\n \"active\": true,\r\n \"tenantId\": \"pg.citya\",\r\n \"permanentCity\": \"CityA\"\r\n },\r\n \"msgId\": \"1694064135997|en_IN\",\r\n \"plainAccessRequest\": {}\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/estimate/v1/_create", "host": [ "{{base_url}}" ], "path": [ "estimate", "v1", "_create" ] } }, "response": [] }, { "name": "Create Estimate - Validation error - Invalid ProjectId", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is not successful\", () =>\r", " pm.expect(pm.response.to.have.status(400))\r", ");\r", "\r", "pm.test(\"Correct Error with message and code is received\", function () {\r", " var res = pm.response.json();\r", " var code = res.Errors[0].code;\r", " var message = res.Errors[0].message;\r", " pm.expect(code).to.eql(\"PROJECT_ID\");\r", " pm.expect(message).to.eql(\"The project id : 12255 is invalid\");\r", "}\r", ");" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"estimate\": {\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"projectId\": \"12255\",\r\n \"status\": \"ACTIVE\",\r\n \"wfStatus\": \"CREATED\",\r\n \"name\": \"{{randomWord}}\",\r\n \"description\": \"{{randomWord}}\",\r\n \"executingDepartment\": \"WRK\",\r\n \"address\": {\r\n \"id\": \"{{PJ-addressid}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"clientReferenceId\": null,\r\n \"doorNo\": null,\r\n \"latitude\": 0,\r\n \"longitude\": 0,\r\n \"locationAccuracy\": 0,\r\n \"type\": null,\r\n \"addressLine1\": null,\r\n \"addressLine2\": null,\r\n \"landmark\": null,\r\n \"city\": \"{{tenantId}}\",\r\n \"pincode\": null,\r\n \"buildingName\": null,\r\n \"street\": null,\r\n \"boundaryType\": \"{{boundaryType}}\",\r\n \"boundary\": \"{{boundary}}\",\r\n \"locality\": null\r\n },\r\n \"estimateDetails\": [\r\n {\r\n \"sorId\": 45,\r\n \"category\": \"NON-SOR\",\r\n \"name\": \"Testing 01\",\r\n \"description\": \"Testing 01\",\r\n \"unitRate\": \"250\",\r\n \"noOfunit\": \"12\",\r\n \"uom\": \"KG\",\r\n \"amountDetail\": [\r\n {\r\n \"type\": \"EstimatedAmount\",\r\n \"amount\": \"3000.00\",\r\n \"additionalDetails\": {}\r\n }\r\n ]\r\n },\r\n {\r\n \"sorId\": 45,\r\n \"category\": \"NON-SOR\",\r\n \"name\": \"Testing 02\",\r\n \"description\": \"Testing 02\",\r\n \"unitRate\": \"125\",\r\n \"noOfunit\": \"25\",\r\n \"uom\": \"SQM\",\r\n \"amountDetail\": [\r\n {\r\n \"type\": \"EstimatedAmount\",\r\n \"amount\": \"3125.00\",\r\n \"additionalDetails\": {}\r\n }\r\n ]\r\n },\r\n {\r\n \"sorId\": 45,\r\n \"category\": \"NON-SOR\",\r\n \"name\": \"Testing 03\",\r\n \"description\": \"Testing 03\",\r\n \"unitRate\": \"135\",\r\n \"noOfunit\": \"11\",\r\n \"uom\": \"RMT\",\r\n \"amountDetail\": [\r\n {\r\n \"type\": \"EstimatedAmount\",\r\n \"amount\": \"1485.00\",\r\n \"additionalDetails\": {}\r\n }\r\n ]\r\n },\r\n {\r\n \"category\": \"OVERHEAD\",\r\n \"name\": \"GST\",\r\n \"description\": \"Goods and Service Tax\",\r\n \"amountDetail\": [\r\n {\r\n \"type\": \"GST\",\r\n \"amount\": \"1369.80\"\r\n }\r\n ],\r\n \"additionalDetails\": {\r\n \"row\": {\r\n \"percentage\": \"18 %\",\r\n \"name\": {\r\n \"id\": \"2\",\r\n \"code\": \"GST\",\r\n \"description\": \"Goods and Service Tax\",\r\n \"active\": true,\r\n \"isAutoCalculated\": true,\r\n \"type\": \"percentage\",\r\n \"value\": \"18\",\r\n \"isWorkOrderValue\": true,\r\n \"effectiveFrom\": \"{{dateOfProposal}}\",\r\n \"effectiveTo\": null,\r\n \"name\": \"ES_COMMON_OVERHEADS_GST\"\r\n },\r\n \"amount\": \"1369.80\"\r\n }\r\n }\r\n }\r\n ],\r\n \"additionalDetails\": {\r\n \"documents\": [\r\n {\r\n \"fileName\": \"{{fileName}}\",\r\n \"fileStoreId\": \"{{fileStoreId}}\",\r\n \"documentUid\": \"{{fileStoreId}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_DETAILED_ESTIMATE\"\r\n },\r\n {\r\n \"fileName\": \"{{fileName}}\",\r\n \"fileStoreId\": \"{{fileStoreId}}\",\r\n \"documentUid\": \"{{fileStoreId}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_LABOUR_ANALYSIS\"\r\n },\r\n {\r\n \"fileName\": \"{{fileName}}\",\r\n \"fileStoreId\": \"{{fileStoreId}}\",\r\n \"documentUid\": \"{{fileStoreId}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_MATERIAL_ANALYSIS\"\r\n },\r\n {\r\n \"fileType\": \"ESTIMATE_DOC_DESIGN_DOCUMENT\"\r\n },\r\n {\r\n \"fileName\": \"\",\r\n \"fileType\": \"Others\"\r\n }\r\n ],\r\n \"labourMaterialAnalysis\": {\r\n \"labour\": \"50\",\r\n \"material\": \"50\"\r\n },\r\n \"creator\": \"SMS QA testing\",\r\n \"location\": {\r\n \"locality\": \"B1\",\r\n \"ward\": \"B1\",\r\n \"city\": \"{{tenantId}}\"\r\n },\r\n \"ward\": \"B1\",\r\n \"locality\": \"SUN01\",\r\n \"projectNumber\": \"{{PJNo-est}}\",\r\n \"totalEstimatedAmount\": 8979.8,\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"projectName\": \"{{randomWord}}\"\r\n }\r\n },\r\n \"workflow\": {\r\n \"action\": \"SUBMIT\",\r\n \"assignees\": [\r\n \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\"\r\n ]\r\n },\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"authToken\": \"{{auth}}\",\r\n \"userInfo\": {\r\n \"id\": 444,\r\n \"uuid\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\r\n \"userName\": \"SMS QA testing\",\r\n \"name\": \"SMS QA testing\",\r\n \"mobileNumber\": \"9043685314\",\r\n \"emailId\": \"\",\r\n \"locale\": null,\r\n \"type\": \"EMPLOYEE\",\r\n \"roles\": [\r\n {\r\n \"name\": \"HRMS Admin\",\r\n \"code\": \"HRMS_ADMIN\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"WORK_ORDER_VIEWER\",\r\n \"code\": \"WORK_ORDER_VIEWER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"BILL_ACCOUNTANT\",\r\n \"code\": \"BILL_ACCOUNTANT\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"WORK ORDER CREATOR\",\r\n \"code\": \"WORK_ORDER_CREATOR\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"ESTIMATE VERIFIER\",\r\n \"code\": \"ESTIMATE_VERIFIER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"BILL_VERIFIER\",\r\n \"code\": \"BILL_VERIFIER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"ESTIMATE APPROVER\",\r\n \"code\": \"ESTIMATE_APPROVER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"Organization viewer\",\r\n \"code\": \"ORG_VIEWER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"WORK ORDER VERIFIER\",\r\n \"code\": \"WORK_ORDER_VERIFIER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"PROJECT VIEWER\",\r\n \"code\": \"PROJECT_VIEWER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"BILL_APPROVER\",\r\n \"code\": \"BILL_APPROVER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"MUSTER ROLL VERIFIER\",\r\n \"code\": \"MUSTER_ROLL_VERIFIER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"OFFICER IN CHARGE\",\r\n \"code\": \"OFFICER_IN_CHARGE\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"PROJECT CREATOR\",\r\n \"code\": \"PROJECT_CREATOR\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"Employee Common\",\r\n \"code\": \"EMPLOYEE_COMMON\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"BILL_VIEWER\",\r\n \"code\": \"BILL_VIEWER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"TECHNICAL SANCTIONER\",\r\n \"code\": \"TECHNICAL_SANCTIONER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"BILL_CREATOR\",\r\n \"code\": \"BILL_CREATOR\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"MUSTER ROLL APPROVER\",\r\n \"code\": \"MUSTER_ROLL_APPROVER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"ESTIMATE VIEWER\",\r\n \"code\": \"ESTIMATE_VIEWER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"WORK ORDER APPROVER\",\r\n \"code\": \"WORK_ORDER_APPROVER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"ESTIMATE CREATOR\",\r\n \"code\": \"ESTIMATE_CREATOR\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"State Dashboard Admin\",\r\n \"code\": \"STADMIN\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"MUKTA Admin\",\r\n \"code\": \"MUKTA_ADMIN\",\r\n \"tenantId\": \"pg.citya\"\r\n }\r\n ],\r\n \"active\": true,\r\n \"tenantId\": \"pg.citya\",\r\n \"permanentCity\": \"CityA\"\r\n },\r\n \"msgId\": \"1694064135997|en_IN\",\r\n \"plainAccessRequest\": {}\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/estimate/v1/_create", "host": [ "{{base_url}}" ], "path": [ "estimate", "v1", "_create" ] } }, "response": [] }, { "name": "Create Estimate - Validation error - Amount detail is null", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is not successful\", () =>\r", " pm.expect(pm.response.to.have.status(400))\r", ");\r", "\r", "pm.test(\"Correct Error with message and code is received\", function () {\r", " var res = pm.response.json();\r", " var code = res.Errors[0].code;\r", " var message = res.Errors[0].message;\r", " pm.expect(code).to.eql(\"ESTIMATE.DETAIL.AMOUNT.DETAILS\");\r", " pm.expect(message).to.eql(\"Amount details are mandatory\");\r", "}\r", ");" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"estimate\": {\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"projectId\": \"{{PJId-est}}\",\r\n \"status\": \"ACTIVE\",\r\n \"wfStatus\": \"CREATED\",\r\n \"name\": \"{{randomWord}}\",\r\n \"description\": \"{{randomWord}}\",\r\n \"executingDepartment\": \"WRK\",\r\n \"address\": {\r\n \"id\": \"{{PJ-addressid}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"clientReferenceId\": null,\r\n \"doorNo\": null,\r\n \"latitude\": 0,\r\n \"longitude\": 0,\r\n \"locationAccuracy\": 0,\r\n \"type\": null,\r\n \"addressLine1\": null,\r\n \"addressLine2\": null,\r\n \"landmark\": null,\r\n \"city\": \"{{tenantId}}\",\r\n \"pincode\": null,\r\n \"buildingName\": null,\r\n \"street\": null,\r\n \"boundaryType\": \"Ward\",\r\n \"boundary\": \"B1\",\r\n \"locality\": null\r\n },\r\n \"estimateDetails\": [\r\n {\r\n \"sorId\": 45,\r\n \"category\": \"NON-SOR\",\r\n \"name\": \"Testing 01\",\r\n \"description\": \"Testing 01\",\r\n \"unitRate\": \"250\",\r\n \"noOfunit\": \"12\",\r\n \"uom\": \"KG\",\r\n \"amountDetail\":null\r\n },\r\n {\r\n \"sorId\": 45,\r\n \"category\": \"NON-SOR\",\r\n \"name\": \"Testing 02\",\r\n \"description\": \"Testing 02\",\r\n \"unitRate\": \"125\",\r\n \"noOfunit\": \"25\",\r\n \"uom\": \"SQM\",\r\n \"amountDetail\": [\r\n {\r\n \"type\": \"EstimatedAmount\",\r\n \"amount\": \"3125.00\",\r\n \"additionalDetails\": {}\r\n }\r\n ]\r\n },\r\n {\r\n \"sorId\": 45,\r\n \"category\": \"NON-SOR\",\r\n \"name\": \"Testing 03\",\r\n \"description\": \"Testing 03\",\r\n \"unitRate\": \"135\",\r\n \"noOfunit\": \"11\",\r\n \"uom\": \"RMT\",\r\n \"amountDetail\": [\r\n {\r\n \"type\": \"EstimatedAmount\",\r\n \"amount\": \"1485.00\",\r\n \"additionalDetails\": {}\r\n }\r\n ]\r\n },\r\n {\r\n \"category\": \"OVERHEAD\",\r\n \"name\": \"GST\",\r\n \"description\": \"Goods and Service Tax\",\r\n \"amountDetail\": [\r\n {\r\n \"type\": \"GST\",\r\n \"amount\": \"1369.80\"\r\n }\r\n ],\r\n \"additionalDetails\": {\r\n \"row\": {\r\n \"percentage\": \"18 %\",\r\n \"name\": {\r\n \"id\": \"2\",\r\n \"code\": \"GST\",\r\n \"description\": \"Goods and Service Tax\",\r\n \"active\": true,\r\n \"isAutoCalculated\": true,\r\n \"type\": \"percentage\",\r\n \"value\": \"18\",\r\n \"isWorkOrderValue\": true,\r\n \"effectiveFrom\": \"{{dateOfProposal}}\",\r\n \"effectiveTo\": null,\r\n \"name\": \"ES_COMMON_OVERHEADS_GST\"\r\n },\r\n \"amount\": \"1369.80\"\r\n }\r\n }\r\n }\r\n ],\r\n \"additionalDetails\": {\r\n \"documents\": [\r\n {\r\n \"fileName\": \"{{fileName}}\",\r\n \"fileStoreId\": \"{{fileStoreId}}\",\r\n \"documentUid\": \"{{fileStoreId}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_DETAILED_ESTIMATE\"\r\n },\r\n {\r\n \"fileName\": \"{{fileName}}\",\r\n \"fileStoreId\": \"{{fileStoreId}}\",\r\n \"documentUid\": \"{{fileStoreId}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_LABOUR_ANALYSIS\"\r\n },\r\n {\r\n \"fileName\": \"{{fileName}}\",\r\n \"fileStoreId\": \"{{fileStoreId}}\",\r\n \"documentUid\": \"{{fileStoreId}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_MATERIAL_ANALYSIS\"\r\n },\r\n {\r\n \"fileType\": \"ESTIMATE_DOC_DESIGN_DOCUMENT\"\r\n },\r\n {\r\n \"fileName\": \"\",\r\n \"fileType\": \"Others\"\r\n }\r\n ],\r\n \"labourMaterialAnalysis\": {\r\n \"labour\": \"50\",\r\n \"material\": \"50\"\r\n },\r\n \"creator\": \"SMS QA testing\",\r\n \"location\": {\r\n \"locality\": \"B1\",\r\n \"ward\": \"B1\",\r\n \"city\": \"{{tenantId}}\"\r\n },\r\n \"ward\": \"B1\",\r\n \"locality\": \"SUN01\",\r\n \"projectNumber\": \"{{PJNo-est}}\",\r\n \"totalEstimatedAmount\": 8979.8,\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"projectName\": \"{{randomWord}}\"\r\n }\r\n },\r\n \"workflow\": {\r\n \"action\": \"SUBMIT\",\r\n \"assignees\": [\r\n \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\"\r\n ]\r\n },\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"authToken\": \"{{auth}}\",\r\n \"userInfo\": {\r\n \"id\": 444,\r\n \"uuid\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\r\n \"userName\": \"SMS QA testing\",\r\n \"name\": \"SMS QA testing\",\r\n \"mobileNumber\": \"9043685314\",\r\n \"emailId\": \"\",\r\n \"locale\": null,\r\n \"type\": \"EMPLOYEE\",\r\n \"roles\": [\r\n {\r\n \"name\": \"HRMS Admin\",\r\n \"code\": \"HRMS_ADMIN\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"WORK_ORDER_VIEWER\",\r\n \"code\": \"WORK_ORDER_VIEWER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"BILL_ACCOUNTANT\",\r\n \"code\": \"BILL_ACCOUNTANT\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"WORK ORDER CREATOR\",\r\n \"code\": \"WORK_ORDER_CREATOR\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"ESTIMATE VERIFIER\",\r\n \"code\": \"ESTIMATE_VERIFIER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"BILL_VERIFIER\",\r\n \"code\": \"BILL_VERIFIER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"ESTIMATE APPROVER\",\r\n \"code\": \"ESTIMATE_APPROVER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"Organization viewer\",\r\n \"code\": \"ORG_VIEWER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"WORK ORDER VERIFIER\",\r\n \"code\": \"WORK_ORDER_VERIFIER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"PROJECT VIEWER\",\r\n \"code\": \"PROJECT_VIEWER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"BILL_APPROVER\",\r\n \"code\": \"BILL_APPROVER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"MUSTER ROLL VERIFIER\",\r\n \"code\": \"MUSTER_ROLL_VERIFIER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"OFFICER IN CHARGE\",\r\n \"code\": \"OFFICER_IN_CHARGE\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"PROJECT CREATOR\",\r\n \"code\": \"PROJECT_CREATOR\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"Employee Common\",\r\n \"code\": \"EMPLOYEE_COMMON\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"BILL_VIEWER\",\r\n \"code\": \"BILL_VIEWER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"TECHNICAL SANCTIONER\",\r\n \"code\": \"TECHNICAL_SANCTIONER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"BILL_CREATOR\",\r\n \"code\": \"BILL_CREATOR\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"MUSTER ROLL APPROVER\",\r\n \"code\": \"MUSTER_ROLL_APPROVER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"ESTIMATE VIEWER\",\r\n \"code\": \"ESTIMATE_VIEWER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"WORK ORDER APPROVER\",\r\n \"code\": \"WORK_ORDER_APPROVER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"ESTIMATE CREATOR\",\r\n \"code\": \"ESTIMATE_CREATOR\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"State Dashboard Admin\",\r\n \"code\": \"STADMIN\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"MUKTA Admin\",\r\n \"code\": \"MUKTA_ADMIN\",\r\n \"tenantId\": \"pg.citya\"\r\n }\r\n ],\r\n \"active\": true,\r\n \"tenantId\": \"pg.citya\",\r\n \"permanentCity\": \"CityA\"\r\n },\r\n \"msgId\": \"1694064135997|en_IN\",\r\n \"plainAccessRequest\": {}\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/estimate/v1/_create", "host": [ "{{base_url}}" ], "path": [ "estimate", "v1", "_create" ] } }, "response": [] }, { "name": "Create Estimate - Validation error - Estimate detail is null", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is not successful\", () =>\r", " pm.expect(pm.response.to.have.status(400))\r", ");\r", "\r", "pm.test(\"Correct Error with message and code is received\", function () {\r", " var res = pm.response.json();\r", " var code = res.Errors[0].code;\r", " var message = res.Errors[0].message;\r", " pm.expect(code).to.eql(\"ESTIMATE_DETAILS\");\r", " pm.expect(message).to.eql(\"Estimate detail is mandatory\");\r", "}\r", ");" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"estimate\": {\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"projectId\": \"{{PJId-est}}\",\r\n \"status\": \"ACTIVE\",\r\n \"wfStatus\": \"CREATED\",\r\n \"name\": \"{{randomWord}}\",\r\n \"description\": \"{{randomWord}}\",\r\n \"executingDepartment\": \"WRK\",\r\n \"address\": {\r\n \"id\": \"{{PJ-addressid}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"clientReferenceId\": null,\r\n \"doorNo\": null,\r\n \"latitude\": 0,\r\n \"longitude\": 0,\r\n \"locationAccuracy\": 0,\r\n \"type\": null,\r\n \"addressLine1\": null,\r\n \"addressLine2\": null,\r\n \"landmark\": null,\r\n \"city\": \"{{tenantId}}\",\r\n \"pincode\": null,\r\n \"buildingName\": null,\r\n \"street\": null,\r\n \"boundaryType\": \"Ward\",\r\n \"boundary\": \"B1\",\r\n \"locality\": null\r\n },\r\n \"estimateDetails\": null,\r\n \"additionalDetails\": {\r\n \"documents\": [\r\n {\r\n \"fileName\": \"{{fileName}}\",\r\n \"fileStoreId\": \"{{fileStoreId}}\",\r\n \"documentUid\": \"{{fileStoreId}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_DETAILED_ESTIMATE\"\r\n },\r\n {\r\n \"fileName\": \"{{fileName}}\",\r\n \"fileStoreId\": \"{{fileStoreId}}\",\r\n \"documentUid\": \"{{fileStoreId}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_LABOUR_ANALYSIS\"\r\n },\r\n {\r\n \"fileName\": \"{{fileName}}\",\r\n \"fileStoreId\": \"{{fileStoreId}}\",\r\n \"documentUid\": \"{{fileStoreId}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_MATERIAL_ANALYSIS\"\r\n },\r\n {\r\n \"fileType\": \"ESTIMATE_DOC_DESIGN_DOCUMENT\"\r\n },\r\n {\r\n \"fileName\": \"\",\r\n \"fileType\": \"Others\"\r\n }\r\n ],\r\n \"labourMaterialAnalysis\": {\r\n \"labour\": \"50\",\r\n \"material\": \"50\"\r\n },\r\n \"creator\": \"SMS QA testing\",\r\n \"location\": {\r\n \"locality\": \"B1\",\r\n \"ward\": \"B1\",\r\n \"city\": \"{{tenantId}}\"\r\n },\r\n \"ward\": \"B1\",\r\n \"locality\": \"SUN01\",\r\n \"projectNumber\": \"{{PJNo-est}}\",\r\n \"totalEstimatedAmount\": 8979.8,\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"projectName\": \"{{randomWord}}\"\r\n }\r\n },\r\n \"workflow\": {\r\n \"action\": \"SUBMIT\",\r\n \"assignees\": [\r\n \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\"\r\n ]\r\n },\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"authToken\": \"{{auth}}\",\r\n \"userInfo\": {\r\n \"id\": 444,\r\n \"uuid\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\r\n \"userName\": \"SMS QA testing\",\r\n \"name\": \"SMS QA testing\",\r\n \"mobileNumber\": \"9043685314\",\r\n \"emailId\": \"\",\r\n \"locale\": null,\r\n \"type\": \"EMPLOYEE\",\r\n \"roles\": [\r\n {\r\n \"name\": \"HRMS Admin\",\r\n \"code\": \"HRMS_ADMIN\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"WORK_ORDER_VIEWER\",\r\n \"code\": \"WORK_ORDER_VIEWER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"BILL_ACCOUNTANT\",\r\n \"code\": \"BILL_ACCOUNTANT\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"WORK ORDER CREATOR\",\r\n \"code\": \"WORK_ORDER_CREATOR\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"ESTIMATE VERIFIER\",\r\n \"code\": \"ESTIMATE_VERIFIER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"BILL_VERIFIER\",\r\n \"code\": \"BILL_VERIFIER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"ESTIMATE APPROVER\",\r\n \"code\": \"ESTIMATE_APPROVER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"Organization viewer\",\r\n \"code\": \"ORG_VIEWER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"WORK ORDER VERIFIER\",\r\n \"code\": \"WORK_ORDER_VERIFIER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"PROJECT VIEWER\",\r\n \"code\": \"PROJECT_VIEWER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"BILL_APPROVER\",\r\n \"code\": \"BILL_APPROVER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"MUSTER ROLL VERIFIER\",\r\n \"code\": \"MUSTER_ROLL_VERIFIER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"OFFICER IN CHARGE\",\r\n \"code\": \"OFFICER_IN_CHARGE\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"PROJECT CREATOR\",\r\n \"code\": \"PROJECT_CREATOR\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"Employee Common\",\r\n \"code\": \"EMPLOYEE_COMMON\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"BILL_VIEWER\",\r\n \"code\": \"BILL_VIEWER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"TECHNICAL SANCTIONER\",\r\n \"code\": \"TECHNICAL_SANCTIONER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"BILL_CREATOR\",\r\n \"code\": \"BILL_CREATOR\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"MUSTER ROLL APPROVER\",\r\n \"code\": \"MUSTER_ROLL_APPROVER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"ESTIMATE VIEWER\",\r\n \"code\": \"ESTIMATE_VIEWER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"WORK ORDER APPROVER\",\r\n \"code\": \"WORK_ORDER_APPROVER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"ESTIMATE CREATOR\",\r\n \"code\": \"ESTIMATE_CREATOR\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"State Dashboard Admin\",\r\n \"code\": \"STADMIN\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"MUKTA Admin\",\r\n \"code\": \"MUKTA_ADMIN\",\r\n \"tenantId\": \"pg.citya\"\r\n }\r\n ],\r\n \"active\": true,\r\n \"tenantId\": \"pg.citya\",\r\n \"permanentCity\": \"CityA\"\r\n },\r\n \"msgId\": \"1694064135997|en_IN\",\r\n \"plainAccessRequest\": {}\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/estimate/v1/_create", "host": [ "{{base_url}}" ], "path": [ "estimate", "v1", "_create" ] } }, "response": [] }, { "name": "Update Estimate - Success WF Send back", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () =>\r", " pm.expect(pm.response.to.have.status(200))\r", ");\r", "\r", "pm.test(\"estimate's workflow status is Send back\", function () {\r", " let responseData = pm.response.json();\r", " pm.expect(responseData.estimates[0].wfStatus).eq(\"PENDINGFORCORRECTION\");\r", " pm.collectionVariables.set(\"wfStatus\", responseData.estimates[0].status);\r", "});\r", "\r", "\r", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"estimate\": {\r\n \"id\": \"{{estimateId}}\",\r\n \"estimateNumber\": \"{{estimateNumber}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"projectId\": \"{{PJId-est}}\",\r\n \"status\": \"ACTIVE\",\r\n \"wfStatus\": \"CREATED\",\r\n \"name\": \"{{randomWord}}\",\r\n \"description\": \"{{randomWord}}\",\r\n \"executingDepartment\": \"WRK\",\r\n \"address\": {\r\n \"id\": \"{{PJ-addressid}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"clientReferenceId\": null,\r\n \"doorNo\": null,\r\n \"latitude\": 0,\r\n \"longitude\": 0,\r\n \"locationAccuracy\": 0,\r\n \"type\": null,\r\n \"addressLine1\": null,\r\n \"addressLine2\": null,\r\n \"landmark\": null,\r\n \"city\": \"pg.citya\",\r\n \"pincode\": null,\r\n \"buildingName\": null,\r\n \"street\": null,\r\n \"boundaryType\": \"{{boundaryType}}\",\r\n \"boundary\": \"{{boundary}}\",\r\n \"locality\": null\r\n },\r\n \"estimateDetails\": [\r\n {\r\n \"id\": \"{{Lineitem1}}\",\r\n \"sorId\": \"SOR_000196\",\r\n \"category\": \"SOR\",\r\n \"name\": \"P.C.C. Grade M25 Using Batching plant, Transit Mixer and concrete pump (Data for 120.00 Cum) [First Floor]\",\r\n \"description\": \"LHS\",\r\n \"unitRate\": 439070.35,\r\n \"noOfunit\": 1.0,\r\n \"uom\": \"CUM\",\r\n \"uomValue\": 0.0,\r\n \"length\": 1,\r\n \"width\": 1,\r\n \"height\": 1,\r\n \"quantity\": 1,\r\n \"isDeduction\": false,\r\n \"amountDetail\": [\r\n {\r\n \"id\": \"{{estLineamount1}}\",\r\n \"type\": \"EstimatedAmount\",\r\n \"amount\": 3253.6,\r\n \"isActive\": true,\r\n \"additionalDetails\": {}\r\n }\r\n ],\r\n \"isActive\": true,\r\n \"additionalDetails\": null\r\n },\r\n {\r\n \"id\": \"{{Lineitem2}}\",\r\n \"sorId\": null,\r\n \"category\": \"OVERHEAD\",\r\n \"name\": \"GST\",\r\n \"description\": \"Goods and Service Tax\",\r\n \"unitRate\": null,\r\n \"noOfunit\": null,\r\n \"uom\": null,\r\n \"uomValue\": null,\r\n \"amountDetail\": [\r\n {\r\n \"id\": \"{{estLineamount2}}\",\r\n \"type\": \"GST\",\r\n \"amount\": 585.6,\r\n \"isActive\": true,\r\n \"additionalDetails\": null\r\n }\r\n ],\r\n \"isActive\": true,\r\n \"additionalDetails\": {\r\n \"row\": {\r\n \"percentage\": \"18 %\",\r\n \"name\": {\r\n \"id\": \"2\",\r\n \"code\": \"GST\",\r\n \"description\": \"Goods and Service Tax\",\r\n \"active\": true,\r\n \"isAutoCalculated\": true,\r\n \"type\": \"percentage\",\r\n \"value\": \"18\",\r\n \"isWorkOrderValue\": true,\r\n \"effectiveFrom\": \"1694172775346\",\r\n \"effectiveTo\": null,\r\n \"name\": \"ES_COMMON_OVERHEADS_GST\"\r\n },\r\n \"amount\": \"585.6\"\r\n }\r\n }\r\n }\r\n ],\r\n \"additionalDetails\": {\r\n \"documents\": [\r\n {\r\n \"fileName\": \"{{fileName}}\",\r\n \"fileStoreId\": \"{{fileStoreId}}\",\r\n \"documentUid\": \"{{fileStoreId}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_DETAILED_ESTIMATE\"\r\n },\r\n {\r\n \"fileName\": \"{{fileName}}\",\r\n \"fileStoreId\": \"{{fileStoreId}}\",\r\n \"documentUid\": \"{{fileStoreId}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_LABOUR_ANALYSIS\"\r\n },\r\n {\r\n \"fileName\": \"{{fileName}}\",\r\n \"fileStoreId\": \"{{fileStoreId}}\",\r\n \"documentUid\": \"{{fileStoreId}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_MATERIAL_ANALYSIS\"\r\n },\r\n {\r\n \"fileType\": \"ESTIMATE_DOC_DESIGN_DOCUMENT\"\r\n },\r\n {\r\n \"fileName\": \"\",\r\n \"fileType\": \"Others\"\r\n }\r\n ],\r\n \"labourMaterialAnalysis\": {\r\n \"labour\": \"50\",\r\n \"material\": \"50\"\r\n },\r\n \"creator\": \"SMS QA testing\",\r\n \"location\": {\r\n \"locality\": \"B1\",\r\n \"ward\": \"B1\",\r\n \"city\": \"{{tenantId}}\"\r\n },\r\n \"ward\": \"B1\",\r\n \"locality\": \"SUN01\",\r\n \"projectNumber\": \"{{PJNo-est}}\",\r\n \"totalEstimatedAmount\": 3839.2,\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"projectName\": \"{{randomWord}}\"\r\n }\r\n },\r\n \"workflow\": {\r\n \"action\": \"SENDBACK\"\r\n },\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"authToken\": \"{{auth}}\",\r\n \"msgId\": \"1694085272328|en_IN\",\r\n \"plainAccessRequest\": {}\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/estimate/v1/_update", "host": [ "{{base_url}}" ], "path": [ "estimate", "v1", "_update" ] } }, "response": [] }, { "name": "Update Estimate - Success Edit and Re-submit", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () =>\r", " pm.expect(pm.response.to.have.status(200))\r", ");\r", "\r", "pm.test(\"estimate's workflow status is Re-Submit\", function () {\r", " let responseData = pm.response.json();\r", " pm.expect(responseData.estimates[0].wfStatus).eq(\"PENDINGFORVERIFICATION\");\r", " pm.collectionVariables.set(\"wfStatus\", responseData.estimates[0].status);\r", "});\r", "\r", "\r", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"estimate\": {\r\n \"id\": \"{{estimateId}}\",\r\n \"estimateNumber\": \"{{estimateNumber}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"projectId\": \"{{PJId-est}}\",\r\n \"status\": \"ACTIVE\",\r\n \"wfStatus\": \"CREATED\",\r\n \"name\": \"{{randomWord}}\",\r\n \"description\": \"{{randomWord}}\",\r\n \"executingDepartment\": \"WRK\",\r\n \"address\": {\r\n \"id\": \"{{PJ-addressid}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"clientReferenceId\": null,\r\n \"doorNo\": null,\r\n \"latitude\": 0,\r\n \"longitude\": 0,\r\n \"locationAccuracy\": 0,\r\n \"type\": null,\r\n \"addressLine1\": null,\r\n \"addressLine2\": null,\r\n \"landmark\": null,\r\n \"city\": \"pg.citya\",\r\n \"pincode\": null,\r\n \"buildingName\": null,\r\n \"street\": null,\r\n \"boundaryType\": \"{{boundaryType}}\",\r\n \"boundary\": \"{{boundary}}\",\r\n \"locality\": null\r\n },\r\n \"estimateDetails\": [\r\n {\r\n \"id\": \"{{Lineitem1}}\",\r\n \"sorId\": \"SOR_000196\",\r\n \"category\": \"SOR\",\r\n \"name\": \"P.C.C. Grade M25 Using Batching plant, Transit Mixer and concrete pump (Data for 120.00 Cum) [First Floor]\",\r\n \"description\": \"LHS\",\r\n \"unitRate\": 439070.35,\r\n \"noOfunit\": 1.0,\r\n \"uom\": \"CUM\",\r\n \"uomValue\": 0.0,\r\n \"length\": 1,\r\n \"width\": 1,\r\n \"height\": 1,\r\n \"quantity\": 1,\r\n \"isDeduction\": false,\r\n \"amountDetail\": [\r\n {\r\n \"id\": \"{{estLineamount1}}\",\r\n \"type\": \"EstimatedAmount\",\r\n \"amount\": 3253.6,\r\n \"isActive\": true,\r\n \"additionalDetails\": {}\r\n }\r\n ],\r\n \"isActive\": true,\r\n \"additionalDetails\": null\r\n },\r\n {\r\n \"id\": \"{{Lineitem2}}\",\r\n \"sorId\": null,\r\n \"category\": \"OVERHEAD\",\r\n \"name\": \"GST\",\r\n \"description\": \"Goods and Service Tax\",\r\n \"unitRate\": null,\r\n \"noOfunit\": null,\r\n \"uom\": null,\r\n \"uomValue\": null,\r\n \"amountDetail\": [\r\n {\r\n \"id\": \"{{estLineamount2}}\",\r\n \"type\": \"GST\",\r\n \"amount\": 585.6,\r\n \"isActive\": true,\r\n \"additionalDetails\": null\r\n }\r\n ],\r\n \"isActive\": true,\r\n \"additionalDetails\": {\r\n \"row\": {\r\n \"percentage\": \"18 %\",\r\n \"name\": {\r\n \"id\": \"2\",\r\n \"code\": \"GST\",\r\n \"description\": \"Goods and Service Tax\",\r\n \"active\": true,\r\n \"isAutoCalculated\": true,\r\n \"type\": \"percentage\",\r\n \"value\": \"18\",\r\n \"isWorkOrderValue\": true,\r\n \"effectiveFrom\": \"1694172775346\",\r\n \"effectiveTo\": null,\r\n \"name\": \"ES_COMMON_OVERHEADS_GST\"\r\n },\r\n \"amount\": \"585.6\"\r\n }\r\n }\r\n }\r\n ],\r\n \"additionalDetails\": {\r\n \"documents\": [\r\n {\r\n \"fileName\": \"{{fileName}}\",\r\n \"fileStoreId\": \"{{fileStoreId}}\",\r\n \"documentUid\": \"{{fileStoreId}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_DETAILED_ESTIMATE\"\r\n },\r\n {\r\n \"fileName\": \"{{fileName}}\",\r\n \"fileStoreId\": \"{{fileStoreId}}\",\r\n \"documentUid\": \"{{fileStoreId}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_LABOUR_ANALYSIS\"\r\n },\r\n {\r\n \"fileName\": \"{{fileName}}\",\r\n \"fileStoreId\": \"{{fileStoreId}}\",\r\n \"documentUid\": \"{{fileStoreId}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_MATERIAL_ANALYSIS\"\r\n },\r\n {\r\n \"fileType\": \"ESTIMATE_DOC_DESIGN_DOCUMENT\"\r\n },\r\n {\r\n \"fileName\": \"\",\r\n \"fileType\": \"Others\"\r\n }\r\n ],\r\n \"labourMaterialAnalysis\": {\r\n \"labour\": \"50\",\r\n \"material\": \"50\"\r\n },\r\n \"creator\": \"SMS QA testing\",\r\n \"location\": {\r\n \"locality\": \"B1\",\r\n \"ward\": \"B1\",\r\n \"city\": \"{{tenantId}}\"\r\n },\r\n \"ward\": \"B1\",\r\n \"locality\": \"SUN01\",\r\n \"projectNumber\": \"{{PJNo-est}}\",\r\n \"totalEstimatedAmount\": 3839.2,\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"projectName\": \"{{randomWord}}\"\r\n }\r\n },\r\n \"workflow\": {\r\n \"action\": \"RE-SUBMIT\"\r\n },\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"authToken\": \"{{auth}}\",\r\n \"msgId\": \"1694085272328|en_IN\",\r\n \"plainAccessRequest\": {}\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/estimate/v1/_update", "host": [ "{{base_url}}" ], "path": [ "estimate", "v1", "_update" ] } }, "response": [] }, { "name": "Update Estimate - Success Verify and forward", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () =>\r", " pm.expect(pm.response.to.have.status(200))\r", ");\r", "\r", "pm.test(\"estimate's workflow status is Verified\", function () {\r", " let responseData = pm.response.json();\r", " pm.expect(responseData.estimates[0].wfStatus).eq(\"PENDINGFORTECHNICALSANCTION\");\r", " pm.collectionVariables.set(\"wfStatus\", responseData.estimates[0].status);\r", "});\r", "\r", "\r", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"estimate\": {\r\n \"id\": \"{{estimateId}}\",\r\n \"estimateNumber\": \"{{estimateNumber}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"projectId\": \"{{PJId-est}}\",\r\n \"status\": \"ACTIVE\",\r\n \"wfStatus\": \"CREATED\",\r\n \"name\": \"{{randomWord}}\",\r\n \"description\": \"{{randomWord}}\",\r\n \"executingDepartment\": \"WRK\",\r\n \"address\": {\r\n \"id\": \"{{PJ-addressid}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"clientReferenceId\": null,\r\n \"doorNo\": null,\r\n \"latitude\": 0,\r\n \"longitude\": 0,\r\n \"locationAccuracy\": 0,\r\n \"type\": null,\r\n \"addressLine1\": null,\r\n \"addressLine2\": null,\r\n \"landmark\": null,\r\n \"city\": \"pg.citya\",\r\n \"pincode\": null,\r\n \"buildingName\": null,\r\n \"street\": null,\r\n \"boundaryType\": \"{{boundaryType}}\",\r\n \"boundary\": \"{{boundary}}\",\r\n \"locality\": null\r\n },\r\n \"estimateDetails\": [\r\n {\r\n \"id\": \"{{Lineitem1}}\",\r\n \"sorId\": \"SOR_000196\",\r\n \"category\": \"SOR\",\r\n \"name\": \"P.C.C. Grade M25 Using Batching plant, Transit Mixer and concrete pump (Data for 120.00 Cum) [First Floor]\",\r\n \"description\": \"LHS\",\r\n \"unitRate\": 439070.35,\r\n \"noOfunit\": 1.0,\r\n \"uom\": \"CUM\",\r\n \"uomValue\": 0.0,\r\n \"length\": 1,\r\n \"width\": 1,\r\n \"height\": 1,\r\n \"quantity\": 1,\r\n \"isDeduction\": false,\r\n \"amountDetail\": [\r\n {\r\n \"id\": \"{{estLineamount1}}\",\r\n \"type\": \"EstimatedAmount\",\r\n \"amount\": 3253.6,\r\n \"isActive\": true,\r\n \"additionalDetails\": {}\r\n }\r\n ],\r\n \"isActive\": true,\r\n \"additionalDetails\": null\r\n },\r\n {\r\n \"id\": \"{{Lineitem2}}\",\r\n \"sorId\": null,\r\n \"category\": \"OVERHEAD\",\r\n \"name\": \"GST\",\r\n \"description\": \"Goods and Service Tax\",\r\n \"unitRate\": null,\r\n \"noOfunit\": null,\r\n \"uom\": null,\r\n \"uomValue\": null,\r\n \"amountDetail\": [\r\n {\r\n \"id\": \"{{estLineamount2}}\",\r\n \"type\": \"GST\",\r\n \"amount\": 585.6,\r\n \"isActive\": true,\r\n \"additionalDetails\": null\r\n }\r\n ],\r\n \"isActive\": true,\r\n \"additionalDetails\": {\r\n \"row\": {\r\n \"percentage\": \"18 %\",\r\n \"name\": {\r\n \"id\": \"2\",\r\n \"code\": \"GST\",\r\n \"description\": \"Goods and Service Tax\",\r\n \"active\": true,\r\n \"isAutoCalculated\": true,\r\n \"type\": \"percentage\",\r\n \"value\": \"18\",\r\n \"isWorkOrderValue\": true,\r\n \"effectiveFrom\": \"1694172775346\",\r\n \"effectiveTo\": null,\r\n \"name\": \"ES_COMMON_OVERHEADS_GST\"\r\n },\r\n \"amount\": \"585.6\"\r\n }\r\n }\r\n }\r\n ],\r\n \"additionalDetails\": {\r\n \"documents\": [\r\n {\r\n \"fileName\": \"{{fileName}}\",\r\n \"fileStoreId\": \"{{fileStoreId}}\",\r\n \"documentUid\": \"{{fileStoreId}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_DETAILED_ESTIMATE\"\r\n },\r\n {\r\n \"fileName\": \"{{fileName}}\",\r\n \"fileStoreId\": \"{{fileStoreId}}\",\r\n \"documentUid\": \"{{fileStoreId}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_LABOUR_ANALYSIS\"\r\n },\r\n {\r\n \"fileName\": \"{{fileName}}\",\r\n \"fileStoreId\": \"{{fileStoreId}}\",\r\n \"documentUid\": \"{{fileStoreId}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_MATERIAL_ANALYSIS\"\r\n },\r\n {\r\n \"fileType\": \"ESTIMATE_DOC_DESIGN_DOCUMENT\"\r\n },\r\n {\r\n \"fileName\": \"\",\r\n \"fileType\": \"Others\"\r\n }\r\n ],\r\n \"labourMaterialAnalysis\": {\r\n \"labour\": \"50\",\r\n \"material\": \"50\"\r\n },\r\n \"creator\": \"SMS QA testing\",\r\n \"location\": {\r\n \"locality\": \"B1\",\r\n \"ward\": \"B1\",\r\n \"city\": \"{{tenantId}}\"\r\n },\r\n \"ward\": \"B1\",\r\n \"locality\": \"SUN01\",\r\n \"projectNumber\": \"{{PJNo-est}}\",\r\n \"totalEstimatedAmount\": 3839.2,\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"projectName\": \"{{randomWord}}\"\r\n }\r\n },\r\n \"workflow\": {\r\n \"action\": \"VERIFYANDFORWARD\"\r\n },\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"authToken\": \"{{auth}}\",\r\n \"msgId\": \"1694085272328|en_IN\",\r\n \"plainAccessRequest\": {}\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/estimate/v1/_update", "host": [ "{{base_url}}" ], "path": [ "estimate", "v1", "_update" ] } }, "response": [] }, { "name": "Update Estimate - Success Technical sanctioned", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () =>\r", " pm.expect(pm.response.to.have.status(200))\r", ");\r", "\r", "pm.test(\"estimate's workflow status is Technical Sanctioned\", function () {\r", " let responseData = pm.response.json();\r", " pm.expect(responseData.estimates[0].wfStatus).eq(\"PENDINGFORAPPROVAL\");\r", " pm.collectionVariables.set(\"wfStatus\", responseData.estimates[0].status);\r", "});\r", "\r", "\r", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"estimate\": {\r\n \"id\": \"{{estimateId}}\",\r\n \"estimateNumber\": \"{{estimateNumber}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"projectId\": \"{{PJId-est}}\",\r\n \"status\": \"ACTIVE\",\r\n \"wfStatus\": \"CREATED\",\r\n \"name\": \"{{randomWord}}\",\r\n \"description\": \"{{randomWord}}\",\r\n \"executingDepartment\": \"WRK\",\r\n \"address\": {\r\n \"id\": \"{{PJ-addressid}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"clientReferenceId\": null,\r\n \"doorNo\": null,\r\n \"latitude\": 0,\r\n \"longitude\": 0,\r\n \"locationAccuracy\": 0,\r\n \"type\": null,\r\n \"addressLine1\": null,\r\n \"addressLine2\": null,\r\n \"landmark\": null,\r\n \"city\": \"pg.citya\",\r\n \"pincode\": null,\r\n \"buildingName\": null,\r\n \"street\": null,\r\n \"boundaryType\": \"{{boundaryType}}\",\r\n \"boundary\": \"{{boundary}}\",\r\n \"locality\": null\r\n },\r\n \"estimateDetails\": [\r\n {\r\n \"id\": \"{{Lineitem1}}\",\r\n \"sorId\": \"SOR_000196\",\r\n \"category\": \"SOR\",\r\n \"name\": \"P.C.C. Grade M25 Using Batching plant, Transit Mixer and concrete pump (Data for 120.00 Cum) [First Floor]\",\r\n \"description\": \"LHS\",\r\n \"unitRate\": 439070.35,\r\n \"noOfunit\": 1.0,\r\n \"uom\": \"CUM\",\r\n \"uomValue\": 0.0,\r\n \"length\": 1,\r\n \"width\": 1,\r\n \"height\": 1,\r\n \"quantity\": 1,\r\n \"isDeduction\": false,\r\n \"amountDetail\": [\r\n {\r\n \"id\": \"{{estLineamount1}}\",\r\n \"type\": \"EstimatedAmount\",\r\n \"amount\": 3253.6,\r\n \"isActive\": true,\r\n \"additionalDetails\": {}\r\n }\r\n ],\r\n \"isActive\": true,\r\n \"additionalDetails\": null\r\n },\r\n {\r\n \"id\": \"{{Lineitem2}}\",\r\n \"sorId\": null,\r\n \"category\": \"OVERHEAD\",\r\n \"name\": \"GST\",\r\n \"description\": \"Goods and Service Tax\",\r\n \"unitRate\": null,\r\n \"noOfunit\": null,\r\n \"uom\": null,\r\n \"uomValue\": null,\r\n \"amountDetail\": [\r\n {\r\n \"id\": \"{{estLineamount2}}\",\r\n \"type\": \"GST\",\r\n \"amount\": 585.6,\r\n \"isActive\": true,\r\n \"additionalDetails\": null\r\n }\r\n ],\r\n \"isActive\": true,\r\n \"additionalDetails\": {\r\n \"row\": {\r\n \"percentage\": \"18 %\",\r\n \"name\": {\r\n \"id\": \"2\",\r\n \"code\": \"GST\",\r\n \"description\": \"Goods and Service Tax\",\r\n \"active\": true,\r\n \"isAutoCalculated\": true,\r\n \"type\": \"percentage\",\r\n \"value\": \"18\",\r\n \"isWorkOrderValue\": true,\r\n \"effectiveFrom\": \"1694172775346\",\r\n \"effectiveTo\": null,\r\n \"name\": \"ES_COMMON_OVERHEADS_GST\"\r\n },\r\n \"amount\": \"585.6\"\r\n }\r\n }\r\n }\r\n ],\r\n \"additionalDetails\": {\r\n \"documents\": [\r\n {\r\n \"fileName\": \"{{fileName}}\",\r\n \"fileStoreId\": \"{{fileStoreId}}\",\r\n \"documentUid\": \"{{fileStoreId}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_DETAILED_ESTIMATE\"\r\n },\r\n {\r\n \"fileName\": \"{{fileName}}\",\r\n \"fileStoreId\": \"{{fileStoreId}}\",\r\n \"documentUid\": \"{{fileStoreId}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_LABOUR_ANALYSIS\"\r\n },\r\n {\r\n \"fileName\": \"{{fileName}}\",\r\n \"fileStoreId\": \"{{fileStoreId}}\",\r\n \"documentUid\": \"{{fileStoreId}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_MATERIAL_ANALYSIS\"\r\n },\r\n {\r\n \"fileType\": \"ESTIMATE_DOC_DESIGN_DOCUMENT\"\r\n },\r\n {\r\n \"fileName\": \"\",\r\n \"fileType\": \"Others\"\r\n }\r\n ],\r\n \"labourMaterialAnalysis\": {\r\n \"labour\": \"50\",\r\n \"material\": \"50\"\r\n },\r\n \"creator\": \"SMS QA testing\",\r\n \"location\": {\r\n \"locality\": \"B1\",\r\n \"ward\": \"B1\",\r\n \"city\": \"{{tenantId}}\"\r\n },\r\n \"ward\": \"B1\",\r\n \"locality\": \"SUN01\",\r\n \"projectNumber\": \"{{PJNo-est}}\",\r\n \"totalEstimatedAmount\": 3839.2,\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"projectName\": \"{{randomWord}}\"\r\n }\r\n },\r\n \"workflow\": {\r\n \"action\": \"TECHNICALSANCTION\"\r\n },\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"authToken\": \"{{auth}}\",\r\n \"msgId\": \"1694085272328|en_IN\",\r\n \"plainAccessRequest\": {}\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/estimate/v1/_update", "host": [ "{{base_url}}" ], "path": [ "estimate", "v1", "_update" ] } }, "response": [] }, { "name": "Update Estimate - Success Approved", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () =>\r", " pm.expect(pm.response.to.have.status(200))\r", ");\r", "\r", "pm.test(\"estimate's workflow status is Approved\", function () {\r", " let responseData = pm.response.json();\r", " pm.expect(responseData.estimates[0].wfStatus).eq(\"APPROVED\");\r", " pm.collectionVariables.set(\"wfStatus\", responseData.estimates[0].status);\r", "});\r", "\r", "\r", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"estimate\": {\r\n \"id\": \"{{estimateId}}\",\r\n \"estimateNumber\": \"{{estimateNumber}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"projectId\": \"{{PJId-est}}\",\r\n \"status\": \"ACTIVE\",\r\n \"wfStatus\": \"CREATED\",\r\n \"name\": \"{{randomWord}}\",\r\n \"description\": \"{{randomWord}}\",\r\n \"executingDepartment\": \"WRK\",\r\n \"address\": {\r\n \"id\": \"{{PJ-addressid}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"clientReferenceId\": null,\r\n \"doorNo\": null,\r\n \"latitude\": 0,\r\n \"longitude\": 0,\r\n \"locationAccuracy\": 0,\r\n \"type\": null,\r\n \"addressLine1\": null,\r\n \"addressLine2\": null,\r\n \"landmark\": null,\r\n \"city\": \"pg.citya\",\r\n \"pincode\": null,\r\n \"buildingName\": null,\r\n \"street\": null,\r\n \"boundaryType\": \"{{boundaryType}}\",\r\n \"boundary\": \"{{boundary}}\",\r\n \"locality\": null\r\n },\r\n \"estimateDetails\": [\r\n {\r\n \"id\": \"{{Lineitem1}}\",\r\n \"sorId\": \"SOR_000196\",\r\n \"category\": \"SOR\",\r\n \"name\": \"P.C.C. Grade M25 Using Batching plant, Transit Mixer and concrete pump (Data for 120.00 Cum) [First Floor]\",\r\n \"description\": \"LHS\",\r\n \"unitRate\": 439070.35,\r\n \"noOfunit\": 1.0,\r\n \"uom\": \"CUM\",\r\n \"uomValue\": 0.0,\r\n \"length\": 1,\r\n \"width\": 1,\r\n \"height\": 1,\r\n \"quantity\": 1,\r\n \"isDeduction\": false,\r\n \"amountDetail\": [\r\n {\r\n \"id\": \"{{estLineamount1}}\",\r\n \"type\": \"EstimatedAmount\",\r\n \"amount\": 3253.6,\r\n \"isActive\": true,\r\n \"additionalDetails\": {}\r\n }\r\n ],\r\n \"isActive\": true,\r\n \"additionalDetails\": null\r\n },\r\n {\r\n \"id\": \"{{Lineitem2}}\",\r\n \"sorId\": null,\r\n \"category\": \"OVERHEAD\",\r\n \"name\": \"GST\",\r\n \"description\": \"Goods and Service Tax\",\r\n \"unitRate\": null,\r\n \"noOfunit\": null,\r\n \"uom\": null,\r\n \"uomValue\": null,\r\n \"amountDetail\": [\r\n {\r\n \"id\": \"{{estLineamount2}}\",\r\n \"type\": \"GST\",\r\n \"amount\": 585.6,\r\n \"isActive\": true,\r\n \"additionalDetails\": null\r\n }\r\n ],\r\n \"isActive\": true,\r\n \"additionalDetails\": {\r\n \"row\": {\r\n \"percentage\": \"18 %\",\r\n \"name\": {\r\n \"id\": \"2\",\r\n \"code\": \"GST\",\r\n \"description\": \"Goods and Service Tax\",\r\n \"active\": true,\r\n \"isAutoCalculated\": true,\r\n \"type\": \"percentage\",\r\n \"value\": \"18\",\r\n \"isWorkOrderValue\": true,\r\n \"effectiveFrom\": \"1694172775346\",\r\n \"effectiveTo\": null,\r\n \"name\": \"ES_COMMON_OVERHEADS_GST\"\r\n },\r\n \"amount\": \"585.6\"\r\n }\r\n }\r\n }\r\n ],\r\n \"additionalDetails\": {\r\n \"documents\": [\r\n {\r\n \"fileName\": \"{{fileName}}\",\r\n \"fileStoreId\": \"{{fileStoreId}}\",\r\n \"documentUid\": \"{{fileStoreId}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_DETAILED_ESTIMATE\"\r\n },\r\n {\r\n \"fileName\": \"{{fileName}}\",\r\n \"fileStoreId\": \"{{fileStoreId}}\",\r\n \"documentUid\": \"{{fileStoreId}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_LABOUR_ANALYSIS\"\r\n },\r\n {\r\n \"fileName\": \"{{fileName}}\",\r\n \"fileStoreId\": \"{{fileStoreId}}\",\r\n \"documentUid\": \"{{fileStoreId}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_MATERIAL_ANALYSIS\"\r\n },\r\n {\r\n \"fileType\": \"ESTIMATE_DOC_DESIGN_DOCUMENT\"\r\n },\r\n {\r\n \"fileName\": \"\",\r\n \"fileType\": \"Others\"\r\n }\r\n ],\r\n \"labourMaterialAnalysis\": {\r\n \"labour\": \"50\",\r\n \"material\": \"50\"\r\n },\r\n \"creator\": \"SMS QA testing\",\r\n \"location\": {\r\n \"locality\": \"B1\",\r\n \"ward\": \"B1\",\r\n \"city\": \"{{tenantId}}\"\r\n },\r\n \"ward\": \"B1\",\r\n \"locality\": \"SUN01\",\r\n \"projectNumber\": \"{{PJNo-est}}\",\r\n \"totalEstimatedAmount\": 3839.2,\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"projectName\": \"{{randomWord}}\"\r\n }\r\n },\r\n \"workflow\": {\r\n \"action\": \"APPROVE\"\r\n },\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"authToken\": \"{{auth}}\",\r\n \"msgId\": \"1694085272328|en_IN\",\r\n \"plainAccessRequest\": {}\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/estimate/v1/_update", "host": [ "{{base_url}}" ], "path": [ "estimate", "v1", "_update" ] } }, "response": [] }, { "name": "Update Estimate - Validation error - Address is null", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is not successful\", () =>\r", " pm.expect(pm.response.to.have.status(400))\r", ");\r", "\r", "pm.test(\"Correct Error with message and code is received\", function () {\r", " var res = pm.response.json();\r", " var code = res.Errors[0].code;\r", " var message = res.Errors[0].message;\r", " pm.expect(code).to.eql(\"ADDRESS\");\r", " pm.expect(message).to.eql(\"Address is mandatory\");\r", "}\r", ");" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"estimate\": {\r\n \"id\": \"{{estimateId}}\",\r\n \"estimateNumber\": \"{{estimateNumber}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"projectId\": \"{{PJId-est}}\",\r\n \"status\": \"ACTIVE\",\r\n \"wfStatus\": \"CREATED\",\r\n \"name\": \"{{randomWord}}\",\r\n \"description\": \"{{randomWord}}\",\r\n \"executingDepartment\": \"WRK\",\r\n \"address\": null,\r\n \"estimateDetails\": [\r\n {\r\n \"sorId\": 45,\r\n \"category\": \"NON-SOR\",\r\n \"name\": \"Testing 01\",\r\n \"description\": \"Testing 01\",\r\n \"unitRate\": \"250\",\r\n \"noOfunit\": \"12\",\r\n \"uom\": \"KG\",\r\n \"amountDetail\": [\r\n {\r\n \"type\": \"EstimatedAmount\",\r\n \"amount\": \"3000.00\",\r\n \"additionalDetails\": {}\r\n }\r\n ]\r\n },\r\n {\r\n \"sorId\": 45,\r\n \"category\": \"NON-SOR\",\r\n \"name\": \"Testing 02\",\r\n \"description\": \"Testing 02\",\r\n \"unitRate\": \"125\",\r\n \"noOfunit\": \"25\",\r\n \"uom\": \"SQM\",\r\n \"amountDetail\": [\r\n {\r\n \"type\": \"EstimatedAmount\",\r\n \"amount\": \"3125.00\",\r\n \"additionalDetails\": {}\r\n }\r\n ]\r\n },\r\n {\r\n \"sorId\": 45,\r\n \"category\": \"NON-SOR\",\r\n \"name\": \"Testing 03\",\r\n \"description\": \"Testing 05\",\r\n \"unitRate\": \"135\",\r\n \"noOfunit\": \"11\",\r\n \"uom\": \"RMT\",\r\n \"amountDetail\": [\r\n {\r\n \"type\": \"EstimatedAmount\",\r\n \"amount\": \"1485.00\",\r\n \"additionalDetails\": {}\r\n }\r\n ]\r\n },\r\n {\r\n \"category\": \"OVERHEAD\",\r\n \"name\": \"GST\",\r\n \"description\": \"Goods and Service Tax\",\r\n \"amountDetail\": [\r\n {\r\n \"type\": \"GST\",\r\n \"amount\": \"1369.80\"\r\n }\r\n ],\r\n \"additionalDetails\": {\r\n \"row\": {\r\n \"percentage\": \"18 %\",\r\n \"name\": {\r\n \"id\": \"2\",\r\n \"code\": \"GST\",\r\n \"description\": \"Goods and Service Tax\",\r\n \"active\": true,\r\n \"isAutoCalculated\": true,\r\n \"type\": \"percentage\",\r\n \"value\": \"18\",\r\n \"isWorkOrderValue\": true,\r\n \"effectiveFrom\": \"{{dateOfProposal}}\",\r\n \"effectiveTo\": null,\r\n \"name\": \"ES_COMMON_OVERHEADS_GST\"\r\n },\r\n \"amount\": \"1369.80\"\r\n }\r\n }\r\n }\r\n ],\r\n \"additionalDetails\": {\r\n \"documents\": [\r\n {\r\n \"fileName\": \"{{fileName}}\",\r\n \"fileStoreId\": \"{{fileStoreId}}\",\r\n \"documentUid\": \"{{fileStoreId}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_DETAILED_ESTIMATE\"\r\n },\r\n {\r\n \"fileName\": \"{{fileName}}\",\r\n \"fileStoreId\": \"{{fileStoreId}}\",\r\n \"documentUid\": \"{{fileStoreId}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_LABOUR_ANALYSIS\"\r\n },\r\n {\r\n \"fileName\": \"{{fileName}}\",\r\n \"fileStoreId\": \"{{fileStoreId}}\",\r\n \"documentUid\": \"{{fileStoreId}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_MATERIAL_ANALYSIS\"\r\n },\r\n {\r\n \"fileType\": \"ESTIMATE_DOC_DESIGN_DOCUMENT\"\r\n },\r\n {\r\n \"fileName\": \"\",\r\n \"fileType\": \"Others\"\r\n }\r\n ],\r\n \"labourMaterialAnalysis\": {\r\n \"labour\": \"50\",\r\n \"material\": \"50\"\r\n },\r\n \"creator\": \"SMS QA testing\",\r\n \"location\": {\r\n \"locality\": \"B1\",\r\n \"ward\": \"B1\",\r\n \"city\": \"{{tenantId}}\"\r\n },\r\n \"ward\": \"B1\",\r\n \"locality\": \"SUN01\",\r\n \"projectNumber\": \"{{PJNo-est}}\",\r\n \"totalEstimatedAmount\": 8979.8,\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"projectName\": \"{{randomWord}}\"\r\n }\r\n },\r\n \"workflow\": {\r\n \"action\": \"APPROVE\"\r\n },\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"authToken\": \"{{auth}}\",\r\n \"msgId\": \"1694064135997|en_IN\",\r\n \"plainAccessRequest\": {}\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/estimate/v1/_update", "host": [ "{{base_url}}" ], "path": [ "estimate", "v1", "_update" ] } }, "response": [] }, { "name": "Update Estimate - Validation error - Invalid Project", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is not successful\", () =>\r", " pm.expect(pm.response.to.have.status(400))\r", ");\r", "\r", "pm.test(\"Correct Error with message and code is received\", function () {\r", " var res = pm.response.json();\r", " var code = res.Errors[0].code;\r", " var message = res.Errors[0].message;\r", " pm.expect(code).to.eql(\"INVALID_PROJECT_ID\");\r", "}\r", ");" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"estimate\": {\r\n \"id\": \"{{estimateId}}\",\r\n \"estimateNumber\": \"{{estimateNumber}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"projectId\": \"12255\",\r\n \"status\": \"ACTIVE\",\r\n \"wfStatus\": \"CREATED\",\r\n \"name\": \"{{randomWord}}\",\r\n \"description\": \"{{randomWord}}\",\r\n \"executingDepartment\": \"WRK\",\r\n \"address\": {\r\n \"id\": \"{{PJ-addressid}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"clientReferenceId\": null,\r\n \"doorNo\": null,\r\n \"latitude\": 0,\r\n \"longitude\": 0,\r\n \"locationAccuracy\": 0,\r\n \"type\": null,\r\n \"addressLine1\": null,\r\n \"addressLine2\": null,\r\n \"landmark\": null,\r\n \"city\": \"pg.citya\",\r\n \"pincode\": null,\r\n \"buildingName\": null,\r\n \"street\": null,\r\n \"boundaryType\": \"{{boundaryType}}\",\r\n \"boundary\": \"{{boundary}}\",\r\n \"locality\": null\r\n },\r\n \"estimateDetails\": [\r\n {\r\n \"sorId\": 45,\r\n \"category\": \"NON-SOR\",\r\n \"name\": \"Testing 01\",\r\n \"description\": \"Testing 01\",\r\n \"unitRate\": \"250\",\r\n \"noOfunit\": \"12\",\r\n \"uom\": \"KG\",\r\n \"amountDetail\": [\r\n {\r\n \"type\": \"EstimatedAmount\",\r\n \"amount\": \"3000.00\",\r\n \"additionalDetails\": {}\r\n }\r\n ]\r\n },\r\n {\r\n \"sorId\": 45,\r\n \"category\": \"NON-SOR\",\r\n \"name\": \"Testing 02\",\r\n \"description\": \"Testing 02\",\r\n \"unitRate\": \"125\",\r\n \"noOfunit\": \"25\",\r\n \"uom\": \"SQM\",\r\n \"amountDetail\": [\r\n {\r\n \"type\": \"EstimatedAmount\",\r\n \"amount\": \"3125.00\",\r\n \"additionalDetails\": {}\r\n }\r\n ]\r\n },\r\n {\r\n \"sorId\": 45,\r\n \"category\": \"NON-SOR\",\r\n \"name\": \"Testing 03\",\r\n \"description\": \"Testing 05\",\r\n \"unitRate\": \"135\",\r\n \"noOfunit\": \"11\",\r\n \"uom\": \"RMT\",\r\n \"amountDetail\": [\r\n {\r\n \"type\": \"EstimatedAmount\",\r\n \"amount\": \"1485.00\",\r\n \"additionalDetails\": {}\r\n }\r\n ]\r\n },\r\n {\r\n \"category\": \"OVERHEAD\",\r\n \"name\": \"GST\",\r\n \"description\": \"Goods and Service Tax\",\r\n \"amountDetail\": [\r\n {\r\n \"type\": \"GST\",\r\n \"amount\": \"1369.80\"\r\n }\r\n ],\r\n \"additionalDetails\": {\r\n \"row\": {\r\n \"percentage\": \"18 %\",\r\n \"name\": {\r\n \"id\": \"2\",\r\n \"code\": \"GST\",\r\n \"description\": \"Goods and Service Tax\",\r\n \"active\": true,\r\n \"isAutoCalculated\": true,\r\n \"type\": \"percentage\",\r\n \"value\": \"18\",\r\n \"isWorkOrderValue\": true,\r\n \"effectiveFrom\": \"{{dateOfProposal}}\",\r\n \"effectiveTo\": null,\r\n \"name\": \"ES_COMMON_OVERHEADS_GST\"\r\n },\r\n \"amount\": \"1369.80\"\r\n }\r\n }\r\n }\r\n ],\r\n \"additionalDetails\": {\r\n \"documents\": [\r\n {\r\n \"fileName\": \"{{fileName}}\",\r\n \"fileStoreId\": \"{{fileStoreId}}\",\r\n \"documentUid\": \"{{fileStoreId}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_DETAILED_ESTIMATE\"\r\n },\r\n {\r\n \"fileName\": \"{{fileName}}\",\r\n \"fileStoreId\": \"{{fileStoreId}}\",\r\n \"documentUid\": \"{{fileStoreId}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_LABOUR_ANALYSIS\"\r\n },\r\n {\r\n \"fileName\": \"{{fileName}}\",\r\n \"fileStoreId\": \"{{fileStoreId}}\",\r\n \"documentUid\": \"{{fileStoreId}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_MATERIAL_ANALYSIS\"\r\n },\r\n {\r\n \"fileType\": \"ESTIMATE_DOC_DESIGN_DOCUMENT\"\r\n },\r\n {\r\n \"fileName\": \"\",\r\n \"fileType\": \"Others\"\r\n }\r\n ],\r\n \"labourMaterialAnalysis\": {\r\n \"labour\": \"50\",\r\n \"material\": \"50\"\r\n },\r\n \"creator\": \"SMS QA testing\",\r\n \"location\": {\r\n \"locality\": \"B1\",\r\n \"ward\": \"B1\",\r\n \"city\": \"{{tenantId}}\"\r\n },\r\n \"ward\": \"B1\",\r\n \"locality\": \"SUN01\",\r\n \"projectNumber\": \"{{PJNo-est}}\",\r\n \"totalEstimatedAmount\": 8979.8,\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"projectName\": \"{{randomWord}}\"\r\n }\r\n },\r\n \"workflow\": {\r\n \"action\": \"APPROVE\"\r\n },\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"authToken\": \"{{auth}}\",\r\n \"msgId\": \"1694064135997|en_IN\",\r\n \"plainAccessRequest\": {}\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/estimate/v1/_update", "host": [ "{{base_url}}" ], "path": [ "estimate", "v1", "_update" ] } }, "response": [] }, { "name": "Update Estimate - Validation error - Amount detail is null", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is not successful\", () =>\r", " pm.expect(pm.response.to.have.status(400))\r", ");\r", "\r", "pm.test(\"Correct Error with message and code is received\", function () {\r", " var res = pm.response.json();\r", " var code = res.Errors[0].code;\r", " var message = res.Errors[0].message;\r", " pm.expect(code).to.eql(\"ESTIMATE.DETAIL.AMOUNT.DETAILS\");\r", " pm.expect(message).to.eql(\"Amount details are mandatory\");\r", "}\r", ");" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"estimate\": {\r\n \"id\": \"{{estimateId}}\",\r\n \"estimateNumber\": \"{{estimateNumber}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"projectId\": \"{{PJId-est}}\",\r\n \"status\": \"ACTIVE\",\r\n \"wfStatus\": \"CREATED\",\r\n \"name\": \"{{randomWord}}\",\r\n \"description\": \"{{randomWord}}\",\r\n \"executingDepartment\": \"WRK\",\r\n \"address\": {\r\n \"id\": \"{{PJ-addressid}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"clientReferenceId\": null,\r\n \"doorNo\": null,\r\n \"latitude\": 0,\r\n \"longitude\": 0,\r\n \"locationAccuracy\": 0,\r\n \"type\": null,\r\n \"addressLine1\": null,\r\n \"addressLine2\": null,\r\n \"landmark\": null,\r\n \"city\": \"pg.citya\",\r\n \"pincode\": null,\r\n \"buildingName\": null,\r\n \"street\": null,\r\n \"boundaryType\": \"{{boundaryType}}\",\r\n \"boundary\": \"{{boundary}}\",\r\n \"locality\": null\r\n },\r\n \"estimateDetails\": [\r\n {\r\n \"sorId\": 45,\r\n \"category\": \"NON-SOR\",\r\n \"name\": \"Testing 01\",\r\n \"description\": \"Testing 01\",\r\n \"unitRate\": \"250\",\r\n \"noOfunit\": \"12\",\r\n \"uom\": \"KG\",\r\n \"amountDetail\": null\r\n },\r\n {\r\n \"sorId\": 45,\r\n \"category\": \"NON-SOR\",\r\n \"name\": \"Testing 02\",\r\n \"description\": \"Testing 02\",\r\n \"unitRate\": \"125\",\r\n \"noOfunit\": \"25\",\r\n \"uom\": \"SQM\",\r\n \"amountDetail\": [\r\n {\r\n \"type\": \"EstimatedAmount\",\r\n \"amount\": \"3125.00\",\r\n \"additionalDetails\": {}\r\n }\r\n ]\r\n },\r\n {\r\n \"sorId\": 45,\r\n \"category\": \"NON-SOR\",\r\n \"name\": \"Testing 03\",\r\n \"description\": \"Testing 05\",\r\n \"unitRate\": \"135\",\r\n \"noOfunit\": \"11\",\r\n \"uom\": \"RMT\",\r\n \"amountDetail\": [\r\n {\r\n \"type\": \"EstimatedAmount\",\r\n \"amount\": \"1485.00\",\r\n \"additionalDetails\": {}\r\n }\r\n ]\r\n },\r\n {\r\n \"category\": \"OVERHEAD\",\r\n \"name\": \"GST\",\r\n \"description\": \"Goods and Service Tax\",\r\n \"amountDetail\": [\r\n {\r\n \"type\": \"GST\",\r\n \"amount\": \"1369.80\"\r\n }\r\n ],\r\n \"additionalDetails\": {\r\n \"row\": {\r\n \"percentage\": \"18 %\",\r\n \"name\": {\r\n \"id\": \"2\",\r\n \"code\": \"GST\",\r\n \"description\": \"Goods and Service Tax\",\r\n \"active\": true,\r\n \"isAutoCalculated\": true,\r\n \"type\": \"percentage\",\r\n \"value\": \"18\",\r\n \"isWorkOrderValue\": true,\r\n \"effectiveFrom\": \"{{dateOfProposal}}\",\r\n \"effectiveTo\": null,\r\n \"name\": \"ES_COMMON_OVERHEADS_GST\"\r\n },\r\n \"amount\": \"1369.80\"\r\n }\r\n }\r\n }\r\n ],\r\n \"additionalDetails\": {\r\n \"documents\": [\r\n {\r\n \"fileName\": \"{{fileName}}\",\r\n \"fileStoreId\": \"{{fileStoreId}}\",\r\n \"documentUid\": \"{{fileStoreId}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_DETAILED_ESTIMATE\"\r\n },\r\n {\r\n \"fileName\": \"{{fileName}}\",\r\n \"fileStoreId\": \"{{fileStoreId}}\",\r\n \"documentUid\": \"{{fileStoreId}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_LABOUR_ANALYSIS\"\r\n },\r\n {\r\n \"fileName\": \"{{fileName}}\",\r\n \"fileStoreId\": \"{{fileStoreId}}\",\r\n \"documentUid\": \"{{fileStoreId}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_MATERIAL_ANALYSIS\"\r\n },\r\n {\r\n \"fileType\": \"ESTIMATE_DOC_DESIGN_DOCUMENT\"\r\n },\r\n {\r\n \"fileName\": \"\",\r\n \"fileType\": \"Others\"\r\n }\r\n ],\r\n \"labourMaterialAnalysis\": {\r\n \"labour\": \"50\",\r\n \"material\": \"50\"\r\n },\r\n \"creator\": \"SMS QA testing\",\r\n \"location\": {\r\n \"locality\": \"B1\",\r\n \"ward\": \"B1\",\r\n \"city\": \"{{tenantId}}\"\r\n },\r\n \"ward\": \"B1\",\r\n \"locality\": \"SUN01\",\r\n \"projectNumber\": \"{{PJNo-est}}\",\r\n \"totalEstimatedAmount\": 8979.8,\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"projectName\": \"{{randomWord}}\"\r\n }\r\n },\r\n \"workflow\": {\r\n \"action\": \"APPROVE\"\r\n },\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"authToken\": \"{{auth}}\",\r\n \"msgId\": \"1694064135997|en_IN\",\r\n \"plainAccessRequest\": {}\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/estimate/v1/_update", "host": [ "{{base_url}}" ], "path": [ "estimate", "v1", "_update" ] } }, "response": [] }, { "name": "Update Estimate - Validation error - Estimate detail is null", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is not successful\", () =>\r", " pm.expect(pm.response.to.have.status(400))\r", ");\r", "\r", "pm.test(\"Correct Error with message and code is received\", function () {\r", " var res = pm.response.json();\r", " var code = res.Errors[0].code;\r", " var message = res.Errors[0].message;\r", " pm.expect(code).to.eql(\"ESTIMATE_DETAILS\");\r", " pm.expect(message).to.eql(\"Estimate detail is mandatory\");\r", "}\r", ");" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"estimate\": {\r\n \"id\": \"{{estimateId}}\",\r\n \"estimateNumber\": \"{{estimateNumber}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"projectId\": \"{{PJId-est}}\",\r\n \"status\": \"ACTIVE\",\r\n \"wfStatus\": \"CREATED\",\r\n \"name\": \"{{randomWord}}\",\r\n \"description\": \"{{randomWord}}\",\r\n \"executingDepartment\": \"WRK\",\r\n \"address\": {\r\n \"id\": \"{{PJ-addressid}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"clientReferenceId\": null,\r\n \"doorNo\": null,\r\n \"latitude\": 0,\r\n \"longitude\": 0,\r\n \"locationAccuracy\": 0,\r\n \"type\": null,\r\n \"addressLine1\": null,\r\n \"addressLine2\": null,\r\n \"landmark\": null,\r\n \"city\": \"pg.citya\",\r\n \"pincode\": null,\r\n \"buildingName\": null,\r\n \"street\": null,\r\n \"boundaryType\": \"{{boundaryType}}\",\r\n \"boundary\": \"{{boundary}}\",\r\n \"locality\": null\r\n },\r\n \"estimateDetails\": null,\r\n \"additionalDetails\": {\r\n \"documents\": [\r\n {\r\n \"fileName\": \"{{fileName}}\",\r\n \"fileStoreId\": \"{{fileStoreId}}\",\r\n \"documentUid\": \"{{fileStoreId}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_DETAILED_ESTIMATE\"\r\n },\r\n {\r\n \"fileName\": \"{{fileName}}\",\r\n \"fileStoreId\": \"{{fileStoreId}}\",\r\n \"documentUid\": \"{{fileStoreId}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_LABOUR_ANALYSIS\"\r\n },\r\n {\r\n \"fileName\": \"{{fileName}}\",\r\n \"fileStoreId\": \"{{fileStoreId}}\",\r\n \"documentUid\": \"{{fileStoreId}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_MATERIAL_ANALYSIS\"\r\n },\r\n {\r\n \"fileType\": \"ESTIMATE_DOC_DESIGN_DOCUMENT\"\r\n },\r\n {\r\n \"fileName\": \"\",\r\n \"fileType\": \"Others\"\r\n }\r\n ],\r\n \"labourMaterialAnalysis\": {\r\n \"labour\": \"50\",\r\n \"material\": \"50\"\r\n },\r\n \"creator\": \"SMS QA testing\",\r\n \"location\": {\r\n \"locality\": \"B1\",\r\n \"ward\": \"B1\",\r\n \"city\": \"{{tenantId}}\"\r\n },\r\n \"ward\": \"B1\",\r\n \"locality\": \"SUN01\",\r\n \"projectNumber\": \"{{PJNo-est}}\",\r\n \"totalEstimatedAmount\": 8979.8,\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"projectName\": \"{{randomWord}}\"\r\n }\r\n },\r\n \"workflow\": {\r\n \"action\": \"APPROVE\"\r\n },\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"authToken\": \"{{auth}}\",\r\n \"msgId\": \"1694064135997|en_IN\",\r\n \"plainAccessRequest\": {}\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/estimate/v1/_update", "host": [ "{{base_url}}" ], "path": [ "estimate", "v1", "_update" ] } }, "response": [] }, { "name": "Search Estimate - Success - EstimateNumber", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () =>\r", " pm.expect(pm.response.to.have.status(200))\r", ");\r", "\r", "pm.test(\"Search response is received\", function () {\r", " var res = pm.response.json();\r", " var estimateNumber = res.estimates[0].estimateNumber;\r", " pm.expect(estimateNumber).to.eql(pm.collectionVariables.get(\"estimateNumber\"));\r", " }\r", ");\r", "" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"authToken\": \"{{auth}}\"\r\n },\r\n \"apiOperation\": \"SEARCH\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/estimate/v1/_search?tenantId={{tenantId}}&estimateNumber={{estimateNumber}}", "host": [ "{{base_url}}" ], "path": [ "estimate", "v1", "_search" ], "query": [ { "key": "tenantId", "value": "{{tenantId}}" }, { "key": "estimateNumber", "value": "{{estimateNumber}}" } ] } }, "response": [] }, { "name": "Search Estimate - Success - ProjectName", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () =>\r", " pm.expect(pm.response.to.have.status(200))\r", ");\r", "\r", "pm.test(\"Search response is received\", function () {\r", " var res = pm.response.json();\r", " var projectName = res.estimates[0].projectName;\r", " pm.expect(projectName).to.eql(pm.collectionVariables.get(\"projectName\"));\r", " }\r", ");\r", "" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"authToken\": \"{{auth}}\"\r\n },\r\n \"apiOperation\": \"SEARCH\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/estimate/v1/_search?tenantId={{tenantId}}&ProjectName={{randomWord}}", "host": [ "{{base_url}}" ], "path": [ "estimate", "v1", "_search" ], "query": [ { "key": "tenantId", "value": "{{tenantId}}" }, { "key": "ProjectName", "value": "{{randomWord}}" } ] } }, "response": [] }, { "name": "Search Estimate - Success - Status", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () =>\r", " pm.expect(pm.response.to.have.status(200))\r", ");\r", "\r", "pm.test(\"Search response is received\", function () {\r", " var res = pm.response.json();\r", " var state = res.estimates[0].state;\r", " pm.expect(state).to.eql(pm.collectionVariables.get(\"state\"));\r", " }\r", ");" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"authToken\": \"{{auth}}\"\r\n },\r\n \"apiOperation\": \"SEARCH\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/estimate/v1/_search?tenantId={{tenantId}}&status={{wfStatus}}", "host": [ "{{base_url}}" ], "path": [ "estimate", "v1", "_search" ], "query": [ { "key": "tenantId", "value": "{{tenantId}}" }, { "key": "status", "value": "{{wfStatus}}" } ] } }, "response": [] }, { "name": "Search Estimate - Success - between createdFrom and To date", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () =>\r", " pm.expect(pm.response.to.have.status(200))\r", ");\r", "\r", "" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"authToken\": \"{{auth}}\"\r\n },\r\n \"apiOperation\": \"SEARCH\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/estimate/v1/_search?tenantId={{tenantId}}&fromProposalDate={{createdTime}}&toProposalDate={{lastModifiedTime}}", "host": [ "{{base_url}}" ], "path": [ "estimate", "v1", "_search" ], "query": [ { "key": "tenantId", "value": "{{tenantId}}" }, { "key": "fromProposalDate", "value": "{{createdTime}}" }, { "key": "toProposalDate", "value": "{{lastModifiedTime}}" } ] } }, "response": [] }, { "name": "Search Estimate - Validation Error - createdFrom greater than createdTo", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => \r", " pm.expect(pm.response.to.have.status(400)));\r", "\r", "pm.test(\"Correct Error with message and code is received\", function () {\r", " var res = pm.response.json();\r", " var code = res.Errors[0].code;\r", " var message = res.Errors[0].message;\r", " pm.expect(code).to.eql(\"FROM_GREATER_THAN_TO_DATE\");\r", " pm.expect(message).to.eql(\"From date is greater than to date\");\r", " }\r", ");\r", "" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"authToken\": \"{{auth}}\"\r\n },\r\n \"apiOperation\": \"SEARCH\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/estimate/v1/_search?tenantId={{tenantId}}&fromProposalDate=1694783889000&toProposalDate=1694092689000", "host": [ "{{base_url}}" ], "path": [ "estimate", "v1", "_search" ], "query": [ { "key": "tenantId", "value": "{{tenantId}}" }, { "key": "fromProposalDate", "value": "1694783889000" }, { "key": "toProposalDate", "value": "1694092689000" } ] } }, "response": [] }, { "name": "Search Estimate - Validation Error - createdTo without createdFrom param", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => \r", " pm.expect(pm.response.to.have.status(400)));\r", "\r", "pm.test(\"Correct Error with message and code is received\", function () {\r", " var res = pm.response.json();\r", " var code = res.Errors[0].code;\r", " var message = res.Errors[0].message;\r", " pm.expect(code).to.eql(\"INVALID_SEARCH_PARAM\");\r", " pm.expect(message).to.eql(\"Cannot specify toProposalDate without a fromProposalDate\");\r", " }\r", ");" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"authToken\": \"{{auth}}\"\r\n },\r\n \"apiOperation\": \"SEARCH\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/estimate/v1/_search?tenantId={{tenantId}}&toProposalDate={{lastModifiedTime}}", "host": [ "{{base_url}}" ], "path": [ "estimate", "v1", "_search" ], "query": [ { "key": "tenantId", "value": "{{tenantId}}" }, { "key": "toProposalDate", "value": "{{lastModifiedTime}}" } ] } }, "response": [] }, { "name": "Create Revision Estimate - Success", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"RequestInfo is required\", function () {\r", " var req = JSON.parse(pm.request.body.raw);\r", " pm.expect(req.RequestInfo).to.not.be.null;\r", " pm.expect(req.RequestInfo).to.not.be.undefined;\r", "});\r", "\r", "pm.test(\"TenantId is required\", function () {\r", " var req = JSON.parse(pm.request.body.raw);\r", " var estimate = req.estimate;\r", " pm.expect(estimate.tenantId).to.not.be.null;\r", " pm.expect(estimate.tenantId).to.not.be.undefined;\r", " pm.expect(estimate.tenantId).to.not.eql(\"\"); \r", "});\r", "\r", "pm.test(\"Name is mandatory\", function () {\r", " var req = JSON.parse(pm.request.body.raw);\r", " var estimate = req.estimate;\r", " pm.expect(estimate.name).to.not.be.null;\r", " pm.expect(estimate.name).to.not.be.undefined;\r", " pm.expect(estimate.name).to.not.eql(\"\");;\r", "});\r", "\r", "pm.test(\"print and save EstimateId in environment\", function () {\r", " var res = pm.response.json();\r", " var estId = res.estimates[0].id;\r", " console.log('id:', estId);\r", " pm.environment.set('estId-WO',estId);\r", "}\r", ");\r", "\r", "pm.test(\"print and save EstimateNumber in environment\", function () {\r", " var res = pm.response.json();\r", " var estNo = res.estimates[0].estimateNumber;\r", " console.log('estimateNumber:', estNo);\r", " pm.environment.set('estNo-WO',estNo);\r", "}\r", ");\r", "pm.test(\"print and save Revision Number in environment\", function(){\r", " var res = pm.response.json();\r", " var revisionNumber = res.estimates[0].revisionNumber;\r", " console.log('revisionNumber:', revisionNumber);\r", " pm.environment.set('revNo-WO',revisionNumber);\r", "});\r", "let responseData = pm.response.json();\r", "\r", "pm.test(\"Response is successful\", () =>\r", " pm.expect(pm.response.to.have.status(200))\r", ");\r", "\r", "//Storing the response data into collection variable to reuse\r", "\r", "pm.collectionVariables.set(\"fileName\", responseData.estimates[0].additionalDetails.documents[0].fileName);\r", "\r", "pm.environment.set(\"estfileName\", responseData.estimates[0].additionalDetails.documents[0].fileName);\r", "\r", "pm.collectionVariables.set(\"fileStoreId\", responseData.estimates[0].additionalDetails.documents[0].fileStoreId);\r", "\r", "pm.environment.set(\"estfileStoreId\", responseData.estimates[0].additionalDetails.documents[0].fileStoreId);\r", "\r", "pm.collectionVariables.set(\"fileType\", responseData.estimates[0].additionalDetails.documents[0].fileType);\r", "\r", "pm.environment.set(\"estfileType\", responseData.estimates[0].additionalDetails.documents[0].fileType);\r", "\r", "pm.collectionVariables.set(\"boundaryType\", responseData.estimates[0].address.boundaryType);\r", "\r", "pm.collectionVariables.set(\"boundary\", responseData.estimates[0].address.boundary);\r", "pm.collectionVariables.set(\"estimateId\", responseData.estimates[0].id);\r", "\r", "pm.collectionVariables.set(\"estimateNumber\", responseData.estimates[0].estimateNumber);\r", "\r", "pm.collectionVariables.set(\"createdTime\", (responseData.estimates[0].auditDetails.createdTime));\r", "\r", "pm.collectionVariables.set(\"lastModifiedTime\", (responseData.estimates[0].auditDetails.lastModifiedTime));\r", "\r", "pm.collectionVariables.set(\"wfStatus\", responseData.estimates[0].wfStatus);\r", "\r", "pm.collectionVariables.set(\"Lineitem1\", responseData.estimates[0].estimateDetails[0].id);\r", "\r", "pm.environment.set(\"estLineitem1\", responseData.estimates[0].estimateDetails[0].id);\r", "\r", "pm.collectionVariables.set(\"Lineamount1\", responseData.estimates[0].estimateDetails[0].amountDetail[0].id);\r", "\r", "pm.environment.set(\"estLineamount1\", responseData.estimates[0].estimateDetails[0].amountDetail[0].id);\r", "\r", "pm.collectionVariables.set(\"Lineitem2\", responseData.estimates[0].estimateDetails[1].id);\r", "\r", "pm.environment.set(\"estLineitem2\", responseData.estimates[0].estimateDetails[1].id);\r", "\r", "pm.collectionVariables.set(\"estLineamount2\", responseData.estimates[0].estimateDetails[1].amountDetail[0].id);\r", "\r", "pm.environment.set(\"estLineamount2\", responseData.estimates[0].estimateDetails[1].amountDetail[0].id);\r", "\r", "pm.environment.set(\"prevEstLineitem1\", responseData.estimates[0].estimateDetails[0].previousLineItemId);\r", "\r", "pm.environment.set(\"prevEstLineitem2\", responseData.estimates[0].estimateDetails[1].previousLineItemId);\r", "\r", "\r", "// Extract the total estimated amount from the response (use the correct JSON property name)\r", "var totalEstimatedAmount = responseData.estimates[0].additionalDetails.totalEstimatedAmount;\r", "\r", "var decimalPart = totalEstimatedAmount - Math.floor(totalEstimatedAmount);// Get the decimal part of the total estimated amount\r", "\r", "if (decimalPart >=0.5) {\r", " totalEstimatedAmount = Math.ceil(totalEstimatedAmount);// Check if the decimal part is greater than 0.5 and adjust the total amount accordingly\r", "} else {\r", " totalEstimatedAmount = Math.floor(totalEstimatedAmount);\r", "}\r", "\r", "pm.collectionVariables.set(\"totalEstimatedAmount\", totalEstimatedAmount);// Store the rounded amount in a collection variable (replace 'roundedAmount' and 'myCollectionVar' as needed)\r", "\r", "pm.environment.set(\"totalEstimatedAmount\", totalEstimatedAmount);" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"estimate\": {\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"projectId\": \"{{PJId-est}}\",\r\n \"estimateNumber\": \"{{estNo-WO}}\",\r\n \"status\": \"ACTIVE\",\r\n \"wfStatus\": \"CREATED\",\r\n \"name\": \"{{randomWord}}\",\r\n \"description\": \"{{randomWord}}\",\r\n \"executingDepartment\": \"WRK\",\r\n \"businessService\": \"{{buisnessService}}\",\r\n \"address\": {\r\n \"id\": \"{{PJ-addressid}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"clientReferenceId\": null,\r\n \"doorNo\": null,\r\n \"latitude\": 0,\r\n \"longitude\": 0,\r\n \"locationAccuracy\": 0,\r\n \"type\": null,\r\n \"addressLine1\": null,\r\n \"addressLine2\": null,\r\n \"landmark\": null,\r\n \"city\": \"{{tenantId}}\",\r\n \"pincode\": null,\r\n \"buildingName\": null,\r\n \"street\": null,\r\n \"boundaryType\": \"{{boundaryType}}\",\r\n \"boundary\": \"{{boundary}}\",\r\n \"locality\": null\r\n },\r\n \"estimateDetails\": [\r\n {\r\n \"previousLineItemId\": \"{{estLineitem1}}\",\r\n \"sorId\": \"SOR_000196\",\r\n \"category\": \"SOR\",\r\n \"name\": \"P.C.C. Grade M25 Using Batching plant, Transit Mixer and concrete pump (Data for 120.00 Cum) [First Floor]\",\r\n \"description\": \"LHS\",\r\n \"unitRate\": 439070.35,\r\n \"noOfunit\": 1.0,\r\n \"uom\": \"CUM\",\r\n \"uomValue\": 0.0,\r\n \"length\": 1,\r\n \"width\": 1,\r\n \"height\": 1,\r\n \"quantity\": 1,\r\n \"isDeduction\": false,\r\n \"amountDetail\": [\r\n {\r\n \"id\": \"{{estLineamount1}}\",\r\n \"type\": \"EstimatedAmount\",\r\n \"amount\": \"3253.6\",\r\n \"additionalDetails\": {}\r\n }\r\n ]\r\n },\r\n {\r\n \"previousLineItemId\": \"{{estLineitem2}}\",\r\n \"category\": \"OVERHEAD\",\r\n \"name\": \"GST\",\r\n \"description\": \"Goods and Service Tax\",\r\n \"amountDetail\": [\r\n {\r\n \"id\": \"{{estLineamount2}}\",\r\n \"type\": \"GST\",\r\n \"amount\": \"585.6\"\r\n }\r\n ],\r\n \"additionalDetails\": {\r\n \"row\": {\r\n \"percentage\": \"18 %\",\r\n \"name\": {\r\n \"id\": \"2\",\r\n \"code\": \"GST\",\r\n \"description\": \"Goods and Service Tax\",\r\n \"active\": true,\r\n \"isAutoCalculated\": true,\r\n \"type\": \"percentage\",\r\n \"value\": \"18\",\r\n \"isWorkOrderValue\": true,\r\n \"effectiveFrom\": \"{{dateOfProposal}}\",\r\n \"effectiveTo\": null,\r\n \"name\": \"ES_COMMON_OVERHEADS_GST\"\r\n },\r\n \"amount\": \"585.6\"\r\n }\r\n }\r\n }\r\n ],\r\n \"additionalDetails\": {\r\n \"documents\": [\r\n {\r\n \"fileName\": \"WorkOrder-WO_2023-24_000266 (2).pdf\",\r\n \"fileStoreId\": \"8234d8ef-73d7-4986-b5af-c557a6436c94\",\r\n \"documentUid\": \"8234d8ef-73d7-4986-b5af-c557a6436c94\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_DETAILED_ESTIMATE\"\r\n },\r\n {\r\n \"fileName\": \"Muster-roll-MR_2023-24_06_08_000427.pdf\",\r\n \"fileStoreId\": \"652d5212-477d-4c98-8deb-599f3e5f16a8\",\r\n \"documentUid\": \"652d5212-477d-4c98-8deb-599f3e5f16a8\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_LABOUR_ANALYSIS\"\r\n },\r\n {\r\n \"fileName\": \"WorkOrder (3).pdf\",\r\n \"fileStoreId\": \"e29bd685-a6dc-420f-8c22-59dc4061689a\",\r\n \"documentUid\": \"e29bd685-a6dc-420f-8c22-59dc4061689a\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_MATERIAL_ANALYSIS\"\r\n },\r\n {\r\n \"fileType\": \"ESTIMATE_DOC_DESIGN_DOCUMENT\"\r\n },\r\n {\r\n \"fileName\": \"\",\r\n \"fileType\": \"Others\"\r\n }\r\n ],\r\n \"labourMaterialAnalysis\": {\r\n \"labour\": \"50\",\r\n \"material\": \"50\"\r\n },\r\n \"creator\": \"SMS QA testing\",\r\n \"location\": {\r\n \"locality\": \"B1\",\r\n \"ward\": \"B1\",\r\n \"city\": \"{{tenantId}}\"\r\n },\r\n \"ward\": \"B1\",\r\n \"locality\": \"SUN01\",\r\n \"projectNumber\": \"{{PJNo-est}}\",\r\n \"totalEstimatedAmount\": 10012.3,\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"projectName\": \"{{randomWord}}\"\r\n }\r\n },\r\n \"workflow\": {\r\n \"action\": \"SUBMIT\"\r\n },\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"authToken\": \"{{auth}}\",\r\n \"msgId\": \"1694085272328|en_IN\",\r\n \"plainAccessRequest\": {}\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/estimate/v1/_create", "host": [ "{{base_url}}" ], "path": [ "estimate", "v1", "_create" ] } }, "response": [] }, { "name": "Create Revision Estimate - Validation error - Estimate is already in workflow", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => {\r", " pm.expect(pm.response.to.have.status(400));\r", "});\r", " \r", "\r", "pm.test(\"Estimate is already in workflow\", function () {\r", " var res = pm.response.json();\r", " var code = res.Errors[0].code;\r", " var message = res.Errors[0].message;\r", " pm.expect(code).to.eql(\"INVALID_ESTIMATE\");\r", " pm.expect(message).to.eql(\"Estimate is already in workflow\");\r", " }\r", ");" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"estimate\": {\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"projectId\": \"{{PJId-est}}\",\r\n \"estimateNumber\": \"{{estNo-WO}}\",\r\n \"status\": \"ACTIVE\",\r\n \"wfStatus\": \"CREATED\",\r\n \"name\": \"{{randomWord}}\",\r\n \"description\": \"{{randomWord}}\",\r\n \"executingDepartment\": \"WRK\",\r\n \"businessService\": \"REVISION-ESTIMATE\",\r\n \"address\": {\r\n \"id\": \"{{PJ-addressid}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"clientReferenceId\": null,\r\n \"doorNo\": null,\r\n \"latitude\": 0,\r\n \"longitude\": 0,\r\n \"locationAccuracy\": 0,\r\n \"type\": null,\r\n \"addressLine1\": null,\r\n \"addressLine2\": null,\r\n \"landmark\": null,\r\n \"city\": \"{{tenantId}}\",\r\n \"pincode\": null,\r\n \"buildingName\": null,\r\n \"street\": null,\r\n \"boundaryType\": \"{{boundaryType}}\",\r\n \"boundary\": \"{{boundary}}\",\r\n \"locality\": null\r\n },\r\n \"estimateDetails\": [\r\n {\r\n \"sorId\": 45,\r\n \"category\": \"NON-SOR\",\r\n \"name\": \"Testing 01\",\r\n \"description\": \"Testing 01\",\r\n \"unitRate\": \"250.28\",\r\n \"noOfunit\": \"13\",\r\n \"uom\": \"KG\",\r\n \"amountDetail\": [\r\n {\r\n \"id\": \"{{estLineamount1}}\",\r\n \"type\": \"EstimatedAmount\",\r\n \"amount\": \"3253.6\",\r\n \"additionalDetails\": {}\r\n }\r\n ]\r\n },\r\n {\r\n \"category\": \"OVERHEAD\",\r\n \"name\": \"GST\",\r\n \"description\": \"Goods and Service Tax\",\r\n \"amountDetail\": [\r\n {\r\n \"id\": \"{{estLineamount2}}\",\r\n \"type\": \"GST\",\r\n \"amount\": \"585.6\"\r\n }\r\n ],\r\n \"additionalDetails\": {\r\n \"row\": {\r\n \"percentage\": \"18 %\",\r\n \"name\": {\r\n \"id\": \"2\",\r\n \"code\": \"GST\",\r\n \"description\": \"Goods and Service Tax\",\r\n \"active\": true,\r\n \"isAutoCalculated\": true,\r\n \"type\": \"percentage\",\r\n \"value\": \"18\",\r\n \"isWorkOrderValue\": true,\r\n \"effectiveFrom\": \"{{dateOfProposal}}\",\r\n \"effectiveTo\": null,\r\n \"name\": \"ES_COMMON_OVERHEADS_GST\"\r\n },\r\n \"amount\": \"585.6\"\r\n }\r\n }\r\n }\r\n ],\r\n \"additionalDetails\": {\r\n \"documents\": [\r\n {\r\n \"fileName\": \"WorkOrder-WO_2023-24_000266 (2).pdf\",\r\n \"fileStoreId\": \"8234d8ef-73d7-4986-b5af-c557a6436c94\",\r\n \"documentUid\": \"8234d8ef-73d7-4986-b5af-c557a6436c94\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_DETAILED_ESTIMATE\"\r\n },\r\n {\r\n \"fileName\": \"Muster-roll-MR_2023-24_06_08_000427.pdf\",\r\n \"fileStoreId\": \"652d5212-477d-4c98-8deb-599f3e5f16a8\",\r\n \"documentUid\": \"652d5212-477d-4c98-8deb-599f3e5f16a8\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_LABOUR_ANALYSIS\"\r\n },\r\n {\r\n \"fileName\": \"WorkOrder (3).pdf\",\r\n \"fileStoreId\": \"e29bd685-a6dc-420f-8c22-59dc4061689a\",\r\n \"documentUid\": \"e29bd685-a6dc-420f-8c22-59dc4061689a\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_MATERIAL_ANALYSIS\"\r\n },\r\n {\r\n \"fileType\": \"ESTIMATE_DOC_DESIGN_DOCUMENT\"\r\n },\r\n {\r\n \"fileName\": \"\",\r\n \"fileType\": \"Others\"\r\n }\r\n ],\r\n \"labourMaterialAnalysis\": {\r\n \"labour\": \"50\",\r\n \"material\": \"50\"\r\n },\r\n \"creator\": \"SMS QA testing\",\r\n \"location\": {\r\n \"locality\": \"B1\",\r\n \"ward\": \"B1\",\r\n \"city\": \"{{tenantId}}\"\r\n },\r\n \"ward\": \"B1\",\r\n \"locality\": \"SUN01\",\r\n \"projectNumber\": \"{{PJNo-est}}\",\r\n \"totalEstimatedAmount\": 10012.3,\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"projectName\": \"{{randomWord}}\"\r\n }\r\n },\r\n \"workflow\": {\r\n \"action\": \"SUBMIT\"\r\n },\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"authToken\": \"{{auth}}\",\r\n \"msgId\": \"1694085272328|en_IN\",\r\n \"plainAccessRequest\": {}\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/estimate/v1/_create", "host": [ "{{base_url}}" ], "path": [ "estimate", "v1", "_create" ] } }, "response": [] }, { "name": "Create Revision Estimate - Validation error - Estimate number is mandatory", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => {\r", " pm.expect(pm.response.to.have.status(400));\r", "});\r", " \r", "\r", "pm.test(\"Estimate number is mandatory for revision estimate\", function () {\r", " var res = pm.response.json();\r", " var code = res.Errors[0].code;\r", " var message = res.Errors[0].message;\r", " pm.expect(code).to.eql(\"INVALID_ESTIMATE\");\r", " pm.expect(message).to.eql(\"Estimate number is mandatory for revision estimate\");\r", " }\r", ");" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"estimate\": {\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"projectId\": \"{{PJId-est}}\",\r\n // \"estimateNumber\": \"{{estNo-WO}}\",\r\n \"status\": \"ACTIVE\",\r\n \"wfStatus\": \"CREATED\",\r\n \"name\": \"{{randomWord}}\",\r\n \"description\": \"{{randomWord}}\",\r\n \"executingDepartment\": \"WRK\",\r\n \"businessService\": \"{{buisnessService}}\",\r\n \"address\": {\r\n \"id\": \"{{PJ-addressid}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"clientReferenceId\": null,\r\n \"doorNo\": null,\r\n \"latitude\": 0,\r\n \"longitude\": 0,\r\n \"locationAccuracy\": 0,\r\n \"type\": null,\r\n \"addressLine1\": null,\r\n \"addressLine2\": null,\r\n \"landmark\": null,\r\n \"city\": \"{{tenantId}}\",\r\n \"pincode\": null,\r\n \"buildingName\": null,\r\n \"street\": null,\r\n \"boundaryType\": \"{{boundaryType}}\",\r\n \"boundary\": \"{{boundary}}\",\r\n \"locality\": null\r\n },\r\n \"estimateDetails\": [\r\n {\r\n \"previousLineItemId\": \"{{estLineitem1}}\",\r\n \"sorId\": 45,\r\n \"category\": \"NON-SOR\",\r\n \"name\": \"Testing 01\",\r\n \"description\": \"Testing 01\",\r\n \"unitRate\": \"250.28\",\r\n \"noOfunit\": \"13\",\r\n \"uom\": \"KG\",\r\n \"amountDetail\": [\r\n {\r\n \"id\": \"{{estLineamount1}}\",\r\n \"type\": \"EstimatedAmount\",\r\n \"amount\": \"3253.6\",\r\n \"additionalDetails\": {}\r\n }\r\n ]\r\n },\r\n {\r\n \"previousLineItemId\": \"{{estLineitem2}}\",\r\n \"category\": \"OVERHEAD\",\r\n \"name\": \"GST\",\r\n \"description\": \"Goods and Service Tax\",\r\n \"amountDetail\": [\r\n {\r\n \"id\": \"{{estLineamount2}}\",\r\n \"type\": \"GST\",\r\n \"amount\": \"585.6\"\r\n }\r\n ],\r\n \"additionalDetails\": {\r\n \"row\": {\r\n \"percentage\": \"18 %\",\r\n \"name\": {\r\n \"id\": \"2\",\r\n \"code\": \"GST\",\r\n \"description\": \"Goods and Service Tax\",\r\n \"active\": true,\r\n \"isAutoCalculated\": true,\r\n \"type\": \"percentage\",\r\n \"value\": \"18\",\r\n \"isWorkOrderValue\": true,\r\n \"effectiveFrom\": \"{{dateOfProposal}}\",\r\n \"effectiveTo\": null,\r\n \"name\": \"ES_COMMON_OVERHEADS_GST\"\r\n },\r\n \"amount\": \"585.6\"\r\n }\r\n }\r\n }\r\n ],\r\n \"additionalDetails\": {\r\n \"documents\": [\r\n {\r\n \"fileName\": \"WorkOrder-WO_2023-24_000266 (2).pdf\",\r\n \"fileStoreId\": \"8234d8ef-73d7-4986-b5af-c557a6436c94\",\r\n \"documentUid\": \"8234d8ef-73d7-4986-b5af-c557a6436c94\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_DETAILED_ESTIMATE\"\r\n },\r\n {\r\n \"fileName\": \"Muster-roll-MR_2023-24_06_08_000427.pdf\",\r\n \"fileStoreId\": \"652d5212-477d-4c98-8deb-599f3e5f16a8\",\r\n \"documentUid\": \"652d5212-477d-4c98-8deb-599f3e5f16a8\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_LABOUR_ANALYSIS\"\r\n },\r\n {\r\n \"fileName\": \"WorkOrder (3).pdf\",\r\n \"fileStoreId\": \"e29bd685-a6dc-420f-8c22-59dc4061689a\",\r\n \"documentUid\": \"e29bd685-a6dc-420f-8c22-59dc4061689a\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_MATERIAL_ANALYSIS\"\r\n },\r\n {\r\n \"fileType\": \"ESTIMATE_DOC_DESIGN_DOCUMENT\"\r\n },\r\n {\r\n \"fileName\": \"\",\r\n \"fileType\": \"Others\"\r\n }\r\n ],\r\n \"labourMaterialAnalysis\": {\r\n \"labour\": \"50\",\r\n \"material\": \"50\"\r\n },\r\n \"creator\": \"SMS QA testing\",\r\n \"location\": {\r\n \"locality\": \"B1\",\r\n \"ward\": \"B1\",\r\n \"city\": \"{{tenantId}}\"\r\n },\r\n \"ward\": \"B1\",\r\n \"locality\": \"SUN01\",\r\n \"projectNumber\": \"{{PJNo-est}}\",\r\n \"totalEstimatedAmount\": 10012.3,\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"projectName\": \"{{randomWord}}\"\r\n }\r\n },\r\n \"workflow\": {\r\n \"action\": \"SUBMIT\",\r\n \"assignees\": [\r\n \"40e3b45a-0f64-4e8c-8768-aab82c095b2d\"\r\n ]\r\n },\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"authToken\": \"{{auth}}\",\r\n \"userInfo\": {\r\n \"id\": 444,\r\n \"uuid\": \"40e3b45a-0f64-4e8c-8768-aab82c095b2d\",\r\n \"userName\": \"SMS QA testing\",\r\n \"name\": \"SMS QA testing\",\r\n \"mobileNumber\": \"9043685314\",\r\n \"emailId\": \"\",\r\n \"locale\": null,\r\n \"type\": \"EMPLOYEE\",\r\n \"roles\": [\r\n {\r\n \"name\": \"HRMS Admin\",\r\n \"code\": \"HRMS_ADMIN\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"WORK_ORDER_VIEWER\",\r\n \"code\": \"WORK_ORDER_VIEWER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"BILL_ACCOUNTANT\",\r\n \"code\": \"BILL_ACCOUNTANT\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"WORK ORDER CREATOR\",\r\n \"code\": \"WORK_ORDER_CREATOR\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"ESTIMATE VERIFIER\",\r\n \"code\": \"ESTIMATE_VERIFIER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"BILL_VERIFIER\",\r\n \"code\": \"BILL_VERIFIER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"ESTIMATE APPROVER\",\r\n \"code\": \"ESTIMATE_APPROVER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"Organization viewer\",\r\n \"code\": \"ORG_VIEWER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"WORK ORDER VERIFIER\",\r\n \"code\": \"WORK_ORDER_VERIFIER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"PROJECT VIEWER\",\r\n \"code\": \"PROJECT_VIEWER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"BILL_APPROVER\",\r\n \"code\": \"BILL_APPROVER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"MUSTER ROLL VERIFIER\",\r\n \"code\": \"MUSTER_ROLL_VERIFIER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"OFFICER IN CHARGE\",\r\n \"code\": \"OFFICER_IN_CHARGE\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"PROJECT CREATOR\",\r\n \"code\": \"PROJECT_CREATOR\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"Employee Common\",\r\n \"code\": \"EMPLOYEE_COMMON\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"BILL_VIEWER\",\r\n \"code\": \"BILL_VIEWER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"TECHNICAL SANCTIONER\",\r\n \"code\": \"TECHNICAL_SANCTIONER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"BILL_CREATOR\",\r\n \"code\": \"BILL_CREATOR\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"MUSTER ROLL APPROVER\",\r\n \"code\": \"MUSTER_ROLL_APPROVER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"ESTIMATE VIEWER\",\r\n \"code\": \"ESTIMATE_VIEWER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"WORK ORDER APPROVER\",\r\n \"code\": \"WORK_ORDER_APPROVER\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"ESTIMATE CREATOR\",\r\n \"code\": \"ESTIMATE_CREATOR\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"State Dashboard Admin\",\r\n \"code\": \"STADMIN\",\r\n \"tenantId\": \"pg.citya\"\r\n },\r\n {\r\n \"name\": \"MUKTA Admin\",\r\n \"code\": \"MUKTA_ADMIN\",\r\n \"tenantId\": \"pg.citya\"\r\n }\r\n ],\r\n \"active\": true,\r\n \"tenantId\": \"pg.citya\",\r\n \"permanentCity\": \"CityA\"\r\n },\r\n \"msgId\": \"1694064135997|en_IN\",\r\n \"plainAccessRequest\": {}\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/estimate/v1/_create", "host": [ "{{base_url}}" ], "path": [ "estimate", "v1", "_create" ] } }, "response": [] }, { "name": "Update Revision Estimate - Success WF Send back", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () =>\r", " pm.expect(pm.response.to.have.status(200))\r", ");\r", "\r", "pm.test(\"estimate's workflow status is Send back\", function () {\r", " let responseData = pm.response.json();\r", " pm.expect(responseData.estimates[0].wfStatus).eq(\"PENDINGFORCORRECTION\");\r", "});\r", "\r", "\r", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"estimate\": {\r\n \"id\": \"{{estimateId}}\",\r\n \"estimateNumber\": \"{{estimateNumber}}\",\r\n \"revisionNumber\": \"{{revNo-WO}}\",\r\n \"businessService\": \"{{buisnessService}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"projectId\": \"{{PJId-est}}\",\r\n \"status\": \"ACTIVE\",\r\n \"wfStatus\": \"CREATED\",\r\n \"name\": \"{{randomWord}}\",\r\n \"description\": \"{{randomWord}}\",\r\n \"executingDepartment\": \"WRK\",\r\n \"address\": {\r\n \"id\": \"{{PJ-addressid}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"clientReferenceId\": null,\r\n \"doorNo\": null,\r\n \"latitude\": 0,\r\n \"longitude\": 0,\r\n \"locationAccuracy\": 0,\r\n \"type\": null,\r\n \"addressLine1\": null,\r\n \"addressLine2\": null,\r\n \"landmark\": null,\r\n \"city\": \"pg.citya\",\r\n \"pincode\": null,\r\n \"buildingName\": null,\r\n \"street\": null,\r\n \"boundaryType\": \"{{boundaryType}}\",\r\n \"boundary\": \"{{boundary}}\",\r\n \"locality\": null\r\n },\r\n \"estimateDetails\": [\r\n {\r\n \"id\": \"{{estLineitem1}}\",\r\n \"previousLineItemId\": \"{{prevEstLineitem1}}\",\r\n \"sorId\": \"SOR_000196\",\r\n \"category\": \"SOR\",\r\n \"name\": \"P.C.C. Grade M25 Using Batching plant, Transit Mixer and concrete pump (Data for 120.00 Cum) [First Floor]\",\r\n \"description\": \"LHS\",\r\n \"unitRate\": 439070.35,\r\n \"noOfunit\": 1.0,\r\n \"uom\": \"CUM\",\r\n \"uomValue\": 0.0,\r\n \"length\": 1,\r\n \"width\": 1,\r\n \"height\": 1,\r\n \"quantity\": 1,\r\n \"isDeduction\": false,\r\n \"amountDetail\": [\r\n {\r\n \"id\": \"{{estLineamount1}}\",\r\n \"type\": \"EstimatedAmount\",\r\n \"amount\": 3253.6,\r\n \"isActive\": true,\r\n \"additionalDetails\": {}\r\n }\r\n ],\r\n \"isActive\": true,\r\n \"additionalDetails\": null\r\n },\r\n {\r\n \"id\": \"{{estLineitem2}}\",\r\n \"previousLineItemId\": \"{{prevEstLineitem2}}\",\r\n \"sorId\": null,\r\n \"category\": \"OVERHEAD\",\r\n \"name\": \"GST\",\r\n \"description\": \"Goods and Service Tax\",\r\n \"unitRate\": null,\r\n \"noOfunit\": null,\r\n \"uom\": null,\r\n \"uomValue\": null,\r\n \"amountDetail\": [\r\n {\r\n \"id\": \"{{estLineamount2}}\",\r\n \"type\": \"GST\",\r\n \"amount\": 585.6,\r\n \"isActive\": true,\r\n \"additionalDetails\": null\r\n }\r\n ],\r\n \"isActive\": true,\r\n \"additionalDetails\": {\r\n \"row\": {\r\n \"percentage\": \"18 %\",\r\n \"name\": {\r\n \"id\": \"2\",\r\n \"code\": \"GST\",\r\n \"description\": \"Goods and Service Tax\",\r\n \"active\": true,\r\n \"isAutoCalculated\": true,\r\n \"type\": \"percentage\",\r\n \"value\": \"18\",\r\n \"isWorkOrderValue\": true,\r\n \"effectiveFrom\": \"1694172775346\",\r\n \"effectiveTo\": null,\r\n \"name\": \"ES_COMMON_OVERHEADS_GST\"\r\n },\r\n \"amount\": \"585.6\"\r\n }\r\n }\r\n }\r\n ],\r\n \"additionalDetails\": {\r\n \"documents\": [\r\n {\r\n \"fileName\": \"{{fileName}}\",\r\n \"fileStoreId\": \"{{fileStoreId}}\",\r\n \"documentUid\": \"{{fileStoreId}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_DETAILED_ESTIMATE\"\r\n },\r\n {\r\n \"fileName\": \"{{fileName}}\",\r\n \"fileStoreId\": \"{{fileStoreId}}\",\r\n \"documentUid\": \"{{fileStoreId}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_LABOUR_ANALYSIS\"\r\n },\r\n {\r\n \"fileName\": \"{{fileName}}\",\r\n \"fileStoreId\": \"{{fileStoreId}}\",\r\n \"documentUid\": \"{{fileStoreId}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_MATERIAL_ANALYSIS\"\r\n },\r\n {\r\n \"fileType\": \"ESTIMATE_DOC_DESIGN_DOCUMENT\"\r\n },\r\n {\r\n \"fileName\": \"\",\r\n \"fileType\": \"Others\"\r\n }\r\n ],\r\n \"labourMaterialAnalysis\": {\r\n \"labour\": \"50\",\r\n \"material\": \"50\"\r\n },\r\n \"creator\": \"SMS QA testing\",\r\n \"location\": {\r\n \"locality\": \"B1\",\r\n \"ward\": \"B1\",\r\n \"city\": \"{{tenantId}}\"\r\n },\r\n \"ward\": \"B1\",\r\n \"locality\": \"SUN01\",\r\n \"projectNumber\": \"{{PJNo-est}}\",\r\n \"totalEstimatedAmount\": 3839.2,\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"projectName\": \"{{randomWord}}\"\r\n }\r\n },\r\n \"workflow\": {\r\n \"action\": \"SENDBACK\"\r\n },\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"authToken\": \"{{auth}}\",\r\n \"msgId\": \"1694085272328|en_IN\",\r\n \"plainAccessRequest\": {}\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/estimate/v1/_update", "host": [ "{{base_url}}" ], "path": [ "estimate", "v1", "_update" ] } }, "response": [] }, { "name": "Update Revision Estimate - Success Edit and Re-submit", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () =>\r", " pm.expect(pm.response.to.have.status(200))\r", ");\r", "\r", "pm.test(\"estimate's workflow status is Re-Submit\", function () {\r", " let responseData = pm.response.json();\r", " pm.expect(responseData.estimates[0].wfStatus).eq(\"PENDINGFORVERIFICATION\");\r", "});\r", "\r", "\r", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"estimate\": {\r\n \"id\": \"{{estimateId}}\",\r\n \"estimateNumber\": \"{{estimateNumber}}\",\r\n \"revisionNumber\": \"{{revNo-WO}}\",\r\n \"businessService\": \"{{buisnessService}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"projectId\": \"{{PJId-est}}\",\r\n \"status\": \"ACTIVE\",\r\n \"wfStatus\": \"CREATED\",\r\n \"name\": \"{{randomWord}}\",\r\n \"description\": \"{{randomWord}}\",\r\n \"executingDepartment\": \"WRK\",\r\n \"address\": {\r\n \"id\": \"{{PJ-addressid}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"clientReferenceId\": null,\r\n \"doorNo\": null,\r\n \"latitude\": 0,\r\n \"longitude\": 0,\r\n \"locationAccuracy\": 0,\r\n \"type\": null,\r\n \"addressLine1\": null,\r\n \"addressLine2\": null,\r\n \"landmark\": null,\r\n \"city\": \"pg.citya\",\r\n \"pincode\": null,\r\n \"buildingName\": null,\r\n \"street\": null,\r\n \"boundaryType\": \"{{boundaryType}}\",\r\n \"boundary\": \"{{boundary}}\",\r\n \"locality\": null\r\n },\r\n \"estimateDetails\": [\r\n {\r\n \"id\": \"{{estLineitem1}}\",\r\n \"previousLineItemId\": \"{{prevEstLineitem1}}\",\r\n \"sorId\": \"SOR_000196\",\r\n \"category\": \"SOR\",\r\n \"name\": \"P.C.C. Grade M25 Using Batching plant, Transit Mixer and concrete pump (Data for 120.00 Cum) [First Floor]\",\r\n \"description\": \"LHS\",\r\n \"unitRate\": 439070.35,\r\n \"noOfunit\": 1.0,\r\n \"uom\": \"CUM\",\r\n \"uomValue\": 0.0,\r\n \"length\": 1,\r\n \"width\": 1,\r\n \"height\": 1,\r\n \"quantity\": 1,\r\n \"isDeduction\": false,\r\n \"amountDetail\": [\r\n {\r\n \"id\": \"{{estLineamount1}}\",\r\n \"type\": \"EstimatedAmount\",\r\n \"amount\": 3253.6,\r\n \"isActive\": true,\r\n \"additionalDetails\": {}\r\n }\r\n ],\r\n \"isActive\": true,\r\n \"additionalDetails\": null\r\n },\r\n {\r\n \"id\": \"{{estLineitem2}}\",\r\n \"previousLineItemId\": \"{{prevEstLineitem2}}\",\r\n \"sorId\": null,\r\n \"category\": \"OVERHEAD\",\r\n \"name\": \"GST\",\r\n \"description\": \"Goods and Service Tax\",\r\n \"unitRate\": null,\r\n \"noOfunit\": null,\r\n \"uom\": null,\r\n \"uomValue\": null,\r\n \"amountDetail\": [\r\n {\r\n \"id\": \"{{estLineamount2}}\",\r\n \"type\": \"GST\",\r\n \"amount\": 585.6,\r\n \"isActive\": true,\r\n \"additionalDetails\": null\r\n }\r\n ],\r\n \"isActive\": true,\r\n \"additionalDetails\": {\r\n \"row\": {\r\n \"percentage\": \"18 %\",\r\n \"name\": {\r\n \"id\": \"2\",\r\n \"code\": \"GST\",\r\n \"description\": \"Goods and Service Tax\",\r\n \"active\": true,\r\n \"isAutoCalculated\": true,\r\n \"type\": \"percentage\",\r\n \"value\": \"18\",\r\n \"isWorkOrderValue\": true,\r\n \"effectiveFrom\": \"1694172775346\",\r\n \"effectiveTo\": null,\r\n \"name\": \"ES_COMMON_OVERHEADS_GST\"\r\n },\r\n \"amount\": \"585.6\"\r\n }\r\n }\r\n }\r\n ],\r\n \"additionalDetails\": {\r\n \"documents\": [\r\n {\r\n \"fileName\": \"{{fileName}}\",\r\n \"fileStoreId\": \"{{fileStoreId}}\",\r\n \"documentUid\": \"{{fileStoreId}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_DETAILED_ESTIMATE\"\r\n },\r\n {\r\n \"fileName\": \"{{fileName}}\",\r\n \"fileStoreId\": \"{{fileStoreId}}\",\r\n \"documentUid\": \"{{fileStoreId}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_LABOUR_ANALYSIS\"\r\n },\r\n {\r\n \"fileName\": \"{{fileName}}\",\r\n \"fileStoreId\": \"{{fileStoreId}}\",\r\n \"documentUid\": \"{{fileStoreId}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_MATERIAL_ANALYSIS\"\r\n },\r\n {\r\n \"fileType\": \"ESTIMATE_DOC_DESIGN_DOCUMENT\"\r\n },\r\n {\r\n \"fileName\": \"\",\r\n \"fileType\": \"Others\"\r\n }\r\n ],\r\n \"labourMaterialAnalysis\": {\r\n \"labour\": \"50\",\r\n \"material\": \"50\"\r\n },\r\n \"creator\": \"SMS QA testing\",\r\n \"location\": {\r\n \"locality\": \"B1\",\r\n \"ward\": \"B1\",\r\n \"city\": \"{{tenantId}}\"\r\n },\r\n \"ward\": \"B1\",\r\n \"locality\": \"SUN01\",\r\n \"projectNumber\": \"{{PJNo-est}}\",\r\n \"totalEstimatedAmount\": 3839.2,\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"projectName\": \"{{randomWord}}\"\r\n }\r\n },\r\n \"workflow\": {\r\n \"action\": \"RE-SUBMIT\"\r\n },\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"authToken\": \"{{auth}}\",\r\n \"msgId\": \"1694085272328|en_IN\",\r\n \"plainAccessRequest\": {}\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/estimate/v1/_update", "host": [ "{{base_url}}" ], "path": [ "estimate", "v1", "_update" ] } }, "response": [] }, { "name": "Update Revision Estimate - Success Verify and forward Copy", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () =>\r", " pm.expect(pm.response.to.have.status(200))\r", ");\r", "\r", "pm.test(\"estimate's workflow status is Verified\", function () {\r", " let responseData = pm.response.json();\r", " pm.expect(responseData.estimates[0].wfStatus).eq(\"PENDINGFORTECHNICALSANCTION\");\r", "});\r", "\r", "\r", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"estimate\": {\r\n \"id\": \"{{estimateId}}\",\r\n \"estimateNumber\": \"{{estimateNumber}}\",\r\n \"revisionNumber\": \"{{revNo-WO}}\",\r\n \"businessService\": \"{{buisnessService}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"projectId\": \"{{PJId-est}}\",\r\n \"status\": \"ACTIVE\",\r\n \"wfStatus\": \"CREATED\",\r\n \"name\": \"{{randomWord}}\",\r\n \"description\": \"{{randomWord}}\",\r\n \"executingDepartment\": \"WRK\",\r\n \"address\": {\r\n \"id\": \"{{PJ-addressid}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"clientReferenceId\": null,\r\n \"doorNo\": null,\r\n \"latitude\": 0,\r\n \"longitude\": 0,\r\n \"locationAccuracy\": 0,\r\n \"type\": null,\r\n \"addressLine1\": null,\r\n \"addressLine2\": null,\r\n \"landmark\": null,\r\n \"city\": \"pg.citya\",\r\n \"pincode\": null,\r\n \"buildingName\": null,\r\n \"street\": null,\r\n \"boundaryType\": \"{{boundaryType}}\",\r\n \"boundary\": \"{{boundary}}\",\r\n \"locality\": null\r\n },\r\n \"estimateDetails\": [\r\n {\r\n \"id\": \"{{estLineitem1}}\",\r\n \"previousLineItemId\": \"{{prevEstLineitem1}}\",\r\n \"sorId\": \"SOR_000196\",\r\n \"category\": \"SOR\",\r\n \"name\": \"P.C.C. Grade M25 Using Batching plant, Transit Mixer and concrete pump (Data for 120.00 Cum) [First Floor]\",\r\n \"description\": \"LHS\",\r\n \"unitRate\": 439070.35,\r\n \"noOfunit\": 1.0,\r\n \"uom\": \"CUM\",\r\n \"uomValue\": 0.0,\r\n \"length\": 1,\r\n \"width\": 1,\r\n \"height\": 1,\r\n \"quantity\": 1,\r\n \"isDeduction\": false,\r\n \"amountDetail\": [\r\n {\r\n // \"id\": \"{{Lineamount1}}\",\r\n \"id\": \"{{estLineamount1}}\",\r\n \"type\": \"EstimatedAmount\",\r\n \"amount\": 3253.6,\r\n \"isActive\": true,\r\n \"additionalDetails\": {}\r\n }\r\n ],\r\n \"isActive\": true,\r\n \"additionalDetails\": null\r\n },\r\n {\r\n \"id\": \"{{estLineitem2}}\",\r\n \"previousLineItemId\": \"{{prevEstLineitem2}}\",\r\n \"sorId\": null,\r\n \"category\": \"OVERHEAD\",\r\n \"name\": \"GST\",\r\n \"description\": \"Goods and Service Tax\",\r\n \"unitRate\": null,\r\n \"noOfunit\": null,\r\n \"uom\": null,\r\n \"uomValue\": null,\r\n \"amountDetail\": [\r\n {\r\n // \"id\": \"{{Lineamount2}}\",\r\n \"id\": \"{{estLineamount2}}\",\r\n \"type\": \"GST\",\r\n \"amount\": 585.6,\r\n \"isActive\": true,\r\n \"additionalDetails\": null\r\n }\r\n ],\r\n \"isActive\": true,\r\n \"additionalDetails\": {\r\n \"row\": {\r\n \"percentage\": \"18 %\",\r\n \"name\": {\r\n \"id\": \"2\",\r\n \"code\": \"GST\",\r\n \"description\": \"Goods and Service Tax\",\r\n \"active\": true,\r\n \"isAutoCalculated\": true,\r\n \"type\": \"percentage\",\r\n \"value\": \"18\",\r\n \"isWorkOrderValue\": true,\r\n \"effectiveFrom\": \"1694172775346\",\r\n \"effectiveTo\": null,\r\n \"name\": \"ES_COMMON_OVERHEADS_GST\"\r\n },\r\n \"amount\": \"585.6\"\r\n }\r\n }\r\n }\r\n ],\r\n \"additionalDetails\": {\r\n \"documents\": [\r\n {\r\n \"fileName\": \"{{fileName}}\",\r\n \"fileStoreId\": \"{{fileStoreId}}\",\r\n \"documentUid\": \"{{fileStoreId}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_DETAILED_ESTIMATE\"\r\n },\r\n {\r\n \"fileName\": \"{{fileName}}\",\r\n \"fileStoreId\": \"{{fileStoreId}}\",\r\n \"documentUid\": \"{{fileStoreId}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_LABOUR_ANALYSIS\"\r\n },\r\n {\r\n \"fileName\": \"{{fileName}}\",\r\n \"fileStoreId\": \"{{fileStoreId}}\",\r\n \"documentUid\": \"{{fileStoreId}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_MATERIAL_ANALYSIS\"\r\n },\r\n {\r\n \"fileType\": \"ESTIMATE_DOC_DESIGN_DOCUMENT\"\r\n },\r\n {\r\n \"fileName\": \"\",\r\n \"fileType\": \"Others\"\r\n }\r\n ],\r\n \"labourMaterialAnalysis\": {\r\n \"labour\": \"50\",\r\n \"material\": \"50\"\r\n },\r\n \"creator\": \"SMS QA testing\",\r\n \"location\": {\r\n \"locality\": \"B1\",\r\n \"ward\": \"B1\",\r\n \"city\": \"{{tenantId}}\"\r\n },\r\n \"ward\": \"B1\",\r\n \"locality\": \"SUN01\",\r\n \"projectNumber\": \"{{PJNo-est}}\",\r\n \"totalEstimatedAmount\": 3839.2,\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"projectName\": \"{{randomWord}}\"\r\n }\r\n },\r\n \"workflow\": {\r\n \"action\": \"VERIFYANDFORWARD\"\r\n },\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"authToken\": \"{{auth}}\",\r\n \"msgId\": \"1694085272328|en_IN\",\r\n \"plainAccessRequest\": {}\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/estimate/v1/_update", "host": [ "{{base_url}}" ], "path": [ "estimate", "v1", "_update" ] } }, "response": [] }, { "name": "Update Revision Estimate - Success Technical sanctioned", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () =>\r", " pm.expect(pm.response.to.have.status(200))\r", ");\r", "\r", "pm.test(\"estimate's workflow status is Technical Sanctioned\", function () {\r", " let responseData = pm.response.json();\r", " pm.expect(responseData.estimates[0].wfStatus).eq(\"PENDINGFORAPPROVAL\");\r", "});\r", "\r", "\r", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"estimate\": {\r\n \"id\": \"{{estimateId}}\",\r\n \"estimateNumber\": \"{{estimateNumber}}\",\r\n \"revisionNumber\": \"{{revNo-WO}}\",\r\n \"businessService\": \"{{buisnessService}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"projectId\": \"{{PJId-est}}\",\r\n \"status\": \"ACTIVE\",\r\n \"wfStatus\": \"CREATED\",\r\n \"name\": \"{{randomWord}}\",\r\n \"description\": \"{{randomWord}}\",\r\n \"executingDepartment\": \"WRK\",\r\n \"address\": {\r\n \"id\": \"{{PJ-addressid}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"clientReferenceId\": null,\r\n \"doorNo\": null,\r\n \"latitude\": 0,\r\n \"longitude\": 0,\r\n \"locationAccuracy\": 0,\r\n \"type\": null,\r\n \"addressLine1\": null,\r\n \"addressLine2\": null,\r\n \"landmark\": null,\r\n \"city\": \"pg.citya\",\r\n \"pincode\": null,\r\n \"buildingName\": null,\r\n \"street\": null,\r\n \"boundaryType\": \"{{boundaryType}}\",\r\n \"boundary\": \"{{boundary}}\",\r\n \"locality\": null\r\n },\r\n \"estimateDetails\": [\r\n {\r\n \"id\": \"{{estLineitem1}}\",\r\n \"previousLineItemId\": \"{{prevEstLineitem1}}\",\r\n \"sorId\": \"SOR_000196\",\r\n \"category\": \"SOR\",\r\n \"name\": \"P.C.C. Grade M25 Using Batching plant, Transit Mixer and concrete pump (Data for 120.00 Cum) [First Floor]\",\r\n \"description\": \"LHS\",\r\n \"unitRate\": 439070.35,\r\n \"noOfunit\": 1.0,\r\n \"uom\": \"CUM\",\r\n \"uomValue\": 0.0,\r\n \"length\": 1,\r\n \"width\": 1,\r\n \"height\": 1,\r\n \"quantity\": 1,\r\n \"isDeduction\": false,\r\n \"amountDetail\": [\r\n {\r\n // \"id\": \"{{Lineamount1}}\",\r\n \"id\": \"{{estLineamount1}}\",\r\n \"type\": \"EstimatedAmount\",\r\n \"amount\": 3253.6,\r\n \"isActive\": true,\r\n \"additionalDetails\": {}\r\n }\r\n ],\r\n \"isActive\": true,\r\n \"additionalDetails\": null\r\n },\r\n {\r\n \"id\": \"{{estLineitem2}}\",\r\n \"previousLineItemId\": \"{{prevEstLineitem2}}\",\r\n \"sorId\": null,\r\n \"category\": \"OVERHEAD\",\r\n \"name\": \"GST\",\r\n \"description\": \"Goods and Service Tax\",\r\n \"unitRate\": null,\r\n \"noOfunit\": null,\r\n \"uom\": null,\r\n \"uomValue\": null,\r\n \"amountDetail\": [\r\n {\r\n // \"id\": \"{{Lineamount2}}\",\r\n \"id\": \"{{estLineamount2}}\",\r\n \"type\": \"GST\",\r\n \"amount\": 585.6,\r\n \"isActive\": true,\r\n \"additionalDetails\": null\r\n }\r\n ],\r\n \"isActive\": true,\r\n \"additionalDetails\": {\r\n \"row\": {\r\n \"percentage\": \"18 %\",\r\n \"name\": {\r\n \"id\": \"2\",\r\n \"code\": \"GST\",\r\n \"description\": \"Goods and Service Tax\",\r\n \"active\": true,\r\n \"isAutoCalculated\": true,\r\n \"type\": \"percentage\",\r\n \"value\": \"18\",\r\n \"isWorkOrderValue\": true,\r\n \"effectiveFrom\": \"1694172775346\",\r\n \"effectiveTo\": null,\r\n \"name\": \"ES_COMMON_OVERHEADS_GST\"\r\n },\r\n \"amount\": \"585.6\"\r\n }\r\n }\r\n }\r\n ],\r\n \"additionalDetails\": {\r\n \"documents\": [\r\n {\r\n \"fileName\": \"{{fileName}}\",\r\n \"fileStoreId\": \"{{fileStoreId}}\",\r\n \"documentUid\": \"{{fileStoreId}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_DETAILED_ESTIMATE\"\r\n },\r\n {\r\n \"fileName\": \"{{fileName}}\",\r\n \"fileStoreId\": \"{{fileStoreId}}\",\r\n \"documentUid\": \"{{fileStoreId}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_LABOUR_ANALYSIS\"\r\n },\r\n {\r\n \"fileName\": \"{{fileName}}\",\r\n \"fileStoreId\": \"{{fileStoreId}}\",\r\n \"documentUid\": \"{{fileStoreId}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_MATERIAL_ANALYSIS\"\r\n },\r\n {\r\n \"fileType\": \"ESTIMATE_DOC_DESIGN_DOCUMENT\"\r\n },\r\n {\r\n \"fileName\": \"\",\r\n \"fileType\": \"Others\"\r\n }\r\n ],\r\n \"labourMaterialAnalysis\": {\r\n \"labour\": \"50\",\r\n \"material\": \"50\"\r\n },\r\n \"creator\": \"SMS QA testing\",\r\n \"location\": {\r\n \"locality\": \"B1\",\r\n \"ward\": \"B1\",\r\n \"city\": \"{{tenantId}}\"\r\n },\r\n \"ward\": \"B1\",\r\n \"locality\": \"SUN01\",\r\n \"projectNumber\": \"{{PJNo-est}}\",\r\n \"totalEstimatedAmount\": 3839.2,\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"projectName\": \"{{randomWord}}\"\r\n }\r\n },\r\n \"workflow\": {\r\n \"action\": \"TECHNICALSANCTION\"\r\n },\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"authToken\": \"{{auth}}\",\r\n \"msgId\": \"1694085272328|en_IN\",\r\n \"plainAccessRequest\": {}\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/estimate/v1/_update", "host": [ "{{base_url}}" ], "path": [ "estimate", "v1", "_update" ] } }, "response": [] }, { "name": "Update Revision Estimate - Success Approved", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () =>\r", " pm.expect(pm.response.to.have.status(200))\r", ");\r", "\r", "pm.test(\"estimate's workflow status is Approved\", function () {\r", " let responseData = pm.response.json();\r", " pm.expect(responseData.estimates[0].wfStatus).eq(\"APPROVED\");\r", "});\r", "\r", "\r", "" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"estimate\": {\r\n \"id\": \"{{estimateId}}\",\r\n \"estimateNumber\": \"{{estimateNumber}}\",\r\n \"revisionNumber\": \"{{revNo-WO}}\",\r\n \"businessService\": \"{{buisnessService}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"projectId\": \"{{PJId-est}}\",\r\n \"status\": \"ACTIVE\",\r\n \"wfStatus\": \"CREATED\",\r\n \"name\": \"{{randomWord}}\",\r\n \"description\": \"{{randomWord}}\",\r\n \"executingDepartment\": \"WRK\",\r\n \"address\": {\r\n \"id\": \"{{PJ-addressid}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"clientReferenceId\": null,\r\n \"doorNo\": null,\r\n \"latitude\": 0,\r\n \"longitude\": 0,\r\n \"locationAccuracy\": 0,\r\n \"type\": null,\r\n \"addressLine1\": null,\r\n \"addressLine2\": null,\r\n \"landmark\": null,\r\n \"city\": \"pg.citya\",\r\n \"pincode\": null,\r\n \"buildingName\": null,\r\n \"street\": null,\r\n \"boundaryType\": \"{{boundaryType}}\",\r\n \"boundary\": \"{{boundary}}\",\r\n \"locality\": null\r\n },\r\n \"estimateDetails\": [\r\n {\r\n \"id\": \"{{estLineitem1}}\",\r\n \"previousLineItemId\": \"{{prevEstLineitem1}}\",\r\n \"sorId\": \"SOR_000196\",\r\n \"category\": \"SOR\",\r\n \"name\": \"P.C.C. Grade M25 Using Batching plant, Transit Mixer and concrete pump (Data for 120.00 Cum) [First Floor]\",\r\n \"description\": \"LHS\",\r\n \"unitRate\": 439070.35,\r\n \"noOfunit\": 1.0,\r\n \"uom\": \"CUM\",\r\n \"uomValue\": 0.0,\r\n \"length\": 1,\r\n \"width\": 1,\r\n \"height\": 1,\r\n \"quantity\": 1,\r\n \"isDeduction\": false,\r\n \"amountDetail\": [\r\n {\r\n // \"id\": \"{{Lineamount1}}\",\r\n \"id\": \"{{estLineamount1}}\",\r\n \"type\": \"EstimatedAmount\",\r\n \"amount\": 3253.6,\r\n \"isActive\": true,\r\n \"additionalDetails\": {}\r\n }\r\n ],\r\n \"isActive\": true,\r\n \"additionalDetails\": null\r\n },\r\n {\r\n \"id\": \"{{estLineitem2}}\",\r\n \"previousLineItemId\": \"{{prevEstLineitem2}}\",\r\n \"sorId\": null,\r\n \"category\": \"OVERHEAD\",\r\n \"name\": \"GST\",\r\n \"description\": \"Goods and Service Tax\",\r\n \"unitRate\": null,\r\n \"noOfunit\": null,\r\n \"uom\": null,\r\n \"uomValue\": null,\r\n \"amountDetail\": [\r\n {\r\n // \"id\": \"{{Lineamount2}}\",\r\n \"id\": \"{{estLineamount2}}\",\r\n \"type\": \"GST\",\r\n \"amount\": 585.6,\r\n \"isActive\": true,\r\n \"additionalDetails\": null\r\n }\r\n ],\r\n \"isActive\": true,\r\n \"additionalDetails\": {\r\n \"row\": {\r\n \"percentage\": \"18 %\",\r\n \"name\": {\r\n \"id\": \"2\",\r\n \"code\": \"GST\",\r\n \"description\": \"Goods and Service Tax\",\r\n \"active\": true,\r\n \"isAutoCalculated\": true,\r\n \"type\": \"percentage\",\r\n \"value\": \"18\",\r\n \"isWorkOrderValue\": true,\r\n \"effectiveFrom\": \"1694172775346\",\r\n \"effectiveTo\": null,\r\n \"name\": \"ES_COMMON_OVERHEADS_GST\"\r\n },\r\n \"amount\": \"585.6\"\r\n }\r\n }\r\n }\r\n ],\r\n \"additionalDetails\": {\r\n \"documents\": [\r\n {\r\n \"fileName\": \"{{fileName}}\",\r\n \"fileStoreId\": \"{{fileStoreId}}\",\r\n \"documentUid\": \"{{fileStoreId}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_DETAILED_ESTIMATE\"\r\n },\r\n {\r\n \"fileName\": \"{{fileName}}\",\r\n \"fileStoreId\": \"{{fileStoreId}}\",\r\n \"documentUid\": \"{{fileStoreId}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_LABOUR_ANALYSIS\"\r\n },\r\n {\r\n \"fileName\": \"{{fileName}}\",\r\n \"fileStoreId\": \"{{fileStoreId}}\",\r\n \"documentUid\": \"{{fileStoreId}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_MATERIAL_ANALYSIS\"\r\n },\r\n {\r\n \"fileType\": \"ESTIMATE_DOC_DESIGN_DOCUMENT\"\r\n },\r\n {\r\n \"fileName\": \"\",\r\n \"fileType\": \"Others\"\r\n }\r\n ],\r\n \"labourMaterialAnalysis\": {\r\n \"labour\": \"50\",\r\n \"material\": \"50\"\r\n },\r\n \"creator\": \"SMS QA testing\",\r\n \"location\": {\r\n \"locality\": \"B1\",\r\n \"ward\": \"B1\",\r\n \"city\": \"{{tenantId}}\"\r\n },\r\n \"ward\": \"B1\",\r\n \"locality\": \"SUN01\",\r\n \"projectNumber\": \"{{PJNo-est}}\",\r\n \"totalEstimatedAmount\": 3839.2,\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"projectName\": \"{{randomWord}}\"\r\n }\r\n },\r\n \"workflow\": {\r\n \"action\": \"APPROVE\"\r\n },\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"authToken\": \"{{auth}}\",\r\n \"msgId\": \"1694085272328|en_IN\",\r\n \"plainAccessRequest\": {}\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/estimate/v1/_update", "host": [ "{{base_url}}" ], "path": [ "estimate", "v1", "_update" ] } }, "response": [] }, { "name": "Create Revision Estimate - Validation error - Previous line item id is not correct", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => {\r", " pm.expect(pm.response.to.have.status(400));\r", "});\r", " \r", "\r", "pm.test(\"Previous Line Id is invalid for revision estimate\", function () {\r", " var res = pm.response.json();\r", " var code = res.Errors[0].code;\r", " var message = res.Errors[0].message;\r", " console.log(message);\r", " pm.expect(code).to.eql(\"INVALID_ESTIMATE_DETAIL\");\r", " pm.expect(message).to.eql(\"Previous Line Id is invalid for revision estimate\");\r", " }\r", ");" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "exec": [ "// Add a delay of 500 milliseconds (adjust the value as needed)", "setTimeout(function() {", " // Your script logic here", " console.log(\"Delay complete!\");", "}, 500);", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"estimate\": {\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"projectId\": \"{{PJId-est}}\",\r\n \"estimateNumber\": \"{{estNo-WO}}\",\r\n \"status\": \"ACTIVE\",\r\n \"wfStatus\": \"CREATED\",\r\n \"name\": \"{{randomWord}}\",\r\n \"description\": \"{{randomWord}}\",\r\n \"executingDepartment\": \"WRK\",\r\n \"businessService\": \"{{buisnessService}}\",\r\n \"address\": {\r\n \"id\": \"{{PJ-addressid}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"clientReferenceId\": null,\r\n \"doorNo\": null,\r\n \"latitude\": 0,\r\n \"longitude\": 0,\r\n \"locationAccuracy\": 0,\r\n \"type\": null,\r\n \"addressLine1\": null,\r\n \"addressLine2\": null,\r\n \"landmark\": null,\r\n \"city\": \"{{tenantId}}\",\r\n \"pincode\": null,\r\n \"buildingName\": null,\r\n \"street\": null,\r\n \"boundaryType\": \"{{boundaryType}}\",\r\n \"boundary\": \"{{boundary}}\",\r\n \"locality\": null\r\n },\r\n \"estimateDetails\": [\r\n {\r\n \"previousLineItemId\": \"94a89f18-5443-40b3-a0bb-6309079777\",\r\n \"sorId\": 45,\r\n \"category\": \"NON-SOR\",\r\n \"name\": \"Testing 01\",\r\n \"description\": \"Testing 01\",\r\n \"unitRate\": \"250.28\",\r\n \"noOfunit\": \"13\",\r\n \"uom\": \"KG\",\r\n \"amountDetail\": [\r\n {\r\n \"type\": \"EstimatedAmount\",\r\n \"amount\": \"3253.6\",\r\n \"additionalDetails\": {}\r\n }\r\n ]\r\n },\r\n {\r\n \"previousLineItemId\": \"{{estLineitem2}}\",\r\n \"category\": \"OVERHEAD\",\r\n \"name\": \"GST\",\r\n \"description\": \"Goods and Service Tax\",\r\n \"amountDetail\": [\r\n {\r\n \"type\": \"GST\",\r\n \"amount\": \"585.6\"\r\n }\r\n ],\r\n \"additionalDetails\": {\r\n \"row\": {\r\n \"percentage\": \"18 %\",\r\n \"name\": {\r\n \"id\": \"2\",\r\n \"code\": \"GST\",\r\n \"description\": \"Goods and Service Tax\",\r\n \"active\": true,\r\n \"isAutoCalculated\": true,\r\n \"type\": \"percentage\",\r\n \"value\": \"18\",\r\n \"isWorkOrderValue\": true,\r\n \"effectiveFrom\": \"{{dateOfProposal}}\",\r\n \"effectiveTo\": null,\r\n \"name\": \"ES_COMMON_OVERHEADS_GST\"\r\n },\r\n \"amount\": \"585.6\"\r\n }\r\n }\r\n }\r\n ],\r\n \"additionalDetails\": {\r\n \"documents\": [\r\n {\r\n \"fileName\": \"WorkOrder-WO_2023-24_000266 (2).pdf\",\r\n \"fileStoreId\": \"8234d8ef-73d7-4986-b5af-c557a6436c94\",\r\n \"documentUid\": \"8234d8ef-73d7-4986-b5af-c557a6436c94\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_DETAILED_ESTIMATE\"\r\n },\r\n {\r\n \"fileName\": \"Muster-roll-MR_2023-24_06_08_000427.pdf\",\r\n \"fileStoreId\": \"652d5212-477d-4c98-8deb-599f3e5f16a8\",\r\n \"documentUid\": \"652d5212-477d-4c98-8deb-599f3e5f16a8\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_LABOUR_ANALYSIS\"\r\n },\r\n {\r\n \"fileName\": \"WorkOrder (3).pdf\",\r\n \"fileStoreId\": \"e29bd685-a6dc-420f-8c22-59dc4061689a\",\r\n \"documentUid\": \"e29bd685-a6dc-420f-8c22-59dc4061689a\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_MATERIAL_ANALYSIS\"\r\n },\r\n {\r\n \"fileType\": \"ESTIMATE_DOC_DESIGN_DOCUMENT\"\r\n },\r\n {\r\n \"fileName\": \"\",\r\n \"fileType\": \"Others\"\r\n }\r\n ],\r\n \"labourMaterialAnalysis\": {\r\n \"labour\": \"50\",\r\n \"material\": \"50\"\r\n },\r\n \"creator\": \"SMS QA testing\",\r\n \"location\": {\r\n \"locality\": \"B1\",\r\n \"ward\": \"B1\",\r\n \"city\": \"{{tenantId}}\"\r\n },\r\n \"ward\": \"B1\",\r\n \"locality\": \"SUN01\",\r\n \"projectNumber\": \"{{PJNo-est}}\",\r\n \"totalEstimatedAmount\": 10012.3,\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"projectName\": \"{{randomWord}}\"\r\n }\r\n },\r\n \"workflow\": {\r\n \"action\": \"SUBMIT\",\r\n \"assignees\": [\r\n \"40e3b45a-0f64-4e8c-8768-aab82c095b2d\"\r\n ]\r\n },\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"authToken\": \"{{auth}}\",\r\n \"msgId\": \"1694085272328|en_IN\",\r\n \"plainAccessRequest\": {}\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/estimate/v1/_create", "host": [ "{{base_url}}" ], "path": [ "estimate", "v1", "_create" ] } }, "response": [] }, { "name": "Update Revision Estimate - Validation Error - Revision number is null", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is not successful\", () =>\r", " pm.expect(pm.response.to.have.status(400))\r", ");\r", "\r", "pm.test(\"Correct Error with message and code is received\", function () {\r", " var res = pm.response.json();\r", " var code = res.Errors[0].code;\r", " var message = res.Errors[0].message;\r", " pm.expect(code).to.eql(\"INVALID_REVISION_NUMBER\");\r", " pm.expect(message).to.eql(\"Revision number is mandatory for revision estimate\");\r", "}\r", ");" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"estimate\": {\r\n \"id\": \"{{estimateId}}\",\r\n \"estimateNumber\": \"{{estimateNumber}}\",\r\n // \"revisionNumber\": \"{{revNo-WO}}\",\r\n \"businessService\": \"{{buisnessService}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"projectId\": \"{{PJId-est}}\",\r\n \"status\": \"ACTIVE\",\r\n \"wfStatus\": \"CREATED\",\r\n \"name\": \"{{randomWord}}\",\r\n \"description\": \"{{randomWord}}\",\r\n \"executingDepartment\": \"WRK\",\r\n \"address\": {\r\n \"id\": \"{{PJ-addressid}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"clientReferenceId\": null,\r\n \"doorNo\": null,\r\n \"latitude\": 0,\r\n \"longitude\": 0,\r\n \"locationAccuracy\": 0,\r\n \"type\": null,\r\n \"addressLine1\": null,\r\n \"addressLine2\": null,\r\n \"landmark\": null,\r\n \"city\": \"pg.citya\",\r\n \"pincode\": null,\r\n \"buildingName\": null,\r\n \"street\": null,\r\n \"boundaryType\": \"{{boundaryType}}\",\r\n \"boundary\": \"{{boundary}}\",\r\n \"locality\": null\r\n },\r\n \"estimateDetails\": [\r\n {\r\n \"id\": \"{{Lineitem1}}\",\r\n \"previousLineItemId\": \"{{prevEstLineitem1}}\",\r\n \"sorId\": \"45\",\r\n \"category\": \"NON-SOR\",\r\n \"name\": \"Testing 01\",\r\n \"description\": \"Testing 01\",\r\n \"unitRate\": 250.28,\r\n \"noOfunit\": 13.0,\r\n \"uom\": \"KG\",\r\n \"uomValue\": null,\r\n \"amountDetail\": [\r\n {\r\n \"id\": \"{{Lineamount1}}\",\r\n \"type\": \"EstimatedAmount\",\r\n \"amount\": 3253.6,\r\n \"isActive\": true,\r\n \"additionalDetails\": {}\r\n }\r\n ],\r\n \"isActive\": true,\r\n \"additionalDetails\": null\r\n },\r\n {\r\n \"id\": \"{{Lineitem2}}\",\r\n \"previousLineItemId\": \"{{prevEstLineitem2}}\",\r\n \"sorId\": null,\r\n \"category\": \"OVERHEAD\",\r\n \"name\": \"GST\",\r\n \"description\": \"Goods and Service Tax\",\r\n \"unitRate\": null,\r\n \"noOfunit\": null,\r\n \"uom\": null,\r\n \"uomValue\": null,\r\n \"amountDetail\": [\r\n {\r\n \"id\": \"{{Lineamount2}}\",\r\n \"type\": \"GST\",\r\n \"amount\": 585.6,\r\n \"isActive\": true,\r\n \"additionalDetails\": null\r\n }\r\n ],\r\n \"isActive\": true,\r\n \"additionalDetails\": {\r\n \"row\": {\r\n \"percentage\": \"18 %\",\r\n \"name\": {\r\n \"id\": \"2\",\r\n \"code\": \"GST\",\r\n \"description\": \"Goods and Service Tax\",\r\n \"active\": true,\r\n \"isAutoCalculated\": true,\r\n \"type\": \"percentage\",\r\n \"value\": \"18\",\r\n \"isWorkOrderValue\": true,\r\n \"effectiveFrom\": \"1694172775346\",\r\n \"effectiveTo\": null,\r\n \"name\": \"ES_COMMON_OVERHEADS_GST\"\r\n },\r\n \"amount\": \"585.6\"\r\n }\r\n }\r\n }\r\n ],\r\n \"additionalDetails\": {\r\n \"documents\": [\r\n {\r\n \"fileName\": \"{{fileName}}\",\r\n \"fileStoreId\": \"{{fileStoreId}}\",\r\n \"documentUid\": \"{{fileStoreId}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_DETAILED_ESTIMATE\"\r\n },\r\n {\r\n \"fileName\": \"{{fileName}}\",\r\n \"fileStoreId\": \"{{fileStoreId}}\",\r\n \"documentUid\": \"{{fileStoreId}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_LABOUR_ANALYSIS\"\r\n },\r\n {\r\n \"fileName\": \"{{fileName}}\",\r\n \"fileStoreId\": \"{{fileStoreId}}\",\r\n \"documentUid\": \"{{fileStoreId}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_MATERIAL_ANALYSIS\"\r\n },\r\n {\r\n \"fileType\": \"ESTIMATE_DOC_DESIGN_DOCUMENT\"\r\n },\r\n {\r\n \"fileName\": \"\",\r\n \"fileType\": \"Others\"\r\n }\r\n ],\r\n \"labourMaterialAnalysis\": {\r\n \"labour\": \"50\",\r\n \"material\": \"50\"\r\n },\r\n \"creator\": \"SMS QA testing\",\r\n \"location\": {\r\n \"locality\": \"B1\",\r\n \"ward\": \"B1\",\r\n \"city\": \"{{tenantId}}\"\r\n },\r\n \"ward\": \"B1\",\r\n \"locality\": \"SUN01\",\r\n \"projectNumber\": \"{{PJNo-est}}\",\r\n \"totalEstimatedAmount\": 3839.2,\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"projectName\": \"{{randomWord}}\"\r\n }\r\n },\r\n \"workflow\": {\r\n \"action\": \"APPROVE\"\r\n },\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"authToken\": \"{{auth}}\",\r\n \"msgId\": \"1694085272328|en_IN\",\r\n \"plainAccessRequest\": {}\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/estimate/v1/_update", "host": [ "{{base_url}}" ], "path": [ "estimate", "v1", "_update" ] } }, "response": [] }, { "name": "Update Revision Estimate - Validation Error - Revision number is not valid", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is not successful\", () =>\r", " pm.expect(pm.response.to.have.status(400))\r", ");\r", "\r", "pm.test(\"Correct Error with message and code is received\", function () {\r", " var res = pm.response.json();\r", " var code = res.Errors[0].code;\r", " var message = res.Errors[0].message;\r", " pm.expect(code).to.eql(\"INVALID_REVISION_NUMBER\");\r", " pm.expect(message).to.eql(\"revisionNumber is not valid\");\r", "}\r", ");" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"estimate\": {\r\n \"id\": \"474e7a11-e8d9-49f8-b596-9568fce4138a\",\r\n \"estimateNumber\": \"{{estimateNumber}}\",\r\n \"revisionNumber\": \"{{revNo-WO}}\",\r\n \"businessService\": \"{{buisnessService}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"projectId\": \"{{PJId-est}}\",\r\n \"status\": \"ACTIVE\",\r\n \"wfStatus\": \"CREATED\",\r\n \"name\": \"{{randomWord}}\",\r\n \"description\": \"{{randomWord}}\",\r\n \"executingDepartment\": \"WRK\",\r\n \"address\": {\r\n \"id\": \"{{PJ-addressid}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"clientReferenceId\": null,\r\n \"doorNo\": null,\r\n \"latitude\": 0,\r\n \"longitude\": 0,\r\n \"locationAccuracy\": 0,\r\n \"type\": null,\r\n \"addressLine1\": null,\r\n \"addressLine2\": null,\r\n \"landmark\": null,\r\n \"city\": \"pg.citya\",\r\n \"pincode\": null,\r\n \"buildingName\": null,\r\n \"street\": null,\r\n \"boundaryType\": \"{{boundaryType}}\",\r\n \"boundary\": \"{{boundary}}\",\r\n \"locality\": null\r\n },\r\n \"estimateDetails\": [\r\n {\r\n \"id\": \"{{Lineitem1}}\",\r\n \"previousLineItemId\": \"{{prevEstLineitem1}}\",\r\n \"sorId\": \"45\",\r\n \"category\": \"NON-SOR\",\r\n \"name\": \"Testing 01\",\r\n \"description\": \"Testing 01\",\r\n \"unitRate\": 250.28,\r\n \"noOfunit\": 13.0,\r\n \"uom\": \"KG\",\r\n \"uomValue\": null,\r\n \"amountDetail\": [\r\n {\r\n \"id\": \"{{Lineamount1}}\",\r\n \"type\": \"EstimatedAmount\",\r\n \"amount\": 3253.6,\r\n \"isActive\": true,\r\n \"additionalDetails\": {}\r\n }\r\n ],\r\n \"isActive\": true,\r\n \"additionalDetails\": null\r\n },\r\n {\r\n \"id\": \"{{Lineitem2}}\",\r\n \"previousLineItemId\": \"{{prevEstLineitem2}}\",\r\n \"sorId\": null,\r\n \"category\": \"OVERHEAD\",\r\n \"name\": \"GST\",\r\n \"description\": \"Goods and Service Tax\",\r\n \"unitRate\": null,\r\n \"noOfunit\": null,\r\n \"uom\": null,\r\n \"uomValue\": null,\r\n \"amountDetail\": [\r\n {\r\n \"id\": \"{{Lineamount2}}\",\r\n \"type\": \"GST\",\r\n \"amount\": 585.6,\r\n \"isActive\": true,\r\n \"additionalDetails\": null\r\n }\r\n ],\r\n \"isActive\": true,\r\n \"additionalDetails\": {\r\n \"row\": {\r\n \"percentage\": \"18 %\",\r\n \"name\": {\r\n \"id\": \"2\",\r\n \"code\": \"GST\",\r\n \"description\": \"Goods and Service Tax\",\r\n \"active\": true,\r\n \"isAutoCalculated\": true,\r\n \"type\": \"percentage\",\r\n \"value\": \"18\",\r\n \"isWorkOrderValue\": true,\r\n \"effectiveFrom\": \"1694172775346\",\r\n \"effectiveTo\": null,\r\n \"name\": \"ES_COMMON_OVERHEADS_GST\"\r\n },\r\n \"amount\": \"585.6\"\r\n }\r\n }\r\n }\r\n ],\r\n \"additionalDetails\": {\r\n \"documents\": [\r\n {\r\n \"fileName\": \"{{fileName}}\",\r\n \"fileStoreId\": \"{{fileStoreId}}\",\r\n \"documentUid\": \"{{fileStoreId}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_DETAILED_ESTIMATE\"\r\n },\r\n {\r\n \"fileName\": \"{{fileName}}\",\r\n \"fileStoreId\": \"{{fileStoreId}}\",\r\n \"documentUid\": \"{{fileStoreId}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_LABOUR_ANALYSIS\"\r\n },\r\n {\r\n \"fileName\": \"{{fileName}}\",\r\n \"fileStoreId\": \"{{fileStoreId}}\",\r\n \"documentUid\": \"{{fileStoreId}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"fileType\": \"ESTIMATE_DOC_MATERIAL_ANALYSIS\"\r\n },\r\n {\r\n \"fileType\": \"ESTIMATE_DOC_DESIGN_DOCUMENT\"\r\n },\r\n {\r\n \"fileName\": \"\",\r\n \"fileType\": \"Others\"\r\n }\r\n ],\r\n \"labourMaterialAnalysis\": {\r\n \"labour\": \"50\",\r\n \"material\": \"50\"\r\n },\r\n \"creator\": \"SMS QA testing\",\r\n \"location\": {\r\n \"locality\": \"B1\",\r\n \"ward\": \"B1\",\r\n \"city\": \"{{tenantId}}\"\r\n },\r\n \"ward\": \"B1\",\r\n \"locality\": \"SUN01\",\r\n \"projectNumber\": \"{{PJNo-est}}\",\r\n \"totalEstimatedAmount\": 3839.2,\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"projectName\": \"{{randomWord}}\"\r\n }\r\n },\r\n \"workflow\": {\r\n \"action\": \"APPROVE\"\r\n },\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"authToken\": \"{{auth}}\",\r\n \"msgId\": \"1694085272328|en_IN\",\r\n \"plainAccessRequest\": {}\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/estimate/v1/_update", "host": [ "{{base_url}}" ], "path": [ "estimate", "v1", "_update" ] } }, "response": [] }, { "name": "Search Estimate - Success - RevisionNumber", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () =>\r", " pm.expect(pm.response.to.have.status(200))\r", ");\r", "\r", "pm.test(\"Search response is received\", function () {\r", " var res = pm.response.json();\r", " var estimateNumber = res.estimates[0].estimateNumber;\r", " pm.expect(estimateNumber).to.eql(pm.collectionVariables.get(\"estimateNumber\"));\r", " }\r", ");\r", "" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"authToken\": \"{{auth}}\"\r\n },\r\n \"apiOperation\": \"SEARCH\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/estimate/v1/_search?tenantId={{tenantId}}&revisionNumber={{revNo-WO}}", "host": [ "{{base_url}}" ], "path": [ "estimate", "v1", "_search" ], "query": [ { "key": "tenantId", "value": "{{tenantId}}" }, { "key": "revisionNumber", "value": "{{revNo-WO}}" } ] } }, "response": [] } ], "event": [ { "listen": "prerequest", "script": { "type": "text/javascript", "exec": [ "" ] } }, { "listen": "test", "script": { "type": "text/javascript", "exec": [ "" ] } } ], "variable": [ { "key": "fileStoreId", "value": "" }, { "key": "boundaryType", "value": "" }, { "key": "boundary", "value": "" }, { "key": "estimateId", "value": "" }, { "key": "estimateNumber", "value": "" }, { "key": "createdTime", "value": "" }, { "key": "lastModifiedTime", "value": "" }, { "key": "fileName", "value": "" }, { "key": "wfStatus", "value": "" }, { "key": "totalEstimatedAmount", "value": "" }, { "key": "fileType", "value": "" }, { "key": "estimateDetails", "value": "" }, { "key": "Lineitem1", "value": "" }, { "key": "Lineitem2", "value": "" }, { "key": "Lineamount1", "value": "" }, { "key": "Lineamount2", "value": "" }, { "key": "estLineamount2", "value": "" } ] }