From ccd002fbdc99904c30a3346c51b2880b7ca5e338 Mon Sep 17 00:00:00 2001 From: Alessio Cialini Date: Tue, 23 Jul 2024 12:47:56 +0200 Subject: [PATCH 1/8] [PPANTT-54] feat: introducing total counter to pageInfo on apis --- openapi/openapi.json | 1476 ++++++++--------- openapi/openapi_backoffice_external_ec.json | 999 ++++++----- openapi/openapi_backoffice_external_psp.json | 468 +++--- openapi/openapi_backoffice_helpdesk.json | 407 +++-- .../entities/BrokerInstitutionAggregate.java | 18 + .../pagopa/entities/IbanAggregate.java | 19 + .../selfcare/pagopa/model/PageInfo.java | 8 + .../repository/BrokerIbansRepository.java | 12 +- .../BrokerInstitutionsRepository.java | 11 +- .../service/impl/ExternalServiceImpl.java | 38 +- .../selfcare/pagopa/util/PageInfoMapper.java | 4 +- .../service/impl/ExternalServiceImplTest.java | 12 +- 12 files changed, 1679 insertions(+), 1793 deletions(-) create mode 100644 src/main/java/it/pagopa/selfcare/pagopa/entities/BrokerInstitutionAggregate.java create mode 100644 src/main/java/it/pagopa/selfcare/pagopa/entities/IbanAggregate.java diff --git a/openapi/openapi.json b/openapi/openapi.json index b432a2f..761cf69 100644 --- a/openapi/openapi.json +++ b/openapi/openapi.json @@ -1,985 +1,903 @@ { - "openapi": "3.0.1", - "info": { - "description": "Microservice to expose REST API to contact PagoPA Backoffice", - "termsOfService": "https://www.pagopa.gov.it/", - "title": "Backoffice External", - "version": "1.1.2" + "openapi" : "3.0.1", + "info" : { + "description" : "Microservice to expose REST API to contact PagoPA Backoffice", + "termsOfService" : "https://www.pagopa.gov.it/", + "title" : "Backoffice External", + "version" : "1.1.2" }, - "servers": [ - { - "url": "http://localhost:8080" - }, - { - "url": "{host}{basePath}", - "variables": { - "basePath": { - "default": "/backoffice/external/psp/v1", - "enum": [ - "/backoffice/external/psp/v1", - "/backoffice/external/ec/v1", - "/backoffice/helpdesk/v1" - ] - }, - "host": { - "default": "https://api.platform.pagopa.it", - "enum": [ - "https://api.dev.platform.pagopa.it", - "https://api.uat.platform.pagopa.it", - "https://api.platform.pagopa.it" - ] - } + "servers" : [ { + "url" : "http://localhost:8080" + }, { + "url" : "{host}{basePath}", + "variables" : { + "basePath" : { + "default" : "/backoffice/external/psp/v1", + "enum" : [ "/backoffice/external/psp/v1", "/backoffice/external/ec/v1", "/backoffice/helpdesk/v1" ] + }, + "host" : { + "default" : "https://api.platform.pagopa.it", + "enum" : [ "https://api.dev.platform.pagopa.it", "https://api.uat.platform.pagopa.it", "https://api.platform.pagopa.it" ] } } - ], - "paths": { - "/brokers/{brokerCode}/creditor_institutions": { - "get": { - "description": "Internal | External | Synchronous | Authorization | Authentication | TPS | Idempotency | Stateless | Read/Write Intense | Cacheable\n-|-|-|-|-|-|-|-|-|-\nN | Y | Y | ApiKey | ApiKey | 1.0/sec | Y | Y | Read | Y\nReturn the list of Creditor Institutions of a Broker", - "operationId": "getBrokerInstitutions", - "parameters": [ - { - "description": "Broker Code to use as filter for the retrieved creditor institution list", - "in": "path", - "name": "brokerCode", - "required": true, - "schema": { - "type": "string" - } - }, - { - "description": "Number of elements on one page. Default = 10", - "in": "query", - "name": "limit", - "required": false, - "schema": { - "maximum": 100, - "minimum": 0, - "type": "integer", - "format": "int32", - "default": 10 - } - }, - { - "description": "Page number. Page value starts from 0", - "in": "query", - "name": "page", - "required": true, - "schema": { - "minimum": 0, - "type": "integer", - "format": "int32" - } + } ], + "paths" : { + "/brokers/{brokerCode}/creditor_institutions" : { + "get" : { + "description" : "Internal | External | Synchronous | Authorization | Authentication | TPS | Idempotency | Stateless | Read/Write Intense | Cacheable\n-|-|-|-|-|-|-|-|-|-\nN | Y | Y | ApiKey | ApiKey | 1.0/sec | Y | Y | Read | Y\nReturn the list of Creditor Institutions of a Broker", + "operationId" : "getBrokerInstitutions", + "parameters" : [ { + "description" : "Broker Code to use as filter for the retrieved creditor institution list", + "in" : "path", + "name" : "brokerCode", + "required" : true, + "schema" : { + "type" : "string" } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BrokerInstitutionsResponse" + }, { + "description" : "Number of elements on one page. Default = 10", + "in" : "query", + "name" : "limit", + "required" : false, + "schema" : { + "maximum" : 100, + "minimum" : 0, + "type" : "integer", + "format" : "int32", + "default" : 10 + } + }, { + "description" : "Page number. Page value starts from 0", + "in" : "query", + "name" : "page", + "required" : true, + "schema" : { + "minimum" : 0, + "type" : "integer", + "format" : "int32" + } + } ], + "responses" : { + "200" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BrokerInstitutionsResponse" } } }, - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "400": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "400" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } }, - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "description" : "Bad Request", + "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" + "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": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "404" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } }, - "description": "Institutions for the brokerCode not found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "description" : "Institutions for the brokerCode 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": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "500" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } }, - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } } }, - "security": [ - { - "ApiKey": [] - } - ], - "summary": "getBrokerInstitutions", - "tags": [ - "External APIs" - ] + "security" : [ { + "ApiKey" : [ ] + } ], + "summary" : "getBrokerInstitutions", + "tags" : [ "External APIs" ] }, - "parameters": [ - { - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "in": "header", - "name": "X-Request-Id", - "schema": { - "type": "string" - } + "parameters" : [ { + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "in" : "header", + "name" : "X-Request-Id", + "schema" : { + "type" : "string" } - ] + } ] }, - "/brokers/{brokerCode}/ibans": { - "get": { - "description": "Internal | External | Synchronous | Authorization | Authentication | TPS | Idempotency | Stateless | Read/Write Intense | Cacheable\n-|-|-|-|-|-|-|-|-|-\nN | Y | Y | ApiKey | ApiKey | 1.0/sec | Y | Y | Read | Y\nReturn the list of Ibans of all the Creditor Institutions intermediated by the Broker", - "operationId": "getBrokerIbans", - "parameters": [ - { - "description": "Broker Code to use as filter for the retrieved ibans list", - "in": "path", - "name": "brokerCode", - "required": true, - "schema": { - "type": "string" - } - }, - { - "description": "Number of elements on one page. Default = 10", - "in": "query", - "name": "limit", - "required": false, - "schema": { - "maximum": 100, - "minimum": 0, - "type": "integer", - "format": "int32", - "default": 10 - } - }, - { - "description": "Page number. Page value starts from 0", - "in": "query", - "name": "page", - "required": true, - "schema": { - "minimum": 0, - "type": "integer", - "format": "int32" - } + "/brokers/{brokerCode}/ibans" : { + "get" : { + "description" : "Internal | External | Synchronous | Authorization | Authentication | TPS | Idempotency | Stateless | Read/Write Intense | Cacheable\n-|-|-|-|-|-|-|-|-|-\nN | Y | Y | ApiKey | ApiKey | 1.0/sec | Y | Y | Read | Y\nReturn the list of Ibans of all the Creditor Institutions intermediated by the Broker", + "operationId" : "getBrokerIbans", + "parameters" : [ { + "description" : "Broker Code to use as filter for the retrieved ibans list", + "in" : "path", + "name" : "brokerCode", + "required" : true, + "schema" : { + "type" : "string" } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CIIbansResponse" + }, { + "description" : "Number of elements on one page. Default = 10", + "in" : "query", + "name" : "limit", + "required" : false, + "schema" : { + "maximum" : 100, + "minimum" : 0, + "type" : "integer", + "format" : "int32", + "default" : 10 + } + }, { + "description" : "Page number. Page value starts from 0", + "in" : "query", + "name" : "page", + "required" : true, + "schema" : { + "minimum" : 0, + "type" : "integer", + "format" : "int32" + } + } ], + "responses" : { + "200" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/CIIbansResponse" } } }, - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "400": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "400" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } }, - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "description" : "Bad Request", + "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" + "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": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "404" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } }, - "description": "ibans for the brokerCode not found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "description" : "ibans for the brokerCode 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": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "500" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } }, - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } } }, - "security": [ - { - "ApiKey": [] - } - ], - "summary": "getBrokerIbans", - "tags": [ - "External APIs" - ] + "security" : [ { + "ApiKey" : [ ] + } ], + "summary" : "getBrokerIbans", + "tags" : [ "External APIs" ] }, - "parameters": [ - { - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "in": "header", - "name": "X-Request-Id", - "schema": { - "type": "string" - } + "parameters" : [ { + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "in" : "header", + "name" : "X-Request-Id", + "schema" : { + "type" : "string" } - ] + } ] }, - "/creditor_institutions/ibans": { - "get": { - "description": "Internal | External | Synchronous | Authorization | Authentication | TPS | Idempotency | Stateless | Read/Write Intense | Cacheable\n-|-|-|-|-|-|-|-|-|-\nN | Y | Y | ApiKey | ApiKey | 1.0/sec | Y | Y | Read | Y\nReturn the full list of Ibans of all CIs ", - "operationId": "getCIsIbans", - "parameters": [ - { - "description": "Number of elements on one page. Default = 10", - "in": "query", - "name": "limit", - "required": false, - "schema": { - "maximum": 100, - "minimum": 0, - "type": "integer", - "format": "int32", - "default": 10 - } - }, - { - "description": "Page number. Page value starts from 0", - "in": "query", - "name": "page", - "required": true, - "schema": { - "minimum": 0, - "type": "integer", - "format": "int32" - } + "/creditor_institutions/ibans" : { + "get" : { + "description" : "Internal | External | Synchronous | Authorization | Authentication | TPS | Idempotency | Stateless | Read/Write Intense | Cacheable\n-|-|-|-|-|-|-|-|-|-\nN | Y | Y | ApiKey | ApiKey | 1.0/sec | Y | Y | Read | Y\nReturn the full list of Ibans of all CIs ", + "operationId" : "getCIsIbans", + "parameters" : [ { + "description" : "Number of elements on one page. Default = 10", + "in" : "query", + "name" : "limit", + "required" : false, + "schema" : { + "maximum" : 100, + "minimum" : 0, + "type" : "integer", + "format" : "int32", + "default" : 10 + } + }, { + "description" : "Page number. Page value starts from 0", + "in" : "query", + "name" : "page", + "required" : true, + "schema" : { + "minimum" : 0, + "type" : "integer", + "format" : "int32" } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CIIbansResponse" + } ], + "responses" : { + "200" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/CIIbansResponse" } } }, - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "400": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "400" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } }, - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "description" : "Bad Request", + "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" + "401" : { + "description" : "Unauthorized", + "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": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "500" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } }, - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } } }, - "security": [ - { - "ApiKey": [] - } - ], - "summary": "getCIsIbans", - "tags": [ - "External APIs" - ] + "security" : [ { + "ApiKey" : [ ] + } ], + "summary" : "getCIsIbans", + "tags" : [ "External APIs" ] }, - "parameters": [ - { - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "in": "header", - "name": "X-Request-Id", - "schema": { - "type": "string" - } + "parameters" : [ { + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "in" : "header", + "name" : "X-Request-Id", + "schema" : { + "type" : "string" } - ] + } ] }, - "/info": { - "get": { - "description": "Return OK if application is started", - "operationId": "healthCheck", - "responses": { - "200": { - "content": { - "*/*": { - "schema": { - "$ref": "#/components/schemas/AppInfo" + "/info" : { + "get" : { + "description" : "Return OK if application is started", + "operationId" : "healthCheck", + "responses" : { + "200" : { + "content" : { + "*/*" : { + "schema" : { + "$ref" : "#/components/schemas/AppInfo" } } }, - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } } }, - "security": [ - { - "ApiKey": [] - } - ], - "summary": "health check", - "tags": [ - "Home" - ] + "security" : [ { + "ApiKey" : [ ] + } ], + "summary" : "health check", + "tags" : [ "Home" ] }, - "parameters": [ - { - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "in": "header", - "name": "X-Request-Id", - "schema": { - "type": "string" - } + "parameters" : [ { + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "in" : "header", + "name" : "X-Request-Id", + "schema" : { + "type" : "string" } - ] + } ] }, - "/operative_tables": { - "get": { - "description": "Internal | External | Synchronous | Authorization | Authentication | TPS | Idempotency | Stateless | Read/Write Intense | Cacheable\n-|-|-|-|-|-|-|-|-|-\nN | Y | Y | ApiKey | ApiKey | 1.0/sec | Y | Y | | Y\nGet All operative tables", - "operationId": "getOperativeTables", - "parameters": [ - { - "description": "Tax code", - "in": "query", - "name": "taxCode", - "required": false, - "schema": { - "type": "string", - "default": "" - } - }, - { - "description": "Business name", - "in": "query", - "name": "businessName", - "required": false, - "schema": { - "type": "string", - "default": "" - } + "/operative_tables" : { + "get" : { + "description" : "Internal | External | Synchronous | Authorization | Authentication | TPS | Idempotency | Stateless | Read/Write Intense | Cacheable\n-|-|-|-|-|-|-|-|-|-\nN | Y | Y | ApiKey | ApiKey | 1.0/sec | Y | Y | | Y\nGet All operative tables", + "operationId" : "getOperativeTables", + "parameters" : [ { + "description" : "Tax code", + "in" : "query", + "name" : "taxCode", + "required" : false, + "schema" : { + "type" : "string", + "default" : "" } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/OperativeTableResourceList" + }, { + "description" : "Business name", + "in" : "query", + "name" : "businessName", + "required" : false, + "schema" : { + "type" : "string", + "default" : "" + } + } ], + "responses" : { + "200" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/OperativeTableResourceList" } } }, - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "400": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "400" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } }, - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "description" : "Bad Request", + "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" + "401" : { + "description" : "Unauthorized", + "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": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "500" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } }, - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } } }, - "security": [ - { - "ApiKey": [] - } - ], - "summary": "getOperativeTables", - "tags": [ - "Operative Tables" - ] + "security" : [ { + "ApiKey" : [ ] + } ], + "summary" : "getOperativeTables", + "tags" : [ "Operative Tables" ] }, - "parameters": [ - { - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "in": "header", - "name": "X-Request-Id", - "schema": { - "type": "string" - } + "parameters" : [ { + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "in" : "header", + "name" : "X-Request-Id", + "schema" : { + "type" : "string" } - ] + } ] } }, - "components": { - "schemas": { - "AppInfo": { - "type": "object", - "properties": { - "environment": { - "type": "string" - }, - "name": { - "type": "string" - }, - "version": { - "type": "string" + "components" : { + "schemas" : { + "AppInfo" : { + "type" : "object", + "properties" : { + "environment" : { + "type" : "string" + }, + "name" : { + "type" : "string" + }, + "version" : { + "type" : "string" } } }, - "BrokerInstitutionResource": { - "required": [ - "auxDigit", - "brokerCompanyName", - "brokerTaxCode", - "ciStatus", - "companyName", - "intermediated", - "model", - "stationState", - "taxCode", - "version" - ], - "type": "object", - "properties": { - "activationDate": { - "type": "string", - "description": "activation date", - "format": "date-time" - }, - "applicationCode": { - "type": "string", - "description": "application code of the relation station-ec (unique per auxdigit)" - }, - "auxDigit": { - "type": "string", - "description": "aux digit number (0,1,2,3, 0/3)" - }, - "broadcast": { - "type": "boolean", - "description": "true if the station is for broadcast" - }, - "brokerCompanyName": { - "type": "string", - "description": "broker name" - }, - "brokerTaxCode": { - "type": "string", - "description": "broker tax code" - }, - "cbillCode": { - "type": "string", - "description": "CBILL code" - }, - "ciStatus": { - "type": "boolean", - "description": "True if the CI is enabled" - }, - "companyName": { - "type": "string", - "description": "Creditor Institution name" - }, - "endpointMU": { - "type": "string", - "description": "endpoint for Modello Unico" - }, - "endpointRT": { - "type": "string", - "description": "endpoint for Ricevuta Telematica" - }, - "endpointRedirect": { - "type": "string", - "description": "endpoint for Redirect" - }, - "intermediated": { - "type": "boolean", - "description": "true if the EC has a broker" - }, - "model": { - "type": "integer", - "description": "model of the station", - "format": "int32" - }, - "primitiveVersion": { - "type": "integer", - "description": "Version of the primitive", - "format": "int32" - }, - "pspPayment": { - "type": "boolean", - "description": "true if allows payments by the psp" - }, - "segregationCode": { - "type": "string", - "description": "segregation code of the relation station-ec (unique per auxdigit)" - }, - "stationId": { - "type": "string", - "description": "station code" - }, - "stationState": { - "type": "string", - "description": "station state", - "example": "enabled" - }, - "taxCode": { - "type": "string", - "description": "Creditor Institution tax code" - }, - "version": { - "type": "string", - "description": "station version", - "example": "1" + "BrokerInstitutionResource" : { + "required" : [ "auxDigit", "brokerCompanyName", "brokerTaxCode", "ciStatus", "companyName", "intermediated", "model", "stationState", "taxCode", "version" ], + "type" : "object", + "properties" : { + "activationDate" : { + "type" : "string", + "description" : "activation date", + "format" : "date-time" + }, + "applicationCode" : { + "type" : "string", + "description" : "application code of the relation station-ec (unique per auxdigit)" + }, + "auxDigit" : { + "type" : "string", + "description" : "aux digit number (0,1,2,3, 0/3)" + }, + "broadcast" : { + "type" : "boolean", + "description" : "true if the station is for broadcast" + }, + "brokerCompanyName" : { + "type" : "string", + "description" : "broker name" + }, + "brokerTaxCode" : { + "type" : "string", + "description" : "broker tax code" + }, + "cbillCode" : { + "type" : "string", + "description" : "CBILL code" + }, + "ciStatus" : { + "type" : "boolean", + "description" : "True if the CI is enabled" + }, + "companyName" : { + "type" : "string", + "description" : "Creditor Institution name" + }, + "endpointMU" : { + "type" : "string", + "description" : "endpoint for Modello Unico" + }, + "endpointRT" : { + "type" : "string", + "description" : "endpoint for Ricevuta Telematica" + }, + "endpointRedirect" : { + "type" : "string", + "description" : "endpoint for Redirect" + }, + "intermediated" : { + "type" : "boolean", + "description" : "true if the EC has a broker" + }, + "model" : { + "type" : "integer", + "description" : "model of the station", + "format" : "int32" + }, + "primitiveVersion" : { + "type" : "integer", + "description" : "Version of the primitive", + "format" : "int32" + }, + "pspPayment" : { + "type" : "boolean", + "description" : "true if allows payments by the psp" + }, + "segregationCode" : { + "type" : "string", + "description" : "segregation code of the relation station-ec (unique per auxdigit)" + }, + "stationId" : { + "type" : "string", + "description" : "station code" + }, + "stationState" : { + "type" : "string", + "description" : "station state", + "example" : "enabled" + }, + "taxCode" : { + "type" : "string", + "description" : "Creditor Institution tax code" + }, + "version" : { + "type" : "string", + "description" : "station version", + "example" : "1" } }, - "description": "List of creditor institutions" + "description" : "List of creditor institutions" }, - "BrokerInstitutionsResponse": { - "required": [ - "creditorInstitutions", - "pageInfo" - ], - "type": "object", - "properties": { - "creditorInstitutions": { - "type": "array", - "description": "List of creditor institutions", - "items": { - "$ref": "#/components/schemas/BrokerInstitutionResource" - } - }, - "pageInfo": { - "$ref": "#/components/schemas/PageInfo" + "BrokerInstitutionsResponse" : { + "required" : [ "creditorInstitutions", "pageInfo" ], + "type" : "object", + "properties" : { + "creditorInstitutions" : { + "type" : "array", + "description" : "List of creditor institutions", + "items" : { + "$ref" : "#/components/schemas/BrokerInstitutionResource" + } + }, + "pageInfo" : { + "$ref" : "#/components/schemas/PageInfo" } } }, - "CIIbansResource": { - "required": [ - "ciFiscalCode", - "ciName", - "iban", - "status", - "validityDate" - ], - "type": "object", - "properties": { - "ciFiscalCode": { - "type": "string", - "description": "Creditor Institution tax code" - }, - "ciName": { - "type": "string", - "description": "Creditor Institution name" - }, - "description": { - "type": "string", - "description": "description" - }, - "iban": { - "type": "string", - "description": "iban" - }, - "label": { - "type": "string", - "description": "label", - "example": "CUP" - }, - "status": { - "type": "string", - "description": "status", - "example": "ENABLED" - }, - "validityDate": { - "type": "string", - "description": "Activation Date", - "format": "date-time" + "CIIbansResource" : { + "required" : [ "ciFiscalCode", "ciName", "iban", "status", "validityDate" ], + "type" : "object", + "properties" : { + "ciFiscalCode" : { + "type" : "string", + "description" : "Creditor Institution tax code" + }, + "ciName" : { + "type" : "string", + "description" : "Creditor Institution name" + }, + "description" : { + "type" : "string", + "description" : "description" + }, + "iban" : { + "type" : "string", + "description" : "iban" + }, + "label" : { + "type" : "string", + "description" : "label", + "example" : "CUP" + }, + "status" : { + "type" : "string", + "description" : "status", + "example" : "ENABLED" + }, + "validityDate" : { + "type" : "string", + "description" : "Activation Date", + "format" : "date-time" } }, - "description": "list of IBANs" + "description" : "list of IBANs" }, - "CIIbansResponse": { - "required": [ - "ibans", - "pageInfo" - ], - "type": "object", - "properties": { - "ibans": { - "type": "array", - "description": "list of IBANs", - "items": { - "$ref": "#/components/schemas/CIIbansResource" - } - }, - "pageInfo": { - "$ref": "#/components/schemas/PageInfo" + "CIIbansResponse" : { + "required" : [ "ibans", "pageInfo" ], + "type" : "object", + "properties" : { + "ibans" : { + "type" : "array", + "description" : "list of IBANs", + "items" : { + "$ref" : "#/components/schemas/CIIbansResource" + } + }, + "pageInfo" : { + "$ref" : "#/components/schemas/PageInfo" } } }, - "OperativeTable": { - "required": [ - "createdBy", - "email", - "modifiedAt", - "modifiedBy", - "name", - "referent", - "taxCode", - "telephone" - ], - "type": "object", - "properties": { - "createdAt": { - "type": "string", - "format": "date-time" - }, - "createdBy": { - "type": "string" - }, - "email": { - "type": "string" - }, - "modifiedAt": { - "type": "string", - "format": "date-time" - }, - "modifiedBy": { - "type": "string" - }, - "name": { - "type": "string" - }, - "referent": { - "type": "string" - }, - "taxCode": { - "type": "string" - }, - "telephone": { - "type": "string" + "OperativeTable" : { + "required" : [ "createdBy", "email", "modifiedAt", "modifiedBy", "name", "referent", "taxCode", "telephone" ], + "type" : "object", + "properties" : { + "createdAt" : { + "type" : "string", + "format" : "date-time" + }, + "createdBy" : { + "type" : "string" + }, + "email" : { + "type" : "string" + }, + "modifiedAt" : { + "type" : "string", + "format" : "date-time" + }, + "modifiedBy" : { + "type" : "string" + }, + "name" : { + "type" : "string" + }, + "referent" : { + "type" : "string" + }, + "taxCode" : { + "type" : "string" + }, + "telephone" : { + "type" : "string" } } }, - "OperativeTableResourceList": { - "required": [ - "operativeTableList" - ], - "type": "object", - "properties": { - "operativeTableList": { - "type": "array", - "items": { - "$ref": "#/components/schemas/OperativeTable" + "OperativeTableResourceList" : { + "required" : [ "operativeTableList" ], + "type" : "object", + "properties" : { + "operativeTableList" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/OperativeTable" } } } }, - "PageInfo": { - "required": [ - "limit", - "page" - ], - "type": "object", - "properties": { - "limit": { - "type": "integer", - "description": "number of elements per page", - "format": "int32" - }, - "page": { - "type": "integer", - "description": "page number (0 is the first page)", - "format": "int32" + "PageInfo" : { + "required" : [ "limit", "page", "totalElements", "totalPages" ], + "type" : "object", + "properties" : { + "limit" : { + "type" : "integer", + "description" : "number of elements per page", + "format" : "int32" + }, + "page" : { + "type" : "integer", + "description" : "page number (0 is the first page)", + "format" : "int32" + }, + "totalElements" : { + "type" : "integer", + "description" : "total elements of elements", + "format" : "int64" + }, + "totalPages" : { + "type" : "integer", + "description" : "total number of pages", + "format" : "int64" } }, - "description": "information about the pagination" + "description" : "information about the pagination" }, - "ProblemJson": { - "type": "object", - "properties": { - "detail": { - "type": "string", - "description": "A human readable explanation specific to this occurrence of the problem.", - "example": "There was an error processing the request" - }, - "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 - }, - "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" + "ProblemJson" : { + "type" : "object", + "properties" : { + "detail" : { + "type" : "string", + "description" : "A human readable explanation specific to this occurrence of the problem.", + "example" : "There was an error processing the request" + }, + "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 + }, + "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" } } } }, - "securitySchemes": { - "ApiKey": { - "description": "The Azure Subscription Key to access this API.", - "in": "header", - "name": "Ocp-Apim-Subscription-Key", - "type": "apiKey" + "securitySchemes" : { + "ApiKey" : { + "description" : "The Azure Subscription Key to access this API.", + "in" : "header", + "name" : "Ocp-Apim-Subscription-Key", + "type" : "apiKey" } } } -} +} \ No newline at end of file diff --git a/openapi/openapi_backoffice_external_ec.json b/openapi/openapi_backoffice_external_ec.json index 564a3aa..cfcec96 100644 --- a/openapi/openapi_backoffice_external_ec.json +++ b/openapi/openapi_backoffice_external_ec.json @@ -1,655 +1,610 @@ { - "openapi": "3.0.1", - "info": { - "description": "Microservice to expose REST API to contact PagoPA Backoffice", - "termsOfService": "https://www.pagopa.gov.it/", - "title": "Backoffice External - Backoffice External EC", - "version": "1.1.2" + "openapi" : "3.0.1", + "info" : { + "description" : "Microservice to expose REST API to contact PagoPA Backoffice", + "termsOfService" : "https://www.pagopa.gov.it/", + "title" : "Backoffice External - Backoffice External EC", + "version" : "1.1.2" }, - "servers": [ - { - "url": "http://localhost:8080" - }, - { - "url": "https://api.platform.pagopa.it/backoffice/external/ec/v1" - } - ], - "paths": { - "/brokers/{brokerCode}/creditor_institutions": { - "get": { - "description": "Return the list of Creditor Institutions of a Broker", - "operationId": "getBrokerInstitutions", - "parameters": [ - { - "description": "Broker Code to use as filter for the retrieved creditor institution list", - "in": "path", - "name": "brokerCode", - "required": true, - "schema": { - "type": "string" - } - }, - { - "description": "Number of elements on one page. Default = 10", - "in": "query", - "name": "limit", - "required": false, - "schema": { - "maximum": 100, - "minimum": 0, - "type": "integer", - "format": "int32", - "default": 10 - } - }, - { - "description": "Page number. Page value starts from 0", - "in": "query", - "name": "page", - "required": true, - "schema": { - "minimum": 0, - "type": "integer", - "format": "int32" - } + "servers" : [ { + "url" : "http://localhost:8080" + }, { + "url" : "https://api.platform.pagopa.it/backoffice/external/ec/v1" + } ], + "paths" : { + "/brokers/{brokerCode}/creditor_institutions" : { + "get" : { + "description" : "Return the list of Creditor Institutions of a Broker", + "operationId" : "getBrokerInstitutions", + "parameters" : [ { + "description" : "Broker Code to use as filter for the retrieved creditor institution list", + "in" : "path", + "name" : "brokerCode", + "required" : true, + "schema" : { + "type" : "string" + } + }, { + "description" : "Number of elements on one page. Default = 10", + "in" : "query", + "name" : "limit", + "required" : false, + "schema" : { + "maximum" : 100, + "minimum" : 0, + "type" : "integer", + "format" : "int32", + "default" : 10 + } + }, { + "description" : "Page number. Page value starts from 0", + "in" : "query", + "name" : "page", + "required" : true, + "schema" : { + "minimum" : 0, + "type" : "integer", + "format" : "int32" } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BrokerInstitutionsResponse" + } ], + "responses" : { + "200" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BrokerInstitutionsResponse" } } }, - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "400": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "400" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } }, - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "description" : "Bad Request", + "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" + "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": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "404" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } }, - "description": "Institutions for the brokerCode not found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "description" : "Institutions for the brokerCode 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": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "500" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } }, - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } } }, - "security": [ - { - "ApiKey": [] - } - ], - "summary": "getBrokerInstitutions", - "tags": [ - "External APIs" - ] + "security" : [ { + "ApiKey" : [ ] + } ], + "summary" : "getBrokerInstitutions", + "tags" : [ "External APIs" ] }, - "parameters": [ - { - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "in": "header", - "name": "X-Request-Id", - "schema": { - "type": "string" - } + "parameters" : [ { + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "in" : "header", + "name" : "X-Request-Id", + "schema" : { + "type" : "string" } - ] + } ] }, - "/brokers/{brokerCode}/ibans": { - "get": { - "description": "Return the list of Ibans of all the Creditor Institutions intermediated by the Broker", - "operationId": "getBrokerIbans", - "parameters": [ - { - "description": "Broker Code to use as filter for the retrieved ibans list", - "in": "path", - "name": "brokerCode", - "required": true, - "schema": { - "type": "string" - } - }, - { - "description": "Number of elements on one page. Default = 10", - "in": "query", - "name": "limit", - "required": false, - "schema": { - "maximum": 100, - "minimum": 0, - "type": "integer", - "format": "int32", - "default": 10 - } - }, - { - "description": "Page number. Page value starts from 0", - "in": "query", - "name": "page", - "required": true, - "schema": { - "minimum": 0, - "type": "integer", - "format": "int32" - } + "/brokers/{brokerCode}/ibans" : { + "get" : { + "description" : "Return the list of Ibans of all the Creditor Institutions intermediated by the Broker", + "operationId" : "getBrokerIbans", + "parameters" : [ { + "description" : "Broker Code to use as filter for the retrieved ibans list", + "in" : "path", + "name" : "brokerCode", + "required" : true, + "schema" : { + "type" : "string" + } + }, { + "description" : "Number of elements on one page. Default = 10", + "in" : "query", + "name" : "limit", + "required" : false, + "schema" : { + "maximum" : 100, + "minimum" : 0, + "type" : "integer", + "format" : "int32", + "default" : 10 } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CIIbansResponse" + }, { + "description" : "Page number. Page value starts from 0", + "in" : "query", + "name" : "page", + "required" : true, + "schema" : { + "minimum" : 0, + "type" : "integer", + "format" : "int32" + } + } ], + "responses" : { + "200" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/CIIbansResponse" } } }, - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "400": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "400" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } }, - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "description" : "Bad Request", + "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" + "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": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "404" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } }, - "description": "ibans for the brokerCode not found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "description" : "ibans for the brokerCode 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": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "500" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } }, - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } } }, - "security": [ - { - "ApiKey": [] - } - ], - "summary": "getBrokerIbans", - "tags": [ - "External APIs" - ] + "security" : [ { + "ApiKey" : [ ] + } ], + "summary" : "getBrokerIbans", + "tags" : [ "External APIs" ] }, - "parameters": [ - { - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "in": "header", - "name": "X-Request-Id", - "schema": { - "type": "string" - } + "parameters" : [ { + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "in" : "header", + "name" : "X-Request-Id", + "schema" : { + "type" : "string" } - ] + } ] }, - "/info": { - "get": { - "description": "Return OK if application is started", - "operationId": "healthCheck", - "responses": { - "200": { - "content": { - "*/*": { - "schema": { - "$ref": "#/components/schemas/AppInfo" + "/info" : { + "get" : { + "description" : "Return OK if application is started", + "operationId" : "healthCheck", + "responses" : { + "200" : { + "content" : { + "*/*" : { + "schema" : { + "$ref" : "#/components/schemas/AppInfo" } } }, - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } } }, - "security": [ - { - "ApiKey": [] - } - ], - "summary": "health check", - "tags": [ - "Home" - ] + "security" : [ { + "ApiKey" : [ ] + } ], + "summary" : "health check", + "tags" : [ "Home" ] }, - "parameters": [ - { - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "in": "header", - "name": "X-Request-Id", - "schema": { - "type": "string" - } + "parameters" : [ { + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "in" : "header", + "name" : "X-Request-Id", + "schema" : { + "type" : "string" } - ] + } ] } }, - "components": { - "schemas": { - "AppInfo": { - "type": "object", - "properties": { - "environment": { - "type": "string" - }, - "name": { - "type": "string" - }, - "version": { - "type": "string" + "components" : { + "schemas" : { + "AppInfo" : { + "type" : "object", + "properties" : { + "environment" : { + "type" : "string" + }, + "name" : { + "type" : "string" + }, + "version" : { + "type" : "string" } } }, - "BrokerInstitutionResource": { - "required": [ - "auxDigit", - "brokerCompanyName", - "brokerTaxCode", - "ciStatus", - "companyName", - "intermediated", - "model", - "stationState", - "taxCode", - "version" - ], - "type": "object", - "properties": { - "activationDate": { - "type": "string", - "description": "activation date", - "format": "date-time" - }, - "applicationCode": { - "type": "string", - "description": "application code of the relation station-ec (unique per auxdigit)" - }, - "auxDigit": { - "type": "string", - "description": "aux digit number (0,1,2,3, 0/3)" - }, - "broadcast": { - "type": "boolean", - "description": "true if the station is for broadcast" - }, - "brokerCompanyName": { - "type": "string", - "description": "broker name" - }, - "brokerTaxCode": { - "type": "string", - "description": "broker tax code" - }, - "cbillCode": { - "type": "string", - "description": "CBILL code" - }, - "ciStatus": { - "type": "boolean", - "description": "True if the CI is enabled" - }, - "companyName": { - "type": "string", - "description": "Creditor Institution name" - }, - "endpointMU": { - "type": "string", - "description": "endpoint for Modello Unico" - }, - "endpointRT": { - "type": "string", - "description": "endpoint for Ricevuta Telematica" - }, - "endpointRedirect": { - "type": "string", - "description": "endpoint for Redirect" - }, - "intermediated": { - "type": "boolean", - "description": "true if the EC has a broker" - }, - "model": { - "type": "integer", - "description": "model of the station", - "format": "int32" - }, - "primitiveVersion": { - "type": "integer", - "description": "Version of the primitive", - "format": "int32" - }, - "pspPayment": { - "type": "boolean", - "description": "true if allows payments by the psp" - }, - "segregationCode": { - "type": "string", - "description": "segregation code of the relation station-ec (unique per auxdigit)" - }, - "stationId": { - "type": "string", - "description": "station code" - }, - "stationState": { - "type": "string", - "description": "station state", - "example": "enabled" - }, - "taxCode": { - "type": "string", - "description": "Creditor Institution tax code" - }, - "version": { - "type": "string", - "description": "station version", - "example": "1" + "BrokerInstitutionResource" : { + "required" : [ "auxDigit", "brokerCompanyName", "brokerTaxCode", "ciStatus", "companyName", "intermediated", "model", "stationState", "taxCode", "version" ], + "type" : "object", + "properties" : { + "activationDate" : { + "type" : "string", + "description" : "activation date", + "format" : "date-time" + }, + "applicationCode" : { + "type" : "string", + "description" : "application code of the relation station-ec (unique per auxdigit)" + }, + "auxDigit" : { + "type" : "string", + "description" : "aux digit number (0,1,2,3, 0/3)" + }, + "broadcast" : { + "type" : "boolean", + "description" : "true if the station is for broadcast" + }, + "brokerCompanyName" : { + "type" : "string", + "description" : "broker name" + }, + "brokerTaxCode" : { + "type" : "string", + "description" : "broker tax code" + }, + "cbillCode" : { + "type" : "string", + "description" : "CBILL code" + }, + "ciStatus" : { + "type" : "boolean", + "description" : "True if the CI is enabled" + }, + "companyName" : { + "type" : "string", + "description" : "Creditor Institution name" + }, + "endpointMU" : { + "type" : "string", + "description" : "endpoint for Modello Unico" + }, + "endpointRT" : { + "type" : "string", + "description" : "endpoint for Ricevuta Telematica" + }, + "endpointRedirect" : { + "type" : "string", + "description" : "endpoint for Redirect" + }, + "intermediated" : { + "type" : "boolean", + "description" : "true if the EC has a broker" + }, + "model" : { + "type" : "integer", + "description" : "model of the station", + "format" : "int32" + }, + "primitiveVersion" : { + "type" : "integer", + "description" : "Version of the primitive", + "format" : "int32" + }, + "pspPayment" : { + "type" : "boolean", + "description" : "true if allows payments by the psp" + }, + "segregationCode" : { + "type" : "string", + "description" : "segregation code of the relation station-ec (unique per auxdigit)" + }, + "stationId" : { + "type" : "string", + "description" : "station code" + }, + "stationState" : { + "type" : "string", + "description" : "station state", + "example" : "enabled" + }, + "taxCode" : { + "type" : "string", + "description" : "Creditor Institution tax code" + }, + "version" : { + "type" : "string", + "description" : "station version", + "example" : "1" } }, - "description": "List of creditor institutions" + "description" : "List of creditor institutions" }, - "BrokerInstitutionsResponse": { - "required": [ - "creditorInstitutions", - "pageInfo" - ], - "type": "object", - "properties": { - "creditorInstitutions": { - "type": "array", - "description": "List of creditor institutions", - "items": { - "$ref": "#/components/schemas/BrokerInstitutionResource" + "BrokerInstitutionsResponse" : { + "required" : [ "creditorInstitutions", "pageInfo" ], + "type" : "object", + "properties" : { + "creditorInstitutions" : { + "type" : "array", + "description" : "List of creditor institutions", + "items" : { + "$ref" : "#/components/schemas/BrokerInstitutionResource" } }, - "pageInfo": { - "$ref": "#/components/schemas/PageInfo" + "pageInfo" : { + "$ref" : "#/components/schemas/PageInfo" } } }, - "CIIbansResource": { - "required": [ - "ciFiscalCode", - "ciName", - "iban", - "status", - "validityDate" - ], - "type": "object", - "properties": { - "ciFiscalCode": { - "type": "string", - "description": "Creditor Institution tax code" - }, - "ciName": { - "type": "string", - "description": "Creditor Institution name" - }, - "description": { - "type": "string", - "description": "description" - }, - "iban": { - "type": "string", - "description": "iban" - }, - "label": { - "type": "string", - "description": "label", - "example": "CUP" - }, - "status": { - "type": "string", - "description": "status", - "example": "ENABLED" - }, - "validityDate": { - "type": "string", - "description": "Activation Date", - "format": "date-time" + "CIIbansResource" : { + "required" : [ "ciFiscalCode", "ciName", "iban", "status", "validityDate" ], + "type" : "object", + "properties" : { + "ciFiscalCode" : { + "type" : "string", + "description" : "Creditor Institution tax code" + }, + "ciName" : { + "type" : "string", + "description" : "Creditor Institution name" + }, + "description" : { + "type" : "string", + "description" : "description" + }, + "iban" : { + "type" : "string", + "description" : "iban" + }, + "label" : { + "type" : "string", + "description" : "label", + "example" : "CUP" + }, + "status" : { + "type" : "string", + "description" : "status", + "example" : "ENABLED" + }, + "validityDate" : { + "type" : "string", + "description" : "Activation Date", + "format" : "date-time" } }, - "description": "list of IBANs" + "description" : "list of IBANs" }, - "CIIbansResponse": { - "required": [ - "ibans", - "pageInfo" - ], - "type": "object", - "properties": { - "ibans": { - "type": "array", - "description": "list of IBANs", - "items": { - "$ref": "#/components/schemas/CIIbansResource" + "CIIbansResponse" : { + "required" : [ "ibans", "pageInfo" ], + "type" : "object", + "properties" : { + "ibans" : { + "type" : "array", + "description" : "list of IBANs", + "items" : { + "$ref" : "#/components/schemas/CIIbansResource" } }, - "pageInfo": { - "$ref": "#/components/schemas/PageInfo" + "pageInfo" : { + "$ref" : "#/components/schemas/PageInfo" } } }, - "PageInfo": { - "required": [ - "limit", - "page" - ], - "type": "object", - "properties": { - "limit": { - "type": "integer", - "description": "number of elements per page", - "format": "int32" - }, - "page": { - "type": "integer", - "description": "page number (0 is the first page)", - "format": "int32" + "PageInfo" : { + "required" : [ "limit", "page", "totalElements", "totalPages" ], + "type" : "object", + "properties" : { + "limit" : { + "type" : "integer", + "description" : "number of elements per page", + "format" : "int32" + }, + "page" : { + "type" : "integer", + "description" : "page number (0 is the first page)", + "format" : "int32" + }, + "totalElements" : { + "type" : "integer", + "description" : "total elements of elements", + "format" : "int64" + }, + "totalPages" : { + "type" : "integer", + "description" : "total number of pages", + "format" : "int64" } }, - "description": "information about the pagination" + "description" : "information about the pagination" }, - "ProblemJson": { - "type": "object", - "properties": { - "detail": { - "type": "string", - "description": "A human readable explanation specific to this occurrence of the problem.", - "example": "There was an error processing the request" - }, - "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 - }, - "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" + "ProblemJson" : { + "type" : "object", + "properties" : { + "detail" : { + "type" : "string", + "description" : "A human readable explanation specific to this occurrence of the problem.", + "example" : "There was an error processing the request" + }, + "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 + }, + "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" } } } }, - "securitySchemes": { - "ApiKey": { - "description": "The Azure Subscription Key to access this API.", - "in": "header", - "name": "Ocp-Apim-Subscription-Key", - "type": "apiKey" + "securitySchemes" : { + "ApiKey" : { + "description" : "The Azure Subscription Key to access this API.", + "in" : "header", + "name" : "Ocp-Apim-Subscription-Key", + "type" : "apiKey" } } } -} +} \ No newline at end of file diff --git a/openapi/openapi_backoffice_external_psp.json b/openapi/openapi_backoffice_external_psp.json index 9296c2d..777c00e 100644 --- a/openapi/openapi_backoffice_external_psp.json +++ b/openapi/openapi_backoffice_external_psp.json @@ -1,324 +1,304 @@ { - "openapi": "3.0.1", - "info": { - "description": "Microservice to expose REST API to contact PagoPA Backoffice", - "termsOfService": "https://www.pagopa.gov.it/", - "title": "Backoffice External - Backoffice External PSP", - "version": "1.1.2" + "openapi" : "3.0.1", + "info" : { + "description" : "Microservice to expose REST API to contact PagoPA Backoffice", + "termsOfService" : "https://www.pagopa.gov.it/", + "title" : "Backoffice External - Backoffice External PSP", + "version" : "1.1.2" }, - "servers": [ - { - "url": "http://localhost:8080" - }, - { - "url": "https://api.platform.pagopa.it/backoffice/external/psp/v1" - } - ], - "paths": { - "/creditor_institutions/ibans": { - "get": { - "description": "Return the full list of Ibans of all CIs ", - "operationId": "getCIsIbans", - "parameters": [ - { - "description": "Number of elements on one page. Default = 10", - "in": "query", - "name": "limit", - "required": false, - "schema": { - "maximum": 100, - "minimum": 0, - "type": "integer", - "format": "int32", - "default": 10 - } - }, - { - "description": "Page number. Page value starts from 0", - "in": "query", - "name": "page", - "required": true, - "schema": { - "minimum": 0, - "type": "integer", - "format": "int32" - } + "servers" : [ { + "url" : "http://localhost:8080" + }, { + "url" : "https://api.platform.pagopa.it/backoffice/external/psp/v1" + } ], + "paths" : { + "/creditor_institutions/ibans" : { + "get" : { + "description" : "Return the full list of Ibans of all CIs ", + "operationId" : "getCIsIbans", + "parameters" : [ { + "description" : "Number of elements on one page. Default = 10", + "in" : "query", + "name" : "limit", + "required" : false, + "schema" : { + "maximum" : 100, + "minimum" : 0, + "type" : "integer", + "format" : "int32", + "default" : 10 + } + }, { + "description" : "Page number. Page value starts from 0", + "in" : "query", + "name" : "page", + "required" : true, + "schema" : { + "minimum" : 0, + "type" : "integer", + "format" : "int32" } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CIIbansResponse" + } ], + "responses" : { + "200" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/CIIbansResponse" } } }, - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "400": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "400" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } }, - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "description" : "Bad Request", + "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" + "401" : { + "description" : "Unauthorized", + "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": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "500" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } }, - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } } }, - "security": [ - { - "ApiKey": [] - } - ], - "summary": "getCIsIbans", - "tags": [ - "External APIs" - ] + "security" : [ { + "ApiKey" : [ ] + } ], + "summary" : "getCIsIbans", + "tags" : [ "External APIs" ] }, - "parameters": [ - { - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "in": "header", - "name": "X-Request-Id", - "schema": { - "type": "string" - } + "parameters" : [ { + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "in" : "header", + "name" : "X-Request-Id", + "schema" : { + "type" : "string" } - ] + } ] }, - "/info": { - "get": { - "description": "Return OK if application is started", - "operationId": "healthCheck", - "responses": { - "200": { - "content": { - "*/*": { - "schema": { - "$ref": "#/components/schemas/AppInfo" + "/info" : { + "get" : { + "description" : "Return OK if application is started", + "operationId" : "healthCheck", + "responses" : { + "200" : { + "content" : { + "*/*" : { + "schema" : { + "$ref" : "#/components/schemas/AppInfo" } } }, - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } } }, - "security": [ - { - "ApiKey": [] - } - ], - "summary": "health check", - "tags": [ - "Home" - ] + "security" : [ { + "ApiKey" : [ ] + } ], + "summary" : "health check", + "tags" : [ "Home" ] }, - "parameters": [ - { - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "in": "header", - "name": "X-Request-Id", - "schema": { - "type": "string" - } + "parameters" : [ { + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "in" : "header", + "name" : "X-Request-Id", + "schema" : { + "type" : "string" } - ] + } ] } }, - "components": { - "schemas": { - "AppInfo": { - "type": "object", - "properties": { - "environment": { - "type": "string" + "components" : { + "schemas" : { + "AppInfo" : { + "type" : "object", + "properties" : { + "environment" : { + "type" : "string" }, - "name": { - "type": "string" + "name" : { + "type" : "string" }, - "version": { - "type": "string" + "version" : { + "type" : "string" } } }, - "CIIbansResource": { - "required": [ - "ciFiscalCode", - "ciName", - "iban", - "status", - "validityDate" - ], - "type": "object", - "properties": { - "ciFiscalCode": { - "type": "string", - "description": "Creditor Institution tax code" + "CIIbansResource" : { + "required" : [ "ciFiscalCode", "ciName", "iban", "status", "validityDate" ], + "type" : "object", + "properties" : { + "ciFiscalCode" : { + "type" : "string", + "description" : "Creditor Institution tax code" }, - "ciName": { - "type": "string", - "description": "Creditor Institution name" + "ciName" : { + "type" : "string", + "description" : "Creditor Institution name" }, - "description": { - "type": "string", - "description": "description" + "description" : { + "type" : "string", + "description" : "description" }, - "iban": { - "type": "string", - "description": "iban" + "iban" : { + "type" : "string", + "description" : "iban" }, - "label": { - "type": "string", - "description": "label", - "example": "CUP" + "label" : { + "type" : "string", + "description" : "label", + "example" : "CUP" }, - "status": { - "type": "string", - "description": "status", - "example": "ENABLED" + "status" : { + "type" : "string", + "description" : "status", + "example" : "ENABLED" }, - "validityDate": { - "type": "string", - "description": "Activation Date", - "format": "date-time" + "validityDate" : { + "type" : "string", + "description" : "Activation Date", + "format" : "date-time" } }, - "description": "list of IBANs" + "description" : "list of IBANs" }, - "CIIbansResponse": { - "required": [ - "ibans", - "pageInfo" - ], - "type": "object", - "properties": { - "ibans": { - "type": "array", - "description": "list of IBANs", - "items": { - "$ref": "#/components/schemas/CIIbansResource" + "CIIbansResponse" : { + "required" : [ "ibans", "pageInfo" ], + "type" : "object", + "properties" : { + "ibans" : { + "type" : "array", + "description" : "list of IBANs", + "items" : { + "$ref" : "#/components/schemas/CIIbansResource" } }, - "pageInfo": { - "$ref": "#/components/schemas/PageInfo" + "pageInfo" : { + "$ref" : "#/components/schemas/PageInfo" } } }, - "PageInfo": { - "required": [ - "limit", - "page" - ], - "type": "object", - "properties": { - "limit": { - "type": "integer", - "description": "number of elements per page", - "format": "int32" + "PageInfo" : { + "required" : [ "limit", "page", "totalElements", "totalPages" ], + "type" : "object", + "properties" : { + "limit" : { + "type" : "integer", + "description" : "number of elements per page", + "format" : "int32" + }, + "page" : { + "type" : "integer", + "description" : "page number (0 is the first page)", + "format" : "int32" + }, + "totalElements" : { + "type" : "integer", + "description" : "total elements of elements", + "format" : "int64" }, - "page": { - "type": "integer", - "description": "page number (0 is the first page)", - "format": "int32" + "totalPages" : { + "type" : "integer", + "description" : "total number of pages", + "format" : "int64" } }, - "description": "information about pagination" + "description" : "information about pagination" }, - "ProblemJson": { - "type": "object", - "properties": { - "detail": { - "type": "string", - "description": "A human readable explanation specific to this occurrence of the problem.", - "example": "There was an error processing the request" + "ProblemJson" : { + "type" : "object", + "properties" : { + "detail" : { + "type" : "string", + "description" : "A human readable explanation specific to this occurrence of the problem.", + "example" : "There was an error processing the request" }, - "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 }, - "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" + "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" } } } }, - "securitySchemes": { - "ApiKey": { - "description": "The Azure Subscription Key to access this API.", - "in": "header", - "name": "Ocp-Apim-Subscription-Key", - "type": "apiKey" + "securitySchemes" : { + "ApiKey" : { + "description" : "The Azure Subscription Key to access this API.", + "in" : "header", + "name" : "Ocp-Apim-Subscription-Key", + "type" : "apiKey" } } } -} +} \ No newline at end of file diff --git a/openapi/openapi_backoffice_helpdesk.json b/openapi/openapi_backoffice_helpdesk.json index 8d3be54..11c5ddc 100644 --- a/openapi/openapi_backoffice_helpdesk.json +++ b/openapi/openapi_backoffice_helpdesk.json @@ -1,295 +1,266 @@ { - "openapi": "3.0.1", - "info": { - "description": "Microservice to expose REST API to contact PagoPA Backoffice", - "termsOfService": "https://www.pagopa.gov.it/", - "title": "Backoffice External - Backoffice Helpdesk", - "version": "1.1.2" + "openapi" : "3.0.1", + "info" : { + "description" : "Microservice to expose REST API to contact PagoPA Backoffice", + "termsOfService" : "https://www.pagopa.gov.it/", + "title" : "Backoffice External - Backoffice Helpdesk", + "version" : "1.1.2" }, - "servers": [ - { - "url": "http://localhost:8080" - }, - { - "url": "https://api.platform.pagopa.it/backoffice/helpdesk/v1" - } - ], - "paths": { - "/info": { - "get": { - "description": "Return OK if application is started", - "operationId": "healthCheck", - "responses": { - "200": { - "content": { - "*/*": { - "schema": { - "$ref": "#/components/schemas/AppInfo" + "servers" : [ { + "url" : "http://localhost:8080" + }, { + "url" : "https://api.platform.pagopa.it/backoffice/helpdesk/v1" + } ], + "paths" : { + "/info" : { + "get" : { + "description" : "Return OK if application is started", + "operationId" : "healthCheck", + "responses" : { + "200" : { + "content" : { + "*/*" : { + "schema" : { + "$ref" : "#/components/schemas/AppInfo" } } }, - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } } }, - "security": [ - { - "ApiKey": [] - } - ], - "summary": "health check", - "tags": [ - "Home" - ] + "security" : [ { + "ApiKey" : [ ] + } ], + "summary" : "health check", + "tags" : [ "Home" ] }, - "parameters": [ - { - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "in": "header", - "name": "X-Request-Id", - "schema": { - "type": "string" - } + "parameters" : [ { + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "in" : "header", + "name" : "X-Request-Id", + "schema" : { + "type" : "string" } - ] + } ] }, - "/operative_tables": { - "get": { - "description": "Get All operative tables", - "operationId": "getOperativeTables", - "parameters": [ - { - "description": "Tax code", - "in": "query", - "name": "taxCode", - "required": false, - "schema": { - "type": "string", - "default": "" - } - }, - { - "description": "Business name", - "in": "query", - "name": "businessName", - "required": false, - "schema": { - "type": "string", - "default": "" - } + "/operative_tables" : { + "get" : { + "description" : "Get All operative tables", + "operationId" : "getOperativeTables", + "parameters" : [ { + "description" : "Tax code", + "in" : "query", + "name" : "taxCode", + "required" : false, + "schema" : { + "type" : "string", + "default" : "" + } + }, { + "description" : "Business name", + "in" : "query", + "name" : "businessName", + "required" : false, + "schema" : { + "type" : "string", + "default" : "" } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/OperativeTableResourceList" + } ], + "responses" : { + "200" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/OperativeTableResourceList" } } }, - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "400": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "400" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } }, - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "description" : "Bad Request", + "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" + "401" : { + "description" : "Unauthorized", + "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": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "500" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } }, - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } } }, - "security": [ - { - "ApiKey": [] - } - ], - "summary": "getOperativeTables", - "tags": [ - "Operative Tables" - ] + "security" : [ { + "ApiKey" : [ ] + } ], + "summary" : "getOperativeTables", + "tags" : [ "Operative Tables" ] }, - "parameters": [ - { - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "in": "header", - "name": "X-Request-Id", - "schema": { - "type": "string" - } + "parameters" : [ { + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "in" : "header", + "name" : "X-Request-Id", + "schema" : { + "type" : "string" } - ] + } ] } }, - "components": { - "schemas": { - "AppInfo": { - "type": "object", - "properties": { - "environment": { - "type": "string" + "components" : { + "schemas" : { + "AppInfo" : { + "type" : "object", + "properties" : { + "environment" : { + "type" : "string" }, - "name": { - "type": "string" + "name" : { + "type" : "string" }, - "version": { - "type": "string" + "version" : { + "type" : "string" } } }, - "OperativeTable": { - "required": [ - "createdBy", - "email", - "modifiedAt", - "modifiedBy", - "name", - "referent", - "taxCode", - "telephone" - ], - "type": "object", - "properties": { - "createdAt": { - "type": "string", - "format": "date-time" + "OperativeTable" : { + "required" : [ "createdBy", "email", "modifiedAt", "modifiedBy", "name", "referent", "taxCode", "telephone" ], + "type" : "object", + "properties" : { + "createdAt" : { + "type" : "string", + "format" : "date-time" }, - "createdBy": { - "type": "string" + "createdBy" : { + "type" : "string" }, - "email": { - "type": "string" + "email" : { + "type" : "string" }, - "modifiedAt": { - "type": "string", - "format": "date-time" + "modifiedAt" : { + "type" : "string", + "format" : "date-time" }, - "modifiedBy": { - "type": "string" + "modifiedBy" : { + "type" : "string" }, - "name": { - "type": "string" + "name" : { + "type" : "string" }, - "referent": { - "type": "string" + "referent" : { + "type" : "string" }, - "taxCode": { - "type": "string" + "taxCode" : { + "type" : "string" }, - "telephone": { - "type": "string" + "telephone" : { + "type" : "string" } } }, - "OperativeTableResourceList": { - "required": [ - "operativeTableList" - ], - "type": "object", - "properties": { - "operativeTableList": { - "type": "array", - "items": { - "$ref": "#/components/schemas/OperativeTable" + "OperativeTableResourceList" : { + "required" : [ "operativeTableList" ], + "type" : "object", + "properties" : { + "operativeTableList" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/OperativeTable" } } } }, - "ProblemJson": { - "type": "object", - "properties": { - "detail": { - "type": "string", - "description": "A human readable explanation specific to this occurrence of the problem.", - "example": "There was an error processing the request" + "ProblemJson" : { + "type" : "object", + "properties" : { + "detail" : { + "type" : "string", + "description" : "A human readable explanation specific to this occurrence of the problem.", + "example" : "There was an error processing the request" }, - "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 }, - "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" + "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" } } } }, - "securitySchemes": { - "ApiKey": { - "description": "The Azure Subscription Key to access this API.", - "in": "header", - "name": "Ocp-Apim-Subscription-Key", - "type": "apiKey" + "securitySchemes" : { + "ApiKey" : { + "description" : "The Azure Subscription Key to access this API.", + "in" : "header", + "name" : "Ocp-Apim-Subscription-Key", + "type" : "apiKey" } } } -} +} \ No newline at end of file diff --git a/src/main/java/it/pagopa/selfcare/pagopa/entities/BrokerInstitutionAggregate.java b/src/main/java/it/pagopa/selfcare/pagopa/entities/BrokerInstitutionAggregate.java new file mode 100644 index 0000000..5901949 --- /dev/null +++ b/src/main/java/it/pagopa/selfcare/pagopa/entities/BrokerInstitutionAggregate.java @@ -0,0 +1,18 @@ +package it.pagopa.selfcare.pagopa.entities; + +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.util.List; +@Data +@NoArgsConstructor +@AllArgsConstructor +@Builder +public class BrokerInstitutionAggregate { + + private List institutionEntities; + private Long total; + +} diff --git a/src/main/java/it/pagopa/selfcare/pagopa/entities/IbanAggregate.java b/src/main/java/it/pagopa/selfcare/pagopa/entities/IbanAggregate.java new file mode 100644 index 0000000..5fc1e40 --- /dev/null +++ b/src/main/java/it/pagopa/selfcare/pagopa/entities/IbanAggregate.java @@ -0,0 +1,19 @@ +package it.pagopa.selfcare.pagopa.entities; + +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.util.List; + +@Data +@NoArgsConstructor +@AllArgsConstructor +@Builder +public class IbanAggregate { + + private List ibansSlice; + private Long total; + +} diff --git a/src/main/java/it/pagopa/selfcare/pagopa/model/PageInfo.java b/src/main/java/it/pagopa/selfcare/pagopa/model/PageInfo.java index f6f364e..3284cdb 100644 --- a/src/main/java/it/pagopa/selfcare/pagopa/model/PageInfo.java +++ b/src/main/java/it/pagopa/selfcare/pagopa/model/PageInfo.java @@ -23,4 +23,12 @@ public class PageInfo implements Serializable { @Schema(description = "number of elements per page", requiredMode = Schema.RequiredMode.REQUIRED) Integer limit; + @JsonProperty("totalElements") + @Schema(description = "total elements of elements", requiredMode = Schema.RequiredMode.REQUIRED) + Long totalElements; + + @JsonProperty("totalPages") + @Schema(description = "total number of pages", requiredMode = Schema.RequiredMode.REQUIRED) + Long totalPages; + } diff --git a/src/main/java/it/pagopa/selfcare/pagopa/repository/BrokerIbansRepository.java b/src/main/java/it/pagopa/selfcare/pagopa/repository/BrokerIbansRepository.java index 1452f8a..ee054ae 100644 --- a/src/main/java/it/pagopa/selfcare/pagopa/repository/BrokerIbansRepository.java +++ b/src/main/java/it/pagopa/selfcare/pagopa/repository/BrokerIbansRepository.java @@ -1,16 +1,22 @@ package it.pagopa.selfcare.pagopa.repository; import it.pagopa.selfcare.pagopa.entities.BrokerIbansEntity; +import it.pagopa.selfcare.pagopa.entities.IbanAggregate; +import org.springframework.data.domain.Pageable; +import org.springframework.data.mongodb.repository.Aggregation; import org.springframework.data.mongodb.repository.MongoRepository; -import org.springframework.data.mongodb.repository.Query; import org.springframework.stereotype.Repository; import java.util.Optional; + @Repository public interface BrokerIbansRepository extends MongoRepository { - @Query(value = "{ brokerCode : ?0 }", fields = "{ ibans: { $slice: [?1, ?2]}}") - Optional getBrokerIbans(String brokerCode, Integer skip, Integer limit); + @Aggregation(pipeline = { + "{ $match : { brokerCode : ?0 } }", + "{ $project: { ibansSlice : { $slice: ['$ibans', ?1, ?2] }, total: { $size: '$ibans' }, } }" + }) + Optional getBrokerIbans(String brokerCode, Integer sliceStart, Integer size); } diff --git a/src/main/java/it/pagopa/selfcare/pagopa/repository/BrokerInstitutionsRepository.java b/src/main/java/it/pagopa/selfcare/pagopa/repository/BrokerInstitutionsRepository.java index 5f5247e..2cec75f 100644 --- a/src/main/java/it/pagopa/selfcare/pagopa/repository/BrokerInstitutionsRepository.java +++ b/src/main/java/it/pagopa/selfcare/pagopa/repository/BrokerInstitutionsRepository.java @@ -1,8 +1,10 @@ package it.pagopa.selfcare.pagopa.repository; +import it.pagopa.selfcare.pagopa.entities.BrokerInstitutionAggregate; import it.pagopa.selfcare.pagopa.entities.BrokerInstitutionsEntity; +import org.springframework.data.domain.Pageable; +import org.springframework.data.mongodb.repository.Aggregation; import org.springframework.data.mongodb.repository.MongoRepository; -import org.springframework.data.mongodb.repository.Query; import org.springframework.stereotype.Repository; import java.util.Optional; @@ -10,7 +12,10 @@ @Repository public interface BrokerInstitutionsRepository extends MongoRepository { - @Query(value = "{ brokerCode : ?0 }", fields = "{ institutions: { $slice: [?1, ?2]}}") - Optional findPagedInstitutionsByBrokerCode(String brokerCode, int skip, Integer limit); + @Aggregation(pipeline = { + "{ $match : { brokerCode : ?0 } }", + "{ $project: { institutionsSlice : { $slice: ['$institutions', ?1, ?2] }, total: { $size: '$institutions' }, } }" + }) + Optional findPagedInstitutionsByBrokerCode(String brokerCode, Integer sliceStart, Integer size); } diff --git a/src/main/java/it/pagopa/selfcare/pagopa/service/impl/ExternalServiceImpl.java b/src/main/java/it/pagopa/selfcare/pagopa/service/impl/ExternalServiceImpl.java index beaed9b..5698c4c 100644 --- a/src/main/java/it/pagopa/selfcare/pagopa/service/impl/ExternalServiceImpl.java +++ b/src/main/java/it/pagopa/selfcare/pagopa/service/impl/ExternalServiceImpl.java @@ -1,8 +1,6 @@ package it.pagopa.selfcare.pagopa.service.impl; -import it.pagopa.selfcare.pagopa.entities.BrokerIbansEntity; -import it.pagopa.selfcare.pagopa.entities.BrokerInstitutionsEntity; -import it.pagopa.selfcare.pagopa.entities.CreditorInstitutionIbansEntity; +import it.pagopa.selfcare.pagopa.entities.*; import it.pagopa.selfcare.pagopa.exception.AppError; import it.pagopa.selfcare.pagopa.exception.AppException; import it.pagopa.selfcare.pagopa.model.BrokerInstitutionResource; @@ -21,6 +19,7 @@ import org.springframework.stereotype.Service; import java.util.Collections; +import java.util.List; import java.util.Optional; @Service @@ -41,22 +40,24 @@ public ExternalServiceImpl(BrokerInstitutionsRepository brokerInstitutionsReposi @Override public BrokerInstitutionsResponse getBrokerInstitutions(String brokerCode, Integer limit, Integer page) { - Optional brokerInstitutionsEntity = brokerInstitutionsRepository + Optional brokerInstitutionsEntity = brokerInstitutionsRepository .findPagedInstitutionsByBrokerCode(brokerCode, page == 0 ? 0 : ((page * limit) - 1), limit); if(brokerInstitutionsEntity.isEmpty() || - brokerInstitutionsEntity.get().getInstitutions() == null) { + brokerInstitutionsEntity.get().getInstitutionEntities() == null) { throw new AppException(AppError.BROKER_INSTITUTIONS_NOT_FOUND, brokerCode); } return BrokerInstitutionsResponse .builder() - .creditorInstitutions(brokerInstitutionsEntity.get().getInstitutions().stream().map( + .creditorInstitutions(brokerInstitutionsEntity.get().getInstitutionEntities().stream().map( brokerInstutitionEntity -> { BrokerInstitutionResource response = new BrokerInstitutionResource(); BeanUtils.copyProperties(brokerInstutitionEntity, response); return response; } ).toList()) - .pageInfo(PageInfoMapper.toPageInfo(page, limit)) + .pageInfo(PageInfoMapper.toPageInfo(page, limit, + brokerInstitutionsEntity.get().getTotal() / limit, + brokerInstitutionsEntity.get().getTotal())) .build(); } @@ -74,28 +75,33 @@ public CIIbansResponse getCIsIbans(Integer limit, Integer page) { return response; }) .toList()) - .pageInfo(PageInfoMapper.toPageInfo(page, limit)) + .pageInfo(PageInfoMapper.toPageInfo( + page, limit, + creditorInstitutionIbansEntities.getTotalPages(), + creditorInstitutionIbansEntities.getTotalElements())) .build(); } @Override public CIIbansResponse getBrokerIbans(String brokerCode, Integer limit, Integer page) { - Optional brokerIbanEntities = brokerIbansRepository.getBrokerIbans( + Pageable pageable = PageRequest.of(page, limit); + Optional brokerIbanAggregate = brokerIbansRepository.getBrokerIbans( brokerCode, page == 0 ? 0 : ((page * limit) - 1), limit); - if(brokerIbanEntities.isEmpty() || - brokerIbanEntities.get().getIbans() == null) { + if(brokerIbanAggregate.isEmpty() || + brokerIbanAggregate.get().getIbansSlice() == null) { throw new AppException(AppError.BROKER_IBANS_NOT_FOUND, brokerCode); } return CIIbansResponse .builder() - .ibans(brokerIbanEntities.get().getIbans() != null ? - brokerIbanEntities.get().getIbans().stream().map(brokerIbanEntity -> { + .ibans(brokerIbanAggregate.get().getIbansSlice().stream().map(brokerIbanEntity -> { CIIbansResource response = new CIIbansResource(); BeanUtils.copyProperties(brokerIbanEntity, response); return response; - }).toList() - : Collections.emptyList()) - .pageInfo(PageInfoMapper.toPageInfo(page, limit)) + }).toList()) + .pageInfo(PageInfoMapper.toPageInfo( + page, limit, + brokerIbanAggregate.get().getTotal() / limit, + brokerIbanAggregate.get().getTotal())) .build(); } diff --git a/src/main/java/it/pagopa/selfcare/pagopa/util/PageInfoMapper.java b/src/main/java/it/pagopa/selfcare/pagopa/util/PageInfoMapper.java index 762f667..0ad503f 100644 --- a/src/main/java/it/pagopa/selfcare/pagopa/util/PageInfoMapper.java +++ b/src/main/java/it/pagopa/selfcare/pagopa/util/PageInfoMapper.java @@ -6,7 +6,7 @@ * Contains utility methods related to the creation of a PageInfo instance */ public class PageInfoMapper { - public static PageInfo toPageInfo(int page, int limit) { - return PageInfo.builder().limit(limit).page(page).build(); + public static PageInfo toPageInfo(int page, int limit, long totalPages, long totalElements) { + return PageInfo.builder().limit(limit).page(page).totalElements(totalElements).totalPages(totalPages).build(); } } diff --git a/src/test/java/it/pagopa/selfcare/pagopa/service/impl/ExternalServiceImplTest.java b/src/test/java/it/pagopa/selfcare/pagopa/service/impl/ExternalServiceImplTest.java index bfa30a4..33d11ce 100644 --- a/src/test/java/it/pagopa/selfcare/pagopa/service/impl/ExternalServiceImplTest.java +++ b/src/test/java/it/pagopa/selfcare/pagopa/service/impl/ExternalServiceImplTest.java @@ -50,9 +50,9 @@ void setup() { void requestWithValidBrokerCodeShouldReturnValidResponse() { when(brokerInstitutionsRepository.findPagedInstitutionsByBrokerCode( "VALID_BROKER_CODE", 0, 10)).thenReturn( - Optional.of(BrokerInstitutionsEntity.builder() - .brokerCode("VALID_BROKER_CODE") - .institutions(Collections.singletonList(BrokerInstitutionEntity + Optional.of(BrokerInstitutionAggregate.builder() + .total(10L) + .institutionEntities(Collections.singletonList(BrokerInstitutionEntity .builder().brokerTaxCode("brokerTaxCode").build())).build()) ); BrokerInstitutionsResponse brokerInstitutionsResponse = Assertions.assertDoesNotThrow( @@ -105,9 +105,9 @@ void requestWithMissingIbansShouldReturnEmptyList() { void requestOnIbansWithValidBrokerCodeShouldReturnValidResponse() { when(brokerIbansRepository.getBrokerIbans( "VALID_BROKER_CODE", 0, 10)).thenReturn( - Optional.of(BrokerIbansEntity.builder() - .brokerCode("VALID_BROKER_CODE") - .ibans(Collections.singletonList(IbanEntity + Optional.of(IbanAggregate.builder() + .total(10L) + .ibansSlice(Collections.singletonList(IbanEntity .builder().iban("IBAN").build())).build()) ); CIIbansResponse brokerInstitutionsResponse = Assertions.assertDoesNotThrow( From 78c97380e64c6b99b68ac01808b3485819bfc483 Mon Sep 17 00:00:00 2001 From: pagopa-github-bot Date: Thu, 25 Jul 2024 07:22:39 +0000 Subject: [PATCH 2/8] Bump to version 1.1.3 [skip ci] --- helm/Chart.yaml | 4 +- helm/values-dev.yaml | 2 +- helm/values-prod.yaml | 2 +- helm/values-uat.yaml | 2 +- openapi/openapi.json | 1488 ++++++++++-------- openapi/openapi_backoffice_external_ec.json | 1011 ++++++------ openapi/openapi_backoffice_external_psp.json | 476 +++--- openapi/openapi_backoffice_helpdesk.json | 407 ++--- pom.xml | 2 +- 9 files changed, 1803 insertions(+), 1591 deletions(-) diff --git a/helm/Chart.yaml b/helm/Chart.yaml index e0b218d..729848b 100644 --- a/helm/Chart.yaml +++ b/helm/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: pagopa-afm-calculator description: Microservice that handles calculation for pagoPA Advanced Fees Management type: application -version: 0.29.0 -appVersion: 1.1.2 +version: 0.30.0 +appVersion: 1.1.3 dependencies: - name: microservice-chart version: 2.8.0 diff --git a/helm/values-dev.yaml b/helm/values-dev.yaml index 417bad4..e9412b2 100644 --- a/helm/values-dev.yaml +++ b/helm/values-dev.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "backoffice-external" image: repository: ghcr.io/pagopa/pagopa-backoffice-external - tag: "1.1.2" + tag: "1.1.3" pullPolicy: Always livenessProbe: httpGet: diff --git a/helm/values-prod.yaml b/helm/values-prod.yaml index f3454b3..ba0d25b 100644 --- a/helm/values-prod.yaml +++ b/helm/values-prod.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "backoffice-external" image: repository: ghcr.io/pagopa/pagopa-backoffice-external - tag: "1.1.2" + tag: "1.1.3" pullPolicy: Always livenessProbe: httpGet: diff --git a/helm/values-uat.yaml b/helm/values-uat.yaml index e9d1103..3959e45 100644 --- a/helm/values-uat.yaml +++ b/helm/values-uat.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "backoffice-external" image: repository: ghcr.io/pagopa/pagopa-backoffice-external - tag: "1.1.2" + tag: "1.1.3" pullPolicy: Always livenessProbe: httpGet: diff --git a/openapi/openapi.json b/openapi/openapi.json index 761cf69..53c3260 100644 --- a/openapi/openapi.json +++ b/openapi/openapi.json @@ -1,903 +1,997 @@ { - "openapi" : "3.0.1", - "info" : { - "description" : "Microservice to expose REST API to contact PagoPA Backoffice", - "termsOfService" : "https://www.pagopa.gov.it/", - "title" : "Backoffice External", - "version" : "1.1.2" + "openapi": "3.0.1", + "info": { + "description": "Microservice to expose REST API to contact PagoPA Backoffice", + "termsOfService": "https://www.pagopa.gov.it/", + "title": "Backoffice External", + "version": "1.1.3" }, - "servers" : [ { - "url" : "http://localhost:8080" - }, { - "url" : "{host}{basePath}", - "variables" : { - "basePath" : { - "default" : "/backoffice/external/psp/v1", - "enum" : [ "/backoffice/external/psp/v1", "/backoffice/external/ec/v1", "/backoffice/helpdesk/v1" ] - }, - "host" : { - "default" : "https://api.platform.pagopa.it", - "enum" : [ "https://api.dev.platform.pagopa.it", "https://api.uat.platform.pagopa.it", "https://api.platform.pagopa.it" ] + "servers": [ + { + "url": "http://localhost:8080" + }, + { + "url": "{host}{basePath}", + "variables": { + "basePath": { + "default": "/backoffice/external/psp/v1", + "enum": [ + "/backoffice/external/psp/v1", + "/backoffice/external/ec/v1", + "/backoffice/helpdesk/v1" + ] + }, + "host": { + "default": "https://api.platform.pagopa.it", + "enum": [ + "https://api.dev.platform.pagopa.it", + "https://api.uat.platform.pagopa.it", + "https://api.platform.pagopa.it" + ] + } } } - } ], - "paths" : { - "/brokers/{brokerCode}/creditor_institutions" : { - "get" : { - "description" : "Internal | External | Synchronous | Authorization | Authentication | TPS | Idempotency | Stateless | Read/Write Intense | Cacheable\n-|-|-|-|-|-|-|-|-|-\nN | Y | Y | ApiKey | ApiKey | 1.0/sec | Y | Y | Read | Y\nReturn the list of Creditor Institutions of a Broker", - "operationId" : "getBrokerInstitutions", - "parameters" : [ { - "description" : "Broker Code to use as filter for the retrieved creditor institution list", - "in" : "path", - "name" : "brokerCode", - "required" : true, - "schema" : { - "type" : "string" - } - }, { - "description" : "Number of elements on one page. Default = 10", - "in" : "query", - "name" : "limit", - "required" : false, - "schema" : { - "maximum" : 100, - "minimum" : 0, - "type" : "integer", - "format" : "int32", - "default" : 10 - } - }, { - "description" : "Page number. Page value starts from 0", - "in" : "query", - "name" : "page", - "required" : true, - "schema" : { - "minimum" : 0, - "type" : "integer", - "format" : "int32" + ], + "paths": { + "/brokers/{brokerCode}/creditor_institutions": { + "get": { + "description": "Internal | External | Synchronous | Authorization | Authentication | TPS | Idempotency | Stateless | Read/Write Intense | Cacheable\n-|-|-|-|-|-|-|-|-|-\nN | Y | Y | ApiKey | ApiKey | 1.0/sec | Y | Y | Read | Y\nReturn the list of Creditor Institutions of a Broker", + "operationId": "getBrokerInstitutions", + "parameters": [ + { + "description": "Broker Code to use as filter for the retrieved creditor institution list", + "in": "path", + "name": "brokerCode", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "Number of elements on one page. Default = 10", + "in": "query", + "name": "limit", + "required": false, + "schema": { + "maximum": 100, + "minimum": 0, + "type": "integer", + "format": "int32", + "default": 10 + } + }, + { + "description": "Page number. Page value starts from 0", + "in": "query", + "name": "page", + "required": true, + "schema": { + "minimum": 0, + "type": "integer", + "format": "int32" + } } - } ], - "responses" : { - "200" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/BrokerInstitutionsResponse" + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BrokerInstitutionsResponse" } } }, - "description" : "OK", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "description": "OK", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "400" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "400": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } } }, - "description" : "Bad Request", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "description": "Bad Request", + "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" + "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" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "404": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } } }, - "description" : "Institutions for the brokerCode not found", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "description": "Institutions for the brokerCode 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" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "500": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } } }, - "description" : "Service unavailable", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "description": "Service unavailable", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } } }, - "security" : [ { - "ApiKey" : [ ] - } ], - "summary" : "getBrokerInstitutions", - "tags" : [ "External APIs" ] + "security": [ + { + "ApiKey": [] + } + ], + "summary": "getBrokerInstitutions", + "tags": [ + "External APIs" + ] }, - "parameters" : [ { - "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "in" : "header", - "name" : "X-Request-Id", - "schema" : { - "type" : "string" + "parameters": [ + { + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "in": "header", + "name": "X-Request-Id", + "schema": { + "type": "string" + } } - } ] + ] }, - "/brokers/{brokerCode}/ibans" : { - "get" : { - "description" : "Internal | External | Synchronous | Authorization | Authentication | TPS | Idempotency | Stateless | Read/Write Intense | Cacheable\n-|-|-|-|-|-|-|-|-|-\nN | Y | Y | ApiKey | ApiKey | 1.0/sec | Y | Y | Read | Y\nReturn the list of Ibans of all the Creditor Institutions intermediated by the Broker", - "operationId" : "getBrokerIbans", - "parameters" : [ { - "description" : "Broker Code to use as filter for the retrieved ibans list", - "in" : "path", - "name" : "brokerCode", - "required" : true, - "schema" : { - "type" : "string" - } - }, { - "description" : "Number of elements on one page. Default = 10", - "in" : "query", - "name" : "limit", - "required" : false, - "schema" : { - "maximum" : 100, - "minimum" : 0, - "type" : "integer", - "format" : "int32", - "default" : 10 - } - }, { - "description" : "Page number. Page value starts from 0", - "in" : "query", - "name" : "page", - "required" : true, - "schema" : { - "minimum" : 0, - "type" : "integer", - "format" : "int32" + "/brokers/{brokerCode}/ibans": { + "get": { + "description": "Internal | External | Synchronous | Authorization | Authentication | TPS | Idempotency | Stateless | Read/Write Intense | Cacheable\n-|-|-|-|-|-|-|-|-|-\nN | Y | Y | ApiKey | ApiKey | 1.0/sec | Y | Y | Read | Y\nReturn the list of Ibans of all the Creditor Institutions intermediated by the Broker", + "operationId": "getBrokerIbans", + "parameters": [ + { + "description": "Broker Code to use as filter for the retrieved ibans list", + "in": "path", + "name": "brokerCode", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "Number of elements on one page. Default = 10", + "in": "query", + "name": "limit", + "required": false, + "schema": { + "maximum": 100, + "minimum": 0, + "type": "integer", + "format": "int32", + "default": 10 + } + }, + { + "description": "Page number. Page value starts from 0", + "in": "query", + "name": "page", + "required": true, + "schema": { + "minimum": 0, + "type": "integer", + "format": "int32" + } } - } ], - "responses" : { - "200" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/CIIbansResponse" + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CIIbansResponse" } } }, - "description" : "OK", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "description": "OK", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "400" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "400": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } } }, - "description" : "Bad Request", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "description": "Bad Request", + "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" + "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" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "404": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } } }, - "description" : "ibans for the brokerCode not found", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "description": "ibans for the brokerCode 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" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "500": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } } }, - "description" : "Service unavailable", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "description": "Service unavailable", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } } }, - "security" : [ { - "ApiKey" : [ ] - } ], - "summary" : "getBrokerIbans", - "tags" : [ "External APIs" ] + "security": [ + { + "ApiKey": [] + } + ], + "summary": "getBrokerIbans", + "tags": [ + "External APIs" + ] }, - "parameters" : [ { - "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "in" : "header", - "name" : "X-Request-Id", - "schema" : { - "type" : "string" + "parameters": [ + { + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "in": "header", + "name": "X-Request-Id", + "schema": { + "type": "string" + } } - } ] + ] }, - "/creditor_institutions/ibans" : { - "get" : { - "description" : "Internal | External | Synchronous | Authorization | Authentication | TPS | Idempotency | Stateless | Read/Write Intense | Cacheable\n-|-|-|-|-|-|-|-|-|-\nN | Y | Y | ApiKey | ApiKey | 1.0/sec | Y | Y | Read | Y\nReturn the full list of Ibans of all CIs ", - "operationId" : "getCIsIbans", - "parameters" : [ { - "description" : "Number of elements on one page. Default = 10", - "in" : "query", - "name" : "limit", - "required" : false, - "schema" : { - "maximum" : 100, - "minimum" : 0, - "type" : "integer", - "format" : "int32", - "default" : 10 - } - }, { - "description" : "Page number. Page value starts from 0", - "in" : "query", - "name" : "page", - "required" : true, - "schema" : { - "minimum" : 0, - "type" : "integer", - "format" : "int32" + "/creditor_institutions/ibans": { + "get": { + "description": "Internal | External | Synchronous | Authorization | Authentication | TPS | Idempotency | Stateless | Read/Write Intense | Cacheable\n-|-|-|-|-|-|-|-|-|-\nN | Y | Y | ApiKey | ApiKey | 1.0/sec | Y | Y | Read | Y\nReturn the full list of Ibans of all CIs ", + "operationId": "getCIsIbans", + "parameters": [ + { + "description": "Number of elements on one page. Default = 10", + "in": "query", + "name": "limit", + "required": false, + "schema": { + "maximum": 100, + "minimum": 0, + "type": "integer", + "format": "int32", + "default": 10 + } + }, + { + "description": "Page number. Page value starts from 0", + "in": "query", + "name": "page", + "required": true, + "schema": { + "minimum": 0, + "type": "integer", + "format": "int32" + } } - } ], - "responses" : { - "200" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/CIIbansResponse" + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CIIbansResponse" } } }, - "description" : "OK", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "description": "OK", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "400" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "400": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } } }, - "description" : "Bad Request", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "description": "Bad Request", + "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" + "401": { + "description": "Unauthorized", + "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" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "500": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } } }, - "description" : "Service unavailable", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "description": "Service unavailable", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } } }, - "security" : [ { - "ApiKey" : [ ] - } ], - "summary" : "getCIsIbans", - "tags" : [ "External APIs" ] + "security": [ + { + "ApiKey": [] + } + ], + "summary": "getCIsIbans", + "tags": [ + "External APIs" + ] }, - "parameters" : [ { - "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "in" : "header", - "name" : "X-Request-Id", - "schema" : { - "type" : "string" + "parameters": [ + { + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "in": "header", + "name": "X-Request-Id", + "schema": { + "type": "string" + } } - } ] + ] }, - "/info" : { - "get" : { - "description" : "Return OK if application is started", - "operationId" : "healthCheck", - "responses" : { - "200" : { - "content" : { - "*/*" : { - "schema" : { - "$ref" : "#/components/schemas/AppInfo" + "/info": { + "get": { + "description": "Return OK if application is started", + "operationId": "healthCheck", + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/AppInfo" } } }, - "description" : "OK", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "description": "OK", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } } }, - "security" : [ { - "ApiKey" : [ ] - } ], - "summary" : "health check", - "tags" : [ "Home" ] + "security": [ + { + "ApiKey": [] + } + ], + "summary": "health check", + "tags": [ + "Home" + ] }, - "parameters" : [ { - "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "in" : "header", - "name" : "X-Request-Id", - "schema" : { - "type" : "string" + "parameters": [ + { + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "in": "header", + "name": "X-Request-Id", + "schema": { + "type": "string" + } } - } ] + ] }, - "/operative_tables" : { - "get" : { - "description" : "Internal | External | Synchronous | Authorization | Authentication | TPS | Idempotency | Stateless | Read/Write Intense | Cacheable\n-|-|-|-|-|-|-|-|-|-\nN | Y | Y | ApiKey | ApiKey | 1.0/sec | Y | Y | | Y\nGet All operative tables", - "operationId" : "getOperativeTables", - "parameters" : [ { - "description" : "Tax code", - "in" : "query", - "name" : "taxCode", - "required" : false, - "schema" : { - "type" : "string", - "default" : "" - } - }, { - "description" : "Business name", - "in" : "query", - "name" : "businessName", - "required" : false, - "schema" : { - "type" : "string", - "default" : "" + "/operative_tables": { + "get": { + "description": "Internal | External | Synchronous | Authorization | Authentication | TPS | Idempotency | Stateless | Read/Write Intense | Cacheable\n-|-|-|-|-|-|-|-|-|-\nN | Y | Y | ApiKey | ApiKey | 1.0/sec | Y | Y | | Y\nGet All operative tables", + "operationId": "getOperativeTables", + "parameters": [ + { + "description": "Tax code", + "in": "query", + "name": "taxCode", + "required": false, + "schema": { + "type": "string", + "default": "" + } + }, + { + "description": "Business name", + "in": "query", + "name": "businessName", + "required": false, + "schema": { + "type": "string", + "default": "" + } } - } ], - "responses" : { - "200" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/OperativeTableResourceList" + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/OperativeTableResourceList" } } }, - "description" : "OK", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "description": "OK", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "400" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "400": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } } }, - "description" : "Bad Request", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "description": "Bad Request", + "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" + "401": { + "description": "Unauthorized", + "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" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "500": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } } }, - "description" : "Service unavailable", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "description": "Service unavailable", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } } }, - "security" : [ { - "ApiKey" : [ ] - } ], - "summary" : "getOperativeTables", - "tags" : [ "Operative Tables" ] + "security": [ + { + "ApiKey": [] + } + ], + "summary": "getOperativeTables", + "tags": [ + "Operative Tables" + ] }, - "parameters" : [ { - "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "in" : "header", - "name" : "X-Request-Id", - "schema" : { - "type" : "string" + "parameters": [ + { + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "in": "header", + "name": "X-Request-Id", + "schema": { + "type": "string" + } } - } ] + ] } }, - "components" : { - "schemas" : { - "AppInfo" : { - "type" : "object", - "properties" : { - "environment" : { - "type" : "string" - }, - "name" : { - "type" : "string" - }, - "version" : { - "type" : "string" + "components": { + "schemas": { + "AppInfo": { + "type": "object", + "properties": { + "environment": { + "type": "string" + }, + "name": { + "type": "string" + }, + "version": { + "type": "string" } } }, - "BrokerInstitutionResource" : { - "required" : [ "auxDigit", "brokerCompanyName", "brokerTaxCode", "ciStatus", "companyName", "intermediated", "model", "stationState", "taxCode", "version" ], - "type" : "object", - "properties" : { - "activationDate" : { - "type" : "string", - "description" : "activation date", - "format" : "date-time" - }, - "applicationCode" : { - "type" : "string", - "description" : "application code of the relation station-ec (unique per auxdigit)" - }, - "auxDigit" : { - "type" : "string", - "description" : "aux digit number (0,1,2,3, 0/3)" - }, - "broadcast" : { - "type" : "boolean", - "description" : "true if the station is for broadcast" - }, - "brokerCompanyName" : { - "type" : "string", - "description" : "broker name" - }, - "brokerTaxCode" : { - "type" : "string", - "description" : "broker tax code" - }, - "cbillCode" : { - "type" : "string", - "description" : "CBILL code" - }, - "ciStatus" : { - "type" : "boolean", - "description" : "True if the CI is enabled" - }, - "companyName" : { - "type" : "string", - "description" : "Creditor Institution name" - }, - "endpointMU" : { - "type" : "string", - "description" : "endpoint for Modello Unico" - }, - "endpointRT" : { - "type" : "string", - "description" : "endpoint for Ricevuta Telematica" - }, - "endpointRedirect" : { - "type" : "string", - "description" : "endpoint for Redirect" - }, - "intermediated" : { - "type" : "boolean", - "description" : "true if the EC has a broker" - }, - "model" : { - "type" : "integer", - "description" : "model of the station", - "format" : "int32" - }, - "primitiveVersion" : { - "type" : "integer", - "description" : "Version of the primitive", - "format" : "int32" - }, - "pspPayment" : { - "type" : "boolean", - "description" : "true if allows payments by the psp" - }, - "segregationCode" : { - "type" : "string", - "description" : "segregation code of the relation station-ec (unique per auxdigit)" - }, - "stationId" : { - "type" : "string", - "description" : "station code" - }, - "stationState" : { - "type" : "string", - "description" : "station state", - "example" : "enabled" - }, - "taxCode" : { - "type" : "string", - "description" : "Creditor Institution tax code" - }, - "version" : { - "type" : "string", - "description" : "station version", - "example" : "1" + "BrokerInstitutionResource": { + "required": [ + "auxDigit", + "brokerCompanyName", + "brokerTaxCode", + "ciStatus", + "companyName", + "intermediated", + "model", + "stationState", + "taxCode", + "version" + ], + "type": "object", + "properties": { + "activationDate": { + "type": "string", + "description": "activation date", + "format": "date-time" + }, + "applicationCode": { + "type": "string", + "description": "application code of the relation station-ec (unique per auxdigit)" + }, + "auxDigit": { + "type": "string", + "description": "aux digit number (0,1,2,3, 0/3)" + }, + "broadcast": { + "type": "boolean", + "description": "true if the station is for broadcast" + }, + "brokerCompanyName": { + "type": "string", + "description": "broker name" + }, + "brokerTaxCode": { + "type": "string", + "description": "broker tax code" + }, + "cbillCode": { + "type": "string", + "description": "CBILL code" + }, + "ciStatus": { + "type": "boolean", + "description": "True if the CI is enabled" + }, + "companyName": { + "type": "string", + "description": "Creditor Institution name" + }, + "endpointMU": { + "type": "string", + "description": "endpoint for Modello Unico" + }, + "endpointRT": { + "type": "string", + "description": "endpoint for Ricevuta Telematica" + }, + "endpointRedirect": { + "type": "string", + "description": "endpoint for Redirect" + }, + "intermediated": { + "type": "boolean", + "description": "true if the EC has a broker" + }, + "model": { + "type": "integer", + "description": "model of the station", + "format": "int32" + }, + "primitiveVersion": { + "type": "integer", + "description": "Version of the primitive", + "format": "int32" + }, + "pspPayment": { + "type": "boolean", + "description": "true if allows payments by the psp" + }, + "segregationCode": { + "type": "string", + "description": "segregation code of the relation station-ec (unique per auxdigit)" + }, + "stationId": { + "type": "string", + "description": "station code" + }, + "stationState": { + "type": "string", + "description": "station state", + "example": "enabled" + }, + "taxCode": { + "type": "string", + "description": "Creditor Institution tax code" + }, + "version": { + "type": "string", + "description": "station version", + "example": "1" } }, - "description" : "List of creditor institutions" + "description": "List of creditor institutions" }, - "BrokerInstitutionsResponse" : { - "required" : [ "creditorInstitutions", "pageInfo" ], - "type" : "object", - "properties" : { - "creditorInstitutions" : { - "type" : "array", - "description" : "List of creditor institutions", - "items" : { - "$ref" : "#/components/schemas/BrokerInstitutionResource" - } - }, - "pageInfo" : { - "$ref" : "#/components/schemas/PageInfo" + "BrokerInstitutionsResponse": { + "required": [ + "creditorInstitutions", + "pageInfo" + ], + "type": "object", + "properties": { + "creditorInstitutions": { + "type": "array", + "description": "List of creditor institutions", + "items": { + "$ref": "#/components/schemas/BrokerInstitutionResource" + } + }, + "pageInfo": { + "$ref": "#/components/schemas/PageInfo" } } }, - "CIIbansResource" : { - "required" : [ "ciFiscalCode", "ciName", "iban", "status", "validityDate" ], - "type" : "object", - "properties" : { - "ciFiscalCode" : { - "type" : "string", - "description" : "Creditor Institution tax code" - }, - "ciName" : { - "type" : "string", - "description" : "Creditor Institution name" - }, - "description" : { - "type" : "string", - "description" : "description" - }, - "iban" : { - "type" : "string", - "description" : "iban" - }, - "label" : { - "type" : "string", - "description" : "label", - "example" : "CUP" - }, - "status" : { - "type" : "string", - "description" : "status", - "example" : "ENABLED" - }, - "validityDate" : { - "type" : "string", - "description" : "Activation Date", - "format" : "date-time" + "CIIbansResource": { + "required": [ + "ciFiscalCode", + "ciName", + "iban", + "status", + "validityDate" + ], + "type": "object", + "properties": { + "ciFiscalCode": { + "type": "string", + "description": "Creditor Institution tax code" + }, + "ciName": { + "type": "string", + "description": "Creditor Institution name" + }, + "description": { + "type": "string", + "description": "description" + }, + "iban": { + "type": "string", + "description": "iban" + }, + "label": { + "type": "string", + "description": "label", + "example": "CUP" + }, + "status": { + "type": "string", + "description": "status", + "example": "ENABLED" + }, + "validityDate": { + "type": "string", + "description": "Activation Date", + "format": "date-time" } }, - "description" : "list of IBANs" + "description": "list of IBANs" }, - "CIIbansResponse" : { - "required" : [ "ibans", "pageInfo" ], - "type" : "object", - "properties" : { - "ibans" : { - "type" : "array", - "description" : "list of IBANs", - "items" : { - "$ref" : "#/components/schemas/CIIbansResource" - } - }, - "pageInfo" : { - "$ref" : "#/components/schemas/PageInfo" + "CIIbansResponse": { + "required": [ + "ibans", + "pageInfo" + ], + "type": "object", + "properties": { + "ibans": { + "type": "array", + "description": "list of IBANs", + "items": { + "$ref": "#/components/schemas/CIIbansResource" + } + }, + "pageInfo": { + "$ref": "#/components/schemas/PageInfo" } } }, - "OperativeTable" : { - "required" : [ "createdBy", "email", "modifiedAt", "modifiedBy", "name", "referent", "taxCode", "telephone" ], - "type" : "object", - "properties" : { - "createdAt" : { - "type" : "string", - "format" : "date-time" - }, - "createdBy" : { - "type" : "string" - }, - "email" : { - "type" : "string" - }, - "modifiedAt" : { - "type" : "string", - "format" : "date-time" - }, - "modifiedBy" : { - "type" : "string" - }, - "name" : { - "type" : "string" - }, - "referent" : { - "type" : "string" - }, - "taxCode" : { - "type" : "string" - }, - "telephone" : { - "type" : "string" + "OperativeTable": { + "required": [ + "createdBy", + "email", + "modifiedAt", + "modifiedBy", + "name", + "referent", + "taxCode", + "telephone" + ], + "type": "object", + "properties": { + "createdAt": { + "type": "string", + "format": "date-time" + }, + "createdBy": { + "type": "string" + }, + "email": { + "type": "string" + }, + "modifiedAt": { + "type": "string", + "format": "date-time" + }, + "modifiedBy": { + "type": "string" + }, + "name": { + "type": "string" + }, + "referent": { + "type": "string" + }, + "taxCode": { + "type": "string" + }, + "telephone": { + "type": "string" } } }, - "OperativeTableResourceList" : { - "required" : [ "operativeTableList" ], - "type" : "object", - "properties" : { - "operativeTableList" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/OperativeTable" + "OperativeTableResourceList": { + "required": [ + "operativeTableList" + ], + "type": "object", + "properties": { + "operativeTableList": { + "type": "array", + "items": { + "$ref": "#/components/schemas/OperativeTable" } } } }, - "PageInfo" : { - "required" : [ "limit", "page", "totalElements", "totalPages" ], - "type" : "object", - "properties" : { - "limit" : { - "type" : "integer", - "description" : "number of elements per page", - "format" : "int32" - }, - "page" : { - "type" : "integer", - "description" : "page number (0 is the first page)", - "format" : "int32" - }, - "totalElements" : { - "type" : "integer", - "description" : "total elements of elements", - "format" : "int64" - }, - "totalPages" : { - "type" : "integer", - "description" : "total number of pages", - "format" : "int64" + "PageInfo": { + "required": [ + "limit", + "page", + "totalElements", + "totalPages" + ], + "type": "object", + "properties": { + "limit": { + "type": "integer", + "description": "number of elements per page", + "format": "int32" + }, + "page": { + "type": "integer", + "description": "page number (0 is the first page)", + "format": "int32" + }, + "totalElements": { + "type": "integer", + "description": "total elements of elements", + "format": "int64" + }, + "totalPages": { + "type": "integer", + "description": "total number of pages", + "format": "int64" } }, - "description" : "information about the pagination" + "description": "information about the pagination" }, - "ProblemJson" : { - "type" : "object", - "properties" : { - "detail" : { - "type" : "string", - "description" : "A human readable explanation specific to this occurrence of the problem.", - "example" : "There was an error processing the request" - }, - "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 - }, - "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" + "ProblemJson": { + "type": "object", + "properties": { + "detail": { + "type": "string", + "description": "A human readable explanation specific to this occurrence of the problem.", + "example": "There was an error processing the request" + }, + "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 + }, + "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" } } } }, - "securitySchemes" : { - "ApiKey" : { - "description" : "The Azure Subscription Key to access this API.", - "in" : "header", - "name" : "Ocp-Apim-Subscription-Key", - "type" : "apiKey" + "securitySchemes": { + "ApiKey": { + "description": "The Azure Subscription Key to access this API.", + "in": "header", + "name": "Ocp-Apim-Subscription-Key", + "type": "apiKey" } } } -} \ No newline at end of file +} diff --git a/openapi/openapi_backoffice_external_ec.json b/openapi/openapi_backoffice_external_ec.json index cfcec96..00ec243 100644 --- a/openapi/openapi_backoffice_external_ec.json +++ b/openapi/openapi_backoffice_external_ec.json @@ -1,610 +1,667 @@ { - "openapi" : "3.0.1", - "info" : { - "description" : "Microservice to expose REST API to contact PagoPA Backoffice", - "termsOfService" : "https://www.pagopa.gov.it/", - "title" : "Backoffice External - Backoffice External EC", - "version" : "1.1.2" + "openapi": "3.0.1", + "info": { + "description": "Microservice to expose REST API to contact PagoPA Backoffice", + "termsOfService": "https://www.pagopa.gov.it/", + "title": "Backoffice External - Backoffice External EC", + "version": "1.1.3" }, - "servers" : [ { - "url" : "http://localhost:8080" - }, { - "url" : "https://api.platform.pagopa.it/backoffice/external/ec/v1" - } ], - "paths" : { - "/brokers/{brokerCode}/creditor_institutions" : { - "get" : { - "description" : "Return the list of Creditor Institutions of a Broker", - "operationId" : "getBrokerInstitutions", - "parameters" : [ { - "description" : "Broker Code to use as filter for the retrieved creditor institution list", - "in" : "path", - "name" : "brokerCode", - "required" : true, - "schema" : { - "type" : "string" - } - }, { - "description" : "Number of elements on one page. Default = 10", - "in" : "query", - "name" : "limit", - "required" : false, - "schema" : { - "maximum" : 100, - "minimum" : 0, - "type" : "integer", - "format" : "int32", - "default" : 10 - } - }, { - "description" : "Page number. Page value starts from 0", - "in" : "query", - "name" : "page", - "required" : true, - "schema" : { - "minimum" : 0, - "type" : "integer", - "format" : "int32" + "servers": [ + { + "url": "http://localhost:8080" + }, + { + "url": "https://api.platform.pagopa.it/backoffice/external/ec/v1" + } + ], + "paths": { + "/brokers/{brokerCode}/creditor_institutions": { + "get": { + "description": "Return the list of Creditor Institutions of a Broker", + "operationId": "getBrokerInstitutions", + "parameters": [ + { + "description": "Broker Code to use as filter for the retrieved creditor institution list", + "in": "path", + "name": "brokerCode", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "Number of elements on one page. Default = 10", + "in": "query", + "name": "limit", + "required": false, + "schema": { + "maximum": 100, + "minimum": 0, + "type": "integer", + "format": "int32", + "default": 10 + } + }, + { + "description": "Page number. Page value starts from 0", + "in": "query", + "name": "page", + "required": true, + "schema": { + "minimum": 0, + "type": "integer", + "format": "int32" + } } - } ], - "responses" : { - "200" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/BrokerInstitutionsResponse" + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BrokerInstitutionsResponse" } } }, - "description" : "OK", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "description": "OK", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "400" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "400": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } } }, - "description" : "Bad Request", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "description": "Bad Request", + "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" + "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" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "404": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } } }, - "description" : "Institutions for the brokerCode not found", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "description": "Institutions for the brokerCode 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" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "500": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } } }, - "description" : "Service unavailable", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "description": "Service unavailable", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } } }, - "security" : [ { - "ApiKey" : [ ] - } ], - "summary" : "getBrokerInstitutions", - "tags" : [ "External APIs" ] + "security": [ + { + "ApiKey": [] + } + ], + "summary": "getBrokerInstitutions", + "tags": [ + "External APIs" + ] }, - "parameters" : [ { - "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "in" : "header", - "name" : "X-Request-Id", - "schema" : { - "type" : "string" + "parameters": [ + { + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "in": "header", + "name": "X-Request-Id", + "schema": { + "type": "string" + } } - } ] + ] }, - "/brokers/{brokerCode}/ibans" : { - "get" : { - "description" : "Return the list of Ibans of all the Creditor Institutions intermediated by the Broker", - "operationId" : "getBrokerIbans", - "parameters" : [ { - "description" : "Broker Code to use as filter for the retrieved ibans list", - "in" : "path", - "name" : "brokerCode", - "required" : true, - "schema" : { - "type" : "string" - } - }, { - "description" : "Number of elements on one page. Default = 10", - "in" : "query", - "name" : "limit", - "required" : false, - "schema" : { - "maximum" : 100, - "minimum" : 0, - "type" : "integer", - "format" : "int32", - "default" : 10 - } - }, { - "description" : "Page number. Page value starts from 0", - "in" : "query", - "name" : "page", - "required" : true, - "schema" : { - "minimum" : 0, - "type" : "integer", - "format" : "int32" + "/brokers/{brokerCode}/ibans": { + "get": { + "description": "Return the list of Ibans of all the Creditor Institutions intermediated by the Broker", + "operationId": "getBrokerIbans", + "parameters": [ + { + "description": "Broker Code to use as filter for the retrieved ibans list", + "in": "path", + "name": "brokerCode", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "Number of elements on one page. Default = 10", + "in": "query", + "name": "limit", + "required": false, + "schema": { + "maximum": 100, + "minimum": 0, + "type": "integer", + "format": "int32", + "default": 10 + } + }, + { + "description": "Page number. Page value starts from 0", + "in": "query", + "name": "page", + "required": true, + "schema": { + "minimum": 0, + "type": "integer", + "format": "int32" + } } - } ], - "responses" : { - "200" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/CIIbansResponse" + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CIIbansResponse" } } }, - "description" : "OK", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "description": "OK", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "400" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "400": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } } }, - "description" : "Bad Request", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "description": "Bad Request", + "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" + "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" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "404": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } } }, - "description" : "ibans for the brokerCode not found", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "description": "ibans for the brokerCode 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" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "500": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } } }, - "description" : "Service unavailable", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "description": "Service unavailable", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } } }, - "security" : [ { - "ApiKey" : [ ] - } ], - "summary" : "getBrokerIbans", - "tags" : [ "External APIs" ] + "security": [ + { + "ApiKey": [] + } + ], + "summary": "getBrokerIbans", + "tags": [ + "External APIs" + ] }, - "parameters" : [ { - "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "in" : "header", - "name" : "X-Request-Id", - "schema" : { - "type" : "string" + "parameters": [ + { + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "in": "header", + "name": "X-Request-Id", + "schema": { + "type": "string" + } } - } ] + ] }, - "/info" : { - "get" : { - "description" : "Return OK if application is started", - "operationId" : "healthCheck", - "responses" : { - "200" : { - "content" : { - "*/*" : { - "schema" : { - "$ref" : "#/components/schemas/AppInfo" + "/info": { + "get": { + "description": "Return OK if application is started", + "operationId": "healthCheck", + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/AppInfo" } } }, - "description" : "OK", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "description": "OK", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } } }, - "security" : [ { - "ApiKey" : [ ] - } ], - "summary" : "health check", - "tags" : [ "Home" ] + "security": [ + { + "ApiKey": [] + } + ], + "summary": "health check", + "tags": [ + "Home" + ] }, - "parameters" : [ { - "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "in" : "header", - "name" : "X-Request-Id", - "schema" : { - "type" : "string" + "parameters": [ + { + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "in": "header", + "name": "X-Request-Id", + "schema": { + "type": "string" + } } - } ] + ] } }, - "components" : { - "schemas" : { - "AppInfo" : { - "type" : "object", - "properties" : { - "environment" : { - "type" : "string" - }, - "name" : { - "type" : "string" - }, - "version" : { - "type" : "string" + "components": { + "schemas": { + "AppInfo": { + "type": "object", + "properties": { + "environment": { + "type": "string" + }, + "name": { + "type": "string" + }, + "version": { + "type": "string" } } }, - "BrokerInstitutionResource" : { - "required" : [ "auxDigit", "brokerCompanyName", "brokerTaxCode", "ciStatus", "companyName", "intermediated", "model", "stationState", "taxCode", "version" ], - "type" : "object", - "properties" : { - "activationDate" : { - "type" : "string", - "description" : "activation date", - "format" : "date-time" - }, - "applicationCode" : { - "type" : "string", - "description" : "application code of the relation station-ec (unique per auxdigit)" - }, - "auxDigit" : { - "type" : "string", - "description" : "aux digit number (0,1,2,3, 0/3)" - }, - "broadcast" : { - "type" : "boolean", - "description" : "true if the station is for broadcast" - }, - "brokerCompanyName" : { - "type" : "string", - "description" : "broker name" - }, - "brokerTaxCode" : { - "type" : "string", - "description" : "broker tax code" - }, - "cbillCode" : { - "type" : "string", - "description" : "CBILL code" - }, - "ciStatus" : { - "type" : "boolean", - "description" : "True if the CI is enabled" - }, - "companyName" : { - "type" : "string", - "description" : "Creditor Institution name" - }, - "endpointMU" : { - "type" : "string", - "description" : "endpoint for Modello Unico" - }, - "endpointRT" : { - "type" : "string", - "description" : "endpoint for Ricevuta Telematica" - }, - "endpointRedirect" : { - "type" : "string", - "description" : "endpoint for Redirect" - }, - "intermediated" : { - "type" : "boolean", - "description" : "true if the EC has a broker" - }, - "model" : { - "type" : "integer", - "description" : "model of the station", - "format" : "int32" - }, - "primitiveVersion" : { - "type" : "integer", - "description" : "Version of the primitive", - "format" : "int32" - }, - "pspPayment" : { - "type" : "boolean", - "description" : "true if allows payments by the psp" - }, - "segregationCode" : { - "type" : "string", - "description" : "segregation code of the relation station-ec (unique per auxdigit)" - }, - "stationId" : { - "type" : "string", - "description" : "station code" - }, - "stationState" : { - "type" : "string", - "description" : "station state", - "example" : "enabled" - }, - "taxCode" : { - "type" : "string", - "description" : "Creditor Institution tax code" - }, - "version" : { - "type" : "string", - "description" : "station version", - "example" : "1" + "BrokerInstitutionResource": { + "required": [ + "auxDigit", + "brokerCompanyName", + "brokerTaxCode", + "ciStatus", + "companyName", + "intermediated", + "model", + "stationState", + "taxCode", + "version" + ], + "type": "object", + "properties": { + "activationDate": { + "type": "string", + "description": "activation date", + "format": "date-time" + }, + "applicationCode": { + "type": "string", + "description": "application code of the relation station-ec (unique per auxdigit)" + }, + "auxDigit": { + "type": "string", + "description": "aux digit number (0,1,2,3, 0/3)" + }, + "broadcast": { + "type": "boolean", + "description": "true if the station is for broadcast" + }, + "brokerCompanyName": { + "type": "string", + "description": "broker name" + }, + "brokerTaxCode": { + "type": "string", + "description": "broker tax code" + }, + "cbillCode": { + "type": "string", + "description": "CBILL code" + }, + "ciStatus": { + "type": "boolean", + "description": "True if the CI is enabled" + }, + "companyName": { + "type": "string", + "description": "Creditor Institution name" + }, + "endpointMU": { + "type": "string", + "description": "endpoint for Modello Unico" + }, + "endpointRT": { + "type": "string", + "description": "endpoint for Ricevuta Telematica" + }, + "endpointRedirect": { + "type": "string", + "description": "endpoint for Redirect" + }, + "intermediated": { + "type": "boolean", + "description": "true if the EC has a broker" + }, + "model": { + "type": "integer", + "description": "model of the station", + "format": "int32" + }, + "primitiveVersion": { + "type": "integer", + "description": "Version of the primitive", + "format": "int32" + }, + "pspPayment": { + "type": "boolean", + "description": "true if allows payments by the psp" + }, + "segregationCode": { + "type": "string", + "description": "segregation code of the relation station-ec (unique per auxdigit)" + }, + "stationId": { + "type": "string", + "description": "station code" + }, + "stationState": { + "type": "string", + "description": "station state", + "example": "enabled" + }, + "taxCode": { + "type": "string", + "description": "Creditor Institution tax code" + }, + "version": { + "type": "string", + "description": "station version", + "example": "1" } }, - "description" : "List of creditor institutions" + "description": "List of creditor institutions" }, - "BrokerInstitutionsResponse" : { - "required" : [ "creditorInstitutions", "pageInfo" ], - "type" : "object", - "properties" : { - "creditorInstitutions" : { - "type" : "array", - "description" : "List of creditor institutions", - "items" : { - "$ref" : "#/components/schemas/BrokerInstitutionResource" + "BrokerInstitutionsResponse": { + "required": [ + "creditorInstitutions", + "pageInfo" + ], + "type": "object", + "properties": { + "creditorInstitutions": { + "type": "array", + "description": "List of creditor institutions", + "items": { + "$ref": "#/components/schemas/BrokerInstitutionResource" } }, - "pageInfo" : { - "$ref" : "#/components/schemas/PageInfo" + "pageInfo": { + "$ref": "#/components/schemas/PageInfo" } } }, - "CIIbansResource" : { - "required" : [ "ciFiscalCode", "ciName", "iban", "status", "validityDate" ], - "type" : "object", - "properties" : { - "ciFiscalCode" : { - "type" : "string", - "description" : "Creditor Institution tax code" - }, - "ciName" : { - "type" : "string", - "description" : "Creditor Institution name" - }, - "description" : { - "type" : "string", - "description" : "description" - }, - "iban" : { - "type" : "string", - "description" : "iban" - }, - "label" : { - "type" : "string", - "description" : "label", - "example" : "CUP" - }, - "status" : { - "type" : "string", - "description" : "status", - "example" : "ENABLED" - }, - "validityDate" : { - "type" : "string", - "description" : "Activation Date", - "format" : "date-time" + "CIIbansResource": { + "required": [ + "ciFiscalCode", + "ciName", + "iban", + "status", + "validityDate" + ], + "type": "object", + "properties": { + "ciFiscalCode": { + "type": "string", + "description": "Creditor Institution tax code" + }, + "ciName": { + "type": "string", + "description": "Creditor Institution name" + }, + "description": { + "type": "string", + "description": "description" + }, + "iban": { + "type": "string", + "description": "iban" + }, + "label": { + "type": "string", + "description": "label", + "example": "CUP" + }, + "status": { + "type": "string", + "description": "status", + "example": "ENABLED" + }, + "validityDate": { + "type": "string", + "description": "Activation Date", + "format": "date-time" } }, - "description" : "list of IBANs" + "description": "list of IBANs" }, - "CIIbansResponse" : { - "required" : [ "ibans", "pageInfo" ], - "type" : "object", - "properties" : { - "ibans" : { - "type" : "array", - "description" : "list of IBANs", - "items" : { - "$ref" : "#/components/schemas/CIIbansResource" + "CIIbansResponse": { + "required": [ + "ibans", + "pageInfo" + ], + "type": "object", + "properties": { + "ibans": { + "type": "array", + "description": "list of IBANs", + "items": { + "$ref": "#/components/schemas/CIIbansResource" } }, - "pageInfo" : { - "$ref" : "#/components/schemas/PageInfo" + "pageInfo": { + "$ref": "#/components/schemas/PageInfo" } } }, - "PageInfo" : { - "required" : [ "limit", "page", "totalElements", "totalPages" ], - "type" : "object", - "properties" : { - "limit" : { - "type" : "integer", - "description" : "number of elements per page", - "format" : "int32" - }, - "page" : { - "type" : "integer", - "description" : "page number (0 is the first page)", - "format" : "int32" - }, - "totalElements" : { - "type" : "integer", - "description" : "total elements of elements", - "format" : "int64" - }, - "totalPages" : { - "type" : "integer", - "description" : "total number of pages", - "format" : "int64" + "PageInfo": { + "required": [ + "limit", + "page", + "totalElements", + "totalPages" + ], + "type": "object", + "properties": { + "limit": { + "type": "integer", + "description": "number of elements per page", + "format": "int32" + }, + "page": { + "type": "integer", + "description": "page number (0 is the first page)", + "format": "int32" + }, + "totalElements": { + "type": "integer", + "description": "total elements of elements", + "format": "int64" + }, + "totalPages": { + "type": "integer", + "description": "total number of pages", + "format": "int64" } }, - "description" : "information about the pagination" + "description": "information about the pagination" }, - "ProblemJson" : { - "type" : "object", - "properties" : { - "detail" : { - "type" : "string", - "description" : "A human readable explanation specific to this occurrence of the problem.", - "example" : "There was an error processing the request" - }, - "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 - }, - "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" + "ProblemJson": { + "type": "object", + "properties": { + "detail": { + "type": "string", + "description": "A human readable explanation specific to this occurrence of the problem.", + "example": "There was an error processing the request" + }, + "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 + }, + "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" } } } }, - "securitySchemes" : { - "ApiKey" : { - "description" : "The Azure Subscription Key to access this API.", - "in" : "header", - "name" : "Ocp-Apim-Subscription-Key", - "type" : "apiKey" + "securitySchemes": { + "ApiKey": { + "description": "The Azure Subscription Key to access this API.", + "in": "header", + "name": "Ocp-Apim-Subscription-Key", + "type": "apiKey" } } } -} \ No newline at end of file +} diff --git a/openapi/openapi_backoffice_external_psp.json b/openapi/openapi_backoffice_external_psp.json index 777c00e..61ed964 100644 --- a/openapi/openapi_backoffice_external_psp.json +++ b/openapi/openapi_backoffice_external_psp.json @@ -1,304 +1,336 @@ { - "openapi" : "3.0.1", - "info" : { - "description" : "Microservice to expose REST API to contact PagoPA Backoffice", - "termsOfService" : "https://www.pagopa.gov.it/", - "title" : "Backoffice External - Backoffice External PSP", - "version" : "1.1.2" + "openapi": "3.0.1", + "info": { + "description": "Microservice to expose REST API to contact PagoPA Backoffice", + "termsOfService": "https://www.pagopa.gov.it/", + "title": "Backoffice External - Backoffice External PSP", + "version": "1.1.3" }, - "servers" : [ { - "url" : "http://localhost:8080" - }, { - "url" : "https://api.platform.pagopa.it/backoffice/external/psp/v1" - } ], - "paths" : { - "/creditor_institutions/ibans" : { - "get" : { - "description" : "Return the full list of Ibans of all CIs ", - "operationId" : "getCIsIbans", - "parameters" : [ { - "description" : "Number of elements on one page. Default = 10", - "in" : "query", - "name" : "limit", - "required" : false, - "schema" : { - "maximum" : 100, - "minimum" : 0, - "type" : "integer", - "format" : "int32", - "default" : 10 - } - }, { - "description" : "Page number. Page value starts from 0", - "in" : "query", - "name" : "page", - "required" : true, - "schema" : { - "minimum" : 0, - "type" : "integer", - "format" : "int32" + "servers": [ + { + "url": "http://localhost:8080" + }, + { + "url": "https://api.platform.pagopa.it/backoffice/external/psp/v1" + } + ], + "paths": { + "/creditor_institutions/ibans": { + "get": { + "description": "Return the full list of Ibans of all CIs ", + "operationId": "getCIsIbans", + "parameters": [ + { + "description": "Number of elements on one page. Default = 10", + "in": "query", + "name": "limit", + "required": false, + "schema": { + "maximum": 100, + "minimum": 0, + "type": "integer", + "format": "int32", + "default": 10 + } + }, + { + "description": "Page number. Page value starts from 0", + "in": "query", + "name": "page", + "required": true, + "schema": { + "minimum": 0, + "type": "integer", + "format": "int32" + } } - } ], - "responses" : { - "200" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/CIIbansResponse" + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CIIbansResponse" } } }, - "description" : "OK", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "description": "OK", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "400" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "400": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } } }, - "description" : "Bad Request", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "description": "Bad Request", + "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" + "401": { + "description": "Unauthorized", + "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" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "500": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } } }, - "description" : "Service unavailable", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "description": "Service unavailable", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } } }, - "security" : [ { - "ApiKey" : [ ] - } ], - "summary" : "getCIsIbans", - "tags" : [ "External APIs" ] + "security": [ + { + "ApiKey": [] + } + ], + "summary": "getCIsIbans", + "tags": [ + "External APIs" + ] }, - "parameters" : [ { - "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "in" : "header", - "name" : "X-Request-Id", - "schema" : { - "type" : "string" + "parameters": [ + { + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "in": "header", + "name": "X-Request-Id", + "schema": { + "type": "string" + } } - } ] + ] }, - "/info" : { - "get" : { - "description" : "Return OK if application is started", - "operationId" : "healthCheck", - "responses" : { - "200" : { - "content" : { - "*/*" : { - "schema" : { - "$ref" : "#/components/schemas/AppInfo" + "/info": { + "get": { + "description": "Return OK if application is started", + "operationId": "healthCheck", + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/AppInfo" } } }, - "description" : "OK", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "description": "OK", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } } }, - "security" : [ { - "ApiKey" : [ ] - } ], - "summary" : "health check", - "tags" : [ "Home" ] + "security": [ + { + "ApiKey": [] + } + ], + "summary": "health check", + "tags": [ + "Home" + ] }, - "parameters" : [ { - "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "in" : "header", - "name" : "X-Request-Id", - "schema" : { - "type" : "string" + "parameters": [ + { + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "in": "header", + "name": "X-Request-Id", + "schema": { + "type": "string" + } } - } ] + ] } }, - "components" : { - "schemas" : { - "AppInfo" : { - "type" : "object", - "properties" : { - "environment" : { - "type" : "string" + "components": { + "schemas": { + "AppInfo": { + "type": "object", + "properties": { + "environment": { + "type": "string" }, - "name" : { - "type" : "string" + "name": { + "type": "string" }, - "version" : { - "type" : "string" + "version": { + "type": "string" } } }, - "CIIbansResource" : { - "required" : [ "ciFiscalCode", "ciName", "iban", "status", "validityDate" ], - "type" : "object", - "properties" : { - "ciFiscalCode" : { - "type" : "string", - "description" : "Creditor Institution tax code" + "CIIbansResource": { + "required": [ + "ciFiscalCode", + "ciName", + "iban", + "status", + "validityDate" + ], + "type": "object", + "properties": { + "ciFiscalCode": { + "type": "string", + "description": "Creditor Institution tax code" }, - "ciName" : { - "type" : "string", - "description" : "Creditor Institution name" + "ciName": { + "type": "string", + "description": "Creditor Institution name" }, - "description" : { - "type" : "string", - "description" : "description" + "description": { + "type": "string", + "description": "description" }, - "iban" : { - "type" : "string", - "description" : "iban" + "iban": { + "type": "string", + "description": "iban" }, - "label" : { - "type" : "string", - "description" : "label", - "example" : "CUP" + "label": { + "type": "string", + "description": "label", + "example": "CUP" }, - "status" : { - "type" : "string", - "description" : "status", - "example" : "ENABLED" + "status": { + "type": "string", + "description": "status", + "example": "ENABLED" }, - "validityDate" : { - "type" : "string", - "description" : "Activation Date", - "format" : "date-time" + "validityDate": { + "type": "string", + "description": "Activation Date", + "format": "date-time" } }, - "description" : "list of IBANs" + "description": "list of IBANs" }, - "CIIbansResponse" : { - "required" : [ "ibans", "pageInfo" ], - "type" : "object", - "properties" : { - "ibans" : { - "type" : "array", - "description" : "list of IBANs", - "items" : { - "$ref" : "#/components/schemas/CIIbansResource" + "CIIbansResponse": { + "required": [ + "ibans", + "pageInfo" + ], + "type": "object", + "properties": { + "ibans": { + "type": "array", + "description": "list of IBANs", + "items": { + "$ref": "#/components/schemas/CIIbansResource" } }, - "pageInfo" : { - "$ref" : "#/components/schemas/PageInfo" + "pageInfo": { + "$ref": "#/components/schemas/PageInfo" } } }, - "PageInfo" : { - "required" : [ "limit", "page", "totalElements", "totalPages" ], - "type" : "object", - "properties" : { - "limit" : { - "type" : "integer", - "description" : "number of elements per page", - "format" : "int32" + "PageInfo": { + "required": [ + "limit", + "page", + "totalElements", + "totalPages" + ], + "type": "object", + "properties": { + "limit": { + "type": "integer", + "description": "number of elements per page", + "format": "int32" }, - "page" : { - "type" : "integer", - "description" : "page number (0 is the first page)", - "format" : "int32" + "page": { + "type": "integer", + "description": "page number (0 is the first page)", + "format": "int32" }, - "totalElements" : { - "type" : "integer", - "description" : "total elements of elements", - "format" : "int64" + "totalElements": { + "type": "integer", + "description": "total elements of elements", + "format": "int64" }, - "totalPages" : { - "type" : "integer", - "description" : "total number of pages", - "format" : "int64" + "totalPages": { + "type": "integer", + "description": "total number of pages", + "format": "int64" } }, - "description" : "information about pagination" + "description": "information about pagination" }, - "ProblemJson" : { - "type" : "object", - "properties" : { - "detail" : { - "type" : "string", - "description" : "A human readable explanation specific to this occurrence of the problem.", - "example" : "There was an error processing the request" + "ProblemJson": { + "type": "object", + "properties": { + "detail": { + "type": "string", + "description": "A human readable explanation specific to this occurrence of the problem.", + "example": "There was an error processing the request" }, - "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 }, - "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" + "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" } } } }, - "securitySchemes" : { - "ApiKey" : { - "description" : "The Azure Subscription Key to access this API.", - "in" : "header", - "name" : "Ocp-Apim-Subscription-Key", - "type" : "apiKey" + "securitySchemes": { + "ApiKey": { + "description": "The Azure Subscription Key to access this API.", + "in": "header", + "name": "Ocp-Apim-Subscription-Key", + "type": "apiKey" } } } -} \ No newline at end of file +} diff --git a/openapi/openapi_backoffice_helpdesk.json b/openapi/openapi_backoffice_helpdesk.json index 11c5ddc..f24978a 100644 --- a/openapi/openapi_backoffice_helpdesk.json +++ b/openapi/openapi_backoffice_helpdesk.json @@ -1,266 +1,295 @@ { - "openapi" : "3.0.1", - "info" : { - "description" : "Microservice to expose REST API to contact PagoPA Backoffice", - "termsOfService" : "https://www.pagopa.gov.it/", - "title" : "Backoffice External - Backoffice Helpdesk", - "version" : "1.1.2" + "openapi": "3.0.1", + "info": { + "description": "Microservice to expose REST API to contact PagoPA Backoffice", + "termsOfService": "https://www.pagopa.gov.it/", + "title": "Backoffice External - Backoffice Helpdesk", + "version": "1.1.3" }, - "servers" : [ { - "url" : "http://localhost:8080" - }, { - "url" : "https://api.platform.pagopa.it/backoffice/helpdesk/v1" - } ], - "paths" : { - "/info" : { - "get" : { - "description" : "Return OK if application is started", - "operationId" : "healthCheck", - "responses" : { - "200" : { - "content" : { - "*/*" : { - "schema" : { - "$ref" : "#/components/schemas/AppInfo" + "servers": [ + { + "url": "http://localhost:8080" + }, + { + "url": "https://api.platform.pagopa.it/backoffice/helpdesk/v1" + } + ], + "paths": { + "/info": { + "get": { + "description": "Return OK if application is started", + "operationId": "healthCheck", + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/AppInfo" } } }, - "description" : "OK", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "description": "OK", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } } }, - "security" : [ { - "ApiKey" : [ ] - } ], - "summary" : "health check", - "tags" : [ "Home" ] + "security": [ + { + "ApiKey": [] + } + ], + "summary": "health check", + "tags": [ + "Home" + ] }, - "parameters" : [ { - "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "in" : "header", - "name" : "X-Request-Id", - "schema" : { - "type" : "string" + "parameters": [ + { + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "in": "header", + "name": "X-Request-Id", + "schema": { + "type": "string" + } } - } ] + ] }, - "/operative_tables" : { - "get" : { - "description" : "Get All operative tables", - "operationId" : "getOperativeTables", - "parameters" : [ { - "description" : "Tax code", - "in" : "query", - "name" : "taxCode", - "required" : false, - "schema" : { - "type" : "string", - "default" : "" - } - }, { - "description" : "Business name", - "in" : "query", - "name" : "businessName", - "required" : false, - "schema" : { - "type" : "string", - "default" : "" + "/operative_tables": { + "get": { + "description": "Get All operative tables", + "operationId": "getOperativeTables", + "parameters": [ + { + "description": "Tax code", + "in": "query", + "name": "taxCode", + "required": false, + "schema": { + "type": "string", + "default": "" + } + }, + { + "description": "Business name", + "in": "query", + "name": "businessName", + "required": false, + "schema": { + "type": "string", + "default": "" + } } - } ], - "responses" : { - "200" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/OperativeTableResourceList" + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/OperativeTableResourceList" } } }, - "description" : "OK", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "description": "OK", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "400" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "400": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } } }, - "description" : "Bad Request", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "description": "Bad Request", + "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" + "401": { + "description": "Unauthorized", + "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" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "500": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } } }, - "description" : "Service unavailable", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "description": "Service unavailable", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } } }, - "security" : [ { - "ApiKey" : [ ] - } ], - "summary" : "getOperativeTables", - "tags" : [ "Operative Tables" ] + "security": [ + { + "ApiKey": [] + } + ], + "summary": "getOperativeTables", + "tags": [ + "Operative Tables" + ] }, - "parameters" : [ { - "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "in" : "header", - "name" : "X-Request-Id", - "schema" : { - "type" : "string" + "parameters": [ + { + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "in": "header", + "name": "X-Request-Id", + "schema": { + "type": "string" + } } - } ] + ] } }, - "components" : { - "schemas" : { - "AppInfo" : { - "type" : "object", - "properties" : { - "environment" : { - "type" : "string" + "components": { + "schemas": { + "AppInfo": { + "type": "object", + "properties": { + "environment": { + "type": "string" }, - "name" : { - "type" : "string" + "name": { + "type": "string" }, - "version" : { - "type" : "string" + "version": { + "type": "string" } } }, - "OperativeTable" : { - "required" : [ "createdBy", "email", "modifiedAt", "modifiedBy", "name", "referent", "taxCode", "telephone" ], - "type" : "object", - "properties" : { - "createdAt" : { - "type" : "string", - "format" : "date-time" + "OperativeTable": { + "required": [ + "createdBy", + "email", + "modifiedAt", + "modifiedBy", + "name", + "referent", + "taxCode", + "telephone" + ], + "type": "object", + "properties": { + "createdAt": { + "type": "string", + "format": "date-time" }, - "createdBy" : { - "type" : "string" + "createdBy": { + "type": "string" }, - "email" : { - "type" : "string" + "email": { + "type": "string" }, - "modifiedAt" : { - "type" : "string", - "format" : "date-time" + "modifiedAt": { + "type": "string", + "format": "date-time" }, - "modifiedBy" : { - "type" : "string" + "modifiedBy": { + "type": "string" }, - "name" : { - "type" : "string" + "name": { + "type": "string" }, - "referent" : { - "type" : "string" + "referent": { + "type": "string" }, - "taxCode" : { - "type" : "string" + "taxCode": { + "type": "string" }, - "telephone" : { - "type" : "string" + "telephone": { + "type": "string" } } }, - "OperativeTableResourceList" : { - "required" : [ "operativeTableList" ], - "type" : "object", - "properties" : { - "operativeTableList" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/OperativeTable" + "OperativeTableResourceList": { + "required": [ + "operativeTableList" + ], + "type": "object", + "properties": { + "operativeTableList": { + "type": "array", + "items": { + "$ref": "#/components/schemas/OperativeTable" } } } }, - "ProblemJson" : { - "type" : "object", - "properties" : { - "detail" : { - "type" : "string", - "description" : "A human readable explanation specific to this occurrence of the problem.", - "example" : "There was an error processing the request" + "ProblemJson": { + "type": "object", + "properties": { + "detail": { + "type": "string", + "description": "A human readable explanation specific to this occurrence of the problem.", + "example": "There was an error processing the request" }, - "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 }, - "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" + "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" } } } }, - "securitySchemes" : { - "ApiKey" : { - "description" : "The Azure Subscription Key to access this API.", - "in" : "header", - "name" : "Ocp-Apim-Subscription-Key", - "type" : "apiKey" + "securitySchemes": { + "ApiKey": { + "description": "The Azure Subscription Key to access this API.", + "in": "header", + "name": "Ocp-Apim-Subscription-Key", + "type": "apiKey" } } } -} \ No newline at end of file +} diff --git a/pom.xml b/pom.xml index 2eb7d3c..5e52a91 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ it.pagopa.selfcare.pagopa pagopa-backoffice-external - 1.1.2 + 1.1.3 Backoffice External Microservice to expose REST API to contact PagoPA Backoffice From 2b0fff7d18d8ece6c4840037e949fd2fff1abbac Mon Sep 17 00:00:00 2001 From: Alessio Cialini Date: Thu, 25 Jul 2024 09:34:59 +0200 Subject: [PATCH 3/8] [PPANTT-54] feat: Updated page counter formula --- .../selfcare/pagopa/service/impl/ExternalServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/it/pagopa/selfcare/pagopa/service/impl/ExternalServiceImpl.java b/src/main/java/it/pagopa/selfcare/pagopa/service/impl/ExternalServiceImpl.java index 5698c4c..6db2709 100644 --- a/src/main/java/it/pagopa/selfcare/pagopa/service/impl/ExternalServiceImpl.java +++ b/src/main/java/it/pagopa/selfcare/pagopa/service/impl/ExternalServiceImpl.java @@ -56,7 +56,7 @@ public BrokerInstitutionsResponse getBrokerInstitutions(String brokerCode, Integ } ).toList()) .pageInfo(PageInfoMapper.toPageInfo(page, limit, - brokerInstitutionsEntity.get().getTotal() / limit, + (int) Math.ceil((double) brokerInstitutionsEntity.get().getTotal() / limit), brokerInstitutionsEntity.get().getTotal())) .build(); } @@ -100,7 +100,7 @@ public CIIbansResponse getBrokerIbans(String brokerCode, Integer limit, Integer }).toList()) .pageInfo(PageInfoMapper.toPageInfo( page, limit, - brokerIbanAggregate.get().getTotal() / limit, + (int) Math.ceil((double) brokerIbanAggregate.get().getTotal() / limit), brokerIbanAggregate.get().getTotal())) .build(); } From aec08876cc8bd70dee2e11ebe4cfd51b658f570d Mon Sep 17 00:00:00 2001 From: pagopa-github-bot Date: Thu, 25 Jul 2024 07:56:56 +0000 Subject: [PATCH 4/8] Bump to version 1.1.4 [skip ci] --- helm/Chart.yaml | 4 ++-- helm/values-dev.yaml | 2 +- helm/values-prod.yaml | 2 +- helm/values-uat.yaml | 2 +- openapi/openapi.json | 2 +- openapi/openapi_backoffice_external_ec.json | 2 +- openapi/openapi_backoffice_external_psp.json | 2 +- openapi/openapi_backoffice_helpdesk.json | 2 +- pom.xml | 2 +- 9 files changed, 10 insertions(+), 10 deletions(-) diff --git a/helm/Chart.yaml b/helm/Chart.yaml index 729848b..c211985 100644 --- a/helm/Chart.yaml +++ b/helm/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: pagopa-afm-calculator description: Microservice that handles calculation for pagoPA Advanced Fees Management type: application -version: 0.30.0 -appVersion: 1.1.3 +version: 0.31.0 +appVersion: 1.1.4 dependencies: - name: microservice-chart version: 2.8.0 diff --git a/helm/values-dev.yaml b/helm/values-dev.yaml index e9412b2..3747f9d 100644 --- a/helm/values-dev.yaml +++ b/helm/values-dev.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "backoffice-external" image: repository: ghcr.io/pagopa/pagopa-backoffice-external - tag: "1.1.3" + tag: "1.1.4" pullPolicy: Always livenessProbe: httpGet: diff --git a/helm/values-prod.yaml b/helm/values-prod.yaml index ba0d25b..8d208c1 100644 --- a/helm/values-prod.yaml +++ b/helm/values-prod.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "backoffice-external" image: repository: ghcr.io/pagopa/pagopa-backoffice-external - tag: "1.1.3" + tag: "1.1.4" pullPolicy: Always livenessProbe: httpGet: diff --git a/helm/values-uat.yaml b/helm/values-uat.yaml index 3959e45..1355458 100644 --- a/helm/values-uat.yaml +++ b/helm/values-uat.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "backoffice-external" image: repository: ghcr.io/pagopa/pagopa-backoffice-external - tag: "1.1.3" + tag: "1.1.4" pullPolicy: Always livenessProbe: httpGet: diff --git a/openapi/openapi.json b/openapi/openapi.json index 53c3260..5efde50 100644 --- a/openapi/openapi.json +++ b/openapi/openapi.json @@ -4,7 +4,7 @@ "description": "Microservice to expose REST API to contact PagoPA Backoffice", "termsOfService": "https://www.pagopa.gov.it/", "title": "Backoffice External", - "version": "1.1.3" + "version": "1.1.4" }, "servers": [ { diff --git a/openapi/openapi_backoffice_external_ec.json b/openapi/openapi_backoffice_external_ec.json index 00ec243..3b2d1df 100644 --- a/openapi/openapi_backoffice_external_ec.json +++ b/openapi/openapi_backoffice_external_ec.json @@ -4,7 +4,7 @@ "description": "Microservice to expose REST API to contact PagoPA Backoffice", "termsOfService": "https://www.pagopa.gov.it/", "title": "Backoffice External - Backoffice External EC", - "version": "1.1.3" + "version": "1.1.4" }, "servers": [ { diff --git a/openapi/openapi_backoffice_external_psp.json b/openapi/openapi_backoffice_external_psp.json index 61ed964..7f82861 100644 --- a/openapi/openapi_backoffice_external_psp.json +++ b/openapi/openapi_backoffice_external_psp.json @@ -4,7 +4,7 @@ "description": "Microservice to expose REST API to contact PagoPA Backoffice", "termsOfService": "https://www.pagopa.gov.it/", "title": "Backoffice External - Backoffice External PSP", - "version": "1.1.3" + "version": "1.1.4" }, "servers": [ { diff --git a/openapi/openapi_backoffice_helpdesk.json b/openapi/openapi_backoffice_helpdesk.json index f24978a..de963a6 100644 --- a/openapi/openapi_backoffice_helpdesk.json +++ b/openapi/openapi_backoffice_helpdesk.json @@ -4,7 +4,7 @@ "description": "Microservice to expose REST API to contact PagoPA Backoffice", "termsOfService": "https://www.pagopa.gov.it/", "title": "Backoffice External - Backoffice Helpdesk", - "version": "1.1.3" + "version": "1.1.4" }, "servers": [ { diff --git a/pom.xml b/pom.xml index 5e52a91..724100b 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ it.pagopa.selfcare.pagopa pagopa-backoffice-external - 1.1.3 + 1.1.4 Backoffice External Microservice to expose REST API to contact PagoPA Backoffice From c457a147fd7d38685c8a867123ecd063a0e9207f Mon Sep 17 00:00:00 2001 From: pagopa-github-bot Date: Thu, 25 Jul 2024 09:05:02 +0000 Subject: [PATCH 5/8] Bump to version 1.2.0 [skip ci] --- helm/Chart.yaml | 4 ++-- helm/values-dev.yaml | 2 +- helm/values-prod.yaml | 2 +- helm/values-uat.yaml | 2 +- openapi/openapi.json | 2 +- openapi/openapi_backoffice_external_ec.json | 2 +- openapi/openapi_backoffice_external_psp.json | 2 +- openapi/openapi_backoffice_helpdesk.json | 2 +- pom.xml | 2 +- 9 files changed, 10 insertions(+), 10 deletions(-) diff --git a/helm/Chart.yaml b/helm/Chart.yaml index c211985..29daa7e 100644 --- a/helm/Chart.yaml +++ b/helm/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: pagopa-afm-calculator description: Microservice that handles calculation for pagoPA Advanced Fees Management type: application -version: 0.31.0 -appVersion: 1.1.4 +version: 0.32.0 +appVersion: 1.2.0 dependencies: - name: microservice-chart version: 2.8.0 diff --git a/helm/values-dev.yaml b/helm/values-dev.yaml index 3747f9d..57a8e21 100644 --- a/helm/values-dev.yaml +++ b/helm/values-dev.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "backoffice-external" image: repository: ghcr.io/pagopa/pagopa-backoffice-external - tag: "1.1.4" + tag: "1.2.0" pullPolicy: Always livenessProbe: httpGet: diff --git a/helm/values-prod.yaml b/helm/values-prod.yaml index 8d208c1..9f41bc0 100644 --- a/helm/values-prod.yaml +++ b/helm/values-prod.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "backoffice-external" image: repository: ghcr.io/pagopa/pagopa-backoffice-external - tag: "1.1.4" + tag: "1.2.0" pullPolicy: Always livenessProbe: httpGet: diff --git a/helm/values-uat.yaml b/helm/values-uat.yaml index 1355458..b48767b 100644 --- a/helm/values-uat.yaml +++ b/helm/values-uat.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "backoffice-external" image: repository: ghcr.io/pagopa/pagopa-backoffice-external - tag: "1.1.4" + tag: "1.2.0" pullPolicy: Always livenessProbe: httpGet: diff --git a/openapi/openapi.json b/openapi/openapi.json index 5efde50..9205f2a 100644 --- a/openapi/openapi.json +++ b/openapi/openapi.json @@ -4,7 +4,7 @@ "description": "Microservice to expose REST API to contact PagoPA Backoffice", "termsOfService": "https://www.pagopa.gov.it/", "title": "Backoffice External", - "version": "1.1.4" + "version": "1.2.0" }, "servers": [ { diff --git a/openapi/openapi_backoffice_external_ec.json b/openapi/openapi_backoffice_external_ec.json index 3b2d1df..810cf24 100644 --- a/openapi/openapi_backoffice_external_ec.json +++ b/openapi/openapi_backoffice_external_ec.json @@ -4,7 +4,7 @@ "description": "Microservice to expose REST API to contact PagoPA Backoffice", "termsOfService": "https://www.pagopa.gov.it/", "title": "Backoffice External - Backoffice External EC", - "version": "1.1.4" + "version": "1.2.0" }, "servers": [ { diff --git a/openapi/openapi_backoffice_external_psp.json b/openapi/openapi_backoffice_external_psp.json index 7f82861..729d007 100644 --- a/openapi/openapi_backoffice_external_psp.json +++ b/openapi/openapi_backoffice_external_psp.json @@ -4,7 +4,7 @@ "description": "Microservice to expose REST API to contact PagoPA Backoffice", "termsOfService": "https://www.pagopa.gov.it/", "title": "Backoffice External - Backoffice External PSP", - "version": "1.1.4" + "version": "1.2.0" }, "servers": [ { diff --git a/openapi/openapi_backoffice_helpdesk.json b/openapi/openapi_backoffice_helpdesk.json index de963a6..48b23ec 100644 --- a/openapi/openapi_backoffice_helpdesk.json +++ b/openapi/openapi_backoffice_helpdesk.json @@ -4,7 +4,7 @@ "description": "Microservice to expose REST API to contact PagoPA Backoffice", "termsOfService": "https://www.pagopa.gov.it/", "title": "Backoffice External - Backoffice Helpdesk", - "version": "1.1.4" + "version": "1.2.0" }, "servers": [ { diff --git a/pom.xml b/pom.xml index 724100b..b258bdd 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ it.pagopa.selfcare.pagopa pagopa-backoffice-external - 1.1.4 + 1.2.0 Backoffice External Microservice to expose REST API to contact PagoPA Backoffice From 481bd05751edfe359dd3f5755e72615cfb1ad3d0 Mon Sep 17 00:00:00 2001 From: Alessio Cialini Date: Thu, 25 Jul 2024 11:25:57 +0200 Subject: [PATCH 6/8] [PPANTT-54] feat: Updated hotfix-query --- .../pagopa/repository/BrokerInstitutionsRepository.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/it/pagopa/selfcare/pagopa/repository/BrokerInstitutionsRepository.java b/src/main/java/it/pagopa/selfcare/pagopa/repository/BrokerInstitutionsRepository.java index 2cec75f..1bfc4c8 100644 --- a/src/main/java/it/pagopa/selfcare/pagopa/repository/BrokerInstitutionsRepository.java +++ b/src/main/java/it/pagopa/selfcare/pagopa/repository/BrokerInstitutionsRepository.java @@ -14,7 +14,7 @@ public interface BrokerInstitutionsRepository extends MongoRepository findPagedInstitutionsByBrokerCode(String brokerCode, Integer sliceStart, Integer size); From 714d4ec1ccb13b0adddaaf05eb0f44f5e97f3c4b Mon Sep 17 00:00:00 2001 From: pagopa-github-bot Date: Thu, 25 Jul 2024 09:31:55 +0000 Subject: [PATCH 7/8] Bump to version 1.2.1 [skip ci] --- helm/Chart.yaml | 4 ++-- helm/values-dev.yaml | 2 +- helm/values-prod.yaml | 2 +- helm/values-uat.yaml | 2 +- openapi/openapi.json | 2 +- openapi/openapi_backoffice_external_ec.json | 2 +- openapi/openapi_backoffice_external_psp.json | 2 +- openapi/openapi_backoffice_helpdesk.json | 2 +- pom.xml | 2 +- 9 files changed, 10 insertions(+), 10 deletions(-) diff --git a/helm/Chart.yaml b/helm/Chart.yaml index 29daa7e..8dbe179 100644 --- a/helm/Chart.yaml +++ b/helm/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: pagopa-afm-calculator description: Microservice that handles calculation for pagoPA Advanced Fees Management type: application -version: 0.32.0 -appVersion: 1.2.0 +version: 0.33.0 +appVersion: 1.2.1 dependencies: - name: microservice-chart version: 2.8.0 diff --git a/helm/values-dev.yaml b/helm/values-dev.yaml index 57a8e21..588cb33 100644 --- a/helm/values-dev.yaml +++ b/helm/values-dev.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "backoffice-external" image: repository: ghcr.io/pagopa/pagopa-backoffice-external - tag: "1.2.0" + tag: "1.2.1" pullPolicy: Always livenessProbe: httpGet: diff --git a/helm/values-prod.yaml b/helm/values-prod.yaml index 9f41bc0..d9095c7 100644 --- a/helm/values-prod.yaml +++ b/helm/values-prod.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "backoffice-external" image: repository: ghcr.io/pagopa/pagopa-backoffice-external - tag: "1.2.0" + tag: "1.2.1" pullPolicy: Always livenessProbe: httpGet: diff --git a/helm/values-uat.yaml b/helm/values-uat.yaml index b48767b..0f04b2f 100644 --- a/helm/values-uat.yaml +++ b/helm/values-uat.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "backoffice-external" image: repository: ghcr.io/pagopa/pagopa-backoffice-external - tag: "1.2.0" + tag: "1.2.1" pullPolicy: Always livenessProbe: httpGet: diff --git a/openapi/openapi.json b/openapi/openapi.json index 9205f2a..39b557e 100644 --- a/openapi/openapi.json +++ b/openapi/openapi.json @@ -4,7 +4,7 @@ "description": "Microservice to expose REST API to contact PagoPA Backoffice", "termsOfService": "https://www.pagopa.gov.it/", "title": "Backoffice External", - "version": "1.2.0" + "version": "1.2.1" }, "servers": [ { diff --git a/openapi/openapi_backoffice_external_ec.json b/openapi/openapi_backoffice_external_ec.json index 810cf24..b5a86e6 100644 --- a/openapi/openapi_backoffice_external_ec.json +++ b/openapi/openapi_backoffice_external_ec.json @@ -4,7 +4,7 @@ "description": "Microservice to expose REST API to contact PagoPA Backoffice", "termsOfService": "https://www.pagopa.gov.it/", "title": "Backoffice External - Backoffice External EC", - "version": "1.2.0" + "version": "1.2.1" }, "servers": [ { diff --git a/openapi/openapi_backoffice_external_psp.json b/openapi/openapi_backoffice_external_psp.json index 729d007..94aa528 100644 --- a/openapi/openapi_backoffice_external_psp.json +++ b/openapi/openapi_backoffice_external_psp.json @@ -4,7 +4,7 @@ "description": "Microservice to expose REST API to contact PagoPA Backoffice", "termsOfService": "https://www.pagopa.gov.it/", "title": "Backoffice External - Backoffice External PSP", - "version": "1.2.0" + "version": "1.2.1" }, "servers": [ { diff --git a/openapi/openapi_backoffice_helpdesk.json b/openapi/openapi_backoffice_helpdesk.json index 48b23ec..d07b73a 100644 --- a/openapi/openapi_backoffice_helpdesk.json +++ b/openapi/openapi_backoffice_helpdesk.json @@ -4,7 +4,7 @@ "description": "Microservice to expose REST API to contact PagoPA Backoffice", "termsOfService": "https://www.pagopa.gov.it/", "title": "Backoffice External - Backoffice Helpdesk", - "version": "1.2.0" + "version": "1.2.1" }, "servers": [ { diff --git a/pom.xml b/pom.xml index b258bdd..90a74b3 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ it.pagopa.selfcare.pagopa pagopa-backoffice-external - 1.2.0 + 1.2.1 Backoffice External Microservice to expose REST API to contact PagoPA Backoffice From aab0b1e96e0589aa2aca16e338ad309b3c63f5df Mon Sep 17 00:00:00 2001 From: pagopa-github-bot Date: Thu, 25 Jul 2024 09:32:57 +0000 Subject: [PATCH 8/8] Bump to version 1.3.0 [skip ci] --- helm/Chart.yaml | 4 ++-- helm/values-dev.yaml | 2 +- helm/values-prod.yaml | 2 +- helm/values-uat.yaml | 2 +- openapi/openapi.json | 2 +- openapi/openapi_backoffice_external_ec.json | 2 +- openapi/openapi_backoffice_external_psp.json | 2 +- openapi/openapi_backoffice_helpdesk.json | 2 +- pom.xml | 2 +- 9 files changed, 10 insertions(+), 10 deletions(-) diff --git a/helm/Chart.yaml b/helm/Chart.yaml index 8dbe179..8fb5024 100644 --- a/helm/Chart.yaml +++ b/helm/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: pagopa-afm-calculator description: Microservice that handles calculation for pagoPA Advanced Fees Management type: application -version: 0.33.0 -appVersion: 1.2.1 +version: 0.34.0 +appVersion: 1.3.0 dependencies: - name: microservice-chart version: 2.8.0 diff --git a/helm/values-dev.yaml b/helm/values-dev.yaml index 588cb33..c16f2e7 100644 --- a/helm/values-dev.yaml +++ b/helm/values-dev.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "backoffice-external" image: repository: ghcr.io/pagopa/pagopa-backoffice-external - tag: "1.2.1" + tag: "1.3.0" pullPolicy: Always livenessProbe: httpGet: diff --git a/helm/values-prod.yaml b/helm/values-prod.yaml index d9095c7..51a58f1 100644 --- a/helm/values-prod.yaml +++ b/helm/values-prod.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "backoffice-external" image: repository: ghcr.io/pagopa/pagopa-backoffice-external - tag: "1.2.1" + tag: "1.3.0" pullPolicy: Always livenessProbe: httpGet: diff --git a/helm/values-uat.yaml b/helm/values-uat.yaml index 0f04b2f..b04d7a3 100644 --- a/helm/values-uat.yaml +++ b/helm/values-uat.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "backoffice-external" image: repository: ghcr.io/pagopa/pagopa-backoffice-external - tag: "1.2.1" + tag: "1.3.0" pullPolicy: Always livenessProbe: httpGet: diff --git a/openapi/openapi.json b/openapi/openapi.json index 39b557e..45febed 100644 --- a/openapi/openapi.json +++ b/openapi/openapi.json @@ -4,7 +4,7 @@ "description": "Microservice to expose REST API to contact PagoPA Backoffice", "termsOfService": "https://www.pagopa.gov.it/", "title": "Backoffice External", - "version": "1.2.1" + "version": "1.3.0" }, "servers": [ { diff --git a/openapi/openapi_backoffice_external_ec.json b/openapi/openapi_backoffice_external_ec.json index b5a86e6..96458f4 100644 --- a/openapi/openapi_backoffice_external_ec.json +++ b/openapi/openapi_backoffice_external_ec.json @@ -4,7 +4,7 @@ "description": "Microservice to expose REST API to contact PagoPA Backoffice", "termsOfService": "https://www.pagopa.gov.it/", "title": "Backoffice External - Backoffice External EC", - "version": "1.2.1" + "version": "1.3.0" }, "servers": [ { diff --git a/openapi/openapi_backoffice_external_psp.json b/openapi/openapi_backoffice_external_psp.json index 94aa528..f331d60 100644 --- a/openapi/openapi_backoffice_external_psp.json +++ b/openapi/openapi_backoffice_external_psp.json @@ -4,7 +4,7 @@ "description": "Microservice to expose REST API to contact PagoPA Backoffice", "termsOfService": "https://www.pagopa.gov.it/", "title": "Backoffice External - Backoffice External PSP", - "version": "1.2.1" + "version": "1.3.0" }, "servers": [ { diff --git a/openapi/openapi_backoffice_helpdesk.json b/openapi/openapi_backoffice_helpdesk.json index d07b73a..e42dc48 100644 --- a/openapi/openapi_backoffice_helpdesk.json +++ b/openapi/openapi_backoffice_helpdesk.json @@ -4,7 +4,7 @@ "description": "Microservice to expose REST API to contact PagoPA Backoffice", "termsOfService": "https://www.pagopa.gov.it/", "title": "Backoffice External - Backoffice Helpdesk", - "version": "1.2.1" + "version": "1.3.0" }, "servers": [ { diff --git a/pom.xml b/pom.xml index 90a74b3..aa43064 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ it.pagopa.selfcare.pagopa pagopa-backoffice-external - 1.2.1 + 1.3.0 Backoffice External Microservice to expose REST API to contact PagoPA Backoffice