{ "info": { "_postman_id": "4ed4bdb5-a462-4505-a1a1-313afcc8a667", "name": "Contract Service - Postman Test Suite", "description": "## Postman Collection Steps\n\n- Setup the environment variables like base_url and auth_token.\n \n- Now first create a Estimate by using estimate/_create api.\n \n- To create contract its Estimate should be in accepted state.\n \n- Now after creating the estimate put required details in the contract create request body.\n \n- Now the contract should be in accepted state to create an revision contract.\n \n- To accept the contract you need to login as a cbo user.\n \n- Now after contract gets accepted create the revision estimate to create revision contract.\n \n- After creation of revised estimate we can create the revision contract.", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", "_exporter_id": "28174622" }, "item": [ { "name": "Login User", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is successful\", () =>", " pm.expect(pm.response.to.have.status(200))", ");", "", "pm.test(\"print and save access token in environment\", function () {", " var res = pm.response.json();", " var authToken = res.access_token;", " console.log('authToken:', authToken);", " pm.environment.set('auth',authToken);", "}", ");" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "authority", "value": "unified-dev.digit.org" }, { "key": "accept", "value": "application/json, text/plain, */*" }, { "key": "accept-language", "value": "en-GB,en-US;q=0.9,en;q=0.8" }, { "key": "authorization", "value": "Basic ZWdvdi11c2VyLWNsaWVudDo=" }, { "key": "content-type", "value": "application/x-www-form-urlencoded" }, { "key": "cookie", "value": "_ga_6130JJKLD4=GS1.1.1689144121.1.1.1689144147.34.0.0; _ga_2E44ZSYXS7=GS1.1.1693551022.10.0.1693551537.0.0.0; _ga=GA1.1.1506416593.1687179320; _ga_P1TZCPKF6S=GS1.1.1695629661.2.0.1695629664.57.0.0; _ga_H9YC8FEN6F=GS1.1.1696831541.125.1.1696831564.37.0.0; io=f_4QRb-VaOOVAUJ0AAAB; locale=en_IN; PGADMIN_LANGUAGE=en; __cuid=44ff2be0a12e4499973904b80d92ef3d; amp_fef1e8=21a46ed7-716d-4b59-aa13-c513dd00a213R...1hflua14j.1hflua14o.kq.46.p0; _ga_XBQP06FR8V=GS1.1.1700469736.4.0.1700469739.57.0.0; _oauth2_proxy=eyJFbWFpbCI6ImFuc2guZ295YWxAZWdvdmVybm1lbnRzLm9yZyIsIlVzZXIiOiJhbnNoLWVnb3YifQ==|1700724084|8Aayfxx0DRsJ4Lgw6jJiVnYjs_k=" }, { "key": "origin", "value": "https://unified-dev.digit.org" }, { "key": "referer", "value": "https://unified-dev.digit.org/works-ui/employee/user/login?from=%2Fworks-ui%2Femployee" }, { "key": "sec-ch-ua", "value": "\"Chromium\";v=\"118\", \"Google Chrome\";v=\"118\", \"Not=A?Brand\";v=\"99\"" }, { "key": "sec-ch-ua-mobile", "value": "?0" }, { "key": "sec-ch-ua-platform", "value": "\"Linux\"" }, { "key": "sec-fetch-dest", "value": "empty" }, { "key": "sec-fetch-mode", "value": "cors" }, { "key": "sec-fetch-site", "value": "same-origin" }, { "key": "user-agent", "value": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36" } ], "body": { "mode": "urlencoded", "urlencoded": [ { "key": "username", "value": "AUTO1", "type": "text" }, { "key": "password", "value": "eGov@123", "type": "text" }, { "key": "userType", "value": "EMPLOYEE", "type": "text" }, { "key": "tenantId", "value": "pg.citya", "type": "text" }, { "key": "scope", "value": "read", "type": "text" }, { "key": "grant_type", "value": "password", "type": "text" } ] }, "url": { "raw": "{{base_url}}/user/oauth/token?_=1700804704480", "host": [ "{{base_url}}" ], "path": [ "user", "oauth", "token" ], "query": [ { "key": "_", "value": "1700804704480" } ] } }, "response": [] }, { "name": "Create 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", "// Define a test to run after the response is received\r", "pm.test(\"Check response and set collection variables\", function () {\r", " // Check if the response status is 200\r", " pm.expect(pm.response.code).to.equal(200);\r", "\r", " // Parse the response JSON\r", " const responseData = pm.response.json();\r", "\r", " // Set collection variables based on the response\r", " pm.collectionVariables.set(\"lineitem1\", responseData.contracts[0].lineItems[0].id);\r", " pm.collectionVariables.set(\"lineamount1\", responseData.contracts[0].lineItems[0].amountBreakups[0].id);\r", " pm.collectionVariables.set(\"lineitem2\", responseData.contracts[0].lineItems[1].id);\r", " pm.collectionVariables.set(\"lineamount2\", responseData.contracts[0].lineItems[1].amountBreakups[0].id);\r", " pm.collectionVariables.set(\"ward\", responseData.contracts[0].additionalDetails.ward);\r", " pm.collectionVariables.set(\"locality\", responseData.contracts[0].additionalDetails.locality);\r", " pm.collectionVariables.set(\"ContractId\", responseData.contracts[0].id);\r", " pm.collectionVariables.set(\"ContractNumber\", responseData.contracts[0].contractNumber);\r", " pm.collectionVariables.set(\"createdTime\", responseData.contracts[0].auditDetails.createdTime);\r", " pm.collectionVariables.set(\"lastModifiedTime\", responseData.contracts[0].auditDetails.lastModifiedTime);\r", " pm.collectionVariables.set(\"wfStatus\", responseData.contracts[0].wfStatus);\r", " pm.collectionVariables.set(\"contractType\", responseData.contracts[0].contractType);\r", " pm.collectionVariables.set(\"orgId\", responseData.contracts[0].orgId);\r", " pm.collectionVariables.set(\"orgName\", responseData.contracts[0].additionalDetails.orgName);\r", " pm.collectionVariables.set(\"cboOrgNumber\", responseData.contracts[0].additionalDetails.cboOrgNumber);\r", " pm.collectionVariables.set(\"officerInChargeId\", responseData.contracts[0].additionalDetails.officerInChargeId);\r", " pm.collectionVariables.set(\"contractLineItemRef1\", responseData.contracts[0].lineItems[0].contractLineItemRef);\r", " pm.collectionVariables.set(\"contractLineItemRef2\", responseData.contracts[0].lineItems[1].contractLineItemRef);\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", "\r", " var WOId = responseData.contracts[0].id;\r", " console.log('id:', WOId);\r", " pm.environment.set('WOId',WOId);\r", "\r", " var WONo = responseData.contracts[0].contractNumber;\r", " console.log('contractNumber:', WONo);\r", " pm.environment.set('WONo',WONo);\r", "});\r", "\r", "// Now, the variables are set after the response is received, and you can access them in subsequent requests or scripts.\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\": \"{{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\": \"{{officerInChargeId}}\",\r\n \"projectType\": \"MP-CWS\",\r\n \"ward\": \"B1\",\r\n \"projectName\": \"Inbox \",\r\n \"orgName\": \"ABC Corp (May 13)\",\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 \"cboName\": \"ABC Corp (May 13)\",\r\n \"cboCode\": \"{{orgId}}\",\r\n \"totalEstimatedAmount\": 430000,\r\n \"termsAndConditions\": [\r\n {\r\n \"description\": \"\"\r\n }\r\n ],\r\n \"locality\": \"SUN02\",\r\n \"estimateNumber\": \"{{estNo-WO}}\",\r\n \"officerInChargeDesgn\": \"Asst. Engineer ( B&R)\",\r\n \"officerInChargeName\": {\r\n \"code\": \"{{officerCode}}\",\r\n \"name\": \"{{officerName}}\"\r\n },\r\n \"projectDesc\": \"Inbox\",\r\n \"cboOrgNumber\": \"{{cboOrgNumber}}\"\r\n }\r\n },\r\n \"workflow\": {\r\n \"action\": \"CREATE\"\r\n },\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"authToken\": \"{{auth}}\",\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" } } ], "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\": \"{{officerInChargeId}}\",\r\n \"projectType\": \"MP-CWS\",\r\n \"ward\": \"B1\",\r\n \"projectName\": \"Inbox \",\r\n \"orgName\": \"ABC Corp (May 13)\",\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 \"cboName\": \"ABC Corp (May 13)\",\r\n \"cboCode\": \"124f0ab0-14f0-4156-924e-cc2c4f435293\",\r\n \"totalEstimatedAmount\": 430000,\r\n \"termsAndConditions\": [\r\n {\r\n \"description\": \"\"\r\n }\r\n ],\r\n \"locality\": \"SUN02\",\r\n \"estimateNumber\": \"ES/2023-24/001575\",\r\n \"officerInChargeDesgn\": \"Asst. Engineer ( B&R)\",\r\n \"officerInChargeName\": {\r\n \"code\": \"test1234\",\r\n \"name\": \"test\"\r\n },\r\n \"projectDesc\": \"Inbox\",\r\n \"cboOrgNumber\": \"ORG-000379\"\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 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", " pm.collectionVariables.set('wfStatus', responseData.contracts[0].wfStatus);\r", " pm.collectionVariables.set('status', responseData.contracts[0].status);\r", " pm.collectionVariables.set('lastModifiedTime', responseData.contracts[0].auditDetails.lastModifiedTime);\r", "});" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } } ], "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\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\r\n \"lastModifiedBy\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\"\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\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\r\n \"lastModifiedBy\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\"\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\": \"{{officerInChargeId}}\",\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 \"estimateNumber\": \"{{estNo-WO}}\",\r\n \"totalEstimatedAmount\": \"{{totalEstimatedAmount}}\",\r\n \"completionPeriod\": null,\r\n \"projectDesc\": \"{{randomWord}}\",\r\n \"officerInChargeName\": {\r\n \"code\": \"{{officerCode}}\",\r\n \"name\": \"{{officerName}}\"\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\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\r\n \"lastModifiedBy\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\"\r\n },\r\n \"businessService\": null,\r\n \"supplementNumber\": null\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 \"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", " pm.collectionVariables.set('wfStatus', responseData.contracts[0].wfStatus);\r", " pm.collectionVariables.set('status', responseData.contracts[0].status);\r", " pm.collectionVariables.set('lastModifiedTime', responseData.contracts[0].auditDetails.lastModifiedTime);\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 \"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\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\r\n \"lastModifiedBy\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\"\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\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\r\n \"lastModifiedBy\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\"\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\": \"{{officerInChargeId}}\",\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 \"estimateNumber\": \"{{estNo-WO}}\",\r\n \"totalEstimatedAmount\": \"{{totalEstimatedAmount}}\",\r\n \"completionPeriod\": null,\r\n \"projectDesc\": \"{{randomWord}}\",\r\n \"officerInChargeName\": {\r\n \"code\": \"{{officerCode}}\",\r\n \"name\": \"{{officerName}}\"\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\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\r\n \"lastModifiedBy\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\"\r\n },\r\n \"businessService\": null,\r\n \"supplementNumber\": null\r\n },\r\n \"workflow\": {\r\n \"action\": \"EDIT\"\r\n },\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"authToken\": \"{{auth}}\",\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", " pm.collectionVariables.set('wfStatus', responseData.contracts[0].wfStatus);\r", " pm.collectionVariables.set('status', responseData.contracts[0].status);\r", " pm.collectionVariables.set('lastModifiedTime', responseData.contracts[0].auditDetails.lastModifiedTime);\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 \"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\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\r\n \"lastModifiedBy\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\"\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\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\r\n \"lastModifiedBy\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\"\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\": \"{{officerInChargeId}}\",\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 \"estimateNumber\": \"{{estNo-WO}}\",\r\n \"totalEstimatedAmount\": \"{{totalEstimatedAmount}}\",\r\n \"completionPeriod\": null,\r\n \"projectDesc\": \"{{randomWord}}\",\r\n \"officerInChargeName\": {\r\n \"code\": \"{{officerCode}}\",\r\n \"name\": \"{{officerName}}\"\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\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\r\n \"lastModifiedBy\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\"\r\n },\r\n \"businessService\": null,\r\n \"supplementNumber\": null\r\n },\r\n \"workflow\": {\r\n \"action\": \"VERIFY_AND_FORWARD\"\r\n },\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"authToken\": \"{{auth}}\",\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", " pm.collectionVariables.set('wfStatus', responseData.contracts[0].wfStatus);\r", " pm.collectionVariables.set('status', responseData.contracts[0].status);\r", " pm.collectionVariables.set('lastModifiedTime', responseData.contracts[0].auditDetails.lastModifiedTime);\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 \"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\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\r\n \"lastModifiedBy\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\"\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\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\r\n \"lastModifiedBy\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\"\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\": \"{{officerInChargeId}}\",\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 \"estimateNumber\": \"{{estNo-WO}}\",\r\n \"totalEstimatedAmount\": \"{{totalEstimatedAmount}}\",\r\n \"completionPeriod\": null,\r\n \"projectDesc\": \"{{randomWord}}\",\r\n \"officerInChargeName\": {\r\n \"code\": \"{{officerCode}}\",\r\n \"name\": \"{{officerName}}\"\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\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\r\n \"lastModifiedBy\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\"\r\n },\r\n \"businessService\": null,\r\n \"supplementNumber\": null\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\": \"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.collectionVariables.set('cboAuthToken', token);", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "authority", "value": "unified-dev.digit.org" }, { "key": "accept", "value": "*/*" }, { "key": "accept-language", "value": "en-GB,en-US;q=0.9,en;q=0.8" }, { "key": "access-control-allow-origin", "value": "*" }, { "key": "authorization", "value": "Basic ZWdvdi11c2VyLWNsaWVudDo=" }, { "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" }, { "key": "origin", "value": "https://unified-dev.digit.org" }, { "key": "referer", "value": "https://unified-dev.digit.org/works-shg-app/otp" }, { "key": "sec-ch-ua", "value": "\"Chromium\";v=\"118\", \"Google Chrome\";v=\"118\", \"Not=A?Brand\";v=\"99\"" }, { "key": "sec-ch-ua-mobile", "value": "?0" }, { "key": "sec-ch-ua-platform", "value": "\"Linux\"" }, { "key": "sec-fetch-dest", "value": "empty" }, { "key": "sec-fetch-mode", "value": "cors" }, { "key": "sec-fetch-site", "value": "same-origin" }, { "key": "user-agent", "value": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36" } ], "body": { "mode": "formdata", "formdata": [ { "key": "username", "value": "7838038768", "type": "text" }, { "key": "password", "value": "123456", "type": "text" }, { "key": "userType", "value": "CITIZEN", "type": "text" }, { "key": "tenantId", "value": "pg", "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", " 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.collectionVariables.set('lastModifiedTime', responseData.contracts[0].auditDetails.lastModifiedTime);\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 \"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\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\r\n \"lastModifiedBy\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\"\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\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\r\n \"lastModifiedBy\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\"\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\": \"{{officerInChargeId}}\",\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 \"estimateNumber\": \"{{estNo-WO}}\",\r\n \"totalEstimatedAmount\": \"{{totalEstimatedAmount}}\",\r\n \"completionPeriod\": null,\r\n \"projectDesc\": \"{{randomWord}}\",\r\n \"officerInChargeName\": {\r\n \"code\": \"{{officerCode}}\",\r\n \"name\": \"{{officerName}}\"\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\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\r\n \"lastModifiedBy\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\"\r\n },\r\n \"businessService\": null,\r\n \"supplementNumber\": null\r\n },\r\n \"workflow\": {\r\n \"action\": \"ACCEPT\"\r\n },\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"authToken\": \"{{cboAuthToken}}\",\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 - 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 // \"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\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\r\n \"lastModifiedBy\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\"\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\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\r\n \"lastModifiedBy\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\"\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\": \"{{officerInChargeId}}\",\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 \"estimateNumber\": \"{{estNo-WO}}\",\r\n \"totalEstimatedAmount\": \"{{totalEstimatedAmount}}\",\r\n \"completionPeriod\": null,\r\n \"projectDesc\": \"{{randomWord}}\",\r\n \"officerInChargeName\": {\r\n \"code\": \"{{officerCode}}\",\r\n \"name\": \"{{officerName}}\"\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\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\r\n \"lastModifiedBy\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\"\r\n },\r\n \"businessService\": null,\r\n \"supplementNumber\": null\r\n },\r\n \"workflow\": {\r\n \"action\": \"VERIFY_AND_FORWARD\"\r\n },\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"authToken\": \"{{auth}}\",\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 \"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\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\r\n \"lastModifiedBy\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\"\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\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\r\n \"lastModifiedBy\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\"\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\": \"{{officerInChargeId}}\",\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 \"estimateNumber\": \"{{estNo-WO}}\",\r\n \"totalEstimatedAmount\": \"{{totalEstimatedAmount}}\",\r\n \"completionPeriod\": null,\r\n \"projectDesc\": \"{{randomWord}}\",\r\n \"officerInChargeName\": {\r\n \"code\": \"{{officerCode}}\",\r\n \"name\": \"{{officerName}}\"\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\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\r\n \"lastModifiedBy\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\"\r\n },\r\n \"businessService\": null,\r\n \"supplementNumber\": null\r\n },\r\n \"workflow\": {\r\n \"action\": \"VERIFY_AND_FORWARD\"\r\n },\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"authToken\": \"{{auth}}\",\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", "" ], "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 \"estimateIds\": [\"{{estId-WO}}\"]\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", "" ], "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\": \"{{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 \"fromDate\": {{createdTime}},\r\n \"toDate\": {{lastModifiedTime}}\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": "Create Revision Contract - Validation error - Contract Number 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_NUMBER_NOT_PRESENT_IN_REQUEST\");\r", " pm.expect(message).to.eql(\"Contract number mandatory for revision contract\");\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 // \"contractNumber\": \"WO/2023-24/000842\",\r\n \"businessService\": \"{{buisnessServiceContract}}\",\r\n \"contractType\": \"CON-01\",\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\": \"{{officerInChargeId}}\",\r\n \"projectType\": \"MP-CWS\",\r\n \"ward\": \"B1\",\r\n \"projectName\": \"Inbox \",\r\n \"orgName\": \"ABC Corp (May 13)\",\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 \"cboName\": \"ABC Corp (May 13)\",\r\n \"cboCode\": \"{{orgId}}\",\r\n \"totalEstimatedAmount\": 430000,\r\n \"termsAndConditions\": [\r\n {\r\n \"description\": \"\"\r\n }\r\n ],\r\n \"locality\": \"SUN02\",\r\n \"estimateNumber\": \"{{estNo-WO}}\",\r\n \"officerInChargeDesgn\": \"Asst. Engineer ( B&R)\",\r\n \"officerInChargeName\": {\r\n \"code\": \"{{officerCode}}\",\r\n \"name\": \"{{officerName}}\"\r\n },\r\n \"projectDesc\": \"Inbox\",\r\n \"cboOrgNumber\": \"{{cboOrgNumber}}\"\r\n }\r\n },\r\n \"workflow\": {\r\n \"action\": \"CREATE\"\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 Revision Contract - Validation error -END_DATE_NOT_EXTENDED", "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(\"END_DATE_NOT_EXTENDED\");\r", " pm.expect(message).to.eql(\"End date should not be earlier than previous end date\");\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 \"contractNumber\": \"{{ContractNumber}}\",\r\n \"businessService\": \"{{buisnessServiceContract}}\",\r\n \"contractType\": \"CON-01\",\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\": 5,\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\": \"{{officerInChargeId}}\",\r\n \"projectType\": \"MP-CWS\",\r\n \"ward\": \"B1\",\r\n \"projectName\": \"Inbox \",\r\n \"orgName\": \"ABC Corp (May 13)\",\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 \"cboName\": \"ABC Corp (May 13)\",\r\n \"cboCode\": \"{{orgId}}\",\r\n \"totalEstimatedAmount\": 430000,\r\n \"termsAndConditions\": [\r\n {\r\n \"description\": \"\"\r\n }\r\n ],\r\n \"locality\": \"SUN02\",\r\n \"estimateNumber\": \"{{estNo-WO}}\",\r\n \"officerInChargeDesgn\": \"Asst. Engineer ( B&R)\",\r\n \"officerInChargeName\": {\r\n \"code\": \"{{officerCode}}\",\r\n \"name\": \"{{officerName}}\"\r\n },\r\n \"projectDesc\": \"Inbox\",\r\n \"cboOrgNumber\": \"{{cboOrgNumber}}\"\r\n }\r\n },\r\n \"workflow\": {\r\n \"action\": \"CREATE\"\r\n },\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"authToken\": \"{{auth}}\",\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 Revision 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", "// Define a test to run after the response is received\r", "pm.test(\"Check response and set collection variables\", function () {\r", " // Check if the response status is 200\r", " pm.expect(pm.response.code).to.equal(200);\r", "\r", " // Parse the response JSON\r", " const responseData = pm.response.json();\r", "\r", " // Set collection variables based on the response\r", " pm.collectionVariables.set(\"lineitem1\", responseData.contracts[0].lineItems[0].id);\r", " pm.collectionVariables.set(\"lineamount1\", responseData.contracts[0].lineItems[0].amountBreakups[0].id);\r", " pm.collectionVariables.set(\"lineitem2\", responseData.contracts[0].lineItems[1].id);\r", " pm.collectionVariables.set(\"lineamount2\", responseData.contracts[0].lineItems[1].amountBreakups[0].id);\r", " pm.collectionVariables.set(\"ward\", responseData.contracts[0].additionalDetails.ward);\r", " pm.collectionVariables.set(\"locality\", responseData.contracts[0].additionalDetails.locality);\r", " pm.collectionVariables.set(\"ContractId\", responseData.contracts[0].id);\r", " pm.collectionVariables.set(\"ContractNumber\", responseData.contracts[0].contractNumber);\r", " pm.collectionVariables.set(\"createdTime\", responseData.contracts[0].auditDetails.createdTime);\r", " pm.collectionVariables.set(\"lastModifiedTime\", responseData.contracts[0].auditDetails.lastModifiedTime);\r", " pm.collectionVariables.set(\"wfStatus\", responseData.contracts[0].wfStatus);\r", " pm.collectionVariables.set(\"contractType\", responseData.contracts[0].contractType);\r", " pm.collectionVariables.set(\"orgId\", responseData.contracts[0].orgId);\r", " pm.collectionVariables.set(\"orgName\", responseData.contracts[0].additionalDetails.orgName);\r", " pm.collectionVariables.set(\"cboOrgNumber\", responseData.contracts[0].additionalDetails.cboOrgNumber);\r", " pm.collectionVariables.set(\"officerInChargeId\", responseData.contracts[0].additionalDetails.officerInChargeId);\r", " pm.collectionVariables.set(\"contractLineItemRef1\", responseData.contracts[0].lineItems[0].contractLineItemRef);\r", " pm.collectionVariables.set(\"contractLineItemRef2\", responseData.contracts[0].lineItems[1].contractLineItemRef);\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.collectionVariables.set(\"supplementNumber\", responseData.contracts[0].supplementNumber);\r", "\r", " var WOId = responseData.contracts[0].id;\r", " console.log('id:', WOId);\r", " pm.environment.set('WOId',WOId);\r", "\r", " var WONo = responseData.contracts[0].contractNumber;\r", " console.log('contractNumber:', WONo);\r", " pm.environment.set('WONo',WONo);\r", "});\r", "\r", "// Now, the variables are set after the response is received, and you can access them in subsequent requests or scripts.\r", "" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "exec": [ "// Assuming extensionDays is a variable representing the number of days to extend", "var extensionDays = 10; // You can replace this with your actual value", "var x = pm.variables.get(\"startDate\");", "console.log(x);", "// Get the existing endDate from Postman variables", "var existingEndDateString = pm.variables.get(\"endDate\");", "", "// Check if the existingEndDateString is a valid date string", "if (Date.parse(existingEndDateString)) {", " // Convert the existing endDate to a JavaScript Date object", " var existingEndDate = new Date(existingEndDateString);", "", " // Calculate the new endDate by adding the extensionDays", " var newEndDate = new Date(existingEndDate.getTime() + extensionDays * 24 * 60 * 60 * 1000);", "", " // Get the epoch time (milliseconds since January 1, 1970) for the newEndDate", " var epochTime = newEndDate.getTime();", "", " // Update the endDate variable in Postman with the epoch time", " pm.variables.set(\"endDate\", epochTime);", "", " // Log the updated endDate for verification", " console.log(\"Updated endDate (epoch time):\", epochTime);", "} else {", " console.error(\"Invalid existing endDate:\", existingEndDateString);", "}", "" ], "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 \"contractNumber\": \"{{ContractNumber}}\",\r\n \"businessService\": \"{{buisnessServiceContract}}\",\r\n \"contractType\": \"CON-01\",\r\n \"totalContractedAmount\": {{totalEstimatedAmount}},\r\n \"securityDeposit\": 0,\r\n \"agreementDate\": 0,\r\n \"defectLiabilityPeriod\": 0,\r\n \"orgId\": \"{{orgId}}\",\r\n \"startDate\": {{startDate}},\r\n \"endDate\": {{endDate}},\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 \"processInstance\": null,\r\n \"additionalDetails\": {\r\n \"officerInChargeId\": \"{{officerInChargeId}}\",\r\n \"projectType\": \"MP-CWS\",\r\n \"ward\": \"B1\",\r\n \"projectName\": \"Inbox \",\r\n \"orgName\": \"ABC Corp (May 13)\",\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 \"cboName\": \"ABC Corp (May 13)\",\r\n \"cboCode\": \"{{orgId}}\",\r\n \"totalEstimatedAmount\": 430000,\r\n \"termsAndConditions\": [\r\n {\r\n \"description\": \"\"\r\n }\r\n ],\r\n \"locality\": \"SUN02\",\r\n \"estimateNumber\": \"{{estNo-WO}}\",\r\n \"officerInChargeDesgn\": \"Asst. Engineer ( B&R)\",\r\n \"officerInChargeName\": {\r\n \"code\": \"{{officerCode}}\",\r\n \"name\": \"{{officerName}}\"\r\n },\r\n \"projectDesc\": \"Inbox\",\r\n \"cboOrgNumber\": \"{{cboOrgNumber}}\"\r\n }\r\n },\r\n \"workflow\": {\r\n \"action\": \"CREATE\"\r\n },\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"authToken\": \"{{auth}}\",\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 Revision 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 \"contractNumber\": \"{{ContractNumber}}\",\r\n \"businessService\": \"{{buisnessServiceContract}}\",\r\n \"contractType\": \"CON-01\",\r\n \"totalContractedAmount\": {{totalEstimatedAmount}},\r\n \"securityDeposit\": 0,\r\n \"agreementDate\": 0,\r\n \"defectLiabilityPeriod\": 0,\r\n \"orgId\": \"{{orgId}}\",\r\n \"startDate\": {{startDate}},\r\n \"endDate\": {{endDate}},\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\": \"{{officerInChargeId}}\",\r\n \"projectType\": \"MP-CWS\",\r\n \"ward\": \"B1\",\r\n \"projectName\": \"Inbox \",\r\n \"orgName\": \"ABC Corp (May 13)\",\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 \"cboName\": \"ABC Corp (May 13)\",\r\n \"cboCode\": \"{{orgId}}\",\r\n \"totalEstimatedAmount\": 430000,\r\n \"termsAndConditions\": [\r\n {\r\n \"description\": \"\"\r\n }\r\n ],\r\n \"locality\": \"SUN02\",\r\n \"estimateNumber\": \"{{estNo-WO}}\",\r\n \"officerInChargeDesgn\": \"Asst. Engineer ( B&R)\",\r\n \"officerInChargeName\": {\r\n \"code\": \"{{officerCode}}\",\r\n \"name\": \"{{officerName}}\"\r\n },\r\n \"projectDesc\": \"Inbox\",\r\n \"cboOrgNumber\": \"{{cboOrgNumber}}\"\r\n }\r\n },\r\n \"workflow\": {\r\n \"action\": \"CREATE\"\r\n },\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"authToken\": \"{{auth}}\",\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": "Wed, 29 Nov 2023 07:13:40 GMT" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "x-correlation-id", "value": "56ae8fb2-8ae8-4f7b-b871-dd7cdb63f3c4" }, { "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\": \"1694151844714|en_IN\",\n \"status\": \"successful\"\n },\n \"contracts\": [\n {\n \"id\": \"3e275d29-6e02-4321-8466-520e8fe29978\",\n \"contractNumber\": \"WO/2023-24/000877\",\n \"supplementNumber\": \"RW/2023-24/000015\",\n \"versionNumber\": 2,\n \"oldUuid\": \"cb052f68-4dda-4c22-b5f4-e156c7e75a2e\",\n \"businessService\": \"CONTRACT-REVISION\",\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\": \"d54dce50-251b-4d29-a68f-225f87b2fe1f\",\n \"startDate\": 1701196200000,\n \"endDate\": 1703874599999,\n \"completionPeriod\": 30,\n \"status\": \"INWORKFLOW\",\n \"lineItems\": [\n {\n \"id\": \"b5fc62ec-0dc9-43dc-a314-aad8097eb531\",\n \"estimateId\": \"6f8c3960-b21c-45a7-8df4-befb7e039823\",\n \"estimateLineItemId\": \"3476eb78-467f-437f-a6f7-5f28a2a38670\",\n \"contractLineItemRef\": \"5e6bd666-aaaa-4644-b4ab-972995f2a826\",\n \"tenantId\": \"pg.citya\",\n \"unitRate\": 439070.35,\n \"noOfunit\": 1,\n \"category\": \"SOR\",\n \"name\": \"P.C.C. Grade M25 Using Batching plant, Transit Mixer and concrete pump (Data for 120.00 Cum) [First Floor]\",\n \"status\": \"INWORKFLOW\",\n \"amountBreakups\": [\n {\n \"id\": \"0bcc1da6-5757-4d88-981b-e379316c908b\",\n \"estimateAmountBreakupId\": \"b8ab8153-033c-4ff0-8038-a2fb5faea080\",\n \"amount\": 3253.6,\n \"status\": \"INWORKFLOW\",\n \"additionalDetails\": null\n }\n ],\n \"auditDetails\": {\n \"createdBy\": \"40e3b45a-0f64-4e8c-8768-aab82c095b2d\",\n \"lastModifiedBy\": \"40e3b45a-0f64-4e8c-8768-aab82c095b2d\",\n \"createdTime\": 1701242019846,\n \"lastModifiedTime\": 1701242019846\n },\n \"additionalDetails\": null\n },\n {\n \"id\": \"8ab89720-0a64-4f46-bb1f-df9778e2cc93\",\n \"estimateId\": \"6f8c3960-b21c-45a7-8df4-befb7e039823\",\n \"estimateLineItemId\": \"76fe965a-cf10-47fa-8493-bc207a4ce07e\",\n \"contractLineItemRef\": \"decaa4b1-9d27-4c83-ae7e-763e91bff232\",\n \"tenantId\": \"pg.citya\",\n \"unitRate\": 0,\n \"noOfunit\": 0,\n \"category\": \"OVERHEAD\",\n \"name\": \"GST\",\n \"status\": \"INWORKFLOW\",\n \"amountBreakups\": [\n {\n \"id\": \"6e2b1508-3951-42e3-9893-47958821906e\",\n \"estimateAmountBreakupId\": \"2111b782-0e4e-4c65-9479-b3c55f4ede23\",\n \"amount\": 585.6,\n \"status\": \"INWORKFLOW\",\n \"additionalDetails\": null\n }\n ],\n \"auditDetails\": {\n \"createdBy\": \"40e3b45a-0f64-4e8c-8768-aab82c095b2d\",\n \"lastModifiedBy\": \"40e3b45a-0f64-4e8c-8768-aab82c095b2d\",\n \"createdTime\": 1701242019846,\n \"lastModifiedTime\": 1701242019846\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\": \"5e241428-b7e2-4ca5-805c-a3245a81d377\",\n \"tenantId\": \"pg.citya\",\n \"businessService\": \"CONTRACT\",\n \"businessId\": \"RW/2023-24/000015\",\n \"action\": \"CREATE\",\n \"moduleName\": \"contract-service\",\n \"state\": {\n \"auditDetails\": {\n \"createdBy\": \"7e46e32c-187c-4fb4-9d6b-1ac70fa8f011\",\n \"lastModifiedBy\": \"7e46e32c-187c-4fb4-9d6b-1ac70fa8f011\",\n \"createdTime\": 1694668620818,\n \"lastModifiedTime\": 1694668620818\n },\n \"uuid\": \"bbaf5139-e1e6-4513-a748-24adc88773a5\",\n \"tenantId\": \"pg\",\n \"businessServiceId\": \"946c4a76-6304-4c0b-9429-37a9fffaf52a\",\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\": \"7e46e32c-187c-4fb4-9d6b-1ac70fa8f011\",\n \"lastModifiedBy\": \"7e46e32c-187c-4fb4-9d6b-1ac70fa8f011\",\n \"createdTime\": 1694668620818,\n \"lastModifiedTime\": 1694668620818\n },\n \"uuid\": \"f6c5dfb6-65b0-4c55-b290-a460bd733814\",\n \"tenantId\": \"pg\",\n \"currentState\": \"bbaf5139-e1e6-4513-a748-24adc88773a5\",\n \"action\": \"VERIFY_AND_FORWARD\",\n \"nextState\": \"d1e8db05-ff17-49d8-9e11-50709f016ca9\",\n \"roles\": [\n \"WORK_ORDER_VERIFIER\"\n ]\n },\n {\n \"auditDetails\": {\n \"createdBy\": \"7e46e32c-187c-4fb4-9d6b-1ac70fa8f011\",\n \"lastModifiedBy\": \"7e46e32c-187c-4fb4-9d6b-1ac70fa8f011\",\n \"createdTime\": 1694668620818,\n \"lastModifiedTime\": 1694668620818\n },\n \"uuid\": \"40f6a532-17c9-4564-ad11-7ae2eb4b1b87\",\n \"tenantId\": \"pg\",\n \"currentState\": \"bbaf5139-e1e6-4513-a748-24adc88773a5\",\n \"action\": \"SEND_BACK\",\n \"nextState\": \"9391d8f3-d519-460c-8fec-39190ae518f0\",\n \"roles\": [\n \"WORK_ORDER_VERIFIER\"\n ]\n }\n ]\n },\n \"comment\": null,\n \"documents\": null,\n \"assignes\": null\n },\n \"auditDetails\": {\n \"createdBy\": \"40e3b45a-0f64-4e8c-8768-aab82c095b2d\",\n \"lastModifiedBy\": \"40e3b45a-0f64-4e8c-8768-aab82c095b2d\",\n \"createdTime\": 1701242019846,\n \"lastModifiedTime\": 1701242019846\n },\n \"additionalDetails\": {\n \"officerInChargeId\": \"JK1\",\n \"projectType\": \"MP-CWS\",\n \"ward\": \"B1\",\n \"projectName\": \"Inbox \",\n \"orgName\": \"ABC Corp (May 13)\",\n \"projectId\": \"PJ/2023-24/05/002231\",\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 \"cboName\": \"ABC Corp (May 13)\",\n \"cboCode\": \"d54dce50-251b-4d29-a68f-225f87b2fe1f\",\n \"totalEstimatedAmount\": 430000,\n \"termsAndConditions\": [\n {\n \"description\": \"\"\n }\n ],\n \"locality\": \"SUN02\",\n \"estimateNumber\": \"ES/2023-24/002270\",\n \"officerInChargeDesgn\": \"Asst. Engineer ( B&R)\",\n \"officerInChargeName\": {\n \"code\": \"test1234\",\n \"name\": \"test\"\n },\n \"projectDesc\": \"Inbox\",\n \"cboOrgNumber\": \"ORG-000832\"\n }\n }\n ],\n \"pagination\": null\n}" } ] }, { "name": "Update Revision Contract - Validation error - contract 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(\"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_NUMBER_NOT_PRESENT_IN_REQUEST\");\r", " pm.expect(message).to.eql(\"Contract number mandatory for revision contract\");\r", " }\r", ");" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } } ], "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 \"supplementNumber\": \"{{supplementNumber}}\",\r\n \"businessService\": \"{{buisnessServiceContract}}\",\r\n \"status\": \"INWORKFLOW\",\r\n \"endDate\": {{endDate}},\r\n \"startDate\": {{startDate}},\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\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\r\n \"lastModifiedBy\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\"\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\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\r\n \"lastModifiedBy\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\"\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\": \"{{officerInChargeId}}\",\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 \"estimateNumber\": \"{{estNo-WO}}\",\r\n \"totalEstimatedAmount\": \"{{totalEstimatedAmount}}\",\r\n \"completionPeriod\": null,\r\n \"projectDesc\": \"{{randomWord}}\",\r\n \"officerInChargeName\": {\r\n \"code\": \"{{officerCode}}\",\r\n \"name\": \"{{officerName}}\"\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\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\r\n \"lastModifiedBy\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\"\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 \"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 Revision Contract - Validation error - supplement 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(\"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(\"SUPPLEMENT_NUMBER_EMPTY\");\r", " pm.expect(message).to.eql(\"Supplement number must not be empty\");\r", " }\r", ");" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } } ], "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 // \"supplementNumber\": \"{{supplementNumber}}\",\r\n \"businessService\": \"{{buisnessServiceContract}}\",\r\n \"status\": \"INWORKFLOW\",\r\n \"endDate\": {{endDate}},\r\n \"startDate\": {{startDate}},\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\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\r\n \"lastModifiedBy\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\"\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\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\r\n \"lastModifiedBy\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\"\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\": \"{{officerInChargeId}}\",\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 \"estimateNumber\": \"{{estNo-WO}}\",\r\n \"totalEstimatedAmount\": \"{{totalEstimatedAmount}}\",\r\n \"completionPeriod\": null,\r\n \"projectDesc\": \"{{randomWord}}\",\r\n \"officerInChargeName\": {\r\n \"code\": \"{{officerCode}}\",\r\n \"name\": \"{{officerName}}\"\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\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\r\n \"lastModifiedBy\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\"\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 \"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 Revision 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", " pm.collectionVariables.set('wfStatus', responseData.contracts[0].wfStatus);\r", " pm.collectionVariables.set('status', responseData.contracts[0].status);\r", " pm.collectionVariables.set('lastModifiedTime', responseData.contracts[0].auditDetails.lastModifiedTime);\r", "});" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } } ], "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 \"supplementNumber\": \"{{supplementNumber}}\",\r\n \"businessService\": \"{{buisnessServiceContract}}\",\r\n \"status\": \"INWORKFLOW\",\r\n \"endDate\": {{endDate}},\r\n \"startDate\": {{startDate}},\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\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\r\n \"lastModifiedBy\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\"\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\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\r\n \"lastModifiedBy\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\"\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\": \"{{officerInChargeId}}\",\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 \"estimateNumber\": \"{{estNo-WO}}\",\r\n \"totalEstimatedAmount\": \"{{totalEstimatedAmount}}\",\r\n \"completionPeriod\": null,\r\n \"projectDesc\": \"{{randomWord}}\",\r\n \"officerInChargeName\": {\r\n \"code\": \"{{officerCode}}\",\r\n \"name\": \"{{officerName}}\"\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\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\r\n \"lastModifiedBy\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\"\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 \"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 Revision 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", " pm.collectionVariables.set('wfStatus', responseData.contracts[0].wfStatus);\r", " pm.collectionVariables.set('status', responseData.contracts[0].status);\r", " pm.collectionVariables.set('lastModifiedTime', responseData.contracts[0].auditDetails.lastModifiedTime);\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 \"tenantId\": \"{{tenantId}}\",\r\n \"supplementNumber\": \"{{supplementNumber}}\",\r\n \"businessService\": \"{{buisnessServiceContract}}\",\r\n \"status\": \"INWORKFLOW\",\r\n \"endDate\": {{endDate}},\r\n \"startDate\": {{startDate}},\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\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\r\n \"lastModifiedBy\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\"\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\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\r\n \"lastModifiedBy\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\"\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\": \"{{officerInChargeId}}\",\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 \"estimateNumber\": \"{{estNo-WO}}\",\r\n \"totalEstimatedAmount\": \"{{totalEstimatedAmount}}\",\r\n \"completionPeriod\": null,\r\n \"projectDesc\": \"{{randomWord}}\",\r\n \"officerInChargeName\": {\r\n \"code\": \"{{officerCode}}\",\r\n \"name\": \"{{officerName}}\"\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\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\r\n \"lastModifiedBy\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\"\r\n }\r\n },\r\n \"workflow\": {\r\n \"action\": \"EDIT\"\r\n },\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"authToken\": \"{{auth}}\",\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 Revision 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", " pm.collectionVariables.set('wfStatus', responseData.contracts[0].wfStatus);\r", " pm.collectionVariables.set('status', responseData.contracts[0].status);\r", " pm.collectionVariables.set('lastModifiedTime', responseData.contracts[0].auditDetails.lastModifiedTime);\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 \"tenantId\": \"{{tenantId}}\",\r\n \"supplementNumber\": \"{{supplementNumber}}\",\r\n \"businessService\": \"{{buisnessServiceContract}}\",\r\n \"status\": \"INWORKFLOW\",\r\n \"endDate\": {{endDate}},\r\n \"startDate\": {{startDate}},\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\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\r\n \"lastModifiedBy\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\"\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\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\r\n \"lastModifiedBy\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\"\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\": \"{{officerInChargeId}}\",\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 \"estimateNumber\": \"{{estNo-WO}}\",\r\n \"totalEstimatedAmount\": \"{{totalEstimatedAmount}}\",\r\n \"completionPeriod\": null,\r\n \"projectDesc\": \"{{randomWord}}\",\r\n \"officerInChargeName\": {\r\n \"code\": \"{{officerCode}}\",\r\n \"name\": \"{{officerName}}\"\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\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\r\n \"lastModifiedBy\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\"\r\n }\r\n },\r\n \"workflow\": {\r\n \"action\": \"VERIFY_AND_FORWARD\"\r\n },\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"authToken\": \"{{auth}}\",\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 Revision 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", " pm.collectionVariables.set('wfStatus', responseData.contracts[0].wfStatus);\r", " pm.collectionVariables.set('status', responseData.contracts[0].status);\r", " pm.collectionVariables.set('lastModifiedTime', responseData.contracts[0].auditDetails.lastModifiedTime);\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 \"tenantId\": \"{{tenantId}}\",\r\n \"supplementNumber\": \"{{supplementNumber}}\",\r\n \"businessService\": \"{{buisnessServiceContract}}\",\r\n \"status\": \"INWORKFLOW\",\r\n \"endDate\": {{endDate}},\r\n \"startDate\": {{startDate}},\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\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\r\n \"lastModifiedBy\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\"\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\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\r\n \"lastModifiedBy\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\"\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\": \"{{officerInChargeId}}\",\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 \"estimateNumber\": \"{{estNo-WO}}\",\r\n \"totalEstimatedAmount\": \"{{totalEstimatedAmount}}\",\r\n \"completionPeriod\": null,\r\n \"projectDesc\": \"{{randomWord}}\",\r\n \"officerInChargeName\": {\r\n \"code\": \"{{officerCode}}\",\r\n \"name\": \"{{officerName}}\"\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\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\r\n \"lastModifiedBy\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\"\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\": \"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 Revision 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", " pm.collectionVariables.set('wfStatus', responseData.contracts[0].wfStatus);\r", " pm.collectionVariables.set('status', responseData.contracts[0].status);\r", " pm.collectionVariables.set('lastModifiedTime', responseData.contracts[0].auditDetails.lastModifiedTime);\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 \"tenantId\": \"{{tenantId}}\",\r\n \"supplementNumber\": \"{{supplementNumber}}\",\r\n \"businessService\": \"{{buisnessServiceContract}}\",\r\n \"status\": \"INWORKFLOW\",\r\n \"endDate\": {{endDate}},\r\n \"startDate\": {{startDate}},\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\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\r\n \"lastModifiedBy\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\"\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\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\r\n \"lastModifiedBy\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\"\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\": \"{{officerInChargeId}}\",\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 \"estimateNumber\": \"{{estNo-WO}}\",\r\n \"totalEstimatedAmount\": \"{{totalEstimatedAmount}}\",\r\n \"completionPeriod\": null,\r\n \"projectDesc\": \"{{randomWord}}\",\r\n \"officerInChargeName\": {\r\n \"code\": \"{{officerCode}}\",\r\n \"name\": \"{{officerName}}\"\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\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\",\r\n \"lastModifiedBy\": \"bff9c3f6-6a25-45c4-b7ae-dddc016598fd\"\r\n }\r\n },\r\n \"workflow\": {\r\n \"action\": \"ACCEPT\"\r\n },\r\n \"RequestInfo\": {\r\n \"apiId\": \"Rainmaker\",\r\n \"authToken\": \"{{cboAuthToken}}\",\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 Revision Contract - Success - Search by Supplement 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", " pm.collectionVariables.set(\"startDate\", res.contracts[0].startDate);\r", " pm.collectionVariables.set(\"endDate\", res.contracts[0].endDate);\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 \"estimateIds\": [],\r\n \"estimateLineItemIds\": [],\r\n \"contractType\": \"\",\r\n \"orgIds\": [],\r\n \"supplementNumber\": \"{{supplementNumber}}\",\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": [] } ], "event": [ { "listen": "prerequest", "script": { "type": "text/javascript", "exec": [ "" ] } }, { "listen": "test", "script": { "type": "text/javascript", "exec": [ "" ] } } ], "variable": [ { "key": "ward", "value": "" }, { "key": "locality", "value": "" }, { "key": "ContractId", "value": "" }, { "key": "ContractNumber", "value": "" }, { "key": "createdTime", "value": "" }, { "key": "lastModifiedTime", "value": "" }, { "key": "wfStatus", "value": "" }, { "key": "contractType", "value": "" }, { "key": "orgId", "value": "" }, { "key": "orgName", "value": "" }, { "key": "cboOrgNumber", "value": "" }, { "key": "lineitem1", "value": "" }, { "key": "lineamount1", "value": "" }, { "key": "lineitem2", "value": "" }, { "key": "lineamount2", "value": "" }, { "key": "estfileName", "value": "Works-LOI-Pages.pdf", "type": "string" }, { "key": "estfileType", "value": "ESTIMATE_DOC_DETAILED_ESTIMATE", "type": "string" }, { "key": "estfileStoreId", "value": "b0660b2f-9f4e-4e43-8850-45fde3ad1e19", "type": "string" }, { "key": "officerInChargeId", "value": "JK1" }, { "key": "contractLineItemRef1", "value": "", "type": "string" }, { "key": "contractLineItemRef2", "value": "", "type": "string" }, { "key": "status", "value": "", "type": "string" }, { "key": "officerCode", "value": "test1234", "type": "string" }, { "key": "officerName", "value": "test", "type": "string" }, { "key": "buisnessServiceContract", "value": "CONTRACT-REVISION", "type": "string" }, { "key": "cboAuthToken", "value": "", "type": "string" }, { "key": "startDate", "value": "", "type": "string" }, { "key": "endDate", "value": "", "type": "string" }, { "key": "supplementNumber", "value": "", "type": "string" } ] }