{
	"info": {
		"_postman_id": "85cc1d6a-3b96-4a89-8592-ac54465f97b1",
		"name": "CSG Integration API Tests - W3 2024-OAUTH2",
		"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json",
		"_exporter_id": "3052964"
	},
	"item": [
		{
			"name": "dynamodb",
			"item": [
				{
					"name": "registered applications",
					"item": [
						{
							"name": "Register Application",
							"request": {
								"method": "POST",
								"header": [],
								"body": {
									"mode": "raw",
									"raw": "{\n    \"externalClientId\": \"GcrrnQFt4IzIRg31UsCGlqUnxD5XuJUe\",\n    \"externalAuthorizationTokenUri\": \"https://overit-poc.eu.auth0.com/oauth/token\",\n    \"audience\": \"https://dev-infra-poc-api.overit-poc\",\n    \"internalClientId\": \"DlyxAbnK0IsoH1RgZ6kQBorVRP4w7wjE\",\n    \"scopes\": \"rw.dev-infra-poc-api\"\n}",
									"options": {
										"raw": {
											"language": "json"
										}
									}
								},
								"url": "{{integration-api-url}}/{{context-path}}/api/oauth/configurations/v1/registered-applications"
							},
							"response": []
						},
						{
							"name": "Update Registered Application",
							"request": {
								"method": "PUT",
								"header": [],
								"body": {
									"mode": "raw",
									"raw": "{\n    \"externalClientId\": \"GcrrnQFt4IzIRg31UsCGlqUnxD5XuJUe\",\n    \"audience\": \"https://dev-infra-poc-api.overit-poc\",\n    \"internalClientId\": \"DlyxAbnK0IsoH1RgZ6kQBorVRP4w7wjE\",\n    \"scopes\": \"rw.dev-infra-poc-api\"\n}",
									"options": {
										"raw": {
											"language": "json"
										}
									}
								},
								"url": "{{public-orchestrator-base-url}}/{{public-orchestrator-path}}/secured/v1/registered-applications/042dd793-780c-4fb1-b58d-0464fede1f9a"
							},
							"response": []
						},
						{
							"name": "Get Multiple Registered Applications",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{integration-api-url}}/{{context-path}}/api/oauth/configurations/v1/registered-applications?_page=num,0,size,10",
									"host": [
										"{{integration-api-url}}"
									],
									"path": [
										"{{context-path}}",
										"api",
										"oauth",
										"configurations",
										"v1",
										"registered-applications"
									],
									"query": [
										{
											"key": "externalClientId",
											"value": "GcrrnQFt4IzIRg31UsCGlqUnxD5XuJUe",
											"disabled": true
										},
										{
											"key": "internalClientId",
											"value": "DlyxAbnK0IsoH1RgZ6kQBorVRP4w7wjE",
											"disabled": true
										},
										{
											"key": "_page",
											"value": "num,0,size,10"
										}
									]
								}
							},
							"response": []
						},
						{
							"name": "Get Registered Application",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{public-orchestrator-base-url}}/{{public-orchestrator-path}}/secured/v1/registered-applications/042dd793-780c-4fb1-b58d-0464fede1f9a",
									"host": [
										"{{public-orchestrator-base-url}}"
									],
									"path": [
										"{{public-orchestrator-path}}",
										"secured",
										"v1",
										"registered-applications",
										"042dd793-780c-4fb1-b58d-0464fede1f9a"
									],
									"query": [
										{
											"key": "externalClientId",
											"value": "GcrrnQFt4IzIRg31UsCGlqUnxD5XuJUe",
											"disabled": true
										},
										{
											"key": "internalClientId",
											"value": "DlyxAbnK0IsoH1RgZ6kQBorVRP4w7wjE",
											"disabled": true
										}
									]
								}
							},
							"response": []
						},
						{
							"name": "Delete Registered Application",
							"request": {
								"method": "DELETE",
								"header": [],
								"url": {
									"raw": "{{public-orchestrator-base-url}}/{{public-orchestrator-path}}/secured/v1/registered-applications/6e69fe6c-71c1-490d-831b-af28b9227438",
									"host": [
										"{{public-orchestrator-base-url}}"
									],
									"path": [
										"{{public-orchestrator-path}}",
										"secured",
										"v1",
										"registered-applications",
										"6e69fe6c-71c1-490d-831b-af28b9227438"
									],
									"query": [
										{
											"key": "externalClientId",
											"value": "GcrrnQFt4IzIRg31UsCGlqUnxD5XuJUe",
											"disabled": true
										},
										{
											"key": "internalClientId",
											"value": "DlyxAbnK0IsoH1RgZ6kQBorVRP4w7wjE",
											"disabled": true
										}
									]
								}
							},
							"response": []
						}
					]
				},
				{
					"name": "Internal Applications",
					"item": [
						{
							"name": "Get Multiple Internal Applications",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{integration-api-url}}/{{context-path}}/api/oauth/configurations/v1/internal-applications?_page=num,0,size,10",
									"host": [
										"{{integration-api-url}}"
									],
									"path": [
										"{{context-path}}",
										"api",
										"oauth",
										"configurations",
										"v1",
										"internal-applications"
									],
									"query": [
										{
											"key": "_page",
											"value": "num,0,size,10"
										}
									]
								}
							},
							"response": []
						},
						{
							"name": "Create an Internal Application",
							"request": {
								"method": "POST",
								"header": [],
								"body": {
									"mode": "raw",
									"raw": "{\n    \"clientId\": \"DlyxAbnK0IsoH1RgZ6kQBorVRP4w7wjE\",\n    \"authorizationUri\": \"https://overit-poc.eu.auth0.com/authorize\",\n    \"authorizationTokenUri\": \"https://overit-poc.eu.auth0.com/oauth/token\",\n    \"userInfoUri\": \"https://overit-poc.eu.auth0.com/userinfo\",\n    \"clientSecretName\": \"internal-client-secret\",\n    \"audience\": \"https://dev-infra-poc-api.overit-poc\"\n}",
									"options": {
										"raw": {
											"language": "json"
										}
									}
								},
								"url": {
									"raw": "{{integration-api-url}}/{{context-path}}/api/oauth/configurations/v1/internal-applications",
									"host": [
										"{{integration-api-url}}"
									],
									"path": [
										"{{context-path}}",
										"api",
										"oauth",
										"configurations",
										"v1",
										"internal-applications"
									],
									"query": [
										{
											"key": "_page",
											"value": "num,0,size,10",
											"disabled": true
										}
									]
								}
							},
							"response": []
						}
					]
				},
				{
					"name": "Get Multiple Domain-Users Map",
					"request": {
						"method": "GET",
						"header": [],
						"url": "{{public-orchestrator-base-url}}/{{public-orchestrator-path}}/secured/domain-users"
					},
					"response": []
				},
				{
					"name": "Create a Multiple Domain-Users Record",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"clientId\": \"\",\n    \"domainUrl\": \"\"\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": "{{public-orchestrator-base-url}}/{{public-orchestrator-path}}/secured/domain-users"
					},
					"response": []
				},
				{
					"name": "Get a Domain-Users",
					"request": {
						"auth": {
							"type": "oauth2",
							"oauth2": {
								"tokenRequestParams": [
									{
										"key": "audience",
										"value": "https://dev-infra-poc-api.overit-poc",
										"enabled": true,
										"send_as": "request_body"
									},
									{
										"key": "redirect_uri",
										"value": "{{public-orchestrator-base-url}}/login/oauth2/code/okta",
										"enabled": true,
										"send_as": "request_body"
									},
									{
										"key": "client_id",
										"value": "{{client_id}}",
										"enabled": true,
										"send_as": "request_body"
									},
									{
										"key": "scope",
										"value": "openid profile email",
										"enabled": true,
										"send_as": "request_body"
									}
								],
								"authRequestParams": [
									{
										"key": "redirect_uri",
										"value": "{{public-orchestrator-base-url}}/login/oauth2/code/okta",
										"enabled": true,
										"send_as": "request_url"
									},
									{
										"key": "audience",
										"value": "https://dev-infra-poc-api.overit-poc",
										"enabled": true,
										"send_as": "request_url"
									}
								],
								"accessTokenUrl": "{{public-orchestrator-base-url}}/login/oauth2/code/okta",
								"authUrl": "{{public-orchestrator-base-url}}/login/oauth2/code",
								"state": "fhgd0873h4",
								"code_verifier": "",
								"scope": "openid profile email",
								"useBrowser": false,
								"redirect_uri": "http://localhost:3000/profile",
								"clientId": "{{client_id}}",
								"tokenName": "apigge-token",
								"grant_type": "authorization_code_with_pkce",
								"addTokenTo": "header"
							}
						},
						"method": "GET",
						"header": [],
						"url": {
							"raw": "{{public-orchestrator-base-url}}/{{public-orchestrator-path}}/secured/domain-users?clientId=DlyxAbnK0IsoH1RgZ6kQBorVRP4w7wjE",
							"host": [
								"{{public-orchestrator-base-url}}"
							],
							"path": [
								"{{public-orchestrator-path}}",
								"secured",
								"domain-users"
							],
							"query": [
								{
									"key": "clientId",
									"value": "DlyxAbnK0IsoH1RgZ6kQBorVRP4w7wjE"
								}
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "api",
			"item": [
				{
					"name": "WorkOrder",
					"item": [
						{
							"name": "WorkOrder",
							"item": [
								{
									"name": "get",
									"item": [
										{
											"name": "WorkOrder get - simple with code",
											"event": [
												{
													"listen": "prerequest",
													"script": {
														"exec": [
															""
														],
														"type": "text/javascript",
														"packages": {}
													}
												},
												{
													"listen": "test",
													"script": {
														"exec": [
															"pm.test(\"Response status code is 200\", function () {",
															"  pm.expect(pm.response.code).to.equal(200);",
															"});",
															"",
															"",
															"pm.test(\"Response has the required field 'id'\", function () {",
															"    const responseData = pm.response.json();",
															"    ",
															"    pm.expect(responseData).to.have.property('id');",
															"});",
															"",
															"",
															"pm.test(\"Id is a non-zero integer\", function () {",
															"  const responseData = pm.response.json();",
															"",
															"  pm.expect(responseData).to.be.an('object');",
															"  pm.expect(responseData.id).to.exist.and.to.be.a('number');",
															"  pm.expect(responseData.id).to.be.above(0);",
															"});"
														],
														"type": "text/javascript",
														"packages": {}
													}
												}
											],
											"request": {
												"method": "GET",
												"header": [],
												"url": {
													"raw": "{{integration-api-url}}/{{context-path}}/api/integration/work-orders/r1/work-orders?code=170504429185700051&externalSystemCode=SAP",
													"host": [
														"{{integration-api-url}}"
													],
													"path": [
														"{{context-path}}",
														"api",
														"integration",
														"work-orders",
														"r1",
														"work-orders"
													],
													"query": [
														{
															"key": "code",
															"value": "170504429185700051"
														},
														{
															"key": "externalSystemCode",
															"value": "SAP"
														}
													]
												}
											},
											"response": []
										},
										{
											"name": "WorkOrder get - simple with fields filter",
											"event": [
												{
													"listen": "prerequest",
													"script": {
														"exec": [
															""
														],
														"type": "text/javascript",
														"packages": {}
													}
												},
												{
													"listen": "test",
													"script": {
														"exec": [
															"pm.test(\"Response status code is 200\", function () {",
															"  pm.expect(pm.response.code).to.equal(200);",
															"});",
															"",
															"",
															"pm.test(\"Response has the required field 'address'\", function () {",
															"    const responseData = pm.response.json();",
															"    ",
															"    pm.expect(responseData).to.have.property('address');",
															"});",
															""
														],
														"type": "text/javascript",
														"packages": {}
													}
												}
											],
											"request": {
												"method": "GET",
												"header": [],
												"url": {
													"raw": "{{integration-api-url}}/{{context-path}}/api/integration/work-orders/r1/work-orders?code=170504429185700047&externalSystemCode=SAP&_fields=address",
													"host": [
														"{{integration-api-url}}"
													],
													"path": [
														"{{context-path}}",
														"api",
														"integration",
														"work-orders",
														"r1",
														"work-orders"
													],
													"query": [
														{
															"key": "code",
															"value": "170504429185700047"
														},
														{
															"key": "externalSystemCode",
															"value": "SAP"
														},
														{
															"key": "_fields",
															"value": "address"
														}
													]
												}
											},
											"response": []
										},
										{
											"name": "WorkOrder get - simple with fields filter nested",
											"event": [
												{
													"listen": "prerequest",
													"script": {
														"exec": [
															""
														],
														"type": "text/javascript",
														"packages": {}
													}
												},
												{
													"listen": "test",
													"script": {
														"exec": [
															"pm.test(\"Response status code is 200\", function () {",
															"  pm.expect(pm.response.code).to.equal(200);",
															"});",
															"",
															"",
															"pm.test(\"Response has the required field 'address'\", function () {",
															"    const responseData = pm.response.json();",
															"    ",
															"    pm.expect(responseData).to.have.property('address');",
															"});",
															""
														],
														"type": "text/javascript",
														"packages": {}
													}
												}
											],
											"request": {
												"method": "GET",
												"header": [],
												"url": {
													"raw": "{{integration-api-url}}/{{context-path}}/api/integration/work-orders/r1/work-orders?code=170504429185700047&externalSystemCode=SAP&_fields=id,address.countryIsoAlphaCode,operationCenter.code",
													"host": [
														"{{integration-api-url}}"
													],
													"path": [
														"{{context-path}}",
														"api",
														"integration",
														"work-orders",
														"r1",
														"work-orders"
													],
													"query": [
														{
															"key": "code",
															"value": "170504429185700047"
														},
														{
															"key": "externalSystemCode",
															"value": "SAP"
														},
														{
															"key": "_fields",
															"value": "id,address.countryIsoAlphaCode,operationCenter.code"
														}
													]
												}
											},
											"response": []
										},
										{
											"name": "WorkOrder get - simple with externalCode",
											"event": [
												{
													"listen": "prerequest",
													"script": {
														"exec": [
															""
														],
														"type": "text/javascript",
														"packages": {}
													}
												},
												{
													"listen": "test",
													"script": {
														"exec": [
															"pm.test(\"Response status code is 200\", function () {",
															"  pm.expect(pm.response.code).to.equal(200);",
															"});",
															"",
															"",
															"pm.test(\"Response has the required field 'id'\", function () {",
															"    const responseData = pm.response.json();",
															"    ",
															"    pm.expect(responseData).to.have.property('id');",
															"});",
															"",
															"",
															"pm.test(\"Id is a non-zero integer\", function () {",
															"  const responseData = pm.response.json();",
															"",
															"  pm.expect(responseData).to.be.an('object');",
															"  pm.expect(responseData.id).to.exist.and.to.be.a('number');",
															"  pm.expect(responseData.id).to.be.above(0);",
															"});"
														],
														"type": "text/javascript",
														"packages": {}
													}
												}
											],
											"request": {
												"method": "GET",
												"header": [],
												"url": {
													"raw": "{{integration-api-url}}/{{context-path}}/api/integration/work-orders/r1/work-orders?externalCode=TEST_WO_AC_20243118325846&externalSystemCode=SAP",
													"host": [
														"{{integration-api-url}}"
													],
													"path": [
														"{{context-path}}",
														"api",
														"integration",
														"work-orders",
														"r1",
														"work-orders"
													],
													"query": [
														{
															"key": "externalCode",
															"value": "TEST_WO_AC_20243118325846"
														},
														{
															"key": "externalSystemCode",
															"value": "SAP"
														}
													]
												}
											},
											"response": []
										},
										{
											"name": "WorkOrder get - simple with externalCode and typeCode",
											"event": [
												{
													"listen": "prerequest",
													"script": {
														"exec": [
															""
														],
														"type": "text/javascript",
														"packages": {}
													}
												},
												{
													"listen": "test",
													"script": {
														"exec": [
															"pm.test(\"Response status code is 200\", function () {",
															"  pm.expect(pm.response.code).to.equal(200);",
															"});",
															"",
															"",
															"pm.test(\"Response has the required field 'id'\", function () {",
															"    const responseData = pm.response.json();",
															"    ",
															"    pm.expect(responseData).to.have.property('id');",
															"});",
															"",
															"",
															"pm.test(\"Id is a non-zero integer\", function () {",
															"  const responseData = pm.response.json();",
															"",
															"  pm.expect(responseData).to.be.an('object');",
															"  pm.expect(responseData.id).to.exist.and.to.be.a('number');",
															"  pm.expect(responseData.id).to.be.above(0);",
															"});"
														],
														"type": "text/javascript",
														"packages": {}
													}
												}
											],
											"request": {
												"method": "GET",
												"header": [],
												"url": {
													"raw": "{{integration-api-url}}/{{context-path}}/api/integration/work-orders/r1/work-orders?externalCode=TEST_WO_AC_20243118325846&externalSystemCode=SAP&typeCode=1708510864133",
													"host": [
														"{{integration-api-url}}"
													],
													"path": [
														"{{context-path}}",
														"api",
														"integration",
														"work-orders",
														"r1",
														"work-orders"
													],
													"query": [
														{
															"key": "externalCode",
															"value": "TEST_WO_AC_20243118325846"
														},
														{
															"key": "externalSystemCode",
															"value": "SAP"
														},
														{
															"key": "typeCode",
															"value": "1708510864133"
														}
													]
												}
											},
											"response": []
										}
									]
								},
								{
									"name": "create",
									"item": [
										{
											"name": "With Account creation",
											"item": [
												{
													"name": "WorkOrder creationwithaccount - OK - AGGREGATED simple create",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	"",
																	"var nowDT = new Date(Date.now());",
																	"const externalCodeGenerator = \"TEST_WO_AC_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString()  + nowDT.getSeconds().toString() +  nowDT.getMilliseconds().toString();",
																	"pm.collectionVariables.set(\"externalCodeGenerator\",externalCodeGenerator);",
																	"",
																	"const operationCodeGenerator = \"test_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString() + nowDT.getSeconds().toString() ;",
																	"pm.collectionVariables.set(\"operationCodeGenerator\",operationCodeGenerator);",
																	"",
																	"const accountCodeGenerator = \"test_account_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString() + nowDT.getSeconds().toString() ;",
																	"pm.collectionVariables.set(\"accountCodeGenerator\",accountCodeGenerator);",
																	"",
																	"const serialNumber1 = \"sn1_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString() + nowDT.getSeconds().toString() ;",
																	"",
																	"pm.collectionVariables.set(\"serialNumber1\",serialNumber1);",
																	"",
																	"const serialNumber2 = \"sn2_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString() + nowDT.getSeconds().toString() ;",
																	"",
																	"pm.collectionVariables.set(\"serialNumber2\",serialNumber2);"
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"pm.test(\"Response status code is 201\", function () {",
																	"  pm.expect(pm.response.code).to.equal(201);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'id'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('id');",
																	"});",
																	"",
																	"",
																	"pm.test(\"Id is a non-zero integer\", function () {",
																	"  const responseData = pm.response.json();",
																	"",
																	"  pm.expect(responseData).to.be.an('object');",
																	"  pm.expect(responseData.id).to.exist.and.to.be.a('number');",
																	"  pm.expect(responseData.id).to.be.above(0);",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "POST",
														"header": [
															{
																"key": "traceparent",
																"value": "00-8c2888ca7af7c4639f5cd1eb31d299f8-7785a09586029cb6-00",
																"type": "text"
															}
														],
														"body": {
															"mode": "raw",
															"raw": "{\n    \"workOrder\": {\n        \"externalSystemCode\": \"SAP\",\n        \"externalCode\": \"{{externalCodeGenerator}}\",\n        \"typeCode\": \"1708510864133\",\n        \"urgencyCode\": \"1704904707425\",\n        \"operationCenterCode\": \"1705044291857\",\n        \"workCenterCode\": \"string\",\n        \"aggregateCardinalityCode\": \"1\",\n        \"startDate\": \"2024-04-08T14:46:17.605Z\",\n        \"endDate\": \"2024-05-08T14:46:17.605Z\",\n        \"description\": \"string\",\n        \"operationsAssignment\": \"AGGREGATED\",\n        \"aggregateDuration\": 1,\n        \"aggregateResidualDuration\": 10,\n        \"notes\": \"string\"\n    },\n    \"operations\": [\n        {\n            \"typeCode\": \"GEN-INT-HYDR-EPOM\",\n            \"defaultDuration\": 0,\n            \"executionOrder\": 0,\n            \"description\": \"descddd\",\n            \"currentDuration\": 0,\n            \"code\": \"{{operationCodeGenerator}}\",\n            \"startDate\": \"2024-04-08T13:48:37.527Z\",\n            \"endDate\": \"2024-04-08T13:48:37.527Z\",\n            \"note\": \"notesss\"\n        }\n    ],\n    \"account\": {\n        \"externalSystemCode\": \"SAP\",\n        \"code\": \"{{accountCodeGenerator}}\",\n        \"typeCode\": \"1711382128688\",\n        \"operationCenterCode\": \"1705044291857\",\n        \"description\": \"asdfasdf\",\n        \"fiscalCode\": \"23423fg\",\n        \"note\": \"asdffdsfdssa\",\n        \"birthDate\": \"2024-03-28T15:01:22.494Z\",\n        \"phoneNumberCode\": \"333556676\",\n        \"phoneNumberContact\": \"gigi\"\n    },\n    \"address\": {\n        \"countryIsoAlphaCode\": \"IT\",\n        \"districtAcronym\": \"UD\",\n        \"municipality\": \"UDINE\",\n        \"municipalityCode\": \"UD\",\n        \"locality\": \"UDINE\",\n        \"postalCode\": \"33100\",\n        \"toponym\": \"string\",\n        \"street\": \"VIA PUINTAT\",\n        \"streetNumber\": 2,\n        \"streetNumberExtension\": \"A\",\n        \"floor\": \"1\",\n        \"lot\": \"2\",\n        \"staircase\": \"string\",\n        \"apartment\": \"string\",\n        \"directions\": \"string\",\n        \"description\": \"desccc\",\n        \"yCoordinate\": 46.0948035,\n        \"xCoordinate\": 13.2298188\n    },\n    \"contacts\": [\n        {\n            \"typeCode\": \"EMAIL\",\n            \"code\": \"aaa@test.it\",\n            \"contact\": \"aaa\"\n        }\n    ],\n    \"meters\": [\n        {\n            \"typeCode\": \"T1\",\n            \"brandCode\": \"WB\",\n            \"locationCode\": \"1705048811158\",\n            \"classCode\": \"1705252270484\",\n            \"productionYear\": \"2023\",\n            \"serialNumber\": \"{{serialNumber1}}\",\n            \"digitNumber\": 0,\n            \"acronym\": \"string\",\n            \"note\": \"string\",\n            \"minReading\": 0,\n            \"maxReading\": 0,\n            \"lastReadingDate\": \"2024-03-28T15:01:22.495Z\",\n            \"lastReading\": 0,\n            \"active\": true\n        },\n        {\n            \"typeCode\": \"2\",\n            \"brandCode\": \"WB\",\n            \"locationCode\": \"1705048811158\",\n            \"classCode\": \"1705252270484\",\n            \"productionYear\": \"2023\",\n            \"serialNumber\": \"{{serialNumber2}}\",\n            \"digitNumber\": 0,\n            \"acronym\": \"string\",\n            \"note\": \"string\",\n            \"minReading\": 0,\n            \"maxReading\": 0,\n            \"lastReadingDate\": \"2024-03-28T15:01:22.495Z\",\n            \"lastReading\": 0,\n            \"active\": true\n        }\n    ]\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/work-orders/r1/work-orders"
													},
													"response": []
												},
												{
													"name": "WorkOrder creationwithaccount - OK - AGGREGATED - no operation center",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	"",
																	"var nowDT = new Date(Date.now());",
																	"const externalCodeGenerator = \"TEST_WO_AC_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString()  + nowDT.getSeconds().toString() +  nowDT.getMilliseconds().toString();",
																	"pm.collectionVariables.set(\"externalCodeGenerator\",externalCodeGenerator);",
																	"",
																	"const operationCodeGenerator = \"test_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString() + nowDT.getSeconds().toString() ;",
																	"pm.collectionVariables.set(\"operationCodeGenerator\",operationCodeGenerator);",
																	"",
																	"const accountCodeGenerator = \"test_account_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString() + nowDT.getSeconds().toString() ;",
																	"pm.collectionVariables.set(\"accountCodeGenerator\",accountCodeGenerator);",
																	"",
																	"const serialNumber1 = \"sn1_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString() + nowDT.getSeconds().toString() ;",
																	"",
																	"pm.collectionVariables.set(\"serialNumber1\",serialNumber1);",
																	"",
																	"const serialNumber2 = \"sn2_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString() + nowDT.getSeconds().toString() ;",
																	"",
																	"pm.collectionVariables.set(\"serialNumber2\",serialNumber2);"
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"pm.test(\"Response status code is 201\", function () {",
																	"  pm.expect(pm.response.code).to.equal(201);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'id'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('id');",
																	"});",
																	"",
																	"",
																	"pm.test(\"Id is a non-zero integer\", function () {",
																	"  const responseData = pm.response.json();",
																	"",
																	"  pm.expect(responseData).to.be.an('object');",
																	"  pm.expect(responseData.id).to.exist.and.to.be.a('number');",
																	"  pm.expect(responseData.id).to.be.above(0);",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "POST",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n    \"workOrder\": {\n        \"externalSystemCode\": \"SAP\",\n        \"externalCode\": \"{{externalCodeGenerator}}\",\n        \"typeCode\": \"ORD-INS-MPOR\",\n        \"urgencyCode\": \"1704904707425\",\n        \"workCenterCode\": \"string\",\n        \"aggregateCardinalityCode\": \"1\",\n        \"startDate\": \"2024-04-08T14:46:17.605Z\",\n        \"endDate\": \"2024-05-08T14:46:17.605Z\",\n        \"description\": \"string\",\n        \"operationsAssignment\": \"AGGREGATED\",\n        \"aggregateDuration\": 1,\n        \"aggregateResidualDuration\": 10,\n        \"notes\": \"string\"\n    },\n    \"operations\": [\n        {\n            \"typeCode\": \"GEN-INT-HYDR-EPOM\",\n            \"defaultDuration\": 0,\n            \"executionOrder\": 0,\n            \"description\": \"descddd\",\n            \"currentDuration\": 0,\n            \"code\": \"{{operationCodeGenerator}}\",\n            \"startDate\": \"2024-04-08T13:48:37.527Z\",\n            \"endDate\": \"2024-04-08T13:48:37.527Z\",\n            \"note\": \"notesss\"\n        }\n    ],\n    \"account\": {\n        \"externalSystemCode\": \"SAP\",\n        \"code\": \"{{accountCodeGenerator}}\",\n        \"typeCode\": \"1711382128688\",\n        \"operationCenterCode\": \"1606\",\n        \"description\": \"asdfasdf\",\n        \"fiscalCode\": \"23423fg\",\n        \"note\": \"asdffdsfdssa\",\n        \"birthDate\": \"2024-03-28T15:01:22.494Z\",\n        \"phoneNumberCode\": \"333556676\",\n        \"phoneNumberContact\": \"gigi\"\n    },\n    \"address\": {\n        \"countryIsoAlphaCode\": \"IT\",\n        \"districtAcronym\": \"UD\",\n        \"municipality\": \"UDINE\",\n        \"municipalityCode\": \"UD\",\n        \"locality\": \"UDINE\",\n        \"postalCode\": \"33100\",\n        \"toponym\": \"string\",\n        \"street\": \"VIA PUINTAT\",\n        \"streetNumber\": 2,\n        \"streetNumberExtension\": \"A\",\n        \"floor\": \"1\",\n        \"lot\": \"2\",\n        \"staircase\": \"string\",\n        \"apartment\": \"string\",\n        \"directions\": \"string\",\n        \"description\": \"desccc\",\n        \"yCoordinate\": 46.0948035,\n        \"xCoordinate\": 13.2298188\n    },\n    \"contacts\": [\n        {\n            \"typeCode\": \"EMAIL\",\n            \"code\": \"aaa@test.it\",\n            \"contact\": \"aaa\"\n        }\n    ],\n    \"meters\": [\n        {\n            \"typeCode\": \"T1\",\n            \"brandCode\": \"WB\",\n            \"locationCode\": \"1705048811158\",\n            \"classCode\": \"1705252270484\",\n            \"productionYear\": \"2023\",\n            \"serialNumber\": \"{{serialNumber1}}\",\n            \"digitNumber\": 0,\n            \"acronym\": \"string\",\n            \"note\": \"string\",\n            \"minReading\": 0,\n            \"maxReading\": 0,\n            \"lastReadingDate\": \"2024-03-28T15:01:22.495Z\",\n            \"lastReading\": 0,\n            \"active\": true\n        },\n        {\n            \"typeCode\": \"2\",\n            \"brandCode\": \"WB\",\n            \"locationCode\": \"1705048811158\",\n            \"classCode\": \"1705252270484\",\n            \"productionYear\": \"2023\",\n            \"serialNumber\": \"{{serialNumber2}}\",\n            \"digitNumber\": 0,\n            \"acronym\": \"string\",\n            \"note\": \"string\",\n            \"minReading\": 0,\n            \"maxReading\": 0,\n            \"lastReadingDate\": \"2024-03-28T15:01:22.495Z\",\n            \"lastReading\": 0,\n            \"active\": true\n        }\n    ]\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/work-orders/r1/work-orders"
													},
													"response": []
												},
												{
													"name": "WorkOrder create with default account - OK - AGGREGATED - useDefaultAccount is true",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	"",
																	"var nowDT = new Date(Date.now());",
																	"const externalCodeGenerator = \"TEST_WO_AC_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString()  + nowDT.getSeconds().toString() +  nowDT.getMilliseconds().toString();",
																	"pm.collectionVariables.set(\"externalCodeGenerator\",externalCodeGenerator);",
																	"",
																	"const operationCodeGenerator = \"test_op_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString() + nowDT.getSeconds().toString() ;",
																	"pm.collectionVariables.set(\"operationCodeGenerator\",operationCodeGenerator);",
																	"",
																	"const accountCodeGenerator = \"test_account_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString() + nowDT.getSeconds().toString() ;",
																	"pm.collectionVariables.set(\"accountCodeGenerator\",accountCodeGenerator);",
																	"",
																	"const serialNumber1 = \"sn1_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString() + nowDT.getSeconds().toString() ;",
																	"",
																	"pm.collectionVariables.set(\"serialNumber1\",serialNumber1);",
																	"",
																	"const serialNumber2 = \"sn2_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString() + nowDT.getSeconds().toString() ;",
																	"",
																	"pm.collectionVariables.set(\"serialNumber2\",serialNumber2);"
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"pm.test(\"Response status code is 201\", function () {",
																	"  pm.expect(pm.response.code).to.equal(201);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'id'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('id');",
																	"});",
																	"",
																	"",
																	"pm.test(\"Id is a non-zero integer\", function () {",
																	"  const responseData = pm.response.json();",
																	"",
																	"  pm.expect(responseData).to.be.an('object');",
																	"  pm.expect(responseData.id).to.exist.and.to.be.a('number');",
																	"  pm.expect(responseData.id).to.be.above(0);",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "POST",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n    \"workOrder\": {\n        \"externalSystemCode\": \"SAP\",\n        \"externalCode\": \"{{externalCodeGenerator}}\",\n        \"typeCode\": \"ORD-INS-MPOR\",\n        \"urgencyCode\": \"1704904707425\",\n        \"workCenterCode\": \"string\",\n        \"aggregateCardinalityCode\": \"1\",\n        \"startDate\": \"2024-04-08T14:46:17.605Z\",\n        \"endDate\": \"2024-05-08T14:46:17.605Z\",\n        \"description\": \"string\",\n        \"operationsAssignment\": \"AGGREGATED\",\n        \"aggregateDuration\": 1,\n        \"aggregateResidualDuration\": 10,\n        \"notes\": \"string\"\n    },\n    \"operations\": [\n        {\n            \"typeCode\": \"GEN-INT-HYDR-EPOM\",\n            \"defaultDuration\": 0,\n            \"executionOrder\": 0,\n            \"description\": \"descddd\",\n            \"currentDuration\": 0,\n            \"code\": \"{{operationCodeGenerator}}\",\n            \"startDate\": \"2024-04-08T13:48:37.527Z\",\n            \"endDate\": \"2024-04-08T13:48:37.527Z\",\n            \"note\": \"notesss\"\n        }\n    ],\n    \"useDefaultAccount\": true,\n    \"address\": {\n        \"countryIsoAlphaCode\": \"IT\",\n        \"districtAcronym\": \"UD\",\n        \"municipality\": \"UDINE\",\n        \"municipalityCode\": \"UD\",\n        \"locality\": \"UDINE\",\n        \"postalCode\": \"33100\",\n        \"toponym\": \"string\",\n        \"street\": \"VIA PUINTAT\",\n        \"streetNumber\": 2,\n        \"streetNumberExtension\": \"A\",\n        \"floor\": \"1\",\n        \"lot\": \"2\",\n        \"staircase\": \"string\",\n        \"apartment\": \"string\",\n        \"directions\": \"string\",\n        \"description\": \"desccc\",\n        \"yCoordinate\": 46.0948035,\n        \"xCoordinate\": 13.2298188\n    },\n    \"contacts\": [\n        {\n            \"typeCode\": \"EMAIL\",\n            \"code\": \"aaa@test.it\",\n            \"contact\": \"aaa\"\n        }\n    ],\n    \"meters\": [\n        {\n            \"typeCode\": \"T1\",\n            \"brandCode\": \"WB\",\n            \"locationCode\": \"1705048811158\",\n            \"classCode\": \"1705252270484\",\n            \"productionYear\": \"2023\",\n            \"serialNumber\": \"{{serialNumber1}}\",\n            \"digitNumber\": 0,\n            \"acronym\": \"string\",\n            \"note\": \"string\",\n            \"minReading\": 0,\n            \"maxReading\": 0,\n            \"lastReadingDate\": \"2024-03-28T15:01:22.495Z\",\n            \"lastReading\": 0,\n            \"active\": true\n        },\n        {\n            \"typeCode\": \"2\",\n            \"brandCode\": \"WB\",\n            \"locationCode\": \"1705048811158\",\n            \"classCode\": \"1705252270484\",\n            \"productionYear\": \"2023\",\n            \"serialNumber\": \"{{serialNumber2}}\",\n            \"digitNumber\": 0,\n            \"acronym\": \"string\",\n            \"note\": \"string\",\n            \"minReading\": 0,\n            \"maxReading\": 0,\n            \"lastReadingDate\": \"2024-03-28T15:01:22.495Z\",\n            \"lastReading\": 0,\n            \"active\": true\n        }\n    ]\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/work-orders/r1/work-orders"
													},
													"response": []
												},
												{
													"name": "WorkOrder creationwithaccount - KO - account and asset present at same time",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	"",
																	"var nowDT = new Date(Date.now());",
																	"const externalCodeGenerator = \"TEST_WO_AC_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString()  + nowDT.getSeconds().toString() +  nowDT.getMilliseconds().toString();",
																	"pm.collectionVariables.set(\"externalCodeGenerator\",externalCodeGenerator);",
																	"",
																	"const operationCodeGenerator = \"test_op_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString() + nowDT.getSeconds().toString() ;",
																	"pm.collectionVariables.set(\"operationCodeGenerator\",operationCodeGenerator);",
																	"",
																	"const accountCodeGenerator = \"test_account_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString() + nowDT.getSeconds().toString() ;",
																	"pm.collectionVariables.set(\"accountCodeGenerator\",accountCodeGenerator);",
																	"",
																	"const serialNumber1 = \"sn1_\" + nowDT.getFullYear() + \"_\" + (nowDT.getMonth()+1) + \"_\"+ nowDT.getDay().toString() + \"_\" + nowDT.getHours() + \"_\" + + nowDT.getMinutes() + \"_\" + nowDT.getSeconds() + \"_\" + nowDT.getMilliseconds();",
																	"",
																	"pm.collectionVariables.set(\"serialNumber1\",serialNumber1);",
																	"",
																	"const serialNumber2 = \"sn2_\" + nowDT.getFullYear() + \"_\" + (nowDT.getMonth()+1) + \"_\"+ nowDT.getDay().toString() + \"_\" + nowDT.getHours() + \"_\" + + nowDT.getMinutes() + \"_\" + nowDT.getSeconds() + \"_\" + nowDT.getMilliseconds();",
																	"",
																	"pm.collectionVariables.set(\"serialNumber2\",serialNumber2);"
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"pm.test(\"Response status code is 400\", function () {",
																	"  pm.expect(pm.response.code).to.equal(400);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'detail'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('detail');",
																	"});",
																	"",
																	"",
																	"pm.test(\"detail as message: Unexpected presence of account.code and asset.code at the same time\", function () {",
																	"  const responseData = pm.response.json();",
																	"",
																	"  pm.expect(responseData).to.be.an('object');",
																	"  pm.expect(responseData.detail).to.be.equal('Unexpected presence of account.code and asset.code at the same time');",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "POST",
														"header": [
															{
																"key": "Traceparent",
																"value": "asdfasdfasdfgadfsgfgs34tgrgr4g",
																"type": "text"
															}
														],
														"body": {
															"mode": "raw",
															"raw": "{\n    \"workOrder\": {\n        \"externalSystemCode\": \"SAP\",\n        \"externalCode\": \"{{externalCodeGenerator}}\",\n        \"typeCode\": \"1708510864133\",\n        \"urgencyCode\": \"1704904707425\",\n        \"operationCenterCode\": \"1705044291857\",\n        \"workCenterCode\": \"string\",\n        \"aggregateCardinalityCode\": \"1\",\n        \"startDate\": \"2024-04-08T14:46:17.605Z\",\n        \"endDate\": \"2024-05-08T14:46:17.605Z\",\n        \"description\": \"string\",\n        \"operationsAssignment\": \"AGGREGATED\",\n        \"aggregateDuration\": 1,\n        \"aggregateResidualDuration\": 10,\n        \"notes\": \"string\"\n    },\n    \"operations\": [\n        {\n            \"typeCode\": \"GEN-INT-HYDR-EPOM\",\n            \"defaultDuration\": 0,\n            \"executionOrder\": 0,\n            \"description\": \"descddd\",\n            \"currentDuration\": 0,\n            \"code\": \"{{operationCodeGenerator}}\",\n            \"startDate\": \"2024-04-08T13:48:37.527Z\",\n            \"endDate\": \"2024-04-08T13:48:37.527Z\",\n            \"note\": \"notesss\"\n        }\n    ],\n    \"asset\": {\n        \"code\": \"asdfasd\"\n    },\n    \"account\": {\n        \"externalSystemCode\": \"SAP\",\n        \"code\": \"{{accountCodeGenerator}}\",\n        \"typeCode\": \"1711382128688\",\n        \"operationCenterCode\": \"1705044291857\",\n        \"description\": \"asdfasdf\",\n        \"fiscalCode\": \"23423fg\",\n        \"note\": \"asdffdsfdssa\",\n        \"birthDate\": \"2024-03-28T15:01:22.494Z\",\n        \"phoneNumberCode\": \"333556676\",\n        \"phoneNumberContact\": \"gigi\"\n    },\n    \"address\": {\n        \"countryIsoAlphaCode\": \"IT\",\n        \"districtAcronym\": \"UD\",\n        \"municipality\": \"UDINE\",\n        \"municipalityCode\": \"UD\",\n        \"locality\": \"UDINE\",\n        \"postalCode\": \"33100\",\n        \"toponym\": \"string\",\n        \"street\": \"VIA PUINTAT\",\n        \"streetNumber\": 2,\n        \"streetNumberExtension\": \"A\",\n        \"floor\": \"1\",\n        \"lot\": \"2\",\n        \"staircase\": \"string\",\n        \"apartment\": \"string\",\n        \"directions\": \"string\",\n        \"description\": \"desccc\",\n        \"yCoordinate\": 46.0948035,\n        \"xCoordinate\": 13.2298188\n    },\n    \"contacts\": [\n        {\n            \"typeCode\": \"EMAIL\",\n            \"code\": \"aaa@test.it\",\n            \"contact\": \"aaa\"\n        }\n    ],\n    \"meters\": [\n        {\n            \"typeCode\": \"T1\",\n            \"brandCode\": \"WB\",\n            \"locationCode\": \"1705048811158\",\n            \"classCode\": \"1705252270484\",\n            \"productionYear\": \"2023\",\n            \"serialNumber\": \"{{serialNumber1}}\",\n            \"digitNumber\": 0,\n            \"acronym\": \"string\",\n            \"note\": \"string\",\n            \"minReading\": 0,\n            \"maxReading\": 0,\n            \"lastReadingDate\": \"2024-03-28T15:01:22.495Z\",\n            \"lastReading\": 0,\n            \"active\": true\n        },\n        {\n            \"typeCode\": \"2\",\n            \"brandCode\": \"WB\",\n            \"locationCode\": \"1705048811158\",\n            \"classCode\": \"1705252270484\",\n            \"productionYear\": \"2023\",\n            \"serialNumber\": \"{{serialNumber2}}\",\n            \"digitNumber\": 0,\n            \"acronym\": \"string\",\n            \"note\": \"string\",\n            \"minReading\": 0,\n            \"maxReading\": 0,\n            \"lastReadingDate\": \"2024-03-28T15:01:22.495Z\",\n            \"lastReading\": 0,\n            \"active\": true\n        }\n    ]\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/work-orders/r1/work-orders"
													},
													"response": []
												},
												{
													"name": "WorkOrder creationwithaccount - KO - account and asset NOT present",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	"",
																	"var nowDT = new Date(Date.now());",
																	"const externalCodeGenerator = \"TEST_WO_AC_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString()  + nowDT.getSeconds().toString() +  nowDT.getMilliseconds().toString();",
																	"pm.collectionVariables.set(\"externalCodeGenerator\",externalCodeGenerator);",
																	"",
																	"const operationCodeGenerator = \"test_op_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString() + nowDT.getSeconds().toString() ;",
																	"pm.collectionVariables.set(\"operationCodeGenerator\",operationCodeGenerator);",
																	"",
																	"const accountCodeGenerator = \"test_account_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString() + nowDT.getSeconds().toString() ;",
																	"pm.collectionVariables.set(\"accountCodeGenerator\",accountCodeGenerator);",
																	"",
																	"const serialNumber1 = \"sn1_\" + nowDT.getFullYear() + \"_\" + (nowDT.getMonth()+1) + \"_\"+ nowDT.getDay().toString() + \"_\" + nowDT.getHours() + \"_\" + + nowDT.getMinutes() + \"_\" + nowDT.getSeconds() + \"_\" + nowDT.getMilliseconds();",
																	"",
																	"pm.collectionVariables.set(\"serialNumber1\",serialNumber1);",
																	"",
																	"const serialNumber2 = \"sn2_\" + nowDT.getFullYear() + \"_\" + (nowDT.getMonth()+1) + \"_\"+ nowDT.getDay().toString() + \"_\" + nowDT.getHours() + \"_\" + + nowDT.getMinutes() + \"_\" + nowDT.getSeconds() + \"_\" + nowDT.getMilliseconds();",
																	"",
																	"pm.collectionVariables.set(\"serialNumber2\",serialNumber2);"
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"pm.test(\"Response status code is 400\", function () {",
																	"  pm.expect(pm.response.code).to.equal(400);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'detail'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('detail');",
																	"});",
																	"",
																	"",
																	"pm.test(\"detail as message: Missing account or asset code\", function () {",
																	"  const responseData = pm.response.json();",
																	"",
																	"  pm.expect(responseData).to.be.an('object');",
																	"  pm.expect(responseData.detail).to.be.equal('Missing account or asset code');",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "POST",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n    \"workOrder\": {\n        \"externalSystemCode\": \"SAP\",\n        \"externalCode\": \"{{externalCodeGenerator}}\",\n        \"typeCode\": \"1708510864133\",\n        \"urgencyCode\": \"1704904707425\",\n        \"operationCenterCode\": \"1705044291857\",\n        \"workCenterCode\": \"string\",\n        \"aggregateCardinalityCode\": \"1\",\n        \"startDate\": \"2024-04-08T14:46:17.605Z\",\n        \"endDate\": \"2024-05-08T14:46:17.605Z\",\n        \"description\": \"string\",\n        \"operationsAssignment\": \"AGGREGATED\",\n        \"aggregateDuration\": 1,\n        \"aggregateResidualDuration\": 10,\n        \"notes\": \"string\"\n    },\n    \"address\": {\n        \"countryIsoAlphaCode\": \"IT\",\n        \"districtAcronym\": \"UD\",\n        \"municipality\": \"UDINE\",\n        \"municipalityCode\": \"UD\",\n        \"locality\": \"UDINE\",\n        \"postalCode\": \"33100\",\n        \"toponym\": \"string\",\n        \"street\": \"VIA PUINTAT\",\n        \"streetNumber\": 2,\n        \"streetNumberExtension\": \"A\",\n        \"floor\": \"1\",\n        \"lot\": \"2\",\n        \"staircase\": \"string\",\n        \"apartment\": \"string\",\n        \"directions\": \"string\",\n        \"description\": \"desccc\",\n        \"yCoordinate\": 46.0948035,\n        \"xCoordinate\": 13.2298188\n    },\n    \"contacts\": [\n        {\n            \"typeCode\": \"EMAIL\",\n            \"code\": \"aaa@test.it\",\n            \"contact\": \"aaa\"\n        }\n    ],\n    \"meters\": [\n        {\n            \"typeCode\": \"T1\",\n            \"brandCode\": \"WB\",\n            \"locationCode\": \"1705048811158\",\n            \"classCode\": \"1705252270484\",\n            \"productionYear\": \"2023\",\n            \"serialNumber\": \"{{serialNumber1}}\",\n            \"digitNumber\": 0,\n            \"acronym\": \"string\",\n            \"note\": \"string\",\n            \"minReading\": 0,\n            \"maxReading\": 0,\n            \"lastReadingDate\": \"2024-03-28T15:01:22.495Z\",\n            \"lastReading\": 0,\n            \"active\": true\n        },\n        {\n            \"typeCode\": \"2\",\n            \"brandCode\": \"WB\",\n            \"locationCode\": \"1705048811158\",\n            \"classCode\": \"1705252270484\",\n            \"productionYear\": \"2023\",\n            \"serialNumber\": \"{{serialNumber2}}\",\n            \"digitNumber\": 0,\n            \"acronym\": \"string\",\n            \"note\": \"string\",\n            \"minReading\": 0,\n            \"maxReading\": 0,\n            \"lastReadingDate\": \"2024-03-28T15:01:22.495Z\",\n            \"lastReading\": 0,\n            \"active\": true\n        }\n    ]\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/work-orders/r1/work-orders"
													},
													"response": []
												}
											]
										},
										{
											"name": "By Asset",
											"item": [
												{
													"name": "WorkOrder creation by asset - OK - AGGREGATED simple create",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	"",
																	"var nowDT = new Date(Date.now());",
																	"const externalCodeGenerator = \"TEST_WO_AC_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString()  + nowDT.getSeconds().toString() +  nowDT.getMilliseconds().toString();",
																	"pm.collectionVariables.set(\"externalCodeGenerator\",externalCodeGenerator);",
																	"",
																	"const operationCodeGenerator = \"test_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString() + nowDT.getSeconds().toString() ;",
																	"pm.collectionVariables.set(\"operationCodeGenerator\",operationCodeGenerator);"
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"pm.test(\"Response status code is 201\", function () {",
																	"  pm.expect(pm.response.code).to.equal(201);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'id'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('id');",
																	"});",
																	"",
																	"",
																	"pm.test(\"Id is a non-zero integer\", function () {",
																	"  const responseData = pm.response.json();",
																	"",
																	"  pm.expect(responseData).to.be.an('object');",
																	"  pm.expect(responseData.id).to.exist.and.to.be.a('number');",
																	"  pm.expect(responseData.id).to.be.above(0);",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "POST",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n    \"workOrder\": {\n        \"externalSystemCode\": \"SAP\",\n        \"externalCode\": \"{{externalCodeGenerator}}\",\n        \"typeCode\": \"1708510864133\",\n        \n        \"urgencyCode\": \"1704904707425\",\n        \"operationCenterCode\": \"1705044291857\",\n        \"workCenterCode\": \"string\",\n        \"aggregateCardinalityCode\": \"1\",\n        \"startDate\": \"2024-04-08T14:46:17.605Z\",\n        \"endDate\": \"2024-05-08T14:46:17.605Z\",\n        \"description\": \"string\",\n        \"operationsAssignment\": \"AGGREGATED\",\n        \"aggregateDuration\": 1,\n        \"aggregateResidualDuration\": 10,\n        \"notes\": \"string\"\n    },\n    \"asset\": {\n        \"code\": \"1711016432380\"\n    },\n    \"operations\": [\n        {\n            \"typeCode\": \"GEN-INT-HYDR-EPOM\",\n            \"defaultDuration\": 0,\n            \"executionOrder\": 0,\n            \"description\": \"descddd\",\n            \"currentDuration\": 0,\n            \"code\": \"{{operationCodeGenerator}}\",\n            \"startDate\": \"2024-04-08T13:48:37.527Z\",\n            \"endDate\": \"2024-04-08T13:48:37.527Z\",\n            \"note\": \"notesss\"\n        }\n    ]\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/work-orders/r1/work-orders"
													},
													"response": []
												},
												{
													"name": "WorkOrder creation by asset - OK - DISTINCT simple create",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	"",
																	"var nowDT = new Date(Date.now());",
																	"const externalCodeGenerator = \"TEST_WO_AC_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString()  + nowDT.getSeconds().toString() +  nowDT.getMilliseconds().toString();",
																	"pm.collectionVariables.set(\"externalCodeGenerator\",externalCodeGenerator);",
																	"",
																	"const operationCodeGenerator = \"te_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString() + nowDT.getSeconds().toString() ;",
																	"pm.collectionVariables.set(\"operationCodeGenerator\",operationCodeGenerator);"
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"pm.test(\"Response status code is 201\", function () {",
																	"  pm.expect(pm.response.code).to.equal(201);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'id'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('id');",
																	"});",
																	"",
																	"",
																	"pm.test(\"Id is a non-zero integer\", function () {",
																	"  const responseData = pm.response.json();",
																	"",
																	"  pm.expect(responseData).to.be.an('object');",
																	"  pm.expect(responseData.id).to.exist.and.to.be.a('number');",
																	"  pm.expect(responseData.id).to.be.above(0);",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "POST",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n    \"workOrder\": {\n        \"externalSystemCode\": \"SAP\",\n        \"externalCode\": \"{{externalCodeGenerator}}\",\n        \"typeCode\": \"1708510864133\",\n        \"urgencyCode\": \"1704904707425\",\n        \"operationCenterCode\": \"1705044291857\",\n        \"workCenterCode\": \"string\",\n        \"startDate\": \"2024-04-08T14:46:17.605Z\",\n        \"endDate\": \"2024-05-08T14:46:17.605Z\",\n        \"description\": \"string\",\n        \"operationsAssignment\": \"DISTINCT\",\n        \"notes\": \"string\"\n    },\n    \"asset\": {\n        \"code\": \"1711016432380\"\n    },\n    \"operations\": [\n        {\n            \"cardinalityCode\": \"1\",\n            \"typeCode\": \"GEN-INT-HYDR-EPOM\",\n            \"defaultDuration\": 0,\n            \"executionOrder\": 0,\n            \"description\": \"descddd\",\n            \"currentDuration\": 0,\n            \"code\": \"{{operationCodeGenerator}}\",\n            \"startDate\": \"2024-04-08T13:48:37.527Z\",\n            \"endDate\": \"2024-04-08T13:48:37.527Z\",\n            \"note\": \"notesss\"\n        }\n    ]\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/work-orders/r1/work-orders"
													},
													"response": []
												},
												{
													"name": "WorkOrder creation by asset - OK - DISTINCT simple create with multiple operations",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	"",
																	"var nowDT = new Date(Date.now());",
																	"const externalCodeGenerator = \"TEST_WO_AC_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString()  + nowDT.getSeconds().toString() +  nowDT.getMilliseconds().toString();",
																	"pm.collectionVariables.set(\"externalCodeGenerator\",externalCodeGenerator);",
																	"",
																	"const operationCodeGenerator1 = \"te_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString() + nowDT.getSeconds().toString() ;",
																	"pm.collectionVariables.set(\"operationCodeGenerator1\",operationCodeGenerator1);",
																	"",
																	"const operationCodeGenerator2 = \"te_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString() + nowDT.getSeconds().toString() ;",
																	"pm.collectionVariables.set(\"operationCodeGenerator2\",operationCodeGenerator2);"
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"pm.test(\"Response status code is 201\", function () {",
																	"  pm.expect(pm.response.code).to.equal(201);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'id'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('id');",
																	"});",
																	"",
																	"",
																	"pm.test(\"Id is a non-zero integer\", function () {",
																	"  const responseData = pm.response.json();",
																	"",
																	"  pm.expect(responseData).to.be.an('object');",
																	"  pm.expect(responseData.id).to.exist.and.to.be.a('number');",
																	"  pm.expect(responseData.id).to.be.above(0);",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "POST",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n    \"workOrder\": {\n        \"externalSystemCode\": \"SAP\",\n        \"externalCode\": \"{{externalCodeGenerator}}\",\n        \"typeCode\": \"1708510864133\",\n        \"urgencyCode\": \"1704904707425\",\n        \"operationCenterCode\": \"1705044291857\",\n        \"workCenterCode\": \"string\",\n        \"startDate\": \"2024-04-08T14:46:17.605Z\",\n        \"endDate\": \"2024-05-08T14:46:17.605Z\",\n        \"description\": \"string\",\n        \"operationsAssignment\": \"DISTINCT\",\n        \"notes\": \"string\"\n    },\n    \"asset\": {\n        \"code\": \"1711016432380\"\n    },\n    \"operations\": [\n        {\n            \"cardinalityCode\": \"1\",\n            \"typeCode\": \"GEN-INT-HYDR-EPOM\",\n            \"defaultDuration\": 0,\n            \"executionOrder\": 0,\n            \"description\": \"descddd\",\n            \"currentDuration\": 0,\n            \"code\": \"{{operationCodeGenerator1}}\",\n            \"startDate\": \"2024-04-08T13:48:37.527Z\",\n            \"endDate\": \"2024-04-08T13:48:37.527Z\",\n            \"note\": \"notesss\"\n        },\n        {\n            \"cardinalityCode\": \"1\",\n            \"typeCode\": \"GEN-INT-HYDR-EPOM\",\n            \"defaultDuration\": 0,\n            \"executionOrder\": 1,\n            \"description\": \"descddd\",\n            \"currentDuration\": 0,\n            \"code\": \"{{operationCodeGenerator2}}\",\n            \"startDate\": \"2024-04-08T13:48:37.527Z\",\n            \"endDate\": \"2024-04-08T13:48:37.527Z\",\n            \"note\": \"notesss\"\n        }\n    ]\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/work-orders/r1/work-orders"
													},
													"response": []
												},
												{
													"name": "WorkOrder creation by asset - KO - DISTINCT when woa existing",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	"",
																	"var nowDT = new Date(Date.now());",
																	"const externalCodeGenerator = \"TEST_WO_AC_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString()  + nowDT.getSeconds().toString() +  nowDT.getMilliseconds().toString();",
																	"pm.collectionVariables.set(\"externalCodeGenerator\",externalCodeGenerator);",
																	"",
																	"const operationCodeGenerator = \"test_op_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString() + nowDT.getSeconds().toString() ;",
																	"pm.collectionVariables.set(\"operationCodeGenerator\",operationCodeGenerator);"
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"pm.test(\"Response status code is 400\", function () {",
																	"  pm.expect(pm.response.code).to.equal(400);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'detail'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('detail');",
																	"});",
																	"",
																	"",
																	"pm.test(\"detail message value\", function () {",
																	"  const responseData = pm.response.json();",
																	"",
																	"  pm.expect(responseData).to.be.an('object');",
																	"  pm.expect(responseData.detail).to.be.equal('Work Order creation denied because Work Order code TEST_WO_AC_202435104159545 is already been used with the external system SAP');",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "POST",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n    \"workOrder\": {\n        \"externalSystemCode\": \"SAP\",\n        \"externalCode\": \"TEST_WO_AC_202435104159545\",\n        \"typeCode\": \"1708510864133\",\n        \"urgencyCode\": \"1704904707425\",\n        \"operationCenterCode\": \"1705044291857\",\n        \"workCenterCode\": \"string\",\n        \"startDate\": \"2024-04-08T14:46:17.605Z\",\n        \"endDate\": \"2024-05-08T14:46:17.605Z\",\n        \"description\": \"string\",\n        \"operationsAssignment\": \"DISTINCT\",\n        \"notes\": \"string\"\n    },\n    \"asset\": {\n        \"code\": \"1711016432380\"\n    },\n    \"operations\": [\n        {\n            \"cardinalityCode\": \"1\",\n            \"typeCode\": \"GEN-INT-HYDR-EPOM\",\n            \"defaultDuration\": 0,\n            \"executionOrder\": 0,\n            \"description\": \"descddd\",\n            \"currentDuration\": 0,\n            \"code\": \"{{operationCodeGenerator}}\",\n            \"startDate\": \"2024-04-08T13:48:37.527Z\",\n            \"endDate\": \"2024-04-08T13:48:37.527Z\",\n            \"note\": \"notesss\"\n        }\n    ]\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/work-orders/r1/work-orders"
													},
													"response": []
												},
												{
													"name": "WorkOrder creation by asset - KO - DISTINCT execution order repeted",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	"",
																	"var nowDT = new Date(Date.now());",
																	"const externalCodeGenerator = \"TEST_WO_AC_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString()  + nowDT.getSeconds().toString() +  nowDT.getMilliseconds().toString();",
																	"pm.collectionVariables.set(\"externalCodeGenerator\",externalCodeGenerator);",
																	"",
																	"const operationCodeGenerator = \"test_op_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString() + nowDT.getSeconds().toString() ;",
																	"pm.collectionVariables.set(\"operationCodeGenerator\",operationCodeGenerator);"
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"pm.test(\"Response status code is 400\", function () {",
																	"  pm.expect(pm.response.code).to.equal(400);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'detail'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('detail');",
																	"});",
																	"",
																	"",
																	"pm.test(\"detail message value\", function () {",
																	"  const responseData = pm.response.json();",
																	"",
																	"  pm.expect(responseData).to.be.an('object');",
																	"  pm.expect(responseData.detail).to.be.equal('Execution order 0 repeated in more than one Work Order operation');",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "POST",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n    \"workOrder\": {\n        \"externalSystemCode\": \"SAP\",\n        \"externalCode\": \"{{externalCodeGenerator}}\",\n        \"typeCode\": \"1708510864133\",\n        \"urgencyCode\": \"1704904707425\",\n        \"operationCenterCode\": \"1705044291857\",\n        \"workCenterCode\": \"string\",\n        \"startDate\": \"2024-04-08T14:46:17.605Z\",\n        \"endDate\": \"2024-05-08T14:46:17.605Z\",\n        \"description\": \"string\",\n        \"operationsAssignment\": \"DISTINCT\",\n        \"notes\": \"string\"\n    },\n    \"asset\": {\n        \"code\": \"1711016432380\"\n    },\n    \"operations\": [\n        {\n            \"cardinalityCode\": \"1\",\n            \"typeCode\": \"GEN-INT-HYDR-EPOM\",\n            \"defaultDuration\": 0,\n            \"executionOrder\": 0,\n            \"description\": \"descddd\",\n            \"currentDuration\": 0,\n            \"code\": \"{{operationCodeGenerator}}\",\n            \"startDate\": \"2024-04-08T13:48:37.527Z\",\n            \"endDate\": \"2024-04-08T13:48:37.527Z\",\n            \"note\": \"notesss\"\n        },\n        {\n            \"cardinalityCode\": \"1\",\n            \"typeCode\": \"GEN-INT-HYDR-EPOM\",\n            \"defaultDuration\": 0,\n            \"executionOrder\": 0,\n            \"description\": \"descddd\",\n            \"currentDuration\": 0,\n            \"code\": \"{{operationCodeGenerator}}\",\n            \"startDate\": \"2024-04-08T13:48:37.527Z\",\n            \"endDate\": \"2024-04-08T13:48:37.527Z\",\n            \"note\": \"notesss\"\n        }\n    ]\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/work-orders/r1/work-orders"
													},
													"response": []
												},
												{
													"name": "WorkOrder creation by asset - KO - AGGREGATED and cardinality missing",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	"",
																	"var nowDT = new Date(Date.now());",
																	"const externalCodeGenerator = \"TEST_WO_AC_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString()  + nowDT.getSeconds().toString() +  nowDT.getMilliseconds().toString();",
																	"pm.collectionVariables.set(\"externalCodeGenerator\",externalCodeGenerator);",
																	"",
																	"const operationCodeGenerator = \"test_op_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString() + nowDT.getSeconds().toString() + nowDT.getMilliseconds().toString();",
																	"pm.collectionVariables.set(\"operationCodeGenerator\",operationCodeGenerator);"
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"pm.test(\"Response status code is 400\", function () {",
																	"  pm.expect(pm.response.code).to.equal(400);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'detail'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('detail');",
																	"});",
																	"",
																	"",
																	"pm.test(\"detail as message: Missing cardinality code in Work Order header\", function () {",
																	"  const responseData = pm.response.json();",
																	"",
																	"  pm.expect(responseData).to.be.an('object');",
																	"  pm.expect(responseData.detail).to.be.equal('Missing cardinality code in Work Order header');",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "POST",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n\"workOrder\": {\n    \"externalSystemCode\": \"SAP\",\n    \"externalCode\": \"{{externalCodeGenerator}}\",\n    \"typeCode\": \"1708510864133\",\n    \"urgencyCode\": \"1704904707425\",\n    \"operationCenterCode\": \"1705044291857\",\n    \"workCenterCode\": \"string\",\n    \"startDate\": \"2024-04-08T14:46:17.605Z\",\n    \"endDate\": \"2024-05-08T14:46:17.605Z\",\n    \"description\": \"string\",\n    \"operationsAssignment\": \"AGGREGATED\",\n    \"aggregateDuration\": 1,\n    \"aggregateResidualDuration\": 10,\n    \"notes\": \"string\"\n  },\n    \"asset\": {\n        \"code\": \"1711016432380\"\n    },\n  \"operations\": [\n    {\n      \"typeCode\": \"GEN-INT-HYDR-EPOM\",\n      \"defaultDuration\": 0,\n      \"executionOrder\": 0,\n      \"description\": \"descddd\",\n      \"currentDuration\": 0,\n      \"code\": \"test_op_202404081647\",\n      \"startDate\": \"2024-04-08T13:48:37.527Z\",\n      \"endDate\": \"2024-04-08T13:48:37.527Z\",\n      \"note\": \"notesss\"\n    }\n  ]\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/work-orders/r1/work-orders"
													},
													"response": []
												},
												{
													"name": "WorkOrder creation by asset - KO - DISTINC and cardinality missing",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	"",
																	"var nowDT = new Date(Date.now());",
																	"const externalCodeGenerator = \"TEST_WO_AC_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString()  + nowDT.getSeconds().toString() +  nowDT.getMilliseconds().toString();",
																	"pm.collectionVariables.set(\"externalCodeGenerator\",externalCodeGenerator);",
																	"",
																	"const operationCodeGenerator = \"test_op_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString() + nowDT.getSeconds().toString() + nowDT.getMilliseconds().toString();",
																	"pm.collectionVariables.set(\"operationCodeGenerator\",operationCodeGenerator);"
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"pm.test(\"Response status code is 400\", function () {",
																	"  pm.expect(pm.response.code).to.equal(400);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'detail'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('detail');",
																	"});",
																	"",
																	"",
																	"pm.test(\"detail as message: Missing cardinality code in one or more Work Order operations\", function () {",
																	"  const responseData = pm.response.json();",
																	"",
																	"  pm.expect(responseData).to.be.an('object');",
																	"  pm.expect(responseData.detail).to.be.equal('Missing cardinality code in one or more Work Order operations');",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "POST",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n\"workOrder\": {\n    \"externalSystemCode\": \"SAP\",\n    \"externalCode\": \"{{externalCodeGenerator}}\",\n    \"typeCode\": \"1708510864133\",\n    \"urgencyCode\": \"1704904707425\",\n    \"operationCenterCode\": \"1705044291857\",\n    \"workCenterCode\": \"string\",\n    \"startDate\": \"2024-04-08T14:46:17.605Z\",\n    \"endDate\": \"2024-05-08T14:46:17.605Z\",\n    \"description\": \"string\",\n    \"operationsAssignment\": \"DISTINCT\",\n    \"aggregateDuration\": 1,\n    \"aggregateResidualDuration\": 10,\n    \"notes\": \"string\"\n  },\n    \"asset\": {\n        \"code\": \"1711016432380\"\n    },\n  \"operations\": [\n    {\n      \"typeCode\": \"GEN-INT-HYDR-EPOM\",\n      \"defaultDuration\": 0,\n      \"executionOrder\": 0,\n      \"description\": \"descddd\",\n      \"currentDuration\": 0,\n      \"code\": \"test_op_202404081647\",\n      \"startDate\": \"2024-04-08T13:48:37.527Z\",\n      \"endDate\": \"2024-04-08T13:48:37.527Z\",\n      \"note\": \"notesss\"\n    }\n  ]\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/work-orders/r1/work-orders"
													},
													"response": []
												},
												{
													"name": "WorkOrder creation by asset - KO - operations missing",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	"",
																	"var nowDT = new Date(Date.now());",
																	"const externalCodeGenerator = \"TEST_WO_AC_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString()  + nowDT.getSeconds().toString() +  nowDT.getMilliseconds().toString();",
																	"pm.collectionVariables.set(\"externalCodeGenerator\",externalCodeGenerator);",
																	"",
																	"const operationCodeGenerator = \"test_op_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString() + nowDT.getSeconds().toString() + nowDT.getMilliseconds().toString();",
																	"pm.collectionVariables.set(\"operationCodeGenerator\",operationCodeGenerator);"
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"pm.test(\"Response status code is 400\", function () {",
																	"  pm.expect(pm.response.code).to.equal(400);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'detail'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('detail');",
																	"});",
																	"",
																	"",
																	"pm.test(\"detail as message: Missing operations\", function () {",
																	"  const responseData = pm.response.json();",
																	"",
																	"  pm.expect(responseData).to.be.an('object');",
																	"  pm.expect(responseData.detail).to.be.equal('Missing operations');",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "POST",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n\"workOrder\": {\n    \"externalSystemCode\": \"SAP\",\n    \"externalCode\": \"{{externalCodeGenerator}}\",\n    \"typeCode\": \"1708510864133\",\n    \"urgencyCode\": \"1704904707425\",\n    \"operationCenterCode\": \"1705044291857\",\n    \"workCenterCode\": \"string\",\n    \"startDate\": \"2024-04-08T14:46:17.605Z\",\n    \"endDate\": \"2024-05-08T14:46:17.605Z\",\n    \"description\": \"string\",\n    \"operationsAssignment\": \"DISTINCT\",\n    \"aggregateDuration\": 1,\n    \"aggregateResidualDuration\": 10,\n    \"notes\": \"string\"\n  },\n    \"asset\": {\n        \"code\": \"1711016432380\"\n    }\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/work-orders/r1/work-orders"
													},
													"response": []
												}
											]
										},
										{
											"name": "By Account",
											"item": [
												{
													"name": "WorkOrder creation by account - OK - AGGREGATED simple create",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	"",
																	"var nowDT = new Date(Date.now());",
																	"const externalCodeGenerator = \"TEST_WO_AC_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString()  + nowDT.getSeconds().toString() +  nowDT.getMilliseconds().toString();",
																	"pm.collectionVariables.set(\"externalCodeGenerator\",externalCodeGenerator);",
																	"",
																	"const operationCodeGenerator = \"test_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString() + nowDT.getSeconds().toString() ;",
																	"pm.collectionVariables.set(\"operationCodeGenerator\",operationCodeGenerator);"
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"pm.test(\"Response status code is 201\", function () {",
																	"  pm.expect(pm.response.code).to.equal(201);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'id'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('id');",
																	"});",
																	"",
																	"",
																	"pm.test(\"Id is a non-zero integer\", function () {",
																	"  const responseData = pm.response.json();",
																	"",
																	"  pm.expect(responseData).to.be.an('object');",
																	"  pm.expect(responseData.id).to.exist.and.to.be.a('number');",
																	"  pm.expect(responseData.id).to.be.above(0);",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "POST",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n    \"workOrder\": {\n        \"externalSystemCode\": \"SAP\",\n        \"externalCode\": \"{{externalCodeGenerator}}\",\n        \"typeCode\": \"1708510864133\",\n        \"urgencyCode\": \"1704904707425\",\n        \"operationCenterCode\": \"1705044291857\",\n        \"workCenterCode\": \"string\",\n        \"aggregateCardinalityCode\": \"1\",\n        \"startDate\": \"2024-04-08T14:46:17.605Z\",\n        \"endDate\": \"2024-05-08T14:46:17.605Z\",\n        \"description\": \"string\",\n        \"operationsAssignment\": \"AGGREGATED\",\n        \"aggregateDuration\": 1,\n        \"aggregateResidualDuration\": 10,\n        \"notes\": \"string\"\n    },\n    \"account\": {\n        \"code\": \"test20240328_5\"\n    },\n    \"operations\": [\n        {\n            \"typeCode\": \"GEN-INT-HYDR-EPOM\",\n            \"defaultDuration\": 0,\n            \"executionOrder\": 0,\n            \"description\": \"descddd\",\n            \"currentDuration\": 0,\n            \"code\": \"{{operationCodeGenerator}}\",\n            \"startDate\": \"2024-04-08T13:48:37.527Z\",\n            \"endDate\": \"2024-04-08T13:48:37.527Z\",\n            \"note\": \"notesss\"\n        }\n    ]\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/work-orders/r1/work-orders"
													},
													"response": []
												},
												{
													"name": "WorkOrder creation by account - OK - DISTINCT simple create",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	"",
																	"var nowDT = new Date(Date.now());",
																	"const externalCodeGenerator = \"TEST_WO_AC_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString()  + nowDT.getSeconds().toString() +  nowDT.getMilliseconds().toString();",
																	"pm.collectionVariables.set(\"externalCodeGenerator\",externalCodeGenerator);",
																	"",
																	"const operationCodeGenerator = \"te_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString() + nowDT.getSeconds().toString() ;",
																	"pm.collectionVariables.set(\"operationCodeGenerator\",operationCodeGenerator);"
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"pm.test(\"Response status code is 201\", function () {",
																	"  pm.expect(pm.response.code).to.equal(201);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'id'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('id');",
																	"});",
																	"",
																	"",
																	"pm.test(\"Id is a non-zero integer\", function () {",
																	"  const responseData = pm.response.json();",
																	"",
																	"  pm.expect(responseData).to.be.an('object');",
																	"  pm.expect(responseData.id).to.exist.and.to.be.a('number');",
																	"  pm.expect(responseData.id).to.be.above(0);",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "POST",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n    \"workOrder\": {\n        \"externalSystemCode\": \"SAP\",\n        \"externalCode\": \"{{externalCodeGenerator}}\",\n        \"typeCode\": \"1708510864133\",\n        \"urgencyCode\": \"1704904707425\",\n        \"operationCenterCode\": \"1705044291857\",\n        \"workCenterCode\": \"string\",\n        \"startDate\": \"2024-04-08T14:46:17.605Z\",\n        \"endDate\": \"2024-05-08T14:46:17.605Z\",\n        \"description\": \"string\",\n        \"operationsAssignment\": \"DISTINCT\",\n        \"notes\": \"string\"\n    },\n    \"account\": {\n        \"code\": \"test20240328_5\"\n    },\n    \"operations\": [\n        {\n            \"cardinalityCode\": \"1\",\n            \"typeCode\": \"GEN-INT-HYDR-EPOM\",\n            \"defaultDuration\": 0,\n            \"executionOrder\": 0,\n            \"description\": \"descddd\",\n            \"currentDuration\": 0,\n            \"code\": \"{{operationCodeGenerator}}\",\n            \"startDate\": \"2024-04-08T13:48:37.527Z\",\n            \"endDate\": \"2024-04-08T13:48:37.527Z\",\n            \"note\": \"notesss\"\n        }\n    ]\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/work-orders/r1/work-orders"
													},
													"response": []
												},
												{
													"name": "WorkOrder creation by account - KO - DISTINCT when woa existing",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	"",
																	"var nowDT = new Date(Date.now());",
																	"const externalCodeGenerator = \"TEST_WO_AC_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString()  + nowDT.getSeconds().toString() +  nowDT.getMilliseconds().toString();",
																	"pm.collectionVariables.set(\"externalCodeGenerator\",externalCodeGenerator);",
																	"",
																	"const operationCodeGenerator = \"test_op_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString() + nowDT.getSeconds().toString() ;",
																	"pm.collectionVariables.set(\"operationCodeGenerator\",operationCodeGenerator);"
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"pm.test(\"Response status code is 400\", function () {",
																	"  pm.expect(pm.response.code).to.equal(400);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'detail'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('detail');",
																	"});",
																	"",
																	"",
																	"pm.test(\"detail message value\", function () {",
																	"  const responseData = pm.response.json();",
																	"",
																	"  pm.expect(responseData).to.be.an('object');",
																	"  pm.expect(responseData.detail).to.be.equal('Work Order creation denied because Work Order code TEST_WO_AC_202431172053977 is already been used with the external system SAP');",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "POST",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n    \"workOrder\": {\n        \"externalSystemCode\": \"SAP\",\n        \"externalCode\": \"TEST_WO_AC_202431172053977\",\n        \"typeCode\": \"1708510864133\",\n        \"urgencyCode\": \"1704904707425\",\n        \"operationCenterCode\": \"1705044291857\",\n        \"workCenterCode\": \"string\",\n        \"startDate\": \"2024-04-08T14:46:17.605Z\",\n        \"endDate\": \"2024-05-08T14:46:17.605Z\",\n        \"description\": \"string\",\n        \"operationsAssignment\": \"DISTINCT\",\n        \"notes\": \"string\"\n    },\n    \"account\": {\n        \"code\": \"test20240328_5\"\n    },\n    \"operations\": [\n        {\n            \"cardinalityCode\": \"1\",\n            \"typeCode\": \"GEN-INT-HYDR-EPOM\",\n            \"defaultDuration\": 0,\n            \"executionOrder\": 0,\n            \"description\": \"descddd\",\n            \"currentDuration\": 0,\n            \"code\": \"{{operationCodeGenerator}}\",\n            \"startDate\": \"2024-04-08T13:48:37.527Z\",\n            \"endDate\": \"2024-04-08T13:48:37.527Z\",\n            \"note\": \"notesss\"\n        }\n    ]\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/work-orders/r1/work-orders"
													},
													"response": []
												},
												{
													"name": "WorkOrder creation by account - KO - DISTINCT execution order repeted",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	"",
																	"var nowDT = new Date(Date.now());",
																	"const externalCodeGenerator = \"TEST_WO_AC_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString()  + nowDT.getSeconds().toString() +  nowDT.getMilliseconds().toString();",
																	"pm.collectionVariables.set(\"externalCodeGenerator\",externalCodeGenerator);",
																	"",
																	"const operationCodeGenerator = \"test_op_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString() + nowDT.getSeconds().toString() ;",
																	"pm.collectionVariables.set(\"operationCodeGenerator\",operationCodeGenerator);"
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"pm.test(\"Response status code is 400\", function () {",
																	"  pm.expect(pm.response.code).to.equal(400);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'detail'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('detail');",
																	"});",
																	"",
																	"",
																	"pm.test(\"detail message value\", function () {",
																	"  const responseData = pm.response.json();",
																	"",
																	"  pm.expect(responseData).to.be.an('object');",
																	"  pm.expect(responseData.detail).to.be.equal('Execution order 0 repeated in more than one Work Order operation');",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "POST",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n    \"workOrder\": {\n        \"externalSystemCode\": \"SAP\",\n        \"externalCode\": \"{{externalCodeGenerator}}\",\n        \"typeCode\": \"1708510864133\",\n        \"urgencyCode\": \"1704904707425\",\n        \"operationCenterCode\": \"1705044291857\",\n        \"workCenterCode\": \"string\",\n        \"startDate\": \"2024-04-08T14:46:17.605Z\",\n        \"endDate\": \"2024-05-08T14:46:17.605Z\",\n        \"description\": \"string\",\n        \"operationsAssignment\": \"DISTINCT\",\n        \"notes\": \"string\"\n    },\n    \"account\": {\n        \"code\": \"test20240328_5\"\n    },\n    \"operations\": [\n        {\n            \"cardinalityCode\": \"1\",\n            \"typeCode\": \"GEN-INT-HYDR-EPOM\",\n            \"defaultDuration\": 0,\n            \"executionOrder\": 0,\n            \"description\": \"descddd\",\n            \"currentDuration\": 0,\n            \"code\": \"{{operationCodeGenerator}}\",\n            \"startDate\": \"2024-04-08T13:48:37.527Z\",\n            \"endDate\": \"2024-04-08T13:48:37.527Z\",\n            \"note\": \"notesss\"\n        },\n        {\n            \"cardinalityCode\": \"1\",\n            \"typeCode\": \"GEN-INT-HYDR-EPOM\",\n            \"defaultDuration\": 0,\n            \"executionOrder\": 0,\n            \"description\": \"descddd\",\n            \"currentDuration\": 0,\n            \"code\": \"{{operationCodeGenerator}}\",\n            \"startDate\": \"2024-04-08T13:48:37.527Z\",\n            \"endDate\": \"2024-04-08T13:48:37.527Z\",\n            \"note\": \"notesss\"\n        }\n    ]\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/work-orders/r1/work-orders"
													},
													"response": []
												},
												{
													"name": "WorkOrder creation by account - KO - AGGREGATED and cardinality missing",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	"",
																	"var nowDT = new Date(Date.now());",
																	"const externalCodeGenerator = \"TEST_WO_AC_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString()  + nowDT.getSeconds().toString() +  nowDT.getMilliseconds().toString();",
																	"pm.collectionVariables.set(\"externalCodeGenerator\",externalCodeGenerator);",
																	"",
																	"const operationCodeGenerator = \"test_op_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString() + nowDT.getSeconds().toString() + nowDT.getMilliseconds().toString();",
																	"pm.collectionVariables.set(\"operationCodeGenerator\",operationCodeGenerator);"
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"pm.test(\"Response status code is 400\", function () {",
																	"  pm.expect(pm.response.code).to.equal(400);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'detail'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('detail');",
																	"});",
																	"",
																	"",
																	"pm.test(\"detail as message: Missing cardinality code in Work Order header\", function () {",
																	"  const responseData = pm.response.json();",
																	"",
																	"  pm.expect(responseData).to.be.an('object');",
																	"  pm.expect(responseData.detail).to.be.equal('Missing cardinality code in Work Order header');",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "POST",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n\"workOrder\": {\n    \"externalSystemCode\": \"SAP\",\n    \"externalCode\": \"{{externalCodeGenerator}}\",\n    \"typeCode\": \"1708510864133\",\n    \"urgencyCode\": \"1704904707425\",\n    \"operationCenterCode\": \"1705044291857\",\n    \"workCenterCode\": \"string\",\n    \"startDate\": \"2024-04-08T14:46:17.605Z\",\n    \"endDate\": \"2024-05-08T14:46:17.605Z\",\n    \"description\": \"string\",\n    \"operationsAssignment\": \"AGGREGATED\",\n    \"aggregateDuration\": 1,\n    \"aggregateResidualDuration\": 10,\n    \"notes\": \"string\"\n  },\n    \"account\": {\n        \"code\": \"test20240328_5\"\n    },\n  \"operations\": [\n    {\n      \"typeCode\": \"GEN-INT-HYDR-EPOM\",\n      \"defaultDuration\": 0,\n      \"executionOrder\": 0,\n      \"description\": \"descddd\",\n      \"currentDuration\": 0,\n      \"code\": \"test_op_202404081647\",\n      \"startDate\": \"2024-04-08T13:48:37.527Z\",\n      \"endDate\": \"2024-04-08T13:48:37.527Z\",\n      \"note\": \"notesss\"\n    }\n  ]\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/work-orders/r1/work-orders"
													},
													"response": []
												},
												{
													"name": "WorkOrder creation by account - KO - DISTINC and cardinality missing",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	"",
																	"var nowDT = new Date(Date.now());",
																	"const externalCodeGenerator = \"TEST_WO_AC_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString()  + nowDT.getSeconds().toString() +  nowDT.getMilliseconds().toString();",
																	"pm.collectionVariables.set(\"externalCodeGenerator\",externalCodeGenerator);",
																	"",
																	"const operationCodeGenerator = \"test_op_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString() + nowDT.getSeconds().toString() + nowDT.getMilliseconds().toString();",
																	"pm.collectionVariables.set(\"operationCodeGenerator\",operationCodeGenerator);"
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"pm.test(\"Response status code is 400\", function () {",
																	"  pm.expect(pm.response.code).to.equal(400);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'detail'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('detail');",
																	"});",
																	"",
																	"",
																	"pm.test(\"detail as message: Missing cardinality code in one or more Work Order operations\", function () {",
																	"  const responseData = pm.response.json();",
																	"",
																	"  pm.expect(responseData).to.be.an('object');",
																	"  pm.expect(responseData.detail).to.be.equal('Missing cardinality code in one or more Work Order operations');",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "POST",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n\"workOrder\": {\n    \"externalSystemCode\": \"SAP\",\n    \"externalCode\": \"{{externalCodeGenerator}}\",\n    \"typeCode\": \"1708510864133\",\n    \"urgencyCode\": \"1704904707425\",\n    \"operationCenterCode\": \"1705044291857\",\n    \"workCenterCode\": \"string\",\n    \"startDate\": \"2024-04-08T14:46:17.605Z\",\n    \"endDate\": \"2024-05-08T14:46:17.605Z\",\n    \"description\": \"string\",\n    \"operationsAssignment\": \"DISTINCT\",\n    \"aggregateDuration\": 1,\n    \"aggregateResidualDuration\": 10,\n    \"notes\": \"string\"\n  },\n    \"account\": {\n        \"code\": \"test20240328_5\"\n    },\n  \"operations\": [\n    {\n      \"typeCode\": \"GEN-INT-HYDR-EPOM\",\n      \"defaultDuration\": 0,\n      \"executionOrder\": 0,\n      \"description\": \"descddd\",\n      \"currentDuration\": 0,\n      \"code\": \"test_op_202404081647\",\n      \"startDate\": \"2024-04-08T13:48:37.527Z\",\n      \"endDate\": \"2024-04-08T13:48:37.527Z\",\n      \"note\": \"notesss\"\n    }\n  ]\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/work-orders/r1/work-orders"
													},
													"response": []
												},
												{
													"name": "WorkOrder creation by account - KO - DISTINC and cardinality missing Copy",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	"",
																	"var nowDT = new Date(Date.now());",
																	"const externalCodeGenerator = \"TEST_WO_AC_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString()  + nowDT.getSeconds().toString() +  nowDT.getMilliseconds().toString();",
																	"pm.collectionVariables.set(\"externalCodeGenerator\",externalCodeGenerator);",
																	"",
																	"const operationCodeGenerator = \"test_op_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString() + nowDT.getSeconds().toString() + nowDT.getMilliseconds().toString();",
																	"pm.collectionVariables.set(\"operationCodeGenerator\",operationCodeGenerator);"
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"pm.test(\"Response status code is 400\", function () {",
																	"  pm.expect(pm.response.code).to.equal(400);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'detail'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('detail');",
																	"});",
																	"",
																	"",
																	"pm.test(\"detail as message: Missing operations\", function () {",
																	"  const responseData = pm.response.json();",
																	"",
																	"  pm.expect(responseData).to.be.an('object');",
																	"  pm.expect(responseData.detail).to.be.equal('Missing operations');",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "POST",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n\"workOrder\": {\n    \"externalSystemCode\": \"SAP\",\n    \"externalCode\": \"{{externalCodeGenerator}}\",\n    \"typeCode\": \"1708510864133\",\n    \"urgencyCode\": \"1704904707425\",\n    \"operationCenterCode\": \"1705044291857\",\n    \"workCenterCode\": \"string\",\n    \"startDate\": \"2024-04-08T14:46:17.605Z\",\n    \"endDate\": \"2024-05-08T14:46:17.605Z\",\n    \"description\": \"string\",\n    \"operationsAssignment\": \"DISTINCT\",\n    \"aggregateDuration\": 1,\n    \"aggregateResidualDuration\": 10,\n    \"notes\": \"string\"\n  },\n    \"account\": {\n        \"code\": \"test20240328_5\"\n    }\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/work-orders/r1/work-orders"
													},
													"response": []
												}
											]
										},
										{
											"name": "By Work Cycle",
											"item": [
												{
													"name": "WorkOrder creation by Work Cycle with asset - ERROR - Operations present",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	"",
																	"var nowDT = new Date(Date.now());",
																	"const externalCodeGenerator = \"TEST_WO_AC_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString()  + nowDT.getSeconds().toString() +  nowDT.getMilliseconds().toString();",
																	"pm.collectionVariables.set(\"externalCodeGenerator\",externalCodeGenerator);",
																	"",
																	"const operationCodeGenerator = \"test_op_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString() + nowDT.getSeconds().toString() ;",
																	"pm.collectionVariables.set(\"operationCodeGenerator\",operationCodeGenerator);"
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"pm.test(\"Response status code is 400\", function () {",
																	"  pm.expect(pm.response.code).to.equal(400);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'detail'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('detail');",
																	"});",
																	"",
																	"",
																	"pm.test(\"detail as message:Operations can't be present with work cycle\", function () {",
																	"  const responseData = pm.response.json();",
																	"",
																	"  pm.expect(responseData).to.be.an('object');",
																	"  pm.expect(responseData.detail).to.be.equal('Operations can\\'t be present with work cycle');",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "POST",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n    \"workOrder\": {\n        \"externalSystemCode\": \"SAP\",\n        \"externalCode\": \"{{externalCodeGenerator}}\",\n        \"typeCode\": \"1708510864133\",\n        \"urgencyCode\": \"1704904707425\",\n        \"operationCenterCode\": \"1705044291857\",\n        \"workCenterCode\": \"string\",\n        \"aggregateCardinalityCode\": \"1\",\n        \"startDate\": \"2024-04-08T14:46:17.605Z\",\n        \"endDate\": \"2024-05-08T14:46:17.605Z\",\n        \"description\": \"string\",\n        \"operationsAssignment\": \"AGGREGATED\",\n        \"aggregateDuration\": 1,\n        \"aggregateResidualDuration\": 10,\n        \"notes\": \"string\",\n        \"workCycleCode\": \"code\"\n    },\n    \"asset\": {\n        \"code\": \"1711016432380\"\n    },\n    \"operations\": [\n        {\n            \"typeCode\": \"GEN-INT-HYDR-EPOM\",\n            \"defaultDuration\": 0,\n            \"executionOrder\": 0,\n            \"description\": \"descddd\",\n            \"currentDuration\": 0,\n            \"code\": \"{{operationCodeGenerator}}\",\n            \"startDate\": \"2024-04-08T13:48:37.527Z\",\n            \"endDate\": \"2024-04-08T13:48:37.527Z\",\n            \"note\": \"notesss\"\n        }\n    ]\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/work-orders/r1/work-orders"
													},
													"response": []
												},
												{
													"name": "WorkOrder creation by Work Cycle with asset - ERROR - Work Cycle code not exist",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	"",
																	"var nowDT = new Date(Date.now());",
																	"const externalCodeGenerator = \"TEST_WO_AC_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString()  + nowDT.getSeconds().toString() +  nowDT.getMilliseconds().toString();",
																	"pm.collectionVariables.set(\"externalCodeGenerator\",externalCodeGenerator);",
																	"",
																	"const operationCodeGenerator = \"test_op_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString() + nowDT.getSeconds().toString() ;",
																	"pm.collectionVariables.set(\"operationCodeGenerator\",operationCodeGenerator);"
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"pm.test(\"Response status code is 404\", function () {",
																	"  pm.expect(pm.response.code).to.equal(404);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'detail'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('detail');",
																	"});",
																	"",
																	"",
																	"pm.test(\"detail as message:Work Cycle Code code does not exist\", function () {",
																	"  const responseData = pm.response.json();",
																	"",
																	"  pm.expect(responseData).to.be.an('object');",
																	"  pm.expect(responseData.detail).to.be.equal('Work Cycle Code code does not exist');",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "POST",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n    \"workOrder\": {\n        \"externalSystemCode\": \"SAP\",\n        \"externalCode\": \"{{externalCodeGenerator}}\",\n        \"typeCode\": \"1708510864133\",\n        \"urgencyCode\": \"1704904707425\",\n        \"operationCenterCode\": \"1705044291857\",\n        \"workCenterCode\": \"string\",\n        \"aggregateCardinalityCode\": \"1\",\n        \"startDate\": \"2024-04-08T14:46:17.605Z\",\n        \"endDate\": \"2024-05-08T14:46:17.605Z\",\n        \"description\": \"string\",\n        \"operationsAssignment\": \"AGGREGATED\",\n        \"aggregateDuration\": 1,\n        \"aggregateResidualDuration\": 10,\n        \"notes\": \"string\",\n        \"workCycleCode\": \"code\"\n    },\n    \"asset\": {\n        \"code\": \"1711016432380\"\n    }\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/work-orders/r1/work-orders"
													},
													"response": []
												},
												{
													"name": "WorkOrder creation by Work Cycle with asset - ERROR - Work Cycle WO type different of WO type",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	"",
																	"var nowDT = new Date(Date.now());",
																	"const externalCodeGenerator = \"TEST_WO_AC_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString()  + nowDT.getSeconds().toString() +  nowDT.getMilliseconds().toString();",
																	"pm.collectionVariables.set(\"externalCodeGenerator\",externalCodeGenerator);",
																	"",
																	"const operationCodeGenerator = \"test_op_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString() + nowDT.getSeconds().toString() ;",
																	"pm.collectionVariables.set(\"operationCodeGenerator\",operationCodeGenerator);"
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"pm.test(\"Response status code is 400\", function () {",
																	"  pm.expect(pm.response.code).to.equal(400);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'detail'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('detail');",
																	"});",
																	"",
																	"var expectedMessage = \"The Work Order type is different between the one indicated in input and the one associated with the Work Cycle\";",
																	"",
																	"pm.test(expectedMessage, function () {",
																	"  const responseData = pm.response.json();",
																	"",
																	"  pm.expect(responseData).to.be.an('object');",
																	"  pm.expect(responseData.detail).to.be.equal(expectedMessage);",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "POST",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n    \"workOrder\": {\n        \"externalSystemCode\": \"SAP\",\n        \"externalCode\": \"{{externalCodeGenerator}}\",\n        \"typeCode\": \"1708510864133\",\n        \"urgencyCode\": \"1704904707425\",\n        \"operationCenterCode\": \"1705044291857\",\n        \"workCenterCode\": \"string\",\n        \"aggregateCardinalityCode\": \"1\",\n        \"startDate\": \"2024-04-08T14:46:17.605Z\",\n        \"endDate\": \"2024-05-08T14:46:17.605Z\",\n        \"description\": \"string\",\n        \"operationsAssignment\": \"AGGREGATED\",\n        \"aggregateDuration\": 1,\n        \"aggregateResidualDuration\": 10,\n        \"notes\": \"string\",\n        \"workCycleCode\": \"OM-I-ED\"\n    },\n    \"asset\": {\n        \"code\": \"1711016432380\"\n    }\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/work-orders/r1/work-orders"
													},
													"response": []
												},
												{
													"name": "WorkOrder creation by Work Cycle with asset - OK - simple",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	"",
																	"var nowDT = new Date(Date.now());",
																	"const externalCodeGenerator = \"TEST_WO_AC_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString()  + nowDT.getSeconds().toString() +  nowDT.getMilliseconds().toString();",
																	"pm.collectionVariables.set(\"externalCodeGenerator\",externalCodeGenerator);",
																	"",
																	"const operationCodeGenerator = \"test_op_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString() + nowDT.getSeconds().toString() ;",
																	"pm.collectionVariables.set(\"operationCodeGenerator\",operationCodeGenerator);"
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"pm.test(\"Response status code is 201\", function () {",
																	"  pm.expect(pm.response.code).to.equal(201);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'id'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('id');",
																	"});",
																	"",
																	"",
																	"pm.test(\"Id is a non-zero integer\", function () {",
																	"  const responseData = pm.response.json();",
																	"",
																	"  pm.expect(responseData).to.be.an('object');",
																	"  pm.expect(responseData.id).to.exist.and.to.be.a('number');",
																	"  pm.expect(responseData.id).to.be.above(0);",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "POST",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n    \"workOrder\": {\n        \"externalSystemCode\": \"SAP\",\n        \"externalCode\": \"{{externalCodeGenerator}}\",\n        \"typeCode\": \"ORD-INS-MPOR\",\n        \"urgencyCode\": \"1704904707425\",\n        \"operationCenterCode\": \"1705044291857\",\n        \"workCenterCode\": \"string\",\n        \"aggregateCardinalityCode\": \"1\",\n        \"startDate\": \"2024-04-08T14:46:17.605Z\",\n        \"endDate\": \"2024-05-08T14:46:17.605Z\",\n        \"description\": \"string\",\n        \"operationsAssignment\": \"AGGREGATED\",\n        \"aggregateDuration\": 1,\n        \"aggregateResidualDuration\": 10,\n        \"notes\": \"string\",\n        \"workCycleCode\": \"OM-I-ED\"\n    },\n    \"asset\": {\n        \"code\": \"1711016432380\"\n    }\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/work-orders/r1/work-orders"
													},
													"response": []
												},
												{
													"name": "WorkOrder creation by Work Cycle with asset - OK - operationCenterCode calculated",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	"",
																	"var nowDT = new Date(Date.now());",
																	"const externalCodeGenerator = \"TEST_WO_AC_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString()  + nowDT.getSeconds().toString() +  nowDT.getMilliseconds().toString();",
																	"pm.collectionVariables.set(\"externalCodeGenerator\",externalCodeGenerator);",
																	"",
																	"const operationCodeGenerator = \"test_op_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString() + nowDT.getSeconds().toString() ;",
																	"pm.collectionVariables.set(\"operationCodeGenerator\",operationCodeGenerator);"
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"pm.test(\"Response status code is 201\", function () {",
																	"  pm.expect(pm.response.code).to.equal(201);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'id'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('id');",
																	"});",
																	"",
																	"",
																	"pm.test(\"Id is a non-zero integer\", function () {",
																	"  const responseData = pm.response.json();",
																	"",
																	"  pm.expect(responseData).to.be.an('object');",
																	"  pm.expect(responseData.id).to.exist.and.to.be.a('number');",
																	"  pm.expect(responseData.id).to.be.above(0);",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "POST",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n    \"workOrder\": {\n        \"externalSystemCode\": \"SAP\",\n        \"externalCode\": \"{{externalCodeGenerator}}\",\n        \"typeCode\": \"ORD-INS-MPOR\",\n        \"urgencyCode\": \"1704904707425\",\n        \"workCenterCode\": \"string\",\n        \"aggregateCardinalityCode\": \"1\",\n        \"startDate\": \"2024-04-08T14:46:17.605Z\",\n        \"endDate\": \"2024-05-08T14:46:17.605Z\",\n        \"description\": \"string\",\n        \"operationsAssignment\": \"AGGREGATED\",\n        \"aggregateDuration\": 1,\n        \"aggregateResidualDuration\": 10,\n        \"notes\": \"string\",\n        \"workCycleCode\": \"OM-I-ED\"\n    },\n    \"asset\": {\n        \"code\": \"1711016432380\"\n    }\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/work-orders/r1/work-orders"
													},
													"response": []
												},
												{
													"name": "WorkOrder creation by Work Cycle with account - OK - simple",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	"",
																	"var nowDT = new Date(Date.now());",
																	"const externalCodeGenerator = \"TEST_WO_AC_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString()  + nowDT.getSeconds().toString() +  nowDT.getMilliseconds().toString();",
																	"pm.collectionVariables.set(\"externalCodeGenerator\",externalCodeGenerator);",
																	"",
																	"const operationCodeGenerator = \"test_op_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString() + nowDT.getSeconds().toString() ;",
																	"pm.collectionVariables.set(\"operationCodeGenerator\",operationCodeGenerator);"
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"pm.test(\"Response status code is 201\", function () {",
																	"  pm.expect(pm.response.code).to.equal(201);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'id'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('id');",
																	"});",
																	"",
																	"",
																	"pm.test(\"Id is a non-zero integer\", function () {",
																	"  const responseData = pm.response.json();",
																	"",
																	"  pm.expect(responseData).to.be.an('object');",
																	"  pm.expect(responseData.id).to.exist.and.to.be.a('number');",
																	"  pm.expect(responseData.id).to.be.above(0);",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "POST",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n    \"workOrder\": {\n        \"externalSystemCode\": \"SAP\",\n        \"externalCode\": \"{{externalCodeGenerator}}\",\n        \"typeCode\": \"ORD-INS-MPOR\",\n        \"urgencyCode\": \"1704904707425\",\n        \"workCenterCode\": \"string\",\n        \"aggregateCardinalityCode\": \"1\",\n        \"startDate\": \"2024-04-08T14:46:17.605Z\",\n        \"endDate\": \"2024-05-08T14:46:17.605Z\",\n        \"description\": \"string\",\n        \"operationsAssignment\": \"AGGREGATED\",\n        \"aggregateDuration\": 1,\n        \"aggregateResidualDuration\": 10,\n        \"notes\": \"string\",\n        \"workCycleCode\": \"OM-I-ED\"\n    },\n    \"account\": {\n        \"code\": \"test20240328_5\"\n    }\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/work-orders/r1/work-orders"
													},
													"response": []
												},
												{
													"name": "WorkOrder creation by Work Cycle with account - OK - disableWorkOrderActivation a true",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	"",
																	"var nowDT = new Date(Date.now());",
																	"const externalCodeGenerator = \"TEST_WO_AC_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString()  + nowDT.getSeconds().toString() +  nowDT.getMilliseconds().toString();",
																	"pm.collectionVariables.set(\"externalCodeGenerator\",externalCodeGenerator);",
																	"",
																	"const operationCodeGenerator = \"test_op_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString() + nowDT.getSeconds().toString() ;",
																	"pm.collectionVariables.set(\"operationCodeGenerator\",operationCodeGenerator);"
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"pm.test(\"Response status code is 201\", function () {",
																	"  pm.expect(pm.response.code).to.equal(201);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'id'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('id');",
																	"});",
																	"",
																	"",
																	"pm.test(\"Id is a non-zero integer\", function () {",
																	"  const responseData = pm.response.json();",
																	"",
																	"  pm.expect(responseData).to.be.an('object');",
																	"  pm.expect(responseData.id).to.exist.and.to.be.a('number');",
																	"  pm.expect(responseData.id).to.be.above(0);",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "POST",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n    \"workOrder\": {\n        \"externalSystemCode\": \"SAP\",\n        \"externalCode\": \"{{externalCodeGenerator}}\",\n        \"typeCode\": \"ORD-INS-MPOR\",\n        \"urgencyCode\": \"1704904707425\",\n        \"workCenterCode\": \"string\",\n        \"aggregateCardinalityCode\": \"1\",\n        \"startDate\": \"2024-04-08T14:46:17.605Z\",\n        \"endDate\": \"2024-05-08T14:46:17.605Z\",\n        \"description\": \"string\",\n        \"operationsAssignment\": \"AGGREGATED\",\n        \"aggregateDuration\": 1,\n        \"aggregateResidualDuration\": 10,\n        \"notes\": \"string\",\n        \"workCycleCode\": \"OM-I-ED\",\n        \"disableWorkOrderActivation\": true\n    },\n    \"account\": {\n        \"code\": \"test20240328_5\"\n    }\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/work-orders/r1/work-orders"
													},
													"response": []
												},
												{
													"name": "WorkOrder creation by Work Cycle with account creation - OK - with operation center on account",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	"",
																	"var nowDT = new Date(Date.now());",
																	"const externalCodeGenerator = \"TEST_WO_AC_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString()  + nowDT.getSeconds().toString() +  nowDT.getMilliseconds().toString();",
																	"pm.collectionVariables.set(\"externalCodeGenerator\",externalCodeGenerator);",
																	"",
																	"const operationCodeGenerator = \"test_op_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString() + nowDT.getSeconds().toString() ;",
																	"pm.collectionVariables.set(\"operationCodeGenerator\",operationCodeGenerator);",
																	"",
																	"const accountCodeGenerator = \"test_account_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString() + nowDT.getSeconds().toString() ;",
																	"pm.collectionVariables.set(\"accountCodeGenerator\",accountCodeGenerator);",
																	"",
																	"const serialNumber1 = \"sn1_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString() + nowDT.getSeconds().toString() ;",
																	"",
																	"pm.collectionVariables.set(\"serialNumber1\",serialNumber1);",
																	"",
																	"const serialNumber2 = \"sn2_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString() + nowDT.getSeconds().toString() ;",
																	"",
																	"pm.collectionVariables.set(\"serialNumber2\",serialNumber2);"
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"pm.test(\"Response status code is 201\", function () {",
																	"  pm.expect(pm.response.code).to.equal(201);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'id'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('id');",
																	"});",
																	"",
																	"",
																	"pm.test(\"Id is a non-zero integer\", function () {",
																	"  const responseData = pm.response.json();",
																	"",
																	"  pm.expect(responseData).to.be.an('object');",
																	"  pm.expect(responseData.id).to.exist.and.to.be.a('number');",
																	"  pm.expect(responseData.id).to.be.above(0);",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "POST",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n    \"workOrder\": {\n        \"externalSystemCode\": \"SAP\",\n        \"externalCode\": \"{{externalCodeGenerator}}\",\n        \"typeCode\": \"ORD-INS-MPOR\",\n        \"urgencyCode\": \"1704904707425\",\n        \"workCenterCode\": \"string\",\n        \"aggregateCardinalityCode\": \"1\",\n        \"startDate\": \"2024-04-08T14:46:17.605Z\",\n        \"endDate\": \"2024-05-08T14:46:17.605Z\",\n        \"description\": \"string\",\n        \"operationsAssignment\": \"AGGREGATED\",\n        \"aggregateDuration\": 1,\n        \"aggregateResidualDuration\": 10,\n        \"notes\": \"string\",\n        \"workCycleCode\": \"OM-I-ED\"\n    },\n    \"account\": {\n        \"externalSystemCode\": \"SAP\",\n        \"code\": \"{{accountCodeGenerator}}\",\n        \"typeCode\": \"1711382128688\",\n        \"operationCenterCode\": \"1606\",\n        \"description\": \"asdfasdf\",\n        \"fiscalCode\": \"23423fg\",\n        \"note\": \"asdffdsfdssa\",\n        \"birthDate\": \"2024-03-28T15:01:22.494Z\",\n        \"phoneNumberCode\": \"333556676\",\n        \"phoneNumberContact\": \"gigi\"\n    },\n    \"address\": {\n        \"countryIsoAlphaCode\": \"IT\",\n        \"districtAcronym\": \"UD\",\n        \"municipality\": \"UDINE\",\n        \"municipalityCode\": \"UD\",\n        \"locality\": \"UDINE\",\n        \"postalCode\": \"33100\",\n        \"toponym\": \"string\",\n        \"street\": \"VIA PUINTAT\",\n        \"streetNumber\": 2,\n        \"streetNumberExtension\": \"A\",\n        \"floor\": \"1\",\n        \"lot\": \"2\",\n        \"staircase\": \"string\",\n        \"apartment\": \"string\",\n        \"directions\": \"string\",\n        \"description\": \"desccc\",\n        \"yCoordinate\": 46.0948035,\n        \"xCoordinate\": 13.2298188\n    },\n    \"contacts\": [\n        {\n            \"typeCode\": \"EMAIL\",\n            \"code\": \"aaa@test.it\",\n            \"contact\": \"aaa\"\n        }\n    ],\n    \"meters\": [\n        {\n            \"typeCode\": \"T1\",\n            \"brandCode\": \"WB\",\n            \"locationCode\": \"1705048811158\",\n            \"classCode\": \"1705252270484\",\n            \"productionYear\": \"2023\",\n            \"serialNumber\": \"{{serialNumber1}}\",\n            \"digitNumber\": 0,\n            \"acronym\": \"string\",\n            \"note\": \"string\",\n            \"minReading\": 0,\n            \"maxReading\": 0,\n            \"lastReadingDate\": \"2024-03-28T15:01:22.495Z\",\n            \"lastReading\": 0,\n            \"active\": true\n        },\n        {\n            \"typeCode\": \"2\",\n            \"brandCode\": \"WB\",\n            \"locationCode\": \"1705048811158\",\n            \"classCode\": \"1705252270484\",\n            \"productionYear\": \"2023\",\n            \"serialNumber\": \"{{serialNumber2}}\",\n            \"digitNumber\": 0,\n            \"acronym\": \"string\",\n            \"note\": \"string\",\n            \"minReading\": 0,\n            \"maxReading\": 0,\n            \"lastReadingDate\": \"2024-03-28T15:01:22.495Z\",\n            \"lastReading\": 0,\n            \"active\": true\n        }\n    ]\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/work-orders/r1/work-orders"
													},
													"response": []
												}
											]
										}
									]
								},
								{
									"name": "update",
									"item": [
										{
											"name": "By Asset",
											"item": [
												{
													"name": "WorkOrder update by asset - simple update",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	"",
																	"var nowDT = new Date(Date.now());",
																	"const updatedNotes = \"notes_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString()  + nowDT.getSeconds().toString() +  nowDT.getMilliseconds().toString();",
																	"pm.collectionVariables.set(\"updatedNotes\",updatedNotes);"
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"pm.test('Response status code is 204', function () {",
																	"    pm.expect(pm.response.code).to.equal(204);",
																	"})",
																	"",
																	"",
																	""
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "PATCH",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n    \"workOrder\": {\n        \"externalSystemCode\": \"SAP\",\n        \"code\": 170504429185700049,\n        \"typeCode\": \"1708510864133\",\n        \"customerCode\": \"test20240328_5\",\n        \"urgencyCode\": \"1704904707425\",\n        \"operationCenterCode\": \"1705044291857\",\n        \"workCenterCode\": \"string\",\n        \"aggregateCardinalityCode\": \"1\",\n        \"startDate\": \"2024-04-08T14:46:17.605Z\",\n        \"endDate\": \"2024-05-08T14:46:17.605Z\",\n        \"description\": \"string\",\n        \"operationsAssignment\": \"AGGREGATED\",\n        \"aggregateDuration\": 1,\n        \"aggregateResidualDuration\": 10,\n        \"notes\": \"{{updatedNotes}}\"\n    },\n    \"operations\": [\n        {\n            \"assetCode\": \"1711016432380\",\n            \"typeCode\": \"GEN-INT-HYDR-EPOM\",\n            \"defaultDuration\": 0,\n            \"executionOrder\": 0,\n            \"description\": \"descddd\",\n            \"currentDuration\": 0,\n            \"code\": \"1705044291857\",\n            \"startDate\": \"2024-04-08T13:48:37.527Z\",\n            \"endDate\": \"2024-04-08T13:48:37.527Z\",\n            \"note\": \"{{updatedNotes}}\"\n        }\n    ]\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/work-orders/r1/work-orders"
													},
													"response": []
												},
												{
													"name": "WorkOrder update by asset - update with operations creation",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	"",
																	"var nowDT = new Date(Date.now());",
																	"const updatedNotes = \"notes_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString()  + nowDT.getSeconds().toString() +  nowDT.getMilliseconds().toString();",
																	"pm.collectionVariables.set(\"updatedNotes\",updatedNotes);"
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"pm.test('Response status code is 204', function () {",
																	"    pm.expect(pm.response.code).to.equal(204);",
																	"})",
																	"",
																	"",
																	""
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "PATCH",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n    \"workOrder\": {\n        \"externalSystemCode\": \"SAP\",\n        \"code\": 170504429185700051,\n        \"typeCode\": \"1708510864133\",\n        \"customerCode\": \"test20240328_5\",\n        \"urgencyCode\": \"1704904707425\",\n        \"operationCenterCode\": \"1705044291857\",\n        \"workCenterCode\": \"string\",\n        \"aggregateCardinalityCode\": \"1\",\n        \"startDate\": \"2024-04-08T14:46:17.605Z\",\n        \"endDate\": \"2024-05-08T14:46:17.605Z\",\n        \"description\": \"string\",\n        \"operationsAssignment\": \"AGGREGATED\",\n        \"aggregateDuration\": 1,\n        \"aggregateResidualDuration\": 10,\n        \"notes\": \"{{updatedNotes}}\"\n    },\n    \"operations\": [\n        {\n            \"assetCode\": \"1711016432380\",\n            \"typeCode\": \"GEN-INT-HYDR-EPOM\",\n            \"defaultDuration\": 0,\n            \"executionOrder\": 0,\n            \"description\": \"descddd\",\n            \"currentDuration\": 0,\n            \"code\": \"1705044291857\",\n            \"startDate\": \"2024-04-08T13:48:37.527Z\",\n            \"endDate\": \"2024-04-08T13:48:37.527Z\",\n            \"note\": \"{{updatedNotes}}\"\n        },\n         {\n            \"assetCode\": \"1711016432380\",\n            \"typeCode\": \"GEN-INT-HYDR-EPOM\",\n            \"defaultDuration\": 0,\n            \"executionOrder\": 1,\n            \"description\": \"descddd\",\n            \"currentDuration\": 0,\n            \"code\": \"1705044291859\",\n            \"startDate\": \"2024-04-08T13:48:37.527Z\",\n            \"endDate\": \"2024-04-08T13:48:37.527Z\",\n            \"note\": \"{{updatedNotes}}\"\n        }\n    ]\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/work-orders/r1/work-orders"
													},
													"response": []
												}
											]
										},
										{
											"name": "By Account",
											"item": [
												{
													"name": "WorkOrder update by account - simple update",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	"",
																	"var nowDT = new Date(Date.now());",
																	"const updatedNotes = \"notes_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString()  + nowDT.getSeconds().toString() +  nowDT.getMilliseconds().toString();",
																	"pm.collectionVariables.set(\"updatedNotes\",updatedNotes);"
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"pm.test('Response status code is 204', function () {",
																	"    pm.expect(pm.response.code).to.equal(204);",
																	"})",
																	"",
																	"",
																	""
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "PATCH",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n    \"workOrder\": {\n        \"externalSystemCode\": \"SAP\",\n        \"code\": 170504429185700047,\n        \"typeCode\": \"1708510864133\",\n        \"customerCode\": \"test20240328_5\",\n        \"urgencyCode\": \"1704904707425\",\n        \"operationCenterCode\": \"1705044291857\",\n        \"workCenterCode\": \"string\",\n        \"aggregateCardinalityCode\": \"1\",\n        \"startDate\": \"2024-04-08T14:46:17.605Z\",\n        \"endDate\": \"2024-05-08T14:46:17.605Z\",\n        \"description\": \"string\",\n        \"operationsAssignment\": \"AGGREGATED\",\n        \"aggregateDuration\": 1,\n        \"aggregateResidualDuration\": 10,\n        \"notes\": \"{{updatedNotes}}\"\n    },\n    \"operations\": [\n        {\n            \"typeCode\": \"GEN-INT-HYDR-EPOM\",\n            \"defaultDuration\": 0,\n            \"executionOrder\": 0,\n            \"description\": \"descddd\",\n            \"currentDuration\": 0,\n            \"code\": \"1705044291857\",\n            \"startDate\": \"2024-04-08T13:48:37.527Z\",\n            \"endDate\": \"2024-04-08T13:48:37.527Z\",\n            \"note\": \"{{updatedNotes}}\"\n        }\n    ]\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/work-orders/r1/work-orders"
													},
													"response": []
												},
												{
													"name": "WorkOrder update by account - update with operations creation",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	"",
																	"var nowDT = new Date(Date.now());",
																	"const updatedNotes = \"notes_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString()  + nowDT.getSeconds().toString() +  nowDT.getMilliseconds().toString();",
																	"pm.collectionVariables.set(\"updatedNotes\",updatedNotes);"
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"pm.test('Response status code is 204', function () {",
																	"    pm.expect(pm.response.code).to.equal(204);",
																	"})",
																	"",
																	"",
																	""
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "PATCH",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n    \"workOrder\": {\n        \"externalSystemCode\": \"SAP\",\n        \"code\": 170504429185700048,\n        \"typeCode\": \"1708510864133\",\n        \"customerCode\": \"test20240328_5\",\n        \"urgencyCode\": \"1704904707425\",\n        \"operationCenterCode\": \"1705044291857\",\n        \"workCenterCode\": \"string\",\n        \"aggregateCardinalityCode\": \"1\",\n        \"startDate\": \"2024-04-08T14:46:17.605Z\",\n        \"endDate\": \"2024-05-08T14:46:17.605Z\",\n        \"description\": \"string\",\n        \"operationsAssignment\": \"AGGREGATED\",\n        \"aggregateDuration\": 1,\n        \"aggregateResidualDuration\": 10,\n        \"notes\": \"{{updatedNotes}}\"\n    },\n    \"operations\": [\n        {\n            \"typeCode\": \"GEN-INT-HYDR-EPOM\",\n            \"defaultDuration\": 0,\n            \"executionOrder\": 0,\n            \"description\": \"descddd\",\n            \"currentDuration\": 0,\n            \"code\": \"1705044291857\",\n            \"startDate\": \"2024-04-08T13:48:37.527Z\",\n            \"endDate\": \"2024-04-08T13:48:37.527Z\",\n            \"note\": \"{{updatedNotes}}\"\n        },\n         {\n            \"typeCode\": \"GEN-INT-HYDR-EPOM\",\n            \"defaultDuration\": 0,\n            \"executionOrder\": 1,\n            \"description\": \"descddd\",\n            \"currentDuration\": 0,\n            \"code\": \"1705044291859\",\n            \"startDate\": \"2024-04-08T13:48:37.527Z\",\n            \"endDate\": \"2024-04-08T13:48:37.527Z\",\n            \"note\": \"{{updatedNotes}}\"\n        }\n    ]\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/work-orders/r1/work-orders"
													},
													"response": []
												}
											]
										},
										{
											"name": "Error Case",
											"item": [
												{
													"name": "WorkOrder update - asset and account code present at same time",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	"",
																	"var nowDT = new Date(Date.now());",
																	"const updatedNotes = \"notes_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString()  + nowDT.getSeconds().toString() +  nowDT.getMilliseconds().toString();",
																	"pm.collectionVariables.set(\"updatedNotes\",updatedNotes);"
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"pm.test(\"Response status code is 400\", function () {",
																	"  pm.expect(pm.response.code).to.equal(400);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'detail'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('detail');",
																	"});",
																	"",
																	"",
																	"pm.test(\"detail as message: Unexpected presence of account.code and asset.code at the same time\", function () {",
																	"  const responseData = pm.response.json();",
																	"",
																	"  pm.expect(responseData).to.be.an('object');",
																	"  pm.expect(responseData.detail).to.be.equal('Unexpected presence of account.code and asset.code at the same time');",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "PATCH",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n    \"workOrder\": {\n        \"externalSystemCode\": \"SAP\",\n        \"code\": 170504429185700048,\n        \"typeCode\": \"1708510864133\",\n        \"customerCode\": \"test20240328_5\",\n        \"urgencyCode\": \"1704904707425\",\n        \"operationCenterCode\": \"1705044291857\",\n        \"workCenterCode\": \"string\",\n        \"aggregateCardinalityCode\": \"1\",\n        \"startDate\": \"2024-04-08T14:46:17.605Z\",\n        \"endDate\": \"2024-05-08T14:46:17.605Z\",\n        \"description\": \"string\",\n        \"operationsAssignment\": \"AGGREGATED\",\n        \"aggregateDuration\": 1,\n        \"aggregateResidualDuration\": 10,\n        \"notes\": \"{{updatedNotes}}\"\n    },\n    \"operations\": [\n        {\n            \"assetCode\": \"1711016432380\",\n            \"accountCode\": \"1711016432380\",\n            \"typeCode\": \"GEN-INT-HYDR-EPOM\",\n            \"defaultDuration\": 0,\n            \"executionOrder\": 0,\n            \"description\": \"descddd\",\n            \"currentDuration\": 0,\n            \"code\": \"1705044291857\",\n            \"startDate\": \"2024-04-08T13:48:37.527Z\",\n            \"endDate\": \"2024-04-08T13:48:37.527Z\",\n            \"note\": \"{{updatedNotes}}\"\n        },\n         {\n            \"assetCode\": \"1711016432380\",\n            \"typeCode\": \"GEN-INT-HYDR-EPOM\",\n            \"defaultDuration\": 0,\n            \"executionOrder\": 1,\n            \"description\": \"descddd\",\n            \"currentDuration\": 0,\n            \"code\": \"1705044291859\",\n            \"startDate\": \"2024-04-08T13:48:37.527Z\",\n            \"endDate\": \"2024-04-08T13:48:37.527Z\",\n            \"note\": \"{{updatedNotes}}\"\n        }\n    ]\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/work-orders/r1/work-orders"
													},
													"response": []
												}
											]
										}
									]
								},
								{
									"name": "cancellation",
									"item": [
										{
											"name": "cancel - ok",
											"item": [
												{
													"name": "Step 1 - WorkOrder creation by Work Cycle with asset",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	"",
																	"var nowDT = new Date(Date.now());",
																	"const externalCodeGenerator = \"TEST_WO_AC_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString()  + nowDT.getSeconds().toString() +  nowDT.getMilliseconds().toString();",
																	"pm.collectionVariables.set(\"externalCodeGenerator_cancelWO_ok\",externalCodeGenerator);",
																	"",
																	"const operationCodeGenerator = \"test_op_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString() + nowDT.getSeconds().toString() ;",
																	"pm.collectionVariables.set(\"operationCodeGenerator\",operationCodeGenerator);"
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"pm.test(\"Response status code is 201\", function () {",
																	"  pm.expect(pm.response.code).to.equal(201);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'id'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('id');",
																	"});",
																	"",
																	"",
																	"pm.test(\"Id is a non-zero integer\", function () {",
																	"  const responseData = pm.response.json();",
																	"",
																	"  pm.expect(responseData).to.be.an('object');",
																	"  pm.expect(responseData.id).to.exist.and.to.be.a('number');",
																	"  pm.expect(responseData.id).to.be.above(0);",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "POST",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n    \"workOrder\": {\n        \"externalSystemCode\": \"SAP\",\n        \"externalCode\": \"{{externalCodeGenerator_cancelWO_ok}}\",\n        \"typeCode\": \"ORD-INS-MPOR\",\n        \"urgencyCode\": \"1704904707425\",\n        \"operationCenterCode\": \"1705044291857\",\n        \"workCenterCode\": \"string\",\n        \"aggregateCardinalityCode\": \"1\",\n        \"startDate\": \"2024-04-08T14:46:17.605Z\",\n        \"endDate\": \"2024-05-08T14:46:17.605Z\",\n        \"description\": \"string\",\n        \"operationsAssignment\": \"AGGREGATED\",\n        \"aggregateDuration\": 1,\n        \"aggregateResidualDuration\": 10,\n        \"notes\": \"string\",\n        \"workCycleCode\": \"OM-I-ED\"\n    },\n    \"asset\": {\n        \"code\": \"1711016432380\"\n    }\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/work-orders/r1/work-orders"
													},
													"response": []
												},
												{
													"name": "Step 2 - WorkOrder cancellation - OK",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	""
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"pm.test(\"Response status code is 204\", function () {",
																	"  pm.expect(pm.response.code).to.equal(204);",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "POST",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n    \"externalSystemCode\": \"SAP\",\n    \"externalCode\": \"{{externalCodeGenerator_cancelWO_ok}}\"\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/work-orders/r1/work-orders/cancellation"
													},
													"response": []
												}
											]
										}
									]
								}
							]
						}
					]
				},
				{
					"name": "Configurations",
					"item": [
						{
							"name": "asset",
							"item": [
								{
									"name": "characteristics",
									"item": [
										{
											"name": "type",
											"item": [
												{
													"name": "upsert",
													"item": [
														{
															"name": "UpsertCharacteristicsType - Update",
															"event": [
																{
																	"listen": "prerequest",
																	"script": {
																		"exec": [
																			"var nowDT = new Date(Date.now());",
																			"const valueGenerator = \"TEST_WO_AC_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString()  + nowDT.getSeconds().toString() +  nowDT.getMilliseconds().toString();",
																			"pm.collectionVariables.set(\"valueGenerator\",valueGenerator);"
																		],
																		"type": "text/javascript",
																		"packages": {}
																	}
																},
																{
																	"listen": "test",
																	"script": {
																		"exec": [
																			"pm.test('Response status code is 204', function () {",
																			"    pm.expect(pm.response.code).to.equal(204);",
																			"})"
																		],
																		"type": "text/javascript",
																		"packages": {}
																	}
																}
															],
															"request": {
																"method": "POST",
																"header": [],
																"body": {
																	"mode": "raw",
																	"raw": "{\n  \"characteristics\": [\n    {\n      \"classCode\": \"GENE\",\n      \"code\": \"BRAND\",\n      \"value\": \"{{valueGenerator}}\",\n      \"mandatory\": false,\n      \"readOnly\": true,\n      \"order\": 0\n    }\n  ],\n  \"assetType\": {\n    \"externalSystemCode\": \"SAP\",\n    \"code\": \"1709199625981\"\n  }\n}",
																	"options": {
																		"raw": {
																			"language": "json"
																		}
																	}
																},
																"url": "{{integration-api-url}}/{{context-path}}/api/integration/configurations/r1/asset-type-characteristics"
															},
															"response": []
														},
														{
															"name": "UpsertCharacteristicsType - Create",
															"event": [
																{
																	"listen": "prerequest",
																	"script": {
																		"exec": [
																			"var nowDT = new Date(Date.now());",
																			"const valueGenerator = \"TEST_WO_AC_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString()  + nowDT.getSeconds().toString() +  nowDT.getMilliseconds().toString();",
																			"pm.collectionVariables.set(\"valueGenerator\",valueGenerator);"
																		],
																		"type": "text/javascript",
																		"packages": {}
																	}
																},
																{
																	"listen": "test",
																	"script": {
																		"exec": [
																			"pm.test('Response status code is 204', function () {",
																			"    pm.expect(pm.response.code).to.equal(204);",
																			"})"
																		],
																		"type": "text/javascript",
																		"packages": {}
																	}
																}
															],
															"request": {
																"method": "POST",
																"header": [],
																"body": {
																	"mode": "raw",
																	"raw": "{\n  \"characteristics\": [\n    {\n      \"classCode\": \"GENE\",\n      \"code\": \"BRAND\",\n      \"value\": \"{{valueGenerator}}\",\n      \"mandatory\": false,\n      \"readOnly\": true,\n      \"order\": 0\n    }\n  ],\n  \"assetType\": {\n    \"externalSystemCode\": \"SAP\",\n    \"code\": \"1705333586829\" // to manual edit\n  }\n}",
																	"options": {
																		"raw": {
																			"language": "json"
																		}
																	}
																},
																"url": "{{integration-api-url}}/{{context-path}}/api/integration/configurations/r1/asset-type-characteristics"
															},
															"response": []
														}
													]
												}
											]
										},
										{
											"name": "value",
											"item": [
												{
													"name": "upsert",
													"item": [
														{
															"name": "UpsertCharacteristicsValue - Update",
															"event": [
																{
																	"listen": "prerequest",
																	"script": {
																		"exec": [
																			"var nowDT = new Date(Date.now());",
																			"const valueGenerator = \"TEST_WO_AC_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString()  + nowDT.getSeconds().toString() +  nowDT.getMilliseconds().toString();",
																			"pm.collectionVariables.set(\"valueGenerator\",valueGenerator);"
																		],
																		"type": "text/javascript",
																		"packages": {}
																	}
																},
																{
																	"listen": "test",
																	"script": {
																		"exec": [
																			"pm.test('Response status code is 204', function () {",
																			"    pm.expect(pm.response.code).to.equal(204);",
																			"})"
																		],
																		"type": "text/javascript",
																		"packages": {}
																	}
																}
															],
															"request": {
																"method": "POST",
																"header": [],
																"body": {
																	"mode": "raw",
																	"raw": "{\n  \"characteristics\": [\n    {\n      \"classCode\": \"GENE\",\n      \"code\": \"BRAND\",\n      \"value\": \"{{valueGenerator}}\"\n    }\n  ],\n  \"asset\": {\n    \"externalSystemCode\": \"SAP\",\n    \"code\": \"1711016432380\"\n  }\n}",
																	"options": {
																		"raw": {
																			"language": "json"
																		}
																	}
																},
																"url": "{{integration-api-url}}/{{context-path}}/api/integration/configurations/r1/asset-characteristics-value"
															},
															"response": []
														},
														{
															"name": "UpsertCharacteristicsValue - Create",
															"event": [
																{
																	"listen": "prerequest",
																	"script": {
																		"exec": [
																			"var nowDT = new Date(Date.now());",
																			"const valueGenerator = \"TEST_WO_AC_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString()  + nowDT.getSeconds().toString() +  nowDT.getMilliseconds().toString();",
																			"pm.collectionVariables.set(\"valueGenerator\",valueGenerator);"
																		],
																		"type": "text/javascript",
																		"packages": {}
																	}
																},
																{
																	"listen": "test",
																	"script": {
																		"exec": [
																			"pm.test('Response status code is 204', function () {",
																			"    pm.expect(pm.response.code).to.equal(204);",
																			"})"
																		],
																		"type": "text/javascript",
																		"packages": {}
																	}
																}
															],
															"request": {
																"method": "POST",
																"header": [],
																"body": {
																	"mode": "raw",
																	"raw": "{\n  \"characteristics\": [\n    {\n      \"classCode\": \"GENE\",\n      \"code\": \"BRAND\",\n      \"value\": \"{{valueGenerator}}\"\n    }\n  ],\n  \"asset\": {\n    \"externalSystemCode\": \"SAP\",\n    \"code\": \"1709894686923\" // to manual edit\n  }\n}",
																	"options": {
																		"raw": {
																			"language": "json"
																		}
																	}
																},
																"url": "{{integration-api-url}}/{{context-path}}/api/integration/configurations/r1/asset-characteristics-value"
															},
															"response": []
														}
													]
												}
											]
										}
									]
								}
							]
						},
						{
							"name": "characteristics",
							"item": [
								{
									"name": "upsert",
									"item": [
										{
											"name": "UpsertCharacteristics - Create class and characteristics",
											"event": [
												{
													"listen": "prerequest",
													"script": {
														"exec": [
															"var nowDT = new Date(Date.now());",
															"const characteristicCodeGenerator = \"TEST_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString()  + nowDT.getSeconds().toString() +  nowDT.getMilliseconds().toString();",
															"pm.collectionVariables.set(\"characteristicCodeGenerator\",characteristicCodeGenerator);"
														],
														"type": "text/javascript",
														"packages": {}
													}
												},
												{
													"listen": "test",
													"script": {
														"exec": [
															"pm.test('Response status code is 201', function () {",
															"    pm.expect(pm.response.code).to.equal(201);",
															"})",
															"",
															"",
															"pm.test(\"Response has the required field 'id'\", function () {",
															"    const responseData = pm.response.json();",
															"    ",
															"    pm.expect(responseData).to.have.property('id');",
															"});",
															"",
															"",
															"pm.test(\"Id is a non-zero integer\", function () {",
															"  const responseData = pm.response.json();",
															"",
															"  pm.expect(responseData).to.be.an('object');",
															"  pm.expect(responseData.id).to.exist.and.to.be.a('number');",
															"  pm.expect(responseData.id).to.be.above(0);",
															"});"
														],
														"type": "text/javascript",
														"packages": {}
													}
												}
											],
											"request": {
												"method": "POST",
												"header": [],
												"body": {
													"mode": "raw",
													"raw": "{\n  \"characteristic\": {\n    \"externalSystemCode\": \"SAP\",\n    \"code\": \"{{characteristicCodeGenerator}}\",\n    \"description\": [\n      {\n        \"lang\": \"en\",\n        \"value\": \"testttt\"\n      }\n    ],\n    \"format\": null,\n    \"size\": 10,\n    \"maxLength\": 50,\n    \"notNull\": true,\n    \"active\": true,\n    \"precision\": null,\n    \"order\": 0,\n    \"meter\": false,\n    \"negativeValues\": false,\n    \"dataTypeDescription\": \"Varchar\",\n    \"valueDomainCode\": \"PostmanTest\",\n    \"measurementUnitCode\": null,\n    \"usageDescription\": \"OBJECT ATTRIBUTES\"\n  },\n  \"characteristicClassType\": {\n    \"code\": \"IMPIANTI\"\n  },\n  \"characteristicClass\": {\n    \"code\": \"{{characteristicCodeGenerator}}\",\n    \"description\": [\n      {\n        \"lang\": \"en\",\n        \"value\": \"testttt\"\n      }\n    ],\n    \"active\": true\n  }\n}",
													"options": {
														"raw": {
															"language": "json"
														}
													}
												},
												"url": "{{integration-api-url}}/{{context-path}}/api/integration/configurations/r1/characteristics"
											},
											"response": []
										},
										{
											"name": "UpsertCharacteristics - Create only characteristic",
											"event": [
												{
													"listen": "prerequest",
													"script": {
														"exec": [
															"var nowDT = new Date(Date.now());",
															"const characteristicCodeGenerator = \"TEST_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString()  + nowDT.getSeconds().toString() +  nowDT.getMilliseconds().toString();",
															"pm.collectionVariables.set(\"characteristicCodeGenerator\",characteristicCodeGenerator);"
														],
														"type": "text/javascript",
														"packages": {}
													}
												},
												{
													"listen": "test",
													"script": {
														"exec": [
															"pm.test('Response status code is 201', function () {",
															"    pm.expect(pm.response.code).to.equal(201);",
															"})",
															"",
															"",
															"pm.test(\"Response has the required field 'id'\", function () {",
															"    const responseData = pm.response.json();",
															"    ",
															"    pm.expect(responseData).to.have.property('id');",
															"});",
															"",
															"",
															"pm.test(\"Id is a non-zero integer\", function () {",
															"  const responseData = pm.response.json();",
															"",
															"  pm.expect(responseData).to.be.an('object');",
															"  pm.expect(responseData.id).to.exist.and.to.be.a('number');",
															"  pm.expect(responseData.id).to.be.above(0);",
															"});"
														],
														"type": "text/javascript",
														"packages": {}
													}
												}
											],
											"request": {
												"method": "POST",
												"header": [],
												"body": {
													"mode": "raw",
													"raw": "{\n  \"characteristic\": {\n    \"externalSystemCode\": \"SAP\",\n    \"code\": \"{{characteristicCodeGenerator}}\",\n    \"description\": [\n      {\n        \"lang\": \"en\",\n        \"value\": \"testttt\"\n      }\n    ],\n    \"format\": null,\n    \"size\": 10,\n    \"maxLength\": 50,\n    \"notNull\": true,\n    \"active\": true,\n    \"precision\": null,\n    \"order\": 0,\n    \"meter\": false,\n    \"negativeValues\": false,\n    \"dataTypeDescription\": \"Varchar\",\n    \"valueDomainCode\": \"PostmanTest\",\n    \"measurementUnitCode\": null,\n    \"usageDescription\": \"OBJECT ATTRIBUTES\"\n  },\n  \"characteristicClassType\": {\n    \"code\": \"IMPIANTI\"\n  },\n  \"characteristicClass\": {\n    \"code\": \"TEST_202434104242383\",\n    \"description\": [\n      {\n        \"lang\": \"en\",\n        \"value\": \"testttt\"\n      }\n    ],\n    \"active\": true\n  }\n}",
													"options": {
														"raw": {
															"language": "json"
														}
													}
												},
												"url": "{{integration-api-url}}/{{context-path}}/api/integration/configurations/r1/characteristics"
											},
											"response": []
										},
										{
											"name": "UpsertCharacteristics - Update all",
											"event": [
												{
													"listen": "prerequest",
													"script": {
														"exec": [
															"var nowDT = new Date(Date.now());",
															"const characteristicCodeGenerator = \"TEST_\" + nowDT.getFullYear().toString() + nowDT.getMonth().toString() + nowDT.getDay().toString() + nowDT.getHours().toString() + nowDT.getMinutes().toString()  + nowDT.getSeconds().toString() +  nowDT.getMilliseconds().toString();",
															"pm.collectionVariables.set(\"characteristicCodeGenerator\",characteristicCodeGenerator);"
														],
														"type": "text/javascript",
														"packages": {}
													}
												},
												{
													"listen": "test",
													"script": {
														"exec": [
															"pm.test('Response status code is 204', function () {",
															"    pm.expect(pm.response.code).to.equal(204);",
															"})"
														],
														"type": "text/javascript",
														"packages": {}
													}
												}
											],
											"request": {
												"method": "POST",
												"header": [],
												"body": {
													"mode": "raw",
													"raw": "{\n  \"characteristic\": {\n    \"externalSystemCode\": \"SAP\",\n    \"code\": \"TEST_20243410448646\",\n    \"description\": [\n      {\n        \"lang\": \"en\",\n        \"value\": \"testttt\"\n      }\n    ],\n    \"format\": null,\n    \"size\": 10,\n    \"maxLength\": 50,\n    \"notNull\": true,\n    \"active\": true,\n    \"precision\": null,\n    \"order\": 0,\n    \"meter\": false,\n    \"negativeValues\": false,\n    \"dataTypeDescription\": \"Varchar\",\n    \"valueDomainCode\": \"PostmanTest\",\n    \"measurementUnitCode\": null,\n    \"usageDescription\": \"OBJECT ATTRIBUTES\"\n  },\n  \"characteristicClassType\": {\n    \"code\": \"IMPIANTI\"\n  },\n  \"characteristicClass\": {\n    \"code\": \"TEST_202434104242383\",\n    \"description\": [\n      {\n        \"lang\": \"en\",\n        \"value\": \"testttt\"\n      }\n    ],\n    \"active\": true\n  }\n}",
													"options": {
														"raw": {
															"language": "json"
														}
													}
												},
												"url": "{{integration-api-url}}/{{context-path}}/api/integration/configurations/r1/characteristics"
											},
											"response": []
										}
									]
								}
							]
						}
					]
				},
				{
					"name": "Assets",
					"item": [
						{
							"name": "account",
							"item": [
								{
									"name": "get",
									"item": [
										{
											"name": "error",
											"item": [
												{
													"name": "Accounts get - Wrong External System",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	""
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"",
																	"pm.test(\"Response status code is 404\", function () {",
																	"    pm.expect(pm.response.code).to.equal(404);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Content-Type header is application/problem+json\", function () {",
																	"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Type is a non-empty string\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.be.an('object');",
																	"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'detail'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('detail');",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "GET",
														"header": [],
														"url": {
															"raw": "{{integration-api-url}}/{{context-path}}/api/integration/assets/r1/accounts?code=test_account_20243516243&externalSystemCode=NOSAP_EXTERNAL",
															"host": [
																"{{integration-api-url}}"
															],
															"path": [
																"{{context-path}}",
																"api",
																"integration",
																"assets",
																"r1",
																"accounts"
															],
															"query": [
																{
																	"key": "code",
																	"value": "test_account_20243516243"
																},
																{
																	"key": "externalSystemCode",
																	"value": "NOSAP_EXTERNAL"
																}
															]
														}
													},
													"response": []
												},
												{
													"name": "Accounts get - Wrong Account Code",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	""
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"",
																	"pm.test(\"Response status code is 404\", function () {",
																	"    pm.expect(pm.response.code).to.equal(404);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Content-Type header is application/problem+json\", function () {",
																	"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Type is a non-empty string\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.be.an('object');",
																	"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'detail'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('detail');",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "GET",
														"header": [],
														"url": {
															"raw": "{{integration-api-url}}/{{context-path}}/api/integration/assets/r1/accounts?code=UNKNOWN_ACCOUNT_CODE_PROVIDED&externalSystemCode=SAP",
															"host": [
																"{{integration-api-url}}"
															],
															"path": [
																"{{context-path}}",
																"api",
																"integration",
																"assets",
																"r1",
																"accounts"
															],
															"query": [
																{
																	"key": "code",
																	"value": "UNKNOWN_ACCOUNT_CODE_PROVIDED"
																},
																{
																	"key": "externalSystemCode",
																	"value": "SAP"
																}
															]
														}
													},
													"response": []
												}
											]
										},
										{
											"name": "Accounts get - simple with code",
											"event": [
												{
													"listen": "prerequest",
													"script": {
														"exec": [
															""
														],
														"type": "text/javascript",
														"packages": {}
													}
												},
												{
													"listen": "test",
													"script": {
														"exec": [
															"pm.test(\"Response status code is 200\", function () {",
															"  pm.expect(pm.response.code).to.equal(200);",
															"});",
															"",
															"",
															"pm.test(\"Response has the required field 'id'\", function () {",
															"    const responseData = pm.response.json();",
															"    ",
															"    pm.expect(responseData).to.have.property('id');",
															"});",
															"",
															"",
															"pm.test(\"Id is a non-zero integer\", function () {",
															"  const responseData = pm.response.json();",
															"",
															"  pm.expect(responseData).to.be.an('object');",
															"  pm.expect(responseData.id).to.exist.and.to.be.a('number');",
															"  pm.expect(responseData.id).to.be.above(0);",
															"});"
														],
														"type": "text/javascript",
														"packages": {}
													}
												}
											],
											"request": {
												"method": "GET",
												"header": [],
												"url": {
													"raw": "{{integration-api-url}}/{{context-path}}/api/integration/assets/r1/accounts?code=test_account_20243516243&externalSystemCode=SAP",
													"host": [
														"{{integration-api-url}}"
													],
													"path": [
														"{{context-path}}",
														"api",
														"integration",
														"assets",
														"r1",
														"accounts"
													],
													"query": [
														{
															"key": "code",
															"value": "test_account_20243516243"
														},
														{
															"key": "externalSystemCode",
															"value": "SAP"
														}
													]
												}
											},
											"response": []
										},
										{
											"name": "Accounts get - simple with fields filter",
											"event": [
												{
													"listen": "prerequest",
													"script": {
														"exec": [
															""
														],
														"type": "text/javascript",
														"packages": {}
													}
												},
												{
													"listen": "test",
													"script": {
														"exec": [
															"pm.test(\"Response status code is 200\", function () {",
															"  pm.expect(pm.response.code).to.equal(200);",
															"});",
															"",
															"",
															"pm.test(\"Response has the required field 'fiscalCode'\", function () {",
															"    const responseData = pm.response.json();",
															"    ",
															"    pm.expect(responseData).to.have.property('fiscalCode');",
															"});",
															"",
															""
														],
														"type": "text/javascript",
														"packages": {}
													}
												}
											],
											"request": {
												"method": "GET",
												"header": [],
												"url": {
													"raw": "{{integration-api-url}}/{{context-path}}/api/integration/assets/r1/accounts?code=test_account_20243516243&externalSystemCode=SAP&_fields=fiscalCode",
													"host": [
														"{{integration-api-url}}"
													],
													"path": [
														"{{context-path}}",
														"api",
														"integration",
														"assets",
														"r1",
														"accounts"
													],
													"query": [
														{
															"key": "code",
															"value": "test_account_20243516243"
														},
														{
															"key": "externalSystemCode",
															"value": "SAP"
														},
														{
															"key": "_fields",
															"value": "fiscalCode"
														}
													]
												}
											},
											"response": []
										},
										{
											"name": "Accounts get - simple with fields filter nested",
											"event": [
												{
													"listen": "prerequest",
													"script": {
														"exec": [
															""
														],
														"type": "text/javascript",
														"packages": {}
													}
												},
												{
													"listen": "test",
													"script": {
														"exec": [
															"pm.test(\"Response status code is 200\", function () {",
															"  pm.expect(pm.response.code).to.equal(200);",
															"});",
															"",
															"",
															"pm.test(\"Response has the required field 'fiscalCode'\", function () {",
															"    const responseData = pm.response.json();",
															"    ",
															"    pm.expect(responseData).to.have.property('fiscalCode');",
															"});",
															"",
															"pm.test(\"Response has the required field 'type'\", function () {",
															"    const responseData = pm.response.json();",
															"    ",
															"    pm.expect(responseData).to.have.property('type');",
															"});",
															""
														],
														"type": "text/javascript",
														"packages": {}
													}
												}
											],
											"request": {
												"method": "GET",
												"header": [],
												"url": {
													"raw": "{{integration-api-url}}/{{context-path}}/api/integration/assets/r1/accounts?code=test_account_20243516243&externalSystemCode=SAP&_fields=fiscalCode,type.code",
													"host": [
														"{{integration-api-url}}"
													],
													"path": [
														"{{context-path}}",
														"api",
														"integration",
														"assets",
														"r1",
														"accounts"
													],
													"query": [
														{
															"key": "code",
															"value": "test_account_20243516243"
														},
														{
															"key": "externalSystemCode",
															"value": "SAP"
														},
														{
															"key": "_fields",
															"value": "fiscalCode,type.code"
														}
													]
												}
											},
											"response": []
										}
									]
								},
								{
									"name": "upsert",
									"item": [
										{
											"name": "error",
											"item": [
												{
													"name": "Account upsert - Multiple Meters with same SerialNumber Error",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	"",
																	"var nowDT = new Date(Date.now());",
																	"const accountIdentifier = \"TEST_ACCOUNT_\" + nowDT.getFullYear() + \"_\" + (nowDT.getMonth()+1) + \"_\"+ nowDT.getDay().toString() + \"_\" + nowDT.getHours() + \"_\" + + nowDT.getMinutes() + \"_\" + nowDT.getSeconds() + \"_\" + nowDT.getMilliseconds();",
																	"pm.collectionVariables.set(\"accountIdentifier\",accountIdentifier);"
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"",
																	"pm.test(\"Response status code is 400\", function () {",
																	"    pm.expect(pm.response.code).to.equal(400);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Content-Type header is application/problem+json\", function () {",
																	"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Type is a non-empty string\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.be.an('object');",
																	"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'detail'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('detail');",
																	"});",
																	"",
																	"",
																	"pm.test(\"detail message value\", function () {",
																	"  const responseData = pm.response.json();",
																	"",
																	"  pm.expect(responseData).to.be.an('object');",
																	"  pm.expect(responseData.detail).to.be.equal('Serial number sameSerialNumber repeated in more than one meter');",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "POST",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n  \"account\": {\n    \"externalSystemCode\": \"SAP\",\n    \"code\": \"{{accountIdentifier}}\",\n    \"typeCode\": \"1711382128688\",\n    \"operationCenterCode\": \"1705044291857\",\n    \"description\": \"asdfasdf\",\n    \"fiscalCode\": \"23423fg\",\n    \"note\": \"asdffdsfdssa\",\n    \"birthDate\": \"2024-03-28T15:01:22.494Z\",\n    \"phoneNumberCode\": \"333556676\",\n    \"phoneNumberContact\": \"gigi\"\n  },\n  \"address\": {\n    \"countryIsoAlphaCode\": \"IT\",\n    \"districtAcronym\": \"UD\",\n    \"municipality\": \"UDINE\",\n    \"municipalityCode\": \"UD\",\n    \"locality\": \"UDINE\",\n    \"postalCode\": \"33100\",\n    \"toponym\": \"string\",\n    \"street\": \"VIA PUINTAT\",\n    \"streetNumber\": 2,\n    \"streetNumberExtension\": \"A\",\n    \"floor\": \"1\",\n    \"lot\": \"2\",\n    \"staircase\": \"string\",\n    \"apartment\": \"string\",\n    \"directions\": \"string\",\n    \"description\": \"desccc\",\n    \"yCoordinate\": 46.0948035,\n    \"xCoordinate\": 13.2298188\n  },\n  \"contacts\": [{\n      \"typeCode\": \"EMAIL\",\n      \"code\": \"aaa@test.it\",\n      \"contact\": \"aaa\"\n    }\n  ],\n  \"meters\": [\n    {\n      \"typeCode\": \"T1\",\n      \"brandCode\": \"WB\",\n      \"locationCode\": \"1705048811158\",\n      \"classCode\": \"1705252270484\",\n      \"productionYear\": \"2023\",\n      \"serialNumber\": \"sameSerialNumber\",\n      \"digitNumber\": 0,\n      \"acronym\": \"string\",\n      \"note\": \"string\",\n      \"minReading\": 0,\n      \"maxReading\": 0,\n      \"lastReadingDate\": \"2024-03-28T15:01:22.495Z\",\n      \"lastReading\": 0,\n      \"active\": true\n    },\n    {\n      \"typeCode\": \"2\",\n      \"brandCode\": \"WB\",\n      \"locationCode\": \"1705048811158\",\n      \"classCode\": \"1705252270484\",\n      \"productionYear\": \"2023\",\n      \"serialNumber\": \"sameSerialNumber\",\n      \"digitNumber\": 0,\n      \"acronym\": \"string\",\n      \"note\": \"string\",\n      \"minReading\": 0,\n      \"maxReading\": 0,\n      \"lastReadingDate\": \"2024-03-28T15:01:22.495Z\",\n      \"lastReading\": 0,\n      \"active\": true\n    }\n  ]\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/assets/r1/accounts"
													},
													"response": []
												},
												{
													"name": "Account upsert - Multiple Contacts with same TypeCode",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	"",
																	"var nowDT = new Date(Date.now());",
																	"const accountIdentifier = \"TEST_ACCOUNT_\" + nowDT.getFullYear() + \"_\" + (nowDT.getMonth()+1) + \"_\"+ nowDT.getDay().toString() + \"_\" + nowDT.getHours() + \"_\" + + nowDT.getMinutes() + \"_\" + nowDT.getSeconds() + \"_\" + nowDT.getMilliseconds();",
																	"pm.collectionVariables.set(\"accountIdentifier\",accountIdentifier);"
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"",
																	"pm.test(\"Response status code is 400\", function () {",
																	"    pm.expect(pm.response.code).to.equal(400);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Content-Type header is application/problem+json\", function () {",
																	"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Type is a non-empty string\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.be.an('object');",
																	"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'detail'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('detail');",
																	"});",
																	"",
																	"",
																	"pm.test(\"detail message value\", function () {",
																	"  const responseData = pm.response.json();",
																	"",
																	"  pm.expect(responseData).to.be.an('object');",
																	"  pm.expect(responseData.detail).to.be.equal('Contact type EMAIL repeated in more than one contact');",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "POST",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n    \"account\": {\n        \"externalSystemCode\": \"SAP\",\n        \"code\": \"{{accountIdentifier}}\",\n        \"typeCode\": \"1711382128688\",\n        \"operationCenterCode\": \"1705044291857\",\n        \"description\": \"asdfasdf\",\n        \"fiscalCode\": \"23423fg\",\n        \"note\": \"asdffdsfdssa\",\n        \"birthDate\": \"2024-03-28T15:01:22.494Z\",\n        \"phoneNumberCode\": \"333556676\",\n        \"phoneNumberContact\": \"gigi\"\n    },\n    \"address\": {\n        \"countryIsoAlphaCode\": \"IT\",\n        \"districtAcronym\": \"UD\",\n        \"municipality\": \"UDINE\",\n        \"municipalityCode\": \"UD\",\n        \"locality\": \"UDINE\",\n        \"postalCode\": \"33100\",\n        \"toponym\": \"string\",\n        \"street\": \"VIA PUINTAT\",\n        \"streetNumber\": 2,\n        \"streetNumberExtension\": \"A\",\n        \"floor\": \"1\",\n        \"lot\": \"2\",\n        \"staircase\": \"string\",\n        \"apartment\": \"string\",\n        \"directions\": \"string\",\n        \"description\": \"desccc\",\n        \"yCoordinate\": 46.0948035,\n        \"xCoordinate\": 13.2298188\n    },\n    \"contacts\": [\n        {\n            \"typeCode\": \"EMAIL\",\n            \"code\": \"aaa@test.it\",\n            \"contact\": \"aaa\"\n        },\n        {\n            \"typeCode\": \"EMAIL\",\n            \"code\": \"aaa@test.it\",\n            \"contact\": \"aaa\"\n        }\n    ],\n    \"meters\": [\n        {\n            \"typeCode\": \"T1\",\n            \"brandCode\": \"WB\",\n            \"locationCode\": \"1705048811158\",\n            \"classCode\": \"1705252270484\",\n            \"productionYear\": \"2023\",\n            \"serialNumber\": \"s1\",\n            \"digitNumber\": 0,\n            \"acronym\": \"string\",\n            \"note\": \"string\",\n            \"minReading\": 0,\n            \"maxReading\": 0,\n            \"lastReadingDate\": \"2024-03-28T15:01:22.495Z\",\n            \"lastReading\": 0,\n            \"active\": true\n        },\n        {\n            \"typeCode\": \"2\",\n            \"brandCode\": \"WB\",\n            \"locationCode\": \"1705048811158\",\n            \"classCode\": \"1705252270484\",\n            \"productionYear\": \"2023\",\n            \"serialNumber\": \"s2\",\n            \"digitNumber\": 0,\n            \"acronym\": \"string\",\n            \"note\": \"string\",\n            \"minReading\": 0,\n            \"maxReading\": 0,\n            \"lastReadingDate\": \"2024-03-28T15:01:22.495Z\",\n            \"lastReading\": 0,\n            \"active\": true\n        }\n    ]\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/assets/r1/accounts"
													},
													"response": []
												},
												{
													"name": "Account upsert - SerialNumber Already used",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	"",
																	"var nowDT = new Date(Date.now());",
																	"const accountIdentifier = \"TEST_ACCOUNT_\" + nowDT.getFullYear() + \"_\" + (nowDT.getMonth()+1) + \"_\"+ nowDT.getDay().toString() + \"_\" + nowDT.getHours() + \"_\" + + nowDT.getMinutes() + \"_\" + nowDT.getSeconds() + \"_\" + nowDT.getMilliseconds();",
																	"pm.collectionVariables.set(\"accountIdentifier\",accountIdentifier);"
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"",
																	"pm.test(\"Response status code is 400\", function () {",
																	"    pm.expect(pm.response.code).to.equal(400);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Content-Type header is application/problem+json\", function () {",
																	"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Type is a non-empty string\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.be.an('object');",
																	"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'detail'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('detail');",
																	"});",
																	"",
																	"",
																	"pm.test(\"detail message value\", function () {",
																	"  const responseData = pm.response.json();",
																	"",
																	"  pm.expect(responseData).to.be.an('object');",
																	"  pm.expect(responseData.detail).to.be.equal('Meter creation denied because meter sn1_20243516243 has already been used');",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "POST",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n  \"account\": {\n    \"externalSystemCode\": \"SAP\",\n    \"code\": \"{{accountIdentifier}}\",\n    \"typeCode\": \"1711382128688\",\n    \"operationCenterCode\": \"1705044291857\",\n    \"description\": \"asdfasdf\",\n    \"fiscalCode\": \"23423fg\",\n    \"note\": \"asdffdsfdssa\",\n    \"birthDate\": \"2024-03-28T15:01:22.494Z\",\n    \"phoneNumberCode\": \"333556676\",\n    \"phoneNumberContact\": \"gigi\"\n  },\n  \"address\": {\n    \"countryIsoAlphaCode\": \"IT\",\n    \"districtAcronym\": \"UD\",\n    \"municipality\": \"UDINE\",\n    \"municipalityCode\": \"UD\",\n    \"locality\": \"UDINE\",\n    \"postalCode\": \"33100\",\n    \"toponym\": \"string\",\n    \"street\": \"VIA PUINTAT\",\n    \"streetNumber\": 2,\n    \"streetNumberExtension\": \"A\",\n    \"floor\": \"1\",\n    \"lot\": \"2\",\n    \"staircase\": \"string\",\n    \"apartment\": \"string\",\n    \"directions\": \"string\",\n    \"description\": \"desccc\",\n    \"yCoordinate\": 46.0948035,\n    \"xCoordinate\": 13.2298188\n  },\n  \"contacts\": [{\n      \"typeCode\": \"EMAIL\",\n      \"code\": \"aaa@test.it\",\n      \"contact\": \"aaa\"\n    }\n  ],\n  \"meters\": [\n    {\n      \"typeCode\": \"T1\",\n      \"brandCode\": \"WB\",\n      \"locationCode\": \"1705048811158\",\n      \"classCode\": \"1705252270484\",\n      \"productionYear\": \"2023\",\n      \"serialNumber\": \"sn1_20243516243\",\n      \"digitNumber\": 0,\n      \"acronym\": \"string\",\n      \"note\": \"string\",\n      \"minReading\": 0,\n      \"maxReading\": 0,\n      \"lastReadingDate\": \"2024-03-28T15:01:22.495Z\",\n      \"lastReading\": 0,\n      \"active\": true\n    }\n  ]\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/assets/r1/accounts"
													},
													"response": []
												}
											]
										},
										{
											"name": "Account upsert - Simple working scenario - CREATION",
											"event": [
												{
													"listen": "prerequest",
													"script": {
														"exec": [
															"",
															"var nowDT = new Date(Date.now());",
															"const accountIdentifier = \"TEST_ACCOUNT_\" + nowDT.getFullYear() + \"_\" + (nowDT.getMonth()+1) + \"_\"+ nowDT.getDay().toString() + \"_\" + nowDT.getHours() + \"_\" + + nowDT.getMinutes() + \"_\" + nowDT.getSeconds() + \"_\" + nowDT.getMilliseconds();",
															"pm.collectionVariables.set(\"accountIdentifier\",accountIdentifier);",
															"",
															"const serialNumberIdentifier = \"SN\" + nowDT.getFullYear() + (nowDT.getMonth()+1) + nowDT.getDay().toString() + nowDT.getHours() + nowDT.getMinutes() + nowDT.getSeconds() + nowDT.getMilliseconds();",
															"",
															"pm.collectionVariables.set(\"serialNumberIdentifier\",serialNumberIdentifier);"
														],
														"type": "text/javascript",
														"packages": {}
													}
												},
												{
													"listen": "test",
													"script": {
														"exec": [
															"pm.test(\"Response status code is 201\", function () {",
															"  pm.expect(pm.response.code).to.equal(201);",
															"});",
															"",
															"",
															"pm.test(\"Response has the required field 'id'\", function () {",
															"    const responseData = pm.response.json();",
															"    ",
															"    pm.expect(responseData).to.have.property('id');",
															"});",
															"",
															"",
															"pm.test(\"Id is a non-zero integer\", function () {",
															"  const responseData = pm.response.json();",
															"",
															"  pm.expect(responseData).to.be.an('object');",
															"  pm.expect(responseData.id).to.exist.and.to.be.a('number');",
															"  pm.expect(responseData.id).to.be.above(0);",
															"});"
														],
														"type": "text/javascript",
														"packages": {}
													}
												}
											],
											"request": {
												"method": "POST",
												"header": [],
												"body": {
													"mode": "raw",
													"raw": "{\n    \"account\": {\n        \"externalSystemCode\": \"SAP\",\n        \"code\": \"{{accountIdentifier}}\",\n        \"typeCode\": \"1711382128688\",\n        \"operationCenterCode\": \"1705044291857\",\n        \"description\": \"DESCRIZIONE-{{accountIdentifier}}\",\n        \"fiscalCode\": \"23423fg\",\n        \"note\": \"NOTE-{{accountIdentifier}}\",\n        \"birthDate\": \"2024-03-28T15:01:22.494Z\",\n        \"phoneNumberCode\": \"333556676\",\n        \"phoneNumberContact\": \"gigi\"\n    },\n    \"address\": {\n        \"countryIsoAlphaCode\": \"IT\",\n        \"districtAcronym\": \"UD\",\n        \"municipality\": \"UDINE\",\n        \"municipalityCode\": \"UD\",\n        \"locality\": \"UDINE\",\n        \"postalCode\": \"33100\",\n        \"toponym\": \"string\",\n        \"street\": \"VIA PUINTAT\",\n        \"streetNumber\": 2,\n        \"streetNumberExtension\": \"A\",\n        \"floor\": \"1\",\n        \"lot\": \"2\",\n        \"staircase\": \"string\",\n        \"apartment\": \"string\",\n        \"directions\": \"string\",\n        \"description\": \"desccc\",\n        \"yCoordinate\": 46.0948035,\n        \"xCoordinate\": 13.2298188\n    },\n    \"contacts\": [\n        {\n            \"typeCode\": \"EMAIL\",\n            \"code\": \"aaa@test.it\",\n            \"contact\": \"aaa\"\n        }\n    ],\n    \"meters\": [\n        {\n            \"typeCode\": \"T1\",\n            \"brandCode\": \"WB\",\n            \"locationCode\": \"1705048811158\",\n            \"classCode\": \"1705252270484\",\n            \"productionYear\": \"2023\",\n            \"serialNumber\": \"{{serialNumberIdentifier}}\",\n            \"digitNumber\": 0,\n            \"acronym\": \"string\",\n            \"note\": \"string\",\n            \"minReading\": 0,\n            \"maxReading\": 0,\n            \"lastReadingDate\": \"2024-03-28T15:01:22.495Z\",\n            \"lastReading\": 0,\n            \"active\": true,\n            \"model\": \"MODEL\",\n            \"capacity\": 0,\n            \"converter\": {\n                \"serialNumber\": \"{{serialNumberIdentifier}}\",\n                \"lastReading\": 0,\n                \"minReading\": 0,\n                \"maxReading\": 0,\n                \"digitNumber\": 0,\n                \"confirmDigitNumber\": 0,\n                \"typeCode\": \"1704378233675\"\n            }\n        }\n    ]\n}",
													"options": {
														"raw": {
															"language": "json"
														}
													}
												},
												"url": "{{integration-api-url}}/{{context-path}}/api/integration/assets/r1/accounts"
											},
											"response": []
										},
										{
											"name": "Account upsert - Simple working scenario - UPDATE",
											"event": [
												{
													"listen": "prerequest",
													"script": {
														"exec": [
															"",
															"var nowDT = new Date(Date.now());",
															"const accountIdentifier = \"TEST_ACCOUNT_\" + nowDT.getFullYear() + \"_\" + (nowDT.getMonth()+1) + \"_\"+ nowDT.getDay().toString() + \"_\" + nowDT.getHours() + \"_\" + + nowDT.getMinutes() + \"_\" + nowDT.getSeconds() + \"_\" + nowDT.getMilliseconds();",
															"pm.collectionVariables.set(\"accountIdentifier\",accountIdentifier);"
														],
														"type": "text/javascript",
														"packages": {}
													}
												},
												{
													"listen": "test",
													"script": {
														"exec": [
															"pm.test(\"Response status code is No Content\", function () {",
															"  pm.expect(pm.response.code).to.equal(204);",
															"});"
														],
														"type": "text/javascript",
														"packages": {}
													}
												}
											],
											"request": {
												"method": "POST",
												"header": [],
												"body": {
													"mode": "raw",
													"raw": "{\n  \"account\": {\n    \"externalSystemCode\": \"SAP\",\n    \"code\": \"test_account_20243516243\",\n    \"typeCode\": \"1711382128688\",\n    \"operationCenterCode\": \"1705044291857\",\n    \"description\": \"DESCRIZIONE-{{accountIdentifier}}\",\n    \"fiscalCode\": \"23423fg\",\n    \"note\": \"NOTE-{{accountIdentifier}}\",\n    \"birthDate\": \"2024-03-28T15:01:22.494Z\"\n  },\n  \"address\": {\n    \"countryIsoAlphaCode\": \"IT\",\n    \"districtAcronym\": \"UD\",\n    \"municipality\": \"UDINE\",\n    \"municipalityCode\": \"UD\",\n    \"locality\": \"UDINE\",\n    \"postalCode\": \"33100\",\n    \"toponym\": \"string\",\n    \"street\": \"VIA PUINTAT\",\n    \"streetNumber\": 2,\n    \"streetNumberExtension\": \"A\",\n    \"floor\": \"1\",\n    \"lot\": \"2\",\n    \"yCoordinate\": 46.0948035,\n    \"xCoordinate\": 13.2298188\n  },\n  \"contacts\": [],\n  \"meters\": []\n}",
													"options": {
														"raw": {
															"language": "json"
														}
													}
												},
												"url": "{{integration-api-url}}/{{context-path}}/api/integration/assets/r1/accounts"
											},
											"response": []
										}
									]
								}
							]
						},
						{
							"name": "asset",
							"item": [
								{
									"name": "upsert",
									"item": [
										{
											"name": "error",
											"item": [
												{
													"name": "Asset upsert - Wrong External System",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	"var nowDT = new Date(Date.now());",
																	"const assetIdentifier = \"TEST_ASSET_\" + nowDT.getFullYear() + \"_\" + (nowDT.getMonth()+1) + \"_\"+ nowDT.getDay().toString() + \"_\" + nowDT.getHours() + \"_\" + + nowDT.getMinutes() + \"_\" + nowDT.getSeconds() + \"_\" + nowDT.getMilliseconds();",
																	"pm.variables.set(\"assetIdentifier\",assetIdentifier);"
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"",
																	"pm.test(\"Response status code is 404\", function () {",
																	"    pm.expect(pm.response.code).to.equal(404);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Content-Type header is application/problem+json\", function () {",
																	"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Type is a non-empty string\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.be.an('object');",
																	"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'detail'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('detail');",
																	"});",
																	"",
																	""
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"protocolProfileBehavior": {
														"disabledSystemHeaders": {
															"accept-encoding": true,
															"connection": true,
															"user-agent": true
														}
													},
													"request": {
														"method": "POST",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n  \"asset\": {\n    \"externalSystemCode\": \"123\",\n    \"code\": \"202404051259-test\",\n    \"typeCode\": \"1709199625981\",\n    \"operationCenterCode\": \"OCENW\",\n    \"description\": \"{{assetIdentifier}} - Plant in Texas for Energy generation\",\n    \"statusCode\": \"OP\",\n    \"note\": \"{{assetIdentifier}} - Testing API Asset-Creation Integration API V1\"\n  },\n   \"address\": {\n    \"streetNumber\": 2,\n    \"street\": \"VIA PUINTAT\",\n    \"countryIsoAlphaCode\": \"IT\",\n    \"postalCode\": \"33100\",\n    \"municipality\": \"UDINE\",\n    \"districtAcronym\": \"UD\",\n    \"yCoordinate\": 46.0948035,\n    \"xCoordinate\": 13.2298188\n  }\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/assets/r1/assets"
													},
													"response": []
												},
												{
													"name": "Asset upsert - Wrong Operation Center",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	"var nowDT = new Date(Date.now());",
																	"const assetIdentifier = \"TEST_ASSET_\" + nowDT.getFullYear() + \"_\" + (nowDT.getMonth()+1) + \"_\"+ nowDT.getDay().toString() + \"_\" + nowDT.getHours() + \"_\" + + nowDT.getMinutes() + \"_\" + nowDT.getSeconds() + \"_\" + nowDT.getMilliseconds();",
																	"pm.variables.set(\"assetIdentifier\",assetIdentifier);"
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"",
																	"pm.test(\"Response status code is 404\", function () {",
																	"    pm.expect(pm.response.code).to.equal(404);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Content-Type header is application/problem+json\", function () {",
																	"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Type is a non-empty string\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.be.an('object');",
																	"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'detail'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('detail');",
																	"});",
																	"",
																	""
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"protocolProfileBehavior": {
														"disabledSystemHeaders": {
															"accept-encoding": true,
															"connection": true,
															"user-agent": true
														}
													},
													"request": {
														"method": "POST",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n  \"asset\": {\n    \"externalSystemCode\": \"SAP\",\n    \"code\": \"{{assetIdentifier}}\",\n    \"typeCode\": \"1709199625981\",\n    \"operationCenterCode\": \"OCENWXX123\",\n    \"description\": \"Plant in Texas for Energy generation\",\n    \"statusCode\": \"OP\",\n    \"note\": \"Testing API Asset-Creation Integration API V1\",\n    \"invertible\": true\n  },\n    \"address\": {\n    \"streetNumber\": 2,\n    \"street\": \"VIA PUINTAT\",\n    \"countryIsoAlphaCode\": \"IT\",\n    \"postalCode\": \"33100\",\n    \"municipality\": \"UDINE\",\n    \"districtAcronym\": \"UD\",\n    \"yCoordinate\": 46.0948035,\n    \"xCoordinate\": 13.2298188\n  }\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/assets/r1/assets"
													},
													"response": []
												},
												{
													"name": "Asset upsert - Wrong AssetStatusCode",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	"var nowDT = new Date(Date.now());",
																	"const assetIdentifier = \"TEST_ASSET_\" + nowDT.getFullYear() + \"_\" + (nowDT.getMonth()+1) + \"_\"+ nowDT.getDay().toString() + \"_\" + nowDT.getHours() + \"_\" + + nowDT.getMinutes() + \"_\" + nowDT.getSeconds() + \"_\" + nowDT.getMilliseconds();",
																	"pm.variables.set(\"assetIdentifier\",assetIdentifier);"
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"",
																	"pm.test(\"Response status code is 404\", function () {",
																	"    pm.expect(pm.response.code).to.equal(404);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Content-Type header is application/problem+json\", function () {",
																	"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Type is a non-empty string\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.be.an('object');",
																	"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'detail'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('detail');",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"protocolProfileBehavior": {
														"disabledSystemHeaders": {
															"accept-encoding": true,
															"connection": true,
															"user-agent": true
														}
													},
													"request": {
														"method": "POST",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n  \"asset\": {\n    \"externalSystemCode\": \"SAP\",\n    \"code\": \"{{assetIdentifier}}\",\n    \"typeCode\": \"CILL\",\n    \"operationCenterCode\": \"1606\",\n    \"description\": \"Plant in Texas for Energy generation\",\n    \"statusCode\": \"OP123\",\n    \"parentAssetCode\": null,\n    \"note\": \"Testing API Asset-Creation Integration API V1\",\n    \"invertible\": true\n  },\n   \"address\": {\n    \"streetNumber\": 2,\n    \"street\": \"VIA PUINTAT\",\n    \"countryIsoAlphaCode\": \"IT\",\n    \"postalCode\": \"33100\",\n    \"municipality\": \"UDINE\",\n    \"districtAcronym\": \"UD\",\n    \"yCoordinate\": 46.0948035,\n    \"xCoordinate\": 13.2298188\n  }\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/assets/r1/assets"
													},
													"response": []
												},
												{
													"name": "Asset upsert - Non-Existing Country Code",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	"var nowDT = new Date(Date.now());",
																	"const assetIdentifier = \"TEST_ASSET_\" + nowDT.getFullYear() + \"_\" + (nowDT.getMonth()+1) + \"_\"+ nowDT.getDay().toString() + \"_\" + nowDT.getHours() + \"_\" + + nowDT.getMinutes() + \"_\" + nowDT.getSeconds() + \"_\" + nowDT.getMilliseconds();",
																	"pm.variables.set(\"assetIdentifier\",assetIdentifier);"
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"",
																	"pm.test(\"Response status code is 404\", function () {",
																	"    pm.expect(pm.response.code).to.equal(404);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Content-Type header is application/problem+json\", function () {",
																	"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Type is a non-empty string\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.be.an('object');",
																	"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'detail'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('detail');",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"protocolProfileBehavior": {
														"disabledSystemHeaders": {
															"accept-encoding": true,
															"connection": true,
															"user-agent": true
														}
													},
													"request": {
														"method": "POST",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n  \"asset\": {\n    \"externalSystemCode\": \"SAP\",\n    \"code\": \"{{assetIdentifier}}\",\n    \"typeCode\": \"1709199625981\",\n    \"operationCenterCode\": \"OCENW\",\n    \"description\": \"Plant in Texas for Energy generation\",\n    \"statusCode\": \"OP\",\n    \"note\": \"Testing API Asset-Creation Integration API V1\",\n    \"invertible\": true\n  },\n   \"address\": {\n    \"streetNumber\": 2,\n    \"street\": \"VIA PUINTAT\",\n    \"countryIsoAlphaCode\": \"ITU\",\n    \"postalCode\": \"33100\",\n    \"municipality\": \"UDINE\",\n    \"districtAcronym\": \"UD\",\n    \"yCoordinate\": 46.0948035,\n    \"xCoordinate\": 13.2298188\n  }\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/assets/r1/assets"
													},
													"response": []
												},
												{
													"name": "Asset upsert - Invalid Country Code",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	"var nowDT = new Date(Date.now());",
																	"const assetIdentifier = \"TEST_ASSET_\" + nowDT.getFullYear() + \"_\" + (nowDT.getMonth()+1) + \"_\"+ nowDT.getDay().toString() + \"_\" + nowDT.getHours() + \"_\" + + nowDT.getMinutes() + \"_\" + nowDT.getSeconds() + \"_\" + nowDT.getMilliseconds();",
																	"pm.variables.set(\"assetIdentifier\",assetIdentifier);"
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"",
																	"pm.test(\"Response status code is 404\", function () {",
																	"    pm.expect(pm.response.code).to.equal(404);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Content-Type header is application/problem+json\", function () {",
																	"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Type is a non-empty string\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.be.an('object');",
																	"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																	"});",
																	"",
																	"pm.test(\"Response has the required field 'detail'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('detail');",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"protocolProfileBehavior": {
														"disabledSystemHeaders": {
															"accept-encoding": true,
															"connection": true,
															"user-agent": true
														}
													},
													"request": {
														"method": "POST",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n  \"asset\": {\n    \"externalSystemCode\": \"SAP\",\n    \"code\": \"{{assetIdentifier}}\",\n    \"typeCode\": \"1709199625981\",\n    \"operationCenterCode\": \"OCENW\",\n    \"description\": \"Plant in Texas for Energy generation\",\n    \"statusCode\": \"OP\",\n    \"note\": \"Testing API Asset-Creation Integration API V1\",\n    \"invertible\": true\n  },\n   \"address\": {\n    \"streetNumber\": 2,\n    \"street\": \"VIA PUINTAT\",\n    \"countryIsoAlphaCode\": \"MC\",\n    \"postalCode\": \"33100\",\n    \"municipality\": \"UDINE\",\n    \"districtAcronym\": \"UD\",\n    \"yCoordinate\": 46.0948035,\n    \"xCoordinate\": 13.2298188\n  }\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/assets/r1/assets"
													},
													"response": []
												},
												{
													"name": "Asset upsert - Invalid District Code",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	"var nowDT = new Date(Date.now());",
																	"const assetIdentifier = \"TEST_ASSET_\" + nowDT.getFullYear() + \"_\" + (nowDT.getMonth()+1) + \"_\"+ nowDT.getDay().toString() + \"_\" + nowDT.getHours() + \"_\" + + nowDT.getMinutes() + \"_\" + nowDT.getSeconds() + \"_\" + nowDT.getMilliseconds();",
																	"pm.variables.set(\"assetIdentifier\",assetIdentifier);"
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"",
																	"pm.test(\"Response status code is 404\", function () {",
																	"    pm.expect(pm.response.code).to.equal(404);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Content-Type header is application/problem+json\", function () {",
																	"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Type is a non-empty string\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.be.an('object');",
																	"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																	"});",
																	"",
																	"pm.test(\"Response has the required field 'detail'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('detail');",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"protocolProfileBehavior": {
														"disabledSystemHeaders": {
															"accept-encoding": true,
															"connection": true,
															"user-agent": true
														}
													},
													"request": {
														"method": "POST",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n  \"asset\": {\n    \"externalSystemCode\": \"SAP\",\n    \"code\": \"{{assetIdentifier}}\",\n    \"typeCode\": \"1709199625981\",\n    \"operationCenterCode\": \"OCENW\",\n    \"description\": \"Plant in Texas for Energy generation\",\n    \"statusCode\": \"OP\",\n    \"note\": \"Testing API Asset-Creation Integration API V1\",\n    \"invertible\": true\n  },\n   \"address\": {\n    \"streetNumber\": 2,\n    \"street\": \"VIA PUINTAT\",\n    \"countryIsoAlphaCode\": \"IT\",\n    \"postalCode\": \"33100\",\n    \"municipality\": \"UDINE\",\n    \"districtAcronym\": \"UDA\",\n    \"yCoordinate\": 46.0948035,\n    \"xCoordinate\": 13.2298188\n  }\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/assets/r1/assets"
													},
													"response": []
												},
												{
													"name": "Asset upsert - Wrong AssetTypeCode",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	"var nowDT = new Date(Date.now());",
																	"const assetIdentifier = \"TEST_ASSET_\" + nowDT.getFullYear() + \"_\" + (nowDT.getMonth()+1) + \"_\"+ nowDT.getDay().toString() + \"_\" + nowDT.getHours() + \"_\" + + nowDT.getMinutes() + \"_\" + nowDT.getSeconds() + \"_\" + nowDT.getMilliseconds();",
																	"pm.variables.set(\"assetIdentifier\",assetIdentifier);"
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"",
																	"pm.test(\"Response status code is 404\", function () {",
																	"    pm.expect(pm.response.code).to.equal(404);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Content-Type header is application/problem+json\", function () {",
																	"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Type is a non-empty string\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.be.an('object');",
																	"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																	"});",
																	"",
																	"pm.test(\"Response has the required field 'detail'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('detail');",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"protocolProfileBehavior": {
														"disabledSystemHeaders": {
															"accept-encoding": true,
															"connection": true,
															"user-agent": true
														}
													},
													"request": {
														"method": "POST",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n  \"asset\": {\n    \"externalSystemCode\": \"SAP\",\n    \"code\": \"{{assetIdentifier}}\",\n    \"typeCode\": \"PLANT123\",\n    \"operationCenterCode\": \"OCENW\",\n    \"description\": \"Plant in Texas for Energy generation\",\n    \"statusCode\": \"OP\",\n    \"note\": \"Testing API Asset-Creation Integration API V1\",\n    \"invertible\": true\n  },\n   \"address\": {\n    \"streetNumber\": 2,\n    \"street\": \"VIA PUINTAT\",\n    \"countryIsoAlphaCode\": \"IT\",\n    \"postalCode\": \"33100\",\n    \"municipality\": \"UDINE\",\n    \"districtAcronym\": \"UD\",\n    \"yCoordinate\": 46.0948035,\n    \"xCoordinate\": 13.2298188\n  }\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/assets/r1/assets"
													},
													"response": []
												}
											]
										},
										{
											"name": "Asset upsert - Simple working Scenario - CREATE",
											"event": [
												{
													"listen": "prerequest",
													"script": {
														"exec": [
															"var nowDT = new Date(Date.now());",
															"const assetIdentifier = \"TEST_ASSET_\" + nowDT.getFullYear() + \"_\" + (nowDT.getMonth()+1) + \"_\"+ nowDT.getDay().toString() + \"_\" + nowDT.getHours() + \"_\" + + nowDT.getMinutes() + \"_\" + nowDT.getSeconds() + \"_\" + nowDT.getMilliseconds();",
															"pm.collectionVariables.set(\"assetIdentifier\",assetIdentifier);"
														],
														"type": "text/javascript",
														"packages": {}
													}
												},
												{
													"listen": "test",
													"script": {
														"exec": [
															"pm.test(\"Response Status is Created\", function () {",
															"    pm.expect(pm.response.code = 201);",
															"});"
														],
														"type": "text/javascript",
														"packages": {}
													}
												}
											],
											"protocolProfileBehavior": {
												"disabledSystemHeaders": {
													"accept-encoding": true,
													"connection": true,
													"user-agent": true
												}
											},
											"request": {
												"method": "POST",
												"header": [],
												"body": {
													"mode": "raw",
													"raw": "{\n    \"asset\": {\n        \"externalSystemCode\": \"SAP\",\n        \"code\": \"{{assetIdentifier}}\",\n        \"typeCode\": \"1709199625981\",\n        \"operationCenterCode\": \"OCENW\",\n        \"description\": \"{{assetIdentifier}} - Plant in Texas for Energy generation\",\n        \"statusCode\": \"OP\",\n        \"note\": \"{{assetIdentifier}} - Testing API Asset-Creation Integration API V1\",\n        \"workCenterCode\": \"MECH\"\n    },\n    \"address\": {\n        \"streetNumber\": 2,\n        \"street\": \"VIA PUINTAT\",\n        \"countryIsoAlphaCode\": \"IT\",\n        \"postalCode\": \"33100\",\n        \"municipality\": \"UDINE\",\n        \"districtAcronym\": \"UD\",\n        \"yCoordinate\": 46.0948035,\n        \"xCoordinate\": 13.2298188\n    },\n    \"characteristics\": [\n        {\n            \"code\": \"BRAND\",\n            \"value\": \"VALUE_202503141156\"\n        },\n        {\n            \"code\": \"TEST_202515171123429\",\n            \"value\": \"VALUE_202503141157\"\n        }\n    ]\n}",
													"options": {
														"raw": {
															"language": "json"
														}
													}
												},
												"url": "{{integration-api-url}}/{{context-path}}/api/integration/assets/r1/assets"
											},
											"response": []
										},
										{
											"name": "Asset upsert - Simple working Scenario - UPDATE",
											"event": [
												{
													"listen": "prerequest",
													"script": {
														"exec": [
															"var nowDT = new Date(Date.now());",
															"const assetIdentifier = \"TEST_ASSET_\" + nowDT.getFullYear() + \"_\" + (nowDT.getMonth()+1) + \"_\"+ nowDT.getDay().toString() + \"_\" + nowDT.getHours() + \"_\" + + nowDT.getMinutes() + \"_\" + nowDT.getSeconds() + \"_\" + nowDT.getMilliseconds();",
															"pm.collectionVariables.set(\"assetIdentifier\",assetIdentifier);"
														],
														"type": "text/javascript",
														"packages": {}
													}
												},
												{
													"listen": "test",
													"script": {
														"exec": [
															"pm.test(\"Response Status is No Content\", function () {",
															"    pm.expect(pm.response.code = 204);",
															"});"
														],
														"type": "text/javascript",
														"packages": {}
													}
												}
											],
											"protocolProfileBehavior": {
												"disabledSystemHeaders": {
													"accept-encoding": true,
													"connection": true,
													"user-agent": true
												}
											},
											"request": {
												"method": "POST",
												"header": [],
												"body": {
													"mode": "raw",
													"raw": "{\n    \"asset\": {\n        \"externalSystemCode\": \"SAP\",\n        \"code\": \"202404051259-test\",\n        \"typeCode\": \"1709199625981\",\n        \"operationCenterCode\": \"OCENW\",\n        \"description\": \"{{assetIdentifier}} - Plant in Texas for Energy generation\",\n        \"statusCode\": \"OP\",\n        \"note\": \"{{assetIdentifier}} - Testing API Asset-Creation Integration API V1\",\n        \"workCenterCode\": \"MECH\"\n    },\n    \"address\": {\n        \"streetNumber\": 2,\n        \"street\": \"VIA PUINTAT\",\n        \"countryIsoAlphaCode\": \"IT\",\n        \"postalCode\": \"33100\",\n        \"municipality\": \"UDINE\",\n        \"districtAcronym\": \"UD\",\n        \"yCoordinate\": 46.0948035,\n        \"xCoordinate\": 13.2298188\n    },\n    \"characteristics\": [\n        {\n            \"code\": \"BRAND\",\n            \"value\": \"VALUE_202503141156\"\n        },\n        {\n            \"code\": \"TEST_202515171123429\",\n            \"value\": \"VALUE_202503141157\"\n        }\n    ]\n}",
													"options": {
														"raw": {
															"language": "json"
														}
													}
												},
												"url": "{{integration-api-url}}/{{context-path}}/api/integration/assets/r1/assets"
											},
											"response": []
										}
									]
								},
								{
									"name": "get",
									"item": [
										{
											"name": "error",
											"item": [
												{
													"name": "Assets get - Wrong External System",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	""
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"",
																	"pm.test(\"Response status code is 404\", function () {",
																	"    pm.expect(pm.response.code).to.equal(404);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Content-Type header is application/problem+json\", function () {",
																	"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Type is a non-empty string\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.be.an('object');",
																	"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'detail'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('detail');",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "GET",
														"header": [],
														"url": {
															"raw": "{{integration-api-url}}/{{context-path}}/api/integration/assets/r1/assets?code=202404051259-test&externalSystemCode=NOSAP_EXTERNAL",
															"host": [
																"{{integration-api-url}}"
															],
															"path": [
																"{{context-path}}",
																"api",
																"integration",
																"assets",
																"r1",
																"assets"
															],
															"query": [
																{
																	"key": "code",
																	"value": "202404051259-test"
																},
																{
																	"key": "externalSystemCode",
																	"value": "NOSAP_EXTERNAL"
																}
															]
														}
													},
													"response": []
												},
												{
													"name": "Assets get - Wrong Asset Code",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	""
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"",
																	"pm.test(\"Response status code is 404\", function () {",
																	"    pm.expect(pm.response.code).to.equal(404);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Content-Type header is application/problem+json\", function () {",
																	"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Type is a non-empty string\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.be.an('object');",
																	"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'detail'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('detail');",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "GET",
														"header": [],
														"url": {
															"raw": "{{integration-api-url}}/{{context-path}}/api/integration/assets/r1/assets?code=UNKNOWN_ASSET_CODE_PROVIDED&externalSystemCode=SAP",
															"host": [
																"{{integration-api-url}}"
															],
															"path": [
																"{{context-path}}",
																"api",
																"integration",
																"assets",
																"r1",
																"assets"
															],
															"query": [
																{
																	"key": "code",
																	"value": "UNKNOWN_ASSET_CODE_PROVIDED"
																},
																{
																	"key": "externalSystemCode",
																	"value": "SAP"
																}
															]
														}
													},
													"response": []
												}
											]
										},
										{
											"name": "Assets get - simple with code",
											"event": [
												{
													"listen": "prerequest",
													"script": {
														"exec": [
															""
														],
														"type": "text/javascript",
														"packages": {}
													}
												},
												{
													"listen": "test",
													"script": {
														"exec": [
															"pm.test(\"Response status code is 200\", function () {",
															"  pm.expect(pm.response.code).to.equal(200);",
															"});",
															"",
															"",
															"pm.test(\"Response has the required field 'id'\", function () {",
															"    const responseData = pm.response.json();",
															"    ",
															"    pm.expect(responseData).to.have.property('id');",
															"});",
															"",
															"",
															"pm.test(\"Id is a non-zero integer\", function () {",
															"  const responseData = pm.response.json();",
															"",
															"  pm.expect(responseData).to.be.an('object');",
															"  pm.expect(responseData.id).to.exist.and.to.be.a('number');",
															"  pm.expect(responseData.id).to.be.above(0);",
															"});"
														],
														"type": "text/javascript",
														"packages": {}
													}
												}
											],
											"request": {
												"method": "GET",
												"header": [],
												"url": {
													"raw": "{{integration-api-url}}/{{context-path}}/api/integration/assets/r1/assets?code=TEST_ASSET_2025_3_5_11_58_16_983&externalSystemCode=SAP",
													"host": [
														"{{integration-api-url}}"
													],
													"path": [
														"{{context-path}}",
														"api",
														"integration",
														"assets",
														"r1",
														"assets"
													],
													"query": [
														{
															"key": "code",
															"value": "TEST_ASSET_2025_3_5_11_58_16_983"
														},
														{
															"key": "externalSystemCode",
															"value": "SAP"
														}
													]
												}
											},
											"response": []
										},
										{
											"name": "Assets get - simple with fields filter",
											"event": [
												{
													"listen": "prerequest",
													"script": {
														"exec": [
															""
														],
														"type": "text/javascript",
														"packages": {}
													}
												},
												{
													"listen": "test",
													"script": {
														"exec": [
															"pm.test(\"Response status code is 200\", function () {",
															"  pm.expect(pm.response.code).to.equal(200);",
															"});",
															"",
															"",
															"pm.test(\"Response has the required field 'address'\", function () {",
															"    const responseData = pm.response.json();",
															"    ",
															"    pm.expect(responseData).to.have.property('address');",
															"});"
														],
														"type": "text/javascript",
														"packages": {}
													}
												}
											],
											"request": {
												"method": "GET",
												"header": [],
												"url": {
													"raw": "{{integration-api-url}}/{{context-path}}/api/integration/assets/r1/assets?code=202404051259-test&externalSystemCode=SAP&_fields=address",
													"host": [
														"{{integration-api-url}}"
													],
													"path": [
														"{{context-path}}",
														"api",
														"integration",
														"assets",
														"r1",
														"assets"
													],
													"query": [
														{
															"key": "code",
															"value": "202404051259-test"
														},
														{
															"key": "externalSystemCode",
															"value": "SAP"
														},
														{
															"key": "_fields",
															"value": "address"
														}
													]
												}
											},
											"response": []
										},
										{
											"name": "Assets get - simple with fields filter nested",
											"event": [
												{
													"listen": "prerequest",
													"script": {
														"exec": [
															""
														],
														"type": "text/javascript",
														"packages": {}
													}
												},
												{
													"listen": "test",
													"script": {
														"exec": [
															"pm.test(\"Response status code is 200\", function () {",
															"  pm.expect(pm.response.code).to.equal(200);",
															"});",
															"",
															"",
															"pm.test(\"Response has the required field 'address'\", function () {",
															"    const responseData = pm.response.json();",
															"    ",
															"    pm.expect(responseData).to.have.property('address');",
															"});",
															"",
															"pm.test(\"Response has the required field 'operationCenter'\", function () {",
															"    const responseData = pm.response.json();",
															"    ",
															"    pm.expect(responseData).to.have.property('operationCenter');",
															"});",
															""
														],
														"type": "text/javascript",
														"packages": {}
													}
												}
											],
											"request": {
												"method": "GET",
												"header": [],
												"url": {
													"raw": "{{integration-api-url}}/{{context-path}}/api/integration/assets/r1/assets?code=202404051259-test&externalSystemCode=SAP&_fields=id,address.municipality,operationCenter.description",
													"host": [
														"{{integration-api-url}}"
													],
													"path": [
														"{{context-path}}",
														"api",
														"integration",
														"assets",
														"r1",
														"assets"
													],
													"query": [
														{
															"key": "code",
															"value": "202404051259-test"
														},
														{
															"key": "externalSystemCode",
															"value": "SAP"
														},
														{
															"key": "_fields",
															"value": "id,address.municipality,operationCenter.description"
														}
													]
												}
											},
											"response": []
										}
									]
								}
							]
						}
					]
				},
				{
					"name": "Workforce",
					"item": [
						{
							"name": "resources",
							"item": [
								{
									"name": "skillsupsert",
									"item": [
										{
											"name": "error",
											"item": [
												{
													"name": "SkillsUpdate - Wrong External System",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	""
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"",
																	"pm.test(\"Response status code is 404\", function () {",
																	"    pm.expect(pm.response.code).to.equal(404);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Content-Type header is application/problem+json\", function () {",
																	"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Type is a non-empty string\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.be.an('object');",
																	"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'detail'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('detail');",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "POST",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n  \"resource\": {\n    \"externalSystemCode\": \"NO_SAP_EXTERNAL_SYSTEM\",\n    \"identificationNumber\": \"stMI0018\"\n  },\n  \"skills\": [\n    {\n      \"code\": \"TECH\",\n      \"levelCode\": \"1\"\n    }\n  ]\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/workforce/r1/resource-skills"
													},
													"response": []
												},
												{
													"name": "SkillsUpdate - Unknown Resource Identification Number",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	"var nowDT = new Date(Date.now());",
																	"const resourceIdentifier = \"TEST_RESOURCE_\" + nowDT.getFullYear() + \"_\" + (nowDT.getMonth()+1) + \"_\"+ nowDT.getDay().toString() + \"_\" + nowDT.getHours() + \"_\" + + nowDT.getMinutes() + \"_\" + nowDT.getSeconds() + \"_\" + nowDT.getMilliseconds();",
																	"pm.collectionVariables.set(\"resourceIdentifier\",resourceIdentifier);"
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"",
																	"pm.test(\"Response status code is 404\", function () {",
																	"    pm.expect(pm.response.code).to.equal(404);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Content-Type header is application/problem+json\", function () {",
																	"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Type is a non-empty string\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.be.an('object');",
																	"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'detail'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('detail');",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "POST",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n  \"resource\": {\n    \"externalSystemCode\": \"SAP\",\n    \"identificationNumber\": \"{{resourceIdentifier}}\"\n  },\n  \"skills\": [\n    {\n      \"code\": \"TECH\",\n      \"levelCode\": \"1\"\n    }\n  ]\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/workforce/r1/resource-skills"
													},
													"response": []
												},
												{
													"name": "SkillsUpdate - Unknown Skill Code",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	"var nowDT = new Date(Date.now());",
																	"const resourceIdentifier = \"TEST_RESOURCE_\" + nowDT.getFullYear() + \"_\" + (nowDT.getMonth()+1) + \"_\"+ nowDT.getDay().toString() + \"_\" + nowDT.getHours() + \"_\" + + nowDT.getMinutes() + \"_\" + nowDT.getSeconds() + \"_\" + nowDT.getMilliseconds();",
																	"pm.collectionVariables.set(\"resourceIdentifier\",resourceIdentifier);"
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"",
																	"pm.test(\"Response status code is 404\", function () {",
																	"    pm.expect(pm.response.code).to.equal(404);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Content-Type header is application/problem+json\", function () {",
																	"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Type is a non-empty string\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.be.an('object');",
																	"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'detail'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('detail');",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "POST",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n  \"resource\": {\n    \"externalSystemCode\": \"SAP\",\n    \"identificationNumber\": \"stMI0018\"\n  },\n  \"skills\": [\n    {\n      \"code\": \"{{resourceIdentifier}}\",\n      \"levelCode\": \"1\"\n    }\n  ]\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/workforce/r1/resource-skills"
													},
													"response": []
												}
											]
										},
										{
											"name": "SkillsUpsert - Simple working scenario",
											"event": [
												{
													"listen": "prerequest",
													"script": {
														"exec": [
															""
														],
														"type": "text/javascript",
														"packages": {}
													}
												},
												{
													"listen": "test",
													"script": {
														"exec": [
															"pm.test(\"Response status code is No Content\", function () {",
															"  pm.expect(pm.response.code).to.equal(204);",
															"});"
														],
														"type": "text/javascript",
														"packages": {}
													}
												}
											],
											"request": {
												"method": "POST",
												"header": [],
												"body": {
													"mode": "raw",
													"raw": "{\n  \"resource\": {\n    \"externalSystemCode\": \"SAP\",\n    \"identificationNumber\": \"stMI0018\"\n  },\n  \"skills\": [\n    {\n      \"code\": \"TECH\",\n      \"levelCode\": \"3\"\n    }\n  ]\n}",
													"options": {
														"raw": {
															"language": "json"
														}
													}
												},
												"url": "{{integration-api-url}}/{{context-path}}/api/integration/workforce/r1/resource-skills"
											},
											"response": []
										}
									]
								},
								{
									"name": "upsert",
									"item": [
										{
											"name": "error",
											"item": [
												{
													"name": "Resource Upsert - Wrong External System",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	""
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"pm.test(\"Response status code is 404\", function () {",
																	"    pm.expect(pm.response.code).to.equal(404);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Content-Type header is application/problem+json\", function () {",
																	"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Type is a non-empty string\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.be.an('object');",
																	"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'detail'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('detail');",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "POST",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n    \"resource\": {\n        \"externalSystemCode\": \"NO_SAP_EXTERNAL_SYSTEM\",\n        \"surname\": \"string\",\n        \"name\": \"string\",\n        \"birthDate\": \"2024-04-15T09:38:00.931Z\",\n        \"email\": \"string\",\n        \"mobilePhone\": \"string\",\n        \"identificationNumber\": \"stMI0018\",\n        \"typeCode\": \"INT\",\n        \"color\": \"string\",\n        \"order\": 0,\n        \"operationCenterCode\": \"OCENE\",\n        \"workCenterCode\": \"MECH\",\n        \"startAddressCode\": \"HOUSE99\",\n        \"startAddressFromOperationCenter\": true,\n        \"endAddressFromOperationCenter\": true\n    },\n    \"addresses\": [\n        {\n            \"code\": \"test\",\n            \"streetNumber\": 3,\n            \"street\": \"VIA NUOVA\",\n            \"countryIsoAlphaCode\": \"IT\",\n            \"postalCode\": \"00119\",\n            \"municipality\": \"ROMA\",\n            \"districtAcronym\": \"RM\",\n            \"yCoordinate\": 46.0948040,\n            \"xCoordinate\": 13.2298190\n        }\n    ]\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/workforce/r1/resources"
													},
													"response": []
												},
												{
													"name": "Resource Upsert - AddressTargetId Valued Error",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	""
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"pm.test(\"Response status code is 400\", function () {",
																	"    pm.expect(pm.response.code).to.equal(400);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Content-Type header is application/problem+json\", function () {",
																	"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Type is a non-empty string\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.be.an('object');",
																	"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'detail'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('detail');",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "POST",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n    \"resource\": {\n        \"externalSystemCode\": \"SAP\",\n        \"surname\": \"string\",\n        \"name\": \"string\",\n        \"birthDate\": \"2024-04-15T09:38:00.931Z\",\n        \"email\": \"string\",\n        \"mobilePhone\": \"string\",\n        \"identificationNumber\": \"stMI0018\",\n        \"typeCode\": \"INT\",\n        \"color\": \"string\",\n        \"order\": 0,\n        \"operationCenterCode\": \"OCENE\",\n        \"workCenterCode\": \"MECH\",\n        \"startAddressCode\": \"HOUSE99\",\n        \"startAddressFromOperationCenter\": true,\n        \"endAddressFromOperationCenter\": true\n    },\n    \"addresses\": [\n        {\n            \"code\": \"test\",\n            \"streetNumber\": 3,\n            \"street\": \"VIA NUOVA\",\n            \"countryIsoAlphaCode\": \"IT\",\n            \"postalCode\": \"00119\",\n            \"municipality\": \"ROMA\",\n            \"districtAcronym\": \"RM\",\n            \"yCoordinate\": 46.0948040,\n            \"xCoordinate\": 13.2298190\n        }\n    ]\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/workforce/r1/resources"
													},
													"response": []
												},
												{
													"name": "Resource Upsert - Operation Ceneter Addresses Validation Error (Main Address Error)",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	""
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"pm.test(\"Response status code is 400\", function () {",
																	"    pm.expect(pm.response.code).to.equal(400);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Content-Type header is application/problem+json\", function () {",
																	"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Type is a non-empty string\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.be.an('object');",
																	"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'detail'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('detail');",
																	"});",
																	"",
																	"",
																	"pm.test(\"detail message value\", function () {",
																	"  const responseData = pm.response.json();",
																	"",
																	"  pm.expect(responseData).to.be.an('object');",
																	"  pm.expect(responseData.detail).to.be.equal('Operation center OCENW does not have a main address or it has more than one main address');",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "POST",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n    \"resource\": {\n        \"externalSystemCode\": \"SAP\",\n        \"surname\": \"surname1\",\n        \"name\": \"name1\",\n        \"birthDate\": \"2024-04-15T09:38:00.931Z\",\n        \"email\": \"a.b@test2024.com\",\n        \"mobilePhone\": \"123459999\",\n        \"identificationNumber\": \"stMI0018\",\n        \"typeCode\": \"INT\",\n        \"color\": \"red\",\n        \"order\": 0,\n        \"operationCenterCode\": \"OCENW\",\n        \"workCenterCode\": \"MECH\",\n        \"startAddressCode\": \"test\",\n        \"endAddressCode\": \"test\",\n        \"startAddressFromOperationCenter\": true,\n        \"endAddressFromOperationCenter\": true\n    },\n    \"addresses\": [\n        {\n            \"code\": \"test20240415\",\n            \"countryIsoAlphaCode\": \"IT\",\n            \"districtAcronym\": \"UD\",\n            \"municipality\": \"UDINE\",\n            \"municipalityCode\": \"UD\",\n            \"locality\": \"UDINE\",\n            \"postalCode\": \"33100\",\n            \"toponym\": \"string\",\n            \"street\": \"VIA PUINTAT\",\n            \"streetNumber\": 2,\n            \"streetNumberExtension\": \"A\",\n            \"floor\": \"1\",\n            \"lot\": \"2\",\n            \"staircase\": \"string\",\n            \"apartment\": \"string\",\n            \"directions\": \"string\",\n            \"description\": \"desccc\",\n            \"yCoordinate\": 46.0948035,\n            \"xCoordinate\": 13.2298188,\n            \"resourceAddressDescription\": \"description\"\n        }\n    ]\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/workforce/r1/resources"
													},
													"response": []
												},
												{
													"name": "Resource Upsert - StartAddressCode Validation Error (ThrowIfStartAddressCodeNotSpecifiedAndNotDeductedByOperationCenter)",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	""
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"pm.test(\"Response status code is 400\", function () {",
																	"    pm.expect(pm.response.code).to.equal(400);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Content-Type header is application/problem+json\", function () {",
																	"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Type is a non-empty string\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.be.an('object');",
																	"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'detail'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('detail');",
																	"});",
																	"",
																	"",
																	"pm.test(\"detail message value\", function () {",
																	"  const responseData = pm.response.json();",
																	"",
																	"  pm.expect(responseData).to.be.an('object');",
																	"  pm.expect(responseData.detail).to.be.equal('Specify start address by code or by operation center');",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "POST",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n    \"resource\": {\n        \"externalSystemCode\": \"SAP\",\n        \"surname\": \"surname1\",\n        \"name\": \"name1\",\n        \"birthDate\": \"2024-04-15T09:38:00.931Z\",\n        \"email\": \"a.b@test2024.com\",\n        \"mobilePhone\": \"123459999\",\n        \"identificationNumber\": \"stMI0018\",\n        \"typeCode\": \"INT\",\n        \"color\": \"red\",\n        \"order\": 0,\n        \"operationCenterCode\": \"OCENE\",\n        \"workCenterCode\": \"MECH\",\n        \"endAddressCode\": \"test\",\n        \"startAddressFromOperationCenter\": false,\n        \"endAddressFromOperationCenter\": true\n    },\n    \"addresses\": [\n        {\n            \"code\": \"test20240415\",\n            \"countryIsoAlphaCode\": \"IT\",\n            \"districtAcronym\": \"UD\",\n            \"municipality\": \"UDINE\",\n            \"municipalityCode\": \"UD\",\n            \"locality\": \"UDINE\",\n            \"postalCode\": \"33100\",\n            \"toponym\": \"string\",\n            \"street\": \"VIA PUINTAT\",\n            \"streetNumber\": 2,\n            \"streetNumberExtension\": \"A\",\n            \"floor\": \"1\",\n            \"lot\": \"2\",\n            \"staircase\": \"string\",\n            \"apartment\": \"string\",\n            \"directions\": \"string\",\n            \"description\": \"desccc\",\n            \"yCoordinate\": 46.0948035,\n            \"xCoordinate\": 13.2298188,\n            \"resourceAddressDescription\": \"description\"\n        }\n    ]\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/workforce/r1/resources"
													},
													"response": []
												},
												{
													"name": "Resource Upsert - OperationCenter Validation Error (ThrowIfOperationCenterNotSpecifiedButAddressesAreRequired)",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	""
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"pm.test(\"Response status code is 400\", function () {",
																	"    pm.expect(pm.response.code).to.equal(400);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Content-Type header is application/problem+json\", function () {",
																	"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Type is a non-empty string\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.be.an('object');",
																	"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'detail'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('detail');",
																	"});",
																	"",
																	"",
																	"pm.test(\"detail message value\", function () {",
																	"  const responseData = pm.response.json();",
																	"",
																	"  pm.expect(responseData).to.be.an('object');",
																	"  pm.expect(responseData.detail).to.be.equal('Operation center is mandatory to set start or end address');",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "POST",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n    \"resource\": {\n        \"externalSystemCode\": \"SAP\",\n        \"surname\": \"surname1\",\n        \"name\": \"name1\",\n        \"birthDate\": \"2024-04-15T09:38:00.931Z\",\n        \"email\": \"a.b@test2024.com\",\n        \"mobilePhone\": \"123459999\",\n        \"identificationNumber\": \"stMI0018\",\n        \"typeCode\": \"INT\",\n        \"color\": \"red\",\n        \"order\": 0,\n        \"workCenterCode\": \"MECH\",\n        \"startAddressCode\": \"test\",\n        \"endAddressCode\": \"test\",\n        \"startAddressFromOperationCenter\": true,\n        \"endAddressFromOperationCenter\": true\n    },\n    \"addresses\": [\n        {\n            \"code\": \"test20240415\",\n            \"countryIsoAlphaCode\": \"IT\",\n            \"districtAcronym\": \"UD\",\n            \"municipality\": \"UDINE\",\n            \"municipalityCode\": \"UD\",\n            \"locality\": \"UDINE\",\n            \"postalCode\": \"33100\",\n            \"toponym\": \"string\",\n            \"street\": \"VIA PUINTAT\",\n            \"streetNumber\": 2,\n            \"streetNumberExtension\": \"A\",\n            \"floor\": \"1\",\n            \"lot\": \"2\",\n            \"staircase\": \"string\",\n            \"apartment\": \"string\",\n            \"directions\": \"string\",\n            \"description\": \"desccc\",\n            \"yCoordinate\": 46.0948035,\n            \"xCoordinate\": 13.2298188,\n            \"resourceAddressDescription\": \"description\"\n        }\n    ]\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/workforce/r1/resources"
													},
													"response": []
												},
												{
													"name": "Resource Upsert - EndAddressCode Validation Error (ThrowIfStartAddressCodeNotSpecifiedAndNotDeductedByOperationCenter)",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	""
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"pm.test(\"Response status code is 400\", function () {",
																	"    pm.expect(pm.response.code).to.equal(400);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Content-Type header is application/problem+json\", function () {",
																	"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Type is a non-empty string\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.be.an('object');",
																	"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'detail'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('detail');",
																	"});",
																	"",
																	"",
																	"pm.test(\"detail message value\", function () {",
																	"  const responseData = pm.response.json();",
																	"",
																	"  pm.expect(responseData).to.be.an('object');",
																	"  pm.expect(responseData.detail).to.be.equal('Specify end address by code or by operation center');",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "POST",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n    \"resource\": {\n        \"externalSystemCode\": \"SAP\",\n        \"surname\": \"surname1\",\n        \"name\": \"name1\",\n        \"birthDate\": \"2024-04-15T09:38:00.931Z\",\n        \"email\": \"a.b@test2024.com\",\n        \"mobilePhone\": \"123459999\",\n        \"identificationNumber\": \"stMI0018\",\n        \"typeCode\": \"INT\",\n        \"color\": \"red\",\n        \"order\": 0,\n        \"operationCenterCode\": \"OCENE\",\n        \"workCenterCode\": \"MECH\",\n        \"startAddressCode\": \"test\",\n        \"startAddressFromOperationCenter\": true,\n        \"endAddressFromOperationCenter\": false\n    },\n    \"addresses\": [\n        {\n            \"code\": \"test20240415\",\n            \"countryIsoAlphaCode\": \"IT\",\n            \"districtAcronym\": \"UD\",\n            \"municipality\": \"UDINE\",\n            \"municipalityCode\": \"UD\",\n            \"locality\": \"UDINE\",\n            \"postalCode\": \"33100\",\n            \"toponym\": \"string\",\n            \"street\": \"VIA PUINTAT\",\n            \"streetNumber\": 2,\n            \"streetNumberExtension\": \"A\",\n            \"floor\": \"1\",\n            \"lot\": \"2\",\n            \"staircase\": \"string\",\n            \"apartment\": \"string\",\n            \"directions\": \"string\",\n            \"description\": \"desccc\",\n            \"yCoordinate\": 46.0948035,\n            \"xCoordinate\": 13.2298188,\n            \"resourceAddressDescription\": \"description\"\n        }\n    ]\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/workforce/r1/resources"
													},
													"response": []
												},
												{
													"name": "Resource Upsert - Wrong Work Center Code",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	""
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"pm.test(\"Response status code is 404\", function () {",
																	"    pm.expect(pm.response.code).to.equal(404);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Content-Type header is application/problem+json\", function () {",
																	"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Type is a non-empty string\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.be.an('object');",
																	"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'detail'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('detail');",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "POST",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n    \"resource\": {\n        \"externalSystemCode\": \"SAP\",\n        \"surname\": \"string\",\n        \"name\": \"string\",\n        \"birthDate\": \"2024-04-15T09:38:00.931Z\",\n        \"email\": \"string\",\n        \"mobilePhone\": \"string\",\n        \"identificationNumber\": \"stMI0018\",\n        \"typeCode\": \"INT\",\n        \"color\": \"string\",\n        \"order\": 0,\n        \"operationCenterCode\": \"OCENE\",\n        \"workCenterCode\": \"1705056780968_unknown_wo_code\",\n        \"startAddressCode\": \"test\",\n        \"startAddressFromOperationCenter\": true,\n        \"endAddressFromOperationCenter\": true\n    },\n    \"addresses\": [\n        {\n            \"code\": \"test\",\n            \"streetNumber\": 3,\n            \"street\": \"VIA NUOVA\",\n            \"countryIsoAlphaCode\": \"IT\",\n            \"postalCode\": \"00119\",\n            \"municipality\": \"ROMA\",\n            \"districtAcronym\": \"RM\",\n            \"yCoordinate\": 46.0948040,\n            \"xCoordinate\": 13.2298190\n        }\n    ]\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/workforce/r1/resources"
													},
													"response": []
												},
												{
													"name": "Resource Upsert - Wrong Vehicle Code",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	""
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"pm.test(\"Response status code is 404\", function () {",
																	"    pm.expect(pm.response.code).to.equal(404);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Content-Type header is application/problem+json\", function () {",
																	"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Type is a non-empty string\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.be.an('object');",
																	"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'detail'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('detail');",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "POST",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n    \"resource\": {\n        \"externalSystemCode\": \"SAP\",\n        \"surname\": \"string\",\n        \"name\": \"string\",\n        \"birthDate\": \"2024-04-15T09:38:00.931Z\",\n        \"email\": \"string\",\n        \"mobilePhone\": \"string\",\n        \"identificationNumber\": \"stMI0018\",\n        \"typeCode\": \"INT\",\n        \"color\": \"string\",\n        \"order\": 0,\n        \"operationCenterCode\": \"OCENE\",\n        \"workCenterCode\": \"MECH\",\n        \"startAddressCode\": \"test\",\n        \"startAddressFromOperationCenter\": true,\n        \"endAddressFromOperationCenter\": true,\n        \"vehicleCode\": \"VE1000_UNKNOWN\"\n    },\n    \"addresses\": [\n        {\n            \"code\": \"test\",\n            \"streetNumber\": 3,\n            \"street\": \"VIA NUOVA\",\n            \"countryIsoAlphaCode\": \"IT\",\n            \"postalCode\": \"00119\",\n            \"municipality\": \"ROMA\",\n            \"districtAcronym\": \"RM\",\n            \"yCoordinate\": 46.0948040,\n            \"xCoordinate\": 13.2298190,\n            \"resourceAddressDescription\": \"description\"\n        }\n    ]\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/workforce/r1/resources"
													},
													"response": []
												},
												{
													"name": "Resource Upsert - Wrong Type Code",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	""
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"pm.test(\"Response status code is 404\", function () {",
																	"    pm.expect(pm.response.code).to.equal(404);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Content-Type header is application/problem+json\", function () {",
																	"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Type is a non-empty string\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.be.an('object');",
																	"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'detail'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('detail');",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "POST",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n    \"resource\": {\n        \"externalSystemCode\": \"SAP\",\n        \"surname\": \"string\",\n        \"name\": \"string\",\n        \"birthDate\": \"2024-04-15T09:38:00.931Z\",\n        \"email\": \"string\",\n        \"mobilePhone\": \"string\",\n        \"identificationNumber\": \"stMI0018\",\n        \"typeCode\": \"INT_12345678900000\",\n        \"color\": \"string\",\n        \"order\": 0,\n        \"operationCenterCode\": \"OCENE\",\n        \"workCenterCode\": \"MECH\",\n        \"startAddressCode\": \"test\",\n        \"startAddressFromOperationCenter\": true,\n        \"endAddressFromOperationCenter\": true\n    },\n    \"addresses\": [\n        {\n            \"code\": \"test\",\n            \"streetNumber\": 3,\n            \"street\": \"VIA NUOVA\",\n            \"countryIsoAlphaCode\": \"IT\",\n            \"postalCode\": \"00119\",\n            \"municipality\": \"ROMA\",\n            \"districtAcronym\": \"RM\",\n            \"yCoordinate\": 46.0948040,\n            \"xCoordinate\": 13.2298190\n        }\n    ]\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/workforce/r1/resources"
													},
													"response": []
												},
												{
													"name": "Resource Upsert - Wrong Operation Center",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	""
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"pm.test(\"Response status code is 404\", function () {",
																	"    pm.expect(pm.response.code).to.equal(404);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Content-Type header is application/problem+json\", function () {",
																	"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Type is a non-empty string\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.be.an('object');",
																	"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'detail'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('detail');",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "POST",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n    \"resource\": {\n        \"externalSystemCode\": \"SAP\",\n        \"surname\": \"string\",\n        \"name\": \"string\",\n        \"birthDate\": \"2024-04-15T09:38:00.931Z\",\n        \"email\": \"string\",\n        \"mobilePhone\": \"string\",\n        \"identificationNumber\": \"stMI0018\",\n        \"typeCode\": \"INT\",\n        \"color\": \"string\",\n        \"order\": 0,\n        \"operationCenterCode\": \"UNKNOWN_OP_CENTER_OCENE\",\n        \"workCenterCode\": \"MECH\",\n        \"startAddressCode\": \"HOUSE99\",\n        \"startAddressFromOperationCenter\": true,\n        \"endAddressFromOperationCenter\": true\n    },\n    \"addresses\": [\n        {\n            \"code\": \"test\",\n            \"streetNumber\": 3,\n            \"street\": \"VIA NUOVA\",\n            \"countryIsoAlphaCode\": \"IT\",\n            \"postalCode\": \"00119\",\n            \"municipality\": \"ROMA\",\n            \"districtAcronym\": \"RM\",\n            \"yCoordinate\": 46.0948040,\n            \"xCoordinate\": 13.2298190\n        }\n    ]\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/workforce/r1/resources"
													},
													"response": []
												}
											]
										},
										{
											"name": "Resource Upsert - Simple working scenario - UPDATE",
											"event": [
												{
													"listen": "prerequest",
													"script": {
														"exec": [
															""
														],
														"type": "text/javascript",
														"packages": {}
													}
												},
												{
													"listen": "test",
													"script": {
														"exec": [
															"pm.test(\"Response status code is No Content\", function () {",
															"  pm.expect(pm.response.code).to.equal(204);",
															"});"
														],
														"type": "text/javascript",
														"packages": {}
													}
												}
											],
											"request": {
												"method": "POST",
												"header": [],
												"body": {
													"mode": "raw",
													"raw": "{\n    \"resource\": {\n        \"externalSystemCode\": \"SAP\",\n        \"surname\": \"B\",\n        \"name\": \"A\",\n        \"birthDate\": \"2024-04-15T09:38:00.931Z\",\n        \"email\": \"a.b@test.com\",\n        \"mobilePhone\": \"123456\",\n        \"identificationNumber\": \"test-202404151255\",\n        \"typeCode\": \"INT\",\n        \"color\": \"red\",\n        \"order\": 0,\n        \"operationCenterCode\": \"OCENE\",\n        \"startAddressCode\": \"5510caa960f6-test\",\n        \"endAddressCode\": \"5510caa960f6-test\",\n        \"startAddressFromOperationCenter\": true,\n        \"endAddressFromOperationCenter\": true,\n        \"startDate\": \"2025-03-15T10:30:00.931Z\",\n        \"endDate\": \"2025-03-20T10:30:00.931Z\"\n    },\n    \"addresses\": [\n        {\n            \"code\": \"5510caa960f6-test\",\n            \"streetNumber\": 2,\n            \"street\": \"VIA PUINTAT\",\n            \"countryIsoAlphaCode\": \"IT\",\n            \"postalCode\": \"33100\",\n            \"municipality\": \"UDINE\",\n            \"districtAcronym\": \"UD\",\n            \"yCoordinate\": 46.0948035,\n            \"xCoordinate\": 13.2298188,\n            \"resourceAddressDescription\": \"resourceAddressDescription 111\"\n        }\n    ]\n}",
													"options": {
														"raw": {
															"language": "json"
														}
													}
												},
												"url": "{{integration-api-url}}/{{context-path}}/api/integration/workforce/r1/resources"
											},
											"response": []
										},
										{
											"name": "Resource Upsert - Simple working scenario - CREATE",
											"event": [
												{
													"listen": "prerequest",
													"script": {
														"exec": [
															"var nowDT = new Date(Date.now());",
															"const resourceIdentifier = \"TEST_RESOURCE_\" + nowDT.getFullYear() + \"_\" + (nowDT.getMonth()+1) + \"_\"+ nowDT.getDay().toString() + \"_\" + nowDT.getHours() + \"_\" + + nowDT.getMinutes() + \"_\" + nowDT.getSeconds() + \"_\" + nowDT.getMilliseconds();",
															"pm.collectionVariables.set(\"resourceIdentifier\",resourceIdentifier);"
														],
														"type": "text/javascript",
														"packages": {}
													}
												},
												{
													"listen": "test",
													"script": {
														"exec": [
															"pm.test(\"Response status code is 201\", function () {",
															"  pm.expect(pm.response.code).to.equal(201);",
															"});",
															"",
															"",
															"pm.test(\"Response has the required field 'id'\", function () {",
															"    const responseData = pm.response.json();",
															"    ",
															"    pm.expect(responseData).to.have.property('id');",
															"});",
															"",
															"",
															"pm.test(\"Id is a non-zero integer\", function () {",
															"  const responseData = pm.response.json();",
															"",
															"  pm.expect(responseData).to.be.an('object');",
															"  pm.expect(responseData.id).to.exist.and.to.be.a('number');",
															"  pm.expect(responseData.id).to.be.above(0);",
															"});"
														],
														"type": "text/javascript",
														"packages": {}
													}
												}
											],
											"request": {
												"method": "POST",
												"header": [],
												"body": {
													"mode": "raw",
													"raw": "{\n    \"resource\": {\n        \"externalSystemCode\": \"SAP\",\n        \"surname\": \"{{resourceIdentifier}}\",\n        \"name\": \"{{resourceIdentifier}}\",\n        \"birthDate\": \"2024-04-15T09:38:00.931Z\",\n        \"email\": \"a.b@test.com\",\n        \"mobilePhone\": \"123456\",\n        \"identificationNumber\": \"{{resourceIdentifier}}\",\n        \"typeCode\": \"INT\",\n        \"color\": \"red\",\n        \"order\": 0,\n        \"operationCenterCode\": \"OCENE\",\n        \"startAddressCode\": \"5510caa960f6-test\",\n        \"endAddressCode\": \"5510caa960f6-test\",\n        \"startAddressFromOperationCenter\": true,\n        \"endAddressFromOperationCenter\": true,\n        \"startDate\": \"2025-03-15T10:30:00.931Z\",\n        \"endDate\": \"2025-03-20T10:30:00.931Z\"\n    },\n    \"addresses\": [\n        {\n            \"code\": \"5510caa960f6-test\",\n            \"streetNumber\": 2,\n            \"street\": \"VIA PUINTAT\",\n            \"countryIsoAlphaCode\": \"IT\",\n            \"postalCode\": \"33100\",\n            \"municipality\": \"UDINE\",\n            \"districtAcronym\": \"UD\",\n            \"yCoordinate\": 46.0948035,\n            \"xCoordinate\": 13.2298188,\n            \"resourceAddressDescription\": \"resourceAddressDescription 111\"\n        }\n    ]\n}",
													"options": {
														"raw": {
															"language": "json"
														}
													}
												},
												"url": "{{integration-api-url}}/{{context-path}}/api/integration/workforce/r1/resources"
											},
											"response": []
										}
									]
								}
							]
						},
						{
							"name": "workshift",
							"item": [
								{
									"name": "1_creation",
									"item": [
										{
											"name": "error",
											"item": [
												{
													"name": "WorkShiftCreation - Wrong External System",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	""
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"",
																	"pm.test(\"Response status code is 404\", function () {",
																	"    pm.expect(pm.response.code).to.equal(404);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Content-Type header is application/problem+json\", function () {",
																	"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Type is a non-empty string\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.be.an('object');",
																	"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'detail'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('detail');",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "POST",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n    \"externalSystemCode\": \"NO_SAP_EXTERNAL_SYSTEM\",\n    \"typeCode\": \"string\",\n    \"identificationNumber\": \"string\",\n    \"operationCenterCode\": \"string\",\n    \"day\": \"2000-04-17T12:43:37.858Z\",\n    \"note\": \"string\"\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/workforce/r1/work-shifts"
													},
													"response": []
												},
												{
													"name": "WorkShiftCreation - Resource Operation Center Validation error",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	""
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"",
																	"pm.test(\"Response status code is 400\", function () {",
																	"    pm.expect(pm.response.code).to.equal(400);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Content-Type header is application/problem+json\", function () {",
																	"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Type is a non-empty string\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.be.an('object');",
																	"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'detail'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('detail');",
																	"});",
																	"",
																	"",
																	"pm.test(\"detail message value\", function () {",
																	"  const responseData = pm.response.json();",
																	"",
																	"  pm.expect(responseData).to.be.an('object');",
																	"  pm.expect(responseData.detail).to.be.equal('The operation center of the given resource OCENW must be the same as the operation center passed as input 1705044291857');",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "POST",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n    \"externalSystemCode\": \"SAP\",\n    \"typeCode\": \"string\",\n    \"identificationNumber\": \"MI0011\",\n    \"operationCenterCode\": \"1705044291857\",\n    \"day\": \"2000-04-17T12:43:37.858Z\",\n    \"note\": \"string\"\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/workforce/r1/work-shifts"
													},
													"response": []
												},
												{
													"name": "WorkShiftCreation - Wrong Work Shift Type",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	""
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"",
																	"pm.test(\"Response status code is 404\", function () {",
																	"    pm.expect(pm.response.code).to.equal(404);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Content-Type header is application/problem+json\", function () {",
																	"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Type is a non-empty string\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.be.an('object');",
																	"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'detail'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('detail');",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "POST",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n    \"externalSystemCode\": \"SAP\",\n    \"typeCode\": \"NUOVO_WORKSHIFT_TYPE_UNKNOWN__\",\n    \"identificationNumber\": \"MI0011\",\n    \"operationCenterCode\": \"OCENW\",\n    \"day\": \"2000-04-17T12:43:37.858Z\"\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/workforce/r1/work-shifts"
													},
													"response": []
												}
											]
										},
										{
											"name": "WorkShiftCreation - Simple working scenario",
											"event": [
												{
													"listen": "prerequest",
													"script": {
														"exec": [
															"var nowDT = new Date(Date.now());",
															"const identifier = \"TEST_WORK_SHIFT_\" + nowDT.getFullYear() + \"_\" + (nowDT.getMonth()+1) + \"_\"+ nowDT.getDay().toString() + \"_\" + nowDT.getHours() + \"_\" + + nowDT.getMinutes() + \"_\" + nowDT.getSeconds() + \"_\" + nowDT.getMilliseconds();",
															"pm.collectionVariables.set(\"workShiftIdentifier\",identifier);"
														],
														"type": "text/javascript",
														"packages": {}
													}
												},
												{
													"listen": "test",
													"script": {
														"exec": [
															"",
															"pm.test(\"Response status code is 201\", function () {",
															"  pm.expect(pm.response.code).to.equal(201);",
															"});",
															"",
															"",
															"pm.test(\"Response has the required field 'id'\", function () {",
															"    const responseData = pm.response.json();",
															"    ",
															"    pm.expect(responseData).to.have.property('id');",
															"});",
															"",
															"",
															"pm.test(\"Id is a non-zero integer\", function () {",
															"  const responseData = pm.response.json();",
															"",
															"  pm.expect(responseData).to.be.an('object');",
															"  pm.expect(responseData.id).to.exist.and.to.be.a('number');",
															"  pm.expect(responseData.id).to.be.above(0);",
															"});"
														],
														"type": "text/javascript",
														"packages": {}
													}
												}
											],
											"request": {
												"method": "POST",
												"header": [],
												"body": {
													"mode": "raw",
													"raw": "{\n    \"externalSystemCode\": \"SAP\",\n    \"typeCode\": \"HOL\",\n    \"identificationNumber\": \"TEST_RESOURCE_2024_8_1_10_59_20_497\",\n    \"operationCenterCode\": \"OCENE\",\n    \"day\": \"2000-04-17T12:43:37.858Z\",\n    \"note\": \"Nota - {{workShiftIdentifier}}\"\n}",
													"options": {
														"raw": {
															"language": "json"
														}
													}
												},
												"url": "{{integration-api-url}}/{{context-path}}/api/integration/workforce/r1/work-shifts"
											},
											"response": []
										}
									]
								},
								{
									"name": "2_update",
									"item": [
										{
											"name": "error",
											"item": [
												{
													"name": "WorkShiftUpdate - Wrong External System",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	""
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"",
																	"pm.test(\"Response status code is 404\", function () {",
																	"    pm.expect(pm.response.code).to.equal(404);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Content-Type header is application/problem+json\", function () {",
																	"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Type is a non-empty string\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.be.an('object');",
																	"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'detail'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('detail');",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "PATCH",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n    \"typeCode\": \"string\",\n    \"clockingTypeCode\": \"string\",\n    \"transferTimeTypeCode\": \"string\",\n    \"availabilityTypeCode\": \"string\",\n    \"startDate\": \"10:00\",\n    \"endDate\": \"19:00\",\n    \"breakStart\": \"12:00\",\n    \"breakEnd\": \"13:00\",\n    \"overtimeMinute\": 0,\n    \"note\": \"string\"\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": {
															"raw": "{{integration-api-url}}/{{context-path}}/api/integration/workforce/r1/work-shifts?externalSystemCode=NO_SAP_EXTERNAL_SYSTEM&identificationNumber=string&day=2000-04-17T12:43:37.858Z",
															"host": [
																"{{integration-api-url}}"
															],
															"path": [
																"{{context-path}}",
																"api",
																"integration",
																"workforce",
																"r1",
																"work-shifts"
															],
															"query": [
																{
																	"key": "externalSystemCode",
																	"value": "NO_SAP_EXTERNAL_SYSTEM"
																},
																{
																	"key": "identificationNumber",
																	"value": "string"
																},
																{
																	"key": "day",
																	"value": "2000-04-17T12:43:37.858Z"
																}
															]
														}
													},
													"response": []
												},
												{
													"name": "WorkShiftUpdate - Resurce Identification Number Not Found",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	""
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"",
																	"pm.test(\"Response status code is 404\", function () {",
																	"    pm.expect(pm.response.code).to.equal(404);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Content-Type header is application/problem+json\", function () {",
																	"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Type is a non-empty string\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.be.an('object');",
																	"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'detail'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('detail');",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "PATCH",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n    \"typeCode\": \"string\",\n    \"clockingTypeCode\": \"string\",\n    \"transferTimeTypeCode\": \"string\",\n    \"availabilityTypeCode\": \"string\",\n    \"startDate\": \"10:00\",\n    \"endDate\": \"19:00\",\n    \"breakStart\": \"12:00\",\n    \"breakEnd\": \"13:00\",\n    \"overtimeMinute\": 0,\n    \"note\": \"string\"\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": {
															"raw": "{{integration-api-url}}/{{context-path}}/api/integration/workforce/r1/work-shifts?externalSystemCode=SAP&identificationNumber=NUOVOIDNUMBER_UNKNOWN_&day=2000-04-17T12:43:37.858Z",
															"host": [
																"{{integration-api-url}}"
															],
															"path": [
																"{{context-path}}",
																"api",
																"integration",
																"workforce",
																"r1",
																"work-shifts"
															],
															"query": [
																{
																	"key": "externalSystemCode",
																	"value": "SAP"
																},
																{
																	"key": "identificationNumber",
																	"value": "NUOVOIDNUMBER_UNKNOWN_"
																},
																{
																	"key": "day",
																	"value": "2000-04-17T12:43:37.858Z"
																}
															]
														}
													},
													"response": []
												},
												{
													"name": "WorkShiftUpdate - WorkShift Not Found",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	""
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"",
																	"pm.test(\"Response status code is 400\", function () {",
																	"    pm.expect(pm.response.code).to.equal(400);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Content-Type header is application/problem+json\", function () {",
																	"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Type is a non-empty string\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.be.an('object');",
																	"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'detail'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('detail');",
																	"});",
																	"",
																	"",
																	"pm.test(\"detail message value\", function () {",
																	"  const responseData = pm.response.json();",
																	"",
																	"  pm.expect(responseData).to.be.an('object');",
																	"  pm.expect(responseData.detail).to.be.equal('No Work Shift found for Resource MI0030 in time range 2000-09-10T00:00Z to 2000-09-10T23:59:59.999Z');",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "PATCH",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n    \"typeCode\": \"string\",\n    \"clockingTypeCode\": \"01\",\n    \"transferTimeTypeCode\": \"ONLY-END\",\n    \"startDate\": \"06:30\",\n    \"endDate\": \"19:30\",\n    \"breakStart\": \"13:30\",\n    \"breakEnd\": \"14:30\"\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": {
															"raw": "{{integration-api-url}}/{{context-path}}/api/integration/workforce/r1/work-shifts?externalSystemCode=SAP&identificationNumber=MI0030&day=2000-09-10T12:43:37.858Z",
															"host": [
																"{{integration-api-url}}"
															],
															"path": [
																"{{context-path}}",
																"api",
																"integration",
																"workforce",
																"r1",
																"work-shifts"
															],
															"query": [
																{
																	"key": "externalSystemCode",
																	"value": "SAP"
																},
																{
																	"key": "identificationNumber",
																	"value": "MI0030"
																},
																{
																	"key": "day",
																	"value": "2000-09-10T12:43:37.858Z"
																}
															]
														}
													},
													"response": []
												},
												{
													"name": "WorkShiftUpdate - Wrong Clocking Type",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	""
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"",
																	"pm.test(\"Response status code is 404\", function () {",
																	"    pm.expect(pm.response.code).to.equal(404);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Content-Type header is application/problem+json\", function () {",
																	"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Type is a non-empty string\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.be.an('object');",
																	"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'detail'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('detail');",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "PATCH",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n    \"typeCode\": \"string\",\n    \"clockingTypeCode\": \"NUOVO_CLOCKING_TYPE_UNKNOWN__\",\n    \"transferTimeTypeCode\": \"ONLY-END\",\n    \"startDate\": \"07:30\",\n    \"endDate\": \"18:30\",\n    \"breakStart\": \"13:15\",\n    \"breakEnd\": \"14:15\",\n    \"overtimeMinute\": 0,\n    \"note\": \"Updated notes\"\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": {
															"raw": "{{integration-api-url}}/{{context-path}}/api/integration/workforce/r1/work-shifts?externalSystemCode=SAP&identificationNumber=TEST_RESOURCE_2024_8_1_10_59_20_497&day=2000-04-17T12:43:37.858Z",
															"host": [
																"{{integration-api-url}}"
															],
															"path": [
																"{{context-path}}",
																"api",
																"integration",
																"workforce",
																"r1",
																"work-shifts"
															],
															"query": [
																{
																	"key": "externalSystemCode",
																	"value": "SAP"
																},
																{
																	"key": "identificationNumber",
																	"value": "TEST_RESOURCE_2024_8_1_10_59_20_497"
																},
																{
																	"key": "day",
																	"value": "2000-04-17T12:43:37.858Z"
																}
															]
														}
													},
													"response": []
												},
												{
													"name": "WorkShiftUpdate - Wrong Transfer Time Type",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	""
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"",
																	"pm.test(\"Response status code is 404\", function () {",
																	"    pm.expect(pm.response.code).to.equal(404);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Content-Type header is application/problem+json\", function () {",
																	"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Type is a non-empty string\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.be.an('object');",
																	"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'detail'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('detail');",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "PATCH",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n    \"typeCode\": \"string\",\n    \"clockingTypeCode\": \"01\",\n    \"transferTimeTypeCode\": \"NUOVO_TRANSFER_TIME_TYPE_UNKNOWN__\",\n    \"startDate\": \"07:30\",\n    \"endDate\": \"18:30\",\n    \"breakStart\": \"13:15\",\n    \"breakEnd\": \"14:15\",\n    \"overtimeMinute\": 0,\n    \"note\": \"Updated notes\"\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": {
															"raw": "{{integration-api-url}}/{{context-path}}/api/integration/workforce/r1/work-shifts?externalSystemCode=SAP&identificationNumber=TEST_RESOURCE_2024_8_1_10_59_20_497&day=2000-04-17T12:43:37.858Z",
															"host": [
																"{{integration-api-url}}"
															],
															"path": [
																"{{context-path}}",
																"api",
																"integration",
																"workforce",
																"r1",
																"work-shifts"
															],
															"query": [
																{
																	"key": "externalSystemCode",
																	"value": "SAP"
																},
																{
																	"key": "identificationNumber",
																	"value": "TEST_RESOURCE_2024_8_1_10_59_20_497"
																},
																{
																	"key": "day",
																	"value": "2000-04-17T12:43:37.858Z"
																}
															]
														}
													},
													"response": []
												},
												{
													"name": "WorkShiftUpdate - Wrong Work Shift Type",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	""
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"",
																	"pm.test(\"Response status code is 404\", function () {",
																	"    pm.expect(pm.response.code).to.equal(404);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Content-Type header is application/problem+json\", function () {",
																	"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Type is a non-empty string\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.be.an('object');",
																	"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'detail'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('detail');",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "PATCH",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n    \"typeCode\": \"NUOVO_WORKSHIFT_TYPE_UNKNOWN__\",\n    \"overtimeMinute\": 0,\n    \"note\": \"Updated notes\"\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": {
															"raw": "{{integration-api-url}}/{{context-path}}/api/integration/workforce/r1/work-shifts?externalSystemCode=SAP&identificationNumber=TEST_RESOURCE_2024_8_1_10_59_20_497&day=2000-04-17T12:43:37.858Z",
															"host": [
																"{{integration-api-url}}"
															],
															"path": [
																"{{context-path}}",
																"api",
																"integration",
																"workforce",
																"r1",
																"work-shifts"
															],
															"query": [
																{
																	"key": "externalSystemCode",
																	"value": "SAP"
																},
																{
																	"key": "identificationNumber",
																	"value": "TEST_RESOURCE_2024_8_1_10_59_20_497"
																},
																{
																	"key": "day",
																	"value": "2000-04-17T12:43:37.858Z"
																}
															]
														}
													},
													"response": []
												}
											]
										},
										{
											"name": "WorkShiftUpdate - Simple working scenario",
											"event": [
												{
													"listen": "prerequest",
													"script": {
														"exec": [
															"var nowDT = new Date(Date.now());",
															"const identifier = \"TEST_WORK_SHIFT_\" + nowDT.getFullYear() + \"_\" + (nowDT.getMonth()+1) + \"_\"+ nowDT.getDay().toString() + \"_\" + nowDT.getHours() + \"_\" + + nowDT.getMinutes() + \"_\" + nowDT.getSeconds() + \"_\" + nowDT.getMilliseconds();",
															"pm.collectionVariables.set(\"workShiftIdentifier\",identifier);"
														],
														"type": "text/javascript",
														"packages": {}
													}
												},
												{
													"listen": "test",
													"script": {
														"exec": [
															"pm.test(\"Response status code is No Content\", function () {",
															"  pm.expect(pm.response.code).to.equal(204);",
															"});"
														],
														"type": "text/javascript",
														"packages": {}
													}
												}
											],
											"request": {
												"method": "PATCH",
												"header": [],
												"body": {
													"mode": "raw",
													"raw": "{\n    \"typeCode\": \"string\",\n    \"clockingTypeCode\": \"01\",\n    \"transferTimeTypeCode\": \"ONLY-END\",\n    \"availabilityTypeCode\": \"NORMAL\",\n    \"startDate\": \"08:00\",\n    \"endDate\": \"18:30\",\n    \"breakStart\": \"13:15\",\n    \"breakEnd\": \"14:15\",\n    \"overtimeMinute\": 0,\n    \"note\": \"Updated notes - {{workShiftIdentifier}}\"\n}",
													"options": {
														"raw": {
															"language": "json"
														}
													}
												},
												"url": {
													"raw": "{{integration-api-url}}/{{context-path}}/api/integration/workforce/r1/work-shifts?externalSystemCode=SAP&identificationNumber=TEST_RESOURCE_2024_8_1_10_59_20_497&day=2000-04-17T12:43:37.858Z",
													"host": [
														"{{integration-api-url}}"
													],
													"path": [
														"{{context-path}}",
														"api",
														"integration",
														"workforce",
														"r1",
														"work-shifts"
													],
													"query": [
														{
															"key": "externalSystemCode",
															"value": "SAP"
														},
														{
															"key": "identificationNumber",
															"value": "TEST_RESOURCE_2024_8_1_10_59_20_497"
														},
														{
															"key": "day",
															"value": "2000-04-17T12:43:37.858Z"
														}
													]
												}
											},
											"response": []
										}
									]
								},
								{
									"name": "3_delete",
									"item": [
										{
											"name": "error",
											"item": [
												{
													"name": "WorkShiftDeletion - Wrong External System",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	""
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"",
																	"pm.test(\"Response status code is 404\", function () {",
																	"    pm.expect(pm.response.code).to.equal(404);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Content-Type header is application/problem+json\", function () {",
																	"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Type is a non-empty string\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.be.an('object');",
																	"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'detail'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('detail');",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "DELETE",
														"header": [],
														"url": {
															"raw": "{{integration-api-url}}/{{context-path}}/api/integration/workforce/r1/work-shifts?externalSystemCode=NO_SAP_EXTERNAL_SYSTEM&identificationNumber=MI0029&from=1999-09-27T09:55:18.337Z&to=1999-09-27T09:55:18.337Z",
															"host": [
																"{{integration-api-url}}"
															],
															"path": [
																"{{context-path}}",
																"api",
																"integration",
																"workforce",
																"r1",
																"work-shifts"
															],
															"query": [
																{
																	"key": "externalSystemCode",
																	"value": "NO_SAP_EXTERNAL_SYSTEM"
																},
																{
																	"key": "identificationNumber",
																	"value": "MI0029"
																},
																{
																	"key": "from",
																	"value": "1999-09-27T09:55:18.337Z"
																},
																{
																	"key": "to",
																	"value": "1999-09-27T09:55:18.337Z"
																}
															]
														}
													},
													"response": []
												},
												{
													"name": "WorkShiftDeletion - Resource Not Found",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	""
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"",
																	"pm.test(\"Response status code is 404\", function () {",
																	"    pm.expect(pm.response.code).to.equal(404);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Content-Type header is application/problem+json\", function () {",
																	"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Type is a non-empty string\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.be.an('object');",
																	"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'detail'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('detail');",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "DELETE",
														"header": [],
														"url": {
															"raw": "{{integration-api-url}}/{{context-path}}/api/integration/workforce/r1/work-shifts?externalSystemCode=SAP&identificationNumber=NUOVOIDNUMBER_UNKNOWN__&from=1999-09-27T09:55:18.337Z&to=1999-09-27T09:55:18.337Z",
															"host": [
																"{{integration-api-url}}"
															],
															"path": [
																"{{context-path}}",
																"api",
																"integration",
																"workforce",
																"r1",
																"work-shifts"
															],
															"query": [
																{
																	"key": "externalSystemCode",
																	"value": "SAP"
																},
																{
																	"key": "identificationNumber",
																	"value": "NUOVOIDNUMBER_UNKNOWN__"
																},
																{
																	"key": "from",
																	"value": "1999-09-27T09:55:18.337Z"
																},
																{
																	"key": "to",
																	"value": "1999-09-27T09:55:18.337Z"
																}
															]
														}
													},
													"response": []
												},
												{
													"name": "WorkShiftDeletion - WorkShift Not Found",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	""
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"",
																	"pm.test(\"Response status code is 400\", function () {",
																	"    pm.expect(pm.response.code).to.equal(400);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Content-Type header is application/problem+json\", function () {",
																	"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Type is a non-empty string\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.be.an('object');",
																	"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'detail'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('detail');",
																	"});",
																	"",
																	"",
																	"pm.test(\"detail message value\", function () {",
																	"  const responseData = pm.response.json();",
																	"",
																	"  pm.expect(responseData).to.be.an('object');",
																	"  pm.expect(responseData.detail).to.contain('No Work Shift found for Resource MI0029 in time range 1999-09-27T09:55:18.337Z to 1999-09-27T09:55:18.337Z');",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "DELETE",
														"header": [],
														"url": {
															"raw": "{{integration-api-url}}/{{context-path}}/api/integration/workforce/r1/work-shifts?externalSystemCode=SAP&identificationNumber=MI0029&from=1999-09-27T09:55:18.337Z&to=1999-09-27T09:55:18.337Z",
															"host": [
																"{{integration-api-url}}"
															],
															"path": [
																"{{context-path}}",
																"api",
																"integration",
																"workforce",
																"r1",
																"work-shifts"
															],
															"query": [
																{
																	"key": "externalSystemCode",
																	"value": "SAP"
																},
																{
																	"key": "identificationNumber",
																	"value": "MI0029"
																},
																{
																	"key": "from",
																	"value": "1999-09-27T09:55:18.337Z"
																},
																{
																	"key": "to",
																	"value": "1999-09-27T09:55:18.337Z"
																}
															]
														}
													},
													"response": []
												}
											]
										},
										{
											"name": "WorkShiftDeletion - Simple Working Scenario",
											"event": [
												{
													"listen": "prerequest",
													"script": {
														"exec": [
															""
														],
														"type": "text/javascript",
														"packages": {}
													}
												},
												{
													"listen": "test",
													"script": {
														"exec": [
															"",
															"pm.test(\"Response status code is No Content\", function () {",
															"    pm.expect(pm.response.code).to.equal(204);",
															"});"
														],
														"type": "text/javascript",
														"packages": {}
													}
												}
											],
											"request": {
												"method": "DELETE",
												"header": [],
												"url": {
													"raw": "{{integration-api-url}}/{{context-path}}/api/integration/workforce/r1/work-shifts?externalSystemCode=SAP&identificationNumber=TEST_RESOURCE_2024_8_1_10_59_20_497&from=2000-04-17T07:55:18.337Z&to=2000-04-17T20:55:18.337Z",
													"host": [
														"{{integration-api-url}}"
													],
													"path": [
														"{{context-path}}",
														"api",
														"integration",
														"workforce",
														"r1",
														"work-shifts"
													],
													"query": [
														{
															"key": "externalSystemCode",
															"value": "SAP"
														},
														{
															"key": "identificationNumber",
															"value": "TEST_RESOURCE_2024_8_1_10_59_20_497"
														},
														{
															"key": "from",
															"value": "2000-04-17T07:55:18.337Z"
														},
														{
															"key": "to",
															"value": "2000-04-17T20:55:18.337Z"
														}
													]
												}
											},
											"response": []
										}
									]
								},
								{
									"name": "type",
									"item": [
										{
											"name": "creation",
											"item": [
												{
													"name": "error",
													"item": [
														{
															"name": "WorkShiftTypeCreate - Wrong External System",
															"event": [
																{
																	"listen": "prerequest",
																	"script": {
																		"exec": [
																			""
																		],
																		"type": "text/javascript",
																		"packages": {}
																	}
																},
																{
																	"listen": "test",
																	"script": {
																		"exec": [
																			"",
																			"pm.test(\"Response status code is 404\", function () {",
																			"    pm.expect(pm.response.code).to.equal(404);",
																			"});",
																			"",
																			"",
																			"pm.test(\"Content-Type header is application/problem+json\", function () {",
																			"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																			"});",
																			"",
																			"",
																			"pm.test(\"Type is a non-empty string\", function () {",
																			"    const responseData = pm.response.json();",
																			"    ",
																			"    pm.expect(responseData).to.be.an('object');",
																			"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																			"});",
																			"",
																			"",
																			"pm.test(\"Status is a non-negative integer\", function () {",
																			"  const responseData = pm.response.json();",
																			"  ",
																			"  pm.expect(responseData.status).to.be.a('number');",
																			"  pm.expect(responseData.status).to.be.at.least(0);",
																			"});"
																		],
																		"type": "text/javascript",
																		"packages": {}
																	}
																}
															],
															"request": {
																"method": "POST",
																"header": [],
																"body": {
																	"mode": "raw",
																	"raw": "{\n    \"externalSystemCode\": \"NO_SAP_EXTERNAL_SYSTEM\",\n    \"code\": \"string\",\n    \"description\": \"string\",\n    \"startTime\": \"10:00\",\n    \"endTime\": \"11:00\",\n    \"order\": 0,\n    \"active\": true,\n    \"overtimeMinute\": 0,\n    \"operationCenterCode\": \"string\"\n}",
																	"options": {
																		"raw": {
																			"language": "json"
																		}
																	}
																},
																"url": "{{integration-api-url}}/{{context-path}}/api/integration/workforce/r1/work-shift-types"
															},
															"response": []
														},
														{
															"name": "WorkShiftTypeCreate - Wrong Operation Center",
															"event": [
																{
																	"listen": "prerequest",
																	"script": {
																		"exec": [
																			""
																		],
																		"type": "text/javascript",
																		"packages": {}
																	}
																},
																{
																	"listen": "test",
																	"script": {
																		"exec": [
																			"",
																			"pm.test(\"Response status code is 404\", function () {",
																			"    pm.expect(pm.response.code).to.equal(404);",
																			"});",
																			"",
																			"",
																			"pm.test(\"Content-Type header is application/problem+json\", function () {",
																			"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																			"});",
																			"",
																			"",
																			"pm.test(\"Type is a non-empty string\", function () {",
																			"    const responseData = pm.response.json();",
																			"    ",
																			"    pm.expect(responseData).to.be.an('object');",
																			"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																			"});",
																			"",
																			"",
																			"pm.test(\"Status is a non-negative integer\", function () {",
																			"  const responseData = pm.response.json();",
																			"  ",
																			"  pm.expect(responseData.status).to.be.a('number');",
																			"  pm.expect(responseData.status).to.be.at.least(0);",
																			"});"
																		],
																		"type": "text/javascript",
																		"packages": {}
																	}
																}
															],
															"request": {
																"method": "POST",
																"header": [],
																"body": {
																	"mode": "raw",
																	"raw": "{\n    \"externalSystemCode\": \"SAP\",\n    \"code\": \"string\",\n    \"description\": \"string\",\n    \"startTime\": \"10:00\",\n    \"endTime\": \"11:00\",\n    \"order\": 0,\n    \"active\": true,\n    \"overtimeMinute\": 0,\n    \"operationCenterCode\": \"UNKNOWN_OP_CENTER_\"\n}",
																	"options": {
																		"raw": {
																			"language": "json"
																		}
																	}
																},
																"url": "{{integration-api-url}}/{{context-path}}/api/integration/workforce/r1/work-shift-types"
															},
															"response": []
														}
													]
												},
												{
													"name": "WorkShiftTypeCreate - Simple working scenario",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	"var nowDT = new Date(Date.now());",
																	"//Attenzione: il valore non deve superare 20 caratteri",
																	"const workShiftTypeIdentifier = \"ID_\" + nowDT.getFullYear() + (nowDT.getMonth()+1) + nowDT.getDay().toString() + nowDT.getHours() + nowDT.getMinutes() + nowDT.getSeconds() + nowDT.getMilliseconds();",
																	"",
																	"pm.collectionVariables.set(\"workShiftTypeIdentifier\",workShiftTypeIdentifier);"
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"",
																	"pm.test(\"Response status code is Created\", function () {",
																	"    pm.expect(pm.response.code).to.equal(201);",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "POST",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n    \"externalSystemCode\": \"SAP\",\n    \"code\": \"{{workShiftTypeIdentifier}}\",\n    \"description\": \"WorkShiftType-{{workShiftTypeIdentifier}}\",\n    \"startTime\": \"08:00\",\n    \"endTime\": \"16:00\",\n    \"order\": 0,\n    \"active\": true,\n    \"overtimeMinute\": 0,\n    \"operationCenterCode\": \"1705044291857\",\n    \"note\": \"note\"\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/workforce/r1/work-shift-types"
													},
													"response": []
												}
											]
										},
										{
											"name": "update",
											"item": [
												{
													"name": "error",
													"item": [
														{
															"name": "WorkShiftTypeUpdate - Wrong External System",
															"event": [
																{
																	"listen": "prerequest",
																	"script": {
																		"exec": [
																			""
																		],
																		"type": "text/javascript",
																		"packages": {}
																	}
																},
																{
																	"listen": "test",
																	"script": {
																		"exec": [
																			"",
																			"pm.test(\"Response status code is 404\", function () {",
																			"    pm.expect(pm.response.code).to.equal(404);",
																			"});",
																			"",
																			"",
																			"pm.test(\"Content-Type header is application/problem+json\", function () {",
																			"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																			"});",
																			"",
																			"",
																			"pm.test(\"Type is a non-empty string\", function () {",
																			"    const responseData = pm.response.json();",
																			"    ",
																			"    pm.expect(responseData).to.be.an('object');",
																			"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																			"});",
																			"",
																			"",
																			"pm.test(\"Status is a non-negative integer\", function () {",
																			"  const responseData = pm.response.json();",
																			"  ",
																			"  pm.expect(responseData.status).to.be.a('number');",
																			"  pm.expect(responseData.status).to.be.at.least(0);",
																			"});"
																		],
																		"type": "text/javascript",
																		"packages": {}
																	}
																}
															],
															"request": {
																"method": "PATCH",
																"header": [],
																"body": {
																	"mode": "raw",
																	"raw": "{\n    \"code\": \"ID_202444124336938\",\n    \"description\": \"string\",\n    \"startTime\": \"10:00\",\n    \"endTime\": \"11:00\",\n    \"order\": 0,\n    \"active\": true,\n    \"overtimeMinute\": 0,\n    \"operationCenterCode\": \"string\"\n}",
																	"options": {
																		"raw": {
																			"language": "json"
																		}
																	}
																},
																"url": {
																	"raw": "{{integration-api-url}}/{{context-path}}/api/integration/workforce/r1/work-shift-types/ID_202444124336938?externalSystemCode=NO_SAP_EXTERNAL_SYSTEM",
																	"host": [
																		"{{integration-api-url}}"
																	],
																	"path": [
																		"{{context-path}}",
																		"api",
																		"integration",
																		"workforce",
																		"r1",
																		"work-shift-types",
																		"ID_202444124336938"
																	],
																	"query": [
																		{
																			"key": "externalSystemCode",
																			"value": "NO_SAP_EXTERNAL_SYSTEM"
																		}
																	]
																}
															},
															"response": []
														},
														{
															"name": "WorkShiftTypeUpdate - Wrong Operation Center",
															"event": [
																{
																	"listen": "prerequest",
																	"script": {
																		"exec": [
																			""
																		],
																		"type": "text/javascript",
																		"packages": {}
																	}
																},
																{
																	"listen": "test",
																	"script": {
																		"exec": [
																			"",
																			"pm.test(\"Response status code is 404\", function () {",
																			"    pm.expect(pm.response.code).to.equal(404);",
																			"});",
																			"",
																			"",
																			"pm.test(\"Content-Type header is application/problem+json\", function () {",
																			"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																			"});",
																			"",
																			"",
																			"pm.test(\"Type is a non-empty string\", function () {",
																			"    const responseData = pm.response.json();",
																			"    ",
																			"    pm.expect(responseData).to.be.an('object');",
																			"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																			"});",
																			"",
																			"",
																			"pm.test(\"Status is a non-negative integer\", function () {",
																			"  const responseData = pm.response.json();",
																			"  ",
																			"  pm.expect(responseData.status).to.be.a('number');",
																			"  pm.expect(responseData.status).to.be.at.least(0);",
																			"});"
																		],
																		"type": "text/javascript",
																		"packages": {}
																	}
																}
															],
															"request": {
																"method": "PATCH",
																"header": [],
																"body": {
																	"mode": "raw",
																	"raw": "{\n    \"code\": \"ID_202444124336938\",\n    \"description\": \"string\",\n    \"startTime\": \"10:00\",\n    \"endTime\": \"11:00\",\n    \"order\": 0,\n    \"active\": true,\n    \"overtimeMinute\": 0,\n    \"operationCenterCode\": \"UNKNOWN_OP_CENTER_\"\n}",
																	"options": {
																		"raw": {
																			"language": "json"
																		}
																	}
																},
																"url": {
																	"raw": "{{integration-api-url}}/{{context-path}}/api/integration/workforce/r1/work-shift-types/ID_202444124336938?externalSystemCode=SAP",
																	"host": [
																		"{{integration-api-url}}"
																	],
																	"path": [
																		"{{context-path}}",
																		"api",
																		"integration",
																		"workforce",
																		"r1",
																		"work-shift-types",
																		"ID_202444124336938"
																	],
																	"query": [
																		{
																			"key": "externalSystemCode",
																			"value": "SAP"
																		}
																	]
																}
															},
															"response": []
														}
													]
												},
												{
													"name": "WorkShiftTypeUpdate - Simple working scenario",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	"var nowDT = new Date(Date.now());",
																	"",
																	"const workShiftTypeDescriptionUpdated = \"NEW_WORK_SHIFT_TYPE_DESCRIPTION_\" + nowDT.getFullYear() + (nowDT.getMonth()+1) + nowDT.getDay().toString() + nowDT.getHours() + nowDT.getMinutes() + nowDT.getSeconds() + nowDT.getMilliseconds();",
																	"",
																	"pm.collectionVariables.set(\"workShiftTypeDescriptionUpdated\",workShiftTypeDescriptionUpdated);",
																	"",
																	"const workShiftTypeNotesUpdated = \"UPDATED_NOTES_\" + nowDT.getFullYear() + (nowDT.getMonth()+1) + nowDT.getDay().toString() + nowDT.getHours() + nowDT.getMinutes() + nowDT.getSeconds() + nowDT.getMilliseconds();",
																	"",
																	"pm.collectionVariables.set(\"workShiftTypeNotesUpdated\",workShiftTypeNotesUpdated);"
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"",
																	"pm.test(\"Response status code is No Content\", function () {",
																	"    pm.expect(pm.response.code).to.equal(204);",
																	"});",
																	""
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "PATCH",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n    \"code\": \"ID_202444124336938\",\n    \"description\": \"{{workShiftTypeDescriptionUpdated}}\",\n    \"startTime\": \"08:00\",\n    \"endTime\": \"18:00\",\n    \"order\": 0,\n    \"active\": true,\n    \"overtimeMinute\": 0,\n    \"operationCenterCode\": \"1705044291857\",\n    \"note\": \"{{workShiftTypeNotesUpdated}}\"\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": {
															"raw": "{{integration-api-url}}/{{context-path}}/api/integration/workforce/r1/work-shift-types/ID_202444124336938?externalSystemCode=SAP",
															"host": [
																"{{integration-api-url}}"
															],
															"path": [
																"{{context-path}}",
																"api",
																"integration",
																"workforce",
																"r1",
																"work-shift-types",
																"ID_202444124336938"
															],
															"query": [
																{
																	"key": "externalSystemCode",
																	"value": "SAP"
																}
															]
														}
													},
													"response": []
												}
											]
										}
									]
								},
								{
									"name": "exceptions",
									"item": [
										{
											"name": "1_creation",
											"item": [
												{
													"name": "error",
													"item": [
														{
															"name": "WorkShiftExceptionCreation - Wrong External System",
															"event": [
																{
																	"listen": "prerequest",
																	"script": {
																		"exec": [
																			""
																		],
																		"type": "text/javascript",
																		"packages": {}
																	}
																},
																{
																	"listen": "test",
																	"script": {
																		"exec": [
																			"",
																			"pm.test(\"Response status code is 404\", function () {",
																			"    pm.expect(pm.response.code).to.equal(404);",
																			"});",
																			"",
																			"",
																			"pm.test(\"Content-Type header is application/problem+json\", function () {",
																			"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																			"});",
																			"",
																			"",
																			"pm.test(\"Type is a non-empty string\", function () {",
																			"    const responseData = pm.response.json();",
																			"    ",
																			"    pm.expect(responseData).to.be.an('object');",
																			"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																			"});",
																			"",
																			"",
																			"pm.test(\"Response has the required field 'detail'\", function () {",
																			"    const responseData = pm.response.json();",
																			"    ",
																			"    pm.expect(responseData).to.have.property('detail');",
																			"});"
																		],
																		"type": "text/javascript",
																		"packages": {}
																	}
																}
															],
															"request": {
																"method": "POST",
																"header": [],
																"body": {
																	"mode": "raw",
																	"raw": "{\n    \"externalSystemCode\": \"NO_SAP_EXTERNAL_SYSTEM\",\n    \"identificationNumber\": \"NUOVOIDNUMBER_UNKNOWN\",\n    \"typeCode\": \"string\",\n    \"startDate\": \"2024-04-17T12:43:37.858Z\",\n    \"endDate\": \"2024-04-17T12:43:37.858Z\"\n}",
																	"options": {
																		"raw": {
																			"language": "json"
																		}
																	}
																},
																"url": "{{integration-api-url}}/{{context-path}}/api/integration/workforce/r1/work-shift-exceptions"
															},
															"response": []
														},
														{
															"name": "WorkShiftExceptionCreation - Unknown Resource Identification Number",
															"event": [
																{
																	"listen": "prerequest",
																	"script": {
																		"exec": [
																			""
																		],
																		"type": "text/javascript",
																		"packages": {}
																	}
																},
																{
																	"listen": "test",
																	"script": {
																		"exec": [
																			"",
																			"pm.test(\"Response status code is 404\", function () {",
																			"    pm.expect(pm.response.code).to.equal(404);",
																			"});",
																			"",
																			"",
																			"pm.test(\"Content-Type header is application/problem+json\", function () {",
																			"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																			"});",
																			"",
																			"",
																			"pm.test(\"Type is a non-empty string\", function () {",
																			"    const responseData = pm.response.json();",
																			"    ",
																			"    pm.expect(responseData).to.be.an('object');",
																			"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																			"});",
																			"",
																			"",
																			"pm.test(\"Response has the required field 'detail'\", function () {",
																			"    const responseData = pm.response.json();",
																			"    ",
																			"    pm.expect(responseData).to.have.property('detail');",
																			"});"
																		],
																		"type": "text/javascript",
																		"packages": {}
																	}
																}
															],
															"request": {
																"method": "POST",
																"header": [],
																"body": {
																	"mode": "raw",
																	"raw": "{\n    \"externalSystemCode\": \"SAP\",\n    \"identificationNumber\": \"NUOVOIDNUMBER_UNKNOWN_\",\n    \"typeCode\": \"ASSN1\",\n    \"startDate\": \"2024-04-17T12:43:37.858Z\",\n    \"endDate\": \"2024-04-17T12:43:37.858Z\"\n}",
																	"options": {
																		"raw": {
																			"language": "json"
																		}
																	}
																},
																"url": "{{integration-api-url}}/{{context-path}}/api/integration/workforce/r1/work-shift-exceptions"
															},
															"response": []
														},
														{
															"name": "WorkShiftExceptionCreation - Unknown Work Shift Exception Type",
															"event": [
																{
																	"listen": "prerequest",
																	"script": {
																		"exec": [
																			""
																		],
																		"type": "text/javascript",
																		"packages": {}
																	}
																},
																{
																	"listen": "test",
																	"script": {
																		"exec": [
																			"",
																			"pm.test(\"Response status code is 404\", function () {",
																			"    pm.expect(pm.response.code).to.equal(404);",
																			"});",
																			"",
																			"",
																			"pm.test(\"Content-Type header is application/problem+json\", function () {",
																			"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																			"});",
																			"",
																			"",
																			"pm.test(\"Type is a non-empty string\", function () {",
																			"    const responseData = pm.response.json();",
																			"    ",
																			"    pm.expect(responseData).to.be.an('object');",
																			"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																			"});",
																			"",
																			"",
																			"pm.test(\"Response has the required field 'detail'\", function () {",
																			"    const responseData = pm.response.json();",
																			"    ",
																			"    pm.expect(responseData).to.have.property('detail');",
																			"});"
																		],
																		"type": "text/javascript",
																		"packages": {}
																	}
																}
															],
															"request": {
																"method": "POST",
																"header": [],
																"body": {
																	"mode": "raw",
																	"raw": "{\n    \"externalSystemCode\": \"SAP\",\n    \"identificationNumber\": \"MI0030\",\n    \"typeCode\": \"NUOVOTYPECODE_UNKNOWN\",\n    \"startDate\": \"2024-04-17T12:43:37.858Z\",\n    \"endDate\": \"2024-04-17T12:43:37.858Z\"\n}",
																	"options": {
																		"raw": {
																			"language": "json"
																		}
																	}
																},
																"url": "{{integration-api-url}}/{{context-path}}/api/integration/workforce/r1/work-shift-exceptions"
															},
															"response": []
														}
													]
												},
												{
													"name": "WorkShiftExceptionCreation - Simple working execution",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	""
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"",
																	"pm.test(\"Response status code is 201\", function () {",
																	"  pm.expect(pm.response.code).to.equal(201);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'id'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('ids');",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "POST",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n    \"externalSystemCode\": \"SAP\",\n    \"identificationNumber\": \"MI0030\",\n    \"typeCode\": \"ASSN1\",\n    \"startDate\": \"2024-08-10T08:00:00.000Z\",\n    \"endDate\": \"2024-08-20T18:00:00.000Z\",\n    \"note\": \"notessss\"\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/workforce/r1/work-shift-exceptions"
													},
													"response": []
												}
											]
										},
										{
											"name": "2_update",
											"item": [
												{
													"name": "error",
													"item": [
														{
															"name": "WorkShiftExceptionUpdate - Wrong External System",
															"event": [
																{
																	"listen": "prerequest",
																	"script": {
																		"exec": [
																			""
																		],
																		"type": "text/javascript",
																		"packages": {}
																	}
																},
																{
																	"listen": "test",
																	"script": {
																		"exec": [
																			"",
																			"pm.test(\"Response status code is 404\", function () {",
																			"    pm.expect(pm.response.code).to.equal(404);",
																			"});",
																			"",
																			"",
																			"pm.test(\"Content-Type header is application/problem+json\", function () {",
																			"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																			"});",
																			"",
																			"",
																			"pm.test(\"Type is a non-empty string\", function () {",
																			"    const responseData = pm.response.json();",
																			"    ",
																			"    pm.expect(responseData).to.be.an('object');",
																			"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																			"});",
																			"",
																			"",
																			"pm.test(\"Response has the required field 'detail'\", function () {",
																			"    const responseData = pm.response.json();",
																			"    ",
																			"    pm.expect(responseData).to.have.property('detail');",
																			"});"
																		],
																		"type": "text/javascript",
																		"packages": {}
																	}
																}
															],
															"request": {
																"method": "PATCH",
																"header": [],
																"body": {
																	"mode": "raw",
																	"raw": "{\n    \"startTime\": \"10:00\",\n    \"endTime\": \"18:00\",\n    \"addressCode\": \"string\",\n    \"note\": \"updated notes\"\n}",
																	"options": {
																		"raw": {
																			"language": "json"
																		}
																	}
																},
																"url": {
																	"raw": "{{integration-api-url}}/{{context-path}}/api/integration/workforce/r1/work-shift-exceptions?externalSystemCode=NO_SAP_EXTERNAL_SYSTEM&identificationNumber=NUOVOIDNUMBER_UNKNOWN_&startDate=2024-04-17T12:43:37.858Z&endDate=2024-04-17T12:43:37.858Z&workShiftExceptionTypeCode=ASSN1",
																	"host": [
																		"{{integration-api-url}}"
																	],
																	"path": [
																		"{{context-path}}",
																		"api",
																		"integration",
																		"workforce",
																		"r1",
																		"work-shift-exceptions"
																	],
																	"query": [
																		{
																			"key": "externalSystemCode",
																			"value": "NO_SAP_EXTERNAL_SYSTEM"
																		},
																		{
																			"key": "identificationNumber",
																			"value": "NUOVOIDNUMBER_UNKNOWN_"
																		},
																		{
																			"key": "startDate",
																			"value": "2024-04-17T12:43:37.858Z"
																		},
																		{
																			"key": "endDate",
																			"value": "2024-04-17T12:43:37.858Z"
																		},
																		{
																			"key": "workShiftExceptionTypeCode",
																			"value": "ASSN1"
																		}
																	]
																}
															},
															"response": []
														},
														{
															"name": "WorkShiftExceptionUpdate - Unknown Resource Identification Number",
															"event": [
																{
																	"listen": "prerequest",
																	"script": {
																		"exec": [
																			""
																		],
																		"type": "text/javascript",
																		"packages": {}
																	}
																},
																{
																	"listen": "test",
																	"script": {
																		"exec": [
																			"",
																			"pm.test(\"Response status code is 404\", function () {",
																			"    pm.expect(pm.response.code).to.equal(404);",
																			"});",
																			"",
																			"",
																			"pm.test(\"Content-Type header is application/problem+json\", function () {",
																			"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																			"});",
																			"",
																			"",
																			"pm.test(\"Type is a non-empty string\", function () {",
																			"    const responseData = pm.response.json();",
																			"    ",
																			"    pm.expect(responseData).to.be.an('object');",
																			"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																			"});",
																			"",
																			"",
																			"pm.test(\"Response has the required field 'detail'\", function () {",
																			"    const responseData = pm.response.json();",
																			"    ",
																			"    pm.expect(responseData).to.have.property('detail');",
																			"});"
																		],
																		"type": "text/javascript",
																		"packages": {}
																	}
																}
															],
															"request": {
																"method": "PATCH",
																"header": [],
																"body": {
																	"mode": "raw",
																	"raw": "{\n    \"startTime\": \"10:00\",\n    \"endTime\": \"18:00\",\n    \"addressCode\": \"string\",\n    \"note\": \"updated notes\"\n}",
																	"options": {
																		"raw": {
																			"language": "json"
																		}
																	}
																},
																"url": {
																	"raw": "{{integration-api-url}}/{{context-path}}/api/integration/workforce/r1/work-shift-exceptions?externalSystemCode=SAP&identificationNumber=NUOVOIDNUMBER_UNKNOWN_&startDate=2024-04-17T12:43:37.858Z&endDate=2024-04-17T12:43:37.858Z&workShiftExceptionTypeCode=ASSN1",
																	"host": [
																		"{{integration-api-url}}"
																	],
																	"path": [
																		"{{context-path}}",
																		"api",
																		"integration",
																		"workforce",
																		"r1",
																		"work-shift-exceptions"
																	],
																	"query": [
																		{
																			"key": "externalSystemCode",
																			"value": "SAP"
																		},
																		{
																			"key": "identificationNumber",
																			"value": "NUOVOIDNUMBER_UNKNOWN_"
																		},
																		{
																			"key": "startDate",
																			"value": "2024-04-17T12:43:37.858Z"
																		},
																		{
																			"key": "endDate",
																			"value": "2024-04-17T12:43:37.858Z"
																		},
																		{
																			"key": "workShiftExceptionTypeCode",
																			"value": "ASSN1"
																		}
																	]
																}
															},
															"response": []
														},
														{
															"name": "WorkShiftExceptionUpdate - Unknown Work Shift Exception Type",
															"event": [
																{
																	"listen": "prerequest",
																	"script": {
																		"exec": [
																			""
																		],
																		"type": "text/javascript",
																		"packages": {}
																	}
																},
																{
																	"listen": "test",
																	"script": {
																		"exec": [
																			"",
																			"pm.test(\"Response status code is 404\", function () {",
																			"    pm.expect(pm.response.code).to.equal(404);",
																			"});",
																			"",
																			"",
																			"pm.test(\"Content-Type header is application/problem+json\", function () {",
																			"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																			"});",
																			"",
																			"",
																			"pm.test(\"Type is a non-empty string\", function () {",
																			"    const responseData = pm.response.json();",
																			"    ",
																			"    pm.expect(responseData).to.be.an('object');",
																			"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																			"});",
																			"",
																			"",
																			"pm.test(\"Response has the required field 'detail'\", function () {",
																			"    const responseData = pm.response.json();",
																			"    ",
																			"    pm.expect(responseData).to.have.property('detail');",
																			"});"
																		],
																		"type": "text/javascript",
																		"packages": {}
																	}
																}
															],
															"request": {
																"method": "PATCH",
																"header": [],
																"body": {
																	"mode": "raw",
																	"raw": "{\n    \"startTime\": \"10:00\",\n    \"endTime\": \"18:00\",\n    \"addressCode\": \"string\",\n    \"note\": \"updated notes\"\n}",
																	"options": {
																		"raw": {
																			"language": "json"
																		}
																	}
																},
																"url": {
																	"raw": "{{integration-api-url}}/{{context-path}}/api/integration/workforce/r1/work-shift-exceptions?externalSystemCode=SAP&identificationNumber=MI0030&startDate=2024-04-17T12:43:37.858Z&endDate=2024-04-17T12:43:37.858Z&workShiftExceptionTypeCode=ASSN1_UNKNOWN__",
																	"host": [
																		"{{integration-api-url}}"
																	],
																	"path": [
																		"{{context-path}}",
																		"api",
																		"integration",
																		"workforce",
																		"r1",
																		"work-shift-exceptions"
																	],
																	"query": [
																		{
																			"key": "externalSystemCode",
																			"value": "SAP"
																		},
																		{
																			"key": "identificationNumber",
																			"value": "MI0030"
																		},
																		{
																			"key": "startDate",
																			"value": "2024-04-17T12:43:37.858Z"
																		},
																		{
																			"key": "endDate",
																			"value": "2024-04-17T12:43:37.858Z"
																		},
																		{
																			"key": "workShiftExceptionTypeCode",
																			"value": "ASSN1_UNKNOWN__"
																		}
																	]
																}
															},
															"response": []
														},
														{
															"name": "WorkShiftExceptionUpdate - Work Shift Exceptions Not Found with given filters",
															"event": [
																{
																	"listen": "prerequest",
																	"script": {
																		"exec": [
																			""
																		],
																		"type": "text/javascript",
																		"packages": {}
																	}
																},
																{
																	"listen": "test",
																	"script": {
																		"exec": [
																			"",
																			"pm.test(\"Response status code is 400\", function () {",
																			"    pm.expect(pm.response.code).to.equal(400);",
																			"});",
																			"",
																			"",
																			"pm.test(\"Content-Type header is application/problem+json\", function () {",
																			"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																			"});",
																			"",
																			"",
																			"pm.test(\"Type is a non-empty string\", function () {",
																			"    const responseData = pm.response.json();",
																			"    ",
																			"    pm.expect(responseData).to.be.an('object');",
																			"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																			"});",
																			"",
																			"",
																			"pm.test(\"Response has the required field 'detail'\", function () {",
																			"    const responseData = pm.response.json();",
																			"    ",
																			"    pm.expect(responseData).to.have.property('detail');",
																			"});",
																			"",
																			"",
																			"pm.test(\"detail message value\", function () {",
																			"  const responseData = pm.response.json();",
																			"",
																			"  pm.expect(responseData).to.be.an('object');",
																			"  pm.expect(responseData.detail).to.be.equal('No Work Shift Exception found for Resource MI0030 and Type ASSN1 in time lapse 1999-04-17T12:43:37.858Z - 1999-04-17T12:43:37.858Z');",
																			"});"
																		],
																		"type": "text/javascript",
																		"packages": {}
																	}
																}
															],
															"request": {
																"method": "PATCH",
																"header": [],
																"body": {
																	"mode": "raw",
																	"raw": "{\n    \"startTime\": \"10:00\",\n    \"endTime\": \"18:00\",\n    \"addressCode\": \"string\",\n    \"note\": \"updated notes\"\n}",
																	"options": {
																		"raw": {
																			"language": "json"
																		}
																	}
																},
																"url": {
																	"raw": "{{integration-api-url}}/{{context-path}}/api/integration/workforce/r1/work-shift-exceptions?externalSystemCode=SAP&identificationNumber=MI0030&startDate=1999-04-17T12:43:37.858Z&endDate=1999-04-17T12:43:37.858Z&workShiftExceptionTypeCode=ASSN1",
																	"host": [
																		"{{integration-api-url}}"
																	],
																	"path": [
																		"{{context-path}}",
																		"api",
																		"integration",
																		"workforce",
																		"r1",
																		"work-shift-exceptions"
																	],
																	"query": [
																		{
																			"key": "externalSystemCode",
																			"value": "SAP"
																		},
																		{
																			"key": "identificationNumber",
																			"value": "MI0030"
																		},
																		{
																			"key": "startDate",
																			"value": "1999-04-17T12:43:37.858Z"
																		},
																		{
																			"key": "endDate",
																			"value": "1999-04-17T12:43:37.858Z"
																		},
																		{
																			"key": "workShiftExceptionTypeCode",
																			"value": "ASSN1"
																		}
																	]
																}
															},
															"response": []
														},
														{
															"name": "WorkShiftExceptionUpdate - Address Not Found",
															"event": [
																{
																	"listen": "prerequest",
																	"script": {
																		"exec": [
																			""
																		],
																		"type": "text/javascript",
																		"packages": {}
																	}
																},
																{
																	"listen": "test",
																	"script": {
																		"exec": [
																			"",
																			"pm.test(\"Response status code is 404\", function () {",
																			"    pm.expect(pm.response.code).to.equal(404);",
																			"});",
																			"",
																			"",
																			"pm.test(\"Content-Type header is application/problem+json\", function () {",
																			"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																			"});",
																			"",
																			"",
																			"pm.test(\"Type is a non-empty string\", function () {",
																			"    const responseData = pm.response.json();",
																			"    ",
																			"    pm.expect(responseData).to.be.an('object');",
																			"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																			"});",
																			"",
																			"",
																			"pm.test(\"Response has the required field 'detail'\", function () {",
																			"    const responseData = pm.response.json();",
																			"    ",
																			"    pm.expect(responseData).to.have.property('detail');",
																			"});",
																			""
																		],
																		"type": "text/javascript",
																		"packages": {}
																	}
																}
															],
															"request": {
																"method": "PATCH",
																"header": [],
																"body": {
																	"mode": "raw",
																	"raw": "{\n    \"startTime\": \"10:00\",\n    \"endTime\": \"18:00\",\n    \"addressCode\": \"ADDRESSUNKNOWN_\",\n    \"note\": \"updated notes\"\n}",
																	"options": {
																		"raw": {
																			"language": "json"
																		}
																	}
																},
																"url": {
																	"raw": "{{integration-api-url}}/{{context-path}}/api/integration/workforce/r1/work-shift-exceptions?externalSystemCode=SAP&identificationNumber=MI0030&startDate=2024-08-10T08:00:00.000Z&endDate=2024-08-20T18:00:00.000Z&workShiftExceptionTypeCode=ASSN1",
																	"host": [
																		"{{integration-api-url}}"
																	],
																	"path": [
																		"{{context-path}}",
																		"api",
																		"integration",
																		"workforce",
																		"r1",
																		"work-shift-exceptions"
																	],
																	"query": [
																		{
																			"key": "externalSystemCode",
																			"value": "SAP"
																		},
																		{
																			"key": "identificationNumber",
																			"value": "MI0030"
																		},
																		{
																			"key": "startDate",
																			"value": "2024-08-10T08:00:00.000Z"
																		},
																		{
																			"key": "endDate",
																			"value": "2024-08-20T18:00:00.000Z"
																		},
																		{
																			"key": "workShiftExceptionTypeCode",
																			"value": "ASSN1"
																		}
																	]
																}
															},
															"response": []
														}
													]
												},
												{
													"name": "WorkShiftExceptionUpdate - Simple working execution",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	""
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"",
																	"pm.test(\"Response status code is No Content\", function () {",
																	"  pm.expect(pm.response.code).to.equal(204);",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "PATCH",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n    \"startTime\": \"06:30\",\n    \"endTime\": \"16:30\",\n    \"addressCode\": \"ACCOUNT_test_account_20243312220\",\n    \"note\": \"updated notes\"\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": {
															"raw": "{{integration-api-url}}/{{context-path}}/api/integration/workforce/r1/work-shift-exceptions?externalSystemCode=SAP&identificationNumber=MI0030&startDate=2024-08-10T08:00:00.000Z&endDate=2024-08-20T18:00:00.000Z&workShiftExceptionTypeCode=ASSN1",
															"host": [
																"{{integration-api-url}}"
															],
															"path": [
																"{{context-path}}",
																"api",
																"integration",
																"workforce",
																"r1",
																"work-shift-exceptions"
															],
															"query": [
																{
																	"key": "externalSystemCode",
																	"value": "SAP"
																},
																{
																	"key": "identificationNumber",
																	"value": "MI0030"
																},
																{
																	"key": "startDate",
																	"value": "2024-08-10T08:00:00.000Z"
																},
																{
																	"key": "endDate",
																	"value": "2024-08-20T18:00:00.000Z"
																},
																{
																	"key": "workShiftExceptionTypeCode",
																	"value": "ASSN1"
																}
															]
														}
													},
													"response": []
												}
											]
										},
										{
											"name": "3_delete",
											"item": [
												{
													"name": "error",
													"item": [
														{
															"name": "WorkShiftExceptionDeletion - Wrong External System",
															"event": [
																{
																	"listen": "prerequest",
																	"script": {
																		"exec": [
																			""
																		],
																		"type": "text/javascript",
																		"packages": {}
																	}
																},
																{
																	"listen": "test",
																	"script": {
																		"exec": [
																			"",
																			"pm.test(\"Response status code is 404\", function () {",
																			"    pm.expect(pm.response.code).to.equal(404);",
																			"});",
																			"",
																			"",
																			"pm.test(\"Content-Type header is application/problem+json\", function () {",
																			"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																			"});",
																			"",
																			"",
																			"pm.test(\"Type is a non-empty string\", function () {",
																			"    const responseData = pm.response.json();",
																			"    ",
																			"    pm.expect(responseData).to.be.an('object');",
																			"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																			"});",
																			"",
																			"",
																			"pm.test(\"Response has the required field 'detail'\", function () {",
																			"    const responseData = pm.response.json();",
																			"    ",
																			"    pm.expect(responseData).to.have.property('detail');",
																			"});"
																		],
																		"type": "text/javascript",
																		"packages": {}
																	}
																}
															],
															"request": {
																"method": "DELETE",
																"header": [],
																"url": {
																	"raw": "{{integration-api-url}}/{{context-path}}/api/integration/workforce/r1/work-shift-exceptions?externalSystemCode=NO_SAP_EXTERNAL_SYSTEM&identificationNumber=NUOVOIDNUMBER_UNKNOWN&startDate=2024-04-17T12:43:37.858Z&endDate=2024-04-17T12:43:37.858Z&workShiftExceptionTypeCode=ASSN1",
																	"host": [
																		"{{integration-api-url}}"
																	],
																	"path": [
																		"{{context-path}}",
																		"api",
																		"integration",
																		"workforce",
																		"r1",
																		"work-shift-exceptions"
																	],
																	"query": [
																		{
																			"key": "externalSystemCode",
																			"value": "NO_SAP_EXTERNAL_SYSTEM"
																		},
																		{
																			"key": "identificationNumber",
																			"value": "NUOVOIDNUMBER_UNKNOWN"
																		},
																		{
																			"key": "startDate",
																			"value": "2024-04-17T12:43:37.858Z"
																		},
																		{
																			"key": "endDate",
																			"value": "2024-04-17T12:43:37.858Z"
																		},
																		{
																			"key": "workShiftExceptionTypeCode",
																			"value": "ASSN1"
																		}
																	]
																}
															},
															"response": []
														},
														{
															"name": "WorkShiftExceptionDeletion - Unknown Resource Identification Number",
															"event": [
																{
																	"listen": "prerequest",
																	"script": {
																		"exec": [
																			""
																		],
																		"type": "text/javascript",
																		"packages": {}
																	}
																},
																{
																	"listen": "test",
																	"script": {
																		"exec": [
																			"",
																			"pm.test(\"Response status code is 404\", function () {",
																			"    pm.expect(pm.response.code).to.equal(404);",
																			"});",
																			"",
																			"",
																			"pm.test(\"Content-Type header is application/problem+json\", function () {",
																			"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																			"});",
																			"",
																			"",
																			"pm.test(\"Type is a non-empty string\", function () {",
																			"    const responseData = pm.response.json();",
																			"    ",
																			"    pm.expect(responseData).to.be.an('object');",
																			"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																			"});",
																			"",
																			"",
																			"pm.test(\"Response has the required field 'detail'\", function () {",
																			"    const responseData = pm.response.json();",
																			"    ",
																			"    pm.expect(responseData).to.have.property('detail');",
																			"});"
																		],
																		"type": "text/javascript",
																		"packages": {}
																	}
																}
															],
															"request": {
																"method": "DELETE",
																"header": [],
																"url": {
																	"raw": "{{integration-api-url}}/{{context-path}}/api/integration/workforce/r1/work-shift-exceptions?externalSystemCode=SAP&identificationNumber=NUOVOIDNUMBER_UNKNOWN_&startDate=2024-04-17T12:43:37.858Z&endDate=2024-04-17T12:43:37.858Z&workShiftExceptionTypeCode=ASSN1",
																	"host": [
																		"{{integration-api-url}}"
																	],
																	"path": [
																		"{{context-path}}",
																		"api",
																		"integration",
																		"workforce",
																		"r1",
																		"work-shift-exceptions"
																	],
																	"query": [
																		{
																			"key": "externalSystemCode",
																			"value": "SAP"
																		},
																		{
																			"key": "identificationNumber",
																			"value": "NUOVOIDNUMBER_UNKNOWN_"
																		},
																		{
																			"key": "startDate",
																			"value": "2024-04-17T12:43:37.858Z"
																		},
																		{
																			"key": "endDate",
																			"value": "2024-04-17T12:43:37.858Z"
																		},
																		{
																			"key": "workShiftExceptionTypeCode",
																			"value": "ASSN1"
																		}
																	]
																}
															},
															"response": []
														},
														{
															"name": "WorkShiftExceptionDeletion - Unknown Work Shift ExceptionType",
															"event": [
																{
																	"listen": "prerequest",
																	"script": {
																		"exec": [
																			""
																		],
																		"type": "text/javascript",
																		"packages": {}
																	}
																},
																{
																	"listen": "test",
																	"script": {
																		"exec": [
																			"",
																			"pm.test(\"Response status code is 404\", function () {",
																			"    pm.expect(pm.response.code).to.equal(404);",
																			"});",
																			"",
																			"",
																			"pm.test(\"Content-Type header is application/problem+json\", function () {",
																			"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																			"});",
																			"",
																			"",
																			"pm.test(\"Type is a non-empty string\", function () {",
																			"    const responseData = pm.response.json();",
																			"    ",
																			"    pm.expect(responseData).to.be.an('object');",
																			"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																			"});",
																			"",
																			"",
																			"pm.test(\"Response has the required field 'detail'\", function () {",
																			"    const responseData = pm.response.json();",
																			"    ",
																			"    pm.expect(responseData).to.have.property('detail');",
																			"});"
																		],
																		"type": "text/javascript",
																		"packages": {}
																	}
																}
															],
															"request": {
																"method": "DELETE",
																"header": [],
																"url": {
																	"raw": "{{integration-api-url}}/{{context-path}}/api/integration/workforce/r1/work-shift-exceptions?externalSystemCode=SAP&identificationNumber=MI0030&startDate=1999-04-17T12:43:37.858Z&endDate=1999-04-17T12:43:37.858Z&workShiftExceptionTypeCode=ASSN1_UNKNOWN__",
																	"host": [
																		"{{integration-api-url}}"
																	],
																	"path": [
																		"{{context-path}}",
																		"api",
																		"integration",
																		"workforce",
																		"r1",
																		"work-shift-exceptions"
																	],
																	"query": [
																		{
																			"key": "externalSystemCode",
																			"value": "SAP"
																		},
																		{
																			"key": "identificationNumber",
																			"value": "MI0030"
																		},
																		{
																			"key": "startDate",
																			"value": "1999-04-17T12:43:37.858Z"
																		},
																		{
																			"key": "endDate",
																			"value": "1999-04-17T12:43:37.858Z"
																		},
																		{
																			"key": "workShiftExceptionTypeCode",
																			"value": "ASSN1_UNKNOWN__"
																		}
																	]
																}
															},
															"response": []
														},
														{
															"name": "WorkShiftExceptionDeletion - Work Shift Exceptions Not Found with given filters",
															"event": [
																{
																	"listen": "prerequest",
																	"script": {
																		"exec": [
																			""
																		],
																		"type": "text/javascript",
																		"packages": {}
																	}
																},
																{
																	"listen": "test",
																	"script": {
																		"exec": [
																			"",
																			"pm.test(\"Response status code is 400\", function () {",
																			"    pm.expect(pm.response.code).to.equal(400);",
																			"});",
																			"",
																			"",
																			"pm.test(\"Content-Type header is application/problem+json\", function () {",
																			"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																			"});",
																			"",
																			"",
																			"pm.test(\"Type is a non-empty string\", function () {",
																			"    const responseData = pm.response.json();",
																			"    ",
																			"    pm.expect(responseData).to.be.an('object');",
																			"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																			"});",
																			"",
																			"",
																			"pm.test(\"Response has the required field 'detail'\", function () {",
																			"    const responseData = pm.response.json();",
																			"    ",
																			"    pm.expect(responseData).to.have.property('detail');",
																			"});",
																			"",
																			"",
																			"pm.test(\"detail message value\", function () {",
																			"  const responseData = pm.response.json();",
																			"",
																			"  pm.expect(responseData).to.be.an('object');",
																			"  pm.expect(responseData.detail).to.be.equal('No Work Shift Exception found for Resource MI0030 and Type ASSN1 in time lapse 1999-04-17T12:43:37.858Z - 1999-04-17T12:43:37.858Z');",
																			"});"
																		],
																		"type": "text/javascript",
																		"packages": {}
																	}
																}
															],
															"request": {
																"method": "DELETE",
																"header": [],
																"url": {
																	"raw": "{{integration-api-url}}/{{context-path}}/api/integration/workforce/r1/work-shift-exceptions?externalSystemCode=SAP&identificationNumber=MI0030&startDate=1999-04-17T12:43:37.858Z&endDate=1999-04-17T12:43:37.858Z&workShiftExceptionTypeCode=ASSN1",
																	"host": [
																		"{{integration-api-url}}"
																	],
																	"path": [
																		"{{context-path}}",
																		"api",
																		"integration",
																		"workforce",
																		"r1",
																		"work-shift-exceptions"
																	],
																	"query": [
																		{
																			"key": "externalSystemCode",
																			"value": "SAP"
																		},
																		{
																			"key": "identificationNumber",
																			"value": "MI0030"
																		},
																		{
																			"key": "startDate",
																			"value": "1999-04-17T12:43:37.858Z"
																		},
																		{
																			"key": "endDate",
																			"value": "1999-04-17T12:43:37.858Z"
																		},
																		{
																			"key": "workShiftExceptionTypeCode",
																			"value": "ASSN1"
																		}
																	]
																}
															},
															"response": []
														}
													]
												},
												{
													"name": "WorkShiftExceptionDeletion - Simple working execution",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	""
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"pm.test(\"Response status code is Success\", function () {",
																	"  pm.expect(pm.response.code).to.equal(200);",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "DELETE",
														"header": [],
														"url": {
															"raw": "{{integration-api-url}}/{{context-path}}/api/integration/workforce/r1/work-shift-exceptions?externalSystemCode=SAP&identificationNumber=MI0030&startDate=2024-08-10T08:00:00.000Z&endDate=2024-08-20T18:00:00.000Z&workShiftExceptionTypeCode=ASSN1",
															"host": [
																"{{integration-api-url}}"
															],
															"path": [
																"{{context-path}}",
																"api",
																"integration",
																"workforce",
																"r1",
																"work-shift-exceptions"
															],
															"query": [
																{
																	"key": "externalSystemCode",
																	"value": "SAP"
																},
																{
																	"key": "identificationNumber",
																	"value": "MI0030"
																},
																{
																	"key": "startDate",
																	"value": "2024-08-10T08:00:00.000Z"
																},
																{
																	"key": "endDate",
																	"value": "2024-08-20T18:00:00.000Z"
																},
																{
																	"key": "workShiftExceptionTypeCode",
																	"value": "ASSN1"
																}
															]
														}
													},
													"response": []
												}
											]
										},
										{
											"name": "types",
											"item": [
												{
													"name": "creation",
													"item": [
														{
															"name": "error",
															"item": [
																{
																	"name": "WorkShiftExceptionTypesCreation - Wrong External System",
																	"event": [
																		{
																			"listen": "prerequest",
																			"script": {
																				"exec": [
																					"var nowDT = new Date(Date.now());",
																					"//identifier -> max lenght 40",
																					"const identifier = \"TEST_WORK_SHIFT_EX_TYPE_\" + nowDT.getFullYear() + (nowDT.getMonth()+1) +  nowDT.getDay().toString() +  nowDT.getHours()  + nowDT.getMinutes() +  nowDT.getSeconds() + nowDT.getMilliseconds();",
																					"pm.collectionVariables.set(\"WorkShiftExceptionTypeIdentifier\",identifier);"
																				],
																				"type": "text/javascript",
																				"packages": {}
																			}
																		},
																		{
																			"listen": "test",
																			"script": {
																				"exec": [
																					"",
																					"pm.test(\"Response status code is 404\", function () {",
																					"    pm.expect(pm.response.code).to.equal(404);",
																					"});",
																					"",
																					"",
																					"pm.test(\"Content-Type header is application/problem+json\", function () {",
																					"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																					"});",
																					"",
																					"",
																					"pm.test(\"Type is a non-empty string\", function () {",
																					"    const responseData = pm.response.json();",
																					"    ",
																					"    pm.expect(responseData).to.be.an('object');",
																					"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																					"});",
																					"",
																					"",
																					"pm.test(\"Response has the required field 'detail'\", function () {",
																					"    const responseData = pm.response.json();",
																					"    ",
																					"    pm.expect(responseData).to.have.property('detail');",
																					"});"
																				],
																				"type": "text/javascript",
																				"packages": {}
																			}
																		}
																	],
																	"request": {
																		"method": "POST",
																		"header": [],
																		"body": {
																			"mode": "raw",
																			"raw": "{\n    \"externalSystemCode\": \"NO_SAP_EXTERNAL_SYSTEM\",\n    \"code\": \"{{WorkShiftExceptionTypeIdentifier}}\",\n    \"description\": [\n        {\n            \"lang\": \"string\",\n            \"value\": \"string\"\n        }\n    ],\n    \"order\": 0,\n    \"active\": true,\n    \"loan\": true,\n    \"note\": \"NOTE - {{WorkShiftExceptionTypeIdentifier}}\",\n    \"color\": \"string\",\n    \"externalCode\": \"string\",\n    \"editable\": true,\n    \"workShiftExceptionClassCode\": \"string\",\n    \"workShiftExceptionManagementCode\": \"string\",\n    \"workShiftExceptionImpactCode\": \"string\"\n}",
																			"options": {
																				"raw": {
																					"language": "json"
																				}
																			}
																		},
																		"url": "{{integration-api-url}}/{{context-path}}/api/integration/workforce/r1/work-shift-exception-types"
																	},
																	"response": []
																},
																{
																	"name": "WorkShiftExceptionTypesCreation - Wrong Work Shift Exception Class Code",
																	"event": [
																		{
																			"listen": "prerequest",
																			"script": {
																				"exec": [
																					"var nowDT = new Date(Date.now());",
																					"//identifier -> max lenght 40",
																					"const identifier = \"TEST_WORK_SHIFT_EX_TYPE_\" + nowDT.getFullYear() + (nowDT.getMonth()+1) +  nowDT.getDay().toString() +  nowDT.getHours()  + nowDT.getMinutes() +  nowDT.getSeconds() + nowDT.getMilliseconds();",
																					"pm.collectionVariables.set(\"WorkShiftExceptionTypeIdentifier\",identifier);"
																				],
																				"type": "text/javascript",
																				"packages": {}
																			}
																		},
																		{
																			"listen": "test",
																			"script": {
																				"exec": [
																					"",
																					"pm.test(\"Response status code is 404\", function () {",
																					"    pm.expect(pm.response.code).to.equal(404);",
																					"});",
																					"",
																					"",
																					"pm.test(\"Content-Type header is application/problem+json\", function () {",
																					"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																					"});",
																					"",
																					"",
																					"pm.test(\"Type is a non-empty string\", function () {",
																					"    const responseData = pm.response.json();",
																					"    ",
																					"    pm.expect(responseData).to.be.an('object');",
																					"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																					"});",
																					"",
																					"",
																					"pm.test(\"Response has the required field 'detail'\", function () {",
																					"    const responseData = pm.response.json();",
																					"    ",
																					"    pm.expect(responseData).to.have.property('detail');",
																					"});"
																				],
																				"type": "text/javascript",
																				"packages": {}
																			}
																		}
																	],
																	"request": {
																		"method": "POST",
																		"header": [],
																		"body": {
																			"mode": "raw",
																			"raw": "{\n    \"externalSystemCode\": \"SAP\",\n    \"code\": \"{{WorkShiftExceptionTypeIdentifier}}\",\n    \"description\": [\n        {\n            \"lang\": \"string\",\n            \"value\": \"string\"\n        }\n    ],\n    \"order\": 0,\n    \"active\": true,\n    \"loan\": true,\n    \"note\": \"NOTE - {{WorkShiftExceptionTypeIdentifier}}\",\n    \"color\": \"string\",\n    \"externalCode\": \"string\",\n    \"editable\": true,\n    \"workShiftExceptionClassCode\": \"NUOVO_CLASS_CODE_UNKNOWN__\",\n    \"workShiftExceptionManagementCode\": \"string\",\n    \"workShiftExceptionImpactCode\": \"string\"\n}",
																			"options": {
																				"raw": {
																					"language": "json"
																				}
																			}
																		},
																		"url": "{{integration-api-url}}/{{context-path}}/api/integration/workforce/r1/work-shift-exception-types"
																	},
																	"response": []
																},
																{
																	"name": "WorkShiftExceptionTypesCreation - Wrong Work Shift Exception Impact Code",
																	"event": [
																		{
																			"listen": "prerequest",
																			"script": {
																				"exec": [
																					"var nowDT = new Date(Date.now());",
																					"//identifier -> max lenght 40",
																					"const identifier = \"TEST_WORK_SHIFT_EX_TYPE_\" + nowDT.getFullYear() + (nowDT.getMonth()+1) +  nowDT.getDay().toString() +  nowDT.getHours()  + nowDT.getMinutes() +  nowDT.getSeconds() + nowDT.getMilliseconds();",
																					"pm.collectionVariables.set(\"WorkShiftExceptionTypeIdentifier\",identifier);"
																				],
																				"type": "text/javascript",
																				"packages": {}
																			}
																		},
																		{
																			"listen": "test",
																			"script": {
																				"exec": [
																					"",
																					"pm.test(\"Response status code is 404\", function () {",
																					"    pm.expect(pm.response.code).to.equal(404);",
																					"});",
																					"",
																					"",
																					"pm.test(\"Content-Type header is application/problem+json\", function () {",
																					"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																					"});",
																					"",
																					"",
																					"pm.test(\"Type is a non-empty string\", function () {",
																					"    const responseData = pm.response.json();",
																					"    ",
																					"    pm.expect(responseData).to.be.an('object');",
																					"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																					"});",
																					"",
																					"",
																					"pm.test(\"Response has the required field 'detail'\", function () {",
																					"    const responseData = pm.response.json();",
																					"    ",
																					"    pm.expect(responseData).to.have.property('detail');",
																					"});"
																				],
																				"type": "text/javascript",
																				"packages": {}
																			}
																		}
																	],
																	"request": {
																		"method": "POST",
																		"header": [],
																		"body": {
																			"mode": "raw",
																			"raw": "{\n    \"externalSystemCode\": \"SAP\",\n    \"code\": \"{{WorkShiftExceptionTypeIdentifier}}\",\n    \"description\": [\n        {\n            \"lang\": \"string\",\n            \"value\": \"string\"\n        }\n    ],\n    \"order\": 0,\n    \"active\": true,\n    \"loan\": true,\n    \"note\": \"NOTE - {{WorkShiftExceptionTypeIdentifier}}\",\n    \"color\": \"string\",\n    \"externalCode\": \"string\",\n    \"editable\": true,\n    \"workShiftExceptionClassCode\": \"ABS\",\n    \"workShiftExceptionImpactCode\": \"NUOVO_IMPACT_CODE_UNKNOWN__\"\n}",
																			"options": {
																				"raw": {
																					"language": "json"
																				}
																			}
																		},
																		"url": "{{integration-api-url}}/{{context-path}}/api/integration/workforce/r1/work-shift-exception-types"
																	},
																	"response": []
																},
																{
																	"name": "WorkShiftExceptionTypesCreation - Wrong Work Shift Exception Management Code",
																	"event": [
																		{
																			"listen": "prerequest",
																			"script": {
																				"exec": [
																					"var nowDT = new Date(Date.now());",
																					"//identifier -> max lenght 40",
																					"const identifier = \"TEST_WORK_SHIFT_EX_TYPE_\" + nowDT.getFullYear() + (nowDT.getMonth()+1) +  nowDT.getDay().toString() +  nowDT.getHours()  + nowDT.getMinutes() +  nowDT.getSeconds() + nowDT.getMilliseconds();",
																					"pm.collectionVariables.set(\"WorkShiftExceptionTypeIdentifier\",identifier);"
																				],
																				"type": "text/javascript",
																				"packages": {}
																			}
																		},
																		{
																			"listen": "test",
																			"script": {
																				"exec": [
																					"",
																					"pm.test(\"Response status code is 404\", function () {",
																					"    pm.expect(pm.response.code).to.equal(404);",
																					"});",
																					"",
																					"",
																					"pm.test(\"Content-Type header is application/problem+json\", function () {",
																					"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																					"});",
																					"",
																					"",
																					"pm.test(\"Type is a non-empty string\", function () {",
																					"    const responseData = pm.response.json();",
																					"    ",
																					"    pm.expect(responseData).to.be.an('object');",
																					"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																					"});",
																					"",
																					"",
																					"pm.test(\"Response has the required field 'detail'\", function () {",
																					"    const responseData = pm.response.json();",
																					"    ",
																					"    pm.expect(responseData).to.have.property('detail');",
																					"});"
																				],
																				"type": "text/javascript",
																				"packages": {}
																			}
																		}
																	],
																	"request": {
																		"method": "POST",
																		"header": [],
																		"body": {
																			"mode": "raw",
																			"raw": "{\n    \"externalSystemCode\": \"SAP\",\n    \"code\": \"{{WorkShiftExceptionTypeIdentifier}}\",\n    \"description\": [\n        {\n            \"lang\": \"string\",\n            \"value\": \"string\"\n        }\n    ],\n    \"order\": 0,\n    \"active\": true,\n    \"loan\": true,\n    \"note\": \"NOTE - {{WorkShiftExceptionTypeIdentifier}}\",\n    \"color\": \"string\",\n    \"externalCode\": \"string\",\n    \"editable\": true,\n    \"workShiftExceptionClassCode\": \"ABS\",\n    \"workShiftExceptionImpactCode\": \"HOURLY_EXTENSION\",\n    \"workShiftExceptionManagementCode\": \"NUOVO_MANAGEMENT_CODE_UNKNOWN__\"\n\n}",
																			"options": {
																				"raw": {
																					"language": "json"
																				}
																			}
																		},
																		"url": "{{integration-api-url}}/{{context-path}}/api/integration/workforce/r1/work-shift-exception-types"
																	},
																	"response": []
																}
															]
														},
														{
															"name": "WorkShiftExceptionTypesCreation - Simple Working Scenario",
															"event": [
																{
																	"listen": "prerequest",
																	"script": {
																		"exec": [
																			"var nowDT = new Date(Date.now());",
																			"//identifier -> max lenght 40",
																			"const identifier = \"WORK_SHIFT_EXC_TYPE_\" + nowDT.getFullYear() + (nowDT.getMonth()+1) +  nowDT.getDay().toString() +  nowDT.getHours()  + nowDT.getMinutes() +  nowDT.getSeconds() + nowDT.getMilliseconds();",
																			"pm.collectionVariables.set(\"WorkShiftExceptionTypeIdentifier\",identifier);"
																		],
																		"type": "text/javascript",
																		"packages": {}
																	}
																},
																{
																	"listen": "test",
																	"script": {
																		"exec": [
																			"",
																			"pm.test(\"Response status code is 201\", function () {",
																			"  pm.expect(pm.response.code).to.equal(201);",
																			"});",
																			"",
																			"",
																			"pm.test(\"Response has the required field 'id'\", function () {",
																			"    const responseData = pm.response.json();",
																			"    ",
																			"    pm.expect(responseData).to.have.property('id');",
																			"});",
																			"",
																			"",
																			"pm.test(\"Id is a non-zero integer\", function () {",
																			"  const responseData = pm.response.json();",
																			"",
																			"  pm.expect(responseData).to.be.an('object');",
																			"  pm.expect(responseData.id).to.exist.and.to.be.a('number');",
																			"  pm.expect(responseData.id).to.be.above(0);",
																			"});"
																		],
																		"type": "text/javascript",
																		"packages": {}
																	}
																}
															],
															"request": {
																"method": "POST",
																"header": [],
																"body": {
																	"mode": "raw",
																	"raw": "{\n    \"externalSystemCode\": \"SAP\",\n    \"code\": \"{{WorkShiftExceptionTypeIdentifier}}\",\n    \"description\": [\n        {\n            \"lang\": \"en\",\n            \"value\": \"string\"\n        }\n    ],\n    \"order\": 0,\n    \"active\": true,\n    \"loan\": true,\n    \"note\": \"NOTE - {{WorkShiftExceptionTypeIdentifier}}\",\n    \"editable\": true,\n    \"workShiftExceptionClassCode\": \"ABS\",\n    \"workShiftExceptionImpactCode\": \"HOURLY_EXTENSION\",\n    \"workShiftExceptionManagementCode\": \"DAY\"\n}",
																	"options": {
																		"raw": {
																			"language": "json"
																		}
																	}
																},
																"url": "{{integration-api-url}}/{{context-path}}/api/integration/workforce/r1/work-shift-exception-types"
															},
															"response": []
														}
													]
												}
											]
										}
									],
									"description": "**Warning:** when testing WorkShiftExceptions follow the order indicated by the numbers:  \n1\\. creation  \n2\\. update  \n3\\. delete\n\n(Point 2. and point 3. (therefore updating and deleting) act on the records just created in point 1)"
								}
							],
							"description": "**Warning:** when testing WorkShifts follow the order indicated by the numbers:  \n1\\. creation  \n2\\. update  \n3\\. deletion\n\n(Point 2. and point 3. (therefore updating and deleting) act on the records just created in point 1)",
							"event": [
								{
									"listen": "prerequest",
									"script": {
										"type": "text/javascript",
										"packages": {},
										"exec": [
											""
										]
									}
								},
								{
									"listen": "test",
									"script": {
										"type": "text/javascript",
										"packages": {},
										"exec": [
											""
										]
									}
								}
							]
						},
						{
							"name": "timesheet",
							"item": [
								{
									"name": "resourceCalendars",
									"item": [
										{
											"name": "Resource Calendars Get - OK - simple",
											"event": [
												{
													"listen": "prerequest",
													"script": {
														"exec": [
															""
														],
														"type": "text/javascript",
														"packages": {}
													}
												},
												{
													"listen": "test",
													"script": {
														"exec": [
															"pm.test(\"Response status code is 200\", function () {",
															"  pm.expect(pm.response.code).to.equal(200);",
															"});",
															"",
															"",
															"pm.test(\"Response has the required field '_page'\", function () {",
															"    const responseData = pm.response.json();",
															"    ",
															"    pm.expect(responseData).to.have.property('_page');",
															"});",
															"",
															"pm.test(\"Response has the required field 'content'\", function () {",
															"    const responseData = pm.response.json();",
															"    ",
															"    pm.expect(responseData).to.have.property('content');",
															"});"
														],
														"type": "text/javascript",
														"packages": {}
													}
												}
											],
											"request": {
												"method": "GET",
												"header": [],
												"url": {
													"raw": "{{integration-api-url}}/{{context-path}}/api/integration/workforce/r1/timesheets/resources-calendars?_page=num,0,size,30&_order=name&_language=it&externalSystemCode=SAP&operationCenterCode=ORDER&calendarDate.from=2024-06-02T00:00:00.0Z&calendarDate.to=2024-06-09T00:00:00.0Z",
													"host": [
														"{{integration-api-url}}"
													],
													"path": [
														"{{context-path}}",
														"api",
														"integration",
														"workforce",
														"r1",
														"timesheets",
														"resources-calendars"
													],
													"query": [
														{
															"key": "_fields",
															"value": "unavailabilities.workShiftExceptionType.code,operationCenter,name,identificationNumber",
															"disabled": true
														},
														{
															"key": "_page",
															"value": "num,0,size,30"
														},
														{
															"key": "_order",
															"value": "name"
														},
														{
															"key": "_language",
															"value": "it"
														},
														{
															"key": "externalSystemCode",
															"value": "SAP"
														},
														{
															"key": "operationCenterCode",
															"value": "ORDER",
															"description": "OCENE, ORDER"
														},
														{
															"key": "calendarDate.from",
															"value": "2024-06-02T00:00:00.0Z"
														},
														{
															"key": "calendarDate.to",
															"value": "2024-06-09T00:00:00.0Z"
														},
														{
															"key": "identificationNumber",
															"value": "34234",
															"disabled": true
														},
														{
															"key": "secondaryIdentificationNumber",
															"value": "343",
															"disabled": true
														}
													]
												}
											},
											"response": []
										}
									]
								},
								{
									"name": "resourceIntervetions",
									"item": [
										{
											"name": "Resource Interventions Search - OK - simple",
											"event": [
												{
													"listen": "prerequest",
													"script": {
														"exec": [
															""
														],
														"type": "text/javascript",
														"packages": {}
													}
												},
												{
													"listen": "test",
													"script": {
														"exec": [
															"pm.test(\"Response status code is 200\", function () {",
															"  pm.expect(pm.response.code).to.equal(200);",
															"});",
															"",
															"",
															"pm.test(\"Response has the required field '_page'\", function () {",
															"    const responseData = pm.response.json();",
															"    ",
															"    pm.expect(responseData).to.have.property('_page');",
															"});",
															"",
															"pm.test(\"Response has the required field 'content'\", function () {",
															"    const responseData = pm.response.json();",
															"    ",
															"    pm.expect(responseData).to.have.property('content');",
															"});"
														],
														"type": "text/javascript",
														"packages": {}
													}
												}
											],
											"request": {
												"method": "GET",
												"header": [],
												"url": {
													"raw": "{{integration-api-url}}/{{context-path}}/api/integration/workforce/r1/timesheets/resources-interventions?_page=num,0,size,30&_order=name&_language=it&externalSystemCode=SAP&operationCenterCode=OCENW&calendarDate.from=2024-08-01T00:00:00.0Z&calendarDate.to=2024-08-07T00:00:00.0Z",
													"host": [
														"{{integration-api-url}}"
													],
													"path": [
														"{{context-path}}",
														"api",
														"integration",
														"workforce",
														"r1",
														"timesheets",
														"resources-interventions"
													],
													"query": [
														{
															"key": "_fields",
															"value": "resources.id,operationCenter,name,identificationNumber",
															"disabled": true
														},
														{
															"key": "_page",
															"value": "num,0,size,30"
														},
														{
															"key": "_order",
															"value": "name"
														},
														{
															"key": "_language",
															"value": "it"
														},
														{
															"key": "externalSystemCode",
															"value": "SAP"
														},
														{
															"key": "operationCenterCode",
															"value": "OCENW",
															"description": "OCENW"
														},
														{
															"key": "calendarDate.from",
															"value": "2024-08-01T00:00:00.0Z"
														},
														{
															"key": "calendarDate.to",
															"value": "2024-08-07T00:00:00.0Z"
														},
														{
															"key": "identificationNumber",
															"value": "34234",
															"disabled": true
														},
														{
															"key": "secondaryIdentificationNumber",
															"value": "343",
															"disabled": true
														},
														{
															"key": "teamLeader",
															"value": "true",
															"disabled": true
														}
													]
												}
											},
											"response": []
										}
									]
								}
							]
						}
					]
				},
				{
					"name": "Scheduling",
					"item": [
						{
							"name": "Manual",
							"item": [
								{
									"name": "activitiesAssignment",
									"item": [
										{
											"name": "error",
											"item": [
												{
													"name": "ActivityAssignment - Wrong External System",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	""
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"",
																	"pm.test(\"Response status code is 404\", function () {",
																	"    pm.expect(pm.response.code).to.equal(404);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Content-Type header is application/problem+json\", function () {",
																	"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Type is a non-empty string\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.be.an('object');",
																	"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'detail'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('detail');",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "POST",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n    \"externalSystemCode\": \"NO_SAP_EXTERNAL_SYSTEM\",\n    \"identificationNumber\": \"NUOVOIDNUMBER_UNKNOWN\",\n    \"workOrderCode\": \"string\",\n    \"operationCenterCode\": \"string\",\n    \"startDate\": \"2024-04-17T12:43:37.858Z\",\n    \"skillCheck\": true\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/scheduling/manual/r1/scheduling/activities-assignments"
													},
													"response": []
												},
												{
													"name": "ActivityAssignment - Operation Center Not Found",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	""
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"",
																	"pm.test(\"Response status code is 404\", function () {",
																	"    pm.expect(pm.response.code).to.equal(404);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Content-Type header is application/problem+json\", function () {",
																	"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Type is a non-empty string\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.be.an('object');",
																	"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'detail'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('detail');",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "POST",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n    \"externalSystemCode\": \"SAP\",\n    \"identificationNumber\": \"NUOVOIDNUMBER_UNKNOWN\",\n    \"workOrderCode\": \"OCENE00476\",\n    \"operationCenterCode\": \"UNKNOWN_OPERATION_CENTER___\",\n    \"startDate\": \"2024-04-17T12:43:37.858Z\",\n    \"skillCheck\": true\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/scheduling/manual/r1/scheduling/activities-assignments"
													},
													"response": []
												},
												{
													"name": "ActivityAssignment - Resource Not Found",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	""
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"",
																	"pm.test(\"Response status code is 400\", function () {",
																	"    pm.expect(pm.response.code).to.equal(400);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Content-Type header is application/problem+json\", function () {",
																	"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Type is a non-empty string\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.be.an('object');",
																	"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'detail'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('detail');",
																	"});",
																	"",
																	"",
																	"pm.test(\"detail message value\", function () {",
																	"  const responseData = pm.response.json();",
																	"",
																	"  pm.expect(responseData).to.be.an('object');",
																	"  pm.expect(responseData.detail).to.be.equal('Resource NUOVOIDNUMBER_UNKNOWN with operation center OCENE does not exist');",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "POST",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n    \"externalSystemCode\": \"SAP\",\n    \"identificationNumber\": \"NUOVOIDNUMBER_UNKNOWN\",\n    \"workOrderCode\": \"OCENE00476\",\n    \"operationCenterCode\": \"OCENE\",\n    \"startDate\": \"2024-04-17T12:43:37.858Z\",\n    \"skillCheck\": true\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/scheduling/manual/r1/scheduling/activities-assignments"
													},
													"response": []
												},
												{
													"name": "ActivityAssignment - WorkOrder Not Found",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	""
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"",
																	"pm.test(\"Response status code is 404\", function () {",
																	"    pm.expect(pm.response.code).to.equal(404);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Content-Type header is application/problem+json\", function () {",
																	"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Type is a non-empty string\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.be.an('object');",
																	"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'detail'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('detail');",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "POST",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n    \"externalSystemCode\": \"SAP\",\n    \"identificationNumber\": \"MI0029\",\n    \"workOrderCode\": \"UNKNOWN_WORK_ORDER_CODE___\",\n    \"operationCenterCode\": \"OCENE\",\n    \"startDate\": \"2024-04-17T12:43:37.858Z\",\n    \"skillCheck\": true\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/scheduling/manual/r1/scheduling/activities-assignments"
													},
													"response": []
												},
												{
													"name": "ActivityAssignment - Too many operations Found",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	""
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"",
																	"pm.test(\"Response status code is 400\", function () {",
																	"    pm.expect(pm.response.code).to.equal(400);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Content-Type header is application/problem+json\", function () {",
																	"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Type is a non-empty string\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.be.an('object');",
																	"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'detail'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('detail');",
																	"});",
																	"",
																	"",
																	"pm.test(\"detail message value\", function () {",
																	"  const responseData = pm.response.json();",
																	"",
																	"  pm.expect(responseData).to.be.an('object');",
																	"  pm.expect(responseData.detail).to.be.equal('Too many operations found for given Work Order 160600008');",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "POST",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n    \"externalSystemCode\": \"SAP\",\n    \"identificationNumber\": \"MI0029\",\n    \"workOrderCode\": \"160600008\",\n    \"operationCenterCode\": \"OCENE\",\n    \"startDate\": \"2024-04-17T12:43:37.858Z\",\n    \"skillCheck\": true\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/scheduling/manual/r1/scheduling/activities-assignments"
													},
													"response": []
												},
												{
													"name": "ActivityAssignment - WorkShift Not Found",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	""
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"",
																	"pm.test(\"Response status code is 400\", function () {",
																	"    pm.expect(pm.response.code).to.equal(400);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Content-Type header is application/problem+json\", function () {",
																	"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Type is a non-empty string\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.be.an('object');",
																	"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'detail'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('detail');",
																	"});",
																	"",
																	"",
																	"pm.test(\"detail message value\", function () {",
																	"  const responseData = pm.response.json();",
																	"",
																	"  pm.expect(responseData).to.be.an('object');",
																	"  pm.expect(responseData.detail).to.be.equal('No Work Shift found for Resource MI0029 in time range 1999-04-17T12:43:37.858Z to 1999-04-18T12:43:37.858Z');",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "POST",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n    \"externalSystemCode\": \"SAP\",\n    \"identificationNumber\": \"MI0029\",\n    \"workOrderCode\": \"OCENE00476\",\n    \"operationCenterCode\": \"OCENE\",\n    \"startDate\": \"1999-04-17T12:43:37.858Z\",\n    \"skillCheck\": false\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/scheduling/manual/r1/scheduling/activities-assignments"
													},
													"response": []
												},
												{
													"name": "ActivityAssignment - Activity assignment error",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	""
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"",
																	"pm.test(\"Response status code is 400\", function () {",
																	"    pm.expect(pm.response.code).to.equal(400);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Content-Type header is application/problem+json\", function () {",
																	"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Type is a non-empty string\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.be.an('object');",
																	"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'detail'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('detail');",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "POST",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n    \"externalSystemCode\": \"SAP\",\n    \"identificationNumber\": \"MI0029\",\n    \"workOrderCode\": \"OCENE00476\",\n    \"operationCenterCode\": \"OCENE\",\n    \"startDate\": \"2024-04-20T07:30:00.000Z\",\n    \"skillCheck\": false\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/scheduling/manual/r1/scheduling/activities-assignments"
													},
													"response": []
												}
											]
										}
									]
								}
							]
						}
					]
				},
				{
					"name": "Inventory",
					"item": [
						{
							"name": "Materials",
							"item": [
								{
									"name": "upsert",
									"item": [
										{
											"name": "error",
											"item": [
												{
													"name": "Materials upsert - Wrong External System",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	""
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"",
																	"pm.test(\"Response status code is 404\", function () {",
																	"    pm.expect(pm.response.code).to.equal(404);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Content-Type header is application/problem+json\", function () {",
																	"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Type is a non-empty string\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.be.an('object');",
																	"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'detail'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('detail');",
																	"});",
																	"",
																	"pm.test(\"detail message value\", function () {",
																	"  const responseData = pm.response.json();",
																	"",
																	"  pm.expect(responseData).to.be.an('object');",
																	"  pm.expect(responseData.detail).to.be.equal('External system UNKNOWN_EXTERNAL_SYSTEM_CODE____ does not exist');",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "POST",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n    \"code\": \"string\",\n    \"externalSystemCode\": \"UNKNOWN_EXTERNAL_SYSTEM_CODE____\",\n    \"description\": [\n        {\n            \"lang\": \"en\",\n            \"value\": \"string\"\n        }\n    ],\n    \"measurementUnitCode\": \"string\",\n    \"validityBegin\": \"2024-08-22T09:51:10.477Z\",\n    \"validityEnd\": \"2024-08-22T09:51:10.477Z\",\n    \"typeCode\": \"string\",\n    \"managementTypeCode\": \"string\",\n    \"classCode\": \"string\",\n    \"itemCode\": \"string\",\n    \"goodsGroupCode\": \"string\",\n    \"meterBrandCode\": \"string\",\n    \"alternativeCode\": \"string\",\n    \"extendedDescription\": [\n        {\n            \"lang\": \"en\",\n            \"value\": \"string\"\n        }\n    ],\n    \"externalStatus\": \"string\",\n    \"note\": [\n        {\n            \"lang\": \"en\",\n            \"value\": \"string\"\n        }\n    ],\n    \"generic\": true,\n    \"active\": true\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/inventory/r1/materials"
													},
													"response": []
												},
												{
													"name": "Materials upsert - Wrong Material Type Code",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	""
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"",
																	"pm.test(\"Response status code is 404\", function () {",
																	"    pm.expect(pm.response.code).to.equal(404);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Content-Type header is application/problem+json\", function () {",
																	"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Type is a non-empty string\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.be.an('object');",
																	"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'detail'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('detail');",
																	"});",
																	"",
																	"pm.test(\"detail message value\", function () {",
																	"  const responseData = pm.response.json();",
																	"",
																	"  pm.expect(responseData).to.be.an('object');",
																	"  pm.expect(responseData.detail).to.be.equal('Material type UNKNOWN_MATERIAL_TYPE_CODE____ does not exist');",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "POST",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n    \"code\": \"string\",\n    \"externalSystemCode\": \"SAP\",\n    \"description\": [\n        {\n            \"lang\": \"en\",\n            \"value\": \"string\"\n        }\n    ],\n    \"measurementUnitCode\": \"KG\",\n    \"validityBegin\": \"2024-08-22T09:51:10.477Z\",\n    \"validityEnd\": \"2024-08-22T09:51:10.477Z\",\n    \"typeCode\": \"UNKNOWN_MATERIAL_TYPE_CODE____\",\n    \"managementTypeCode\": \"CON\",\n    \"classCode\": \"GEN\",\n    \"itemCode\": \"BS\",\n    \"goodsGroupCode\": \"TEST\",\n    \"meterBrandCode\": \"WB\",\n    \"alternativeCode\": \"string\",\n    \"extendedDescription\": [\n        {\n            \"lang\": \"en\",\n            \"value\": \"string\"\n        }\n    ],\n    \"externalStatus\": \"string\",\n    \"note\": [\n        {\n            \"lang\": \"en\",\n            \"value\": \"string\"\n        }\n    ],\n    \"generic\": true,\n    \"active\": true\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/inventory/r1/materials"
													},
													"response": []
												},
												{
													"name": "Materials upsert - Wrong Meter Brand Code",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	""
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"",
																	"pm.test(\"Response status code is 404\", function () {",
																	"    pm.expect(pm.response.code).to.equal(404);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Content-Type header is application/problem+json\", function () {",
																	"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Type is a non-empty string\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.be.an('object');",
																	"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'detail'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('detail');",
																	"});",
																	"",
																	"pm.test(\"detail message value\", function () {",
																	"  const responseData = pm.response.json();",
																	"",
																	"  pm.expect(responseData).to.be.an('object');",
																	"  pm.expect(responseData.detail).to.be.equal('Meter brand UNKNOWN_METER_BRAND_CODE____ does not exist');",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "POST",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n    \"code\": \"string\",\n    \"externalSystemCode\": \"SAP\",\n    \"description\": [\n        {\n            \"lang\": \"en\",\n            \"value\": \"string\"\n        }\n    ],\n    \"measurementUnitCode\": \"KG\",\n    \"validityBegin\": \"2024-08-22T09:51:10.477Z\",\n    \"validityEnd\": \"2024-08-22T09:51:10.477Z\",\n    \"typeCode\": \"PERFORMANCE\",\n    \"managementTypeCode\": \"CON\",\n    \"classCode\": \"GEN\",\n    \"itemCode\": \"BS\",\n    \"goodsGroupCode\": \"TEST\",\n    \"meterBrandCode\": \"UNKNOWN_METER_BRAND_CODE____\",\n    \"alternativeCode\": \"string\",\n    \"extendedDescription\": [\n        {\n            \"lang\": \"en\",\n            \"value\": \"string\"\n        }\n    ],\n    \"externalStatus\": \"string\",\n    \"note\": [\n        {\n            \"lang\": \"en\",\n            \"value\": \"string\"\n        }\n    ],\n    \"generic\": true,\n    \"active\": true\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/inventory/r1/materials"
													},
													"response": []
												},
												{
													"name": "Materials upsert - Wrong Measurement Unit Code",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	""
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"",
																	"pm.test(\"Response status code is 404\", function () {",
																	"    pm.expect(pm.response.code).to.equal(404);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Content-Type header is application/problem+json\", function () {",
																	"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Type is a non-empty string\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.be.an('object');",
																	"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'detail'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('detail');",
																	"});",
																	"",
																	"pm.test(\"detail message value\", function () {",
																	"  const responseData = pm.response.json();",
																	"",
																	"  pm.expect(responseData).to.be.an('object');",
																	"  pm.expect(responseData.detail).to.be.equal('Measurement unit UNKNOWN_MEASUREMENT_UNIT_CODE____ does not exist');",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "POST",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n    \"code\": \"string\",\n    \"externalSystemCode\": \"SAP\",\n    \"description\": [\n        {\n            \"lang\": \"en\",\n            \"value\": \"string\"\n        }\n    ],\n    \"measurementUnitCode\": \"UNKNOWN_MEASUREMENT_UNIT_CODE____\",\n    \"validityBegin\": \"2024-08-22T09:51:10.477Z\",\n    \"validityEnd\": \"2024-08-22T09:51:10.477Z\",\n    \"typeCode\": \"PERFORMANCE\",\n    \"managementTypeCode\": \"CON\",\n    \"classCode\": \"GEN\",\n    \"itemCode\": \"BS\",\n    \"goodsGroupCode\": \"TEST\",\n    \"meterBrandCode\": \"WB\",\n    \"alternativeCode\": \"string\",\n    \"extendedDescription\": [\n        {\n            \"lang\": \"en\",\n            \"value\": \"string\"\n        }\n    ],\n    \"externalStatus\": \"string\",\n    \"note\": [\n        {\n            \"lang\": \"en\",\n            \"value\": \"string\"\n        }\n    ],\n    \"generic\": true,\n    \"active\": true\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/inventory/r1/materials"
													},
													"response": []
												},
												{
													"name": "Materials upsert - Wrong Management Type Code",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	""
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"",
																	"pm.test(\"Response status code is 404\", function () {",
																	"    pm.expect(pm.response.code).to.equal(404);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Content-Type header is application/problem+json\", function () {",
																	"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Type is a non-empty string\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.be.an('object');",
																	"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'detail'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('detail');",
																	"});",
																	"",
																	"pm.test(\"detail message value\", function () {",
																	"  const responseData = pm.response.json();",
																	"",
																	"  pm.expect(responseData).to.be.an('object');",
																	"  pm.expect(responseData.detail).to.be.equal('Material management type UNKNOWN_MATERIAL_MNGMT_TYPE_CODE____ does not exist');",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "POST",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n    \"code\": \"string\",\n    \"externalSystemCode\": \"SAP\",\n    \"description\": [\n        {\n            \"lang\": \"en\",\n            \"value\": \"string\"\n        }\n    ],\n    \"measurementUnitCode\": \"KG\",\n    \"validityBegin\": \"2024-08-22T09:51:10.477Z\",\n    \"validityEnd\": \"2024-08-22T09:51:10.477Z\",\n    \"typeCode\": \"PERFORMANCE\",\n    \"managementTypeCode\": \"UNKNOWN_MATERIAL_MNGMT_TYPE_CODE____\",\n    \"classCode\": \"GEN\",\n    \"itemCode\": \"BS\",\n    \"goodsGroupCode\": \"TEST\",\n    \"meterBrandCode\": \"WB\",\n    \"alternativeCode\": \"string\",\n    \"extendedDescription\": [\n        {\n            \"lang\": \"en\",\n            \"value\": \"string\"\n        }\n    ],\n    \"externalStatus\": \"string\",\n    \"note\": [\n        {\n            \"lang\": \"en\",\n            \"value\": \"string\"\n        }\n    ],\n    \"generic\": true,\n    \"active\": true\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/inventory/r1/materials"
													},
													"response": []
												},
												{
													"name": "Materials upsert - Wrong Material Item Code",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	""
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"",
																	"pm.test(\"Response status code is 404\", function () {",
																	"    pm.expect(pm.response.code).to.equal(404);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Content-Type header is application/problem+json\", function () {",
																	"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Type is a non-empty string\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.be.an('object');",
																	"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'detail'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('detail');",
																	"});",
																	"",
																	"pm.test(\"detail message value\", function () {",
																	"  const responseData = pm.response.json();",
																	"",
																	"  pm.expect(responseData).to.be.an('object');",
																	"  pm.expect(responseData.detail).to.be.equal('Material item UNKNOWN_MATERIAL_ITEM_CODE____ does not exist');",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "POST",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n    \"code\": \"string\",\n    \"externalSystemCode\": \"SAP\",\n    \"description\": [\n        {\n            \"lang\": \"en\",\n            \"value\": \"string\"\n        }\n    ],\n    \"measurementUnitCode\": \"KG\",\n    \"validityBegin\": \"2024-08-22T09:51:10.477Z\",\n    \"validityEnd\": \"2024-08-22T09:51:10.477Z\",\n    \"typeCode\": \"PERFORMANCE\",\n    \"managementTypeCode\": \"CON\",\n    \"classCode\": \"GEN\",\n    \"itemCode\": \"UNKNOWN_MATERIAL_ITEM_CODE____\",\n    \"goodsGroupCode\": \"TEST\",\n    \"meterBrandCode\": \"WB\",\n    \"alternativeCode\": \"string\",\n    \"extendedDescription\": [\n        {\n            \"lang\": \"en\",\n            \"value\": \"string\"\n        }\n    ],\n    \"externalStatus\": \"string\",\n    \"note\": [\n        {\n            \"lang\": \"en\",\n            \"value\": \"string\"\n        }\n    ],\n    \"generic\": true,\n    \"active\": true\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/inventory/r1/materials"
													},
													"response": []
												},
												{
													"name": "Materials upsert - Wrong Material Goods Group Code",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	""
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"",
																	"pm.test(\"Response status code is 404\", function () {",
																	"    pm.expect(pm.response.code).to.equal(404);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Content-Type header is application/problem+json\", function () {",
																	"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Type is a non-empty string\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.be.an('object');",
																	"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'detail'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('detail');",
																	"});",
																	"",
																	"pm.test(\"detail message value\", function () {",
																	"  const responseData = pm.response.json();",
																	"",
																	"  pm.expect(responseData).to.be.an('object');",
																	"  pm.expect(responseData.detail).to.be.equal('Material goods group UNKNOWN_MATERIAL_GOODS_GROUP_CODE____ does not exist');",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "POST",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n    \"code\": \"string\",\n    \"externalSystemCode\": \"SAP\",\n    \"description\": [\n        {\n            \"lang\": \"en\",\n            \"value\": \"string\"\n        }\n    ],\n    \"measurementUnitCode\": \"KG\",\n    \"validityBegin\": \"2024-08-22T09:51:10.477Z\",\n    \"validityEnd\": \"2024-08-22T09:51:10.477Z\",\n    \"typeCode\": \"PERFORMANCE\",\n    \"managementTypeCode\": \"CON\",\n    \"classCode\": \"GEN\",\n    \"itemCode\": \"BS\",\n    \"goodsGroupCode\": \"UNKNOWN_MATERIAL_GOODS_GROUP_CODE____\",\n    \"meterBrandCode\": \"WB\",\n    \"alternativeCode\": \"string\",\n    \"extendedDescription\": [\n        {\n            \"lang\": \"en\",\n            \"value\": \"string\"\n        }\n    ],\n    \"externalStatus\": \"string\",\n    \"note\": [\n        {\n            \"lang\": \"en\",\n            \"value\": \"string\"\n        }\n    ],\n    \"generic\": true,\n    \"active\": true\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/inventory/r1/materials"
													},
													"response": []
												},
												{
													"name": "Materials upsert - Wrong Material Class Code",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	""
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"",
																	"pm.test(\"Response status code is 404\", function () {",
																	"    pm.expect(pm.response.code).to.equal(404);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Content-Type header is application/problem+json\", function () {",
																	"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Type is a non-empty string\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.be.an('object');",
																	"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'detail'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('detail');",
																	"});",
																	"",
																	"pm.test(\"detail message value\", function () {",
																	"  const responseData = pm.response.json();",
																	"",
																	"  pm.expect(responseData).to.be.an('object');",
																	"  pm.expect(responseData.detail).to.be.equal('Material class UNKNOWN_MATERIAL_CLASS_CODE____ does not exist');",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "POST",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{\n    \"code\": \"string\",\n    \"externalSystemCode\": \"SAP\",\n    \"description\": [\n        {\n            \"lang\": \"en\",\n            \"value\": \"string\"\n        }\n    ],\n    \"measurementUnitCode\": \"KG\",\n    \"validityBegin\": \"2024-08-22T09:51:10.477Z\",\n    \"validityEnd\": \"2024-08-22T09:51:10.477Z\",\n    \"typeCode\": \"PERFORMANCE\",\n    \"managementTypeCode\": \"CON\",\n    \"classCode\": \"UNKNOWN_MATERIAL_CLASS_CODE____\",\n    \"itemCode\": \"BS\",\n    \"goodsGroupCode\": \"TEST\",\n    \"meterBrandCode\": \"WB\",\n    \"alternativeCode\": \"string\",\n    \"extendedDescription\": [\n        {\n            \"lang\": \"en\",\n            \"value\": \"string\"\n        }\n    ],\n    \"externalStatus\": \"string\",\n    \"note\": [\n        {\n            \"lang\": \"en\",\n            \"value\": \"string\"\n        }\n    ],\n    \"generic\": true,\n    \"active\": true\n}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": "{{integration-api-url}}/{{context-path}}/api/integration/inventory/r1/materials"
													},
													"response": []
												}
											]
										},
										{
											"name": "Materials upsert - Simple working scenario - CREATE",
											"event": [
												{
													"listen": "prerequest",
													"script": {
														"exec": [
															"var nowDT = new Date(Date.now());",
															"const materialIdentifier = \"TEST_MATERIALS_\" + nowDT.getFullYear() + \"_\" + (nowDT.getMonth()+1) + \"_\" + nowDT.getDay().toString() + \"_\" + nowDT.getHours() + \"_\" + + nowDT.getMinutes() + \"_\" + nowDT.getSeconds() + \"_\" + nowDT.getMilliseconds();",
															"pm.collectionVariables.set(\"materialIdentifier\",materialIdentifier);"
														],
														"type": "text/javascript",
														"packages": {}
													}
												},
												{
													"listen": "test",
													"script": {
														"exec": [
															"pm.test(\"Response status code is Created\", function () {",
															"  pm.expect(pm.response.code).to.equal(201);",
															"});"
														],
														"type": "text/javascript",
														"packages": {}
													}
												}
											],
											"request": {
												"method": "POST",
												"header": [],
												"body": {
													"mode": "raw",
													"raw": "{\n    \"code\": \"{{materialIdentifier}}\",\n    \"externalSystemCode\": \"SAP\",\n    \"description\": [\n        {\n            \"lang\": \"en\",\n            \"value\": \"DESCRIPTION-{{materialIdentifier}}\"\n        }\n    ],\n    \"measurementUnitCode\": \"KG\",\n    \"validityBegin\": \"2024-08-22T09:51:10.477Z\",\n    \"validityEnd\": \"2024-08-22T09:51:10.477Z\",\n    \"typeCode\": \"INTERNAL\",\n    \"managementTypeCode\": \"CON\",\n    \"classCode\": \"GEN\",\n    \"itemCode\": \"BS\",\n    \"goodsGroupCode\": \"TEST\",\n    \"meterBrandCode\": \"WB\",\n    \"alternativeCode\": \"string\",\n    \"extendedDescription\": [\n        {\n            \"lang\": \"en\",\n            \"value\": \"EXTENDED DESCRIPTION-{{materialIdentifier}}\"\n        }\n    ],\n    \"generic\": false,\n    \"managedInStock\": true\n}",
													"options": {
														"raw": {
															"language": "json"
														}
													}
												},
												"url": "{{integration-api-url}}/{{context-path}}/api/integration/inventory/r1/materials"
											},
											"response": []
										},
										{
											"name": "Materials upsert - Simple working scenario - UPDATE",
											"event": [
												{
													"listen": "prerequest",
													"script": {
														"exec": [
															"var nowDT = new Date(Date.now());",
															"const materialIdentifier = \"MATERIAL_\" + nowDT.getFullYear() + (nowDT.getMonth()+1) + nowDT.getDay().toString() + nowDT.getHours() + nowDT.getMinutes() + nowDT.getSeconds();",
															"pm.collectionVariables.set(\"materialIdentifier\",materialIdentifier);"
														],
														"type": "text/javascript",
														"packages": {}
													}
												},
												{
													"listen": "test",
													"script": {
														"exec": [
															"pm.test(\"Response status code is No Content\", function () {",
															"  pm.expect(pm.response.code).to.equal(204);",
															"});"
														],
														"type": "text/javascript",
														"packages": {}
													}
												}
											],
											"request": {
												"method": "POST",
												"header": [],
												"body": {
													"mode": "raw",
													"raw": "{\n    \"code\": \"TEST_MATERIALS_2024_8_2_16_32_45_529\",\n    \"externalSystemCode\": \"SAP\",\n    \"alternativeCode\": \"CODE_{{materialIdentifier}}\",\n    \"description\": [\n        {\n            \"lang\": \"en\",\n            \"value\": \"DESCRIPTION_{{materialIdentifier}}\"\n        }\n    ],\n    \"extendedDescription\": [\n        {\n            \"lang\": \"en\",\n            \"value\": \"EXTENDED_DESCRIPTION_{{materialIdentifier}}\"\n        }\n    ],\n    \"note\": [\n        {\n            \"lang\": \"en\",\n            \"value\": \"NOTE_{{materialIdentifier}}\"\n        }\n    ]\n}",
													"options": {
														"raw": {
															"language": "json"
														}
													}
												},
												"url": "{{integration-api-url}}/{{context-path}}/api/integration/inventory/r1/materials"
											},
											"response": []
										}
									]
								},
								{
									"name": "delete",
									"item": [
										{
											"name": "error",
											"item": [
												{
													"name": "Materials deletion - Wrong External System",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	""
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"",
																	"pm.test(\"Response status code is 404\", function () {",
																	"    pm.expect(pm.response.code).to.equal(404);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Content-Type header is application/problem+json\", function () {",
																	"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Type is a non-empty string\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.be.an('object');",
																	"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'detail'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('detail');",
																	"});",
																	"",
																	"pm.test(\"detail message value\", function () {",
																	"  const responseData = pm.response.json();",
																	"",
																	"  pm.expect(responseData).to.be.an('object');",
																	"  pm.expect(responseData.detail).to.be.equal('External system UNKNOWN_EXTERNAL_SYSTEM_CODE____ does not exist');",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "DELETE",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": {
															"raw": "{{integration-api-url}}/{{context-path}}/api/integration/inventory/r1/materials/MATERIAL_CODE?externalSystemCode=UNKNOWN_EXTERNAL_SYSTEM_CODE____",
															"host": [
																"{{integration-api-url}}"
															],
															"path": [
																"{{context-path}}",
																"api",
																"integration",
																"inventory",
																"r1",
																"materials",
																"MATERIAL_CODE"
															],
															"query": [
																{
																	"key": "externalSystemCode",
																	"value": "UNKNOWN_EXTERNAL_SYSTEM_CODE____"
																}
															]
														}
													},
													"response": []
												},
												{
													"name": "Materials deletion - Wrong Material Code",
													"event": [
														{
															"listen": "prerequest",
															"script": {
																"exec": [
																	""
																],
																"type": "text/javascript",
																"packages": {}
															}
														},
														{
															"listen": "test",
															"script": {
																"exec": [
																	"",
																	"pm.test(\"Response status code is 404\", function () {",
																	"    pm.expect(pm.response.code).to.equal(404);",
																	"});",
																	"",
																	"",
																	"pm.test(\"Content-Type header is application/problem+json\", function () {",
																	"    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/problem+json\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Type is a non-empty string\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.be.an('object');",
																	"    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should not be empty\");",
																	"});",
																	"",
																	"",
																	"pm.test(\"Response has the required field 'detail'\", function () {",
																	"    const responseData = pm.response.json();",
																	"    ",
																	"    pm.expect(responseData).to.have.property('detail');",
																	"});",
																	"",
																	"pm.test(\"detail message value\", function () {",
																	"  const responseData = pm.response.json();",
																	"",
																	"  pm.expect(responseData).to.be.an('object');",
																	"  pm.expect(responseData.detail).to.be.equal('Material UNKNOWN_INPUT_MATERIAL_CODE does not exist');",
																	"});"
																],
																"type": "text/javascript",
																"packages": {}
															}
														}
													],
													"request": {
														"method": "DELETE",
														"header": [],
														"body": {
															"mode": "raw",
															"raw": "{}",
															"options": {
																"raw": {
																	"language": "json"
																}
															}
														},
														"url": {
															"raw": "{{integration-api-url}}/{{context-path}}/api/integration/inventory/r1/materials/UNKNOWN_INPUT_MATERIAL_CODE?externalSystemCode=SAP",
															"host": [
																"{{integration-api-url}}"
															],
															"path": [
																"{{context-path}}",
																"api",
																"integration",
																"inventory",
																"r1",
																"materials",
																"UNKNOWN_INPUT_MATERIAL_CODE"
															],
															"query": [
																{
																	"key": "externalSystemCode",
																	"value": "SAP"
																}
															]
														}
													},
													"response": []
												}
											]
										},
										{
											"name": "1. Materials upsert -  CREATION (CREATE THE ITEM TO BE DELETED)",
											"event": [
												{
													"listen": "prerequest",
													"script": {
														"exec": [
															"var nowDT = new Date(Date.now());",
															"const materialIdentifier = \"TEST_MATERIAL_DELETION_\" + nowDT.getFullYear() + \"_\" + (nowDT.getMonth()+1) + \"_\" + nowDT.getDay().toString() + \"_\" + nowDT.getHours() + \"_\" + + nowDT.getMinutes();",
															"pm.collectionVariables.set(\"materialDeletionIdentifier\",materialIdentifier);"
														],
														"type": "text/javascript",
														"packages": {}
													}
												},
												{
													"listen": "test",
													"script": {
														"exec": [
															"pm.test(\"Response status code is Created\", function () {",
															"  pm.expect(pm.response.code).to.equal(201);",
															"});"
														],
														"type": "text/javascript",
														"packages": {}
													}
												}
											],
											"request": {
												"method": "POST",
												"header": [],
												"body": {
													"mode": "raw",
													"raw": "{\n    \"code\": \"{{materialDeletionIdentifier}}\",\n    \"externalSystemCode\": \"SAP\",\n    \"description\": [\n        {\n            \"lang\": \"en\",\n            \"value\": \"TEST DELETE - {{materialDeletionIdentifier}}\"\n        }\n    ],\n    \"measurementUnitCode\": \"KG\",\n    \"typeCode\": \"INTERNAL\",\n    \"managementTypeCode\": \"CON\",\n    \"classCode\": \"GEN\"\n}",
													"options": {
														"raw": {
															"language": "json"
														}
													}
												},
												"url": "{{integration-api-url}}/{{context-path}}/api/integration/inventory/r1/materials"
											},
											"response": []
										},
										{
											"name": "2. Materials deletion - Simple working scenario",
											"event": [
												{
													"listen": "prerequest",
													"script": {
														"exec": [
															""
														],
														"type": "text/javascript",
														"packages": {}
													}
												},
												{
													"listen": "test",
													"script": {
														"exec": [
															"pm.test(\"Response status code is Success\", function () {",
															"  pm.expect(pm.response.code).to.equal(200);",
															"});"
														],
														"type": "text/javascript",
														"packages": {}
													}
												}
											],
											"request": {
												"method": "DELETE",
												"header": [],
												"body": {
													"mode": "raw",
													"raw": "{}",
													"options": {
														"raw": {
															"language": "json"
														}
													}
												},
												"url": {
													"raw": "{{integration-api-url}}/{{context-path}}/api/integration/inventory/r1/materials/{{materialDeletionIdentifier}}?externalSystemCode=SAP",
													"host": [
														"{{integration-api-url}}"
													],
													"path": [
														"{{context-path}}",
														"api",
														"integration",
														"inventory",
														"r1",
														"materials",
														"{{materialDeletionIdentifier}}"
													],
													"query": [
														{
															"key": "externalSystemCode",
															"value": "SAP"
														}
													]
												}
											},
											"response": []
										}
									]
								}
							]
						}
					]
				}
			],
			"event": [
				{
					"listen": "prerequest",
					"script": {
						"type": "text/javascript",
						"packages": {},
						"exec": [
							""
						]
					}
				},
				{
					"listen": "test",
					"script": {
						"type": "text/javascript",
						"packages": {},
						"exec": [
							""
						]
					}
				}
			]
		},
		{
			"name": "auth",
			"item": [
				{
					"name": "Auth",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"const r = pm.response.json();",
									"pm.globals.set(\"token\", r.accessToken,);",
									"//pm.globals.set(\"baseUrl\",\"https://integration-api-rest.s000000.poc.eu1.platform.overit.cloud/integration-api-rest/api\")",
									"",
									"/**",
									"var url =  pm.request.url.toString();",
									"const pos = url.lastIndexOf(\"/api/\");",
									"url = url.substr(0, Number.parseInt(pos));",
									"url = url.concat(\"/api/core/r4\");",
									"pm.environment.set(\"contextPath\",url);",
									"*/",
									"pm.test(\"Status code is 200\", function () {",
									"    pm.response.to.have.status(200);",
									"});"
								],
								"type": "text/javascript",
								"packages": {}
							}
						}
					],
					"protocolProfileBehavior": {
						"disabledSystemHeaders": {}
					},
					"request": {
						"auth": {
							"type": "noauth"
						},
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"username\": \"RT@wfm\",\n  \"password\": \"RT\"\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": "{{host}}/api/configurations/identity/r1/tokens"
					},
					"response": []
				}
			]
		}
	],
	"auth": {
		"type": "oauth2",
		"oauth2": {
			"redirect_uri": "http://localhost:3000/profile",
			"accessTokenUrl": "{{integration-api-url}}/{{context-path}}/api/v1/oauth/token",
			"authUrl": "{{integration-api-url}}/{{context-path}}/api/v1/oauth/authorize",
			"tokenRequestParams": [
				{
					"key": "audience",
					"value": "https://platform.fsm-dev.overit.cloud/fsmdevwave3/api/r1/",
					"enabled": true,
					"send_as": "request_body"
				},
				{
					"key": "redirect_uri",
					"value": "{{redirect_uri}}",
					"enabled": true,
					"send_as": "request_body"
				},
				{
					"key": "client_id",
					"value": "{{external_client_id}}",
					"enabled": true,
					"send_as": "request_body"
				},
				{
					"key": "scope",
					"value": "{{scope}}",
					"enabled": true,
					"send_as": "request_body"
				},
				{
					"key": "client_secret",
					"value": "{{external_client_secret}}",
					"enabled": true,
					"send_as": "request_body"
				}
			],
			"authRequestParams": [
				{
					"key": "redirect_uri",
					"value": "{{redirect_uri}}",
					"enabled": true,
					"send_as": "request_url"
				},
				{
					"key": "audience",
					"value": "{{audience}}",
					"enabled": true,
					"send_as": "request_url"
				}
			],
			"scope": "{{scope}}",
			"clientSecret": "{{external_client_secret}}",
			"clientId": "{{external_client_id}}",
			"refreshRequestParams": [],
			"tokenName": "apigge-token",
			"challengeAlgorithm": "S256",
			"state": "fhgd0873h4",
			"grant_type": "authorization_code_with_pkce",
			"addTokenTo": "header",
			"client_authentication": "header"
		}
	},
	"event": [
		{
			"listen": "prerequest",
			"script": {
				"type": "text/javascript",
				"packages": {},
				"exec": [
					""
				]
			}
		},
		{
			"listen": "test",
			"script": {
				"type": "text/javascript",
				"packages": {},
				"exec": [
					""
				]
			}
		}
	],
	"variable": [
		{
			"key": "context-path",
			"value": "integration-api-rest",
			"type": "string"
		},
		{
			"key": "client_id",
			"value": "DlyxAbnK0IsoH1RgZ6kQBorVRP4w7wjE",
			"type": "string",
			"disabled": true
		},
		{
			"key": "external_client_id",
			"value": "GcrrnQFt4IzIRg31UsCGlqUnxD5XuJUe",
			"type": "string"
		},
		{
			"key": "external_client_secret",
			"value": "ng5nP_9tioBw9UBb0IrWOXp5BECgYMqGGusFVWH-7IqpUhJnXGHHibuMsT-3No9K",
			"type": "string"
		},
		{
			"key": "scope",
			"value": "openid profile email rw.dev-infra-poc-api",
			"type": "string"
		},
		{
			"key": "redirect_uri",
			"value": "http://localhost:3000/redirect",
			"type": "string"
		},
		{
			"key": "audience",
			"value": "https://dev-infra-poc-api.overit-poc",
			"type": "string"
		},
		{
			"key": "externalCodeGenerator",
			"value": ""
		},
		{
			"key": "operationCodeGenerator",
			"value": ""
		},
		{
			"key": "accountCodeGenerator",
			"value": ""
		},
		{
			"key": "serialNumber1",
			"value": ""
		},
		{
			"key": "serialNumber2",
			"value": ""
		},
		{
			"key": "updatedNotes",
			"value": ""
		},
		{
			"key": "host",
			"value": "https://platform.fsm-dev.overit.cloud/fsmdev1",
			"type": "string"
		},
		{
			"key": "accountIdentifier",
			"value": ""
		},
		{
			"key": "resourceIdentifier",
			"value": ""
		},
		{
			"key": "operationCodeGenerator1",
			"value": ""
		},
		{
			"key": "operationCodeGenerator2",
			"value": ""
		},
		{
			"key": "valueGenerator",
			"value": ""
		},
		{
			"key": "characteristicCodeGenerator",
			"value": ""
		},
		{
			"key": "serialNumberIdentifier",
			"value": ""
		},
		{
			"key": "assetIdentifier",
			"value": ""
		},
		{
			"key": "workShiftTypeIdentifier",
			"value": ""
		},
		{
			"key": "workShiftTypeDescriptionUpdated",
			"value": ""
		},
		{
			"key": "WorkShiftExceptionTypeIdentifier",
			"value": ""
		},
		{
			"key": "workShiftIdentifier",
			"value": ""
		},
		{
			"key": "workShiftTypeNotesUpdated",
			"value": ""
		},
		{
			"key": "materialIdentifier",
			"value": ""
		},
		{
			"key": "materialDeletionIdentifier",
			"value": ""
		},
		{
			"key": "externalCodeGenerator_cancelWO_ok",
			"value": ""
		}
	]
}