From ea2d843dd8172ab7b1480de3227f6d94d6bf77cf Mon Sep 17 00:00:00 2001 From: Lorenzo Catalano Date: Tue, 7 Nov 2023 10:47:37 +0100 Subject: [PATCH 1/2] NOD-573 Adeguamento flag travaso su config cache e cache --- openapi/openapi.json | 2719 ++++++++--------- openapi/openapi_fdrv1.json | 1885 +++++------- openapi/openapi_nodev1.json | 1885 +++++------- openapi/openapi_verifierv1.json | 179 +- pom.xml | 2 +- .../cache/model/node/v1/psp/Channel.java | 4 +- .../mapper/ConvertCanaliToChannelDetails.java | 9 +- 7 files changed, 2983 insertions(+), 3700 deletions(-) diff --git a/openapi/openapi.json b/openapi/openapi.json index 304c70d7..61d50e20 100644 --- a/openapi/openapi.json +++ b/openapi/openapi.json @@ -1,1907 +1,1636 @@ { - "openapi": "3.0.1", - "info": { - "title": "API-Config Cacher", - "description": "Generate cache for regarding Nodo dei Pagamenti configuration", - "termsOfService": "https://www.pagopa.gov.it/", - "version": "0.8.1" + "openapi" : "3.0.1", + "info" : { + "title" : "API-Config Cacher", + "description" : "Generate cache for regarding Nodo dei Pagamenti configuration", + "termsOfService" : "https://www.pagopa.gov.it/", + "version" : "0.8.1" }, - "servers": [ - { - "url": "https://{host}/{basePath}", - "variables": { - "host": { - "default": "api.dev.platform.pagopa.it", - "enum": [ - "api.dev.platform.pagopa.it", - "api.uat.platform.pagopa.it", - "api.platform.pagopa.it" - ] - }, - "basePath": { - "default": "api-config-cache/o/v1", - "enum": [ - "api-config-cache/o/v1", - "api-config-cache/p/v1", - "api-config-cache/odev/v1" - ] - } + "servers" : [ { + "url" : "http://localhost:8080" + }, { + "url" : "https://{host}/{basePath}", + "variables" : { + "host" : { + "default" : "api.dev.platform.pagopa.it", + "enum" : [ "api.dev.platform.pagopa.it", "api.uat.platform.pagopa.it", "api.platform.pagopa.it" ] + }, + "basePath" : { + "default" : "api-config-cache/o/v1", + "enum" : [ "api-config-cache/o/v1", "api-config-cache/p/v1", "api-config-cache/odev/v1" ] } } - ], - "paths": { - "/info": { - "get": { - "tags": [ - "Home" - ], - "summary": "Return OK if application is started", - "operationId": "healthCheck", - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + } ], + "paths" : { + "/info" : { + "get" : { + "tags" : [ "Home" ], + "summary" : "Return OK if application is started", + "operationId" : "healthCheck", + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/AppInfo" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/AppInfo" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/stakeholders/fdr/cache/schemas/v1": { - "get": { - "tags": [ - "Cache" - ], - "summary": "Get selected key of fdr v1 config", - "operationId": "cache_2", - "parameters": [ - { - "name": "refresh", - "in": "query", - "description": "to force the refresh of the cache", - "required": false, - "schema": { - "type": "boolean" - } - }, - { - "name": "keys", - "in": "query", - "required": false, - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "creditorInstitutions", - "creditorInstitutionBrokers", - "stations", - "creditorInstitutionStations", - "encodings", - "creditorInstitutionEncodings", - "ibans", - "creditorInstitutionInformations", - "psps", - "pspBrokers", - "paymentTypes", - "pspChannelPaymentTypes", - "plugins", - "pspInformationTemplates", - "pspInformations", - "channels", - "cdsServices", - "cdsSubjects", - "cdsSubjectServices", - "cdsCategories", - "configurations", - "ftpServers", - "languages", - "gdeConfigurations", - "metadataDict" - ] - } + "/stakeholders/fdr/cache/schemas/v1" : { + "get" : { + "tags" : [ "Cache" ], + "summary" : "Get selected key of fdr v1 config", + "operationId" : "cache_2", + "parameters" : [ { + "name" : "refresh", + "in" : "query", + "description" : "to force the refresh of the cache", + "required" : false, + "schema" : { + "type" : "boolean" + } + }, { + "name" : "keys", + "in" : "query", + "required" : false, + "schema" : { + "type" : "array", + "items" : { + "type" : "string", + "enum" : [ "creditorInstitutions", "creditorInstitutionBrokers", "stations", "creditorInstitutionStations", "encodings", "creditorInstitutionEncodings", "ibans", "creditorInstitutionInformations", "psps", "pspBrokers", "paymentTypes", "pspChannelPaymentTypes", "plugins", "pspInformationTemplates", "pspInformations", "channels", "cdsServices", "cdsSubjects", "cdsSubjectServices", "cdsCategories", "configurations", "ftpServers", "languages", "gdeConfigurations", "metadataDict" ] } } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ConfigDataV1" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ConfigDataV1" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/stakeholders/fdr/cache/schemas/v1/id": { - "get": { - "tags": [ - "FdrCache" - ], - "summary": "Get last fdr v1 cache version", - "operationId": "idV1_1", - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "/stakeholders/fdr/cache/schemas/v1/id" : { + "get" : { + "tags" : [ "FdrCache" ], + "summary" : "Get last fdr v1 cache version", + "operationId" : "idV1_1", + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CacheVersion" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/CacheVersion" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/stakeholders/node/cache/schemas/v1": { - "get": { - "tags": [ - "Cache" - ], - "summary": "Get selected key of fdr v1 config", - "operationId": "cache_1", - "parameters": [ - { - "name": "refresh", - "in": "query", - "description": "to force the refresh of the cache", - "required": false, - "schema": { - "type": "boolean" - } - }, - { - "name": "keys", - "in": "query", - "required": false, - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "creditorInstitutions", - "creditorInstitutionBrokers", - "stations", - "creditorInstitutionStations", - "encodings", - "creditorInstitutionEncodings", - "ibans", - "creditorInstitutionInformations", - "psps", - "pspBrokers", - "paymentTypes", - "pspChannelPaymentTypes", - "plugins", - "pspInformationTemplates", - "pspInformations", - "channels", - "cdsServices", - "cdsSubjects", - "cdsSubjectServices", - "cdsCategories", - "configurations", - "ftpServers", - "languages", - "gdeConfigurations", - "metadataDict" - ] - } + "/stakeholders/node/cache/schemas/v1" : { + "get" : { + "tags" : [ "Cache" ], + "summary" : "Get selected key of fdr v1 config", + "operationId" : "cache_1", + "parameters" : [ { + "name" : "refresh", + "in" : "query", + "description" : "to force the refresh of the cache", + "required" : false, + "schema" : { + "type" : "boolean" + } + }, { + "name" : "keys", + "in" : "query", + "required" : false, + "schema" : { + "type" : "array", + "items" : { + "type" : "string", + "enum" : [ "creditorInstitutions", "creditorInstitutionBrokers", "stations", "creditorInstitutionStations", "encodings", "creditorInstitutionEncodings", "ibans", "creditorInstitutionInformations", "psps", "pspBrokers", "paymentTypes", "pspChannelPaymentTypes", "plugins", "pspInformationTemplates", "pspInformations", "channels", "cdsServices", "cdsSubjects", "cdsSubjectServices", "cdsCategories", "configurations", "ftpServers", "languages", "gdeConfigurations", "metadataDict" ] } } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ConfigDataV1" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ConfigDataV1" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/stakeholders/node/cache/schemas/v1/id": { - "get": { - "tags": [ - "FdrCache" - ], - "summary": "Get last fdr v1 cache version", - "operationId": "idV1", - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "/stakeholders/node/cache/schemas/v1/id" : { + "get" : { + "tags" : [ "FdrCache" ], + "summary" : "Get last fdr v1 cache version", + "operationId" : "idV1", + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CacheVersion" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/CacheVersion" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/stakeholders/verifier/cache/schemas/v1": { - "get": { - "tags": [ - "VerifierCache" - ], - "summary": "Get Creditor Institution list with Station v2", - "operationId": "cache", - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "/stakeholders/verifier/cache/schemas/v1" : { + "get" : { + "tags" : [ "VerifierCache" ], + "summary" : "Get Creditor Institution list with Station v2", + "operationId" : "cache", + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "type": "string" + "content" : { + "application/json" : { + "schema" : { + "type" : "string" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] } }, - "components": { - "schemas": { - "ProblemJson": { - "type": "object", - "properties": { - "title": { - "type": "string", - "description": "A short, summary of the problem type. Written in english and readable for engineers (usually not suited for non technical stakeholders and not localized); example: Service Unavailable" - }, - "status": { - "maximum": 600, - "minimum": 100, - "type": "integer", - "description": "The HTTP status code generated by the origin server for this occurrence of the problem.", - "format": "int32", - "example": 200 - }, - "detail": { - "type": "string", - "description": "A human readable explanation specific to this occurrence of the problem.", - "example": "There was an error processing the request" + "components" : { + "schemas" : { + "ProblemJson" : { + "type" : "object", + "properties" : { + "title" : { + "type" : "string", + "description" : "A short, summary of the problem type. Written in english and readable for engineers (usually not suited for non technical stakeholders and not localized); example: Service Unavailable" + }, + "status" : { + "maximum" : 600, + "minimum" : 100, + "type" : "integer", + "description" : "The HTTP status code generated by the origin server for this occurrence of the problem.", + "format" : "int32", + "example" : 200 + }, + "detail" : { + "type" : "string", + "description" : "A human readable explanation specific to this occurrence of the problem.", + "example" : "There was an error processing the request" } } }, - "BrokerCreditorInstitution": { - "required": [ - "broker_code", - "enabled", - "extended_fault_bean" - ], - "type": "object", - "properties": { - "broker_code": { - "type": "string" - }, - "enabled": { - "type": "boolean" - }, - "description": { - "type": "string" - }, - "extended_fault_bean": { - "type": "boolean" + "BrokerCreditorInstitution" : { + "required" : [ "broker_code", "enabled", "extended_fault_bean" ], + "type" : "object", + "properties" : { + "broker_code" : { + "type" : "string" + }, + "enabled" : { + "type" : "boolean" + }, + "description" : { + "type" : "string" + }, + "extended_fault_bean" : { + "type" : "boolean" } } }, - "BrokerPsp": { - "required": [ - "broker_psp_code", - "enabled", - "extended_fault_bean" - ], - "type": "object", - "properties": { - "broker_psp_code": { - "type": "string" - }, - "description": { - "type": "string" - }, - "enabled": { - "type": "boolean" - }, - "extended_fault_bean": { - "type": "boolean" + "BrokerPsp" : { + "required" : [ "broker_psp_code", "enabled", "extended_fault_bean" ], + "type" : "object", + "properties" : { + "broker_psp_code" : { + "type" : "string" + }, + "description" : { + "type" : "string" + }, + "enabled" : { + "type" : "boolean" + }, + "extended_fault_bean" : { + "type" : "boolean" } } }, - "CdsCategory": { - "required": [ - "description" - ], - "type": "object", - "properties": { - "description": { - "type": "string" + "CdsCategory" : { + "required" : [ "description" ], + "type" : "object", + "properties" : { + "description" : { + "type" : "string" } } }, - "CdsService": { - "required": [ - "category", - "description", - "id", - "reference_xsd", - "version" - ], - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "description": { - "type": "string" - }, - "reference_xsd": { - "type": "string" - }, - "version": { - "type": "integer", - "format": "int64" - }, - "category": { - "type": "string" + "CdsService" : { + "required" : [ "category", "description", "id", "reference_xsd", "version" ], + "type" : "object", + "properties" : { + "id" : { + "type" : "string" + }, + "description" : { + "type" : "string" + }, + "reference_xsd" : { + "type" : "string" + }, + "version" : { + "type" : "integer", + "format" : "int64" + }, + "category" : { + "type" : "string" } } }, - "CdsSubject": { - "required": [ - "creditor_institution_code", - "creditor_institution_description" - ], - "type": "object", - "properties": { - "creditor_institution_code": { - "type": "string" - }, - "creditor_institution_description": { - "type": "string" + "CdsSubject" : { + "required" : [ "creditor_institution_code", "creditor_institution_description" ], + "type" : "object", + "properties" : { + "creditor_institution_code" : { + "type" : "string" + }, + "creditor_institution_description" : { + "type" : "string" } } }, - "CdsSubjectService": { - "required": [ - "fee", - "service", - "start_date", - "subject", - "subject_service_id" - ], - "type": "object", - "properties": { - "subject": { - "type": "string" - }, - "service": { - "type": "string" - }, - "subject_service_id": { - "type": "string" - }, - "start_date": { - "type": "string", - "format": "date-time" - }, - "end_date": { - "type": "string", - "format": "date-time" - }, - "fee": { - "type": "boolean" - }, - "station_code": { - "type": "string" - }, - "service_description": { - "type": "string" + "CdsSubjectService" : { + "required" : [ "fee", "service", "start_date", "subject", "subject_service_id" ], + "type" : "object", + "properties" : { + "subject" : { + "type" : "string" + }, + "service" : { + "type" : "string" + }, + "subject_service_id" : { + "type" : "string" + }, + "start_date" : { + "type" : "string", + "format" : "date-time" + }, + "end_date" : { + "type" : "string", + "format" : "date-time" + }, + "fee" : { + "type" : "boolean" + }, + "station_code" : { + "type" : "string" + }, + "service_description" : { + "type" : "string" } } }, - "Channel": { - "required": [ - "agid", - "broker_psp_code", - "channel_code", - "connection", - "digital_stamp", - "enabled", - "flag_io", - "flag_psp_cp", - "new_fault_code", - "password", - "payment_model", - "primitive_version", - "recovery", - "redirect", - "rt_push", - "thread_number", - "timeouts" - ], - "type": "object", - "properties": { - "channel_code": { - "type": "string" - }, - "description": { - "type": "string" - }, - "enabled": { - "type": "boolean" - }, - "password": { - "type": "string" - }, - "connection": { - "$ref": "#/components/schemas/Connection" - }, - "broker_psp_code": { - "type": "string" - }, - "proxy": { - "$ref": "#/components/schemas/Proxy" - }, - "service": { - "$ref": "#/components/schemas/Service" - }, - "service_nmp": { - "$ref": "#/components/schemas/Service" - }, - "thread_number": { - "type": "integer", - "format": "int64" - }, - "timeouts": { - "$ref": "#/components/schemas/Timeouts" - }, - "new_fault_code": { - "type": "boolean" - }, - "redirect": { - "$ref": "#/components/schemas/Redirect" - }, - "payment_model": { - "type": "string" - }, - "serv_plugin": { - "type": "string" - }, - "rt_push": { - "type": "boolean" - }, - "recovery": { - "type": "boolean" - }, - "digital_stamp": { - "type": "boolean" - }, - "flag_io": { - "type": "boolean" - }, - "agid": { - "type": "boolean" - }, - "primitive_version": { - "type": "integer", - "format": "int32" - }, - "flag_psp_cp": { - "type": "boolean" + "Channel" : { + "required" : [ "agid", "broker_psp_code", "channel_code", "connection", "digital_stamp", "enabled", "flag_io", "flag_travaso", "new_fault_code", "password", "payment_model", "primitive_version", "recovery", "redirect", "rt_push", "thread_number", "timeouts" ], + "type" : "object", + "properties" : { + "channel_code" : { + "type" : "string" + }, + "description" : { + "type" : "string" + }, + "enabled" : { + "type" : "boolean" + }, + "password" : { + "type" : "string" + }, + "connection" : { + "$ref" : "#/components/schemas/Connection" + }, + "broker_psp_code" : { + "type" : "string" + }, + "proxy" : { + "$ref" : "#/components/schemas/Proxy" + }, + "service" : { + "$ref" : "#/components/schemas/Service" + }, + "service_nmp" : { + "$ref" : "#/components/schemas/Service" + }, + "thread_number" : { + "type" : "integer", + "format" : "int64" + }, + "timeouts" : { + "$ref" : "#/components/schemas/Timeouts" + }, + "new_fault_code" : { + "type" : "boolean" + }, + "redirect" : { + "$ref" : "#/components/schemas/Redirect" + }, + "payment_model" : { + "type" : "string" + }, + "serv_plugin" : { + "type" : "string" + }, + "rt_push" : { + "type" : "boolean" + }, + "recovery" : { + "type" : "boolean" + }, + "digital_stamp" : { + "type" : "boolean" + }, + "flag_io" : { + "type" : "boolean" + }, + "agid" : { + "type" : "boolean" + }, + "primitive_version" : { + "type" : "integer", + "format" : "int32" + }, + "flag_travaso" : { + "type" : "boolean" } } }, - "ConfigDataV1": { - "required": [ - "cdsCategories", - "cdsServices", - "cdsSubjectServices", - "cdsSubjects", - "channels", - "configurations", - "creditorInstitutionBrokers", - "creditorInstitutionEncodings", - "creditorInstitutionInformations", - "creditorInstitutionStations", - "creditorInstitutions", - "encodings", - "ftpServers", - "gdeConfigurations", - "ibans", - "languages", - "metadataDict", - "paymentTypes", - "plugins", - "pspBrokers", - "pspChannelPaymentTypes", - "pspInformationTemplates", - "pspInformations", - "psps", - "stations", - "version" - ], - "type": "object", - "properties": { - "version": { - "type": "string" + "ConfigDataV1" : { + "required" : [ "cdsCategories", "cdsServices", "cdsSubjectServices", "cdsSubjects", "channels", "configurations", "creditorInstitutionBrokers", "creditorInstitutionEncodings", "creditorInstitutionInformations", "creditorInstitutionStations", "creditorInstitutions", "encodings", "ftpServers", "gdeConfigurations", "ibans", "languages", "metadataDict", "paymentTypes", "plugins", "pspBrokers", "pspChannelPaymentTypes", "pspInformationTemplates", "pspInformations", "psps", "stations", "version" ], + "type" : "object", + "properties" : { + "version" : { + "type" : "string" }, - "creditorInstitutions": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/CreditorInstitution" + "creditorInstitutions" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/CreditorInstitution" } }, - "creditorInstitutionBrokers": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/BrokerCreditorInstitution" + "creditorInstitutionBrokers" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/BrokerCreditorInstitution" } }, - "stations": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/Station" + "stations" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/Station" } }, - "creditorInstitutionStations": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/StationCreditorInstitution" + "creditorInstitutionStations" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/StationCreditorInstitution" } }, - "encodings": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/Encoding" + "encodings" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/Encoding" } }, - "creditorInstitutionEncodings": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/CreditorInstitutionEncoding" + "creditorInstitutionEncodings" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/CreditorInstitutionEncoding" } }, - "ibans": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/Iban" + "ibans" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/Iban" } }, - "creditorInstitutionInformations": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/CreditorInstitutionInformation" + "creditorInstitutionInformations" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/CreditorInstitutionInformation" } }, - "psps": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/PaymentServiceProvider" + "psps" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/PaymentServiceProvider" } }, - "pspBrokers": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/BrokerPsp" + "pspBrokers" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/BrokerPsp" } }, - "paymentTypes": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/PaymentType" + "paymentTypes" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/PaymentType" } }, - "pspChannelPaymentTypes": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/PspChannelPaymentType" + "pspChannelPaymentTypes" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/PspChannelPaymentType" } }, - "plugins": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/Plugin" + "plugins" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/Plugin" } }, - "pspInformationTemplates": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/PspInformation" + "pspInformationTemplates" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/PspInformation" } }, - "pspInformations": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/PspInformation" + "pspInformations" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/PspInformation" } }, - "channels": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/Channel" + "channels" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/Channel" } }, - "cdsServices": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/CdsService" + "cdsServices" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/CdsService" } }, - "cdsSubjects": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/CdsSubject" + "cdsSubjects" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/CdsSubject" } }, - "cdsSubjectServices": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/CdsSubjectService" + "cdsSubjectServices" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/CdsSubjectService" } }, - "cdsCategories": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/CdsCategory" + "cdsCategories" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/CdsCategory" } }, - "configurations": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/ConfigurationKey" + "configurations" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/ConfigurationKey" } }, - "ftpServers": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/FtpServer" + "ftpServers" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/FtpServer" } }, - "languages": { - "type": "object", - "additionalProperties": { - "type": "string" + "languages" : { + "type" : "object", + "additionalProperties" : { + "type" : "string" } }, - "gdeConfigurations": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/GdeConfiguration" + "gdeConfigurations" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/GdeConfiguration" } }, - "metadataDict": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/MetadataDict" + "metadataDict" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/MetadataDict" } } } }, - "ConfigurationKey": { - "required": [ - "category", - "key", - "value" - ], - "type": "object", - "properties": { - "category": { - "type": "string" - }, - "key": { - "type": "string" - }, - "value": { - "type": "string" - }, - "description": { - "type": "string" + "ConfigurationKey" : { + "required" : [ "category", "key", "value" ], + "type" : "object", + "properties" : { + "category" : { + "type" : "string" + }, + "key" : { + "type" : "string" + }, + "value" : { + "type" : "string" + }, + "description" : { + "type" : "string" } } }, - "Connection": { - "required": [ - "ip", - "port", - "protocol" - ], - "type": "object", - "properties": { - "protocol": { - "type": "string", - "enum": [ - "HTTPS", - "HTTP" - ] - }, - "ip": { - "type": "string" - }, - "port": { - "type": "integer", - "format": "int64" + "Connection" : { + "required" : [ "ip", "port", "protocol" ], + "type" : "object", + "properties" : { + "protocol" : { + "type" : "string", + "enum" : [ "HTTPS", "HTTP" ] + }, + "ip" : { + "type" : "string" + }, + "port" : { + "type" : "integer", + "format" : "int64" } } }, - "CreditorInstitution": { - "required": [ - "creditor_institution_code", - "enabled", - "psp_payment", - "reporting_ftp", - "reporting_zip" - ], - "type": "object", - "properties": { - "creditor_institution_code": { - "type": "string" - }, - "enabled": { - "type": "boolean" - }, - "business_name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "address": { - "$ref": "#/components/schemas/CreditorInstitutionAddress" - }, - "psp_payment": { - "type": "boolean" - }, - "reporting_ftp": { - "type": "boolean" - }, - "reporting_zip": { - "type": "boolean" + "CreditorInstitution" : { + "required" : [ "creditor_institution_code", "enabled", "psp_payment", "reporting_ftp", "reporting_zip" ], + "type" : "object", + "properties" : { + "creditor_institution_code" : { + "type" : "string" + }, + "enabled" : { + "type" : "boolean" + }, + "business_name" : { + "type" : "string" + }, + "description" : { + "type" : "string" + }, + "address" : { + "$ref" : "#/components/schemas/CreditorInstitutionAddress" + }, + "psp_payment" : { + "type" : "boolean" + }, + "reporting_ftp" : { + "type" : "boolean" + }, + "reporting_zip" : { + "type" : "boolean" } } }, - "CreditorInstitutionAddress": { - "type": "object", - "properties": { - "location": { - "type": "string" + "CreditorInstitutionAddress" : { + "type" : "object", + "properties" : { + "location" : { + "type" : "string" }, - "city": { - "type": "string" + "city" : { + "type" : "string" }, - "zip_code": { - "type": "string" + "zip_code" : { + "type" : "string" }, - "country_code": { - "type": "string" + "country_code" : { + "type" : "string" }, - "tax_domicile": { - "type": "string" + "tax_domicile" : { + "type" : "string" } } }, - "CreditorInstitutionEncoding": { - "required": [ - "code_type", - "creditor_institution_code", - "encoding_code" - ], - "type": "object", - "properties": { - "code_type": { - "type": "string" - }, - "encoding_code": { - "type": "string" - }, - "creditor_institution_code": { - "type": "string" + "CreditorInstitutionEncoding" : { + "required" : [ "code_type", "creditor_institution_code", "encoding_code" ], + "type" : "object", + "properties" : { + "code_type" : { + "type" : "string" + }, + "encoding_code" : { + "type" : "string" + }, + "creditor_institution_code" : { + "type" : "string" } } }, - "CreditorInstitutionInformation": { - "required": [ - "informativa" - ], - "type": "object", - "properties": { - "informativa": { - "type": "string" + "CreditorInstitutionInformation" : { + "required" : [ "informativa" ], + "type" : "object", + "properties" : { + "informativa" : { + "type" : "string" } } }, - "Encoding": { - "required": [ - "code_type", - "description" - ], - "type": "object", - "properties": { - "code_type": { - "type": "string" - }, - "description": { - "type": "string" + "Encoding" : { + "required" : [ "code_type", "description" ], + "type" : "object", + "properties" : { + "code_type" : { + "type" : "string" + }, + "description" : { + "type" : "string" } } }, - "FtpServer": { - "required": [ - "enabled", - "history_path", - "host", - "id", - "in_path", - "out_path", - "password", - "port", - "root_path", - "service", - "type", - "username" - ], - "type": "object", - "properties": { - "host": { - "type": "string" - }, - "port": { - "type": "integer", - "format": "int32" - }, - "enabled": { - "type": "boolean" - }, - "username": { - "type": "string" - }, - "password": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "service": { - "type": "string" - }, - "type": { - "type": "string" - }, - "in_path": { - "type": "string" - }, - "out_path": { - "type": "string" - }, - "history_path": { - "type": "string" - }, - "id": { - "type": "integer", - "format": "int64" + "FtpServer" : { + "required" : [ "enabled", "history_path", "host", "id", "in_path", "out_path", "password", "port", "root_path", "service", "type", "username" ], + "type" : "object", + "properties" : { + "host" : { + "type" : "string" + }, + "port" : { + "type" : "integer", + "format" : "int32" + }, + "enabled" : { + "type" : "boolean" + }, + "username" : { + "type" : "string" + }, + "password" : { + "type" : "string" + }, + "root_path" : { + "type" : "string" + }, + "service" : { + "type" : "string" + }, + "type" : { + "type" : "string" + }, + "in_path" : { + "type" : "string" + }, + "out_path" : { + "type" : "string" + }, + "history_path" : { + "type" : "string" + }, + "id" : { + "type" : "integer", + "format" : "int64" } } }, - "GdeConfiguration": { - "required": [ - "event_hub_enabled", - "event_hub_payload_enabled", - "primitive", - "type" - ], - "type": "object", - "properties": { - "primitive": { - "type": "string" - }, - "type": { - "type": "string" - }, - "event_hub_enabled": { - "type": "boolean" - }, - "event_hub_payload_enabled": { - "type": "boolean" + "GdeConfiguration" : { + "required" : [ "event_hub_enabled", "event_hub_payload_enabled", "primitive", "type" ], + "type" : "object", + "properties" : { + "primitive" : { + "type" : "string" + }, + "type" : { + "type" : "string" + }, + "event_hub_enabled" : { + "type" : "boolean" + }, + "event_hub_payload_enabled" : { + "type" : "boolean" } } }, - "Iban": { - "required": [ - "creditor_institution_code", - "iban", - "publication_date", - "validity_date" - ], - "type": "object", - "properties": { - "iban": { - "type": "string" - }, - "creditor_institution_code": { - "type": "string" - }, - "validity_date": { - "type": "string", - "format": "date-time" - }, - "publication_date": { - "type": "string", - "format": "date-time" - }, - "shop_id": { - "type": "string" - }, - "seller_bank_id": { - "type": "string" - }, - "avvio_key": { - "type": "string" - }, - "esito_key": { - "type": "string" + "Iban" : { + "required" : [ "creditor_institution_code", "iban", "publication_date", "validity_date" ], + "type" : "object", + "properties" : { + "iban" : { + "type" : "string" + }, + "creditor_institution_code" : { + "type" : "string" + }, + "validity_date" : { + "type" : "string", + "format" : "date-time" + }, + "publication_date" : { + "type" : "string", + "format" : "date-time" + }, + "shop_id" : { + "type" : "string" + }, + "seller_bank_id" : { + "type" : "string" + }, + "avvio_key" : { + "type" : "string" + }, + "esito_key" : { + "type" : "string" } } }, - "MetadataDict": { - "required": [ - "key", - "start_date" - ], - "type": "object", - "properties": { - "key": { - "type": "string" - }, - "description": { - "type": "string" - }, - "start_date": { - "type": "string", - "format": "date-time" - }, - "end_date": { - "type": "string", - "format": "date-time" + "MetadataDict" : { + "required" : [ "key", "start_date" ], + "type" : "object", + "properties" : { + "key" : { + "type" : "string" + }, + "description" : { + "type" : "string" + }, + "start_date" : { + "type" : "string", + "format" : "date-time" + }, + "end_date" : { + "type" : "string", + "format" : "date-time" } } }, - "PaymentServiceProvider": { - "required": [ - "agid_psp", - "digital_stamp", - "enabled", - "psp_code" - ], - "type": "object", - "properties": { - "psp_code": { - "type": "string" + "PaymentServiceProvider" : { + "required" : [ "agid_psp", "digital_stamp", "enabled", "psp_code" ], + "type" : "object", + "properties" : { + "psp_code" : { + "type" : "string" }, - "enabled": { - "type": "boolean" + "enabled" : { + "type" : "boolean" }, - "description": { - "type": "string" + "description" : { + "type" : "string" }, - "business_name": { - "type": "string" + "business_name" : { + "type" : "string" }, - "abi": { - "type": "string" + "abi" : { + "type" : "string" }, - "bic": { - "type": "string" + "bic" : { + "type" : "string" }, - "my_bank_code": { - "type": "string" + "my_bank_code" : { + "type" : "string" }, - "digital_stamp": { - "type": "boolean" + "digital_stamp" : { + "type" : "boolean" }, - "agid_psp": { - "type": "boolean" + "agid_psp" : { + "type" : "boolean" }, - "tax_code": { - "type": "string" + "tax_code" : { + "type" : "string" }, - "vat_number": { - "type": "string" + "vat_number" : { + "type" : "string" } } }, - "PaymentType": { - "required": [ - "payment_type" - ], - "type": "object", - "properties": { - "payment_type": { - "type": "string" - }, - "description": { - "type": "string" + "PaymentType" : { + "required" : [ "payment_type" ], + "type" : "object", + "properties" : { + "payment_type" : { + "type" : "string" + }, + "description" : { + "type" : "string" } } }, - "Plugin": { - "required": [ - "id_serv_plugin" - ], - "type": "object", - "properties": { - "id_serv_plugin": { - "type": "string" - }, - "pag_const_string_profile": { - "type": "string" - }, - "pag_soap_rule_profile": { - "type": "string" - }, - "pag_rpt_xpath_profile": { - "type": "string" - }, - "id_bean": { - "type": "string" + "Plugin" : { + "required" : [ "id_serv_plugin" ], + "type" : "object", + "properties" : { + "id_serv_plugin" : { + "type" : "string" + }, + "pag_const_string_profile" : { + "type" : "string" + }, + "pag_soap_rule_profile" : { + "type" : "string" + }, + "pag_rpt_xpath_profile" : { + "type" : "string" + }, + "id_bean" : { + "type" : "string" } } }, - "Proxy": { - "type": "object", - "properties": { - "proxy_host": { - "type": "string" + "Proxy" : { + "type" : "object", + "properties" : { + "proxy_host" : { + "type" : "string" }, - "proxy_port": { - "type": "integer", - "format": "int64" + "proxy_port" : { + "type" : "integer", + "format" : "int64" }, - "proxy_username": { - "type": "string" + "proxy_username" : { + "type" : "string" }, - "proxy_password": { - "type": "string" + "proxy_password" : { + "type" : "string" } } }, - "PspChannelPaymentType": { - "required": [ - "channel_code", - "payment_type", - "psp_code" - ], - "type": "object", - "properties": { - "psp_code": { - "type": "string" - }, - "channel_code": { - "type": "string" - }, - "payment_type": { - "type": "string" + "PspChannelPaymentType" : { + "required" : [ "channel_code", "payment_type", "psp_code" ], + "type" : "object", + "properties" : { + "psp_code" : { + "type" : "string" + }, + "channel_code" : { + "type" : "string" + }, + "payment_type" : { + "type" : "string" } } }, - "PspInformation": { - "required": [ - "informativa" - ], - "type": "object", - "properties": { - "informativa": { - "type": "string" + "PspInformation" : { + "required" : [ "informativa" ], + "type" : "object", + "properties" : { + "informativa" : { + "type" : "string" } } }, - "Redirect": { - "type": "object", - "properties": { - "protocol": { - "type": "string", - "enum": [ - "HTTPS", - "HTTP" - ] - }, - "ip": { - "type": "string" - }, - "path": { - "type": "string" - }, - "port": { - "type": "integer", - "format": "int64" - }, - "query_string": { - "type": "string" + "Redirect" : { + "type" : "object", + "properties" : { + "protocol" : { + "type" : "string", + "enum" : [ "HTTPS", "HTTP" ] + }, + "ip" : { + "type" : "string" + }, + "path" : { + "type" : "string" + }, + "port" : { + "type" : "integer", + "format" : "int64" + }, + "query_string" : { + "type" : "string" } } }, - "Service": { - "type": "object", - "properties": { - "path": { - "type": "string" + "Service" : { + "type" : "object", + "properties" : { + "path" : { + "type" : "string" }, - "target_host": { - "type": "string" + "target_host" : { + "type" : "string" }, - "target_port": { - "type": "integer", - "format": "int64" + "target_port" : { + "type" : "integer", + "format" : "int64" }, - "target_path": { - "type": "string" + "target_path" : { + "type" : "string" } } }, - "Station": { - "required": [ - "broker_code", - "connection", - "enabled", - "invio_rt_istantaneo", - "password", - "primitive_version", - "redirect", - "station_code", - "thread_number", - "timeouts", - "version" - ], - "type": "object", - "properties": { - "station_code": { - "type": "string" - }, - "enabled": { - "type": "boolean" - }, - "version": { - "type": "integer", - "format": "int64" - }, - "connection": { - "$ref": "#/components/schemas/Connection" - }, - "connection_mod4": { - "$ref": "#/components/schemas/Connection" - }, - "password": { - "type": "string" - }, - "redirect": { - "$ref": "#/components/schemas/Redirect" - }, - "service": { - "$ref": "#/components/schemas/Service" - }, - "service_pof": { - "$ref": "#/components/schemas/Service" - }, - "service_mod4": { - "$ref": "#/components/schemas/Service" - }, - "broker_code": { - "type": "string" - }, - "proxy": { - "$ref": "#/components/schemas/Proxy" - }, - "thread_number": { - "type": "integer", - "format": "int64" - }, - "timeouts": { - "$ref": "#/components/schemas/Timeouts" - }, - "invio_rt_istantaneo": { - "type": "boolean" - }, - "primitive_version": { - "type": "integer", - "format": "int32" + "Station" : { + "required" : [ "broker_code", "connection", "enabled", "invio_rt_istantaneo", "password", "primitive_version", "redirect", "station_code", "thread_number", "timeouts", "version" ], + "type" : "object", + "properties" : { + "station_code" : { + "type" : "string" + }, + "enabled" : { + "type" : "boolean" + }, + "version" : { + "type" : "integer", + "format" : "int64" + }, + "connection" : { + "$ref" : "#/components/schemas/Connection" + }, + "connection_mod4" : { + "$ref" : "#/components/schemas/Connection" + }, + "password" : { + "type" : "string" + }, + "redirect" : { + "$ref" : "#/components/schemas/Redirect" + }, + "service" : { + "$ref" : "#/components/schemas/Service" + }, + "service_pof" : { + "$ref" : "#/components/schemas/Service" + }, + "service_mod4" : { + "$ref" : "#/components/schemas/Service" + }, + "broker_code" : { + "type" : "string" + }, + "proxy" : { + "$ref" : "#/components/schemas/Proxy" + }, + "thread_number" : { + "type" : "integer", + "format" : "int64" + }, + "timeouts" : { + "$ref" : "#/components/schemas/Timeouts" + }, + "invio_rt_istantaneo" : { + "type" : "boolean" + }, + "primitive_version" : { + "type" : "integer", + "format" : "int32" } } }, - "StationCreditorInstitution": { - "required": [ - "broadcast", - "creditor_institution_code", - "mod4", - "primitive_version", - "spontaneous_payment", - "station_code" - ], - "type": "object", - "properties": { - "creditor_institution_code": { - "type": "string" - }, - "station_code": { - "type": "string" - }, - "application_code": { - "type": "integer", - "format": "int64" - }, - "aux_digit": { - "type": "integer", - "format": "int64" - }, - "segregation_code": { - "type": "integer", - "format": "int64" - }, - "mod4": { - "type": "boolean" - }, - "broadcast": { - "type": "boolean" - }, - "primitive_version": { - "type": "integer", - "format": "int32" - }, - "spontaneous_payment": { - "type": "boolean" + "StationCreditorInstitution" : { + "required" : [ "broadcast", "creditor_institution_code", "mod4", "primitive_version", "spontaneous_payment", "station_code" ], + "type" : "object", + "properties" : { + "creditor_institution_code" : { + "type" : "string" + }, + "station_code" : { + "type" : "string" + }, + "application_code" : { + "type" : "integer", + "format" : "int64" + }, + "aux_digit" : { + "type" : "integer", + "format" : "int64" + }, + "segregation_code" : { + "type" : "integer", + "format" : "int64" + }, + "mod4" : { + "type" : "boolean" + }, + "broadcast" : { + "type" : "boolean" + }, + "primitive_version" : { + "type" : "integer", + "format" : "int32" + }, + "spontaneous_payment" : { + "type" : "boolean" } } }, - "Timeouts": { - "required": [ - "timeout_a", - "timeout_b", - "timeout_c" - ], - "type": "object", - "properties": { - "timeout_a": { - "type": "integer", - "format": "int64" - }, - "timeout_b": { - "type": "integer", - "format": "int64" - }, - "timeout_c": { - "type": "integer", - "format": "int64" + "Timeouts" : { + "required" : [ "timeout_a", "timeout_b", "timeout_c" ], + "type" : "object", + "properties" : { + "timeout_a" : { + "type" : "integer", + "format" : "int64" + }, + "timeout_b" : { + "type" : "integer", + "format" : "int64" + }, + "timeout_c" : { + "type" : "integer", + "format" : "int64" } } }, - "CacheVersion": { - "required": [ - "version" - ], - "type": "object", - "properties": { - "version": { - "type": "string" + "CacheVersion" : { + "required" : [ "version" ], + "type" : "object", + "properties" : { + "version" : { + "type" : "string" } } }, - "AppInfo": { - "required": [ - "environment", - "name", - "version" - ], - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "version": { - "type": "string" - }, - "environment": { - "type": "string" - }, - "dbConnection": { - "type": "string" + "AppInfo" : { + "required" : [ "environment", "name", "version" ], + "type" : "object", + "properties" : { + "name" : { + "type" : "string" + }, + "version" : { + "type" : "string" + }, + "environment" : { + "type" : "string" + }, + "dbConnection" : { + "type" : "string" } } } }, - "securitySchemes": { - "ApiKey": { - "type": "apiKey", - "description": "The API key to access this function app.", - "name": "Ocp-Apim-Subscription-Key", - "in": "header" + "securitySchemes" : { + "ApiKey" : { + "type" : "apiKey", + "description" : "The API key to access this function app.", + "name" : "Ocp-Apim-Subscription-Key", + "in" : "header" } } } -} +} \ No newline at end of file diff --git a/openapi/openapi_fdrv1.json b/openapi/openapi_fdrv1.json index 3b7581db..c3046818 100644 --- a/openapi/openapi_fdrv1.json +++ b/openapi/openapi_fdrv1.json @@ -1,1252 +1,1039 @@ { - "openapi": "3.0.1", - "info": { - "title": "API-Config Cacher", - "description": "Generate cache for regarding Nodo dei Pagamenti configuration", - "termsOfService": "https://www.pagopa.gov.it/", - "version": "0.8.1" + "openapi" : "3.0.1", + "info" : { + "title" : "API-Config Cacher", + "description" : "Generate cache for regarding Nodo dei Pagamenti configuration", + "termsOfService" : "https://www.pagopa.gov.it/", + "version" : "0.8.1" }, - "servers": [ - { - "url": "http://localhost:8080" - }, - { - "url": "https://{host}/{basePath}", - "variables": { - "host": { - "default": "api.dev.platform.pagopa.it", - "enum": [ - "api.dev.platform.pagopa.it", - "api.uat.platform.pagopa.it", - "api.platform.pagopa.it" - ] - }, - "basePath": { - "default": "api-config-cache/o/v1", - "enum": [ - "api-config-cache/o/v1", - "api-config-cache/p/v1", - "api-config-cache/odev/v1" - ] - } + "servers" : [ { + "url" : "http://localhost:8080" + }, { + "url" : "https://{host}/{basePath}", + "variables" : { + "host" : { + "default" : "api.dev.platform.pagopa.it", + "enum" : [ "api.dev.platform.pagopa.it", "api.uat.platform.pagopa.it", "api.platform.pagopa.it" ] + }, + "basePath" : { + "default" : "api-config-cache/o/v1", + "enum" : [ "api-config-cache/o/v1", "api-config-cache/p/v1", "api-config-cache/odev/v1" ] } } - ], - "paths": { - "/stakeholders/fdr/cache/schemas/v1": { - "get": { - "tags": [ - "Cache" - ], - "summary": "Get selected key of fdr v1 config", - "operationId": "cache", - "parameters": [ - { - "name": "refresh", - "in": "query", - "description": "to force the refresh of the cache", - "required": false, - "schema": { - "type": "boolean" - } - }, - { - "name": "keys", - "in": "query", - "required": false, - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "creditorInstitutions", - "creditorInstitutionBrokers", - "stations", - "creditorInstitutionStations", - "encodings", - "creditorInstitutionEncodings", - "ibans", - "creditorInstitutionInformations", - "psps", - "pspBrokers", - "paymentTypes", - "pspChannelPaymentTypes", - "plugins", - "pspInformationTemplates", - "pspInformations", - "channels", - "cdsServices", - "cdsSubjects", - "cdsSubjectServices", - "cdsCategories", - "configurations", - "ftpServers", - "languages", - "gdeConfigurations", - "metadataDict" - ] - } + } ], + "paths" : { + "/stakeholders/fdr/cache/schemas/v1" : { + "get" : { + "tags" : [ "Cache" ], + "summary" : "Get selected key of fdr v1 config", + "operationId" : "cache", + "parameters" : [ { + "name" : "refresh", + "in" : "query", + "description" : "to force the refresh of the cache", + "required" : false, + "schema" : { + "type" : "boolean" + } + }, { + "name" : "keys", + "in" : "query", + "required" : false, + "schema" : { + "type" : "array", + "items" : { + "type" : "string", + "enum" : [ "creditorInstitutions", "creditorInstitutionBrokers", "stations", "creditorInstitutionStations", "encodings", "creditorInstitutionEncodings", "ibans", "creditorInstitutionInformations", "psps", "pspBrokers", "paymentTypes", "pspChannelPaymentTypes", "plugins", "pspInformationTemplates", "pspInformations", "channels", "cdsServices", "cdsSubjects", "cdsSubjectServices", "cdsCategories", "configurations", "ftpServers", "languages", "gdeConfigurations", "metadataDict" ] } } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ConfigDataV1" + } ], + "responses" : { + "400" : { + "description" : "Bad Request", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "429": { - "description": "Too many requests" - }, - "500": { - "description": "Service unavailable", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "500" : { + "description" : "Service unavailable", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "200" : { + "description" : "OK", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ConfigDataV1" } } } + }, + "401" : { + "description" : "Unauthorized" + }, + "403" : { + "description" : "Forbidden" + }, + "429" : { + "description" : "Too many requests" } }, - "security": [ - { - "ApiKey": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + } ] } }, - "/stakeholders/fdr/cache/schemas/v1/id": { - "get": { - "tags": [ - "FdrCache" - ], - "summary": "Get last fdr v1 cache version", - "operationId": "idV1", - "responses": { - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - }, - "429": { - "description": "Too many requests" - }, - "500": { - "description": "Service unavailable", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "/stakeholders/fdr/cache/schemas/v1/id" : { + "get" : { + "tags" : [ "FdrCache" ], + "summary" : "Get last fdr v1 cache version", + "operationId" : "idV1", + "responses" : { + "400" : { + "description" : "Bad Request", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "500" : { + "description" : "Service unavailable", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CacheVersion" + "401" : { + "description" : "Unauthorized" + }, + "404" : { + "description" : "Not Found" + }, + "200" : { + "description" : "OK", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/CacheVersion" } } } + }, + "403" : { + "description" : "Forbidden" + }, + "429" : { + "description" : "Too many requests" } }, - "security": [ - { - "ApiKey": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + } ] } } }, - "components": { - "schemas": { - "BrokerCreditorInstitution": { - "required": [ - "broker_code", - "enabled", - "extended_fault_bean" - ], - "type": "object", - "properties": { - "broker_code": { - "type": "string" - }, - "enabled": { - "type": "boolean" - }, - "description": { - "type": "string" - }, - "extended_fault_bean": { - "type": "boolean" + "components" : { + "schemas" : { + "ProblemJson" : { + "type" : "object", + "properties" : { + "title" : { + "type" : "string", + "description" : "A short, summary of the problem type. Written in english and readable for engineers (usually not suited for non technical stakeholders and not localized); example: Service Unavailable" + }, + "status" : { + "maximum" : 600, + "minimum" : 100, + "type" : "integer", + "description" : "The HTTP status code generated by the origin server for this occurrence of the problem.", + "format" : "int32", + "example" : 200 + }, + "detail" : { + "type" : "string", + "description" : "A human readable explanation specific to this occurrence of the problem.", + "example" : "There was an error processing the request" } } }, - "BrokerPsp": { - "required": [ - "broker_psp_code", - "enabled", - "extended_fault_bean" - ], - "type": "object", - "properties": { - "broker_psp_code": { - "type": "string" - }, - "description": { - "type": "string" - }, - "enabled": { - "type": "boolean" - }, - "extended_fault_bean": { - "type": "boolean" + "BrokerCreditorInstitution" : { + "required" : [ "broker_code", "enabled", "extended_fault_bean" ], + "type" : "object", + "properties" : { + "broker_code" : { + "type" : "string" + }, + "enabled" : { + "type" : "boolean" + }, + "description" : { + "type" : "string" + }, + "extended_fault_bean" : { + "type" : "boolean" } } }, - "CdsCategory": { - "required": [ - "description" - ], - "type": "object", - "properties": { - "description": { - "type": "string" + "BrokerPsp" : { + "required" : [ "broker_psp_code", "enabled", "extended_fault_bean" ], + "type" : "object", + "properties" : { + "broker_psp_code" : { + "type" : "string" + }, + "description" : { + "type" : "string" + }, + "enabled" : { + "type" : "boolean" + }, + "extended_fault_bean" : { + "type" : "boolean" } } }, - "CdsService": { - "required": [ - "category", - "description", - "id", - "reference_xsd", - "version" - ], - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "description": { - "type": "string" - }, - "reference_xsd": { - "type": "string" - }, - "version": { - "type": "integer", - "format": "int64" - }, - "category": { - "type": "string" + "CdsCategory" : { + "required" : [ "description" ], + "type" : "object", + "properties" : { + "description" : { + "type" : "string" } } }, - "CdsSubject": { - "required": [ - "creditor_institution_code", - "creditor_institution_description" - ], - "type": "object", - "properties": { - "creditor_institution_code": { - "type": "string" - }, - "creditor_institution_description": { - "type": "string" + "CdsService" : { + "required" : [ "category", "description", "id", "reference_xsd", "version" ], + "type" : "object", + "properties" : { + "id" : { + "type" : "string" + }, + "description" : { + "type" : "string" + }, + "reference_xsd" : { + "type" : "string" + }, + "version" : { + "type" : "integer", + "format" : "int64" + }, + "category" : { + "type" : "string" } } }, - "CdsSubjectService": { - "required": [ - "fee", - "service", - "start_date", - "subject", - "subject_service_id" - ], - "type": "object", - "properties": { - "subject": { - "type": "string" - }, - "service": { - "type": "string" - }, - "subject_service_id": { - "type": "string" - }, - "start_date": { - "type": "string", - "format": "date-time" - }, - "end_date": { - "type": "string", - "format": "date-time" - }, - "fee": { - "type": "boolean" - }, - "station_code": { - "type": "string" - }, - "service_description": { - "type": "string" + "CdsSubject" : { + "required" : [ "creditor_institution_code", "creditor_institution_description" ], + "type" : "object", + "properties" : { + "creditor_institution_code" : { + "type" : "string" + }, + "creditor_institution_description" : { + "type" : "string" } } }, - "Channel": { - "required": [ - "agid", - "broker_psp_code", - "channel_code", - "connection", - "digital_stamp", - "enabled", - "flag_io", - "flag_psp_cp", - "new_fault_code", - "password", - "payment_model", - "primitive_version", - "recovery", - "redirect", - "rt_push", - "thread_number", - "timeouts" - ], - "type": "object", - "properties": { - "channel_code": { - "type": "string" - }, - "description": { - "type": "string" - }, - "enabled": { - "type": "boolean" - }, - "password": { - "type": "string" - }, - "connection": { - "$ref": "#/components/schemas/Connection" - }, - "broker_psp_code": { - "type": "string" - }, - "proxy": { - "$ref": "#/components/schemas/Proxy" - }, - "service": { - "$ref": "#/components/schemas/Service" - }, - "service_nmp": { - "$ref": "#/components/schemas/Service" - }, - "thread_number": { - "type": "integer", - "format": "int64" - }, - "timeouts": { - "$ref": "#/components/schemas/Timeouts" - }, - "new_fault_code": { - "type": "boolean" - }, - "redirect": { - "$ref": "#/components/schemas/Redirect" - }, - "payment_model": { - "type": "string" - }, - "serv_plugin": { - "type": "string" - }, - "rt_push": { - "type": "boolean" - }, - "recovery": { - "type": "boolean" - }, - "digital_stamp": { - "type": "boolean" - }, - "flag_io": { - "type": "boolean" - }, - "agid": { - "type": "boolean" - }, - "primitive_version": { - "type": "integer", - "format": "int32" - }, - "flag_psp_cp": { - "type": "boolean" + "CdsSubjectService" : { + "required" : [ "fee", "service", "start_date", "subject", "subject_service_id" ], + "type" : "object", + "properties" : { + "subject" : { + "type" : "string" + }, + "service" : { + "type" : "string" + }, + "subject_service_id" : { + "type" : "string" + }, + "start_date" : { + "type" : "string", + "format" : "date-time" + }, + "end_date" : { + "type" : "string", + "format" : "date-time" + }, + "fee" : { + "type" : "boolean" + }, + "station_code" : { + "type" : "string" + }, + "service_description" : { + "type" : "string" } } }, - "ConfigDataV1": { - "required": [ - "cdsCategories", - "cdsServices", - "cdsSubjectServices", - "cdsSubjects", - "channels", - "configurations", - "creditorInstitutionBrokers", - "creditorInstitutionEncodings", - "creditorInstitutionInformations", - "creditorInstitutionStations", - "creditorInstitutions", - "encodings", - "ftpServers", - "gdeConfigurations", - "ibans", - "languages", - "metadataDict", - "paymentTypes", - "plugins", - "pspBrokers", - "pspChannelPaymentTypes", - "pspInformationTemplates", - "pspInformations", - "psps", - "stations", - "version" - ], - "type": "object", - "properties": { - "version": { - "type": "string" - }, - "creditorInstitutions": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/CreditorInstitution" + "Channel" : { + "required" : [ "agid", "broker_psp_code", "channel_code", "connection", "digital_stamp", "enabled", "flag_io", "flag_travaso", "new_fault_code", "password", "payment_model", "primitive_version", "recovery", "redirect", "rt_push", "thread_number", "timeouts" ], + "type" : "object", + "properties" : { + "channel_code" : { + "type" : "string" + }, + "description" : { + "type" : "string" + }, + "enabled" : { + "type" : "boolean" + }, + "password" : { + "type" : "string" + }, + "connection" : { + "$ref" : "#/components/schemas/Connection" + }, + "broker_psp_code" : { + "type" : "string" + }, + "proxy" : { + "$ref" : "#/components/schemas/Proxy" + }, + "service" : { + "$ref" : "#/components/schemas/Service" + }, + "service_nmp" : { + "$ref" : "#/components/schemas/Service" + }, + "thread_number" : { + "type" : "integer", + "format" : "int64" + }, + "timeouts" : { + "$ref" : "#/components/schemas/Timeouts" + }, + "new_fault_code" : { + "type" : "boolean" + }, + "redirect" : { + "$ref" : "#/components/schemas/Redirect" + }, + "payment_model" : { + "type" : "string" + }, + "serv_plugin" : { + "type" : "string" + }, + "rt_push" : { + "type" : "boolean" + }, + "recovery" : { + "type" : "boolean" + }, + "digital_stamp" : { + "type" : "boolean" + }, + "flag_io" : { + "type" : "boolean" + }, + "agid" : { + "type" : "boolean" + }, + "primitive_version" : { + "type" : "integer", + "format" : "int32" + }, + "flag_travaso" : { + "type" : "boolean" + } + } + }, + "ConfigDataV1" : { + "required" : [ "cdsCategories", "cdsServices", "cdsSubjectServices", "cdsSubjects", "channels", "configurations", "creditorInstitutionBrokers", "creditorInstitutionEncodings", "creditorInstitutionInformations", "creditorInstitutionStations", "creditorInstitutions", "encodings", "ftpServers", "gdeConfigurations", "ibans", "languages", "metadataDict", "paymentTypes", "plugins", "pspBrokers", "pspChannelPaymentTypes", "pspInformationTemplates", "pspInformations", "psps", "stations", "version" ], + "type" : "object", + "properties" : { + "version" : { + "type" : "string" + }, + "creditorInstitutions" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/CreditorInstitution" } }, - "creditorInstitutionBrokers": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/BrokerCreditorInstitution" + "creditorInstitutionBrokers" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/BrokerCreditorInstitution" } }, - "stations": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/Station" + "stations" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/Station" } }, - "creditorInstitutionStations": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/StationCreditorInstitution" + "creditorInstitutionStations" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/StationCreditorInstitution" } }, - "encodings": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/Encoding" + "encodings" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/Encoding" } }, - "creditorInstitutionEncodings": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/CreditorInstitutionEncoding" + "creditorInstitutionEncodings" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/CreditorInstitutionEncoding" } }, - "ibans": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/Iban" + "ibans" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/Iban" } }, - "creditorInstitutionInformations": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/CreditorInstitutionInformation" + "creditorInstitutionInformations" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/CreditorInstitutionInformation" } }, - "psps": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/PaymentServiceProvider" + "psps" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/PaymentServiceProvider" } }, - "pspBrokers": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/BrokerPsp" + "pspBrokers" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/BrokerPsp" } }, - "paymentTypes": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/PaymentType" + "paymentTypes" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/PaymentType" } }, - "pspChannelPaymentTypes": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/PspChannelPaymentType" + "pspChannelPaymentTypes" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/PspChannelPaymentType" } }, - "plugins": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/Plugin" + "plugins" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/Plugin" } }, - "pspInformationTemplates": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/PspInformation" + "pspInformationTemplates" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/PspInformation" } }, - "pspInformations": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/PspInformation" + "pspInformations" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/PspInformation" } }, - "channels": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/Channel" + "channels" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/Channel" } }, - "cdsServices": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/CdsService" + "cdsServices" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/CdsService" } }, - "cdsSubjects": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/CdsSubject" + "cdsSubjects" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/CdsSubject" } }, - "cdsSubjectServices": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/CdsSubjectService" + "cdsSubjectServices" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/CdsSubjectService" } }, - "cdsCategories": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/CdsCategory" + "cdsCategories" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/CdsCategory" } }, - "configurations": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/ConfigurationKey" + "configurations" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/ConfigurationKey" } }, - "ftpServers": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/FtpServer" + "ftpServers" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/FtpServer" } }, - "languages": { - "type": "object", - "additionalProperties": { - "type": "string" + "languages" : { + "type" : "object", + "additionalProperties" : { + "type" : "string" } }, - "gdeConfigurations": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/GdeConfiguration" + "gdeConfigurations" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/GdeConfiguration" } }, - "metadataDict": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/MetadataDict" + "metadataDict" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/MetadataDict" } } } }, - "ConfigurationKey": { - "required": [ - "category", - "key", - "value" - ], - "type": "object", - "properties": { - "category": { - "type": "string" - }, - "key": { - "type": "string" - }, - "value": { - "type": "string" - }, - "description": { - "type": "string" + "ConfigurationKey" : { + "required" : [ "category", "key", "value" ], + "type" : "object", + "properties" : { + "category" : { + "type" : "string" + }, + "key" : { + "type" : "string" + }, + "value" : { + "type" : "string" + }, + "description" : { + "type" : "string" } } }, - "Connection": { - "required": [ - "ip", - "port", - "protocol" - ], - "type": "object", - "properties": { - "protocol": { - "type": "string", - "enum": [ - "HTTPS", - "HTTP" - ] - }, - "ip": { - "type": "string" - }, - "port": { - "type": "integer", - "format": "int64" + "Connection" : { + "required" : [ "ip", "port", "protocol" ], + "type" : "object", + "properties" : { + "protocol" : { + "type" : "string", + "enum" : [ "HTTPS", "HTTP" ] + }, + "ip" : { + "type" : "string" + }, + "port" : { + "type" : "integer", + "format" : "int64" } } }, - "CreditorInstitution": { - "required": [ - "creditor_institution_code", - "enabled", - "psp_payment", - "reporting_ftp", - "reporting_zip" - ], - "type": "object", - "properties": { - "creditor_institution_code": { - "type": "string" - }, - "enabled": { - "type": "boolean" - }, - "business_name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "address": { - "$ref": "#/components/schemas/CreditorInstitutionAddress" - }, - "psp_payment": { - "type": "boolean" - }, - "reporting_ftp": { - "type": "boolean" - }, - "reporting_zip": { - "type": "boolean" + "CreditorInstitution" : { + "required" : [ "creditor_institution_code", "enabled", "psp_payment", "reporting_ftp", "reporting_zip" ], + "type" : "object", + "properties" : { + "creditor_institution_code" : { + "type" : "string" + }, + "enabled" : { + "type" : "boolean" + }, + "business_name" : { + "type" : "string" + }, + "description" : { + "type" : "string" + }, + "address" : { + "$ref" : "#/components/schemas/CreditorInstitutionAddress" + }, + "psp_payment" : { + "type" : "boolean" + }, + "reporting_ftp" : { + "type" : "boolean" + }, + "reporting_zip" : { + "type" : "boolean" } } }, - "CreditorInstitutionAddress": { - "type": "object", - "properties": { - "location": { - "type": "string" + "CreditorInstitutionAddress" : { + "type" : "object", + "properties" : { + "location" : { + "type" : "string" }, - "city": { - "type": "string" + "city" : { + "type" : "string" }, - "zip_code": { - "type": "string" + "zip_code" : { + "type" : "string" }, - "country_code": { - "type": "string" + "country_code" : { + "type" : "string" }, - "tax_domicile": { - "type": "string" + "tax_domicile" : { + "type" : "string" } } }, - "CreditorInstitutionEncoding": { - "required": [ - "code_type", - "creditor_institution_code", - "encoding_code" - ], - "type": "object", - "properties": { - "code_type": { - "type": "string" - }, - "encoding_code": { - "type": "string" - }, - "creditor_institution_code": { - "type": "string" + "CreditorInstitutionEncoding" : { + "required" : [ "code_type", "creditor_institution_code", "encoding_code" ], + "type" : "object", + "properties" : { + "code_type" : { + "type" : "string" + }, + "encoding_code" : { + "type" : "string" + }, + "creditor_institution_code" : { + "type" : "string" } } }, - "CreditorInstitutionInformation": { - "required": [ - "informativa" - ], - "type": "object", - "properties": { - "informativa": { - "type": "string" + "CreditorInstitutionInformation" : { + "required" : [ "informativa" ], + "type" : "object", + "properties" : { + "informativa" : { + "type" : "string" } } }, - "Encoding": { - "required": [ - "code_type", - "description" - ], - "type": "object", - "properties": { - "code_type": { - "type": "string" - }, - "description": { - "type": "string" + "Encoding" : { + "required" : [ "code_type", "description" ], + "type" : "object", + "properties" : { + "code_type" : { + "type" : "string" + }, + "description" : { + "type" : "string" } } }, - "FtpServer": { - "required": [ - "enabled", - "history_path", - "host", - "id", - "in_path", - "out_path", - "password", - "port", - "root_path", - "service", - "type", - "username" - ], - "type": "object", - "properties": { - "host": { - "type": "string" - }, - "port": { - "type": "integer", - "format": "int32" - }, - "enabled": { - "type": "boolean" - }, - "username": { - "type": "string" - }, - "password": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "service": { - "type": "string" - }, - "type": { - "type": "string" - }, - "in_path": { - "type": "string" - }, - "out_path": { - "type": "string" - }, - "history_path": { - "type": "string" - }, - "id": { - "type": "integer", - "format": "int64" + "FtpServer" : { + "required" : [ "enabled", "history_path", "host", "id", "in_path", "out_path", "password", "port", "root_path", "service", "type", "username" ], + "type" : "object", + "properties" : { + "host" : { + "type" : "string" + }, + "port" : { + "type" : "integer", + "format" : "int32" + }, + "enabled" : { + "type" : "boolean" + }, + "username" : { + "type" : "string" + }, + "password" : { + "type" : "string" + }, + "root_path" : { + "type" : "string" + }, + "service" : { + "type" : "string" + }, + "type" : { + "type" : "string" + }, + "in_path" : { + "type" : "string" + }, + "out_path" : { + "type" : "string" + }, + "history_path" : { + "type" : "string" + }, + "id" : { + "type" : "integer", + "format" : "int64" } } }, - "GdeConfiguration": { - "required": [ - "event_hub_enabled", - "event_hub_payload_enabled", - "primitive", - "type" - ], - "type": "object", - "properties": { - "primitive": { - "type": "string" - }, - "type": { - "type": "string" - }, - "event_hub_enabled": { - "type": "boolean" - }, - "event_hub_payload_enabled": { - "type": "boolean" + "GdeConfiguration" : { + "required" : [ "event_hub_enabled", "event_hub_payload_enabled", "primitive", "type" ], + "type" : "object", + "properties" : { + "primitive" : { + "type" : "string" + }, + "type" : { + "type" : "string" + }, + "event_hub_enabled" : { + "type" : "boolean" + }, + "event_hub_payload_enabled" : { + "type" : "boolean" } } }, - "Iban": { - "required": [ - "creditor_institution_code", - "iban", - "publication_date", - "validity_date" - ], - "type": "object", - "properties": { - "iban": { - "type": "string" - }, - "creditor_institution_code": { - "type": "string" - }, - "validity_date": { - "type": "string", - "format": "date-time" - }, - "publication_date": { - "type": "string", - "format": "date-time" - }, - "shop_id": { - "type": "string" - }, - "seller_bank_id": { - "type": "string" - }, - "avvio_key": { - "type": "string" - }, - "esito_key": { - "type": "string" + "Iban" : { + "required" : [ "creditor_institution_code", "iban", "publication_date", "validity_date" ], + "type" : "object", + "properties" : { + "iban" : { + "type" : "string" + }, + "creditor_institution_code" : { + "type" : "string" + }, + "validity_date" : { + "type" : "string", + "format" : "date-time" + }, + "publication_date" : { + "type" : "string", + "format" : "date-time" + }, + "shop_id" : { + "type" : "string" + }, + "seller_bank_id" : { + "type" : "string" + }, + "avvio_key" : { + "type" : "string" + }, + "esito_key" : { + "type" : "string" } } }, - "MetadataDict": { - "required": [ - "key", - "start_date" - ], - "type": "object", - "properties": { - "key": { - "type": "string" - }, - "description": { - "type": "string" - }, - "start_date": { - "type": "string", - "format": "date-time" - }, - "end_date": { - "type": "string", - "format": "date-time" + "MetadataDict" : { + "required" : [ "key", "start_date" ], + "type" : "object", + "properties" : { + "key" : { + "type" : "string" + }, + "description" : { + "type" : "string" + }, + "start_date" : { + "type" : "string", + "format" : "date-time" + }, + "end_date" : { + "type" : "string", + "format" : "date-time" } } }, - "PaymentServiceProvider": { - "required": [ - "agid_psp", - "digital_stamp", - "enabled", - "psp_code" - ], - "type": "object", - "properties": { - "psp_code": { - "type": "string" + "PaymentServiceProvider" : { + "required" : [ "agid_psp", "digital_stamp", "enabled", "psp_code" ], + "type" : "object", + "properties" : { + "psp_code" : { + "type" : "string" }, - "enabled": { - "type": "boolean" + "enabled" : { + "type" : "boolean" }, - "description": { - "type": "string" + "description" : { + "type" : "string" }, - "business_name": { - "type": "string" + "business_name" : { + "type" : "string" }, - "abi": { - "type": "string" + "abi" : { + "type" : "string" }, - "bic": { - "type": "string" + "bic" : { + "type" : "string" }, - "my_bank_code": { - "type": "string" + "my_bank_code" : { + "type" : "string" }, - "digital_stamp": { - "type": "boolean" + "digital_stamp" : { + "type" : "boolean" }, - "agid_psp": { - "type": "boolean" + "agid_psp" : { + "type" : "boolean" }, - "tax_code": { - "type": "string" + "tax_code" : { + "type" : "string" }, - "vat_number": { - "type": "string" - } - } - }, - "PaymentType": { - "required": [ - "payment_type" - ], - "type": "object", - "properties": { - "payment_type": { - "type": "string" - }, - "description": { - "type": "string" + "vat_number" : { + "type" : "string" } } }, - "Plugin": { - "required": [ - "id_serv_plugin" - ], - "type": "object", - "properties": { - "id_serv_plugin": { - "type": "string" - }, - "pag_const_string_profile": { - "type": "string" - }, - "pag_soap_rule_profile": { - "type": "string" - }, - "pag_rpt_xpath_profile": { - "type": "string" - }, - "id_bean": { - "type": "string" + "PaymentType" : { + "required" : [ "payment_type" ], + "type" : "object", + "properties" : { + "payment_type" : { + "type" : "string" + }, + "description" : { + "type" : "string" } } }, - "Proxy": { - "type": "object", - "properties": { - "proxy_host": { - "type": "string" + "Plugin" : { + "required" : [ "id_serv_plugin" ], + "type" : "object", + "properties" : { + "id_serv_plugin" : { + "type" : "string" }, - "proxy_port": { - "type": "integer", - "format": "int64" + "pag_const_string_profile" : { + "type" : "string" }, - "proxy_username": { - "type": "string" + "pag_soap_rule_profile" : { + "type" : "string" }, - "proxy_password": { - "type": "string" + "pag_rpt_xpath_profile" : { + "type" : "string" + }, + "id_bean" : { + "type" : "string" } } }, - "PspChannelPaymentType": { - "required": [ - "channel_code", - "payment_type", - "psp_code" - ], - "type": "object", - "properties": { - "psp_code": { - "type": "string" - }, - "channel_code": { - "type": "string" - }, - "payment_type": { - "type": "string" + "Proxy" : { + "type" : "object", + "properties" : { + "proxy_host" : { + "type" : "string" + }, + "proxy_port" : { + "type" : "integer", + "format" : "int64" + }, + "proxy_username" : { + "type" : "string" + }, + "proxy_password" : { + "type" : "string" } } }, - "PspInformation": { - "required": [ - "informativa" - ], - "type": "object", - "properties": { - "informativa": { - "type": "string" + "PspChannelPaymentType" : { + "required" : [ "channel_code", "payment_type", "psp_code" ], + "type" : "object", + "properties" : { + "psp_code" : { + "type" : "string" + }, + "channel_code" : { + "type" : "string" + }, + "payment_type" : { + "type" : "string" } } }, - "Redirect": { - "type": "object", - "properties": { - "protocol": { - "type": "string", - "enum": [ - "HTTPS", - "HTTP" - ] - }, - "ip": { - "type": "string" - }, - "path": { - "type": "string" - }, - "port": { - "type": "integer", - "format": "int64" - }, - "query_string": { - "type": "string" + "PspInformation" : { + "required" : [ "informativa" ], + "type" : "object", + "properties" : { + "informativa" : { + "type" : "string" } } }, - "Service": { - "type": "object", - "properties": { - "path": { - "type": "string" + "Redirect" : { + "type" : "object", + "properties" : { + "protocol" : { + "type" : "string", + "enum" : [ "HTTPS", "HTTP" ] }, - "target_host": { - "type": "string" + "ip" : { + "type" : "string" }, - "target_port": { - "type": "integer", - "format": "int64" + "path" : { + "type" : "string" }, - "target_path": { - "type": "string" + "port" : { + "type" : "integer", + "format" : "int64" + }, + "query_string" : { + "type" : "string" } } }, - "Station": { - "required": [ - "broker_code", - "connection", - "enabled", - "invio_rt_istantaneo", - "password", - "primitive_version", - "redirect", - "station_code", - "thread_number", - "timeouts", - "version" - ], - "type": "object", - "properties": { - "station_code": { - "type": "string" - }, - "enabled": { - "type": "boolean" - }, - "version": { - "type": "integer", - "format": "int64" - }, - "connection": { - "$ref": "#/components/schemas/Connection" - }, - "connection_mod4": { - "$ref": "#/components/schemas/Connection" - }, - "password": { - "type": "string" - }, - "redirect": { - "$ref": "#/components/schemas/Redirect" - }, - "service": { - "$ref": "#/components/schemas/Service" - }, - "service_pof": { - "$ref": "#/components/schemas/Service" - }, - "service_mod4": { - "$ref": "#/components/schemas/Service" - }, - "broker_code": { - "type": "string" - }, - "proxy": { - "$ref": "#/components/schemas/Proxy" - }, - "thread_number": { - "type": "integer", - "format": "int64" - }, - "timeouts": { - "$ref": "#/components/schemas/Timeouts" - }, - "invio_rt_istantaneo": { - "type": "boolean" - }, - "primitive_version": { - "type": "integer", - "format": "int32" + "Service" : { + "type" : "object", + "properties" : { + "path" : { + "type" : "string" + }, + "target_host" : { + "type" : "string" + }, + "target_port" : { + "type" : "integer", + "format" : "int64" + }, + "target_path" : { + "type" : "string" } } }, - "StationCreditorInstitution": { - "required": [ - "broadcast", - "creditor_institution_code", - "mod4", - "primitive_version", - "spontaneous_payment", - "station_code" - ], - "type": "object", - "properties": { - "creditor_institution_code": { - "type": "string" - }, - "station_code": { - "type": "string" - }, - "application_code": { - "type": "integer", - "format": "int64" - }, - "aux_digit": { - "type": "integer", - "format": "int64" - }, - "segregation_code": { - "type": "integer", - "format": "int64" - }, - "mod4": { - "type": "boolean" - }, - "broadcast": { - "type": "boolean" - }, - "primitive_version": { - "type": "integer", - "format": "int32" - }, - "spontaneous_payment": { - "type": "boolean" + "Station" : { + "required" : [ "broker_code", "connection", "enabled", "invio_rt_istantaneo", "password", "primitive_version", "redirect", "station_code", "thread_number", "timeouts", "version" ], + "type" : "object", + "properties" : { + "station_code" : { + "type" : "string" + }, + "enabled" : { + "type" : "boolean" + }, + "version" : { + "type" : "integer", + "format" : "int64" + }, + "connection" : { + "$ref" : "#/components/schemas/Connection" + }, + "connection_mod4" : { + "$ref" : "#/components/schemas/Connection" + }, + "password" : { + "type" : "string" + }, + "redirect" : { + "$ref" : "#/components/schemas/Redirect" + }, + "service" : { + "$ref" : "#/components/schemas/Service" + }, + "service_pof" : { + "$ref" : "#/components/schemas/Service" + }, + "service_mod4" : { + "$ref" : "#/components/schemas/Service" + }, + "broker_code" : { + "type" : "string" + }, + "proxy" : { + "$ref" : "#/components/schemas/Proxy" + }, + "thread_number" : { + "type" : "integer", + "format" : "int64" + }, + "timeouts" : { + "$ref" : "#/components/schemas/Timeouts" + }, + "invio_rt_istantaneo" : { + "type" : "boolean" + }, + "primitive_version" : { + "type" : "integer", + "format" : "int32" } } }, - "Timeouts": { - "required": [ - "timeout_a", - "timeout_b", - "timeout_c" - ], - "type": "object", - "properties": { - "timeout_a": { - "type": "integer", - "format": "int64" - }, - "timeout_b": { - "type": "integer", - "format": "int64" - }, - "timeout_c": { - "type": "integer", - "format": "int64" + "StationCreditorInstitution" : { + "required" : [ "broadcast", "creditor_institution_code", "mod4", "primitive_version", "spontaneous_payment", "station_code" ], + "type" : "object", + "properties" : { + "creditor_institution_code" : { + "type" : "string" + }, + "station_code" : { + "type" : "string" + }, + "application_code" : { + "type" : "integer", + "format" : "int64" + }, + "aux_digit" : { + "type" : "integer", + "format" : "int64" + }, + "segregation_code" : { + "type" : "integer", + "format" : "int64" + }, + "mod4" : { + "type" : "boolean" + }, + "broadcast" : { + "type" : "boolean" + }, + "primitive_version" : { + "type" : "integer", + "format" : "int32" + }, + "spontaneous_payment" : { + "type" : "boolean" } } }, - "ProblemJson": { - "type": "object", - "properties": { - "title": { - "type": "string", - "description": "A short, summary of the problem type. Written in english and readable for engineers (usually not suited for non technical stakeholders and not localized); example: Service Unavailable" - }, - "status": { - "maximum": 600, - "minimum": 100, - "type": "integer", - "description": "The HTTP status code generated by the origin server for this occurrence of the problem.", - "format": "int32", - "example": 200 - }, - "detail": { - "type": "string", - "description": "A human readable explanation specific to this occurrence of the problem.", - "example": "There was an error processing the request" + "Timeouts" : { + "required" : [ "timeout_a", "timeout_b", "timeout_c" ], + "type" : "object", + "properties" : { + "timeout_a" : { + "type" : "integer", + "format" : "int64" + }, + "timeout_b" : { + "type" : "integer", + "format" : "int64" + }, + "timeout_c" : { + "type" : "integer", + "format" : "int64" } } }, - "CacheVersion": { - "required": [ - "version" - ], - "type": "object", - "properties": { - "version": { - "type": "string" + "CacheVersion" : { + "required" : [ "version" ], + "type" : "object", + "properties" : { + "version" : { + "type" : "string" } } } }, - "securitySchemes": { - "ApiKey": { - "type": "apiKey", - "description": "The API key to access this function app.", - "name": "Ocp-Apim-Subscription-Key", - "in": "header" + "securitySchemes" : { + "ApiKey" : { + "type" : "apiKey", + "description" : "The API key to access this function app.", + "name" : "Ocp-Apim-Subscription-Key", + "in" : "header" } } } -} +} \ No newline at end of file diff --git a/openapi/openapi_nodev1.json b/openapi/openapi_nodev1.json index d943b98e..d02fa777 100644 --- a/openapi/openapi_nodev1.json +++ b/openapi/openapi_nodev1.json @@ -1,1252 +1,1039 @@ { - "openapi": "3.0.1", - "info": { - "title": "API-Config Cacher", - "description": "Generate cache for regarding Nodo dei Pagamenti configuration", - "termsOfService": "https://www.pagopa.gov.it/", - "version": "0.8.1" + "openapi" : "3.0.1", + "info" : { + "title" : "API-Config Cacher", + "description" : "Generate cache for regarding Nodo dei Pagamenti configuration", + "termsOfService" : "https://www.pagopa.gov.it/", + "version" : "0.8.1" }, - "servers": [ - { - "url": "http://localhost:8080" - }, - { - "url": "https://{host}/{basePath}", - "variables": { - "host": { - "default": "api.dev.platform.pagopa.it", - "enum": [ - "api.dev.platform.pagopa.it", - "api.uat.platform.pagopa.it", - "api.platform.pagopa.it" - ] - }, - "basePath": { - "default": "api-config-cache/o/v1", - "enum": [ - "api-config-cache/o/v1", - "api-config-cache/p/v1", - "api-config-cache/odev/v1" - ] - } + "servers" : [ { + "url" : "http://localhost:8080" + }, { + "url" : "https://{host}/{basePath}", + "variables" : { + "host" : { + "default" : "api.dev.platform.pagopa.it", + "enum" : [ "api.dev.platform.pagopa.it", "api.uat.platform.pagopa.it", "api.platform.pagopa.it" ] + }, + "basePath" : { + "default" : "api-config-cache/o/v1", + "enum" : [ "api-config-cache/o/v1", "api-config-cache/p/v1", "api-config-cache/odev/v1" ] } } - ], - "paths": { - "/stakeholders/node/cache/schemas/v1": { - "get": { - "tags": [ - "Cache" - ], - "summary": "Get selected key of fdr v1 config", - "operationId": "cache", - "parameters": [ - { - "name": "refresh", - "in": "query", - "description": "to force the refresh of the cache", - "required": false, - "schema": { - "type": "boolean" - } - }, - { - "name": "keys", - "in": "query", - "required": false, - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "creditorInstitutions", - "creditorInstitutionBrokers", - "stations", - "creditorInstitutionStations", - "encodings", - "creditorInstitutionEncodings", - "ibans", - "creditorInstitutionInformations", - "psps", - "pspBrokers", - "paymentTypes", - "pspChannelPaymentTypes", - "plugins", - "pspInformationTemplates", - "pspInformations", - "channels", - "cdsServices", - "cdsSubjects", - "cdsSubjectServices", - "cdsCategories", - "configurations", - "ftpServers", - "languages", - "gdeConfigurations", - "metadataDict" - ] - } + } ], + "paths" : { + "/stakeholders/node/cache/schemas/v1" : { + "get" : { + "tags" : [ "Cache" ], + "summary" : "Get selected key of fdr v1 config", + "operationId" : "cache", + "parameters" : [ { + "name" : "refresh", + "in" : "query", + "description" : "to force the refresh of the cache", + "required" : false, + "schema" : { + "type" : "boolean" + } + }, { + "name" : "keys", + "in" : "query", + "required" : false, + "schema" : { + "type" : "array", + "items" : { + "type" : "string", + "enum" : [ "creditorInstitutions", "creditorInstitutionBrokers", "stations", "creditorInstitutionStations", "encodings", "creditorInstitutionEncodings", "ibans", "creditorInstitutionInformations", "psps", "pspBrokers", "paymentTypes", "pspChannelPaymentTypes", "plugins", "pspInformationTemplates", "pspInformations", "channels", "cdsServices", "cdsSubjects", "cdsSubjectServices", "cdsCategories", "configurations", "ftpServers", "languages", "gdeConfigurations", "metadataDict" ] } } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ConfigDataV1" + } ], + "responses" : { + "400" : { + "description" : "Bad Request", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "429": { - "description": "Too many requests" - }, - "500": { - "description": "Service unavailable", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "500" : { + "description" : "Service unavailable", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "200" : { + "description" : "OK", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ConfigDataV1" } } } + }, + "401" : { + "description" : "Unauthorized" + }, + "403" : { + "description" : "Forbidden" + }, + "429" : { + "description" : "Too many requests" } }, - "security": [ - { - "ApiKey": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + } ] } }, - "/stakeholders/node/cache/schemas/v1/id": { - "get": { - "tags": [ - "FdrCache" - ], - "summary": "Get last fdr v1 cache version", - "operationId": "idV1", - "responses": { - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - }, - "429": { - "description": "Too many requests" - }, - "500": { - "description": "Service unavailable", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "/stakeholders/node/cache/schemas/v1/id" : { + "get" : { + "tags" : [ "FdrCache" ], + "summary" : "Get last fdr v1 cache version", + "operationId" : "idV1", + "responses" : { + "400" : { + "description" : "Bad Request", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "500" : { + "description" : "Service unavailable", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CacheVersion" + "401" : { + "description" : "Unauthorized" + }, + "404" : { + "description" : "Not Found" + }, + "200" : { + "description" : "OK", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/CacheVersion" } } } + }, + "403" : { + "description" : "Forbidden" + }, + "429" : { + "description" : "Too many requests" } }, - "security": [ - { - "ApiKey": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + } ] } } }, - "components": { - "schemas": { - "BrokerCreditorInstitution": { - "required": [ - "broker_code", - "enabled", - "extended_fault_bean" - ], - "type": "object", - "properties": { - "broker_code": { - "type": "string" - }, - "enabled": { - "type": "boolean" - }, - "description": { - "type": "string" - }, - "extended_fault_bean": { - "type": "boolean" + "components" : { + "schemas" : { + "ProblemJson" : { + "type" : "object", + "properties" : { + "title" : { + "type" : "string", + "description" : "A short, summary of the problem type. Written in english and readable for engineers (usually not suited for non technical stakeholders and not localized); example: Service Unavailable" + }, + "status" : { + "maximum" : 600, + "minimum" : 100, + "type" : "integer", + "description" : "The HTTP status code generated by the origin server for this occurrence of the problem.", + "format" : "int32", + "example" : 200 + }, + "detail" : { + "type" : "string", + "description" : "A human readable explanation specific to this occurrence of the problem.", + "example" : "There was an error processing the request" } } }, - "BrokerPsp": { - "required": [ - "broker_psp_code", - "enabled", - "extended_fault_bean" - ], - "type": "object", - "properties": { - "broker_psp_code": { - "type": "string" - }, - "description": { - "type": "string" - }, - "enabled": { - "type": "boolean" - }, - "extended_fault_bean": { - "type": "boolean" + "BrokerCreditorInstitution" : { + "required" : [ "broker_code", "enabled", "extended_fault_bean" ], + "type" : "object", + "properties" : { + "broker_code" : { + "type" : "string" + }, + "enabled" : { + "type" : "boolean" + }, + "description" : { + "type" : "string" + }, + "extended_fault_bean" : { + "type" : "boolean" } } }, - "CdsCategory": { - "required": [ - "description" - ], - "type": "object", - "properties": { - "description": { - "type": "string" + "BrokerPsp" : { + "required" : [ "broker_psp_code", "enabled", "extended_fault_bean" ], + "type" : "object", + "properties" : { + "broker_psp_code" : { + "type" : "string" + }, + "description" : { + "type" : "string" + }, + "enabled" : { + "type" : "boolean" + }, + "extended_fault_bean" : { + "type" : "boolean" } } }, - "CdsService": { - "required": [ - "category", - "description", - "id", - "reference_xsd", - "version" - ], - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "description": { - "type": "string" - }, - "reference_xsd": { - "type": "string" - }, - "version": { - "type": "integer", - "format": "int64" - }, - "category": { - "type": "string" + "CdsCategory" : { + "required" : [ "description" ], + "type" : "object", + "properties" : { + "description" : { + "type" : "string" } } }, - "CdsSubject": { - "required": [ - "creditor_institution_code", - "creditor_institution_description" - ], - "type": "object", - "properties": { - "creditor_institution_code": { - "type": "string" - }, - "creditor_institution_description": { - "type": "string" + "CdsService" : { + "required" : [ "category", "description", "id", "reference_xsd", "version" ], + "type" : "object", + "properties" : { + "id" : { + "type" : "string" + }, + "description" : { + "type" : "string" + }, + "reference_xsd" : { + "type" : "string" + }, + "version" : { + "type" : "integer", + "format" : "int64" + }, + "category" : { + "type" : "string" } } }, - "CdsSubjectService": { - "required": [ - "fee", - "service", - "start_date", - "subject", - "subject_service_id" - ], - "type": "object", - "properties": { - "subject": { - "type": "string" - }, - "service": { - "type": "string" - }, - "subject_service_id": { - "type": "string" - }, - "start_date": { - "type": "string", - "format": "date-time" - }, - "end_date": { - "type": "string", - "format": "date-time" - }, - "fee": { - "type": "boolean" - }, - "station_code": { - "type": "string" - }, - "service_description": { - "type": "string" + "CdsSubject" : { + "required" : [ "creditor_institution_code", "creditor_institution_description" ], + "type" : "object", + "properties" : { + "creditor_institution_code" : { + "type" : "string" + }, + "creditor_institution_description" : { + "type" : "string" } } }, - "Channel": { - "required": [ - "agid", - "broker_psp_code", - "channel_code", - "connection", - "digital_stamp", - "enabled", - "flag_io", - "flag_psp_cp", - "new_fault_code", - "password", - "payment_model", - "primitive_version", - "recovery", - "redirect", - "rt_push", - "thread_number", - "timeouts" - ], - "type": "object", - "properties": { - "channel_code": { - "type": "string" - }, - "description": { - "type": "string" - }, - "enabled": { - "type": "boolean" - }, - "password": { - "type": "string" - }, - "connection": { - "$ref": "#/components/schemas/Connection" - }, - "broker_psp_code": { - "type": "string" - }, - "proxy": { - "$ref": "#/components/schemas/Proxy" - }, - "service": { - "$ref": "#/components/schemas/Service" - }, - "service_nmp": { - "$ref": "#/components/schemas/Service" - }, - "thread_number": { - "type": "integer", - "format": "int64" - }, - "timeouts": { - "$ref": "#/components/schemas/Timeouts" - }, - "new_fault_code": { - "type": "boolean" - }, - "redirect": { - "$ref": "#/components/schemas/Redirect" - }, - "payment_model": { - "type": "string" - }, - "serv_plugin": { - "type": "string" - }, - "rt_push": { - "type": "boolean" - }, - "recovery": { - "type": "boolean" - }, - "digital_stamp": { - "type": "boolean" - }, - "flag_io": { - "type": "boolean" - }, - "agid": { - "type": "boolean" - }, - "primitive_version": { - "type": "integer", - "format": "int32" - }, - "flag_psp_cp": { - "type": "boolean" + "CdsSubjectService" : { + "required" : [ "fee", "service", "start_date", "subject", "subject_service_id" ], + "type" : "object", + "properties" : { + "subject" : { + "type" : "string" + }, + "service" : { + "type" : "string" + }, + "subject_service_id" : { + "type" : "string" + }, + "start_date" : { + "type" : "string", + "format" : "date-time" + }, + "end_date" : { + "type" : "string", + "format" : "date-time" + }, + "fee" : { + "type" : "boolean" + }, + "station_code" : { + "type" : "string" + }, + "service_description" : { + "type" : "string" } } }, - "ConfigDataV1": { - "required": [ - "cdsCategories", - "cdsServices", - "cdsSubjectServices", - "cdsSubjects", - "channels", - "configurations", - "creditorInstitutionBrokers", - "creditorInstitutionEncodings", - "creditorInstitutionInformations", - "creditorInstitutionStations", - "creditorInstitutions", - "encodings", - "ftpServers", - "gdeConfigurations", - "ibans", - "languages", - "metadataDict", - "paymentTypes", - "plugins", - "pspBrokers", - "pspChannelPaymentTypes", - "pspInformationTemplates", - "pspInformations", - "psps", - "stations", - "version" - ], - "type": "object", - "properties": { - "version": { - "type": "string" - }, - "creditorInstitutions": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/CreditorInstitution" + "Channel" : { + "required" : [ "agid", "broker_psp_code", "channel_code", "connection", "digital_stamp", "enabled", "flag_io", "flag_travaso", "new_fault_code", "password", "payment_model", "primitive_version", "recovery", "redirect", "rt_push", "thread_number", "timeouts" ], + "type" : "object", + "properties" : { + "channel_code" : { + "type" : "string" + }, + "description" : { + "type" : "string" + }, + "enabled" : { + "type" : "boolean" + }, + "password" : { + "type" : "string" + }, + "connection" : { + "$ref" : "#/components/schemas/Connection" + }, + "broker_psp_code" : { + "type" : "string" + }, + "proxy" : { + "$ref" : "#/components/schemas/Proxy" + }, + "service" : { + "$ref" : "#/components/schemas/Service" + }, + "service_nmp" : { + "$ref" : "#/components/schemas/Service" + }, + "thread_number" : { + "type" : "integer", + "format" : "int64" + }, + "timeouts" : { + "$ref" : "#/components/schemas/Timeouts" + }, + "new_fault_code" : { + "type" : "boolean" + }, + "redirect" : { + "$ref" : "#/components/schemas/Redirect" + }, + "payment_model" : { + "type" : "string" + }, + "serv_plugin" : { + "type" : "string" + }, + "rt_push" : { + "type" : "boolean" + }, + "recovery" : { + "type" : "boolean" + }, + "digital_stamp" : { + "type" : "boolean" + }, + "flag_io" : { + "type" : "boolean" + }, + "agid" : { + "type" : "boolean" + }, + "primitive_version" : { + "type" : "integer", + "format" : "int32" + }, + "flag_travaso" : { + "type" : "boolean" + } + } + }, + "ConfigDataV1" : { + "required" : [ "cdsCategories", "cdsServices", "cdsSubjectServices", "cdsSubjects", "channels", "configurations", "creditorInstitutionBrokers", "creditorInstitutionEncodings", "creditorInstitutionInformations", "creditorInstitutionStations", "creditorInstitutions", "encodings", "ftpServers", "gdeConfigurations", "ibans", "languages", "metadataDict", "paymentTypes", "plugins", "pspBrokers", "pspChannelPaymentTypes", "pspInformationTemplates", "pspInformations", "psps", "stations", "version" ], + "type" : "object", + "properties" : { + "version" : { + "type" : "string" + }, + "creditorInstitutions" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/CreditorInstitution" } }, - "creditorInstitutionBrokers": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/BrokerCreditorInstitution" + "creditorInstitutionBrokers" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/BrokerCreditorInstitution" } }, - "stations": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/Station" + "stations" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/Station" } }, - "creditorInstitutionStations": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/StationCreditorInstitution" + "creditorInstitutionStations" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/StationCreditorInstitution" } }, - "encodings": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/Encoding" + "encodings" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/Encoding" } }, - "creditorInstitutionEncodings": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/CreditorInstitutionEncoding" + "creditorInstitutionEncodings" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/CreditorInstitutionEncoding" } }, - "ibans": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/Iban" + "ibans" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/Iban" } }, - "creditorInstitutionInformations": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/CreditorInstitutionInformation" + "creditorInstitutionInformations" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/CreditorInstitutionInformation" } }, - "psps": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/PaymentServiceProvider" + "psps" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/PaymentServiceProvider" } }, - "pspBrokers": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/BrokerPsp" + "pspBrokers" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/BrokerPsp" } }, - "paymentTypes": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/PaymentType" + "paymentTypes" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/PaymentType" } }, - "pspChannelPaymentTypes": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/PspChannelPaymentType" + "pspChannelPaymentTypes" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/PspChannelPaymentType" } }, - "plugins": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/Plugin" + "plugins" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/Plugin" } }, - "pspInformationTemplates": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/PspInformation" + "pspInformationTemplates" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/PspInformation" } }, - "pspInformations": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/PspInformation" + "pspInformations" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/PspInformation" } }, - "channels": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/Channel" + "channels" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/Channel" } }, - "cdsServices": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/CdsService" + "cdsServices" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/CdsService" } }, - "cdsSubjects": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/CdsSubject" + "cdsSubjects" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/CdsSubject" } }, - "cdsSubjectServices": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/CdsSubjectService" + "cdsSubjectServices" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/CdsSubjectService" } }, - "cdsCategories": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/CdsCategory" + "cdsCategories" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/CdsCategory" } }, - "configurations": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/ConfigurationKey" + "configurations" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/ConfigurationKey" } }, - "ftpServers": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/FtpServer" + "ftpServers" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/FtpServer" } }, - "languages": { - "type": "object", - "additionalProperties": { - "type": "string" + "languages" : { + "type" : "object", + "additionalProperties" : { + "type" : "string" } }, - "gdeConfigurations": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/GdeConfiguration" + "gdeConfigurations" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/GdeConfiguration" } }, - "metadataDict": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/MetadataDict" + "metadataDict" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/MetadataDict" } } } }, - "ConfigurationKey": { - "required": [ - "category", - "key", - "value" - ], - "type": "object", - "properties": { - "category": { - "type": "string" - }, - "key": { - "type": "string" - }, - "value": { - "type": "string" - }, - "description": { - "type": "string" + "ConfigurationKey" : { + "required" : [ "category", "key", "value" ], + "type" : "object", + "properties" : { + "category" : { + "type" : "string" + }, + "key" : { + "type" : "string" + }, + "value" : { + "type" : "string" + }, + "description" : { + "type" : "string" } } }, - "Connection": { - "required": [ - "ip", - "port", - "protocol" - ], - "type": "object", - "properties": { - "protocol": { - "type": "string", - "enum": [ - "HTTPS", - "HTTP" - ] - }, - "ip": { - "type": "string" - }, - "port": { - "type": "integer", - "format": "int64" + "Connection" : { + "required" : [ "ip", "port", "protocol" ], + "type" : "object", + "properties" : { + "protocol" : { + "type" : "string", + "enum" : [ "HTTPS", "HTTP" ] + }, + "ip" : { + "type" : "string" + }, + "port" : { + "type" : "integer", + "format" : "int64" } } }, - "CreditorInstitution": { - "required": [ - "creditor_institution_code", - "enabled", - "psp_payment", - "reporting_ftp", - "reporting_zip" - ], - "type": "object", - "properties": { - "creditor_institution_code": { - "type": "string" - }, - "enabled": { - "type": "boolean" - }, - "business_name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "address": { - "$ref": "#/components/schemas/CreditorInstitutionAddress" - }, - "psp_payment": { - "type": "boolean" - }, - "reporting_ftp": { - "type": "boolean" - }, - "reporting_zip": { - "type": "boolean" + "CreditorInstitution" : { + "required" : [ "creditor_institution_code", "enabled", "psp_payment", "reporting_ftp", "reporting_zip" ], + "type" : "object", + "properties" : { + "creditor_institution_code" : { + "type" : "string" + }, + "enabled" : { + "type" : "boolean" + }, + "business_name" : { + "type" : "string" + }, + "description" : { + "type" : "string" + }, + "address" : { + "$ref" : "#/components/schemas/CreditorInstitutionAddress" + }, + "psp_payment" : { + "type" : "boolean" + }, + "reporting_ftp" : { + "type" : "boolean" + }, + "reporting_zip" : { + "type" : "boolean" } } }, - "CreditorInstitutionAddress": { - "type": "object", - "properties": { - "location": { - "type": "string" + "CreditorInstitutionAddress" : { + "type" : "object", + "properties" : { + "location" : { + "type" : "string" }, - "city": { - "type": "string" + "city" : { + "type" : "string" }, - "zip_code": { - "type": "string" + "zip_code" : { + "type" : "string" }, - "country_code": { - "type": "string" + "country_code" : { + "type" : "string" }, - "tax_domicile": { - "type": "string" + "tax_domicile" : { + "type" : "string" } } }, - "CreditorInstitutionEncoding": { - "required": [ - "code_type", - "creditor_institution_code", - "encoding_code" - ], - "type": "object", - "properties": { - "code_type": { - "type": "string" - }, - "encoding_code": { - "type": "string" - }, - "creditor_institution_code": { - "type": "string" + "CreditorInstitutionEncoding" : { + "required" : [ "code_type", "creditor_institution_code", "encoding_code" ], + "type" : "object", + "properties" : { + "code_type" : { + "type" : "string" + }, + "encoding_code" : { + "type" : "string" + }, + "creditor_institution_code" : { + "type" : "string" } } }, - "CreditorInstitutionInformation": { - "required": [ - "informativa" - ], - "type": "object", - "properties": { - "informativa": { - "type": "string" + "CreditorInstitutionInformation" : { + "required" : [ "informativa" ], + "type" : "object", + "properties" : { + "informativa" : { + "type" : "string" } } }, - "Encoding": { - "required": [ - "code_type", - "description" - ], - "type": "object", - "properties": { - "code_type": { - "type": "string" - }, - "description": { - "type": "string" + "Encoding" : { + "required" : [ "code_type", "description" ], + "type" : "object", + "properties" : { + "code_type" : { + "type" : "string" + }, + "description" : { + "type" : "string" } } }, - "FtpServer": { - "required": [ - "enabled", - "history_path", - "host", - "id", - "in_path", - "out_path", - "password", - "port", - "root_path", - "service", - "type", - "username" - ], - "type": "object", - "properties": { - "host": { - "type": "string" - }, - "port": { - "type": "integer", - "format": "int32" - }, - "enabled": { - "type": "boolean" - }, - "username": { - "type": "string" - }, - "password": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "service": { - "type": "string" - }, - "type": { - "type": "string" - }, - "in_path": { - "type": "string" - }, - "out_path": { - "type": "string" - }, - "history_path": { - "type": "string" - }, - "id": { - "type": "integer", - "format": "int64" + "FtpServer" : { + "required" : [ "enabled", "history_path", "host", "id", "in_path", "out_path", "password", "port", "root_path", "service", "type", "username" ], + "type" : "object", + "properties" : { + "host" : { + "type" : "string" + }, + "port" : { + "type" : "integer", + "format" : "int32" + }, + "enabled" : { + "type" : "boolean" + }, + "username" : { + "type" : "string" + }, + "password" : { + "type" : "string" + }, + "root_path" : { + "type" : "string" + }, + "service" : { + "type" : "string" + }, + "type" : { + "type" : "string" + }, + "in_path" : { + "type" : "string" + }, + "out_path" : { + "type" : "string" + }, + "history_path" : { + "type" : "string" + }, + "id" : { + "type" : "integer", + "format" : "int64" } } }, - "GdeConfiguration": { - "required": [ - "event_hub_enabled", - "event_hub_payload_enabled", - "primitive", - "type" - ], - "type": "object", - "properties": { - "primitive": { - "type": "string" - }, - "type": { - "type": "string" - }, - "event_hub_enabled": { - "type": "boolean" - }, - "event_hub_payload_enabled": { - "type": "boolean" + "GdeConfiguration" : { + "required" : [ "event_hub_enabled", "event_hub_payload_enabled", "primitive", "type" ], + "type" : "object", + "properties" : { + "primitive" : { + "type" : "string" + }, + "type" : { + "type" : "string" + }, + "event_hub_enabled" : { + "type" : "boolean" + }, + "event_hub_payload_enabled" : { + "type" : "boolean" } } }, - "Iban": { - "required": [ - "creditor_institution_code", - "iban", - "publication_date", - "validity_date" - ], - "type": "object", - "properties": { - "iban": { - "type": "string" - }, - "creditor_institution_code": { - "type": "string" - }, - "validity_date": { - "type": "string", - "format": "date-time" - }, - "publication_date": { - "type": "string", - "format": "date-time" - }, - "shop_id": { - "type": "string" - }, - "seller_bank_id": { - "type": "string" - }, - "avvio_key": { - "type": "string" - }, - "esito_key": { - "type": "string" + "Iban" : { + "required" : [ "creditor_institution_code", "iban", "publication_date", "validity_date" ], + "type" : "object", + "properties" : { + "iban" : { + "type" : "string" + }, + "creditor_institution_code" : { + "type" : "string" + }, + "validity_date" : { + "type" : "string", + "format" : "date-time" + }, + "publication_date" : { + "type" : "string", + "format" : "date-time" + }, + "shop_id" : { + "type" : "string" + }, + "seller_bank_id" : { + "type" : "string" + }, + "avvio_key" : { + "type" : "string" + }, + "esito_key" : { + "type" : "string" } } }, - "MetadataDict": { - "required": [ - "key", - "start_date" - ], - "type": "object", - "properties": { - "key": { - "type": "string" - }, - "description": { - "type": "string" - }, - "start_date": { - "type": "string", - "format": "date-time" - }, - "end_date": { - "type": "string", - "format": "date-time" + "MetadataDict" : { + "required" : [ "key", "start_date" ], + "type" : "object", + "properties" : { + "key" : { + "type" : "string" + }, + "description" : { + "type" : "string" + }, + "start_date" : { + "type" : "string", + "format" : "date-time" + }, + "end_date" : { + "type" : "string", + "format" : "date-time" } } }, - "PaymentServiceProvider": { - "required": [ - "agid_psp", - "digital_stamp", - "enabled", - "psp_code" - ], - "type": "object", - "properties": { - "psp_code": { - "type": "string" + "PaymentServiceProvider" : { + "required" : [ "agid_psp", "digital_stamp", "enabled", "psp_code" ], + "type" : "object", + "properties" : { + "psp_code" : { + "type" : "string" }, - "enabled": { - "type": "boolean" + "enabled" : { + "type" : "boolean" }, - "description": { - "type": "string" + "description" : { + "type" : "string" }, - "business_name": { - "type": "string" + "business_name" : { + "type" : "string" }, - "abi": { - "type": "string" + "abi" : { + "type" : "string" }, - "bic": { - "type": "string" + "bic" : { + "type" : "string" }, - "my_bank_code": { - "type": "string" + "my_bank_code" : { + "type" : "string" }, - "digital_stamp": { - "type": "boolean" + "digital_stamp" : { + "type" : "boolean" }, - "agid_psp": { - "type": "boolean" + "agid_psp" : { + "type" : "boolean" }, - "tax_code": { - "type": "string" + "tax_code" : { + "type" : "string" }, - "vat_number": { - "type": "string" - } - } - }, - "PaymentType": { - "required": [ - "payment_type" - ], - "type": "object", - "properties": { - "payment_type": { - "type": "string" - }, - "description": { - "type": "string" + "vat_number" : { + "type" : "string" } } }, - "Plugin": { - "required": [ - "id_serv_plugin" - ], - "type": "object", - "properties": { - "id_serv_plugin": { - "type": "string" - }, - "pag_const_string_profile": { - "type": "string" - }, - "pag_soap_rule_profile": { - "type": "string" - }, - "pag_rpt_xpath_profile": { - "type": "string" - }, - "id_bean": { - "type": "string" + "PaymentType" : { + "required" : [ "payment_type" ], + "type" : "object", + "properties" : { + "payment_type" : { + "type" : "string" + }, + "description" : { + "type" : "string" } } }, - "Proxy": { - "type": "object", - "properties": { - "proxy_host": { - "type": "string" + "Plugin" : { + "required" : [ "id_serv_plugin" ], + "type" : "object", + "properties" : { + "id_serv_plugin" : { + "type" : "string" }, - "proxy_port": { - "type": "integer", - "format": "int64" + "pag_const_string_profile" : { + "type" : "string" }, - "proxy_username": { - "type": "string" + "pag_soap_rule_profile" : { + "type" : "string" }, - "proxy_password": { - "type": "string" + "pag_rpt_xpath_profile" : { + "type" : "string" + }, + "id_bean" : { + "type" : "string" } } }, - "PspChannelPaymentType": { - "required": [ - "channel_code", - "payment_type", - "psp_code" - ], - "type": "object", - "properties": { - "psp_code": { - "type": "string" - }, - "channel_code": { - "type": "string" - }, - "payment_type": { - "type": "string" + "Proxy" : { + "type" : "object", + "properties" : { + "proxy_host" : { + "type" : "string" + }, + "proxy_port" : { + "type" : "integer", + "format" : "int64" + }, + "proxy_username" : { + "type" : "string" + }, + "proxy_password" : { + "type" : "string" } } }, - "PspInformation": { - "required": [ - "informativa" - ], - "type": "object", - "properties": { - "informativa": { - "type": "string" + "PspChannelPaymentType" : { + "required" : [ "channel_code", "payment_type", "psp_code" ], + "type" : "object", + "properties" : { + "psp_code" : { + "type" : "string" + }, + "channel_code" : { + "type" : "string" + }, + "payment_type" : { + "type" : "string" } } }, - "Redirect": { - "type": "object", - "properties": { - "protocol": { - "type": "string", - "enum": [ - "HTTPS", - "HTTP" - ] - }, - "ip": { - "type": "string" - }, - "path": { - "type": "string" - }, - "port": { - "type": "integer", - "format": "int64" - }, - "query_string": { - "type": "string" + "PspInformation" : { + "required" : [ "informativa" ], + "type" : "object", + "properties" : { + "informativa" : { + "type" : "string" } } }, - "Service": { - "type": "object", - "properties": { - "path": { - "type": "string" + "Redirect" : { + "type" : "object", + "properties" : { + "protocol" : { + "type" : "string", + "enum" : [ "HTTPS", "HTTP" ] }, - "target_host": { - "type": "string" + "ip" : { + "type" : "string" }, - "target_port": { - "type": "integer", - "format": "int64" + "path" : { + "type" : "string" }, - "target_path": { - "type": "string" + "port" : { + "type" : "integer", + "format" : "int64" + }, + "query_string" : { + "type" : "string" } } }, - "Station": { - "required": [ - "broker_code", - "connection", - "enabled", - "invio_rt_istantaneo", - "password", - "primitive_version", - "redirect", - "station_code", - "thread_number", - "timeouts", - "version" - ], - "type": "object", - "properties": { - "station_code": { - "type": "string" - }, - "enabled": { - "type": "boolean" - }, - "version": { - "type": "integer", - "format": "int64" - }, - "connection": { - "$ref": "#/components/schemas/Connection" - }, - "connection_mod4": { - "$ref": "#/components/schemas/Connection" - }, - "password": { - "type": "string" - }, - "redirect": { - "$ref": "#/components/schemas/Redirect" - }, - "service": { - "$ref": "#/components/schemas/Service" - }, - "service_pof": { - "$ref": "#/components/schemas/Service" - }, - "service_mod4": { - "$ref": "#/components/schemas/Service" - }, - "broker_code": { - "type": "string" - }, - "proxy": { - "$ref": "#/components/schemas/Proxy" - }, - "thread_number": { - "type": "integer", - "format": "int64" - }, - "timeouts": { - "$ref": "#/components/schemas/Timeouts" - }, - "invio_rt_istantaneo": { - "type": "boolean" - }, - "primitive_version": { - "type": "integer", - "format": "int32" + "Service" : { + "type" : "object", + "properties" : { + "path" : { + "type" : "string" + }, + "target_host" : { + "type" : "string" + }, + "target_port" : { + "type" : "integer", + "format" : "int64" + }, + "target_path" : { + "type" : "string" } } }, - "StationCreditorInstitution": { - "required": [ - "broadcast", - "creditor_institution_code", - "mod4", - "primitive_version", - "spontaneous_payment", - "station_code" - ], - "type": "object", - "properties": { - "creditor_institution_code": { - "type": "string" - }, - "station_code": { - "type": "string" - }, - "application_code": { - "type": "integer", - "format": "int64" - }, - "aux_digit": { - "type": "integer", - "format": "int64" - }, - "segregation_code": { - "type": "integer", - "format": "int64" - }, - "mod4": { - "type": "boolean" - }, - "broadcast": { - "type": "boolean" - }, - "primitive_version": { - "type": "integer", - "format": "int32" - }, - "spontaneous_payment": { - "type": "boolean" + "Station" : { + "required" : [ "broker_code", "connection", "enabled", "invio_rt_istantaneo", "password", "primitive_version", "redirect", "station_code", "thread_number", "timeouts", "version" ], + "type" : "object", + "properties" : { + "station_code" : { + "type" : "string" + }, + "enabled" : { + "type" : "boolean" + }, + "version" : { + "type" : "integer", + "format" : "int64" + }, + "connection" : { + "$ref" : "#/components/schemas/Connection" + }, + "connection_mod4" : { + "$ref" : "#/components/schemas/Connection" + }, + "password" : { + "type" : "string" + }, + "redirect" : { + "$ref" : "#/components/schemas/Redirect" + }, + "service" : { + "$ref" : "#/components/schemas/Service" + }, + "service_pof" : { + "$ref" : "#/components/schemas/Service" + }, + "service_mod4" : { + "$ref" : "#/components/schemas/Service" + }, + "broker_code" : { + "type" : "string" + }, + "proxy" : { + "$ref" : "#/components/schemas/Proxy" + }, + "thread_number" : { + "type" : "integer", + "format" : "int64" + }, + "timeouts" : { + "$ref" : "#/components/schemas/Timeouts" + }, + "invio_rt_istantaneo" : { + "type" : "boolean" + }, + "primitive_version" : { + "type" : "integer", + "format" : "int32" } } }, - "Timeouts": { - "required": [ - "timeout_a", - "timeout_b", - "timeout_c" - ], - "type": "object", - "properties": { - "timeout_a": { - "type": "integer", - "format": "int64" - }, - "timeout_b": { - "type": "integer", - "format": "int64" - }, - "timeout_c": { - "type": "integer", - "format": "int64" + "StationCreditorInstitution" : { + "required" : [ "broadcast", "creditor_institution_code", "mod4", "primitive_version", "spontaneous_payment", "station_code" ], + "type" : "object", + "properties" : { + "creditor_institution_code" : { + "type" : "string" + }, + "station_code" : { + "type" : "string" + }, + "application_code" : { + "type" : "integer", + "format" : "int64" + }, + "aux_digit" : { + "type" : "integer", + "format" : "int64" + }, + "segregation_code" : { + "type" : "integer", + "format" : "int64" + }, + "mod4" : { + "type" : "boolean" + }, + "broadcast" : { + "type" : "boolean" + }, + "primitive_version" : { + "type" : "integer", + "format" : "int32" + }, + "spontaneous_payment" : { + "type" : "boolean" } } }, - "ProblemJson": { - "type": "object", - "properties": { - "title": { - "type": "string", - "description": "A short, summary of the problem type. Written in english and readable for engineers (usually not suited for non technical stakeholders and not localized); example: Service Unavailable" - }, - "status": { - "maximum": 600, - "minimum": 100, - "type": "integer", - "description": "The HTTP status code generated by the origin server for this occurrence of the problem.", - "format": "int32", - "example": 200 - }, - "detail": { - "type": "string", - "description": "A human readable explanation specific to this occurrence of the problem.", - "example": "There was an error processing the request" + "Timeouts" : { + "required" : [ "timeout_a", "timeout_b", "timeout_c" ], + "type" : "object", + "properties" : { + "timeout_a" : { + "type" : "integer", + "format" : "int64" + }, + "timeout_b" : { + "type" : "integer", + "format" : "int64" + }, + "timeout_c" : { + "type" : "integer", + "format" : "int64" } } }, - "CacheVersion": { - "required": [ - "version" - ], - "type": "object", - "properties": { - "version": { - "type": "string" + "CacheVersion" : { + "required" : [ "version" ], + "type" : "object", + "properties" : { + "version" : { + "type" : "string" } } } }, - "securitySchemes": { - "ApiKey": { - "type": "apiKey", - "description": "The API key to access this function app.", - "name": "Ocp-Apim-Subscription-Key", - "in": "header" + "securitySchemes" : { + "ApiKey" : { + "type" : "apiKey", + "description" : "The API key to access this function app.", + "name" : "Ocp-Apim-Subscription-Key", + "in" : "header" } } } -} +} \ No newline at end of file diff --git a/openapi/openapi_verifierv1.json b/openapi/openapi_verifierv1.json index ee947897..62b891ff 100644 --- a/openapi/openapi_verifierv1.json +++ b/openapi/openapi_verifierv1.json @@ -1,126 +1,111 @@ { - "openapi": "3.0.1", - "info": { - "title": "API-Config Cacher", - "description": "Generate cache for regarding Nodo dei Pagamenti configuration", - "termsOfService": "https://www.pagopa.gov.it/", - "version": "0.8.1" + "openapi" : "3.0.1", + "info" : { + "title" : "API-Config Cacher", + "description" : "Generate cache for regarding Nodo dei Pagamenti configuration", + "termsOfService" : "https://www.pagopa.gov.it/", + "version" : "0.8.1" }, - "servers": [ - { - "url": "http://localhost:8080" - }, - { - "url": "https://{host}/{basePath}", - "variables": { - "host": { - "default": "api.dev.platform.pagopa.it", - "enum": [ - "api.dev.platform.pagopa.it", - "api.uat.platform.pagopa.it", - "api.platform.pagopa.it" - ] - }, - "basePath": { - "default": "api-config-cache/o/v1", - "enum": [ - "api-config-cache/o/v1", - "api-config-cache/p/v1", - "api-config-cache/odev/v1" - ] - } + "servers" : [ { + "url" : "http://localhost:8080" + }, { + "url" : "https://{host}/{basePath}", + "variables" : { + "host" : { + "default" : "api.dev.platform.pagopa.it", + "enum" : [ "api.dev.platform.pagopa.it", "api.uat.platform.pagopa.it", "api.platform.pagopa.it" ] + }, + "basePath" : { + "default" : "api-config-cache/o/v1", + "enum" : [ "api-config-cache/o/v1", "api-config-cache/p/v1", "api-config-cache/odev/v1" ] } } - ], - "paths": { - "/stakeholders/verifier/cache/schemas/v1": { - "get": { - "tags": [ - "VerifierCache" - ], - "summary": "Get Creditor Institution list with Station v2", - "operationId": "cache", - "responses": { - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "type": "string" + } ], + "paths" : { + "/stakeholders/verifier/cache/schemas/v1" : { + "get" : { + "tags" : [ "VerifierCache" ], + "summary" : "Get Creditor Institution list with Station v2", + "operationId" : "cache", + "responses" : { + "400" : { + "description" : "Bad Request", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests" - }, - "500": { - "description": "Service unavailable", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "500" : { + "description" : "Service unavailable", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "200" : { + "description" : "OK", + "content" : { + "application/json" : { + "schema" : { + "type" : "string" } } } + }, + "401" : { + "description" : "Unauthorized" + }, + "403" : { + "description" : "Forbidden" + }, + "429" : { + "description" : "Too many requests" } }, - "security": [ - { - "ApiKey": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + } ] } } }, - "components": { - "schemas": { - "ProblemJson": { - "type": "object", - "properties": { - "title": { - "type": "string", - "description": "A short, summary of the problem type. Written in english and readable for engineers (usually not suited for non technical stakeholders and not localized); example: Service Unavailable" + "components" : { + "schemas" : { + "ProblemJson" : { + "type" : "object", + "properties" : { + "title" : { + "type" : "string", + "description" : "A short, summary of the problem type. Written in english and readable for engineers (usually not suited for non technical stakeholders and not localized); example: Service Unavailable" }, - "status": { - "maximum": 600, - "minimum": 100, - "type": "integer", - "description": "The HTTP status code generated by the origin server for this occurrence of the problem.", - "format": "int32", - "example": 200 + "status" : { + "maximum" : 600, + "minimum" : 100, + "type" : "integer", + "description" : "The HTTP status code generated by the origin server for this occurrence of the problem.", + "format" : "int32", + "example" : 200 }, - "detail": { - "type": "string", - "description": "A human readable explanation specific to this occurrence of the problem.", - "example": "There was an error processing the request" + "detail" : { + "type" : "string", + "description" : "A human readable explanation specific to this occurrence of the problem.", + "example" : "There was an error processing the request" } } } }, - "securitySchemes": { - "ApiKey": { - "type": "apiKey", - "description": "The API key to access this function app.", - "name": "Ocp-Apim-Subscription-Key", - "in": "header" + "securitySchemes" : { + "ApiKey" : { + "type" : "apiKey", + "description" : "The API key to access this function app.", + "name" : "Ocp-Apim-Subscription-Key", + "in" : "header" } } } -} +} \ No newline at end of file diff --git a/pom.xml b/pom.xml index 7cd9ac2a..83953572 100644 --- a/pom.xml +++ b/pom.xml @@ -19,7 +19,7 @@ 11 2.7.7 - 1.13.1 + 1.15.0 1.6.11 42.5.4 21.4.0.0 diff --git a/src/main/java/it/gov/pagopa/apiconfig/cache/model/node/v1/psp/Channel.java b/src/main/java/it/gov/pagopa/apiconfig/cache/model/node/v1/psp/Channel.java index 09095f93..9238a090 100644 --- a/src/main/java/it/gov/pagopa/apiconfig/cache/model/node/v1/psp/Channel.java +++ b/src/main/java/it/gov/pagopa/apiconfig/cache/model/node/v1/psp/Channel.java @@ -87,6 +87,6 @@ public class Channel implements Serializable { @JsonProperty(value = "primitive_version", required = true) private Integer primitiveVersion; - @JsonProperty(value = "flag_psp_cp", required = true) - private Boolean flagPspCp; + @JsonProperty(value = "flag_travaso", required = true) + private Boolean flagTravaso; } diff --git a/src/main/java/it/gov/pagopa/apiconfig/cache/util/mapper/ConvertCanaliToChannelDetails.java b/src/main/java/it/gov/pagopa/apiconfig/cache/util/mapper/ConvertCanaliToChannelDetails.java index 9b1466f5..1e46d08e 100644 --- a/src/main/java/it/gov/pagopa/apiconfig/cache/util/mapper/ConvertCanaliToChannelDetails.java +++ b/src/main/java/it/gov/pagopa/apiconfig/cache/util/mapper/ConvertCanaliToChannelDetails.java @@ -1,11 +1,6 @@ package it.gov.pagopa.apiconfig.cache.util.mapper; -import it.gov.pagopa.apiconfig.cache.model.node.v1.common.Connection; -import it.gov.pagopa.apiconfig.cache.model.node.v1.common.Protocol; -import it.gov.pagopa.apiconfig.cache.model.node.v1.common.Proxy; -import it.gov.pagopa.apiconfig.cache.model.node.v1.common.Redirect; -import it.gov.pagopa.apiconfig.cache.model.node.v1.common.Service; -import it.gov.pagopa.apiconfig.cache.model.node.v1.common.Timeouts; +import it.gov.pagopa.apiconfig.cache.model.node.v1.common.*; import it.gov.pagopa.apiconfig.cache.model.node.v1.psp.Channel; import it.gov.pagopa.apiconfig.starter.entity.CanaliView; import org.modelmapper.Converter; @@ -77,7 +72,7 @@ public Channel convert(MappingContext context) { .agid(source.getAgidChannel()) .primitiveVersion(source.getVersionePrimitive()) .flagIo(source.getFlagIo()) - .flagPspCp(source.getFlagPspCp()) + .flagTravaso(source.getFlagTravaso()) .servPlugin(source.getIdServPlugin()) .build(); } From fa1c5ae6356df2d8a8d0a1caae6c08990c5eecbb Mon Sep 17 00:00:00 2001 From: Lorenzo Catalano Date: Tue, 7 Nov 2023 11:16:08 +0100 Subject: [PATCH 2/2] NOD-573 Adeguamento flag travaso su config cache e cache --- openapi/openapi.json | 12 +- openapi/openapi_fdrv1.json | 114 +++++++++--------- openapi/openapi_nodev1.json | 114 +++++++++--------- openapi/openapi_verifierv1.json | 34 +++--- .../cache/controller/CacheController.java | 6 +- 5 files changed, 140 insertions(+), 140 deletions(-) diff --git a/openapi/openapi.json b/openapi/openapi.json index 61d50e20..73f9306e 100644 --- a/openapi/openapi.json +++ b/openapi/openapi.json @@ -132,7 +132,7 @@ "/stakeholders/fdr/cache/schemas/v1" : { "get" : { "tags" : [ "Cache" ], - "summary" : "Get selected key of fdr v1 config", + "summary" : "Get selected key of cache v1 config", "operationId" : "cache_2", "parameters" : [ { "name" : "refresh", @@ -258,8 +258,8 @@ }, "/stakeholders/fdr/cache/schemas/v1/id" : { "get" : { - "tags" : [ "FdrCache" ], - "summary" : "Get last fdr v1 cache version", + "tags" : [ "Cache" ], + "summary" : "Get last v1 cache version", "operationId" : "idV1_1", "responses" : { "200" : { @@ -377,7 +377,7 @@ "/stakeholders/node/cache/schemas/v1" : { "get" : { "tags" : [ "Cache" ], - "summary" : "Get selected key of fdr v1 config", + "summary" : "Get selected key of cache v1 config", "operationId" : "cache_1", "parameters" : [ { "name" : "refresh", @@ -503,8 +503,8 @@ }, "/stakeholders/node/cache/schemas/v1/id" : { "get" : { - "tags" : [ "FdrCache" ], - "summary" : "Get last fdr v1 cache version", + "tags" : [ "Cache" ], + "summary" : "Get last v1 cache version", "operationId" : "idV1", "responses" : { "200" : { diff --git a/openapi/openapi_fdrv1.json b/openapi/openapi_fdrv1.json index c3046818..3de1eae7 100644 --- a/openapi/openapi_fdrv1.json +++ b/openapi/openapi_fdrv1.json @@ -25,7 +25,7 @@ "/stakeholders/fdr/cache/schemas/v1" : { "get" : { "tags" : [ "Cache" ], - "summary" : "Get selected key of fdr v1 config", + "summary" : "Get selected key of cache v1 config", "operationId" : "cache", "parameters" : [ { "name" : "refresh", @@ -48,18 +48,21 @@ } } ], "responses" : { - "400" : { - "description" : "Bad Request", + "403" : { + "description" : "Forbidden" + }, + "200" : { + "description" : "OK", "content" : { "application/json" : { "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "$ref" : "#/components/schemas/ConfigDataV1" } } } }, - "500" : { - "description" : "Service unavailable", + "400" : { + "description" : "Bad Request", "content" : { "application/json" : { "schema" : { @@ -68,24 +71,21 @@ } } }, - "200" : { - "description" : "OK", + "429" : { + "description" : "Too many requests" + }, + "401" : { + "description" : "Unauthorized" + }, + "500" : { + "description" : "Service unavailable", "content" : { "application/json" : { "schema" : { - "$ref" : "#/components/schemas/ConfigDataV1" + "$ref" : "#/components/schemas/ProblemJson" } } } - }, - "401" : { - "description" : "Unauthorized" - }, - "403" : { - "description" : "Forbidden" - }, - "429" : { - "description" : "Too many requests" } }, "security" : [ { @@ -95,10 +95,16 @@ }, "/stakeholders/fdr/cache/schemas/v1/id" : { "get" : { - "tags" : [ "FdrCache" ], - "summary" : "Get last fdr v1 cache version", + "tags" : [ "Cache" ], + "summary" : "Get last v1 cache version", "operationId" : "idV1", "responses" : { + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + }, "400" : { "description" : "Bad Request", "content" : { @@ -109,12 +115,15 @@ } } }, - "500" : { - "description" : "Service unavailable", + "429" : { + "description" : "Too many requests" + }, + "200" : { + "description" : "OK", "content" : { "application/json" : { "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "$ref" : "#/components/schemas/CacheVersion" } } } @@ -122,24 +131,15 @@ "401" : { "description" : "Unauthorized" }, - "404" : { - "description" : "Not Found" - }, - "200" : { - "description" : "OK", + "500" : { + "description" : "Service unavailable", "content" : { "application/json" : { "schema" : { - "$ref" : "#/components/schemas/CacheVersion" + "$ref" : "#/components/schemas/ProblemJson" } } } - }, - "403" : { - "description" : "Forbidden" - }, - "429" : { - "description" : "Too many requests" } }, "security" : [ { @@ -150,28 +150,6 @@ }, "components" : { "schemas" : { - "ProblemJson" : { - "type" : "object", - "properties" : { - "title" : { - "type" : "string", - "description" : "A short, summary of the problem type. Written in english and readable for engineers (usually not suited for non technical stakeholders and not localized); example: Service Unavailable" - }, - "status" : { - "maximum" : 600, - "minimum" : 100, - "type" : "integer", - "description" : "The HTTP status code generated by the origin server for this occurrence of the problem.", - "format" : "int32", - "example" : 200 - }, - "detail" : { - "type" : "string", - "description" : "A human readable explanation specific to this occurrence of the problem.", - "example" : "There was an error processing the request" - } - } - }, "BrokerCreditorInstitution" : { "required" : [ "broker_code", "enabled", "extended_fault_bean" ], "type" : "object", @@ -1017,6 +995,28 @@ } } }, + "ProblemJson" : { + "type" : "object", + "properties" : { + "title" : { + "type" : "string", + "description" : "A short, summary of the problem type. Written in english and readable for engineers (usually not suited for non technical stakeholders and not localized); example: Service Unavailable" + }, + "status" : { + "maximum" : 600, + "minimum" : 100, + "type" : "integer", + "description" : "The HTTP status code generated by the origin server for this occurrence of the problem.", + "format" : "int32", + "example" : 200 + }, + "detail" : { + "type" : "string", + "description" : "A human readable explanation specific to this occurrence of the problem.", + "example" : "There was an error processing the request" + } + } + }, "CacheVersion" : { "required" : [ "version" ], "type" : "object", diff --git a/openapi/openapi_nodev1.json b/openapi/openapi_nodev1.json index d02fa777..1e7a5543 100644 --- a/openapi/openapi_nodev1.json +++ b/openapi/openapi_nodev1.json @@ -25,7 +25,7 @@ "/stakeholders/node/cache/schemas/v1" : { "get" : { "tags" : [ "Cache" ], - "summary" : "Get selected key of fdr v1 config", + "summary" : "Get selected key of cache v1 config", "operationId" : "cache", "parameters" : [ { "name" : "refresh", @@ -48,18 +48,21 @@ } } ], "responses" : { - "400" : { - "description" : "Bad Request", + "403" : { + "description" : "Forbidden" + }, + "200" : { + "description" : "OK", "content" : { "application/json" : { "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "$ref" : "#/components/schemas/ConfigDataV1" } } } }, - "500" : { - "description" : "Service unavailable", + "400" : { + "description" : "Bad Request", "content" : { "application/json" : { "schema" : { @@ -68,24 +71,21 @@ } } }, - "200" : { - "description" : "OK", + "429" : { + "description" : "Too many requests" + }, + "401" : { + "description" : "Unauthorized" + }, + "500" : { + "description" : "Service unavailable", "content" : { "application/json" : { "schema" : { - "$ref" : "#/components/schemas/ConfigDataV1" + "$ref" : "#/components/schemas/ProblemJson" } } } - }, - "401" : { - "description" : "Unauthorized" - }, - "403" : { - "description" : "Forbidden" - }, - "429" : { - "description" : "Too many requests" } }, "security" : [ { @@ -95,10 +95,16 @@ }, "/stakeholders/node/cache/schemas/v1/id" : { "get" : { - "tags" : [ "FdrCache" ], - "summary" : "Get last fdr v1 cache version", + "tags" : [ "Cache" ], + "summary" : "Get last v1 cache version", "operationId" : "idV1", "responses" : { + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + }, "400" : { "description" : "Bad Request", "content" : { @@ -109,12 +115,15 @@ } } }, - "500" : { - "description" : "Service unavailable", + "429" : { + "description" : "Too many requests" + }, + "200" : { + "description" : "OK", "content" : { "application/json" : { "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "$ref" : "#/components/schemas/CacheVersion" } } } @@ -122,24 +131,15 @@ "401" : { "description" : "Unauthorized" }, - "404" : { - "description" : "Not Found" - }, - "200" : { - "description" : "OK", + "500" : { + "description" : "Service unavailable", "content" : { "application/json" : { "schema" : { - "$ref" : "#/components/schemas/CacheVersion" + "$ref" : "#/components/schemas/ProblemJson" } } } - }, - "403" : { - "description" : "Forbidden" - }, - "429" : { - "description" : "Too many requests" } }, "security" : [ { @@ -150,28 +150,6 @@ }, "components" : { "schemas" : { - "ProblemJson" : { - "type" : "object", - "properties" : { - "title" : { - "type" : "string", - "description" : "A short, summary of the problem type. Written in english and readable for engineers (usually not suited for non technical stakeholders and not localized); example: Service Unavailable" - }, - "status" : { - "maximum" : 600, - "minimum" : 100, - "type" : "integer", - "description" : "The HTTP status code generated by the origin server for this occurrence of the problem.", - "format" : "int32", - "example" : 200 - }, - "detail" : { - "type" : "string", - "description" : "A human readable explanation specific to this occurrence of the problem.", - "example" : "There was an error processing the request" - } - } - }, "BrokerCreditorInstitution" : { "required" : [ "broker_code", "enabled", "extended_fault_bean" ], "type" : "object", @@ -1017,6 +995,28 @@ } } }, + "ProblemJson" : { + "type" : "object", + "properties" : { + "title" : { + "type" : "string", + "description" : "A short, summary of the problem type. Written in english and readable for engineers (usually not suited for non technical stakeholders and not localized); example: Service Unavailable" + }, + "status" : { + "maximum" : 600, + "minimum" : 100, + "type" : "integer", + "description" : "The HTTP status code generated by the origin server for this occurrence of the problem.", + "format" : "int32", + "example" : 200 + }, + "detail" : { + "type" : "string", + "description" : "A human readable explanation specific to this occurrence of the problem.", + "example" : "There was an error processing the request" + } + } + }, "CacheVersion" : { "required" : [ "version" ], "type" : "object", diff --git a/openapi/openapi_verifierv1.json b/openapi/openapi_verifierv1.json index 62b891ff..33f6484f 100644 --- a/openapi/openapi_verifierv1.json +++ b/openapi/openapi_verifierv1.json @@ -28,18 +28,21 @@ "summary" : "Get Creditor Institution list with Station v2", "operationId" : "cache", "responses" : { - "400" : { - "description" : "Bad Request", + "200" : { + "description" : "OK", "content" : { "application/json" : { "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "type" : "string" } } } }, - "500" : { - "description" : "Service unavailable", + "403" : { + "description" : "Forbidden" + }, + "400" : { + "description" : "Bad Request", "content" : { "application/json" : { "schema" : { @@ -48,24 +51,21 @@ } } }, - "200" : { - "description" : "OK", + "429" : { + "description" : "Too many requests" + }, + "401" : { + "description" : "Unauthorized" + }, + "500" : { + "description" : "Service unavailable", "content" : { "application/json" : { "schema" : { - "type" : "string" + "$ref" : "#/components/schemas/ProblemJson" } } } - }, - "401" : { - "description" : "Unauthorized" - }, - "403" : { - "description" : "Forbidden" - }, - "429" : { - "description" : "Too many requests" } }, "security" : [ { diff --git a/src/main/java/it/gov/pagopa/apiconfig/cache/controller/CacheController.java b/src/main/java/it/gov/pagopa/apiconfig/cache/controller/CacheController.java index b7bc8286..82055027 100644 --- a/src/main/java/it/gov/pagopa/apiconfig/cache/controller/CacheController.java +++ b/src/main/java/it/gov/pagopa/apiconfig/cache/controller/CacheController.java @@ -41,7 +41,7 @@ private void loadCacheFromRedis() { } @Operation( - summary = "Get selected key of fdr v1 config", + summary = "Get selected key of cache v1 config", security = {@SecurityRequirement(name = "ApiKey")}, tags = { "Cache", @@ -99,10 +99,10 @@ public ResponseEntity cache( } @Operation( - summary = "Get last fdr v1 cache version", + summary = "Get last v1 cache version", security = {@SecurityRequirement(name = "ApiKey")}, tags = { - "FdrCache", + "Cache", }) @ApiResponses( value = {