Skip to content

Commit

Permalink
[SELC-5755] fix: Updated registry_proxy.json for change /insurance-co…
Browse files Browse the repository at this point in the history
…mpanies/{originId} (#42)
  • Loading branch information
empassaro authored and manuraf committed Oct 10, 2024
1 parent b19a2aa commit 487aeb3
Showing 1 changed file with 173 additions and 39 deletions.
212 changes: 173 additions & 39 deletions apps/institution-ms/connector/rest/docs/openapi/registry_proxy.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
}, {
"name" : "infocamere",
"description" : "Info Camere Controller"
}, {
"name" : "infocamere PDND",
"description" : "PDND Info Camere Controller"
}, {
"name" : "institution",
"description" : "Institution operations"
Expand Down Expand Up @@ -497,7 +500,7 @@
"parameters" : [ {
"name" : "geotaxId",
"in" : "path",
"description" : "Geographic taxonomy unique identifier ",
"description" : "Geographic taxonomy unique identifier",
"required" : true,
"style" : "simple",
"schema" : {
Expand Down Expand Up @@ -563,7 +566,7 @@
},
"/info-camere/institutions" : {
"post" : {
"tags" : [ "infocamere" ],
"tags" : [ "infocamere", "support-pnpg" ],
"summary" : "Get institutions by legal tax id",
"description" : "Get the list of companies represented by the tax code of the person (physical or juridical) passed as a parameter",
"operationId" : "institutionsByLegalTaxIdUsingPOST",
Expand Down Expand Up @@ -729,7 +732,7 @@
"get" : {
"tags" : [ "institution" ],
"summary" : "Find institution by ID",
"description" : "Returns a single institution. If 'origin' param is filled, the ID to find is treated as 'originId' ($ref: '#/components/schemas/Institution'); otherwise is treated as 'id' ($ref: '#/components/schemas/Institution') ",
"description" : "Returns a single institution. If 'origin' param is filled, the ID to find is treated as 'originId' ($ref: '#/components/schemas/Institution'); otherwise is treated as 'id' ($ref: '#/components/schemas/Institution')",
"operationId" : "findInstitutionUsingGET",
"parameters" : [ {
"name" : "id",
Expand Down Expand Up @@ -910,10 +913,10 @@
} ]
}
},
"/insurance-companies/origin/{originId}" : {
"/insurance-companies/{originId}" : {
"get" : {
"tags" : [ "insurance-companies" ],
"summary" : "Search insurance company by its taxCode",
"summary" : "Search insurance company by its IVASS code",
"description" : "Returns only one insurance company.",
"operationId" : "searchByOriginIdUsingGET",
"parameters" : [ {
Expand Down Expand Up @@ -983,18 +986,18 @@
} ]
}
},
"/insurance-companies/{taxId}" : {
"/national-registries/legal-address" : {
"get" : {
"tags" : [ "insurance-companies" ],
"summary" : "Search insurance company by its taxCode",
"description" : "Returns only one insurance company.",
"operationId" : "searchByTaxCodeUsingGET",
"tags" : [ "national-registries", "support-pnpg" ],
"summary" : "Retrieve data from AdE and InfoCamere",
"description" : "Get the legal address of the business",
"operationId" : "legalAddressUsingGET",
"parameters" : [ {
"name" : "taxId",
"in" : "path",
"description" : "taxCode of insurance company",
"in" : "query",
"description" : "taxId",
"required" : true,
"style" : "simple",
"style" : "form",
"schema" : {
"type" : "string"
}
Expand All @@ -1005,7 +1008,7 @@
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/InsuranceCompanyResource"
"$ref" : "#/components/schemas/LegalAddressResponse"
}
}
}
Expand Down Expand Up @@ -1056,12 +1059,12 @@
} ]
}
},
"/national-registries/legal-address" : {
"/national-registries/verify-legal" : {
"get" : {
"tags" : [ "nationalRegistries" ],
"summary" : "Retrieve data from AdE and InfoCamere",
"description" : "Get the legal address of the business",
"operationId" : "legalAddressUsingGET",
"description" : "verify if given taxId is legal of given institution identified with vatNumber",
"operationId" : "verifyLegalUsingGET",
"parameters" : [ {
"name" : "taxId",
"in" : "query",
Expand All @@ -1071,14 +1074,23 @@
"schema" : {
"type" : "string"
}
}, {
"name" : "vatNumber",
"in" : "query",
"description" : "vatNumber",
"required" : true,
"style" : "form",
"schema" : {
"type" : "string"
}
} ],
"responses" : {
"200" : {
"description" : "OK",
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/LegalAddressResponse"
"$ref" : "#/components/schemas/LegalVerificationResult"
}
}
}
Expand Down Expand Up @@ -1129,25 +1141,89 @@
} ]
}
},
"/national-registries/verify-legal" : {
"/infocamere-pdnd/institution/{taxCode}" : {
"get" : {
"tags" : [ "nationalRegistries" ],
"summary" : "Retrieve data from AdE and InfoCamere",
"description" : "verify if given taxId is legal of given institution identified with vatNumber",
"operationId" : "verifyLegalUsingGET",
"tags" : [ "infocamere PDND" ],
"summary" : "Get institution by institution taxCode",
"description" : "Get the company represented by taxCode of the institution passed as a parameter",
"operationId" : "institutionPdndByTaxCodeUsingGET",
"parameters" : [ {
"name" : "taxId",
"in" : "query",
"description" : "taxId",
"name" : "taxCode",
"in" : "path",
"description" : "Institution fiscal code",
"required" : true,
"style" : "form",
"style" : "simple",
"schema" : {
"type" : "string"
}
}, {
"name" : "vatNumber",
} ],
"responses" : {
"200" : {
"description" : "OK",
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/PDNDBusinessResource"
}
}
}
},
"400" : {
"description" : "Bad Request",
"content" : {
"application/problem+json" : {
"schema" : {
"$ref" : "#/components/schemas/Problem"
}
}
}
},
"401" : {
"description" : "Unauthorized",
"content" : {
"application/problem+json" : {
"schema" : {
"$ref" : "#/components/schemas/Problem"
}
}
}
},
"404" : {
"description" : "Not Found",
"content" : {
"application/problem+json" : {
"schema" : {
"$ref" : "#/components/schemas/Problem"
}
}
}
},
"500" : {
"description" : "Internal Server Error",
"content" : {
"application/problem+json" : {
"schema" : {
"$ref" : "#/components/schemas/Problem"
}
}
}
}
},
"security" : [ {
"bearerAuth" : [ "global" ]
} ]
}
},
"/infocamere-pdnd/institutions" : {
"get" : {
"tags" : [ "infocamere PDND" ],
"summary" : "Get institutions by institution description",
"description" : "Get the list of companies represented by description of the institutions passed as a parameter",
"operationId" : "institutionsPdndByDescriptionUsingGET",
"parameters" : [ {
"name" : "description",
"in" : "query",
"description" : "vatNumber",
"description" : "Institution description",
"required" : true,
"style" : "form",
"schema" : {
Expand All @@ -1160,7 +1236,10 @@
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/LegalVerificationResult"
"type" : "array",
"items" : {
"$ref" : "#/components/schemas/PDNDBusinessResource"
}
}
}
}
Expand Down Expand Up @@ -1309,7 +1388,7 @@
"tags" : [ "stations" ],
"summary" : "Search station by its taxCode",
"description" : "Returns only one station.",
"operationId" : "searchByTaxCodeUsingGET_1",
"operationId" : "searchByTaxCodeUsingGET",
"parameters" : [ {
"name" : "taxId",
"in" : "path",
Expand Down Expand Up @@ -1384,25 +1463,34 @@
"description" : "Returns the UO list",
"operationId" : "findAllUsingGET_1",
"parameters" : [ {
"name" : "page",
"name" : "limit",
"in" : "query",
"description" : "Desired page number for result pagination. It is optional, and the default value is 1 when not specified",
"description" : "Maximum number of items per page. It is optional, and the default value is 10 when not specified",
"required" : false,
"style" : "form",
"schema" : {
"type" : "integer",
"format" : "int32"
}
}, {
"name" : "limit",
"name" : "page",
"in" : "query",
"description" : "Maximum number of items per page. It is optional, and the default value is 10 when not specified",
"description" : "Desired page number for result pagination. It is optional, and the default value is 1 when not specified",
"required" : false,
"style" : "form",
"schema" : {
"type" : "integer",
"format" : "int32"
}
}, {
"name" : "taxCodeInvoicing",
"in" : "query",
"description" : "UO fiscal code for billing",
"required" : false,
"style" : "form",
"schema" : {
"type" : "string"
}
} ],
"responses" : {
"200" : {
Expand Down Expand Up @@ -1461,14 +1549,14 @@
} ]
}
},
"/uo/{codiceUniAoo}" : {
"/uo/{codiceUniUo}" : {
"get" : {
"tags" : [ "uo" ],
"summary" : "Retrieve a UO given its code",
"description" : "Returns a UO",
"operationId" : "findByUnicodeUsingGET_1",
"parameters" : [ {
"name" : "codiceUniAoo",
"name" : "codiceUniUo",
"in" : "path",
"description" : "UO unique identifier, the same of Id",
"required" : true,
Expand Down Expand Up @@ -1736,7 +1824,7 @@
"properties" : {
"code" : {
"type" : "string",
"description" : "Geographic taxonomy unique identifier "
"description" : "Geographic taxonomy unique identifier"
},
"country" : {
"type" : "string",
Expand Down Expand Up @@ -1971,6 +2059,48 @@
}
}
},
"PDNDBusinessResource" : {
"title" : "PDNDBusinessResource",
"type" : "object",
"properties" : {
"address" : {
"type" : "string"
},
"businessName" : {
"type" : "string"
},
"businessStatus" : {
"type" : "string"
},
"businessTaxId" : {
"type" : "string"
},
"cciaa" : {
"type" : "string"
},
"city" : {
"type" : "string"
},
"county" : {
"type" : "string"
},
"digitalAddress" : {
"type" : "string"
},
"legalNature" : {
"type" : "string"
},
"legalNatureDescription" : {
"type" : "string"
},
"nrea" : {
"type" : "string"
},
"zipCode" : {
"type" : "string"
}
}
},
"Problem" : {
"title" : "Problem",
"required" : [ "status", "title" ],
Expand Down Expand Up @@ -2087,6 +2217,10 @@
"type" : "string",
"description" : "UO fiscal code"
},
"codiceFiscaleSfe" : {
"type" : "string",
"description" : "UO fiscal code for billing"
},
"codiceIpa" : {
"type" : "string",
"description" : "UO ipa code"
Expand Down

0 comments on commit 487aeb3

Please sign in to comment.