{ "info": { "_postman_id": "79957f77-cc45-4900-9486-639883365db0", "name": "Works Automation", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", "_exporter_id": "31932888" }, "item": [ { "name": "Project Service Test Script", "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);", "}", ");", "", "// Capture the entire response body", "var responseData = pm.response.json();", "var userRequestBody =responseData.UserRequest;", "", "// Store the response body in an environment variable", "pm.environment.set(\"userinfo\", JSON.stringify(userRequestBody));", "var empUserId = responseData.UserRequest.uuid;", "pm.environment.set(\"empUserId\",empUserId);" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [ { "key": "authority", "value": "unified-dev.digit.org", "uuid": "4279926d-cde9-41a8-8584-a290e9cd567c" }, { "key": "accept", "value": "application/json, text/plain, */*", "uuid": "cd2d0c7d-4959-4389-a8a5-d4377aada435" }, { "key": "accept-language", "value": "en-GB,en-US;q=0.9,en;q=0.8", "uuid": "91211297-c57a-48c2-85f0-3fb1f2b292be" }, { "key": "authorization", "value": "Basic ZWdvdi11c2VyLWNsaWVudDo=", "uuid": "b7d5838d-b864-46fe-b541-c01da6af9b33" }, { "key": "content-type", "value": "application/x-www-form-urlencoded", "uuid": "91b345af-d457-4620-bc72-7a1a7bacd026" }, { "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=", "uuid": "f84f78b9-2aad-45f4-95c3-f242ad8bc6da" }, { "key": "origin", "value": "https://unified-dev.digit.org", "uuid": "9ec16b03-5f7c-48a3-acf9-f095e9c5814e" }, { "key": "referer", "value": "https://unified-dev.digit.org/works-ui/employee/user/login?from=%2Fworks-ui%2Femployee", "uuid": "563185ec-d0b3-4686-9ebc-77db199f9640" }, { "key": "sec-ch-ua", "value": "\"Chromium\";v=\"118\", \"Google Chrome\";v=\"118\", \"Not=A?Brand\";v=\"99\"", "uuid": "6bc7d2c0-8995-4f2c-9699-7cb00e73c028" }, { "key": "sec-ch-ua-mobile", "value": "?0", "uuid": "55503535-c6cb-4944-b144-fe3a5914f89a" }, { "key": "sec-ch-ua-platform", "value": "\"Linux\"", "uuid": "f3738ec0-ff86-4071-a098-dfdac521d60f" }, { "key": "sec-fetch-dest", "value": "empty", "uuid": "d32bbaab-f382-46bb-bfa8-0f4504e304de" }, { "key": "sec-fetch-mode", "value": "cors", "uuid": "11171f5c-bb23-40e2-9989-5485f0895a32" }, { "key": "sec-fetch-site", "value": "same-origin", "uuid": "ccf1a04b-7d3d-402b-bba1-73e601a27838" }, { "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", "uuid": "5a5f29c4-7441-46e1-b644-d3707f7f4ca5" } ], "body": { "mode": "urlencoded", "urlencoded": [ { "key": "username", "value": "{{username}}", "type": "text" }, { "key": "password", "value": "{{password}}", "type": "text" }, { "key": "userType", "value": "EMPLOYEE", "type": "text" }, { "key": "tenantId", "value": "{{tenantId}}", "type": "text" }, { "key": "scope", "value": "read", "type": "text" }, { "key": "grant_type", "value": "password", "type": "text" }, { "key": "permanentCity\n", "value": "Testing", "type": "text" } ] }, "url": { "raw": "{{base_url}}/user/oauth/token?_=1700804704480", "host": [ "{{base_url}}" ], "path": [ "user", "oauth", "token" ], "query": [ { "key": "_", "value": "1700804704480" } ] } }, "response": [] }, { "name": "Create Project - Success - Single Project", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"RequestInfo is required\", function () {", " var req = JSON.parse(pm.request.body.raw);", " pm.expect(req.RequestInfo).to.not.be.null;", " pm.expect(req.RequestInfo).to.not.be.undefined;", "}", ");", "", "pm.test(\"Projects are required\", function () {", " var req = JSON.parse(pm.request.body.raw);", " pm.expect(req.Projects).to.not.be.undefined;", " pm.expect(req.Projects).to.not.be.null;", "}", ");", "", "pm.test(\"TenantId is required\", function () {", " var req = JSON.parse(pm.request.body.raw);", " var project = req.Projects[0];", " pm.expect(project.tenantId).to.be.not.null;", " pm.expect(project.tenantId).to.be.not.undefined;", " pm.expect(project.tenantId).to.not.equal(\"\");", "}", ");", "", "pm.test(\"Response is successful\", () =>", " pm.expect(pm.response.to.have.status(200))", ");", "", "pm.test(\"print and save projectId in environment\", function () {", " var res = pm.response.json();", " var projectId = res.Project[0].id;", " console.log('projectId:', projectId);", " pm.environment.set('PJId-est', projectId);", "}", ");", "pm.test(\"print and save projectNumber in environment\", function () {", " var res = pm.response.json();", " var projectNo = res.Project[0].projectNumber;", " console.log('projectNumber:', projectNo);", " pm.environment.set('PJNo-est', projectNo);", "}", ");", "pm.test(\"print and save PJ-addressid in environment\", function () {", " var res = pm.response.json();", " var addressid = res.Project[0].address.id;", " console.log('id:', addressid);", " pm.environment.set('PJ-addressid',addressid);", "}", ");", "", "pm.test(\"print and save ProjectType in environment\", function () {", " var res = pm.response.json();", " var PJType = res.Project[0].projectType;", " console.log('projectType:', PJType);", " pm.environment.set('projectType',PJType);", "}", ");", "", "pm.test(\"Project Number is enriched\", function () {", " var res = pm.response.json();", " var projectNumber = res.Project[0].projectNumber;", " pm.expect(projectNumber.substring(0, 2)).to.eql(\"PJ\");", "}", ");", "", "let responseData = pm.response.json();", "", "//Storing the response data into collection variable to reuse", "", "pm.collectionVariables.set(\"projectId\", responseData.Project[0].id);", "", "pm.collectionVariables.set(\"projectNumber\", responseData.Project[0].projectNumber);", "", "pm.collectionVariables.set(\"projectType\", responseData.Project[0].projectType);", "", "pm.collectionVariables.set(\"referenceID\", responseData.Project[0].referenceID);", "", "pm.collectionVariables.set(\"createdTime\", (responseData.Project[0].auditDetails.createdTime));", "", "pm.collectionVariables.set(\"lastModifiedTime\", (responseData.Project[0].auditDetails.lastModifiedTime));", "", "// pm.collectionVariables.set(\"lastChangedSinceIncreased\", (responseData.Project[0].auditDetails.createdTime + 10000000));", "", "pm.collectionVariables.set(\"addressId\", responseData.Project[0].address.id);", "", "if (responseData.Project[0].targets !== null)", "{pm.collectionVariables.set(\"targetId\", responseData.Project[0].targets[0].id);}", "", "pm.collectionVariables.set(\"documents\", responseData.Project[0].documents[0].id);", "pm.collectionVariables.set(\"fileStoreId\", responseData.Project[0].documents[0].fileStoreId);", "", "pm.collectionVariables.set(\"boundaryType\", (responseData.Project[0].address.boundaryType));", "", "pm.collectionVariables.set(\"boundary\",(responseData.Project[0].address.boundary));", "" ], "type": "text/javascript", "packages": {} } }, { "listen": "prerequest", "script": { "exec": [ "// Generate the current timestamp in milliseconds", "const currentTimestamp = Date.now();", "", "// Store the timestamp in an environment variable (you can also use a global variable)", "pm.environment.set('dateOfProposal', currentTimestamp);", "", "// Print the timestamp to the console (optional)", "console.log('Current Timestamp:', currentTimestamp);", "", "// Function to generate a random name with 8 alphabets", "function generateRandomName() {", " var alphabet = 'abcdefghijklmnopqrstuvwxyz'; // All alphabets", " var name = '';", "", " for (var i = 0; i < 8; i++) {", " var randomIndex = Math.floor(Math.random() * alphabet.length); // Generate random index", " name += alphabet[randomIndex]; // Append random alphabet to the name", " }", "", " return name;", "}", "", "// Generate a random name", "var randomName = generateRandomName();", "", "console.log(\"Random Name:\", randomName);", "pm.variables.set(\"projectName\", randomName)", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"Projects\": [\n {\n \"tenantId\": \"{{tenantId}}\",\n \"name\": \"{{projectName}}\",\n \"projectType\": \"CPS-CWS\",\n \"projectSubType\": \"\",\n \"department\": \"\",\n \"description\": \"Automation\",\n \"referenceID\": \"2611\",\n \"documents\": [\n {\n \"documentType\": \"PROJECT_PROPOSAL\",\n \"fileStoreId\": \"cfed582b-31b0-42e9-985f-fb9bb4543670\",\n \"documentUid\": \"cfed582b-31b0-42e9-985f-fb9bb4543670\",\n \"status\": \"ACTIVE\",\n \"key\": \"noSubProject_doc_project_proposal\",\n \"additionalDetails\": {\n \"fileName\": \"PROJECT_PROPOSAL\",\n \"otherCategoryName\": \"\"\n },\n \"tenantId\": \"{{tenantId}}\"\n },\n {\n \"documentType\": \"FINALIZED_WORKLIST\",\n \"fileStoreId\": \"f7543894-d3a1-4263-acb2-58b1383eebec\",\n \"documentUid\": \"f7543894-d3a1-4263-acb2-58b1383eebec\",\n \"status\": \"ACTIVE\",\n \"key\": \"noSubProject_doc_finalized_worklist\",\n \"additionalDetails\": {\n \"fileName\": \"FINALIZED_WORKLIST\",\n \"otherCategoryName\": \"\"\n },\n \"tenantId\": \"{{tenantId}}\"\n },\n {\n \"documentType\": \"FEASIBILITY_ANALYSIS\",\n \"fileStoreId\": \"c4fb4f5d-a4c3-472e-8991-e05bc2d671f5\",\n \"documentUid\": \"c4fb4f5d-a4c3-472e-8991-e05bc2d671f5\",\n \"status\": \"ACTIVE\",\n \"key\": \"noSubProject_doc_feasibility_analysis\",\n \"additionalDetails\": {\n \"fileName\": \"FEASIBILITY_ANALYSIS\",\n \"otherCategoryName\": \"\"\n },\n \"tenantId\": \"{{tenantId}}\"\n }\n ],\n \"address\": {\n \"tenantId\": \"{{tenantId}}\",\n \"latitude\": null,\n \"longitude\": null,\n \"city\": \"pg.citya\",\n \"boundary\": \"B1\",\n \"boundaryType\": \"Ward\"\n },\n \"isTaskEnabled\": false,\n \"parent\": \"\",\n \"additionalDetails\": {\n \"estimatedCostInRs\": \"50000\",\n \"dateOfProposal\": \"{{dateOfProposal}}\",\n \"locality\": \"SUN01\",\n \"creator\": \"SMS QA testing\",\n \"targetDemography\": \"SM\"\n },\n \"rowVersion\": 0\n }\n ],\n \"apiOperation\": \"CREATE\",\n \"RequestInfo\": {\n \"apiId\": \"Rainmaker\",\n \"authToken\": \"{{auth}}\",\n \"msgId\": \"Create Projects\",\n \"plainAccessRequest\": {}\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/project/v1/_create", "host": [ "{{base_url}}" ], "path": [ "project", "v1", "_create" ] } }, "response": [ { "name": "Create Project - Success - Single Project", "originalRequest": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"Projects\": [\n {\n \"tenantId\": \"pg.citya\",\n \"name\": \"Test Automation\",\n \"projectType\": \"CPS-CWS\",\n \"projectSubType\": \"\",\n \"department\": \"\",\n \"description\": \"Automation\",\n \"referenceID\": \"125\",\n \"documents\": [\n {\n \"documentType\": \"PROJECT_PROPOSAL\",\n \"fileStoreId\": \"cfed582b-31b0-42e9-985f-fb9bb4543670\",\n \"documentUid\": \"cfed582b-31b0-42e9-985f-fb9bb4543670\",\n \"status\": \"ACTIVE\",\n \"key\": \"noSubProject_doc_project_proposal\",\n \"additionalDetails\": {\n \"fileName\": \"PROJECT_PROPOSAL\",\n \"otherCategoryName\": \"\"\n },\n \"tenantId\": \"pg.citya\"\n },\n {\n \"documentType\": \"FINALIZED_WORKLIST\",\n \"fileStoreId\": \"f7543894-d3a1-4263-acb2-58b1383eebec\",\n \"documentUid\": \"f7543894-d3a1-4263-acb2-58b1383eebec\",\n \"status\": \"ACTIVE\",\n \"key\": \"noSubProject_doc_finalized_worklist\",\n \"additionalDetails\": {\n \"fileName\": \"FINALIZED_WORKLIST\",\n \"otherCategoryName\": \"\"\n },\n \"tenantId\": \"pg.citya\"\n },\n {\n \"documentType\": \"FEASIBILITY_ANALYSIS\",\n \"fileStoreId\": \"c4fb4f5d-a4c3-472e-8991-e05bc2d671f5\",\n \"documentUid\": \"c4fb4f5d-a4c3-472e-8991-e05bc2d671f5\",\n \"status\": \"ACTIVE\",\n \"key\": \"noSubProject_doc_feasibility_analysis\",\n \"additionalDetails\": {\n \"fileName\": \"FEASIBILITY_ANALYSIS\",\n \"otherCategoryName\": \"\"\n },\n \"tenantId\": \"pg.citya\"\n }\n ],\n \"address\": {\n \"tenantId\": \"pg.citya\",\n \"latitude\": null,\n \"longitude\": null,\n \"city\": \"pg.citya\",\n \"boundary\": \"B1\",\n \"boundaryType\": \"Ward\"\n },\n \"isTaskEnabled\": false,\n \"parent\": \"\",\n \"additionalDetails\": {\n \"estimatedCostInRs\": \"500\",\n \"dateOfProposal\": 1693938599000,\n \"locality\": \"SUN01\",\n \"creator\": \"SMS QA testing\",\n \"targetDemography\": \"SM\"\n },\n \"rowVersion\": 0\n }\n ],\n \"apiOperation\": \"CREATE\",\n \"RequestInfo\": {\n \"apiId\": \"Rainmaker\",\n \"authToken\": \"{{auth}}\",\n \"userInfo\": {\n \"id\": 444,\n \"uuid\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\n \"userName\": \"SMS QA testing\",\n \"name\": \"SMS QA testing\",\n \"mobileNumber\": \"9043685314\",\n \"emailId\": \"\",\n \"locale\": null,\n \"type\": \"EMPLOYEE\",\n \"roles\": [\n {\n \"name\": \"HRMS Admin\",\n \"code\": \"HRMS_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK_ORDER_VIEWER\",\n \"code\": \"WORK_ORDER_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_ACCOUNTANT\",\n \"code\": \"BILL_ACCOUNTANT\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER CREATOR\",\n \"code\": \"WORK_ORDER_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE VERIFIER\",\n \"code\": \"ESTIMATE_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_VERIFIER\",\n \"code\": \"BILL_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE APPROVER\",\n \"code\": \"ESTIMATE_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Organization viewer\",\n \"code\": \"ORG_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER VERIFIER\",\n \"code\": \"WORK_ORDER_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PROJECT VIEWER\",\n \"code\": \"PROJECT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_APPROVER\",\n \"code\": \"BILL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUSTER ROLL VERIFIER\",\n \"code\": \"MUSTER_ROLL_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"OFFICER IN CHARGE\",\n \"code\": \"OFFICER_IN_CHARGE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PROJECT CREATOR\",\n \"code\": \"PROJECT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Employee Common\",\n \"code\": \"EMPLOYEE_COMMON\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_VIEWER\",\n \"code\": \"BILL_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TECHNICAL SANCTIONER\",\n \"code\": \"TECHNICAL_SANCTIONER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_CREATOR\",\n \"code\": \"BILL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUSTER ROLL APPROVER\",\n \"code\": \"MUSTER_ROLL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE VIEWER\",\n \"code\": \"ESTIMATE_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER APPROVER\",\n \"code\": \"WORK_ORDER_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE CREATOR\",\n \"code\": \"ESTIMATE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"State Dashboard Admin\",\n \"code\": \"STADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUKTA Admin\",\n \"code\": \"MUKTA_ADMIN\",\n \"tenantId\": \"pg.citya\"\n }\n ],\n \"active\": true,\n \"tenantId\": \"pg.citya\",\n \"permanentCity\": null\n },\n \"msgId\": \"Create Projects\",\n \"plainAccessRequest\": {}\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/project/v1/_create", "host": [ "{{base_url}}" ], "path": [ "project", "v1", "_create" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Date", "value": "Wed, 06 Sep 2023 09:24:10 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": "20e953f91c65b25a66c2" }, { "key": "x-correlation-id", "value": "7a224f62-6db1-4de9-949b-6d734d193a77" }, { "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\": 1693992250529,\n \"resMsgId\": \"Create Projects\",\n \"msgId\": \"Create Projects\",\n \"status\": \"successful\"\n },\n \"Project\": [\n {\n \"id\": \"abed3099-d594-4626-ae3c-fec03f844cc0\",\n \"tenantId\": \"pg.citya\",\n \"projectNumber\": \"PJ/2023-24/09/000739\",\n \"name\": \"Test Automation\",\n \"projectType\": \"CPS-CWS\",\n \"projectSubType\": \"\",\n \"department\": \"\",\n \"description\": \"Automation\",\n \"referenceID\": \"125\",\n \"projectTypeId\": null,\n \"documents\": [\n {\n \"id\": \"0bdda764-e0b0-4dd0-baa9-7086db3d2213\",\n \"tenantId\": \"pg.citya\",\n \"documentType\": \"PROJECT_PROPOSAL\",\n \"fileStoreId\": \"cfed582b-31b0-42e9-985f-fb9bb4543670\",\n \"documentUid\": \"cfed582b-31b0-42e9-985f-fb9bb4543670\",\n \"fileStore\": null,\n \"status\": \"ACTIVE\",\n \"additionalDetails\": {\n \"fileName\": \"PROJECT_PROPOSAL\",\n \"otherCategoryName\": \"\"\n },\n \"auditDetails\": {\n \"createdBy\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\n \"lastModifiedBy\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\n \"createdTime\": 1693992250524,\n \"lastModifiedTime\": 1693992250524\n }\n },\n {\n \"id\": \"ccc3158e-8940-4078-844e-e83002cbd151\",\n \"tenantId\": \"pg.citya\",\n \"documentType\": \"FINALIZED_WORKLIST\",\n \"fileStoreId\": \"f7543894-d3a1-4263-acb2-58b1383eebec\",\n \"documentUid\": \"f7543894-d3a1-4263-acb2-58b1383eebec\",\n \"fileStore\": null,\n \"status\": \"ACTIVE\",\n \"additionalDetails\": {\n \"fileName\": \"FINALIZED_WORKLIST\",\n \"otherCategoryName\": \"\"\n },\n \"auditDetails\": {\n \"createdBy\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\n \"lastModifiedBy\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\n \"createdTime\": 1693992250524,\n \"lastModifiedTime\": 1693992250524\n }\n },\n {\n \"id\": \"3025443d-5d2c-4c76-bc53-1c8fd693eb6e\",\n \"tenantId\": \"pg.citya\",\n \"documentType\": \"FEASIBILITY_ANALYSIS\",\n \"fileStoreId\": \"c4fb4f5d-a4c3-472e-8991-e05bc2d671f5\",\n \"documentUid\": \"c4fb4f5d-a4c3-472e-8991-e05bc2d671f5\",\n \"fileStore\": null,\n \"status\": \"ACTIVE\",\n \"additionalDetails\": {\n \"fileName\": \"FEASIBILITY_ANALYSIS\",\n \"otherCategoryName\": \"\"\n },\n \"auditDetails\": {\n \"createdBy\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\n \"lastModifiedBy\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\n \"createdTime\": 1693992250524,\n \"lastModifiedTime\": 1693992250524\n }\n }\n ],\n \"address\": {\n \"id\": \"738b6541-c3eb-4525-8f81-5709f8216670\",\n \"tenantId\": \"pg.citya\",\n \"clientReferenceId\": null,\n \"doorNo\": null,\n \"latitude\": null,\n \"longitude\": null,\n \"locationAccuracy\": null,\n \"type\": null,\n \"addressLine1\": null,\n \"addressLine2\": null,\n \"landmark\": null,\n \"city\": \"pg.citya\",\n \"pincode\": null,\n \"buildingName\": null,\n \"street\": null,\n \"boundaryType\": \"Ward\",\n \"boundary\": \"B1\",\n \"locality\": null\n },\n \"startDate\": null,\n \"endDate\": null,\n \"isTaskEnabled\": false,\n \"parent\": \"\",\n \"projectHierarchy\": null,\n \"natureOfWork\": null,\n \"ancestors\": null,\n \"descendants\": null,\n \"targets\": null,\n \"additionalDetails\": {\n \"estimatedCostInRs\": \"500\",\n \"dateOfProposal\": 1693938599000,\n \"locality\": \"SUN01\",\n \"creator\": \"SMS QA testing\",\n \"targetDemography\": \"SM\"\n },\n \"isDeleted\": false,\n \"rowVersion\": 0,\n \"auditDetails\": {\n \"createdBy\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\n \"lastModifiedBy\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\n \"createdTime\": 1693992250523,\n \"lastModifiedTime\": 1693992250523\n }\n }\n ],\n \"TotalCount\": null\n}" } ] }, { "name": "Create Project - Validation Error - Projects not provided", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () =>", " pm.expect(pm.response.to.have.status(400)));", "", "pm.test(\"Correct Error with message and code is received\", function () {", " var res = pm.response.json();", " var code = res.Errors[0].code;", " var message = res.Errors[0].message;", " pm.expect(code).to.eql(\"Size.projectRequest.projects\");", " pm.expect(message).to.eql(\"size must be between 1 and 2147483647\");", "}", ");" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"mukta-services\",\n \"ver\": null,\n \"ts\": null,\n \"action\": null,\n \"did\": null,\n \"key\": null,\n \"msgId\": \"Create Projects\",\n \"authToken\": \"{{auth}}\"\n },\n \"Projects\": [],\n \"apiOperation\": \"CREATE\"\n}\n", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/project/v1/_create", "host": [ "{{base_url}}" ], "path": [ "project", "v1", "_create" ] } }, "response": [] }, { "name": "Create Project - Validation Error - TenantId not provided", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => {", " pm.expect(pm.response.to.have.status(400));", "});", " ", "", "pm.test(\"Correct Error with message and code is received\", function () {", " var res = pm.response.json();", " var code = res.Errors[0].code;", " var message = res.Errors[0].message;", " pm.expect(code).to.eql(\"TENANT_ID\");", " pm.expect(message).to.eql(\"Tenant ID is mandatory\");", " }", ");" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"Projects\": [\n {\n \"name\": \"Test Automation\",\n \"projectType\": \"CPS-CWS\",\n \"projectSubType\": \"\",\n \"department\": \"\",\n \"description\": \"Automation\",\n \"referenceID\": \"125\",\n \"documents\": [\n {\n \"documentType\": \"PROJECT_PROPOSAL\",\n \"fileStoreId\": \"cfed582b-31b0-42e9-985f-fb9bb4543670\",\n \"documentUid\": \"cfed582b-31b0-42e9-985f-fb9bb4543670\",\n \"status\": \"ACTIVE\",\n \"key\": \"noSubProject_doc_project_proposal\",\n \"additionalDetails\": {\n \"fileName\": \"PROJECT_PROPOSAL\",\n \"otherCategoryName\": \"\"\n },\n \"tenantId\": \"pg.citya\"\n },\n {\n \"documentType\": \"FINALIZED_WORKLIST\",\n \"fileStoreId\": \"f7543894-d3a1-4263-acb2-58b1383eebec\",\n \"documentUid\": \"f7543894-d3a1-4263-acb2-58b1383eebec\",\n \"status\": \"ACTIVE\",\n \"key\": \"noSubProject_doc_finalized_worklist\",\n \"additionalDetails\": {\n \"fileName\": \"FINALIZED_WORKLIST\",\n \"otherCategoryName\": \"\"\n },\n \"tenantId\": \"pg.citya\"\n },\n {\n \"documentType\": \"FEASIBILITY_ANALYSIS\",\n \"fileStoreId\": \"c4fb4f5d-a4c3-472e-8991-e05bc2d671f5\",\n \"documentUid\": \"c4fb4f5d-a4c3-472e-8991-e05bc2d671f5\",\n \"status\": \"ACTIVE\",\n \"key\": \"noSubProject_doc_feasibility_analysis\",\n \"additionalDetails\": {\n \"fileName\": \"FEASIBILITY_ANALYSIS\",\n \"otherCategoryName\": \"\"\n },\n \"tenantId\": \"pg.citya\"\n }\n ],\n \"address\": {\n \"tenantId\": \"pg.citya\",\n \"latitude\": null,\n \"longitude\": null,\n \"city\": \"pg.citya\",\n \"boundary\": \"B1\",\n \"boundaryType\": \"Ward\"\n },\n \"isTaskEnabled\": false,\n \"parent\": \"\",\n \"additionalDetails\": {\n \"estimatedCostInRs\": \"500\",\n \"dateOfProposal\": \"{{dateOfProposal}}\",\n \"locality\": \"SUN01\",\n \"creator\": \"SMS QA testing\",\n \"targetDemography\": \"SM\"\n },\n \"rowVersion\": 0\n }\n ],\n \"apiOperation\": \"CREATE\",\n \"RequestInfo\": {\n \"apiId\": \"Rainmaker\",\n \"authToken\": \"{{auth}}\",\n \"msgId\": \"Create Projects\",\n \"plainAccessRequest\": {}\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/project/v1/_create", "host": [ "{{base_url}}" ], "path": [ "project", "v1", "_create" ] } }, "response": [] }, { "name": "Create Project - Validation Error - Multiple tenant Id", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => ", " pm.expect(pm.response.to.have.status(400)));", "", "pm.test(\"Correct Error with message and code is received\", function () {", " var res = pm.response.json();", " var code = res.Errors[0].code;", " var message = res.Errors[0].message;", " pm.expect(code).to.eql(\"MULTIPLE_TENANTS\");", " pm.expect(message).to.eql(\"All projects must have same tenant Id. Please create new request for different tentant id\");", " }", ");" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"mukta-services\",\n \"ver\": null,\n \"ts\": null,\n \"action\": null,\n \"did\": null,\n \"key\": null,\n \"msgId\": \"Create Projects\",\n \"authToken\": \"{{auth}}\"\n },\n \"Projects\": [\n {\n \"tenantId\": \"pg.citya\",\n \"name\": \"Test Automation 1\",\n \"projectType\": \"CPS-CWS\",\n \"projectSubType\": \"\",\n \"department\": \"\",\n \"description\": \"Automation\",\n \"referenceID\": \"125\",\n \"documents\": [\n {\n \"documentType\": \"PROJECT_PROPOSAL\",\n \"fileStoreId\": \"cfed582b-31b0-42e9-985f-fb9bb4543670\",\n \"documentUid\": \"cfed582b-31b0-42e9-985f-fb9bb4543670\",\n \"status\": \"ACTIVE\",\n \"key\": \"noSubProject_doc_project_proposal\",\n \"additionalDetails\": {\n \"fileName\": \"PROJECT_PROPOSAL\",\n \"otherCategoryName\": \"\"\n },\n \"tenantId\": \"pg.citya\"\n },\n {\n \"documentType\": \"FINALIZED_WORKLIST\",\n \"fileStoreId\": \"f7543894-d3a1-4263-acb2-58b1383eebec\",\n \"documentUid\": \"f7543894-d3a1-4263-acb2-58b1383eebec\",\n \"status\": \"ACTIVE\",\n \"key\": \"noSubProject_doc_finalized_worklist\",\n \"additionalDetails\": {\n \"fileName\": \"FINALIZED_WORKLIST\",\n \"otherCategoryName\": \"\"\n },\n \"tenantId\": \"pg.citya\"\n },\n {\n \"documentType\": \"FEASIBILITY_ANALYSIS\",\n \"fileStoreId\": \"c4fb4f5d-a4c3-472e-8991-e05bc2d671f5\",\n \"documentUid\": \"c4fb4f5d-a4c3-472e-8991-e05bc2d671f5\",\n \"status\": \"ACTIVE\",\n \"key\": \"noSubProject_doc_feasibility_analysis\",\n \"additionalDetails\": {\n \"fileName\": \"FEASIBILITY_ANALYSIS\",\n \"otherCategoryName\": \"\"\n },\n \"tenantId\": \"pg.citya\"\n }\n ],\n \"address\": {\n \"tenantId\": \"pg.citya\",\n \"latitude\": null,\n \"longitude\": null,\n \"city\": \"pg.citya\",\n \"boundary\": \"B1\",\n \"boundaryType\": \"Ward\"\n },\n \"isTaskEnabled\": false,\n \"parent\": \"\",\n \"additionalDetails\": {\n \"estimatedCostInRs\": \"500\",\n \"dateOfProposal\": \"{{dateOfProposal}}\",\n \"locality\": \"SUN01\",\n \"creator\": \"SMS QA testing\",\n \"targetDemography\": \"SM\"\n },\n \"rowVersion\": 0\n },\n {\n \"tenantId\": \"pg.cityb\",\n \"name\": \"Test Automation 2\",\n \"projectType\": \"CPS-CWS\",\n \"projectSubType\": \"\",\n \"department\": \"\",\n \"description\": \"Automation\",\n \"referenceID\": \"125\",\n \"documents\": [\n {\n \"documentType\": \"PROJECT_PROPOSAL\",\n \"fileStoreId\": \"cfed582b-31b0-42e9-985f-fb9bb4543670\",\n \"documentUid\": \"cfed582b-31b0-42e9-985f-fb9bb4543670\",\n \"status\": \"ACTIVE\",\n \"key\": \"noSubProject_doc_project_proposal\",\n \"additionalDetails\": {\n \"fileName\": \"PROJECT_PROPOSAL\",\n \"otherCategoryName\": \"\"\n },\n \"tenantId\": \"pg.citya\"\n },\n {\n \"documentType\": \"FINALIZED_WORKLIST\",\n \"fileStoreId\": \"f7543894-d3a1-4263-acb2-58b1383eebec\",\n \"documentUid\": \"f7543894-d3a1-4263-acb2-58b1383eebec\",\n \"status\": \"ACTIVE\",\n \"key\": \"noSubProject_doc_finalized_worklist\",\n \"additionalDetails\": {\n \"fileName\": \"FINALIZED_WORKLIST\",\n \"otherCategoryName\": \"\"\n },\n \"tenantId\": \"pg.citya\"\n },\n {\n \"documentType\": \"FEASIBILITY_ANALYSIS\",\n \"fileStoreId\": \"c4fb4f5d-a4c3-472e-8991-e05bc2d671f5\",\n \"documentUid\": \"c4fb4f5d-a4c3-472e-8991-e05bc2d671f5\",\n \"status\": \"ACTIVE\",\n \"key\": \"noSubProject_doc_feasibility_analysis\",\n \"additionalDetails\": {\n \"fileName\": \"FEASIBILITY_ANALYSIS\",\n \"otherCategoryName\": \"\"\n },\n \"tenantId\": \"pg.citya\"\n }\n ],\n \"address\": {\n \"tenantId\": \"pg.citya\",\n \"latitude\": null,\n \"longitude\": null,\n \"city\": \"pg.citya\",\n \"boundary\": \"B1\",\n \"boundaryType\": \"Ward\"\n },\n \"isTaskEnabled\": false,\n \"parent\": \"\",\n \"additionalDetails\": {\n \"estimatedCostInRs\": \"500\",\n \"dateOfProposal\": \"{{dateOfProposal}}\",\n \"locality\": \"SUN01\",\n \"creator\": \"SMS QA testing\",\n \"targetDemography\": \"SM\"\n },\n \"rowVersion\": 0\n }\n ],\n \"apiOperation\": \"CREATE\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/project/v1/_create", "host": [ "{{base_url}}" ], "path": [ "project", "v1", "_create" ] } }, "response": [] }, { "name": "Create Project - Validation Error - Boundary without Boundary type", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => ", " pm.expect(pm.response.to.have.status(400)));", "", "pm.test(\"Correct Error with message and code is received\", function () {", " var res = pm.response.json();", " var code = res.Errors[0].code;", " var message = res.Errors[0].message;", " pm.expect(code).to.eql(\"BOUNDARY\");", " pm.expect(message).to.eql(\"Boundary Type is mandatory if boundary is present in Project request body\");", " }", ");" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"Projects\": [\n {\n \"tenantId\": \"pg.citya\",\n \"name\": \"Test Automation\",\n \"projectType\": \"CPS-CWS\",\n \"projectSubType\": \"\",\n \"department\": \"\",\n \"description\": \"Automation\",\n \"referenceID\": \"125\",\n \"documents\": [\n {\n \"documentType\": \"PROJECT_PROPOSAL\",\n \"fileStoreId\": \"cfed582b-31b0-42e9-985f-fb9bb4543670\",\n \"documentUid\": \"cfed582b-31b0-42e9-985f-fb9bb4543670\",\n \"status\": \"ACTIVE\",\n \"key\": \"noSubProject_doc_project_proposal\",\n \"additionalDetails\": {\n \"fileName\": \"PROJECT_PROPOSAL\",\n \"otherCategoryName\": \"\"\n },\n \"tenantId\": \"pg.citya\"\n },\n {\n \"documentType\": \"FINALIZED_WORKLIST\",\n \"fileStoreId\": \"f7543894-d3a1-4263-acb2-58b1383eebec\",\n \"documentUid\": \"f7543894-d3a1-4263-acb2-58b1383eebec\",\n \"status\": \"ACTIVE\",\n \"key\": \"noSubProject_doc_finalized_worklist\",\n \"additionalDetails\": {\n \"fileName\": \"FINALIZED_WORKLIST\",\n \"otherCategoryName\": \"\"\n },\n \"tenantId\": \"pg.citya\"\n },\n {\n \"documentType\": \"FEASIBILITY_ANALYSIS\",\n \"fileStoreId\": \"c4fb4f5d-a4c3-472e-8991-e05bc2d671f5\",\n \"documentUid\": \"c4fb4f5d-a4c3-472e-8991-e05bc2d671f5\",\n \"status\": \"ACTIVE\",\n \"key\": \"noSubProject_doc_feasibility_analysis\",\n \"additionalDetails\": {\n \"fileName\": \"FEASIBILITY_ANALYSIS\",\n \"otherCategoryName\": \"\"\n },\n \"tenantId\": \"pg.citya\"\n }\n ],\n \"address\": {\n \"tenantId\": \"pg.citya\",\n \"latitude\": null,\n \"longitude\": null,\n \"city\": \"pg.citya\",\n \"boundary\": \"B1\",\n \"boundaryType\": \"\"\n },\n \"isTaskEnabled\": false,\n \"parent\": \"\",\n \"additionalDetails\": {\n \"estimatedCostInRs\": \"500\",\n \"dateOfProposal\": \"{{dateOfProposal}}\",\n \"locality\": \"SUN01\",\n \"creator\": \"SMS QA testing\",\n \"targetDemography\": \"SM\"\n },\n \"rowVersion\": 0\n }\n ],\n \"apiOperation\": \"CREATE\",\n \"RequestInfo\": {\n \"apiId\": \"Rainmaker\",\n \"authToken\": \"{{auth}}\",\n \"msgId\": \"Create Projects\",\n \"plainAccessRequest\": {}\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/project/v1/_create", "host": [ "{{base_url}}" ], "path": [ "project", "v1", "_create" ] } }, "response": [] }, { "name": "Search Project - Success - Project Id based", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => ", " pm.expect(pm.response.to.have.status(200)));", "", "pm.test(\"Register Search response is received\", function () {", " var res = pm.response.json();", " var id = res.Project[0].id;", " pm.expect(id).to.eql(pm.collectionVariables.get(\"projectId\"));", " }", ");" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"mukta-services\",\n \"ver\": \"null\",\n \"ts\": 0,\n \"action\": \"null\",\n \"did\": \"null\",\n \"key\": \"null\",\n \"msgId\": \"null\",\n \"requesterId\": \"null\",\n \"authToken\": \"{{auth}}\"\n },\n \"Projects\": [\n {\n \"id\": \"{{projectId}}\",\n \"tenantId\": \"{{tenantId}}\",\n \"projectType\": \"\",\n \"name\": \"\",\n \"projectNumber\": \"\",\n \"projectSubType\": \"\",\n \"startDate\": 0,\n \"endDate\": 0\n }\n ],\n \"apiOperation\": \"SEARCH\"\n}\n", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/project/v1/_search?tenantId={{tenantId}}&limit=5&offset=0", "host": [ "{{base_url}}" ], "path": [ "project", "v1", "_search" ], "query": [ { "key": "lastChangedSince", "value": "1673494068231", "disabled": true }, { "key": "includeDeleted", "value": "true", "disabled": true }, { "key": "includeAncestors", "value": "false", "disabled": true }, { "key": "includeDescendants", "value": "false", "disabled": true }, { "key": "createdFrom", "value": "", "disabled": true }, { "key": "createdTo", "value": "", "disabled": true }, { "key": "tenantId", "value": "{{tenantId}}" }, { "key": "limit", "value": "5" }, { "key": "offset", "value": "0" } ] } }, "response": [] }, { "name": "Search Project - Success - Project Id and Project number based", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => ", " pm.expect(pm.response.to.have.status(200)));", "", "pm.test(\"Register Search response is received\", function () {", " var res = pm.response.json();", " var id = res.Project[0].id;", " pm.expect(id).to.eql(pm.collectionVariables.get(\"projectId\"));", " }", ");" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"mukta-services\",\n \"ver\": \"null\",\n \"ts\": 0,\n \"action\": \"null\",\n \"did\": \"null\",\n \"key\": \"null\",\n \"msgId\": \"null\",\n \"requesterId\": \"null\",\n \"authToken\": \"{{auth}}\"\n },\n \"Projects\": [\n {\n \"id\": \"{{projectId}}\",\n \"tenantId\": \"{{tenantId}}\",\n \"projectType\": \"\",\n \"name\": \"\",\n \"projectNumber\": \"{{projectNumber}}\",\n \"projectSubType\": \"\",\n \"startDate\": 0,\n \"endDate\": 0\n }\n ],\n \"apiOperation\": \"SEARCH\"\n}\n", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/project/v1/_search?limit=5&offset=0&tenantId={{tenantId}}", "host": [ "{{base_url}}" ], "path": [ "project", "v1", "_search" ], "query": [ { "key": "limit", "value": "5" }, { "key": "offset", "value": "0" }, { "key": "tenantId", "value": "{{tenantId}}" }, { "key": "lastChangedSince", "value": "1673494068231", "disabled": true }, { "key": "includeDeleted", "value": "true", "disabled": true }, { "key": "includeAncestors", "value": "false", "disabled": true }, { "key": "includeDescendants", "value": "false", "disabled": true }, { "key": "createdFrom", "value": null, "disabled": true }, { "key": "createdTo", "value": null, "disabled": true } ] } }, "response": [] }, { "name": "Search Project - Success - Total Project count in response", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => ", " pm.expect(pm.response.to.have.status(200)));", "", "pm.test(\"Register Search total project count is received\", function () {", " var res = pm.response.json();", " var count = res.TotalCount;", " pm.expect(count).to.eql(1);", " }", ");" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"mukta-services\",\n \"ver\": \"null\",\n \"ts\": 0,\n \"action\": \"null\",\n \"did\": \"null\",\n \"key\": \"null\",\n \"msgId\": \"null\",\n \"requesterId\": \"null\",\n \"authToken\": \"{{auth}}\"\n },\n \"Projects\": [\n {\n \"id\": \"{{projectId}}\",\n \"tenantId\": \"{{tenantId}}\",\n \"projectType\": \"\",\n \"name\": \"\",\n \"projectNumber\": \"{{projectNumber}}\",\n \"projectSubType\": \"\",\n \"startDate\": 0,\n \"endDate\": 0\n }\n ],\n \"apiOperation\": \"SEARCH\"\n}\n", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/project/v1/_search?limit=10&offset=0&tenantId={{tenantId}}", "host": [ "{{base_url}}" ], "path": [ "project", "v1", "_search" ], "query": [ { "key": "limit", "value": "10" }, { "key": "offset", "value": "0" }, { "key": "tenantId", "value": "{{tenantId}}" }, { "key": "lastChangedSince", "value": "1673494068231", "disabled": true }, { "key": "includeDeleted", "value": "true", "disabled": true }, { "key": "includeAncestors", "value": "false", "disabled": true }, { "key": "includeDescendants", "value": "false", "disabled": true }, { "key": "createdFrom", "value": "", "disabled": true }, { "key": "createdTo", "value": "", "disabled": true } ] } }, "response": [] }, { "name": "Search Project - Success - SearchBy Project Type", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => ", " pm.expect(pm.response.to.have.status(200)));", "", "pm.test(\"Project Type Search response is received\", function () {", " var res = pm.response.json();", " var id = res.Project[0].projectType;", " pm.expect(id).to.eql(pm.collectionVariables.get(\"projectType\"));", " }", ");", "", "// pm.test(\"Project ancestors is not null\", function () {", "// var res = pm.response.json();", "// var ancestors = res.Project[0].ancestors;", "// pm.expect(ancestors).to.not.be.undefined;", "// pm.expect(ancestors).to.not.be.null;", "// }", "// );", "", "// pm.test(\"Project ancestors is enriched\", function () {", "// var res = pm.response.json();", "// var ancestorId = res.Project[0].ancestors[0].id;", "// var parentProjectId = res.Projects[0].parent;", "// pm.expect(ancestorId).to.eql(parentProjectId);", "// }", "// );", "", "// pm.test(\"Project ancestors documents is correctly enriched\", function () {", "// var res = pm.response.json();", "// var ancestorProjectDocuemntType = res.Project[0].ancestors[0].documents[0].documentType;", "// pm.expect(ancestorProjectDocuemntType).to.eql(\"Document1\");", "// }", "// );", "", "// pm.test(\"Project ancestors targets is correctly enriched\", function () {", "// var res = pm.response.json();", "// var ancestorProjectTotalNo = res.Project[0].ancestors[0].targets[0].totalNo;", "// pm.expect(ancestorProjectTotalNo).to.eql(0);", "// }", "// );" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"mukta-services\",\n \"ver\": \"null\",\n \"ts\": 0,\n \"action\": \"null\",\n \"did\": \"null\",\n \"key\": \"null\",\n \"msgId\": \"null\",\n \"requesterId\": \"null\",\n \"authToken\": \"{{auth}}\"\n },\n \"Projects\": [\n {\n \"id\": \"\",\n \"tenantId\": \"{{tenantId}}\",\n \"projectType\": \"{{projectType}}\",\n \"name\": \"\",\n \"projectNumber\": \"\",\n \"projectSubType\": \"\",\n \"startDate\": 0,\n \"endDate\": 0\n }\n ],\n \"apiOperation\": \"SEARCH\"\n}\n", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/project/v1/_search?offset=0&tenantId={{tenantId}}&limit=10", "host": [ "{{base_url}}" ], "path": [ "project", "v1", "_search" ], "query": [ { "key": "offset", "value": "0" }, { "key": "tenantId", "value": "{{tenantId}}" }, { "key": "lastChangedSince", "value": "1673494068231", "disabled": true }, { "key": "includeDeleted", "value": "true", "disabled": true }, { "key": "includeDescendants", "value": "false", "disabled": true }, { "key": "createdFrom", "value": null, "disabled": true }, { "key": "createdTo", "value": null, "disabled": true }, { "key": "limit", "value": "10" } ] } }, "response": [] }, { "name": "Search Project - Success - Between createdFrom and createdTo", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => ", " pm.expect(pm.response.to.have.status(200)));", "", "// pm.test(\"Search response is received for parameters createdFrom and createdTo\", function () {", "// var res = pm.response.json();", "// pm.expect(res.Project.length).to.be.above(0);", "// }", "// );" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"mukta-services\",\n \"ver\": \"null\",\n \"ts\": 0,\n \"action\": \"null\",\n \"did\": \"null\",\n \"key\": \"null\",\n \"msgId\": \"null\",\n \"requesterId\": \"null\",\n \"authToken\": \"{{auth}}\"\n },\n \"Projects\": [\n {\n \"id\": \"\",\n \"tenantId\": \"{{tenantId}}\",\n \"projectType\": \"{{projectType}}\",\n \"name\": \"\",\n \"projectNumber\": \"\",\n \"projectSubType\": \"\",\n \"startDate\": 0,\n \"endDate\": 0\n }\n ],\n \"apiOperation\": \"SEARCH\"\n}\n", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/project/v1/_search?limit=10&offset=0&tenantId={{tenantId}}&createdFrom={{createdTime}}&createdTo={{lastModifiedTime}}", "host": [ "{{base_url}}" ], "path": [ "project", "v1", "_search" ], "query": [ { "key": "limit", "value": "10" }, { "key": "offset", "value": "0" }, { "key": "tenantId", "value": "{{tenantId}}" }, { "key": "lastChangedSince", "value": "", "disabled": true }, { "key": "includeDeleted", "value": "true", "disabled": true }, { "key": "includeAncestors", "value": "false", "disabled": true }, { "key": "includeDescendants", "value": "false", "disabled": true }, { "key": "createdFrom", "value": "{{createdTime}}" }, { "key": "createdTo", "value": "{{lastModifiedTime}}" } ] } }, "response": [] }, { "name": "Search Project - Validation Error - No Search Parameters", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => ", " pm.expect(pm.response.to.have.status(400)));", "", "pm.test(\"Correct Error with message and code is received\", function () {", " var res = pm.response.json();", " var code = res.Errors[0].code;", " var message = res.Errors[0].message;", " pm.expect(code).to.eql(\"PROJECT_SEARCH_FIELDS\");", " pm.expect(message).to.eql(\"Any one project search field is required\");", " }", ");" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"mukta-services\",\n \"ver\": \"null\",\n \"ts\": 0,\n \"action\": \"null\",\n \"did\": \"null\",\n \"key\": \"null\",\n \"msgId\": \"null\",\n \"requesterId\": \"null\",\n \"authToken\": \"{{auth}}\"\n },\n \"Projects\": [\n {\n \"id\": \"\",\n \"tenantId\": \"{{tenantId}}\",\n \"projectType\": \"\",\n \"name\": \"\",\n \"projectNumber\": \"\",\n \"projectSubType\": \"\",\n \"startDate\": 0,\n \"endDate\": 0\n }\n ],\n \"apiOperation\": \"SEARCH\"\n}\n", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/project/v1/_search?limit=5&offset=0&tenantId={{tenantId}}", "host": [ "{{base_url}}" ], "path": [ "project", "v1", "_search" ], "query": [ { "key": "limit", "value": "5" }, { "key": "offset", "value": "0" }, { "key": "tenantId", "value": "{{tenantId}}" } ] } }, "response": [] }, { "name": "Search Project - Validation Error - createdFrom greater than createdTo", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => ", " pm.expect(pm.response.to.have.status(400)));", "", "pm.test(\"Correct Error with message and code is received\", function () {", " var res = pm.response.json();", " var code = res.Errors[0].code;", " var message = res.Errors[0].message;", " pm.expect(code).to.eql(\"INVALID_DATE\");", " pm.expect(message).to.eql(\"Created From should be less than Created To\");", " }", ");" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"mukta-services\",\n \"ver\": \"null\",\n \"ts\": 0,\n \"action\": \"null\",\n \"did\": \"null\",\n \"key\": \"null\",\n \"msgId\": \"null\",\n \"requesterId\": \"null\",\n \"authToken\": \"{{auth}}\"\n },\n \"Projects\": [\n {\n \"id\": \"\",\n \"tenantId\": \"{{tenantId}}\",\n \"projectType\": \"\",\n \"name\": \"\",\n \"projectNumber\": \"\",\n \"projectSubType\": \"\",\n \"startDate\": 0,\n \"endDate\": 0\n }\n ],\n \"apiOperation\": \"SEARCH\"\n}\n", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/project/v1/_search?limit=5&offset=0&tenantId={{tenantId}}&createdFrom=5000&createdTo=2000", "host": [ "{{base_url}}" ], "path": [ "project", "v1", "_search" ], "query": [ { "key": "limit", "value": "5" }, { "key": "offset", "value": "0" }, { "key": "tenantId", "value": "{{tenantId}}" }, { "key": "createdFrom", "value": "5000" }, { "key": "createdTo", "value": "2000" } ] } }, "response": [] }, { "name": "Search Project - Validation Error - Start date greater than end date", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => ", " pm.expect(pm.response.to.have.status(400)));", "", "pm.test(\"Correct Error with message and code is received\", function () {", " var res = pm.response.json();", " var code = res.Errors[0].code;", " var message = res.Errors[0].message;", " pm.expect(code).to.eql(\"INVALID_DATE\");", " pm.expect(message).to.eql(\"Start date should be less than end date\");", " }", ");" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"mukta-services\",\n \"ver\": \"null\",\n \"ts\": 0,\n \"action\": \"null\",\n \"did\": \"null\",\n \"key\": \"null\",\n \"msgId\": \"null\",\n \"requesterId\": \"null\",\n \"authToken\": \"{{auth}}\"\n },\n \"Projects\": [\n {\n \"id\": \"{{projectId}}\",\n \"tenantId\": \"{{tenantId}}\",\n \"projectType\": \"\",\n \"name\": \"\",\n \"projectNumber\": \"\",\n \"projectSubType\": \"\",\n \"startDate\": 100000,\n \"endDate\": 5000\n }\n ],\n \"apiOperation\": \"SEARCH\"\n}\n", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/project/v1/_search?limit=5&offset=0&tenantId={{tenantId}}", "host": [ "{{base_url}}" ], "path": [ "project", "v1", "_search" ], "query": [ { "key": "limit", "value": "5" }, { "key": "offset", "value": "0" }, { "key": "tenantId", "value": "{{tenantId}}" } ] } }, "response": [] }, { "name": "Search Project - Validation Error - End date without Start date", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => ", " pm.expect(pm.response.to.have.status(400)));", "", "pm.test(\"Correct Error with message and code is received\", function () {", " var res = pm.response.json();", " var code = res.Errors[0].code;", " var message = res.Errors[0].message;", " pm.expect(code).to.eql(\"INVALID_DATE\");", " pm.expect(message).to.eql(\"Start date is required if end date is passed\");", " }", ");" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"mukta-services\",\n \"ver\": \"null\",\n \"ts\": 0,\n \"action\": \"null\",\n \"did\": \"null\",\n \"key\": \"null\",\n \"msgId\": \"null\",\n \"requesterId\": \"null\",\n \"authToken\": \"{{auth}}\"\n },\n \"Projects\": [\n {\n \"id\": \"{{projectId}}\",\n \"tenantId\": \"{{tenantId}}\",\n \"projectType\": \"\",\n \"name\": \"\",\n \"projectNumber\": \"\",\n \"projectSubType\": \"\", \n \"endDate\": 10\n }\n ],\n \"apiOperation\": \"SEARCH\"\n}\n", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/project/v1/_search?limit=5&offset=0&tenantId={{tenantId}}", "host": [ "{{base_url}}" ], "path": [ "project", "v1", "_search" ], "query": [ { "key": "limit", "value": "5" }, { "key": "offset", "value": "0" }, { "key": "tenantId", "value": "{{tenantId}}" } ] } }, "response": [] }, { "name": "Search Project - Validation Error - createdTo without createdFrom param", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => ", " pm.expect(pm.response.to.have.status(400)));", "", "pm.test(\"Correct Error with message and code is received\", function () {", " var res = pm.response.json();", " var code = res.Errors[0].code;", " var message = res.Errors[0].message;", " pm.expect(code).to.eql(\"INVALID_DATE_PARAM\");", " pm.expect(message).to.eql(\"Created From date is required if Created To date is given\");", " }", ");" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"mukta-services\",\n \"ver\": \"null\",\n \"ts\": 0,\n \"action\": \"null\",\n \"did\": \"null\",\n \"key\": \"null\",\n \"msgId\": \"null\",\n \"requesterId\": \"null\",\n \"authToken\": \"{{auth}}\"\n },\n \"Projects\": [\n {\n \"id\": \"{{projectId}}\",\n \"tenantId\": \"{{tenantId}}\",\n \"projectType\": \"\",\n \"name\": \"\",\n \"projectNumber\": \"\",\n \"projectSubType\": \"\",\n \"startDate\":0,\n \"endDate\": 0\n }\n ],\n \"apiOperation\": \"SEARCH\"\n}\n", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/project/v1/_search?limit=10&offset=0&tenantId={{tenantId}}&createdTo=1677828824699", "host": [ "{{base_url}}" ], "path": [ "project", "v1", "_search" ], "query": [ { "key": "limit", "value": "10" }, { "key": "offset", "value": "0" }, { "key": "tenantId", "value": "{{tenantId}}" }, { "key": "createdFrom", "value": "1677809944000", "disabled": true }, { "key": "createdTo", "value": "1677828824699" } ] } }, "response": [] }, { "name": "Search Project - Validation Error - Tenant Id mismatch in URL param and request body", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => ", " pm.expect(pm.response.to.have.status(403)));", "", "pm.test(\"Correct Error with message and code is received\", function () {", " var res = pm.response.json();", " var code = res.Errors[0].code;", " var message = res.Errors[0].message;", " pm.expect(code).to.eql(\"CustomException\");", " pm.expect(message).to.eql(\"Not authorized to access this resource\");", " }", ");" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"mukta-services\",\n \"ver\": \"null\",\n \"ts\": 0,\n \"action\": \"null\",\n \"did\": \"null\",\n \"key\": \"null\",\n \"msgId\": \"null\",\n \"requesterId\": \"null\",\n \"authToken\": \"{{auth}}\"\n },\n \"Projects\": [\n {\n \"id\": \"{{projectId}}\",\n \"tenantId\": \"pg.cityb\",\n \"projectType\": \"\",\n \"name\": \"\",\n \"projectNumber\": \"\",\n \"projectSubType\": \"\",\n \"startDate\": 0,\n \"endDate\": 0\n }\n ],\n \"apiOperation\": \"SEARCH\"\n}\n", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/project/v1/_search?limit=5&offset=0&tenantId={{tenantId}}", "host": [ "{{base_url}}" ], "path": [ "project", "v1", "_search" ], "query": [ { "key": "limit", "value": "5" }, { "key": "offset", "value": "0" }, { "key": "tenantId", "value": "{{tenantId}}" } ] } }, "response": [] }, { "name": "Update Project - Success - Single Project", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"RequestInfo is required\", function () {", " var req = JSON.parse(pm.request.body.raw);", " pm.expect(req.RequestInfo).to.not.be.null;", " pm.expect(req.RequestInfo).to.not.be.undefined;", "}", ");", "", "pm.test(\"Projects are required\", function () {", " var req = JSON.parse(pm.request.body.raw);", " pm.expect(req.Projects).to.not.be.undefined;", " pm.expect(req.Projects).to.not.be.null;", "}", ");", "", "pm.test(\"TenantId is required\", function () {", " var req = JSON.parse(pm.request.body.raw);", " var project = req.Projects[0];", " pm.expect(project.tenantId).to.be.not.null;", " pm.expect(project.tenantId).to.be.not.undefined;", " pm.expect(project.tenantId).not.to.eql(\"\");", "}", ");", "", "pm.test(\"Response status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "// Make an HTTP GET request to the Random Word API", "pm.sendRequest({", " url: 'https://random-word-api.herokuapp.com/word',", " method: 'GET',", "}, function (err, response) {", " if (err) {", " console.error(err);", " return;", " } ", " try {", " const responseArray = JSON.parse(response.text());", " ", " if (Array.isArray(responseArray) && responseArray.length > 0) {", " // Extract the first word from the array", " const randomWord = responseArray[0];", " ", " // Store the random word in an environment variable", " pm.environment.set('randomWord', randomWord);", " ", " // Log the random word into Project Name and Project discription", " console.log('Random Word:', randomWord);", " } else {", " console.error('Response does not contain a valid word array.');", " }", " } catch (error) {", " console.error('Error parsing response JSON:', error);", " }", "});", "" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "exec": [ "// To generate a random UUID (Universally Unique Identifier) and pass it in an API request for address ID\r", "const { v4: uuidv4 } = require('uuid');\r", "pm.environment.set('randomUUID', uuidv4());" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"Projects\": [\n {\n \"tenantId\": \"{{tenantId}}\",\n \"id\": \"{{projectId}}\",\n \"projectNumber\": \"{{projectNumber}}\",\n \"name\": \"{{randomWord}}\",\n \"projectType\": \"{{projectType}}\",\n \"projectSubType\": \"\",\n \"department\": \"\",\n \"description\": \"{{randomWord}}\",\n \"referenceID\": \"{{dateOfProposal}}\",\n \"documents\": [\n {\n \"documentType\": \"INACTIVE\",\n \"fileStoreId\": \"{{fileStoreId}}\",\n \"documentUid\": \"{{fileStoreId}}\",\n \"status\": \"INACTIVE\",\n \"id\": \"{{documents}}\",\n \"key\": \"project_proposal\",\n \"additionalDetails\": {\n \"fileName\": \"PROJECT_PROPOSAL\",\n \"otherCategoryName\": \"\"\n },\n \"tenantId\": \"pg.citya\"\n }\n ],\n \"isTaskEnabled\": false,\n \"parent\": \"\",\n \"additionalDetails\": {\n \"estimatedCostInRs\": \"500\",\n \"dateOfProposal\": \"{{dateOfProposal}}\",\n \"locality\": \"SUN01\",\n \"targetDemography\": \"SM\"\n },\n \"rowVersion\": 0\n }\n ],\n \"apiOperation\": \"CREATE\",\n \"RequestInfo\": {\n \"apiId\": \"Rainmaker\",\n \"authToken\": \"{{auth}}\",\n \"msgId\": \"1694001525326|en_IN\",\n \"plainAccessRequest\": {}\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/project/v1/_update", "host": [ "{{base_url}}" ], "path": [ "project", "v1", "_update" ] } }, "response": [] }, { "name": "Update Project - Validation Error - ProjectId not provided", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => ", " pm.expect(pm.response.to.have.status(400)));", "", "pm.test(\"Correct Error with message and code is received\", function () {", " var res = pm.response.json();", " var code = res.Errors[0].code;", " var message = res.Errors[0].message;", " pm.expect(code).to.eql(\"UPDATE_PROJECT\");", " pm.expect(message).to.eql(\"Project Id is mandatory\");", " }", ");" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"Projects\": [\n {\n \"tenantId\": \"{{tenantId}}\",\n \"id\": \"\",\n \"projectNumber\": \"{{projectNumber}}\",\n \"name\": \"Test Automation\",\n \"projectType\": \"{{projectType}}\",\n \"projectSubType\": \"\",\n \"department\": \"\",\n \"description\": \"API Automation\",\n \"referenceID\": \"{{dateOfProposal}}\",\n \"documents\": [\n {\n \"documentType\": \"INACTIVE\",\n \"fileStoreId\": \"{{fileStoreId}}\",\n \"documentUid\": \"{{fileStoreId}}\",\n \"status\": \"INACTIVE\",\n \"id\": \"{{documents}}\",\n \"key\": \"project_proposal\",\n \"additionalDetails\": {\n \"fileName\": \"PROJECT_PROPOSAL\",\n \"otherCategoryName\": \"\"\n },\n \"tenantId\": \"pg.citya\"\n }\n ],\n\n \"isTaskEnabled\": false,\n \"parent\": \"\",\n \"additionalDetails\": {\n \"estimatedCostInRs\": \"500\",\n \"dateOfProposal\": \"{{dateOfProposal}}\",\n \"locality\": \"SUN01\",\n \"targetDemography\": \"SM\"\n },\n \"rowVersion\": 0\n }\n ],\n \"apiOperation\": \"CREATE\",\n \"RequestInfo\": {\n \"apiId\": \"Rainmaker\",\n \"authToken\": \"{{auth}}\",\n \"msgId\": \"1694001525326|en_IN\",\n \"plainAccessRequest\": {}\n }\n}\n}\"", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/project/v1/_update", "host": [ "{{base_url}}" ], "path": [ "project", "v1", "_update" ] } }, "response": [] }, { "name": "Update Project - Validation Error - TenantId not provided", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => {", " if (pm.environment.get(\"base_url\").includes(\"localhost\")) { ", " pm.expect(pm.response.to.have.status(400));", " }", "});", " ", "", "pm.test(\"Correct Error with message and code is received\", function () {", " var res = pm.response.json();", " var code = res.Errors[0].code;", " var message = res.Errors[0].message;", " if (pm.environment.get(\"base_url\").includes(\"localhost\")) { ", " pm.expect(code).to.eql(\"TENANT_ID\");", " pm.expect(message).to.eql(\"Tenant ID is mandatory\");", " } ", " }", ");" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"Projects\": [\n {\n \"id\": \"{{projectId}}\",\n \"projectNumber\": \"{{projectNumber}}\",\n \"name\": \"Test Automation\",\n \"projectType\": \"{{projectType}}\",\n \"projectSubType\": \"\",\n \"department\": \"\",\n \"description\": \"API Automation\",\n \"referenceID\": \"{{dateOfProposal}}\",\n \"documents\": [\n {\n \"documentType\": \"INACTIVE\",\n \"fileStoreId\": \"{{fileStoreId}}\",\n \"documentUid\": \"{{fileStoreId}}\",\n \"status\": \"INACTIVE\",\n \"id\": \"{{documents}}\",\n \"key\": \"project_proposal\",\n \"additionalDetails\": {\n \"fileName\": \"PROJECT_PROPOSAL\",\n \"otherCategoryName\": \"\"\n },\n \"tenantId\": \"pg.citya\"\n }\n ],\n\n \"isTaskEnabled\": false,\n \"parent\": \"\",\n \"additionalDetails\": {\n \"estimatedCostInRs\": \"500\",\n \"dateOfProposal\": \"{{dateOfProposal}}\",\n \"locality\": \"SUN01\",\n \"targetDemography\": \"SM\"\n },\n \"rowVersion\": 0\n }\n ],\n \"apiOperation\": \"CREATE\",\n \"RequestInfo\": {\n \"apiId\": \"Rainmaker\",\n \"authToken\": \"{{auth}}\",\n \"msgId\": \"1694001525326|en_IN\",\n \"plainAccessRequest\": {}\n }\n}\n}\"", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/project/v1/_update", "host": [ "{{base_url}}" ], "path": [ "project", "v1", "_update" ] } }, "response": [] }, { "name": "Update Project - Validation Error - Multiple TenantId provided", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => ", " pm.expect(pm.response.to.have.status(400)));", "", "pm.test(\"Correct Error with message and code is received\", function () {", " var res = pm.response.json();", " var code = res.Errors[0].code;", " var message = res.Errors[0].message;", " pm.expect(code).to.eql(\"MULTIPLE_TENANTS\");", " pm.expect(message).to.eql(\"All projects must have same tenant Id. Please create new request for different tentant id\");", " }", ");" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"Projects\": [\n {\n \"tenantId\": \"{{tenantId}}\",\n \"id\": \"\",\n \"projectNumber\": \"{{projectNumber}}\",\n \"name\": \"Test Automation\",\n \"projectType\": \"{{projectType}}\",\n \"projectSubType\": \"\",\n \"department\": \"\",\n \"description\": \"API Automation\",\n \"referenceID\": \"{{dateOfProposal}}\",\n \"documents\": [\n {\n \"documentType\": \"INACTIVE\",\n \"fileStoreId\": \"{{fileStoreId}}\",\n \"documentUid\": \"{{fileStoreId}}\",\n \"status\": \"INACTIVE\",\n \"id\": \"{{documents}}\",\n \"key\": \"project_proposal\",\n \"additionalDetails\": {\n \"fileName\": \"PROJECT_PROPOSAL\",\n \"otherCategoryName\": \"\"\n },\n \"tenantId\": \"pg.citya\"\n }\n ],\n\n \"isTaskEnabled\": false,\n \"parent\": \"\",\n \"additionalDetails\": {\n \"estimatedCostInRs\": \"500\",\n \"dateOfProposal\": \"{{dateOfProposal}}\",\n \"locality\": \"SUN01\",\n \"targetDemography\": \"SM\"\n },\n \"rowVersion\": 0\n },\n {\n \"tenantId\": \"pg.cityb\",\n \"id\": \"\",\n \"projectNumber\": \"{{projectNumber}}\",\n \"name\": \"Test Automation\",\n \"projectType\": \"{{projectType}}\",\n \"projectSubType\": \"\",\n \"department\": \"\",\n \"description\": \"API Automation\",\n \"referenceID\": \"{{dateOfProposal}}\",\n \"documents\": [\n {\n \"documentType\": \"INACTIVE\",\n \"fileStoreId\": \"{{fileStoreId}}\",\n \"documentUid\": \"{{fileStoreId}}\",\n \"status\": \"INACTIVE\",\n \"id\": \"{{documents}}\",\n \"key\": \"project_proposal\",\n \"additionalDetails\": {\n \"fileName\": \"PROJECT_PROPOSAL\",\n \"otherCategoryName\": \"\"\n },\n \"tenantId\": \"pg.citya\"\n }\n ],\n\n \"isTaskEnabled\": false,\n \"parent\": \"\",\n \"additionalDetails\": {\n \"estimatedCostInRs\": \"500\",\n \"dateOfProposal\": \"{{dateOfProposal}}\",\n \"locality\": \"SUN01\",\n \"targetDemography\": \"SM\"\n },\n \"rowVersion\": 0\n }\n ],\n \"apiOperation\": \"CREATE\",\n \"RequestInfo\": {\n \"apiId\": \"Rainmaker\",\n \"authToken\": \"{{auth}}\",\n \"msgId\": \"1694001525326|en_IN\",\n \"plainAccessRequest\": {}\n }\n}\n}\"", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/project/v1/_update", "host": [ "{{base_url}}" ], "path": [ "project", "v1", "_update" ] } }, "response": [] } ], "event": [ { "listen": "prerequest", "script": { "type": "text/javascript", "exec": [ "" ] } }, { "listen": "test", "script": { "type": "text/javascript", "exec": [ "" ] } } ] }, { "name": "Estimate Service Test Script", "item": [ { "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", "var dataArray = responseData.estimates[0]; // Replace \"dataArray\" with the actual key of the array in your response body\r", "\r", " // Store the array in an environment or global variable\r", "pm.collectionVariables.set(\"estmateAll\", JSON.stringify(dataArray));\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", "\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", "packages": {} } }, { "listen": "prerequest", "script": { "exec": [ "var currentDateInMillis = new Date().getTime();\r", "\r", "// Calculate the date 30 days from now\r", "var thirtyDaysInMillis = 30 * 24 * 60 * 60 * 1000; // 30 days in milliseconds\r", "var futureDateInMillis = currentDateInMillis + thirtyDaysInMillis;\r", "\r", "// Log the future date in milliseconds\r", "console.log(\"Future Date in Milliseconds (30 days from now): \" + futureDateInMillis);\r", "\r", "// Set the variable for later use\r", "pm.environment.set(\"endDate\", futureDateInMillis);" ], "type": "text/javascript", "packages": {} } } ], "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_000010\",\r\n // \"category\": \"SOR\",\r\n // \"name\": \"UNSKILLED MALE MULIA\",\r\n // \"description\": \"MA.1\",\r\n // \"unitRate\": 200,\r\n // \"noOfunit\": 1,\r\n // \"uom\": \"L\",\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\": 200,\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 // \"sorId\": \"SOR_000010\",\r\n \"category\": \"NON-SOR\",\r\n \"name\": \"Fixing tiles in floors, treads or steps and landing over 25mm bed of C:M (1:1) jointed with neat cement slurry mixed with pigment to match the shade of the tiles including rubbing and polishing complete excluding the cost of pre-cast tile\",\r\n \"description\": \"LHS\",\r\n \"unitRate\": 5026.14,\r\n \"noOfunit\": 1,\r\n \"uom\": \"KG\",\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\": 5026.14,\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\": \"{{endDate}}\",\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\": 7000.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(\"At least one SOR or Non-SOR should be present\");\r", " }\r", ");" ], "type": "text/javascript", "packages": {} } }, { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {} } } ], "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", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"estimate\": {{estmateAll}},\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", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"estimate\": {{estmateAll}},\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\":{{estmateAll}},\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\": {{estmateAll}},\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\": {{estmateAll}},\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", "var dataArray = responseData.estimates[0]; // Replace \"dataArray\" with the actual key of the array in your response body\r", "\r", " // Store the array in an environment or global variable\r", "pm.collectionVariables.set(\"Re-estimateAll\", JSON.stringify(dataArray));\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", "packages": {} } }, { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {} } } ], "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\": \"NON-SOR\",\r\n \"name\": \"Fixing tiles in floors, treads or steps and landing over 25mm bed of C:M (1:1) jointed with neat cement slurry mixed with pigment to match the shade of the tiles including rubbing and polishing complete excluding the cost of pre-cast tile\",\r\n \"description\": \"LHS\",\r\n \"unitRate\": 5026.14,\r\n \"noOfunit\": 1,\r\n \"uom\": \"KG\",\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\": \"5026.14\",\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", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"estimate\": {{Re-estimateAll}},\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", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"estimate\": {{Re-estimateAll}},\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", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"estimate\":{{Re-estimateAll}},\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", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"estimate\":{{Re-estimateAll}},\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", "packages": {} } }, { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"estimate\": {{Re-estimateAll}},\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_PREVIOUS_LINE_ITEM_ID\");\r", " pm.expect(message).to.eql(\"Previous Line Id is invalid for revision estimate\");\r", " }\r", ");" ], "type": "text/javascript", "packages": {} } }, { "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", "packages": {} } } ], "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": "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": [] } ] }, { "name": "Contract Service Test Script", "item": [ { "name": "Create Contrat -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 contract = req.contract;\r", " pm.expect(contract.tenantId).to.not.be.null;\r", " pm.expect(contract.tenantId).to.not.be.undefined;\r", " pm.expect(contract.tenantId).to.not.eql(\"\"); \r", "});\r", "\r", "pm.test(\"print and save ContractId in environment\", function () {\r", " var res = pm.response.json();\r", " var WOId = res.contracts[0].id;\r", " console.log('id:', WOId);\r", " pm.environment.set('WOId',WOId);\r", "}\r", ");\r", "\r", "pm.test(\"print and save ContractNumber in environment\", function () {\r", " var res = pm.response.json();\r", " var WONo = res.contracts[0].contractNumber;\r", " console.log('contractNumber:', WONo);\r", " pm.environment.set('WONo',WONo);\r", "}\r", ");\r", "\r", "let responseData = pm.response.json();\r", "\r", "//Storing the response data into collection variable to reuse\r", "pm.test(\"Response is successful\", () =>\r", " pm.expect(pm.response.to.have.status(200)));\r", "\r", "pm.collectionVariables.set(\"lineitem1\", responseData.contracts[0].lineItems[0].id);\r", "\r", "pm.collectionVariables.set(\"lineamount1\", responseData.contracts[0].lineItems[0].amountBreakups[0].id);\r", "\r", "pm.collectionVariables.set(\"lineitem2\", responseData.contracts[0].lineItems[1].id);\r", "\r", "pm.collectionVariables.set(\"lineamount2\", responseData.contracts[0].lineItems[1].amountBreakups[0].id);\r", "\r", "pm.collectionVariables.set(\"ward\", responseData.contracts[0].additionalDetails.ward);\r", "\r", "pm.collectionVariables.set(\"locality\", responseData.contracts[0].additionalDetails.locality);\r", "\r", "pm.collectionVariables.set(\"ContractId\", responseData.contracts[0].id);\r", "\r", "pm.collectionVariables.set(\"ContractNumber\", responseData.contracts[0].contractNumber);\r", "\r", "pm.collectionVariables.set(\"createdTime\", (responseData.contracts[0].auditDetails.createdTime));\r", "\r", "pm.collectionVariables.set(\"lastModifiedTime\", (responseData.contracts[0].auditDetails.lastModifiedTime));\r", "\r", "pm.collectionVariables.set(\"wfStatus\", responseData.contracts[0].wfStatus);\r", "\r", "pm.collectionVariables.set(\"contractType\", responseData.contracts[0].contractType);\r", "\r", "pm.collectionVariables.set(\"orgId\", responseData.contracts[0].orgId);\r", "\r", "pm.collectionVariables.set(\"orgName\", responseData.contracts[0].additionalDetails.orgName);\r", "\r", "pm.collectionVariables.set(\"cboOrgNumber\", responseData.contracts[0].additionalDetails.cboOrgNumber);\r", "\r", "pm.collectionVariables.set (\"completionPeriod\", responseData.contracts[0].completionPeriod);\r", "\r", "// Get the current date in milliseconds\r", "var currentDateMillis = new Date().getTime();\r", "\r", "// Store the current date in milliseconds in the environment\r", "pm.environment.set(\"currentDateMillis\", currentDateMillis);\r", "\r", "// Get the completion period from the collection variables\r", "var completionPeriodDays = pm.collectionVariables.get(\"completionPeriod\");\r", "\r", "// Check if the completionPeriodDays is a valid number\r", "if (!isNaN(completionPeriodDays)) {\r", " // Calculate the end date by adding the completion period to the current date\r", " var endDateMillis = currentDateMillis + (completionPeriodDays * 24 * 60 * 60 * 1000);\r", "\r", " // Set the end date as an environment variable for future use\r", " pm.environment.set(\"endDateMillis\", endDateMillis);\r", "\r", " // Log the end date in milliseconds\r", " console.log(\"End Date in Milliseconds: \" + endDateMillis);\r", "} else {\r", " console.log(\"Invalid completion period value. Please set a valid number in the collection variable 'completionPeriod'.\");\r", "}\r", "" ], "type": "text/javascript", "packages": {} } }, { "listen": "prerequest", "script": { "exec": [ "pm.collectionVariables.set(\"orgIdqa\",\"c5885e80-f2ec-49c2-be5c-02295d5e3f79\")\r", "pm.collectionVariables.set(\"orgIdDev\",\"035a20d7-e5be-4fb2-97c4-9c441d8bd8b6\")" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"contract\": {\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"wfStatus\": \"string\",\r\n \"executingAuthority\": \"IA\",\r\n \"contractType\": \"CON-01\",\r\n \"totalContractedAmount\": {{totalEstimatedAmount}},\r\n \"securityDeposit\": 0,\r\n \"agreementDate\": 0,\r\n \"defectLiabilityPeriod\": 0,\r\n \"orgId\": \"{{orgIdqa}}\",\r\n \"startDate\": 0,\r\n \"endDate\": 0,\r\n \"status\": \"ACTIVE\",\r\n \"completionPeriod\": \"30\",\r\n \"lineItems\": [\r\n {\r\n \"estimateId\": \"{{estId-WO}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"status\": \"ACTIVE\",\r\n \"additionalDetails\": {}\r\n }\r\n ],\r\n \"documents\": [],\r\n \"processInstance\": null,\r\n \"additionalDetails\": {\r\n \"officerInChargeId\": \"SUPERUSERA\",\r\n \"projectType\": \"{{projectType}}\",\r\n \"ward\": \"B1\",\r\n \"projectName\": \"{{randomWord}}\",\r\n \"orgName\": \"org-Test\",\r\n \"projectId\": \"{{PJNo-est}}\",\r\n \"estimateDocs\": [\r\n {\r\n \"fileName\": \"{{estfileName}}\",\r\n \"fileType\": \"{{estfileType}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"documentUid\": \"{{estfileStoreId}}\",\r\n \"fileStoreId\": \"{{estfileStoreId}}\"\r\n },\r\n {\r\n \"fileName\": \"{{estfileName}}\",\r\n \"fileType\": \"{{estfileType}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"documentUid\": \"{{estfileStoreId}}\",\r\n \"fileStoreId\": \"{{estfileStoreId}}\"\r\n },\r\n {\r\n \"fileName\": \"{{estfileName}}\",\r\n \"fileType\": \"{{estfileType}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"documentUid\": \"{{estfileStoreId}}\",\r\n \"fileStoreId\": \"{{estfileStoreId}}\"\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 \"cboName\": \"org-TestTest\",\r\n \"cboCode\": \"{{orgIdqa}}\",\r\n \"totalEstimatedAmount\": {{totalEstimatedAmount}},\r\n \"termsAndConditions\": [\r\n {\r\n \"description\": \"\"\r\n }\r\n ],\r\n \"locality\": \"SUN01\",\r\n \"estimateNumber\": \"{{estNo-WO}}\",\r\n \"officerInChargeDesgn\": \"Executive Engineer\",\r\n \"officerInChargeName\": {\r\n \"code\": \"SUPERUSERA\",\r\n \"name\": \"SUPERUSERA\"\r\n },\r\n \"projectDesc\": \"{{randomWord}}\",\r\n \"cboOrgNumber\": \"ORG-000017\"\r\n }\r\n },\r\n \"workflow\": {\r\n \"action\": \"CREATE\",\r\n \"assignees\": [\r\n \"{{empUserId}}\"\r\n ]\r\n },\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"authToken\": \"{{auth}}\",\r\n \"userInfo\": {{userinfo}},\r\n \"msgId\": \"1694151844714|en_IN\",\r\n \"plainAccessRequest\": {}\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/contract/v1/_create", "host": [ "{{base_url}}" ], "path": [ "contract", "v1", "_create" ] } }, "response": [ { "name": "Create Contrat -Success", "originalRequest": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"contract\": {\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"wfStatus\": \"string\",\r\n \"executingAuthority\": \"IA\",\r\n \"contractType\": \"CON-01\",\r\n \"totalContractedAmount\": {{totalEstimatedAmount}},\r\n \"securityDeposit\": 0,\r\n \"agreementDate\": 0,\r\n \"defectLiabilityPeriod\": 0,\r\n \"orgId\": \"9583cf0e-c7ae-4ca3-be3a-ad71b04745e4\",\r\n \"startDate\": 0,\r\n \"endDate\": 0,\r\n \"status\": \"ACTIVE\",\r\n \"completionPeriod\": \"30\",\r\n \"lineItems\": [\r\n {\r\n \"estimateId\": \"{{estId-WO}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"status\": \"ACTIVE\",\r\n \"additionalDetails\": {}\r\n }\r\n ],\r\n \"documents\": [],\r\n \"processInstance\": null,\r\n \"additionalDetails\": {\r\n \"officerInChargeId\": \"SMS QA testing\",\r\n \"projectType\": \"{{projectType}}\",\r\n \"ward\": \"B1\",\r\n \"projectName\": \"{{randomWord}}\",\r\n \"orgName\": \"Automation CBO\",\r\n \"projectId\": \"{{PJNo-est}}\",\r\n \"estimateDocs\": [\r\n {\r\n \"fileName\": \"{{estfileName}}\",\r\n \"fileType\": \"{{estfileType}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"documentUid\": \"{{estfileStoreId}}\",\r\n \"fileStoreId\": \"{{estfileStoreId}}\"\r\n },\r\n {\r\n \"fileName\": \"{{estfileName}}\",\r\n \"fileType\": \"{{estfileType}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"documentUid\": \"{{estfileStoreId}}\",\r\n \"fileStoreId\": \"{{estfileStoreId}}\"\r\n },\r\n {\r\n \"fileName\": \"{{estfileName}}\",\r\n \"fileType\": \"{{estfileType}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"documentUid\": \"{{estfileStoreId}}\",\r\n \"fileStoreId\": \"{{estfileStoreId}}\"\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 \"cboName\": \"Automation CBO\",\r\n \"cboCode\": \"9583cf0e-c7ae-4ca3-be3a-ad71b04745e4\",\r\n \"totalEstimatedAmount\": {{totalEstimatedAmount}},\r\n \"termsAndConditions\": [\r\n {\r\n \"description\": \"\"\r\n }\r\n ],\r\n \"locality\": \"SUN01\",\r\n \"estimateNumber\": \"{{estNo-WO}}\",\r\n \"officerInChargeDesgn\": \"Executive Engineer\",\r\n \"officerInChargeName\": {\r\n \"code\": \"SMS QA testing\",\r\n \"name\": \"SMS QA testing\"\r\n },\r\n \"projectDesc\": \"{{randomWord}}\",\r\n \"cboOrgNumber\": \"ORG-000220\"\r\n }\r\n },\r\n \"workflow\": {\r\n \"action\": \"CREATE\",\r\n \"assignees\": [\r\n \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\"\r\n ]\r\n },\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"authToken\": \"ccc05cbc-6430-4bcd-95ac-fab4c9e66385\",\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\": \"1694151844714|en_IN\",\r\n \"plainAccessRequest\": {}\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/contract/v1/_create", "host": [ "{{base_url}}" ], "path": [ "contract", "v1", "_create" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Date", "value": "Fri, 08 Sep 2023 11:54:34 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": "6e2ba8165f1f919f0366" }, { "key": "x-correlation-id", "value": "4b26bd85-1fb5-4840-8349-7c02bc00045a" }, { "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\": \"1694151844714|en_IN\",\n \"status\": \"successful\"\n },\n \"contracts\": [\n {\n \"id\": \"e8ff7fc1-2869-4dc8-a9fe-9ee6e8167445\",\n \"contractNumber\": \"WO/2023-24/000339\",\n \"supplementNumber\": null,\n \"versionNumber\": null,\n \"oldUuid\": null,\n \"businessService\": null,\n \"tenantId\": \"pg.citya\",\n \"wfStatus\": \"PENDING_FOR_VERIFICATION\",\n \"executingAuthority\": \"IA\",\n \"contractType\": \"CON-01\",\n \"totalContractedAmount\": 10012,\n \"securityDeposit\": 0,\n \"agreementDate\": 0,\n \"issueDate\": null,\n \"defectLiabilityPeriod\": 0,\n \"orgId\": \"9583cf0e-c7ae-4ca3-be3a-ad71b04745e4\",\n \"startDate\": 0,\n \"endDate\": 0,\n \"completionPeriod\": 30,\n \"status\": \"INWORKFLOW\",\n \"lineItems\": [\n {\n \"id\": \"fa204bfb-51f2-48b7-9f8a-21c78500b3df\",\n \"estimateId\": \"c4270493-354d-469b-a6ee-068bce075341\",\n \"estimateLineItemId\": \"8799c513-9dec-483a-9513-376dbaac950c\",\n \"tenantId\": \"pg.citya\",\n \"unitRate\": 250.28,\n \"noOfunit\": 13,\n \"category\": \"NON-SOR\",\n \"name\": \"Testing 01\",\n \"status\": \"ACTIVE\",\n \"amountBreakups\": [\n {\n \"id\": \"c8829791-a338-4d5d-8921-cb9ac3ef6ffb\",\n \"estimateAmountBreakupId\": \"a0fa29ab-40b8-4442-93b0-81cbd2981555\",\n \"amount\": 3253.6,\n \"status\": \"ACTIVE\",\n \"additionalDetails\": null\n }\n ],\n \"auditDetails\": {\n \"createdBy\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\n \"lastModifiedBy\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\n \"createdTime\": 1694174074572,\n \"lastModifiedTime\": 1694174074572\n },\n \"additionalDetails\": null\n },\n {\n \"id\": \"bfd793c4-8ed0-4c21-8b45-0db5963d16a1\",\n \"estimateId\": \"c4270493-354d-469b-a6ee-068bce075341\",\n \"estimateLineItemId\": \"cee4dc24-32d0-4cd7-90ae-4b177e6fc670\",\n \"tenantId\": \"pg.citya\",\n \"unitRate\": 0,\n \"noOfunit\": 0,\n \"category\": \"OVERHEAD\",\n \"name\": \"GST\",\n \"status\": \"ACTIVE\",\n \"amountBreakups\": [\n {\n \"id\": \"cb6624f1-ec2b-4eaa-9666-fe01294a67a2\",\n \"estimateAmountBreakupId\": \"a154eba1-4c17-44b8-a709-2fdddbe5f5cc\",\n \"amount\": 585.6,\n \"status\": \"ACTIVE\",\n \"additionalDetails\": null\n }\n ],\n \"auditDetails\": {\n \"createdBy\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\n \"lastModifiedBy\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\n \"createdTime\": 1694174074572,\n \"lastModifiedTime\": 1694174074572\n },\n \"additionalDetails\": {\n \"row\": {\n \"name\": {\n \"id\": \"2\",\n \"code\": \"GST\",\n \"name\": \"ES_COMMON_OVERHEADS_GST\",\n \"type\": \"percentage\",\n \"value\": \"18\",\n \"active\": true,\n \"description\": \"Goods and Service Tax\",\n \"effectiveTo\": null,\n \"effectiveFrom\": \"1694172775346\",\n \"isAutoCalculated\": true,\n \"isWorkOrderValue\": true\n },\n \"amount\": \"585.6\",\n \"percentage\": \"18 %\"\n }\n }\n }\n ],\n \"documents\": [],\n \"processInstance\": {\n \"id\": \"d6ae1ab9-7c0e-4dd4-b70e-5acebdd41271\",\n \"tenantId\": \"pg.citya\",\n \"businessService\": \"CONTRACT\",\n \"businessId\": \"WO/2023-24/000339\",\n \"action\": \"CREATE\",\n \"moduleName\": \"contract-service\",\n \"state\": {\n \"auditDetails\": {\n \"createdBy\": \"01203742-db1a-4256-a935-f767635e2ef7\",\n \"lastModifiedBy\": \"01203742-db1a-4256-a935-f767635e2ef7\",\n \"createdTime\": 1684756438010,\n \"lastModifiedTime\": 1684756438010\n },\n \"uuid\": \"061ae74c-ffc8-4102-8f0c-9483dc065a90\",\n \"tenantId\": \"pg\",\n \"businessServiceId\": \"2b74eff6-b77a-4cbe-a4b5-097ef6bbb9e9\",\n \"sla\": 172800000,\n \"state\": \"PENDING_FOR_VERIFICATION\",\n \"applicationStatus\": \"INWORKFLOW\",\n \"docUploadRequired\": false,\n \"isStartState\": false,\n \"isTerminateState\": false,\n \"isStateUpdatable\": true,\n \"actions\": [\n {\n \"auditDetails\": {\n \"createdBy\": \"01203742-db1a-4256-a935-f767635e2ef7\",\n \"lastModifiedBy\": \"01203742-db1a-4256-a935-f767635e2ef7\",\n \"createdTime\": 1684756438010,\n \"lastModifiedTime\": 1684756438010\n },\n \"uuid\": \"3948b6fd-2c7e-4bda-bcb5-864068554e0e\",\n \"tenantId\": \"pg\",\n \"currentState\": \"061ae74c-ffc8-4102-8f0c-9483dc065a90\",\n \"action\": \"SEND_BACK\",\n \"nextState\": \"e773d1dc-4ed1-4c44-985e-60c60adaf919\",\n \"roles\": [\n \"WORK_ORDER_VERIFIER\"\n ]\n },\n {\n \"auditDetails\": {\n \"createdBy\": \"01203742-db1a-4256-a935-f767635e2ef7\",\n \"lastModifiedBy\": \"01203742-db1a-4256-a935-f767635e2ef7\",\n \"createdTime\": 1684756438010,\n \"lastModifiedTime\": 1684756438010\n },\n \"uuid\": \"bd1b5cfb-ca8a-4a83-b12e-5a4d8fbe0fa7\",\n \"tenantId\": \"pg\",\n \"currentState\": \"061ae74c-ffc8-4102-8f0c-9483dc065a90\",\n \"action\": \"VERIFY_AND_FORWARD\",\n \"nextState\": \"9f8ff734-4f05-4d4a-9e8d-3721183c531e\",\n \"roles\": [\n \"WORK_ORDER_VERIFIER\"\n ]\n }\n ]\n },\n \"comment\": null,\n \"documents\": null,\n \"assignes\": [\n {\n \"id\": 444,\n \"userName\": \"SMS QA testing\",\n \"name\": \"SMS QA testing\",\n \"type\": \"EMPLOYEE\",\n \"mobileNumber\": \"9043685314\",\n \"emailId\": \"\",\n \"roles\": [\n {\n \"id\": null,\n \"name\": \"HRMS Admin\",\n \"code\": \"HRMS_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"id\": null,\n \"name\": \"WORK_ORDER_VIEWER\",\n \"code\": \"WORK_ORDER_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"id\": null,\n \"name\": \"BILL_ACCOUNTANT\",\n \"code\": \"BILL_ACCOUNTANT\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"id\": null,\n \"name\": \"WORK ORDER CREATOR\",\n \"code\": \"WORK_ORDER_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"id\": null,\n \"name\": \"ESTIMATE VERIFIER\",\n \"code\": \"ESTIMATE_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"id\": null,\n \"name\": \"BILL_VERIFIER\",\n \"code\": \"BILL_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"id\": null,\n \"name\": \"ESTIMATE APPROVER\",\n \"code\": \"ESTIMATE_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"id\": null,\n \"name\": \"Organization viewer\",\n \"code\": \"ORG_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"id\": null,\n \"name\": \"WORK ORDER VERIFIER\",\n \"code\": \"WORK_ORDER_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"id\": null,\n \"name\": \"PROJECT VIEWER\",\n \"code\": \"PROJECT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"id\": null,\n \"name\": \"BILL_APPROVER\",\n \"code\": \"BILL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"id\": null,\n \"name\": \"MUSTER ROLL VERIFIER\",\n \"code\": \"MUSTER_ROLL_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"id\": null,\n \"name\": \"OFFICER IN CHARGE\",\n \"code\": \"OFFICER_IN_CHARGE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"id\": null,\n \"name\": \"PROJECT CREATOR\",\n \"code\": \"PROJECT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"id\": null,\n \"name\": \"Employee Common\",\n \"code\": \"EMPLOYEE_COMMON\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"id\": null,\n \"name\": \"BILL_VIEWER\",\n \"code\": \"BILL_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"id\": null,\n \"name\": \"TECHNICAL SANCTIONER\",\n \"code\": \"TECHNICAL_SANCTIONER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"id\": null,\n \"name\": \"BILL_CREATOR\",\n \"code\": \"BILL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"id\": null,\n \"name\": \"MUSTER ROLL APPROVER\",\n \"code\": \"MUSTER_ROLL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"id\": null,\n \"name\": \"ESTIMATE VIEWER\",\n \"code\": \"ESTIMATE_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"id\": null,\n \"name\": \"WORK ORDER APPROVER\",\n \"code\": \"WORK_ORDER_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"id\": null,\n \"name\": \"ESTIMATE CREATOR\",\n \"code\": \"ESTIMATE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"id\": null,\n \"name\": \"State Dashboard Admin\",\n \"code\": \"STADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"id\": null,\n \"name\": \"MUKTA Admin\",\n \"code\": \"MUKTA_ADMIN\",\n \"tenantId\": \"pg.citya\"\n }\n ],\n \"tenantId\": \"pg.citya\",\n \"uuid\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\"\n }\n ]\n },\n \"auditDetails\": {\n \"createdBy\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\n \"lastModifiedBy\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\n \"createdTime\": 1694174074572,\n \"lastModifiedTime\": 1694174074572\n },\n \"additionalDetails\": {\n \"officerInChargeId\": \"SMS QA testing\",\n \"projectType\": \"CPS-CWS\",\n \"ward\": \"B1\",\n \"projectName\": \"tramelled\",\n \"orgName\": \"Automation CBO\",\n \"projectId\": \"PJ/2023-24/09/000898\",\n \"estimateDocs\": [\n {\n \"fileName\": \"WorkOrder-WO_2023-24_000266 (2).pdf\",\n \"fileType\": \"ESTIMATE_DOC_DETAILED_ESTIMATE\",\n \"tenantId\": \"pg.citya\",\n \"documentUid\": \"8234d8ef-73d7-4986-b5af-c557a6436c94\",\n \"fileStoreId\": \"8234d8ef-73d7-4986-b5af-c557a6436c94\"\n },\n {\n \"fileName\": \"WorkOrder-WO_2023-24_000266 (2).pdf\",\n \"fileType\": \"ESTIMATE_DOC_DETAILED_ESTIMATE\",\n \"tenantId\": \"pg.citya\",\n \"documentUid\": \"8234d8ef-73d7-4986-b5af-c557a6436c94\",\n \"fileStoreId\": \"8234d8ef-73d7-4986-b5af-c557a6436c94\"\n },\n {\n \"fileName\": \"WorkOrder-WO_2023-24_000266 (2).pdf\",\n \"fileType\": \"ESTIMATE_DOC_DETAILED_ESTIMATE\",\n \"tenantId\": \"pg.citya\",\n \"documentUid\": \"8234d8ef-73d7-4986-b5af-c557a6436c94\",\n \"fileStoreId\": \"8234d8ef-73d7-4986-b5af-c557a6436c94\"\n },\n {\n \"fileType\": \"ESTIMATE_DOC_DESIGN_DOCUMENT\"\n },\n {\n \"fileName\": \"\",\n \"fileType\": \"Others\"\n }\n ],\n \"cboName\": \"Automation CBO\",\n \"cboCode\": \"9583cf0e-c7ae-4ca3-be3a-ad71b04745e4\",\n \"totalEstimatedAmount\": 10012,\n \"termsAndConditions\": [\n {\n \"description\": \"\"\n }\n ],\n \"locality\": \"SUN01\",\n \"estimateNumber\": \"ES/2023-24/000792\",\n \"officerInChargeDesgn\": \"Executive Engineer\",\n \"officerInChargeName\": {\n \"code\": \"SMS QA testing\",\n \"name\": \"SMS QA testing\"\n },\n \"projectDesc\": \"tramelled\",\n \"cboOrgNumber\": \"ORG-000220\"\n }\n }\n ],\n \"pagination\": null\n}" } ] }, { "name": "Create Contract - Validation error - Contract is required", "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(\"CONTRACT\");\r", " pm.expect(message).to.eql(\"Contract is mandatory\");\r", " }\r", ");" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n // \"contract\": {\r\n // \"tenantId\": \"{{tenantId}}\",\r\n // \"wfStatus\": \"string\",\r\n // \"executingAuthority\": \"IA\",\r\n // \"contractType\": \"CON-01\",\r\n // \"totalContractedAmount\": {{totalEstimatedAmount}},\r\n // \"securityDeposit\": 0,\r\n // \"agreementDate\": 0,\r\n // \"defectLiabilityPeriod\": 0,\r\n // \"orgId\": \"9583cf0e-c7ae-4ca3-be3a-ad71b04745e4\",\r\n // \"startDate\": 0,\r\n // \"endDate\": 0,\r\n // \"status\": \"ACTIVE\",\r\n // \"completionPeriod\": \"30\",\r\n // \"lineItems\": [\r\n // {\r\n // \"estimateId\": \"{{estId-WO}}\",\r\n // \"tenantId\": \"{{tenantId}}\",\r\n // \"status\": \"ACTIVE\",\r\n // \"additionalDetails\": {}\r\n // }\r\n // ],\r\n // \"documents\": [],\r\n // \"processInstance\": null,\r\n // \"additionalDetails\": {\r\n // \"officerInChargeId\": \"SMS QA testing\",\r\n // \"projectType\": \"{{projectType}}\",\r\n // \"ward\": \"B1\",\r\n // \"projectName\": \"{{randomWord}}\",\r\n // \"orgName\": \"Automation CBO\",\r\n // \"projectId\": \"{{PJNo-est}}\",\r\n // \"estimateDocs\": [\r\n // {\r\n // \"fileName\": \"{{estfileName}}\",\r\n // \"fileType\": \"{{estfileType}}\",\r\n // \"tenantId\": \"{{tenantId}}\",\r\n // \"documentUid\": \"{{estfileStoreId}}\",\r\n // \"fileStoreId\": \"{{estfileStoreId}}\"\r\n // },\r\n // {\r\n // \"fileName\": \"{{estfileName}}\",\r\n // \"fileType\": \"{{estfileType}}\",\r\n // \"tenantId\": \"{{tenantId}}\",\r\n // \"documentUid\": \"{{estfileStoreId}}\",\r\n // \"fileStoreId\": \"{{estfileStoreId}}\"\r\n // },\r\n // {\r\n // \"fileName\": \"{{estfileName}}\",\r\n // \"fileType\": \"{{estfileType}}\",\r\n // \"tenantId\": \"{{tenantId}}\",\r\n // \"documentUid\": \"{{estfileStoreId}}\",\r\n // \"fileStoreId\": \"{{estfileStoreId}}\"\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 // \"cboName\": \"Automation CBO\",\r\n // \"cboCode\": \"9583cf0e-c7ae-4ca3-be3a-ad71b04745e4\",\r\n // \"totalEstimatedAmount\": {{totalEstimatedAmount}},\r\n // \"termsAndConditions\": [\r\n // {\r\n // \"description\": \"\"\r\n // }\r\n // ],\r\n // \"locality\": \"SUN01\",\r\n // \"estimateNumber\": \"{{estNo-WO}}\",\r\n // \"officerInChargeDesgn\": \"Executive Engineer\",\r\n // \"officerInChargeName\": {\r\n // \"code\": \"SMS QA testing\",\r\n // \"name\": \"SMS QA testing\"\r\n // },\r\n // \"projectDesc\": \"{{randomWord}}\",\r\n // \"cboOrgNumber\": \"ORG-000220\"\r\n // }\r\n // },\r\n \"workflow\": {\r\n \"action\": \"CREATE\",\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\": \"1694151844714|en_IN\",\r\n \"plainAccessRequest\": {}\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/contract/v1/_create", "host": [ "{{base_url}}" ], "path": [ "contract", "v1", "_create" ] } }, "response": [] }, { "name": "Create Contract - Validation error - TenantId is required", "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(\"NotNull.contractRequest.contract.tenantId\");\r", " pm.expect(message).to.eql(\"must not be null\");\r", " }\r", ");" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"contract\": {\r\n // \"tenantId\": \"{{tenantId}}\",\r\n \"wfStatus\": \"string\",\r\n \"executingAuthority\": \"IA\",\r\n \"contractType\": \"{{contractType}}\",\r\n \"totalContractedAmount\": {{totalEstimatedAmount}},\r\n \"securityDeposit\": 0,\r\n \"agreementDate\": 0,\r\n \"defectLiabilityPeriod\": 0,\r\n \"orgId\": \"{{orgId}}\",\r\n \"startDate\": 0,\r\n \"endDate\": 0,\r\n \"status\": \"ACTIVE\",\r\n \"completionPeriod\": \"30\",\r\n \"lineItems\": [\r\n {\r\n \"estimateId\": \"{{estId-WO}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"status\": \"ACTIVE\",\r\n \"additionalDetails\": {}\r\n }\r\n ],\r\n \"documents\": [],\r\n \"processInstance\": null,\r\n \"additionalDetails\": {\r\n \"officerInChargeId\": \"SMS QA testing\",\r\n \"projectType\": \"{{projectType}}\",\r\n \"ward\": \"{{ward}}\",\r\n \"projectName\": \"{{randomWord}}\",\r\n \"orgName\": \"{{orgName}}\",\r\n \"projectId\": \"{{PJNo-est}}\",\r\n \"estimateDocs\": [\r\n {\r\n \"fileName\": \"{{estfileName}}\",\r\n \"fileType\": \"{{estfileType}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"documentUid\": \"{{estfileStoreId}}\",\r\n \"fileStoreId\": \"{{estfileStoreId}}\"\r\n },\r\n {\r\n \"fileName\": \"{{estfileName}}\",\r\n \"fileType\": \"{{estfileType}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"documentUid\": \"{{estfileStoreId}}\",\r\n \"fileStoreId\": \"{{estfileStoreId}}\"\r\n },\r\n {\r\n \"fileName\": \"{{estfileName}}\",\r\n \"fileType\": \"{{estfileType}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"documentUid\": \"{{estfileStoreId}}\",\r\n \"fileStoreId\": \"{{estfileStoreId}}\"\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 \"cboName\": \"{{orgName}}\",\r\n \"cboCode\": \"{{orgId}}\",\r\n \"totalEstimatedAmount\": {{totalEstimatedAmount}},\r\n \"termsAndConditions\": [\r\n {\r\n \"description\": \"\"\r\n }\r\n ],\r\n \"locality\": \"SUN01\",\r\n \"estimateNumber\": \"{{estNo-WO}}\",\r\n \"officerInChargeDesgn\": \"Executive Engineer\",\r\n \"officerInChargeName\": {\r\n \"code\": \"SMS QA testing\",\r\n \"name\": \"SMS QA testing\"\r\n },\r\n \"projectDesc\": \"{{randomWord}}\",\r\n \"cboOrgNumber\": \"{{cboOrgNumber}}\"\r\n }\r\n },\r\n \"workflow\": {\r\n \"action\": \"CREATE\",\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\": \"1694151844714|en_IN\",\r\n \"plainAccessRequest\": {}\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/contract/v1/_create", "host": [ "{{base_url}}" ], "path": [ "contract", "v1", "_create" ] } }, "response": [] }, { "name": "Create Contract - Validation error - ExecutingAuthority is required", "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(\"NotNull.contractRequest.contract.executingAuthority\");\r", " pm.expect(message).to.eql(\"must not be null\");\r", " }\r", ");" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"contract\": {\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"wfStatus\": \"string\",\r\n // \"executingAuthority\": \"IA\",\r\n \"contractType\": \"CON-01\",\r\n \"totalContractedAmount\": {{totalEstimatedAmount}},\r\n \"securityDeposit\": 0,\r\n \"agreementDate\": 0,\r\n \"defectLiabilityPeriod\": 0,\r\n \"orgId\": \"9583cf0e-c7ae-4ca3-be3a-ad71b04745e4\",\r\n \"startDate\": 0,\r\n \"endDate\": 0,\r\n \"status\": \"ACTIVE\",\r\n \"completionPeriod\": \"30\",\r\n \"lineItems\": [\r\n {\r\n \"estimateId\": \"{{estId-WO}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"status\": \"ACTIVE\",\r\n \"additionalDetails\": {}\r\n }\r\n ],\r\n \"documents\": [],\r\n \"processInstance\": null,\r\n \"additionalDetails\": {\r\n \"officerInChargeId\": \"SMS QA testing\",\r\n \"projectType\": \"{{projectType}}\",\r\n \"ward\": \"B1\",\r\n \"projectName\": \"{{randomWord}}\",\r\n \"orgName\": \"Automation CBO\",\r\n \"projectId\": \"{{PJNo-est}}\",\r\n \"estimateDocs\": [\r\n {\r\n \"fileName\": \"{{estfileName}}\",\r\n \"fileType\": \"{{estfileType}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"documentUid\": \"{{estfileStoreId}}\",\r\n \"fileStoreId\": \"{{estfileStoreId}}\"\r\n },\r\n {\r\n \"fileName\": \"{{estfileName}}\",\r\n \"fileType\": \"{{estfileType}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"documentUid\": \"{{estfileStoreId}}\",\r\n \"fileStoreId\": \"{{estfileStoreId}}\"\r\n },\r\n {\r\n \"fileName\": \"{{estfileName}}\",\r\n \"fileType\": \"{{estfileType}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"documentUid\": \"{{estfileStoreId}}\",\r\n \"fileStoreId\": \"{{estfileStoreId}}\"\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 \"cboName\": \"{{orgName}}\",\r\n \"cboCode\": \"{{orgId}}\",\r\n \"totalEstimatedAmount\": {{totalEstimatedAmount}},\r\n \"termsAndConditions\": [\r\n {\r\n \"description\": \"\"\r\n }\r\n ],\r\n \"locality\": \"SUN01\",\r\n \"estimateNumber\": \"{{estNo-WO}}\",\r\n \"officerInChargeDesgn\": \"Executive Engineer\",\r\n \"officerInChargeName\": {\r\n \"code\": \"SMS QA testing\",\r\n \"name\": \"SMS QA testing\"\r\n },\r\n \"projectDesc\": \"{{randomWord}}\",\r\n \"cboOrgNumber\": \"ORG-000220\"\r\n }\r\n },\r\n \"workflow\": {\r\n \"action\": \"CREATE\",\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\": \"1694151844714|en_IN\",\r\n \"plainAccessRequest\": {}\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/contract/v1/_create", "host": [ "{{base_url}}" ], "path": [ "contract", "v1", "_create" ] } }, "response": [] }, { "name": "Create Contract - Validation error - ExecutingAuthority is invalid", "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(\"INVALID_EXECUTING_AUTHORITY\");\r", " pm.expect(message).to.eql(\"Invalid Executing Authority [abc]\");\r", " }\r", ");" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"contract\": {\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"wfStatus\": \"string\",\r\n \"executingAuthority\": \"abc\",\r\n \"contractType\": \"CON-01\",\r\n \"totalContractedAmount\": {{totalEstimatedAmount}},\r\n \"securityDeposit\": 0,\r\n \"agreementDate\": 0,\r\n \"defectLiabilityPeriod\": 0,\r\n \"orgId\": \"9583cf0e-c7ae-4ca3-be3a-ad71b04745e4\",\r\n \"startDate\": 0,\r\n \"endDate\": 0,\r\n \"status\": \"ACTIVE\",\r\n \"completionPeriod\": \"30\",\r\n \"lineItems\": [\r\n {\r\n \"estimateId\": \"{{estId-WO}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"status\": \"ACTIVE\",\r\n \"additionalDetails\": {}\r\n }\r\n ],\r\n \"documents\": [],\r\n \"processInstance\": null,\r\n \"additionalDetails\": {\r\n \"officerInChargeId\": \"SMS QA testing\",\r\n \"projectType\": \"{{projectType}}\",\r\n \"ward\": \"B1\",\r\n \"projectName\": \"{{randomWord}}\",\r\n \"orgName\": \"Automation CBO\",\r\n \"projectId\": \"{{PJNo-est}}\",\r\n \"estimateDocs\": [\r\n {\r\n \"fileName\": \"{{estfileName}}\",\r\n \"fileType\": \"{{estfileType}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"documentUid\": \"{{estfileStoreId}}\",\r\n \"fileStoreId\": \"{{estfileStoreId}}\"\r\n },\r\n {\r\n \"fileName\": \"{{estfileName}}\",\r\n \"fileType\": \"{{estfileType}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"documentUid\": \"{{estfileStoreId}}\",\r\n \"fileStoreId\": \"{{estfileStoreId}}\"\r\n },\r\n {\r\n \"fileName\": \"{{estfileName}}\",\r\n \"fileType\": \"{{estfileType}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"documentUid\": \"{{estfileStoreId}}\",\r\n \"fileStoreId\": \"{{estfileStoreId}}\"\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 \"cboName\": \"{{orgName}}\",\r\n \"cboCode\": \"{{orgId}}\",\r\n \"totalEstimatedAmount\": {{totalEstimatedAmount}},\r\n \"termsAndConditions\": [\r\n {\r\n \"description\": \"\"\r\n }\r\n ],\r\n \"locality\": \"SUN01\",\r\n \"estimateNumber\": \"{{estNo-WO}}\",\r\n \"officerInChargeDesgn\": \"Executive Engineer\",\r\n \"officerInChargeName\": {\r\n \"code\": \"SMS QA testing\",\r\n \"name\": \"SMS QA testing\"\r\n },\r\n \"projectDesc\": \"{{randomWord}}\",\r\n \"cboOrgNumber\": \"ORG-000220\"\r\n }\r\n },\r\n \"workflow\": {\r\n \"action\": \"CREATE\",\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\": \"1694151844714|en_IN\",\r\n \"plainAccessRequest\": {}\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/contract/v1/_create", "host": [ "{{base_url}}" ], "path": [ "contract", "v1", "_create" ] } }, "response": [] }, { "name": "Create Contract - Validation error - ContractType is required", "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(\"CONTRACT.CONTRACTTYPE\");\r", " pm.expect(message).to.eql(\"Contract Type is mandatory\");\r", " }\r", ");" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"contract\": {\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"wfStatus\": \"string\",\r\n \"executingAuthority\": \"IA\",\r\n // \"contractType\": \"CON-01\",\r\n \"totalContractedAmount\": {{totalEstimatedAmount}},\r\n \"securityDeposit\": 0,\r\n \"agreementDate\": 0,\r\n \"defectLiabilityPeriod\": 0,\r\n \"orgId\": \"9583cf0e-c7ae-4ca3-be3a-ad71b04745e4\",\r\n \"startDate\": 0,\r\n \"endDate\": 0,\r\n \"status\": \"ACTIVE\",\r\n \"completionPeriod\": \"30\",\r\n \"lineItems\": [\r\n {\r\n \"estimateId\": \"{{estId-WO}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"status\": \"ACTIVE\",\r\n \"additionalDetails\": {}\r\n }\r\n ],\r\n \"documents\": [],\r\n \"processInstance\": null,\r\n \"additionalDetails\": {\r\n \"officerInChargeId\": \"SMS QA testing\",\r\n \"projectType\": \"{{projectType}}\",\r\n \"ward\": \"B1\",\r\n \"projectName\": \"{{randomWord}}\",\r\n \"orgName\": \"Automation CBO\",\r\n \"projectId\": \"{{PJNo-est}}\",\r\n \"estimateDocs\": [\r\n {\r\n \"fileName\": \"{{estfileName}}\",\r\n \"fileType\": \"{{estfileType}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"documentUid\": \"{{estfileStoreId}}\",\r\n \"fileStoreId\": \"{{estfileStoreId}}\"\r\n },\r\n {\r\n \"fileName\": \"{{estfileName}}\",\r\n \"fileType\": \"{{estfileType}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"documentUid\": \"{{estfileStoreId}}\",\r\n \"fileStoreId\": \"{{estfileStoreId}}\"\r\n },\r\n {\r\n \"fileName\": \"{{estfileName}}\",\r\n \"fileType\": \"{{estfileType}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"documentUid\": \"{{estfileStoreId}}\",\r\n \"fileStoreId\": \"{{estfileStoreId}}\"\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 \"cboName\": \"{{orgName}}\",\r\n \"cboCode\": \"{{orgId}}\",\r\n \"totalEstimatedAmount\": {{totalEstimatedAmount}},\r\n \"termsAndConditions\": [\r\n {\r\n \"description\": \"\"\r\n }\r\n ],\r\n \"locality\": \"SUN01\",\r\n \"estimateNumber\": \"{{estNo-WO}}\",\r\n \"officerInChargeDesgn\": \"Executive Engineer\",\r\n \"officerInChargeName\": {\r\n \"code\": \"SMS QA testing\",\r\n \"name\": \"SMS QA testing\"\r\n },\r\n \"projectDesc\": \"{{randomWord}}\",\r\n \"cboOrgNumber\": \"ORG-000220\"\r\n }\r\n },\r\n \"workflow\": {\r\n \"action\": \"CREATE\",\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\": \"1694151844714|en_IN\",\r\n \"plainAccessRequest\": {}\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/contract/v1/_create", "host": [ "{{base_url}}" ], "path": [ "contract", "v1", "_create" ] } }, "response": [] }, { "name": "Create Contract - Validation error - ContractType is invalid", "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(\"INVALID_CONTRACT_TYPE\");\r", " pm.expect(message).to.eql(\"Invalid Contract Type [abc]\");\r", " }\r", ");" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"contract\": {\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"wfStatus\": \"string\",\r\n \"executingAuthority\": \"IA\",\r\n \"contractType\": \"abc\",\r\n \"totalContractedAmount\": {{totalEstimatedAmount}},\r\n \"securityDeposit\": 0,\r\n \"agreementDate\": 0,\r\n \"defectLiabilityPeriod\": 0,\r\n \"orgId\": \"9583cf0e-c7ae-4ca3-be3a-ad71b04745e4\",\r\n \"startDate\": 0,\r\n \"endDate\": 0,\r\n \"status\": \"ACTIVE\",\r\n \"completionPeriod\": \"30\",\r\n \"lineItems\": [\r\n {\r\n \"estimateId\": \"{{estId-WO}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"status\": \"ACTIVE\",\r\n \"additionalDetails\": {}\r\n }\r\n ],\r\n \"documents\": [],\r\n \"processInstance\": null,\r\n \"additionalDetails\": {\r\n \"officerInChargeId\": \"SMS QA testing\",\r\n \"projectType\": \"{{projectType}}\",\r\n \"ward\": \"B1\",\r\n \"projectName\": \"{{randomWord}}\",\r\n \"orgName\": \"Automation CBO\",\r\n \"projectId\": \"{{PJNo-est}}\",\r\n \"estimateDocs\": [\r\n {\r\n \"fileName\": \"{{estfileName}}\",\r\n \"fileType\": \"{{estfileType}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"documentUid\": \"{{estfileStoreId}}\",\r\n \"fileStoreId\": \"{{estfileStoreId}}\"\r\n },\r\n {\r\n \"fileName\": \"{{estfileName}}\",\r\n \"fileType\": \"{{estfileType}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"documentUid\": \"{{estfileStoreId}}\",\r\n \"fileStoreId\": \"{{estfileStoreId}}\"\r\n },\r\n {\r\n \"fileName\": \"{{estfileName}}\",\r\n \"fileType\": \"{{estfileType}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"documentUid\": \"{{estfileStoreId}}\",\r\n \"fileStoreId\": \"{{estfileStoreId}}\"\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 \"cboName\": \"{{orgName}}\",\r\n \"cboCode\": \"{{orgId}}\",\r\n \"totalEstimatedAmount\": {{totalEstimatedAmount}},\r\n \"termsAndConditions\": [\r\n {\r\n \"description\": \"\"\r\n }\r\n ],\r\n \"locality\": \"SUN01\",\r\n \"estimateNumber\": \"{{estNo-WO}}\",\r\n \"officerInChargeDesgn\": \"Executive Engineer\",\r\n \"officerInChargeName\": {\r\n \"code\": \"SMS QA testing\",\r\n \"name\": \"SMS QA testing\"\r\n },\r\n \"projectDesc\": \"{{randomWord}}\",\r\n \"cboOrgNumber\": \"ORG-000220\"\r\n }\r\n },\r\n \"workflow\": {\r\n \"action\": \"CREATE\",\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\": \"1694151844714|en_IN\",\r\n \"plainAccessRequest\": {}\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/contract/v1/_create", "host": [ "{{base_url}}" ], "path": [ "contract", "v1", "_create" ] } }, "response": [] }, { "name": "Create Contract - Validation error - OrgId is required", "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(\"CONTRACT.ORGNISATIONID\");\r", " pm.expect(message).to.eql(\"OrgnisationId is mandatory\");\r", " }\r", ");" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"contract\": {\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"wfStatus\": \"string\",\r\n \"executingAuthority\": \"IA\",\r\n \"contractType\": \"CON-01\",\r\n \"totalContractedAmount\": {{totalEstimatedAmount}},\r\n \"securityDeposit\": 0,\r\n \"agreementDate\": 0,\r\n \"defectLiabilityPeriod\": 0,\r\n // \"orgId\": \"9583cf0e-c7ae-4ca3-be3a-ad71b04745e4\",\r\n \"startDate\": 0,\r\n \"endDate\": 0,\r\n \"status\": \"ACTIVE\",\r\n \"completionPeriod\": \"30\",\r\n \"lineItems\": [\r\n {\r\n \"estimateId\": \"{{estId-WO}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"status\": \"ACTIVE\",\r\n \"additionalDetails\": {}\r\n }\r\n ],\r\n \"documents\": [],\r\n \"processInstance\": null,\r\n \"additionalDetails\": {\r\n \"officerInChargeId\": \"SMS QA testing\",\r\n \"projectType\": \"{{projectType}}\",\r\n \"ward\": \"B1\",\r\n \"projectName\": \"{{randomWord}}\",\r\n \"orgName\": \"Automation CBO\",\r\n \"projectId\": \"{{PJNo-est}}\",\r\n \"estimateDocs\": [\r\n {\r\n \"fileName\": \"{{estfileName}}\",\r\n \"fileType\": \"{{estfileType}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"documentUid\": \"{{estfileStoreId}}\",\r\n \"fileStoreId\": \"{{estfileStoreId}}\"\r\n },\r\n {\r\n \"fileName\": \"{{estfileName}}\",\r\n \"fileType\": \"{{estfileType}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"documentUid\": \"{{estfileStoreId}}\",\r\n \"fileStoreId\": \"{{estfileStoreId}}\"\r\n },\r\n {\r\n \"fileName\": \"{{estfileName}}\",\r\n \"fileType\": \"{{estfileType}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"documentUid\": \"{{estfileStoreId}}\",\r\n \"fileStoreId\": \"{{estfileStoreId}}\"\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 \"cboName\": \"{{orgName}}\",\r\n \"cboCode\": \"{{orgId}}\",\r\n \"totalEstimatedAmount\": {{totalEstimatedAmount}},\r\n \"termsAndConditions\": [\r\n {\r\n \"description\": \"\"\r\n }\r\n ],\r\n \"locality\": \"SUN01\",\r\n \"estimateNumber\": \"{{estNo-WO}}\",\r\n \"officerInChargeDesgn\": \"Executive Engineer\",\r\n \"officerInChargeName\": {\r\n \"code\": \"SMS QA testing\",\r\n \"name\": \"SMS QA testing\"\r\n },\r\n \"projectDesc\": \"{{randomWord}}\",\r\n \"cboOrgNumber\": \"ORG-000220\"\r\n }\r\n },\r\n \"workflow\": {\r\n \"action\": \"CREATE\",\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\": \"1694151844714|en_IN\",\r\n \"plainAccessRequest\": {}\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/contract/v1/_create", "host": [ "{{base_url}}" ], "path": [ "contract", "v1", "_create" ] } }, "response": [] }, { "name": "Create Contract - Validation error - OrgId is invalid", "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(\"INVALID_ORGID\");\r", " pm.expect(message).to.eql(\"Org [ad71b04745e4] is not present\");\r", " }\r", ");" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"contract\":{\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"wfStatus\": \"string\",\r\n \"executingAuthority\": \"IA\",\r\n \"contractType\": \"CON-01\",\r\n \"totalContractedAmount\": {{totalEstimatedAmount}},\r\n \"securityDeposit\": 0,\r\n \"agreementDate\": 0,\r\n \"defectLiabilityPeriod\": 0,\r\n \"orgId\": \"ad71b04745e4\",\r\n \"startDate\": 0,\r\n \"endDate\": 0,\r\n \"status\": \"ACTIVE\",\r\n \"completionPeriod\": \"30\",\r\n \"lineItems\": [\r\n {\r\n \"estimateId\": \"{{estId-WO}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"status\": \"ACTIVE\",\r\n \"additionalDetails\": {}\r\n }\r\n ],\r\n \"documents\": [],\r\n \"processInstance\": null,\r\n \"additionalDetails\": {\r\n \"officerInChargeId\": \"SUPERUSERA\",\r\n \"projectType\": \"{{projectType}}\",\r\n \"ward\": \"B1\",\r\n \"projectName\": \"{{randomWord}}\",\r\n \"orgName\": \"org-Test\",\r\n \"projectId\": \"{{PJNo-est}}\",\r\n \"estimateDocs\": [\r\n {\r\n \"fileName\": \"{{estfileName}}\",\r\n \"fileType\": \"{{estfileType}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"documentUid\": \"{{estfileStoreId}}\",\r\n \"fileStoreId\": \"{{estfileStoreId}}\"\r\n },\r\n {\r\n \"fileName\": \"{{estfileName}}\",\r\n \"fileType\": \"{{estfileType}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"documentUid\": \"{{estfileStoreId}}\",\r\n \"fileStoreId\": \"{{estfileStoreId}}\"\r\n },\r\n {\r\n \"fileName\": \"{{estfileName}}\",\r\n \"fileType\": \"{{estfileType}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"documentUid\": \"{{estfileStoreId}}\",\r\n \"fileStoreId\": \"{{estfileStoreId}}\"\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 \"cboName\": \"org-TestTest\",\r\n \"cboCode\": \"{{orgIdqa}}\",\r\n \"totalEstimatedAmount\": {{totalEstimatedAmount}},\r\n \"termsAndConditions\": [\r\n {\r\n \"description\": \"\"\r\n }\r\n ],\r\n \"locality\": \"SUN01\",\r\n \"estimateNumber\": \"{{estNo-WO}}\",\r\n \"officerInChargeDesgn\": \"Executive Engineer\",\r\n \"officerInChargeName\": {\r\n \"code\": \"SUPERUSERA\",\r\n \"name\": \"SUPERUSERA\"\r\n },\r\n \"projectDesc\": \"{{randomWord}}\",\r\n \"cboOrgNumber\": \"ORG-000017\"\r\n }\r\n },\r\n \"workflow\": {\r\n \"action\": \"CREATE\",\r\n \"assignees\": [\r\n \"71d23f7e-30c9-4ba4-b81b-e1862cd3fd9d\"\r\n ]\r\n },\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"authToken\": \"{{auth}}\",\r\n \"userInfo\": {{userinfo}},\r\n \"msgId\": \"1694151844714|en_IN\",\r\n \"plainAccessRequest\": {}\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/contract/v1/_create", "host": [ "{{base_url}}" ], "path": [ "contract", "v1", "_create" ] } }, "response": [] }, { "name": "Create Contract - Validation error - CompletionPeriod is required", "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(\"CONTRACT.COMPLETION_PERIOD\");\r", " pm.expect(message).to.eql(\"Completion Period is mandatory and its min value is one day\");\r", " }\r", ");" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"contract\": {\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"wfStatus\": \"string\",\r\n \"executingAuthority\": \"IA\",\r\n \"contractType\": \"CON-01\",\r\n \"totalContractedAmount\": {{totalEstimatedAmount}},\r\n \"securityDeposit\": 0,\r\n \"agreementDate\": 0,\r\n \"defectLiabilityPeriod\": 0,\r\n \"orgId\": \"9583cf0e-c7ae-4ca3-be3a-ad71b04745e4\",\r\n \"startDate\": 0,\r\n \"endDate\": 0,\r\n \"status\": \"ACTIVE\",\r\n // \"completionPeriod\": \"30\",\r\n \"lineItems\": [\r\n {\r\n \"estimateId\": \"{{estId-WO}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"status\": \"ACTIVE\",\r\n \"additionalDetails\": {}\r\n }\r\n ],\r\n \"documents\": [],\r\n \"processInstance\": null,\r\n \"additionalDetails\": {\r\n \"officerInChargeId\": \"SMS QA testing\",\r\n \"projectType\": \"{{projectType}}\",\r\n \"ward\": \"B1\",\r\n \"projectName\": \"{{randomWord}}\",\r\n \"orgName\": \"Automation CBO\",\r\n \"projectId\": \"{{PJNo-est}}\",\r\n \"estimateDocs\": [\r\n {\r\n \"fileName\": \"{{estfileName}}\",\r\n \"fileType\": \"{{estfileType}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"documentUid\": \"{{estfileStoreId}}\",\r\n \"fileStoreId\": \"{{estfileStoreId}}\"\r\n },\r\n {\r\n \"fileName\": \"{{estfileName}}\",\r\n \"fileType\": \"{{estfileType}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"documentUid\": \"{{estfileStoreId}}\",\r\n \"fileStoreId\": \"{{estfileStoreId}}\"\r\n },\r\n {\r\n \"fileName\": \"{{estfileName}}\",\r\n \"fileType\": \"{{estfileType}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"documentUid\": \"{{estfileStoreId}}\",\r\n \"fileStoreId\": \"{{estfileStoreId}}\"\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 \"cboName\": \"{{orgName}}\",\r\n \"cboCode\": \"{{orgId}}\",\r\n \"totalEstimatedAmount\": {{totalEstimatedAmount}},\r\n \"termsAndConditions\": [\r\n {\r\n \"description\": \"\"\r\n }\r\n ],\r\n \"locality\": \"SUN01\",\r\n \"estimateNumber\": \"{{estNo-WO}}\",\r\n \"officerInChargeDesgn\": \"Executive Engineer\",\r\n \"officerInChargeName\": {\r\n \"code\": \"SMS QA testing\",\r\n \"name\": \"SMS QA testing\"\r\n },\r\n \"projectDesc\": \"{{randomWord}}\",\r\n \"cboOrgNumber\": \"ORG-000220\"\r\n }\r\n },\r\n \"workflow\": {\r\n \"action\": \"CREATE\",\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\": \"1694151844714|en_IN\",\r\n \"plainAccessRequest\": {}\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/contract/v1/_create", "host": [ "{{base_url}}" ], "path": [ "contract", "v1", "_create" ] } }, "response": [] }, { "name": "Create Contract - Validation error - CompletionPeriod is zero", "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(\"CONTRACT.COMPLETION_PERIOD\");\r", " pm.expect(message).to.eql(\"Completion Period is mandatory and its min value is one day\");\r", " }\r", ");" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"contract\": {\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"wfStatus\": \"string\",\r\n \"executingAuthority\": \"IA\",\r\n \"contractType\": \"CON-01\",\r\n \"totalContractedAmount\": {{totalEstimatedAmount}},\r\n \"securityDeposit\": 0,\r\n \"agreementDate\": 0,\r\n \"defectLiabilityPeriod\": 0,\r\n \"orgId\": \"9583cf0e-c7ae-4ca3-be3a-ad71b04745e4\",\r\n \"startDate\": 0,\r\n \"endDate\": 0,\r\n \"status\": \"ACTIVE\",\r\n \"completionPeriod\": 0,\r\n \"lineItems\": [\r\n {\r\n \"estimateId\": \"{{estId-WO}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"status\": \"ACTIVE\",\r\n \"additionalDetails\": {}\r\n }\r\n ],\r\n \"documents\": [],\r\n \"processInstance\": null,\r\n \"additionalDetails\": {\r\n \"officerInChargeId\": \"SMS QA testing\",\r\n \"projectType\": \"{{projectType}}\",\r\n \"ward\": \"B1\",\r\n \"projectName\": \"{{randomWord}}\",\r\n \"orgName\": \"Automation CBO\",\r\n \"projectId\": \"{{PJNo-est}}\",\r\n \"estimateDocs\": [\r\n {\r\n \"fileName\": \"{{estfileName}}\",\r\n \"fileType\": \"{{estfileType}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"documentUid\": \"{{estfileStoreId}}\",\r\n \"fileStoreId\": \"{{estfileStoreId}}\"\r\n },\r\n {\r\n \"fileName\": \"{{estfileName}}\",\r\n \"fileType\": \"{{estfileType}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"documentUid\": \"{{estfileStoreId}}\",\r\n \"fileStoreId\": \"{{estfileStoreId}}\"\r\n },\r\n {\r\n \"fileName\": \"{{estfileName}}\",\r\n \"fileType\": \"{{estfileType}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"documentUid\": \"{{estfileStoreId}}\",\r\n \"fileStoreId\": \"{{estfileStoreId}}\"\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 \"cboName\": \"{{orgName}}\",\r\n \"cboCode\": \"{{orgId}}\",\r\n \"totalEstimatedAmount\": {{totalEstimatedAmount}},\r\n \"termsAndConditions\": [\r\n {\r\n \"description\": \"\"\r\n }\r\n ],\r\n \"locality\": \"SUN01\",\r\n \"estimateNumber\": \"{{estNo-WO}}\",\r\n \"officerInChargeDesgn\": \"Executive Engineer\",\r\n \"officerInChargeName\": {\r\n \"code\": \"SMS QA testing\",\r\n \"name\": \"SMS QA testing\"\r\n },\r\n \"projectDesc\": \"{{randomWord}}\",\r\n \"cboOrgNumber\": \"ORG-000220\"\r\n }\r\n },\r\n \"workflow\": {\r\n \"action\": \"CREATE\",\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\": \"1694151844714|en_IN\",\r\n \"plainAccessRequest\": {}\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/contract/v1/_create", "host": [ "{{base_url}}" ], "path": [ "contract", "v1", "_create" ] } }, "response": [] }, { "name": "Update Contract - 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(\"Contract's workflow status is Send Back\", function () {\r", " let responseData = pm.response.json();\r", " pm.expect(responseData.contracts[0].wfStatus).eq(\"PENDING_FOR_CORRECTION\");\r", "});" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"contract\": {\r\n \"id\": \"{{ContractId}}\",\r\n \"contractNumber\": \"{{ContractNumber}}\",\r\n \"supplementNumber\": null,\r\n \"versionNumber\": 0,\r\n \"oldUuid\": null,\r\n \"businessService\": null,\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"wfStatus\": \"{{wfStatus}}\",\r\n \"executingAuthority\": \"IA\",\r\n \"contractType\": \"{{contractType}}\",\r\n \"totalContractedAmount\": {{totalEstimatedAmount}},\r\n \"securityDeposit\": 0,\r\n \"agreementDate\": 0,\r\n \"issueDate\": null,\r\n \"defectLiabilityPeriod\": 0,\r\n \"orgId\": \"{{orgId}}\",\r\n \"startDate\": 0,\r\n \"endDate\": 0,\r\n \"completionPeriod\": 30,\r\n \"status\": \"INWORKFLOW\",\r\n \"lineItems\": [\r\n {\r\n \"id\": \"{{lineitem1}}\",\r\n \"estimateId\": \"{{estId-WO}}\",\r\n \"estimateLineItemId\": \"{{estLineitem1}}\",\r\n \"tenantId\": \"pg.citya\",\r\n \"unitRate\": 250.28,\r\n \"noOfunit\": 13.0,\r\n \"category\": \"NON-SOR\",\r\n \"name\": \"Testing 01\",\r\n \"status\": \"ACTIVE\",\r\n \"amountBreakups\": [\r\n {\r\n \"id\": \"{{lineamount1}}\",\r\n \"estimateAmountBreakupId\": \"{{estLineamount1}}\",\r\n \"amount\": {{totalEstimatedAmount}},\r\n \"status\": \"ACTIVE\",\r\n \"additionalDetails\": null\r\n }\r\n ],\r\n \"auditDetails\": {\r\n \"createdBy\": \"71d23f7e-30c9-4ba4-b81b-e1862cd3fd9d\",\r\n \"lastModifiedBy\": \"71d23f7e-30c9-4ba4-b81b-e1862cd3fd9d\",\r\n \"createdTime\": {{dateOfProposal}},\r\n \"lastModifiedTime\": {{dateOfProposal}}\r\n },\r\n \"additionalDetails\": null\r\n },\r\n {\r\n \"id\": \"{{lineitem2}}\",\r\n \"estimateId\": \"{{estId-WO}}\",\r\n \"estimateLineItemId\": \"{{estLineitem2}}\",\r\n \"tenantId\": \"pg.citya\",\r\n \"unitRate\": 0.0,\r\n \"noOfunit\": 0.0,\r\n \"category\": \"OVERHEAD\",\r\n \"name\": \"GST\",\r\n \"status\": \"ACTIVE\",\r\n \"amountBreakups\": [\r\n {\r\n \"id\": \"{{lineamount2}}\",\r\n \"estimateAmountBreakupId\": \"{{estLineamount2}}\",\r\n \"amount\": 585.6,\r\n \"status\": \"ACTIVE\",\r\n \"additionalDetails\": null\r\n }\r\n ],\r\n \"auditDetails\": {\r\n \"createdBy\": \"71d23f7e-30c9-4ba4-b81b-e1862cd3fd9d\",\r\n \"lastModifiedBy\": \"71d23f7e-30c9-4ba4-b81b-e1862cd3fd9d\",\r\n \"createdTime\": {{dateOfProposal}},\r\n \"lastModifiedTime\": {{dateOfProposal}}\r\n },\r\n \"additionalDetails\": {\r\n \"row\": {\r\n \"name\": {\r\n \"id\": \"2\",\r\n \"code\": \"GST\",\r\n \"name\": \"ES_COMMON_OVERHEADS_GST\",\r\n \"type\": \"percentage\",\r\n \"value\": \"18\",\r\n \"active\": true,\r\n \"description\": \"Goods and Service Tax\",\r\n \"effectiveTo\": null,\r\n \"effectiveFrom\": \"1694172775346\",\r\n \"isAutoCalculated\": true,\r\n \"isWorkOrderValue\": true\r\n },\r\n \"amount\": \"585.6\",\r\n \"percentage\": \"18 %\"\r\n }\r\n }\r\n }\r\n ],\r\n \"documents\": null,\r\n \"processInstance\": null,\r\n \"auditDetails\": {\r\n \"createdBy\": \"71d23f7e-30c9-4ba4-b81b-e1862cd3fd9d\",\r\n \"lastModifiedBy\": \"71d23f7e-30c9-4ba4-b81b-e1862cd3fd9d\",\r\n \"createdTime\": \"{{dateOfProposal}}\",\r\n \"lastModifiedTime\": {{dateOfProposal}}\r\n },\r\n \"additionalDetails\": {\r\n \"ward\": \"{{ward}}\",\r\n \"cboCode\": \"{{orgId}}\",\r\n \"locality\": \"{{locality}}\",\r\n \"projectId\": \"{{PJId-est}}\",\r\n \"projectDesc\": \"{{randomWord}}\",\r\n \"projectName\": \"{{randomWord}}\",\r\n \"projectType\": \"{{projectType}}\",\r\n \"cboOrgNumber\": \"{{cboOrgNumber}}\",\r\n \"estimateDocs\": [\r\n {\r\n \"fileName\": \"{{estfileName}}\",\r\n \"fileType\": \"{{estfileType}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"documentUid\": \"{{estfileStoreId}}\",\r\n \"fileStoreId\": \"{{estfileStoreId}}\"\r\n },\r\n {\r\n \"fileName\": \"{{estfileName}}\",\r\n \"fileType\": \"{{estfileType}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"documentUid\": \"{{estfileStoreId}}\",\r\n \"fileStoreId\": \"{{estfileStoreId}}\"\r\n },\r\n {\r\n \"fileName\": \"{{estfileName}}\",\r\n \"fileType\": \"{{estfileType}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"documentUid\": \"{{estfileStoreId}}\",\r\n \"fileStoreId\": \"{{estfileStoreId}}\"\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 \"estimateNumber\": \"{{estNo-WO}}\",\r\n \"officerInChargeId\": \"SUPERUSER\",\r\n \"termsAndConditions\": [\r\n {\r\n \"description\": \"\"\r\n }\r\n ],\r\n \"officerInChargeName\": {\r\n \"code\": \"SUPERUSER\",\r\n \"name\": \"SUPERUSER\"\r\n },\r\n \"officerInChargeDesgn\": \"Executive Engineer\",\r\n \"totalEstimatedAmount\": {{totalEstimatedAmount}}\r\n }\r\n },\r\n \"workflow\": {\r\n \"action\": \"SEND_BACK\"\r\n },\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"authToken\": \"{{auth}}\",\r\n \"userInfo\": {{userinfo}},\r\n \"msgId\": \"1694166185259|en_IN\",\r\n \"plainAccessRequest\": {}\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/contract/v1/_update", "host": [ "{{base_url}}" ], "path": [ "contract", "v1", "_update" ] } }, "response": [] }, { "name": "Update Contract - Success - WF 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(\"Contract's workflow status is Edit and Resubmit\", function () {\r", " let responseData = pm.response.json();\r", " pm.expect(responseData.contracts[0].wfStatus).eq(\"PENDING_FOR_VERIFICATION\");\r", "});" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"contract\": {\r\n \"id\": \"{{ContractId}}\",\r\n \"contractNumber\": \"{{ContractNumber}}\",\r\n \"supplementNumber\": null,\r\n \"versionNumber\": 0,\r\n \"oldUuid\": null,\r\n \"businessService\": null,\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"wfStatus\": \"{{wfStatus}}\",\r\n \"executingAuthority\": \"IA\",\r\n \"contractType\": \"{{contractType}}\",\r\n \"totalContractedAmount\": {{totalEstimatedAmount}},\r\n \"securityDeposit\": 0,\r\n \"agreementDate\": 0,\r\n \"issueDate\": null,\r\n \"defectLiabilityPeriod\": 0,\r\n \"orgId\": \"{{orgId}}\",\r\n \"startDate\": 0,\r\n \"endDate\": 0,\r\n \"completionPeriod\": 30,\r\n \"status\": \"INWORKFLOW\",\r\n \"lineItems\": [\r\n {\r\n \"id\": \"{{lineitem1}}\",\r\n \"estimateId\": \"{{estId-WO}}\",\r\n \"estimateLineItemId\": \"{{estLineitem1}}\",\r\n \"tenantId\": \"pg.citya\",\r\n \"unitRate\": 250.28,\r\n \"noOfunit\": 13.0,\r\n \"category\": \"NON-SOR\",\r\n \"name\": \"Testing 01\",\r\n \"status\": \"ACTIVE\",\r\n \"amountBreakups\": [\r\n {\r\n \"id\": \"{{lineamount1}}\",\r\n \"estimateAmountBreakupId\": \"{{estLineamount1}}\",\r\n \"amount\": {{totalEstimatedAmount}},\r\n \"status\": \"ACTIVE\",\r\n \"additionalDetails\": null\r\n }\r\n ],\r\n \"auditDetails\": {\r\n \"createdBy\": \"71d23f7e-30c9-4ba4-b81b-e1862cd3fd9d\",\r\n \"lastModifiedBy\": \"71d23f7e-30c9-4ba4-b81b-e1862cd3fd9d\",\r\n \"createdTime\": {{dateOfProposal}},\r\n \"lastModifiedTime\": {{dateOfProposal}}\r\n },\r\n \"additionalDetails\": null\r\n },\r\n {\r\n \"id\": \"{{lineitem2}}\",\r\n \"estimateId\": \"{{estId-WO}}\",\r\n \"estimateLineItemId\": \"{{estLineitem2}}\",\r\n \"tenantId\": \"pg.citya\",\r\n \"unitRate\": 0.0,\r\n \"noOfunit\": 0.0,\r\n \"category\": \"OVERHEAD\",\r\n \"name\": \"GST\",\r\n \"status\": \"ACTIVE\",\r\n \"amountBreakups\": [\r\n {\r\n \"id\": \"{{lineamount2}}\",\r\n \"estimateAmountBreakupId\": \"{{estLineamount2}}\",\r\n \"amount\": 585.6,\r\n \"status\": \"ACTIVE\",\r\n \"additionalDetails\": null\r\n }\r\n ],\r\n \"auditDetails\": {\r\n \"createdBy\": \"71d23f7e-30c9-4ba4-b81b-e1862cd3fd9d\",\r\n \"lastModifiedBy\": \"71d23f7e-30c9-4ba4-b81b-e1862cd3fd9d\",\r\n \"createdTime\": {{dateOfProposal}},\r\n \"lastModifiedTime\": {{dateOfProposal}}\r\n },\r\n \"additionalDetails\": {\r\n \"row\": {\r\n \"name\": {\r\n \"id\": \"2\",\r\n \"code\": \"GST\",\r\n \"name\": \"ES_COMMON_OVERHEADS_GST\",\r\n \"type\": \"percentage\",\r\n \"value\": \"18\",\r\n \"active\": true,\r\n \"description\": \"Goods and Service Tax\",\r\n \"effectiveTo\": null,\r\n \"effectiveFrom\": \"1694172775346\",\r\n \"isAutoCalculated\": true,\r\n \"isWorkOrderValue\": true\r\n },\r\n \"amount\": \"585.6\",\r\n \"percentage\": \"18 %\"\r\n }\r\n }\r\n }\r\n ],\r\n \"documents\": null,\r\n \"processInstance\": null,\r\n \"auditDetails\": {\r\n \"createdBy\": \"71d23f7e-30c9-4ba4-b81b-e1862cd3fd9d\",\r\n \"lastModifiedBy\": \"71d23f7e-30c9-4ba4-b81b-e1862cd3fd9d\",\r\n \"createdTime\": \"{{dateOfProposal}}\",\r\n \"lastModifiedTime\": {{dateOfProposal}}\r\n },\r\n \"additionalDetails\": {\r\n \"ward\": \"{{ward}}\",\r\n \"cboCode\": \"{{orgId}}\",\r\n \"locality\": \"{{locality}}\",\r\n \"projectId\": \"{{PJId-est}}\",\r\n \"projectDesc\": \"{{randomWord}}\",\r\n \"projectName\": \"{{randomWord}}\",\r\n \"projectType\": \"{{projectType}}\",\r\n \"cboOrgNumber\": \"{{cboOrgNumber}}\",\r\n \"estimateDocs\": [\r\n {\r\n \"fileName\": \"{{estfileName}}\",\r\n \"fileType\": \"{{estfileType}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"documentUid\": \"{{estfileStoreId}}\",\r\n \"fileStoreId\": \"{{estfileStoreId}}\"\r\n },\r\n {\r\n \"fileName\": \"{{estfileName}}\",\r\n \"fileType\": \"{{estfileType}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"documentUid\": \"{{estfileStoreId}}\",\r\n \"fileStoreId\": \"{{estfileStoreId}}\"\r\n },\r\n {\r\n \"fileName\": \"{{estfileName}}\",\r\n \"fileType\": \"{{estfileType}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"documentUid\": \"{{estfileStoreId}}\",\r\n \"fileStoreId\": \"{{estfileStoreId}}\"\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 \"estimateNumber\": \"{{estNo-WO}}\",\r\n \"officerInChargeId\": \"SUPERUSER\",\r\n \"termsAndConditions\": [\r\n {\r\n \"description\": \"\"\r\n }\r\n ],\r\n \"officerInChargeName\": {\r\n \"code\": \"SUPERUSER\",\r\n \"name\": \"SUPERUSER\"\r\n },\r\n \"officerInChargeDesgn\": \"Executive Engineer\",\r\n \"totalEstimatedAmount\": {{totalEstimatedAmount}}\r\n }\r\n },\r\n \"workflow\": {\r\n \"action\": \"EDIT\",\r\n \"assignees\": [\r\n \"{{empUserId}}\"\r\n ]\r\n},\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"authToken\": \"{{auth}}\",\r\n \"userInfo\": {{userinfo}},\r\n \"msgId\": \"1694166185259|en_IN\",\r\n \"plainAccessRequest\": {}\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/contract/v1/_update", "host": [ "{{base_url}}" ], "path": [ "contract", "v1", "_update" ] } }, "response": [] }, { "name": "Update Contract - Success - WF Verify and Forwarded", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () =>\r", " pm.expect(pm.response.to.have.status(200))\r", ");\r", "\r", "pm.test(\"Contract's workflow status is Verify and Forwarded\", function () {\r", " let responseData = pm.response.json();\r", " pm.expect(responseData.contracts[0].wfStatus).eq(\"PENDING_FOR_APPROVAL\");\r", "});" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"contract\": {\r\n \"id\": \"{{ContractId}}\",\r\n \"contractNumber\": \"{{ContractNumber}}\",\r\n \"supplementNumber\": null,\r\n \"versionNumber\": 0,\r\n \"oldUuid\": null,\r\n \"businessService\": null,\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"wfStatus\": \"{{wfStatus}}\",\r\n \"executingAuthority\": \"IA\",\r\n \"contractType\": \"{{contractType}}\",\r\n \"totalContractedAmount\": {{totalEstimatedAmount}},\r\n \"securityDeposit\": 0,\r\n \"agreementDate\": 0,\r\n \"issueDate\": null,\r\n \"defectLiabilityPeriod\": 0,\r\n \"orgId\": \"{{orgId}}\",\r\n \"startDate\": 0,\r\n \"endDate\": 0,\r\n \"completionPeriod\": 30,\r\n \"status\": \"INWORKFLOW\",\r\n \"lineItems\": [\r\n {\r\n \"id\": \"{{lineitem1}}\",\r\n \"estimateId\": \"{{estId-WO}}\",\r\n \"estimateLineItemId\": \"{{estLineitem1}}\",\r\n \"tenantId\": \"pg.citya\",\r\n \"unitRate\": 250.28,\r\n \"noOfunit\": 13.0,\r\n \"category\": \"NON-SOR\",\r\n \"name\": \"Testing 01\",\r\n \"status\": \"ACTIVE\",\r\n \"amountBreakups\": [\r\n {\r\n \"id\": \"{{lineamount1}}\",\r\n \"estimateAmountBreakupId\": \"{{estLineamount1}}\",\r\n \"amount\": {{totalEstimatedAmount}},\r\n \"status\": \"ACTIVE\",\r\n \"additionalDetails\": null\r\n }\r\n ],\r\n \"auditDetails\": {\r\n \"createdBy\": \"71d23f7e-30c9-4ba4-b81b-e1862cd3fd9d\",\r\n \"lastModifiedBy\": \"71d23f7e-30c9-4ba4-b81b-e1862cd3fd9d\",\r\n \"createdTime\": {{dateOfProposal}},\r\n \"lastModifiedTime\": {{dateOfProposal}}\r\n },\r\n \"additionalDetails\": null\r\n },\r\n {\r\n \"id\": \"{{lineitem2}}\",\r\n \"estimateId\": \"{{estId-WO}}\",\r\n \"estimateLineItemId\": \"{{estLineitem2}}\",\r\n \"tenantId\": \"pg.citya\",\r\n \"unitRate\": 0.0,\r\n \"noOfunit\": 0.0,\r\n \"category\": \"OVERHEAD\",\r\n \"name\": \"GST\",\r\n \"status\": \"ACTIVE\",\r\n \"amountBreakups\": [\r\n {\r\n \"id\": \"{{lineamount2}}\",\r\n \"estimateAmountBreakupId\": \"{{estLineamount2}}\",\r\n \"amount\": 585.6,\r\n \"status\": \"ACTIVE\",\r\n \"additionalDetails\": null\r\n }\r\n ],\r\n \"auditDetails\": {\r\n \"createdBy\": \"71d23f7e-30c9-4ba4-b81b-e1862cd3fd9d\",\r\n \"lastModifiedBy\": \"71d23f7e-30c9-4ba4-b81b-e1862cd3fd9d\",\r\n \"createdTime\": {{dateOfProposal}},\r\n \"lastModifiedTime\": {{dateOfProposal}}\r\n },\r\n \"additionalDetails\": {\r\n \"row\": {\r\n \"name\": {\r\n \"id\": \"2\",\r\n \"code\": \"GST\",\r\n \"name\": \"ES_COMMON_OVERHEADS_GST\",\r\n \"type\": \"percentage\",\r\n \"value\": \"18\",\r\n \"active\": true,\r\n \"description\": \"Goods and Service Tax\",\r\n \"effectiveTo\": null,\r\n \"effectiveFrom\": \"1694172775346\",\r\n \"isAutoCalculated\": true,\r\n \"isWorkOrderValue\": true\r\n },\r\n \"amount\": \"585.6\",\r\n \"percentage\": \"18 %\"\r\n }\r\n }\r\n }\r\n ],\r\n \"documents\": null,\r\n \"processInstance\": null,\r\n \"auditDetails\": {\r\n \"createdBy\": \"71d23f7e-30c9-4ba4-b81b-e1862cd3fd9d\",\r\n \"lastModifiedBy\": \"71d23f7e-30c9-4ba4-b81b-e1862cd3fd9d\",\r\n \"createdTime\": \"{{dateOfProposal}}\",\r\n \"lastModifiedTime\": {{dateOfProposal}}\r\n },\r\n \"additionalDetails\": {\r\n \"ward\": \"{{ward}}\",\r\n \"cboCode\": \"{{orgId}}\",\r\n \"locality\": \"{{locality}}\",\r\n \"projectId\": \"{{PJId-est}}\",\r\n \"projectDesc\": \"{{randomWord}}\",\r\n \"projectName\": \"{{randomWord}}\",\r\n \"projectType\": \"{{projectType}}\",\r\n \"cboOrgNumber\": \"{{cboOrgNumber}}\",\r\n \"estimateDocs\": [\r\n {\r\n \"fileName\": \"{{estfileName}}\",\r\n \"fileType\": \"{{estfileType}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"documentUid\": \"{{estfileStoreId}}\",\r\n \"fileStoreId\": \"{{estfileStoreId}}\"\r\n },\r\n {\r\n \"fileName\": \"{{estfileName}}\",\r\n \"fileType\": \"{{estfileType}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"documentUid\": \"{{estfileStoreId}}\",\r\n \"fileStoreId\": \"{{estfileStoreId}}\"\r\n },\r\n {\r\n \"fileName\": \"{{estfileName}}\",\r\n \"fileType\": \"{{estfileType}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"documentUid\": \"{{estfileStoreId}}\",\r\n \"fileStoreId\": \"{{estfileStoreId}}\"\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 \"estimateNumber\": \"{{estNo-WO}}\",\r\n \"officerInChargeId\": \"SUPERUSER\",\r\n \"termsAndConditions\": [\r\n {\r\n \"description\": \"\"\r\n }\r\n ],\r\n \"officerInChargeName\": {\r\n \"code\": \"SUPERUSER\",\r\n \"name\": \"SUPERUSER\"\r\n },\r\n \"officerInChargeDesgn\": \"Executive Engineer\",\r\n \"totalEstimatedAmount\": {{totalEstimatedAmount}}\r\n }\r\n },\r\n \"workflow\": {\r\n \"action\": \"VERIFY_AND_FORWARD\",\r\n \"assignees\": [\r\n \"{{empUserId}}\"\r\n ]\r\n},\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"authToken\": \"{{auth}}\",\r\n \"userInfo\": {{userinfo}},\r\n \"msgId\": \"1694166185259|en_IN\",\r\n \"plainAccessRequest\": {}\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/contract/v1/_update", "host": [ "{{base_url}}" ], "path": [ "contract", "v1", "_update" ] } }, "response": [] }, { "name": "Update Contract - Success - WF 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(\"Contract's workflow status is Approved\", function () {\r", " let responseData = pm.response.json();\r", " pm.expect(responseData.contracts[0].wfStatus).eq(\"PENDING_FOR_ACCEPTANCE\");\r", "});" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"contract\": {\r\n \"id\": \"{{ContractId}}\",\r\n \"contractNumber\": \"{{ContractNumber}}\",\r\n \"supplementNumber\": null,\r\n \"versionNumber\": 0,\r\n \"oldUuid\": null,\r\n \"businessService\": null,\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"wfStatus\": \"{{wfStatus}}\",\r\n \"executingAuthority\": \"IA\",\r\n \"contractType\": \"{{contractType}}\",\r\n \"totalContractedAmount\": {{totalEstimatedAmount}},\r\n \"securityDeposit\": 0,\r\n \"agreementDate\": 0,\r\n \"issueDate\": null,\r\n \"defectLiabilityPeriod\": 0,\r\n \"orgId\": \"{{orgId}}\",\r\n \"startDate\": 0,\r\n \"endDate\": 0,\r\n \"completionPeriod\": 30,\r\n \"status\": \"INWORKFLOW\",\r\n \"lineItems\": [\r\n {\r\n \"id\": \"{{lineitem1}}\",\r\n \"estimateId\": \"{{estId-WO}}\",\r\n \"estimateLineItemId\": \"{{estLineitem1}}\",\r\n \"tenantId\": \"pg.citya\",\r\n \"unitRate\": 250.28,\r\n \"noOfunit\": 13.0,\r\n \"category\": \"NON-SOR\",\r\n \"name\": \"Testing 01\",\r\n \"status\": \"ACTIVE\",\r\n \"amountBreakups\": [\r\n {\r\n \"id\": \"{{lineamount1}}\",\r\n \"estimateAmountBreakupId\": \"{{estLineamount1}}\",\r\n \"amount\": {{totalEstimatedAmount}},\r\n \"status\": \"ACTIVE\",\r\n \"additionalDetails\": null\r\n }\r\n ],\r\n \"auditDetails\": {\r\n \"createdBy\": \"71d23f7e-30c9-4ba4-b81b-e1862cd3fd9d\",\r\n \"lastModifiedBy\": \"71d23f7e-30c9-4ba4-b81b-e1862cd3fd9d\",\r\n \"createdTime\": {{dateOfProposal}},\r\n \"lastModifiedTime\": {{dateOfProposal}}\r\n },\r\n \"additionalDetails\": null\r\n },\r\n {\r\n \"id\": \"{{lineitem2}}\",\r\n \"estimateId\": \"{{estId-WO}}\",\r\n \"estimateLineItemId\": \"{{estLineitem2}}\",\r\n \"tenantId\": \"pg.citya\",\r\n \"unitRate\": 0.0,\r\n \"noOfunit\": 0.0,\r\n \"category\": \"OVERHEAD\",\r\n \"name\": \"GST\",\r\n \"status\": \"ACTIVE\",\r\n \"amountBreakups\": [\r\n {\r\n \"id\": \"{{lineamount2}}\",\r\n \"estimateAmountBreakupId\": \"{{estLineamount2}}\",\r\n \"amount\": 585.6,\r\n \"status\": \"ACTIVE\",\r\n \"additionalDetails\": null\r\n }\r\n ],\r\n \"auditDetails\": {\r\n \"createdBy\": \"71d23f7e-30c9-4ba4-b81b-e1862cd3fd9d\",\r\n \"lastModifiedBy\": \"71d23f7e-30c9-4ba4-b81b-e1862cd3fd9d\",\r\n \"createdTime\": {{dateOfProposal}},\r\n \"lastModifiedTime\": {{dateOfProposal}}\r\n },\r\n \"additionalDetails\": {\r\n \"row\": {\r\n \"name\": {\r\n \"id\": \"2\",\r\n \"code\": \"GST\",\r\n \"name\": \"ES_COMMON_OVERHEADS_GST\",\r\n \"type\": \"percentage\",\r\n \"value\": \"18\",\r\n \"active\": true,\r\n \"description\": \"Goods and Service Tax\",\r\n \"effectiveTo\": null,\r\n \"effectiveFrom\": \"1694172775346\",\r\n \"isAutoCalculated\": true,\r\n \"isWorkOrderValue\": true\r\n },\r\n \"amount\": \"585.6\",\r\n \"percentage\": \"18 %\"\r\n }\r\n }\r\n }\r\n ],\r\n \"documents\": null,\r\n \"processInstance\": null,\r\n \"auditDetails\": {\r\n \"createdBy\": \"71d23f7e-30c9-4ba4-b81b-e1862cd3fd9d\",\r\n \"lastModifiedBy\": \"71d23f7e-30c9-4ba4-b81b-e1862cd3fd9d\",\r\n \"createdTime\": \"{{dateOfProposal}}\",\r\n \"lastModifiedTime\": {{dateOfProposal}}\r\n },\r\n \"additionalDetails\": {\r\n \"ward\": \"{{ward}}\",\r\n \"cboCode\": \"{{orgId}}\",\r\n \"locality\": \"{{locality}}\",\r\n \"projectId\": \"{{PJId-est}}\",\r\n \"projectDesc\": \"{{randomWord}}\",\r\n \"projectName\": \"{{randomWord}}\",\r\n \"projectType\": \"{{projectType}}\",\r\n \"cboOrgNumber\": \"{{cboOrgNumber}}\",\r\n \"estimateDocs\": [\r\n {\r\n \"fileName\": \"{{estfileName}}\",\r\n \"fileType\": \"{{estfileType}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"documentUid\": \"{{estfileStoreId}}\",\r\n \"fileStoreId\": \"{{estfileStoreId}}\"\r\n },\r\n {\r\n \"fileName\": \"{{estfileName}}\",\r\n \"fileType\": \"{{estfileType}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"documentUid\": \"{{estfileStoreId}}\",\r\n \"fileStoreId\": \"{{estfileStoreId}}\"\r\n },\r\n {\r\n \"fileName\": \"{{estfileName}}\",\r\n \"fileType\": \"{{estfileType}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"documentUid\": \"{{estfileStoreId}}\",\r\n \"fileStoreId\": \"{{estfileStoreId}}\"\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 \"estimateNumber\": \"{{estNo-WO}}\",\r\n \"officerInChargeId\": \"SUPERUSER\",\r\n \"termsAndConditions\": [\r\n {\r\n \"description\": \"\"\r\n }\r\n ],\r\n \"officerInChargeName\": {\r\n \"code\": \"SUPERUSER\",\r\n \"name\": \"SUPERUSER\"\r\n },\r\n \"officerInChargeDesgn\": \"Executive Engineer\",\r\n \"totalEstimatedAmount\": {{totalEstimatedAmount}}\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 \"userInfo\":{{userinfo}},\r\n \"msgId\": \"1694166185259|en_IN\",\r\n \"plainAccessRequest\": {}\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/contract/v1/_update", "host": [ "{{base_url}}" ], "path": [ "contract", "v1", "_update" ] } }, "response": [] }, { "name": "CBO Auth Token", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () =>", " pm.expect(pm.response.to.have.status(200))", ");", "", "pm.test(\"Change auth token for workflow accept\", function () {", " let responseData = pm.response.json();", " var token = responseData.access_token;", " pm.environment.set('token', token);", " ", " var userRequestBody =responseData.UserRequest;", "", "// Store the response body in an environment variable", " pm.environment.set(\"cboUser\", JSON.stringify(userRequestBody));", " var cboUid = responseData.UserRequest.uuid;", " pm.environment.set(\"cboUid\",cboUid);", "});" ], "type": "text/javascript", "packages": {} } }, { "listen": "prerequest", "script": { "packages": {}, "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "authority", "value": "unified-dev.digit.org", "uuid": "e9f6e603-a6d0-4a78-ae49-50e401844a85" }, { "key": "accept", "value": "*/*", "uuid": "f5959164-4afd-4338-b960-3509c45d4dc7" }, { "key": "accept-language", "value": "en-GB,en-US;q=0.9,en;q=0.8", "uuid": "7b66ecfe-5e72-41df-b460-81110d433982" }, { "key": "access-control-allow-origin", "value": "*", "uuid": "a90be3c1-e994-4bda-aed7-e89325ef6c4f" }, { "key": "authorization", "value": "Basic ZWdvdi11c2VyLWNsaWVudDo=", "uuid": "b21744be-c070-4fbb-93a4-f0c790f1d57e" }, { "key": "cookie", "value": "_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; _ga_XBQP06FR8V=GS1.1.1700469736.4.0.1700469739.57.0.0; _oauth2_proxy=eyJFbWFpbCI6ImFuc2guZ295YWxAZWdvdmVybm1lbnRzLm9yZyIsIlVzZXIiOiJhbnNoLWVnb3YifQ==|1700724084|8Aayfxx0DRsJ4Lgw6jJiVnYjs_k=; __cuid=44ff2be0a12e4499973904b80d92ef3d; _ga_6130JJKLD4=GS1.1.1701163100.2.1.1701163237.24.0.0; amp_fef1e8=21a46ed7-716d-4b59-aa13-c513dd00a213R...1hgajhup1.1hgajq2p8.la.48.pi", "uuid": "76c8a72a-c736-4264-a439-2fd5eb3eff70" }, { "key": "origin", "value": "https://unified-dev.digit.org", "uuid": "f96cb6c7-03e3-4cbb-9f97-d1fc1a15f734" }, { "key": "referer", "value": "https://unified-dev.digit.org/works-shg-app/otp", "uuid": "ef08808e-eac9-4581-8156-444c7a7ce30a" }, { "key": "sec-ch-ua", "value": "\"Chromium\";v=\"118\", \"Google Chrome\";v=\"118\", \"Not=A?Brand\";v=\"99\"", "uuid": "9a1f5541-3227-4dc3-a66a-c520b3e906a6" }, { "key": "sec-ch-ua-mobile", "value": "?0", "uuid": "0910350c-b0bf-41e3-80cf-5af5518c38d4" }, { "key": "sec-ch-ua-platform", "value": "\"Linux\"", "uuid": "e850b5bd-a1fc-4fdb-8089-6fcc85d95a50" }, { "key": "sec-fetch-dest", "value": "empty", "uuid": "2972a711-e813-4fc9-83bc-16bd4fb29ab2" }, { "key": "sec-fetch-mode", "value": "cors", "uuid": "264e841e-3b97-490b-8e63-d3fef575224e" }, { "key": "sec-fetch-site", "value": "same-origin", "uuid": "0d59e2cc-72ef-4483-bb55-c8243f08ef1a" }, { "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", "uuid": "d9ba0835-1b9e-42b0-af91-ea40ee5b7fb5" } ], "body": { "mode": "formdata", "formdata": [ { "key": "username", "value": "{{cboUserName}}", "type": "text" }, { "key": "password", "value": "{{cboPass}}", "type": "text" }, { "key": "userType", "value": "CITIZEN", "type": "text" }, { "key": "tenantId", "value": "{{tenantId}}", "type": "text" }, { "key": "scope", "value": "read", "type": "text" }, { "key": "grant_type", "value": "password", "type": "text" } ] }, "url": { "raw": "{{base_url}}/user/oauth/token", "host": [ "{{base_url}}" ], "path": [ "user", "oauth", "token" ] } }, "response": [] }, { "name": "Update Contract - Success - WF Accepted", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () =>\r", " pm.expect(pm.response.to.have.status(200))\r", ");\r", "\r", "pm.test(\"Contract's workflow status is Accept\", function () {\r", " let responseData = pm.response.json();\r", " pm.expect(responseData.contracts[0].wfStatus).eq(\"ACCEPTED\");\r", "});" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"contract\": {\r\n \"id\": \"{{ContractId}}\",\r\n \"contractNumber\": \"{{ContractNumber}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"status\": \"INWORKFLOW\",\r\n \"endDate\": 0,\r\n \"startDate\": 1694111400000,\r\n \"agreementDate\": 0,\r\n \"completionPeriod\": 30,\r\n \"contractType\": \"{{contractType}}\",\r\n \"defectLiabilityPeriod\": 0,\r\n \"executingAuthority\": \"IA\",\r\n \"issueDate\": 1694179071576,\r\n \"orgId\": \"{{orgId}}\",\r\n \"securityDeposit\": 0,\r\n \"wfStatus\": \"{{wfStatus}}\",\r\n \"totalContractedAmount\": \"{{totalEstimatedAmount}}\",\r\n \"lineItems\": [\r\n {\r\n \"id\": \"{{lineitem1}}\",\r\n \"status\": \"ACTIVE\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"name\": null,\r\n \"auditDetails\": {\r\n \"createdTime\": \"{{dateOfProposal}}\",\r\n \"lastModifiedTime\": \"{{dateOfProposal}}\",\r\n \"createdBy\": \"{{empUserId}}\",\r\n \"lastModifiedBy\": \"{{empUserId}}\"\r\n },\r\n \"amountBreakups\": [\r\n {\r\n \"id\": \"{{lineamount1}}\",\r\n \"status\": \"ACTIVE\",\r\n \"additionalDetails\": null,\r\n \"amount\": \"10012\",\r\n \"estimateAmountBreakupId\": \"{{estLineamount1}}\"\r\n }\r\n ],\r\n \"category\": null,\r\n \"estimateId\": \"{{estId-WO}}\",\r\n \"estimateLineItemId\": \"{{estLineitem1}}\",\r\n \"noOfunit\": 13,\r\n \"unitRate\": 250.28\r\n },\r\n {\r\n \"id\": \"{{lineitem2}}\",\r\n \"status\": \"ACTIVE\",\r\n \"tenantId\": \"pg.citya\",\r\n \"name\": null,\r\n \"auditDetails\": {\r\n \"createdTime\": \"{{dateOfProposal}}\",\r\n \"lastModifiedTime\": \"{{dateOfProposal}}\",\r\n \"createdBy\": \"{{empUserId}}\",\r\n \"lastModifiedBy\": \"{{empUserId}}\"\r\n },\r\n \"amountBreakups\": [\r\n {\r\n \"id\": \"{{lineamount2}}\",\r\n \"status\": \"ACTIVE\",\r\n \"additionalDetails\": null,\r\n \"amount\": \"585.6\",\r\n \"estimateAmountBreakupId\": \"{{estLineamount2}}\"\r\n }\r\n ],\r\n \"category\": null,\r\n \"estimateId\": \"{{estId-WO}}\",\r\n \"estimateLineItemId\": \"{{estLineitem2}}\",\r\n \"noOfunit\": 0,\r\n \"unitRate\": 0\r\n }\r\n ],\r\n \"documents\": null,\r\n \"processInstance\": null,\r\n \"additionalDetails\": {\r\n \"officerInChargeId\": \"SUPERUSER\",\r\n \"attendanceRegisterNumber\": null,\r\n \"cboOrgNumber\": \"{{cboOrgNumber}}\",\r\n \"projectId\": \"{{PJId-est}}\",\r\n \"projectType\": \"{{projectType}}\",\r\n \"orgName\": \"{{orgName}}\",\r\n \"projectName\": \"{{randomWord}}\",\r\n \"ward\": \"{{ward}}\",\r\n \"locality\": \"{{locality}}\",\r\n \"cboCode\": \"{{orgId}}\",\r\n \"cboName\": null,\r\n \"estimateDocs\": [\r\n {\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"documentUid\": \"{{estfileStoreId}}\",\r\n \"fileStoreId\": \"{{estfileStoreId}}\",\r\n \"fileName\": \"{{estfileName}}\",\r\n \"fileType\": \"{{estfileType}}\"\r\n },\r\n {\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"documentUid\": \"{{estfileStoreId}}\",\r\n \"fileStoreId\": \"{{estfileStoreId}}\",\r\n \"fileName\": \"{{estfileName}}\",\r\n \"fileType\": \"{{estfileType}}\"\r\n },\r\n {\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"documentUid\": \"{{estfileStoreId}}\",\r\n \"fileStoreId\": \"{{estfileStoreId}}\",\r\n \"fileName\": \"{{estfileName}}\",\r\n \"fileType\": \"{{estfileType}}\"\r\n },\r\n {\r\n \"tenantId\": null,\r\n \"documentUid\": null,\r\n \"fileStoreId\": null,\r\n \"fileName\": null,\r\n \"fileType\": \"ESTIMATE_DOC_DESIGN_DOCUMENT\"\r\n },\r\n {\r\n \"tenantId\": null,\r\n \"documentUid\": null,\r\n \"fileStoreId\": null,\r\n \"fileName\": \"\",\r\n \"fileType\": \"Others\"\r\n }\r\n ],\r\n \"estimateNumber\": \"{{estNo-WO}}\",\r\n \"totalEstimatedAmount\": \"{{totalEstimatedAmount}}\",\r\n \"completionPeriod\": null,\r\n \"termsAndConditions\": [\r\n {\r\n \"description\": \"\"\r\n }\r\n ],\r\n \"projectDesc\": \"{{randomWord}}\",\r\n \"officerInChargeName\": {\r\n \"code\": \"SUPERUSER\",\r\n \"name\": \"SUPERUSER\"\r\n },\r\n \"officerInChargeDesgn\": \"Executive Engineer\",\r\n \"timeExtReason\": null,\r\n \"timeExt\": null\r\n },\r\n \"auditDetails\": {\r\n \"createdTime\": \"{{dateOfProposal}}\",\r\n \"lastModifiedTime\": \"{{dateOfProposal}}\",\r\n \"createdBy\": \"{{empUserId}}\",\r\n \"lastModifiedBy\": \"{{empUserId}}\"\r\n },\r\n \"businessService\": null,\r\n \"supplementNumber\": null\r\n },\r\n \"workflow\": {\r\n \"action\": \"ACCEPT\",\r\n \"comment\": \"Work Order has been accepted by CBO\",\r\n \"assignees\": []\r\n },\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"authToken\": \"{{token}}\",\r\n \"msgId\": \"1694166185259|en_IN\",\r\n \"plainAccessRequest\": {}\r\n }\r\n}\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/contract/v1/_update", "host": [ "{{base_url}}" ], "path": [ "contract", "v1", "_update" ] } }, "response": [] }, { "name": "Update Contract - Validation error - TenantId is null", "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(\"NotNull.contractRequest.contract.tenantId\");\r", " pm.expect(message).to.eql(\"must not be null\");\r", " }\r", ");" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"contract\": {\r\n \"id\": \"{{ContractId}}\",\r\n \"contractNumber\": \"{{ContractNumber}}\",\r\n \"supplementNumber\": null,\r\n \"versionNumber\": 0,\r\n \"oldUuid\": null,\r\n \"businessService\": null,\r\n \"tenantId\": null,\r\n \"wfStatus\": \"{{wfStatus}}\",\r\n \"executingAuthority\": \"IA\",\r\n \"contractType\": \"{{contractType}}\",\r\n \"totalContractedAmount\": {{totalEstimatedAmount}},\r\n \"securityDeposit\": 0,\r\n \"agreementDate\": 0,\r\n \"issueDate\": null,\r\n \"defectLiabilityPeriod\": 0,\r\n \"orgId\": \"{{orgId}}\",\r\n \"startDate\": 0,\r\n \"endDate\": 0,\r\n \"completionPeriod\": 30,\r\n \"status\": \"INWORKFLOW\",\r\n \"lineItems\": [\r\n {\r\n \"id\": \"{{lineitem1}}\",\r\n \"estimateId\": \"{{estId-WO}}\",\r\n \"estimateLineItemId\": \"{{estLineitem1}}\",\r\n \"tenantId\": \"pg.citya\",\r\n \"unitRate\": 250.28,\r\n \"noOfunit\": 13.0,\r\n \"category\": \"NON-SOR\",\r\n \"name\": \"Testing 01\",\r\n \"status\": \"ACTIVE\",\r\n \"amountBreakups\": [\r\n {\r\n \"id\": \"{{lineamount1}}\",\r\n \"estimateAmountBreakupId\": \"{{estLineamount1}}\",\r\n \"amount\": {{totalEstimatedAmount}},\r\n \"status\": \"ACTIVE\",\r\n \"additionalDetails\": null\r\n }\r\n ],\r\n \"auditDetails\": {\r\n \"createdBy\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\r\n \"lastModifiedBy\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\r\n \"createdTime\": {{dateOfProposal}},\r\n \"lastModifiedTime\": {{dateOfProposal}}\r\n },\r\n \"additionalDetails\": null\r\n },\r\n {\r\n \"id\": \"{{lineitem2}}\",\r\n \"estimateId\": \"{{estId-WO}}\",\r\n \"estimateLineItemId\": \"{{estLineitem2}}\",\r\n \"tenantId\": \"pg.citya\",\r\n \"unitRate\": 0.0,\r\n \"noOfunit\": 0.0,\r\n \"category\": \"OVERHEAD\",\r\n \"name\": \"GST\",\r\n \"status\": \"ACTIVE\",\r\n \"amountBreakups\": [\r\n {\r\n \"id\": \"{{lineamount2}}\",\r\n \"estimateAmountBreakupId\": \"{{estLineamount2}}\",\r\n \"amount\": 585.6,\r\n \"status\": \"ACTIVE\",\r\n \"additionalDetails\": null\r\n }\r\n ],\r\n \"auditDetails\": {\r\n \"createdBy\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\r\n \"lastModifiedBy\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\r\n \"createdTime\": {{dateOfProposal}},\r\n \"lastModifiedTime\": {{dateOfProposal}}\r\n },\r\n \"additionalDetails\": {\r\n \"row\": {\r\n \"name\": {\r\n \"id\": \"2\",\r\n \"code\": \"GST\",\r\n \"name\": \"ES_COMMON_OVERHEADS_GST\",\r\n \"type\": \"percentage\",\r\n \"value\": \"18\",\r\n \"active\": true,\r\n \"description\": \"Goods and Service Tax\",\r\n \"effectiveTo\": null,\r\n \"effectiveFrom\": \"1694172775346\",\r\n \"isAutoCalculated\": true,\r\n \"isWorkOrderValue\": true\r\n },\r\n \"amount\": \"585.6\",\r\n \"percentage\": \"18 %\"\r\n }\r\n }\r\n }\r\n ],\r\n \"documents\": null,\r\n \"processInstance\": null,\r\n \"auditDetails\": {\r\n \"createdBy\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\r\n \"lastModifiedBy\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\r\n \"createdTime\": \"{{dateOfProposal}}\",\r\n \"lastModifiedTime\": {{dateOfProposal}}\r\n },\r\n \"additionalDetails\": {\r\n \"ward\": \"{{ward}}\",\r\n \"cboCode\": \"{{orgId}}\",\r\n \"locality\": \"{{locality}}\",\r\n \"projectId\": \"{{PJId-est}}\",\r\n \"projectDesc\": \"{{randomWord}}\",\r\n \"projectName\": \"{{randomWord}}\",\r\n \"projectType\": \"{{projectType}}\",\r\n \"cboOrgNumber\": \"{{cboOrgNumber}}\",\r\n \"estimateDocs\": [\r\n {\r\n \"fileName\": \"{{estfileName}}\",\r\n \"fileType\": \"{{estfileType}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"documentUid\": \"{{estfileStoreId}}\",\r\n \"fileStoreId\": \"{{estfileStoreId}}\"\r\n },\r\n {\r\n \"fileName\": \"{{estfileName}}\",\r\n \"fileType\": \"{{estfileType}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"documentUid\": \"{{estfileStoreId}}\",\r\n \"fileStoreId\": \"{{estfileStoreId}}\"\r\n },\r\n {\r\n \"fileName\": \"{{estfileName}}\",\r\n \"fileType\": \"{{estfileType}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"documentUid\": \"{{estfileStoreId}}\",\r\n \"fileStoreId\": \"{{estfileStoreId}}\"\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 \"estimateNumber\": \"{{estNo-WO}}\",\r\n \"officerInChargeId\": \"SMS QA testing\",\r\n \"termsAndConditions\": [\r\n {\r\n \"description\": \"\"\r\n }\r\n ],\r\n \"officerInChargeName\": {\r\n \"code\": \"SMS QA testing\",\r\n \"name\": \"SMS QA testing\"\r\n },\r\n \"officerInChargeDesgn\": \"Executive Engineer\",\r\n \"totalEstimatedAmount\": {{totalEstimatedAmount}}\r\n }\r\n },\r\n \"workflow\": {\r\n \"action\": \"ACCEPT\",\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\": \"1694166185259|en_IN\",\r\n \"plainAccessRequest\": {}\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/contract/v1/_update", "host": [ "{{base_url}}" ], "path": [ "contract", "v1", "_update" ] } }, "response": [] }, { "name": "Update Contract - Validation error - OrgId is null", "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(\"CONTRACT.ORGNISATIONID\");\r", " pm.expect(message).to.eql(\"OrgnisationId is mandatory\");\r", " }\r", ");" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"contract\": {\r\n \"id\": \"{{ContractId}}\",\r\n \"contractNumber\": \"{{ContractNumber}}\",\r\n \"supplementNumber\": null,\r\n \"versionNumber\": 0,\r\n \"oldUuid\": null,\r\n \"businessService\": null,\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"wfStatus\": \"{{wfStatus}}\",\r\n \"executingAuthority\": \"IA\",\r\n \"contractType\": \"{{contractType}}\",\r\n \"totalContractedAmount\": {{totalEstimatedAmount}},\r\n \"securityDeposit\": 0,\r\n \"agreementDate\": 0,\r\n \"issueDate\": null,\r\n \"defectLiabilityPeriod\": 0,\r\n \"orgId\": null,\r\n \"startDate\": 0,\r\n \"endDate\": 0,\r\n \"completionPeriod\": 30,\r\n \"status\": \"INWORKFLOW\",\r\n \"lineItems\": [\r\n {\r\n \"id\": \"{{lineitem1}}\",\r\n \"estimateId\": \"{{estId-WO}}\",\r\n \"estimateLineItemId\": \"{{estLineitem1}}\",\r\n \"tenantId\": \"pg.citya\",\r\n \"unitRate\": 250.28,\r\n \"noOfunit\": 13.0,\r\n \"category\": \"NON-SOR\",\r\n \"name\": \"Testing 01\",\r\n \"status\": \"ACTIVE\",\r\n \"amountBreakups\": [\r\n {\r\n \"id\": \"{{lineamount1}}\",\r\n \"estimateAmountBreakupId\": \"{{estLineamount1}}\",\r\n \"amount\": {{totalEstimatedAmount}},\r\n \"status\": \"ACTIVE\",\r\n \"additionalDetails\": null\r\n }\r\n ],\r\n \"auditDetails\": {\r\n \"createdBy\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\r\n \"lastModifiedBy\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\r\n \"createdTime\": {{dateOfProposal}},\r\n \"lastModifiedTime\": {{dateOfProposal}}\r\n },\r\n \"additionalDetails\": null\r\n },\r\n {\r\n \"id\": \"{{lineitem2}}\",\r\n \"estimateId\": \"{{estId-WO}}\",\r\n \"estimateLineItemId\": \"{{estLineitem2}}\",\r\n \"tenantId\": \"pg.citya\",\r\n \"unitRate\": 0.0,\r\n \"noOfunit\": 0.0,\r\n \"category\": \"OVERHEAD\",\r\n \"name\": \"GST\",\r\n \"status\": \"ACTIVE\",\r\n \"amountBreakups\": [\r\n {\r\n \"id\": \"{{lineamount2}}\",\r\n \"estimateAmountBreakupId\": \"{{estLineamount2}}\",\r\n \"amount\": 585.6,\r\n \"status\": \"ACTIVE\",\r\n \"additionalDetails\": null\r\n }\r\n ],\r\n \"auditDetails\": {\r\n \"createdBy\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\r\n \"lastModifiedBy\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\r\n \"createdTime\": {{dateOfProposal}},\r\n \"lastModifiedTime\": {{dateOfProposal}}\r\n },\r\n \"additionalDetails\": {\r\n \"row\": {\r\n \"name\": {\r\n \"id\": \"2\",\r\n \"code\": \"GST\",\r\n \"name\": \"ES_COMMON_OVERHEADS_GST\",\r\n \"type\": \"percentage\",\r\n \"value\": \"18\",\r\n \"active\": true,\r\n \"description\": \"Goods and Service Tax\",\r\n \"effectiveTo\": null,\r\n \"effectiveFrom\": \"1694172775346\",\r\n \"isAutoCalculated\": true,\r\n \"isWorkOrderValue\": true\r\n },\r\n \"amount\": \"585.6\",\r\n \"percentage\": \"18 %\"\r\n }\r\n }\r\n }\r\n ],\r\n \"documents\": null,\r\n \"processInstance\": null,\r\n \"auditDetails\": {\r\n \"createdBy\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\r\n \"lastModifiedBy\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\r\n \"createdTime\": \"{{dateOfProposal}}\",\r\n \"lastModifiedTime\": {{dateOfProposal}}\r\n },\r\n \"additionalDetails\": {\r\n \"ward\": \"{{ward}}\",\r\n \"cboCode\": \"{{orgId}}\",\r\n \"locality\": \"{{locality}}\",\r\n \"projectId\": \"{{PJId-est}}\",\r\n \"projectDesc\": \"{{randomWord}}\",\r\n \"projectName\": \"{{randomWord}}\",\r\n \"projectType\": \"{{projectType}}\",\r\n \"cboOrgNumber\": \"{{cboOrgNumber}}\",\r\n \"estimateDocs\": [\r\n {\r\n \"fileName\": \"{{estfileName}}\",\r\n \"fileType\": \"{{estfileType}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"documentUid\": \"{{estfileStoreId}}\",\r\n \"fileStoreId\": \"{{estfileStoreId}}\"\r\n },\r\n {\r\n \"fileName\": \"{{estfileName}}\",\r\n \"fileType\": \"{{estfileType}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"documentUid\": \"{{estfileStoreId}}\",\r\n \"fileStoreId\": \"{{estfileStoreId}}\"\r\n },\r\n {\r\n \"fileName\": \"{{estfileName}}\",\r\n \"fileType\": \"{{estfileType}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"documentUid\": \"{{estfileStoreId}}\",\r\n \"fileStoreId\": \"{{estfileStoreId}}\"\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 \"estimateNumber\": \"{{estNo-WO}}\",\r\n \"officerInChargeId\": \"SMS QA testing\",\r\n \"termsAndConditions\": [\r\n {\r\n \"description\": \"\"\r\n }\r\n ],\r\n \"officerInChargeName\": {\r\n \"code\": \"SMS QA testing\",\r\n \"name\": \"SMS QA testing\"\r\n },\r\n \"officerInChargeDesgn\": \"Executive Engineer\",\r\n \"totalEstimatedAmount\": {{totalEstimatedAmount}}\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 \"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\": \"1694166185259|en_IN\",\r\n \"plainAccessRequest\": {}\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/contract/v1/_update", "host": [ "{{base_url}}" ], "path": [ "contract", "v1", "_update" ] } }, "response": [] }, { "name": "Search Contract - Success - Search by WO Id", "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 ContractId = res.contracts[0].id;\r", " pm.expect(ContractId).to.eql(pm.collectionVariables.get(\"ContractId\"));\r", " }\r", ");\r", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"RequestInfo\": {\r\n \"apiId\": \"mukta-services\",\r\n \"ver\": null,\r\n \"ts\": null,\r\n \"action\": null,\r\n \"did\": null,\r\n \"key\": null,\r\n \"msgId\": \"Search Contract\",\r\n \"authToken\": \"{{auth}}\"\r\n },\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"ids\": [\r\n \"{{ContractId}}\"\r\n ],\r\n \"estimateIds\": [],\r\n \"estimateLineItemIds\": [],\r\n \"contractType\": \"\",\r\n \"orgIds\": [],\r\n \"contractNumber\": \"\",\r\n \"fromDate\": null,\r\n \"toDate\": null,\r\n \"pagination\": {\r\n \"limit\": \"10\",\r\n \"offSet\": \"\",\r\n \"sortBy\": \"\",\r\n \"order\": \"desc\"\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/contract/v1/_search?tenantId={{tenantId}}", "host": [ "{{base_url}}" ], "path": [ "contract", "v1", "_search" ], "query": [ { "key": "tenantId", "value": "{{tenantId}}" } ] } }, "response": [] }, { "name": "Search Contract - Success - Search by estimateId", "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 estimateId = res.contracts[0].estimateId;\r", "// pm.expect(estimateId).to.eql(pm.collectionVariables.get(\"estimateId\"));\r", "// }\r", "// );\r", "\r", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"RequestInfo\": {\r\n \"apiId\": \"mukta-services\",\r\n \"ver\": null,\r\n \"ts\": null,\r\n \"action\": null,\r\n \"did\": null,\r\n \"key\": null,\r\n \"msgId\": \"Search Contract\",\r\n \"authToken\": \"{{auth}}\"\r\n },\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"ids\": [\r\n \r\n ],\r\n \"estimateIds\": [\"{{estimateId}}\"],\r\n \"estimateLineItemIds\": [],\r\n \"contractType\": \"\",\r\n \"orgIds\": [],\r\n \"contractNumber\": \"\",\r\n \"fromDate\": null,\r\n \"toDate\": null,\r\n \"pagination\": {\r\n \"limit\": \"10\",\r\n \"offSet\": \"\",\r\n \"sortBy\": \"\",\r\n \"order\": \"desc\"\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/contract/v1/_search?tenantId={{tenantId}}", "host": [ "{{base_url}}" ], "path": [ "contract", "v1", "_search" ], "query": [ { "key": "tenantId", "value": "{{tenantId}}" } ] } }, "response": [] }, { "name": "Search Contract - Success - Search by Contract Type", "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 contractType = res.contracts[0].contractType;\r", " pm.expect(contractType).to.eql(pm.collectionVariables.get(\"contractType\"));\r", " }\r", ");\r", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"RequestInfo\": {\r\n \"apiId\": \"mukta-services\",\r\n \"ver\": null,\r\n \"ts\": null,\r\n \"action\": null,\r\n \"did\": null,\r\n \"key\": null,\r\n \"msgId\": \"Search Contract\",\r\n \"authToken\": \"{{auth}}\"\r\n },\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"ids\": [\r\n \r\n ],\r\n \"estimateIds\": [],\r\n \"estimateLineItemIds\": [],\r\n \"contractType\": \"{{contractType}}\",\r\n \"orgIds\": [],\r\n \"contractNumber\": \"\",\r\n \"fromDate\": null,\r\n \"toDate\": null,\r\n \"pagination\": {\r\n \"limit\": \"10\",\r\n \"offSet\": \"\",\r\n \"sortBy\": \"\",\r\n \"order\": \"desc\"\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/contract/v1/_search?tenantId={{tenantId}}", "host": [ "{{base_url}}" ], "path": [ "contract", "v1", "_search" ], "query": [ { "key": "tenantId", "value": "{{tenantId}}" } ] } }, "response": [] }, { "name": "Search Contract - Success - Search by Contract Number", "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 contractNumber = res.contracts[0].contractNumber;\r", " pm.expect(contractNumber).to.eql(pm.collectionVariables.get(\"ContractNumber\"));\r", " \r", " }\r", ");\r", "\r", "pm.test(\"Contract's search is successful\", function () {\r", " let responseData = pm.response.json();\r", " \r", " pm.collectionVariables.set('wfStatus', responseData.contracts[0].wfStatus);\r", " pm.collectionVariables.set('status', responseData.contracts[0].status);\r", " pm.collectionVariables.set(\"startDate\", responseData.contracts[0].startDate);\r", " pm.collectionVariables.set(\"endDate\", responseData.contracts[0].endDate);\r", " pm.environment.set('lMTime', responseData.contracts[0].auditDetails.lastModifiedTime);\r", " pm.environment.set(\"contractLineItemRef1\", responseData.contracts[0].lineItems[0].contractLineItemRef);\r", " pm.environment.set(\"contractLineItemRef2\", responseData.contracts[0].lineItems[1].contractLineItemRef);\r", " pm.environment.set(\"MB-CO\", responseData.contracts[0].contractNumber);\r", " pm.environment.set(\"entryDate\",responseData.contracts[0].startDate);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"RequestInfo\": {\r\n \"apiId\": \"mukta-services\",\r\n \"ver\": null,\r\n \"ts\": null,\r\n \"action\": null,\r\n \"did\": null,\r\n \"key\": null,\r\n \"msgId\": \"Search Contract\",\r\n \"authToken\": \"{{auth}}\"\r\n },\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"ids\": [\r\n ],\r\n \"estimateIds\": [],\r\n \"estimateLineItemIds\": [],\r\n \"contractType\": \"\",\r\n \"orgIds\": [],\r\n \"contractNumber\": \"{{ContractNumber}}\",\r\n \"fromDate\": null,\r\n \"toDate\": null,\r\n \"pagination\": {\r\n \"limit\": \"10\",\r\n \"offSet\": \"\",\r\n \"sortBy\": \"\",\r\n \"order\": \"desc\"\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/contract/v1/_search?tenantId={{tenantId}}", "host": [ "{{base_url}}" ], "path": [ "contract", "v1", "_search" ], "query": [ { "key": "tenantId", "value": "{{tenantId}}" } ] } }, "response": [] }, { "name": "Search Contract - Success - Search by From and To date", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () =>\r", " pm.expect(pm.response.to.have.status(200))\r", ");\r", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"RequestInfo\": {\r\n \"apiId\": \"mukta-services\",\r\n \"ver\": null,\r\n \"ts\": null,\r\n \"action\": null,\r\n \"did\": null,\r\n \"key\": null,\r\n \"msgId\": \"Search Contract\",\r\n \"authToken\": \"{{auth}}\"\r\n },\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"ids\": [\r\n ],\r\n \"estimateIds\": [],\r\n \"estimateLineItemIds\": [],\r\n \"contractType\": \"\",\r\n \"orgIds\": [],\r\n \"contractNumber\": \"\",\r\n \"fromDate\": {{createdTime}},\r\n \"toDate\": {{lastModifiedTime}},\r\n \"pagination\": {\r\n \"limit\": \"10\",\r\n \"offSet\": \"\",\r\n \"sortBy\": \"\",\r\n \"order\": \"desc\"\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/contract/v1/_search?tenantId={{tenantId}}", "host": [ "{{base_url}}" ], "path": [ "contract", "v1", "_search" ], "query": [ { "key": "tenantId", "value": "{{tenantId}}" } ] } }, "response": [] }, { "name": "Search Contract - 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 toDate without a fromDate\");\r", " }\r", ");" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"RequestInfo\": {\r\n \"apiId\": \"mukta-services\",\r\n \"ver\": null,\r\n \"ts\": null,\r\n \"action\": null,\r\n \"did\": null,\r\n \"key\": null,\r\n \"msgId\": \"Search Contract\",\r\n \"authToken\": \"{{auth}}\"\r\n },\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"ids\": [\r\n ],\r\n \"estimateIds\": [],\r\n \"estimateLineItemIds\": [],\r\n \"contractType\": \"\",\r\n \"orgIds\": [],\r\n \"contractNumber\": \"\",\r\n \"toDate\": {{lastModifiedTime}},\r\n \"pagination\": {\r\n \"limit\": \"10\",\r\n \"offSet\": \"\",\r\n \"sortBy\": \"\",\r\n \"order\": \"desc\"\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/contract/v1/_search?tenantId={{tenantId}}", "host": [ "{{base_url}}" ], "path": [ "contract", "v1", "_search" ], "query": [ { "key": "tenantId", "value": "{{tenantId}}" } ] } }, "response": [] } ] }, { "name": "Measurement service Test Script", "item": [ { "name": "Measurement Create-Success", "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {} } }, { "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(\"Auth-Token is required\", function () {\r", " var req = JSON.parse(pm.request.body.raw);\r", " var RequestInfo = req.RequestInfo;\r", " pm.expect(RequestInfo.authToken).to.not.be.null;\r", " pm.expect(RequestInfo.authToken).to.not.be.undefined;\r", " pm.expect(RequestInfo.authToken).to.not.eql(\"\"); \r", "});\r", "\r", "pm.test(\"TenantId is required\", function () {\r", " var req = JSON.parse(pm.request.body.raw);\r", " if(req && req.length>0){\r", " for(let i=0;i0){\r", " for(let i=0;i0){\r", " for(let i=0;i0){\r", " for(let i=0;i0){\r", " for(let i=0;i0){\r", "// for(let i=0;i0){\r", "// for(let i=0;i\r", " pm.expect(pm.response.code===200||pm.response.code===202).to.be.true\r", ");\r", " pm.test(\"Measurement's workflow status is submitted\", function () {\r", " let responseData = pm.response.json();\r", " pm.expect(responseData.measurements[0].wfStatus).eq(\"SUBMITTED\");\r", " pm.collectionVariables.set(\"wfStatus\", responseData.measurements[0].status);\r", "});\r", " " ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json", "uuid": "f2b9ea5f-2793-44ed-b8c6-db557673411d" } ], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"Rainmaker\",\n \"authToken\": \"{{auth}}\",\n \"userInfo\": {\n \"id\": 965,\n \"uuid\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"userName\": \"AUTO2\",\n \"name\": \"AUTO\",\n \"mobileNumber\": \"9999999999\",\n \"emailId\": null,\n \"locale\": null,\n \"type\": \"EMPLOYEE\",\n \"roles\": [\n {\n \"name\": \"HRMS Admin\",\n \"code\": \"HRMS_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER VIEWER\",\n \"code\": \"WORK_ORDER_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"National Dashboard Admin\",\n \"code\": \"NATADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Application Viewer\",\n \"code\": \"BIRTH_APPLICATION_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Redressal Officer\",\n \"code\": \"RO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Bill Creator\",\n \"code\": \"WORKS_BILL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collection Report Viewer\",\n \"code\": \"COLL_REP_VIEW\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Contractor Advance creator\",\n \"code\": \"CONTRACTOR_ADVANCE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Approver\",\n \"code\": \"WORKS_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Receipt Cancellator\",\n \"code\": \"CR_WS\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Approver\",\n \"code\": \"PROPERTY_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Approver\",\n \"code\": \"TL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOI APPROVER\",\n \"code\": \"LOI_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST CREATOR\",\n \"code\": \"EST_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Fire Noc Department Approver\",\n \"code\": \"FIRE_NOC_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"HCM SYSTEM ADMINISTRATOR\",\n \"code\": \"SYSTEM_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Field Inspector\",\n \"code\": \"PT_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Abstract Estimate Creator\",\n \"code\": \"AE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ULB Administrator\",\n \"code\": \"PTADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUKTA Admin\",\n \"code\": \"MUKTA_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Administrator\",\n \"code\": \"WORKS_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Builder\",\n \"code\": \"BPA_BUILDER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Voucher Creator\",\n \"code\": \"EGF_VOUCHER_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collections Remitter\",\n \"code\": \"COLL_REMIT_TO_BANK\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE APPROVER\",\n \"code\": \"ESTIMATE_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Auto Escalation Employee\",\n \"code\": \"AUTO_ESCALATE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_VERIFIER\",\n \"code\": \"MB_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST FIN SANC\",\n \"code\": \"EST_FIN_SANC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PGR Last Mile Employee\",\n \"code\": \"PGR_LME\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"DEATH Application Editor\",\n \"code\": \"DEATH_APPLICATION_EDITOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUSTER ROLL APPROVER\",\n \"code\": \"MUSTER_ROLL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Approver\",\n \"code\": \"WS_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Voucher Approver\",\n \"code\": \"EGF_VOUCHER_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM TP OPERATOR\",\n \"code\": \"PQM_TP_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Grivance Administrator\",\n \"code\": \"GA\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_ACCOUNTANT\",\n \"code\": \"BILL_ACCOUNTANT\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_VERIFIER\",\n \"code\": \"BILL_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Counter Employee\",\n \"code\": \"TL_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Tax Collection Employee\",\n \"code\": \"PT_COLLECTION_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Report Viewer\",\n \"code\": \"TL_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Desluding Operator\",\n \"code\": \"FSM_DSO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Application Viewer\",\n \"code\": \"FSM_VIEW_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPAREG doc verifier\",\n \"code\": \"BPAREG_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Asset Administrator\",\n \"code\": \"ASSET_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PGR Administrator\",\n \"code\": \"PGR-ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Field Employee\",\n \"code\": \"FEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Counter Employee\",\n \"code\": \"CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Death Application Viewer\",\n \"code\": \"DEATH_APPLICATION_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Admin of a ULB\",\n \"code\": \"CITY_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_CREATOR\",\n \"code\": \"BILL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collection Operator\",\n \"code\": \"COLL_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Application Editor\",\n \"code\": \"FSM_EDITOR_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPAREG Approver\",\n \"code\": \"BPAREG_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Driver\",\n \"code\": \"FSM_DRIVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER CREATOR\",\n \"code\": \"WORK_ORDER_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Death Application Creator\",\n \"code\": \"DEATH_APPLICATION_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Internal Microservice Role\",\n \"code\": \"INTERNAL_MICROSERVICE_ROLE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"AssetCreator\",\n \"code\": \"AssetCreator\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EGF Bill Creator\",\n \"code\": \"EGF_BILL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Employee Finance\",\n \"code\": \"EMPLOYEE_FINANCE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Sanitation Helper\",\n \"code\": \"SANITATION_HELPER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Legacy Receipt Creator\",\n \"code\": \"LEGACY_RECEIPT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"QA Automation\",\n \"code\": \"QA_AUTOMATION\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_CREATOR\",\n \"code\": \"MB_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Field Inspector\",\n \"code\": \"TL_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Organization admin\",\n \"code\": \"ORG_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_APPROVER\",\n \"code\": \"BILL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Architect\",\n \"code\": \"BPA_ARCHITECT\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUSTER ROLL VERIFIER\",\n \"code\": \"MUSTER_ROLL_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Field Inspector\",\n \"code\": \"BPA_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Employee Common\",\n \"code\": \"EMPLOYEE_COMMON\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Localisation admin\",\n \"code\": \"LOC_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_VIEWER\",\n \"code\": \"BILL_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Services verifier\",\n \"code\": \"BPA_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Engineer\",\n \"code\": \"BPA_ENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM FSTP Opperator\",\n \"code\": \"FSM_EMP_FSTPO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Universal Collection Employee\",\n \"code\": \"UC_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC Field Inpector\",\n \"code\": \"NOC_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Application Creator\",\n \"code\": \"FSM_CREATOR_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Counter Approver\",\n \"code\": \"PT_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST TECH SANC\",\n \"code\": \"EST_ADMIN_SANC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE CREATOR\",\n \"code\": \"ESTIMATE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM Admin\",\n \"code\": \"PQM_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC Doc Verifier\",\n \"code\": \"NOC_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Anonymous User\",\n \"code\": \"ANONYMOUS\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Citizen Feedback Centre\",\n \"code\": \"CFC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"State Dashboard Admin\",\n \"code\": \"STADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Financials Approver\",\n \"code\": \"WORKS_FINANCIAL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE VERIFIER\",\n \"code\": \"ESTIMATE_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PTIS Master\",\n \"code\": \"PTIS_MASTER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"CSC Collection Operator\",\n \"code\": \"CSC_COLL_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Report Viewer\",\n \"code\": \"BIRTH_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOI CREATOR\",\n \"code\": \"LOI_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ULB Operator\",\n \"code\": \"ULB_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Commissioner\",\n \"code\": \"COMMISSIONER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EGF Bill Approver\",\n \"code\": \"EGF_BILL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Payment Creator\",\n \"code\": \"EGF_PAYMENT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC counter Approver\",\n \"code\": \"NOC_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Sanitation Worker\",\n \"code\": \"SANITATION_WORKER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Structural Engineer\",\n \"code\": \"BPA_STRUCTURALENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"OFFICER IN CHARGE\",\n \"code\": \"OFFICER_IN_CHARGE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Department Grievance Routing Officer\",\n \"code\": \"DGRO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Services Approver\",\n \"code\": \"BPA_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PROJECT CREATOR\",\n \"code\": \"PROJECT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Water Report Viewer\",\n \"code\": \"WATER_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Master Admin\",\n \"code\": \"EGF_MASTER_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Town Planner\",\n \"code\": \"BPA_TOWNPLANNER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EMPLOYEE ADMIN\",\n \"code\": \"EMPLOYEE_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Adminsitrator\",\n \"code\": \"EGF_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Payment Collector\",\n \"code\": \"FSM_COLLECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Report Viewer\",\n \"code\": \"PT_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Sewerage Report Viewer\",\n \"code\": \"SEWERAGE_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_APPROVER\",\n \"code\": \"MB_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Supervisor\",\n \"code\": \"BPA_SUPERVISOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Application Creator\",\n \"code\": \"BIRTH_APPLICATION_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Any User\",\n \"code\": \"ANONYMUS\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Field Inspector\",\n \"code\": \"WS_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Verifier\",\n \"code\": \"PROPERTY_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Payment Approver\",\n \"code\": \"EGF_PAYMENT_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth and Death Dashboard User\",\n \"code\": \"DASHBOARD_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM CRONJOB SCHEDULER\",\n \"code\": \"PQM_CRONJOB_SCHEDULER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Report Viewer\",\n \"code\": \"FSM_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST TECH SANC\",\n \"code\": \"EST_TECH_SANC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Auto Escalation Supervisor\",\n \"code\": \"SUPERVISOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER VERIFIER\",\n \"code\": \"WORK_ORDER_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Detailed Estimate Creator\",\n \"code\": \"DE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"AssetReportViewer\",\n \"code\": \"AssetReportViewer\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Approver\",\n \"code\": \"SW_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth and Death User\",\n \"code\": \"BND_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TECHNICAL SANCTIONER\",\n \"code\": \"TECHNICAL_SANCTIONER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Master creator\",\n \"code\": \"WORKS_MASTER_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Application Editor\",\n \"code\": \"BIRTH_APPLICATION_EDITOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Death Report Viewer\",\n \"code\": \"DEATH_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"National Dashboard Systeme user\",\n \"code\": \"NDA_SYSTEM\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Fire Noc Report Viewer\",\n \"code\": \"FIRENOC_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SUPER USER\",\n \"code\": \"SUPERUSER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA NOC Verifier\",\n \"code\": \"BPA_NOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Dashboard Viewer\",\n \"code\": \"FSM_DASHBOARD_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Employee\",\n \"code\": \"EMPLOYEE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collections Receipt Creator\",\n \"code\": \"COLL_RECEIPT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Doc Verifier\",\n \"code\": \"PT_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Administrator\",\n \"code\": \"FSM_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"OBPS Report Viewer\",\n \"code\": \"OBPS_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Bank Collection Operator\",\n \"code\": \"BANK_COLL_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"CBO ADMIN\",\n \"code\": \"CBO_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Airport authority Approver\",\n \"code\": \"AIRPORT_AUTHORITY_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Admin\",\n \"code\": \"TL_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Creator\",\n \"code\": \"TL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Field Inspector\",\n \"code\": \"SW_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Customer Support Representative\",\n \"code\": \"CSR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Reindexing Role\",\n \"code\": \"REINDEXING_ROLE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WO Creator\",\n \"code\": \"WO_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Counter Employee\",\n \"code\": \"PT_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PTIS Admin\",\n \"code\": \"PTIS_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL doc verifier\",\n \"code\": \"TL_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE VIEWER\",\n \"code\": \"ESTIMATE_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Tax Receipt Cancellator\",\n \"code\": \"CR_PT\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Counter Employee\",\n \"code\": \"WS_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST_CHECKER\",\n \"code\": \"EST_CHECKER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"JUNIOR ENGINEER\",\n \"code\": \"JUNIOR_ENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOI CHECKER\",\n \"code\": \"LOI_CHECKER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC counter employee\",\n \"code\": \"NOC_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOA Creator\",\n \"code\": \"LOA_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Report View\",\n \"code\": \"EGF_REPORT_VIEW\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Document Verifier\",\n \"code\": \"WS_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PROJECT VIEWER\",\n \"code\": \"PROJECT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Grievance Routing Officer\",\n \"code\": \"GRO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Organization staff\",\n \"code\": \"ORG_STAFF\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Document Verifier\",\n \"code\": \"SW_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUNICIPAL ENGINEER\",\n \"code\": \"MUNICIPAL_ENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Clerk\",\n \"code\": \"SW_CLERK\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM Lab Operator\",\n \"code\": \"PQM_LAB_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER APPROVER\",\n \"code\": \"WORK_ORDER_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Grievance Officer\",\n \"code\": \"GO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Clerk\",\n \"code\": \"WS_CLERK\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Counter Employee\",\n \"code\": \"SW_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MDMS Admin\",\n \"code\": \"MDMS_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPAREG Employee\",\n \"code\": \"BPAREG_EMPLOYEE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_VIEWER\",\n \"code\": \"MB_VIEWER\",\n \"tenantId\": \"pg.citya\"\n }\n ],\n \"active\": true,\n \"tenantId\": \"pg.citya\",\n \"permanentCity\": null\n },\n \"msgId\": \"1695707627807|en_IN\",\n \"plainAccessRequest\": {}\n },\n \"measurements\": [\n {\n \"id\": \"{{measurementId}}\",\n \"tenantId\": \"{{tenantId}}\",\n \"measurementNumber\": \"{{MBno}}\",\n \"physicalRefNumber\": \"{{phrefnum}}\",\n \"referenceId\": \"{{MB-CO}}\",\n \"entryDate\": \"{{entryDate}}\",\n \"measures\": [\n {\n \"id\": \"{{measureId1}}\",\n \"referenceId\": \"{{refId}}\",\n \"targetId\": \"{{contractLineItemRef1}}\",\n \"length\": 0,\n \"breadth\": 0,\n \"height\": 0,\n \"numItems\": 0.0,\n \"currentValue\": 0.0,\n \"cumulativeValue\": 0.0,\n \"isActive\": true,\n \"comments\": null,\n \"documents\": null,\n \"auditDetails\": {\n \"createdBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"lastModifiedBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"createdTime\": {{createdTime}},\n \"lastModifiedTime\": {{lastModifiedTime}}\n },\n \"additionalDetails\": {\n \"type\": \"SOR\",\n \"mbAmount\": 520\n }\n },\n {\n \"id\": \"{{measureId2}}\",\n \"referenceId\": \"{{refId}}\",\n \"targetId\": \"{{contractLineItemRef2}}\",\n \"length\": 0,\n \"breadth\": 0,\n \"height\": 0,\n \"numItems\": 0.0,\n \"currentValue\": 0.0,\n \"cumulativeValue\": 0.0,\n \"isActive\": true,\n \"comments\": null,\n \"documents\": null,\n \"auditDetails\": {\n \"createdBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"lastModifiedBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"createdTime\": {{createdTime}},\n \"lastModifiedTime\": {{lastModifiedTime}}\n },\n \"additionalDetails\": {\n \"type\": \"SOR\",\n \"mbAmount\": 530\n }\n }\n ],\n \"isActive\": true,\n \"documents\": [],\n \"auditDetails\": {\n \"createdBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"lastModifiedBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"createdTime\": {{createdTime}},\n \"lastModifiedTime\": {{lastModifiedTime}}\n },\n \"additionalDetails\": {\n \"sorAmount\": 8000,\n \"totalAmount\": 0\n },\n \"wfStatus\": \"PENDING_FOR_VERIFICATION\",\n \"workflow\": {\n \"action\": \"SUBMIT\",\n \"assignes\": [],\n \"comments\": \"check\",\n \"verificationDocuments\": [\n {\n \"id\": null,\n \"documentType\": \"string\",\n \"fileStore\": \"be14ceb8-01ba-485b-a6e2-489e5474a576\",\n \"documentUid\": \"string\",\n \"additionalDetails\": {}\n }\n ]\n }\n }\n ]\n}" }, "url": { "raw": "{{base_url}}/measurement-service/v1/_update", "host": [ "{{base_url}}" ], "path": [ "measurement-service", "v1", "_update" ] } }, "response": [] }, { "name": "Measurement Update-Success-WF Sent_Back", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () =>\r", " pm.expect(pm.response.code===200||pm.response.code===202).to.be.true\r", ");\r", "\r", "pm.test(\"Measurement's workflow status is Send back\", function () {\r", " let responseData = pm.response.json();\r", " pm.expect(responseData.measurements[0].wfStatus).eq(\"SENT_BACK\");\r", " pm.collectionVariables.set(\"wfStatus\", responseData.measurements[0].status);\r", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json", "uuid": "7349b8d5-1689-4b2f-a3e3-29337b6dc367" } ], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"Rainmaker\",\n \"authToken\": \"{{auth}}\",\n \"userInfo\": {\n \"id\": 965,\n \"uuid\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"userName\": \"AUTO2\",\n \"name\": \"AUTO\",\n \"mobileNumber\": \"9999999999\",\n \"emailId\": null,\n \"locale\": null,\n \"type\": \"EMPLOYEE\",\n \"roles\": [\n {\n \"name\": \"HRMS Admin\",\n \"code\": \"HRMS_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER VIEWER\",\n \"code\": \"WORK_ORDER_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"National Dashboard Admin\",\n \"code\": \"NATADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Application Viewer\",\n \"code\": \"BIRTH_APPLICATION_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Redressal Officer\",\n \"code\": \"RO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Bill Creator\",\n \"code\": \"WORKS_BILL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collection Report Viewer\",\n \"code\": \"COLL_REP_VIEW\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Contractor Advance creator\",\n \"code\": \"CONTRACTOR_ADVANCE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Approver\",\n \"code\": \"WORKS_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Receipt Cancellator\",\n \"code\": \"CR_WS\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Approver\",\n \"code\": \"PROPERTY_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Approver\",\n \"code\": \"TL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOI APPROVER\",\n \"code\": \"LOI_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST CREATOR\",\n \"code\": \"EST_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Fire Noc Department Approver\",\n \"code\": \"FIRE_NOC_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"HCM SYSTEM ADMINISTRATOR\",\n \"code\": \"SYSTEM_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Field Inspector\",\n \"code\": \"PT_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Abstract Estimate Creator\",\n \"code\": \"AE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ULB Administrator\",\n \"code\": \"PTADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUKTA Admin\",\n \"code\": \"MUKTA_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Administrator\",\n \"code\": \"WORKS_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Builder\",\n \"code\": \"BPA_BUILDER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Voucher Creator\",\n \"code\": \"EGF_VOUCHER_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collections Remitter\",\n \"code\": \"COLL_REMIT_TO_BANK\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE APPROVER\",\n \"code\": \"ESTIMATE_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Auto Escalation Employee\",\n \"code\": \"AUTO_ESCALATE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_VERIFIER\",\n \"code\": \"MB_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST FIN SANC\",\n \"code\": \"EST_FIN_SANC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PGR Last Mile Employee\",\n \"code\": \"PGR_LME\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"DEATH Application Editor\",\n \"code\": \"DEATH_APPLICATION_EDITOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUSTER ROLL APPROVER\",\n \"code\": \"MUSTER_ROLL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Approver\",\n \"code\": \"WS_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Voucher Approver\",\n \"code\": \"EGF_VOUCHER_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM TP OPERATOR\",\n \"code\": \"PQM_TP_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Grivance Administrator\",\n \"code\": \"GA\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_ACCOUNTANT\",\n \"code\": \"BILL_ACCOUNTANT\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_VERIFIER\",\n \"code\": \"BILL_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Counter Employee\",\n \"code\": \"TL_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Tax Collection Employee\",\n \"code\": \"PT_COLLECTION_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Report Viewer\",\n \"code\": \"TL_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Desluding Operator\",\n \"code\": \"FSM_DSO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Application Viewer\",\n \"code\": \"FSM_VIEW_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPAREG doc verifier\",\n \"code\": \"BPAREG_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Asset Administrator\",\n \"code\": \"ASSET_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PGR Administrator\",\n \"code\": \"PGR-ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Field Employee\",\n \"code\": \"FEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Counter Employee\",\n \"code\": \"CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Death Application Viewer\",\n \"code\": \"DEATH_APPLICATION_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Admin of a ULB\",\n \"code\": \"CITY_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_CREATOR\",\n \"code\": \"BILL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collection Operator\",\n \"code\": \"COLL_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Application Editor\",\n \"code\": \"FSM_EDITOR_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPAREG Approver\",\n \"code\": \"BPAREG_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Driver\",\n \"code\": \"FSM_DRIVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER CREATOR\",\n \"code\": \"WORK_ORDER_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Death Application Creator\",\n \"code\": \"DEATH_APPLICATION_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Internal Microservice Role\",\n \"code\": \"INTERNAL_MICROSERVICE_ROLE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"AssetCreator\",\n \"code\": \"AssetCreator\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EGF Bill Creator\",\n \"code\": \"EGF_BILL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Employee Finance\",\n \"code\": \"EMPLOYEE_FINANCE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Sanitation Helper\",\n \"code\": \"SANITATION_HELPER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Legacy Receipt Creator\",\n \"code\": \"LEGACY_RECEIPT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"QA Automation\",\n \"code\": \"QA_AUTOMATION\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_CREATOR\",\n \"code\": \"MB_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Field Inspector\",\n \"code\": \"TL_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Organization admin\",\n \"code\": \"ORG_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_APPROVER\",\n \"code\": \"BILL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Architect\",\n \"code\": \"BPA_ARCHITECT\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUSTER ROLL VERIFIER\",\n \"code\": \"MUSTER_ROLL_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Field Inspector\",\n \"code\": \"BPA_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Employee Common\",\n \"code\": \"EMPLOYEE_COMMON\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Localisation admin\",\n \"code\": \"LOC_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_VIEWER\",\n \"code\": \"BILL_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Services verifier\",\n \"code\": \"BPA_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Engineer\",\n \"code\": \"BPA_ENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM FSTP Opperator\",\n \"code\": \"FSM_EMP_FSTPO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Universal Collection Employee\",\n \"code\": \"UC_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC Field Inpector\",\n \"code\": \"NOC_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Application Creator\",\n \"code\": \"FSM_CREATOR_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Counter Approver\",\n \"code\": \"PT_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST TECH SANC\",\n \"code\": \"EST_ADMIN_SANC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE CREATOR\",\n \"code\": \"ESTIMATE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM Admin\",\n \"code\": \"PQM_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC Doc Verifier\",\n \"code\": \"NOC_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Anonymous User\",\n \"code\": \"ANONYMOUS\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Citizen Feedback Centre\",\n \"code\": \"CFC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"State Dashboard Admin\",\n \"code\": \"STADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Financials Approver\",\n \"code\": \"WORKS_FINANCIAL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE VERIFIER\",\n \"code\": \"ESTIMATE_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PTIS Master\",\n \"code\": \"PTIS_MASTER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"CSC Collection Operator\",\n \"code\": \"CSC_COLL_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Report Viewer\",\n \"code\": \"BIRTH_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOI CREATOR\",\n \"code\": \"LOI_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ULB Operator\",\n \"code\": \"ULB_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Commissioner\",\n \"code\": \"COMMISSIONER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EGF Bill Approver\",\n \"code\": \"EGF_BILL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Payment Creator\",\n \"code\": \"EGF_PAYMENT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC counter Approver\",\n \"code\": \"NOC_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Sanitation Worker\",\n \"code\": \"SANITATION_WORKER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Structural Engineer\",\n \"code\": \"BPA_STRUCTURALENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"OFFICER IN CHARGE\",\n \"code\": \"OFFICER_IN_CHARGE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Department Grievance Routing Officer\",\n \"code\": \"DGRO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Services Approver\",\n \"code\": \"BPA_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PROJECT CREATOR\",\n \"code\": \"PROJECT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Water Report Viewer\",\n \"code\": \"WATER_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Master Admin\",\n \"code\": \"EGF_MASTER_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Town Planner\",\n \"code\": \"BPA_TOWNPLANNER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EMPLOYEE ADMIN\",\n \"code\": \"EMPLOYEE_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Adminsitrator\",\n \"code\": \"EGF_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Payment Collector\",\n \"code\": \"FSM_COLLECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Report Viewer\",\n \"code\": \"PT_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Sewerage Report Viewer\",\n \"code\": \"SEWERAGE_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_APPROVER\",\n \"code\": \"MB_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Supervisor\",\n \"code\": \"BPA_SUPERVISOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Application Creator\",\n \"code\": \"BIRTH_APPLICATION_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Any User\",\n \"code\": \"ANONYMUS\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Field Inspector\",\n \"code\": \"WS_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Verifier\",\n \"code\": \"PROPERTY_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Payment Approver\",\n \"code\": \"EGF_PAYMENT_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth and Death Dashboard User\",\n \"code\": \"DASHBOARD_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM CRONJOB SCHEDULER\",\n \"code\": \"PQM_CRONJOB_SCHEDULER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Report Viewer\",\n \"code\": \"FSM_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST TECH SANC\",\n \"code\": \"EST_TECH_SANC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Auto Escalation Supervisor\",\n \"code\": \"SUPERVISOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER VERIFIER\",\n \"code\": \"WORK_ORDER_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Detailed Estimate Creator\",\n \"code\": \"DE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"AssetReportViewer\",\n \"code\": \"AssetReportViewer\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Approver\",\n \"code\": \"SW_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth and Death User\",\n \"code\": \"BND_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TECHNICAL SANCTIONER\",\n \"code\": \"TECHNICAL_SANCTIONER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Master creator\",\n \"code\": \"WORKS_MASTER_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Application Editor\",\n \"code\": \"BIRTH_APPLICATION_EDITOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Death Report Viewer\",\n \"code\": \"DEATH_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"National Dashboard Systeme user\",\n \"code\": \"NDA_SYSTEM\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Fire Noc Report Viewer\",\n \"code\": \"FIRENOC_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SUPER USER\",\n \"code\": \"SUPERUSER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA NOC Verifier\",\n \"code\": \"BPA_NOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Dashboard Viewer\",\n \"code\": \"FSM_DASHBOARD_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Employee\",\n \"code\": \"EMPLOYEE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collections Receipt Creator\",\n \"code\": \"COLL_RECEIPT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Doc Verifier\",\n \"code\": \"PT_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Administrator\",\n \"code\": \"FSM_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"OBPS Report Viewer\",\n \"code\": \"OBPS_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Bank Collection Operator\",\n \"code\": \"BANK_COLL_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"CBO ADMIN\",\n \"code\": \"CBO_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Airport authority Approver\",\n \"code\": \"AIRPORT_AUTHORITY_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Admin\",\n \"code\": \"TL_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Creator\",\n \"code\": \"TL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Field Inspector\",\n \"code\": \"SW_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Customer Support Representative\",\n \"code\": \"CSR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Reindexing Role\",\n \"code\": \"REINDEXING_ROLE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WO Creator\",\n \"code\": \"WO_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Counter Employee\",\n \"code\": \"PT_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PTIS Admin\",\n \"code\": \"PTIS_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL doc verifier\",\n \"code\": \"TL_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE VIEWER\",\n \"code\": \"ESTIMATE_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Tax Receipt Cancellator\",\n \"code\": \"CR_PT\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Counter Employee\",\n \"code\": \"WS_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST_CHECKER\",\n \"code\": \"EST_CHECKER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"JUNIOR ENGINEER\",\n \"code\": \"JUNIOR_ENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOI CHECKER\",\n \"code\": \"LOI_CHECKER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC counter employee\",\n \"code\": \"NOC_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOA Creator\",\n \"code\": \"LOA_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Report View\",\n \"code\": \"EGF_REPORT_VIEW\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Document Verifier\",\n \"code\": \"WS_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PROJECT VIEWER\",\n \"code\": \"PROJECT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Grievance Routing Officer\",\n \"code\": \"GRO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Organization staff\",\n \"code\": \"ORG_STAFF\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Document Verifier\",\n \"code\": \"SW_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUNICIPAL ENGINEER\",\n \"code\": \"MUNICIPAL_ENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Clerk\",\n \"code\": \"SW_CLERK\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM Lab Operator\",\n \"code\": \"PQM_LAB_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER APPROVER\",\n \"code\": \"WORK_ORDER_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Grievance Officer\",\n \"code\": \"GO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Clerk\",\n \"code\": \"WS_CLERK\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Counter Employee\",\n \"code\": \"SW_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MDMS Admin\",\n \"code\": \"MDMS_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPAREG Employee\",\n \"code\": \"BPAREG_EMPLOYEE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_VIEWER\",\n \"code\": \"MB_VIEWER\",\n \"tenantId\": \"pg.citya\"\n }\n ],\n \"active\": true,\n \"tenantId\": \"pg.citya\",\n \"permanentCity\": null\n },\n \"msgId\": \"1695707627807|en_IN\",\n \"plainAccessRequest\": {}\n },\n \"measurements\": [\n {\n \"id\": \"{{measurementId}}\",\n \"tenantId\": \"{{tenantId}}\",\n \"measurementNumber\": \"{{MBno}}\",\n \"physicalRefNumber\": \"{{phrefnum}}\",\n \"referenceId\": \"{{MB-CO}}\",\n \"entryDate\": \"{{entryDate}}\",\n \"measures\": [\n {\n \"id\": \"{{measureId1}}\",\n \"referenceId\": \"{{refId}}\",\n \"targetId\": \"{{contractLineItemRef1}}\",\n \"length\": 1,\n \"breadth\": 1,\n \"height\": 1,\n \"numItems\": 1.0,\n \"currentValue\": 1.0,\n \"cumulativeValue\": 1.0,\n \"isActive\": true,\n \"comments\": null,\n \"documents\": null,\n \"auditDetails\": {\n \"createdBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"lastModifiedBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"createdTime\": {{createdTime}},\n \"lastModifiedTime\": {{lastModifiedTime}}\n },\n \"additionalDetails\": {\n \"type\": \"SOR\",\n \"mbAmount\": 520\n }\n },\n {\n \"id\": \"{{measureId2}}\",\n \"referenceId\": \"{{refId}}\",\n \"targetId\": \"{{contractLineItemRef2}}\",\n \"length\": 0,\n \"breadth\": 0,\n \"height\": 0,\n \"numItems\": 0.0,\n \"currentValue\": 0.0,\n \"cumulativeValue\": 0.0,\n \"isActive\": true,\n \"comments\": null,\n \"documents\": null,\n \"auditDetails\": {\n \"createdBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"lastModifiedBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"createdTime\": {{createdTime}},\n \"lastModifiedTime\": {{lastModifiedTime}}\n },\n \"additionalDetails\": {\n \"type\": \"SOR\",\n \"mbAmount\": 530\n }\n }\n ],\n \"isActive\": true,\n \"documents\": [],\n \"auditDetails\": {\n \"createdBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"lastModifiedBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"createdTime\": {{createdTime}},\n \"lastModifiedTime\": {{lastModifiedTime}}\n },\n \"additionalDetails\": {\n \"sorAmount\": 8000,\n \"totalAmount\": 0\n },\n \"wfStatus\": \"PENDING_FOR_CORRECTION\",\n \"workflow\": {\n \"action\": \"SENT_BACK\",\n \"assignes\": [],\n \"comments\": \"check\",\n \"verificationDocuments\": [\n {\n \"id\": null,\n \"documentType\": \"string\",\n \"fileStore\": \"be14ceb8-01ba-485b-a6e2-489e5474a576\",\n \"documentUid\": \"string\",\n \"additionalDetails\": {}\n }\n ]\n }\n }\n ]\n}" }, "url": { "raw": "{{base_url}}/measurement-service/v1/_update", "host": [ "{{base_url}}" ], "path": [ "measurement-service", "v1", "_update" ] } }, "response": [] }, { "name": "Measurement Update-Success-WF Edit and Re-submit", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () =>\r", " pm.expect(pm.response.code === 200 || pm.response.code === 202).to.be.true\r", ");\r", "\r", "pm.test(\"Measurement's workflow status is submitted\", function () {\r", " let responseData = pm.response.json();\r", " pm.expect(responseData.measurements[0].wfStatus).eq(\"SUBMITTED\");\r", " pm.collectionVariables.set(\"wfStatus\", responseData.measurements[0].status);\r", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json", "uuid": "32e9f594-eb16-4c80-8223-d475240943bb" } ], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"Rainmaker\",\n \"authToken\": \"{{auth}}\",\n \"userInfo\": {\n \"id\": 965,\n \"uuid\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"userName\": \"AUTO2\",\n \"name\": \"AUTO\",\n \"mobileNumber\": \"9999999999\",\n \"emailId\": null,\n \"locale\": null,\n \"type\": \"EMPLOYEE\",\n \"roles\": [\n {\n \"name\": \"HRMS Admin\",\n \"code\": \"HRMS_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER VIEWER\",\n \"code\": \"WORK_ORDER_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"National Dashboard Admin\",\n \"code\": \"NATADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Application Viewer\",\n \"code\": \"BIRTH_APPLICATION_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Redressal Officer\",\n \"code\": \"RO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Bill Creator\",\n \"code\": \"WORKS_BILL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collection Report Viewer\",\n \"code\": \"COLL_REP_VIEW\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Contractor Advance creator\",\n \"code\": \"CONTRACTOR_ADVANCE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Approver\",\n \"code\": \"WORKS_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Receipt Cancellator\",\n \"code\": \"CR_WS\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Approver\",\n \"code\": \"PROPERTY_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Approver\",\n \"code\": \"TL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOI APPROVER\",\n \"code\": \"LOI_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST CREATOR\",\n \"code\": \"EST_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Fire Noc Department Approver\",\n \"code\": \"FIRE_NOC_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"HCM SYSTEM ADMINISTRATOR\",\n \"code\": \"SYSTEM_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Field Inspector\",\n \"code\": \"PT_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Abstract Estimate Creator\",\n \"code\": \"AE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ULB Administrator\",\n \"code\": \"PTADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUKTA Admin\",\n \"code\": \"MUKTA_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Administrator\",\n \"code\": \"WORKS_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Builder\",\n \"code\": \"BPA_BUILDER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Voucher Creator\",\n \"code\": \"EGF_VOUCHER_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collections Remitter\",\n \"code\": \"COLL_REMIT_TO_BANK\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE APPROVER\",\n \"code\": \"ESTIMATE_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Auto Escalation Employee\",\n \"code\": \"AUTO_ESCALATE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_VERIFIER\",\n \"code\": \"MB_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST FIN SANC\",\n \"code\": \"EST_FIN_SANC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PGR Last Mile Employee\",\n \"code\": \"PGR_LME\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"DEATH Application Editor\",\n \"code\": \"DEATH_APPLICATION_EDITOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUSTER ROLL APPROVER\",\n \"code\": \"MUSTER_ROLL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Approver\",\n \"code\": \"WS_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Voucher Approver\",\n \"code\": \"EGF_VOUCHER_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM TP OPERATOR\",\n \"code\": \"PQM_TP_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Grivance Administrator\",\n \"code\": \"GA\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_ACCOUNTANT\",\n \"code\": \"BILL_ACCOUNTANT\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_VERIFIER\",\n \"code\": \"BILL_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Counter Employee\",\n \"code\": \"TL_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Tax Collection Employee\",\n \"code\": \"PT_COLLECTION_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Report Viewer\",\n \"code\": \"TL_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Desluding Operator\",\n \"code\": \"FSM_DSO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Application Viewer\",\n \"code\": \"FSM_VIEW_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPAREG doc verifier\",\n \"code\": \"BPAREG_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Asset Administrator\",\n \"code\": \"ASSET_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PGR Administrator\",\n \"code\": \"PGR-ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Field Employee\",\n \"code\": \"FEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Counter Employee\",\n \"code\": \"CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Death Application Viewer\",\n \"code\": \"DEATH_APPLICATION_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Admin of a ULB\",\n \"code\": \"CITY_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_CREATOR\",\n \"code\": \"BILL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collection Operator\",\n \"code\": \"COLL_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Application Editor\",\n \"code\": \"FSM_EDITOR_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPAREG Approver\",\n \"code\": \"BPAREG_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Driver\",\n \"code\": \"FSM_DRIVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER CREATOR\",\n \"code\": \"WORK_ORDER_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Death Application Creator\",\n \"code\": \"DEATH_APPLICATION_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Internal Microservice Role\",\n \"code\": \"INTERNAL_MICROSERVICE_ROLE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"AssetCreator\",\n \"code\": \"AssetCreator\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EGF Bill Creator\",\n \"code\": \"EGF_BILL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Employee Finance\",\n \"code\": \"EMPLOYEE_FINANCE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Sanitation Helper\",\n \"code\": \"SANITATION_HELPER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Legacy Receipt Creator\",\n \"code\": \"LEGACY_RECEIPT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"QA Automation\",\n \"code\": \"QA_AUTOMATION\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_CREATOR\",\n \"code\": \"MB_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Field Inspector\",\n \"code\": \"TL_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Organization admin\",\n \"code\": \"ORG_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_APPROVER\",\n \"code\": \"BILL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Architect\",\n \"code\": \"BPA_ARCHITECT\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUSTER ROLL VERIFIER\",\n \"code\": \"MUSTER_ROLL_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Field Inspector\",\n \"code\": \"BPA_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Employee Common\",\n \"code\": \"EMPLOYEE_COMMON\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Localisation admin\",\n \"code\": \"LOC_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_VIEWER\",\n \"code\": \"BILL_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Services verifier\",\n \"code\": \"BPA_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Engineer\",\n \"code\": \"BPA_ENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM FSTP Opperator\",\n \"code\": \"FSM_EMP_FSTPO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Universal Collection Employee\",\n \"code\": \"UC_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC Field Inpector\",\n \"code\": \"NOC_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Application Creator\",\n \"code\": \"FSM_CREATOR_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Counter Approver\",\n \"code\": \"PT_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST TECH SANC\",\n \"code\": \"EST_ADMIN_SANC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE CREATOR\",\n \"code\": \"ESTIMATE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM Admin\",\n \"code\": \"PQM_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC Doc Verifier\",\n \"code\": \"NOC_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Anonymous User\",\n \"code\": \"ANONYMOUS\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Citizen Feedback Centre\",\n \"code\": \"CFC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"State Dashboard Admin\",\n \"code\": \"STADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Financials Approver\",\n \"code\": \"WORKS_FINANCIAL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE VERIFIER\",\n \"code\": \"ESTIMATE_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PTIS Master\",\n \"code\": \"PTIS_MASTER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"CSC Collection Operator\",\n \"code\": \"CSC_COLL_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Report Viewer\",\n \"code\": \"BIRTH_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOI CREATOR\",\n \"code\": \"LOI_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ULB Operator\",\n \"code\": \"ULB_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Commissioner\",\n \"code\": \"COMMISSIONER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EGF Bill Approver\",\n \"code\": \"EGF_BILL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Payment Creator\",\n \"code\": \"EGF_PAYMENT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC counter Approver\",\n \"code\": \"NOC_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Sanitation Worker\",\n \"code\": \"SANITATION_WORKER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Structural Engineer\",\n \"code\": \"BPA_STRUCTURALENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"OFFICER IN CHARGE\",\n \"code\": \"OFFICER_IN_CHARGE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Department Grievance Routing Officer\",\n \"code\": \"DGRO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Services Approver\",\n \"code\": \"BPA_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PROJECT CREATOR\",\n \"code\": \"PROJECT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Water Report Viewer\",\n \"code\": \"WATER_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Master Admin\",\n \"code\": \"EGF_MASTER_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Town Planner\",\n \"code\": \"BPA_TOWNPLANNER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EMPLOYEE ADMIN\",\n \"code\": \"EMPLOYEE_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Adminsitrator\",\n \"code\": \"EGF_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Payment Collector\",\n \"code\": \"FSM_COLLECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Report Viewer\",\n \"code\": \"PT_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Sewerage Report Viewer\",\n \"code\": \"SEWERAGE_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_APPROVER\",\n \"code\": \"MB_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Supervisor\",\n \"code\": \"BPA_SUPERVISOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Application Creator\",\n \"code\": \"BIRTH_APPLICATION_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Any User\",\n \"code\": \"ANONYMUS\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Field Inspector\",\n \"code\": \"WS_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Verifier\",\n \"code\": \"PROPERTY_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Payment Approver\",\n \"code\": \"EGF_PAYMENT_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth and Death Dashboard User\",\n \"code\": \"DASHBOARD_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM CRONJOB SCHEDULER\",\n \"code\": \"PQM_CRONJOB_SCHEDULER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Report Viewer\",\n \"code\": \"FSM_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST TECH SANC\",\n \"code\": \"EST_TECH_SANC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Auto Escalation Supervisor\",\n \"code\": \"SUPERVISOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER VERIFIER\",\n \"code\": \"WORK_ORDER_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Detailed Estimate Creator\",\n \"code\": \"DE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"AssetReportViewer\",\n \"code\": \"AssetReportViewer\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Approver\",\n \"code\": \"SW_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth and Death User\",\n \"code\": \"BND_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TECHNICAL SANCTIONER\",\n \"code\": \"TECHNICAL_SANCTIONER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Master creator\",\n \"code\": \"WORKS_MASTER_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Application Editor\",\n \"code\": \"BIRTH_APPLICATION_EDITOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Death Report Viewer\",\n \"code\": \"DEATH_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"National Dashboard Systeme user\",\n \"code\": \"NDA_SYSTEM\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Fire Noc Report Viewer\",\n \"code\": \"FIRENOC_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SUPER USER\",\n \"code\": \"SUPERUSER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA NOC Verifier\",\n \"code\": \"BPA_NOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Dashboard Viewer\",\n \"code\": \"FSM_DASHBOARD_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Employee\",\n \"code\": \"EMPLOYEE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collections Receipt Creator\",\n \"code\": \"COLL_RECEIPT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Doc Verifier\",\n \"code\": \"PT_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Administrator\",\n \"code\": \"FSM_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"OBPS Report Viewer\",\n \"code\": \"OBPS_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Bank Collection Operator\",\n \"code\": \"BANK_COLL_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"CBO ADMIN\",\n \"code\": \"CBO_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Airport authority Approver\",\n \"code\": \"AIRPORT_AUTHORITY_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Admin\",\n \"code\": \"TL_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Creator\",\n \"code\": \"TL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Field Inspector\",\n \"code\": \"SW_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Customer Support Representative\",\n \"code\": \"CSR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Reindexing Role\",\n \"code\": \"REINDEXING_ROLE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WO Creator\",\n \"code\": \"WO_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Counter Employee\",\n \"code\": \"PT_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PTIS Admin\",\n \"code\": \"PTIS_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL doc verifier\",\n \"code\": \"TL_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE VIEWER\",\n \"code\": \"ESTIMATE_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Tax Receipt Cancellator\",\n \"code\": \"CR_PT\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Counter Employee\",\n \"code\": \"WS_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST_CHECKER\",\n \"code\": \"EST_CHECKER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"JUNIOR ENGINEER\",\n \"code\": \"JUNIOR_ENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOI CHECKER\",\n \"code\": \"LOI_CHECKER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC counter employee\",\n \"code\": \"NOC_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOA Creator\",\n \"code\": \"LOA_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Report View\",\n \"code\": \"EGF_REPORT_VIEW\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Document Verifier\",\n \"code\": \"WS_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PROJECT VIEWER\",\n \"code\": \"PROJECT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Grievance Routing Officer\",\n \"code\": \"GRO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Organization staff\",\n \"code\": \"ORG_STAFF\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Document Verifier\",\n \"code\": \"SW_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUNICIPAL ENGINEER\",\n \"code\": \"MUNICIPAL_ENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Clerk\",\n \"code\": \"SW_CLERK\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM Lab Operator\",\n \"code\": \"PQM_LAB_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER APPROVER\",\n \"code\": \"WORK_ORDER_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Grievance Officer\",\n \"code\": \"GO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Clerk\",\n \"code\": \"WS_CLERK\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Counter Employee\",\n \"code\": \"SW_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MDMS Admin\",\n \"code\": \"MDMS_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPAREG Employee\",\n \"code\": \"BPAREG_EMPLOYEE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_VIEWER\",\n \"code\": \"MB_VIEWER\",\n \"tenantId\": \"pg.citya\"\n }\n ],\n \"active\": true,\n \"tenantId\": \"pg.citya\",\n \"permanentCity\": null\n },\n \"msgId\": \"1695707627807|en_IN\",\n \"plainAccessRequest\": {}\n },\n \"measurements\": [\n {\n \"id\": \"{{measurementId}}\",\n \"tenantId\": \"{{tenantId}}\",\n \"measurementNumber\": \"{{MBno}}\",\n \"physicalRefNumber\": \"{{phrefnum}}\",\n \"referenceId\": \"{{MB-CO}}\",\n \"entryDate\": \"{{entryDate}}\",\n \"measures\": [\n {\n \"id\": \"{{measureId1}}\",\n \"referenceId\": \"{{refId}}\",\n \"targetId\": \"{{contractLineItemRef1}}\",\n \"length\": 0,\n \"breadth\": 0,\n \"height\": 0,\n \"numItems\": 0.0,\n \"currentValue\": 0.0,\n \"cumulativeValue\": 0.0,\n \"isActive\": true,\n \"comments\": null,\n \"documents\": null,\n \"auditDetails\": {\n \"createdBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"lastModifiedBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"createdTime\": {{createdTime}},\n \"lastModifiedTime\": {{lastModifiedTime}}\n },\n \"additionalDetails\": {\n \"type\": \"SOR\",\n \"mbAmount\": 520\n }\n },\n {\n \"id\": \"{{measureId2}}\",\n \"referenceId\": \"{{refId}}\",\n \"targetId\": \"{{contractLineItemRef2}}\",\n \"length\": 0,\n \"breadth\": 0,\n \"height\": 0,\n \"numItems\": 0.0,\n \"currentValue\": 0.0,\n \"cumulativeValue\": 0.0,\n \"isActive\": true,\n \"comments\": null,\n \"documents\": null,\n \"auditDetails\": {\n \"createdBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"lastModifiedBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"createdTime\": {{createdTime}},\n \"lastModifiedTime\": {{lastModifiedTime}}\n },\n \"additionalDetails\": {\n \"type\": \"SOR\",\n \"mbAmount\": 530\n }\n }\n ],\n \"isActive\": true,\n \"documents\": [],\n \"auditDetails\": {\n \"createdBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"lastModifiedBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"createdTime\": {{createdTime}},\n \"lastModifiedTime\": {{lastModifiedTime}}\n },\n \"additionalDetails\": {\n \"sorAmount\": 8000,\n \"totalAmount\": 0\n },\n \"wfStatus\": \"PENDING_FOR_VERIFICATION\",\n \"workflow\": {\n \"action\": \"EDIT/RE-SUBMIT\",\n \"assignes\": [],\n \"comments\": \"check\",\n \"verificationDocuments\": [\n {\n \"id\": null,\n \"documentType\": \"string\",\n \"fileStore\": \"be14ceb8-01ba-485b-a6e2-489e5474a576\",\n \"documentUid\": \"string\",\n \"additionalDetails\": {}\n }\n ]\n }\n }\n ]\n}" }, "url": { "raw": "{{base_url}}/measurement-service/v1/_update", "host": [ "{{base_url}}" ], "path": [ "measurement-service", "v1", "_update" ] } }, "response": [] }, { "name": "Measurement Update-Success-WF Verify and Forward", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () =>\r", " // Check if the response status is 200 or 202\r", " pm.expect(pm.response.code===200||pm.response.code===202).to.be.true\r", ");\r", "\r", "pm.test(\"Measurement's workflow status is Verified\", function () {\r", " let responseData = pm.response.json();\r", " pm.expect(responseData.measurements[0].wfStatus).eq(\"VERIFIED\");\r", " pm.collectionVariables.set(\"wfStatus\", responseData.measurements[0].status);\r", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json", "uuid": "d06ffa9a-e964-44e0-a1a3-547b6e021e67" } ], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"Rainmaker\",\n \"authToken\": \"{{auth}}\",\n \"userInfo\": {\n \"id\": 965,\n \"uuid\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"userName\": \"AUTO2\",\n \"name\": \"AUTO\",\n \"mobileNumber\": \"9999999999\",\n \"emailId\": null,\n \"locale\": null,\n \"type\": \"EMPLOYEE\",\n \"roles\": [\n {\n \"name\": \"HRMS Admin\",\n \"code\": \"HRMS_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER VIEWER\",\n \"code\": \"WORK_ORDER_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"National Dashboard Admin\",\n \"code\": \"NATADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Application Viewer\",\n \"code\": \"BIRTH_APPLICATION_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Redressal Officer\",\n \"code\": \"RO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Bill Creator\",\n \"code\": \"WORKS_BILL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collection Report Viewer\",\n \"code\": \"COLL_REP_VIEW\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Contractor Advance creator\",\n \"code\": \"CONTRACTOR_ADVANCE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Approver\",\n \"code\": \"WORKS_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Receipt Cancellator\",\n \"code\": \"CR_WS\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Approver\",\n \"code\": \"PROPERTY_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Approver\",\n \"code\": \"TL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOI APPROVER\",\n \"code\": \"LOI_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST CREATOR\",\n \"code\": \"EST_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Fire Noc Department Approver\",\n \"code\": \"FIRE_NOC_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"HCM SYSTEM ADMINISTRATOR\",\n \"code\": \"SYSTEM_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Field Inspector\",\n \"code\": \"PT_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Abstract Estimate Creator\",\n \"code\": \"AE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ULB Administrator\",\n \"code\": \"PTADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUKTA Admin\",\n \"code\": \"MUKTA_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Administrator\",\n \"code\": \"WORKS_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Builder\",\n \"code\": \"BPA_BUILDER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Voucher Creator\",\n \"code\": \"EGF_VOUCHER_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collections Remitter\",\n \"code\": \"COLL_REMIT_TO_BANK\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE APPROVER\",\n \"code\": \"ESTIMATE_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Auto Escalation Employee\",\n \"code\": \"AUTO_ESCALATE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_VERIFIER\",\n \"code\": \"MB_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST FIN SANC\",\n \"code\": \"EST_FIN_SANC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PGR Last Mile Employee\",\n \"code\": \"PGR_LME\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"DEATH Application Editor\",\n \"code\": \"DEATH_APPLICATION_EDITOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUSTER ROLL APPROVER\",\n \"code\": \"MUSTER_ROLL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Approver\",\n \"code\": \"WS_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Voucher Approver\",\n \"code\": \"EGF_VOUCHER_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM TP OPERATOR\",\n \"code\": \"PQM_TP_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Grivance Administrator\",\n \"code\": \"GA\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_ACCOUNTANT\",\n \"code\": \"BILL_ACCOUNTANT\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_VERIFIER\",\n \"code\": \"BILL_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Counter Employee\",\n \"code\": \"TL_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Tax Collection Employee\",\n \"code\": \"PT_COLLECTION_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Report Viewer\",\n \"code\": \"TL_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Desluding Operator\",\n \"code\": \"FSM_DSO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Application Viewer\",\n \"code\": \"FSM_VIEW_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPAREG doc verifier\",\n \"code\": \"BPAREG_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Asset Administrator\",\n \"code\": \"ASSET_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PGR Administrator\",\n \"code\": \"PGR-ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Field Employee\",\n \"code\": \"FEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Counter Employee\",\n \"code\": \"CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Death Application Viewer\",\n \"code\": \"DEATH_APPLICATION_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Admin of a ULB\",\n \"code\": \"CITY_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_CREATOR\",\n \"code\": \"BILL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collection Operator\",\n \"code\": \"COLL_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Application Editor\",\n \"code\": \"FSM_EDITOR_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPAREG Approver\",\n \"code\": \"BPAREG_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Driver\",\n \"code\": \"FSM_DRIVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER CREATOR\",\n \"code\": \"WORK_ORDER_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Death Application Creator\",\n \"code\": \"DEATH_APPLICATION_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Internal Microservice Role\",\n \"code\": \"INTERNAL_MICROSERVICE_ROLE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"AssetCreator\",\n \"code\": \"AssetCreator\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EGF Bill Creator\",\n \"code\": \"EGF_BILL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Employee Finance\",\n \"code\": \"EMPLOYEE_FINANCE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Sanitation Helper\",\n \"code\": \"SANITATION_HELPER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Legacy Receipt Creator\",\n \"code\": \"LEGACY_RECEIPT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"QA Automation\",\n \"code\": \"QA_AUTOMATION\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_CREATOR\",\n \"code\": \"MB_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Field Inspector\",\n \"code\": \"TL_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Organization admin\",\n \"code\": \"ORG_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_APPROVER\",\n \"code\": \"BILL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Architect\",\n \"code\": \"BPA_ARCHITECT\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUSTER ROLL VERIFIER\",\n \"code\": \"MUSTER_ROLL_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Field Inspector\",\n \"code\": \"BPA_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Employee Common\",\n \"code\": \"EMPLOYEE_COMMON\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Localisation admin\",\n \"code\": \"LOC_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_VIEWER\",\n \"code\": \"BILL_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Services verifier\",\n \"code\": \"BPA_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Engineer\",\n \"code\": \"BPA_ENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM FSTP Opperator\",\n \"code\": \"FSM_EMP_FSTPO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Universal Collection Employee\",\n \"code\": \"UC_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC Field Inpector\",\n \"code\": \"NOC_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Application Creator\",\n \"code\": \"FSM_CREATOR_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Counter Approver\",\n \"code\": \"PT_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST TECH SANC\",\n \"code\": \"EST_ADMIN_SANC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE CREATOR\",\n \"code\": \"ESTIMATE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM Admin\",\n \"code\": \"PQM_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC Doc Verifier\",\n \"code\": \"NOC_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Anonymous User\",\n \"code\": \"ANONYMOUS\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Citizen Feedback Centre\",\n \"code\": \"CFC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"State Dashboard Admin\",\n \"code\": \"STADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Financials Approver\",\n \"code\": \"WORKS_FINANCIAL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE VERIFIER\",\n \"code\": \"ESTIMATE_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PTIS Master\",\n \"code\": \"PTIS_MASTER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"CSC Collection Operator\",\n \"code\": \"CSC_COLL_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Report Viewer\",\n \"code\": \"BIRTH_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOI CREATOR\",\n \"code\": \"LOI_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ULB Operator\",\n \"code\": \"ULB_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Commissioner\",\n \"code\": \"COMMISSIONER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EGF Bill Approver\",\n \"code\": \"EGF_BILL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Payment Creator\",\n \"code\": \"EGF_PAYMENT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC counter Approver\",\n \"code\": \"NOC_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Sanitation Worker\",\n \"code\": \"SANITATION_WORKER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Structural Engineer\",\n \"code\": \"BPA_STRUCTURALENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"OFFICER IN CHARGE\",\n \"code\": \"OFFICER_IN_CHARGE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Department Grievance Routing Officer\",\n \"code\": \"DGRO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Services Approver\",\n \"code\": \"BPA_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PROJECT CREATOR\",\n \"code\": \"PROJECT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Water Report Viewer\",\n \"code\": \"WATER_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Master Admin\",\n \"code\": \"EGF_MASTER_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Town Planner\",\n \"code\": \"BPA_TOWNPLANNER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EMPLOYEE ADMIN\",\n \"code\": \"EMPLOYEE_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Adminsitrator\",\n \"code\": \"EGF_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Payment Collector\",\n \"code\": \"FSM_COLLECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Report Viewer\",\n \"code\": \"PT_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Sewerage Report Viewer\",\n \"code\": \"SEWERAGE_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_APPROVER\",\n \"code\": \"MB_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Supervisor\",\n \"code\": \"BPA_SUPERVISOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Application Creator\",\n \"code\": \"BIRTH_APPLICATION_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Any User\",\n \"code\": \"ANONYMUS\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Field Inspector\",\n \"code\": \"WS_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Verifier\",\n \"code\": \"PROPERTY_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Payment Approver\",\n \"code\": \"EGF_PAYMENT_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth and Death Dashboard User\",\n \"code\": \"DASHBOARD_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM CRONJOB SCHEDULER\",\n \"code\": \"PQM_CRONJOB_SCHEDULER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Report Viewer\",\n \"code\": \"FSM_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST TECH SANC\",\n \"code\": \"EST_TECH_SANC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Auto Escalation Supervisor\",\n \"code\": \"SUPERVISOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER VERIFIER\",\n \"code\": \"WORK_ORDER_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Detailed Estimate Creator\",\n \"code\": \"DE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"AssetReportViewer\",\n \"code\": \"AssetReportViewer\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Approver\",\n \"code\": \"SW_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth and Death User\",\n \"code\": \"BND_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TECHNICAL SANCTIONER\",\n \"code\": \"TECHNICAL_SANCTIONER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Master creator\",\n \"code\": \"WORKS_MASTER_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Application Editor\",\n \"code\": \"BIRTH_APPLICATION_EDITOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Death Report Viewer\",\n \"code\": \"DEATH_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"National Dashboard Systeme user\",\n \"code\": \"NDA_SYSTEM\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Fire Noc Report Viewer\",\n \"code\": \"FIRENOC_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SUPER USER\",\n \"code\": \"SUPERUSER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA NOC Verifier\",\n \"code\": \"BPA_NOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Dashboard Viewer\",\n \"code\": \"FSM_DASHBOARD_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Employee\",\n \"code\": \"EMPLOYEE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collections Receipt Creator\",\n \"code\": \"COLL_RECEIPT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Doc Verifier\",\n \"code\": \"PT_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Administrator\",\n \"code\": \"FSM_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"OBPS Report Viewer\",\n \"code\": \"OBPS_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Bank Collection Operator\",\n \"code\": \"BANK_COLL_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"CBO ADMIN\",\n \"code\": \"CBO_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Airport authority Approver\",\n \"code\": \"AIRPORT_AUTHORITY_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Admin\",\n \"code\": \"TL_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Creator\",\n \"code\": \"TL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Field Inspector\",\n \"code\": \"SW_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Customer Support Representative\",\n \"code\": \"CSR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Reindexing Role\",\n \"code\": \"REINDEXING_ROLE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WO Creator\",\n \"code\": \"WO_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Counter Employee\",\n \"code\": \"PT_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PTIS Admin\",\n \"code\": \"PTIS_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL doc verifier\",\n \"code\": \"TL_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE VIEWER\",\n \"code\": \"ESTIMATE_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Tax Receipt Cancellator\",\n \"code\": \"CR_PT\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Counter Employee\",\n \"code\": \"WS_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST_CHECKER\",\n \"code\": \"EST_CHECKER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"JUNIOR ENGINEER\",\n \"code\": \"JUNIOR_ENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOI CHECKER\",\n \"code\": \"LOI_CHECKER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC counter employee\",\n \"code\": \"NOC_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOA Creator\",\n \"code\": \"LOA_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Report View\",\n \"code\": \"EGF_REPORT_VIEW\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Document Verifier\",\n \"code\": \"WS_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PROJECT VIEWER\",\n \"code\": \"PROJECT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Grievance Routing Officer\",\n \"code\": \"GRO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Organization staff\",\n \"code\": \"ORG_STAFF\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Document Verifier\",\n \"code\": \"SW_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUNICIPAL ENGINEER\",\n \"code\": \"MUNICIPAL_ENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Clerk\",\n \"code\": \"SW_CLERK\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM Lab Operator\",\n \"code\": \"PQM_LAB_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER APPROVER\",\n \"code\": \"WORK_ORDER_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Grievance Officer\",\n \"code\": \"GO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Clerk\",\n \"code\": \"WS_CLERK\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Counter Employee\",\n \"code\": \"SW_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MDMS Admin\",\n \"code\": \"MDMS_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPAREG Employee\",\n \"code\": \"BPAREG_EMPLOYEE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_VIEWER\",\n \"code\": \"MB_VIEWER\",\n \"tenantId\": \"pg.citya\"\n }\n ],\n \"active\": true,\n \"tenantId\": \"pg.citya\",\n \"permanentCity\": null\n },\n \"msgId\": \"1695707627807|en_IN\",\n \"plainAccessRequest\": {}\n },\n \"measurements\": [\n {\n \"id\": \"{{measurementId}}\",\n \"tenantId\": \"{{tenantId}}\",\n \"measurementNumber\": \"{{MBno}}\",\n \"physicalRefNumber\": \"{{phrefnum}}\",\n \"referenceId\": \"{{MB-CO}}\",\n \"entryDate\": \"{{entryDate}}\",\n \"measures\": [\n {\n \"id\": \"{{measureId1}}\",\n \"referenceId\": \"{{refId}}\",\n \"targetId\": \"{{contractLineItemRef1}}\",\n \"length\": 0,\n \"breadth\": 0,\n \"height\": 0,\n \"numItems\": 0.0,\n \"currentValue\": 0.0,\n \"cumulativeValue\": 0.0,\n \"isActive\": true,\n \"comments\": null,\n \"documents\": null,\n \"auditDetails\": {\n \"createdBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"lastModifiedBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"createdTime\": {{createdTime}},\n \"lastModifiedTime\": {{lastModifiedTime}}\n },\n \"additionalDetails\": {\n \"type\": \"SOR\",\n \"mbAmount\": 520\n }\n },\n {\n \"id\": \"{{measureId2}}\",\n \"referenceId\": \"{{refId}}\",\n \"targetId\": \"{{contractLineItemRef2}}\",\n \"length\": 0,\n \"breadth\": 0,\n \"height\": 0,\n \"numItems\": 0.0,\n \"currentValue\": 0.0,\n \"cumulativeValue\": 0.0,\n \"isActive\": true,\n \"comments\": null,\n \"documents\": null,\n \"auditDetails\": {\n \"createdBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"lastModifiedBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"createdTime\": {{createdTime}},\n \"lastModifiedTime\": {{lastModifiedTime}}\n },\n \"additionalDetails\": {\n \"type\": \"SOR\",\n \"mbAmount\": 530\n }\n }\n ],\n \"isActive\": true,\n \"documents\": [],\n \"auditDetails\": {\n \"createdBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"lastModifiedBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"createdTime\": {{createdTime}},\n \"lastModifiedTime\": {{lastModifiedTime}}\n },\n \"additionalDetails\": {\n \"sorAmount\": 8000,\n \"totalAmount\": 0\n },\n \"wfStatus\": \"PENDING_FOR_APPROVAL\",\n \"workflow\": {\n \"action\": \"VERIFY_AND_FORWARD\",\n \"assignes\": [],\n \"comments\": \"check\",\n \"verificationDocuments\": [\n {\n \"id\": null,\n \"documentType\": \"string\",\n \"fileStore\": \"be14ceb8-01ba-485b-a6e2-489e5474a576\",\n \"documentUid\": \"string\",\n \"additionalDetails\": {}\n }\n ]\n }\n }\n ]\n}" }, "url": { "raw": "{{base_url}}/measurement-service/v1/_update", "host": [ "{{base_url}}" ], "path": [ "measurement-service", "v1", "_update" ] } }, "response": [] }, { "name": "Measurement Update-Success-WF Sent_Back_To_Originator", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () =>\r", " pm.expect(pm.response.code===200||pm.response.code===202).to.be.true\r", ");\r", "\r", "pm.test(\"Measurement's workflow status is Send back to originator\", function () {\r", " let responseData = pm.response.json();\r", " pm.expect(responseData.measurements[0].wfStatus).eq(\"SENT_BACK\");\r", " pm.collectionVariables.set(\"wfStatus\", responseData.measurements[0].status);\r", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json", "uuid": "90794537-4691-4f24-8af0-3ec88e6e51f7" } ], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"Rainmaker\",\n \"authToken\": \"{{auth}}\",\n \"userInfo\": {\n \"id\": 965,\n \"uuid\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"userName\": \"AUTO2\",\n \"name\": \"AUTO\",\n \"mobileNumber\": \"9999999999\",\n \"emailId\": null,\n \"locale\": null,\n \"type\": \"EMPLOYEE\",\n \"roles\": [\n {\n \"name\": \"HRMS Admin\",\n \"code\": \"HRMS_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER VIEWER\",\n \"code\": \"WORK_ORDER_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"National Dashboard Admin\",\n \"code\": \"NATADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Application Viewer\",\n \"code\": \"BIRTH_APPLICATION_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Redressal Officer\",\n \"code\": \"RO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Bill Creator\",\n \"code\": \"WORKS_BILL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collection Report Viewer\",\n \"code\": \"COLL_REP_VIEW\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Contractor Advance creator\",\n \"code\": \"CONTRACTOR_ADVANCE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Approver\",\n \"code\": \"WORKS_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Receipt Cancellator\",\n \"code\": \"CR_WS\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Approver\",\n \"code\": \"PROPERTY_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Approver\",\n \"code\": \"TL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOI APPROVER\",\n \"code\": \"LOI_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST CREATOR\",\n \"code\": \"EST_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Fire Noc Department Approver\",\n \"code\": \"FIRE_NOC_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"HCM SYSTEM ADMINISTRATOR\",\n \"code\": \"SYSTEM_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Field Inspector\",\n \"code\": \"PT_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Abstract Estimate Creator\",\n \"code\": \"AE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ULB Administrator\",\n \"code\": \"PTADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUKTA Admin\",\n \"code\": \"MUKTA_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Administrator\",\n \"code\": \"WORKS_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Builder\",\n \"code\": \"BPA_BUILDER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Voucher Creator\",\n \"code\": \"EGF_VOUCHER_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collections Remitter\",\n \"code\": \"COLL_REMIT_TO_BANK\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE APPROVER\",\n \"code\": \"ESTIMATE_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Auto Escalation Employee\",\n \"code\": \"AUTO_ESCALATE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_VERIFIER\",\n \"code\": \"MB_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST FIN SANC\",\n \"code\": \"EST_FIN_SANC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PGR Last Mile Employee\",\n \"code\": \"PGR_LME\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"DEATH Application Editor\",\n \"code\": \"DEATH_APPLICATION_EDITOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUSTER ROLL APPROVER\",\n \"code\": \"MUSTER_ROLL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Approver\",\n \"code\": \"WS_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Voucher Approver\",\n \"code\": \"EGF_VOUCHER_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM TP OPERATOR\",\n \"code\": \"PQM_TP_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Grivance Administrator\",\n \"code\": \"GA\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_ACCOUNTANT\",\n \"code\": \"BILL_ACCOUNTANT\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_VERIFIER\",\n \"code\": \"BILL_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Counter Employee\",\n \"code\": \"TL_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Tax Collection Employee\",\n \"code\": \"PT_COLLECTION_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Report Viewer\",\n \"code\": \"TL_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Desluding Operator\",\n \"code\": \"FSM_DSO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Application Viewer\",\n \"code\": \"FSM_VIEW_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPAREG doc verifier\",\n \"code\": \"BPAREG_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Asset Administrator\",\n \"code\": \"ASSET_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PGR Administrator\",\n \"code\": \"PGR-ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Field Employee\",\n \"code\": \"FEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Counter Employee\",\n \"code\": \"CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Death Application Viewer\",\n \"code\": \"DEATH_APPLICATION_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Admin of a ULB\",\n \"code\": \"CITY_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_CREATOR\",\n \"code\": \"BILL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collection Operator\",\n \"code\": \"COLL_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Application Editor\",\n \"code\": \"FSM_EDITOR_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPAREG Approver\",\n \"code\": \"BPAREG_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Driver\",\n \"code\": \"FSM_DRIVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER CREATOR\",\n \"code\": \"WORK_ORDER_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Death Application Creator\",\n \"code\": \"DEATH_APPLICATION_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Internal Microservice Role\",\n \"code\": \"INTERNAL_MICROSERVICE_ROLE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"AssetCreator\",\n \"code\": \"AssetCreator\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EGF Bill Creator\",\n \"code\": \"EGF_BILL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Employee Finance\",\n \"code\": \"EMPLOYEE_FINANCE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Sanitation Helper\",\n \"code\": \"SANITATION_HELPER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Legacy Receipt Creator\",\n \"code\": \"LEGACY_RECEIPT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"QA Automation\",\n \"code\": \"QA_AUTOMATION\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_CREATOR\",\n \"code\": \"MB_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Field Inspector\",\n \"code\": \"TL_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Organization admin\",\n \"code\": \"ORG_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_APPROVER\",\n \"code\": \"BILL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Architect\",\n \"code\": \"BPA_ARCHITECT\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUSTER ROLL VERIFIER\",\n \"code\": \"MUSTER_ROLL_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Field Inspector\",\n \"code\": \"BPA_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Employee Common\",\n \"code\": \"EMPLOYEE_COMMON\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Localisation admin\",\n \"code\": \"LOC_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_VIEWER\",\n \"code\": \"BILL_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Services verifier\",\n \"code\": \"BPA_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Engineer\",\n \"code\": \"BPA_ENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM FSTP Opperator\",\n \"code\": \"FSM_EMP_FSTPO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Universal Collection Employee\",\n \"code\": \"UC_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC Field Inpector\",\n \"code\": \"NOC_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Application Creator\",\n \"code\": \"FSM_CREATOR_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Counter Approver\",\n \"code\": \"PT_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST TECH SANC\",\n \"code\": \"EST_ADMIN_SANC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE CREATOR\",\n \"code\": \"ESTIMATE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM Admin\",\n \"code\": \"PQM_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC Doc Verifier\",\n \"code\": \"NOC_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Anonymous User\",\n \"code\": \"ANONYMOUS\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Citizen Feedback Centre\",\n \"code\": \"CFC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"State Dashboard Admin\",\n \"code\": \"STADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Financials Approver\",\n \"code\": \"WORKS_FINANCIAL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE VERIFIER\",\n \"code\": \"ESTIMATE_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PTIS Master\",\n \"code\": \"PTIS_MASTER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"CSC Collection Operator\",\n \"code\": \"CSC_COLL_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Report Viewer\",\n \"code\": \"BIRTH_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOI CREATOR\",\n \"code\": \"LOI_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ULB Operator\",\n \"code\": \"ULB_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Commissioner\",\n \"code\": \"COMMISSIONER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EGF Bill Approver\",\n \"code\": \"EGF_BILL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Payment Creator\",\n \"code\": \"EGF_PAYMENT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC counter Approver\",\n \"code\": \"NOC_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Sanitation Worker\",\n \"code\": \"SANITATION_WORKER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Structural Engineer\",\n \"code\": \"BPA_STRUCTURALENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"OFFICER IN CHARGE\",\n \"code\": \"OFFICER_IN_CHARGE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Department Grievance Routing Officer\",\n \"code\": \"DGRO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Services Approver\",\n \"code\": \"BPA_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PROJECT CREATOR\",\n \"code\": \"PROJECT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Water Report Viewer\",\n \"code\": \"WATER_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Master Admin\",\n \"code\": \"EGF_MASTER_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Town Planner\",\n \"code\": \"BPA_TOWNPLANNER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EMPLOYEE ADMIN\",\n \"code\": \"EMPLOYEE_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Adminsitrator\",\n \"code\": \"EGF_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Payment Collector\",\n \"code\": \"FSM_COLLECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Report Viewer\",\n \"code\": \"PT_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Sewerage Report Viewer\",\n \"code\": \"SEWERAGE_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_APPROVER\",\n \"code\": \"MB_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Supervisor\",\n \"code\": \"BPA_SUPERVISOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Application Creator\",\n \"code\": \"BIRTH_APPLICATION_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Any User\",\n \"code\": \"ANONYMUS\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Field Inspector\",\n \"code\": \"WS_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Verifier\",\n \"code\": \"PROPERTY_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Payment Approver\",\n \"code\": \"EGF_PAYMENT_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth and Death Dashboard User\",\n \"code\": \"DASHBOARD_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM CRONJOB SCHEDULER\",\n \"code\": \"PQM_CRONJOB_SCHEDULER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Report Viewer\",\n \"code\": \"FSM_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST TECH SANC\",\n \"code\": \"EST_TECH_SANC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Auto Escalation Supervisor\",\n \"code\": \"SUPERVISOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER VERIFIER\",\n \"code\": \"WORK_ORDER_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Detailed Estimate Creator\",\n \"code\": \"DE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"AssetReportViewer\",\n \"code\": \"AssetReportViewer\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Approver\",\n \"code\": \"SW_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth and Death User\",\n \"code\": \"BND_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TECHNICAL SANCTIONER\",\n \"code\": \"TECHNICAL_SANCTIONER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Master creator\",\n \"code\": \"WORKS_MASTER_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Application Editor\",\n \"code\": \"BIRTH_APPLICATION_EDITOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Death Report Viewer\",\n \"code\": \"DEATH_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"National Dashboard Systeme user\",\n \"code\": \"NDA_SYSTEM\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Fire Noc Report Viewer\",\n \"code\": \"FIRENOC_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SUPER USER\",\n \"code\": \"SUPERUSER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA NOC Verifier\",\n \"code\": \"BPA_NOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Dashboard Viewer\",\n \"code\": \"FSM_DASHBOARD_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Employee\",\n \"code\": \"EMPLOYEE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collections Receipt Creator\",\n \"code\": \"COLL_RECEIPT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Doc Verifier\",\n \"code\": \"PT_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Administrator\",\n \"code\": \"FSM_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"OBPS Report Viewer\",\n \"code\": \"OBPS_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Bank Collection Operator\",\n \"code\": \"BANK_COLL_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"CBO ADMIN\",\n \"code\": \"CBO_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Airport authority Approver\",\n \"code\": \"AIRPORT_AUTHORITY_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Admin\",\n \"code\": \"TL_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Creator\",\n \"code\": \"TL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Field Inspector\",\n \"code\": \"SW_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Customer Support Representative\",\n \"code\": \"CSR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Reindexing Role\",\n \"code\": \"REINDEXING_ROLE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WO Creator\",\n \"code\": \"WO_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Counter Employee\",\n \"code\": \"PT_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PTIS Admin\",\n \"code\": \"PTIS_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL doc verifier\",\n \"code\": \"TL_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE VIEWER\",\n \"code\": \"ESTIMATE_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Tax Receipt Cancellator\",\n \"code\": \"CR_PT\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Counter Employee\",\n \"code\": \"WS_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST_CHECKER\",\n \"code\": \"EST_CHECKER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"JUNIOR ENGINEER\",\n \"code\": \"JUNIOR_ENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOI CHECKER\",\n \"code\": \"LOI_CHECKER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC counter employee\",\n \"code\": \"NOC_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOA Creator\",\n \"code\": \"LOA_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Report View\",\n \"code\": \"EGF_REPORT_VIEW\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Document Verifier\",\n \"code\": \"WS_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PROJECT VIEWER\",\n \"code\": \"PROJECT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Grievance Routing Officer\",\n \"code\": \"GRO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Organization staff\",\n \"code\": \"ORG_STAFF\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Document Verifier\",\n \"code\": \"SW_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUNICIPAL ENGINEER\",\n \"code\": \"MUNICIPAL_ENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Clerk\",\n \"code\": \"SW_CLERK\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM Lab Operator\",\n \"code\": \"PQM_LAB_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER APPROVER\",\n \"code\": \"WORK_ORDER_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Grievance Officer\",\n \"code\": \"GO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Clerk\",\n \"code\": \"WS_CLERK\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Counter Employee\",\n \"code\": \"SW_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MDMS Admin\",\n \"code\": \"MDMS_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPAREG Employee\",\n \"code\": \"BPAREG_EMPLOYEE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_VIEWER\",\n \"code\": \"MB_VIEWER\",\n \"tenantId\": \"pg.citya\"\n }\n ],\n \"active\": true,\n \"tenantId\": \"pg.citya\",\n \"permanentCity\": null\n },\n \"msgId\": \"1695707627807|en_IN\",\n \"plainAccessRequest\": {}\n },\n \"measurements\": [\n {\n \"id\": \"{{measurementId}}\",\n \"tenantId\": \"{{tenantId}}\",\n \"measurementNumber\": \"{{MBno}}\",\n \"physicalRefNumber\": \"{{phrefnum}}\",\n \"referenceId\": \"{{MB-CO}}\",\n \"entryDate\": \"{{entryDate}}\",\n \"measures\": [\n {\n \"id\": \"{{measureId1}}\",\n \"referenceId\": \"{{refId}}\",\n \"targetId\": \"{{contractLineItemRef1}}\",\n \"length\": 0,\n \"breadth\": 0,\n \"height\": 0,\n \"numItems\": 0.0,\n \"currentValue\": 0.0,\n \"cumulativeValue\": 0.0,\n \"isActive\": true,\n \"comments\": null,\n \"documents\": null,\n \"auditDetails\": {\n \"createdBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"lastModifiedBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"createdTime\": {{createdTime}},\n \"lastModifiedTime\": {{lastModifiedTime}}\n },\n \"additionalDetails\": {\n \"type\": \"SOR\",\n \"mbAmount\": 520\n }\n },\n {\n \"id\": \"{{measureId2}}\",\n \"referenceId\": \"{{refId}}\",\n \"targetId\": \"{{contractLineItemRef2}}\",\n \"length\": 0,\n \"breadth\": 0,\n \"height\": 0,\n \"numItems\": 0.0,\n \"currentValue\": 0.0,\n \"cumulativeValue\": 0.0,\n \"isActive\": true,\n \"comments\": null,\n \"documents\": null,\n \"auditDetails\": {\n \"createdBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"lastModifiedBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"createdTime\": {{createdTime}},\n \"lastModifiedTime\": {{lastModifiedTime}}\n },\n \"additionalDetails\": {\n \"type\": \"SOR\",\n \"mbAmount\": 530\n }\n }\n ],\n \"isActive\": true,\n \"documents\": [],\n \"auditDetails\": {\n \"createdBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"lastModifiedBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"createdTime\": {{createdTime}},\n \"lastModifiedTime\": {{lastModifiedTime}}\n },\n \"additionalDetails\": {\n \"sorAmount\": 8000,\n \"totalAmount\": 0\n },\n \"wfStatus\": \"PENDING_FOR_CORRECTION\",\n \"workflow\": {\n \"action\": \"SEND_BACK_TO_ORIGINATOR\",\n \"assignes\": [],\n \"comments\": \"check\",\n \"verificationDocuments\": [\n {\n \"id\": null,\n \"documentType\": \"string\",\n \"fileStore\": \"be14ceb8-01ba-485b-a6e2-489e5474a576\",\n \"documentUid\": \"string\",\n \"additionalDetails\": {}\n }\n ]\n }\n }\n ]\n}" }, "url": { "raw": "{{base_url}}/measurement-service/v1/_update", "host": [ "{{base_url}}" ], "path": [ "measurement-service", "v1", "_update" ] } }, "response": [] }, { "name": "Measurement Update-Success-WF Re-Edit and Re-submit", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () =>\r", " pm.expect(pm.response.code===200||pm.response.code===202).to.be.true\r", ");\r", "\r", "pm.test(\"Measurement's workflow status is submitted\", function () {\r", " let responseData = pm.response.json();\r", " pm.expect(responseData.measurements[0].wfStatus).eq(\"SUBMITTED\");\r", " pm.collectionVariables.set(\"wfStatus\", responseData.measurements[0].status);\r", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json", "uuid": "af36bf75-5947-43ac-8b37-28e089763e2c" } ], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"Rainmaker\",\n \"authToken\": \"{{auth}}\",\n \"userInfo\": {\n \"id\": 965,\n \"uuid\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"userName\": \"AUTO2\",\n \"name\": \"AUTO\",\n \"mobileNumber\": \"9999999999\",\n \"emailId\": null,\n \"locale\": null,\n \"type\": \"EMPLOYEE\",\n \"roles\": [\n {\n \"name\": \"HRMS Admin\",\n \"code\": \"HRMS_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER VIEWER\",\n \"code\": \"WORK_ORDER_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"National Dashboard Admin\",\n \"code\": \"NATADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Application Viewer\",\n \"code\": \"BIRTH_APPLICATION_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Redressal Officer\",\n \"code\": \"RO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Bill Creator\",\n \"code\": \"WORKS_BILL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collection Report Viewer\",\n \"code\": \"COLL_REP_VIEW\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Contractor Advance creator\",\n \"code\": \"CONTRACTOR_ADVANCE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Approver\",\n \"code\": \"WORKS_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Receipt Cancellator\",\n \"code\": \"CR_WS\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Approver\",\n \"code\": \"PROPERTY_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Approver\",\n \"code\": \"TL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOI APPROVER\",\n \"code\": \"LOI_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST CREATOR\",\n \"code\": \"EST_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Fire Noc Department Approver\",\n \"code\": \"FIRE_NOC_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"HCM SYSTEM ADMINISTRATOR\",\n \"code\": \"SYSTEM_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Field Inspector\",\n \"code\": \"PT_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Abstract Estimate Creator\",\n \"code\": \"AE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ULB Administrator\",\n \"code\": \"PTADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUKTA Admin\",\n \"code\": \"MUKTA_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Administrator\",\n \"code\": \"WORKS_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Builder\",\n \"code\": \"BPA_BUILDER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Voucher Creator\",\n \"code\": \"EGF_VOUCHER_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collections Remitter\",\n \"code\": \"COLL_REMIT_TO_BANK\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE APPROVER\",\n \"code\": \"ESTIMATE_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Auto Escalation Employee\",\n \"code\": \"AUTO_ESCALATE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_VERIFIER\",\n \"code\": \"MB_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST FIN SANC\",\n \"code\": \"EST_FIN_SANC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PGR Last Mile Employee\",\n \"code\": \"PGR_LME\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"DEATH Application Editor\",\n \"code\": \"DEATH_APPLICATION_EDITOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUSTER ROLL APPROVER\",\n \"code\": \"MUSTER_ROLL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Approver\",\n \"code\": \"WS_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Voucher Approver\",\n \"code\": \"EGF_VOUCHER_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM TP OPERATOR\",\n \"code\": \"PQM_TP_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Grivance Administrator\",\n \"code\": \"GA\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_ACCOUNTANT\",\n \"code\": \"BILL_ACCOUNTANT\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_VERIFIER\",\n \"code\": \"BILL_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Counter Employee\",\n \"code\": \"TL_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Tax Collection Employee\",\n \"code\": \"PT_COLLECTION_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Report Viewer\",\n \"code\": \"TL_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Desluding Operator\",\n \"code\": \"FSM_DSO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Application Viewer\",\n \"code\": \"FSM_VIEW_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPAREG doc verifier\",\n \"code\": \"BPAREG_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Asset Administrator\",\n \"code\": \"ASSET_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PGR Administrator\",\n \"code\": \"PGR-ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Field Employee\",\n \"code\": \"FEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Counter Employee\",\n \"code\": \"CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Death Application Viewer\",\n \"code\": \"DEATH_APPLICATION_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Admin of a ULB\",\n \"code\": \"CITY_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_CREATOR\",\n \"code\": \"BILL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collection Operator\",\n \"code\": \"COLL_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Application Editor\",\n \"code\": \"FSM_EDITOR_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPAREG Approver\",\n \"code\": \"BPAREG_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Driver\",\n \"code\": \"FSM_DRIVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER CREATOR\",\n \"code\": \"WORK_ORDER_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Death Application Creator\",\n \"code\": \"DEATH_APPLICATION_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Internal Microservice Role\",\n \"code\": \"INTERNAL_MICROSERVICE_ROLE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"AssetCreator\",\n \"code\": \"AssetCreator\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EGF Bill Creator\",\n \"code\": \"EGF_BILL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Employee Finance\",\n \"code\": \"EMPLOYEE_FINANCE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Sanitation Helper\",\n \"code\": \"SANITATION_HELPER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Legacy Receipt Creator\",\n \"code\": \"LEGACY_RECEIPT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"QA Automation\",\n \"code\": \"QA_AUTOMATION\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_CREATOR\",\n \"code\": \"MB_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Field Inspector\",\n \"code\": \"TL_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Organization admin\",\n \"code\": \"ORG_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_APPROVER\",\n \"code\": \"BILL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Architect\",\n \"code\": \"BPA_ARCHITECT\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUSTER ROLL VERIFIER\",\n \"code\": \"MUSTER_ROLL_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Field Inspector\",\n \"code\": \"BPA_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Employee Common\",\n \"code\": \"EMPLOYEE_COMMON\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Localisation admin\",\n \"code\": \"LOC_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_VIEWER\",\n \"code\": \"BILL_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Services verifier\",\n \"code\": \"BPA_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Engineer\",\n \"code\": \"BPA_ENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM FSTP Opperator\",\n \"code\": \"FSM_EMP_FSTPO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Universal Collection Employee\",\n \"code\": \"UC_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC Field Inpector\",\n \"code\": \"NOC_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Application Creator\",\n \"code\": \"FSM_CREATOR_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Counter Approver\",\n \"code\": \"PT_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST TECH SANC\",\n \"code\": \"EST_ADMIN_SANC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE CREATOR\",\n \"code\": \"ESTIMATE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM Admin\",\n \"code\": \"PQM_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC Doc Verifier\",\n \"code\": \"NOC_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Anonymous User\",\n \"code\": \"ANONYMOUS\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Citizen Feedback Centre\",\n \"code\": \"CFC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"State Dashboard Admin\",\n \"code\": \"STADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Financials Approver\",\n \"code\": \"WORKS_FINANCIAL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE VERIFIER\",\n \"code\": \"ESTIMATE_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PTIS Master\",\n \"code\": \"PTIS_MASTER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"CSC Collection Operator\",\n \"code\": \"CSC_COLL_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Report Viewer\",\n \"code\": \"BIRTH_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOI CREATOR\",\n \"code\": \"LOI_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ULB Operator\",\n \"code\": \"ULB_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Commissioner\",\n \"code\": \"COMMISSIONER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EGF Bill Approver\",\n \"code\": \"EGF_BILL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Payment Creator\",\n \"code\": \"EGF_PAYMENT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC counter Approver\",\n \"code\": \"NOC_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Sanitation Worker\",\n \"code\": \"SANITATION_WORKER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Structural Engineer\",\n \"code\": \"BPA_STRUCTURALENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"OFFICER IN CHARGE\",\n \"code\": \"OFFICER_IN_CHARGE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Department Grievance Routing Officer\",\n \"code\": \"DGRO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Services Approver\",\n \"code\": \"BPA_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PROJECT CREATOR\",\n \"code\": \"PROJECT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Water Report Viewer\",\n \"code\": \"WATER_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Master Admin\",\n \"code\": \"EGF_MASTER_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Town Planner\",\n \"code\": \"BPA_TOWNPLANNER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EMPLOYEE ADMIN\",\n \"code\": \"EMPLOYEE_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Adminsitrator\",\n \"code\": \"EGF_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Payment Collector\",\n \"code\": \"FSM_COLLECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Report Viewer\",\n \"code\": \"PT_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Sewerage Report Viewer\",\n \"code\": \"SEWERAGE_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_APPROVER\",\n \"code\": \"MB_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Supervisor\",\n \"code\": \"BPA_SUPERVISOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Application Creator\",\n \"code\": \"BIRTH_APPLICATION_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Any User\",\n \"code\": \"ANONYMUS\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Field Inspector\",\n \"code\": \"WS_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Verifier\",\n \"code\": \"PROPERTY_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Payment Approver\",\n \"code\": \"EGF_PAYMENT_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth and Death Dashboard User\",\n \"code\": \"DASHBOARD_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM CRONJOB SCHEDULER\",\n \"code\": \"PQM_CRONJOB_SCHEDULER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Report Viewer\",\n \"code\": \"FSM_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST TECH SANC\",\n \"code\": \"EST_TECH_SANC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Auto Escalation Supervisor\",\n \"code\": \"SUPERVISOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER VERIFIER\",\n \"code\": \"WORK_ORDER_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Detailed Estimate Creator\",\n \"code\": \"DE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"AssetReportViewer\",\n \"code\": \"AssetReportViewer\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Approver\",\n \"code\": \"SW_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth and Death User\",\n \"code\": \"BND_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TECHNICAL SANCTIONER\",\n \"code\": \"TECHNICAL_SANCTIONER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Master creator\",\n \"code\": \"WORKS_MASTER_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Application Editor\",\n \"code\": \"BIRTH_APPLICATION_EDITOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Death Report Viewer\",\n \"code\": \"DEATH_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"National Dashboard Systeme user\",\n \"code\": \"NDA_SYSTEM\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Fire Noc Report Viewer\",\n \"code\": \"FIRENOC_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SUPER USER\",\n \"code\": \"SUPERUSER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA NOC Verifier\",\n \"code\": \"BPA_NOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Dashboard Viewer\",\n \"code\": \"FSM_DASHBOARD_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Employee\",\n \"code\": \"EMPLOYEE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collections Receipt Creator\",\n \"code\": \"COLL_RECEIPT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Doc Verifier\",\n \"code\": \"PT_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Administrator\",\n \"code\": \"FSM_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"OBPS Report Viewer\",\n \"code\": \"OBPS_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Bank Collection Operator\",\n \"code\": \"BANK_COLL_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"CBO ADMIN\",\n \"code\": \"CBO_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Airport authority Approver\",\n \"code\": \"AIRPORT_AUTHORITY_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Admin\",\n \"code\": \"TL_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Creator\",\n \"code\": \"TL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Field Inspector\",\n \"code\": \"SW_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Customer Support Representative\",\n \"code\": \"CSR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Reindexing Role\",\n \"code\": \"REINDEXING_ROLE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WO Creator\",\n \"code\": \"WO_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Counter Employee\",\n \"code\": \"PT_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PTIS Admin\",\n \"code\": \"PTIS_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL doc verifier\",\n \"code\": \"TL_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE VIEWER\",\n \"code\": \"ESTIMATE_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Tax Receipt Cancellator\",\n \"code\": \"CR_PT\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Counter Employee\",\n \"code\": \"WS_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST_CHECKER\",\n \"code\": \"EST_CHECKER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"JUNIOR ENGINEER\",\n \"code\": \"JUNIOR_ENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOI CHECKER\",\n \"code\": \"LOI_CHECKER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC counter employee\",\n \"code\": \"NOC_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOA Creator\",\n \"code\": \"LOA_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Report View\",\n \"code\": \"EGF_REPORT_VIEW\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Document Verifier\",\n \"code\": \"WS_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PROJECT VIEWER\",\n \"code\": \"PROJECT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Grievance Routing Officer\",\n \"code\": \"GRO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Organization staff\",\n \"code\": \"ORG_STAFF\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Document Verifier\",\n \"code\": \"SW_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUNICIPAL ENGINEER\",\n \"code\": \"MUNICIPAL_ENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Clerk\",\n \"code\": \"SW_CLERK\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM Lab Operator\",\n \"code\": \"PQM_LAB_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER APPROVER\",\n \"code\": \"WORK_ORDER_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Grievance Officer\",\n \"code\": \"GO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Clerk\",\n \"code\": \"WS_CLERK\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Counter Employee\",\n \"code\": \"SW_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MDMS Admin\",\n \"code\": \"MDMS_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPAREG Employee\",\n \"code\": \"BPAREG_EMPLOYEE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_VIEWER\",\n \"code\": \"MB_VIEWER\",\n \"tenantId\": \"pg.citya\"\n }\n ],\n \"active\": true,\n \"tenantId\": \"pg.citya\",\n \"permanentCity\": null\n },\n \"msgId\": \"1695707627807|en_IN\",\n \"plainAccessRequest\": {}\n },\n \"measurements\": [\n {\n \"id\": \"{{measurementId}}\",\n \"tenantId\": \"{{tenantId}}\",\n \"measurementNumber\": \"{{MBno}}\",\n \"physicalRefNumber\": \"{{phrefnum}}\",\n \"referenceId\": \"{{MB-CO}}\",\n \"entryDate\": \"{{entryDate}}\",\n \"measures\": [\n {\n \"id\": \"{{measureId1}}\",\n \"referenceId\": \"{{refId}}\",\n \"targetId\": \"{{contractLineItemRef1}}\",\n \"length\": 0,\n \"breadth\": 0,\n \"height\": 0,\n \"numItems\": 0.0,\n \"currentValue\": 0.0,\n \"cumulativeValue\": 0.0,\n \"isActive\": true,\n \"comments\": null,\n \"documents\": null,\n \"auditDetails\": {\n \"createdBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"lastModifiedBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"createdTime\": {{createdTime}},\n \"lastModifiedTime\": {{lastModifiedTime}}\n },\n \"additionalDetails\": {\n \"type\": \"SOR\",\n \"mbAmount\": 520\n }\n },\n {\n \"id\": \"{{measureId2}}\",\n \"referenceId\": \"{{refId}}\",\n \"targetId\": \"{{contractLineItemRef2}}\",\n \"length\": 0,\n \"breadth\": 0,\n \"height\": 0,\n \"numItems\": 0.0,\n \"currentValue\": 0.0,\n \"cumulativeValue\": 0.0,\n \"isActive\": true,\n \"comments\": null,\n \"documents\": null,\n \"auditDetails\": {\n \"createdBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"lastModifiedBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"createdTime\": {{createdTime}},\n \"lastModifiedTime\": {{lastModifiedTime}}\n },\n \"additionalDetails\": {\n \"type\": \"SOR\",\n \"mbAmount\": 530\n }\n }\n ],\n \"isActive\": true,\n \"documents\": [],\n \"auditDetails\": {\n \"createdBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"lastModifiedBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"createdTime\": {{createdTime}},\n \"lastModifiedTime\": {{lastModifiedTime}}\n },\n \"additionalDetails\": {\n \"sorAmount\": 8000,\n \"totalAmount\": 0\n },\n \"wfStatus\": \"PENDING_FOR_VERIFICATION\",\n \"workflow\": {\n \"action\": \"EDIT/RE-SUBMIT\",\n \"assignes\": [],\n \"comments\": \"check\",\n \"verificationDocuments\": [\n {\n \"id\": null,\n \"documentType\": \"string\",\n \"fileStore\": \"be14ceb8-01ba-485b-a6e2-489e5474a576\",\n \"documentUid\": \"string\",\n \"additionalDetails\": {}\n }\n ]\n }\n }\n ]\n}" }, "url": { "raw": "{{base_url}}/measurement-service/v1/_update", "host": [ "{{base_url}}" ], "path": [ "measurement-service", "v1", "_update" ] } }, "response": [] }, { "name": "Measurement Update-Success-WF Re-Verify and Forward", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () =>\r", " // Check if the response status is 200 or 202\r", " pm.expect(pm.response.code===200||pm.response.code===202).to.be.true\r", ");\r", "\r", "pm.test(\"Measurement's workflow status is Verified\", function () {\r", " let responseData = pm.response.json();\r", " pm.expect(responseData.measurements[0].wfStatus).eq(\"VERIFIED\");\r", " pm.collectionVariables.set(\"wfStatus\", responseData.measurements[0].status);\r", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json", "uuid": "24eec6f2-ea7e-4829-b013-d62cf5c2c014" } ], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"Rainmaker\",\n \"authToken\": \"{{auth}}\",\n \"userInfo\": {\n \"id\": 965,\n \"uuid\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"userName\": \"AUTO2\",\n \"name\": \"AUTO\",\n \"mobileNumber\": \"9999999999\",\n \"emailId\": null,\n \"locale\": null,\n \"type\": \"EMPLOYEE\",\n \"roles\": [\n {\n \"name\": \"HRMS Admin\",\n \"code\": \"HRMS_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER VIEWER\",\n \"code\": \"WORK_ORDER_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"National Dashboard Admin\",\n \"code\": \"NATADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Application Viewer\",\n \"code\": \"BIRTH_APPLICATION_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Redressal Officer\",\n \"code\": \"RO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Bill Creator\",\n \"code\": \"WORKS_BILL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collection Report Viewer\",\n \"code\": \"COLL_REP_VIEW\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Contractor Advance creator\",\n \"code\": \"CONTRACTOR_ADVANCE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Approver\",\n \"code\": \"WORKS_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Receipt Cancellator\",\n \"code\": \"CR_WS\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Approver\",\n \"code\": \"PROPERTY_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Approver\",\n \"code\": \"TL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOI APPROVER\",\n \"code\": \"LOI_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST CREATOR\",\n \"code\": \"EST_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Fire Noc Department Approver\",\n \"code\": \"FIRE_NOC_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"HCM SYSTEM ADMINISTRATOR\",\n \"code\": \"SYSTEM_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Field Inspector\",\n \"code\": \"PT_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Abstract Estimate Creator\",\n \"code\": \"AE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ULB Administrator\",\n \"code\": \"PTADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUKTA Admin\",\n \"code\": \"MUKTA_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Administrator\",\n \"code\": \"WORKS_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Builder\",\n \"code\": \"BPA_BUILDER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Voucher Creator\",\n \"code\": \"EGF_VOUCHER_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collections Remitter\",\n \"code\": \"COLL_REMIT_TO_BANK\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE APPROVER\",\n \"code\": \"ESTIMATE_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Auto Escalation Employee\",\n \"code\": \"AUTO_ESCALATE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_VERIFIER\",\n \"code\": \"MB_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST FIN SANC\",\n \"code\": \"EST_FIN_SANC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PGR Last Mile Employee\",\n \"code\": \"PGR_LME\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"DEATH Application Editor\",\n \"code\": \"DEATH_APPLICATION_EDITOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUSTER ROLL APPROVER\",\n \"code\": \"MUSTER_ROLL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Approver\",\n \"code\": \"WS_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Voucher Approver\",\n \"code\": \"EGF_VOUCHER_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM TP OPERATOR\",\n \"code\": \"PQM_TP_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Grivance Administrator\",\n \"code\": \"GA\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_ACCOUNTANT\",\n \"code\": \"BILL_ACCOUNTANT\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_VERIFIER\",\n \"code\": \"BILL_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Counter Employee\",\n \"code\": \"TL_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Tax Collection Employee\",\n \"code\": \"PT_COLLECTION_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Report Viewer\",\n \"code\": \"TL_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Desluding Operator\",\n \"code\": \"FSM_DSO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Application Viewer\",\n \"code\": \"FSM_VIEW_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPAREG doc verifier\",\n \"code\": \"BPAREG_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Asset Administrator\",\n \"code\": \"ASSET_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PGR Administrator\",\n \"code\": \"PGR-ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Field Employee\",\n \"code\": \"FEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Counter Employee\",\n \"code\": \"CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Death Application Viewer\",\n \"code\": \"DEATH_APPLICATION_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Admin of a ULB\",\n \"code\": \"CITY_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_CREATOR\",\n \"code\": \"BILL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collection Operator\",\n \"code\": \"COLL_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Application Editor\",\n \"code\": \"FSM_EDITOR_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPAREG Approver\",\n \"code\": \"BPAREG_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Driver\",\n \"code\": \"FSM_DRIVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER CREATOR\",\n \"code\": \"WORK_ORDER_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Death Application Creator\",\n \"code\": \"DEATH_APPLICATION_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Internal Microservice Role\",\n \"code\": \"INTERNAL_MICROSERVICE_ROLE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"AssetCreator\",\n \"code\": \"AssetCreator\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EGF Bill Creator\",\n \"code\": \"EGF_BILL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Employee Finance\",\n \"code\": \"EMPLOYEE_FINANCE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Sanitation Helper\",\n \"code\": \"SANITATION_HELPER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Legacy Receipt Creator\",\n \"code\": \"LEGACY_RECEIPT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"QA Automation\",\n \"code\": \"QA_AUTOMATION\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_CREATOR\",\n \"code\": \"MB_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Field Inspector\",\n \"code\": \"TL_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Organization admin\",\n \"code\": \"ORG_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_APPROVER\",\n \"code\": \"BILL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Architect\",\n \"code\": \"BPA_ARCHITECT\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUSTER ROLL VERIFIER\",\n \"code\": \"MUSTER_ROLL_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Field Inspector\",\n \"code\": \"BPA_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Employee Common\",\n \"code\": \"EMPLOYEE_COMMON\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Localisation admin\",\n \"code\": \"LOC_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_VIEWER\",\n \"code\": \"BILL_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Services verifier\",\n \"code\": \"BPA_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Engineer\",\n \"code\": \"BPA_ENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM FSTP Opperator\",\n \"code\": \"FSM_EMP_FSTPO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Universal Collection Employee\",\n \"code\": \"UC_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC Field Inpector\",\n \"code\": \"NOC_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Application Creator\",\n \"code\": \"FSM_CREATOR_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Counter Approver\",\n \"code\": \"PT_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST TECH SANC\",\n \"code\": \"EST_ADMIN_SANC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE CREATOR\",\n \"code\": \"ESTIMATE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM Admin\",\n \"code\": \"PQM_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC Doc Verifier\",\n \"code\": \"NOC_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Anonymous User\",\n \"code\": \"ANONYMOUS\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Citizen Feedback Centre\",\n \"code\": \"CFC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"State Dashboard Admin\",\n \"code\": \"STADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Financials Approver\",\n \"code\": \"WORKS_FINANCIAL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE VERIFIER\",\n \"code\": \"ESTIMATE_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PTIS Master\",\n \"code\": \"PTIS_MASTER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"CSC Collection Operator\",\n \"code\": \"CSC_COLL_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Report Viewer\",\n \"code\": \"BIRTH_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOI CREATOR\",\n \"code\": \"LOI_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ULB Operator\",\n \"code\": \"ULB_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Commissioner\",\n \"code\": \"COMMISSIONER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EGF Bill Approver\",\n \"code\": \"EGF_BILL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Payment Creator\",\n \"code\": \"EGF_PAYMENT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC counter Approver\",\n \"code\": \"NOC_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Sanitation Worker\",\n \"code\": \"SANITATION_WORKER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Structural Engineer\",\n \"code\": \"BPA_STRUCTURALENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"OFFICER IN CHARGE\",\n \"code\": \"OFFICER_IN_CHARGE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Department Grievance Routing Officer\",\n \"code\": \"DGRO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Services Approver\",\n \"code\": \"BPA_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PROJECT CREATOR\",\n \"code\": \"PROJECT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Water Report Viewer\",\n \"code\": \"WATER_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Master Admin\",\n \"code\": \"EGF_MASTER_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Town Planner\",\n \"code\": \"BPA_TOWNPLANNER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EMPLOYEE ADMIN\",\n \"code\": \"EMPLOYEE_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Adminsitrator\",\n \"code\": \"EGF_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Payment Collector\",\n \"code\": \"FSM_COLLECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Report Viewer\",\n \"code\": \"PT_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Sewerage Report Viewer\",\n \"code\": \"SEWERAGE_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_APPROVER\",\n \"code\": \"MB_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Supervisor\",\n \"code\": \"BPA_SUPERVISOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Application Creator\",\n \"code\": \"BIRTH_APPLICATION_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Any User\",\n \"code\": \"ANONYMUS\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Field Inspector\",\n \"code\": \"WS_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Verifier\",\n \"code\": \"PROPERTY_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Payment Approver\",\n \"code\": \"EGF_PAYMENT_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth and Death Dashboard User\",\n \"code\": \"DASHBOARD_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM CRONJOB SCHEDULER\",\n \"code\": \"PQM_CRONJOB_SCHEDULER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Report Viewer\",\n \"code\": \"FSM_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST TECH SANC\",\n \"code\": \"EST_TECH_SANC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Auto Escalation Supervisor\",\n \"code\": \"SUPERVISOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER VERIFIER\",\n \"code\": \"WORK_ORDER_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Detailed Estimate Creator\",\n \"code\": \"DE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"AssetReportViewer\",\n \"code\": \"AssetReportViewer\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Approver\",\n \"code\": \"SW_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth and Death User\",\n \"code\": \"BND_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TECHNICAL SANCTIONER\",\n \"code\": \"TECHNICAL_SANCTIONER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Master creator\",\n \"code\": \"WORKS_MASTER_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Application Editor\",\n \"code\": \"BIRTH_APPLICATION_EDITOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Death Report Viewer\",\n \"code\": \"DEATH_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"National Dashboard Systeme user\",\n \"code\": \"NDA_SYSTEM\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Fire Noc Report Viewer\",\n \"code\": \"FIRENOC_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SUPER USER\",\n \"code\": \"SUPERUSER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA NOC Verifier\",\n \"code\": \"BPA_NOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Dashboard Viewer\",\n \"code\": \"FSM_DASHBOARD_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Employee\",\n \"code\": \"EMPLOYEE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collections Receipt Creator\",\n \"code\": \"COLL_RECEIPT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Doc Verifier\",\n \"code\": \"PT_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Administrator\",\n \"code\": \"FSM_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"OBPS Report Viewer\",\n \"code\": \"OBPS_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Bank Collection Operator\",\n \"code\": \"BANK_COLL_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"CBO ADMIN\",\n \"code\": \"CBO_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Airport authority Approver\",\n \"code\": \"AIRPORT_AUTHORITY_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Admin\",\n \"code\": \"TL_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Creator\",\n \"code\": \"TL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Field Inspector\",\n \"code\": \"SW_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Customer Support Representative\",\n \"code\": \"CSR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Reindexing Role\",\n \"code\": \"REINDEXING_ROLE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WO Creator\",\n \"code\": \"WO_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Counter Employee\",\n \"code\": \"PT_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PTIS Admin\",\n \"code\": \"PTIS_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL doc verifier\",\n \"code\": \"TL_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE VIEWER\",\n \"code\": \"ESTIMATE_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Tax Receipt Cancellator\",\n \"code\": \"CR_PT\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Counter Employee\",\n \"code\": \"WS_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST_CHECKER\",\n \"code\": \"EST_CHECKER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"JUNIOR ENGINEER\",\n \"code\": \"JUNIOR_ENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOI CHECKER\",\n \"code\": \"LOI_CHECKER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC counter employee\",\n \"code\": \"NOC_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOA Creator\",\n \"code\": \"LOA_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Report View\",\n \"code\": \"EGF_REPORT_VIEW\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Document Verifier\",\n \"code\": \"WS_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PROJECT VIEWER\",\n \"code\": \"PROJECT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Grievance Routing Officer\",\n \"code\": \"GRO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Organization staff\",\n \"code\": \"ORG_STAFF\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Document Verifier\",\n \"code\": \"SW_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUNICIPAL ENGINEER\",\n \"code\": \"MUNICIPAL_ENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Clerk\",\n \"code\": \"SW_CLERK\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM Lab Operator\",\n \"code\": \"PQM_LAB_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER APPROVER\",\n \"code\": \"WORK_ORDER_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Grievance Officer\",\n \"code\": \"GO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Clerk\",\n \"code\": \"WS_CLERK\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Counter Employee\",\n \"code\": \"SW_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MDMS Admin\",\n \"code\": \"MDMS_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPAREG Employee\",\n \"code\": \"BPAREG_EMPLOYEE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_VIEWER\",\n \"code\": \"MB_VIEWER\",\n \"tenantId\": \"pg.citya\"\n }\n ],\n \"active\": true,\n \"tenantId\": \"pg.citya\",\n \"permanentCity\": null\n },\n \"msgId\": \"1695707627807|en_IN\",\n \"plainAccessRequest\": {}\n },\n \"measurements\": [\n {\n \"id\": \"{{measurementId}}\",\n \"tenantId\": \"{{tenantId}}\",\n \"measurementNumber\": \"{{MBno}}\",\n \"physicalRefNumber\": \"{{phrefnum}}\",\n \"referenceId\": \"{{MB-CO}}\",\n \"entryDate\": \"{{entryDate}}\",\n \"measures\": [\n {\n \"id\": \"{{measureId1}}\",\n \"referenceId\": \"{{refId}}\",\n \"targetId\": \"{{contractLineItemRef1}}\",\n \"length\": 0,\n \"breadth\": 0,\n \"height\": 0,\n \"numItems\": 0.0,\n \"currentValue\": 0.0,\n \"cumulativeValue\": 0.0,\n \"isActive\": true,\n \"comments\": null,\n \"documents\": null,\n \"auditDetails\": {\n \"createdBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"lastModifiedBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"createdTime\": {{createdTime}},\n \"lastModifiedTime\": {{lastModifiedTime}}\n },\n \"additionalDetails\": {\n \"type\": \"SOR\",\n \"mbAmount\": 520\n }\n },\n {\n \"id\": \"{{measureId2}}\",\n \"referenceId\": \"{{refId}}\",\n \"targetId\": \"{{contractLineItemRef2}}\",\n \"length\": 0,\n \"breadth\": 0,\n \"height\": 0,\n \"numItems\": 0.0,\n \"currentValue\": 0.0,\n \"cumulativeValue\": 0.0,\n \"isActive\": true,\n \"comments\": null,\n \"documents\": null,\n \"auditDetails\": {\n \"createdBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"lastModifiedBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"createdTime\": {{createdTime}},\n \"lastModifiedTime\": {{lastModifiedTime}}\n },\n \"additionalDetails\": {\n \"type\": \"SOR\",\n \"mbAmount\": 530\n }\n }\n ],\n \"isActive\": true,\n \"documents\": [],\n \"auditDetails\": {\n \"createdBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"lastModifiedBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"createdTime\": {{createdTime}},\n \"lastModifiedTime\": {{lastModifiedTime}}\n },\n \"additionalDetails\": {\n \"sorAmount\": 8000,\n \"totalAmount\": 0\n },\n \"wfStatus\": \"PENDING_FOR_APPROVAL\",\n \"workflow\": {\n \"action\": \"VERIFY_AND_FORWARD\",\n \"assignes\": [],\n \"comments\": \"check\",\n \"verificationDocuments\": [\n {\n \"id\": null,\n \"documentType\": \"string\",\n \"fileStore\": \"be14ceb8-01ba-485b-a6e2-489e5474a576\",\n \"documentUid\": \"string\",\n \"additionalDetails\": {}\n }\n ]\n }\n }\n ]\n}" }, "url": { "raw": "{{base_url}}/measurement-service/v1/_update", "host": [ "{{base_url}}" ], "path": [ "measurement-service", "v1", "_update" ] } }, "response": [] }, { "name": "Measurement Update-Success-WF Approve", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () =>\r", " // Check if the response status is 200 or 202\r", " pm.expect(pm.response.code===200||pm.response.code===202).to.be.true\r", ");\r", "\r", "pm.test(\"Measurement's workflow status is Approved\", function () {\r", " let responseData = pm.response.json();\r", " pm.expect(responseData.measurements[0].wfStatus).eq(\"APPROVED\");\r", " pm.collectionVariables.set(\"wfStatus\", responseData.measurements[0].status);\r", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json", "uuid": "d070b732-5aa7-46cb-bcb2-daa4e4e46432" } ], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"Rainmaker\",\n \"authToken\": \"{{auth}}\",\n \"userInfo\": {\n \"id\": 965,\n \"uuid\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"userName\": \"AUTO2\",\n \"name\": \"AUTO\",\n \"mobileNumber\": \"9999999999\",\n \"emailId\": null,\n \"locale\": null,\n \"type\": \"EMPLOYEE\",\n \"roles\": [\n {\n \"name\": \"HRMS Admin\",\n \"code\": \"HRMS_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER VIEWER\",\n \"code\": \"WORK_ORDER_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"National Dashboard Admin\",\n \"code\": \"NATADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Application Viewer\",\n \"code\": \"BIRTH_APPLICATION_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Redressal Officer\",\n \"code\": \"RO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Bill Creator\",\n \"code\": \"WORKS_BILL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collection Report Viewer\",\n \"code\": \"COLL_REP_VIEW\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Contractor Advance creator\",\n \"code\": \"CONTRACTOR_ADVANCE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Approver\",\n \"code\": \"WORKS_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Receipt Cancellator\",\n \"code\": \"CR_WS\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Approver\",\n \"code\": \"PROPERTY_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Approver\",\n \"code\": \"TL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOI APPROVER\",\n \"code\": \"LOI_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST CREATOR\",\n \"code\": \"EST_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Fire Noc Department Approver\",\n \"code\": \"FIRE_NOC_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"HCM SYSTEM ADMINISTRATOR\",\n \"code\": \"SYSTEM_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Field Inspector\",\n \"code\": \"PT_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Abstract Estimate Creator\",\n \"code\": \"AE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ULB Administrator\",\n \"code\": \"PTADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUKTA Admin\",\n \"code\": \"MUKTA_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Administrator\",\n \"code\": \"WORKS_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Builder\",\n \"code\": \"BPA_BUILDER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Voucher Creator\",\n \"code\": \"EGF_VOUCHER_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collections Remitter\",\n \"code\": \"COLL_REMIT_TO_BANK\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE APPROVER\",\n \"code\": \"ESTIMATE_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Auto Escalation Employee\",\n \"code\": \"AUTO_ESCALATE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_VERIFIER\",\n \"code\": \"MB_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST FIN SANC\",\n \"code\": \"EST_FIN_SANC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PGR Last Mile Employee\",\n \"code\": \"PGR_LME\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"DEATH Application Editor\",\n \"code\": \"DEATH_APPLICATION_EDITOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUSTER ROLL APPROVER\",\n \"code\": \"MUSTER_ROLL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Approver\",\n \"code\": \"WS_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Voucher Approver\",\n \"code\": \"EGF_VOUCHER_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM TP OPERATOR\",\n \"code\": \"PQM_TP_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Grivance Administrator\",\n \"code\": \"GA\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_ACCOUNTANT\",\n \"code\": \"BILL_ACCOUNTANT\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_VERIFIER\",\n \"code\": \"BILL_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Counter Employee\",\n \"code\": \"TL_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Tax Collection Employee\",\n \"code\": \"PT_COLLECTION_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Report Viewer\",\n \"code\": \"TL_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Desluding Operator\",\n \"code\": \"FSM_DSO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Application Viewer\",\n \"code\": \"FSM_VIEW_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPAREG doc verifier\",\n \"code\": \"BPAREG_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Asset Administrator\",\n \"code\": \"ASSET_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PGR Administrator\",\n \"code\": \"PGR-ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Field Employee\",\n \"code\": \"FEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Counter Employee\",\n \"code\": \"CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Death Application Viewer\",\n \"code\": \"DEATH_APPLICATION_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Admin of a ULB\",\n \"code\": \"CITY_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_CREATOR\",\n \"code\": \"BILL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collection Operator\",\n \"code\": \"COLL_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Application Editor\",\n \"code\": \"FSM_EDITOR_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPAREG Approver\",\n \"code\": \"BPAREG_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Driver\",\n \"code\": \"FSM_DRIVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER CREATOR\",\n \"code\": \"WORK_ORDER_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Death Application Creator\",\n \"code\": \"DEATH_APPLICATION_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Internal Microservice Role\",\n \"code\": \"INTERNAL_MICROSERVICE_ROLE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"AssetCreator\",\n \"code\": \"AssetCreator\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EGF Bill Creator\",\n \"code\": \"EGF_BILL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Employee Finance\",\n \"code\": \"EMPLOYEE_FINANCE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Sanitation Helper\",\n \"code\": \"SANITATION_HELPER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Legacy Receipt Creator\",\n \"code\": \"LEGACY_RECEIPT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"QA Automation\",\n \"code\": \"QA_AUTOMATION\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_CREATOR\",\n \"code\": \"MB_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Field Inspector\",\n \"code\": \"TL_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Organization admin\",\n \"code\": \"ORG_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_APPROVER\",\n \"code\": \"BILL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Architect\",\n \"code\": \"BPA_ARCHITECT\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUSTER ROLL VERIFIER\",\n \"code\": \"MUSTER_ROLL_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Field Inspector\",\n \"code\": \"BPA_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Employee Common\",\n \"code\": \"EMPLOYEE_COMMON\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Localisation admin\",\n \"code\": \"LOC_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_VIEWER\",\n \"code\": \"BILL_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Services verifier\",\n \"code\": \"BPA_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Engineer\",\n \"code\": \"BPA_ENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM FSTP Opperator\",\n \"code\": \"FSM_EMP_FSTPO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Universal Collection Employee\",\n \"code\": \"UC_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC Field Inpector\",\n \"code\": \"NOC_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Application Creator\",\n \"code\": \"FSM_CREATOR_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Counter Approver\",\n \"code\": \"PT_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST TECH SANC\",\n \"code\": \"EST_ADMIN_SANC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE CREATOR\",\n \"code\": \"ESTIMATE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM Admin\",\n \"code\": \"PQM_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC Doc Verifier\",\n \"code\": \"NOC_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Anonymous User\",\n \"code\": \"ANONYMOUS\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Citizen Feedback Centre\",\n \"code\": \"CFC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"State Dashboard Admin\",\n \"code\": \"STADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Financials Approver\",\n \"code\": \"WORKS_FINANCIAL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE VERIFIER\",\n \"code\": \"ESTIMATE_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PTIS Master\",\n \"code\": \"PTIS_MASTER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"CSC Collection Operator\",\n \"code\": \"CSC_COLL_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Report Viewer\",\n \"code\": \"BIRTH_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOI CREATOR\",\n \"code\": \"LOI_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ULB Operator\",\n \"code\": \"ULB_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Commissioner\",\n \"code\": \"COMMISSIONER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EGF Bill Approver\",\n \"code\": \"EGF_BILL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Payment Creator\",\n \"code\": \"EGF_PAYMENT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC counter Approver\",\n \"code\": \"NOC_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Sanitation Worker\",\n \"code\": \"SANITATION_WORKER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Structural Engineer\",\n \"code\": \"BPA_STRUCTURALENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"OFFICER IN CHARGE\",\n \"code\": \"OFFICER_IN_CHARGE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Department Grievance Routing Officer\",\n \"code\": \"DGRO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Services Approver\",\n \"code\": \"BPA_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PROJECT CREATOR\",\n \"code\": \"PROJECT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Water Report Viewer\",\n \"code\": \"WATER_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Master Admin\",\n \"code\": \"EGF_MASTER_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Town Planner\",\n \"code\": \"BPA_TOWNPLANNER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EMPLOYEE ADMIN\",\n \"code\": \"EMPLOYEE_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Adminsitrator\",\n \"code\": \"EGF_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Payment Collector\",\n \"code\": \"FSM_COLLECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Report Viewer\",\n \"code\": \"PT_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Sewerage Report Viewer\",\n \"code\": \"SEWERAGE_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_APPROVER\",\n \"code\": \"MB_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Supervisor\",\n \"code\": \"BPA_SUPERVISOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Application Creator\",\n \"code\": \"BIRTH_APPLICATION_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Any User\",\n \"code\": \"ANONYMUS\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Field Inspector\",\n \"code\": \"WS_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Verifier\",\n \"code\": \"PROPERTY_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Payment Approver\",\n \"code\": \"EGF_PAYMENT_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth and Death Dashboard User\",\n \"code\": \"DASHBOARD_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM CRONJOB SCHEDULER\",\n \"code\": \"PQM_CRONJOB_SCHEDULER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Report Viewer\",\n \"code\": \"FSM_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST TECH SANC\",\n \"code\": \"EST_TECH_SANC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Auto Escalation Supervisor\",\n \"code\": \"SUPERVISOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER VERIFIER\",\n \"code\": \"WORK_ORDER_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Detailed Estimate Creator\",\n \"code\": \"DE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"AssetReportViewer\",\n \"code\": \"AssetReportViewer\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Approver\",\n \"code\": \"SW_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth and Death User\",\n \"code\": \"BND_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TECHNICAL SANCTIONER\",\n \"code\": \"TECHNICAL_SANCTIONER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Master creator\",\n \"code\": \"WORKS_MASTER_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Application Editor\",\n \"code\": \"BIRTH_APPLICATION_EDITOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Death Report Viewer\",\n \"code\": \"DEATH_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"National Dashboard Systeme user\",\n \"code\": \"NDA_SYSTEM\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Fire Noc Report Viewer\",\n \"code\": \"FIRENOC_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SUPER USER\",\n \"code\": \"SUPERUSER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA NOC Verifier\",\n \"code\": \"BPA_NOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Dashboard Viewer\",\n \"code\": \"FSM_DASHBOARD_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Employee\",\n \"code\": \"EMPLOYEE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collections Receipt Creator\",\n \"code\": \"COLL_RECEIPT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Doc Verifier\",\n \"code\": \"PT_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Administrator\",\n \"code\": \"FSM_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"OBPS Report Viewer\",\n \"code\": \"OBPS_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Bank Collection Operator\",\n \"code\": \"BANK_COLL_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"CBO ADMIN\",\n \"code\": \"CBO_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Airport authority Approver\",\n \"code\": \"AIRPORT_AUTHORITY_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Admin\",\n \"code\": \"TL_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Creator\",\n \"code\": \"TL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Field Inspector\",\n \"code\": \"SW_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Customer Support Representative\",\n \"code\": \"CSR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Reindexing Role\",\n \"code\": \"REINDEXING_ROLE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WO Creator\",\n \"code\": \"WO_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Counter Employee\",\n \"code\": \"PT_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PTIS Admin\",\n \"code\": \"PTIS_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL doc verifier\",\n \"code\": \"TL_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE VIEWER\",\n \"code\": \"ESTIMATE_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Tax Receipt Cancellator\",\n \"code\": \"CR_PT\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Counter Employee\",\n \"code\": \"WS_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST_CHECKER\",\n \"code\": \"EST_CHECKER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"JUNIOR ENGINEER\",\n \"code\": \"JUNIOR_ENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOI CHECKER\",\n \"code\": \"LOI_CHECKER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC counter employee\",\n \"code\": \"NOC_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOA Creator\",\n \"code\": \"LOA_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Report View\",\n \"code\": \"EGF_REPORT_VIEW\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Document Verifier\",\n \"code\": \"WS_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PROJECT VIEWER\",\n \"code\": \"PROJECT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Grievance Routing Officer\",\n \"code\": \"GRO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Organization staff\",\n \"code\": \"ORG_STAFF\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Document Verifier\",\n \"code\": \"SW_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUNICIPAL ENGINEER\",\n \"code\": \"MUNICIPAL_ENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Clerk\",\n \"code\": \"SW_CLERK\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM Lab Operator\",\n \"code\": \"PQM_LAB_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER APPROVER\",\n \"code\": \"WORK_ORDER_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Grievance Officer\",\n \"code\": \"GO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Clerk\",\n \"code\": \"WS_CLERK\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Counter Employee\",\n \"code\": \"SW_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MDMS Admin\",\n \"code\": \"MDMS_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPAREG Employee\",\n \"code\": \"BPAREG_EMPLOYEE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_VIEWER\",\n \"code\": \"MB_VIEWER\",\n \"tenantId\": \"pg.citya\"\n }\n ],\n \"active\": true,\n \"tenantId\": \"pg.citya\",\n \"permanentCity\": null\n },\n \"msgId\": \"1695707627807|en_IN\",\n \"plainAccessRequest\": {}\n },\n \"measurements\": [\n {\n \"id\": \"{{measurementId}}\",\n \"tenantId\": \"{{tenantId}}\",\n \"measurementNumber\": \"{{MBno}}\",\n \"physicalRefNumber\": \"{{phrefnum}}\",\n \"referenceId\": \"{{MB-CO}}\",\n \"entryDate\": \"{{entryDate}}\",\n \"measures\": [\n {\n \"id\": \"{{measureId1}}\",\n \"referenceId\": \"{{refId}}\",\n \"targetId\": \"{{contractLineItemRef1}}\",\n \"length\": 0,\n \"breadth\": 0,\n \"height\": 0,\n \"numItems\": 0.0,\n \"currentValue\": 0.0,\n \"cumulativeValue\": 0.0,\n \"isActive\": true,\n \"comments\": null,\n \"documents\": null,\n \"auditDetails\": {\n \"createdBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"lastModifiedBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"createdTime\": {{createdTime}},\n \"lastModifiedTime\": {{lastModifiedTime}}\n },\n \"additionalDetails\": {\n \"type\": \"SOR\",\n \"mbAmount\": 520\n }\n },\n {\n \"id\": \"{{measureId2}}\",\n \"referenceId\": \"{{refId}}\",\n \"targetId\": \"{{contractLineItemRef2}}\",\n \"length\": 0,\n \"breadth\": 0,\n \"height\": 0,\n \"numItems\": 0.0,\n \"currentValue\": 0.0,\n \"cumulativeValue\": 0.0,\n \"isActive\": true,\n \"comments\": null,\n \"documents\": null,\n \"auditDetails\": {\n \"createdBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"lastModifiedBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"createdTime\": {{createdTime}},\n \"lastModifiedTime\": {{lastModifiedTime}}\n },\n \"additionalDetails\": {\n \"type\": \"SOR\",\n \"mbAmount\": 530\n }\n }\n ],\n \"isActive\": true,\n \"documents\": [],\n \"auditDetails\": {\n \"createdBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"lastModifiedBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"createdTime\": {{createdTime}},\n \"lastModifiedTime\": {{lastModifiedTime}}\n },\n \"additionalDetails\": {\n \"sorAmount\": 8000,\n \"totalAmount\": 0\n },\n \"wfStatus\": \"APPROVED\",\n \"workflow\": {\n \"action\": \"APPROVE\",\n \"assignes\": [],\n \"comments\": \"check\",\n \"verificationDocuments\": [\n {\n \"id\": null,\n \"documentType\": \"string\",\n \"fileStore\": \"be14ceb8-01ba-485b-a6e2-489e5474a576\",\n \"documentUid\": \"string\",\n \"additionalDetails\": {}\n }\n ]\n }\n }\n ]\n}" }, "url": { "raw": "{{base_url}}/measurement-service/v1/_update", "host": [ "{{base_url}}" ], "path": [ "measurement-service", "v1", "_update" ] } }, "response": [] }, { "name": "Measurement Update-Validation Error- Invalid WF Actions", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Check response is Bad Request\", function () {\r", " // Check if the response status is 400\r", " pm.expect(pm.response.code).to.equal(400);\r", "});\r", "\r", "pm.test(\"Response should have 'INVALID_WORKFLOW_ACTION'\", function() {\r", " var jsonData = pm.response.json();\r", " if (jsonData.error) {\r", " console.error(\"Error detected: \" + jsonData.error);\r", " // You can handle the error as per your requirements, for example:\r", " pm.response.to.be.error(); \r", "// throw new Error(\"Error detected: \" + jsonData.error);\r", " pm.expect.jsonData.to.be.eql(\"INVALID_WORKFLOW_ACTION\");\r", " } else {\r", " console.log(\"No errors detected in the response\");\r", " // Continue with your regular tests or script logic\r", " }\r", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json", "uuid": "012d4532-48f4-49cb-a9ba-f0dcda9a134a" } ], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"Rainmaker\",\n \"authToken\": \"{{auth}}\",\n \"userInfo\": {\n \"id\": 965,\n \"uuid\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"userName\": \"AUTO2\",\n \"name\": \"AUTO\",\n \"mobileNumber\": \"9999999999\",\n \"emailId\": null,\n \"locale\": null,\n \"type\": \"EMPLOYEE\",\n \"roles\": [\n {\n \"name\": \"HRMS Admin\",\n \"code\": \"HRMS_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER VIEWER\",\n \"code\": \"WORK_ORDER_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"National Dashboard Admin\",\n \"code\": \"NATADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Application Viewer\",\n \"code\": \"BIRTH_APPLICATION_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Redressal Officer\",\n \"code\": \"RO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Bill Creator\",\n \"code\": \"WORKS_BILL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collection Report Viewer\",\n \"code\": \"COLL_REP_VIEW\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Contractor Advance creator\",\n \"code\": \"CONTRACTOR_ADVANCE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Approver\",\n \"code\": \"WORKS_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Receipt Cancellator\",\n \"code\": \"CR_WS\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Approver\",\n \"code\": \"PROPERTY_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Approver\",\n \"code\": \"TL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOI APPROVER\",\n \"code\": \"LOI_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST CREATOR\",\n \"code\": \"EST_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Fire Noc Department Approver\",\n \"code\": \"FIRE_NOC_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"HCM SYSTEM ADMINISTRATOR\",\n \"code\": \"SYSTEM_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Field Inspector\",\n \"code\": \"PT_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Abstract Estimate Creator\",\n \"code\": \"AE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ULB Administrator\",\n \"code\": \"PTADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUKTA Admin\",\n \"code\": \"MUKTA_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Administrator\",\n \"code\": \"WORKS_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Builder\",\n \"code\": \"BPA_BUILDER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Voucher Creator\",\n \"code\": \"EGF_VOUCHER_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collections Remitter\",\n \"code\": \"COLL_REMIT_TO_BANK\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE APPROVER\",\n \"code\": \"ESTIMATE_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Auto Escalation Employee\",\n \"code\": \"AUTO_ESCALATE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_VERIFIER\",\n \"code\": \"MB_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST FIN SANC\",\n \"code\": \"EST_FIN_SANC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PGR Last Mile Employee\",\n \"code\": \"PGR_LME\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"DEATH Application Editor\",\n \"code\": \"DEATH_APPLICATION_EDITOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUSTER ROLL APPROVER\",\n \"code\": \"MUSTER_ROLL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Approver\",\n \"code\": \"WS_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Voucher Approver\",\n \"code\": \"EGF_VOUCHER_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM TP OPERATOR\",\n \"code\": \"PQM_TP_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Grivance Administrator\",\n \"code\": \"GA\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_ACCOUNTANT\",\n \"code\": \"BILL_ACCOUNTANT\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_VERIFIER\",\n \"code\": \"BILL_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Counter Employee\",\n \"code\": \"TL_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Tax Collection Employee\",\n \"code\": \"PT_COLLECTION_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Report Viewer\",\n \"code\": \"TL_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Desluding Operator\",\n \"code\": \"FSM_DSO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Application Viewer\",\n \"code\": \"FSM_VIEW_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPAREG doc verifier\",\n \"code\": \"BPAREG_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Asset Administrator\",\n \"code\": \"ASSET_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PGR Administrator\",\n \"code\": \"PGR-ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Field Employee\",\n \"code\": \"FEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Counter Employee\",\n \"code\": \"CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Death Application Viewer\",\n \"code\": \"DEATH_APPLICATION_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Admin of a ULB\",\n \"code\": \"CITY_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_CREATOR\",\n \"code\": \"BILL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collection Operator\",\n \"code\": \"COLL_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Application Editor\",\n \"code\": \"FSM_EDITOR_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPAREG Approver\",\n \"code\": \"BPAREG_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Driver\",\n \"code\": \"FSM_DRIVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER CREATOR\",\n \"code\": \"WORK_ORDER_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Death Application Creator\",\n \"code\": \"DEATH_APPLICATION_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Internal Microservice Role\",\n \"code\": \"INTERNAL_MICROSERVICE_ROLE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"AssetCreator\",\n \"code\": \"AssetCreator\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EGF Bill Creator\",\n \"code\": \"EGF_BILL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Employee Finance\",\n \"code\": \"EMPLOYEE_FINANCE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Sanitation Helper\",\n \"code\": \"SANITATION_HELPER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Legacy Receipt Creator\",\n \"code\": \"LEGACY_RECEIPT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"QA Automation\",\n \"code\": \"QA_AUTOMATION\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_CREATOR\",\n \"code\": \"MB_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Field Inspector\",\n \"code\": \"TL_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Organization admin\",\n \"code\": \"ORG_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_APPROVER\",\n \"code\": \"BILL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Architect\",\n \"code\": \"BPA_ARCHITECT\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUSTER ROLL VERIFIER\",\n \"code\": \"MUSTER_ROLL_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Field Inspector\",\n \"code\": \"BPA_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Employee Common\",\n \"code\": \"EMPLOYEE_COMMON\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Localisation admin\",\n \"code\": \"LOC_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_VIEWER\",\n \"code\": \"BILL_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Services verifier\",\n \"code\": \"BPA_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Engineer\",\n \"code\": \"BPA_ENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM FSTP Opperator\",\n \"code\": \"FSM_EMP_FSTPO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Universal Collection Employee\",\n \"code\": \"UC_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC Field Inpector\",\n \"code\": \"NOC_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Application Creator\",\n \"code\": \"FSM_CREATOR_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Counter Approver\",\n \"code\": \"PT_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST TECH SANC\",\n \"code\": \"EST_ADMIN_SANC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE CREATOR\",\n \"code\": \"ESTIMATE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM Admin\",\n \"code\": \"PQM_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC Doc Verifier\",\n \"code\": \"NOC_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Anonymous User\",\n \"code\": \"ANONYMOUS\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Citizen Feedback Centre\",\n \"code\": \"CFC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"State Dashboard Admin\",\n \"code\": \"STADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Financials Approver\",\n \"code\": \"WORKS_FINANCIAL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE VERIFIER\",\n \"code\": \"ESTIMATE_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PTIS Master\",\n \"code\": \"PTIS_MASTER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"CSC Collection Operator\",\n \"code\": \"CSC_COLL_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Report Viewer\",\n \"code\": \"BIRTH_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOI CREATOR\",\n \"code\": \"LOI_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ULB Operator\",\n \"code\": \"ULB_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Commissioner\",\n \"code\": \"COMMISSIONER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EGF Bill Approver\",\n \"code\": \"EGF_BILL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Payment Creator\",\n \"code\": \"EGF_PAYMENT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC counter Approver\",\n \"code\": \"NOC_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Sanitation Worker\",\n \"code\": \"SANITATION_WORKER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Structural Engineer\",\n \"code\": \"BPA_STRUCTURALENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"OFFICER IN CHARGE\",\n \"code\": \"OFFICER_IN_CHARGE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Department Grievance Routing Officer\",\n \"code\": \"DGRO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Services Approver\",\n \"code\": \"BPA_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PROJECT CREATOR\",\n \"code\": \"PROJECT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Water Report Viewer\",\n \"code\": \"WATER_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Master Admin\",\n \"code\": \"EGF_MASTER_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Town Planner\",\n \"code\": \"BPA_TOWNPLANNER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EMPLOYEE ADMIN\",\n \"code\": \"EMPLOYEE_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Adminsitrator\",\n \"code\": \"EGF_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Payment Collector\",\n \"code\": \"FSM_COLLECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Report Viewer\",\n \"code\": \"PT_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Sewerage Report Viewer\",\n \"code\": \"SEWERAGE_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_APPROVER\",\n \"code\": \"MB_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Supervisor\",\n \"code\": \"BPA_SUPERVISOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Application Creator\",\n \"code\": \"BIRTH_APPLICATION_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Any User\",\n \"code\": \"ANONYMUS\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Field Inspector\",\n \"code\": \"WS_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Verifier\",\n \"code\": \"PROPERTY_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Payment Approver\",\n \"code\": \"EGF_PAYMENT_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth and Death Dashboard User\",\n \"code\": \"DASHBOARD_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM CRONJOB SCHEDULER\",\n \"code\": \"PQM_CRONJOB_SCHEDULER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Report Viewer\",\n \"code\": \"FSM_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST TECH SANC\",\n \"code\": \"EST_TECH_SANC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Auto Escalation Supervisor\",\n \"code\": \"SUPERVISOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER VERIFIER\",\n \"code\": \"WORK_ORDER_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Detailed Estimate Creator\",\n \"code\": \"DE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"AssetReportViewer\",\n \"code\": \"AssetReportViewer\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Approver\",\n \"code\": \"SW_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth and Death User\",\n \"code\": \"BND_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TECHNICAL SANCTIONER\",\n \"code\": \"TECHNICAL_SANCTIONER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Master creator\",\n \"code\": \"WORKS_MASTER_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Application Editor\",\n \"code\": \"BIRTH_APPLICATION_EDITOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Death Report Viewer\",\n \"code\": \"DEATH_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"National Dashboard Systeme user\",\n \"code\": \"NDA_SYSTEM\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Fire Noc Report Viewer\",\n \"code\": \"FIRENOC_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SUPER USER\",\n \"code\": \"SUPERUSER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA NOC Verifier\",\n \"code\": \"BPA_NOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Dashboard Viewer\",\n \"code\": \"FSM_DASHBOARD_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Employee\",\n \"code\": \"EMPLOYEE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collections Receipt Creator\",\n \"code\": \"COLL_RECEIPT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Doc Verifier\",\n \"code\": \"PT_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Administrator\",\n \"code\": \"FSM_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"OBPS Report Viewer\",\n \"code\": \"OBPS_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Bank Collection Operator\",\n \"code\": \"BANK_COLL_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"CBO ADMIN\",\n \"code\": \"CBO_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Airport authority Approver\",\n \"code\": \"AIRPORT_AUTHORITY_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Admin\",\n \"code\": \"TL_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Creator\",\n \"code\": \"TL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Field Inspector\",\n \"code\": \"SW_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Customer Support Representative\",\n \"code\": \"CSR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Reindexing Role\",\n \"code\": \"REINDEXING_ROLE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WO Creator\",\n \"code\": \"WO_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Counter Employee\",\n \"code\": \"PT_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PTIS Admin\",\n \"code\": \"PTIS_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL doc verifier\",\n \"code\": \"TL_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE VIEWER\",\n \"code\": \"ESTIMATE_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Tax Receipt Cancellator\",\n \"code\": \"CR_PT\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Counter Employee\",\n \"code\": \"WS_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST_CHECKER\",\n \"code\": \"EST_CHECKER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"JUNIOR ENGINEER\",\n \"code\": \"JUNIOR_ENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOI CHECKER\",\n \"code\": \"LOI_CHECKER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC counter employee\",\n \"code\": \"NOC_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOA Creator\",\n \"code\": \"LOA_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Report View\",\n \"code\": \"EGF_REPORT_VIEW\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Document Verifier\",\n \"code\": \"WS_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PROJECT VIEWER\",\n \"code\": \"PROJECT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Grievance Routing Officer\",\n \"code\": \"GRO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Organization staff\",\n \"code\": \"ORG_STAFF\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Document Verifier\",\n \"code\": \"SW_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUNICIPAL ENGINEER\",\n \"code\": \"MUNICIPAL_ENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Clerk\",\n \"code\": \"SW_CLERK\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM Lab Operator\",\n \"code\": \"PQM_LAB_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER APPROVER\",\n \"code\": \"WORK_ORDER_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Grievance Officer\",\n \"code\": \"GO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Clerk\",\n \"code\": \"WS_CLERK\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Counter Employee\",\n \"code\": \"SW_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MDMS Admin\",\n \"code\": \"MDMS_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPAREG Employee\",\n \"code\": \"BPAREG_EMPLOYEE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_VIEWER\",\n \"code\": \"MB_VIEWER\",\n \"tenantId\": \"pg.citya\"\n }\n ],\n \"active\": true,\n \"tenantId\": \"pg.citya\",\n \"permanentCity\": null\n },\n \"msgId\": \"1695707627807|en_IN\",\n \"plainAccessRequest\": {}\n },\n \"measurements\": [\n {\n \"id\": \"{{measurementId}}\",\n \"tenantId\": \"{{tenantId}}\",\n \"measurementNumber\": \"{{MBno}}\",\n \"physicalRefNumber\": \"{{phrefnum}}\",\n \"referenceId\": \"{{MB-CO}}\",\n \"entryDate\": \"{{entryDate}}\",\n \"measures\": [\n {\n \"id\": \"{{measureId1}}\",\n \"referenceId\": \"{{refId}}\",\n \"targetId\": \"{{contractLineItemRef1}}\",\n \"length\": 0,\n \"breadth\": 0,\n \"height\": 0,\n \"numItems\": 0.0,\n \"currentValue\": 0.0,\n \"cumulativeValue\": 0.0,\n \"isActive\": true,\n \"comments\": null,\n \"documents\": null,\n \"auditDetails\": {\n \"createdBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"lastModifiedBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"createdTime\": {{createdTime}},\n \"lastModifiedTime\": {{lastModifiedTime}}\n },\n \"additionalDetails\": {\n \"type\": \"SOR\",\n \"mbAmount\": 520\n }\n },\n {\n \"id\": \"{{measureId2}}\",\n \"referenceId\": \"{{refId}}\",\n \"targetId\": \"{{contractLineItemRef2}}\",\n \"length\": 0,\n \"breadth\": 0,\n \"height\": 0,\n \"numItems\": 0.0,\n \"currentValue\": 0.0,\n \"cumulativeValue\": 0.0,\n \"isActive\": true,\n \"comments\": null,\n \"documents\": null,\n \"auditDetails\": {\n \"createdBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"lastModifiedBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"createdTime\": {{createdTime}},\n \"lastModifiedTime\": {{lastModifiedTime}}\n },\n \"additionalDetails\": {\n \"type\": \"SOR\",\n \"mbAmount\": 530\n }\n }\n ],\n \"isActive\": true,\n \"documents\": [],\n \"auditDetails\": {\n \"createdBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"lastModifiedBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"createdTime\": {{createdTime}},\n \"lastModifiedTime\": {{lastModifiedTime}}\n },\n \"additionalDetails\": {\n \"sorAmount\": 8000,\n \"totalAmount\": 0\n },\n \"wfStatus\": \"REJECTED\",\n \"workflow\": {\n \"action\": \"APPROVE\",\n \"assignes\": [],\n \"comments\": \"check\",\n \"verificationDocuments\": [\n {\n \"id\": null,\n \"documentType\": \"string\",\n \"fileStore\": \"be14ceb8-01ba-485b-a6e2-489e5474a576\",\n \"documentUid\": \"string\",\n \"additionalDetails\": {}\n }\n ]\n }\n }\n ]\n}" }, "url": { "raw": "{{base_url}}/measurement-service/v1/_update", "host": [ "{{base_url}}" ], "path": [ "measurement-service", "v1", "_update" ] } }, "response": [] }, { "name": "Measurement Search-Success-Measurement Number", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () =>\r", " pm.expect(pm.response.code===200||pm.response.code===202).to.be.true\r", ");\r", "\r", "pm.test(\"Search response is received\", function () {\r", " var res = pm.response.json();\r", " var measurementNumber = res.measurements[0].measurementNumber;\r", " pm.expect(measurementNumber).to.eql(pm.collectionVariables.get(\"MBno\"));\r", " }\r", ");\r", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json", "uuid": "54c4eb54-5403-4711-80c0-99183a9bf581" } ], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\":{\n \"apiId\": \"Rainmaker\",\n \"authToken\": \"{{auth}}\",\n \"userInfo\": {\n \"id\": 965,\n \"uuid\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"userName\": \"AUTO2\",\n \"name\": \"AUTO\",\n \"mobileNumber\": \"9999999999\",\n \"emailId\": null,\n \"locale\": null,\n \"type\": \"EMPLOYEE\",\n \"roles\": [\n {\n \"name\": \"HRMS Admin\",\n \"code\": \"HRMS_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER VIEWER\",\n \"code\": \"WORK_ORDER_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"National Dashboard Admin\",\n \"code\": \"NATADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Application Viewer\",\n \"code\": \"BIRTH_APPLICATION_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Redressal Officer\",\n \"code\": \"RO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Bill Creator\",\n \"code\": \"WORKS_BILL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collection Report Viewer\",\n \"code\": \"COLL_REP_VIEW\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Contractor Advance creator\",\n \"code\": \"CONTRACTOR_ADVANCE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Approver\",\n \"code\": \"WORKS_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Receipt Cancellator\",\n \"code\": \"CR_WS\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Approver\",\n \"code\": \"PROPERTY_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Approver\",\n \"code\": \"TL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOI APPROVER\",\n \"code\": \"LOI_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST CREATOR\",\n \"code\": \"EST_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Fire Noc Department Approver\",\n \"code\": \"FIRE_NOC_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"HCM SYSTEM ADMINISTRATOR\",\n \"code\": \"SYSTEM_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Field Inspector\",\n \"code\": \"PT_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Abstract Estimate Creator\",\n \"code\": \"AE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ULB Administrator\",\n \"code\": \"PTADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUKTA Admin\",\n \"code\": \"MUKTA_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Administrator\",\n \"code\": \"WORKS_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Builder\",\n \"code\": \"BPA_BUILDER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Voucher Creator\",\n \"code\": \"EGF_VOUCHER_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collections Remitter\",\n \"code\": \"COLL_REMIT_TO_BANK\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE APPROVER\",\n \"code\": \"ESTIMATE_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Auto Escalation Employee\",\n \"code\": \"AUTO_ESCALATE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_VERIFIER\",\n \"code\": \"MB_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST FIN SANC\",\n \"code\": \"EST_FIN_SANC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PGR Last Mile Employee\",\n \"code\": \"PGR_LME\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"DEATH Application Editor\",\n \"code\": \"DEATH_APPLICATION_EDITOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUSTER ROLL APPROVER\",\n \"code\": \"MUSTER_ROLL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Approver\",\n \"code\": \"WS_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Voucher Approver\",\n \"code\": \"EGF_VOUCHER_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM TP OPERATOR\",\n \"code\": \"PQM_TP_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Grivance Administrator\",\n \"code\": \"GA\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_ACCOUNTANT\",\n \"code\": \"BILL_ACCOUNTANT\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_VERIFIER\",\n \"code\": \"BILL_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Counter Employee\",\n \"code\": \"TL_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Tax Collection Employee\",\n \"code\": \"PT_COLLECTION_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Report Viewer\",\n \"code\": \"TL_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Desluding Operator\",\n \"code\": \"FSM_DSO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Application Viewer\",\n \"code\": \"FSM_VIEW_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPAREG doc verifier\",\n \"code\": \"BPAREG_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Asset Administrator\",\n \"code\": \"ASSET_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PGR Administrator\",\n \"code\": \"PGR-ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Field Employee\",\n \"code\": \"FEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Counter Employee\",\n \"code\": \"CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Death Application Viewer\",\n \"code\": \"DEATH_APPLICATION_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Admin of a ULB\",\n \"code\": \"CITY_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_CREATOR\",\n \"code\": \"BILL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collection Operator\",\n \"code\": \"COLL_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Application Editor\",\n \"code\": \"FSM_EDITOR_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPAREG Approver\",\n \"code\": \"BPAREG_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Driver\",\n \"code\": \"FSM_DRIVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER CREATOR\",\n \"code\": \"WORK_ORDER_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Death Application Creator\",\n \"code\": \"DEATH_APPLICATION_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Internal Microservice Role\",\n \"code\": \"INTERNAL_MICROSERVICE_ROLE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"AssetCreator\",\n \"code\": \"AssetCreator\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EGF Bill Creator\",\n \"code\": \"EGF_BILL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Employee Finance\",\n \"code\": \"EMPLOYEE_FINANCE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Sanitation Helper\",\n \"code\": \"SANITATION_HELPER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Legacy Receipt Creator\",\n \"code\": \"LEGACY_RECEIPT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"QA Automation\",\n \"code\": \"QA_AUTOMATION\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_CREATOR\",\n \"code\": \"MB_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Field Inspector\",\n \"code\": \"TL_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Organization admin\",\n \"code\": \"ORG_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_APPROVER\",\n \"code\": \"BILL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Architect\",\n \"code\": \"BPA_ARCHITECT\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUSTER ROLL VERIFIER\",\n \"code\": \"MUSTER_ROLL_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Field Inspector\",\n \"code\": \"BPA_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Employee Common\",\n \"code\": \"EMPLOYEE_COMMON\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Localisation admin\",\n \"code\": \"LOC_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_VIEWER\",\n \"code\": \"BILL_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Services verifier\",\n \"code\": \"BPA_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Engineer\",\n \"code\": \"BPA_ENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM FSTP Opperator\",\n \"code\": \"FSM_EMP_FSTPO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Universal Collection Employee\",\n \"code\": \"UC_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC Field Inpector\",\n \"code\": \"NOC_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Application Creator\",\n \"code\": \"FSM_CREATOR_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Counter Approver\",\n \"code\": \"PT_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST TECH SANC\",\n \"code\": \"EST_ADMIN_SANC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE CREATOR\",\n \"code\": \"ESTIMATE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM Admin\",\n \"code\": \"PQM_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC Doc Verifier\",\n \"code\": \"NOC_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Anonymous User\",\n \"code\": \"ANONYMOUS\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Citizen Feedback Centre\",\n \"code\": \"CFC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"State Dashboard Admin\",\n \"code\": \"STADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Financials Approver\",\n \"code\": \"WORKS_FINANCIAL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE VERIFIER\",\n \"code\": \"ESTIMATE_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PTIS Master\",\n \"code\": \"PTIS_MASTER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"CSC Collection Operator\",\n \"code\": \"CSC_COLL_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Report Viewer\",\n \"code\": \"BIRTH_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOI CREATOR\",\n \"code\": \"LOI_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ULB Operator\",\n \"code\": \"ULB_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Commissioner\",\n \"code\": \"COMMISSIONER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EGF Bill Approver\",\n \"code\": \"EGF_BILL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Payment Creator\",\n \"code\": \"EGF_PAYMENT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC counter Approver\",\n \"code\": \"NOC_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Sanitation Worker\",\n \"code\": \"SANITATION_WORKER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Structural Engineer\",\n \"code\": \"BPA_STRUCTURALENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"OFFICER IN CHARGE\",\n \"code\": \"OFFICER_IN_CHARGE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Department Grievance Routing Officer\",\n \"code\": \"DGRO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Services Approver\",\n \"code\": \"BPA_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PROJECT CREATOR\",\n \"code\": \"PROJECT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Water Report Viewer\",\n \"code\": \"WATER_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Master Admin\",\n \"code\": \"EGF_MASTER_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Town Planner\",\n \"code\": \"BPA_TOWNPLANNER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EMPLOYEE ADMIN\",\n \"code\": \"EMPLOYEE_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Adminsitrator\",\n \"code\": \"EGF_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Payment Collector\",\n \"code\": \"FSM_COLLECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Report Viewer\",\n \"code\": \"PT_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Sewerage Report Viewer\",\n \"code\": \"SEWERAGE_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_APPROVER\",\n \"code\": \"MB_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Supervisor\",\n \"code\": \"BPA_SUPERVISOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Application Creator\",\n \"code\": \"BIRTH_APPLICATION_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Any User\",\n \"code\": \"ANONYMUS\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Field Inspector\",\n \"code\": \"WS_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Verifier\",\n \"code\": \"PROPERTY_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Payment Approver\",\n \"code\": \"EGF_PAYMENT_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth and Death Dashboard User\",\n \"code\": \"DASHBOARD_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM CRONJOB SCHEDULER\",\n \"code\": \"PQM_CRONJOB_SCHEDULER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Report Viewer\",\n \"code\": \"FSM_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST TECH SANC\",\n \"code\": \"EST_TECH_SANC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Auto Escalation Supervisor\",\n \"code\": \"SUPERVISOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER VERIFIER\",\n \"code\": \"WORK_ORDER_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Detailed Estimate Creator\",\n \"code\": \"DE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"AssetReportViewer\",\n \"code\": \"AssetReportViewer\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Approver\",\n \"code\": \"SW_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth and Death User\",\n \"code\": \"BND_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TECHNICAL SANCTIONER\",\n \"code\": \"TECHNICAL_SANCTIONER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Master creator\",\n \"code\": \"WORKS_MASTER_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Application Editor\",\n \"code\": \"BIRTH_APPLICATION_EDITOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Death Report Viewer\",\n \"code\": \"DEATH_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"National Dashboard Systeme user\",\n \"code\": \"NDA_SYSTEM\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Fire Noc Report Viewer\",\n \"code\": \"FIRENOC_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SUPER USER\",\n \"code\": \"SUPERUSER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA NOC Verifier\",\n \"code\": \"BPA_NOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Dashboard Viewer\",\n \"code\": \"FSM_DASHBOARD_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Employee\",\n \"code\": \"EMPLOYEE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collections Receipt Creator\",\n \"code\": \"COLL_RECEIPT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Doc Verifier\",\n \"code\": \"PT_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Administrator\",\n \"code\": \"FSM_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"OBPS Report Viewer\",\n \"code\": \"OBPS_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Bank Collection Operator\",\n \"code\": \"BANK_COLL_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"CBO ADMIN\",\n \"code\": \"CBO_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Airport authority Approver\",\n \"code\": \"AIRPORT_AUTHORITY_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Admin\",\n \"code\": \"TL_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Creator\",\n \"code\": \"TL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Field Inspector\",\n \"code\": \"SW_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Customer Support Representative\",\n \"code\": \"CSR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Reindexing Role\",\n \"code\": \"REINDEXING_ROLE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WO Creator\",\n \"code\": \"WO_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Counter Employee\",\n \"code\": \"PT_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PTIS Admin\",\n \"code\": \"PTIS_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL doc verifier\",\n \"code\": \"TL_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE VIEWER\",\n \"code\": \"ESTIMATE_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Tax Receipt Cancellator\",\n \"code\": \"CR_PT\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Counter Employee\",\n \"code\": \"WS_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST_CHECKER\",\n \"code\": \"EST_CHECKER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"JUNIOR ENGINEER\",\n \"code\": \"JUNIOR_ENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOI CHECKER\",\n \"code\": \"LOI_CHECKER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC counter employee\",\n \"code\": \"NOC_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOA Creator\",\n \"code\": \"LOA_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Report View\",\n \"code\": \"EGF_REPORT_VIEW\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Document Verifier\",\n \"code\": \"WS_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PROJECT VIEWER\",\n \"code\": \"PROJECT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Grievance Routing Officer\",\n \"code\": \"GRO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Organization staff\",\n \"code\": \"ORG_STAFF\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Document Verifier\",\n \"code\": \"SW_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUNICIPAL ENGINEER\",\n \"code\": \"MUNICIPAL_ENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Clerk\",\n \"code\": \"SW_CLERK\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM Lab Operator\",\n \"code\": \"PQM_LAB_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER APPROVER\",\n \"code\": \"WORK_ORDER_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Grievance Officer\",\n \"code\": \"GO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Clerk\",\n \"code\": \"WS_CLERK\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Counter Employee\",\n \"code\": \"SW_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MDMS Admin\",\n \"code\": \"MDMS_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPAREG Employee\",\n \"code\": \"BPAREG_EMPLOYEE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_VIEWER\",\n \"code\": \"MB_VIEWER\",\n \"tenantId\": \"pg.citya\"\n }\n ],\n \"active\": true,\n \"tenantId\": \"pg.citya\",\n \"permanentCity\": null\n },\n \"msgId\": \"1695707627807|en_IN\",\n \"plainAccessRequest\": {}\n },\n \"criteria\": {\n \"tenantId\": \"{{tenantId}}\",\n// // \"ids\": [\"b657d182-63ac-4271-9761-bb437ba4a9d\"]\n// // \"ward\": \"B2\"\n// // \"wfStatus\": \"SUBMITTED\",\n \"measurementNumber\": \"{{MBno}}\"\n// // \"referenceId\": [\"WO/2023-24/000015\"],\n// //,800, 810, 803\n// // \"ids\": [\n// // \"3784269c-3d93-4c84-af33-371761169c5a\",\"\"\n// // ]\n },\n \"pagination\": { // optional\n \"limit\": 100\n // \"offSet\": 0\n // \"sortBy\": \"createdTime\",\n // \"order\": \"ASC\"\n }\n}" }, "url": { "raw": "{{base_url}}/measurement-service/v1/_search", "host": [ "{{base_url}}" ], "path": [ "measurement-service", "v1", "_search" ], "query": [ { "key": "tenantId", "value": "{{tenantId}}", "disabled": true }, { "key": "MeasurementNumber", "value": "{{MBno}}", "disabled": true } ] } }, "response": [] }, { "name": "Measurement Search-Success-Measurement Id", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () =>\r", " pm.expect(pm.response.code===200||pm.response.code===202).to.be.true\r", ");\r", "\r", "pm.test(\"Search response is received\", function () {\r", " var res = pm.response.json();\r", " var measurementNumber = res.measurements[0].measurementNumber;\r", " pm.expect(measurementNumber).to.eql(pm.collectionVariables.get(\"MBno\"));\r", " }\r", ");\r", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json", "uuid": "30e1c635-5e94-4fde-ad2e-80cff1780c80" } ], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\":{\n \"apiId\": \"Rainmaker\",\n \"authToken\": \"{{auth}}\",\n \"userInfo\": {\n \"id\": 965,\n \"uuid\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"userName\": \"AUTO2\",\n \"name\": \"AUTO\",\n \"mobileNumber\": \"9999999999\",\n \"emailId\": null,\n \"locale\": null,\n \"type\": \"EMPLOYEE\",\n \"roles\": [\n {\n \"name\": \"HRMS Admin\",\n \"code\": \"HRMS_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER VIEWER\",\n \"code\": \"WORK_ORDER_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"National Dashboard Admin\",\n \"code\": \"NATADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Application Viewer\",\n \"code\": \"BIRTH_APPLICATION_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Redressal Officer\",\n \"code\": \"RO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Bill Creator\",\n \"code\": \"WORKS_BILL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collection Report Viewer\",\n \"code\": \"COLL_REP_VIEW\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Contractor Advance creator\",\n \"code\": \"CONTRACTOR_ADVANCE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Approver\",\n \"code\": \"WORKS_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Receipt Cancellator\",\n \"code\": \"CR_WS\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Approver\",\n \"code\": \"PROPERTY_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Approver\",\n \"code\": \"TL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOI APPROVER\",\n \"code\": \"LOI_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST CREATOR\",\n \"code\": \"EST_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Fire Noc Department Approver\",\n \"code\": \"FIRE_NOC_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"HCM SYSTEM ADMINISTRATOR\",\n \"code\": \"SYSTEM_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Field Inspector\",\n \"code\": \"PT_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Abstract Estimate Creator\",\n \"code\": \"AE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ULB Administrator\",\n \"code\": \"PTADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUKTA Admin\",\n \"code\": \"MUKTA_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Administrator\",\n \"code\": \"WORKS_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Builder\",\n \"code\": \"BPA_BUILDER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Voucher Creator\",\n \"code\": \"EGF_VOUCHER_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collections Remitter\",\n \"code\": \"COLL_REMIT_TO_BANK\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE APPROVER\",\n \"code\": \"ESTIMATE_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Auto Escalation Employee\",\n \"code\": \"AUTO_ESCALATE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_VERIFIER\",\n \"code\": \"MB_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST FIN SANC\",\n \"code\": \"EST_FIN_SANC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PGR Last Mile Employee\",\n \"code\": \"PGR_LME\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"DEATH Application Editor\",\n \"code\": \"DEATH_APPLICATION_EDITOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUSTER ROLL APPROVER\",\n \"code\": \"MUSTER_ROLL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Approver\",\n \"code\": \"WS_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Voucher Approver\",\n \"code\": \"EGF_VOUCHER_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM TP OPERATOR\",\n \"code\": \"PQM_TP_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Grivance Administrator\",\n \"code\": \"GA\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_ACCOUNTANT\",\n \"code\": \"BILL_ACCOUNTANT\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_VERIFIER\",\n \"code\": \"BILL_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Counter Employee\",\n \"code\": \"TL_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Tax Collection Employee\",\n \"code\": \"PT_COLLECTION_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Report Viewer\",\n \"code\": \"TL_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Desluding Operator\",\n \"code\": \"FSM_DSO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Application Viewer\",\n \"code\": \"FSM_VIEW_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPAREG doc verifier\",\n \"code\": \"BPAREG_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Asset Administrator\",\n \"code\": \"ASSET_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PGR Administrator\",\n \"code\": \"PGR-ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Field Employee\",\n \"code\": \"FEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Counter Employee\",\n \"code\": \"CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Death Application Viewer\",\n \"code\": \"DEATH_APPLICATION_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Admin of a ULB\",\n \"code\": \"CITY_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_CREATOR\",\n \"code\": \"BILL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collection Operator\",\n \"code\": \"COLL_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Application Editor\",\n \"code\": \"FSM_EDITOR_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPAREG Approver\",\n \"code\": \"BPAREG_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Driver\",\n \"code\": \"FSM_DRIVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER CREATOR\",\n \"code\": \"WORK_ORDER_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Death Application Creator\",\n \"code\": \"DEATH_APPLICATION_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Internal Microservice Role\",\n \"code\": \"INTERNAL_MICROSERVICE_ROLE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"AssetCreator\",\n \"code\": \"AssetCreator\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EGF Bill Creator\",\n \"code\": \"EGF_BILL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Employee Finance\",\n \"code\": \"EMPLOYEE_FINANCE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Sanitation Helper\",\n \"code\": \"SANITATION_HELPER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Legacy Receipt Creator\",\n \"code\": \"LEGACY_RECEIPT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"QA Automation\",\n \"code\": \"QA_AUTOMATION\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_CREATOR\",\n \"code\": \"MB_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Field Inspector\",\n \"code\": \"TL_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Organization admin\",\n \"code\": \"ORG_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_APPROVER\",\n \"code\": \"BILL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Architect\",\n \"code\": \"BPA_ARCHITECT\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUSTER ROLL VERIFIER\",\n \"code\": \"MUSTER_ROLL_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Field Inspector\",\n \"code\": \"BPA_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Employee Common\",\n \"code\": \"EMPLOYEE_COMMON\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Localisation admin\",\n \"code\": \"LOC_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_VIEWER\",\n \"code\": \"BILL_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Services verifier\",\n \"code\": \"BPA_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Engineer\",\n \"code\": \"BPA_ENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM FSTP Opperator\",\n \"code\": \"FSM_EMP_FSTPO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Universal Collection Employee\",\n \"code\": \"UC_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC Field Inpector\",\n \"code\": \"NOC_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Application Creator\",\n \"code\": \"FSM_CREATOR_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Counter Approver\",\n \"code\": \"PT_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST TECH SANC\",\n \"code\": \"EST_ADMIN_SANC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE CREATOR\",\n \"code\": \"ESTIMATE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM Admin\",\n \"code\": \"PQM_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC Doc Verifier\",\n \"code\": \"NOC_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Anonymous User\",\n \"code\": \"ANONYMOUS\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Citizen Feedback Centre\",\n \"code\": \"CFC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"State Dashboard Admin\",\n \"code\": \"STADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Financials Approver\",\n \"code\": \"WORKS_FINANCIAL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE VERIFIER\",\n \"code\": \"ESTIMATE_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PTIS Master\",\n \"code\": \"PTIS_MASTER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"CSC Collection Operator\",\n \"code\": \"CSC_COLL_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Report Viewer\",\n \"code\": \"BIRTH_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOI CREATOR\",\n \"code\": \"LOI_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ULB Operator\",\n \"code\": \"ULB_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Commissioner\",\n \"code\": \"COMMISSIONER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EGF Bill Approver\",\n \"code\": \"EGF_BILL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Payment Creator\",\n \"code\": \"EGF_PAYMENT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC counter Approver\",\n \"code\": \"NOC_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Sanitation Worker\",\n \"code\": \"SANITATION_WORKER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Structural Engineer\",\n \"code\": \"BPA_STRUCTURALENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"OFFICER IN CHARGE\",\n \"code\": \"OFFICER_IN_CHARGE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Department Grievance Routing Officer\",\n \"code\": \"DGRO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Services Approver\",\n \"code\": \"BPA_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PROJECT CREATOR\",\n \"code\": \"PROJECT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Water Report Viewer\",\n \"code\": \"WATER_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Master Admin\",\n \"code\": \"EGF_MASTER_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Town Planner\",\n \"code\": \"BPA_TOWNPLANNER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EMPLOYEE ADMIN\",\n \"code\": \"EMPLOYEE_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Adminsitrator\",\n \"code\": \"EGF_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Payment Collector\",\n \"code\": \"FSM_COLLECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Report Viewer\",\n \"code\": \"PT_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Sewerage Report Viewer\",\n \"code\": \"SEWERAGE_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_APPROVER\",\n \"code\": \"MB_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Supervisor\",\n \"code\": \"BPA_SUPERVISOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Application Creator\",\n \"code\": \"BIRTH_APPLICATION_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Any User\",\n \"code\": \"ANONYMUS\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Field Inspector\",\n \"code\": \"WS_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Verifier\",\n \"code\": \"PROPERTY_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Payment Approver\",\n \"code\": \"EGF_PAYMENT_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth and Death Dashboard User\",\n \"code\": \"DASHBOARD_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM CRONJOB SCHEDULER\",\n \"code\": \"PQM_CRONJOB_SCHEDULER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Report Viewer\",\n \"code\": \"FSM_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST TECH SANC\",\n \"code\": \"EST_TECH_SANC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Auto Escalation Supervisor\",\n \"code\": \"SUPERVISOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER VERIFIER\",\n \"code\": \"WORK_ORDER_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Detailed Estimate Creator\",\n \"code\": \"DE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"AssetReportViewer\",\n \"code\": \"AssetReportViewer\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Approver\",\n \"code\": \"SW_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth and Death User\",\n \"code\": \"BND_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TECHNICAL SANCTIONER\",\n \"code\": \"TECHNICAL_SANCTIONER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Master creator\",\n \"code\": \"WORKS_MASTER_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Application Editor\",\n \"code\": \"BIRTH_APPLICATION_EDITOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Death Report Viewer\",\n \"code\": \"DEATH_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"National Dashboard Systeme user\",\n \"code\": \"NDA_SYSTEM\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Fire Noc Report Viewer\",\n \"code\": \"FIRENOC_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SUPER USER\",\n \"code\": \"SUPERUSER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA NOC Verifier\",\n \"code\": \"BPA_NOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Dashboard Viewer\",\n \"code\": \"FSM_DASHBOARD_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Employee\",\n \"code\": \"EMPLOYEE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collections Receipt Creator\",\n \"code\": \"COLL_RECEIPT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Doc Verifier\",\n \"code\": \"PT_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Administrator\",\n \"code\": \"FSM_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"OBPS Report Viewer\",\n \"code\": \"OBPS_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Bank Collection Operator\",\n \"code\": \"BANK_COLL_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"CBO ADMIN\",\n \"code\": \"CBO_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Airport authority Approver\",\n \"code\": \"AIRPORT_AUTHORITY_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Admin\",\n \"code\": \"TL_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Creator\",\n \"code\": \"TL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Field Inspector\",\n \"code\": \"SW_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Customer Support Representative\",\n \"code\": \"CSR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Reindexing Role\",\n \"code\": \"REINDEXING_ROLE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WO Creator\",\n \"code\": \"WO_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Counter Employee\",\n \"code\": \"PT_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PTIS Admin\",\n \"code\": \"PTIS_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL doc verifier\",\n \"code\": \"TL_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE VIEWER\",\n \"code\": \"ESTIMATE_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Tax Receipt Cancellator\",\n \"code\": \"CR_PT\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Counter Employee\",\n \"code\": \"WS_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST_CHECKER\",\n \"code\": \"EST_CHECKER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"JUNIOR ENGINEER\",\n \"code\": \"JUNIOR_ENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOI CHECKER\",\n \"code\": \"LOI_CHECKER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC counter employee\",\n \"code\": \"NOC_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOA Creator\",\n \"code\": \"LOA_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Report View\",\n \"code\": \"EGF_REPORT_VIEW\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Document Verifier\",\n \"code\": \"WS_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PROJECT VIEWER\",\n \"code\": \"PROJECT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Grievance Routing Officer\",\n \"code\": \"GRO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Organization staff\",\n \"code\": \"ORG_STAFF\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Document Verifier\",\n \"code\": \"SW_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUNICIPAL ENGINEER\",\n \"code\": \"MUNICIPAL_ENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Clerk\",\n \"code\": \"SW_CLERK\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM Lab Operator\",\n \"code\": \"PQM_LAB_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER APPROVER\",\n \"code\": \"WORK_ORDER_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Grievance Officer\",\n \"code\": \"GO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Clerk\",\n \"code\": \"WS_CLERK\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Counter Employee\",\n \"code\": \"SW_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MDMS Admin\",\n \"code\": \"MDMS_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPAREG Employee\",\n \"code\": \"BPAREG_EMPLOYEE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_VIEWER\",\n \"code\": \"MB_VIEWER\",\n \"tenantId\": \"pg.citya\"\n }\n ],\n \"active\": true,\n \"tenantId\": \"pg.citya\",\n \"permanentCity\": null\n },\n \"msgId\": \"1695707627807|en_IN\",\n \"plainAccessRequest\": {}\n},\n \"criteria\": {\n \"tenantId\": \"{{tenantId}}\",\n \"id\":\"{{measurementId}}\"\n // \n },\n \"pagination\": { // optional\n \"limit\": 100\n // \"offSet\": 0\n // \"sortBy\": \"createdTime\",\n // \"order\": \"ASC\"\n }\n}" }, "url": { "raw": "{{base_url}}/measurement-service/v1/_search", "host": [ "{{base_url}}" ], "path": [ "measurement-service", "v1", "_search" ], "query": [ { "key": "tenantId", "value": "{{tenantId}}", "disabled": true }, { "key": "id", "value": "{{measurementId}}", "disabled": true } ] } }, "response": [] }, { "name": "Measurement Search-Success-Contract Number", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () =>\r", " pm.expect(pm.response.code===200||pm.response.code===202).to.be.true\r", ");\r", "\r", "pm.test(\"Search response is received\", function () {\r", " var res = pm.response.json();\r", " var referenceId = res.measurements[0].referenceId;\r", " pm.expect(referenceId).to.eql(pm.collectionVariables.get(\"MB-CO\"));\r", " }\r", ");\r", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json", "uuid": "1af0d8a0-f08b-44c9-824a-a737c44b20bf" } ], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\":{\n \"apiId\": \"Rainmaker\",\n \"authToken\": \"{{auth}}\",\n \"userInfo\": {\n \"id\": 965,\n \"uuid\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"userName\": \"AUTO2\",\n \"name\": \"AUTO\",\n \"mobileNumber\": \"9999999999\",\n \"emailId\": null,\n \"locale\": null,\n \"type\": \"EMPLOYEE\",\n \"roles\": [\n {\n \"name\": \"HRMS Admin\",\n \"code\": \"HRMS_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER VIEWER\",\n \"code\": \"WORK_ORDER_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"National Dashboard Admin\",\n \"code\": \"NATADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Application Viewer\",\n \"code\": \"BIRTH_APPLICATION_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Redressal Officer\",\n \"code\": \"RO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Bill Creator\",\n \"code\": \"WORKS_BILL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collection Report Viewer\",\n \"code\": \"COLL_REP_VIEW\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Contractor Advance creator\",\n \"code\": \"CONTRACTOR_ADVANCE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Approver\",\n \"code\": \"WORKS_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Receipt Cancellator\",\n \"code\": \"CR_WS\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Approver\",\n \"code\": \"PROPERTY_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Approver\",\n \"code\": \"TL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOI APPROVER\",\n \"code\": \"LOI_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST CREATOR\",\n \"code\": \"EST_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Fire Noc Department Approver\",\n \"code\": \"FIRE_NOC_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"HCM SYSTEM ADMINISTRATOR\",\n \"code\": \"SYSTEM_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Field Inspector\",\n \"code\": \"PT_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Abstract Estimate Creator\",\n \"code\": \"AE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ULB Administrator\",\n \"code\": \"PTADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUKTA Admin\",\n \"code\": \"MUKTA_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Administrator\",\n \"code\": \"WORKS_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Builder\",\n \"code\": \"BPA_BUILDER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Voucher Creator\",\n \"code\": \"EGF_VOUCHER_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collections Remitter\",\n \"code\": \"COLL_REMIT_TO_BANK\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE APPROVER\",\n \"code\": \"ESTIMATE_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Auto Escalation Employee\",\n \"code\": \"AUTO_ESCALATE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_VERIFIER\",\n \"code\": \"MB_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST FIN SANC\",\n \"code\": \"EST_FIN_SANC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PGR Last Mile Employee\",\n \"code\": \"PGR_LME\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"DEATH Application Editor\",\n \"code\": \"DEATH_APPLICATION_EDITOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUSTER ROLL APPROVER\",\n \"code\": \"MUSTER_ROLL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Approver\",\n \"code\": \"WS_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Voucher Approver\",\n \"code\": \"EGF_VOUCHER_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM TP OPERATOR\",\n \"code\": \"PQM_TP_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Grivance Administrator\",\n \"code\": \"GA\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_ACCOUNTANT\",\n \"code\": \"BILL_ACCOUNTANT\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_VERIFIER\",\n \"code\": \"BILL_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Counter Employee\",\n \"code\": \"TL_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Tax Collection Employee\",\n \"code\": \"PT_COLLECTION_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Report Viewer\",\n \"code\": \"TL_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Desluding Operator\",\n \"code\": \"FSM_DSO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Application Viewer\",\n \"code\": \"FSM_VIEW_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPAREG doc verifier\",\n \"code\": \"BPAREG_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Asset Administrator\",\n \"code\": \"ASSET_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PGR Administrator\",\n \"code\": \"PGR-ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Field Employee\",\n \"code\": \"FEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Counter Employee\",\n \"code\": \"CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Death Application Viewer\",\n \"code\": \"DEATH_APPLICATION_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Admin of a ULB\",\n \"code\": \"CITY_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_CREATOR\",\n \"code\": \"BILL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collection Operator\",\n \"code\": \"COLL_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Application Editor\",\n \"code\": \"FSM_EDITOR_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPAREG Approver\",\n \"code\": \"BPAREG_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Driver\",\n \"code\": \"FSM_DRIVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER CREATOR\",\n \"code\": \"WORK_ORDER_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Death Application Creator\",\n \"code\": \"DEATH_APPLICATION_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Internal Microservice Role\",\n \"code\": \"INTERNAL_MICROSERVICE_ROLE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"AssetCreator\",\n \"code\": \"AssetCreator\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EGF Bill Creator\",\n \"code\": \"EGF_BILL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Employee Finance\",\n \"code\": \"EMPLOYEE_FINANCE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Sanitation Helper\",\n \"code\": \"SANITATION_HELPER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Legacy Receipt Creator\",\n \"code\": \"LEGACY_RECEIPT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"QA Automation\",\n \"code\": \"QA_AUTOMATION\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_CREATOR\",\n \"code\": \"MB_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Field Inspector\",\n \"code\": \"TL_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Organization admin\",\n \"code\": \"ORG_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_APPROVER\",\n \"code\": \"BILL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Architect\",\n \"code\": \"BPA_ARCHITECT\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUSTER ROLL VERIFIER\",\n \"code\": \"MUSTER_ROLL_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Field Inspector\",\n \"code\": \"BPA_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Employee Common\",\n \"code\": \"EMPLOYEE_COMMON\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Localisation admin\",\n \"code\": \"LOC_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_VIEWER\",\n \"code\": \"BILL_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Services verifier\",\n \"code\": \"BPA_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Engineer\",\n \"code\": \"BPA_ENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM FSTP Opperator\",\n \"code\": \"FSM_EMP_FSTPO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Universal Collection Employee\",\n \"code\": \"UC_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC Field Inpector\",\n \"code\": \"NOC_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Application Creator\",\n \"code\": \"FSM_CREATOR_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Counter Approver\",\n \"code\": \"PT_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST TECH SANC\",\n \"code\": \"EST_ADMIN_SANC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE CREATOR\",\n \"code\": \"ESTIMATE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM Admin\",\n \"code\": \"PQM_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC Doc Verifier\",\n \"code\": \"NOC_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Anonymous User\",\n \"code\": \"ANONYMOUS\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Citizen Feedback Centre\",\n \"code\": \"CFC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"State Dashboard Admin\",\n \"code\": \"STADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Financials Approver\",\n \"code\": \"WORKS_FINANCIAL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE VERIFIER\",\n \"code\": \"ESTIMATE_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PTIS Master\",\n \"code\": \"PTIS_MASTER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"CSC Collection Operator\",\n \"code\": \"CSC_COLL_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Report Viewer\",\n \"code\": \"BIRTH_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOI CREATOR\",\n \"code\": \"LOI_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ULB Operator\",\n \"code\": \"ULB_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Commissioner\",\n \"code\": \"COMMISSIONER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EGF Bill Approver\",\n \"code\": \"EGF_BILL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Payment Creator\",\n \"code\": \"EGF_PAYMENT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC counter Approver\",\n \"code\": \"NOC_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Sanitation Worker\",\n \"code\": \"SANITATION_WORKER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Structural Engineer\",\n \"code\": \"BPA_STRUCTURALENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"OFFICER IN CHARGE\",\n \"code\": \"OFFICER_IN_CHARGE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Department Grievance Routing Officer\",\n \"code\": \"DGRO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Services Approver\",\n \"code\": \"BPA_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PROJECT CREATOR\",\n \"code\": \"PROJECT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Water Report Viewer\",\n \"code\": \"WATER_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Master Admin\",\n \"code\": \"EGF_MASTER_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Town Planner\",\n \"code\": \"BPA_TOWNPLANNER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EMPLOYEE ADMIN\",\n \"code\": \"EMPLOYEE_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Adminsitrator\",\n \"code\": \"EGF_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Payment Collector\",\n \"code\": \"FSM_COLLECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Report Viewer\",\n \"code\": \"PT_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Sewerage Report Viewer\",\n \"code\": \"SEWERAGE_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_APPROVER\",\n \"code\": \"MB_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Supervisor\",\n \"code\": \"BPA_SUPERVISOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Application Creator\",\n \"code\": \"BIRTH_APPLICATION_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Any User\",\n \"code\": \"ANONYMUS\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Field Inspector\",\n \"code\": \"WS_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Verifier\",\n \"code\": \"PROPERTY_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Payment Approver\",\n \"code\": \"EGF_PAYMENT_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth and Death Dashboard User\",\n \"code\": \"DASHBOARD_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM CRONJOB SCHEDULER\",\n \"code\": \"PQM_CRONJOB_SCHEDULER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Report Viewer\",\n \"code\": \"FSM_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST TECH SANC\",\n \"code\": \"EST_TECH_SANC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Auto Escalation Supervisor\",\n \"code\": \"SUPERVISOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER VERIFIER\",\n \"code\": \"WORK_ORDER_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Detailed Estimate Creator\",\n \"code\": \"DE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"AssetReportViewer\",\n \"code\": \"AssetReportViewer\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Approver\",\n \"code\": \"SW_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth and Death User\",\n \"code\": \"BND_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TECHNICAL SANCTIONER\",\n \"code\": \"TECHNICAL_SANCTIONER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Master creator\",\n \"code\": \"WORKS_MASTER_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Application Editor\",\n \"code\": \"BIRTH_APPLICATION_EDITOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Death Report Viewer\",\n \"code\": \"DEATH_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"National Dashboard Systeme user\",\n \"code\": \"NDA_SYSTEM\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Fire Noc Report Viewer\",\n \"code\": \"FIRENOC_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SUPER USER\",\n \"code\": \"SUPERUSER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA NOC Verifier\",\n \"code\": \"BPA_NOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Dashboard Viewer\",\n \"code\": \"FSM_DASHBOARD_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Employee\",\n \"code\": \"EMPLOYEE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collections Receipt Creator\",\n \"code\": \"COLL_RECEIPT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Doc Verifier\",\n \"code\": \"PT_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Administrator\",\n \"code\": \"FSM_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"OBPS Report Viewer\",\n \"code\": \"OBPS_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Bank Collection Operator\",\n \"code\": \"BANK_COLL_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"CBO ADMIN\",\n \"code\": \"CBO_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Airport authority Approver\",\n \"code\": \"AIRPORT_AUTHORITY_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Admin\",\n \"code\": \"TL_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Creator\",\n \"code\": \"TL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Field Inspector\",\n \"code\": \"SW_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Customer Support Representative\",\n \"code\": \"CSR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Reindexing Role\",\n \"code\": \"REINDEXING_ROLE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WO Creator\",\n \"code\": \"WO_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Counter Employee\",\n \"code\": \"PT_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PTIS Admin\",\n \"code\": \"PTIS_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL doc verifier\",\n \"code\": \"TL_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE VIEWER\",\n \"code\": \"ESTIMATE_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Tax Receipt Cancellator\",\n \"code\": \"CR_PT\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Counter Employee\",\n \"code\": \"WS_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST_CHECKER\",\n \"code\": \"EST_CHECKER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"JUNIOR ENGINEER\",\n \"code\": \"JUNIOR_ENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOI CHECKER\",\n \"code\": \"LOI_CHECKER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC counter employee\",\n \"code\": \"NOC_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOA Creator\",\n \"code\": \"LOA_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Report View\",\n \"code\": \"EGF_REPORT_VIEW\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Document Verifier\",\n \"code\": \"WS_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PROJECT VIEWER\",\n \"code\": \"PROJECT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Grievance Routing Officer\",\n \"code\": \"GRO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Organization staff\",\n \"code\": \"ORG_STAFF\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Document Verifier\",\n \"code\": \"SW_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUNICIPAL ENGINEER\",\n \"code\": \"MUNICIPAL_ENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Clerk\",\n \"code\": \"SW_CLERK\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM Lab Operator\",\n \"code\": \"PQM_LAB_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER APPROVER\",\n \"code\": \"WORK_ORDER_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Grievance Officer\",\n \"code\": \"GO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Clerk\",\n \"code\": \"WS_CLERK\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Counter Employee\",\n \"code\": \"SW_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MDMS Admin\",\n \"code\": \"MDMS_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPAREG Employee\",\n \"code\": \"BPAREG_EMPLOYEE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_VIEWER\",\n \"code\": \"MB_VIEWER\",\n \"tenantId\": \"pg.citya\"\n }\n ],\n \"active\": true,\n \"tenantId\": \"pg.citya\",\n \"permanentCity\": null\n },\n \"msgId\": \"1695707627807|en_IN\",\n \"plainAccessRequest\": {}\n},\n \"criteria\": {\n \"tenantId\": \"{{tenantId}}\",\n // \"ids\": [\"b657d182-63ac-4271-9761-bb437ba4a9d\"]\n // \"ward\": \"B2\"\n // \"wfStatus\": \"SUBMITTED\",\n // \"measurementNumber\": \"MB/2023-24/001257\"\n \"referenceId\": [\"{{MB-CO}}\"]\n //,800, 810, 803\n // \"ids\": [\n // \"3784269c-3d93-4c84-af33-371761169c5a\",\"\"\n // ]\n },\n \"pagination\": { // optional\n \"limit\": 100\n // \"offSet\": 0\n // \"sortBy\": \"createdTime\",\n // \"order\": \"ASC\"\n }\n}" }, "url": { "raw": "{{base_url}}/measurement-service/v1/_search", "host": [ "{{base_url}}" ], "path": [ "measurement-service", "v1", "_search" ], "query": [ { "key": "tenantId", "value": "{{tenantId}}", "disabled": true }, { "key": "referenceId", "value": "{{MB-CO}}", "disabled": true } ] } }, "response": [] }, { "name": "Measurement Search-Success-WF Status", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () =>\r", " pm.expect(pm.response.code===200||pm.response.code===202).to.be.true\r", ");\r", "\r", "\r", "pm.test(\"Search response is received\", function () {\r", " var res = pm.response.json();\r", " pm.expect(res.measurements[0].wfStatus).eq(\"APPROVED\");\r", " \r", " }\r", ");" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json", "uuid": "1627a1a6-312b-45c3-b564-7fb2921fb04c" } ], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\":{\n \"apiId\": \"Rainmaker\",\n \"authToken\": \"{{auth}}\",\n \"userInfo\": {\n \"id\": 965,\n \"uuid\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"userName\": \"AUTO2\",\n \"name\": \"AUTO\",\n \"mobileNumber\": \"9999999999\",\n \"emailId\": null,\n \"locale\": null,\n \"type\": \"EMPLOYEE\",\n \"roles\": [\n {\n \"name\": \"HRMS Admin\",\n \"code\": \"HRMS_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER VIEWER\",\n \"code\": \"WORK_ORDER_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"National Dashboard Admin\",\n \"code\": \"NATADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Application Viewer\",\n \"code\": \"BIRTH_APPLICATION_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Redressal Officer\",\n \"code\": \"RO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Bill Creator\",\n \"code\": \"WORKS_BILL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collection Report Viewer\",\n \"code\": \"COLL_REP_VIEW\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Contractor Advance creator\",\n \"code\": \"CONTRACTOR_ADVANCE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Approver\",\n \"code\": \"WORKS_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Receipt Cancellator\",\n \"code\": \"CR_WS\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Approver\",\n \"code\": \"PROPERTY_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Approver\",\n \"code\": \"TL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOI APPROVER\",\n \"code\": \"LOI_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST CREATOR\",\n \"code\": \"EST_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Fire Noc Department Approver\",\n \"code\": \"FIRE_NOC_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"HCM SYSTEM ADMINISTRATOR\",\n \"code\": \"SYSTEM_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Field Inspector\",\n \"code\": \"PT_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Abstract Estimate Creator\",\n \"code\": \"AE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ULB Administrator\",\n \"code\": \"PTADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUKTA Admin\",\n \"code\": \"MUKTA_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Administrator\",\n \"code\": \"WORKS_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Builder\",\n \"code\": \"BPA_BUILDER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Voucher Creator\",\n \"code\": \"EGF_VOUCHER_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collections Remitter\",\n \"code\": \"COLL_REMIT_TO_BANK\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE APPROVER\",\n \"code\": \"ESTIMATE_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Auto Escalation Employee\",\n \"code\": \"AUTO_ESCALATE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_VERIFIER\",\n \"code\": \"MB_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST FIN SANC\",\n \"code\": \"EST_FIN_SANC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PGR Last Mile Employee\",\n \"code\": \"PGR_LME\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"DEATH Application Editor\",\n \"code\": \"DEATH_APPLICATION_EDITOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUSTER ROLL APPROVER\",\n \"code\": \"MUSTER_ROLL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Approver\",\n \"code\": \"WS_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Voucher Approver\",\n \"code\": \"EGF_VOUCHER_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM TP OPERATOR\",\n \"code\": \"PQM_TP_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Grivance Administrator\",\n \"code\": \"GA\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_ACCOUNTANT\",\n \"code\": \"BILL_ACCOUNTANT\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_VERIFIER\",\n \"code\": \"BILL_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Counter Employee\",\n \"code\": \"TL_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Tax Collection Employee\",\n \"code\": \"PT_COLLECTION_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Report Viewer\",\n \"code\": \"TL_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Desluding Operator\",\n \"code\": \"FSM_DSO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Application Viewer\",\n \"code\": \"FSM_VIEW_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPAREG doc verifier\",\n \"code\": \"BPAREG_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Asset Administrator\",\n \"code\": \"ASSET_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PGR Administrator\",\n \"code\": \"PGR-ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Field Employee\",\n \"code\": \"FEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Counter Employee\",\n \"code\": \"CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Death Application Viewer\",\n \"code\": \"DEATH_APPLICATION_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Admin of a ULB\",\n \"code\": \"CITY_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_CREATOR\",\n \"code\": \"BILL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collection Operator\",\n \"code\": \"COLL_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Application Editor\",\n \"code\": \"FSM_EDITOR_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPAREG Approver\",\n \"code\": \"BPAREG_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Driver\",\n \"code\": \"FSM_DRIVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER CREATOR\",\n \"code\": \"WORK_ORDER_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Death Application Creator\",\n \"code\": \"DEATH_APPLICATION_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Internal Microservice Role\",\n \"code\": \"INTERNAL_MICROSERVICE_ROLE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"AssetCreator\",\n \"code\": \"AssetCreator\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EGF Bill Creator\",\n \"code\": \"EGF_BILL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Employee Finance\",\n \"code\": \"EMPLOYEE_FINANCE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Sanitation Helper\",\n \"code\": \"SANITATION_HELPER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Legacy Receipt Creator\",\n \"code\": \"LEGACY_RECEIPT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"QA Automation\",\n \"code\": \"QA_AUTOMATION\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_CREATOR\",\n \"code\": \"MB_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Field Inspector\",\n \"code\": \"TL_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Organization admin\",\n \"code\": \"ORG_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_APPROVER\",\n \"code\": \"BILL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Architect\",\n \"code\": \"BPA_ARCHITECT\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUSTER ROLL VERIFIER\",\n \"code\": \"MUSTER_ROLL_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Field Inspector\",\n \"code\": \"BPA_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Employee Common\",\n \"code\": \"EMPLOYEE_COMMON\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Localisation admin\",\n \"code\": \"LOC_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_VIEWER\",\n \"code\": \"BILL_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Services verifier\",\n \"code\": \"BPA_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Engineer\",\n \"code\": \"BPA_ENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM FSTP Opperator\",\n \"code\": \"FSM_EMP_FSTPO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Universal Collection Employee\",\n \"code\": \"UC_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC Field Inpector\",\n \"code\": \"NOC_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Application Creator\",\n \"code\": \"FSM_CREATOR_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Counter Approver\",\n \"code\": \"PT_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST TECH SANC\",\n \"code\": \"EST_ADMIN_SANC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE CREATOR\",\n \"code\": \"ESTIMATE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM Admin\",\n \"code\": \"PQM_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC Doc Verifier\",\n \"code\": \"NOC_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Anonymous User\",\n \"code\": \"ANONYMOUS\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Citizen Feedback Centre\",\n \"code\": \"CFC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"State Dashboard Admin\",\n \"code\": \"STADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Financials Approver\",\n \"code\": \"WORKS_FINANCIAL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE VERIFIER\",\n \"code\": \"ESTIMATE_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PTIS Master\",\n \"code\": \"PTIS_MASTER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"CSC Collection Operator\",\n \"code\": \"CSC_COLL_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Report Viewer\",\n \"code\": \"BIRTH_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOI CREATOR\",\n \"code\": \"LOI_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ULB Operator\",\n \"code\": \"ULB_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Commissioner\",\n \"code\": \"COMMISSIONER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EGF Bill Approver\",\n \"code\": \"EGF_BILL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Payment Creator\",\n \"code\": \"EGF_PAYMENT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC counter Approver\",\n \"code\": \"NOC_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Sanitation Worker\",\n \"code\": \"SANITATION_WORKER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Structural Engineer\",\n \"code\": \"BPA_STRUCTURALENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"OFFICER IN CHARGE\",\n \"code\": \"OFFICER_IN_CHARGE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Department Grievance Routing Officer\",\n \"code\": \"DGRO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Services Approver\",\n \"code\": \"BPA_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PROJECT CREATOR\",\n \"code\": \"PROJECT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Water Report Viewer\",\n \"code\": \"WATER_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Master Admin\",\n \"code\": \"EGF_MASTER_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Town Planner\",\n \"code\": \"BPA_TOWNPLANNER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EMPLOYEE ADMIN\",\n \"code\": \"EMPLOYEE_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Adminsitrator\",\n \"code\": \"EGF_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Payment Collector\",\n \"code\": \"FSM_COLLECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Report Viewer\",\n \"code\": \"PT_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Sewerage Report Viewer\",\n \"code\": \"SEWERAGE_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_APPROVER\",\n \"code\": \"MB_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Supervisor\",\n \"code\": \"BPA_SUPERVISOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Application Creator\",\n \"code\": \"BIRTH_APPLICATION_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Any User\",\n \"code\": \"ANONYMUS\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Field Inspector\",\n \"code\": \"WS_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Verifier\",\n \"code\": \"PROPERTY_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Payment Approver\",\n \"code\": \"EGF_PAYMENT_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth and Death Dashboard User\",\n \"code\": \"DASHBOARD_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM CRONJOB SCHEDULER\",\n \"code\": \"PQM_CRONJOB_SCHEDULER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Report Viewer\",\n \"code\": \"FSM_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST TECH SANC\",\n \"code\": \"EST_TECH_SANC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Auto Escalation Supervisor\",\n \"code\": \"SUPERVISOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER VERIFIER\",\n \"code\": \"WORK_ORDER_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Detailed Estimate Creator\",\n \"code\": \"DE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"AssetReportViewer\",\n \"code\": \"AssetReportViewer\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Approver\",\n \"code\": \"SW_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth and Death User\",\n \"code\": \"BND_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TECHNICAL SANCTIONER\",\n \"code\": \"TECHNICAL_SANCTIONER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Master creator\",\n \"code\": \"WORKS_MASTER_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Application Editor\",\n \"code\": \"BIRTH_APPLICATION_EDITOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Death Report Viewer\",\n \"code\": \"DEATH_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"National Dashboard Systeme user\",\n \"code\": \"NDA_SYSTEM\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Fire Noc Report Viewer\",\n \"code\": \"FIRENOC_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SUPER USER\",\n \"code\": \"SUPERUSER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA NOC Verifier\",\n \"code\": \"BPA_NOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Dashboard Viewer\",\n \"code\": \"FSM_DASHBOARD_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Employee\",\n \"code\": \"EMPLOYEE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collections Receipt Creator\",\n \"code\": \"COLL_RECEIPT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Doc Verifier\",\n \"code\": \"PT_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Administrator\",\n \"code\": \"FSM_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"OBPS Report Viewer\",\n \"code\": \"OBPS_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Bank Collection Operator\",\n \"code\": \"BANK_COLL_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"CBO ADMIN\",\n \"code\": \"CBO_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Airport authority Approver\",\n \"code\": \"AIRPORT_AUTHORITY_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Admin\",\n \"code\": \"TL_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Creator\",\n \"code\": \"TL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Field Inspector\",\n \"code\": \"SW_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Customer Support Representative\",\n \"code\": \"CSR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Reindexing Role\",\n \"code\": \"REINDEXING_ROLE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WO Creator\",\n \"code\": \"WO_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Counter Employee\",\n \"code\": \"PT_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PTIS Admin\",\n \"code\": \"PTIS_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL doc verifier\",\n \"code\": \"TL_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE VIEWER\",\n \"code\": \"ESTIMATE_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Tax Receipt Cancellator\",\n \"code\": \"CR_PT\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Counter Employee\",\n \"code\": \"WS_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST_CHECKER\",\n \"code\": \"EST_CHECKER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"JUNIOR ENGINEER\",\n \"code\": \"JUNIOR_ENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOI CHECKER\",\n \"code\": \"LOI_CHECKER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC counter employee\",\n \"code\": \"NOC_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOA Creator\",\n \"code\": \"LOA_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Report View\",\n \"code\": \"EGF_REPORT_VIEW\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Document Verifier\",\n \"code\": \"WS_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PROJECT VIEWER\",\n \"code\": \"PROJECT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Grievance Routing Officer\",\n \"code\": \"GRO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Organization staff\",\n \"code\": \"ORG_STAFF\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Document Verifier\",\n \"code\": \"SW_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUNICIPAL ENGINEER\",\n \"code\": \"MUNICIPAL_ENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Clerk\",\n \"code\": \"SW_CLERK\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM Lab Operator\",\n \"code\": \"PQM_LAB_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER APPROVER\",\n \"code\": \"WORK_ORDER_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Grievance Officer\",\n \"code\": \"GO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Clerk\",\n \"code\": \"WS_CLERK\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Counter Employee\",\n \"code\": \"SW_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MDMS Admin\",\n \"code\": \"MDMS_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPAREG Employee\",\n \"code\": \"BPAREG_EMPLOYEE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_VIEWER\",\n \"code\": \"MB_VIEWER\",\n \"tenantId\": \"pg.citya\"\n }\n ],\n \"active\": true,\n \"tenantId\": \"pg.citya\",\n \"permanentCity\": null\n },\n \"msgId\": \"1695707627807|en_IN\",\n \"plainAccessRequest\": {}\n},\n \"criteria\": {\n \"tenantId\": \"{{tenantId}}\",\n // \"ids\": [\"b657d182-63ac-4271-9761-bb437ba4a9d\"]\n // \"ward\": \"B2\"\n \"wfStatus\": \"{{wfStatus}}\"\n // \"measurementNumber\": \"MB/2023-24/001257\"\n // \"referenceId\": [\"WO/2023-24/000015\"],\n //,800, 810, 803\n // \"ids\": [\n // \"3784269c-3d93-4c84-af33-371761169c5a\",\"\"\n // ]\n },\n \"pagination\": { // optional\n \"limit\": 1\n // \"offSet\": 0\n // \"sortBy\": \"createdTime\",\n // \"order\": \"ASC\"\n }\n}" }, "url": { "raw": "{{base_url}}/measurement-service/v1/_search", "host": [ "{{base_url}}" ], "path": [ "measurement-service", "v1", "_search" ], "query": [ { "key": "tenantId", "value": "{{tenantId}}", "disabled": true }, { "key": "wfStatus", "value": "{{wfStatus}}", "disabled": true } ] } }, "response": [] }, { "name": "Measurement Search-Validation Error-Measurement Number Invalid", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () =>\r", " pm.expect(pm.response.code===200||pm.response.code===202).to.be.true\r", ");\r", "\r", "pm.test(\"measurement is null\", function () {\r", " pm.expect(pm.response.json().measurements).to.be.an('array').that.is.empty;\r", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json", "uuid": "0118d31f-4d4f-4c4b-aad4-26447438d8c5" } ], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\":{\n \"apiId\": \"Rainmaker\",\n \"authToken\": \"{{auth}}\",\n \"userInfo\": {\n \"id\": 965,\n \"uuid\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"userName\": \"AUTO2\",\n \"name\": \"AUTO\",\n \"mobileNumber\": \"9999999999\",\n \"emailId\": null,\n \"locale\": null,\n \"type\": \"EMPLOYEE\",\n \"roles\": [\n {\n \"name\": \"HRMS Admin\",\n \"code\": \"HRMS_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER VIEWER\",\n \"code\": \"WORK_ORDER_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"National Dashboard Admin\",\n \"code\": \"NATADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Application Viewer\",\n \"code\": \"BIRTH_APPLICATION_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Redressal Officer\",\n \"code\": \"RO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Bill Creator\",\n \"code\": \"WORKS_BILL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collection Report Viewer\",\n \"code\": \"COLL_REP_VIEW\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Contractor Advance creator\",\n \"code\": \"CONTRACTOR_ADVANCE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Approver\",\n \"code\": \"WORKS_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Receipt Cancellator\",\n \"code\": \"CR_WS\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Approver\",\n \"code\": \"PROPERTY_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Approver\",\n \"code\": \"TL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOI APPROVER\",\n \"code\": \"LOI_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST CREATOR\",\n \"code\": \"EST_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Fire Noc Department Approver\",\n \"code\": \"FIRE_NOC_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"HCM SYSTEM ADMINISTRATOR\",\n \"code\": \"SYSTEM_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Field Inspector\",\n \"code\": \"PT_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Abstract Estimate Creator\",\n \"code\": \"AE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ULB Administrator\",\n \"code\": \"PTADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUKTA Admin\",\n \"code\": \"MUKTA_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Administrator\",\n \"code\": \"WORKS_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Builder\",\n \"code\": \"BPA_BUILDER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Voucher Creator\",\n \"code\": \"EGF_VOUCHER_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collections Remitter\",\n \"code\": \"COLL_REMIT_TO_BANK\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE APPROVER\",\n \"code\": \"ESTIMATE_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Auto Escalation Employee\",\n \"code\": \"AUTO_ESCALATE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_VERIFIER\",\n \"code\": \"MB_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST FIN SANC\",\n \"code\": \"EST_FIN_SANC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PGR Last Mile Employee\",\n \"code\": \"PGR_LME\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"DEATH Application Editor\",\n \"code\": \"DEATH_APPLICATION_EDITOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUSTER ROLL APPROVER\",\n \"code\": \"MUSTER_ROLL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Approver\",\n \"code\": \"WS_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Voucher Approver\",\n \"code\": \"EGF_VOUCHER_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM TP OPERATOR\",\n \"code\": \"PQM_TP_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Grivance Administrator\",\n \"code\": \"GA\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_ACCOUNTANT\",\n \"code\": \"BILL_ACCOUNTANT\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_VERIFIER\",\n \"code\": \"BILL_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Counter Employee\",\n \"code\": \"TL_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Tax Collection Employee\",\n \"code\": \"PT_COLLECTION_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Report Viewer\",\n \"code\": \"TL_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Desluding Operator\",\n \"code\": \"FSM_DSO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Application Viewer\",\n \"code\": \"FSM_VIEW_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPAREG doc verifier\",\n \"code\": \"BPAREG_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Asset Administrator\",\n \"code\": \"ASSET_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PGR Administrator\",\n \"code\": \"PGR-ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Field Employee\",\n \"code\": \"FEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Counter Employee\",\n \"code\": \"CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Death Application Viewer\",\n \"code\": \"DEATH_APPLICATION_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Admin of a ULB\",\n \"code\": \"CITY_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_CREATOR\",\n \"code\": \"BILL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collection Operator\",\n \"code\": \"COLL_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Application Editor\",\n \"code\": \"FSM_EDITOR_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPAREG Approver\",\n \"code\": \"BPAREG_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Driver\",\n \"code\": \"FSM_DRIVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER CREATOR\",\n \"code\": \"WORK_ORDER_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Death Application Creator\",\n \"code\": \"DEATH_APPLICATION_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Internal Microservice Role\",\n \"code\": \"INTERNAL_MICROSERVICE_ROLE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"AssetCreator\",\n \"code\": \"AssetCreator\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EGF Bill Creator\",\n \"code\": \"EGF_BILL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Employee Finance\",\n \"code\": \"EMPLOYEE_FINANCE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Sanitation Helper\",\n \"code\": \"SANITATION_HELPER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Legacy Receipt Creator\",\n \"code\": \"LEGACY_RECEIPT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"QA Automation\",\n \"code\": \"QA_AUTOMATION\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_CREATOR\",\n \"code\": \"MB_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Field Inspector\",\n \"code\": \"TL_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Organization admin\",\n \"code\": \"ORG_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_APPROVER\",\n \"code\": \"BILL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Architect\",\n \"code\": \"BPA_ARCHITECT\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUSTER ROLL VERIFIER\",\n \"code\": \"MUSTER_ROLL_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Field Inspector\",\n \"code\": \"BPA_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Employee Common\",\n \"code\": \"EMPLOYEE_COMMON\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Localisation admin\",\n \"code\": \"LOC_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_VIEWER\",\n \"code\": \"BILL_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Services verifier\",\n \"code\": \"BPA_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Engineer\",\n \"code\": \"BPA_ENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM FSTP Opperator\",\n \"code\": \"FSM_EMP_FSTPO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Universal Collection Employee\",\n \"code\": \"UC_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC Field Inpector\",\n \"code\": \"NOC_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Application Creator\",\n \"code\": \"FSM_CREATOR_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Counter Approver\",\n \"code\": \"PT_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST TECH SANC\",\n \"code\": \"EST_ADMIN_SANC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE CREATOR\",\n \"code\": \"ESTIMATE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM Admin\",\n \"code\": \"PQM_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC Doc Verifier\",\n \"code\": \"NOC_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Anonymous User\",\n \"code\": \"ANONYMOUS\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Citizen Feedback Centre\",\n \"code\": \"CFC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"State Dashboard Admin\",\n \"code\": \"STADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Financials Approver\",\n \"code\": \"WORKS_FINANCIAL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE VERIFIER\",\n \"code\": \"ESTIMATE_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PTIS Master\",\n \"code\": \"PTIS_MASTER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"CSC Collection Operator\",\n \"code\": \"CSC_COLL_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Report Viewer\",\n \"code\": \"BIRTH_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOI CREATOR\",\n \"code\": \"LOI_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ULB Operator\",\n \"code\": \"ULB_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Commissioner\",\n \"code\": \"COMMISSIONER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EGF Bill Approver\",\n \"code\": \"EGF_BILL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Payment Creator\",\n \"code\": \"EGF_PAYMENT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC counter Approver\",\n \"code\": \"NOC_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Sanitation Worker\",\n \"code\": \"SANITATION_WORKER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Structural Engineer\",\n \"code\": \"BPA_STRUCTURALENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"OFFICER IN CHARGE\",\n \"code\": \"OFFICER_IN_CHARGE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Department Grievance Routing Officer\",\n \"code\": \"DGRO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Services Approver\",\n \"code\": \"BPA_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PROJECT CREATOR\",\n \"code\": \"PROJECT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Water Report Viewer\",\n \"code\": \"WATER_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Master Admin\",\n \"code\": \"EGF_MASTER_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Town Planner\",\n \"code\": \"BPA_TOWNPLANNER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EMPLOYEE ADMIN\",\n \"code\": \"EMPLOYEE_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Adminsitrator\",\n \"code\": \"EGF_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Payment Collector\",\n \"code\": \"FSM_COLLECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Report Viewer\",\n \"code\": \"PT_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Sewerage Report Viewer\",\n \"code\": \"SEWERAGE_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_APPROVER\",\n \"code\": \"MB_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Supervisor\",\n \"code\": \"BPA_SUPERVISOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Application Creator\",\n \"code\": \"BIRTH_APPLICATION_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Any User\",\n \"code\": \"ANONYMUS\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Field Inspector\",\n \"code\": \"WS_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Verifier\",\n \"code\": \"PROPERTY_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Payment Approver\",\n \"code\": \"EGF_PAYMENT_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth and Death Dashboard User\",\n \"code\": \"DASHBOARD_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM CRONJOB SCHEDULER\",\n \"code\": \"PQM_CRONJOB_SCHEDULER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Report Viewer\",\n \"code\": \"FSM_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST TECH SANC\",\n \"code\": \"EST_TECH_SANC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Auto Escalation Supervisor\",\n \"code\": \"SUPERVISOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER VERIFIER\",\n \"code\": \"WORK_ORDER_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Detailed Estimate Creator\",\n \"code\": \"DE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"AssetReportViewer\",\n \"code\": \"AssetReportViewer\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Approver\",\n \"code\": \"SW_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth and Death User\",\n \"code\": \"BND_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TECHNICAL SANCTIONER\",\n \"code\": \"TECHNICAL_SANCTIONER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Master creator\",\n \"code\": \"WORKS_MASTER_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Application Editor\",\n \"code\": \"BIRTH_APPLICATION_EDITOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Death Report Viewer\",\n \"code\": \"DEATH_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"National Dashboard Systeme user\",\n \"code\": \"NDA_SYSTEM\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Fire Noc Report Viewer\",\n \"code\": \"FIRENOC_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SUPER USER\",\n \"code\": \"SUPERUSER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA NOC Verifier\",\n \"code\": \"BPA_NOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Dashboard Viewer\",\n \"code\": \"FSM_DASHBOARD_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Employee\",\n \"code\": \"EMPLOYEE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collections Receipt Creator\",\n \"code\": \"COLL_RECEIPT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Doc Verifier\",\n \"code\": \"PT_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Administrator\",\n \"code\": \"FSM_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"OBPS Report Viewer\",\n \"code\": \"OBPS_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Bank Collection Operator\",\n \"code\": \"BANK_COLL_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"CBO ADMIN\",\n \"code\": \"CBO_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Airport authority Approver\",\n \"code\": \"AIRPORT_AUTHORITY_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Admin\",\n \"code\": \"TL_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Creator\",\n \"code\": \"TL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Field Inspector\",\n \"code\": \"SW_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Customer Support Representative\",\n \"code\": \"CSR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Reindexing Role\",\n \"code\": \"REINDEXING_ROLE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WO Creator\",\n \"code\": \"WO_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Counter Employee\",\n \"code\": \"PT_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PTIS Admin\",\n \"code\": \"PTIS_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL doc verifier\",\n \"code\": \"TL_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE VIEWER\",\n \"code\": \"ESTIMATE_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Tax Receipt Cancellator\",\n \"code\": \"CR_PT\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Counter Employee\",\n \"code\": \"WS_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST_CHECKER\",\n \"code\": \"EST_CHECKER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"JUNIOR ENGINEER\",\n \"code\": \"JUNIOR_ENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOI CHECKER\",\n \"code\": \"LOI_CHECKER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC counter employee\",\n \"code\": \"NOC_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOA Creator\",\n \"code\": \"LOA_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Report View\",\n \"code\": \"EGF_REPORT_VIEW\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Document Verifier\",\n \"code\": \"WS_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PROJECT VIEWER\",\n \"code\": \"PROJECT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Grievance Routing Officer\",\n \"code\": \"GRO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Organization staff\",\n \"code\": \"ORG_STAFF\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Document Verifier\",\n \"code\": \"SW_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUNICIPAL ENGINEER\",\n \"code\": \"MUNICIPAL_ENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Clerk\",\n \"code\": \"SW_CLERK\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM Lab Operator\",\n \"code\": \"PQM_LAB_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER APPROVER\",\n \"code\": \"WORK_ORDER_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Grievance Officer\",\n \"code\": \"GO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Clerk\",\n \"code\": \"WS_CLERK\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Counter Employee\",\n \"code\": \"SW_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MDMS Admin\",\n \"code\": \"MDMS_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPAREG Employee\",\n \"code\": \"BPAREG_EMPLOYEE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_VIEWER\",\n \"code\": \"MB_VIEWER\",\n \"tenantId\": \"pg.citya\"\n }\n ],\n \"active\": true,\n \"tenantId\": \"pg.citya\",\n \"permanentCity\": null\n },\n \"msgId\": \"1695707627807|en_IN\",\n \"plainAccessRequest\": {}\n},\n \"criteria\": {\n \"tenantId\": \"{{tenantId}}\",\n // \"ids\": [\"b657d182-63ac-4271-9761-bb437ba4a9d\"]\n // \"ward\": \"B2\"\n // \"wfStatus\": \"SUBMITTED\",\n \"measurementNumber\": \"MB/2023-24/001\"\n // \"referenceId\": [\"WO/2023-24/000015\"],\n //,800, 810, 803\n // \"ids\": [\n // \"3784269c-3d93-4c84-af33-371761169c5a\",\"\"\n // ]\n },\n \"pagination\": { // optional\n \"limit\": 100\n // \"offSet\": 0\n // \"sortBy\": \"createdTime\",\n // \"order\": \"ASC\"\n }\n}" }, "url": { "raw": "{{base_url}}/measurement-service/v1/_search", "host": [ "{{base_url}}" ], "path": [ "measurement-service", "v1", "_search" ] } }, "response": [] }, { "name": "Measurement Search-Validation Error-Contract Number Invalid", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Check response is Accepted\", function () {\r", " // Check if the response status is 400\r", " pm.expect(pm.response.code === 200 || pm.response.code === 202 || pm.response.code === 400).to.be.true\r", "});\r", "\r", "pm.test(\"contractNumber is invalid\", function () {\r", " pm.expect(pm.response.json().measurements).to.be.an('array').that.is.empty;\r", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json", "uuid": "b1e308ae-40bf-4ad3-8a48-02665ba1f033" } ], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\":{\n \"apiId\": \"Rainmaker\",\n \"authToken\": \"{{auth}}\",\n \"userInfo\": {\n \"id\": 965,\n \"uuid\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"userName\": \"AUTO2\",\n \"name\": \"AUTO\",\n \"mobileNumber\": \"9999999999\",\n \"emailId\": null,\n \"locale\": null,\n \"type\": \"EMPLOYEE\",\n \"roles\": [\n {\n \"name\": \"HRMS Admin\",\n \"code\": \"HRMS_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER VIEWER\",\n \"code\": \"WORK_ORDER_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"National Dashboard Admin\",\n \"code\": \"NATADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Application Viewer\",\n \"code\": \"BIRTH_APPLICATION_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Redressal Officer\",\n \"code\": \"RO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Bill Creator\",\n \"code\": \"WORKS_BILL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collection Report Viewer\",\n \"code\": \"COLL_REP_VIEW\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Contractor Advance creator\",\n \"code\": \"CONTRACTOR_ADVANCE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Approver\",\n \"code\": \"WORKS_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Receipt Cancellator\",\n \"code\": \"CR_WS\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Approver\",\n \"code\": \"PROPERTY_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Approver\",\n \"code\": \"TL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOI APPROVER\",\n \"code\": \"LOI_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST CREATOR\",\n \"code\": \"EST_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Fire Noc Department Approver\",\n \"code\": \"FIRE_NOC_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"HCM SYSTEM ADMINISTRATOR\",\n \"code\": \"SYSTEM_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Field Inspector\",\n \"code\": \"PT_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Abstract Estimate Creator\",\n \"code\": \"AE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ULB Administrator\",\n \"code\": \"PTADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUKTA Admin\",\n \"code\": \"MUKTA_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Administrator\",\n \"code\": \"WORKS_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Builder\",\n \"code\": \"BPA_BUILDER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Voucher Creator\",\n \"code\": \"EGF_VOUCHER_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collections Remitter\",\n \"code\": \"COLL_REMIT_TO_BANK\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE APPROVER\",\n \"code\": \"ESTIMATE_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Auto Escalation Employee\",\n \"code\": \"AUTO_ESCALATE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_VERIFIER\",\n \"code\": \"MB_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST FIN SANC\",\n \"code\": \"EST_FIN_SANC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PGR Last Mile Employee\",\n \"code\": \"PGR_LME\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"DEATH Application Editor\",\n \"code\": \"DEATH_APPLICATION_EDITOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUSTER ROLL APPROVER\",\n \"code\": \"MUSTER_ROLL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Approver\",\n \"code\": \"WS_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Voucher Approver\",\n \"code\": \"EGF_VOUCHER_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM TP OPERATOR\",\n \"code\": \"PQM_TP_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Grivance Administrator\",\n \"code\": \"GA\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_ACCOUNTANT\",\n \"code\": \"BILL_ACCOUNTANT\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_VERIFIER\",\n \"code\": \"BILL_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Counter Employee\",\n \"code\": \"TL_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Tax Collection Employee\",\n \"code\": \"PT_COLLECTION_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Report Viewer\",\n \"code\": \"TL_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Desluding Operator\",\n \"code\": \"FSM_DSO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Application Viewer\",\n \"code\": \"FSM_VIEW_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPAREG doc verifier\",\n \"code\": \"BPAREG_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Asset Administrator\",\n \"code\": \"ASSET_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PGR Administrator\",\n \"code\": \"PGR-ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Field Employee\",\n \"code\": \"FEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Counter Employee\",\n \"code\": \"CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Death Application Viewer\",\n \"code\": \"DEATH_APPLICATION_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Admin of a ULB\",\n \"code\": \"CITY_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_CREATOR\",\n \"code\": \"BILL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collection Operator\",\n \"code\": \"COLL_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Application Editor\",\n \"code\": \"FSM_EDITOR_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPAREG Approver\",\n \"code\": \"BPAREG_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Driver\",\n \"code\": \"FSM_DRIVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER CREATOR\",\n \"code\": \"WORK_ORDER_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Death Application Creator\",\n \"code\": \"DEATH_APPLICATION_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Internal Microservice Role\",\n \"code\": \"INTERNAL_MICROSERVICE_ROLE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"AssetCreator\",\n \"code\": \"AssetCreator\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EGF Bill Creator\",\n \"code\": \"EGF_BILL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Employee Finance\",\n \"code\": \"EMPLOYEE_FINANCE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Sanitation Helper\",\n \"code\": \"SANITATION_HELPER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Legacy Receipt Creator\",\n \"code\": \"LEGACY_RECEIPT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"QA Automation\",\n \"code\": \"QA_AUTOMATION\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_CREATOR\",\n \"code\": \"MB_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Field Inspector\",\n \"code\": \"TL_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Organization admin\",\n \"code\": \"ORG_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_APPROVER\",\n \"code\": \"BILL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Architect\",\n \"code\": \"BPA_ARCHITECT\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUSTER ROLL VERIFIER\",\n \"code\": \"MUSTER_ROLL_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Field Inspector\",\n \"code\": \"BPA_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Employee Common\",\n \"code\": \"EMPLOYEE_COMMON\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Localisation admin\",\n \"code\": \"LOC_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_VIEWER\",\n \"code\": \"BILL_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Services verifier\",\n \"code\": \"BPA_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Engineer\",\n \"code\": \"BPA_ENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM FSTP Opperator\",\n \"code\": \"FSM_EMP_FSTPO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Universal Collection Employee\",\n \"code\": \"UC_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC Field Inpector\",\n \"code\": \"NOC_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Application Creator\",\n \"code\": \"FSM_CREATOR_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Counter Approver\",\n \"code\": \"PT_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST TECH SANC\",\n \"code\": \"EST_ADMIN_SANC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE CREATOR\",\n \"code\": \"ESTIMATE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM Admin\",\n \"code\": \"PQM_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC Doc Verifier\",\n \"code\": \"NOC_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Anonymous User\",\n \"code\": \"ANONYMOUS\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Citizen Feedback Centre\",\n \"code\": \"CFC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"State Dashboard Admin\",\n \"code\": \"STADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Financials Approver\",\n \"code\": \"WORKS_FINANCIAL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE VERIFIER\",\n \"code\": \"ESTIMATE_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PTIS Master\",\n \"code\": \"PTIS_MASTER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"CSC Collection Operator\",\n \"code\": \"CSC_COLL_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Report Viewer\",\n \"code\": \"BIRTH_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOI CREATOR\",\n \"code\": \"LOI_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ULB Operator\",\n \"code\": \"ULB_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Commissioner\",\n \"code\": \"COMMISSIONER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EGF Bill Approver\",\n \"code\": \"EGF_BILL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Payment Creator\",\n \"code\": \"EGF_PAYMENT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC counter Approver\",\n \"code\": \"NOC_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Sanitation Worker\",\n \"code\": \"SANITATION_WORKER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Structural Engineer\",\n \"code\": \"BPA_STRUCTURALENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"OFFICER IN CHARGE\",\n \"code\": \"OFFICER_IN_CHARGE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Department Grievance Routing Officer\",\n \"code\": \"DGRO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Services Approver\",\n \"code\": \"BPA_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PROJECT CREATOR\",\n \"code\": \"PROJECT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Water Report Viewer\",\n \"code\": \"WATER_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Master Admin\",\n \"code\": \"EGF_MASTER_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Town Planner\",\n \"code\": \"BPA_TOWNPLANNER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EMPLOYEE ADMIN\",\n \"code\": \"EMPLOYEE_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Adminsitrator\",\n \"code\": \"EGF_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Payment Collector\",\n \"code\": \"FSM_COLLECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Report Viewer\",\n \"code\": \"PT_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Sewerage Report Viewer\",\n \"code\": \"SEWERAGE_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_APPROVER\",\n \"code\": \"MB_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Supervisor\",\n \"code\": \"BPA_SUPERVISOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Application Creator\",\n \"code\": \"BIRTH_APPLICATION_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Any User\",\n \"code\": \"ANONYMUS\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Field Inspector\",\n \"code\": \"WS_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Verifier\",\n \"code\": \"PROPERTY_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Payment Approver\",\n \"code\": \"EGF_PAYMENT_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth and Death Dashboard User\",\n \"code\": \"DASHBOARD_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM CRONJOB SCHEDULER\",\n \"code\": \"PQM_CRONJOB_SCHEDULER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Report Viewer\",\n \"code\": \"FSM_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST TECH SANC\",\n \"code\": \"EST_TECH_SANC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Auto Escalation Supervisor\",\n \"code\": \"SUPERVISOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER VERIFIER\",\n \"code\": \"WORK_ORDER_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Detailed Estimate Creator\",\n \"code\": \"DE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"AssetReportViewer\",\n \"code\": \"AssetReportViewer\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Approver\",\n \"code\": \"SW_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth and Death User\",\n \"code\": \"BND_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TECHNICAL SANCTIONER\",\n \"code\": \"TECHNICAL_SANCTIONER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Master creator\",\n \"code\": \"WORKS_MASTER_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Application Editor\",\n \"code\": \"BIRTH_APPLICATION_EDITOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Death Report Viewer\",\n \"code\": \"DEATH_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"National Dashboard Systeme user\",\n \"code\": \"NDA_SYSTEM\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Fire Noc Report Viewer\",\n \"code\": \"FIRENOC_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SUPER USER\",\n \"code\": \"SUPERUSER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA NOC Verifier\",\n \"code\": \"BPA_NOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Dashboard Viewer\",\n \"code\": \"FSM_DASHBOARD_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Employee\",\n \"code\": \"EMPLOYEE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collections Receipt Creator\",\n \"code\": \"COLL_RECEIPT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Doc Verifier\",\n \"code\": \"PT_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Administrator\",\n \"code\": \"FSM_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"OBPS Report Viewer\",\n \"code\": \"OBPS_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Bank Collection Operator\",\n \"code\": \"BANK_COLL_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"CBO ADMIN\",\n \"code\": \"CBO_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Airport authority Approver\",\n \"code\": \"AIRPORT_AUTHORITY_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Admin\",\n \"code\": \"TL_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Creator\",\n \"code\": \"TL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Field Inspector\",\n \"code\": \"SW_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Customer Support Representative\",\n \"code\": \"CSR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Reindexing Role\",\n \"code\": \"REINDEXING_ROLE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WO Creator\",\n \"code\": \"WO_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Counter Employee\",\n \"code\": \"PT_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PTIS Admin\",\n \"code\": \"PTIS_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL doc verifier\",\n \"code\": \"TL_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE VIEWER\",\n \"code\": \"ESTIMATE_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Tax Receipt Cancellator\",\n \"code\": \"CR_PT\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Counter Employee\",\n \"code\": \"WS_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST_CHECKER\",\n \"code\": \"EST_CHECKER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"JUNIOR ENGINEER\",\n \"code\": \"JUNIOR_ENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOI CHECKER\",\n \"code\": \"LOI_CHECKER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC counter employee\",\n \"code\": \"NOC_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOA Creator\",\n \"code\": \"LOA_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Report View\",\n \"code\": \"EGF_REPORT_VIEW\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Document Verifier\",\n \"code\": \"WS_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PROJECT VIEWER\",\n \"code\": \"PROJECT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Grievance Routing Officer\",\n \"code\": \"GRO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Organization staff\",\n \"code\": \"ORG_STAFF\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Document Verifier\",\n \"code\": \"SW_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUNICIPAL ENGINEER\",\n \"code\": \"MUNICIPAL_ENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Clerk\",\n \"code\": \"SW_CLERK\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM Lab Operator\",\n \"code\": \"PQM_LAB_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER APPROVER\",\n \"code\": \"WORK_ORDER_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Grievance Officer\",\n \"code\": \"GO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Clerk\",\n \"code\": \"WS_CLERK\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Counter Employee\",\n \"code\": \"SW_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MDMS Admin\",\n \"code\": \"MDMS_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPAREG Employee\",\n \"code\": \"BPAREG_EMPLOYEE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_VIEWER\",\n \"code\": \"MB_VIEWER\",\n \"tenantId\": \"pg.citya\"\n }\n ],\n \"active\": true,\n \"tenantId\": \"pg.citya\",\n \"permanentCity\": null\n },\n \"msgId\": \"1695707627807|en_IN\",\n \"plainAccessRequest\": {}\n},\n \"criteria\": {\n \"tenantId\": \"pg.citya\",\n // \"ids\": [\"b657d182-63ac-4271-9761-bb437ba4a9d\"]\n // \"ward\": \"B2\"\n // \"wfStatus\": \"SUBMITTED\",\n \"measurementNumber\": \"MB/2023-24/\"\n // \"referenceId\": [\"WO/2023-24/000015\"],\n //,800, 810, 803\n // \"ids\": [\n // \"3784269c-3d93-4c84-af33-371761169c5a\",\"\"\n // ]\n },\n \"pagination\": { // optional\n \"limit\": 100\n // \"offSet\": 0\n // \"sortBy\": \"createdTime\",\n // \"order\": \"ASC\"\n }\n}" }, "url": { "raw": "{{base_url}}/measurement-service/v1/_search", "host": [ "{{base_url}}" ], "path": [ "measurement-service", "v1", "_search" ] } }, "response": [] }, { "name": "Measurement Search-Validation Error-Measurement Id invalid", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Check response is Accepted\", function () {\r", " \r", " pm.expect(pm.response.code===200||pm.response.code===202||pm.response.code===400).to.be.true\r", "});\r", "pm.test(\"measurementId is invalid\", function () {\r", " pm.expect(pm.response.json().measurements).to.be.an('array').that.is.not.empty;\r", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json", "uuid": "3417f83e-1c3a-4b08-85fd-0c6c7608a21b" } ], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\":{\n \"apiId\": \"Rainmaker\",\n \"authToken\": \"{{auth}}\",\n \"userInfo\": {\n \"id\": 965,\n \"uuid\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"userName\": \"AUTO2\",\n \"name\": \"AUTO\",\n \"mobileNumber\": \"9999999999\",\n \"emailId\": null,\n \"locale\": null,\n \"type\": \"EMPLOYEE\",\n \"roles\": [\n {\n \"name\": \"HRMS Admin\",\n \"code\": \"HRMS_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER VIEWER\",\n \"code\": \"WORK_ORDER_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"National Dashboard Admin\",\n \"code\": \"NATADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Application Viewer\",\n \"code\": \"BIRTH_APPLICATION_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Redressal Officer\",\n \"code\": \"RO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Bill Creator\",\n \"code\": \"WORKS_BILL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collection Report Viewer\",\n \"code\": \"COLL_REP_VIEW\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Contractor Advance creator\",\n \"code\": \"CONTRACTOR_ADVANCE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Approver\",\n \"code\": \"WORKS_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Receipt Cancellator\",\n \"code\": \"CR_WS\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Approver\",\n \"code\": \"PROPERTY_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Approver\",\n \"code\": \"TL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOI APPROVER\",\n \"code\": \"LOI_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST CREATOR\",\n \"code\": \"EST_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Fire Noc Department Approver\",\n \"code\": \"FIRE_NOC_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"HCM SYSTEM ADMINISTRATOR\",\n \"code\": \"SYSTEM_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Field Inspector\",\n \"code\": \"PT_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Abstract Estimate Creator\",\n \"code\": \"AE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ULB Administrator\",\n \"code\": \"PTADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUKTA Admin\",\n \"code\": \"MUKTA_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Administrator\",\n \"code\": \"WORKS_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Builder\",\n \"code\": \"BPA_BUILDER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Voucher Creator\",\n \"code\": \"EGF_VOUCHER_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collections Remitter\",\n \"code\": \"COLL_REMIT_TO_BANK\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE APPROVER\",\n \"code\": \"ESTIMATE_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Auto Escalation Employee\",\n \"code\": \"AUTO_ESCALATE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_VERIFIER\",\n \"code\": \"MB_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST FIN SANC\",\n \"code\": \"EST_FIN_SANC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PGR Last Mile Employee\",\n \"code\": \"PGR_LME\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"DEATH Application Editor\",\n \"code\": \"DEATH_APPLICATION_EDITOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUSTER ROLL APPROVER\",\n \"code\": \"MUSTER_ROLL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Approver\",\n \"code\": \"WS_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Voucher Approver\",\n \"code\": \"EGF_VOUCHER_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM TP OPERATOR\",\n \"code\": \"PQM_TP_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Grivance Administrator\",\n \"code\": \"GA\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_ACCOUNTANT\",\n \"code\": \"BILL_ACCOUNTANT\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_VERIFIER\",\n \"code\": \"BILL_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Counter Employee\",\n \"code\": \"TL_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Tax Collection Employee\",\n \"code\": \"PT_COLLECTION_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Report Viewer\",\n \"code\": \"TL_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Desluding Operator\",\n \"code\": \"FSM_DSO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Application Viewer\",\n \"code\": \"FSM_VIEW_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPAREG doc verifier\",\n \"code\": \"BPAREG_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Asset Administrator\",\n \"code\": \"ASSET_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PGR Administrator\",\n \"code\": \"PGR-ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Field Employee\",\n \"code\": \"FEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Counter Employee\",\n \"code\": \"CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Death Application Viewer\",\n \"code\": \"DEATH_APPLICATION_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Admin of a ULB\",\n \"code\": \"CITY_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_CREATOR\",\n \"code\": \"BILL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collection Operator\",\n \"code\": \"COLL_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Application Editor\",\n \"code\": \"FSM_EDITOR_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPAREG Approver\",\n \"code\": \"BPAREG_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Driver\",\n \"code\": \"FSM_DRIVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER CREATOR\",\n \"code\": \"WORK_ORDER_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Death Application Creator\",\n \"code\": \"DEATH_APPLICATION_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Internal Microservice Role\",\n \"code\": \"INTERNAL_MICROSERVICE_ROLE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"AssetCreator\",\n \"code\": \"AssetCreator\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EGF Bill Creator\",\n \"code\": \"EGF_BILL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Employee Finance\",\n \"code\": \"EMPLOYEE_FINANCE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Sanitation Helper\",\n \"code\": \"SANITATION_HELPER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Legacy Receipt Creator\",\n \"code\": \"LEGACY_RECEIPT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"QA Automation\",\n \"code\": \"QA_AUTOMATION\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_CREATOR\",\n \"code\": \"MB_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Field Inspector\",\n \"code\": \"TL_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Organization admin\",\n \"code\": \"ORG_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_APPROVER\",\n \"code\": \"BILL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Architect\",\n \"code\": \"BPA_ARCHITECT\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUSTER ROLL VERIFIER\",\n \"code\": \"MUSTER_ROLL_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Field Inspector\",\n \"code\": \"BPA_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Employee Common\",\n \"code\": \"EMPLOYEE_COMMON\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Localisation admin\",\n \"code\": \"LOC_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_VIEWER\",\n \"code\": \"BILL_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Services verifier\",\n \"code\": \"BPA_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Engineer\",\n \"code\": \"BPA_ENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM FSTP Opperator\",\n \"code\": \"FSM_EMP_FSTPO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Universal Collection Employee\",\n \"code\": \"UC_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC Field Inpector\",\n \"code\": \"NOC_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Application Creator\",\n \"code\": \"FSM_CREATOR_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Counter Approver\",\n \"code\": \"PT_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST TECH SANC\",\n \"code\": \"EST_ADMIN_SANC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE CREATOR\",\n \"code\": \"ESTIMATE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM Admin\",\n \"code\": \"PQM_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC Doc Verifier\",\n \"code\": \"NOC_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Anonymous User\",\n \"code\": \"ANONYMOUS\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Citizen Feedback Centre\",\n \"code\": \"CFC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"State Dashboard Admin\",\n \"code\": \"STADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Financials Approver\",\n \"code\": \"WORKS_FINANCIAL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE VERIFIER\",\n \"code\": \"ESTIMATE_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PTIS Master\",\n \"code\": \"PTIS_MASTER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"CSC Collection Operator\",\n \"code\": \"CSC_COLL_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Report Viewer\",\n \"code\": \"BIRTH_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOI CREATOR\",\n \"code\": \"LOI_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ULB Operator\",\n \"code\": \"ULB_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Commissioner\",\n \"code\": \"COMMISSIONER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EGF Bill Approver\",\n \"code\": \"EGF_BILL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Payment Creator\",\n \"code\": \"EGF_PAYMENT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC counter Approver\",\n \"code\": \"NOC_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Sanitation Worker\",\n \"code\": \"SANITATION_WORKER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Structural Engineer\",\n \"code\": \"BPA_STRUCTURALENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"OFFICER IN CHARGE\",\n \"code\": \"OFFICER_IN_CHARGE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Department Grievance Routing Officer\",\n \"code\": \"DGRO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Services Approver\",\n \"code\": \"BPA_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PROJECT CREATOR\",\n \"code\": \"PROJECT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Water Report Viewer\",\n \"code\": \"WATER_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Master Admin\",\n \"code\": \"EGF_MASTER_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Town Planner\",\n \"code\": \"BPA_TOWNPLANNER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EMPLOYEE ADMIN\",\n \"code\": \"EMPLOYEE_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Adminsitrator\",\n \"code\": \"EGF_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Payment Collector\",\n \"code\": \"FSM_COLLECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Report Viewer\",\n \"code\": \"PT_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Sewerage Report Viewer\",\n \"code\": \"SEWERAGE_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_APPROVER\",\n \"code\": \"MB_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Supervisor\",\n \"code\": \"BPA_SUPERVISOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Application Creator\",\n \"code\": \"BIRTH_APPLICATION_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Any User\",\n \"code\": \"ANONYMUS\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Field Inspector\",\n \"code\": \"WS_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Verifier\",\n \"code\": \"PROPERTY_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Payment Approver\",\n \"code\": \"EGF_PAYMENT_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth and Death Dashboard User\",\n \"code\": \"DASHBOARD_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM CRONJOB SCHEDULER\",\n \"code\": \"PQM_CRONJOB_SCHEDULER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Report Viewer\",\n \"code\": \"FSM_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST TECH SANC\",\n \"code\": \"EST_TECH_SANC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Auto Escalation Supervisor\",\n \"code\": \"SUPERVISOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER VERIFIER\",\n \"code\": \"WORK_ORDER_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Detailed Estimate Creator\",\n \"code\": \"DE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"AssetReportViewer\",\n \"code\": \"AssetReportViewer\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Approver\",\n \"code\": \"SW_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth and Death User\",\n \"code\": \"BND_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TECHNICAL SANCTIONER\",\n \"code\": \"TECHNICAL_SANCTIONER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Master creator\",\n \"code\": \"WORKS_MASTER_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Application Editor\",\n \"code\": \"BIRTH_APPLICATION_EDITOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Death Report Viewer\",\n \"code\": \"DEATH_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"National Dashboard Systeme user\",\n \"code\": \"NDA_SYSTEM\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Fire Noc Report Viewer\",\n \"code\": \"FIRENOC_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SUPER USER\",\n \"code\": \"SUPERUSER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA NOC Verifier\",\n \"code\": \"BPA_NOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Dashboard Viewer\",\n \"code\": \"FSM_DASHBOARD_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Employee\",\n \"code\": \"EMPLOYEE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collections Receipt Creator\",\n \"code\": \"COLL_RECEIPT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Doc Verifier\",\n \"code\": \"PT_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Administrator\",\n \"code\": \"FSM_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"OBPS Report Viewer\",\n \"code\": \"OBPS_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Bank Collection Operator\",\n \"code\": \"BANK_COLL_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"CBO ADMIN\",\n \"code\": \"CBO_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Airport authority Approver\",\n \"code\": \"AIRPORT_AUTHORITY_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Admin\",\n \"code\": \"TL_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Creator\",\n \"code\": \"TL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Field Inspector\",\n \"code\": \"SW_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Customer Support Representative\",\n \"code\": \"CSR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Reindexing Role\",\n \"code\": \"REINDEXING_ROLE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WO Creator\",\n \"code\": \"WO_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Counter Employee\",\n \"code\": \"PT_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PTIS Admin\",\n \"code\": \"PTIS_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL doc verifier\",\n \"code\": \"TL_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE VIEWER\",\n \"code\": \"ESTIMATE_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Tax Receipt Cancellator\",\n \"code\": \"CR_PT\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Counter Employee\",\n \"code\": \"WS_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST_CHECKER\",\n \"code\": \"EST_CHECKER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"JUNIOR ENGINEER\",\n \"code\": \"JUNIOR_ENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOI CHECKER\",\n \"code\": \"LOI_CHECKER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC counter employee\",\n \"code\": \"NOC_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOA Creator\",\n \"code\": \"LOA_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Report View\",\n \"code\": \"EGF_REPORT_VIEW\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Document Verifier\",\n \"code\": \"WS_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PROJECT VIEWER\",\n \"code\": \"PROJECT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Grievance Routing Officer\",\n \"code\": \"GRO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Organization staff\",\n \"code\": \"ORG_STAFF\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Document Verifier\",\n \"code\": \"SW_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUNICIPAL ENGINEER\",\n \"code\": \"MUNICIPAL_ENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Clerk\",\n \"code\": \"SW_CLERK\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM Lab Operator\",\n \"code\": \"PQM_LAB_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER APPROVER\",\n \"code\": \"WORK_ORDER_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Grievance Officer\",\n \"code\": \"GO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Clerk\",\n \"code\": \"WS_CLERK\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Counter Employee\",\n \"code\": \"SW_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MDMS Admin\",\n \"code\": \"MDMS_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPAREG Employee\",\n \"code\": \"BPAREG_EMPLOYEE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_VIEWER\",\n \"code\": \"MB_VIEWER\",\n \"tenantId\": \"pg.citya\"\n }\n ],\n \"active\": true,\n \"tenantId\": \"pg.citya\",\n \"permanentCity\": null\n },\n \"msgId\": \"1695707627807|en_IN\",\n \"plainAccessRequest\": {}\n},\n \"criteria\": {\n \"tenantId\": \"{{tenantId}}\",\n \"id\": \"12wsdfghjk-xcfgyu8-fghujikmnh7-456tfvb\"\n // \"ward\": \"B2\"\n // \"wfStatus\": \"SUBMITTED\",\n // \"measurementNumber\": \"MB/2023-24/001257\"\n // \"referenceId\": [\"WO/2023-24/000015\"],\n //,800, 810, 803\n // \"ids\": [\n // \"3784269c-3d93-4c84-af33-371761169c5a\",\"\"\n // ]\n },\n \"pagination\": { // optional\n \"limit\": 100\n // \"offSet\": 0\n // \"sortBy\": \"createdTime\",\n // \"order\": \"ASC\"\n }\n}" }, "url": { "raw": "{{base_url}}/measurement-service/v1/_search", "host": [ "{{base_url}}" ], "path": [ "measurement-service", "v1", "_search" ], "query": [ { "key": "tenantId", "value": "{{tenantId}}", "disabled": true }, { "key": "id", "value": "{{measurementId}}", "disabled": true } ] } }, "response": [] }, { "name": "Measurement Create-Success-Reject Test", "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } }, { "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(\"Auth-Token is required\", function () {\r", " var req = JSON.parse(pm.request.body.raw);\r", " var RequestInfo = req.RequestInfo;\r", " pm.expect(RequestInfo.authToken).to.not.be.null;\r", " pm.expect(RequestInfo.authToken).to.not.be.undefined;\r", " pm.expect(RequestInfo.authToken).to.not.eql(\"\"); \r", "});\r", "\r", "pm.test(\"TenantId is required\", function () {\r", " var req = JSON.parse(pm.request.body.raw);\r", " if(req && req.length>0){\r", " for(let i=0;i0){\r", " for(let i=0;i0){\r", " for(let i=0;i0){\r", " for(let i=0;i0){\r", " for(let i=0;i\r", " pm.expect(pm.response.code===200||pm.response.code===202).to.be.true\r", ");\r", " pm.test(\"Measurement's workflow status is submitted\", function () {\r", " let responseData = pm.response.json();\r", " pm.expect(responseData.measurements[0].wfStatus).eq(\"SUBMITTED\");\r", " pm.collectionVariables.set(\"wfStatus\", responseData.measurements[0].status);\r", "});\r", " " ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json", "uuid": "027400a7-9254-4be5-91c8-3183371792c9" } ], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"Rainmaker\",\n \"authToken\": \"{{auth}}\",\n \"userInfo\": {\n \"id\": 965,\n \"uuid\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"userName\": \"AUTO2\",\n \"name\": \"AUTO\",\n \"mobileNumber\": \"9999999999\",\n \"emailId\": null,\n \"locale\": null,\n \"type\": \"EMPLOYEE\",\n \"roles\": [\n {\n \"name\": \"HRMS Admin\",\n \"code\": \"HRMS_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER VIEWER\",\n \"code\": \"WORK_ORDER_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"National Dashboard Admin\",\n \"code\": \"NATADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Application Viewer\",\n \"code\": \"BIRTH_APPLICATION_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Redressal Officer\",\n \"code\": \"RO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Bill Creator\",\n \"code\": \"WORKS_BILL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collection Report Viewer\",\n \"code\": \"COLL_REP_VIEW\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Contractor Advance creator\",\n \"code\": \"CONTRACTOR_ADVANCE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Approver\",\n \"code\": \"WORKS_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Receipt Cancellator\",\n \"code\": \"CR_WS\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Approver\",\n \"code\": \"PROPERTY_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Approver\",\n \"code\": \"TL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOI APPROVER\",\n \"code\": \"LOI_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST CREATOR\",\n \"code\": \"EST_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Fire Noc Department Approver\",\n \"code\": \"FIRE_NOC_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"HCM SYSTEM ADMINISTRATOR\",\n \"code\": \"SYSTEM_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Field Inspector\",\n \"code\": \"PT_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Abstract Estimate Creator\",\n \"code\": \"AE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ULB Administrator\",\n \"code\": \"PTADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUKTA Admin\",\n \"code\": \"MUKTA_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Administrator\",\n \"code\": \"WORKS_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Builder\",\n \"code\": \"BPA_BUILDER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Voucher Creator\",\n \"code\": \"EGF_VOUCHER_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collections Remitter\",\n \"code\": \"COLL_REMIT_TO_BANK\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE APPROVER\",\n \"code\": \"ESTIMATE_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Auto Escalation Employee\",\n \"code\": \"AUTO_ESCALATE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_VERIFIER\",\n \"code\": \"MB_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST FIN SANC\",\n \"code\": \"EST_FIN_SANC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PGR Last Mile Employee\",\n \"code\": \"PGR_LME\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"DEATH Application Editor\",\n \"code\": \"DEATH_APPLICATION_EDITOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUSTER ROLL APPROVER\",\n \"code\": \"MUSTER_ROLL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Approver\",\n \"code\": \"WS_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Voucher Approver\",\n \"code\": \"EGF_VOUCHER_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM TP OPERATOR\",\n \"code\": \"PQM_TP_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Grivance Administrator\",\n \"code\": \"GA\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_ACCOUNTANT\",\n \"code\": \"BILL_ACCOUNTANT\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_VERIFIER\",\n \"code\": \"BILL_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Counter Employee\",\n \"code\": \"TL_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Tax Collection Employee\",\n \"code\": \"PT_COLLECTION_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Report Viewer\",\n \"code\": \"TL_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Desluding Operator\",\n \"code\": \"FSM_DSO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Application Viewer\",\n \"code\": \"FSM_VIEW_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPAREG doc verifier\",\n \"code\": \"BPAREG_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Asset Administrator\",\n \"code\": \"ASSET_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PGR Administrator\",\n \"code\": \"PGR-ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Field Employee\",\n \"code\": \"FEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Counter Employee\",\n \"code\": \"CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Death Application Viewer\",\n \"code\": \"DEATH_APPLICATION_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Admin of a ULB\",\n \"code\": \"CITY_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_CREATOR\",\n \"code\": \"BILL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collection Operator\",\n \"code\": \"COLL_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Application Editor\",\n \"code\": \"FSM_EDITOR_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPAREG Approver\",\n \"code\": \"BPAREG_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Driver\",\n \"code\": \"FSM_DRIVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER CREATOR\",\n \"code\": \"WORK_ORDER_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Death Application Creator\",\n \"code\": \"DEATH_APPLICATION_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Internal Microservice Role\",\n \"code\": \"INTERNAL_MICROSERVICE_ROLE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"AssetCreator\",\n \"code\": \"AssetCreator\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EGF Bill Creator\",\n \"code\": \"EGF_BILL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Employee Finance\",\n \"code\": \"EMPLOYEE_FINANCE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Sanitation Helper\",\n \"code\": \"SANITATION_HELPER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Legacy Receipt Creator\",\n \"code\": \"LEGACY_RECEIPT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"QA Automation\",\n \"code\": \"QA_AUTOMATION\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_CREATOR\",\n \"code\": \"MB_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Field Inspector\",\n \"code\": \"TL_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Organization admin\",\n \"code\": \"ORG_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_APPROVER\",\n \"code\": \"BILL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Architect\",\n \"code\": \"BPA_ARCHITECT\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUSTER ROLL VERIFIER\",\n \"code\": \"MUSTER_ROLL_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Field Inspector\",\n \"code\": \"BPA_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Employee Common\",\n \"code\": \"EMPLOYEE_COMMON\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Localisation admin\",\n \"code\": \"LOC_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_VIEWER\",\n \"code\": \"BILL_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Services verifier\",\n \"code\": \"BPA_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Engineer\",\n \"code\": \"BPA_ENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM FSTP Opperator\",\n \"code\": \"FSM_EMP_FSTPO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Universal Collection Employee\",\n \"code\": \"UC_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC Field Inpector\",\n \"code\": \"NOC_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Application Creator\",\n \"code\": \"FSM_CREATOR_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Counter Approver\",\n \"code\": \"PT_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST TECH SANC\",\n \"code\": \"EST_ADMIN_SANC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE CREATOR\",\n \"code\": \"ESTIMATE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM Admin\",\n \"code\": \"PQM_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC Doc Verifier\",\n \"code\": \"NOC_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Anonymous User\",\n \"code\": \"ANONYMOUS\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Citizen Feedback Centre\",\n \"code\": \"CFC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"State Dashboard Admin\",\n \"code\": \"STADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Financials Approver\",\n \"code\": \"WORKS_FINANCIAL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE VERIFIER\",\n \"code\": \"ESTIMATE_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PTIS Master\",\n \"code\": \"PTIS_MASTER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"CSC Collection Operator\",\n \"code\": \"CSC_COLL_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Report Viewer\",\n \"code\": \"BIRTH_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOI CREATOR\",\n \"code\": \"LOI_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ULB Operator\",\n \"code\": \"ULB_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Commissioner\",\n \"code\": \"COMMISSIONER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EGF Bill Approver\",\n \"code\": \"EGF_BILL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Payment Creator\",\n \"code\": \"EGF_PAYMENT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC counter Approver\",\n \"code\": \"NOC_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Sanitation Worker\",\n \"code\": \"SANITATION_WORKER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Structural Engineer\",\n \"code\": \"BPA_STRUCTURALENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"OFFICER IN CHARGE\",\n \"code\": \"OFFICER_IN_CHARGE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Department Grievance Routing Officer\",\n \"code\": \"DGRO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Services Approver\",\n \"code\": \"BPA_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PROJECT CREATOR\",\n \"code\": \"PROJECT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Water Report Viewer\",\n \"code\": \"WATER_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Master Admin\",\n \"code\": \"EGF_MASTER_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Town Planner\",\n \"code\": \"BPA_TOWNPLANNER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EMPLOYEE ADMIN\",\n \"code\": \"EMPLOYEE_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Adminsitrator\",\n \"code\": \"EGF_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Payment Collector\",\n \"code\": \"FSM_COLLECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Report Viewer\",\n \"code\": \"PT_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Sewerage Report Viewer\",\n \"code\": \"SEWERAGE_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_APPROVER\",\n \"code\": \"MB_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Supervisor\",\n \"code\": \"BPA_SUPERVISOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Application Creator\",\n \"code\": \"BIRTH_APPLICATION_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Any User\",\n \"code\": \"ANONYMUS\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Field Inspector\",\n \"code\": \"WS_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Verifier\",\n \"code\": \"PROPERTY_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Payment Approver\",\n \"code\": \"EGF_PAYMENT_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth and Death Dashboard User\",\n \"code\": \"DASHBOARD_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM CRONJOB SCHEDULER\",\n \"code\": \"PQM_CRONJOB_SCHEDULER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Report Viewer\",\n \"code\": \"FSM_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST TECH SANC\",\n \"code\": \"EST_TECH_SANC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Auto Escalation Supervisor\",\n \"code\": \"SUPERVISOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER VERIFIER\",\n \"code\": \"WORK_ORDER_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Detailed Estimate Creator\",\n \"code\": \"DE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"AssetReportViewer\",\n \"code\": \"AssetReportViewer\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Approver\",\n \"code\": \"SW_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth and Death User\",\n \"code\": \"BND_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TECHNICAL SANCTIONER\",\n \"code\": \"TECHNICAL_SANCTIONER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Master creator\",\n \"code\": \"WORKS_MASTER_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Application Editor\",\n \"code\": \"BIRTH_APPLICATION_EDITOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Death Report Viewer\",\n \"code\": \"DEATH_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"National Dashboard Systeme user\",\n \"code\": \"NDA_SYSTEM\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Fire Noc Report Viewer\",\n \"code\": \"FIRENOC_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SUPER USER\",\n \"code\": \"SUPERUSER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA NOC Verifier\",\n \"code\": \"BPA_NOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Dashboard Viewer\",\n \"code\": \"FSM_DASHBOARD_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Employee\",\n \"code\": \"EMPLOYEE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collections Receipt Creator\",\n \"code\": \"COLL_RECEIPT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Doc Verifier\",\n \"code\": \"PT_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Administrator\",\n \"code\": \"FSM_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"OBPS Report Viewer\",\n \"code\": \"OBPS_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Bank Collection Operator\",\n \"code\": \"BANK_COLL_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"CBO ADMIN\",\n \"code\": \"CBO_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Airport authority Approver\",\n \"code\": \"AIRPORT_AUTHORITY_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Admin\",\n \"code\": \"TL_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Creator\",\n \"code\": \"TL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Field Inspector\",\n \"code\": \"SW_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Customer Support Representative\",\n \"code\": \"CSR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Reindexing Role\",\n \"code\": \"REINDEXING_ROLE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WO Creator\",\n \"code\": \"WO_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Counter Employee\",\n \"code\": \"PT_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PTIS Admin\",\n \"code\": \"PTIS_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL doc verifier\",\n \"code\": \"TL_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE VIEWER\",\n \"code\": \"ESTIMATE_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Tax Receipt Cancellator\",\n \"code\": \"CR_PT\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Counter Employee\",\n \"code\": \"WS_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST_CHECKER\",\n \"code\": \"EST_CHECKER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"JUNIOR ENGINEER\",\n \"code\": \"JUNIOR_ENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOI CHECKER\",\n \"code\": \"LOI_CHECKER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC counter employee\",\n \"code\": \"NOC_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOA Creator\",\n \"code\": \"LOA_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Report View\",\n \"code\": \"EGF_REPORT_VIEW\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Document Verifier\",\n \"code\": \"WS_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PROJECT VIEWER\",\n \"code\": \"PROJECT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Grievance Routing Officer\",\n \"code\": \"GRO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Organization staff\",\n \"code\": \"ORG_STAFF\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Document Verifier\",\n \"code\": \"SW_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUNICIPAL ENGINEER\",\n \"code\": \"MUNICIPAL_ENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Clerk\",\n \"code\": \"SW_CLERK\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM Lab Operator\",\n \"code\": \"PQM_LAB_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER APPROVER\",\n \"code\": \"WORK_ORDER_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Grievance Officer\",\n \"code\": \"GO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Clerk\",\n \"code\": \"WS_CLERK\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Counter Employee\",\n \"code\": \"SW_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MDMS Admin\",\n \"code\": \"MDMS_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPAREG Employee\",\n \"code\": \"BPAREG_EMPLOYEE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_VIEWER\",\n \"code\": \"MB_VIEWER\",\n \"tenantId\": \"pg.citya\"\n }\n ],\n \"active\": true,\n \"tenantId\": \"pg.citya\",\n \"permanentCity\": null\n },\n \"msgId\": \"1695707627807|en_IN\",\n \"plainAccessRequest\": {}\n },\n \"measurements\": [\n {\n \"id\": \"{{measurementId}}\",\n \"tenantId\": \"{{tenantId}}\",\n \"measurementNumber\": \"{{MBno}}\",\n \"physicalRefNumber\": \"{{phrefnum}}\",\n \"referenceId\": \"{{MB-CO}}\",\n \"entryDate\": \"{{entryDate}}\",\n \"measures\": [\n {\n \"id\": \"{{measureId1}}\",\n \"referenceId\": \"{{refId}}\",\n \"targetId\": \"{{contractLineItemRef1}}\",\n \"length\": 0,\n \"breadth\": 0,\n \"height\": 0,\n \"numItems\": 0.0,\n \"currentValue\": 0.0,\n \"cumulativeValue\": 0.0,\n \"isActive\": true,\n \"comments\": null,\n \"documents\": null,\n \"auditDetails\": {\n \"createdBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"lastModifiedBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"createdTime\": {{createdTime}},\n \"lastModifiedTime\": {{lastModifiedTime}}\n },\n \"additionalDetails\": {\n \"type\": \"SOR\",\n \"mbAmount\": 520\n }\n },\n {\n \"id\": \"{{measureId2}}\",\n \"referenceId\": \"{{refId}}\",\n \"targetId\": \"{{contractLineItemRef2}}\",\n \"length\": 0,\n \"breadth\": 0,\n \"height\": 0,\n \"numItems\": 0.0,\n \"currentValue\": 0.0,\n \"cumulativeValue\": 0.0,\n \"isActive\": true,\n \"comments\": null,\n \"documents\": null,\n \"auditDetails\": {\n \"createdBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"lastModifiedBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"createdTime\": {{createdTime}},\n \"lastModifiedTime\": {{lastModifiedTime}}\n },\n \"additionalDetails\": {\n \"type\": \"SOR\",\n \"mbAmount\": 530\n }\n }\n ],\n \"isActive\": true,\n \"documents\": [],\n \"auditDetails\": {\n \"createdBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"lastModifiedBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"createdTime\": {{createdTime}},\n \"lastModifiedTime\": {{lastModifiedTime}}\n },\n \"additionalDetails\": {\n \"sorAmount\": 8000,\n \"totalAmount\": 0\n },\n \"wfStatus\": \"PENDING_FOR_VERIFICATION\",\n \"workflow\": {\n \"action\": \"SUBMIT\",\n \"assignes\": [],\n \"comments\": \"check\",\n \"verificationDocuments\": [\n {\n \"id\": null,\n \"documentType\": \"string\",\n \"fileStore\": \"be14ceb8-01ba-485b-a6e2-489e5474a576\",\n \"documentUid\": \"string\",\n \"additionalDetails\": {}\n }\n ]\n }\n }\n ]\n}" }, "url": { "raw": "{{base_url}}/measurement-service/v1/_update", "host": [ "{{base_url}}" ], "path": [ "measurement-service", "v1", "_update" ] } }, "response": [] }, { "name": "Measurement Update-Success-WF Verify and Forward-Reject Test", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () =>\r", " // Check if the response status is 200 or 202\r", " pm.expect(pm.response.code===200||pm.response.code===202).to.be.true\r", ");\r", "\r", "pm.test(\"Measurement's workflow status is Verified\", function () {\r", " let responseData = pm.response.json();\r", " pm.expect(responseData.measurements[0].wfStatus).eq(\"VERIFIED\");\r", " pm.collectionVariables.set(\"wfStatus\", responseData.measurements[0].status);\r", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json", "uuid": "00a5afcf-eec3-4b0a-8e13-1cd00634fc5d" } ], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"Rainmaker\",\n \"authToken\": \"{{auth}}\",\n \"userInfo\": {\n \"id\": 965,\n \"uuid\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"userName\": \"AUTO2\",\n \"name\": \"AUTO\",\n \"mobileNumber\": \"9999999999\",\n \"emailId\": null,\n \"locale\": null,\n \"type\": \"EMPLOYEE\",\n \"roles\": [\n {\n \"name\": \"HRMS Admin\",\n \"code\": \"HRMS_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER VIEWER\",\n \"code\": \"WORK_ORDER_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"National Dashboard Admin\",\n \"code\": \"NATADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Application Viewer\",\n \"code\": \"BIRTH_APPLICATION_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Redressal Officer\",\n \"code\": \"RO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Bill Creator\",\n \"code\": \"WORKS_BILL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collection Report Viewer\",\n \"code\": \"COLL_REP_VIEW\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Contractor Advance creator\",\n \"code\": \"CONTRACTOR_ADVANCE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Approver\",\n \"code\": \"WORKS_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Receipt Cancellator\",\n \"code\": \"CR_WS\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Approver\",\n \"code\": \"PROPERTY_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Approver\",\n \"code\": \"TL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOI APPROVER\",\n \"code\": \"LOI_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST CREATOR\",\n \"code\": \"EST_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Fire Noc Department Approver\",\n \"code\": \"FIRE_NOC_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"HCM SYSTEM ADMINISTRATOR\",\n \"code\": \"SYSTEM_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Field Inspector\",\n \"code\": \"PT_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Abstract Estimate Creator\",\n \"code\": \"AE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ULB Administrator\",\n \"code\": \"PTADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUKTA Admin\",\n \"code\": \"MUKTA_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Administrator\",\n \"code\": \"WORKS_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Builder\",\n \"code\": \"BPA_BUILDER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Voucher Creator\",\n \"code\": \"EGF_VOUCHER_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collections Remitter\",\n \"code\": \"COLL_REMIT_TO_BANK\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE APPROVER\",\n \"code\": \"ESTIMATE_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Auto Escalation Employee\",\n \"code\": \"AUTO_ESCALATE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_VERIFIER\",\n \"code\": \"MB_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST FIN SANC\",\n \"code\": \"EST_FIN_SANC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PGR Last Mile Employee\",\n \"code\": \"PGR_LME\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"DEATH Application Editor\",\n \"code\": \"DEATH_APPLICATION_EDITOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUSTER ROLL APPROVER\",\n \"code\": \"MUSTER_ROLL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Approver\",\n \"code\": \"WS_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Voucher Approver\",\n \"code\": \"EGF_VOUCHER_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM TP OPERATOR\",\n \"code\": \"PQM_TP_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Grivance Administrator\",\n \"code\": \"GA\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_ACCOUNTANT\",\n \"code\": \"BILL_ACCOUNTANT\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_VERIFIER\",\n \"code\": \"BILL_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Counter Employee\",\n \"code\": \"TL_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Tax Collection Employee\",\n \"code\": \"PT_COLLECTION_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Report Viewer\",\n \"code\": \"TL_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Desluding Operator\",\n \"code\": \"FSM_DSO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Application Viewer\",\n \"code\": \"FSM_VIEW_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPAREG doc verifier\",\n \"code\": \"BPAREG_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Asset Administrator\",\n \"code\": \"ASSET_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PGR Administrator\",\n \"code\": \"PGR-ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Field Employee\",\n \"code\": \"FEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Counter Employee\",\n \"code\": \"CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Death Application Viewer\",\n \"code\": \"DEATH_APPLICATION_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Admin of a ULB\",\n \"code\": \"CITY_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_CREATOR\",\n \"code\": \"BILL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collection Operator\",\n \"code\": \"COLL_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Application Editor\",\n \"code\": \"FSM_EDITOR_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPAREG Approver\",\n \"code\": \"BPAREG_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Driver\",\n \"code\": \"FSM_DRIVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER CREATOR\",\n \"code\": \"WORK_ORDER_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Death Application Creator\",\n \"code\": \"DEATH_APPLICATION_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Internal Microservice Role\",\n \"code\": \"INTERNAL_MICROSERVICE_ROLE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"AssetCreator\",\n \"code\": \"AssetCreator\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EGF Bill Creator\",\n \"code\": \"EGF_BILL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Employee Finance\",\n \"code\": \"EMPLOYEE_FINANCE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Sanitation Helper\",\n \"code\": \"SANITATION_HELPER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Legacy Receipt Creator\",\n \"code\": \"LEGACY_RECEIPT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"QA Automation\",\n \"code\": \"QA_AUTOMATION\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_CREATOR\",\n \"code\": \"MB_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Field Inspector\",\n \"code\": \"TL_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Organization admin\",\n \"code\": \"ORG_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_APPROVER\",\n \"code\": \"BILL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Architect\",\n \"code\": \"BPA_ARCHITECT\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUSTER ROLL VERIFIER\",\n \"code\": \"MUSTER_ROLL_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Field Inspector\",\n \"code\": \"BPA_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Employee Common\",\n \"code\": \"EMPLOYEE_COMMON\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Localisation admin\",\n \"code\": \"LOC_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_VIEWER\",\n \"code\": \"BILL_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Services verifier\",\n \"code\": \"BPA_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Engineer\",\n \"code\": \"BPA_ENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM FSTP Opperator\",\n \"code\": \"FSM_EMP_FSTPO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Universal Collection Employee\",\n \"code\": \"UC_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC Field Inpector\",\n \"code\": \"NOC_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Application Creator\",\n \"code\": \"FSM_CREATOR_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Counter Approver\",\n \"code\": \"PT_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST TECH SANC\",\n \"code\": \"EST_ADMIN_SANC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE CREATOR\",\n \"code\": \"ESTIMATE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM Admin\",\n \"code\": \"PQM_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC Doc Verifier\",\n \"code\": \"NOC_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Anonymous User\",\n \"code\": \"ANONYMOUS\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Citizen Feedback Centre\",\n \"code\": \"CFC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"State Dashboard Admin\",\n \"code\": \"STADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Financials Approver\",\n \"code\": \"WORKS_FINANCIAL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE VERIFIER\",\n \"code\": \"ESTIMATE_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PTIS Master\",\n \"code\": \"PTIS_MASTER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"CSC Collection Operator\",\n \"code\": \"CSC_COLL_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Report Viewer\",\n \"code\": \"BIRTH_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOI CREATOR\",\n \"code\": \"LOI_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ULB Operator\",\n \"code\": \"ULB_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Commissioner\",\n \"code\": \"COMMISSIONER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EGF Bill Approver\",\n \"code\": \"EGF_BILL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Payment Creator\",\n \"code\": \"EGF_PAYMENT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC counter Approver\",\n \"code\": \"NOC_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Sanitation Worker\",\n \"code\": \"SANITATION_WORKER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Structural Engineer\",\n \"code\": \"BPA_STRUCTURALENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"OFFICER IN CHARGE\",\n \"code\": \"OFFICER_IN_CHARGE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Department Grievance Routing Officer\",\n \"code\": \"DGRO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Services Approver\",\n \"code\": \"BPA_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PROJECT CREATOR\",\n \"code\": \"PROJECT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Water Report Viewer\",\n \"code\": \"WATER_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Master Admin\",\n \"code\": \"EGF_MASTER_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Town Planner\",\n \"code\": \"BPA_TOWNPLANNER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EMPLOYEE ADMIN\",\n \"code\": \"EMPLOYEE_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Adminsitrator\",\n \"code\": \"EGF_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Payment Collector\",\n \"code\": \"FSM_COLLECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Report Viewer\",\n \"code\": \"PT_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Sewerage Report Viewer\",\n \"code\": \"SEWERAGE_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_APPROVER\",\n \"code\": \"MB_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Supervisor\",\n \"code\": \"BPA_SUPERVISOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Application Creator\",\n \"code\": \"BIRTH_APPLICATION_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Any User\",\n \"code\": \"ANONYMUS\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Field Inspector\",\n \"code\": \"WS_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Verifier\",\n \"code\": \"PROPERTY_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Payment Approver\",\n \"code\": \"EGF_PAYMENT_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth and Death Dashboard User\",\n \"code\": \"DASHBOARD_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM CRONJOB SCHEDULER\",\n \"code\": \"PQM_CRONJOB_SCHEDULER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Report Viewer\",\n \"code\": \"FSM_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST TECH SANC\",\n \"code\": \"EST_TECH_SANC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Auto Escalation Supervisor\",\n \"code\": \"SUPERVISOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER VERIFIER\",\n \"code\": \"WORK_ORDER_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Detailed Estimate Creator\",\n \"code\": \"DE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"AssetReportViewer\",\n \"code\": \"AssetReportViewer\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Approver\",\n \"code\": \"SW_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth and Death User\",\n \"code\": \"BND_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TECHNICAL SANCTIONER\",\n \"code\": \"TECHNICAL_SANCTIONER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Master creator\",\n \"code\": \"WORKS_MASTER_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Application Editor\",\n \"code\": \"BIRTH_APPLICATION_EDITOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Death Report Viewer\",\n \"code\": \"DEATH_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"National Dashboard Systeme user\",\n \"code\": \"NDA_SYSTEM\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Fire Noc Report Viewer\",\n \"code\": \"FIRENOC_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SUPER USER\",\n \"code\": \"SUPERUSER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA NOC Verifier\",\n \"code\": \"BPA_NOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Dashboard Viewer\",\n \"code\": \"FSM_DASHBOARD_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Employee\",\n \"code\": \"EMPLOYEE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collections Receipt Creator\",\n \"code\": \"COLL_RECEIPT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Doc Verifier\",\n \"code\": \"PT_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Administrator\",\n \"code\": \"FSM_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"OBPS Report Viewer\",\n \"code\": \"OBPS_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Bank Collection Operator\",\n \"code\": \"BANK_COLL_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"CBO ADMIN\",\n \"code\": \"CBO_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Airport authority Approver\",\n \"code\": \"AIRPORT_AUTHORITY_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Admin\",\n \"code\": \"TL_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Creator\",\n \"code\": \"TL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Field Inspector\",\n \"code\": \"SW_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Customer Support Representative\",\n \"code\": \"CSR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Reindexing Role\",\n \"code\": \"REINDEXING_ROLE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WO Creator\",\n \"code\": \"WO_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Counter Employee\",\n \"code\": \"PT_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PTIS Admin\",\n \"code\": \"PTIS_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL doc verifier\",\n \"code\": \"TL_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE VIEWER\",\n \"code\": \"ESTIMATE_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Tax Receipt Cancellator\",\n \"code\": \"CR_PT\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Counter Employee\",\n \"code\": \"WS_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST_CHECKER\",\n \"code\": \"EST_CHECKER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"JUNIOR ENGINEER\",\n \"code\": \"JUNIOR_ENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOI CHECKER\",\n \"code\": \"LOI_CHECKER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC counter employee\",\n \"code\": \"NOC_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOA Creator\",\n \"code\": \"LOA_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Report View\",\n \"code\": \"EGF_REPORT_VIEW\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Document Verifier\",\n \"code\": \"WS_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PROJECT VIEWER\",\n \"code\": \"PROJECT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Grievance Routing Officer\",\n \"code\": \"GRO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Organization staff\",\n \"code\": \"ORG_STAFF\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Document Verifier\",\n \"code\": \"SW_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUNICIPAL ENGINEER\",\n \"code\": \"MUNICIPAL_ENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Clerk\",\n \"code\": \"SW_CLERK\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM Lab Operator\",\n \"code\": \"PQM_LAB_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER APPROVER\",\n \"code\": \"WORK_ORDER_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Grievance Officer\",\n \"code\": \"GO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Clerk\",\n \"code\": \"WS_CLERK\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Counter Employee\",\n \"code\": \"SW_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MDMS Admin\",\n \"code\": \"MDMS_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPAREG Employee\",\n \"code\": \"BPAREG_EMPLOYEE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_VIEWER\",\n \"code\": \"MB_VIEWER\",\n \"tenantId\": \"pg.citya\"\n }\n ],\n \"active\": true,\n \"tenantId\": \"pg.citya\",\n \"permanentCity\": null\n },\n \"msgId\": \"1695707627807|en_IN\",\n \"plainAccessRequest\": {}\n },\n \"measurements\": [\n {\n \"id\": \"{{measurementId}}\",\n \"tenantId\": \"{{tenantId}}\",\n \"measurementNumber\": \"{{MBno}}\",\n \"physicalRefNumber\": \"{{phrefnum}}\",\n \"referenceId\": \"{{MB-CO}}\",\n \"entryDate\": \"{{entryDate}}\",\n \"measures\": [\n {\n \"id\": \"{{measureId1}}\",\n \"referenceId\": \"{{refId}}\",\n \"targetId\": \"{{contractLineItemRef1}}\",\n \"length\": 0,\n \"breadth\": 0,\n \"height\": 0,\n \"numItems\": 0.0,\n \"currentValue\": 0.0,\n \"cumulativeValue\": 0.0,\n \"isActive\": true,\n \"comments\": null,\n \"documents\": null,\n \"auditDetails\": {\n \"createdBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"lastModifiedBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"createdTime\": {{createdTime}},\n \"lastModifiedTime\": {{lastModifiedTime}}\n },\n \"additionalDetails\": {\n \"type\": \"SOR\",\n \"mbAmount\": 520\n }\n },\n {\n \"id\": \"{{measureId2}}\",\n \"referenceId\": \"{{refId}}\",\n \"targetId\": \"{{contractLineItemRef2}}\",\n \"length\": 0,\n \"breadth\": 0,\n \"height\": 0,\n \"numItems\": 0.0,\n \"currentValue\": 0.0,\n \"cumulativeValue\": 0.0,\n \"isActive\": true,\n \"comments\": null,\n \"documents\": null,\n \"auditDetails\": {\n \"createdBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"lastModifiedBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"createdTime\": {{createdTime}},\n \"lastModifiedTime\": {{lastModifiedTime}}\n },\n \"additionalDetails\": {\n \"type\": \"SOR\",\n \"mbAmount\": 530\n }\n }\n ],\n \"isActive\": true,\n \"documents\": [],\n \"auditDetails\": {\n \"createdBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"lastModifiedBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"createdTime\": {{createdTime}},\n \"lastModifiedTime\": {{lastModifiedTime}}\n },\n \"additionalDetails\": {\n \"sorAmount\": 8000,\n \"totalAmount\": 0\n },\n \"wfStatus\": \"PENDING_FOR_APPROVAL\",\n \"workflow\": {\n \"action\": \"VERIFY_AND_FORWARD\",\n \"assignes\": [],\n \"comments\": \"check\",\n \"verificationDocuments\": [\n {\n \"id\": null,\n \"documentType\": \"string\",\n \"fileStore\": \"be14ceb8-01ba-485b-a6e2-489e5474a576\",\n \"documentUid\": \"string\",\n \"additionalDetails\": {}\n }\n ]\n }\n }\n ]\n}" }, "url": { "raw": "{{base_url}}/measurement-service/v1/_update", "host": [ "{{base_url}}" ], "path": [ "measurement-service", "v1", "_update" ] } }, "response": [] }, { "name": "Measurement Update-Success-WF Reject", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () =>\r", " pm.expect(pm.response.code===200||pm.response.code===202).to.be.true\r", ");\r", "\r", "pm.test(\"Measurement's workflow status is Rejected\", function () {\r", " let responseData = pm.response.json();\r", " pm.expect(responseData.measurements[0].wfStatus).eq(\"REJECTED\");\r", " pm.collectionVariables.set(\"wfStatus\", responseData.measurements[0].status);\r", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json", "uuid": "a52aab0b-ba29-476b-b761-22a20111d803" } ], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"Rainmaker\",\n \"authToken\": \"{{auth}}\",\n \"userInfo\": {\n \"id\": 965,\n \"uuid\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"userName\": \"AUTO2\",\n \"name\": \"AUTO\",\n \"mobileNumber\": \"9999999999\",\n \"emailId\": null,\n \"locale\": null,\n \"type\": \"EMPLOYEE\",\n \"roles\": [\n {\n \"name\": \"HRMS Admin\",\n \"code\": \"HRMS_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER VIEWER\",\n \"code\": \"WORK_ORDER_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"National Dashboard Admin\",\n \"code\": \"NATADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Application Viewer\",\n \"code\": \"BIRTH_APPLICATION_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Redressal Officer\",\n \"code\": \"RO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Bill Creator\",\n \"code\": \"WORKS_BILL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collection Report Viewer\",\n \"code\": \"COLL_REP_VIEW\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Contractor Advance creator\",\n \"code\": \"CONTRACTOR_ADVANCE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Approver\",\n \"code\": \"WORKS_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Receipt Cancellator\",\n \"code\": \"CR_WS\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Approver\",\n \"code\": \"PROPERTY_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Approver\",\n \"code\": \"TL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOI APPROVER\",\n \"code\": \"LOI_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST CREATOR\",\n \"code\": \"EST_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Fire Noc Department Approver\",\n \"code\": \"FIRE_NOC_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"HCM SYSTEM ADMINISTRATOR\",\n \"code\": \"SYSTEM_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Field Inspector\",\n \"code\": \"PT_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Abstract Estimate Creator\",\n \"code\": \"AE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ULB Administrator\",\n \"code\": \"PTADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUKTA Admin\",\n \"code\": \"MUKTA_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Administrator\",\n \"code\": \"WORKS_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Builder\",\n \"code\": \"BPA_BUILDER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Voucher Creator\",\n \"code\": \"EGF_VOUCHER_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collections Remitter\",\n \"code\": \"COLL_REMIT_TO_BANK\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE APPROVER\",\n \"code\": \"ESTIMATE_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Auto Escalation Employee\",\n \"code\": \"AUTO_ESCALATE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_VERIFIER\",\n \"code\": \"MB_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST FIN SANC\",\n \"code\": \"EST_FIN_SANC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PGR Last Mile Employee\",\n \"code\": \"PGR_LME\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"DEATH Application Editor\",\n \"code\": \"DEATH_APPLICATION_EDITOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUSTER ROLL APPROVER\",\n \"code\": \"MUSTER_ROLL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Approver\",\n \"code\": \"WS_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Voucher Approver\",\n \"code\": \"EGF_VOUCHER_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM TP OPERATOR\",\n \"code\": \"PQM_TP_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Grivance Administrator\",\n \"code\": \"GA\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_ACCOUNTANT\",\n \"code\": \"BILL_ACCOUNTANT\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_VERIFIER\",\n \"code\": \"BILL_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Counter Employee\",\n \"code\": \"TL_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Tax Collection Employee\",\n \"code\": \"PT_COLLECTION_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Report Viewer\",\n \"code\": \"TL_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Desluding Operator\",\n \"code\": \"FSM_DSO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Application Viewer\",\n \"code\": \"FSM_VIEW_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPAREG doc verifier\",\n \"code\": \"BPAREG_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Asset Administrator\",\n \"code\": \"ASSET_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PGR Administrator\",\n \"code\": \"PGR-ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Field Employee\",\n \"code\": \"FEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Counter Employee\",\n \"code\": \"CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Death Application Viewer\",\n \"code\": \"DEATH_APPLICATION_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Admin of a ULB\",\n \"code\": \"CITY_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_CREATOR\",\n \"code\": \"BILL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collection Operator\",\n \"code\": \"COLL_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Application Editor\",\n \"code\": \"FSM_EDITOR_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPAREG Approver\",\n \"code\": \"BPAREG_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Driver\",\n \"code\": \"FSM_DRIVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER CREATOR\",\n \"code\": \"WORK_ORDER_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Death Application Creator\",\n \"code\": \"DEATH_APPLICATION_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Internal Microservice Role\",\n \"code\": \"INTERNAL_MICROSERVICE_ROLE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"AssetCreator\",\n \"code\": \"AssetCreator\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EGF Bill Creator\",\n \"code\": \"EGF_BILL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Employee Finance\",\n \"code\": \"EMPLOYEE_FINANCE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Sanitation Helper\",\n \"code\": \"SANITATION_HELPER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Legacy Receipt Creator\",\n \"code\": \"LEGACY_RECEIPT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"QA Automation\",\n \"code\": \"QA_AUTOMATION\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_CREATOR\",\n \"code\": \"MB_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Field Inspector\",\n \"code\": \"TL_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Organization admin\",\n \"code\": \"ORG_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_APPROVER\",\n \"code\": \"BILL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Architect\",\n \"code\": \"BPA_ARCHITECT\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUSTER ROLL VERIFIER\",\n \"code\": \"MUSTER_ROLL_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Field Inspector\",\n \"code\": \"BPA_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Employee Common\",\n \"code\": \"EMPLOYEE_COMMON\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Localisation admin\",\n \"code\": \"LOC_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_VIEWER\",\n \"code\": \"BILL_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Services verifier\",\n \"code\": \"BPA_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Engineer\",\n \"code\": \"BPA_ENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM FSTP Opperator\",\n \"code\": \"FSM_EMP_FSTPO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Universal Collection Employee\",\n \"code\": \"UC_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC Field Inpector\",\n \"code\": \"NOC_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Application Creator\",\n \"code\": \"FSM_CREATOR_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Counter Approver\",\n \"code\": \"PT_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST TECH SANC\",\n \"code\": \"EST_ADMIN_SANC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE CREATOR\",\n \"code\": \"ESTIMATE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM Admin\",\n \"code\": \"PQM_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC Doc Verifier\",\n \"code\": \"NOC_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Anonymous User\",\n \"code\": \"ANONYMOUS\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Citizen Feedback Centre\",\n \"code\": \"CFC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"State Dashboard Admin\",\n \"code\": \"STADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Financials Approver\",\n \"code\": \"WORKS_FINANCIAL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE VERIFIER\",\n \"code\": \"ESTIMATE_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PTIS Master\",\n \"code\": \"PTIS_MASTER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"CSC Collection Operator\",\n \"code\": \"CSC_COLL_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Report Viewer\",\n \"code\": \"BIRTH_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOI CREATOR\",\n \"code\": \"LOI_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ULB Operator\",\n \"code\": \"ULB_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Commissioner\",\n \"code\": \"COMMISSIONER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EGF Bill Approver\",\n \"code\": \"EGF_BILL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Payment Creator\",\n \"code\": \"EGF_PAYMENT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC counter Approver\",\n \"code\": \"NOC_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Sanitation Worker\",\n \"code\": \"SANITATION_WORKER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Structural Engineer\",\n \"code\": \"BPA_STRUCTURALENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"OFFICER IN CHARGE\",\n \"code\": \"OFFICER_IN_CHARGE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Department Grievance Routing Officer\",\n \"code\": \"DGRO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Services Approver\",\n \"code\": \"BPA_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PROJECT CREATOR\",\n \"code\": \"PROJECT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Water Report Viewer\",\n \"code\": \"WATER_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Master Admin\",\n \"code\": \"EGF_MASTER_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Town Planner\",\n \"code\": \"BPA_TOWNPLANNER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EMPLOYEE ADMIN\",\n \"code\": \"EMPLOYEE_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Adminsitrator\",\n \"code\": \"EGF_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Payment Collector\",\n \"code\": \"FSM_COLLECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Report Viewer\",\n \"code\": \"PT_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Sewerage Report Viewer\",\n \"code\": \"SEWERAGE_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_APPROVER\",\n \"code\": \"MB_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Supervisor\",\n \"code\": \"BPA_SUPERVISOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Application Creator\",\n \"code\": \"BIRTH_APPLICATION_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Any User\",\n \"code\": \"ANONYMUS\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Field Inspector\",\n \"code\": \"WS_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Verifier\",\n \"code\": \"PROPERTY_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Payment Approver\",\n \"code\": \"EGF_PAYMENT_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth and Death Dashboard User\",\n \"code\": \"DASHBOARD_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM CRONJOB SCHEDULER\",\n \"code\": \"PQM_CRONJOB_SCHEDULER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Report Viewer\",\n \"code\": \"FSM_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST TECH SANC\",\n \"code\": \"EST_TECH_SANC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Auto Escalation Supervisor\",\n \"code\": \"SUPERVISOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER VERIFIER\",\n \"code\": \"WORK_ORDER_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Detailed Estimate Creator\",\n \"code\": \"DE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"AssetReportViewer\",\n \"code\": \"AssetReportViewer\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Approver\",\n \"code\": \"SW_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth and Death User\",\n \"code\": \"BND_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TECHNICAL SANCTIONER\",\n \"code\": \"TECHNICAL_SANCTIONER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Master creator\",\n \"code\": \"WORKS_MASTER_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Application Editor\",\n \"code\": \"BIRTH_APPLICATION_EDITOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Death Report Viewer\",\n \"code\": \"DEATH_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"National Dashboard Systeme user\",\n \"code\": \"NDA_SYSTEM\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Fire Noc Report Viewer\",\n \"code\": \"FIRENOC_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SUPER USER\",\n \"code\": \"SUPERUSER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA NOC Verifier\",\n \"code\": \"BPA_NOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Dashboard Viewer\",\n \"code\": \"FSM_DASHBOARD_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Employee\",\n \"code\": \"EMPLOYEE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collections Receipt Creator\",\n \"code\": \"COLL_RECEIPT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Doc Verifier\",\n \"code\": \"PT_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Administrator\",\n \"code\": \"FSM_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"OBPS Report Viewer\",\n \"code\": \"OBPS_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Bank Collection Operator\",\n \"code\": \"BANK_COLL_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"CBO ADMIN\",\n \"code\": \"CBO_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Airport authority Approver\",\n \"code\": \"AIRPORT_AUTHORITY_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Admin\",\n \"code\": \"TL_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Creator\",\n \"code\": \"TL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Field Inspector\",\n \"code\": \"SW_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Customer Support Representative\",\n \"code\": \"CSR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Reindexing Role\",\n \"code\": \"REINDEXING_ROLE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WO Creator\",\n \"code\": \"WO_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Counter Employee\",\n \"code\": \"PT_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PTIS Admin\",\n \"code\": \"PTIS_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL doc verifier\",\n \"code\": \"TL_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE VIEWER\",\n \"code\": \"ESTIMATE_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Tax Receipt Cancellator\",\n \"code\": \"CR_PT\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Counter Employee\",\n \"code\": \"WS_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST_CHECKER\",\n \"code\": \"EST_CHECKER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"JUNIOR ENGINEER\",\n \"code\": \"JUNIOR_ENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOI CHECKER\",\n \"code\": \"LOI_CHECKER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC counter employee\",\n \"code\": \"NOC_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOA Creator\",\n \"code\": \"LOA_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Report View\",\n \"code\": \"EGF_REPORT_VIEW\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Document Verifier\",\n \"code\": \"WS_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PROJECT VIEWER\",\n \"code\": \"PROJECT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Grievance Routing Officer\",\n \"code\": \"GRO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Organization staff\",\n \"code\": \"ORG_STAFF\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Document Verifier\",\n \"code\": \"SW_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUNICIPAL ENGINEER\",\n \"code\": \"MUNICIPAL_ENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Clerk\",\n \"code\": \"SW_CLERK\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM Lab Operator\",\n \"code\": \"PQM_LAB_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER APPROVER\",\n \"code\": \"WORK_ORDER_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Grievance Officer\",\n \"code\": \"GO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Clerk\",\n \"code\": \"WS_CLERK\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Counter Employee\",\n \"code\": \"SW_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MDMS Admin\",\n \"code\": \"MDMS_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPAREG Employee\",\n \"code\": \"BPAREG_EMPLOYEE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_VIEWER\",\n \"code\": \"MB_VIEWER\",\n \"tenantId\": \"pg.citya\"\n }\n ],\n \"active\": true,\n \"tenantId\": \"pg.citya\",\n \"permanentCity\": null\n },\n \"msgId\": \"1695707627807|en_IN\",\n \"plainAccessRequest\": {}\n },\n \"measurements\": [\n {\n \"id\": \"{{measurementId}}\",\n \"tenantId\": \"{{tenantId}}\",\n \"measurementNumber\": \"{{MBno}}\",\n \"physicalRefNumber\": \"{{phrefnum}}\",\n \"referenceId\": \"{{MB-CO}}\",\n \"entryDate\": \"{{entryDate}}\",\n \"measures\": [\n {\n \"id\": \"{{measureId1}}\",\n \"referenceId\": \"{{refId}}\",\n \"targetId\": \"{{contractLineItemRef1}}\",\n \"length\": 0,\n \"breadth\": 0,\n \"height\": 0,\n \"numItems\": 0.0,\n \"currentValue\": 0.0,\n \"cumulativeValue\": 0.0,\n \"isActive\": true,\n \"comments\": null,\n \"documents\": null,\n \"auditDetails\": {\n \"createdBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"lastModifiedBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"createdTime\": {{createdTime}},\n \"lastModifiedTime\": {{lastModifiedTime}}\n },\n \"additionalDetails\": {\n \"type\": \"SOR\",\n \"mbAmount\": 520\n }\n },\n {\n \"id\": \"{{measureId2}}\",\n \"referenceId\": \"{{refId}}\",\n \"targetId\": \"{{contractLineItemRef2}}\",\n \"length\": 0,\n \"breadth\": 0,\n \"height\": 0,\n \"numItems\": 0.0,\n \"currentValue\": 0.0,\n \"cumulativeValue\": 0.0,\n \"isActive\": true,\n \"comments\": null,\n \"documents\": null,\n \"auditDetails\": {\n \"createdBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"lastModifiedBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"createdTime\": {{createdTime}},\n \"lastModifiedTime\": {{lastModifiedTime}}\n },\n \"additionalDetails\": {\n \"type\": \"SOR\",\n \"mbAmount\": 530\n }\n }\n ],\n \"isActive\": true,\n \"documents\": [],\n \"auditDetails\": {\n \"createdBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"lastModifiedBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"createdTime\": {{createdTime}},\n \"lastModifiedTime\": {{lastModifiedTime}}\n },\n \"additionalDetails\": {\n \"sorAmount\": 8000,\n \"totalAmount\": 0\n },\n \"wfStatus\": \"REJECTED\",\n \"workflow\": {\n \"action\": \"REJECT\",\n \"assignes\": [],\n \"comments\": \"check\",\n \"verificationDocuments\": [\n {\n \"id\": null,\n \"documentType\": \"string\",\n \"fileStore\": \"be14ceb8-01ba-485b-a6e2-489e5474a576\",\n \"documentUid\": \"string\",\n \"additionalDetails\": {}\n }\n ]\n }\n }\n ]\n}" }, "url": { "raw": "{{base_url}}/measurement-service/v1/_update", "host": [ "{{base_url}}" ], "path": [ "measurement-service", "v1", "_update" ] } }, "response": [] }, { "name": "Measurement Update-Validation Error- Rejected MB modification", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Check response is Bad Request\", function () {\r", " // Check if the response status is 400\r", " pm.expect(pm.response.code).to.equal(400);\r", "});\r", "\r", "var jsonData = pm.response.json();\r", "\r", "pm.test(\"Response should have 'REJECTED_ERROR' error\", function() {\r", " var jsonData = pm.response.json();\r", " if (jsonData.error) {\r", " console.error(\"Error detected: \" + jsonData.error);\r", " // You can handle the error as per your requirements, for example:\r", " pm.response.to.be.error(); \r", "// throw new Error(\"Error detected: \" + jsonData.error);\r", " pm.expect.jsonData.to.be.eql(\"Measurement is rejected for measurementNumber ::\");\r", " } else {\r", " console.log(\"No errors detected in the response\");\r", " // Continue with your regular tests or script logic\r", " }\r", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json", "uuid": "e6e59e2e-0640-426d-9089-6e365168ab6c" } ], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"Rainmaker\",\n \"authToken\": \"{{auth}}\",\n \"userInfo\": {\n \"id\": 965,\n \"uuid\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"userName\": \"AUTO2\",\n \"name\": \"AUTO\",\n \"mobileNumber\": \"9999999999\",\n \"emailId\": null,\n \"locale\": null,\n \"type\": \"EMPLOYEE\",\n \"roles\": [\n {\n \"name\": \"HRMS Admin\",\n \"code\": \"HRMS_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER VIEWER\",\n \"code\": \"WORK_ORDER_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"National Dashboard Admin\",\n \"code\": \"NATADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Application Viewer\",\n \"code\": \"BIRTH_APPLICATION_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Redressal Officer\",\n \"code\": \"RO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Bill Creator\",\n \"code\": \"WORKS_BILL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collection Report Viewer\",\n \"code\": \"COLL_REP_VIEW\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Contractor Advance creator\",\n \"code\": \"CONTRACTOR_ADVANCE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Approver\",\n \"code\": \"WORKS_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Receipt Cancellator\",\n \"code\": \"CR_WS\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Approver\",\n \"code\": \"PROPERTY_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Approver\",\n \"code\": \"TL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOI APPROVER\",\n \"code\": \"LOI_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST CREATOR\",\n \"code\": \"EST_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Fire Noc Department Approver\",\n \"code\": \"FIRE_NOC_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"HCM SYSTEM ADMINISTRATOR\",\n \"code\": \"SYSTEM_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Field Inspector\",\n \"code\": \"PT_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Abstract Estimate Creator\",\n \"code\": \"AE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ULB Administrator\",\n \"code\": \"PTADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUKTA Admin\",\n \"code\": \"MUKTA_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Administrator\",\n \"code\": \"WORKS_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Builder\",\n \"code\": \"BPA_BUILDER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Voucher Creator\",\n \"code\": \"EGF_VOUCHER_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collections Remitter\",\n \"code\": \"COLL_REMIT_TO_BANK\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE APPROVER\",\n \"code\": \"ESTIMATE_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Auto Escalation Employee\",\n \"code\": \"AUTO_ESCALATE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_VERIFIER\",\n \"code\": \"MB_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST FIN SANC\",\n \"code\": \"EST_FIN_SANC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PGR Last Mile Employee\",\n \"code\": \"PGR_LME\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"DEATH Application Editor\",\n \"code\": \"DEATH_APPLICATION_EDITOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUSTER ROLL APPROVER\",\n \"code\": \"MUSTER_ROLL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Approver\",\n \"code\": \"WS_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Voucher Approver\",\n \"code\": \"EGF_VOUCHER_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM TP OPERATOR\",\n \"code\": \"PQM_TP_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Grivance Administrator\",\n \"code\": \"GA\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_ACCOUNTANT\",\n \"code\": \"BILL_ACCOUNTANT\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_VERIFIER\",\n \"code\": \"BILL_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Counter Employee\",\n \"code\": \"TL_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Tax Collection Employee\",\n \"code\": \"PT_COLLECTION_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Report Viewer\",\n \"code\": \"TL_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Desluding Operator\",\n \"code\": \"FSM_DSO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Application Viewer\",\n \"code\": \"FSM_VIEW_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPAREG doc verifier\",\n \"code\": \"BPAREG_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Asset Administrator\",\n \"code\": \"ASSET_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PGR Administrator\",\n \"code\": \"PGR-ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Field Employee\",\n \"code\": \"FEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Counter Employee\",\n \"code\": \"CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Death Application Viewer\",\n \"code\": \"DEATH_APPLICATION_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Admin of a ULB\",\n \"code\": \"CITY_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_CREATOR\",\n \"code\": \"BILL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collection Operator\",\n \"code\": \"COLL_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Application Editor\",\n \"code\": \"FSM_EDITOR_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPAREG Approver\",\n \"code\": \"BPAREG_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Driver\",\n \"code\": \"FSM_DRIVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER CREATOR\",\n \"code\": \"WORK_ORDER_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Death Application Creator\",\n \"code\": \"DEATH_APPLICATION_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Internal Microservice Role\",\n \"code\": \"INTERNAL_MICROSERVICE_ROLE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"AssetCreator\",\n \"code\": \"AssetCreator\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EGF Bill Creator\",\n \"code\": \"EGF_BILL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Employee Finance\",\n \"code\": \"EMPLOYEE_FINANCE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Sanitation Helper\",\n \"code\": \"SANITATION_HELPER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Legacy Receipt Creator\",\n \"code\": \"LEGACY_RECEIPT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"QA Automation\",\n \"code\": \"QA_AUTOMATION\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_CREATOR\",\n \"code\": \"MB_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Field Inspector\",\n \"code\": \"TL_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Organization admin\",\n \"code\": \"ORG_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_APPROVER\",\n \"code\": \"BILL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Architect\",\n \"code\": \"BPA_ARCHITECT\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUSTER ROLL VERIFIER\",\n \"code\": \"MUSTER_ROLL_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Field Inspector\",\n \"code\": \"BPA_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Employee Common\",\n \"code\": \"EMPLOYEE_COMMON\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Localisation admin\",\n \"code\": \"LOC_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_VIEWER\",\n \"code\": \"BILL_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Services verifier\",\n \"code\": \"BPA_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Engineer\",\n \"code\": \"BPA_ENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM FSTP Opperator\",\n \"code\": \"FSM_EMP_FSTPO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Universal Collection Employee\",\n \"code\": \"UC_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC Field Inpector\",\n \"code\": \"NOC_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Application Creator\",\n \"code\": \"FSM_CREATOR_EMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Counter Approver\",\n \"code\": \"PT_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST TECH SANC\",\n \"code\": \"EST_ADMIN_SANC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE CREATOR\",\n \"code\": \"ESTIMATE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM Admin\",\n \"code\": \"PQM_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC Doc Verifier\",\n \"code\": \"NOC_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Anonymous User\",\n \"code\": \"ANONYMOUS\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Citizen Feedback Centre\",\n \"code\": \"CFC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"State Dashboard Admin\",\n \"code\": \"STADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Financials Approver\",\n \"code\": \"WORKS_FINANCIAL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE VERIFIER\",\n \"code\": \"ESTIMATE_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PTIS Master\",\n \"code\": \"PTIS_MASTER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"CSC Collection Operator\",\n \"code\": \"CSC_COLL_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Report Viewer\",\n \"code\": \"BIRTH_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOI CREATOR\",\n \"code\": \"LOI_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ULB Operator\",\n \"code\": \"ULB_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Commissioner\",\n \"code\": \"COMMISSIONER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EGF Bill Approver\",\n \"code\": \"EGF_BILL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Payment Creator\",\n \"code\": \"EGF_PAYMENT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC counter Approver\",\n \"code\": \"NOC_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Sanitation Worker\",\n \"code\": \"SANITATION_WORKER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Structural Engineer\",\n \"code\": \"BPA_STRUCTURALENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"OFFICER IN CHARGE\",\n \"code\": \"OFFICER_IN_CHARGE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Department Grievance Routing Officer\",\n \"code\": \"DGRO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Services Approver\",\n \"code\": \"BPA_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PROJECT CREATOR\",\n \"code\": \"PROJECT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Water Report Viewer\",\n \"code\": \"WATER_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Master Admin\",\n \"code\": \"EGF_MASTER_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Town Planner\",\n \"code\": \"BPA_TOWNPLANNER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EMPLOYEE ADMIN\",\n \"code\": \"EMPLOYEE_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Adminsitrator\",\n \"code\": \"EGF_ADMINISTRATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Payment Collector\",\n \"code\": \"FSM_COLLECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Report Viewer\",\n \"code\": \"PT_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Sewerage Report Viewer\",\n \"code\": \"SEWERAGE_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_APPROVER\",\n \"code\": \"MB_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA Supervisor\",\n \"code\": \"BPA_SUPERVISOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Application Creator\",\n \"code\": \"BIRTH_APPLICATION_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Any User\",\n \"code\": \"ANONYMUS\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Field Inspector\",\n \"code\": \"WS_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Verifier\",\n \"code\": \"PROPERTY_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Payment Approver\",\n \"code\": \"EGF_PAYMENT_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth and Death Dashboard User\",\n \"code\": \"DASHBOARD_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM CRONJOB SCHEDULER\",\n \"code\": \"PQM_CRONJOB_SCHEDULER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Report Viewer\",\n \"code\": \"FSM_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST TECH SANC\",\n \"code\": \"EST_TECH_SANC\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Auto Escalation Supervisor\",\n \"code\": \"SUPERVISOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER VERIFIER\",\n \"code\": \"WORK_ORDER_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Detailed Estimate Creator\",\n \"code\": \"DE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"AssetReportViewer\",\n \"code\": \"AssetReportViewer\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Approver\",\n \"code\": \"SW_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth and Death User\",\n \"code\": \"BND_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TECHNICAL SANCTIONER\",\n \"code\": \"TECHNICAL_SANCTIONER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Works Master creator\",\n \"code\": \"WORKS_MASTER_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Birth Application Editor\",\n \"code\": \"BIRTH_APPLICATION_EDITOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Death Report Viewer\",\n \"code\": \"DEATH_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"National Dashboard Systeme user\",\n \"code\": \"NDA_SYSTEM\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Fire Noc Report Viewer\",\n \"code\": \"FIRENOC_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SUPER USER\",\n \"code\": \"SUPERUSER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPA NOC Verifier\",\n \"code\": \"BPA_NOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Employee Dashboard Viewer\",\n \"code\": \"FSM_DASHBOARD_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Employee\",\n \"code\": \"EMPLOYEE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Collections Receipt Creator\",\n \"code\": \"COLL_RECEIPT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Doc Verifier\",\n \"code\": \"PT_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"FSM Administrator\",\n \"code\": \"FSM_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"OBPS Report Viewer\",\n \"code\": \"OBPS_REPORT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Bank Collection Operator\",\n \"code\": \"BANK_COLL_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"CBO ADMIN\",\n \"code\": \"CBO_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Airport authority Approver\",\n \"code\": \"AIRPORT_AUTHORITY_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Admin\",\n \"code\": \"TL_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL Creator\",\n \"code\": \"TL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Field Inspector\",\n \"code\": \"SW_FIELD_INSPECTOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Customer Support Representative\",\n \"code\": \"CSR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Reindexing Role\",\n \"code\": \"REINDEXING_ROLE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WO Creator\",\n \"code\": \"WO_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PT Counter Employee\",\n \"code\": \"PT_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PTIS Admin\",\n \"code\": \"PTIS_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TL doc verifier\",\n \"code\": \"TL_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE VIEWER\",\n \"code\": \"ESTIMATE_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Property Tax Receipt Cancellator\",\n \"code\": \"CR_PT\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Counter Employee\",\n \"code\": \"WS_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"EST_CHECKER\",\n \"code\": \"EST_CHECKER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"JUNIOR ENGINEER\",\n \"code\": \"JUNIOR_ENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOI CHECKER\",\n \"code\": \"LOI_CHECKER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"NoC counter employee\",\n \"code\": \"NOC_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"LOA Creator\",\n \"code\": \"LOA_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Finance Report View\",\n \"code\": \"EGF_REPORT_VIEW\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Document Verifier\",\n \"code\": \"WS_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PROJECT VIEWER\",\n \"code\": \"PROJECT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Grievance Routing Officer\",\n \"code\": \"GRO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Organization staff\",\n \"code\": \"ORG_STAFF\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Document Verifier\",\n \"code\": \"SW_DOC_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUNICIPAL ENGINEER\",\n \"code\": \"MUNICIPAL_ENGINEER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Clerk\",\n \"code\": \"SW_CLERK\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PQM Lab Operator\",\n \"code\": \"PQM_LAB_OPERATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER APPROVER\",\n \"code\": \"WORK_ORDER_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Grievance Officer\",\n \"code\": \"GO\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WS Clerk\",\n \"code\": \"WS_CLERK\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"SW Counter Employee\",\n \"code\": \"SW_CEMP\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MDMS Admin\",\n \"code\": \"MDMS_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BPAREG Employee\",\n \"code\": \"BPAREG_EMPLOYEE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MB_VIEWER\",\n \"code\": \"MB_VIEWER\",\n \"tenantId\": \"pg.citya\"\n }\n ],\n \"active\": true,\n \"tenantId\": \"pg.citya\",\n \"permanentCity\": null\n },\n \"msgId\": \"1695707627807|en_IN\",\n \"plainAccessRequest\": {}\n },\n \"measurements\": [\n {\n \"id\": \"{{measurementId}}\",\n \"tenantId\": \"{{tenantId}}\",\n \"measurementNumber\": \"{{MBno}}\",\n \"physicalRefNumber\": \"{{phrefnum}}\",\n \"referenceId\": \"{{MB-CO}}\",\n \"entryDate\": \"{{entryDate}}\",\n \"measures\": [\n {\n \"id\": \"{{measureId1}}\",\n \"referenceId\": \"{{refId}}\",\n \"targetId\": \"{{contractLineItemRef1}}\",\n \"length\": 0,\n \"breadth\": 0,\n \"height\": 0,\n \"numItems\": 0.0,\n \"currentValue\": 0.0,\n \"cumulativeValue\": 0.0,\n \"isActive\": true,\n \"comments\": null,\n \"documents\": null,\n \"auditDetails\": {\n \"createdBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"lastModifiedBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"createdTime\": {{createdTime}},\n \"lastModifiedTime\": {{lastModifiedTime}}\n },\n \"additionalDetails\": {\n \"type\": \"SOR\",\n \"mbAmount\": 520\n }\n },\n {\n \"id\": \"{{measureId2}}\",\n \"referenceId\": \"{{refId}}\",\n \"targetId\": \"{{contractLineItemRef2}}\",\n \"length\": 0,\n \"breadth\": 0,\n \"height\": 0,\n \"numItems\": 0.0,\n \"currentValue\": 0.0,\n \"cumulativeValue\": 0.0,\n \"isActive\": true,\n \"comments\": null,\n \"documents\": null,\n \"auditDetails\": {\n \"createdBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"lastModifiedBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"createdTime\": {{createdTime}},\n \"lastModifiedTime\": {{lastModifiedTime}}\n },\n \"additionalDetails\": {\n \"type\": \"SOR\",\n \"mbAmount\": 530\n }\n }\n ],\n \"isActive\": true,\n \"documents\": [],\n \"auditDetails\": {\n \"createdBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"lastModifiedBy\": \"ee3379e9-7f25-4be8-9cc1-dc599e1668c9\",\n \"createdTime\": {{createdTime}},\n \"lastModifiedTime\": {{lastModifiedTime}}\n },\n \"additionalDetails\": {\n \"sorAmount\": 8000,\n \"totalAmount\": 0\n },\n \"wfStatus\": \"REJECTED\",\n \"workflow\": {\n \"action\": \"REJECT\",\n \"assignes\": [],\n \"comments\": \"check\",\n \"verificationDocuments\": [\n {\n \"id\": null,\n \"documentType\": \"string\",\n \"fileStore\": \"be14ceb8-01ba-485b-a6e2-489e5474a576\",\n \"documentUid\": \"string\",\n \"additionalDetails\": {}\n }\n ]\n }\n }\n ]\n}" }, "url": { "raw": "{{base_url}}/measurement-service/v1/_update", "host": [ "{{base_url}}" ], "path": [ "measurement-service", "v1", "_update" ] } }, "response": [] } ] }, { "name": "Individual Service Test Script", "item": [ { "name": "Create Individual - Success", "event": [ { "listen": "prerequest", "script": { "exec": [ "// Arrays of common first and last names\r", "const firstNames = [\r", " \"John\",\r", " \"Jane\",\r", " \"Michael\",\r", " \"Emily\",\r", " \"David\",\r", " \"Sarah\"\r", "];\r", "const lastNames = [\r", " \"Smith\",\r", " \"Johnson\",\r", " \"Williams\",\r", " \"Brown\",\r", " \"Jones\",\r", " \"Davis\"\r", "];\r", "// Function to generate a random individual name\r", "function generateRandomName() {\r", " const randomFirstName = firstNames[Math.floor(Math.random() * firstNames.length)];\r", " const randomLastName = lastNames[Math.floor(Math.random() * lastNames.length)];\r", "\r", " return `${randomFirstName} ${randomLastName}`;\r", "}\r", "// Generate random names for Son and Father\r", "const sonName = generateRandomName();\r", "const fatherName = generateRandomName();\r", "\r", "// Set the generated names as environment variables\r", "pm.environment.set(\"IndName\", sonName);\r", "pm.collectionVariables.set(\"IndFatherName\", fatherName);\r", "\r", "\r", "\r", "\r", "// Generate a random 10-digit mobile number\r", "function generateRandomMobileNumber() {\r", " let mobileNumber = \"9\"; // Start with 9 as the first digit\r", "\r", " for (let i = 1; i < 10; i++) {\r", " mobileNumber += Math.floor(Math.random() * 10);\r", " }\r", "\r", " return mobileNumber;\r", "}\r", "\r", "// Generate a random mobile number\r", "const randomMobileNumber = generateRandomMobileNumber();\r", "\r", "// Set the generated mobile number as an environment variable\r", "pm.environment.set(\"IndmobileNo\", randomMobileNumber);\r", "\r", "\r", "\r", "\r", "//Generate a random 12-digit number\r", "function generateRandomNumber() {\r", " let randomNumber = \"\";\r", " for (let i = 0; i < 12; i++) {\r", " randomNumber += Math.floor(Math.random() * 10);\r", " }\r", " return randomNumber;\r", "}\r", "// Generate a random 12-digit number\r", "const random12DigitNumber = generateRandomNumber();\r", "\r", "// Set the generated number as an environment variable\r", "pm.collectionVariables.set(\"IndAadharNo\", random12DigitNumber);\r", "\r", "" ], "type": "text/javascript", "packages": {} } }, { "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", "\r", "pm.test(\"Individual are required\", function () {\r", " var req = JSON.parse(pm.request.body.raw);\r", " pm.expect(req.Individual).to.not.be.undefined;\r", " pm.expect(req.Individual).to.not.be.null;\r", "}\r", ");\r", "\r", "pm.test(\"TenantId is required\", function () {\r", " var req = JSON.parse(pm.request.body.raw);\r", " var Individual = req.Individual; \r", " pm.expect(Individual.tenantId).to.not.be.null;\r", " pm.expect(Individual.tenantId).to.not.be.undefined;\r", " pm.expect(Individual.tenantId).to.not.equal(\"\");\r", "});\r", "\r", "pm.test(\"Response is successful\", () =>\r", " pm.expect(pm.response.to.have.status(202))\r", ");\r", "\r", "pm.test(\"print and save IndividualId in environment\", function () {\r", " var res = pm.response.json();\r", " var IndividualId = res.Individual.id;\r", " console.log('id:', IndividualId);\r", " pm.environment.set('IndId', IndividualId);\r", "}\r", ");\r", "pm.test(\"print and save IndividualNumber in environment\", function () {\r", " var res = pm.response.json();\r", " var IndividualNo = res.Individual.individualId;\r", " console.log('individualId:', IndividualNo);\r", " pm.environment.set('IndNo', IndividualNo);\r", "}\r", ");\r", "\r", "pm.test(\"print and save Ind-addressid in environment\", function () {\r", " var res = pm.response.json();\r", " var addressid = res.Individual.address.id;\r", " console.log('id:', addressid);\r", " pm.environment.set('Ind-addressid',addressid);\r", "}\r", ");\r", "\r", "let responseData = pm.response.json();\r", "\r", "//Storing the response data into collection variable to reuse\r", "\r", "pm.collectionVariables.set(\"IndId\", responseData.Individual.id);\r", "\r", "pm.collectionVariables.set(\"IndNo\", responseData.Individual.individualId);\r", "\r", "pm.collectionVariables.set(\"IndDOB\", responseData.Individual.dateOfBirth);\r", "\r", "pm.collectionVariables.set(\"Indgender\", responseData.Individual.gender);\r", "\r", "pm.collectionVariables.set(\"createdTime\", (responseData.Individual.auditDetails.createdTime));\r", "\r", "pm.collectionVariables.set(\"lastModifiedTime\",(responseData.Individual.auditDetails.lastModifiedTime));\r", "\r", "pm.collectionVariables.set(\"IndaddressId\", responseData.Individual.address[0].id);\r", "\r", "pm.collectionVariables.set(\"IndskillId\", responseData.Individual.skills[0].id);\r", "\r", "pm.collectionVariables.set(\"Indskilltype\", responseData.Individual.skills[0].type);\r", "\r", "pm.collectionVariables.set(\"Indskilllevel\", responseData.Individual.skills[0].level);\r", "\r", "pm.collectionVariables.set(\"Social Category\", responseData.Individual.additionalFields.fields[0].value);\r", "\r", "pm.collectionVariables.set(\"identifiersId\", responseData.Individual.identifiers[0].id);\r", "\r", "pm.collectionVariables.set(\"IndrowVersion\", responseData.Individual.rowVersion);\r", "\r", "\r", "\r", "\r", "\r", "\r", "\r", "\r", "\r", "\r", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"ver\": \".01\",\r\n \"ts\": \"\",\r\n \"action\": \"_search\",\r\n \"did\": \"1\",\r\n \"key\": \"\",\r\n \"msgId\": \"1695367848064|en_IN\",\r\n \"authToken\": \"{{token}}\",\r\n \"userInfo\": {{cboUser}}\r\n },\r\n \"Individual\": {\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"name\": {\r\n \"givenName\": \"{{IndName}}\"\r\n },\r\n \"dateOfBirth\": \"04/09/1990\",\r\n \"gender\": \"MALE\",\r\n \"mobileNumber\": \"{{IndmobileNo}}\",\r\n \"address\": [\r\n {\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"pincode\": \"600003\",\r\n \"city\": \"{{tenantId}}\",\r\n \"street\": \"Brindavanam\",\r\n \"doorNo\": \"27\",\r\n \"type\": \"PERMANENT\",\r\n \"locality\": {\r\n \"code\": \"{{locality}}\"\r\n },\r\n \"ward\": {\r\n \"code\": \"{{ward}}\"\r\n }\r\n }\r\n ],\r\n \"fatherName\": \"{{IndFatherName}}\",\r\n \"husbandName\": null,\r\n \"relationship\": \"FATHER\",\r\n \"identifiers\": [\r\n {\r\n \"identifierType\": \"AADHAAR\",\r\n \"identifierId\": \"{{IndAadharNo}}\"\r\n }\r\n ],\r\n \"skills\": [\r\n {\r\n \"type\": \"SEMI_SKILLED_MASON\",\r\n \"level\": \"SOR_0000013\"\r\n }\r\n ],\r\n \"photo\": null,\r\n \"additionalFields\": {\r\n \"fields\": [\r\n {\r\n \"key\": \"SOCIAL_CATEGORY\",\r\n \"value\": \"SC\"\r\n }\r\n ]\r\n }\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/individual/v1/_create", "host": [ "{{base_url}}" ], "path": [ "individual", "v1", "_create" ] } }, "response": [ { "name": "Create Individual - Success", "originalRequest": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"ver\": \".01\",\r\n \"ts\": \"\",\r\n \"action\": \"_search\",\r\n \"did\": \"1\",\r\n \"key\": \"\",\r\n \"msgId\": \"1695367848064|en_IN\",\r\n \"authToken\": \"{{auth}}\",\r\n \"userInfo\": {\r\n \"active\": true,\r\n \"id\": 488,\r\n \"emailId\": null,\r\n \"mobileNumber\": \"9000000001\",\r\n \"name\": \"Aug JIT testing null\",\r\n \"scope\": null,\r\n \"tenantId\": \"pg\",\r\n \"type\": \"CITIZEN\",\r\n \"userName\": \"9000000001\",\r\n \"uuid\": \"f2cfbb49-0aec-438e-872d-0d0f5fba83a6\",\r\n \"roles\": [\r\n {\r\n \"code\": \"ORG_ADMIN\",\r\n \"name\": \"Organization admin\",\r\n \"tenantId\": \"pg\"\r\n }\r\n ]\r\n }\r\n },\r\n \"Individual\": {\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"name\": {\r\n \"givenName\": \"{{IndName}}\"\r\n },\r\n \"dateOfBirth\": \"04/09/1990\",\r\n \"gender\": \"MALE\",\r\n \"mobileNumber\": \"{{IndmobileNo}}\",\r\n \"address\": [\r\n {\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"pincode\": \"600003\",\r\n \"city\": \"{{tenantId}}\",\r\n \"street\": \"Brindavanam\",\r\n \"doorNo\": \"27\",\r\n \"type\": \"PERMANENT\",\r\n \"locality\": {\r\n \"code\": \"{{locality}}\"\r\n },\r\n \"ward\": {\r\n \"code\": \"{{ward}}\"\r\n }\r\n }\r\n ],\r\n \"fatherName\": \"{{IndFatherName}}\",\r\n \"husbandName\": null,\r\n \"relationship\": \"FATHER\",\r\n \"identifiers\": [\r\n {\r\n \"identifierType\": \"AADHAAR\",\r\n \"identifierId\": \"{{IndAadharNo}}\"\r\n }\r\n ],\r\n \"skills\": [\r\n {\r\n \"type\": \"HAMMER_MAN\",\r\n \"level\": \"SEMI_SKILLED\"\r\n }\r\n ],\r\n \"photo\": null,\r\n \"additionalFields\": {\r\n \"fields\": [\r\n {\r\n \"key\": \"SOCIAL_CATEGORY\",\r\n \"value\": \"SC\"\r\n }\r\n ]\r\n }\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/individual/v1/_create", "host": [ "{{base_url}}" ], "path": [ "individual", "v1", "_create" ] } }, "status": "Accepted", "code": 202, "_postman_previewlanguage": "json", "header": [ { "key": "Date", "value": "Mon, 25 Sep 2023 06:00:30 GMT" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "Strict-Transport-Security", "value": "max-age=63072000; includeSubdomains; preload" }, { "key": "X-Lua-Resty-WAF-ID", "value": "597ff587c2e76ea5ade2" }, { "key": "x-correlation-id", "value": "5def8131-3297-475d-9e6a-f78eddbf1864" }, { "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" } ], "cookie": [], "body": "{\n \"ResponseInfo\": {\n \"apiId\": \"Rainmaker\",\n \"ver\": \".01\",\n \"ts\": 1695621630290,\n \"resMsgId\": \"1695367848064|en_IN\",\n \"msgId\": \"1695367848064|en_IN\",\n \"status\": \"successful\"\n },\n \"Individual\": {\n \"id\": \"f8833110-1c40-48e6-b82b-f8968209e574\",\n \"individualId\": \"IND-2023-09-25-000525\",\n \"tenantId\": \"pg.citya\",\n \"clientReferenceId\": null,\n \"userId\": null,\n \"userUuid\": null,\n \"name\": {\n \"givenName\": \"John Williams\",\n \"familyName\": null,\n \"otherNames\": null\n },\n \"dateOfBirth\": \"04/09/1990\",\n \"gender\": \"MALE\",\n \"bloodGroup\": null,\n \"mobileNumber\": \"9675784830\",\n \"altContactNumber\": null,\n \"email\": null,\n \"address\": [\n {\n \"id\": \"90714054-28b2-4e1e-9f4b-2d5fe16d898d\",\n \"clientReferenceId\": null,\n \"individualId\": \"f8833110-1c40-48e6-b82b-f8968209e574\",\n \"tenantId\": \"pg.citya\",\n \"doorNo\": \"27\",\n \"latitude\": null,\n \"longitude\": null,\n \"locationAccuracy\": null,\n \"type\": \"PERMANENT\",\n \"addressLine1\": null,\n \"addressLine2\": null,\n \"landmark\": null,\n \"city\": \"pg.citya\",\n \"pincode\": \"600003\",\n \"buildingName\": null,\n \"street\": \"Brindavanam\",\n \"locality\": {\n \"code\": \"SUN01\",\n \"name\": null,\n \"label\": null,\n \"latitude\": null,\n \"longitude\": null,\n \"children\": null,\n \"materializedPath\": null\n },\n \"ward\": {\n \"code\": \"B1\",\n \"name\": null,\n \"label\": null,\n \"latitude\": null,\n \"longitude\": null,\n \"children\": null,\n \"materializedPath\": null\n },\n \"isDeleted\": false,\n \"auditDetails\": {\n \"createdBy\": \"7ee53b13-5cba-4091-83b1-e2c45d9077f2\",\n \"lastModifiedBy\": \"7ee53b13-5cba-4091-83b1-e2c45d9077f2\",\n \"createdTime\": 1695621630241,\n \"lastModifiedTime\": 1695621630241\n }\n }\n ],\n \"fatherName\": \"John Smith\",\n \"husbandName\": null,\n \"relationship\": \"FATHER\",\n \"identifiers\": [\n {\n \"id\": \"babff6c3-f759-4b62-b4ca-d213623d756c\",\n \"clientReferenceId\": null,\n \"individualId\": \"f8833110-1c40-48e6-b82b-f8968209e574\",\n \"identifierType\": \"AADHAAR\",\n \"identifierId\": \"********8156\",\n \"isDeleted\": false,\n \"auditDetails\": {\n \"createdBy\": \"7ee53b13-5cba-4091-83b1-e2c45d9077f2\",\n \"lastModifiedBy\": \"7ee53b13-5cba-4091-83b1-e2c45d9077f2\",\n \"createdTime\": 1695621630241,\n \"lastModifiedTime\": 1695621630241\n }\n }\n ],\n \"skills\": [\n {\n \"id\": \"155c6c83-073c-4257-88db-9151f0944ce2\",\n \"clientReferenceId\": null,\n \"individualId\": \"f8833110-1c40-48e6-b82b-f8968209e574\",\n \"type\": \"HAMMER_MAN\",\n \"level\": \"SEMI_SKILLED\",\n \"experience\": null,\n \"isDeleted\": false,\n \"auditDetails\": {\n \"createdBy\": \"7ee53b13-5cba-4091-83b1-e2c45d9077f2\",\n \"lastModifiedBy\": \"7ee53b13-5cba-4091-83b1-e2c45d9077f2\",\n \"createdTime\": 1695621630241,\n \"lastModifiedTime\": 1695621630241\n }\n }\n ],\n \"photo\": null,\n \"additionalFields\": {\n \"schema\": null,\n \"version\": null,\n \"fields\": [\n {\n \"key\": \"SOCIAL_CATEGORY\",\n \"value\": \"SC\"\n }\n ]\n },\n \"isDeleted\": false,\n \"rowVersion\": 1,\n \"auditDetails\": {\n \"createdBy\": \"7ee53b13-5cba-4091-83b1-e2c45d9077f2\",\n \"lastModifiedBy\": \"7ee53b13-5cba-4091-83b1-e2c45d9077f2\",\n \"createdTime\": 1695621630241,\n \"lastModifiedTime\": 1695621630241\n },\n \"isSystemUser\": false,\n \"isSystemUserActive\": true,\n \"userDetails\": null\n }\n}" } ] }, { "name": "Create Individual - Validation Error - Individual not provided", "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(\"NotNull.individualRequest.individual\");\r", " pm.expect(message).to.eql(\"must not be null\");\r", "}\r", ");" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"ver\": \".01\",\r\n \"ts\": \"\",\r\n \"action\": \"_search\",\r\n \"did\": \"1\",\r\n \"key\": \"\",\r\n \"msgId\": \"1695367848064|en_IN\",\r\n \"authToken\": \"{{token}}\",\r\n \"userInfo\": {\r\n \"id\": 6281,\r\n \"uuid\": \"76a3bfa2-369d-4aec-93bf-b144b86e3e7c\",\r\n \"userName\": \"9862798377\",\r\n \"name\": \"fgibul\",\r\n \"mobileNumber\": \"9862798377\",\r\n \"emailId\": \"a@b.com\",\r\n \"locale\": null,\r\n \"type\": \"CITIZEN\",\r\n \"roles\": [\r\n {\r\n \"name\": \"Organization admin\",\r\n \"code\": \"ORG_ADMIN\",\r\n \"tenantId\": \"pg\"\r\n }\r\n ],\r\n \"active\": true,\r\n \"tenantId\": \"pg\",\r\n \"permanentCity\": null\r\n }\r\n }\r\n\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/individual/v1/_create", "host": [ "{{base_url}}" ], "path": [ "individual", "v1", "_create" ] } }, "response": [] }, { "name": "Create Individual - Validation Error - Tenant Id not provided", "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {} } }, { "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(\"NotNull.individualRequest.individual.tenantId\");\r", " pm.expect(message).to.eql(\"must not be null\");\r", " }\r", ");" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"ver\": \".01\",\r\n \"ts\": \"\",\r\n \"action\": \"_search\",\r\n \"did\": \"1\",\r\n \"key\": \"\",\r\n \"msgId\": \"1695367848064|en_IN\",\r\n \"authToken\": \"{{token}}\",\r\n \"userInfo\": {\r\n \"id\": 6281,\r\n \"uuid\": \"76a3bfa2-369d-4aec-93bf-b144b86e3e7c\",\r\n \"userName\": \"9862798377\",\r\n \"name\": \"fgibul\",\r\n \"mobileNumber\": \"9862798377\",\r\n \"emailId\": \"a@b.com\",\r\n \"locale\": null,\r\n \"type\": \"CITIZEN\",\r\n \"roles\": [\r\n {\r\n \"name\": \"Organization admin\",\r\n \"code\": \"ORG_ADMIN\",\r\n \"tenantId\": \"pg\"\r\n }\r\n ],\r\n \"active\": true,\r\n \"tenantId\": \"pg\",\r\n \"permanentCity\": null\r\n }\r\n },\r\n \"Individual\": {\r\n \"name\": {\r\n \"givenName\": \"{{IndName}}\"\r\n },\r\n \"dateOfBirth\": \"04/09/1990\",\r\n \"gender\": \"MALE\",\r\n \"mobileNumber\": \"{{IndmobileNo}}\",\r\n \"address\": [\r\n {\r\n // \"tenantId\": \"{{tenantId}}\",\r\n \"pincode\": \"600003\",\r\n \"city\": \"{{tenantId}}\",\r\n \"street\": \"Brindavanam\",\r\n \"doorNo\": \"27\",\r\n \"type\": \"PERMANENT\",\r\n \"locality\": {\r\n \"code\": \"{{locality}}\"\r\n },\r\n \"ward\": {\r\n \"code\": \"{{ward}}\"\r\n }\r\n }\r\n ],\r\n \"fatherName\": \"{{IndFatherName}}\",\r\n \"husbandName\": null,\r\n \"relationship\": \"FATHER\",\r\n \"identifiers\": [\r\n {\r\n \"identifierType\": \"AADHAAR\",\r\n \"identifierId\": \"{{IndAadharNo}}\"\r\n }\r\n ],\r\n \"skills\": [\r\n {\r\n \"type\": \"HAMMER_MAN\",\r\n \"level\": \"SEMI_SKILLED\"\r\n }\r\n ],\r\n \"photo\": null,\r\n \"additionalFields\": {\r\n \"fields\": [\r\n {\r\n \"key\": \"SOCIAL_CATEGORY\",\r\n \"value\": \"SC\"\r\n }\r\n ]\r\n }\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/individual/v1/_create", "host": [ "{{base_url}}" ], "path": [ "individual", "v1", "_create" ] } }, "response": [] }, { "name": "Create Individual - Validation Error - Ind name not provided", "event": [ { "listen": "prerequest", "script": { "exec": [ "// Arrays of common first and last names\r", "const firstNames = [\r", " \"John\",\r", " \"Jane\",\r", " \"Michael\",\r", " \"Emily\",\r", " \"David\",\r", " \"Sarah\"\r", "];\r", "const lastNames = [\r", " \"Smith\",\r", " \"Johnson\",\r", " \"Williams\",\r", " \"Brown\",\r", " \"Jones\",\r", " \"Davis\"\r", "];\r", "// Function to generate a random individual name\r", "function generateRandomName() {\r", " const randomFirstName = firstNames[Math.floor(Math.random() * firstNames.length)];\r", " const randomLastName = lastNames[Math.floor(Math.random() * lastNames.length)];\r", "\r", " return `${randomFirstName} ${randomLastName}`;\r", "}\r", "// Generate random names for Son and Father\r", "const sonName = generateRandomName();\r", "const fatherName = generateRandomName();\r", "\r", "// Set the generated names as environment variables\r", "pm.collectionVariables.set(\"IndName\", sonName);\r", "pm.collectionVariables.set(\"IndFatherName\", fatherName);\r", "\r", "\r", "\r", "\r", "// Generate a random 10-digit mobile number\r", "function generateRandomMobileNumber() {\r", " let mobileNumber = \"9\"; // Start with 9 as the first digit\r", "\r", " for (let i = 1; i < 10; i++) {\r", " mobileNumber += Math.floor(Math.random() * 10);\r", " }\r", "\r", " return mobileNumber;\r", "}\r", "\r", "// Generate a random mobile number\r", "const randomMobileNumber = generateRandomMobileNumber();\r", "\r", "// Set the generated mobile number as an environment variable\r", "pm.collectionVariables.set(\"IndmobileNo\", randomMobileNumber);\r", "\r", "\r", "\r", "\r", "//Generate a random 12-digit number\r", "function generateRandomNumber() {\r", " let randomNumber = \"\";\r", " for (let i = 0; i < 12; i++) {\r", " randomNumber += Math.floor(Math.random() * 10);\r", " }\r", " return randomNumber;\r", "}\r", "// Generate a random 12-digit number\r", "const random12DigitNumber = generateRandomNumber();\r", "\r", "// Set the generated number as an environment variable\r", "pm.collectionVariables.set(\"IndAadharNo\", random12DigitNumber);\r", "\r", "" ], "type": "text/javascript", "packages": {} } }, { "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(\"NotNull.individualRequest.individual.name\");\r", " pm.expect(message).to.eql(\"must not be null\");\r", " }\r", ");" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"ver\": \".01\",\r\n \"ts\": \"\",\r\n \"action\": \"_search\",\r\n \"did\": \"1\",\r\n \"key\": \"\",\r\n \"msgId\": \"1695367848064|en_IN\",\r\n \"authToken\": \"{{token}}\",\r\n \"userInfo\": {\r\n \"id\": 6281,\r\n \"uuid\": \"76a3bfa2-369d-4aec-93bf-b144b86e3e7c\",\r\n \"userName\": \"9862798377\",\r\n \"name\": \"fgibul\",\r\n \"mobileNumber\": \"9862798377\",\r\n \"emailId\": \"a@b.com\",\r\n \"locale\": null,\r\n \"type\": \"CITIZEN\",\r\n \"roles\": [\r\n {\r\n \"name\": \"Organization admin\",\r\n \"code\": \"ORG_ADMIN\",\r\n \"tenantId\": \"pg\"\r\n }\r\n ],\r\n \"active\": true,\r\n \"tenantId\": \"pg\",\r\n \"permanentCity\": null\r\n }\r\n },\r\n \"Individual\": {\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"dateOfBirth\": \"04/09/1990\",\r\n \"gender\": \"MALE\",\r\n \"mobileNumber\": \"{{IndmobileNo}}\",\r\n \"address\": [\r\n {\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"pincode\": \"600003\",\r\n \"city\": \"{{tenantId}}\",\r\n \"street\": \"Brindavanam\",\r\n \"doorNo\": \"27\",\r\n \"type\": \"PERMANENT\",\r\n \"locality\": {\r\n \"code\": \"{{locality}}\"\r\n },\r\n \"ward\": {\r\n \"code\": \"{{ward}}\"\r\n }\r\n }\r\n ],\r\n \"fatherName\": \"{{IndFatherName}}\",\r\n \"husbandName\": null,\r\n \"relationship\": \"FATHER\",\r\n \"identifiers\": [\r\n {\r\n \"identifierType\": \"AADHAAR\",\r\n \"identifierId\": \"{{IndAadharNo}}\"\r\n }\r\n ],\r\n \"skills\": [\r\n {\r\n \"type\": \"HAMMER_MAN\",\r\n \"level\": \"SEMI_SKILLED\"\r\n }\r\n ],\r\n \"photo\": null,\r\n \"additionalFields\": {\r\n \"fields\": [\r\n {\r\n \"key\": \"SOCIAL_CATEGORY\",\r\n \"value\": \"SC\"\r\n }\r\n ]\r\n }\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/individual/v1/_create", "host": [ "{{base_url}}" ], "path": [ "individual", "v1", "_create" ] } }, "response": [] }, { "name": "Create Individual - Validation Error - Locality not provided", "event": [ { "listen": "prerequest", "script": { "exec": [ "// Arrays of common first and last names\r", "const firstNames = [\r", " \"John\",\r", " \"Jane\",\r", " \"Michael\",\r", " \"Emily\",\r", " \"David\",\r", " \"Sarah\"\r", "];\r", "const lastNames = [\r", " \"Smith\",\r", " \"Johnson\",\r", " \"Williams\",\r", " \"Brown\",\r", " \"Jones\",\r", " \"Davis\"\r", "];\r", "// Function to generate a random individual name\r", "function generateRandomName() {\r", " const randomFirstName = firstNames[Math.floor(Math.random() * firstNames.length)];\r", " const randomLastName = lastNames[Math.floor(Math.random() * lastNames.length)];\r", "\r", " return `${randomFirstName} ${randomLastName}`;\r", "}\r", "// Generate random names for Son and Father\r", "const sonName = generateRandomName();\r", "const fatherName = generateRandomName();\r", "\r", "// Set the generated names as environment variables\r", "pm.collectionVariables.set(\"IndName\", sonName);\r", "pm.collectionVariables.set(\"IndFatherName\", fatherName);\r", "\r", "\r", "\r", "\r", "// Generate a random 10-digit mobile number\r", "function generateRandomMobileNumber() {\r", " let mobileNumber = \"9\"; // Start with 9 as the first digit\r", "\r", " for (let i = 1; i < 10; i++) {\r", " mobileNumber += Math.floor(Math.random() * 10);\r", " }\r", "\r", " return mobileNumber;\r", "}\r", "\r", "// Generate a random mobile number\r", "const randomMobileNumber = generateRandomMobileNumber();\r", "\r", "// Set the generated mobile number as an environment variable\r", "pm.collectionVariables.set(\"IndmobileNo\", randomMobileNumber);\r", "\r", "\r", "\r", "\r", "//Generate a random 12-digit number\r", "function generateRandomNumber() {\r", " let randomNumber = \"\";\r", " for (let i = 0; i < 12; i++) {\r", " randomNumber += Math.floor(Math.random() * 10);\r", " }\r", " return randomNumber;\r", "}\r", "// Generate a random 12-digit number\r", "const random12DigitNumber = generateRandomNumber();\r", "\r", "// Set the generated number as an environment variable\r", "pm.collectionVariables.set(\"IndAadharNo\", random12DigitNumber);\r", "\r", "" ], "type": "text/javascript", "packages": {} } }, { "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(\"NotNull.individualRequest.individual.address[0].locality.code\");\r", " pm.expect(message).to.eql(\"must not be null\");\r", " }\r", ");" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"ver\": \".01\",\r\n \"ts\": \"\",\r\n \"action\": \"_search\",\r\n \"did\": \"1\",\r\n \"key\": \"\",\r\n \"msgId\": \"1695367848064|en_IN\",\r\n \"authToken\": \"{{token}}\",\r\n \"userInfo\": {\r\n \"id\": 6281,\r\n \"uuid\": \"76a3bfa2-369d-4aec-93bf-b144b86e3e7c\",\r\n \"userName\": \"9862798377\",\r\n \"name\": \"fgibul\",\r\n \"mobileNumber\": \"9862798377\",\r\n \"emailId\": \"a@b.com\",\r\n \"locale\": null,\r\n \"type\": \"CITIZEN\",\r\n \"roles\": [\r\n {\r\n \"name\": \"Organization admin\",\r\n \"code\": \"ORG_ADMIN\",\r\n \"tenantId\": \"pg\"\r\n }\r\n ],\r\n \"active\": true,\r\n \"tenantId\": \"pg\",\r\n \"permanentCity\": null\r\n }\r\n },\r\n \"Individual\": {\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"name\": {\r\n \"givenName\": \"{{IndName}}\"\r\n },\r\n \"dateOfBirth\": \"04/09/1990\",\r\n \"gender\": \"MALE\",\r\n \"mobileNumber\": \"{{IndmobileNo}}\",\r\n \"address\": [\r\n {\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"pincode\": \"600003\",\r\n \"city\": \"{{tenantId}}\",\r\n \"street\": \"Brindavanam\",\r\n \"doorNo\": \"27\",\r\n \"type\": \"PERMANENT\",\r\n \"locality\": {},\r\n \"ward\": {\r\n \"code\": \"{{ward}}\"\r\n }\r\n }\r\n ],\r\n \"fatherName\": \"{{IndFatherName}}\",\r\n \"husbandName\": null,\r\n \"relationship\": \"FATHER\",\r\n \"identifiers\": [\r\n {\r\n \"identifierType\": \"AADHAAR\",\r\n \"identifierId\": \"{{IndAadharNo}}\"\r\n }\r\n ],\r\n \"skills\": [\r\n {\r\n \"type\": \"HAMMER_MAN\",\r\n \"level\": \"SEMI_SKILLED\"\r\n }\r\n ],\r\n \"photo\": null,\r\n \"additionalFields\": {\r\n \"fields\": [\r\n {\r\n \"key\": \"SOCIAL_CATEGORY\",\r\n \"value\": \"SC\"\r\n }\r\n ]\r\n }\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/individual/v1/_create", "host": [ "{{base_url}}" ], "path": [ "individual", "v1", "_create" ] } }, "response": [] }, { "name": "Create Individual - Validation Error - Ward not provided", "event": [ { "listen": "prerequest", "script": { "exec": [ "// Arrays of common first and last names\r", "const firstNames = [\r", " \"John\",\r", " \"Jane\",\r", " \"Michael\",\r", " \"Emily\",\r", " \"David\",\r", " \"Sarah\"\r", "];\r", "const lastNames = [\r", " \"Smith\",\r", " \"Johnson\",\r", " \"Williams\",\r", " \"Brown\",\r", " \"Jones\",\r", " \"Davis\"\r", "];\r", "// Function to generate a random individual name\r", "function generateRandomName() {\r", " const randomFirstName = firstNames[Math.floor(Math.random() * firstNames.length)];\r", " const randomLastName = lastNames[Math.floor(Math.random() * lastNames.length)];\r", "\r", " return `${randomFirstName} ${randomLastName}`;\r", "}\r", "// Generate random names for Son and Father\r", "const sonName = generateRandomName();\r", "const fatherName = generateRandomName();\r", "\r", "// Set the generated names as environment variables\r", "pm.collectionVariables.set(\"IndName\", sonName);\r", "pm.collectionVariables.set(\"IndFatherName\", fatherName);\r", "\r", "\r", "\r", "\r", "// Generate a random 10-digit mobile number\r", "function generateRandomMobileNumber() {\r", " let mobileNumber = \"9\"; // Start with 9 as the first digit\r", "\r", " for (let i = 1; i < 10; i++) {\r", " mobileNumber += Math.floor(Math.random() * 10);\r", " }\r", "\r", " return mobileNumber;\r", "}\r", "\r", "// Generate a random mobile number\r", "const randomMobileNumber = generateRandomMobileNumber();\r", "\r", "// Set the generated mobile number as an environment variable\r", "pm.collectionVariables.set(\"IndmobileNo\", randomMobileNumber);\r", "\r", "\r", "\r", "\r", "//Generate a random 12-digit number\r", "function generateRandomNumber() {\r", " let randomNumber = \"\";\r", " for (let i = 0; i < 12; i++) {\r", " randomNumber += Math.floor(Math.random() * 10);\r", " }\r", " return randomNumber;\r", "}\r", "// Generate a random 12-digit number\r", "const random12DigitNumber = generateRandomNumber();\r", "\r", "// Set the generated number as an environment variable\r", "pm.collectionVariables.set(\"IndAadharNo\", random12DigitNumber);\r", "\r", "" ], "type": "text/javascript", "packages": {} } }, { "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(\"NotNull.individualRequest.individual.address[0].ward.code\");\r", " pm.expect(message).to.eql(\"must not be null\");\r", " }\r", ");" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"ver\": \".01\",\r\n \"ts\": \"\",\r\n \"action\": \"_search\",\r\n \"did\": \"1\",\r\n \"key\": \"\",\r\n \"msgId\": \"1695367848064|en_IN\",\r\n \"authToken\": \"{{token}}\",\r\n \"userInfo\": {\r\n \"id\": 6281,\r\n \"uuid\": \"76a3bfa2-369d-4aec-93bf-b144b86e3e7c\",\r\n \"userName\": \"9862798377\",\r\n \"name\": \"fgibul\",\r\n \"mobileNumber\": \"9862798377\",\r\n \"emailId\": \"a@b.com\",\r\n \"locale\": null,\r\n \"type\": \"CITIZEN\",\r\n \"roles\": [\r\n {\r\n \"name\": \"Organization admin\",\r\n \"code\": \"ORG_ADMIN\",\r\n \"tenantId\": \"pg\"\r\n }\r\n ],\r\n \"active\": true,\r\n \"tenantId\": \"pg\",\r\n \"permanentCity\": null\r\n }\r\n },\r\n \"Individual\": {\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"name\": {\r\n \"givenName\": \"{{IndName}}\"\r\n },\r\n \"dateOfBirth\": \"04/09/1990\",\r\n \"gender\": \"MALE\",\r\n \"mobileNumber\": \"{{IndmobileNo}}\",\r\n \"address\": [\r\n {\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"pincode\": \"600003\",\r\n \"city\": \"{{tenantId}}\",\r\n \"street\": \"Brindavanam\",\r\n \"doorNo\": \"27\",\r\n \"type\": \"PERMANENT\",\r\n \"locality\": {\r\n \"code\": \"{{locality}}\"\r\n },\r\n \"ward\": {}\r\n }\r\n ],\r\n \"fatherName\": \"{{IndFatherName}}\",\r\n \"husbandName\": null,\r\n \"relationship\": \"FATHER\",\r\n \"identifiers\": [\r\n {\r\n \"identifierType\": \"AADHAAR\",\r\n \"identifierId\": \"{{IndAadharNo}}\"\r\n }\r\n ],\r\n \"skills\": [\r\n {\r\n \"type\": \"HAMMER_MAN\",\r\n \"level\": \"SEMI_SKILLED\"\r\n }\r\n ],\r\n \"photo\": null,\r\n \"additionalFields\": {\r\n \"fields\": [\r\n {\r\n \"key\": \"SOCIAL_CATEGORY\",\r\n \"value\": \"SC\"\r\n }\r\n ]\r\n }\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/individual/v1/_create", "host": [ "{{base_url}}" ], "path": [ "individual", "v1", "_create" ] } }, "response": [] }, { "name": "Create Individual - Validation Error - Invalid Aadhar", "event": [ { "listen": "prerequest", "script": { "exec": [ "// Arrays of common first and last names\r", "const firstNames = [\r", " \"John\",\r", " \"Jane\",\r", " \"Michael\",\r", " \"Emily\",\r", " \"David\",\r", " \"Sarah\"\r", "];\r", "const lastNames = [\r", " \"Smith\",\r", " \"Johnson\",\r", " \"Williams\",\r", " \"Brown\",\r", " \"Jones\",\r", " \"Davis\"\r", "];\r", "// Function to generate a random individual name\r", "function generateRandomName() {\r", " const randomFirstName = firstNames[Math.floor(Math.random() * firstNames.length)];\r", " const randomLastName = lastNames[Math.floor(Math.random() * lastNames.length)];\r", "\r", " return `${randomFirstName} ${randomLastName}`;\r", "}\r", "// Generate random names for Son and Father\r", "const sonName = generateRandomName();\r", "const fatherName = generateRandomName();\r", "\r", "// Set the generated names as environment variables\r", "pm.collectionVariables.set(\"IndName\", sonName);\r", "pm.collectionVariables.set(\"IndFatherName\", fatherName);\r", "\r", "\r", "\r", "\r", "// Generate a random 10-digit mobile number\r", "function generateRandomMobileNumber() {\r", " let mobileNumber = \"9\"; // Start with 9 as the first digit\r", "\r", " for (let i = 1; i < 10; i++) {\r", " mobileNumber += Math.floor(Math.random() * 10);\r", " }\r", "\r", " return mobileNumber;\r", "}\r", "\r", "// Generate a random mobile number\r", "const randomMobileNumber = generateRandomMobileNumber();\r", "\r", "// Set the generated mobile number as an environment variable\r", "pm.collectionVariables.set(\"IndmobileNo\", randomMobileNumber);\r", "\r", "\r", "\r", "\r", "//Generate a random 12-digit number\r", "function generateRandomNumber() {\r", " let randomNumber = \"\";\r", " for (let i = 0; i < 12; i++) {\r", " randomNumber += Math.floor(Math.random() * 10);\r", " }\r", " return randomNumber;\r", "}\r", "// Generate a random 12-digit number\r", "const random12DigitNumber = generateRandomNumber();\r", "\r", "// Set the generated number as an environment variable\r", "pm.collectionVariables.set(\"IndAadharNo\", random12DigitNumber);\r", "\r", "" ], "type": "text/javascript", "packages": {} } }, { "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(\"INVALID_AADHAAR\");\r", " }\r", ");" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"ver\": \".01\",\r\n \"ts\": \"\",\r\n \"action\": \"_search\",\r\n \"did\": \"1\",\r\n \"key\": \"\",\r\n \"msgId\": \"1695367848064|en_IN\",\r\n \"authToken\": \"{{token}}\",\r\n \"userInfo\": {\r\n \"id\": 6281,\r\n \"uuid\": \"76a3bfa2-369d-4aec-93bf-b144b86e3e7c\",\r\n \"userName\": \"9862798377\",\r\n \"name\": \"fgibul\",\r\n \"mobileNumber\": \"9862798377\",\r\n \"emailId\": \"a@b.com\",\r\n \"locale\": null,\r\n \"type\": \"CITIZEN\",\r\n \"roles\": [\r\n {\r\n \"name\": \"Organization admin\",\r\n \"code\": \"ORG_ADMIN\",\r\n \"tenantId\": \"pg\"\r\n }\r\n ],\r\n \"active\": true,\r\n \"tenantId\": \"pg\",\r\n \"permanentCity\": null\r\n }\r\n },\r\n \"Individual\": {\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"name\": {\r\n \"givenName\": \"{{IndName}}\"\r\n },\r\n \"dateOfBirth\": \"04/09/1990\",\r\n \"gender\": \"MALE\",\r\n \"mobileNumber\": \"{{IndmobileNo}}\",\r\n \"address\": [\r\n {\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"pincode\": \"600003\",\r\n \"city\": \"{{tenantId}}\",\r\n \"street\": \"Brindavanam\",\r\n \"doorNo\": \"27\",\r\n \"type\": \"PERMANENT\",\r\n \"locality\": {\r\n \"code\": \"{{locality}}\"\r\n },\r\n \"ward\": {\r\n \"code\": \"{{ward}}\"\r\n }\r\n }\r\n ],\r\n \"fatherName\": \"{{IndFatherName}}\",\r\n \"husbandName\": null,\r\n \"relationship\": \"FATHER\",\r\n \"identifiers\": [\r\n {\r\n \"identifierType\": \"AADHAAR\",\r\n \"identifierId\": \"1236581\"\r\n }\r\n ],\r\n \"skills\": [\r\n {\r\n \"type\": \"HAMMER_MAN\",\r\n \"level\": \"SEMI_SKILLED\"\r\n }\r\n ],\r\n \"photo\": null,\r\n \"additionalFields\": {\r\n \"fields\": [\r\n {\r\n \"key\": \"SOCIAL_CATEGORY\",\r\n \"value\": \"SC\"\r\n }\r\n ]\r\n }\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/individual/v1/_create", "host": [ "{{base_url}}" ], "path": [ "individual", "v1", "_create" ] } }, "response": [] }, { "name": "Create Individual - Validation Error - Same Aadhar", "event": [ { "listen": "prerequest", "script": { "exec": [ "// Arrays of common first and last names\r", "const firstNames = [\r", " \"John\",\r", " \"Jane\",\r", " \"Michael\",\r", " \"Emily\",\r", " \"David\",\r", " \"Sarah\"\r", "];\r", "const lastNames = [\r", " \"Smith\",\r", " \"Johnson\",\r", " \"Williams\",\r", " \"Brown\",\r", " \"Jones\",\r", " \"Davis\"\r", "];\r", "// Function to generate a random individual name\r", "function generateRandomName() {\r", " const randomFirstName = firstNames[Math.floor(Math.random() * firstNames.length)];\r", " const randomLastName = lastNames[Math.floor(Math.random() * lastNames.length)];\r", "\r", " return `${randomFirstName} ${randomLastName}`;\r", "}\r", "// Generate random names for Son and Father\r", "const sonName = generateRandomName();\r", "const fatherName = generateRandomName();\r", "\r", "// Set the generated names as environment variables\r", "pm.collectionVariables.set(\"IndName\", sonName);\r", "pm.collectionVariables.set(\"IndFatherName\", fatherName);\r", "\r", "\r", "\r", "\r", "// Generate a random 10-digit mobile number\r", "function generateRandomMobileNumber() {\r", " let mobileNumber = \"9\"; // Start with 9 as the first digit\r", "\r", " for (let i = 1; i < 10; i++) {\r", " mobileNumber += Math.floor(Math.random() * 10);\r", " }\r", "\r", " return mobileNumber;\r", "}\r", "\r", "// Generate a random mobile number\r", "const randomMobileNumber = generateRandomMobileNumber();\r", "\r", "// Set the generated mobile number as an environment variable\r", "pm.collectionVariables.set(\"IndmobileNo\", randomMobileNumber);\r", "\r", "\r", "\r", "\r", "//Generate a random 12-digit number\r", "function generateRandomNumber() {\r", " let randomNumber = \"\";\r", " for (let i = 0; i < 12; i++) {\r", " randomNumber += Math.floor(Math.random() * 10);\r", " }\r", " return randomNumber;\r", "}\r", "// Generate a random 12-digit number\r", "const random12DigitNumber = generateRandomNumber();\r", "\r", "// Set the generated number as an environment variable\r", "pm.collectionVariables.set(\"IndAadharNo\", random12DigitNumber);\r", "\r", "" ], "type": "text/javascript", "packages": {} } }, { "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(\"DUPLICATE_AADHAAR\");\r", " }\r", ");" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"ver\": \".01\",\r\n \"ts\": \"\",\r\n \"action\": \"_search\",\r\n \"did\": \"1\",\r\n \"key\": \"\",\r\n \"msgId\": \"1695367848064|en_IN\",\r\n \"authToken\": \"{{token}}\",\r\n \"userInfo\": {\r\n \"id\": 6281,\r\n \"uuid\": \"76a3bfa2-369d-4aec-93bf-b144b86e3e7c\",\r\n \"userName\": \"9862798377\",\r\n \"name\": \"fgibul\",\r\n \"mobileNumber\": \"9862798377\",\r\n \"emailId\": \"a@b.com\",\r\n \"locale\": null,\r\n \"type\": \"CITIZEN\",\r\n \"roles\": [\r\n {\r\n \"name\": \"Organization admin\",\r\n \"code\": \"ORG_ADMIN\",\r\n \"tenantId\": \"pg\"\r\n }\r\n ],\r\n \"active\": true,\r\n \"tenantId\": \"pg\",\r\n \"permanentCity\": null\r\n }\r\n },\r\n \"Individual\": {\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"name\": {\r\n \"givenName\": \"{{IndName}}\"\r\n },\r\n \"dateOfBirth\": \"04/09/1990\",\r\n \"gender\": \"MALE\",\r\n \"mobileNumber\": \"{{IndmobileNo}}\",\r\n \"address\": [\r\n {\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"pincode\": \"600003\",\r\n \"city\": \"{{tenantId}}\",\r\n \"street\": \"Brindavanam\",\r\n \"doorNo\": \"27\",\r\n \"type\": \"PERMANENT\",\r\n \"locality\": {\r\n \"code\": \"{{locality}}\"\r\n },\r\n \"ward\": {\r\n \"code\": \"{{ward}}\"\r\n }\r\n }\r\n ],\r\n \"fatherName\": \"{{IndFatherName}}\",\r\n \"husbandName\": null,\r\n \"relationship\": \"FATHER\",\r\n \"identifiers\": [\r\n {\r\n \"identifierType\": \"AADHAAR\",\r\n \"identifierId\": \"123658158962\"\r\n }\r\n ],\r\n \"skills\": [\r\n {\r\n \"type\": \"HAMMER_MAN\",\r\n \"level\": \"SEMI_SKILLED\"\r\n }\r\n ],\r\n \"photo\": null,\r\n \"additionalFields\": {\r\n \"fields\": [\r\n {\r\n \"key\": \"SOCIAL_CATEGORY\",\r\n \"value\": \"SC\"\r\n }\r\n ]\r\n }\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/individual/v1/_create", "host": [ "{{base_url}}" ], "path": [ "individual", "v1", "_create" ] } }, "response": [] }, { "name": "Search Individual - Success - Searchby ID", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => \r", " pm.expect(pm.response.to.have.status(200)));\r", "\r", "pm.test(\"Individual Search response is received\", function () {\r", " var res = pm.response.json();\r", " var id = res.Individual[0].id;\r", " pm.expect(id).to.eql(pm.collectionVariables.get(\"IndId\"));\r", " }\r", ");" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"ver\": \".01\",\r\n \"ts\": \"\",\r\n \"action\": \"_search\",\r\n \"did\": \"1\",\r\n \"key\": \"\",\r\n \"msgId\": \"1695367848064|en_IN\",\r\n \"authToken\": \"{{token}}\",\r\n \"userInfo\": {\r\n \"id\": 6281,\r\n \"uuid\": \"76a3bfa2-369d-4aec-93bf-b144b86e3e7c\",\r\n \"userName\": \"9862798377\",\r\n \"name\": \"fgibul\",\r\n \"mobileNumber\": \"9862798377\",\r\n \"emailId\": \"a@b.com\",\r\n \"locale\": null,\r\n \"type\": \"CITIZEN\",\r\n \"roles\": [\r\n {\r\n \"name\": \"Organization admin\",\r\n \"code\": \"ORG_ADMIN\",\r\n \"tenantId\": \"pg\"\r\n }\r\n ],\r\n \"active\": true,\r\n \"tenantId\": \"pg\",\r\n \"permanentCity\": null\r\n }\r\n },\r\n \"Individual\": {\r\n \"id\": [\r\n \"{{IndId}}\"\r\n ]\r\n // \"wardCode\": \"{{ward}}\",\r\n // \"name\": {\r\n // \"givenName\": \"{{IndName}}\"\r\n // },\r\n // \"individualId\": \"{{IndNo}}\",\r\n // \"mobileNumber\": \"{{IndmobileNo}}\",\r\n // \"socialCategory\": \"{{Social Category}}\",\r\n // \"createdFrom\": \"{{createdTime}}\",\r\n // \"createdTo\": \"{{lastModifiedTime}}\"\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/individual/v1/_search?limit=100&offset=0&tenantId={{tenantId}}", "host": [ "{{base_url}}" ], "path": [ "individual", "v1", "_search" ], "query": [ { "key": "limit", "value": "100" }, { "key": "offset", "value": "0" }, { "key": "tenantId", "value": "{{tenantId}}" } ] } }, "response": [] }, { "name": "Search Individual - Success - Searchby IndName", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => \r", " pm.expect(pm.response.to.have.status(200)));\r", "\r", "// pm.test(\"Individual Search response is received\", function () {\r", "// var res = pm.response.json();\r", "// var id = res.Individual[0].name.givenName;\r", "// pm.expect(id).to.eql(pm.collectionVariables.get(\"IndName\"));\r", "// }\r", "// );" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"ver\": \".01\",\r\n \"ts\": \"\",\r\n \"action\": \"_search\",\r\n \"did\": \"1\",\r\n \"key\": \"\",\r\n \"msgId\": \"1695367848064|en_IN\",\r\n \"authToken\": \"{{token}}\",\r\n \"userInfo\": {\r\n \"id\": 6281,\r\n \"uuid\": \"76a3bfa2-369d-4aec-93bf-b144b86e3e7c\",\r\n \"userName\": \"9862798377\",\r\n \"name\": \"fgibul\",\r\n \"mobileNumber\": \"9862798377\",\r\n \"emailId\": \"a@b.com\",\r\n \"locale\": null,\r\n \"type\": \"CITIZEN\",\r\n \"roles\": [\r\n {\r\n \"name\": \"Organization admin\",\r\n \"code\": \"ORG_ADMIN\",\r\n \"tenantId\": \"pg\"\r\n }\r\n ],\r\n \"active\": true,\r\n \"tenantId\": \"pg\",\r\n \"permanentCity\": null\r\n }\r\n },\r\n \"Individual\": {\r\n // \"id\": [\r\n // \"{{IndId}}\"\r\n // ],\r\n // \"wardCode\": \"{{ward}}\",\r\n \"name\": {\r\n \"givenName\": \"{{IndName}}\"\r\n }\r\n // \"individualId\": \"{{IndNo}}\",\r\n // \"mobileNumber\": \"{{IndmobileNo}}\",\r\n // \"socialCategory\": \"{{Social Category}}\",\r\n // \"createdFrom\": \"{{createdTime}}\",\r\n // \"createdTo\": \"{{lastModifiedTime}}\"\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/individual/v1/_search?limit=100&offset=0&tenantId={{tenantId}}", "host": [ "{{base_url}}" ], "path": [ "individual", "v1", "_search" ], "query": [ { "key": "limit", "value": "100" }, { "key": "offset", "value": "0" }, { "key": "tenantId", "value": "{{tenantId}}" } ] } }, "response": [] }, { "name": "Search Individual - Success - Searchby IndNo", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => \r", " pm.expect(pm.response.to.have.status(200)));\r", "\r", "pm.test(\"Individual Search response is received\", function () {\r", " var res = pm.response.json();\r", " var id = res.Individual[0].individualId;\r", " pm.expect(id).to.eql(pm.collectionVariables.get(\"IndNo\"));\r", " }\r", ");" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"ver\": \".01\",\r\n \"ts\": \"\",\r\n \"action\": \"_search\",\r\n \"did\": \"1\",\r\n \"key\": \"\",\r\n \"msgId\": \"1695367848064|en_IN\",\r\n \"authToken\": \"{{token}}\",\r\n \"userInfo\": {\r\n \"id\": 6281,\r\n \"uuid\": \"76a3bfa2-369d-4aec-93bf-b144b86e3e7c\",\r\n \"userName\": \"9862798377\",\r\n \"name\": \"fgibul\",\r\n \"mobileNumber\": \"9862798377\",\r\n \"emailId\": \"a@b.com\",\r\n \"locale\": null,\r\n \"type\": \"CITIZEN\",\r\n \"roles\": [\r\n {\r\n \"name\": \"Organization admin\",\r\n \"code\": \"ORG_ADMIN\",\r\n \"tenantId\": \"pg\"\r\n }\r\n ],\r\n \"active\": true,\r\n \"tenantId\": \"pg\",\r\n \"permanentCity\": null\r\n }\r\n },\r\n \"Individual\": {\r\n // \"id\": [\r\n // \"{{IndId}}\"\r\n // ],\r\n // \"wardCode\": \"{{ward}}\",\r\n // \"name\": {\r\n // \"givenName\": \"{{IndName}}\"\r\n // }\r\n \"individualId\": \"{{IndNo}}\"\r\n // \"individualId\": \"IND-2024-04-16-057456\"\r\n // \"mobileNumber\": \"{{IndmobileNo}}\",\r\n // \"socialCategory\": \"{{Social Category}}\",\r\n // \"createdFrom\": \"{{createdTime}}\",\r\n // \"createdTo\": \"{{lastModifiedTime}}\"\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/individual/v1/_search?limit=100&offset=0&tenantId={{tenantId}}", "host": [ "{{base_url}}" ], "path": [ "individual", "v1", "_search" ], "query": [ { "key": "limit", "value": "100" }, { "key": "offset", "value": "0" }, { "key": "tenantId", "value": "{{tenantId}}" } ] } }, "response": [] }, { "name": "Search Individual - Success - Searchby MobileNo", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => \r", " pm.expect(pm.response.to.have.status(200)));\r", "\r", "// pm.test(\"Individual Search response is received\", function () {\r", "// var res = pm.response.json();\r", "// var id = res.Individual[0].mobileNumber;\r", "// pm.expect(id).to.eql(pm.collectionVariables.get(\"IndmobileNo\"));\r", "// }\r", "// // );" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"ver\": \".01\",\r\n \"ts\": \"\",\r\n \"action\": \"_search\",\r\n \"did\": \"1\",\r\n \"key\": \"\",\r\n \"msgId\": \"1695367848064|en_IN\",\r\n \"authToken\": \"{{token}}\",\r\n \"userInfo\": {\r\n \"id\": 6281,\r\n \"uuid\": \"76a3bfa2-369d-4aec-93bf-b144b86e3e7c\",\r\n \"userName\": \"9862798377\",\r\n \"name\": \"fgibul\",\r\n \"mobileNumber\": \"9862798377\",\r\n \"emailId\": \"a@b.com\",\r\n \"locale\": null,\r\n \"type\": \"CITIZEN\",\r\n \"roles\": [\r\n {\r\n \"name\": \"Organization admin\",\r\n \"code\": \"ORG_ADMIN\",\r\n \"tenantId\": \"pg\"\r\n }\r\n ],\r\n \"active\": true,\r\n \"tenantId\": \"pg\",\r\n \"permanentCity\": null\r\n }\r\n },\r\n \"Individual\": {\r\n // \"id\": [\r\n // \"{{IndId}}\"\r\n // ],\r\n // \"wardCode\": \"{{ward}}\",\r\n // \"name\": {\r\n // \"givenName\": \"{{IndName}}\"\r\n // }\r\n // \"individualId\": \"{{IndNo}}\"\r\n \"mobileNumber\": \"{{IndmobileNo}}\"\r\n // \"socialCategory\": \"{{Social Category}}\",\r\n // \"createdFrom\": \"{{createdTime}}\",\r\n // \"createdTo\": \"{{lastModifiedTime}}\"\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/individual/v1/_search?limit=100&offset=0&tenantId={{tenantId}}", "host": [ "{{base_url}}" ], "path": [ "individual", "v1", "_search" ], "query": [ { "key": "limit", "value": "100" }, { "key": "offset", "value": "0" }, { "key": "tenantId", "value": "{{tenantId}}" } ] } }, "response": [] }, { "name": "Search Individual - Success - Searchby SC", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => \r", " pm.expect(pm.response.to.have.status(200)));\r", "\r", "// pm.test(\"Individual Search response is received\", function () {\r", "// var res = pm.response.json();\r", "// var id = res.Individual[0].id;\r", "// pm.expect(id).to.eql(pm.collectionVariables.get(\"IndId\"));\r", "// }\r", "// );" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"ver\": \".01\",\r\n \"ts\": \"\",\r\n \"action\": \"_search\",\r\n \"did\": \"1\",\r\n \"key\": \"\",\r\n \"msgId\": \"1695367848064|en_IN\",\r\n \"authToken\": \"{{token}}\",\r\n \"userInfo\": {\r\n \"id\": 6281,\r\n \"uuid\": \"76a3bfa2-369d-4aec-93bf-b144b86e3e7c\",\r\n \"userName\": \"9862798377\",\r\n \"name\": \"fgibul\",\r\n \"mobileNumber\": \"9862798377\",\r\n \"emailId\": \"a@b.com\",\r\n \"locale\": null,\r\n \"type\": \"CITIZEN\",\r\n \"roles\": [\r\n {\r\n \"name\": \"Organization admin\",\r\n \"code\": \"ORG_ADMIN\",\r\n \"tenantId\": \"pg\"\r\n }\r\n ],\r\n \"active\": true,\r\n \"tenantId\": \"pg\",\r\n \"permanentCity\": null\r\n }\r\n },\r\n \"Individual\": {\r\n // \"id\": [\r\n // \"{{IndId}}\"\r\n // ],\r\n // \"wardCode\": \"{{ward}}\",\r\n // \"name\": {\r\n // \"givenName\": \"{{IndName}}\"\r\n // }\r\n // \"individualId\": \"{{IndNo}}\"\r\n // \"mobileNumber\": \"{{IndmobileNo}}\"\r\n \"socialCategory\": \"{{Social Category}}\"\r\n // \"createdFrom\": \"{{createdTime}}\",\r\n // \"createdTo\": \"{{lastModifiedTime}}\"\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/individual/v1/_search?limit=100&offset=0&tenantId={{tenantId}}", "host": [ "{{base_url}}" ], "path": [ "individual", "v1", "_search" ], "query": [ { "key": "limit", "value": "100" }, { "key": "offset", "value": "0" }, { "key": "tenantId", "value": "{{tenantId}}" } ] } }, "response": [] }, { "name": "Search Individual - Success - Searchby Created from and to date", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => \r", " pm.expect(pm.response.to.have.status(200)));\r", "\r", "pm.test(\"Individual Search response is received\", function () {\r", " var res = pm.response.json();\r", " var id = res.Individual[0].id;\r", " pm.expect(id).to.eql(pm.collectionVariables.get(\"IndId\"));\r", " }\r", ");" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"ver\": \".01\",\r\n \"ts\": \"\",\r\n \"action\": \"_search\",\r\n \"did\": \"1\",\r\n \"key\": \"\",\r\n \"msgId\": \"1695367848064|en_IN\",\r\n \"authToken\": \"{{token}}\",\r\n \"userInfo\": {\r\n \"id\": 6281,\r\n \"uuid\": \"76a3bfa2-369d-4aec-93bf-b144b86e3e7c\",\r\n \"userName\": \"9862798377\",\r\n \"name\": \"fgibul\",\r\n \"mobileNumber\": \"9862798377\",\r\n \"emailId\": \"a@b.com\",\r\n \"locale\": null,\r\n \"type\": \"CITIZEN\",\r\n \"roles\": [\r\n {\r\n \"name\": \"Organization admin\",\r\n \"code\": \"ORG_ADMIN\",\r\n \"tenantId\": \"pg\"\r\n }\r\n ],\r\n \"active\": true,\r\n \"tenantId\": \"pg\",\r\n \"permanentCity\": null\r\n }\r\n },\r\n \"Individual\": {\r\n // \"id\": [\r\n // \"{{IndId}}\"\r\n // ],\r\n // \"wardCode\": \"{{ward}}\",\r\n // \"name\": {\r\n // \"givenName\": \"{{IndName}}\"\r\n // }\r\n // \"individualId\": \"{{IndNo}}\"\r\n // \"mobileNumber\": \"{{IndmobileNo}}\"\r\n // \"socialCategory\": \"{{Social Category}}\"\r\n \"createdFrom\": \"{{createdTime}}\",\r\n \"createdTo\": \"{{lastModifiedTime}}\"\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/individual/v1/_search?limit=100&offset=0&tenantId={{tenantId}}", "host": [ "{{base_url}}" ], "path": [ "individual", "v1", "_search" ], "query": [ { "key": "limit", "value": "100" }, { "key": "offset", "value": "0" }, { "key": "tenantId", "value": "{{tenantId}}" } ] } }, "response": [] }, { "name": "Search Individual - Validation error - Without tenantId in params", "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(\"\");\r", " pm.expect(message).to.eql(\"Required String parameter 'tenantId' is not present\");\r", " }\r", ");" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"ver\": \".01\",\r\n \"ts\": \"\",\r\n \"action\": \"_search\",\r\n \"did\": \"1\",\r\n \"key\": \"\",\r\n \"msgId\": \"1695367848064|en_IN\",\r\n \"authToken\": \"{{token}}\",\r\n \"userInfo\": {\r\n \"id\": 6281,\r\n \"uuid\": \"76a3bfa2-369d-4aec-93bf-b144b86e3e7c\",\r\n \"userName\": \"9862798377\",\r\n \"name\": \"fgibul\",\r\n \"mobileNumber\": \"9862798377\",\r\n \"emailId\": \"a@b.com\",\r\n \"locale\": null,\r\n \"type\": \"CITIZEN\",\r\n \"roles\": [\r\n {\r\n \"name\": \"Organization admin\",\r\n \"code\": \"ORG_ADMIN\",\r\n \"tenantId\": \"pg\"\r\n }\r\n ],\r\n \"active\": true,\r\n \"tenantId\": \"pg\",\r\n \"permanentCity\": null\r\n }\r\n },\r\n \"Individual\": {\r\n // \"id\": [\r\n // \"{{IndId}}\"\r\n // ],\r\n // \"wardCode\": \"{{ward}}\",\r\n // \"name\": {\r\n // \"givenName\": \"{{IndName}}\"\r\n // }\r\n // \"individualId\": \"{{IndNo}}\"\r\n // \"mobileNumber\": \"{{IndmobileNo}}\"\r\n // \"socialCategory\": \"{{Social Category}}\"\r\n // \"createdFrom\": \"{{createdTime}}\",\r\n // \"createdTo\": \"{{lastModifiedTime}}\"\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/individual/v1/_search?limit=100&offset=0", "host": [ "{{base_url}}" ], "path": [ "individual", "v1", "_search" ], "query": [ { "key": "limit", "value": "100" }, { "key": "offset", "value": "0" }, { "key": "tenantId", "value": "{{tenantId}}", "disabled": true } ] } }, "response": [] }, { "name": "Search Individual - Validation error - createdFrom greater than createdTo", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => \r", " pm.expect(pm.response.to.have.status(200)));\r", "\r", "pm.test(\"Correct Error with message and code is received\", function () {\r", " var res = pm.response.json();\r", " pm.expect(res.Individual).to.eql([]);\r", " pm.expect(res.TotalCount).to.eql(0);\r", " }\r", ");" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"ver\": \".01\",\r\n \"ts\": \"\",\r\n \"action\": \"_search\",\r\n \"did\": \"1\",\r\n \"key\": \"\",\r\n \"msgId\": \"1695367848064|en_IN\",\r\n \"authToken\": \"{{token}}\",\r\n \"userInfo\": {\r\n \"id\": 6281,\r\n \"uuid\": \"76a3bfa2-369d-4aec-93bf-b144b86e3e7c\",\r\n \"userName\": \"9862798377\",\r\n \"name\": \"fgibul\",\r\n \"mobileNumber\": \"9862798377\",\r\n \"emailId\": \"a@b.com\",\r\n \"locale\": null,\r\n \"type\": \"CITIZEN\",\r\n \"roles\": [\r\n {\r\n \"name\": \"Organization admin\",\r\n \"code\": \"ORG_ADMIN\",\r\n \"tenantId\": \"pg\"\r\n }\r\n ],\r\n \"active\": true,\r\n \"tenantId\": \"pg\",\r\n \"permanentCity\": null\r\n }\r\n },\r\n \"Individual\": {\r\n // \"id\": [\r\n // \"{{IndId}}\"\r\n // ],\r\n // \"wardCode\": \"{{ward}}\",\r\n // \"name\": {\r\n // \"givenName\": \"{{IndName}}\"\r\n // }\r\n // \"individualId\": \"{{IndNo}}\"\r\n // \"mobileNumber\": \"{{IndmobileNo}}\"\r\n // \"socialCategory\": \"{{Social Category}}\"\r\n \"createdFrom\": 5000,\r\n \"createdTo\": 2000\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/individual/v1/_search?limit=100&offset=0&tenantId={{tenantId}}", "host": [ "{{base_url}}" ], "path": [ "individual", "v1", "_search" ], "query": [ { "key": "limit", "value": "100" }, { "key": "offset", "value": "0" }, { "key": "tenantId", "value": "{{tenantId}}" } ] } }, "response": [] }, { "name": "Search Individual - Validation error - Created from date greater than created to date", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => \r", " pm.expect(pm.response.to.have.status(200)));\r", "\r", "pm.test(\"Correct Error with message and code is received\", function () {\r", " var res = pm.response.json();\r", " pm.expect(res.Individual).to.eql([]);\r", " pm.expect(res.TotalCount).to.eql(0);\r", " }\r", ");" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"ver\": \".01\",\r\n \"ts\": \"\",\r\n \"action\": \"_search\",\r\n \"did\": \"1\",\r\n \"key\": \"\",\r\n \"msgId\": \"1695367848064|en_IN\",\r\n \"authToken\": \"{{token}}\",\r\n \"userInfo\": {\r\n \"id\": 6281,\r\n \"uuid\": \"76a3bfa2-369d-4aec-93bf-b144b86e3e7c\",\r\n \"userName\": \"9862798377\",\r\n \"name\": \"fgibul\",\r\n \"mobileNumber\": \"9862798377\",\r\n \"emailId\": \"a@b.com\",\r\n \"locale\": null,\r\n \"type\": \"CITIZEN\",\r\n \"roles\": [\r\n {\r\n \"name\": \"Organization admin\",\r\n \"code\": \"ORG_ADMIN\",\r\n \"tenantId\": \"pg\"\r\n }\r\n ],\r\n \"active\": true,\r\n \"tenantId\": \"pg\",\r\n \"permanentCity\": null\r\n }\r\n },\r\n \"Individual\": {\r\n // \"id\": [\r\n // \"{{IndId}}\"\r\n // ],\r\n // \"wardCode\": \"{{ward}}\",\r\n // \"name\": {\r\n // \"givenName\": \"{{IndName}}\"\r\n // }\r\n // \"individualId\": \"{{IndNo}}\"\r\n // \"mobileNumber\": \"{{IndmobileNo}}\"\r\n // \"socialCategory\": \"{{Social Category}}\"\r\n \"createdFrom\": 1695723990000,\r\n \"createdTo\": 1695378390000\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/individual/v1/_search?limit=100&offset=0&tenantId={{tenantId}}", "host": [ "{{base_url}}" ], "path": [ "individual", "v1", "_search" ], "query": [ { "key": "limit", "value": "100" }, { "key": "offset", "value": "0" }, { "key": "tenantId", "value": "{{tenantId}}" } ] } }, "response": [] }, { "name": "Search Individual - Validation error - createdTo without createdFrom", "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(\"DATABASE_ERROR\");\r", " pm.expect(message).to.eql(\"Cannot specify createdToDate without a createdFromDate\");\r", " }\r", ");" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"ver\": \".01\",\r\n \"ts\": \"\",\r\n \"action\": \"_search\",\r\n \"did\": \"1\",\r\n \"key\": \"\",\r\n \"msgId\": \"1695367848064|en_IN\",\r\n \"authToken\": \"{{token}}\",\r\n \"userInfo\": {\r\n \"id\": 6281,\r\n \"uuid\": \"76a3bfa2-369d-4aec-93bf-b144b86e3e7c\",\r\n \"userName\": \"9862798377\",\r\n \"name\": \"fgibul\",\r\n \"mobileNumber\": \"9862798377\",\r\n \"emailId\": \"a@b.com\",\r\n \"locale\": null,\r\n \"type\": \"CITIZEN\",\r\n \"roles\": [\r\n {\r\n \"name\": \"Organization admin\",\r\n \"code\": \"ORG_ADMIN\",\r\n \"tenantId\": \"pg\"\r\n }\r\n ],\r\n \"active\": true,\r\n \"tenantId\": \"pg\",\r\n \"permanentCity\": null\r\n }\r\n },\r\n \"Individual\": {\r\n // \"id\": [\r\n // \"{{IndId}}\"\r\n // ],\r\n // \"wardCode\": \"{{ward}}\",\r\n // \"name\": {\r\n // \"givenName\": \"{{IndName}}\"\r\n // }\r\n // \"individualId\": \"{{IndNo}}\"\r\n // \"mobileNumber\": \"{{IndmobileNo}}\"\r\n // \"socialCategory\": \"{{Social Category}}\"\r\n \"createdTo\": 2000\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/individual/v1/_search?limit=100&offset=0&tenantId={{tenantId}}", "host": [ "{{base_url}}" ], "path": [ "individual", "v1", "_search" ], "query": [ { "key": "limit", "value": "100" }, { "key": "offset", "value": "0" }, { "key": "tenantId", "value": "{{tenantId}}" } ] } }, "response": [] }, { "name": "Update Individual - Success - Update Indname and Father Name", "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", "\r", "pm.test(\"Individual are required\", function () {\r", " var req = JSON.parse(pm.request.body.raw);\r", " pm.expect(req.Individual).to.not.be.undefined;\r", " pm.expect(req.Individual).to.not.be.null;\r", "}\r", ");\r", "\r", "pm.test(\"TenantId is required\", function () {\r", " var req = JSON.parse(pm.request.body.raw);\r", " var Individual = req.Individual; \r", " pm.expect(Individual.tenantId).to.not.be.null;\r", " pm.expect(Individual.tenantId).to.not.be.undefined;\r", " pm.expect(Individual.tenantId).to.not.equal(\"\");\r", "});\r", "\r", "pm.test(\"Response is successful\", () =>\r", " pm.expect(pm.response.to.have.status(202))\r", ");\r", "\r", "" ], "type": "text/javascript", "packages": {} } }, { "listen": "prerequest", "script": { "exec": [ "// Arrays of common first and last names\r", "const firstNames = [\r", " \"John\",\r", " \"Jane\",\r", " \"Michael\",\r", " \"Emily\",\r", " \"David\",\r", " \"Sarah\"\r", "];\r", "const lastNames = [\r", " \"Smith\",\r", " \"Johnson\",\r", " \"Williams\",\r", " \"Brown\",\r", " \"Jones\",\r", " \"Davis\"\r", "];\r", "// Function to generate a random individual name\r", "function generateRandomName() {\r", " const randomFirstName = firstNames[Math.floor(Math.random() * firstNames.length)];\r", " const randomLastName = lastNames[Math.floor(Math.random() * lastNames.length)];\r", "\r", " return `${randomFirstName} ${randomLastName}`;\r", "}\r", "// Generate random names for Son and Father\r", "const sonName = generateRandomName();\r", "const fatherName = generateRandomName();\r", "\r", "// Set the generated names as environment variables\r", "pm.collectionVariables.set(\"IndName\", sonName);\r", "pm.collectionVariables.set(\"IndFatherName\", fatherName);\r", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"ver\": \".01\",\r\n \"ts\": \"\",\r\n \"action\": \"_search\",\r\n \"did\": \"1\",\r\n \"key\": \"\",\r\n \"msgId\": \"1695367848064|en_IN\",\r\n \"authToken\": \"{{token}}\",\r\n \"userInfo\":{\r\n \"id\": 6281,\r\n \"uuid\": \"76a3bfa2-369d-4aec-93bf-b144b86e3e7c\",\r\n \"userName\": \"9862798377\",\r\n \"name\": \"fgibul\",\r\n \"mobileNumber\": \"9862798377\",\r\n \"emailId\": \"a@b.com\",\r\n \"locale\": null,\r\n \"type\": \"CITIZEN\",\r\n \"roles\": [\r\n {\r\n \"name\": \"Organization admin\",\r\n \"code\": \"ORG_ADMIN\",\r\n \"tenantId\": \"pg\"\r\n }\r\n ],\r\n \"active\": true,\r\n \"tenantId\": \"pg\",\r\n \"permanentCity\": null\r\n }\r\n },\r\n \"Individual\": {\r\n \"id\": \"{{IndId}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"name\": {\r\n \"givenName\": \"{{IndName}}\"\r\n },\r\n \"dateOfBirth\": \"{{IndDOB}}\",\r\n \"gender\": \"{{Indgender}}\",\r\n \"mobileNumber\": \"{{IndmobileNo}}\",\r\n \"address\": [\r\n {\r\n \"id\": \"{{IndaddressId}}\",\r\n \"individualId\": \"{{IndId}}\",\r\n \"tenantId\": \"pg.citya\",\r\n \"doorNo\": \"124\",\r\n \"type\": \"PERMANENT\",\r\n \"pincode\": \"123457\",\r\n \"buildingName\": \"Apartment\",\r\n \"street\": \"Necklace Road1\",\r\n \"locality\": {\r\n \"code\": \"{{locality}}\"\r\n },\r\n \"ward\": {\r\n \"code\": \"{{ward}}\"\r\n }\r\n }\r\n ],\r\n \"fatherName\": \"{{IndFatherName}}\",\r\n \"husbandName\": null,\r\n \"relationship\": \"FATHER\",\r\n \"skills\": [\r\n {\r\n \"id\": \"{{IndskillId}}\",\r\n \"individualId\": \"{{IndId}}\",\r\n \"type\": \"{{Indskilltype}}\",\r\n \"level\": \"{{Indskilllevel}}\"\r\n }\r\n ],\r\n \"photo\": \"test_35bd4e8545d8\",\r\n \"additionalFields\": {\r\n \"fields\": [\r\n {\r\n \"key\": \"SOCIAL_CATEGORY\",\r\n \"value\": \"{{Social Category}}\"\r\n }\r\n ]\r\n },\r\n \"rowVersion\": {{IndrowVersion}}\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/individual/v1/_update", "host": [ "{{base_url}}" ], "path": [ "individual", "v1", "_update" ] } }, "response": [] }, { "name": "Update Individual - Validation error - Tenant Id not provided", "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(\"NotNull.individualRequest.individual.tenantId\");\r", " pm.expect(message).to.eql(\"must not be null\");\r", " }\r", ");" ], "type": "text/javascript", "packages": {} } }, { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"ver\": \".01\",\r\n \"ts\": \"\",\r\n \"action\": \"_search\",\r\n \"did\": \"1\",\r\n \"key\": \"\",\r\n \"msgId\": \"1695367848064|en_IN\",\r\n \"authToken\": \"{{token}}\",\r\n \"userInfo\": {\r\n \"id\": 6281,\r\n \"uuid\": \"76a3bfa2-369d-4aec-93bf-b144b86e3e7c\",\r\n \"userName\": \"9862798377\",\r\n \"name\": \"fgibul\",\r\n \"mobileNumber\": \"9862798377\",\r\n \"emailId\": \"a@b.com\",\r\n \"locale\": null,\r\n \"type\": \"CITIZEN\",\r\n \"roles\": [\r\n {\r\n \"name\": \"Organization admin\",\r\n \"code\": \"ORG_ADMIN\",\r\n \"tenantId\": \"pg\"\r\n }\r\n ],\r\n \"active\": true,\r\n \"tenantId\": \"pg\",\r\n \"permanentCity\": null\r\n }\r\n },\r\n \"Individual\": {\r\n \"id\": \"{{IndId}}\",\r\n \"name\": {\r\n \"givenName\": \"{{IndName}}\"\r\n },\r\n \"dateOfBirth\": \"{{IndDOB}}\",\r\n \"gender\": \"{{Indgender}}\",\r\n \"mobileNumber\": \"{{IndmobileNo}}\",\r\n \"address\": [\r\n {\r\n \"id\": \"{{IndaddressId}}\",\r\n \"individualId\": \"{{IndId}}\",\r\n \"tenantId\": \"pg.citya\",\r\n \"doorNo\": \"124\",\r\n \"type\": \"PERMANENT\",\r\n \"pincode\": \"123457\",\r\n \"buildingName\": \"Apartment\",\r\n \"street\": \"Necklace Road1\",\r\n \"locality\": {\r\n \"code\": \"{{locality}}\"\r\n },\r\n \"ward\": {\r\n \"code\": \"{{ward}}\"\r\n }\r\n }\r\n ],\r\n \"fatherName\": \"{{IndFatherName}}\",\r\n \"husbandName\": null,\r\n \"relationship\": \"FATHER\",\r\n \"skills\": [\r\n {\r\n \"id\": \"{{IndskillId}}\",\r\n \"individualId\": \"{{IndId}}\",\r\n \"type\": \"{{Indskilltype}}\",\r\n \"level\": \"{{Indskilllevel}}\"\r\n }\r\n ],\r\n \"photo\": \"test_35bd4e8545d8\",\r\n \"additionalFields\": {\r\n \"fields\": [\r\n {\r\n \"key\": \"SOCIAL_CATEGORY\",\r\n \"value\": \"{{Social Category}}\"\r\n }\r\n ]\r\n },\r\n \"rowVersion\": {{IndrowVersion}}\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/individual/v1/_update", "host": [ "{{base_url}}" ], "path": [ "individual", "v1", "_update" ] } }, "response": [] } ] }, { "name": "Organisation Test Script", "item": [ { "name": "Create Organisation - Success - Single Organisation", "event": [ { "listen": "prerequest", "script": { "exec": [ "//Change contactMobileNumber for unique user", "// pm.collectionVariables.set(\"contactMobileNumber\", \"9111111225\");", "function generateRandomMobileNumber() {", " // var countryCode = \"+91\"; // Change country code as needed", " var stateCode = \"9862\"", " var number = 1000000; ", " ", " var randomNumber = Math.floor(Math.random()* number);", " return stateCode + randomNumber;", "}", "", "// Call the function to generate a random mobile number", "var randomMobileNumber = generateRandomMobileNumber();", "", "// Set the random mobile number as a variable", "pm.variables.set(\"phoneNo\", randomMobileNumber);", "// pm.collectionVariables.set(\"tenantId\", \"pg.citya\");", "pm.collectionVariables.set(\"tenantId2\", \"pg.cityb\");", "", "pm.environment.set(\"orgName\", \"org-test\");", "pm.collectionVariables.set(\"orgFuncClass\", \"A\");", "pm.collectionVariables.set(\"orgFunType\", \"VEN.CMS\");", "pm.collectionVariables.set(\"orgFunCategory\", \"VEN.CW\");", "pm.collectionVariables.set(\"boundaryType\", \"Ward\");", "pm.collectionVariables.set(\"boundaryCode\", \"B1\");", "", "pm.collectionVariables.set(\"contactEmail\", \"a@b.com\");", "function generateRandomWord() {", " var letters = 'abcdefghijklmnopqrstuvwxyz'; // Pool of letters", " var word = '';", " for (var i = 0; i < 6; i++) {", " var randomIndex = Math.floor(Math.random() * letters.length); // Generate a random index", " word += letters.charAt(randomIndex); // Append a random letter to the word", " }", " return word;", "}", "", "// Generate a random word", "var name = generateRandomWord();", "", "// Log the generated word to the console", "console.log(\"Random 6-letter word:\", name);", "", "// Set the generated word as an environment variable", "pm.collectionVariables.set(\"contactName\", name);", "", "pm.collectionVariables.set(\"identifierType\", \"PAN\");", "pm.collectionVariables.set(\"identifierValue\", \"QWE12345TY\");", "pm.collectionVariables.set(\"jurisdictionCode\", \"code-test\");", "pm.collectionVariables.set(\"identifierType\", \"PAN\");", "", "" ], "type": "text/javascript", "packages": {} } }, { "listen": "test", "script": { "exec": [ "pm.test(\"RequestInfo is required\", function () {", " var req = JSON.parse(pm.request.body.raw);", " pm.expect(req.RequestInfo).to.not.be.null;", " pm.expect(req.RequestInfo).to.not.be.undefined;", "}", ");", "", "pm.test(\"Organisations are required\", function () {", " var req = JSON.parse(pm.request.body.raw);", " pm.expect(req.organisations).to.not.be.undefined;", " pm.expect(req.organisations).to.not.be.null;", "}", ");", "", "pm.test(\"TenantId is required\", function () {", " var req = JSON.parse(pm.request.body.raw);", " var org = req.organisations[0];", " pm.expect(org.tenantId).to.be.not.null;", " pm.expect(org.tenantId).to.be.not.undefined;", " pm.expect(org.tenantId).not.to.eql(\"\");", "}", ");", "", "pm.test(\"Name is required\", function () {", " var req = JSON.parse(pm.request.body.raw);", " var org = req.organisations[0];", " pm.expect(org.name).to.be.not.null;", " pm.expect(org.name).to.be.not.undefined;", " pm.expect(org.name).not.to.eql(\"\");", "}", ");", "", "pm.test(\"Response is successful\", () =>", " pm.expect(pm.response.to.have.status(200))", ");", "", "pm.test(\"Organisation Number is enriched\", function () {", " var res = pm.response.json();", " var orgNumber = res.organisations[0].orgNumber;", " pm.expect(orgNumber).to.be.not.null;", " pm.expect(orgNumber).to.be.not.undefined;", " pm.expect(orgNumber).not.to.eql(\"\");", " pm.expect(orgNumber.length).to.be.above(0);", "}", ");", "", "pm.test(\"Application Number is enriched\", function () {", " var res = pm.response.json();", " var applicationNumber = res.organisations[0].applicationNumber;", " pm.expect(applicationNumber).to.be.not.null;", " pm.expect(applicationNumber).to.be.not.undefined;", " pm.expect(applicationNumber).not.to.eql(\"\");", " pm.expect(applicationNumber.length).to.be.above(0);", "}", ");", "", "pm.test(\"Functions Application Number is enriched\", function () {", " var res = pm.response.json();", " var funApplicationNumber = res.organisations[0].functions[0].applicationNumber;", " pm.expect(funApplicationNumber).to.be.not.null;", " pm.expect(funApplicationNumber).to.be.not.undefined;", " pm.expect(funApplicationNumber).not.to.eql(\"\");", " pm.expect(funApplicationNumber.length).to.be.above(0);", "}", ");", "", "pm.test(\"Contact Details present in response\", function () {", " var res = pm.response.json();", " pm.expect(res.organisations[0].contactDetails.length).to.be.above(0);", "}", ");", "", "pm.test(\"Org Address present in response\", function () {", " var res = pm.response.json();", " pm.expect(res.organisations[0].orgAddress.length).to.be.above(0);", "}", ");", "", "pm.test(\"Identifiers present in response\", function () {", " var res = pm.response.json();", " pm.expect(res.organisations[0].identifiers.length).to.be.above(0);", "}", ");", "", "pm.test(\"Functions present in response\", function () {", " var res = pm.response.json();", " pm.expect(res.organisations[0].functions.length).to.be.above(0);", "}", ");", "", "pm.test(\"Jurisdiction present in response\", function () {", " var res = pm.response.json();", " pm.expect(res.organisations[0].jurisdiction.length).to.be.above(0);", "}", ");", "", "pm.test(\"Org Documents present in response\", function () {", " var res = pm.response.json();", " pm.expect(res.organisations[0].functions[0].documents.length).to.be.above(0);", "}", ");", "", "pm.test(\"Function Documents present in response\", function () {", " var res = pm.response.json();", " pm.expect(res.organisations[0].documents.length).to.be.above(0);", "}", ");", "", "pm.test(\"Audit Details present in response\", function () {", " var res = pm.response.json();", " pm.expect(Object.keys(res.organisations[0].auditDetails).length).to.be.above(0);", "}", ");", "", "pm.test(\"Function Audit Details present in response\", function () {", " var res = pm.response.json();", " pm.expect(Object.keys(res.organisations[0].functions[0].auditDetails).length).to.be.above(0);", "}", ");", "", "", "let responseData = pm.response.json();", "pm.collectionVariables.set(\"tenantId\", responseData.organisations[0].tenantId);", "pm.collectionVariables.set(\"stateLevelTenant\", responseData.organisations[0].tenantId.split('.', 1)[0]);", "", "pm.environment.set(\"orgId\", responseData.organisations[0].id);", "pm.collectionVariables.set(\"orgNumber\", responseData.organisations[0].orgNumber);", "pm.collectionVariables.set(\"applicationNumber\", responseData.organisations[0].applicationNumber);", "", "pm.collectionVariables.set(\"orgAddressId\", responseData.organisations[0].orgAddress.id);", "pm.collectionVariables.set(\"geoLocationId\", responseData.organisations[0].orgAddress[0].geoLocation.id);", "pm.collectionVariables.set(\"contactDetailsId\", responseData.organisations[0].contactDetails[0].id);", "pm.collectionVariables.set(\"contactMobileNumber\",responseData.organisations[0].contactDetails[0].contactMobileNumber);", "pm.collectionVariables.set(\"identifierId\", responseData.organisations[0].identifiers[0].id);", "pm.collectionVariables.set(\"functionId\", responseData.organisations[0].functions[0].id);", "pm.collectionVariables.set(\"functionApplicationNumber\", responseData.organisations[0].functions[0].applicationNumber);", "pm.collectionVariables.set(\"functionDocumentId\", responseData.organisations[0].functions[0].documents[0].id);", "pm.collectionVariables.set(\"jurisdictionId\", responseData.organisations[0].jurisdiction[0].id);", "pm.collectionVariables.set(\"orgDocumentId\", responseData.organisations[0].documents[0].id);", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"simple org registry\",\n \"ver\": \"v1\",\n \"ts\": 0,\n \"action\": \"string\",\n \"did\": \"string\",\n \"key\": \"string\",\n \"msgId\": \"create-org\",\n \"requesterId\": \"string\",\n \"authToken\": \"{{auth}}\"\n },\n \"organisations\": [\n {\n \"tenantId\": \"{{tenantId}}\",\n \"name\": \"{{orgName}}\",\n \"applicationStatus\": \"ACTIVE\",\n \"externalRefNumber\": \"org-123\",\n \"dateOfIncorporation\": 1680091451241,\n \"orgAddress\": [\n {\n \"tenantId\": \"{{tenantId}}\",\n \"doorNo\": \"doorNo-test\",\n \"plotNo\": \"plotNo-test\",\n \"landmark\": \"landmark-test\",\n \"city\": \"citya\",\n \"district\": \"Amritsar\",\n \"region\": \"region-test\",\n \"state\": \"state-test\",\n \"country\": \"country-test\",\n \"pincode\": \"123456\",\n \"additionDetails\": \"address-additional\",\n \"buildingName\": \"buildingName-1\",\n \"street\": \"street-test\",\n \"boundaryType\": \"{{boundaryType}}\",\n \"boundaryCode\": \"{{boundaryCode}}\",\n \"geoLocation\": {\n \"latitude\": 31.63089,\n \"longitude\": 74.871552,\n \"additionalDetails\": {\n \"geoLocation\": \"test-additionalDetails\"\n }\n }\n }\n ],\n \"contactDetails\": [\n {\n \"contactName\": \"{{contactName}}\",\n \"contactMobileNumber\": \"{{phoneNo}}\",\n \"contactEmail\": \"{{contactEmail}}\"\n }\n ],\n \"identifiers\": [\n {\n \"type\": \"{{identifierType}}\",\n \"value\": \"{{identifierValue}}\",\n \"additionalDetails\": {\n \"identifiers\": \"test-additionalDetails\"\n }\n }\n ],\n \"functions\": [\n {\n \"type\": \"{{orgFunType}}\",\n \"category\": \"{{orgFunCategory}}\",\n \"class\": \"{{orgFuncClass}}\",\n \"validFrom\": 1680091451241,\n \"validTo\": 1681647540000,\n \"wfStatus\": \"string\",\n \"documents\": [\n {\n \"documentType\": \"PDF\",\n \"fileStore\": \"fileStore-test\",\n \"documentUid\": \"documentUid-test\",\n \"additionalDetails\": {\n \"documents-func\": \"test-additionalDetails\"\n }\n }\n ],\n \"additionalDetails\": {\n \"func\": \"test-additionalDetails\"\n }\n }\n ],\n \"jurisdiction\": [\n {\n \"code\": \"{{jurisdictionCode}}\",\n \"additionalDetails\": {\n \"jurisdiction\": \"test-additionalDetails\"\n }\n }\n ],\n \"isActive\": true,\n \"documents\": [\n {\n \"documentType\": \"PDF\",\n \"fileStore\": \"fileStore-test\",\n \"documentUid\": \"documentUid-test\",\n \"additionalDetails\": {\n \"documents-org\": \"test-additionalDetails\"\n }\n }\n ],\n \"additionalDetails\": {\n \"org\": \"test-additionalDetails\"\n }\n }\n ]\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/org-services/organisation/v1/_create", "host": [ "{{base_url}}" ], "path": [ "org-services", "organisation", "v1", "_create" ] } }, "response": [] }, { "name": "Create Organisation - Error - Organisations Not Provided", "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {} } }, { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => ", " pm.expect(pm.response.to.have.status(400)));", "", "pm.test(\"Correct Error with message and code is received\", function () {", " var res = pm.response.json();", " var code = res.Errors[0].code;", " var message = res.Errors[0].message;", " pm.expect(code).to.eql(\"ORGANISATION_DETAILS\");", " pm.expect(message).to.eql(\"At least one organisation detail is required\");", " }", ");" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"simple org registry\",\n \"ver\": \"v1\",\n \"ts\": 0,\n \"action\": \"string\",\n \"did\": \"string\",\n \"key\": \"string\",\n \"msgId\": \"create-org\",\n \"requesterId\": \"string\",\n \"authToken\": \"{{auth}}\"\n },\n \"organisations\": []\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/org-services/organisation/v1/_create", "host": [ "{{base_url}}" ], "path": [ "org-services", "organisation", "v1", "_create" ] } }, "response": [] }, { "name": "Create Organisation - Error - TenantId Not Provided", "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {} } }, { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => {", " pm.expect(pm.response.to.not.have.status(200));", "});", " ", "", "pm.test(\"Correct Error with message and code is received\", function () {", " var res = pm.response.json();", " pm.expect(res.Errors.length).to.be.above(0);", " }", ");" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"simple org registry\",\n \"ver\": \"v1\",\n \"ts\": 0,\n \"action\": \"string\",\n \"did\": \"string\",\n \"key\": \"string\",\n \"msgId\": \"create-org\",\n \"requesterId\": \"string\",\n \"authToken\": \"{{auth}}\"\n },\n \"organisations\": [\n {\n \"name\": \"{{orgName}}\",\n \"applicationStatus\": \"ACTIVE\",\n \"externalRefNumber\": \"org-123\",\n \"dateOfIncorporation\": 1680091451241,\n \"orgAddress\": [\n {\n \"tenantId\": \"{{tenantId}}\",\n \"doorNo\": \"doorNo-test\",\n \"plotNo\": \"plotNo-test\",\n \"landmark\": \"landmark-test\",\n \"city\": \"citya\",\n \"district\": \"Amritsar\",\n \"region\": \"region-test\",\n \"state\": \"state-test\",\n \"country\": \"country-test\",\n \"pincode\": \"123456\",\n \"additionDetails\": \"address-additional\",\n \"buildingName\": \"buildingName-1\",\n \"street\": \"street-test\",\n \"boundaryType\": \"{{boundaryType}}\",\n \"boundaryCode\": \"{{boundaryCode}}\",\n \"geoLocation\": {\n \"latitude\": 31.63089,\n \"longitude\": 74.871552,\n \"additionalDetails\": {\n \"geoLocation\": \"test-additionalDetails\"\n }\n }\n }\n ],\n \"contactDetails\": [\n {\n \"contactName\": \"{{contactName}}\",\n \"contactMobileNumber\": \"{{contactMobileNumber}}\",\n \"contactEmail\": \"{{contactEmail}}\"\n }\n ],\n \"identifiers\": [\n {\n \"type\": \"{{identifierType}}\",\n \"value\": \"{{identifierValue}}\",\n \"additionalDetails\": {\n \"identifiers\": \"test-additionalDetails\"\n }\n }\n ],\n \"functions\": [\n {\n \"type\": \"{{orgFunType}}\",\n \"category\": \"{{orgFunCategory}}\",\n \"class\": \"{{orgFuncClass}}\",\n \"validFrom\": 1680091451241,\n \"validTo\": 1681647540000,\n \"wfStatus\": \"string\",\n \"documents\": [\n {\n \"documentType\": \"PDF\",\n \"fileStore\": \"fileStore-test\",\n \"documentUid\": \"documentUid-test\",\n \"additionalDetails\": {\n \"documents-func\": \"test-additionalDetails\"\n }\n }\n ],\n \"additionalDetails\": {\n \"func\": \"test-additionalDetails\"\n }\n }\n ],\n \"jurisdiction\": [\n {\n \"code\": \"{{jurisdictionCode}}\",\n \"additionalDetails\": {\n \"jurisdiction\": \"test-additionalDetails\"\n }\n }\n ],\n \"isActive\": true,\n \"documents\": [\n {\n \"documentType\": \"PDF\",\n \"fileStore\": \"fileStore-test\",\n \"documentUid\": \"documentUid-test\",\n \"additionalDetails\": {\n \"documents-org\": \"test-additionalDetails\"\n }\n }\n ],\n \"additionalDetails\": {\n \"org\": \"test-additionalDetails\"\n }\n }\n ]\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/org-services/organisation/v1/_create", "host": [ "{{base_url}}" ], "path": [ "org-services", "organisation", "v1", "_create" ] } }, "response": [] }, { "name": "Create Organisation - Error - OrgName Not Provided", "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {} } }, { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => ", " pm.expect(pm.response.to.have.status(400)));", "", "pm.test(\"Correct Error with message and code is received\", function () {", " var res = pm.response.json();", " var code = res.Errors[0].code;", " var message = res.Errors[0].message;", " pm.expect(code).to.eql(\"ORG_NAME\");", " pm.expect(message).to.eql(\"Organisation name is mandatory\");", " }", ");" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"simple org registry\",\n \"ver\": \"v1\",\n \"ts\": 0,\n \"action\": \"string\",\n \"did\": \"string\",\n \"key\": \"string\",\n \"msgId\": \"create-org\",\n \"requesterId\": \"string\",\n \"authToken\": \"{{auth}}\"\n },\n \"organisations\": [\n {\n \"tenantId\": \"{{tenantId}}\",\n \"applicationStatus\": \"ACTIVE\",\n \"externalRefNumber\": \"org-123\",\n \"dateOfIncorporation\": 1680091451241,\n \"orgAddress\": [\n {\n \"tenantId\": \"{{tenantId}}\",\n \"doorNo\": \"doorNo-test\",\n \"plotNo\": \"plotNo-test\",\n \"landmark\": \"landmark-test\",\n \"city\": \"citya\",\n \"district\": \"Amritsar\",\n \"region\": \"region-test\",\n \"state\": \"state-test\",\n \"country\": \"country-test\",\n \"pincode\": \"123456\",\n \"additionDetails\": \"address-additional\",\n \"buildingName\": \"buildingName-1\",\n \"street\": \"street-test\",\n \"boundaryType\": \"{{boundaryType}}\",\n \"boundaryCode\": \"{{boundaryCode}}\",\n \"geoLocation\": {\n \"latitude\": 31.63089,\n \"longitude\": 74.871552,\n \"additionalDetails\": {\n \"geoLocation\": \"test-additionalDetails\"\n }\n }\n }\n ],\n \"contactDetails\": [\n {\n \"contactName\": \"{{contactName}}\",\n \"contactMobileNumber\": \"{{contactMobileNumber}}\",\n \"contactEmail\": \"{{contactEmail}}\"\n }\n ],\n \"identifiers\": [\n {\n \"type\": \"{{identifierType}}\",\n \"value\": \"{{identifierValue}}\",\n \"additionalDetails\": {\n \"identifiers\": \"test-additionalDetails\"\n }\n }\n ],\n \"functions\": [\n {\n \"type\": \"{{orgFunType}}\",\n \"category\": \"{{orgFunCategory}}\",\n \"class\": \"{{orgFuncClass}}\",\n \"validFrom\": 1680091451241,\n \"validTo\": 1681647540000,\n \"wfStatus\": \"string\",\n \"documents\": [\n {\n \"documentType\": \"PDF\",\n \"fileStore\": \"fileStore-test\",\n \"documentUid\": \"documentUid-test\",\n \"additionalDetails\": {\n \"documents-func\": \"test-additionalDetails\"\n }\n }\n ],\n \"additionalDetails\": {\n \"func\": \"test-additionalDetails\"\n }\n }\n ],\n \"jurisdiction\": [\n {\n \"code\": \"{{jurisdictionCode}}\",\n \"additionalDetails\": {\n \"jurisdiction\": \"test-additionalDetails\"\n }\n }\n ],\n \"isActive\": true,\n \"documents\": [\n {\n \"documentType\": \"PDF\",\n \"fileStore\": \"fileStore-test\",\n \"documentUid\": \"documentUid-test\",\n \"additionalDetails\": {\n \"documents-org\": \"test-additionalDetails\"\n }\n }\n ],\n \"additionalDetails\": {\n \"org\": \"test-additionalDetails\"\n }\n }\n ]\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/org-services/organisation/v1/_create", "host": [ "{{base_url}}" ], "path": [ "org-services", "organisation", "v1", "_create" ] } }, "response": [] }, { "name": "Create Organisation - Error - Address Tenant not provided", "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {} } }, { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => ", " pm.expect(pm.response.to.have.status(400)));", "", "pm.test(\"Correct Error with message and code is received\", function () {", " var res = pm.response.json();", " var code = res.Errors[0].code;", " var message = res.Errors[0].message;", " pm.expect(code).to.eql(\"ADDRESS.TENANT_ID\");", " pm.expect(message).to.eql(\"Tenant id is mandatory\");", " }", ");" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"simple org registry\",\n \"ver\": \"v1\",\n \"ts\": 0,\n \"action\": \"string\",\n \"did\": \"string\",\n \"key\": \"string\",\n \"msgId\": \"create-org\",\n \"requesterId\": \"string\",\n \"authToken\": \"{{auth}}\"\n },\n \"organisations\": [\n {\n \"tenantId\": \"{{tenantId}}\",\n \"applicationStatus\": \"ACTIVE\",\n \"name\": \"{{orgName}}\",\n \"externalRefNumber\": \"org-123\",\n \"dateOfIncorporation\": 1680091451241,\n \"orgAddress\": [\n {\n \"doorNo\": \"doorNo-test\",\n \"plotNo\": \"plotNo-test\",\n \"landmark\": \"landmark-test\",\n \"city\": \"citya\",\n \"district\": \"Amritsar\",\n \"region\": \"region-test\",\n \"state\": \"state-test\",\n \"country\": \"country-test\",\n \"pincode\": \"123456\",\n \"additionDetails\": \"address-additional\",\n \"buildingName\": \"buildingName-1\",\n \"street\": \"street-test\",\n \"boundaryType\": \"{{boundaryType}}\",\n \"boundaryCode\": \"{{boundaryCode}}\",\n \"geoLocation\": {\n \"latitude\": 31.63089,\n \"longitude\": 74.871552,\n \"additionalDetails\": {\n \"geoLocation\": \"test-additionalDetails\"\n }\n }\n }\n ],\n \"contactDetails\": [\n {\n \"contactName\": \"{{contactName}}\",\n \"contactMobileNumber\": \"{{contactMobileNumber}}\",\n \"contactEmail\": \"{{contactEmail}}\"\n }\n ],\n \"identifiers\": [\n {\n \"type\": \"{{identifierType}}\",\n \"value\": \"{{identifierValue}}\",\n \"additionalDetails\": {\n \"identifiers\": \"test-additionalDetails\"\n }\n }\n ],\n \"functions\": [\n {\n \"type\": \"{{orgFunType}}\",\n \"category\": \"{{orgFunCategory}}\",\n \"class\": \"{{orgFuncClass}}\",\n \"validFrom\": 1680091451241,\n \"validTo\": 1681647540000,\n \"wfStatus\": \"string\",\n \"documents\": [\n {\n \"documentType\": \"PDF\",\n \"fileStore\": \"fileStore-test\",\n \"documentUid\": \"documentUid-test\",\n \"additionalDetails\": {\n \"documents-func\": \"test-additionalDetails\"\n }\n }\n ],\n \"additionalDetails\": {\n \"func\": \"test-additionalDetails\"\n }\n }\n ],\n \"jurisdiction\": [\n {\n \"code\": \"{{jurisdictionCode}}\",\n \"additionalDetails\": {\n \"jurisdiction\": \"test-additionalDetails\"\n }\n }\n ],\n \"isActive\": true,\n \"documents\": [\n {\n \"documentType\": \"PDF\",\n \"fileStore\": \"fileStore-test\",\n \"documentUid\": \"documentUid-test\",\n \"additionalDetails\": {\n \"documents-org\": \"test-additionalDetails\"\n }\n }\n ],\n \"additionalDetails\": {\n \"org\": \"test-additionalDetails\"\n }\n }\n ]\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/org-services/organisation/v1/_create", "host": [ "{{base_url}}" ], "path": [ "org-services", "organisation", "v1", "_create" ] } }, "response": [] }, { "name": "Create Organisation - Error - Address BoundaryType not provided", "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {} } }, { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => ", " pm.expect(pm.response.to.have.status(400)));", "", "pm.test(\"Correct Error with message and code is received\", function () {", " var res = pm.response.json();", " var code = res.Errors[0].code;", " var message = res.Errors[0].message;", " pm.expect(code).to.eql(\"ADDRESS.BOUNDARY_TYPE\");", " pm.expect(message).to.eql(\"Address's boundary type is mandatory\");", " }", ");" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"simple org registry\",\n \"ver\": \"v1\",\n \"ts\": 0,\n \"action\": \"string\",\n \"did\": \"string\",\n \"key\": \"string\",\n \"msgId\": \"create-org\",\n \"requesterId\": \"string\",\n \"authToken\": \"{{auth}}\"\n },\n \"organisations\": [\n {\n \"tenantId\": \"{{tenantId}}\",\n \"name\": \"{{orgName}}\",\n \"applicationStatus\": \"ACTIVE\",\n \"externalRefNumber\": \"org-123\",\n \"dateOfIncorporation\": 1680091451241,\n \"orgAddress\": [\n {\n \"tenantId\": \"{{tenantId}}\",\n \"doorNo\": \"doorNo-test\",\n \"plotNo\": \"plotNo-test\",\n \"landmark\": \"landmark-test\",\n \"city\": \"citya\",\n \"district\": \"Amritsar\",\n \"region\": \"region-test\",\n \"state\": \"state-test\",\n \"country\": \"country-test\",\n \"pincode\": \"123456\",\n \"additionDetails\": \"address-additional\",\n \"buildingName\": \"buildingName-1\",\n \"street\": \"street-test\",\n \"boundaryCode\": \"{{boundaryCode}}\",\n \"geoLocation\": {\n \"latitude\": 31.63089,\n \"longitude\": 74.871552,\n \"additionalDetails\": {\n \"geoLocation\": \"test-additionalDetails\"\n }\n }\n }\n ],\n \"contactDetails\": [\n {\n \"contactName\": \"{{contactName}}\",\n \"contactMobileNumber\": \"{{contactMobileNumber}}\",\n \"contactEmail\": \"{{contactEmail}}\"\n }\n ],\n \"identifiers\": [\n {\n \"type\": \"{{identifierType}}\",\n \"value\": \"{{identifierValue}}\",\n \"additionalDetails\": {\n \"identifiers\": \"test-additionalDetails\"\n }\n }\n ],\n \"functions\": [\n {\n \"type\": \"{{orgFunType}}\",\n \"category\": \"{{orgFunCategory}}\",\n \"class\": \"{{orgFuncClass}}\",\n \"validFrom\": 1680091451241,\n \"validTo\": 1681647540000,\n \"wfStatus\": \"string\",\n \"documents\": [\n {\n \"documentType\": \"PDF\",\n \"fileStore\": \"fileStore-test\",\n \"documentUid\": \"documentUid-test\",\n \"additionalDetails\": {\n \"documents-func\": \"test-additionalDetails\"\n }\n }\n ],\n \"additionalDetails\": {\n \"func\": \"test-additionalDetails\"\n }\n }\n ],\n \"jurisdiction\": [\n {\n \"code\": \"{{jurisdictionCode}}\",\n \"additionalDetails\": {\n \"jurisdiction\": \"test-additionalDetails\"\n }\n }\n ],\n \"isActive\": true,\n \"documents\": [\n {\n \"documentType\": \"PDF\",\n \"fileStore\": \"fileStore-test\",\n \"documentUid\": \"documentUid-test\",\n \"additionalDetails\": {\n \"documents-org\": \"test-additionalDetails\"\n }\n }\n ],\n \"additionalDetails\": {\n \"org\": \"test-additionalDetails\"\n }\n }\n ]\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/org-services/organisation/v1/_create", "host": [ "{{base_url}}" ], "path": [ "org-services", "organisation", "v1", "_create" ] } }, "response": [] }, { "name": "Create Organisation - Error - Address BoundaryType not provided Copy", "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {} } }, { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => ", " pm.expect(pm.response.to.have.status(400)));", "", "pm.test(\"Correct Error with message and code is received\", function () {", " var res = pm.response.json();", " var code = res.Errors[0].code;", " var message = res.Errors[0].message;", " pm.expect(code).to.eql(\"ADDRESS.BOUNDARY_CODE\");", " pm.expect(message).to.eql(\"Address's boundary code is mandatory\");", " }", ");" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"simple org registry\",\n \"ver\": \"v1\",\n \"ts\": 0,\n \"action\": \"string\",\n \"did\": \"string\",\n \"key\": \"string\",\n \"msgId\": \"create-org\",\n \"requesterId\": \"string\",\n \"authToken\": \"{{auth}}\"\n },\n \"organisations\": [\n {\n \"tenantId\": \"{{tenantId}}\",\n \"name\": \"{{orgName}}\",\n \"applicationStatus\": \"ACTIVE\",\n \"externalRefNumber\": \"org-123\",\n \"dateOfIncorporation\": 1680091451241,\n \"orgAddress\": [\n {\n \"tenantId\": \"{{tenantId}}\",\n \"doorNo\": \"doorNo-test\",\n \"plotNo\": \"plotNo-test\",\n \"landmark\": \"landmark-test\",\n \"city\": \"citya\",\n \"district\": \"Amritsar\",\n \"region\": \"region-test\",\n \"state\": \"state-test\",\n \"country\": \"country-test\",\n \"pincode\": \"123456\",\n \"additionDetails\": \"address-additional\",\n \"buildingName\": \"buildingName-1\",\n \"street\": \"street-test\",\n \"boundaryType\": \"{{boundaryType}}\",\n \"geoLocation\": {\n \"latitude\": 31.63089,\n \"longitude\": 74.871552,\n \"additionalDetails\": {\n \"geoLocation\": \"test-additionalDetails\"\n }\n }\n }\n ],\n \"contactDetails\": [\n {\n \"contactName\": \"{{contactName}}\",\n \"contactMobileNumber\": \"{{contactMobileNumber}}\",\n \"contactEmail\": \"{{contactEmail}}\"\n }\n ],\n \"identifiers\": [\n {\n \"type\": \"{{identifierType}}\",\n \"value\": \"{{identifierValue}}\",\n \"additionalDetails\": {\n \"identifiers\": \"test-additionalDetails\"\n }\n }\n ],\n \"functions\": [\n {\n \"type\": \"{{orgFunType}}\",\n \"category\": \"{{orgFunCategory}}\",\n \"class\": \"{{orgFuncClass}}\",\n \"validFrom\": 1680091451241,\n \"validTo\": 1681647540000,\n \"wfStatus\": \"string\",\n \"documents\": [\n {\n \"documentType\": \"PDF\",\n \"fileStore\": \"fileStore-test\",\n \"documentUid\": \"documentUid-test\",\n \"additionalDetails\": {\n \"documents-func\": \"test-additionalDetails\"\n }\n }\n ],\n \"additionalDetails\": {\n \"func\": \"test-additionalDetails\"\n }\n }\n ],\n \"jurisdiction\": [\n {\n \"code\": \"{{jurisdictionCode}}\",\n \"additionalDetails\": {\n \"jurisdiction\": \"test-additionalDetails\"\n }\n }\n ],\n \"isActive\": true,\n \"documents\": [\n {\n \"documentType\": \"PDF\",\n \"fileStore\": \"fileStore-test\",\n \"documentUid\": \"documentUid-test\",\n \"additionalDetails\": {\n \"documents-org\": \"test-additionalDetails\"\n }\n }\n ],\n \"additionalDetails\": {\n \"org\": \"test-additionalDetails\"\n }\n }\n ]\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/org-services/organisation/v1/_create", "host": [ "{{base_url}}" ], "path": [ "org-services", "organisation", "v1", "_create" ] } }, "response": [] }, { "name": "Create Organisation - Error - User already exists", "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {} } }, { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => ", " pm.expect(pm.response.to.have.status(400)));", "", "pm.test(\"Correct Error with message and code is received\", function () {", " var res = pm.response.json();", " var code = res.Errors[0].code;", " var message = res.Errors[0].message;", " pm.expect(code).to.eql(\"INDIVIDUAL.MOBILE_NUMBER\");", " // pm.expect(message).to.eql(\"User's mobile number : \" + pm.collectionVariables.get('contactMobileNumber') + \" already exists in the system\");", " }", ");" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"simple org registry\",\n \"ver\": \"v1\",\n \"ts\": 0,\n \"action\": \"string\",\n \"did\": \"string\",\n \"key\": \"string\",\n \"msgId\": \"create-org\",\n \"requesterId\": \"string\",\n \"authToken\": \"{{auth}}\"\n },\n \"organisations\": [\n {\n \"tenantId\": \"{{tenantId}}\",\n \"name\": \"{{orgName}}\",\n \"applicationStatus\": \"ACTIVE\",\n \"externalRefNumber\": \"org-123\",\n \"dateOfIncorporation\": 1680091451241,\n \"orgAddress\": [\n {\n \"tenantId\": \"{{tenantId}}\",\n \"doorNo\": \"doorNo-test\",\n \"plotNo\": \"plotNo-test\",\n \"landmark\": \"landmark-test\",\n \"city\": \"citya\",\n \"district\": \"Amritsar\",\n \"region\": \"region-test\",\n \"state\": \"state-test\",\n \"country\": \"country-test\",\n \"pincode\": \"123456\",\n \"additionDetails\": \"address-additional\",\n \"buildingName\": \"buildingName-1\",\n \"street\": \"street-test\",\n \"boundaryType\": \"{{boundaryType}}\",\n \"boundaryCode\": \"{{boundaryCode}}\",\n \"geoLocation\": {\n \"latitude\": 31.63089,\n \"longitude\": 74.871552,\n \"additionalDetails\": {\n \"geoLocation\": \"test-additionalDetails\"\n }\n }\n }\n ],\n \"contactDetails\": [\n {\n \"contactName\": \"{{contactName}}\",\n \"contactMobileNumber\": \"{{contactMobileNumber}}\",\n \"contactEmail\": \"{{contactEmail}}\"\n }\n ],\n \"identifiers\": [\n {\n \"type\": \"{{identifierType}}\",\n \"value\": \"{{identifierValue}}\",\n \"additionalDetails\": {\n \"identifiers\": \"test-additionalDetails\"\n }\n }\n ],\n \"functions\": [\n {\n \"type\": \"{{orgFunType}}\",\n \"category\": \"{{orgFunCategory}}\",\n \"class\": \"{{orgFuncClass}}\",\n \"validFrom\": 1680091451241,\n \"validTo\": 1681647540000,\n \"wfStatus\": \"string\",\n \"documents\": [\n {\n \"documentType\": \"PDF\",\n \"fileStore\": \"fileStore-test\",\n \"documentUid\": \"documentUid-test\",\n \"additionalDetails\": {\n \"documents-func\": \"test-additionalDetails\"\n }\n }\n ],\n \"additionalDetails\": {\n \"func\": \"test-additionalDetails\"\n }\n }\n ],\n \"jurisdiction\": [\n {\n \"code\": \"{{jurisdictionCode}}\",\n \"additionalDetails\": {\n \"jurisdiction\": \"test-additionalDetails\"\n }\n }\n ],\n \"isActive\": true,\n \"documents\": [\n {\n \"documentType\": \"PDF\",\n \"fileStore\": \"fileStore-test\",\n \"documentUid\": \"documentUid-test\",\n \"additionalDetails\": {\n \"documents-org\": \"test-additionalDetails\"\n }\n }\n ],\n \"additionalDetails\": {\n \"org\": \"test-additionalDetails\"\n }\n }\n ]\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/org-services/organisation/v1/_create", "host": [ "{{base_url}}" ], "path": [ "org-services", "organisation", "v1", "_create" ] } }, "response": [] }, { "name": "Organisation Search - Tenant Only", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => ", " pm.expect(pm.response.to.have.status(200)));", "", "pm.test(\"Organisation Search response is received\", function () {", " var res = pm.response.json();", " pm.expect(res.organisations.length).to.be.above(0);", " }", ");" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"mukta-services\",\n \"ver\": null,\n \"ts\": null,\n \"action\": null,\n \"did\": null,\n \"key\": null,\n \"msgId\": \"Create Attendance Register\",\n \"authToken\": \"{{token}}\"\n },\n \"SearchCriteria\": {\n \"id\": [],\n \"tenantId\": \"{{tenantId}}\",\n \"name\": \"\",\n \"applicationNumber\": \"\",\n \"orgNumber\": \"\",\n \"applicationStatus\": \"\",\n \"contactMobileNumber\": \"\",\n \"createdFrom\": 0,\n \"createdTo\": 0,\n \"functions\": {\n \"type\": \"\",\n \"organisationType\": \"\",\n \"category\": null,\n \"class\": null,\n \"validFrom\": 0,\n \"validTo\": 0,\n \"wfStatus\": null,\n \"isActive\": true\n },\n \"boundaryCode\": \"\",\n \"identifierType\": \"\",\n \"identifierValue\": null,\n \"includeDeleted\": false\n },\n \"Pagination\": {\n \"offSet\": 0,\n \"limit\": 10\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/org-services/organisation/v1/_search", "host": [ "{{base_url}}" ], "path": [ "org-services", "organisation", "v1", "_search" ] } }, "response": [] }, { "name": "Organisation Search - Organisation Id", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => ", " pm.expect(pm.response.to.have.status(200)));", "", "pm.test(\"Organisation Search response is received\", function () {", " var res = pm.response.json();", " pm.expect(res.organisations.length).to.be.above(0);", " }", ");", "", "pm.test(\"Organisation Search response matches the criteria\", function () {", " var res = pm.response.json();", " var id = res.organisations[0].id;", " pm.expect(id).to.eql(pm.collectionVariables.get(\"orgId\"));", " }", ");" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"mukta-services\",\n \"ver\": null,\n \"ts\": null,\n \"action\": null,\n \"did\": null,\n \"key\": null,\n \"msgId\": \"Create Attendance Register\",\n \"authToken\": \"{{auth}}\"\n },\n \"SearchCriteria\": {\n \"id\": [\"c5885e80-f2ec-49c2-be5c-02295d5e3f79\"],\n \"tenantId\": \"{{tenantId}}\",\n \"name\": \"\",\n \"applicationNumber\": \"\",\n \"orgNumber\": \"\",\n \"applicationStatus\": \"\",\n \"contactMobileNumber\": \"\",\n \"createdFrom\": 0,\n \"createdTo\": 0,\n \"functions\": {\n \"type\": \"\",\n \"organisationType\": \"\",\n \"category\": null,\n \"class\": null,\n \"validFrom\": 0,\n \"validTo\": 0,\n \"wfStatus\": null,\n \"isActive\": true\n },\n \"boundaryCode\": \"\",\n \"identifierType\": \"\",\n \"identifierValue\": null,\n \"includeDeleted\": false\n },\n \"Pagination\": {\n \"offSet\": 0,\n \"limit\": 10\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/org-services/organisation/v1/_search", "host": [ "{{base_url}}" ], "path": [ "org-services", "organisation", "v1", "_search" ] } }, "response": [] }, { "name": "Organisation Search - Org Number & Application Number", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => ", " pm.expect(pm.response.to.have.status(200)));", "", "pm.test(\"Organisation Search response is received\", function () {", " var res = pm.response.json();", " pm.expect(res.organisations.length).to.be.above(0);", " }", ");", "", "pm.test(\"Organisation Search response matches the criteria\", function () {", " var res = pm.response.json();", " var orgNumber = res.organisations[0].orgNumber;", " pm.expect(orgNumber).to.eql(pm.collectionVariables.get(\"orgNumber\"));", " }", ");" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"mukta-services\",\n \"ver\": null,\n \"ts\": null,\n \"action\": null,\n \"did\": null,\n \"key\": null,\n \"msgId\": \"Create Attendance Register\",\n \"authToken\": \"{{auth}}\"\n },\n \"SearchCriteria\": {\n \"id\": [],\n \"tenantId\": \"{{tenantId}}\",\n \"name\": \"\",\n \"applicationNumber\": \"{{applicationNumber}}\",\n \"orgNumber\": \"{{orgNumber}}\",\n \"applicationStatus\": \"\",\n \"contactMobileNumber\": \"\",\n \"createdFrom\": 0,\n \"createdTo\": 0,\n \"functions\": {\n \"type\": \"\",\n \"organisationType\": \"\",\n \"category\": null,\n \"class\": null,\n \"validFrom\": 0,\n \"validTo\": 0,\n \"wfStatus\": null,\n \"isActive\": true\n },\n \"boundaryCode\": \"\",\n \"identifierType\": \"\",\n \"identifierValue\": null,\n \"includeDeleted\": false\n },\n \"Pagination\": {\n \"offSet\": 0,\n \"limit\": 10\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/org-services/organisation/v1/_search", "host": [ "{{base_url}}" ], "path": [ "org-services", "organisation", "v1", "_search" ] } }, "response": [] }, { "name": "Organisation Search - Between CreatedFrom and CreatedTo - No Orgs", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => ", " pm.expect(pm.response.to.have.status(200)));", "", "pm.test(\"Organisation Search response is received\", function () {", " var res = pm.response.json();", " pm.expect(res.organisations.length).eq(0);", " }", ");", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"mukta-services\",\n \"ver\": null,\n \"ts\": null,\n \"action\": null,\n \"did\": null,\n \"key\": null,\n \"msgId\": \"Create Attendance Register\",\n \"authToken\": \"{{token}}\"\n },\n \"SearchCriteria\": {\n \"id\": [\"{{orgId}}\"],\n \"tenantId\": \"{{tenantId}}\",\n \"name\": \"\",\n \"applicationNumber\": \"\",\n \"orgNumber\": \"\",\n \"applicationStatus\": \"\",\n \"contactMobileNumber\": \"\",\n \"createdFrom\": 0,\n \"createdTo\": 100000,\n \"functions\": {\n \"type\": \"\",\n \"organisationType\": \"\",\n \"category\": null,\n \"class\": null,\n \"validFrom\": 0,\n \"validTo\": 0,\n \"wfStatus\": null,\n \"isActive\": true\n },\n \"boundaryCode\": \"\",\n \"identifierType\": \"\",\n \"identifierValue\": null,\n \"includeDeleted\": false\n },\n \"Pagination\": {\n \"offSet\": 0,\n \"limit\": 10\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/org-services/organisation/v1/_search", "host": [ "{{base_url}}" ], "path": [ "org-services", "organisation", "v1", "_search" ] } }, "response": [] }, { "name": "Organisation Search - contactMobileNumber", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => ", " pm.expect(pm.response.to.have.status(200)));", "", "pm.test(\"Organisation Search response is received\", function () {", " var res = pm.response.json();", " pm.expect(res.organisations.length).to.be.above(0);", " }", ");", "", "pm.test(\"Organisation Search response matches the criteria\", function () {", " var res = pm.response.json();", " var contactMobileNumber = res.organisations[0].contactDetails[0].contactMobileNumber;", " pm.expect(contactMobileNumber).to.eql(pm.collectionVariables.get(\"contactMobileNumber\"));", " }", ");" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"mukta-services\",\n \"ver\": null,\n \"ts\": null,\n \"action\": null,\n \"did\": null,\n \"key\": null,\n \"msgId\": \"Create Attendance Register\",\n \"authToken\": \"{{token}}\"\n },\n \"SearchCriteria\": {\n \"id\": [],\n \"tenantId\": \"{{tenantId}}\",\n \"name\": \"\",\n \"applicationNumber\": \"\",\n \"orgNumber\": \"\",\n \"applicationStatus\": \"\",\n // \"contactMobileNumber\": \"{{contactMobileNumber}}\",\n \"createdFrom\": \"\",\n \"createdTo\": \"\",\n \"functions\": {\n \"type\": \"\",\n \"organisationType\": \"\",\n \"category\": null,\n \"class\": null,\n \"validFrom\": 0,\n \"validTo\": 0,\n \"wfStatus\": null,\n \"isActive\": true\n },\n \"boundaryCode\": \"\",\n \"identifierType\": \"\",\n \"identifierValue\": null,\n \"includeDeleted\": false\n },\n \"Pagination\": {\n \"offSet\": 0,\n \"limit\": 10\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/org-services/organisation/v1/_search", "host": [ "{{base_url}}" ], "path": [ "org-services", "organisation", "v1", "_search" ] } }, "response": [] }, { "name": "Organisation Search - Organisation Type only", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => ", " pm.expect(pm.response.to.have.status(200)));", "", "pm.test(\"Organisation Search response is received\", function () {", " var res = pm.response.json();", " pm.expect(res.organisations.length).to.be.above(0);", " }", ");", "", "pm.test(\"Organisation Search response matches the criteria\", function () {", " var res = pm.response.json();", " var organisationType = res.organisations[0].functions[0].type.split(\".\")[0];", " pm.expect(organisationType).to.eql(pm.collectionVariables.get(\"organisationType\"));", " }", ");" ], "type": "text/javascript", "packages": {} } }, { "listen": "prerequest", "script": { "exec": [ "pm.collectionVariables.set(\"organisationType\", pm.collectionVariables.get('orgFunType').split(\".\")[0]);" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"mukta-services\",\n \"ver\": null,\n \"ts\": null,\n \"action\": null,\n \"did\": null,\n \"key\": null,\n \"msgId\": \"Create Attendance Register\",\n \"authToken\": \"{{auth}}\"\n },\n \"SearchCriteria\": {\n \"id\": [],\n \"tenantId\": \"{{tenantId}}\",\n \"name\": \"\",\n \"applicationNumber\": \"\",\n // \"orgNumber\": \"ORG-000856\",\n \"applicationStatus\": \"\",\n \"contactMobileNumber\": \"\",\n \"createdFrom\": \"\",\n \"createdTo\": \"\",\n \"functions\": {\n \"type\": \"VEN\",\n \"category\": null,\n \"class\": null,\n \"validFrom\": 0,\n \"validTo\": 0,\n \"wfStatus\": null,\n \"isActive\": true\n },\n \"boundaryCode\": \"\",\n \"identifierType\": \"\",\n \"identifierValue\": null,\n \"includeDeleted\": false\n },\n \"Pagination\": {\n \"offSet\": 0,\n \"limit\": 10\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/org-services/organisation/v1/_search", "host": [ "{{base_url}}" ], "path": [ "org-services", "organisation", "v1", "_search" ] } }, "response": [] }, { "name": "Organisation Search - Organisation Type with Sub Type", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => ", " pm.expect(pm.response.to.have.status(200)));", "", "pm.test(\"Organisation Search response is received\", function () {", " var res = pm.response.json();", " pm.expect(res.organisations.length).to.be.above(0);", " }", ");", "", "pm.test(\"Organisation Search response matches the criteria\", function () {", " var res = pm.response.json();", " var orgFunType = res.organisations[0].functions[0].type;", " pm.expect(orgFunType).to.eql(pm.collectionVariables.get(\"orgFunType\"));", " }", ");" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"mukta-services\",\n \"ver\": null,\n \"ts\": null,\n \"action\": null,\n \"did\": null,\n \"key\": null,\n \"msgId\": \"Create Attendance Register\",\n \"authToken\": \"{{token}}\"\n },\n \"SearchCriteria\": {\n \"id\": [],\n \"tenantId\": \"{{tenantId}}\",\n \"name\": \"\",\n \"applicationNumber\": \"\",\n \"orgNumber\": \"\",\n \"applicationStatus\": \"\",\n \"contactMobileNumber\": \"\",\n \"createdFrom\": \"\",\n \"createdTo\": \"\",\n \"functions\": {\n \"type\": \"{{orgFunType}}\",\n \"category\": null,\n \"class\": null,\n \"validFrom\": 0,\n \"validTo\": 0,\n \"wfStatus\": null,\n \"isActive\": true\n },\n \"boundaryCode\": \"\",\n \"identifierType\": \"\",\n \"identifierValue\": null,\n \"includeDeleted\": false\n },\n \"Pagination\": {\n \"offSet\": 0,\n \"limit\": 10\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/org-services/organisation/v1/_search", "host": [ "{{base_url}}" ], "path": [ "org-services", "organisation", "v1", "_search" ] } }, "response": [] }, { "name": "Organisation Search - IdentifierType and IdentifierCode", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => ", " pm.expect(pm.response.to.have.status(200)));", "", "pm.test(\"Organisation Search response is received\", function () {", " var res = pm.response.json();", " pm.expect(res.organisations.length).to.be.above(0);", " }", ");", "", "pm.test(\"Organisation Search response matches the criteria\", function () {", " var res = pm.response.json();", " var identifierType = res.organisations[0].identifiers[0].type;", " pm.expect(identifierType).to.eql(pm.collectionVariables.get(\"identifierType\"));", " }", ");" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"mukta-services\",\n \"ver\": null,\n \"ts\": null,\n \"action\": null,\n \"did\": null,\n \"key\": null,\n \"msgId\": \"Create Attendance Register\",\n \"authToken\": \"{{auth}}\"\n },\n \"SearchCriteria\": {\n \"id\": [],\n \"tenantId\": \"{{tenantId}}\",\n \"name\": \"\",\n \"applicationNumber\": \"\",\n \"orgNumber\": \"\",\n \"applicationStatus\": \"\",\n \"contactMobileNumber\": \"\",\n \"createdFrom\": \"\",\n \"createdTo\": \"\",\n \"functions\": {\n \"type\": \"\",\n \"category\": null,\n \"class\": null,\n \"validFrom\": 0,\n \"validTo\": 0,\n \"wfStatus\": null,\n \"isActive\": true\n },\n \"boundaryCode\": \"\",\n \"identifierType\": \"{{identifierType}}\",\n \"identifierValue\": null,\n \"includeDeleted\": false\n },\n \"Pagination\": {\n \"offSet\": 0,\n \"limit\": 10\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/org-services/organisation/v1/_search", "host": [ "{{base_url}}" ], "path": [ "org-services", "organisation", "v1", "_search" ] } }, "response": [] }, { "name": "Organisation Search - Boundary", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => ", " pm.expect(pm.response.to.have.status(200)));", "", "pm.test(\"Organisation Search response is received\", function () {", " var res = pm.response.json();", " pm.expect(res.organisations.length).to.be.above(0);", " }", ");", "", "pm.test(\"Organisation Search response matches the criteria\", function () {", " var res = pm.response.json();", " var boundaryCode = res.organisations[0].orgAddress[0].boundaryCode;", " pm.expect(boundaryCode).to.eql(pm.collectionVariables.get(\"boundaryCode\"));", " }", ");" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"mukta-services\",\n \"ver\": null,\n \"ts\": null,\n \"action\": null,\n \"did\": null,\n \"key\": null,\n \"msgId\": \"Create Attendance Register\",\n \"authToken\": \"{{token}}\"\n },\n \"SearchCriteria\": {\n \"id\": [],\n \"tenantId\": \"{{tenantId}}\",\n \"name\": \"\",\n \"applicationNumber\": \"\",\n \"orgNumber\": \"\",\n \"applicationStatus\": \"\",\n \"contactMobileNumber\": \"\",\n \"createdFrom\": \"\",\n \"createdTo\": \"\",\n \"functions\": {\n \"type\": \"\",\n \"category\": null,\n \"class\": null,\n \"validFrom\": 0,\n \"validTo\": 0,\n \"wfStatus\": null,\n \"isActive\": true\n },\n \"boundaryCode\": \"{{boundaryCode}}\",\n \"identifierType\": \"\",\n \"identifierValue\": null,\n \"includeDeleted\": false\n },\n \"Pagination\": {\n \"offSet\": 0,\n \"limit\": 10\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/org-services/organisation/v1/_search", "host": [ "{{base_url}}" ], "path": [ "org-services", "organisation", "v1", "_search" ] } }, "response": [] }, { "name": "Update Organisation - Success - Single Organisation", "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {} } }, { "listen": "test", "script": { "exec": [ "pm.test(\"RequestInfo is required\", function () {", " var req = JSON.parse(pm.request.body.raw);", " pm.expect(req.RequestInfo).to.not.be.null;", " pm.expect(req.RequestInfo).to.not.be.undefined;", "}", ");", "", "pm.test(\"Organisations are required\", function () {", " var req = JSON.parse(pm.request.body.raw);", " pm.expect(req.organisations).to.not.be.undefined;", " pm.expect(req.organisations).to.not.be.null;", "}", ");", "", "pm.test(\"TenantId is required\", function () {", " var req = JSON.parse(pm.request.body.raw);", " var org = req.organisations[0];", " pm.expect(org.tenantId).to.be.not.null;", " pm.expect(org.tenantId).to.be.not.undefined;", " pm.expect(org.tenantId).not.to.eql(\"\");", "}", ");", "", "pm.test(\"Name is required\", function () {", " var req = JSON.parse(pm.request.body.raw);", " var org = req.organisations[0];", " pm.expect(org.name).to.be.not.null;", " pm.expect(org.name).to.be.not.undefined;", " pm.expect(org.name).not.to.eql(\"\");", "}", ");", "", "pm.test(\"Organisation id is required\", function () {", " var req = JSON.parse(pm.request.body.raw);", " var org = req.organisations[0];", " pm.expect(org.id).to.be.not.null;", " pm.expect(org.id).to.be.not.undefined;", " pm.expect(org.id).not.to.eql(\"\");", "}", ");", "", "pm.test(\"Response is successful\", () =>", " pm.expect(pm.response.to.have.status(200))", ");", "", "", "pm.test(\"Response have same organisation id as request\", function () {", " var req = JSON.parse(pm.request.body.raw);", " var orgIdRequest = req.organisations[0].id;", " var res = pm.response.json();", " var orgIdResponse = res.organisations[0].id;", " ", " pm.expect(orgIdRequest).to.eql(orgIdResponse);", "}", ");", "", "pm.test(\"Response have same organisation number as request\", function () {", " var req = JSON.parse(pm.request.body.raw);", " var orgNumberRequest = req.organisations[0].id;", " var res = pm.response.json();", " var orgNumberResponse = res.organisations[0].id;", "", " pm.expect(orgNumberRequest).to.eql(orgNumberResponse);", "}", ");", "", "pm.test(\"Contact Details present in response\", function () {", " var res = pm.response.json();", " pm.expect(res.organisations[0].contactDetails.length).to.be.above(0);", "}", ");", "", "pm.test(\"Org Address present in response\", function () {", " var res = pm.response.json();", " pm.expect(res.organisations[0].orgAddress.length).to.be.above(0);", "}", ");", "", "pm.test(\"Identifiers present in response\", function () {", " var res = pm.response.json();", " pm.expect(res.organisations[0].identifiers.length).to.be.above(0);", "}", ");", "", "pm.test(\"Functions present in response\", function () {", " var res = pm.response.json();", " pm.expect(res.organisations[0].functions.length).to.be.above(0);", "}", ");", "", "pm.test(\"Jurisdiction present in response\", function () {", " var res = pm.response.json();", " pm.expect(res.organisations[0].jurisdiction.length).to.be.above(0);", "}", ");", "", "pm.test(\"Org Documents present in response\", function () {", " var res = pm.response.json();", " pm.expect(res.organisations[0].functions[0].documents.length).to.be.above(0);", "}", ");", "", "pm.test(\"Function Documents present in response\", function () {", " var res = pm.response.json();", " pm.expect(res.organisations[0].documents.length).to.be.above(0);", "}", ");", "", "pm.test(\"Audit Details present in response\", function () {", " var res = pm.response.json();", " pm.expect(Object.keys(res.organisations[0].auditDetails).length).to.be.above(0);", "}", ");", "", "pm.test(\"Function Audit Details present in response\", function () {", " var res = pm.response.json();", " pm.expect(Object.keys(res.organisations[0].functions[0].auditDetails).length).to.be.above(0);", "}", ");", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"simple org registry\",\n \"ver\": \"v1\",\n \"ts\": 0,\n \"action\": \"string\",\n \"did\": \"string\",\n \"key\": \"string\",\n \"msgId\": \"create-org\",\n \"requesterId\": \"string\",\n \"authToken\": \"{{auth}}\"\n },\n \"organisations\": [\n {\n \"id\": \"{{orgId}}\",\n \"tenantId\": \"{{tenantId}}\",\n \"name\": \"{{orgName}}\",\n \"applicationNumber\": \"{{applicationNumber}}\",\n \"orgNumber\": \"{{orgNumber}}\",\n \"applicationStatus\": \"ACTIVE\",\n \"externalRefNumber\": \"org-10001\",\n \"dateOfIncorporation\": 1.680091451241E12,\n \"orgAddress\": [\n {\n \"id\": \"{{orgAddressId}}\",\n \"tenantId\": \"{{tenantId}}\",\n \"orgId\": null,\n \"doorNo\": \"doorNo-test\",\n \"plotNo\": \"plotNo-test\",\n \"landmark\": \"landmark-test\",\n \"city\": \"citya\",\n \"pincode\": \"123456\",\n \"district\": \"Amritsar\",\n \"resgion\": \"region-test\",\n \"state\": \"state-test\",\n \"country\": \"country-test\",\n \"additionDetails\": \"address-additional\",\n \"buildingName\": \"buildingName-1\",\n \"street\": \"street-test\",\n \"boundaryType\": \"{{boundaryType}}\",\n \"boundaryCode\": \"{{boundaryCode}}\",\n \"geoLocation\": {\n \"id\": \"{{geoLocationId}}\",\n \"addressId\": null,\n \"latitude\": 31.63089,\n \"longitude\": 74.871552,\n \"additionalDetails\": {\n \"geoLocation\": \"test-additionalDetails\"\n }\n }\n }\n ],\n \"contactDetails\": [\n {\n \"id\": \"{{contactDetailsId}}\",\n \"tenantId\": \"{{stateLevelTenant}}\",\n \"orgId\": null,\n \"contactName\": \"{{contactName}}\",\n \"contactMobileNumber\": \"{{contactMobileNumber}}\",\n \"contactEmail\": \"{{contactEmail}}\",\n \"active\": true,\n \"type\": \"CITIZEN\",\n \"createdBy\": \"11b0e02b-0145-4de2-bc42-c97b96264807\",\n \"createdDate\": 1680666676378,\n \"lastModifiedBy\": \"11b0e02b-0145-4de2-bc42-c97b96264807\",\n \"lastModifiedDate\": 1680666676378\n }\n ],\n \"identifiers\": [\n {\n \"id\": \"{{identifierId}}\",\n \"orgId\": null,\n \"type\": \"{{identifierType}}\",\n \"value\": \"{{identifierValue}}\",\n \"additionalDetails\": {\n \"identifiers\": \"test-additionalDetails\"\n }\n }\n ],\n \"functions\": [\n {\n \"id\": \"{{functionId}}\",\n \"orgId\": null,\n \"applicationNumber\": \"{{functionApplicationNumber}}\",\n \"type\": \"{{orgFunType}}\",\n \"category\": \"{{orgFunCategory}}\",\n \"class\": \"{{orgFuncClass}}\",\n \"validFrom\": 1.680091451241E12,\n \"validTo\": 1.68164754E12,\n \"applicationStatus\": null,\n \"wfStatus\": \"string\",\n \"isActive\": true,\n \"documents\": [\n {\n \"id\": \"{{functionDocumentId}}\",\n \"orgId\": null,\n \"orgFunctionId\": null,\n \"documentType\": \"PDF\",\n \"fileStore\": \"fileStore-test\",\n \"documentUid\": \"documentUid-test\",\n \"additionalDetails\": {\n \"documents-func\": \"test-additionalDetails\"\n }\n }\n ],\n \"additionalDetails\": {\n \"func\": \"test-additionalDetails\"\n },\n \"auditDetails\": {\n \"createdBy\": \"11b0e02b-0145-4de2-bc42-c97b96264807\",\n \"lastModifiedBy\": \"11b0e02b-0145-4de2-bc42-c97b96264807\",\n \"createdTime\": 1680666675994,\n \"lastModifiedTime\": 1680666675994\n }\n }\n ],\n \"jurisdiction\": [\n {\n \"id\": \"{{jurisdictionId}}\",\n \"orgId\": null,\n \"code\": \"{{jurisdictionCode}}\",\n \"additionalDetails\": {\n \"jurisdiction\": \"test-additionalDetails\"\n }\n }\n ],\n \"isActive\": true,\n \"documents\": [\n {\n \"id\": \"{{orgDocumentId}}\",\n \"orgId\": null,\n \"orgFunctionId\": null,\n \"documentType\": \"PDF\",\n \"fileStore\": \"fileStore-test\",\n \"documentUid\": \"documentUid-test\",\n \"additionalDetails\": {\n \"documents-org\": \"test-additionalDetails\"\n }\n }\n ],\n \"additionalDetails\": {\n \"org\": \"test-additionalDetails\"\n },\n \"auditDetails\": {\n \"createdBy\": \"11b0e02b-0145-4de2-bc42-c97b96264807\",\n \"lastModifiedBy\": \"11b0e02b-0145-4de2-bc42-c97b96264807\",\n \"createdTime\": 1680666675796,\n \"lastModifiedTime\": 1680666675796\n }\n }\n ],\n \"pagination\": null\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/org-services/organisation/v1/_update", "host": [ "{{base_url}}" ], "path": [ "org-services", "organisation", "v1", "_update" ] } }, "response": [] }, { "name": "Update Organisation - Success - Add Function", "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {} } }, { "listen": "test", "script": { "exec": [ "pm.test(\"RequestInfo is required\", function () {", " var req = JSON.parse(pm.request.body.raw);", " pm.expect(req.RequestInfo).to.not.be.null;", " pm.expect(req.RequestInfo).to.not.be.undefined;", "}", ");", "", "pm.test(\"Organisations are required\", function () {", " var req = JSON.parse(pm.request.body.raw);", " pm.expect(req.organisations).to.not.be.undefined;", " pm.expect(req.organisations).to.not.be.null;", "}", ");", "", "pm.test(\"TenantId is required\", function () {", " var req = JSON.parse(pm.request.body.raw);", " var org = req.organisations[0];", " pm.expect(org.tenantId).to.be.not.null;", " pm.expect(org.tenantId).to.be.not.undefined;", " pm.expect(org.tenantId).not.to.eql(\"\");", "}", ");", "", "pm.test(\"Name is required\", function () {", " var req = JSON.parse(pm.request.body.raw);", " var org = req.organisations[0];", " pm.expect(org.name).to.be.not.null;", " pm.expect(org.name).to.be.not.undefined;", " pm.expect(org.name).not.to.eql(\"\");", "}", ");", "", "pm.test(\"Organisation id is required\", function () {", " var req = JSON.parse(pm.request.body.raw);", " var org = req.organisations[0];", " pm.expect(org.id).to.be.not.null;", " pm.expect(org.id).to.be.not.undefined;", " pm.expect(org.id).not.to.eql(\"\");", "}", ");", "", "pm.test(\"Response is successful\", () =>", " pm.expect(pm.response.to.have.status(200))", ");", "", "", "pm.test(\"Response have same organisation id as request\", function () {", " var req = JSON.parse(pm.request.body.raw);", " var orgIdRequest = req.organisations[0].id;", " var res = pm.response.json();", " var orgIdResponse = res.organisations[0].id;", " ", " pm.expect(orgIdRequest).to.eql(orgIdResponse);", "}", ");", "", "pm.test(\"Response have upserted function\", function () {", " var res = pm.response.json();", " pm.expect(res.organisations[0].functions.length).to.be.above(1);", "}", ");", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"simple org registry\",\n \"ver\": \"v1\",\n \"ts\": 0,\n \"action\": \"string\",\n \"did\": \"string\",\n \"key\": \"string\",\n \"msgId\": \"create-org\",\n \"requesterId\": \"string\",\n \"authToken\": \"{{auth}}\"\n },\n \"organisations\": [\n {\n \"id\": \"{{orgId}}\",\n \"tenantId\": \"{{tenantId}}\",\n \"name\": \"{{orgName}}\",\n \"applicationNumber\": \"{{applicationNumber}}\",\n \"orgNumber\": \"{{orgNumber}}\",\n \"applicationStatus\": \"ACTIVE\",\n \"externalRefNumber\": \"org-10001\",\n \"dateOfIncorporation\": 1.680091451241E12,\n \"orgAddress\": [\n {\n \"id\": \"{{orgAddressId}}\",\n \"tenantId\": \"{{tenantId}}\",\n \"orgId\": null,\n \"doorNo\": \"doorNo-test\",\n \"plotNo\": \"plotNo-test\",\n \"landmark\": \"landmark-test\",\n \"city\": \"citya\",\n \"pincode\": \"123456\",\n \"district\": \"Amritsar\",\n \"resgion\": \"region-test\",\n \"state\": \"state-test\",\n \"country\": \"country-test\",\n \"additionDetails\": \"address-additional\",\n \"buildingName\": \"buildingName-1\",\n \"street\": \"street-test\",\n \"boundaryType\": \"{{boundaryType}}\",\n \"boundaryCode\": \"{{boundaryCode}}\",\n \"geoLocation\": {\n \"id\": \"{{geoLocationId}}\",\n \"addressId\": null,\n \"latitude\": 31.63089,\n \"longitude\": 74.871552,\n \"additionalDetails\": {\n \"geoLocation\": \"test-additionalDetails\"\n }\n }\n }\n ],\n \"contactDetails\": [\n {\n \"id\": \"{{contactDetailsId}}\",\n \"tenantId\": \"{{stateLevelTenant}}\",\n \"orgId\": null,\n \"contactName\": \"{{contactName}}\",\n \"contactMobileNumber\": \"{{contactMobileNumber}}\",\n \"contactEmail\": \"{{contactEmail}}\",\n \"active\": true,\n \"type\": \"CITIZEN\",\n \"createdBy\": \"11b0e02b-0145-4de2-bc42-c97b96264807\",\n \"createdDate\": 1680666676378,\n \"lastModifiedBy\": \"11b0e02b-0145-4de2-bc42-c97b96264807\",\n \"lastModifiedDate\": 1680666676378\n }\n ],\n \"identifiers\": [\n {\n \"id\": \"{{identifierId}}\",\n \"orgId\": null,\n \"type\": \"{{identifierType}}\",\n \"value\": \"{{identifierValue}}\",\n \"additionalDetails\": {\n \"identifiers\": \"test-additionalDetails\"\n }\n }\n ],\n \"functions\": [\n {\n \"id\": \"{{functionId}}\",\n \"orgId\": null,\n \"applicationNumber\": \"{{functionApplicationNumber}}\",\n \"type\": \"{{orgFunType}}\",\n \"category\": \"{{orgFunCategory}}\",\n \"class\": \"{{orgFuncClass}}\",\n \"validFrom\": 1.680091451241E12,\n \"validTo\": 1.68164754E12,\n \"applicationStatus\": null,\n \"wfStatus\": \"string\",\n \"isActive\": true,\n \"documents\": [\n {\n \"id\": \"{{functionDocumentId}}\",\n \"orgId\": null,\n \"orgFunctionId\": null,\n \"documentType\": \"PDF\",\n \"fileStore\": \"fileStore-test\",\n \"documentUid\": \"documentUid-test\",\n \"additionalDetails\": {\n \"documents-func\": \"test-additionalDetails\"\n }\n }\n ],\n \"additionalDetails\": {\n \"func\": \"test-additionalDetails\"\n },\n \"auditDetails\": {\n \"createdBy\": \"11b0e02b-0145-4de2-bc42-c97b96264807\",\n \"lastModifiedBy\": \"11b0e02b-0145-4de2-bc42-c97b96264807\",\n \"createdTime\": 1680666675994,\n \"lastModifiedTime\": 1680666675994\n }\n },\n {\n \"type\": \"{{orgFunType2}}\",\n \"category\": \"{{orgFunCategory2}}\",\n \"class\": \"{{orgFuncClass2}}\",\n \"validFrom\": 1.680091451241E12,\n \"validTo\": 1.68164754E12,\n \"applicationStatus\": null,\n \"wfStatus\": \"string\",\n \"isActive\": true,\n \"documents\": [\n {\n \"documentType\": \"PDF\",\n \"fileStore\": \"fileStore-test\",\n \"documentUid\": \"documentUid-test\",\n \"additionalDetails\": {\n \"documents-func\": \"test-additionalDetails\"\n }\n }\n ],\n \"additionalDetails\": {\n \"func\": \"test-additionalDetails\"\n }\n }\n ],\n \"jurisdiction\": [\n {\n \"id\": \"{{jurisdictionId}}\",\n \"orgId\": null,\n \"code\": \"{{jurisdictionCode}}\",\n \"additionalDetails\": {\n \"jurisdiction\": \"test-additionalDetails\"\n }\n }\n ],\n \"isActive\": true,\n \"documents\": [\n {\n \"id\": \"{{orgDocumentId}}\",\n \"orgId\": null,\n \"orgFunctionId\": null,\n \"documentType\": \"PDF\",\n \"fileStore\": \"fileStore-test\",\n \"documentUid\": \"documentUid-test\",\n \"additionalDetails\": {\n \"documents-org\": \"test-additionalDetails\"\n }\n }\n ],\n \"additionalDetails\": {\n \"org\": \"test-additionalDetails\"\n },\n \"auditDetails\": {\n \"createdBy\": \"11b0e02b-0145-4de2-bc42-c97b96264807\",\n \"lastModifiedBy\": \"11b0e02b-0145-4de2-bc42-c97b96264807\",\n \"createdTime\": 1680666675796,\n \"lastModifiedTime\": 1680666675796\n }\n }\n ],\n \"pagination\": null\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/org-services/organisation/v1/_update", "host": [ "{{base_url}}" ], "path": [ "org-services", "organisation", "v1", "_update" ] } }, "response": [] }, { "name": "Update Organisation - Success - Add Document", "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {} } }, { "listen": "test", "script": { "exec": [ "pm.test(\"RequestInfo is required\", function () {", " var req = JSON.parse(pm.request.body.raw);", " pm.expect(req.RequestInfo).to.not.be.null;", " pm.expect(req.RequestInfo).to.not.be.undefined;", "}", ");", "", "pm.test(\"Organisations are required\", function () {", " var req = JSON.parse(pm.request.body.raw);", " pm.expect(req.organisations).to.not.be.undefined;", " pm.expect(req.organisations).to.not.be.null;", "}", ");", "", "pm.test(\"TenantId is required\", function () {", " var req = JSON.parse(pm.request.body.raw);", " var org = req.organisations[0];", " pm.expect(org.tenantId).to.be.not.null;", " pm.expect(org.tenantId).to.be.not.undefined;", " pm.expect(org.tenantId).not.to.eql(\"\");", "}", ");", "", "pm.test(\"Name is required\", function () {", " var req = JSON.parse(pm.request.body.raw);", " var org = req.organisations[0];", " pm.expect(org.name).to.be.not.null;", " pm.expect(org.name).to.be.not.undefined;", " pm.expect(org.name).not.to.eql(\"\");", "}", ");", "", "pm.test(\"Organisation id is required\", function () {", " var req = JSON.parse(pm.request.body.raw);", " var org = req.organisations[0];", " pm.expect(org.id).to.be.not.null;", " pm.expect(org.id).to.be.not.undefined;", " pm.expect(org.id).not.to.eql(\"\");", "}", ");", "", "pm.test(\"Response is successful\", () =>", " pm.expect(pm.response.to.have.status(200))", ");", "", "", "pm.test(\"Response have same organisation id as request\", function () {", " var req = JSON.parse(pm.request.body.raw);", " var orgIdRequest = req.organisations[0].id;", " var res = pm.response.json();", " var orgIdResponse = res.organisations[0].id;", " ", " pm.expect(orgIdRequest).to.eql(orgIdResponse);", "}", ");", "", "pm.test(\"Response have upserted document\", function () {", " var res = pm.response.json();", " pm.expect(res.organisations[0].documents.length).to.be.above(1);", "}", ");", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"simple org registry\",\n \"ver\": \"v1\",\n \"ts\": 0,\n \"action\": \"string\",\n \"did\": \"string\",\n \"key\": \"string\",\n \"msgId\": \"create-org\",\n \"requesterId\": \"string\",\n \"authToken\": \"{{auth}}\"\n },\n \"organisations\": [\n {\n \"id\": \"{{orgId}}\",\n \"tenantId\": \"{{tenantId}}\",\n \"name\": \"{{orgName}}\",\n \"applicationNumber\": \"{{applicationNumber}}\",\n \"orgNumber\": \"{{orgNumber}}\",\n \"applicationStatus\": \"ACTIVE\",\n \"externalRefNumber\": \"org-10001\",\n \"dateOfIncorporation\": 1.680091451241E12,\n \"orgAddress\": [\n {\n \"id\": \"{{orgAddressId}}\",\n \"tenantId\": \"{{tenantId}}\",\n \"orgId\": null,\n \"doorNo\": \"doorNo-test\",\n \"plotNo\": \"plotNo-test\",\n \"landmark\": \"landmark-test\",\n \"city\": \"citya\",\n \"pincode\": \"123456\",\n \"district\": \"Amritsar\",\n \"resgion\": \"region-test\",\n \"state\": \"state-test\",\n \"country\": \"country-test\",\n \"additionDetails\": \"address-additional\",\n \"buildingName\": \"buildingName-1\",\n \"street\": \"street-test\",\n \"boundaryType\": \"{{boundaryType}}\",\n \"boundaryCode\": \"{{boundaryCode}}\",\n \"geoLocation\": {\n \"id\": \"{{geoLocationId}}\",\n \"addressId\": null,\n \"latitude\": 31.63089,\n \"longitude\": 74.871552,\n \"additionalDetails\": {\n \"geoLocation\": \"test-additionalDetails\"\n }\n }\n }\n ],\n \"contactDetails\": [\n {\n \"id\": \"{{contactDetailsId}}\",\n \"tenantId\": \"{{stateLevelTenant}}\",\n \"orgId\": null,\n \"contactName\": \"{{contactName}}\",\n \"contactMobileNumber\": \"{{contactMobileNumber}}\",\n \"contactEmail\": \"{{contactEmail}}\",\n \"active\": true,\n \"type\": \"CITIZEN\",\n \"createdBy\": \"11b0e02b-0145-4de2-bc42-c97b96264807\",\n \"createdDate\": 1680666676378,\n \"lastModifiedBy\": \"11b0e02b-0145-4de2-bc42-c97b96264807\",\n \"lastModifiedDate\": 1680666676378\n }\n ],\n \"identifiers\": [\n {\n \"id\": \"{{identifierId}}\",\n \"orgId\": null,\n \"type\": \"{{identifierType}}\",\n \"value\": \"{{identifierValue}}\",\n \"additionalDetails\": {\n \"identifiers\": \"test-additionalDetails\"\n }\n }\n ],\n \"functions\": [\n {\n \"id\": \"{{functionId}}\",\n \"orgId\": null,\n \"applicationNumber\": \"{{functionApplicationNumber}}\",\n \"type\": \"{{orgFunType}}\",\n \"category\": \"{{orgFunCategory}}\",\n \"class\": \"{{orgFuncClass}}\",\n \"validFrom\": 1.680091451241E12,\n \"validTo\": 1.68164754E12,\n \"applicationStatus\": null,\n \"wfStatus\": \"string\",\n \"isActive\": true,\n \"documents\": [\n {\n \"id\": \"{{functionDocumentId}}\",\n \"orgId\": null,\n \"orgFunctionId\": null,\n \"documentType\": \"PDF\",\n \"fileStore\": \"fileStore-test\",\n \"documentUid\": \"documentUid-test\",\n \"additionalDetails\": {\n \"documents-func\": \"test-additionalDetails\"\n }\n }\n ],\n \"additionalDetails\": {\n \"func\": \"test-additionalDetails\"\n },\n \"auditDetails\": {\n \"createdBy\": \"11b0e02b-0145-4de2-bc42-c97b96264807\",\n \"lastModifiedBy\": \"11b0e02b-0145-4de2-bc42-c97b96264807\",\n \"createdTime\": 1680666675994,\n \"lastModifiedTime\": 1680666675994\n }\n }\n ],\n \"jurisdiction\": [\n {\n \"id\": \"{{jurisdictionId}}\",\n \"orgId\": null,\n \"code\": \"{{jurisdictionCode}}\",\n \"additionalDetails\": {\n \"jurisdiction\": \"test-additionalDetails\"\n }\n }\n ],\n \"isActive\": true,\n \"documents\": [\n {\n \"id\": \"{{orgDocumentId}}\",\n \"orgId\": null,\n \"orgFunctionId\": null,\n \"documentType\": \"PDF\",\n \"fileStore\": \"fileStore-test\",\n \"documentUid\": \"documentUid-test\",\n \"additionalDetails\": {\n \"documents-org\": \"test-additionalDetails\"\n }\n },\n {\n \"documentType\": \"PDF\",\n \"fileStore\": \"fileStore-test\",\n \"documentUid\": \"documentUid-test\",\n \"additionalDetails\": {\n \"documents-org\": \"test-additionalDetails\"\n }\n }\n ],\n \"additionalDetails\": {\n \"org\": \"test-additionalDetails\"\n },\n \"auditDetails\": {\n \"createdBy\": \"11b0e02b-0145-4de2-bc42-c97b96264807\",\n \"lastModifiedBy\": \"11b0e02b-0145-4de2-bc42-c97b96264807\",\n \"createdTime\": 1680666675796,\n \"lastModifiedTime\": 1680666675796\n }\n }\n ],\n \"pagination\": null\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/org-services/organisation/v1/_update", "host": [ "{{base_url}}" ], "path": [ "org-services", "organisation", "v1", "_update" ] } }, "response": [] }, { "name": "Update Organisation - Success - Add Function Document", "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {} } }, { "listen": "test", "script": { "exec": [ "pm.test(\"RequestInfo is required\", function () {", " var req = JSON.parse(pm.request.body.raw);", " pm.expect(req.RequestInfo).to.not.be.null;", " pm.expect(req.RequestInfo).to.not.be.undefined;", "}", ");", "", "pm.test(\"Organisations are required\", function () {", " var req = JSON.parse(pm.request.body.raw);", " pm.expect(req.organisations).to.not.be.undefined;", " pm.expect(req.organisations).to.not.be.null;", "}", ");", "", "pm.test(\"TenantId is required\", function () {", " var req = JSON.parse(pm.request.body.raw);", " var org = req.organisations[0];", " pm.expect(org.tenantId).to.be.not.null;", " pm.expect(org.tenantId).to.be.not.undefined;", " pm.expect(org.tenantId).not.to.eql(\"\");", "}", ");", "", "pm.test(\"Name is required\", function () {", " var req = JSON.parse(pm.request.body.raw);", " var org = req.organisations[0];", " pm.expect(org.name).to.be.not.null;", " pm.expect(org.name).to.be.not.undefined;", " pm.expect(org.name).not.to.eql(\"\");", "}", ");", "", "pm.test(\"Organisation id is required\", function () {", " var req = JSON.parse(pm.request.body.raw);", " var org = req.organisations[0];", " pm.expect(org.id).to.be.not.null;", " pm.expect(org.id).to.be.not.undefined;", " pm.expect(org.id).not.to.eql(\"\");", "}", ");", "", "pm.test(\"Response is successful\", () =>", " pm.expect(pm.response.to.have.status(200))", ");", "", "", "pm.test(\"Response have same organisation id as request\", function () {", " var req = JSON.parse(pm.request.body.raw);", " var orgIdRequest = req.organisations[0].id;", " var res = pm.response.json();", " var orgIdResponse = res.organisations[0].id;", " ", " pm.expect(orgIdRequest).to.eql(orgIdResponse);", "}", ");", "", "pm.test(\"Response have upserted document\", function () {", " var res = pm.response.json();", " pm.expect(res.organisations[0].functions[0].documents.length).to.be.above(1);", "}", ");", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"simple org registry\",\n \"ver\": \"v1\",\n \"ts\": 0,\n \"action\": \"string\",\n \"did\": \"string\",\n \"key\": \"string\",\n \"msgId\": \"create-org\",\n \"requesterId\": \"string\",\n \"authToken\": \"{{auth}}\"\n },\n \"organisations\": [\n {\n \"id\": \"{{orgId}}\",\n \"tenantId\": \"{{tenantId}}\",\n \"name\": \"{{orgName}}\",\n \"applicationNumber\": \"{{applicationNumber}}\",\n \"orgNumber\": \"{{orgNumber}}\",\n \"applicationStatus\": \"ACTIVE\",\n \"externalRefNumber\": \"org-10001\",\n \"dateOfIncorporation\": 1.680091451241E12,\n \"orgAddress\": [\n {\n \"id\": \"{{orgAddressId}}\",\n \"tenantId\": \"{{tenantId}}\",\n \"orgId\": null,\n \"doorNo\": \"doorNo-test\",\n \"plotNo\": \"plotNo-test\",\n \"landmark\": \"landmark-test\",\n \"city\": \"citya\",\n \"pincode\": \"123456\",\n \"district\": \"Amritsar\",\n \"resgion\": \"region-test\",\n \"state\": \"state-test\",\n \"country\": \"country-test\",\n \"additionDetails\": \"address-additional\",\n \"buildingName\": \"buildingName-1\",\n \"street\": \"street-test\",\n \"boundaryType\": \"{{boundaryType}}\",\n \"boundaryCode\": \"{{boundaryCode}}\",\n \"geoLocation\": {\n \"id\": \"{{geoLocationId}}\",\n \"addressId\": null,\n \"latitude\": 31.63089,\n \"longitude\": 74.871552,\n \"additionalDetails\": {\n \"geoLocation\": \"test-additionalDetails\"\n }\n }\n }\n ],\n \"contactDetails\": [\n {\n \"id\": \"{{contactDetailsId}}\",\n \"tenantId\": \"{{stateLevelTenant}}\",\n \"orgId\": null,\n \"contactName\": \"{{contactName}}\",\n \"contactMobileNumber\": \"{{contactMobileNumber}}\",\n \"contactEmail\": \"{{contactEmail}}\",\n \"active\": true,\n \"type\": \"CITIZEN\",\n \"createdBy\": \"11b0e02b-0145-4de2-bc42-c97b96264807\",\n \"createdDate\": 1680666676378,\n \"lastModifiedBy\": \"11b0e02b-0145-4de2-bc42-c97b96264807\",\n \"lastModifiedDate\": 1680666676378\n }\n ],\n \"identifiers\": [\n {\n \"id\": \"{{identifierId}}\",\n \"orgId\": null,\n \"type\": \"{{identifierType}}\",\n \"value\": \"{{identifierValue}}\",\n \"additionalDetails\": {\n \"identifiers\": \"test-additionalDetails\"\n }\n }\n ],\n \"functions\": [\n {\n \"id\": \"{{functionId}}\",\n \"orgId\": null,\n \"applicationNumber\": \"{{functionApplicationNumber}}\",\n \"type\": \"{{orgFunType}}\",\n \"category\": \"{{orgFunCategory}}\",\n \"class\": \"{{orgFuncClass}}\",\n \"validFrom\": 1.680091451241E12,\n \"validTo\": 1.68164754E12,\n \"applicationStatus\": null,\n \"wfStatus\": \"string\",\n \"isActive\": true,\n \"documents\": [\n {\n \"id\": \"{{functionDocumentId}}\",\n \"orgId\": null,\n \"orgFunctionId\": null,\n \"documentType\": \"PDF\",\n \"fileStore\": \"fileStore-test\",\n \"documentUid\": \"documentUid-test\",\n \"additionalDetails\": {\n \"documents-func\": \"test-additionalDetails\"\n }\n },\n {\n \"documentType\": \"PDF\",\n \"fileStore\": \"fileStore-test\",\n \"documentUid\": \"documentUid-test\",\n \"additionalDetails\": {\n \"documents-func\": \"test-additionalDetails\"\n }\n }\n ],\n \"additionalDetails\": {\n \"func\": \"test-additionalDetails\"\n },\n \"auditDetails\": {\n \"createdBy\": \"11b0e02b-0145-4de2-bc42-c97b96264807\",\n \"lastModifiedBy\": \"11b0e02b-0145-4de2-bc42-c97b96264807\",\n \"createdTime\": 1680666675994,\n \"lastModifiedTime\": 1680666675994\n }\n }\n ],\n \"jurisdiction\": [\n {\n \"id\": \"{{jurisdictionId}}\",\n \"orgId\": null,\n \"code\": \"{{jurisdictionCode}}\",\n \"additionalDetails\": {\n \"jurisdiction\": \"test-additionalDetails\"\n }\n }\n ],\n \"isActive\": true,\n \"documents\": [\n {\n \"id\": \"{{orgDocumentId}}\",\n \"orgId\": null,\n \"orgFunctionId\": null,\n \"documentType\": \"PDF\",\n \"fileStore\": \"fileStore-test\",\n \"documentUid\": \"documentUid-test\",\n \"additionalDetails\": {\n \"documents-org\": \"test-additionalDetails\"\n }\n }\n ],\n \"additionalDetails\": {\n \"org\": \"test-additionalDetails\"\n },\n \"auditDetails\": {\n \"createdBy\": \"11b0e02b-0145-4de2-bc42-c97b96264807\",\n \"lastModifiedBy\": \"11b0e02b-0145-4de2-bc42-c97b96264807\",\n \"createdTime\": 1680666675796,\n \"lastModifiedTime\": 1680666675796\n }\n }\n ],\n \"pagination\": null\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/org-services/organisation/v1/_update", "host": [ "{{base_url}}" ], "path": [ "org-services", "organisation", "v1", "_update" ] } }, "response": [] }, { "name": "Update Organisation - Success - Add Tax Identifier", "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {} } }, { "listen": "test", "script": { "exec": [ "pm.test(\"RequestInfo is required\", function () {", " var req = JSON.parse(pm.request.body.raw);", " pm.expect(req.RequestInfo).to.not.be.null;", " pm.expect(req.RequestInfo).to.not.be.undefined;", "}", ");", "", "pm.test(\"Organisations are required\", function () {", " var req = JSON.parse(pm.request.body.raw);", " pm.expect(req.organisations).to.not.be.undefined;", " pm.expect(req.organisations).to.not.be.null;", "}", ");", "", "pm.test(\"TenantId is required\", function () {", " var req = JSON.parse(pm.request.body.raw);", " var org = req.organisations[0];", " pm.expect(org.tenantId).to.be.not.null;", " pm.expect(org.tenantId).to.be.not.undefined;", " pm.expect(org.tenantId).not.to.eql(\"\");", "}", ");", "", "pm.test(\"Name is required\", function () {", " var req = JSON.parse(pm.request.body.raw);", " var org = req.organisations[0];", " pm.expect(org.name).to.be.not.null;", " pm.expect(org.name).to.be.not.undefined;", " pm.expect(org.name).not.to.eql(\"\");", "}", ");", "", "pm.test(\"Organisation id is required\", function () {", " var req = JSON.parse(pm.request.body.raw);", " var org = req.organisations[0];", " pm.expect(org.id).to.be.not.null;", " pm.expect(org.id).to.be.not.undefined;", " pm.expect(org.id).not.to.eql(\"\");", "}", ");", "", "pm.test(\"Response is successful\", () =>", " pm.expect(pm.response.to.have.status(200))", ");", "", "", "pm.test(\"Response have same organisation id as request\", function () {", " var req = JSON.parse(pm.request.body.raw);", " var orgIdRequest = req.organisations[0].id;", " var res = pm.response.json();", " var orgIdResponse = res.organisations[0].id;", " ", " pm.expect(orgIdRequest).to.eql(orgIdResponse);", "}", ");", "", "pm.test(\"Response have upserted document\", function () {", " var res = pm.response.json();", " pm.expect(res.organisations[0].identifiers.length).to.be.above(1);", "}", ");", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"simple org registry\",\n \"ver\": \"v1\",\n \"ts\": 0,\n \"action\": \"string\",\n \"did\": \"string\",\n \"key\": \"string\",\n \"msgId\": \"create-org\",\n \"requesterId\": \"string\",\n \"authToken\": \"{{auth}}\"\n },\n \"organisations\": [\n {\n \"id\": \"{{orgId}}\",\n \"tenantId\": \"{{tenantId}}\",\n \"name\": \"{{orgName}}\",\n \"applicationNumber\": \"{{applicationNumber}}\",\n \"orgNumber\": \"{{orgNumber}}\",\n \"applicationStatus\": \"ACTIVE\",\n \"externalRefNumber\": \"org-10001\",\n \"dateOfIncorporation\": 1.680091451241E12,\n \"orgAddress\": [\n {\n \"id\": \"{{orgAddressId}}\",\n \"tenantId\": \"{{tenantId}}\",\n \"orgId\": null,\n \"doorNo\": \"doorNo-test\",\n \"plotNo\": \"plotNo-test\",\n \"landmark\": \"landmark-test\",\n \"city\": \"citya\",\n \"pincode\": \"123456\",\n \"district\": \"Amritsar\",\n \"resgion\": \"region-test\",\n \"state\": \"state-test\",\n \"country\": \"country-test\",\n \"additionDetails\": \"address-additional\",\n \"buildingName\": \"buildingName-1\",\n \"street\": \"street-test\",\n \"boundaryType\": \"{{boundaryType}}\",\n \"boundaryCode\": \"{{boundaryCode}}\",\n \"geoLocation\": {\n \"id\": \"{{geoLocationId}}\",\n \"addressId\": null,\n \"latitude\": 31.63089,\n \"longitude\": 74.871552,\n \"additionalDetails\": {\n \"geoLocation\": \"test-additionalDetails\"\n }\n }\n }\n ],\n \"contactDetails\": [\n {\n \"id\": \"{{contactDetailsId}}\",\n \"tenantId\": \"{{stateLevelTenant}}\",\n \"orgId\": null,\n \"contactName\": \"{{contactName}}\",\n \"contactMobileNumber\": \"{{contactMobileNumber}}\",\n \"contactEmail\": \"{{contactEmail}}\",\n \"active\": true,\n \"type\": \"CITIZEN\",\n \"createdBy\": \"11b0e02b-0145-4de2-bc42-c97b96264807\",\n \"createdDate\": 1680666676378,\n \"lastModifiedBy\": \"11b0e02b-0145-4de2-bc42-c97b96264807\",\n \"lastModifiedDate\": 1680666676378\n }\n ],\n \"identifiers\": [\n {\n \"id\": \"{{identifierId}}\",\n \"orgId\": null,\n \"type\": \"{{identifierType}}\",\n \"value\": \"{{identifierValue}}\",\n \"additionalDetails\": {\n \"identifiers\": \"test-additionalDetails\"\n }\n },\n {\n \"type\": \"{{identifierType2}}\",\n \"value\": \"{{identifierValue2}}\",\n \"additionalDetails\": {\n \"identifiers\": \"test-additionalDetails\"\n }\n }\n ],\n \"functions\": [\n {\n \"id\": \"{{functionId}}\",\n \"orgId\": null,\n \"applicationNumber\": \"{{functionApplicationNumber}}\",\n \"type\": \"{{orgFunType}}\",\n \"category\": \"{{orgFunCategory}}\",\n \"class\": \"{{orgFuncClass}}\",\n \"validFrom\": 1.680091451241E12,\n \"validTo\": 1.68164754E12,\n \"applicationStatus\": null,\n \"wfStatus\": \"string\",\n \"isActive\": true,\n \"documents\": [\n {\n \"id\": \"{{functionDocumentId}}\",\n \"orgId\": null,\n \"orgFunctionId\": null,\n \"documentType\": \"PDF\",\n \"fileStore\": \"fileStore-test\",\n \"documentUid\": \"documentUid-test\",\n \"additionalDetails\": {\n \"documents-func\": \"test-additionalDetails\"\n }\n }\n ],\n \"additionalDetails\": {\n \"func\": \"test-additionalDetails\"\n },\n \"auditDetails\": {\n \"createdBy\": \"11b0e02b-0145-4de2-bc42-c97b96264807\",\n \"lastModifiedBy\": \"11b0e02b-0145-4de2-bc42-c97b96264807\",\n \"createdTime\": 1680666675994,\n \"lastModifiedTime\": 1680666675994\n }\n }\n ],\n \"jurisdiction\": [\n {\n \"id\": \"{{jurisdictionId}}\",\n \"orgId\": null,\n \"code\": \"{{jurisdictionCode}}\",\n \"additionalDetails\": {\n \"jurisdiction\": \"test-additionalDetails\"\n }\n }\n ],\n \"isActive\": true,\n \"documents\": [\n {\n \"id\": \"{{orgDocumentId}}\",\n \"orgId\": null,\n \"orgFunctionId\": null,\n \"documentType\": \"PDF\",\n \"fileStore\": \"fileStore-test\",\n \"documentUid\": \"documentUid-test\",\n \"additionalDetails\": {\n \"documents-org\": \"test-additionalDetails\"\n }\n }\n ],\n \"additionalDetails\": {\n \"org\": \"test-additionalDetails\"\n },\n \"auditDetails\": {\n \"createdBy\": \"11b0e02b-0145-4de2-bc42-c97b96264807\",\n \"lastModifiedBy\": \"11b0e02b-0145-4de2-bc42-c97b96264807\",\n \"createdTime\": 1680666675796,\n \"lastModifiedTime\": 1680666675796\n }\n }\n ],\n \"pagination\": null\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/org-services/organisation/v1/_update", "host": [ "{{base_url}}" ], "path": [ "org-services", "organisation", "v1", "_update" ] } }, "response": [] }, { "name": "Update Organisation - Error - Organisations not provided", "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {} } }, { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => ", " pm.expect(pm.response.to.have.status(400)));", "", "pm.test(\"Correct Error with message and code is received\", function () {", " var res = pm.response.json();", " var code = res.Errors[0].code;", " var message = res.Errors[0].message;", " pm.expect(code).to.eql(\"ORGANISATION_DETAILS\");", " pm.expect(message).to.eql(\"At least one organisation detail is required\");", " }", ");" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"simple org registry\",\n \"ver\": \"v1\",\n \"ts\": 0,\n \"action\": \"string\",\n \"did\": \"string\",\n \"key\": \"string\",\n \"msgId\": \"create-org\",\n \"requesterId\": \"string\",\n \"authToken\": \"{{auth}}\"\n },\n \"organisations\": []\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/org-services/organisation/v1/_update", "host": [ "{{base_url}}" ], "path": [ "org-services", "organisation", "v1", "_update" ] } }, "response": [] }, { "name": "Update Organisation - Error - TenantId not provided", "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {} } }, { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => {", " pm.expect(pm.response.to.not.have.status(200));", "});", " ", "", "pm.test(\"Correct Error with message and code is received\", function () {", " var res = pm.response.json();", " pm.expect(res.Errors.length).to.be.above(0);", " }", ");" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"simple org registry\",\n \"ver\": \"v1\",\n \"ts\": 0,\n \"action\": \"string\",\n \"did\": \"string\",\n \"key\": \"string\",\n \"msgId\": \"create-org\",\n \"requesterId\": \"string\",\n \"authToken\": \"{{auth}}\"\n },\n \"organisations\": [\n {\n \"id\": \"{{orgId}}\",\n \"name\": \"{{orgName}}\",\n \"applicationNumber\": \"{{applicationNumber}}\",\n \"orgNumber\": \"{{orgNumber}}\",\n \"applicationStatus\": \"ACTIVE\",\n \"externalRefNumber\": \"org-10001\",\n \"dateOfIncorporation\": 1.680091451241E12,\n \"orgAddress\": [\n {\n \"id\": \"{{orgAddressId}}\",\n \"tenantId\": \"{{tenantId}}\",\n \"orgId\": null,\n \"doorNo\": \"doorNo-test\",\n \"plotNo\": \"plotNo-test\",\n \"landmark\": \"landmark-test\",\n \"city\": \"citya\",\n \"pincode\": \"123456\",\n \"district\": \"Amritsar\",\n \"resgion\": \"region-test\",\n \"state\": \"state-test\",\n \"country\": \"country-test\",\n \"additionDetails\": \"address-additional\",\n \"buildingName\": \"buildingName-1\",\n \"street\": \"street-test\",\n \"boundaryType\": \"{{boundaryType}}\",\n \"boundaryCode\": \"{{boundaryCode}}\",\n \"geoLocation\": {\n \"id\": \"{{geoLocationId}}\",\n \"addressId\": null,\n \"latitude\": 31.63089,\n \"longitude\": 74.871552,\n \"additionalDetails\": {\n \"geoLocation\": \"test-additionalDetails\"\n }\n }\n }\n ],\n \"contactDetails\": [\n {\n \"id\": \"{{contactDetailsId}}\",\n \"tenantId\": \"{{stateLevelTenant}}\",\n \"orgId\": null,\n \"contactName\": \"{{contactName}}\",\n \"contactMobileNumber\": \"{{contactMobileNumber}}\",\n \"contactEmail\": \"{{contactEmail}}\",\n \"active\": true,\n \"type\": \"CITIZEN\",\n \"createdBy\": \"11b0e02b-0145-4de2-bc42-c97b96264807\",\n \"createdDate\": 1680666676378,\n \"lastModifiedBy\": \"11b0e02b-0145-4de2-bc42-c97b96264807\",\n \"lastModifiedDate\": 1680666676378\n }\n ],\n \"identifiers\": [\n {\n \"id\": \"{{identifierId}}\",\n \"orgId\": null,\n \"type\": \"{{identifierType}}\",\n \"value\": \"{{identifierValue}}\",\n \"additionalDetails\": {\n \"identifiers\": \"test-additionalDetails\"\n }\n }\n ],\n \"functions\": [\n {\n \"id\": \"{{functionId}}\",\n \"orgId\": null,\n \"applicationNumber\": \"{{functionApplicationNumber}}\",\n \"type\": \"{{orgFunType}}\",\n \"category\": \"{{orgFunCategory}}\",\n \"class\": \"{{orgFuncClass}}\",\n \"validFrom\": 1.680091451241E12,\n \"validTo\": 1.68164754E12,\n \"applicationStatus\": null,\n \"wfStatus\": \"string\",\n \"isActive\": true,\n \"documents\": [\n {\n \"id\": \"{{functionDocumentId}}\",\n \"orgId\": null,\n \"orgFunctionId\": null,\n \"documentType\": \"PDF\",\n \"fileStore\": \"fileStore-test\",\n \"documentUid\": \"documentUid-test\",\n \"additionalDetails\": {\n \"documents-func\": \"test-additionalDetails\"\n }\n }\n ],\n \"additionalDetails\": {\n \"func\": \"test-additionalDetails\"\n },\n \"auditDetails\": {\n \"createdBy\": \"11b0e02b-0145-4de2-bc42-c97b96264807\",\n \"lastModifiedBy\": \"11b0e02b-0145-4de2-bc42-c97b96264807\",\n \"createdTime\": 1680666675994,\n \"lastModifiedTime\": 1680666675994\n }\n }\n ],\n \"jurisdiction\": [\n {\n \"id\": \"{{jurisdictionId}}\",\n \"orgId\": null,\n \"code\": \"{{jurisdictionCode}}\",\n \"additionalDetails\": {\n \"jurisdiction\": \"test-additionalDetails\"\n }\n }\n ],\n \"isActive\": true,\n \"documents\": [\n {\n \"id\": \"{{orgDocumentId}}\",\n \"orgId\": null,\n \"orgFunctionId\": null,\n \"documentType\": \"PDF\",\n \"fileStore\": \"fileStore-test\",\n \"documentUid\": \"documentUid-test\",\n \"additionalDetails\": {\n \"documents-org\": \"test-additionalDetails\"\n }\n }\n ],\n \"additionalDetails\": {\n \"org\": \"test-additionalDetails\"\n },\n \"auditDetails\": {\n \"createdBy\": \"11b0e02b-0145-4de2-bc42-c97b96264807\",\n \"lastModifiedBy\": \"11b0e02b-0145-4de2-bc42-c97b96264807\",\n \"createdTime\": 1680666675796,\n \"lastModifiedTime\": 1680666675796\n }\n }\n ],\n \"pagination\": null\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/org-services/organisation/v1/_update", "host": [ "{{base_url}}" ], "path": [ "org-services", "organisation", "v1", "_update" ] } }, "response": [] }, { "name": "Update Organisation - Error - OrgId not provided", "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {} } }, { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => ", " pm.expect(pm.response.to.have.status(400)));", "", "pm.test(\"Correct Error with message and code is received\", function () {", " var res = pm.response.json();", " var code = res.Errors[0].code;", " var message = res.Errors[0].message;", " pm.expect(code).to.eql(\"ORGANISATION_ID\");", " pm.expect(message).to.eql(\"Organisation id is missing\");", " }", ");" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"simple org registry\",\n \"ver\": \"v1\",\n \"ts\": 0,\n \"action\": \"string\",\n \"did\": \"string\",\n \"key\": \"string\",\n \"msgId\": \"create-org\",\n \"requesterId\": \"string\",\n \"authToken\": \"{{auth}}\"\n },\n \"organisations\": [\n {\n \"tenantId\": \"{{tenantId}}\",\n \"name\": \"{{orgName}}\",\n \"applicationNumber\": \"{{applicationNumber}}\",\n \"orgNumber\": \"{{orgNumber}}\",\n \"applicationStatus\": \"ACTIVE\",\n \"externalRefNumber\": \"org-10001\",\n \"dateOfIncorporation\": 1.680091451241E12,\n \"orgAddress\": [\n {\n \"id\": \"{{orgAddressId}}\",\n \"tenantId\": \"{{tenantId}}\",\n \"orgId\": null,\n \"doorNo\": \"doorNo-test\",\n \"plotNo\": \"plotNo-test\",\n \"landmark\": \"landmark-test\",\n \"city\": \"citya\",\n \"pincode\": \"123456\",\n \"district\": \"Amritsar\",\n \"resgion\": \"region-test\",\n \"state\": \"state-test\",\n \"country\": \"country-test\",\n \"additionDetails\": \"address-additional\",\n \"buildingName\": \"buildingName-1\",\n \"street\": \"street-test\",\n \"boundaryType\": \"{{boundaryType}}\",\n \"boundaryCode\": \"{{boundaryCode}}\",\n \"geoLocation\": {\n \"id\": \"{{geoLocationId}}\",\n \"addressId\": null,\n \"latitude\": 31.63089,\n \"longitude\": 74.871552,\n \"additionalDetails\": {\n \"geoLocation\": \"test-additionalDetails\"\n }\n }\n }\n ],\n \"contactDetails\": [\n {\n \"id\": \"{{contactDetailsId}}\",\n \"tenantId\": \"{{stateLevelTenant}}\",\n \"orgId\": null,\n \"contactName\": \"{{contactName}}\",\n \"contactMobileNumber\": \"{{contactMobileNumber}}\",\n \"contactEmail\": \"{{contactEmail}}\",\n \"active\": true,\n \"type\": \"CITIZEN\",\n \"createdBy\": \"11b0e02b-0145-4de2-bc42-c97b96264807\",\n \"createdDate\": 1680666676378,\n \"lastModifiedBy\": \"11b0e02b-0145-4de2-bc42-c97b96264807\",\n \"lastModifiedDate\": 1680666676378\n }\n ],\n \"identifiers\": [\n {\n \"id\": \"{{identifierId}}\",\n \"orgId\": null,\n \"type\": \"{{identifierType}}\",\n \"value\": \"{{identifierValue}}\",\n \"additionalDetails\": {\n \"identifiers\": \"test-additionalDetails\"\n }\n }\n ],\n \"functions\": [\n {\n \"id\": \"{{functionId}}\",\n \"orgId\": null,\n \"applicationNumber\": \"{{functionApplicationNumber}}\",\n \"type\": \"{{orgFunType}}\",\n \"category\": \"{{orgFunCategory}}\",\n \"class\": \"{{orgFuncClass}}\",\n \"validFrom\": 1.680091451241E12,\n \"validTo\": 1.68164754E12,\n \"applicationStatus\": null,\n \"wfStatus\": \"string\",\n \"isActive\": true,\n \"documents\": [\n {\n \"id\": \"{{functionDocumentId}}\",\n \"orgId\": null,\n \"orgFunctionId\": null,\n \"documentType\": \"PDF\",\n \"fileStore\": \"fileStore-test\",\n \"documentUid\": \"documentUid-test\",\n \"additionalDetails\": {\n \"documents-func\": \"test-additionalDetails\"\n }\n }\n ],\n \"additionalDetails\": {\n \"func\": \"test-additionalDetails\"\n },\n \"auditDetails\": {\n \"createdBy\": \"11b0e02b-0145-4de2-bc42-c97b96264807\",\n \"lastModifiedBy\": \"11b0e02b-0145-4de2-bc42-c97b96264807\",\n \"createdTime\": 1680666675994,\n \"lastModifiedTime\": 1680666675994\n }\n }\n ],\n \"jurisdiction\": [\n {\n \"id\": \"{{jurisdictionId}}\",\n \"orgId\": null,\n \"code\": \"{{jurisdictionCode}}\",\n \"additionalDetails\": {\n \"jurisdiction\": \"test-additionalDetails\"\n }\n }\n ],\n \"isActive\": true,\n \"documents\": [\n {\n \"id\": \"{{orgDocumentId}}\",\n \"orgId\": null,\n \"orgFunctionId\": null,\n \"documentType\": \"PDF\",\n \"fileStore\": \"fileStore-test\",\n \"documentUid\": \"documentUid-test\",\n \"additionalDetails\": {\n \"documents-org\": \"test-additionalDetails\"\n }\n }\n ],\n \"additionalDetails\": {\n \"org\": \"test-additionalDetails\"\n },\n \"auditDetails\": {\n \"createdBy\": \"11b0e02b-0145-4de2-bc42-c97b96264807\",\n \"lastModifiedBy\": \"11b0e02b-0145-4de2-bc42-c97b96264807\",\n \"createdTime\": 1680666675796,\n \"lastModifiedTime\": 1680666675796\n }\n }\n ],\n \"pagination\": null\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/org-services/organisation/v1/_update", "host": [ "{{base_url}}" ], "path": [ "org-services", "organisation", "v1", "_update" ] } }, "response": [] }, { "name": "Update Organisation - Error - Organisation Name not provided", "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {} } }, { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => ", " pm.expect(pm.response.to.have.status(400)));", "", "pm.test(\"Correct Error with message and code is received\", function () {", " var res = pm.response.json();", " var code = res.Errors[0].code;", " var message = res.Errors[0].message;", " pm.expect(code).to.eql(\"ORG_NAME\");", " pm.expect(message).to.eql(\"Organisation name is mandatory\");", " }", ");" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"simple org registry\",\n \"ver\": \"v1\",\n \"ts\": 0,\n \"action\": \"string\",\n \"did\": \"string\",\n \"key\": \"string\",\n \"msgId\": \"create-org\",\n \"requesterId\": \"string\",\n \"authToken\": \"{{auth}}\"\n },\n \"organisations\": [\n {\n \"id\": \"{{orgId}}\",\n \"tenantId\": \"{{tenantId}}\",\n \"applicationNumber\": \"{{applicationNumber}}\",\n \"orgNumber\": \"{{orgNumber}}\",\n \"applicationStatus\": \"ACTIVE\",\n \"externalRefNumber\": \"org-10001\",\n \"dateOfIncorporation\": 1.680091451241E12,\n \"orgAddress\": [\n {\n \"id\": \"{{orgAddressId}}\",\n \"tenantId\": \"{{tenantId}}\",\n \"orgId\": null,\n \"doorNo\": \"doorNo-test\",\n \"plotNo\": \"plotNo-test\",\n \"landmark\": \"landmark-test\",\n \"city\": \"citya\",\n \"pincode\": \"123456\",\n \"district\": \"Amritsar\",\n \"resgion\": \"region-test\",\n \"state\": \"state-test\",\n \"country\": \"country-test\",\n \"additionDetails\": \"address-additional\",\n \"buildingName\": \"buildingName-1\",\n \"street\": \"street-test\",\n \"boundaryType\": \"{{boundaryType}}\",\n \"boundaryCode\": \"{{boundaryCode}}\",\n \"geoLocation\": {\n \"id\": \"{{geoLocationId}}\",\n \"addressId\": null,\n \"latitude\": 31.63089,\n \"longitude\": 74.871552,\n \"additionalDetails\": {\n \"geoLocation\": \"test-additionalDetails\"\n }\n }\n }\n ],\n \"contactDetails\": [\n {\n \"id\": \"{{contactDetailsId}}\",\n \"tenantId\": \"{{stateLevelTenant}}\",\n \"orgId\": null,\n \"contactName\": \"{{contactName}}\",\n \"contactMobileNumber\": \"{{contactMobileNumber}}\",\n \"contactEmail\": \"{{contactEmail}}\",\n \"active\": true,\n \"type\": \"CITIZEN\",\n \"createdBy\": \"11b0e02b-0145-4de2-bc42-c97b96264807\",\n \"createdDate\": 1680666676378,\n \"lastModifiedBy\": \"11b0e02b-0145-4de2-bc42-c97b96264807\",\n \"lastModifiedDate\": 1680666676378\n }\n ],\n \"identifiers\": [\n {\n \"id\": \"{{identifierId}}\",\n \"orgId\": null,\n \"type\": \"{{identifierType}}\",\n \"value\": \"{{identifierValue}}\",\n \"additionalDetails\": {\n \"identifiers\": \"test-additionalDetails\"\n }\n }\n ],\n \"functions\": [\n {\n \"id\": \"{{functionId}}\",\n \"orgId\": null,\n \"applicationNumber\": \"{{functionApplicationNumber}}\",\n \"type\": \"{{orgFunType}}\",\n \"category\": \"{{orgFunCategory}}\",\n \"class\": \"{{orgFuncClass}}\",\n \"validFrom\": 1.680091451241E12,\n \"validTo\": 1.68164754E12,\n \"applicationStatus\": null,\n \"wfStatus\": \"string\",\n \"isActive\": true,\n \"documents\": [\n {\n \"id\": \"{{functionDocumentId}}\",\n \"orgId\": null,\n \"orgFunctionId\": null,\n \"documentType\": \"PDF\",\n \"fileStore\": \"fileStore-test\",\n \"documentUid\": \"documentUid-test\",\n \"additionalDetails\": {\n \"documents-func\": \"test-additionalDetails\"\n }\n }\n ],\n \"additionalDetails\": {\n \"func\": \"test-additionalDetails\"\n },\n \"auditDetails\": {\n \"createdBy\": \"11b0e02b-0145-4de2-bc42-c97b96264807\",\n \"lastModifiedBy\": \"11b0e02b-0145-4de2-bc42-c97b96264807\",\n \"createdTime\": 1680666675994,\n \"lastModifiedTime\": 1680666675994\n }\n }\n ],\n \"jurisdiction\": [\n {\n \"id\": \"{{jurisdictionId}}\",\n \"orgId\": null,\n \"code\": \"{{jurisdictionCode}}\",\n \"additionalDetails\": {\n \"jurisdiction\": \"test-additionalDetails\"\n }\n }\n ],\n \"isActive\": true,\n \"documents\": [\n {\n \"id\": \"{{orgDocumentId}}\",\n \"orgId\": null,\n \"orgFunctionId\": null,\n \"documentType\": \"PDF\",\n \"fileStore\": \"fileStore-test\",\n \"documentUid\": \"documentUid-test\",\n \"additionalDetails\": {\n \"documents-org\": \"test-additionalDetails\"\n }\n }\n ],\n \"additionalDetails\": {\n \"org\": \"test-additionalDetails\"\n },\n \"auditDetails\": {\n \"createdBy\": \"11b0e02b-0145-4de2-bc42-c97b96264807\",\n \"lastModifiedBy\": \"11b0e02b-0145-4de2-bc42-c97b96264807\",\n \"createdTime\": 1680666675796,\n \"lastModifiedTime\": 1680666675796\n }\n }\n ],\n \"pagination\": null\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/org-services/organisation/v1/_update", "host": [ "{{base_url}}" ], "path": [ "org-services", "organisation", "v1", "_update" ] } }, "response": [] }, { "name": "Update Organisation - Error - Address Boundary Type not provided", "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {} } }, { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => ", " pm.expect(pm.response.to.have.status(400)));", "", "pm.test(\"Correct Error with message and code is received\", function () {", " var res = pm.response.json();", " var code = res.Errors[0].code;", " var message = res.Errors[0].message;", " pm.expect(code).to.eql(\"ADDRESS.BOUNDARY_TYPE\");", " pm.expect(message).to.eql(\"Address's boundary type is mandatory\");", " }", ");" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"simple org registry\",\n \"ver\": \"v1\",\n \"ts\": 0,\n \"action\": \"string\",\n \"did\": \"string\",\n \"key\": \"string\",\n \"msgId\": \"create-org\",\n \"requesterId\": \"string\",\n \"authToken\": \"{{auth}}\"\n },\n \"organisations\": [\n {\n \"id\": \"{{orgId}}\",\n \"name\": \"{{orgName}}\",\n \"tenantId\": \"{{tenantId}}\",\n \"applicationNumber\": \"{{applicationNumber}}\",\n \"orgNumber\": \"{{orgNumber}}\",\n \"applicationStatus\": \"ACTIVE\",\n \"externalRefNumber\": \"org-10001\",\n \"dateOfIncorporation\": 1.680091451241E12,\n \"orgAddress\": [\n {\n \"id\": \"{{orgAddressId}}\",\n \"tenantId\": \"{{tenantId}}\",\n \"orgId\": null,\n \"doorNo\": \"doorNo-test\",\n \"plotNo\": \"plotNo-test\",\n \"landmark\": \"landmark-test\",\n \"city\": \"citya\",\n \"pincode\": \"123456\",\n \"district\": \"Amritsar\",\n \"resgion\": \"region-test\",\n \"state\": \"state-test\",\n \"country\": \"country-test\",\n \"additionDetails\": \"address-additional\",\n \"buildingName\": \"buildingName-1\",\n \"street\": \"street-test\",\n \"boundaryCode\": \"{{boundaryCode}}\",\n \"geoLocation\": {\n \"id\": \"{{geoLocationId}}\",\n \"addressId\": null,\n \"latitude\": 31.63089,\n \"longitude\": 74.871552,\n \"additionalDetails\": {\n \"geoLocation\": \"test-additionalDetails\"\n }\n }\n }\n ],\n \"contactDetails\": [\n {\n \"id\": \"{{contactDetailsId}}\",\n \"tenantId\": \"{{stateLevelTenant}}\",\n \"orgId\": null,\n \"contactName\": \"{{contactName}}\",\n \"contactMobileNumber\": \"{{contactMobileNumber}}\",\n \"contactEmail\": \"{{contactEmail}}\",\n \"active\": true,\n \"type\": \"CITIZEN\",\n \"createdBy\": \"11b0e02b-0145-4de2-bc42-c97b96264807\",\n \"createdDate\": 1680666676378,\n \"lastModifiedBy\": \"11b0e02b-0145-4de2-bc42-c97b96264807\",\n \"lastModifiedDate\": 1680666676378\n }\n ],\n \"identifiers\": [\n {\n \"id\": \"{{identifierId}}\",\n \"orgId\": null,\n \"type\": \"{{identifierType}}\",\n \"value\": \"{{identifierValue}}\",\n \"additionalDetails\": {\n \"identifiers\": \"test-additionalDetails\"\n }\n }\n ],\n \"functions\": [\n {\n \"id\": \"{{functionId}}\",\n \"orgId\": null,\n \"applicationNumber\": \"{{functionApplicationNumber}}\",\n \"type\": \"{{orgFunType}}\",\n \"category\": \"{{orgFunCategory}}\",\n \"class\": \"{{orgFuncClass}}\",\n \"validFrom\": 1.680091451241E12,\n \"validTo\": 1.68164754E12,\n \"applicationStatus\": null,\n \"wfStatus\": \"string\",\n \"isActive\": true,\n \"documents\": [\n {\n \"id\": \"{{functionDocumentId}}\",\n \"orgId\": null,\n \"orgFunctionId\": null,\n \"documentType\": \"PDF\",\n \"fileStore\": \"fileStore-test\",\n \"documentUid\": \"documentUid-test\",\n \"additionalDetails\": {\n \"documents-func\": \"test-additionalDetails\"\n }\n }\n ],\n \"additionalDetails\": {\n \"func\": \"test-additionalDetails\"\n },\n \"auditDetails\": {\n \"createdBy\": \"11b0e02b-0145-4de2-bc42-c97b96264807\",\n \"lastModifiedBy\": \"11b0e02b-0145-4de2-bc42-c97b96264807\",\n \"createdTime\": 1680666675994,\n \"lastModifiedTime\": 1680666675994\n }\n }\n ],\n \"jurisdiction\": [\n {\n \"id\": \"{{jurisdictionId}}\",\n \"orgId\": null,\n \"code\": \"{{jurisdictionCode}}\",\n \"additionalDetails\": {\n \"jurisdiction\": \"test-additionalDetails\"\n }\n }\n ],\n \"isActive\": true,\n \"documents\": [\n {\n \"id\": \"{{orgDocumentId}}\",\n \"orgId\": null,\n \"orgFunctionId\": null,\n \"documentType\": \"PDF\",\n \"fileStore\": \"fileStore-test\",\n \"documentUid\": \"documentUid-test\",\n \"additionalDetails\": {\n \"documents-org\": \"test-additionalDetails\"\n }\n }\n ],\n \"additionalDetails\": {\n \"org\": \"test-additionalDetails\"\n },\n \"auditDetails\": {\n \"createdBy\": \"11b0e02b-0145-4de2-bc42-c97b96264807\",\n \"lastModifiedBy\": \"11b0e02b-0145-4de2-bc42-c97b96264807\",\n \"createdTime\": 1680666675796,\n \"lastModifiedTime\": 1680666675796\n }\n }\n ],\n \"pagination\": null\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/org-services/organisation/v1/_update", "host": [ "{{base_url}}" ], "path": [ "org-services", "organisation", "v1", "_update" ] } }, "response": [] }, { "name": "Update Organisation - Error - Address Boundary Code not provided", "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {} } }, { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => ", " pm.expect(pm.response.to.have.status(400)));", "", "pm.test(\"Correct Error with message and code is received\", function () {", " var res = pm.response.json();", " var code = res.Errors[0].code;", " var message = res.Errors[0].message;", " pm.expect(code).to.eql(\"ADDRESS.BOUNDARY_CODE\");", " pm.expect(message).to.eql(\"Address's boundary code is mandatory\");", " }", ");" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"simple org registry\",\n \"ver\": \"v1\",\n \"ts\": 0,\n \"action\": \"string\",\n \"did\": \"string\",\n \"key\": \"string\",\n \"msgId\": \"create-org\",\n \"requesterId\": \"string\",\n \"authToken\": \"{{auth}}\"\n },\n \"organisations\": [\n {\n \"id\": \"{{orgId}}\",\n \"name\": \"{{orgName}}\",\n \"tenantId\": \"{{tenantId}}\",\n \"applicationNumber\": \"{{applicationNumber}}\",\n \"orgNumber\": \"{{orgNumber}}\",\n \"applicationStatus\": \"ACTIVE\",\n \"externalRefNumber\": \"org-10001\",\n \"dateOfIncorporation\": 1.680091451241E12,\n \"orgAddress\": [\n {\n \"id\": \"{{orgAddressId}}\",\n \"tenantId\": \"{{tenantId}}\",\n \"orgId\": null,\n \"doorNo\": \"doorNo-test\",\n \"plotNo\": \"plotNo-test\",\n \"landmark\": \"landmark-test\",\n \"city\": \"citya\",\n \"pincode\": \"123456\",\n \"district\": \"Amritsar\",\n \"resgion\": \"region-test\",\n \"state\": \"state-test\",\n \"country\": \"country-test\",\n \"additionDetails\": \"address-additional\",\n \"buildingName\": \"buildingName-1\",\n \"street\": \"street-test\",\n \"boundaryType\": \"{{boundaryType}}\",\n \"geoLocation\": {\n \"id\": \"{{geoLocationId}}\",\n \"addressId\": null,\n \"latitude\": 31.63089,\n \"longitude\": 74.871552,\n \"additionalDetails\": {\n \"geoLocation\": \"test-additionalDetails\"\n }\n }\n }\n ],\n \"contactDetails\": [\n {\n \"id\": \"{{contactDetailsId}}\",\n \"tenantId\": \"{{stateLevelTenant}}\",\n \"orgId\": null,\n \"contactName\": \"{{contactName}}\",\n \"contactMobileNumber\": \"{{contactMobileNumber}}\",\n \"contactEmail\": \"{{contactEmail}}\",\n \"active\": true,\n \"type\": \"CITIZEN\",\n \"createdBy\": \"11b0e02b-0145-4de2-bc42-c97b96264807\",\n \"createdDate\": 1680666676378,\n \"lastModifiedBy\": \"11b0e02b-0145-4de2-bc42-c97b96264807\",\n \"lastModifiedDate\": 1680666676378\n }\n ],\n \"identifiers\": [\n {\n \"id\": \"{{identifierId}}\",\n \"orgId\": null,\n \"type\": \"{{identifierType}}\",\n \"value\": \"{{identifierValue}}\",\n \"additionalDetails\": {\n \"identifiers\": \"test-additionalDetails\"\n }\n }\n ],\n \"functions\": [\n {\n \"id\": \"{{functionId}}\",\n \"orgId\": null,\n \"applicationNumber\": \"{{functionApplicationNumber}}\",\n \"type\": \"{{orgFunType}}\",\n \"category\": \"{{orgFunCategory}}\",\n \"class\": \"{{orgFuncClass}}\",\n \"validFrom\": 1.680091451241E12,\n \"validTo\": 1.68164754E12,\n \"applicationStatus\": null,\n \"wfStatus\": \"string\",\n \"isActive\": true,\n \"documents\": [\n {\n \"id\": \"{{functionDocumentId}}\",\n \"orgId\": null,\n \"orgFunctionId\": null,\n \"documentType\": \"PDF\",\n \"fileStore\": \"fileStore-test\",\n \"documentUid\": \"documentUid-test\",\n \"additionalDetails\": {\n \"documents-func\": \"test-additionalDetails\"\n }\n }\n ],\n \"additionalDetails\": {\n \"func\": \"test-additionalDetails\"\n },\n \"auditDetails\": {\n \"createdBy\": \"11b0e02b-0145-4de2-bc42-c97b96264807\",\n \"lastModifiedBy\": \"11b0e02b-0145-4de2-bc42-c97b96264807\",\n \"createdTime\": 1680666675994,\n \"lastModifiedTime\": 1680666675994\n }\n }\n ],\n \"jurisdiction\": [\n {\n \"id\": \"{{jurisdictionId}}\",\n \"orgId\": null,\n \"code\": \"{{jurisdictionCode}}\",\n \"additionalDetails\": {\n \"jurisdiction\": \"test-additionalDetails\"\n }\n }\n ],\n \"isActive\": true,\n \"documents\": [\n {\n \"id\": \"{{orgDocumentId}}\",\n \"orgId\": null,\n \"orgFunctionId\": null,\n \"documentType\": \"PDF\",\n \"fileStore\": \"fileStore-test\",\n \"documentUid\": \"documentUid-test\",\n \"additionalDetails\": {\n \"documents-org\": \"test-additionalDetails\"\n }\n }\n ],\n \"additionalDetails\": {\n \"org\": \"test-additionalDetails\"\n },\n \"auditDetails\": {\n \"createdBy\": \"11b0e02b-0145-4de2-bc42-c97b96264807\",\n \"lastModifiedBy\": \"11b0e02b-0145-4de2-bc42-c97b96264807\",\n \"createdTime\": 1680666675796,\n \"lastModifiedTime\": 1680666675796\n }\n }\n ],\n \"pagination\": null\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/org-services/organisation/v1/_update", "host": [ "{{base_url}}" ], "path": [ "org-services", "organisation", "v1", "_update" ] } }, "response": [] } ] }, { "name": "Bank Account Test Script", "item": [ { "name": "Bankaccount_create_with_valid ORG", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response status code is 200\", function () {", " pm.expect(pm.response.code).to.equal(200);", "});", "", "", "// pm.test(\"Response has the required fields\", function () {", "// const responseData = pm.response.json();", " ", "// pm.expect(responseData).to.be.an('object');", "// // pm.expect(responseData.ResponseInfo).to.exist.and.to.be.an('object');", "// pm.expect(responseData.bankAccounts).to.exist.and.to.be.an('array');", "// pm.expect(responseData.pagination).to.exist.and.to.be.null;", "// });", "", "", "pm.test(\"Verify that the 'bankAccounts' array is present and contains at least one element\", function () {", " const responseData = pm.response.json();", " ", " pm.expect(responseData.bankAccounts).to.exist.and.to.be.an('array');", " pm.expect(responseData.bankAccounts.length).to.be.at.least(1, \"Array should contain at least one element\");", "});", "", "", "pm.test(\"Verify that the 'bankAccountDetails' array is present and contains at least one element\", function () {", " const responseData = pm.response.json();", " ", " pm.expect(responseData.bankAccounts).to.exist.and.to.be.an('array');", " responseData.bankAccounts.forEach(function (bankAccount) {", " pm.expect(bankAccount.bankAccountDetails).to.exist.and.to.be.an('array').that.is.not.empty;", " });", "});", "", "let responseData = pm.response.json();", "pm.collectionVariables.set(\"orgbankId\",responseData.bankAccounts[0].id);", "pm.collectionVariables.set(\"orgbadId\",responseData.bankAccounts[0].bankAccountDetails[0].id);", "pm.collectionVariables.set(\"orgbranchId\",responseData.bankAccounts[0].bankAccountDetails[0].bankBranchIdentifier.id);", "" ], "type": "text/javascript", "packages": {} } }, { "listen": "prerequest", "script": { "exec": [ "// Function to generate a random 16-digit number\r", "function generateRandomNumber() {\r", " var randomNumber = '';\r", " for (var i = 0; i < 16; i++) {\r", " randomNumber += Math.floor(Math.random() * 10); // Generate a random digit (0-9) and append it to the number\r", " }\r", " return randomNumber;\r", "}\r", "\r", "// Generate a random 16-digit number\r", "var random16DigitNumber = generateRandomNumber();\r", "\r", "// Log the generated number to the console\r", "console.log(\"Random 16-digit number:\", random16DigitNumber);\r", "\r", "// Set the generated number as an environment variable\r", "pm.environment.set(\"accountNumber\", random16DigitNumber);\r", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"RequestInfo\": {\r\n \"apiId\": \"bankAccounts\",\r\n \"ver\": \"v1\",\r\n \"ts\": 0,\r\n \"action\": \"string\",\r\n \"did\": \"string\",\r\n \"key\": \"string\",\r\n \"msgId\": \"create bank accounts\",\r\n // \"requesterId\": \"string\",\r\n \"authToken\": \"{{auth}}\"\r\n },\r\n \"bankAccounts\": [\r\n {\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"serviceCode\": \"ORG\",\r\n \"referenceId\": \"{{orgId}}\",\r\n \"bankAccountDetails\": [\r\n {\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"accountHolderName\": \"{{contactName}}\",\r\n \"accountNumber\": \"{{accountNumber}}\",\r\n \"accountType\": \"SAVING\",\r\n \"isPrimary\": true,\r\n \"bankBranchIdentifier\": {\r\n \"type\": \"IFSC\",\r\n \"code\": \"SBI000007\",\r\n \"additionalDetails\": {\r\n \"ifsccode\": \"SBI delhi branch ifsc code\"\r\n }\r\n },\r\n \"isActive\": true,\r\n \"documents\": [\r\n {\r\n \"documentType\": \"PDF\",\r\n \"fileStore\": \"xfys13445\",\r\n \"documentUid\": \"hjdldjwd-d-67000011\",\r\n \"additionalDetails\": {\r\n \"document\": \"additional details\"\r\n }\r\n }\r\n ],\r\n \"additionalFields\": {\r\n \"bankAccountDetails\": \"additional details\"\r\n }\r\n }\r\n ],\r\n \"additionalFields\": {\r\n \"bankAccount\": \"additional details\"\r\n }\r\n }\r\n ]\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/bankaccount-service/bankaccount/v1/_create", "host": [ "{{base_url}}" ], "path": [ "bankaccount-service", "bankaccount", "v1", "_create" ] } }, "response": [ { "name": "_create", "originalRequest": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"requestInfo\": {\r\n \"apiId\": \"bankAccounts\",\r\n \"ver\": \"v1\",\r\n \"ts\": 0,\r\n \"action\": \"string\",\r\n \"did\": \"string\",\r\n \"key\": \"string\",\r\n \"msgId\": \"create bank accounts\",\r\n \"requesterId\": \"string\",\r\n \"authToken\": \"{{authToken}}\"\r\n },\r\n \"bankAccounts\": [\r\n {\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"serviceCode\": \"ORG\",\r\n \"referenceId\": \"bf502800-c33d-11ed-afa1-0242ac120007\",\r\n \"bankAccountDetails\": [\r\n {\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"accountHolderName\": \"XYZ Holdings\",\r\n \"accountNumber\": \"XYZ1230987\",\r\n \"accountType\": \"SAVING\",\r\n \"isPrimary\": true,\r\n \"bankBranchIdentifier\": {\r\n \"type\": \"IFSC\",\r\n \"code\": \"SBI000007\",\r\n \"additionalDetails\": {\r\n \"ifsccode\": \"SBI delhi branch ifsc code\"\r\n }\r\n },\r\n \"isActive\": true,\r\n \"documents\": [\r\n {\r\n \"documentType\": \"PDF\",\r\n \"fileStore\": \"xfys13445\",\r\n \"documentUid\": \"hjdldjwd-d-67000011\",\r\n \"additionalDetails\": {\r\n \"document\": \"additional details\"\r\n }\r\n }\r\n ],\r\n \"additionalFields\": {\r\n \"bankAccountDetails\": \"additional details\"\r\n }\r\n }\r\n ],\r\n \"additionalFields\": {\r\n \"bankAccount\": \"additional details\"\r\n }\r\n }\r\n ]\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{devHost}}/bankaccount-service/bankaccount/v1/_create", "host": [ "{{devHost}}" ], "path": [ "bankaccount-service", "bankaccount", "v1", "_create" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Date", "value": "Fri, 17 Mar 2023 09:57:26 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": "91847ee87efa9f694de2" }, { "key": "x-correlation-id", "value": "ab428a07-3e9d-4e17-af3e-8ffda408b237" }, { "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\": \"\",\n \"ver\": \"\",\n \"ts\": null,\n \"resMsgId\": \"uief87324\",\n \"msgId\": \"\",\n \"status\": \"successful\"\n },\n \"bankAccounts\": [\n {\n \"id\": \"439d08ba-6446-46da-ac1a-ab3d97668f3f\",\n \"tenantId\": \"pg.citya\",\n \"serviceCode\": \"ORG\",\n \"referenceId\": \"bf502800-c33d-11ed-afa1-0242ac120007\",\n \"bankAccountDetails\": [\n {\n \"id\": \"69f0c099-2d1e-4be0-9e34-6b8fa472c472\",\n \"tenantId\": \"pg.citya\",\n \"accountHolderName\": \"XYZ Holdings\",\n \"accountNumber\": \"XYZ1230987\",\n \"accountType\": \"SAVING\",\n \"isPrimary\": true,\n \"bankBranchIdentifier\": {\n \"id\": \"20826fe6-b990-4447-b707-022c07e08bdf\",\n \"type\": \"IFSC\",\n \"code\": \"SBI000007\",\n \"additionalDetails\": {\n \"ifsccode\": \"SBI delhi branch ifsc code\"\n }\n },\n \"isActive\": true,\n \"documents\": [\n {\n \"id\": \"0b07fe79-12fe-4f91-abbc-70f0e884b87d\",\n \"documentType\": \"PDF\",\n \"fileStore\": \"xfys13445\",\n \"documentUid\": \"hjdldjwd-d-67000011\",\n \"additionalDetails\": {\n \"document\": \"additional details\"\n }\n }\n ],\n \"additionalFields\": {\n \"bankAccountDetails\": \"additional details\"\n },\n \"auditDetails\": {\n \"createdBy\": \"dmgfUUId\",\n \"lastModifiedBy\": \"dmgfUUId\",\n \"createdTime\": 1679047045929,\n \"lastModifiedTime\": 1679047045929\n }\n }\n ],\n \"additionalFields\": {\n \"bankAccount\": \"additional details\"\n },\n \"auditDetails\": {\n \"createdBy\": \"dmgfUUId\",\n \"lastModifiedBy\": \"dmgfUUId\",\n \"createdTime\": 1679047045928,\n \"lastModifiedTime\": 1679047045928\n }\n }\n ],\n \"pagination\": null\n}" } ] }, { "name": "Bankaccount_create_without_tenantId", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response status code is 400\", function () {", " pm.expect(pm.response.code).to.equal(400);", "});", "", "pm.test(\"Correct Error with message and code is received\", function () {", " var res = pm.response.json();", " var code = res.Errors[0].code;", " var message = res.Errors[0].message;", " pm.expect(code).to.eql(\"NotNull.bankAccountRequest.bankAccounts[0].tenantId\");", " pm.expect(message).to.eql(\"must not be null\");", " }", ");", "", "" ], "type": "text/javascript", "packages": {} } }, { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"RequestInfo\": {\r\n \"apiId\": \"bankAccounts\",\r\n \"ver\": \"v1\",\r\n \"ts\": 0,\r\n \"action\": \"string\",\r\n \"did\": \"string\",\r\n \"key\": \"string\",\r\n \"msgId\": \"create bank accounts\",\r\n // \"requesterId\": \"string\",\r\n \"authToken\": \"{{auth}}\"\r\n },\r\n \"bankAccounts\": [\r\n {\r\n // \"tenantId\": \"{{tenantId}}\",\r\n \"serviceCode\": \"ORG\",\r\n \"referenceId\": \"{{orgId}}\",\r\n \"bankAccountDetails\": [\r\n {\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"accountHolderName\": \"{{contactName}}\",\r\n \"accountNumber\": \"{{accountNumber}}\",\r\n \"accountType\": \"SAVING\",\r\n \"isPrimary\": true,\r\n \"bankBranchIdentifier\": {\r\n \"type\": \"IFSC\",\r\n \"code\": \"SBI000007\",\r\n \"additionalDetails\": {\r\n \"ifsccode\": \"SBI delhi branch ifsc code\"\r\n }\r\n },\r\n \"isActive\": true,\r\n \"documents\": [\r\n {\r\n \"documentType\": \"PDF\",\r\n \"fileStore\": \"xfys13445\",\r\n \"documentUid\": \"hjdldjwd-d-67000011\",\r\n \"additionalDetails\": {\r\n \"document\": \"additional details\"\r\n }\r\n }\r\n ],\r\n \"additionalFields\": {\r\n \"bankAccountDetails\": \"additional details\"\r\n }\r\n }\r\n ],\r\n \"additionalFields\": {\r\n \"bankAccount\": \"additional details\"\r\n }\r\n }\r\n ]\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/bankaccount-service/bankaccount/v1/_create", "host": [ "{{base_url}}" ], "path": [ "bankaccount-service", "bankaccount", "v1", "_create" ] } }, "response": [] }, { "name": "Bankaccount_create_without_referenceId", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response status code is 400\", function () {", " pm.expect(pm.response.code).to.equal(400);", "});", "", "pm.test(\"Correct Error with message and code is received\", function () {", " var res = pm.response.json();", " var code = res.Errors[0].code;", " var message = res.Errors[0].message;", " pm.expect(code).to.eql(\"NotNull.bankAccountRequest.bankAccounts[0].referenceId\");", " pm.expect(message).to.eql(\"must not be null\");", " }", ");", "", "" ], "type": "text/javascript", "packages": {} } }, { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"RequestInfo\": {\r\n \"apiId\": \"bankAccounts\",\r\n \"ver\": \"v1\",\r\n \"ts\": 0,\r\n \"action\": \"string\",\r\n \"did\": \"string\",\r\n \"key\": \"string\",\r\n \"msgId\": \"create bank accounts\",\r\n // \"requesterId\": \"string\",\r\n \"authToken\": \"{{auth}}\"\r\n },\r\n \"bankAccounts\": [\r\n {\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"serviceCode\": \"ORG\",\r\n // \"referenceId\": \"{{orgId}}\",\r\n \"bankAccountDetails\": [\r\n {\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"accountHolderName\": \"{{contactName}}\",\r\n \"accountNumber\": \"{{accountNumber}}\",\r\n \"accountType\": \"SAVING\",\r\n \"isPrimary\": true,\r\n \"bankBranchIdentifier\": {\r\n \"type\": \"IFSC\",\r\n \"code\": \"SBI000007\",\r\n \"additionalDetails\": {\r\n \"ifsccode\": \"SBI delhi branch ifsc code\"\r\n }\r\n },\r\n \"isActive\": true,\r\n \"documents\": [\r\n {\r\n \"documentType\": \"PDF\",\r\n \"fileStore\": \"xfys13445\",\r\n \"documentUid\": \"hjdldjwd-d-67000011\",\r\n \"additionalDetails\": {\r\n \"document\": \"additional details\"\r\n }\r\n }\r\n ],\r\n \"additionalFields\": {\r\n \"bankAccountDetails\": \"additional details\"\r\n }\r\n }\r\n ],\r\n \"additionalFields\": {\r\n \"bankAccount\": \"additional details\"\r\n }\r\n }\r\n ]\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/bankaccount-service/bankaccount/v1/_create", "host": [ "{{base_url}}" ], "path": [ "bankaccount-service", "bankaccount", "v1", "_create" ] } }, "response": [] }, { "name": "Bankaccount_create-without bank account details", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response status code is 400\", function () {", " pm.expect(pm.response.code).to.equal(400);", "});", "", "pm.test(\"Correct Error with message and code is received\", function () {", " var res = pm.response.json();", " var code = res.Errors[0].code;", " var message = res.Errors[0].message;", " pm.expect(code).to.eql(\"BANK_ACCOUNT_DETAILS\");", " pm.expect(message).to.eql(\"Bank account details are mandatory\");", " }", ");", "", "" ], "type": "text/javascript", "packages": {} } }, { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"RequestInfo\": {\r\n \"apiId\": \"bankAccounts\",\r\n \"ver\": \"v1\",\r\n \"ts\": 0,\r\n \"action\": \"string\",\r\n \"did\": \"string\",\r\n \"key\": \"string\",\r\n \"msgId\": \"create bank accounts\",\r\n // \"requesterId\": \"string\",\r\n \"authToken\": \"{{auth}}\"\r\n },\r\n \"bankAccounts\": [\r\n {\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"serviceCode\": \"ORG\",\r\n \"referenceId\": \"{{orgId}}\",\r\n // \"bankAccountDetails\": [\r\n // {\r\n // \"tenantId\": \"{{tenantId}}\",\r\n // \"accountHolderName\": \"{{contactName}}\",\r\n // \"accountNumber\": \"{{accountNumber}}\",\r\n // \"accountType\": \"SAVING\",\r\n // \"isPrimary\": true,\r\n // \"bankBranchIdentifier\": {\r\n // \"type\": \"IFSC\",\r\n // \"code\": \"SBI000007\",\r\n // \"additionalDetails\": {\r\n // \"ifsccode\": \"SBI delhi branch ifsc code\"\r\n // }\r\n // },\r\n // \"isActive\": true,\r\n // \"documents\": [\r\n // {\r\n // \"documentType\": \"PDF\",\r\n // \"fileStore\": \"xfys13445\",\r\n // \"documentUid\": \"hjdldjwd-d-67000011\",\r\n // \"additionalDetails\": {\r\n // \"document\": \"additional details\"\r\n // }\r\n // }\r\n // ],\r\n // \"additionalFields\": {\r\n // \"bankAccountDetails\": \"additional details\"\r\n // }\r\n // }\r\n // ],\r\n \"additionalFields\": {\r\n \"bankAccount\": \"additional details\"\r\n }\r\n }\r\n ]\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/bankaccount-service/bankaccount/v1/_create", "host": [ "{{base_url}}" ], "path": [ "bankaccount-service", "bankaccount", "v1", "_create" ] } }, "response": [] }, { "name": "Bankaccount_create-without accountNumber", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response status code is 400\", function () {", " pm.expect(pm.response.code).to.equal(400);", "});", "", "pm.test(\"Correct Error with message and code is received\", function () {", " var res = pm.response.json();", " var code = res.Errors[0].code;", " var message = res.Errors[0].message;", " pm.expect(code).to.eql(\"NotNull.bankAccountRequest.bankAccounts[0].bankAccountDetails[0].accountNumber\");", " pm.expect(message).to.eql(\"must not be null\");", " }", ");", "", "" ], "type": "text/javascript", "packages": {} } }, { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"RequestInfo\": {\r\n \"apiId\": \"bankAccounts\",\r\n \"ver\": \"v1\",\r\n \"ts\": 0,\r\n \"action\": \"string\",\r\n \"did\": \"string\",\r\n \"key\": \"string\",\r\n \"msgId\": \"create bank accounts\",\r\n // \"requesterId\": \"string\",\r\n \"authToken\": \"{{auth}}\"\r\n },\r\n \"bankAccounts\": [\r\n {\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"serviceCode\": \"ORG\",\r\n \"referenceId\": \"{{orgId}}\",\r\n \"bankAccountDetails\": [\r\n {\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"accountHolderName\": \"{{contactName}}\",\r\n // \"accountNumber\": \"{{accountNumber}}\",\r\n \"accountType\": \"SAVING\",\r\n \"isPrimary\": true,\r\n \"bankBranchIdentifier\": {\r\n \"type\": \"IFSC\",\r\n \"code\": \"SBI000007\",\r\n \"additionalDetails\": {\r\n \"ifsccode\": \"SBI delhi branch ifsc code\"\r\n }\r\n },\r\n \"isActive\": true,\r\n \"documents\": [\r\n {\r\n \"documentType\": \"PDF\",\r\n \"fileStore\": \"xfys13445\",\r\n \"documentUid\": \"hjdldjwd-d-67000011\",\r\n \"additionalDetails\": {\r\n \"document\": \"additional details\"\r\n }\r\n }\r\n ],\r\n \"additionalFields\": {\r\n \"bankAccountDetails\": \"additional details\"\r\n }\r\n }\r\n ],\r\n \"additionalFields\": {\r\n \"bankAccount\": \"additional details\"\r\n }\r\n }\r\n ]\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/bankaccount-service/bankaccount/v1/_create", "host": [ "{{base_url}}" ], "path": [ "bankaccount-service", "bankaccount", "v1", "_create" ] } }, "response": [] }, { "name": "Bankaccount_create-without Branch identifier type", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response status code is 400\", function () {", " pm.expect(pm.response.code).to.equal(400);", "});", "", "pm.test(\"Correct Error with message and code is received\", function () {", " var res = pm.response.json();", " var code = res.Errors[0].code;", " var message = res.Errors[0].message;", " pm.expect(code).to.eql(\"BRANCH_IDENTIFIER.TYPE\");", " pm.expect(message).to.eql(\"Branch identifier type is mandatory\");", " }", ");", "", "" ], "type": "text/javascript", "packages": {} } }, { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"RequestInfo\": {\r\n \"apiId\": \"bankAccounts\",\r\n \"ver\": \"v1\",\r\n \"ts\": 0,\r\n \"action\": \"string\",\r\n \"did\": \"string\",\r\n \"key\": \"string\",\r\n \"msgId\": \"create bank accounts\",\r\n // \"requesterId\": \"string\",\r\n \"authToken\": \"{{auth}}\"\r\n },\r\n \"bankAccounts\": [\r\n {\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"serviceCode\": \"ORG\",\r\n \"referenceId\": \"{{orgId}}\",\r\n \"bankAccountDetails\": [\r\n {\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"accountHolderName\": \"{{contactName}}\",\r\n \"accountNumber\": \"{{accountNumber}}\",\r\n \"accountType\": \"SAVING\",\r\n \"isPrimary\": true,\r\n \"bankBranchIdentifier\": {\r\n // \"type\": \"IFSC\",\r\n \"code\": \"SBI000007\",\r\n \"additionalDetails\": {\r\n \"ifsccode\": \"SBI delhi branch ifsc code\"\r\n }\r\n },\r\n \"isActive\": true,\r\n \"documents\": [\r\n {\r\n \"documentType\": \"PDF\",\r\n \"fileStore\": \"xfys13445\",\r\n \"documentUid\": \"hjdldjwd-d-67000011\",\r\n \"additionalDetails\": {\r\n \"document\": \"additional details\"\r\n }\r\n }\r\n ],\r\n \"additionalFields\": {\r\n \"bankAccountDetails\": \"additional details\"\r\n }\r\n }\r\n ],\r\n \"additionalFields\": {\r\n \"bankAccount\": \"additional details\"\r\n }\r\n }\r\n ]\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/bankaccount-service/bankaccount/v1/_create", "host": [ "{{base_url}}" ], "path": [ "bankaccount-service", "bankaccount", "v1", "_create" ] } }, "response": [] }, { "name": "Bankaccount_create-without Branch identifier code", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response status code is 400\", function () {", " pm.expect(pm.response.code).to.equal(400);", "});", "", "pm.test(\"Correct Error with message and code is received\", function () {", " var res = pm.response.json();", " var code = res.Errors[0].code;", " var message = res.Errors[0].message;", " pm.expect(code).to.eql(\"BRANCH_IDENTIFIER.CODE\");", " pm.expect(message).to.eql(\"Branch identifier code is mandatory \");", " }", ");", "", "" ], "type": "text/javascript", "packages": {} } }, { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"RequestInfo\": {\r\n \"apiId\": \"bankAccounts\",\r\n \"ver\": \"v1\",\r\n \"ts\": 0,\r\n \"action\": \"string\",\r\n \"did\": \"string\",\r\n \"key\": \"string\",\r\n \"msgId\": \"create bank accounts\",\r\n // \"requesterId\": \"string\",\r\n \"authToken\": \"{{auth}}\"\r\n },\r\n \"bankAccounts\": [\r\n {\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"serviceCode\": \"ORG\",\r\n \"referenceId\": \"{{orgId}}\",\r\n \"bankAccountDetails\": [\r\n {\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"accountHolderName\": \"{{contactName}}\",\r\n \"accountNumber\": \"{{accountNumber}}\",\r\n \"accountType\": \"SAVING\",\r\n \"isPrimary\": true,\r\n \"bankBranchIdentifier\": {\r\n \"type\": \"IFSC\",\r\n // \"code\": \"SBI000007\",\r\n \"additionalDetails\": {\r\n \"ifsccode\": \"SBI delhi branch ifsc code\"\r\n }\r\n },\r\n \"isActive\": true,\r\n \"documents\": [\r\n {\r\n \"documentType\": \"PDF\",\r\n \"fileStore\": \"xfys13445\",\r\n \"documentUid\": \"hjdldjwd-d-67000011\",\r\n \"additionalDetails\": {\r\n \"document\": \"additional details\"\r\n }\r\n }\r\n ],\r\n \"additionalFields\": {\r\n \"bankAccountDetails\": \"additional details\"\r\n }\r\n }\r\n ],\r\n \"additionalFields\": {\r\n \"bankAccount\": \"additional details\"\r\n }\r\n }\r\n ]\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/bankaccount-service/bankaccount/v1/_create", "host": [ "{{base_url}}" ], "path": [ "bankaccount-service", "bankaccount", "v1", "_create" ] } }, "response": [] }, { "name": "Bankaccount_create_with_valid IND", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response status code is 200\", function () {", " pm.expect(pm.response.code).to.equal(200);", "});", "", "", "// pm.test(\"Response has the required fields\", function () {", "// const responseData = pm.response.json();", " ", "// pm.expect(responseData).to.be.an('object');", "// // pm.expect(responseData.ResponseInfo).to.exist;", "// pm.expect(responseData.bankAccounts).to.exist;", "// pm.expect(responseData.pagination).to.exist;", "// });", "", "", "pm.test(\"Bank accounts array is present and contains at least one element\", function () {", " const responseData = pm.response.json();", "", " pm.expect(responseData.bankAccounts).to.exist.and.to.be.an('array');", " pm.expect(responseData.bankAccounts).to.have.lengthOf.at.least(1, \"Bank accounts array should contain at least one element\");", "});", "", "", "pm.test(\"Verify that the bankAccountDetails array is present in each bankAccounts element and contains at least one element\", function () {", " const responseData = pm.response.json();", "", " pm.expect(responseData.bankAccounts).to.be.an('array');", "", " responseData.bankAccounts.forEach(function (bankAccount) {", " pm.expect(bankAccount.bankAccountDetails).to.exist.and.to.be.an('array').and.to.have.lengthOf.at.least(1);", " });", "});", "", "", "pm.test(\"Validate accountNumber is a non-empty string\", function () {", " const responseData = pm.response.json();", " ", " pm.expect(responseData.bankAccounts).to.be.an('array');", " responseData.bankAccounts.forEach(function (bankAccount) {", " bankAccount.bankAccountDetails.forEach(function (accountDetails) {", " pm.expect(accountDetails.accountNumber).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Value should not be empty\");", " });", " });", "});", "", "let responseData = pm.response.json();", "pm.collectionVariables.set(\"bankId\",responseData.bankAccounts[0].id);", "pm.collectionVariables.set(\"badId\",responseData.bankAccounts[0].bankAccountDetails[0].id);", "pm.collectionVariables.set(\"branchId\",responseData.bankAccounts[0].bankAccountDetails[0].bankBranchIdentifier.id);", "" ], "type": "text/javascript", "packages": {} } }, { "listen": "prerequest", "script": { "exec": [ "// Function to generate a random 16-digit number\r", "function generateRandomNumber() {\r", " var randomNumber = '';\r", " for (var i = 0; i < 16; i++) {\r", " randomNumber += Math.floor(Math.random() * 10); // Generate a random digit (0-9) and append it to the number\r", " }\r", " return randomNumber;\r", "}\r", "\r", "// Generate a random 16-digit number\r", "var random16DigitNumber = generateRandomNumber();\r", "\r", "// Log the generated number to the console\r", "console.log(\"Random 16-digit number:\", random16DigitNumber);\r", "\r", "// Set the generated number as an environment variable\r", "pm.environment.set(\"accountNumber\", random16DigitNumber);\r", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"RequestInfo\": {\r\n \"apiId\": \"bankAccounts\",\r\n \"ver\": \"v1\",\r\n \"ts\": 0,\r\n \"action\": \"string\",\r\n \"did\": \"string\",\r\n \"key\": \"string\",\r\n \"msgId\": \"create bank accounts\",\r\n // \"requesterId\": \"string\",\r\n \"authToken\": \"{{auth}}\"\r\n },\r\n \"bankAccounts\": [\r\n {\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"serviceCode\": \"IND\",\r\n \"referenceId\": \"{{IndId}}\",\r\n \"bankAccountDetails\": [\r\n {\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"accountHolderName\": \"{{name}}\",\r\n \"accountNumber\": \"{{accountNumber}}\",\r\n \"accountType\": \"SAVING\",\r\n \"isPrimary\": true,\r\n \"bankBranchIdentifier\": {\r\n \"type\": \"IFSC\",\r\n \"code\": \"SBI000007\",\r\n \"additionalDetails\": {\r\n \"ifsccode\": \"SBI delhi branch ifsc code\"\r\n }\r\n },\r\n \"isActive\": true,\r\n \"documents\": [\r\n {\r\n \"documentType\": \"PDF\",\r\n \"fileStore\": \"xfys13445\",\r\n \"documentUid\": \"hjdldjwd-d-67000011\",\r\n \"additionalDetails\": {\r\n \"document\": \"additional details\"\r\n }\r\n }\r\n ],\r\n \"additionalFields\": {\r\n \"bankAccountDetails\": \"additional details\"\r\n }\r\n }\r\n ],\r\n \"additionalFields\": {\r\n \"bankAccount\": \"additional details\"\r\n }\r\n }\r\n ]\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/bankaccount-service/bankaccount/v1/_create", "host": [ "{{base_url}}" ], "path": [ "bankaccount-service", "bankaccount", "v1", "_create" ] } }, "response": [ { "name": "_create_with_valid IND", "originalRequest": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"RequestInfo\": {\r\n \"apiId\": \"bankAccounts\",\r\n \"ver\": \"v1\",\r\n \"ts\": 0,\r\n \"action\": \"string\",\r\n \"did\": \"string\",\r\n \"key\": \"string\",\r\n \"msgId\": \"create bank accounts\",\r\n \"requesterId\": \"string\",\r\n \"authToken\": \"{{authToken}}\"\r\n },\r\n \"bankAccounts\": [\r\n {\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"serviceCode\": \"IND\",\r\n \"referenceId\": \"bc83d91d-9541-47aa-9da6-d8041b5ea0e5\",\r\n \"bankAccountDetails\": [\r\n {\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"accountHolderName\": \"XYZ Holdings\",\r\n \"accountNumber\": \"XYZ1230987\",\r\n \"accountType\": \"SAVING\",\r\n \"isPrimary\": true,\r\n \"bankBranchIdentifier\": {\r\n \"type\": \"IFSC\",\r\n \"code\": \"SBI000007\",\r\n \"additionalDetails\": {\r\n \"ifsccode\": \"SBI delhi branch ifsc code\"\r\n }\r\n },\r\n \"isActive\": true,\r\n \"documents\": [\r\n {\r\n \"documentType\": \"PDF\",\r\n \"fileStore\": \"xfys13445\",\r\n \"documentUid\": \"hjdldjwd-d-67000011\",\r\n \"additionalDetails\": {\r\n \"document\": \"additional details\"\r\n }\r\n }\r\n ],\r\n \"additionalFields\": {\r\n \"bankAccountDetails\": \"additional details\"\r\n }\r\n }\r\n ],\r\n \"additionalFields\": {\r\n \"bankAccount\": \"additional details\"\r\n }\r\n }\r\n ]\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{devHost}}/bankaccount-service/bankaccount/v1/_create", "host": [ "{{devHost}}" ], "path": [ "bankaccount-service", "bankaccount", "v1", "_create" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Date", "value": "Mon, 20 Mar 2023 10:44:59 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": "a68a0367bd934f3419ee" }, { "key": "x-correlation-id", "value": "74614781-8a0a-42ee-8b8f-f98b05414365" }, { "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\": \"bankAccounts\",\n \"ver\": \"v1\",\n \"ts\": 0,\n \"resMsgId\": \"uief87324\",\n \"msgId\": \"create bank accounts\",\n \"status\": \"successful\"\n },\n \"bankAccounts\": [\n {\n \"id\": \"9e0fc5c0-ba14-414f-a3ab-6ddd1e74c4c2\",\n \"tenantId\": \"pg.citya\",\n \"serviceCode\": \"IND\",\n \"referenceId\": \"bc83d91d-9541-47aa-9da6-d8041b5ea0e5\",\n \"bankAccountDetails\": [\n {\n \"id\": \"586beb8e-8b5a-4f8f-a06a-bb022d403ff7\",\n \"tenantId\": \"pg.citya\",\n \"accountHolderName\": \"XYZ Holdings\",\n \"accountNumber\": \"XYZ1230987\",\n \"accountType\": \"SAVING\",\n \"isPrimary\": true,\n \"bankBranchIdentifier\": {\n \"id\": \"e67b0ab6-a99b-46c7-b2f8-5257c6c224e1\",\n \"type\": \"IFSC\",\n \"code\": \"SBI000007\",\n \"additionalDetails\": {\n \"ifsccode\": \"SBI delhi branch ifsc code\"\n }\n },\n \"isActive\": true,\n \"documents\": [\n {\n \"id\": \"054c344a-3761-43a8-bab0-9495e0a95055\",\n \"documentType\": \"PDF\",\n \"fileStore\": \"xfys13445\",\n \"documentUid\": \"hjdldjwd-d-67000011\",\n \"additionalDetails\": {\n \"document\": \"additional details\"\n }\n }\n ],\n \"additionalFields\": {\n \"bankAccountDetails\": \"additional details\"\n },\n \"auditDetails\": {\n \"createdBy\": \"79003eb5-de1f-49b9-9376-a8b4cf4d62e2\",\n \"lastModifiedBy\": \"79003eb5-de1f-49b9-9376-a8b4cf4d62e2\",\n \"createdTime\": 1679309099269,\n \"lastModifiedTime\": 1679309099269\n }\n }\n ],\n \"additionalFields\": {\n \"bankAccount\": \"additional details\"\n },\n \"auditDetails\": {\n \"createdBy\": \"79003eb5-de1f-49b9-9376-a8b4cf4d62e2\",\n \"lastModifiedBy\": \"79003eb5-de1f-49b9-9376-a8b4cf4d62e2\",\n \"createdTime\": 1679309099268,\n \"lastModifiedTime\": 1679309099268\n }\n }\n ],\n \"pagination\": null\n}" } ] }, { "name": "Bankaccount_create_without tenantId", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response status code is 400\", function () {", " pm.expect(pm.response.code).to.equal(400);", "});", "", "pm.test(\"Correct Error with message and code is received\", function () {", " var res = pm.response.json();", " var code = res.Errors[0].code;", " var message = res.Errors[0].message;", " pm.expect(code).to.eql(\"NotNull.bankAccountRequest.bankAccounts[0].tenantId\");", " pm.expect(message).to.eql(\"must not be null\");", " }", ");", "", "" ], "type": "text/javascript", "packages": {} } }, { "listen": "prerequest", "script": { "exec": [ "// Function to generate a random 16-digit number\r", "function generateRandomNumber() {\r", " var randomNumber = '';\r", " for (var i = 0; i < 16; i++) {\r", " randomNumber += Math.floor(Math.random() * 10); // Generate a random digit (0-9) and append it to the number\r", " }\r", " return randomNumber;\r", "}\r", "\r", "// Generate a random 16-digit number\r", "var random16DigitNumber = generateRandomNumber();\r", "\r", "// Log the generated number to the console\r", "console.log(\"Random 16-digit number:\", random16DigitNumber);\r", "\r", "// Set the generated number as an environment variable\r", "pm.environment.set(\"accountNumber\", random16DigitNumber);\r", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"RequestInfo\": {\r\n \"apiId\": \"bankAccounts\",\r\n \"ver\": \"v1\",\r\n \"ts\": 0,\r\n \"action\": \"string\",\r\n \"did\": \"string\",\r\n \"key\": \"string\",\r\n \"msgId\": \"create bank accounts\",\r\n // \"requesterId\": \"string\",\r\n \"authToken\": \"{{auth}}\"\r\n },\r\n \"bankAccounts\": [\r\n {\r\n // \"tenantId\": \"{{tenantId}}\",\r\n \"serviceCode\": \"IND\",\r\n \"referenceId\": \"{{IndId}}\",\r\n \"bankAccountDetails\": [\r\n {\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"accountHolderName\": \"{{name}}\",\r\n \"accountNumber\": \"{{accountNumber}}\",\r\n \"accountType\": \"SAVING\",\r\n \"isPrimary\": true,\r\n \"bankBranchIdentifier\": {\r\n \"type\": \"IFSC\",\r\n \"code\": \"SBI000007\",\r\n \"additionalDetails\": {\r\n \"ifsccode\": \"SBI delhi branch ifsc code\"\r\n }\r\n },\r\n \"isActive\": true,\r\n \"documents\": [\r\n {\r\n \"documentType\": \"PDF\",\r\n \"fileStore\": \"xfys13445\",\r\n \"documentUid\": \"hjdldjwd-d-67000011\",\r\n \"additionalDetails\": {\r\n \"document\": \"additional details\"\r\n }\r\n }\r\n ],\r\n \"additionalFields\": {\r\n \"bankAccountDetails\": \"additional details\"\r\n }\r\n }\r\n ],\r\n \"additionalFields\": {\r\n \"bankAccount\": \"additional details\"\r\n }\r\n }\r\n ]\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/bankaccount-service/bankaccount/v1/_create", "host": [ "{{base_url}}" ], "path": [ "bankaccount-service", "bankaccount", "v1", "_create" ] } }, "response": [] }, { "name": "Bankaccount_create_without referenceId", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response status code is 400\", function () {", " pm.expect(pm.response.code).to.equal(400);", "});", "", "pm.test(\"Correct Error with message and code is received\", function () {", " var res = pm.response.json();", " var code = res.Errors[0].code;", " var message = res.Errors[0].message;", " pm.expect(code).to.eql(\"NotNull.bankAccountRequest.bankAccounts[0].referenceId\");", " pm.expect(message).to.eql(\"must not be null\");", " }", ");", "", "" ], "type": "text/javascript", "packages": {} } }, { "listen": "prerequest", "script": { "exec": [ "// Function to generate a random 16-digit number\r", "function generateRandomNumber() {\r", " var randomNumber = '';\r", " for (var i = 0; i < 16; i++) {\r", " randomNumber += Math.floor(Math.random() * 10); // Generate a random digit (0-9) and append it to the number\r", " }\r", " return randomNumber;\r", "}\r", "\r", "// Generate a random 16-digit number\r", "var random16DigitNumber = generateRandomNumber();\r", "\r", "// Log the generated number to the console\r", "console.log(\"Random 16-digit number:\", random16DigitNumber);\r", "\r", "// Set the generated number as an environment variable\r", "pm.environment.set(\"accountNumber\", random16DigitNumber);\r", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"RequestInfo\": {\r\n \"apiId\": \"bankAccounts\",\r\n \"ver\": \"v1\",\r\n \"ts\": 0,\r\n \"action\": \"string\",\r\n \"did\": \"string\",\r\n \"key\": \"string\",\r\n \"msgId\": \"create bank accounts\",\r\n // \"requesterId\": \"string\",\r\n \"authToken\": \"{{auth}}\"\r\n },\r\n \"bankAccounts\": [\r\n {\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"serviceCode\": \"IND\",\r\n // \"referenceId\": \"{{IndId}}\",\r\n \"bankAccountDetails\": [\r\n {\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"accountHolderName\": \"{{name}}\",\r\n \"accountNumber\": \"{{accountNumber}}\",\r\n \"accountType\": \"SAVING\",\r\n \"isPrimary\": true,\r\n \"bankBranchIdentifier\": {\r\n \"type\": \"IFSC\",\r\n \"code\": \"SBI000007\",\r\n \"additionalDetails\": {\r\n \"ifsccode\": \"SBI delhi branch ifsc code\"\r\n }\r\n },\r\n \"isActive\": true,\r\n \"documents\": [\r\n {\r\n \"documentType\": \"PDF\",\r\n \"fileStore\": \"xfys13445\",\r\n \"documentUid\": \"hjdldjwd-d-67000011\",\r\n \"additionalDetails\": {\r\n \"document\": \"additional details\"\r\n }\r\n }\r\n ],\r\n \"additionalFields\": {\r\n \"bankAccountDetails\": \"additional details\"\r\n }\r\n }\r\n ],\r\n \"additionalFields\": {\r\n \"bankAccount\": \"additional details\"\r\n }\r\n }\r\n ]\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/bankaccount-service/bankaccount/v1/_create", "host": [ "{{base_url}}" ], "path": [ "bankaccount-service", "bankaccount", "v1", "_create" ] } }, "response": [] }, { "name": "Bankaccount_create_without Bankaccount details", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response status code is 400\", function () {", " pm.expect(pm.response.code).to.equal(400);", "});", "", "pm.test(\"Correct Error with message and code is received\", function () {", " var res = pm.response.json();", " var code = res.Errors[0].code;", " var message = res.Errors[0].message;", " pm.expect(code).to.eql(\"BANK_ACCOUNT_DETAILS\");", " pm.expect(message).to.eql(\"Bank account details are mandatory\");", " }", ");", "", "" ], "type": "text/javascript", "packages": {} } }, { "listen": "prerequest", "script": { "exec": [ "// Function to generate a random 16-digit number\r", "function generateRandomNumber() {\r", " var randomNumber = '';\r", " for (var i = 0; i < 16; i++) {\r", " randomNumber += Math.floor(Math.random() * 10); // Generate a random digit (0-9) and append it to the number\r", " }\r", " return randomNumber;\r", "}\r", "\r", "// Generate a random 16-digit number\r", "var random16DigitNumber = generateRandomNumber();\r", "\r", "// Log the generated number to the console\r", "console.log(\"Random 16-digit number:\", random16DigitNumber);\r", "\r", "// Set the generated number as an environment variable\r", "pm.environment.set(\"accountNumber\", random16DigitNumber);\r", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"RequestInfo\": {\r\n \"apiId\": \"bankAccounts\",\r\n \"ver\": \"v1\",\r\n \"ts\": 0,\r\n \"action\": \"string\",\r\n \"did\": \"string\",\r\n \"key\": \"string\",\r\n \"msgId\": \"create bank accounts\",\r\n // \"requesterId\": \"string\",\r\n \"authToken\": \"{{auth}}\"\r\n },\r\n \"bankAccounts\": [\r\n {\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"serviceCode\": \"IND\",\r\n \"referenceId\": \"{{IndId}}\",\r\n // \"bankAccountDetails\": [\r\n // {\r\n // \"tenantId\": \"{{tenantId}}\",\r\n // \"accountHolderName\": \"{{name}}\",\r\n // \"accountNumber\": \"{{accountNumber}}\",\r\n // \"accountType\": \"SAVING\",\r\n // \"isPrimary\": true,\r\n // \"bankBranchIdentifier\": {\r\n // \"type\": \"IFSC\",\r\n // \"code\": \"SBI000007\",\r\n // \"additionalDetails\": {\r\n // \"ifsccode\": \"SBI delhi branch ifsc code\"\r\n // }\r\n // },\r\n // \"isActive\": true,\r\n // \"documents\": [\r\n // {\r\n // \"documentType\": \"PDF\",\r\n // \"fileStore\": \"xfys13445\",\r\n // \"documentUid\": \"hjdldjwd-d-67000011\",\r\n // \"additionalDetails\": {\r\n // \"document\": \"additional details\"\r\n // }\r\n // }\r\n // ],\r\n // \"additionalFields\": {\r\n // \"bankAccountDetails\": \"additional details\"\r\n // }\r\n // }\r\n // ],\r\n \"additionalFields\": {\r\n \"bankAccount\": \"additional details\"\r\n }\r\n }\r\n ]\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/bankaccount-service/bankaccount/v1/_create", "host": [ "{{base_url}}" ], "path": [ "bankaccount-service", "bankaccount", "v1", "_create" ] } }, "response": [] }, { "name": "Bankaccount_create_without account number", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response status code is 400\", function () {", " pm.expect(pm.response.code).to.equal(400);", "});", "", "pm.test(\"Correct Error with message and code is received\", function () {", " var res = pm.response.json();", " var code = res.Errors[0].code;", " var message = res.Errors[0].message;", " pm.expect(code).to.eql(\"NotNull.bankAccountRequest.bankAccounts[0].bankAccountDetails[0].accountNumber\");", " pm.expect(message).to.eql(\"must not be null\");", " }", ");", "", "" ], "type": "text/javascript", "packages": {} } }, { "listen": "prerequest", "script": { "exec": [ "// Function to generate a random 16-digit number\r", "function generateRandomNumber() {\r", " var randomNumber = '';\r", " for (var i = 0; i < 16; i++) {\r", " randomNumber += Math.floor(Math.random() * 10); // Generate a random digit (0-9) and append it to the number\r", " }\r", " return randomNumber;\r", "}\r", "\r", "// Generate a random 16-digit number\r", "var random16DigitNumber = generateRandomNumber();\r", "\r", "// Log the generated number to the console\r", "console.log(\"Random 16-digit number:\", random16DigitNumber);\r", "\r", "// Set the generated number as an environment variable\r", "pm.environment.set(\"accountNumber\", random16DigitNumber);\r", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"RequestInfo\": {\r\n \"apiId\": \"bankAccounts\",\r\n \"ver\": \"v1\",\r\n \"ts\": 0,\r\n \"action\": \"string\",\r\n \"did\": \"string\",\r\n \"key\": \"string\",\r\n \"msgId\": \"create bank accounts\",\r\n // \"requesterId\": \"string\",\r\n \"authToken\": \"{{auth}}\"\r\n },\r\n \"bankAccounts\": [\r\n {\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"serviceCode\": \"IND\",\r\n \"referenceId\": \"{{IndId}}\",\r\n \"bankAccountDetails\": [\r\n {\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"accountHolderName\": \"{{name}}\",\r\n // \"accountNumber\": \"{{accountNumber}}\",\r\n \"accountType\": \"SAVING\",\r\n \"isPrimary\": true,\r\n \"bankBranchIdentifier\": {\r\n \"type\": \"IFSC\",\r\n \"code\": \"SBI000007\",\r\n \"additionalDetails\": {\r\n \"ifsccode\": \"SBI delhi branch ifsc code\"\r\n }\r\n },\r\n \"isActive\": true,\r\n \"documents\": [\r\n {\r\n \"documentType\": \"PDF\",\r\n \"fileStore\": \"xfys13445\",\r\n \"documentUid\": \"hjdldjwd-d-67000011\",\r\n \"additionalDetails\": {\r\n \"document\": \"additional details\"\r\n }\r\n }\r\n ],\r\n \"additionalFields\": {\r\n \"bankAccountDetails\": \"additional details\"\r\n }\r\n }\r\n ],\r\n \"additionalFields\": {\r\n \"bankAccount\": \"additional details\"\r\n }\r\n }\r\n ]\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/bankaccount-service/bankaccount/v1/_create", "host": [ "{{base_url}}" ], "path": [ "bankaccount-service", "bankaccount", "v1", "_create" ] } }, "response": [] }, { "name": "Bankaccount_create_without branch identifier type", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response status code is 400\", function () {", " pm.expect(pm.response.code).to.equal(400);", "});", "", "pm.test(\"Correct Error with message and code is received\", function () {", " var res = pm.response.json();", " var code = res.Errors[0].code;", " var message = res.Errors[0].message;", " pm.expect(code).to.eql(\"BRANCH_IDENTIFIER.TYPE\");", " pm.expect(message).to.eql(\"Branch identifier type is mandatory\");", " }", ");", "", "" ], "type": "text/javascript", "packages": {} } }, { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"RequestInfo\": {\r\n \"apiId\": \"bankAccounts\",\r\n \"ver\": \"v1\",\r\n \"ts\": 0,\r\n \"action\": \"string\",\r\n \"did\": \"string\",\r\n \"key\": \"string\",\r\n \"msgId\": \"create bank accounts\",\r\n // \"requesterId\": \"string\",\r\n \"authToken\": \"{{auth}}\"\r\n },\r\n \"bankAccounts\": [\r\n {\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"serviceCode\": \"IND\",\r\n \"referenceId\": \"{{IndId}}\",\r\n \"bankAccountDetails\": [\r\n {\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"accountHolderName\": \"{{name}}\",\r\n \"accountNumber\": \"{{accountNumber}}\",\r\n \"accountType\": \"SAVING\",\r\n \"isPrimary\": true,\r\n \"bankBranchIdentifier\": {\r\n // \"type\": \"IFSC\",\r\n \"code\": \"SBI000007\",\r\n \"additionalDetails\": {\r\n \"ifsccode\": \"SBI delhi branch ifsc code\"\r\n }\r\n },\r\n \"isActive\": true,\r\n \"documents\": [\r\n {\r\n \"documentType\": \"PDF\",\r\n \"fileStore\": \"xfys13445\",\r\n \"documentUid\": \"hjdldjwd-d-67000011\",\r\n \"additionalDetails\": {\r\n \"document\": \"additional details\"\r\n }\r\n }\r\n ],\r\n \"additionalFields\": {\r\n \"bankAccountDetails\": \"additional details\"\r\n }\r\n }\r\n ],\r\n \"additionalFields\": {\r\n \"bankAccount\": \"additional details\"\r\n }\r\n }\r\n ]\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/bankaccount-service/bankaccount/v1/_create", "host": [ "{{base_url}}" ], "path": [ "bankaccount-service", "bankaccount", "v1", "_create" ] } }, "response": [] }, { "name": "Bankaccount_create_without branch identifier code", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response status code is 400\", function () {", " pm.expect(pm.response.code).to.equal(400);", "});", "", "pm.test(\"Correct Error with message and code is received\", function () {", " var res = pm.response.json();", " var code = res.Errors[0].code;", " var message = res.Errors[0].message;", " pm.expect(code).to.eql(\"BRANCH_IDENTIFIER.CODE\");", " pm.expect(message).to.eql(\"Branch identifier code is mandatory \");", " }", ");", "", "" ], "type": "text/javascript", "packages": {} } }, { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"RequestInfo\": {\r\n \"apiId\": \"bankAccounts\",\r\n \"ver\": \"v1\",\r\n \"ts\": 0,\r\n \"action\": \"string\",\r\n \"did\": \"string\",\r\n \"key\": \"string\",\r\n \"msgId\": \"create bank accounts\",\r\n // \"requesterId\": \"string\",\r\n \"authToken\": \"{{auth}}\"\r\n },\r\n \"bankAccounts\": [\r\n {\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"serviceCode\": \"IND\",\r\n \"referenceId\": \"{{IndId}}\",\r\n \"bankAccountDetails\": [\r\n {\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"accountHolderName\": \"{{name}}\",\r\n \"accountNumber\": \"{{accountNumber}}\",\r\n \"accountType\": \"SAVING\",\r\n \"isPrimary\": true,\r\n \"bankBranchIdentifier\": {\r\n \"type\": \"IFSC\",\r\n // \"code\": \"SBI000007\",\r\n \"additionalDetails\": {\r\n \"ifsccode\": \"SBI delhi branch ifsc code\"\r\n }\r\n },\r\n \"isActive\": true,\r\n \"documents\": [\r\n {\r\n \"documentType\": \"PDF\",\r\n \"fileStore\": \"xfys13445\",\r\n \"documentUid\": \"hjdldjwd-d-67000011\",\r\n \"additionalDetails\": {\r\n \"document\": \"additional details\"\r\n }\r\n }\r\n ],\r\n \"additionalFields\": {\r\n \"bankAccountDetails\": \"additional details\"\r\n }\r\n }\r\n ],\r\n \"additionalFields\": {\r\n \"bankAccount\": \"additional details\"\r\n }\r\n }\r\n ]\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/bankaccount-service/bankaccount/v1/_create", "host": [ "{{base_url}}" ], "path": [ "bankaccount-service", "bankaccount", "v1", "_create" ] } }, "response": [] }, { "name": "Bankaccount_update-success ORG", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response status code is 200\", function () {", " pm.expect(pm.response.code).to.equal(200);", "});", "", "", "pm.test(\"Response has the bankAccount id\", function () {", " const responseData = pm.response.json();", " ", " pm.expect(responseData.bankAccounts[0].id).to.be.equal(pm.collectionVariables.get(\"orgbankId\"));", " ", "});", "", "pm.test(\"Response has the bankAccountDetails id\", function () {", " const responseData = pm.response.json();", " ", " pm.expect(responseData.bankAccounts[0].bankAccountDetails[0].id).to.be.equal(pm.collectionVariables.get(\"orgbadId\"));", " ", "});", "", "pm.test(\"Response has the bankAccountDetails id\", function () {", " const responseData = pm.response.json();", " ", " pm.expect(responseData.bankAccounts[0].bankAccountDetails[0].bankBranchIdentifier.id).to.be.equal(pm.collectionVariables.get(\"orgbranchId\"));", " ", "});", "", "pm.test(\"Validate accountNumber is a non-empty string\", function () {", " const responseData = pm.response.json();", " ", " pm.expect(responseData.bankAccounts).to.be.an('array');", " responseData.bankAccounts.forEach(function (bankAccount) {", " bankAccount.bankAccountDetails.forEach(function (accountDetails) {", " pm.expect(accountDetails.accountNumber).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Value should not be empty\");", " });", " });", "});" ], "type": "text/javascript", "packages": {} } }, { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"RequestInfo\": {\r\n \"apiId\": \"bankAccounts\",\r\n \"ver\": \"v1\",\r\n \"ts\": 0,\r\n \"action\": \"string\",\r\n \"did\": \"string\",\r\n \"key\": \"string\",\r\n \"msgId\": \"create bank accounts\",\r\n // \"requesterId\": \"string\",\r\n \"authToken\": \"{{auth}}\"\r\n },\r\n \"bankAccounts\": [\r\n {\r\n \"id\":\"{{orgbankId}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"serviceCode\": \"ORG\",\r\n \"referenceId\": \"{{orgId}}\",\r\n \"bankAccountDetails\": [\r\n {\r\n \"id\":\"{{orgbadId}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"accountHolderName\": \"{{contactName}}\",\r\n \"accountNumber\": \"{{accountNumber}}\",\r\n \"accountType\": \"SAVING\",\r\n \"isPrimary\": true,\r\n \"bankBranchIdentifier\": {\r\n \"id\":\"{{orgbranchId}}\",\r\n \"type\": \"IFSC\",\r\n \"code\": \"SBI000007\",\r\n \"additionalDetails\": {\r\n \"ifsccode\": \"SBI delhi branch ifsc code\"\r\n }\r\n },\r\n \"isActive\": true,\r\n \"documents\": [\r\n {\r\n \"documentType\": \"PDF\",\r\n \"fileStore\": \"xfys13445\",\r\n \"documentUid\": \"hjdldjwd-d-67000011\",\r\n \"additionalDetails\": {\r\n \"document\": \"additional details\"\r\n }\r\n }\r\n ],\r\n \"additionalFields\": {\r\n \"bankAccountDetails\": \"additional details\"\r\n }\r\n }\r\n ],\r\n \"additionalFields\": {\r\n \"bankAccount\": \"additional details\"\r\n }\r\n }\r\n ]\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/bankaccount-service/bankaccount/v1/_update", "host": [ "{{base_url}}" ], "path": [ "bankaccount-service", "bankaccount", "v1", "_update" ] } }, "response": [] }, { "name": "Bankaccount_update-success-IND", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response status code is 200\", function () {", " pm.expect(pm.response.code).to.equal(200);", "});", "", "", "pm.test(\"Response has the bankAccount id\", function () {", " const responseData = pm.response.json();", " ", " pm.expect(responseData.bankAccounts[0].id).to.be.equal(pm.collectionVariables.get(\"bankId\"));", " ", "});", "", "pm.test(\"Response has the bankAccountDetails id\", function () {", " const responseData = pm.response.json();", " ", " pm.expect(responseData.bankAccounts[0].bankAccountDetails[0].id).to.be.equal(pm.collectionVariables.get(\"badId\"));", " ", "});", "", "pm.test(\"Response has the bankAccountDetails id\", function () {", " const responseData = pm.response.json();", " ", " pm.expect(responseData.bankAccounts[0].bankAccountDetails[0].bankBranchIdentifier.id).to.be.equal(pm.collectionVariables.get(\"branchId\"));", " ", "});", "", "pm.test(\"Validate accountNumber is a non-empty string\", function () {", " const responseData = pm.response.json();", " ", " pm.expect(responseData.bankAccounts).to.be.an('array');", " responseData.bankAccounts.forEach(function (bankAccount) {", " bankAccount.bankAccountDetails.forEach(function (accountDetails) {", " pm.expect(accountDetails.accountNumber).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Value should not be empty\");", " });", " });", "});" ], "type": "text/javascript", "packages": {} } }, { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"RequestInfo\": {\r\n \"apiId\": \"bankAccounts\",\r\n \"ver\": \"v1\",\r\n \"ts\": 0,\r\n \"action\": \"string\",\r\n \"did\": \"string\",\r\n \"key\": \"string\",\r\n \"msgId\": \"create bank accounts\",\r\n // \"requesterId\": \"string\",\r\n \"authToken\": \"{{auth}}\"\r\n },\r\n \"bankAccounts\": [\r\n {\r\n \"id\":\"{{bankId}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"serviceCode\": \"IND\",\r\n \"referenceId\": \"{{IndId}}\",\r\n \"bankAccountDetails\": [\r\n {\r\n \"id\":\"{{badId}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"accountHolderName\": \"{{name}}\",\r\n \"accountNumber\": \"{{accountNumber}}\",\r\n \"accountType\": \"SAVING\",\r\n \"isPrimary\": true,\r\n \"bankBranchIdentifier\": {\r\n \"id\":\"{{branchId}}\",\r\n \"type\": \"IFSC\",\r\n \"code\": \"SBI000007\",\r\n \"additionalDetails\": {\r\n \"ifsccode\": \"SBI delhi branch ifsc code\"\r\n }\r\n },\r\n \"isActive\": true,\r\n \"documents\": [\r\n {\r\n \"documentType\": \"PDF\",\r\n \"fileStore\": \"xfys13445\",\r\n \"documentUid\": \"hjdldjwd-d-67000011\",\r\n \"additionalDetails\": {\r\n \"document\": \"additional details\"\r\n }\r\n }\r\n ],\r\n \"additionalFields\": {\r\n \"bankAccountDetails\": \"additional details\"\r\n }\r\n }\r\n ],\r\n \"additionalFields\": {\r\n \"bankAccount\": \"additional details\"\r\n }\r\n }\r\n ]\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/bankaccount-service/bankaccount/v1/_update", "host": [ "{{base_url}}" ], "path": [ "bankaccount-service", "bankaccount", "v1", "_update" ] } }, "response": [] }, { "name": "Bankaccount_update_without branch identifier id", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response status code is 400\", function () {", " pm.expect(pm.response.code).to.equal(400);", "});", "", "pm.test(\"Correct Error with message and code is received\", function () {", " var res = pm.response.json();", " var code = res.Errors[0].code;", " var message = res.Errors[0].message;", " pm.expect(code).to.eql(\"BRANCH_IDENTIFIER.ID\");", " pm.expect(message).to.eql(\"Branch identifier ID is mandatory for updates\");", " }", ");", "", "" ], "type": "text/javascript", "packages": {} } }, { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"RequestInfo\": {\r\n \"apiId\": \"bankAccounts\",\r\n \"ver\": \"v1\",\r\n \"ts\": 0,\r\n \"action\": \"string\",\r\n \"did\": \"string\",\r\n \"key\": \"string\",\r\n \"msgId\": \"create bank accounts\",\r\n // \"requesterId\": \"string\",\r\n \"authToken\": \"{{auth}}\"\r\n },\r\n \"bankAccounts\": [\r\n {\r\n \"id\": \"{{bankId}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"serviceCode\": \"IND\",\r\n \"referenceId\": \"{{IndId}}\",\r\n \"bankAccountDetails\": [\r\n {\r\n \"id\": \"{{badId}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"accountHolderName\": \"{{name}}\",\r\n \"accountNumber\": \"{{accountNumber}}\",\r\n \"accountType\": \"SAVING\",\r\n \"isPrimary\": true,\r\n \"bankBranchIdentifier\": {\r\n // \"id\": \"{{branchId}}\",\r\n \"type\": \"IFSC\",\r\n \"code\": \"SBI000007\",\r\n \"additionalDetails\": {\r\n \"ifsccode\": \"SBI delhi branch ifsc code\"\r\n }\r\n },\r\n \"isActive\": true,\r\n \"documents\": [\r\n {\r\n \"documentType\": \"PDF\",\r\n \"fileStore\": \"xfys13445\",\r\n \"documentUid\": \"hjdldjwd-d-67000011\",\r\n \"additionalDetails\": {\r\n \"document\": \"additional details\"\r\n }\r\n }\r\n ],\r\n \"additionalFields\": {\r\n \"bankAccountDetails\": \"additional details\"\r\n }\r\n }\r\n ],\r\n \"additionalFields\": {\r\n \"bankAccount\": \"additional details\"\r\n }\r\n }\r\n ]\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/bankaccount-service/bankaccount/v1/_update", "host": [ "{{base_url}}" ], "path": [ "bankaccount-service", "bankaccount", "v1", "_update" ] } }, "response": [] }, { "name": "Bankaccount_update_without bank Account details id", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response status code is 400\", function () {", " pm.expect(pm.response.code).to.equal(400);", "});", "", "pm.test(\"Correct Error with message and code is received\", function () {", " var res = pm.response.json();", " var code = res.Errors[0].code;", " var message = res.Errors[0].message;", " pm.expect(code).to.eql(\"BANK_ACCOUNT_ID\");", " pm.expect(message).to.eql(\"Bank account details ID is mandatory\");", " }", ");", "", "" ], "type": "text/javascript", "packages": {} } }, { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"RequestInfo\": {\r\n \"apiId\": \"bankAccounts\",\r\n \"ver\": \"v1\",\r\n \"ts\": 0,\r\n \"action\": \"string\",\r\n \"did\": \"string\",\r\n \"key\": \"string\",\r\n \"msgId\": \"create bank accounts\",\r\n // \"requesterId\": \"string\",\r\n \"authToken\": \"{{auth}}\"\r\n },\r\n \"bankAccounts\": [\r\n {\r\n \"id\": \"{{bankId}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"serviceCode\": \"IND\",\r\n \"referenceId\": \"{{IndId}}\",\r\n \"bankAccountDetails\": [\r\n {\r\n // \"id\": \"{{badId}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"accountHolderName\": \"{{name}}\",\r\n \"accountNumber\": \"{{accountNumber}}\",\r\n \"accountType\": \"SAVING\",\r\n \"isPrimary\": true,\r\n \"bankBranchIdentifier\": {\r\n \"id\": \"{{branchId}}\",\r\n \"type\": \"IFSC\",\r\n \"code\": \"SBI000007\",\r\n \"additionalDetails\": {\r\n \"ifsccode\": \"SBI delhi branch ifsc code\"\r\n }\r\n },\r\n \"isActive\": true,\r\n \"documents\": [\r\n {\r\n \"documentType\": \"PDF\",\r\n \"fileStore\": \"xfys13445\",\r\n \"documentUid\": \"hjdldjwd-d-67000011\",\r\n \"additionalDetails\": {\r\n \"document\": \"additional details\"\r\n }\r\n }\r\n ],\r\n \"additionalFields\": {\r\n \"bankAccountDetails\": \"additional details\"\r\n }\r\n }\r\n ],\r\n \"additionalFields\": {\r\n \"bankAccount\": \"additional details\"\r\n }\r\n }\r\n ]\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/bankaccount-service/bankaccount/v1/_update", "host": [ "{{base_url}}" ], "path": [ "bankaccount-service", "bankaccount", "v1", "_update" ] } }, "response": [] }, { "name": "Bankaccount_update_without bank account id", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response status code is 400\", function () {", " pm.expect(pm.response.code).to.equal(400);", "});", "", "pm.test(\"Correct Error with message and code is received\", function () {", " var res = pm.response.json();", " var code = res.Errors[0].code;", " var message = res.Errors[0].message;", " pm.expect(code).to.eql(\"BANK_ACCOUNT_ID\");", " pm.expect(message).to.eql(\"Bank account ID is mandatory\");", " }", ");", "", "" ], "type": "text/javascript", "packages": {} } }, { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"RequestInfo\": {\r\n \"apiId\": \"bankAccounts\",\r\n \"ver\": \"v1\",\r\n \"ts\": 0,\r\n \"action\": \"string\",\r\n \"did\": \"string\",\r\n \"key\": \"string\",\r\n \"msgId\": \"create bank accounts\",\r\n // \"requesterId\": \"string\",\r\n \"authToken\": \"{{auth}}\"\r\n },\r\n \"bankAccounts\": [\r\n {\r\n // \"id\": \"{{bankId}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"serviceCode\": \"IND\",\r\n \"referenceId\": \"{{IndId}}\",\r\n \"bankAccountDetails\": [\r\n {\r\n \"id\": \"{{badId}}\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"accountHolderName\": \"{{name}}\",\r\n \"accountNumber\": \"{{accountNumber}}\",\r\n \"accountType\": \"SAVING\",\r\n \"isPrimary\": true,\r\n \"bankBranchIdentifier\": {\r\n \"id\": \"{{branchId}}\",\r\n \"type\": \"IFSC\",\r\n \"code\": \"SBI000007\",\r\n \"additionalDetails\": {\r\n \"ifsccode\": \"SBI delhi branch ifsc code\"\r\n }\r\n },\r\n \"isActive\": true,\r\n \"documents\": [\r\n {\r\n \"documentType\": \"PDF\",\r\n \"fileStore\": \"xfys13445\",\r\n \"documentUid\": \"hjdldjwd-d-67000011\",\r\n \"additionalDetails\": {\r\n \"document\": \"additional details\"\r\n }\r\n }\r\n ],\r\n \"additionalFields\": {\r\n \"bankAccountDetails\": \"additional details\"\r\n }\r\n }\r\n ],\r\n \"additionalFields\": {\r\n \"bankAccount\": \"additional details\"\r\n }\r\n }\r\n ]\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/bankaccount-service/bankaccount/v1/_update", "host": [ "{{base_url}}" ], "path": [ "bankaccount-service", "bankaccount", "v1", "_update" ] } }, "response": [] }, { "name": "Bankaccount_search tenantid", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response status code is 200\", function () {", " pm.expect(pm.response.code).to.equal(200);", "});", "", "", "pm.test(\"Bank Account Search response matches the criteria-tenantId\", function () {", " var res = pm.response.json();", " var tenantid = res.bankAccounts[0].tenantId;", " pm.expect(tenantid).to.eql(pm.environment.get(\"tenantId\"));", " }", ");" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"RequestInfo\": {\r\n \"apiId\": \"bankAccounts\",\r\n \"ver\": \"v1\",\r\n \"ts\": 0,\r\n \"action\": \"string\",\r\n \"did\": \"string\",\r\n \"key\": \"string\",\r\n \"msgId\": \"create bank accounts\",\r\n \"requesterId\": \"string\",\r\n \"authToken\": \"{{auth}}\"\r\n },\r\n \"bankAccountDetails\": {\r\n \"tenantId\": \"{{tenantId}}\"\r\n // \"ids\": [\r\n // \"string\"\r\n // ],\r\n // \"serviceCode\": \"ORG\",\r\n // \"referenceId\": [\r\n // \"string\"\r\n // ],\r\n // \"accountHolderName\": \"XYZ Holdings\",\r\n // \"accountNumber\": [\r\n // \"0008765498765\"\r\n // ],\r\n // \"isActive\": true,\r\n // \"isPrimary\": true,\r\n // \"bankBranchIdentifierCode\": {\r\n // \"type\": \"string\",\r\n // \"code\": \"string\",\r\n // \"additionalDetails\": {}\r\n // }\r\n },\r\n \"pagination\": {\r\n \"limit\": 20,\r\n \"offSet\": 0,\r\n \"sortBy\": \"createdTime\",\r\n \"order\": {}\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/bankaccount-service/bankaccount/v1/_search", "host": [ "{{base_url}}" ], "path": [ "bankaccount-service", "bankaccount", "v1", "_search" ] } }, "response": [] }, { "name": "Bankaccount_search orgId", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response status code is 200\", function () {", " pm.expect(pm.response.code).to.equal(200);", "});", "", "", "pm.test(\"Bank Account Search response matches the criteria-orgId\", function () {", " var res = pm.response.json();", " var OrgId = res.bankAccounts[0].referenceId;", " pm.expect(OrgId).to.eql(pm.environment.get(\"orgId\"));", " }", ");" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"RequestInfo\": {\r\n \"apiId\": \"bankAccounts\",\r\n \"ver\": \"v1\",\r\n \"ts\": 0,\r\n \"action\": \"string\",\r\n \"did\": \"string\",\r\n \"key\": \"string\",\r\n \"msgId\": \"create bank accounts\",\r\n \"requesterId\": \"string\",\r\n \"authToken\": \"{{auth}}\"\r\n },\r\n \"bankAccountDetails\": {\r\n \"tenantId\": \"{{tenantId}}\",\r\n // \"ids\": [\r\n // \"string\"\r\n // ],\r\n // \"serviceCode\": \"ORG\",\r\n \"referenceId\": [\r\n \"{{orgId}}\"\r\n ]\r\n // \"accountHolderName\": \"XYZ Holdings\",\r\n // \"accountNumber\": [\r\n // \"0008765498765\"\r\n // ],\r\n // \"isActive\": true,\r\n // \"isPrimary\": true,\r\n // \"bankBranchIdentifierCode\": {\r\n // \"type\": \"string\",\r\n // \"code\": \"string\",\r\n // \"additionalDetails\": {}\r\n // }\r\n },\r\n \"pagination\": {\r\n \"limit\": 20,\r\n \"offSet\": 0,\r\n \"sortBy\": \"createdTime\",\r\n \"order\": {}\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/bankaccount-service/bankaccount/v1/_search", "host": [ "{{base_url}}" ], "path": [ "bankaccount-service", "bankaccount", "v1", "_search" ] } }, "response": [] }, { "name": "Bankaccount_search IndId", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response status code is 200\", function () {", " pm.expect(pm.response.code).to.equal(200);", "});", "", "", "pm.test(\"Bank Account Search response matches the criteria-indId\", function () {", " var res = pm.response.json();", " var referenceId = res.bankAccounts[0].referenceId;", " pm.expect(referenceId).to.eql(pm.environment.get(\"IndId\"));", " }", ");" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"RequestInfo\": {\r\n \"apiId\": \"bankAccounts\",\r\n \"ver\": \"v1\",\r\n \"ts\": 0,\r\n \"action\": \"string\",\r\n \"did\": \"string\",\r\n \"key\": \"string\",\r\n \"msgId\": \"create bank accounts\",\r\n \"requesterId\": \"string\",\r\n \"authToken\": \"{{auth}}\"\r\n },\r\n \"bankAccountDetails\": {\r\n \"tenantId\": \"{{tenantId}}\",\r\n // \"ids\": [\r\n // \"string\"\r\n // ],\r\n // \"serviceCode\": \"ORG\",\r\n \"referenceId\": [\r\n \"{{IndId}}\"\r\n ]\r\n // \"accountHolderName\": \"XYZ Holdings\",\r\n // \"accountNumber\": [\r\n // \"0008765498765\"\r\n // ],\r\n // \"isActive\": true,\r\n // \"isPrimary\": true,\r\n // \"bankBranchIdentifierCode\": {\r\n // \"type\": \"string\",\r\n // \"code\": \"string\",\r\n // \"additionalDetails\": {}\r\n // }\r\n },\r\n \"pagination\": {\r\n \"limit\": 20,\r\n \"offSet\": 0,\r\n \"sortBy\": \"createdTime\",\r\n \"order\": {}\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/bankaccount-service/bankaccount/v1/_search", "host": [ "{{base_url}}" ], "path": [ "bankaccount-service", "bankaccount", "v1", "_search" ] } }, "response": [] }, { "name": "Bankaccount_search Ids", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response status code is 200\", function () {", " pm.expect(pm.response.code).to.equal(200);", "});", "", "", "pm.test(\"Bank Account Search response matches the criteria-indId\", function () {", " var res = pm.response.json();", " ", " pm.expect(res.bankAccounts[0].id).to.eql(pm.collectionVariables.get(\"bankId\"));", " ", " }", ");" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"RequestInfo\": {\r\n \"apiId\": \"bankAccounts\",\r\n \"ver\": \"v1\",\r\n \"ts\": 0,\r\n \"action\": \"string\",\r\n \"did\": \"string\",\r\n \"key\": \"string\",\r\n \"msgId\": \"create bank accounts\",\r\n \"requesterId\": \"string\",\r\n \"authToken\": \"{{auth}}\"\r\n },\r\n \"bankAccountDetails\": {\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"ids\": [\r\n \"{{bankId}}\",\"{{branchId}}\",\"{{badId}}\"\r\n ]\r\n // \"serviceCode\": \"ORG\",\r\n // \"referenceId\": [\r\n // \"{{IndId}}\"\r\n // ]\r\n // \"accountHolderName\": \"XYZ Holdings\",\r\n // \"accountNumber\": [\r\n // \"0008765498765\"\r\n // ],\r\n // \"isActive\": true,\r\n // \"isPrimary\": true,\r\n // \"bankBranchIdentifierCode\": {\r\n // \"type\": \"string\",\r\n // \"code\": \"string\",\r\n // \"additionalDetails\": {}\r\n // }\r\n },\r\n \"pagination\": {\r\n \"limit\": 20,\r\n \"offSet\": 0,\r\n \"sortBy\": \"createdTime\",\r\n \"order\": {}\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/bankaccount-service/bankaccount/v1/_search", "host": [ "{{base_url}}" ], "path": [ "bankaccount-service", "bankaccount", "v1", "_search" ] } }, "response": [] }, { "name": "Bankaccount_search service Code", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response status code is 200\", function () {", " pm.expect(pm.response.code).to.equal(200);", "});", "", "", "pm.test(\"Bank Account Search response matches the criteria-indId\", function () {", " var res = pm.response.json();", " ", " pm.expect(res.bankAccounts[0].serviceCode).to.eql(\"ORG\");", "});" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"RequestInfo\": {\r\n \"apiId\": \"bankAccounts\",\r\n \"ver\": \"v1\",\r\n \"ts\": 0,\r\n \"action\": \"string\",\r\n \"did\": \"string\",\r\n \"key\": \"string\",\r\n \"msgId\": \"create bank accounts\",\r\n \"requesterId\": \"string\",\r\n \"authToken\": \"{{auth}}\"\r\n },\r\n \"bankAccountDetails\": {\r\n \"tenantId\": \"{{tenantId}}\",\r\n // \"ids\": [\r\n // \"{{bankId}}\",\"{{branchId}}\",\"{{badId}}\"\r\n // ]\r\n \"serviceCode\": \"ORG\"\r\n // \"referenceId\": [\r\n // \"{{IndId}}\"\r\n // ]\r\n // \"accountHolderName\": \"XYZ Holdings\",\r\n // \"accountNumber\": [\r\n // \"0008765498765\"\r\n // ],\r\n // \"isActive\": true,\r\n // \"isPrimary\": true,\r\n // \"bankBranchIdentifierCode\": {\r\n // \"type\": \"string\",\r\n // \"code\": \"string\",\r\n // \"additionalDetails\": {}\r\n // }\r\n },\r\n \"pagination\": {\r\n \"limit\": 20,\r\n \"offSet\": 0,\r\n \"sortBy\": \"createdTime\",\r\n \"order\": {}\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/bankaccount-service/bankaccount/v1/_search", "host": [ "{{base_url}}" ], "path": [ "bankaccount-service", "bankaccount", "v1", "_search" ] } }, "response": [] } ] }, { "name": "Attendence Test Script", "item": [ { "name": "Search Attendance Register - Success", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => ", " pm.expect(pm.response.to.have.status(200)));", "", "pm.test(\"Register Search response is received\", function () {", " var res = pm.response.json();", " var id = res.attendanceRegister[0].referenceId;", " pm.expect(id).to.eql(pm.environment.get(\"WONo\"));", " }", ");", "let responseData = pm.response.json();", "var atRegistar = responseData.attendanceRegister[0];", "pm.collectionVariables.set(\"atRegistar\",atRegistar);", "pm.collectionVariables.set(\"stateLevelTenant\", responseData.attendanceRegister[0].tenantId.split('.', 1)[0]);", "pm.environment.set(\"registerId\", responseData.attendanceRegister[0].id);", "pm.collectionVariables.set(\"registerNumber\", responseData.attendanceRegister[0].registerNumber);", "", "pm.collectionVariables.set(\"registerStartDate\", responseData.attendanceRegister[0].startDate);", "pm.collectionVariables.set(\"registerEndDate\", responseData.attendanceRegister[0].endDate);", "pm.collectionVariables.set(\"invalidRegisterEndDate\", responseData.attendanceRegister[0].endDate+24*60*60*1000)" ], "type": "text/javascript", "packages": {} } }, { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"mukta-services\",\n \"action\": \"\",\n \"did\": 1,\n \"key\": \"\",\n \"msgId\": \"20170310130900|en_IN\",\n \"requesterId\": \"\",\n \"ts\": 1513579888683,\n \"ver\": \".01\",\n \"authToken\": \"{{token}}\"\n }\n}\n", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/attendance/v1/_search?tenantId={{tenantId}}&referenceId={{WONo}}", "host": [ "{{base_url}}" ], "path": [ "attendance", "v1", "_search" ], "query": [ { "key": "tenantId", "value": "{{tenantId}}" }, { "key": "referenceId", "value": "{{WONo}}" } ] } }, "response": [] }, { "name": "Create Attendance Register - Validation Error - Registers not provided", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => ", " pm.expect(pm.response.to.have.status(400)));", "", "pm.test(\"Correct Error with message and code is received\", function () {", " var res = pm.response.json();", " var code = res.Errors[0].code;", " var message = res.Errors[0].message;", " pm.expect(code).to.eql(\"ATTENDANCE_REGISTER\");", " pm.expect(message).to.eql(\"Attendance Register is mandatory\");", " }", ");" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"mukta-services\",\n \"ver\": null,\n \"ts\": null,\n \"action\": null,\n \"did\": null,\n \"key\": null,\n \"msgId\": \"Create Attendance Register\",\n \"authToken\": \"{{token}}\"\n },\n \"attendanceRegister\": []\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/attendance/v1/_create", "host": [ "{{base_url}}" ], "path": [ "attendance", "v1", "_create" ] } }, "response": [] }, { "name": "Create Attendance Register - Validation Error - Name not provided", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => ", " pm.expect(pm.response.to.have.status(400)));", "", "pm.test(\"Correct Error with message and code is received\", function () {", " var res = pm.response.json();", " var code = res.Errors[0].code;", " var message = res.Errors[0].message;", " pm.expect(code).to.eql(\"NAME\");", " pm.expect(message).to.eql(\"Name is mandatory\");", " }", ");" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"mukta-services\",\n \"ver\": null,\n \"ts\": null,\n \"action\": null,\n \"did\": null,\n \"key\": null,\n \"msgId\": \"Create Attendance Register\",\n \"authToken\": \"{{token}}\"\n },\n \"attendanceRegister\": [\n {\n \"tenantId\": \"{{tenantId}}\",\n \"referenceId\": \"{{referenceId}}+{{$randomPhoneNumber}}\",\n \"serviceCode\": \"{{serviceCode}}\",\n \"startDate\": 1640995200000,\n \"endDate\": 1703980800000\n }\n ]\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/attendance/v1/_create", "host": [ "{{base_url}}" ], "path": [ "attendance", "v1", "_create" ] } }, "response": [] }, { "name": "Create Attendance Register - Validation Error - TenantId not provided", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => ", " pm.expect(pm.response.to.have.status(400)));", "", "pm.test(\"Correct Error with message and code is received\", function () {", " var res = pm.response.json();", " var code = res.Errors[0].code;", " var message = res.Errors[0].message;", " pm.expect(code).to.eql(\"TENANT_ID\");", " pm.expect(message).to.eql(\"Tenant is mandatory\");", " }", ");" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"mukta-services\",\n \"ver\": null,\n \"ts\": null,\n \"action\": null,\n \"did\": null,\n \"key\": null,\n \"msgId\": \"Create Attendance Register\",\n \"authToken\": \"{{token}}\"\n },\n \"attendanceRegister\": [\n {\n \"name\": \"TestRegister_01\",\n \"startDate\": 1640995200000,\n \"endDate\": 1703980800000\n }\n ]\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/attendance/v1/_create", "host": [ "{{base_url}}" ], "path": [ "attendance", "v1", "_create" ] } }, "response": [] }, { "name": "Create Attendance Register - Validation Error - Start Date not provided", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => ", " pm.expect(pm.response.to.have.status(400)));", "", "pm.test(\"Correct Error with message and code is received\", function () {", " var res = pm.response.json();", " var code = res.Errors[0].code;", " var message = res.Errors[0].message;", " pm.expect(code).to.eql(\"START_DATE\");", " pm.expect(message).to.eql(\"Start date is mandatory\");", " }", ");" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"mukta-services\",\n \"ver\": null,\n \"ts\": null,\n \"action\": null,\n \"did\": null,\n \"key\": null,\n \"msgId\": \"Create Attendance Register\",\n \"authToken\": \"{{token}}\"\n },\n \"attendanceRegister\": [\n {\n \"tenantId\": \"{{tenantId}}\",\n \"name\": \"TestRegister_01\",\n \"endDate\": 1703980800000\n }\n ]\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/attendance/v1/_create", "host": [ "{{base_url}}" ], "path": [ "attendance", "v1", "_create" ] } }, "response": [] }, { "name": "Create Attendance Register - Validation Error - Start Date greater than End Date", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => ", " pm.expect(pm.response.to.have.status(400)));", "", "pm.test(\"Correct Error with message and code is received\", function () {", " var res = pm.response.json();", " var code = res.Errors[0].code;", " var message = res.Errors[0].message;", " pm.expect(code).to.eql(\"DATE\");", " pm.expect(message).to.eql(\"Start date should be less than end date\");", " }", ");" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"mukta-services\",\n \"ver\": null,\n \"ts\": null,\n \"action\": null,\n \"did\": null,\n \"key\": null,\n \"msgId\": \"Create Attendance Register\",\n \"authToken\": \"{{token}}\"\n },\n \"attendanceRegister\": [\n {\n \"tenantId\": \"{{tenantId}}\",\n \"name\": \"TestRegister_01\",\n \"startDate\": 1803980800000,\n \"endDate\": 1703980800000\n }\n ]\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/attendance/v1/_create", "host": [ "{{base_url}}" ], "path": [ "attendance", "v1", "_create" ] } }, "response": [] }, { "name": "Create Attendance Register - Validation Error - Start Date Equal to 0", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => ", " pm.expect(pm.response.to.have.status(400)));", "", "pm.test(\"Correct Error with message and code is received\", function () {", " var res = pm.response.json();", " var code = res.Errors[0].code;", " var message = res.Errors[0].message;", " pm.expect(code).to.eql(\"START_DATE\");", " pm.expect(message).to.eql(\"Start date is mandatory\");", " }", ");" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"mukta-services\",\n \"ver\": null,\n \"ts\": null,\n \"action\": null,\n \"did\": null,\n \"key\": null,\n \"msgId\": \"Create Attendance Register\",\n \"authToken\": \"{{token}}\"\n },\n \"attendanceRegister\": [\n {\n \"tenantId\": \"{{tenantId}}\",\n \"name\": \"TestRegister_01\",\n \"startDate\": 0,\n \"endDate\": 1703980800000\n }\n ]\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/attendance/v1/_create", "host": [ "{{base_url}}" ], "path": [ "attendance", "v1", "_create" ] } }, "response": [] }, { "name": "Search Attendance Register - Success - Unassociated StaffId", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => ", " pm.expect(pm.response.to.have.status(200)));", "", "pm.test(\"Register Search response is received\", function () {", " var res = pm.response.json();", " pm.expect(res.attendanceRegister.length).to.equal(0);", " }", ");" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"mukta-services\",\n \"action\": \"\",\n \"did\": 1,\n \"key\": \"\",\n \"msgId\": \"20170310130900|en_IN\",\n \"requesterId\": \"\",\n \"ts\": 1513579888683,\n \"ver\": \".01\",\n \"authToken\": \"{{token}}\"\n }\n}\n", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/attendance/v1/_search?tenantId={{tenantId}}&ids={{registerId}}&staffId={{$guid}}", "host": [ "{{base_url}}" ], "path": [ "attendance", "v1", "_search" ], "query": [ { "key": "tenantId", "value": "{{tenantId}}" }, { "key": "ids", "value": "{{registerId}}" }, { "key": "staffId", "value": "{{$guid}}" } ] } }, "response": [] }, { "name": "Search Attendance Register - Validation Error - Unassociated Register Id", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => ", " pm.expect(pm.response.to.have.status(400)));", "", "pm.test(\"Register Search response is received\", function () {", " var res = pm.response.json();", " pm.expect(res.Errors[0].code).to.equal(\"INVALID_REGISTER_ID\");", " }", ");" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"mukta-services\",\n \"action\": \"\",\n \"did\": 1,\n \"key\": \"\",\n \"msgId\": \"20170310130900|en_IN\",\n \"requesterId\": \"\",\n \"ts\": 1513579888683,\n \"ver\": \".01\",\n \"authToken\": \"{{token}}\"\n }\n}\n", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/attendance/v1/_search?tenantId={{tenantId}}&ids={{$guid}}", "host": [ "{{base_url}}" ], "path": [ "attendance", "v1", "_search" ], "query": [ { "key": "tenantId", "value": "{{tenantId}}" }, { "key": "ids", "value": "{{$guid}}" } ] } }, "response": [] }, { "name": "Search Attendance Register - Validation Error - Tenant Id not provided", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => ", " pm.expect(pm.response.to.have.status(400)));", "", "pm.test(\"Correct Error with message and code is received\", function () {", " var res = pm.response.json();", " var code = res.Errors[0].code;", " var message = res.Errors[0].message;", " pm.expect(code).to.eql(\"TENANT_ID\");", " pm.expect(message).to.eql(\"Tenant is mandatory\");", " }", ");" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"mukta-services\",\n \"action\": \"\",\n \"did\": 1,\n \"key\": \"\",\n \"msgId\": \"20170310130900|en_IN\",\n \"requesterId\": \"\",\n \"ts\": 1513579888683,\n \"ver\": \".01\",\n \"authToken\": \"{{token}}\"\n }\n}\n", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/attendance/v1/_search?ids={{registerId}}", "host": [ "{{base_url}}" ], "path": [ "attendance", "v1", "_search" ], "query": [ { "key": "ids", "value": "{{registerId}}" } ] } }, "response": [] }, { "name": "Update Attendance Register - Validation Error - Name not provided", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => ", " pm.expect(pm.response.to.have.status(400)));", "", "pm.test(\"Correct Error with message and code is received\", function () {", " var res = pm.response.json();", " var code = res.Errors[0].code;", " var message = res.Errors[0].message;", " pm.expect(code).to.eql(\"NAME\");", " pm.expect(message).to.eql(\"Name is mandatory\");", " }", ");" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"mukta-services\",\n \"ver\": null,\n \"ts\": null,\n \"action\": null,\n \"did\": null,\n \"key\": null,\n \"msgId\": \"Create Attendance Register\",\n \"authToken\": \"{{token}}\"\n },\n \"attendanceRegister\": [\n {\n \"id\": \"{{registerId}}\",\n \"tenantId\": \"{{tenantId}}\",\n \"startDate\": 1640995200000,\n \"endDate\": 1703980800000,\n \"status\": \"ACTIVE\"\n }\n ]\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/attendance/v1/_update", "host": [ "{{base_url}}" ], "path": [ "attendance", "v1", "_update" ] } }, "response": [] }, { "name": "Update Attendance Register - Validation Error - Register Id not provided", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => ", " pm.expect(pm.response.to.have.status(400)));", "", "pm.test(\"Correct Error with message and code is received\", function () {", " var res = pm.response.json();", " var code = res.Errors[0].code;", " var message = res.Errors[0].message;", " pm.expect(code).to.eql(\"ATTENDANCE_REGISTER_ID\");", " pm.expect(message).to.eql(\"Attendance register id is mandatory\");", " }", ");" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"mukta-services\",\n \"ver\": null,\n \"ts\": null,\n \"action\": null,\n \"did\": null,\n \"key\": null,\n \"msgId\": \"Create Attendance Register\",\n \"authToken\": \"{{token}}\"\n },\n \"attendanceRegister\": [\n {\n \"tenantId\": \"{{tenantId}}\",\n \"name\": \"TestRegister_010\",\n \"startDate\": 1640995200000,\n \"endDate\": 1703980800000,\n \"status\": \"ACTIVE\"\n }\n ]\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/attendance/v1/_update", "host": [ "{{base_url}}" ], "path": [ "attendance", "v1", "_update" ] } }, "response": [] }, { "name": "Update Attendance Register - Validation Error - Tenant Id not provided", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => ", " pm.expect(pm.response.to.have.status(400)));", "", "pm.test(\"Correct Error with message and code is received\", function () {", " var res = pm.response.json();", " var code = res.Errors[0].code;", " var message = res.Errors[0].message;", " pm.expect(code).to.eql(\"TENANT_ID\");", " pm.expect(message).to.eql(\"Tenant is mandatory\");", " }", ");" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"mukta-services\",\n \"ver\": null,\n \"ts\": null,\n \"action\": null,\n \"did\": null,\n \"key\": null,\n \"msgId\": \"Create Attendance Register\",\n \"authToken\": \"{{token}}\"\n },\n \"attendanceRegister\": [\n {\n \"id\": \"{{registerId}}\",\n \"name\": \"TestRegister_010\",\n \"startDate\": 1640995200000,\n \"endDate\": 1703980800000,\n \"status\": \"ACTIVE\"\n }\n ]\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/attendance/v1/_update", "host": [ "{{base_url}}" ], "path": [ "attendance", "v1", "_update" ] } }, "response": [] }, { "name": "Update Attendance Register - Validation Error - Start Date not provided", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => ", " pm.expect(pm.response.to.have.status(400)));", "", "pm.test(\"Correct Error with message and code is received\", function () {", " var res = pm.response.json();", " var code = res.Errors[0].code;", " var message = res.Errors[0].message;", " pm.expect(code).to.eql(\"START_DATE\");", " pm.expect(message).to.eql(\"Start date is mandatory\");", " }", ");" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"mukta-services\",\n \"ver\": null,\n \"ts\": null,\n \"action\": null,\n \"did\": null,\n \"key\": null,\n \"msgId\": \"Create Attendance Register\",\n \"authToken\": \"{{token}}\"\n },\n \"attendanceRegister\": [\n {\n \"id\": \"{{registerId}}\",\n \"tenantId\": \"{{tenantId}}\",\n \"name\": \"TestRegister_010\",\n \"endDate\": 1703980800000,\n \"status\": \"ACTIVE\"\n }\n ]\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/attendance/v1/_update", "host": [ "{{base_url}}" ], "path": [ "attendance", "v1", "_update" ] } }, "response": [] }, { "name": "Attendee - Enroll - Attendee", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"RequestInfo is required\", function () {", " var req = JSON.parse(pm.request.body.raw);", " pm.expect(req.RequestInfo).to.not.be.null;", " pm.expect(req.RequestInfo).to.not.be.undefined;", " }", ");", "", "pm.test(\"Attendee are required\", function () {", " var req = JSON.parse(pm.request.body.raw);", " pm.expect(req.attendees).to.not.be.undefined;", " pm.expect(req.attendees).to.not.be.null;", " }", ");", "", "pm.test(\"TenantId is required\", function () {", " var req = JSON.parse(pm.request.body.raw);", " var attendee = req.attendees[0];", " pm.expect(attendee.tenantId).to.be.not.null;", " pm.expect(attendee.tenantId).to.be.not.undefined;", " pm.expect(attendee.tenantId).not.to.eql(\"\");", " }", ");", "", "pm.test(\"Attendee registerId is required\", function () {", " var req = JSON.parse(pm.request.body.raw);", " var attendee = req.attendees[0];", " pm.expect(attendee.registerId).to.be.not.null;", " pm.expect(attendee.registerId).to.be.not.undefined;", " pm.expect(attendee.registerId).not.to.eql(\"\");", " }", ");", "", "pm.test(\"Attendee individualId is required\", function () {", " var req = JSON.parse(pm.request.body.raw);", " var attendee = req.attendees[0];", " pm.expect(attendee.individualId).to.be.not.null;", " pm.expect(attendee.individualId).to.be.not.undefined;", " pm.expect(attendee.individualId).not.to.eql(\"\");", " }", ");", "", "", "pm.test(\"Response is successful\", () => ", " pm.expect(pm.response.to.have.status(200))", ");", "", "pm.test(\"Enrollment date is enriched\", function () {", " var res = pm.response.json();", " var enrollmentDate = res.attendees[0].enrollmentDate;", " pm.expect(enrollmentDate).to.be.not.null;", " }", ");", "", "// let requestData = JSON.parse(pm.request.body.raw);", "// pm.collectionVariables.set(\"individualId\", requestData.attendees[0].individualId);", "let responseData = pm.response.json();", "pm.collectionVariables.set(\"attendeeEnrollmentDate\", responseData.attendees[0].enrollmentDate);", "// pm.environment.set(\"registerId\",responseData.attendees[0].registerId);", "pm.collectionVariables.set(\"attendee1\",responseData.attendees[0].id);", "pm.collectionVariables.set(\"attendee2\",responseData.attendees[1].id);", "" ], "type": "text/javascript", "packages": {} } }, { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"mukta-services\",\n \"ver\": null,\n \"ts\": null,\n \"action\": null,\n \"did\": null,\n \"key\": null,\n \"msgId\": \"Enroll attendee to register\",\n \"authToken\": \"{{token}}\",\n \"userInfo\": {{cboUser}}\n },\n \"attendees\": [\n {\n // \"id\": \"fe69d090-b8b6-4347-a180-0ae366afd814\",\n \"tenantId\": \"{{tenantId}}\",\n \"registerId\": \"{{registerId}}\",\n \"individualId\": \"b62ecb66-f391-40c5-b5da-1b90f86c1836\",\n \"enrollmentDate\": {{registerStartDate}},\n \"denrollmentDate\": null,\n \"auditDetails\": {\n \"createdBy\": \"{{cboUid}}\",\n \"lastModifiedBy\": \"{{cboUid}}\",\n \"createdTime\": 1713246240310,\n \"lastModifiedTime\": 1713246240310\n },\n \"additionalDetails\": {\n \"individualName\": \"Michael Smith\",\n \"individualID\": \"IND-2024-04-16-057457\",\n \"individualGaurdianName\": \"Jane Williams\",\n \"identifierId\": \"89871851-70c0-46fc-9a8d-37e99d97acd3\",\n \"gender\": \"MALE\"\n }\n },\n {\n // \"id\": \"3184d5b9-8bce-469d-9ff6-81aa6ba337f3\",\n \"tenantId\": \"{{tenantId}}\",\n \"registerId\": \"{{registerId}}\",\n \"individualId\": \"e84b64ee-9b95-4ee9-b008-cd3782dc91e3\",\n \"enrollmentDate\": {{registerStartDate}},\n \"denrollmentDate\": null,\n \"auditDetails\": {\n \"createdBy\": \"{{cboUid}}\",\n \"lastModifiedBy\": \"{{cboUid}}\",\n \"createdTime\": 1713245977751,\n \"lastModifiedTime\": 1713245977751\n },\n \"additionalDetails\": {\n \"individualName\": \"Emily Williams\",\n \"individualID\": \"IND-2024-04-16-057456\",\n \"individualGaurdianName\": \"John Brown\",\n \"identifierId\": \"2cf641f6-a4af-4cf5-978b-86ca40a5f397\",\n \"gender\": \"FEMALE\"\n }\n }\n ]\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/attendance/attendee/v1/_create", "host": [ "{{base_url}}" ], "path": [ "attendance", "attendee", "v1", "_create" ] } }, "response": [] }, { "name": "Attendee - Enroll - Validation Error - Duplicate attendee objects not allowed in request", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"RequestInfo is required\", function () {", " var req = JSON.parse(pm.request.body.raw);", " pm.expect(req.RequestInfo).to.not.be.null;", " pm.expect(req.RequestInfo).to.not.be.undefined;", " }", ");", "", "pm.test(\"Attendee are required\", function () {", " var req = JSON.parse(pm.request.body.raw);", " pm.expect(req.attendees).to.not.be.undefined;", " pm.expect(req.attendees).to.not.be.null;", " }", ");", "", "pm.test(\"TenantId is required\", function () {", " var req = JSON.parse(pm.request.body.raw);", " req.attendees.forEach(attendee => {", " pm.expect(attendee.tenantId).to.be.not.null;", " pm.expect(attendee.tenantId).to.be.not.undefined;", " pm.expect(attendee.tenantId).not.to.eql(\"\");", " }); ", " }", ");", "", "pm.test(\"Attendee registerId is required\", function () {", " var req = JSON.parse(pm.request.body.raw);", " req.attendees.forEach(attendee => {", " pm.expect(attendee.registerId).to.be.not.null;", " pm.expect(attendee.registerId).to.be.not.undefined;", " pm.expect(attendee.registerId).not.to.eql(\"\");", " }); ", " }", ");", "", "pm.test(\"Attendee individualId is required\", function () {", " var req = JSON.parse(pm.request.body.raw);", " req.attendees.forEach(attendee => {", " pm.expect(attendee.individualId).to.be.not.null;", " pm.expect(attendee.individualId).to.be.not.undefined;", " pm.expect(attendee.individualId).not.to.eql(\"\");", " }); ", " }", ");", "", "", "pm.test(\"Response is 400. Duplicate attendee objects in the request\", () => ", " pm.expect(pm.response.to.have.status(400))", ");", "", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"mukta-services\",\n \"ver\": null,\n \"ts\": null,\n \"action\": null,\n \"did\": null,\n \"key\": null,\n \"msgId\": \"Enroll attendee to register\",\n \"authToken\":\"{{token}}\"\n },\n \"attendees\":[\n {\n \"registerId\": \"{{registerId}}\",\n \"individualId\": \"{{individualId-1}}\",\n \"enrollmentDate\":null,\n \"denrollmentDate\":null,\n \"tenantId\":\"{{tenantId}}\"\n },\n {\n \"registerId\": \"{{registerId}}\",\n \"individualId\": \"{{individualId-1}}\",\n \"enrollmentDate\":null,\n \"denrollmentDate\":null,\n \"tenantId\":\"{{tenantId}}\"\n } \n\n ]\n\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/attendance/attendee/v1/_create", "host": [ "{{base_url}}" ], "path": [ "attendance", "attendee", "v1", "_create" ] } }, "response": [] }, { "name": "Attendee - Enroll - Validation Error - Attendee already enrolled", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"RequestInfo is required\", function () {", " var req = JSON.parse(pm.request.body.raw);", " pm.expect(req.RequestInfo).to.not.be.null;", " pm.expect(req.RequestInfo).to.not.be.undefined;", " }", ");", "", "pm.test(\"Attendee are required\", function () {", " var req = JSON.parse(pm.request.body.raw);", " pm.expect(req.attendees).to.not.be.undefined;", " pm.expect(req.attendees).to.not.be.null;", " }", ");", "", "pm.test(\"TenantId is required\", function () {", " var req = JSON.parse(pm.request.body.raw);", " var attendee = req.attendees[0];", " pm.expect(attendee.tenantId).to.be.not.null;", " pm.expect(attendee.tenantId).to.be.not.undefined;", " pm.expect(attendee.tenantId).not.to.eql(\"\");", " }", ");", "", "pm.test(\"Attendee registerId is required\", function () {", " var req = JSON.parse(pm.request.body.raw);", " var attendee = req.attendees[0];", " pm.expect(attendee.registerId).to.be.not.null;", " pm.expect(attendee.registerId).to.be.not.undefined;", " pm.expect(attendee.registerId).not.to.eql(\"\");", " }", ");", "", "pm.test(\"Attendee individualId is required\", function () {", " var req = JSON.parse(pm.request.body.raw);", " var attendee = req.attendees[0];", " pm.expect(attendee.individualId).to.be.not.null;", " pm.expect(attendee.individualId).to.be.not.undefined;", " pm.expect(attendee.individualId).not.to.eql(\"\");", " }", ");", "", "", "pm.test(\"Response is 400. Attendee already enrolled to the register\", () => ", " pm.expect(pm.response.to.have.status(400))", ");", "", "" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"mukta-services\",\n \"ver\": null,\n \"ts\": null,\n \"action\": null,\n \"did\": null,\n \"key\": null,\n \"msgId\": \"Enroll attendee to register\",\n \"authToken\":\"{{token}}\"\n },\n \"attendees\":[\n {\n \"registerId\": \"{{registerId}}\",\n \"individualId\": \"{{individualId-1}}\",\n \"enrollmentDate\":null,\n \"denrollmentDate\":null,\n \"tenantId\":\"{{tenantId}}\"\n } \n\n ]\n\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/attendance/attendee/v1/_create", "host": [ "{{base_url}}" ], "path": [ "attendance", "attendee", "v1", "_create" ] } }, "response": [] }, { "name": "Attendance Log - Create - Success", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => ", " pm.expect(pm.response.to.have.status(200))", ");", "", " setTimeout( () => {", "", " pm.test(\"Attendance Log created successfully\", function () {", " var res = pm.response.json();", " var id = res.attendance[0].id;", " pm.expect(id).to.be.not.null;", " }", ");", " ", " }, 1000);", "", "", "", "let responseData = pm.response.json();", "var dataArray = responseData.attendance[0]; // Replace \"dataArray\" with the actual key of the array in your response body", "", " // Store the array in an environment or global variable", "pm.collectionVariables.set(\"attendenceall\", JSON.stringify(dataArray));" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"RequestInfo\": {\r\n \"apiId\": \"mukta-services\",\r\n \"action\": \"\",\r\n \"did\": 1,\r\n \"key\": \"\",\r\n \"msgId\": \"20170310130900|en_IN\",\r\n \"requesterId\": \"\",\r\n \"ts\": 1513579888683,\r\n \"ver\": \".01\",\r\n \"authToken\":\"{{token}}\",\r\n \"userInfo\":{{cboUser}}\r\n },\r\n \"attendance\": [\r\n {\r\n \"registerId\": \"{{registerId}}\",\r\n \"individualId\": \"b62ecb66-f391-40c5-b5da-1b90f86c1836\",\r\n \"time\": {{attendeeEnrollmentDate}},\r\n \"actualTotalAttendance\": 1,\r\n \"type\": \"ENTRY\",\r\n \"status\": \"ACTIVE\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"documentIds\": [\r\n {\r\n \"documentType\": \"documentType\",\r\n \"fileStore\": \"fileStore\",\r\n \"documentUid\": \"documentUid\"\r\n }\r\n ]\r\n },\r\n {\r\n \"registerId\": \"{{registerId}}\",\r\n \"individualId\": \"e84b64ee-9b95-4ee9-b008-cd3782dc91e3\",\r\n \"time\": {{attendeeEnrollmentDate}},\r\n \"actualTotalAttendance\": 1,\r\n \"type\": \"ENTRY\",\r\n \"status\": \"ACTIVE\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"documentIds\": [\r\n {\r\n \"documentType\": \"documentType\",\r\n \"fileStore\": \"fileStore\",\r\n \"documentUid\": \"documentUid\"\r\n }\r\n ]\r\n }\r\n ]\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/attendance/log/v1/_create", "host": [ "{{base_url}}" ], "path": [ "attendance", "log", "v1", "_create" ] } }, "response": [] }, { "name": "Attendance Log - Create - Fail - required fields are missing", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => ", " pm.expect(pm.response.to.have.status(400)));", "", "pm.test(\"Register Search response is received\", function () {", " var res = pm.response.json();", " pm.expect(res.Errors.length).to.equal(5);", " }", ");" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"RequestInfo\": {\r\n \"apiId\": \"mukta-services\",\r\n \"action\": \"\",\r\n \"did\": 1,\r\n \"key\": \"\",\r\n \"msgId\": \"20170310130900|en_IN\",\r\n \"requesterId\": \"\",\r\n \"ts\": 1513579888683,\r\n \"ver\": \".01\",\r\n \"authToken\":\"{{token}}\"\r\n },\r\n \"attendance\": [\r\n {\r\n \"registerId\": null,\r\n \"individualId\": null,\r\n \"time\": null,\r\n \"type\": null,\r\n \"status\": \"ACTIVE\",\r\n \"tenantId\": null,\r\n \"documentIds\":[\r\n {\r\n \"documentType\": \"documentType\",\r\n \"fileStore\": \"fileStore\",\r\n \"documentUid\": \"documentUid\"\r\n }\r\n \r\n ]\r\n }\r\n ]\r\n}\r\n", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/attendance/log/v1/_create", "host": [ "{{base_url}}" ], "path": [ "attendance", "log", "v1", "_create" ] } }, "response": [] }, { "name": "Attendance Log - Create - Fail - User is not authorised", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => ", " pm.expect(pm.response.to.have.status(400))", ");", "", "pm.test(\"Attendance Log created successfully\", function () {", " var res = pm.response.json();", " var code = res.Errors[0].code;", " pm.expect(code).to.eql(\"UNAUTHORISED_USER\");", " }", ");" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"RequestInfo\": {\r\n \"apiId\": \"mukta-services\",\r\n \"action\": \"\",\r\n \"did\": 1,\r\n \"key\": \"\",\r\n \"msgId\": \"20170310130900|en_IN\",\r\n \"requesterId\": \"\",\r\n \"ts\": 1513579888683,\r\n \"ver\": \".01\",\r\n \"authToken\":\"{{token}}\"\r\n },\r\n \"attendance\": [\r\n {\r\n \"registerId\": \"{{$randomUUID}}\",\r\n \"individualId\": \"{{individualId}}\",\r\n \"time\": {{attendeeEnrollmentDate}},\r\n \"type\": \"ENTRY\",\r\n \"status\": \"ACTIVE\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"documentIds\":[\r\n {\r\n \"documentType\": \"documentType\",\r\n \"fileStore\": \"fileStore\",\r\n \"documentUid\": \"documentUid\"\r\n }\r\n \r\n ]\r\n }\r\n ]\r\n}\r\n", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/attendance/log/v1/_create", "host": [ "{{base_url}}" ], "path": [ "attendance", "log", "v1", "_create" ] } }, "response": [] }, { "name": "Attendance Log - Create - Fail - All logs should belong to same registerId", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => ", " pm.expect(pm.response.to.have.status(400))", ");", "", "pm.test(\"Attendance Log created successfully\", function () {", " var res = pm.response.json();", " var code = res.Errors[0].code;", " pm.expect(code).to.eql(\"MULTIPLE_REGISTERIDS\");", " }", ");" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"RequestInfo\": {\r\n \"apiId\": \"mukta-services\",\r\n \"action\": \"\",\r\n \"did\": 1,\r\n \"key\": \"\",\r\n \"msgId\": \"20170310130900|en_IN\",\r\n \"requesterId\": \"\",\r\n \"ts\": 1513579888683,\r\n \"ver\": \".01\",\r\n \"authToken\":\"{{token}}\"\r\n },\r\n \"attendance\": [\r\n {\r\n \"registerId\": \"{{registerId}}\",\r\n \"individualId\": \"{{individualId}}\",\r\n \"time\": {{attendeeEnrollmentDate}},\r\n \"type\": \"ENTRY\",\r\n \"status\": \"ACTIVE\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"documentIds\":[\r\n {\r\n \"documentType\": \"documentType\",\r\n \"fileStore\": \"fileStore\",\r\n \"documentUid\": \"documentUid\"\r\n }\r\n \r\n ]\r\n },\r\n {\r\n \"registerId\": \"{{$randomUUID}}\",\r\n \"individualId\": \"{{individualId}}\",\r\n \"time\": {{attendeeEnrollmentDate}},\r\n \"type\": \"ENTRY\",\r\n \"status\": \"ACTIVE\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"documentIds\":[\r\n {\r\n \"documentType\": \"documentType\",\r\n \"fileStore\": \"fileStore\",\r\n \"documentUid\": \"documentUid\"\r\n }\r\n \r\n ]\r\n }\r\n ]\r\n}\r\n", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/attendance/log/v1/_create", "host": [ "{{base_url}}" ], "path": [ "attendance", "log", "v1", "_create" ] } }, "response": [] }, { "name": "Attendance Log - Create - Fail - Register should belongs to tenenatId", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => ", " pm.expect(pm.response.to.have.status(400))", ");", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"RequestInfo\": {\r\n \"apiId\": \"mukta-services\",\r\n \"action\": \"\",\r\n \"did\": 1,\r\n \"key\": \"\",\r\n \"msgId\": \"20170310130900|en_IN\",\r\n \"requesterId\": \"\",\r\n \"ts\": 1513579888683,\r\n \"ver\": \".01\",\r\n \"authToken\":\"{{token}}\"\r\n },\r\n \"attendance\": [\r\n {\r\n \"registerId\": \"{{$randomUUID}}\",\r\n \"individualId\": \"{{individualId}}\",\r\n \"time\": {{attendeeEnrollmentDate}},\r\n \"type\": \"ENTRY\",\r\n \"status\": \"ACTIVE\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"documentIds\":[\r\n {\r\n \"documentType\": \"documentType\",\r\n \"fileStore\": \"fileStore\",\r\n \"documentUid\": \"documentUid\"\r\n }\r\n \r\n ]\r\n }\r\n ]\r\n}\r\n", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/attendance/log/v1/_create", "host": [ "{{base_url}}" ], "path": [ "attendance", "log", "v1", "_create" ] } }, "response": [] }, { "name": "Attendance Log - Create - Fail - All logs should belong to same tenantId", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => ", " pm.expect(pm.response.to.have.status(400))", ");", "", "pm.test(\"Attendance Log created successfully\", function () {", " var res = pm.response.json();", " var code = res.Errors[0].code;", " pm.expect(code).to.eql(\"MULTIPLE_TENANTIDS\");", " }", ");" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"RequestInfo\": {\r\n \"apiId\": \"mukta-services\",\r\n \"action\": \"\",\r\n \"did\": 1,\r\n \"key\": \"\",\r\n \"msgId\": \"20170310130900|en_IN\",\r\n \"requesterId\": \"\",\r\n \"ts\": 1513579888683,\r\n \"ver\": \".01\",\r\n \"authToken\":\"{{token}}\"\r\n },\r\n \"attendance\": [\r\n {\r\n \"registerId\": \"{{registerId}}\",\r\n \"individualId\": \"{{individualId}}\",\r\n \"time\": {{attendeeEnrollmentDate}},\r\n \"type\": \"ENTRY\",\r\n \"status\": \"ACTIVE\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"documentIds\":[\r\n {\r\n \"documentType\": \"documentType\",\r\n \"fileStore\": \"fileStore\",\r\n \"documentUid\": \"documentUid\"\r\n }\r\n \r\n ]\r\n },\r\n {\r\n \"registerId\": \"{{registerId}}\",\r\n \"individualId\": \"{{individualId}}\",\r\n \"time\": {{attendeeEnrollmentDate}},\r\n \"type\": \"ENTRY\",\r\n \"status\": \"ACTIVE\",\r\n \"tenantId\": \"tenant.id\",\r\n \"documentIds\":[\r\n {\r\n \"documentType\": \"documentType\",\r\n \"fileStore\": \"fileStore\",\r\n \"documentUid\": \"documentUid\"\r\n }\r\n \r\n ]\r\n }\r\n ]\r\n}\r\n", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/attendance/log/v1/_create", "host": [ "{{base_url}}" ], "path": [ "attendance", "log", "v1", "_create" ] } }, "response": [] }, { "name": "Attendance Log - Create - Fail - Validate Attendance Log time", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => ", " pm.expect(pm.response.to.have.status(400))", ");", "", "pm.test(\"Attendance Log created successfully\", function () {", " var res = pm.response.json();", " var code = res.Errors[0].code;", " pm.expect(code).to.eql(\"INVALID_ATTENDANCE_TIME\");", " }", ");" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"RequestInfo\": {\r\n \"apiId\": \"mukta-services\",\r\n \"action\": \"\",\r\n \"did\": 1,\r\n \"key\": \"\",\r\n \"msgId\": \"20170310130900|en_IN\",\r\n \"requesterId\": \"\",\r\n \"ts\": 1513579888683,\r\n \"ver\": \".01\",\r\n \"authToken\":\"{{token}}\"\r\n },\r\n \"attendance\": [\r\n {\r\n \"registerId\": \"{{registerId}}\",\r\n \"individualId\": \"{{individualId}}\",\r\n \"time\": {{invalidRegisterEndDate}},\r\n \"type\": \"ENTRY\",\r\n \"status\": \"ACTIVE\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"documentIds\":[\r\n {\r\n \"documentType\": \"documentType\",\r\n \"fileStore\": \"fileStore\",\r\n \"documentUid\": \"documentUid\"\r\n }\r\n \r\n ]\r\n }\r\n ]\r\n}\r\n", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/attendance/log/v1/_create", "host": [ "{{base_url}}" ], "path": [ "attendance", "log", "v1", "_create" ] } }, "response": [] }, { "name": "Attendance Log - Search - Success", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => ", " pm.expect(pm.response.to.have.status(200))", ");", "", "pm.test(\"Attendance Log created successfully\", function () {", " var res = pm.response.json();", " pm.expect(res.attendance).to.be.not.null;", " }", ");" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"RequestInfo\": {\r\n \"apiId\": \"mukta-services\",\r\n \"action\": \"\",\r\n \"did\": 1,\r\n \"key\": \"\",\r\n \"msgId\": \"20170310130900|en_IN\",\r\n \"requesterId\": \"\",\r\n \"ts\": 1513579888683,\r\n \"ver\": \".01\",\r\n \"authToken\":\"{{token}}\"\r\n }\r\n}\r\n", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/attendance/log/v1/_search?tenantId={{tenantId}}®isterId={{registerId}}", "host": [ "{{base_url}}" ], "path": [ "attendance", "log", "v1", "_search" ], "query": [ { "key": "tenantId", "value": "{{tenantId}}" }, { "key": "registerId", "value": "{{registerId}}" } ] } }, "response": [] }, { "name": "Attendance Log - Search - Fail - RegisterId is required", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => ", " pm.expect(pm.response.to.have.status(400))", ");", "", "pm.test(\"Attendance Log created successfully\", function () {", " var res = pm.response.json();", " var code = res.Errors[0].code;", " pm.expect(code).to.eql(\"REGISTER_ID\");", " }", ");" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"RequestInfo\": {\r\n \"apiId\": \"mukta-services\",\r\n \"action\": \"\",\r\n \"did\": 1,\r\n \"key\": \"\",\r\n \"msgId\": \"20170310130900|en_IN\",\r\n \"requesterId\": \"\",\r\n \"ts\": 1513579888683,\r\n \"ver\": \".01\",\r\n \"authToken\":\"{{token}}\"\r\n }\r\n}\r\n", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/attendance/log/v1/_search?tenantId={{tenantId}}", "host": [ "{{base_url}}" ], "path": [ "attendance", "log", "v1", "_search" ], "query": [ { "key": "tenantId", "value": "{{tenantId}}" } ] } }, "response": [] }, { "name": "Attendance Log - Search - Fail - TenantId is required", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => ", " pm.expect(pm.response.to.have.status(400))", ");", "", "pm.test(\"Attendance Log created successfully\", function () {", " var res = pm.response.json();", " var code = res.Errors[0].code;", " pm.expect(code).to.eql(\"TENANT_ID\");", " }", ");" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"RequestInfo\": {\r\n \"apiId\": \"mukta-services\",\r\n \"action\": \"\",\r\n \"did\": 1,\r\n \"key\": \"\",\r\n \"msgId\": \"20170310130900|en_IN\",\r\n \"requesterId\": \"\",\r\n \"ts\": 1513579888683,\r\n \"ver\": \".01\",\r\n \"authToken\":\"{{token}}\"\r\n }\r\n}\r\n", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/attendance/log/v1/_search", "host": [ "{{base_url}}" ], "path": [ "attendance", "log", "v1", "_search" ] } }, "response": [] }, { "name": "Attendance Log - Update - Success", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => {", " pm.expect(pm.response).to.have.status(200);", "});", "", "pm.test(\"Attendance Log updated successfully\", function () {", " var res = pm.response.json();", " var status = res.attendance[0].status;", " pm.expect(status).to.eql(\"ACTIVE\");", "});", "", "// Extract the id from the first object", "let responseData = pm.response.json();", "", "// Check if the attendance array has more than one object before extracting the ids", "if (responseData.attendance.length > 0) {", " const id1 = responseData.attendance[0].id;", " pm.collectionVariables.set(\"id1\", id1);", "}", "", "// Check if the attendance array has more than two objects before extracting the second id", "if (responseData.attendance.length > 1) {", " const id2 = responseData.attendance[1].id;", " pm.collectionVariables.set(\"id2\", id2);", "}", "" ], "type": "text/javascript", "packages": {} } }, { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"RequestInfo\": {\r\n \"apiId\": \"mukta-services\",\r\n \"action\": \"\",\r\n \"did\": 1,\r\n \"key\": \"\",\r\n \"msgId\": \"20170310130900|en_IN\",\r\n \"requesterId\": \"\",\r\n \"ts\": 1513579888683,\r\n \"ver\": \".01\",\r\n \"authToken\":\"{{token}}\",\r\n \"userInfo\": {{cboUser}}\r\n },\r\n \"attendance\": [\r\n {{attendenceall}}\r\n ]\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/attendance/log/v1/_update", "host": [ "{{base_url}}" ], "path": [ "attendance", "log", "v1", "_update" ] } }, "response": [] }, { "name": "Attendance Log - Update - fail - attendanceId is not valid", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => ", " pm.expect(pm.response.to.have.status(400))", ");", "", "pm.test(\"Attendance Log updated successfully\", function () {", " var res = pm.response.json();", " var code = res.Errors[0].code;", " pm.expect(code).to.eql(\"ATTENDANCE_LOG\");", " }", ");" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"RequestInfo\": {\r\n \"apiId\": \"mukta-services\",\r\n \"action\": \"\",\r\n \"did\": 1,\r\n \"key\": \"\",\r\n \"msgId\": \"20170310130900|en_IN\",\r\n \"requesterId\": \"\",\r\n \"ts\": 1513579888683,\r\n \"ver\": \".01\",\r\n \"authToken\":\"{{token}}\"\r\n },\r\n \"attendance\": [\r\n {\r\n \"id\": \"{{$randomUUID}}\",\r\n \"registerId\": \"{{registerId}}\",\r\n \"individualId\": \"{{individualId}}\",\r\n \"time\": {{attendeeEnrollmentDate}},\r\n \"type\": \"ENTRY\",\r\n \"status\": \"INACTIVE\",\r\n \"tenantId\": \"{{tenantId}}\",\r\n \"documentIds\":[\r\n {\r\n \"documentType\": \"documentType\",\r\n \"fileStore\": \"fileStore\",\r\n \"documentUid\": \"documentUid\"\r\n }\r\n \r\n ],\r\n \"auditDetails\": {\r\n \"createdBy\": \"47b5ea82-249c-4435-9646-16167fec06df\",\r\n \"lastModifiedBy\": \"47b5ea82-249c-4435-9646-16167fec06df\",\r\n \"createdTime\": 1671090269007,\r\n \"lastModifiedTime\": 1671090269007\r\n }\r\n \r\n }\r\n ]\r\n}\r\n", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/attendance/log/v1/_update", "host": [ "{{base_url}}" ], "path": [ "attendance", "log", "v1", "_update" ] } }, "response": [] } ] }, { "name": "Muster Roll Test Script", "item": [ { "name": "Estimate muster roll - Success", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"TenantId is required\", function () {", " var req = JSON.parse(pm.request.body.raw);", " pm.expect(req.musterRoll.tenantId).to.be.not.null});", "", "pm.test(\"TenantId is required\", function () {", " var req = JSON.parse(pm.request.body.raw);", " pm.expect(req.musterRoll.tenantId).to.not.be.undefined});", "", "pm.test(\"registerId is required\", function () {", " var req = JSON.parse(pm.request.body.raw);", " pm.expect(req.musterRoll.registerId).to.be.not.null});", "", "pm.test(\"registerId is required\", function () {", " var req = JSON.parse(pm.request.body.raw);", " pm.expect(req.musterRoll.registerId).to.not.be.undefined});", "", "pm.test(\"startDate is required\", function () {", " var req = JSON.parse(pm.request.body.raw);", " pm.expect(req.musterRoll.startDate).to.be.not.null});", "", "pm.test(\"startDate is required\", function () {", " var req = JSON.parse(pm.request.body.raw);", " pm.expect(req.musterRoll.startDate).to.not.be.undefined});", "", "pm.test(\"endDate is required\", function () {", " var req = JSON.parse(pm.request.body.raw);", " pm.expect(req.musterRoll.endDate).to.be.not.null});", "", "pm.test(\"endDate is required\", function () {", " var req = JSON.parse(pm.request.body.raw);", " pm.expect(req.musterRoll.endDate).to.not.be.undefined});", "", "pm.test(\"Response is successful\", () => ", " pm.expect(pm.response.to.have.status(200)));", "" ], "type": "text/javascript", "packages": {} } }, { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"asset-services\",\n \"ver\": null,\n \"ts\": null,\n \"action\": null,\n \"did\": null,\n \"key\": null,\n \"msgId\": \"search with from and to values\",\n \"authToken\": \"{{token}}\",\n \"userInfo\": {{cboUser}}\n },\n \"musterRoll\": {\n \"tenantId\": \"{{tenantId}}\",\n \"registerId\": \"{{registerId}}\",\n \"referenceId\":\"{{WONo}}\",\n \"startDate\": {{dateOfProposal}},\n \"endDate\": {{endDate}}\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/muster-roll/v1/_estimate", "host": [ "{{base_url}}" ], "path": [ "muster-roll", "v1", "_estimate" ] } }, "response": [] }, { "name": "Estimate muster roll - Validation error", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => ", " pm.expect(pm.response.to.have.status(400)));" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"asset-services\",\n \"ver\": null,\n \"ts\": null,\n \"action\": null,\n \"did\": null,\n \"key\": null,\n \"msgId\": \"search with from and to values\",\n \"authToken\": \"{{auth}}\",\n \"userInfo\": {\n \"id\": 169,\n \"uuid\": \"81a1988f-9072-4ff9-8aa4-eee5cf10ba57\",\n \"userName\": \"7070102021\",\n \"name\": \"test2\",\n \"mobileNumber\": \"9130011254\",\n \"emailId\": \"xyz@egovernments.org\",\n \"locale\": null,\n \"type\": \"EMPLOYEE\",\n \"roles\": [\n {\n \"name\": \"Organization staff\",\n \"code\": \"ORG_STAFF\",\n \"tenantId\": \"{{tenantId}}\"\n }]\n }\n },\n \"musterRoll\": {\n \"tenantId\": \"{{tenantId}}\",\n \"registerId\": \"56shcwgdt227\",\n \"startDate\": 1669919400000\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/muster-roll/v1/_estimate", "host": [ "{{base_url}}" ], "path": [ "muster-roll", "v1", "_estimate" ] } }, "response": [] }, { "name": "Create muster roll - Success with Individual Skill all individuals", "event": [ { "listen": "test", "script": { "exec": [ "let responseData = pm.response.json();\r", "var musterrollId = responseData.musterRolls[0].id;\r", "pm.environment.set(\"musterrollId\", musterrollId);\r", "\r", "pm.test(\"Response is successful\", () => \r", " pm.expect(pm.response.to.have.status(200))\r", ");\r", "pm.test(\"muster roll status is approved\", function(){\r", " let responseData= pm.response.json();\r", " var musterRollStatus= responseData.musterRolls[0].musterRollStatus;\r", " pm.expect(musterRollStatus).to.be.equal(\"PENDINGFORVERIFICATION\");\r", "});" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"asset-services\",\n \"ver\": null,\n \"ts\": null,\n \"action\": null,\n \"did\": null,\n \"key\": null,\n \"msgId\": \"search with from and to values\",\n \"authToken\": \"{{token}}\",\n \"userInfo\": {\n \"id\": 6281,\n \"uuid\": \"76a3bfa2-369d-4aec-93bf-b144b86e3e7c\",\n \"userName\": \"9862798377\",\n \"name\": \"fgibul\",\n \"mobileNumber\": \"9862798377\",\n \"emailId\": \"a@b.com\",\n \"locale\": null,\n \"type\": \"CITIZEN\",\n \"roles\": [\n {\n \"name\": \"Organization admin\",\n \"code\": \"ORG_ADMIN\",\n \"tenantId\": \"pg\"\n }\n ],\n \"active\": true,\n \"tenantId\": \"pg\",\n \"permanentCity\": null\n }\n },\n \"musterRoll\": {\n \"tenantId\": \"{{tenantId}}\",\n \"registerId\": \"{{registerId}}\",\n \"referenceId\":\"{{WONo}}\",\n \"startDate\": 1670178600000,\n \"endDate\": 1670697000000,\n \"individualEntries\": [\n {\n \"individualId\": \"e84b64ee-9b95-4ee9-b008-cd3782dc91e3\",\n \"additionalDetails\": {\n \"code\": \"SOR_0000015\",\n \"actualTotalAttendance\": 1\n }\n },\n {\n \"individualId\": \"b62ecb66-f391-40c5-b5da-1b90f86c1836\",\n \"additionalDetails\": {\n \"code\": \"SOR_0000013\",\n \"actualTotalAttendance\": 1\n }\n }\n ],\n \"additionalDetails\": {\n \"org details\": \"org1\"\n }\n },\n \"workflow\": {\n \"action\": \"SUBMIT\",\n \"comments\": \"Sumbit muster roll\",\n \"assignees\": []\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/muster-roll/v1/_create", "host": [ "{{base_url}}" ], "path": [ "muster-roll", "v1", "_create" ] } }, "response": [] }, { "name": "Create muster roll - Validation error - StartDate not Monday", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => ", " pm.expect(pm.response.to.have.status(400)));", "", "pm.test(\"Correct Error with message and code is received\", function () {", " var res = pm.response.json();", " var code = res.Errors[0].code;", " var message = res.Errors[0].message;", " pm.expect(code).to.eql(\"START_DATE_MONDAY\");", " pm.expect(message).to.eql(\"StartDate should be Monday\");", " }", ");" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"asset-services\",\n \"ver\": null,\n \"ts\": null,\n \"action\": null,\n \"did\": null,\n \"key\": null,\n \"msgId\": \"search with from and to values\",\n \"authToken\": \"{{token}}\",\n \"userInfo\": {\n \"id\": 169,\n \"uuid\": \"81a1988f-9072-4ff9-8aa4-eee5cf10ba57\",\n \"userName\": \"7070102021\",\n \"name\": \"test2\",\n \"mobileNumber\": \"9130011254\",\n \"emailId\": \"xyz@egovernments.org\",\n \"locale\": null,\n \"type\": \"EMPLOYEE\",\n \"roles\": [\n {\n \"name\": \"Organization staff\",\n \"code\": \"ORG_STAFF\",\n \"tenantId\": \"{{tenantId}}\"\n }\n ]\n }\n },\n \"musterRoll\": {\n \"tenantId\": \"{{tenantId}}\",\n \"registerId\": \"56shcwgdt227\",\n \"startDate\": 1669919400000\n },\n \"workflow\": {\n \"action\": \"SUBMIT\",\n \"comments\": \"Sumbit muster roll\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/muster-roll/v1/_create", "host": [ "{{base_url}}" ], "path": [ "muster-roll", "v1", "_create" ] } }, "response": [] }, { "name": "Update muster roll - Success - VERIFY action - Update total attendance and skill", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response status code is 200\", function () {\r", " pm.response.to.have.status(200);\r", "});\r", "\r", "\r", "pm.test(\"Content-Type header is application/json\", function () {\r", " pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/json\");\r", "});\r", "\r", "\r", "\r", "pm.test(\"muster roll status is approved\", function(){\r", " let responseData= pm.response.json();\r", " var musterRollStatus= responseData.musterRolls[0].musterRollStatus;\r", " pm.expect(musterRollStatus).to.be.equal(\"PENDINGFORAPPROVAL\");\r", "});" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"asset-services\",\n \"ver\": null,\n \"ts\": null,\n \"action\": null,\n \"did\": null,\n \"key\": null,\n \"msgId\": \"search with from and to values\",\n \"authToken\": \"{{auth}}\",\n \"userInfo\":{{userinfo}}\n },\n \"musterRoll\": {\n \"tenantId\": \"{{tenantId}}\",\n \"id\":\"{{musterrollId}}\",\n \"individualEntries\": [\n {\n \"id\": \"b62ecb66-f391-40c5-b5da-1b90f86c1836\",\n \"modifiedTotalAttendance\": 4.5,\n \"additionalDetails\": {\"level\":\"SOR_0000013\"}\n },\n {\n \"id\": \"e84b64ee-9b95-4ee9-b008-cd3782dc91e3\",\n \"modifiedTotalAttendance\": 4.5,\n \"additionalDetails\": {\"level\":\"SOR_0000015\"}\n }\n\n ]\n },\n \"workflow\": {\n \"action\": \"VERIFYANDFORWARD\",\n \"comments\": \"Verify muster roll\",\n \"assignees\": []\n \n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/muster-roll/v1/_update", "host": [ "{{base_url}}" ], "path": [ "muster-roll", "v1", "_update" ] } }, "response": [] }, { "name": "Update muster roll - Success - APPROVE action", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response status code is 200\", function () {\r", " pm.response.to.have.status(200);\r", "});\r", "\r", "\r", "pm.test(\"Content-Type header is application/json\", function () {\r", " pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/json\");\r", "});\r", "\r", "\r", "pm.test(\"Response time is less than 200ms\", function () {\r", " pm.expect(pm.response.responseTime).to.be.below(200);\r", "});\r", "pm.test(\"muster roll status is approved\", function(){\r", " let responseData= pm.response.json();\r", " var musterRollStatus= responseData.musterRolls[0].musterRollStatus;\r", " pm.expect(musterRollStatus).to.be.equal(\"APPROVED\");\r", "});\r", "\r", "// Stores the first musterRollNumber in an environment or global variable\r", "var firstMusterRollNumber = pm.response.json().musterRolls[0].musterRollNumber;\r", "pm.globals.set(\"firstMusterRollNumber\", firstMusterRollNumber);" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"asset-services\",\n \"ver\": null,\n \"ts\": null,\n \"action\": null,\n \"did\": null,\n \"key\": null,\n \"msgId\": \"search with from and to values\",\n \"authToken\": \"{{auth}}\",\n \"userInfo\":{{userinfo}}\n },\n \"musterRoll\": {\n \"tenantId\": \"{{tenantId}}\",\n \"id\": \"{{musterrollId}}\"\n },\n \"workflow\": {\n \"action\": \"APPROVE\",\n \"comments\": \"Approve muster roll\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/muster-roll/v1/_update", "host": [ "{{base_url}}" ], "path": [ "muster-roll", "v1", "_update" ] } }, "response": [] }, { "name": "Update muster roll - Validation error - VERIFY ineligible", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => ", " pm.expect(pm.response.to.have.status(400)));" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"asset-services\",\n \"ver\": null,\n \"ts\": null,\n \"action\": null,\n \"did\": null,\n \"key\": null,\n \"msgId\": \"search with from and to values\",\n \"authToken\": \"{{auth}}\",\n \"userInfo\": {\n \"id\": 169,\n \"uuid\": \"81a1988f-9072-4ff9-8aa4-eee5cf10ba57\",\n \"userName\": \"7070102021\",\n \"name\": \"test2\",\n \"mobileNumber\": \"9130011254\",\n \"emailId\": \"xyz@egovernments.org\",\n \"locale\": null,\n \"type\": \"EMPLOYEE\",\n \"roles\": [\n {\n \"name\": \"Organization staff\",\n \"code\": \"ORG_STAFF\",\n \"tenantId\": \"{{tenantId}}\"\n }]\n }\n },\n \"musterRoll\": {\n \"tenantId\": \"{{tenantId}}\",\n \"id\":\"4a8ee311-3354-4c2b-8569-27c4798d4669\",\n \"individualEntries\": [\n {\n \"id\": \"ed30593b-afd6-4497-86a7-9c8e203a0d4f\",\n \"totalAttendance\": 3.5\n },\n {\n \"id\": \"fb8bf65e-8565-4d64-8cc7-4b04bc1edfad\",\n \"totalAttendance\": 2\n }\n\n ]\n },\n \"workflow\": {\n \"action\": \"VERIFY\",\n \"comments\": \"Verify muster roll\",\n \"assignees\": []\n \n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/muster-roll/v1/_update", "host": [ "{{base_url}}" ], "path": [ "muster-roll", "v1", "_update" ] } }, "response": [] }, { "name": "Search Muster Roll - musterRollNumber based", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => ", " pm.expect(pm.response.to.have.status(200)));" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"asset-services\",\n \"ver\": null,\n \"ts\": null,\n \"action\": null,\n \"did\": null,\n \"key\": null,\n \"msgId\": \"search with from and to values\",\n \"authToken\": \"{{auth}}\",\n \"userInfo\": {\n \"id\": 172,\n \"uuid\": \"5ce80dd3-b1c0-42fd-b8f6-a2be456db31c\",\n \"userName\": \"8070102021\",\n \"name\": \"test3\",\n \"mobileNumber\": \"8070102021\",\n \"emailId\": \"xyz@egovernments.org\",\n \"locale\": null,\n \"type\": \"EMPLOYEE\",\n \"roles\": [\n {\n \"code\": \"JUNIOR_ENGINEER\",\n \"name\": \"JUNIOR ENGINEER\",\n \"tenantId\": \"{{tenantId}}\"\n }\n ]\n }\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/muster-roll/v1/_search?tenantId={{tenantId}}&musterRollNumber=MR/2024-25/04/16/000030", "host": [ "{{base_url}}" ], "path": [ "muster-roll", "v1", "_search" ], "query": [ { "key": "tenantId", "value": "{{tenantId}}" }, { "key": "musterRollNumber", "value": "MR/2024-25/04/16/000030" } ] } }, "response": [] }, { "name": "Search Muster Roll - startDate and endDate based - multi muster roll response", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => ", " pm.expect(pm.response.to.have.status(200)));" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"asset-services\",\n \"ver\": null,\n \"ts\": null,\n \"action\": null,\n \"did\": null,\n \"key\": null,\n \"msgId\": \"search with from and to values\",\n \"authToken\": \"{{auth}}\",\n \"userInfo\": {\n \"id\": 172,\n \"uuid\": \"5ce80dd3-b1c0-42fd-b8f6-a2be456db31c\",\n \"userName\": \"8070102021\",\n \"name\": \"test3\",\n \"mobileNumber\": \"8070102021\",\n \"emailId\": \"xyz@egovernments.org\",\n \"locale\": null,\n \"type\": \"EMPLOYEE\",\n \"roles\": [\n {\n \"code\": \"JUNIOR_ENGINEER\",\n \"name\": \"JUNIOR ENGINEER\",\n \"tenantId\": \"{{tenantId}}\"\n }\n ]\n }\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/muster-roll/v1/_search?tenantId={{tenantId}}&fromDate=1670178600000&toDate=1670697000000", "host": [ "{{base_url}}" ], "path": [ "muster-roll", "v1", "_search" ], "query": [ { "key": "tenantId", "value": "{{tenantId}}" }, { "key": "fromDate", "value": "1670178600000" }, { "key": "toDate", "value": "1670697000000" } ] } }, "response": [] }, { "name": "Search Muster Roll - state level tenant", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () => ", " pm.expect(pm.response.to.have.status(200)));" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"asset-services\",\n \"ver\": null,\n \"ts\": null,\n \"action\": null,\n \"did\": null,\n \"key\": null,\n \"msgId\": \"search with from and to values\",\n \"authToken\": \"{{auth}}\",\n \"userInfo\": {\n \"id\": 172,\n \"uuid\": \"5ce80dd3-b1c0-42fd-b8f6-a2be456db31c\",\n \"userName\": \"8070102021\",\n \"name\": \"test3\",\n \"mobileNumber\": \"8070102021\",\n \"emailId\": \"xyz@egovernments.org\",\n \"locale\": null,\n \"type\": \"EMPLOYEE\",\n \"roles\": [\n {\n \"code\": \"JUNIOR_ENGINEER\",\n \"name\": \"JUNIOR ENGINEER\",\n \"tenantId\": \"{{tenantId}}\"\n }\n ]\n }\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/muster-roll/v1/_search?tenantId={{tenantId}}", "host": [ "{{base_url}}" ], "path": [ "muster-roll", "v1", "_search" ], "query": [ { "key": "tenantId", "value": "{{tenantId}}" } ] } }, "response": [] } ] }, { "name": "Expense Test Script", "item": [ { "name": "Bill Create-Success", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Capture and Parse Response Body\", function () {\r", " // Capture the entire response body\r", " var responseBody = pm.response.json();\r", "\r", " // Extract the array from the response body\r", " var dataArray = responseBody.bills[0]; // Replace \"dataArray\" with the actual key of the array in your response body\r", "\r", " // Store the array in an environment or global variable\r", " pm.environment.set(\"bills\", JSON.stringify(dataArray));\r", "});\r", "\r", "pm.test(\"Response status code is 200\", function () {\r", " pm.response.to.have.status(200);\r", "});\r", "\r", "pm.test(\"Bill status is In Workflow\", function(){\r", " let responseData= pm.response.json();\r", " var status= responseData.bills[0].status;\r", " pm.expect(status).to.be.equal(\"INWORKFLOW\");\r", "});\r", "\r", "let responseData = pm.response.json();\r", "var billNumber = responseData.bills[0].billNumber;\r", "pm.collectionVariables.set(\"billNumber\",billNumber);" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"string\",\n \"ver\": \"string\",\n \"ts\": 0,\n \"action\": \"string\",\n \"did\": \"string\",\n \"key\": \"string\",\n \"msgId\": \"string\",\n \"requesterId\": \"string\",\n \"authToken\": \"{{auth}}\",\n \"userInfo\": {\n \"id\": 393,\n \"uuid\": \"JAGAN\",\n \"userName\": \"super-bill\",\n \"name\": \"super-biller\",\n \"mobileNumber\": \"9123456712\",\n \"emailId\": null,\n \"locale\": null,\n \"type\": \"EMPLOYEE\",\n \"active\": true,\n \"tenantId\": \"pg.citya\",\n \"permanentCity\": null\n }\n },\n \"bill\": {\n \"tenantId\":\"{{tenantId}}\",\n \"billDate\": {{dateOfProposal}},\n \"dueDate\": {{endDate}},\n \"businessService\": \"EXPENSE.PURCHASE\",\n \"referenceId\": \"{{WONo}}\",\n \"fromPeriod\": {{dateOfProposal}},\n \"toPeriod\": {{endDate}},\n \"paymentStatus\": null,\n // \"billNumber\": \"PG/JAG/222010/113233\",\n \"payer\": {\n \"tenantId\": \"pg.citya\",\n \"type\": \"DEPARTMENT\",\n \"identifier\": \"RURALMINISTRY-MUKTHA\",\n \"status\": \"ACTIVE\",\n \"additionalDetails\": {}\n },\n \"billDetails\": [\n {\n \"tenantId\": \"{{tenantId}}\",\n \"referenceId\": \"s-o-m-e-u-u-i-d\",\n \"paymentStatus\": null,\n \"fromPeriod\": {{dateOfProposal}},\n \"toPeriod\": {{endDate}},\n \"netLineItemAmount\": 10012,\n \"payee\": {\n \"tenantId\": \"pg.citya\",\n \"type\": \"ORG\",\n \"identifier\":\"c948254b-efa1-4e2a-8db7-bf24533f2aa5\",\n \"status\": \"ACTIVE\",\n \"additionalDetails\": {} \n },\n \"lineItems\": [\n {\n \"tenantId\": \"{{tenantId}}\",\n \"headCode\": \"LC\",\n \"amount\": 1500,\n \"type\": \"PAYABLE\",\n \"paidAmount\": 0,\n \"status\": \"ACTIVE\",\n \"isLineItemPayable\": true,\n \"additionalDetails\": {}\n }\n ],\n \"payableLineItems\": [\n {\n \"tenantId\": \"{{tenantId}}\",\n \"headCode\": \"LC\",\n \"amount\": 1500,\n \"type\": \"PAYABLE\",\n \"paidAmount\": 0,\n \"status\": \"ACTIVE\",\n \"isLineItemPayable\": true,\n \"additionalDetails\": {}\n }\n ],\n \"additionalDetails\": \n {\n \"projectName\":\"twemp\" ,\n \"cboName\":\"Roso\",\n \"ward\":\"B1\",\n \"locality\":\"C3\"\n }\n }\n ]\n },\n \"workflow\": {\n \"action\": \"SUBMIT\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/expense/bill/v1/_create", "host": [ "{{base_url}}" ], "path": [ "expense", "bill", "v1", "_create" ] } }, "response": [ { "name": "bill/v1/_create", "originalRequest": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"string\",\n \"ver\": \"string\",\n \"ts\": 0,\n \"action\": \"string\",\n \"did\": \"string\",\n \"key\": \"string\",\n \"msgId\": \"string\",\n \"requesterId\": \"string\",\n \"authToken\": \"d58cb8e5-97c5-4ada-9e61-3deaaf831750\",\n \"userInfo\": {\n \"id\": 261,\n \"uuid\": \"1b348954-c257-4d18-afac-1b19fc3d86da\",\n \"userName\": \"EMP33\",\n \"name\": \"Jagankumar\",\n \"mobileNumber\": \"8877006677\",\n \"emailId\": \"abcd9890@dev.com\",\n \"type\": \"EMPLOYEE\",\n \"roles\": [\n {\n \"name\": \"Employee\",\n \"code\": \"EMPLOYEE\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"HRMS Admin\",\n \"code\": \"HRMS_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_VERIFIER\",\n \"code\": \"BILL_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE VERIFIER\",\n \"code\": \"ESTIMATE_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER CREATOR\",\n \"code\": \"WORK_ORDER_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE APPROVER\",\n \"code\": \"ESTIMATE_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER VERIFIER\",\n \"code\": \"WORK_ORDER_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PROJECT VIEWER\",\n \"code\": \"PROJECT_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_APPROVER\",\n \"code\": \"BILL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUSTER ROLL VERIFIER\",\n \"code\": \"MUSTER_ROLL_VERIFIER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"PROJECT CREATOR\",\n \"code\": \"PROJECT_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"Employee Common\",\n \"code\": \"EMPLOYEE_COMMON\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_VIEWER\",\n \"code\": \"BILL_VIEWER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"TECHNICAL SANCTIONER\",\n \"code\": \"TECHNICAL_SANCTIONER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"BILL_CREATOR\",\n \"code\": \"BILL_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUSTER ROLL APPROVER\",\n \"code\": \"MUSTER_ROLL_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"WORK ORDER APPROVER\",\n \"code\": \"WORK_ORDER_APPROVER\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"ESTIMATE CREATOR\",\n \"code\": \"ESTIMATE_CREATOR\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"MUKTA Admin\",\n \"code\": \"MUKTA_ADMIN\",\n \"tenantId\": \"pg.citya\"\n },\n {\n \"name\": \"State Dashboard Admin\",\n \"code\": \"STADMIN\",\n \"tenantId\": \"pg.citya\"\n }\n ],\n \"tenantId\": \"pg.citya\"\n }\n },\n \"bill\": {\n \"id\": \"5af0e2e9-6f64-4857-bf22-10ad8bb42728\",\n \"tenantId\": \"pg.citya\",\n \"billDate\": 1688384171229,\n \"dueDate\": 1688384171229,\n \"totalAmount\": 515,\n \"totalPaidAmount\": 515,\n \"businessService\": \"EXPENSE.WAGES\",\n \"referenceId\": \"WO/2023-24/000752_MR/2023-24/06/09/000806_WR_000087\",\n \"fromPeriod\": 1685903400000,\n \"toPeriod\": 1686421800000,\n \"paymentStatus\": \"INITIATED\",\n \"status\": \"ACTIVE\",\n \"billNumber\": \"WB/2023-24/000149\",\n \"payer\": {\n \"id\": \"6a097fe2-e758-45bd-887d-221974036314\",\n \"parentId\": null,\n \"tenantId\": \"pg.citya\",\n \"type\": \"pg.citya\",\n \"identifier\": \"001\",\n \"status\": \"ACTIVE\",\n \"additionalDetails\": null,\n \"auditDetails\": {\n \"createdBy\": \"1b348954-c257-4d18-afac-1b19fc3d86da\",\n \"lastModifiedBy\": \"1b348954-c257-4d18-afac-1b19fc3d86da\",\n \"createdTime\": 1688384171485,\n \"lastModifiedTime\": 1688384171485\n }\n },\n \"billDetails\": [\n {\n \"id\": \"f376b66b-a911-4d3c-ac10-64606cb33a3e\",\n \"tenantId\": \"pg.citya\",\n \"billId\": \"5af0e2e9-6f64-4857-bf22-10ad8bb42728\",\n \"totalAmount\": 515,\n \"totalPaidAmount\": 515,\n \"referenceId\": \"MR/2023-24/06/09/000806\",\n \"paymentStatus\": \"INITIATED\",\n \"status\": \"ACTIVE\",\n \"fromPeriod\": 1685903400000,\n \"toPeriod\": 1686421800000,\n \"payee\": {\n \"id\": \"bef074be-f9f4-4442-a1da-655ca167011d\",\n \"parentId\": null,\n \"tenantId\": \"pg.citya\",\n \"type\": \"INDIVIDUAL\",\n \"identifier\": \"e52bc7ae-8a8c-440a-8ee8-ebbd67258194\",\n \"status\": \"ACTIVE\",\n \"additionalDetails\": null,\n \"auditDetails\": {\n \"createdBy\": \"1b348954-c257-4d18-afac-1b19fc3d86da\",\n \"lastModifiedBy\": \"1b348954-c257-4d18-afac-1b19fc3d86da\",\n \"createdTime\": 1688384171485,\n \"lastModifiedTime\": 1688384171485\n }\n },\n \"lineItems\": [\n {\n \"id\": \"a6b6bd72-284a-4512-96f4-5e6de5e97f70\",\n \"billDetailId\": null,\n \"tenantId\": \"pg.citya\",\n \"headCode\": \"WEG\",\n \"amount\": 515,\n \"type\": \"PAYABLE\",\n \"paidAmount\": 0,\n \"status\": \"ACTIVE\",\n \"paymentStatus\": null,\n \"additionalDetails\": null,\n \"auditDetails\": {\n \"createdBy\": \"1b348954-c257-4d18-afac-1b19fc3d86da\",\n \"lastModifiedBy\": \"1b348954-c257-4d18-afac-1b19fc3d86da\",\n \"createdTime\": 1688384171485,\n \"lastModifiedTime\": 1688384171485\n }\n },\n {\n \"id\": \"30d60649-2959-426e-8c59-caa3ecfd8f25\",\n \"billDetailId\": null,\n \"tenantId\": \"pg.citya\",\n \"headCode\": \"LC\",\n \"amount\": 5,\n \"type\": \"DEDUCTION\",\n \"paidAmount\": 0,\n \"status\": \"ACTIVE\",\n \"paymentStatus\": null,\n \"additionalDetails\": null,\n \"auditDetails\": {\n \"createdBy\": \"1b348954-c257-4d18-afac-1b19fc3d86da\",\n \"lastModifiedBy\": \"1b348954-c257-4d18-afac-1b19fc3d86da\",\n \"createdTime\": 1688384171485,\n \"lastModifiedTime\": 1688384171485\n }\n }\n ],\n \"payableLineItems\": [\n {\n \"id\": \"52cf7a1f-7f92-404f-b790-9c3cd2e7c465\",\n \"billDetailId\": null,\n \"tenantId\": \"pg.citya\",\n \"headCode\": \"WEG\",\n \"amount\": 510,\n \"type\": \"PAYABLE\",\n \"paidAmount\": 510,\n \"status\": \"ACTIVE\",\n \"paymentStatus\": null,\n \"additionalDetails\": null,\n \"auditDetails\": {\n \"createdBy\": \"1b348954-c257-4d18-afac-1b19fc3d86da\",\n \"lastModifiedBy\": \"1b348954-c257-4d18-afac-1b19fc3d86da\",\n \"createdTime\": 1688384171485,\n \"lastModifiedTime\": 1688384199240\n }\n },\n {\n \"id\": \"af08338f-04c4-4950-a607-f2f1f7dba660\",\n \"billDetailId\": null,\n \"tenantId\": \"pg.citya\",\n \"headCode\": \"LC\",\n \"amount\": 5,\n \"type\": \"DEDUCTION\",\n \"paidAmount\": 5,\n \"status\": \"ACTIVE\",\n \"paymentStatus\": null,\n \"additionalDetails\": null,\n \"auditDetails\": {\n \"createdBy\": \"1b348954-c257-4d18-afac-1b19fc3d86da\",\n \"lastModifiedBy\": \"1b348954-c257-4d18-afac-1b19fc3d86da\",\n \"createdTime\": 1688384171485,\n \"lastModifiedTime\": 1688384199240\n }\n }\n ],\n \"auditDetails\": {\n \"createdBy\": \"1b348954-c257-4d18-afac-1b19fc3d86da\",\n \"lastModifiedBy\": \"1b348954-c257-4d18-afac-1b19fc3d86da\",\n \"createdTime\": 1688384171485,\n \"lastModifiedTime\": 1688384199240\n },\n \"additionalDetails\": null\n }\n ],\n \"additionalDetails\": {\n \"ward\": \"B1\",\n \"cboCode\": \"8fa73c1c-2dde-4fbd-9afa-45da5c61e670\",\n \"cboName\": \"Shubhang\",\n \"orgName\": \"Shubhang\",\n \"locality\": \"SUN01\",\n \"projectId\": \"PJ/2023-24/06/002362\",\n \"projectDesc\": \"sadf\",\n \"projectName\": \"fdsagvasd\",\n \"projectType\": \"MP-CWS\",\n \"cboOrgNumber\": \"ORG-000382\",\n \"estimateDocs\": [\n {\n \"fileName\": \"\",\n \"fileType\": \"Others\",\n \"tenantId\": null,\n \"documentUid\": null,\n \"fileStoreId\": null\n },\n {\n \"fileName\": \"1sample.pdf\",\n \"fileType\": \"ESTIMATE_DOC_DETAILED_ESTIMATE\",\n \"tenantId\": \"pg.citya\",\n \"documentUid\": \"ec7c8924-a470-4842-bf89-bd349120a328\",\n \"fileStoreId\": \"ec7c8924-a470-4842-bf89-bd349120a328\"\n },\n {\n \"fileName\": \"1sample.pdf\",\n \"fileType\": \"ESTIMATE_DOC_LABOUR_ANALYSIS\",\n \"tenantId\": \"pg.citya\",\n \"documentUid\": \"7160b10d-4eb5-4744-be2c-9f1168cf43b5\",\n \"fileStoreId\": \"7160b10d-4eb5-4744-be2c-9f1168cf43b5\"\n },\n {\n \"fileName\": \"1sample.pdf\",\n \"fileType\": \"ESTIMATE_DOC_MATERIAL_ANALYSIS\",\n \"tenantId\": \"pg.citya\",\n \"documentUid\": \"32663a8b-eb1d-42db-8ccb-ea422db9ae21\",\n \"fileStoreId\": \"32663a8b-eb1d-42db-8ccb-ea422db9ae21\"\n },\n {\n \"fileName\": null,\n \"fileType\": \"ESTIMATE_DOC_DESIGN_DOCUMENT\",\n \"tenantId\": null,\n \"documentUid\": null,\n \"fileStoreId\": null\n },\n {\n \"fileName\": \"\",\n \"fileType\": \"Others\",\n \"tenantId\": null,\n \"documentUid\": null,\n \"fileStoreId\": null\n }\n ],\n \"estimateNumber\": \"ES/2023-24/001635\",\n \"completionPeriod\": null,\n \"officerInChargeId\": \"officer-in-charge\",\n \"termsAndConditions\": [\n {\n \"description\": \"\"\n }\n ],\n \"officerInChargeName\": {\n \"code\": \"officer-in-charge\",\n \"name\": \"officer-in-charge\"\n },\n \"officerInChargeDesgn\": \"Superintending Engineer ( B&R)\",\n \"totalEstimatedAmount\": 11422.95,\n \"attendanceRegisterNumber\": \"WR/2023-24/06/09/001568\"\n },\n \"auditDetails\": {\n \"createdBy\": \"1b348954-c257-4d18-afac-1b19fc3d86da\",\n \"lastModifiedBy\": \"1b348954-c257-4d18-afac-1b19fc3d86da\",\n \"createdTime\": 1688384171485,\n \"lastModifiedTime\": 1688384199240\n }\n },\n \"workflow\": {\n \"action\": \"SUBMIT\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "localhost:8099/expense/bill/v1/_create", "host": [ "localhost" ], "port": "8099", "path": [ "expense", "bill", "v1", "_create" ] } }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Date", "value": "Mon, 03 Jul 2023 17:55:16 GMT" }, { "key": "Keep-Alive", "value": "timeout=60" }, { "key": "Connection", "value": "keep-alive" } ], "cookie": [], "body": "{\n \"ResponseInfo\": {\n \"apiId\": \"string\",\n \"ver\": \"string\",\n \"ts\": 0,\n \"resMsgId\": \"uief87324\",\n \"msgId\": \"string\",\n \"status\": \"successful\"\n },\n \"bills\": [\n {\n \"id\": \"e9858554-89e4-420b-b444-1ea14d1f95ae\",\n \"tenantId\": \"pg.citya\",\n \"billDate\": 1688384171229,\n \"dueDate\": 1688384171229,\n \"totalAmount\": 515,\n \"totalPaidAmount\": 515,\n \"businessService\": \"EXPENSE.WAGES\",\n \"referenceId\": \"WO/2023-24/000752_MR/2023-24/06/09/000806_WR_000087\",\n \"fromPeriod\": 1685903400000,\n \"toPeriod\": 1686421800000,\n \"paymentStatus\": \"INITIATED\",\n \"status\": \"ACTIVE\",\n \"billNumber\": \"WB/2023-24/000155\",\n \"payer\": {\n \"id\": \"028f35a4-220f-4b6a-b3d6-ad8270ac59dd\",\n \"parentId\": \"e9858554-89e4-420b-b444-1ea14d1f95ae\",\n \"tenantId\": \"pg.citya\",\n \"type\": \"pg.citya\",\n \"identifier\": \"001\",\n \"status\": \"ACTIVE\",\n \"additionalDetails\": null,\n \"auditDetails\": {\n \"createdBy\": \"1b348954-c257-4d18-afac-1b19fc3d86da\",\n \"lastModifiedBy\": \"1b348954-c257-4d18-afac-1b19fc3d86da\",\n \"createdTime\": 1688406840499,\n \"lastModifiedTime\": 1688406840499\n }\n },\n \"billDetails\": [\n {\n \"id\": \"fd85d84a-cb76-423b-8f4d-e077d268b0c8\",\n \"tenantId\": \"pg.citya\",\n \"billId\": \"e9858554-89e4-420b-b444-1ea14d1f95ae\",\n \"totalAmount\": 515,\n \"totalPaidAmount\": 515,\n \"referenceId\": \"MR/2023-24/06/09/000806\",\n \"paymentStatus\": \"INITIATED\",\n \"status\": \"ACTIVE\",\n \"fromPeriod\": 1685903400000,\n \"toPeriod\": 1686421800000,\n \"payee\": {\n \"id\": \"11127d75-a40e-47d1-8ad0-27fbc902e65a\",\n \"parentId\": \"e9858554-89e4-420b-b444-1ea14d1f95ae\",\n \"tenantId\": \"pg.citya\",\n \"type\": \"INDIVIDUAL\",\n \"identifier\": \"e52bc7ae-8a8c-440a-8ee8-ebbd67258194\",\n \"status\": \"ACTIVE\",\n \"additionalDetails\": null,\n \"auditDetails\": {\n \"createdBy\": \"1b348954-c257-4d18-afac-1b19fc3d86da\",\n \"lastModifiedBy\": \"1b348954-c257-4d18-afac-1b19fc3d86da\",\n \"createdTime\": 1688406840499,\n \"lastModifiedTime\": 1688406840499\n }\n },\n \"lineItems\": [\n {\n \"id\": \"191efe67-7cf3-4502-ad23-df7d58e5b92b\",\n \"billDetailId\": \"fd85d84a-cb76-423b-8f4d-e077d268b0c8\",\n \"tenantId\": \"pg.citya\",\n \"headCode\": \"WEG\",\n \"amount\": 515,\n \"type\": \"PAYABLE\",\n \"paidAmount\": 0,\n \"status\": \"ACTIVE\",\n \"paymentStatus\": null,\n \"additionalDetails\": null,\n \"auditDetails\": {\n \"createdBy\": \"1b348954-c257-4d18-afac-1b19fc3d86da\",\n \"lastModifiedBy\": \"1b348954-c257-4d18-afac-1b19fc3d86da\",\n \"createdTime\": 1688406840499,\n \"lastModifiedTime\": 1688406840499\n }\n },\n {\n \"id\": \"6ba38e00-aee9-4d5c-9e61-7b0dedc638dd\",\n \"billDetailId\": \"fd85d84a-cb76-423b-8f4d-e077d268b0c8\",\n \"tenantId\": \"pg.citya\",\n \"headCode\": \"LC\",\n \"amount\": 5,\n \"type\": \"DEDUCTION\",\n \"paidAmount\": 0,\n \"status\": \"ACTIVE\",\n \"paymentStatus\": null,\n \"additionalDetails\": null,\n \"auditDetails\": {\n \"createdBy\": \"1b348954-c257-4d18-afac-1b19fc3d86da\",\n \"lastModifiedBy\": \"1b348954-c257-4d18-afac-1b19fc3d86da\",\n \"createdTime\": 1688406840499,\n \"lastModifiedTime\": 1688406840499\n }\n }\n ],\n \"payableLineItems\": [\n {\n \"id\": \"69b81c52-a83d-4aba-b9b8-f676725d876e\",\n \"billDetailId\": \"fd85d84a-cb76-423b-8f4d-e077d268b0c8\",\n \"tenantId\": \"pg.citya\",\n \"headCode\": \"WEG\",\n \"amount\": 510,\n \"type\": \"PAYABLE\",\n \"paidAmount\": 510,\n \"status\": \"ACTIVE\",\n \"paymentStatus\": null,\n \"additionalDetails\": null,\n \"auditDetails\": {\n \"createdBy\": \"1b348954-c257-4d18-afac-1b19fc3d86da\",\n \"lastModifiedBy\": \"1b348954-c257-4d18-afac-1b19fc3d86da\",\n \"createdTime\": 1688406840499,\n \"lastModifiedTime\": 1688406840499\n }\n },\n {\n \"id\": \"00bc93a7-c2ed-4075-876a-32b90c0bdd9e\",\n \"billDetailId\": \"fd85d84a-cb76-423b-8f4d-e077d268b0c8\",\n \"tenantId\": \"pg.citya\",\n \"headCode\": \"LC\",\n \"amount\": 5,\n \"type\": \"DEDUCTION\",\n \"paidAmount\": 5,\n \"status\": \"ACTIVE\",\n \"paymentStatus\": null,\n \"additionalDetails\": null,\n \"auditDetails\": {\n \"createdBy\": \"1b348954-c257-4d18-afac-1b19fc3d86da\",\n \"lastModifiedBy\": \"1b348954-c257-4d18-afac-1b19fc3d86da\",\n \"createdTime\": 1688406840499,\n \"lastModifiedTime\": 1688406840499\n }\n }\n ],\n \"auditDetails\": {\n \"createdBy\": \"1b348954-c257-4d18-afac-1b19fc3d86da\",\n \"lastModifiedBy\": \"1b348954-c257-4d18-afac-1b19fc3d86da\",\n \"createdTime\": 1688406840499,\n \"lastModifiedTime\": 1688406840499\n },\n \"additionalDetails\": null\n }\n ],\n \"additionalDetails\": {\n \"ward\": \"B1\",\n \"cboCode\": \"8fa73c1c-2dde-4fbd-9afa-45da5c61e670\",\n \"cboName\": \"Shubhang\",\n \"orgName\": \"Shubhang\",\n \"locality\": \"SUN01\",\n \"projectId\": \"PJ/2023-24/06/002362\",\n \"projectDesc\": \"sadf\",\n \"projectName\": \"fdsagvasd\",\n \"projectType\": \"MP-CWS\",\n \"cboOrgNumber\": \"ORG-000382\",\n \"estimateDocs\": [\n {\n \"fileName\": \"\",\n \"fileType\": \"Others\",\n \"tenantId\": null,\n \"documentUid\": null,\n \"fileStoreId\": null\n },\n {\n \"fileName\": \"1sample.pdf\",\n \"fileType\": \"ESTIMATE_DOC_DETAILED_ESTIMATE\",\n \"tenantId\": \"pg.citya\",\n \"documentUid\": \"ec7c8924-a470-4842-bf89-bd349120a328\",\n \"fileStoreId\": \"ec7c8924-a470-4842-bf89-bd349120a328\"\n },\n {\n \"fileName\": \"1sample.pdf\",\n \"fileType\": \"ESTIMATE_DOC_LABOUR_ANALYSIS\",\n \"tenantId\": \"pg.citya\",\n \"documentUid\": \"7160b10d-4eb5-4744-be2c-9f1168cf43b5\",\n \"fileStoreId\": \"7160b10d-4eb5-4744-be2c-9f1168cf43b5\"\n },\n {\n \"fileName\": \"1sample.pdf\",\n \"fileType\": \"ESTIMATE_DOC_MATERIAL_ANALYSIS\",\n \"tenantId\": \"pg.citya\",\n \"documentUid\": \"32663a8b-eb1d-42db-8ccb-ea422db9ae21\",\n \"fileStoreId\": \"32663a8b-eb1d-42db-8ccb-ea422db9ae21\"\n },\n {\n \"fileName\": null,\n \"fileType\": \"ESTIMATE_DOC_DESIGN_DOCUMENT\",\n \"tenantId\": null,\n \"documentUid\": null,\n \"fileStoreId\": null\n },\n {\n \"fileName\": \"\",\n \"fileType\": \"Others\",\n \"tenantId\": null,\n \"documentUid\": null,\n \"fileStoreId\": null\n }\n ],\n \"estimateNumber\": \"ES/2023-24/001635\",\n \"completionPeriod\": null,\n \"officerInChargeId\": \"officer-in-charge\",\n \"termsAndConditions\": [\n {\n \"description\": \"\"\n }\n ],\n \"officerInChargeName\": {\n \"code\": \"officer-in-charge\",\n \"name\": \"officer-in-charge\"\n },\n \"officerInChargeDesgn\": \"Superintending Engineer ( B&R)\",\n \"totalEstimatedAmount\": 11422.95,\n \"attendanceRegisterNumber\": \"WR/2023-24/06/09/001568\"\n },\n \"auditDetails\": {\n \"createdBy\": \"1b348954-c257-4d18-afac-1b19fc3d86da\",\n \"lastModifiedBy\": \"1b348954-c257-4d18-afac-1b19fc3d86da\",\n \"createdTime\": 1688406840499,\n \"lastModifiedTime\": 1688406840499\n },\n \"wfStatus\": null\n }\n ],\n \"pagination\": null\n}" } ] }, { "name": "Bill Create-Validation Error-TenantId missing", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response status code is 400\", function () {\r", " pm.response.to.have.status(400);\r", "});\r", "\r", "pm.test(\"Validate the error 'tenantId must not be null'\", function(){\r", " let responseData= pm.response.json();\r", " var message= responseData.Errors[0].message;\r", " pm.expect(message).to.be.equal(\"must not be null\");\r", "});\r", "\r", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"string\",\n \"ver\": \"string\",\n \"ts\": 0,\n \"action\": \"string\",\n \"did\": \"string\",\n \"key\": \"string\",\n \"msgId\": \"string\",\n \"requesterId\": \"string\",\n \"authToken\": \"{{auth}}\",\n \"userInfo\": {\n \"id\": 393,\n \"uuid\": \"JAGAN\",\n \"userName\": \"super-bill\",\n \"name\": \"super-biller\",\n \"mobileNumber\": \"9123456712\",\n \"emailId\": null,\n \"locale\": null,\n \"type\": \"EMPLOYEE\",\n \"active\": true,\n \"tenantId\": \"pg.citya\",\n \"permanentCity\": null\n }\n },\n \"bill\": {\n // \"tenantId\":\"{{tenantId}}\",\n \"billDate\": {{dateOfProposal}},\n \"dueDate\": {{endDate}},\n \"businessService\": \"EXPENSE.PURCHASE\",\n \"referenceId\": \"{{WONo}}\",\n \"fromPeriod\": {{dateOfProposal}},\n \"toPeriod\": {{endDate}},\n \"paymentStatus\": null,\n // \"billNumber\": \"PG/JAG/222010/113233\",\n \"payer\": {\n \"tenantId\": \"pg.citya\",\n \"type\": \"DEPARTMENT\",\n \"identifier\": \"RURALMINISTRY-MUKTHA\",\n \"status\": \"ACTIVE\",\n \"additionalDetails\": {}\n },\n \"billDetails\": [\n {\n // \"tenantId\": \"{{tenantId}}\",\n \"referenceId\": \"s-o-m-e-u-u-i-d\",\n \"paymentStatus\": null,\n \"fromPeriod\": {{dateOfProposal}},\n \"toPeriod\": {{endDate}},\n \"netLineItemAmount\": 10012,\n \"payee\": {\n \"tenantId\": \"pg.citya\",\n \"type\": \"ORG\",\n \"identifier\":\"c948254b-efa1-4e2a-8db7-bf24533f2aa5\",\n \"status\": \"ACTIVE\",\n \"additionalDetails\": {} \n },\n \"lineItems\": [\n {\n // \"tenantId\": \"{{tenantId}}\",\n \"headCode\": \"LC\",\n \"amount\": 1500,\n \"type\": \"PAYABLE\",\n \"paidAmount\": 0,\n \"status\": \"ACTIVE\",\n \"isLineItemPayable\": true,\n \"additionalDetails\": {}\n }\n ],\n \"payableLineItems\": [\n {\n // \"tenantId\": \"{{tenantId}}\",\n \"headCode\": \"LC\",\n \"amount\": 1500,\n \"type\": \"PAYABLE\",\n \"paidAmount\": 0,\n \"status\": \"ACTIVE\",\n \"isLineItemPayable\": true,\n \"additionalDetails\": {}\n }\n ],\n \"additionalDetails\": \n {\n \"projectName\":\"twemp\" ,\n \"cboName\":\"Roso\",\n \"ward\":\"B1\",\n \"locality\":\"C3\"\n }\n }\n ]\n },\n \"workflow\": {\n \"action\": \"SUBMIT\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/expense/bill/v1/_create", "host": [ "{{base_url}}" ], "path": [ "expense", "bill", "v1", "_create" ] } }, "response": [] }, { "name": "Bill Create-Validation Error-referenceId missing", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response status code is 400\", function () {\r", " pm.response.to.have.status(400);\r", "});\r", "\r", "pm.test(\"Validate the error 'referenceId must not be null'\", function(){\r", " let responseData= pm.response.json();\r", " var message= responseData.Errors[0].message;\r", " pm.expect(message).to.be.equal(\"must not be null\");\r", "});\r", "\r", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"string\",\n \"ver\": \"string\",\n \"ts\": 0,\n \"action\": \"string\",\n \"did\": \"string\",\n \"key\": \"string\",\n \"msgId\": \"string\",\n \"requesterId\": \"string\",\n \"authToken\": \"{{auth}}\",\n \"userInfo\": {\n \"id\": 393,\n \"uuid\": \"JAGAN\",\n \"userName\": \"super-bill\",\n \"name\": \"super-biller\",\n \"mobileNumber\": \"9123456712\",\n \"emailId\": null,\n \"locale\": null,\n \"type\": \"EMPLOYEE\",\n \"active\": true,\n \"tenantId\": \"pg.citya\",\n \"permanentCity\": null\n }\n },\n \"bill\": {\n \"tenantId\": \"{{tenantId}}\",\n \"billDate\": {{dateOfProposal}},\n \"dueDate\": {{endDate}},\n \"businessService\": \"EXPENSE.PURCHASE\",\n // \"referenceId\": \"{{WONo}}\",\n \"fromPeriod\": {{dateOfProposal}},\n \"toPeriod\": {{endDate}},\n \"paymentStatus\": null,\n \"payer\": {\n \"tenantId\": \"pg.citya\",\n \"type\": \"DEPARTMENT\",\n \"identifier\": \"RURALMINISTRY-MUKTHA\",\n \"status\": \"ACTIVE\",\n \"additionalDetails\": {}\n },\n \"billDetails\": [\n {\n \"tenantId\": \"{{tenantId}}\",\n \"referenceId\": \"s-o-m-e-u-u-i-d\",\n \"paymentStatus\": null,\n \"fromPeriod\": {{dateOfProposal}},\n \"toPeriod\": {{endDate}},\n \"netLineItemAmount\": 10012,\n \"payee\": {\n \"tenantId\": \"pg.citya\",\n \"type\": \"ORG\",\n \"identifier\": \"c948254b-efa1-4e2a-8db7-bf24533f2aa5\",\n \"status\": \"ACTIVE\",\n \"additionalDetails\": {}\n },\n \"lineItems\": [\n {\n \"tenantId\": \"{{tenantId}}\",\n \"headCode\": \"LC\",\n \"amount\": 1500,\n \"type\": \"PAYABLE\",\n \"paidAmount\": 0,\n \"status\": \"ACTIVE\",\n \"isLineItemPayable\": true,\n \"additionalDetails\": {}\n }\n ],\n \"payableLineItems\": [\n {\n \"tenantId\": \"{{tenantId}}\",\n \"headCode\": \"LC\",\n \"amount\": 1500,\n \"type\": \"PAYABLE\",\n \"paidAmount\": 0,\n \"status\": \"ACTIVE\",\n \"isLineItemPayable\": true,\n \"additionalDetails\": {}\n }\n ],\n \"additionalDetails\": {\n \"projectName\": \"twemp\",\n \"cboName\": \"Roso\",\n \"ward\": \"B1\",\n \"locality\": \"C3\"\n }\n }\n ]\n },\n \"workflow\": {\n \"action\": \"SUBMIT\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/expense/bill/v1/_create", "host": [ "{{base_url}}" ], "path": [ "expense", "bill", "v1", "_create" ] } }, "response": [] }, { "name": "Bill Create-Validation Error-duplicte bill", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response status code is 400\", function () {\r", " pm.response.to.have.status(400);\r", "});\r", "\r", "pm.test(\"Validate the error 'EXPENSE_DUPLICATE_BILL'\", function(){\r", " let responseData= pm.response.json();\r", " var code= responseData.Errors[0].code;\r", " pm.expect(code).to.be.equal(\"EG_EXPENSE_DUPLICATE_BILL\");\r", "});\r", "\r", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"string\",\n \"ver\": \"string\",\n \"ts\": 0,\n \"action\": \"string\",\n \"did\": \"string\",\n \"key\": \"string\",\n \"msgId\": \"string\",\n \"requesterId\": \"string\",\n \"authToken\": \"{{auth}}\",\n \"userInfo\": {\n \"id\": 393,\n \"uuid\": \"JAGAN\",\n \"userName\": \"super-bill\",\n \"name\": \"super-biller\",\n \"mobileNumber\": \"9123456712\",\n \"emailId\": null,\n \"locale\": null,\n \"type\": \"EMPLOYEE\",\n \"active\": true,\n \"tenantId\": \"pg.citya\",\n \"permanentCity\": null\n }\n },\n \"bill\": {\n \"tenantId\": \"{{tenantId}}\",\n \"billDate\": {{dateOfProposal}},\n \"dueDate\": {{endDate}},\n \"businessService\": \"EXPENSE.PURCHASE\",\n \"referenceId\": \"{{WONo}}\",\n \"fromPeriod\": {{dateOfProposal}},\n \"toPeriod\": {{endDate}},\n \"paymentStatus\": null,\n \"payer\": {\n \"tenantId\": \"pg.citya\",\n \"type\": \"DEPARTMENT\",\n \"identifier\": \"RURALMINISTRY-MUKTHA\",\n \"status\": \"ACTIVE\",\n \"additionalDetails\": {}\n },\n \"billDetails\": [\n {\n \"tenantId\": \"{{tenantId}}\",\n \"referenceId\": \"s-o-m-e-u-u-i-d\",\n \"paymentStatus\": null,\n // \"fromPeriod\": {{dateOfProposal}},\n \"toPeriod\": {{endDate}},\n \"netLineItemAmount\": 10012,\n \"payee\": {\n \"tenantId\": \"pg.citya\",\n \"type\": \"ORG\",\n \"identifier\": \"c948254b-efa1-4e2a-8db7-bf24533f2aa5\",\n \"status\": \"ACTIVE\",\n \"additionalDetails\": {}\n },\n \"lineItems\": [\n {\n \"tenantId\": \"{{tenantId}}\",\n \"headCode\": \"LC\",\n \"amount\": 1500,\n \"type\": \"PAYABLE\",\n \"paidAmount\": 0,\n \"status\": \"ACTIVE\",\n \"isLineItemPayable\": true,\n \"additionalDetails\": {}\n }\n ],\n \"payableLineItems\": [\n {\n \"tenantId\": \"{{tenantId}}\",\n \"headCode\": \"LC\",\n \"amount\": 1500,\n \"type\": \"PAYABLE\",\n \"paidAmount\": 0,\n \"status\": \"ACTIVE\",\n \"isLineItemPayable\": true,\n \"additionalDetails\": {}\n }\n ],\n \"additionalDetails\": {\n \"projectName\": \"twemp\",\n \"cboName\": \"Roso\",\n \"ward\": \"B1\",\n \"locality\": \"C3\"\n }\n }\n ]\n },\n \"workflow\": {\n \"action\": \"SUBMIT\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/expense/bill/v1/_create", "host": [ "{{base_url}}" ], "path": [ "expense", "bill", "v1", "_create" ] } }, "response": [] }, { "name": "Bill Search-success", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response status code is 200\", function () {\r", " pm.response.to.have.status(200);\r", "});\r", "\r", "pm.test(\"Validate the billNumber is same as collectionVariables\", function(){\r", " let responseData= pm.response.json();\r", " var billNumber = responseData.bills[0].billNumber;\r", " pm.expect(billNumber).to.be.equal(pm.collectionVariables.get(\"billNumber\"));\r", "});" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"RequestInfo\": {\n \"apiId\": \"string\",\n \"ver\": \"string\",\n \"ts\": 0,\n \"action\": \"string\",\n \"did\": \"string\",\n \"key\": \"string\",\n \"msgId\": \"string\",\n \"requesterId\": \"string\",\n \"authToken\": \"{{auth}}\",\n \"userInfo\": {{userinfo}}\n },\n \"billCriteria\": {\n \"tenantId\": \"{{tenantId}}\",\n \"businessService\": \"EXPENSE.PURCHASE\",\n \"billNumbers\": [\n \"{{billNumber}}\"\n ]\n },\n \"pagination\": {\n \"limit\": 10,\n \"offSet\": 0,\n \"sortBy\": \"string\",\n \"order\": null\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/expense/bill/v1/_search", "host": [ "{{base_url}}" ], "path": [ "expense", "bill", "v1", "_search" ] } }, "response": [] }, { "name": "Bill update- wfSatus-Verify and forward Copy", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response status code is 202\", function () {", " pm.expect(pm.response.code).to.equal(202);", "});", "", "", "", "pm.test(\"Bill status is In Workflow\", function(){", " let responseData= pm.response.json();", " var status= responseData.bills[0].status;", " pm.expect(status).to.be.equal(\"INWORKFLOW\");", "});" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json", "uuid": "a51d9b89-8d67-49b2-bd90-0cc36be4b9f4" } ], "body": { "mode": "raw", "raw": "{\r\n \"RequestInfo\": {\r\n \"apiId\": \"string\",\r\n \"ver\": \"string\",\r\n \"ts\": 0,\r\n \"action\": \"string\",\r\n \"did\": \"string\",\r\n \"key\": \"string\",\r\n \"msgId\": \"string\",\r\n \"requesterId\": \"string\",\r\n \"authToken\": \"{{auth}}\",\r\n \"userInfo\": {{userinfo}}\r\n },\r\n \"bill\": {{bills}},\r\n \"workflow\": {\r\n \"action\": \"VERIFY_AND_FORWARD\",\r\n // \"action\": \"APPROVE\",\r\n \"comment\": \"string\",\r\n \"assignees\": []\r\n }\r\n}" }, "url": { "raw": "{{base_url}}/expense/bill/v1/_update", "host": [ "{{base_url}}" ], "path": [ "expense", "bill", "v1", "_update" ] } }, "response": [] }, { "name": "Bill update- wfSatus-Approved Copy", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response status code is 202\", function () {", " pm.expect(pm.response.code).to.equal(202);", "});", "", "", "pm.test(\"Validate the ResponseInfo object\", function () {", " const responseData = pm.response.json();", " ", " pm.expect(responseData.ResponseInfo).to.exist;", " pm.expect(responseData.ResponseInfo).to.be.an('object');", "});", "", "", "pm.test(\"Verify that the 'bills' array is present and contains the expected number of elements\", function () {", " const responseData = pm.response.json();", " ", " pm.expect(responseData.bills).to.exist;", " pm.expect(responseData.bills).to.be.an('array');", " pm.expect(responseData.bills).to.have.lengthOf(1);", "});", "", "", "pm.test(\"Bill status is In Workflow\", function(){", " let responseData= pm.response.json();", " var status= responseData.bills[0].status;", " pm.expect(status).to.be.equal(\"ACTIVE\");", "});" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json", "uuid": "553d8927-7721-400f-a7d8-8b583c9fa342" } ], "body": { "mode": "raw", "raw": "{\r\n \"RequestInfo\": {\r\n \"apiId\": \"string\",\r\n \"ver\": \"string\",\r\n \"ts\": 0,\r\n \"action\": \"string\",\r\n \"did\": \"string\",\r\n \"key\": \"string\",\r\n \"msgId\": \"string\",\r\n \"requesterId\": \"string\",\r\n \"authToken\": \"{{auth}}\",\r\n \"userInfo\": {{userinfo}}\r\n },\r\n \"bill\": {{bills}},\r\n \"workflow\": {\r\n \"action\": \"APPROVE\",\r\n \"comment\": \"string\",\r\n \"assignees\": []\r\n }\r\n}" }, "url": { "raw": "{{base_url}}/expense/bill/v1/_update", "host": [ "{{base_url}}" ], "path": [ "expense", "bill", "v1", "_update" ] } }, "response": [] } ] } ], "event": [ { "listen": "prerequest", "script": { "type": "text/javascript", "packages": {}, "exec": [ "" ] } }, { "listen": "test", "script": { "type": "text/javascript", "packages": {}, "exec": [ "" ] } } ], "variable": [ { "key": "boundaryType", "value": "" }, { "key": "boundary", "value": "" }, { "key": "projectType", "value": "" }, { "key": "projectId", "value": "" }, { "key": "projectNumber", "value": "" }, { "key": "referenceID", "value": "" }, { "key": "createdTime", "value": "" }, { "key": "lastModifiedTime", "value": "" }, { "key": "addressId", "value": "" }, { "key": "documents", "value": "" }, { "key": "fileStoreId", "value": "" }, { "key": "fileName", "value": "" }, { "key": "fileType", "value": "" }, { "key": "estimateId", "value": "" }, { "key": "estimateNumber", "value": "" }, { "key": "wfStatus", "value": "" }, { "key": "Lineitem1", "value": "" }, { "key": "Lineamount1", "value": "" }, { "key": "Lineitem2", "value": "" }, { "key": "estLineamount2", "value": "" }, { "key": "totalEstimatedAmount", "value": "" }, { "key": "lineitem1", "value": "" }, { "key": "lineamount1", "value": "" }, { "key": "lineitem2", "value": "" }, { "key": "lineamount2", "value": "" }, { "key": "ward", "value": "" }, { "key": "locality", "value": "" }, { "key": "ContractId", "value": "" }, { "key": "ContractNumber", "value": "" }, { "key": "contractType", "value": "" }, { "key": "orgId", "value": "" }, { "key": "orgName", "value": "" }, { "key": "cboOrgNumber", "value": "" }, { "key": "completionPeriod", "value": "" }, { "key": "IndName", "value": "" }, { "key": "IndFatherName", "value": "" }, { "key": "IndmobileNo", "value": "" }, { "key": "IndAadharNo", "value": "" }, { "key": "IndId", "value": "" }, { "key": "IndNo", "value": "" }, { "key": "IndDOB", "value": "" }, { "key": "Indgender", "value": "" }, { "key": "IndaddressId", "value": "" }, { "key": "IndskillId", "value": "" }, { "key": "Indskilltype", "value": "" }, { "key": "Indskilllevel", "value": "" }, { "key": "Social Category", "value": "" }, { "key": "identifiersId", "value": "" }, { "key": "IndrowVersion", "value": "" }, { "key": "tenantId2", "value": "" }, { "key": "orgFuncClass", "value": "" }, { "key": "orgFunType", "value": "" }, { "key": "orgFunCategory", "value": "" }, { "key": "boundaryCode", "value": "" }, { "key": "contactEmail", "value": "" }, { "key": "contactName", "value": "" }, { "key": "identifierType", "value": "" }, { "key": "identifierValue", "value": "" }, { "key": "jurisdictionCode", "value": "" }, { "key": "tenantId", "value": "" }, { "key": "stateLevelTenant", "value": "" }, { "key": "orgNumber", "value": "" }, { "key": "applicationNumber", "value": "" }, { "key": "orgAddressId", "value": "" }, { "key": "geoLocationId", "value": "" }, { "key": "contactDetailsId", "value": "" }, { "key": "identifierId", "value": "" }, { "key": "functionId", "value": "" }, { "key": "functionApplicationNumber", "value": "" }, { "key": "functionDocumentId", "value": "" }, { "key": "jurisdictionId", "value": "" }, { "key": "orgDocumentId", "value": "" }, { "key": "cboAuthToken", "value": "" }, { "key": "estmateAll", "value": "" }, { "key": "individualId-1", "value": "" }, { "key": "individualId-2", "value": "" }, { "key": "referenceId", "value": "" }, { "key": "serviceCode", "value": "" }, { "key": "attendeeEnrollmentDate", "value": "" }, { "key": "attendanceLogId", "value": "" }, { "key": "orgIdqa", "value": "" }, { "key": "orgIdDev", "value": "" }, { "key": "userId", "value": "" }, { "key": "attendee1", "value": "" }, { "key": "attendee2", "value": "" }, { "key": "id1", "value": "" }, { "key": "id2", "value": "" }, { "key": "attObj", "value": "" }, { "key": "Re-estimateAll", "value": "" }, { "key": "status", "value": "" }, { "key": "startDate", "value": "" }, { "key": "endDate", "value": "" }, { "key": "measurementId", "value": "" }, { "key": "MBno", "value": "" }, { "key": "MB-CO", "value": "" }, { "key": "entryDate", "value": "" }, { "key": "phrefnum", "value": "" }, { "key": "measureId1", "value": "" }, { "key": "measureId2", "value": "" }, { "key": "refId", "value": "" }, { "key": "creadtedTime", "value": "" }, { "key": "contactMobileNumber", "value": "" }, { "key": "contactMobileNumber2", "value": "" }, { "key": "orgName2", "value": "" }, { "key": "orgFuncClass2", "value": "" }, { "key": "orgFunType2", "value": "" }, { "key": "orgFunCategory2", "value": "" }, { "key": "boundaryType2", "value": "" }, { "key": "boundaryCode2", "value": "" }, { "key": "contactEmail2", "value": "" }, { "key": "contactName2", "value": "" }, { "key": "identifierType2", "value": "" }, { "key": "identifierValue2", "value": "" }, { "key": "jurisdictionCode2", "value": "" }, { "key": "organisationType", "value": "" }, { "key": "bankId", "value": "" }, { "key": "branchId", "value": "" }, { "key": "badId", "value": "" }, { "key": "orgbankId", "value": "" }, { "key": "orgbadId", "value": "" }, { "key": "orgbranchId", "value": "" }, { "key": "registerId2", "value": "" }, { "key": "atRegistar", "value": "" }, { "key": "registerNumber", "value": "" }, { "key": "registerStartDate", "value": "" }, { "key": "registerEndDate", "value": "" }, { "key": "invalidRegisterEndDate", "value": "" }, { "key": "attendanceArray", "value": "" }, { "key": "attendance", "value": "" }, { "key": "attendance1", "value": "" }, { "key": "attendance2", "value": "" }, { "key": "atId1", "value": "" }, { "key": "atId2", "value": "" }, { "key": "attendenceall", "value": "" } ] }