From 61fdeab6bef55de500f57404db7e4d562b6785d3 Mon Sep 17 00:00:00 2001 From: Jacopo Date: Mon, 18 Dec 2023 17:43:32 +0100 Subject: [PATCH 01/20] post --- .../controller/IbanController.java | 169 +++++++++--------- .../service/IbansService.java | 2 +- src/main/resources/application.properties | 3 + 3 files changed, 93 insertions(+), 81 deletions(-) diff --git a/src/main/java/it/gov/pagopa/apiconfig/selfcareintegration/controller/IbanController.java b/src/main/java/it/gov/pagopa/apiconfig/selfcareintegration/controller/IbanController.java index 1868841a..5e3bb240 100644 --- a/src/main/java/it/gov/pagopa/apiconfig/selfcareintegration/controller/IbanController.java +++ b/src/main/java/it/gov/pagopa/apiconfig/selfcareintegration/controller/IbanController.java @@ -11,20 +11,17 @@ import it.gov.pagopa.apiconfig.selfcareintegration.model.ProblemJson; import it.gov.pagopa.apiconfig.selfcareintegration.model.iban.IbansList; import it.gov.pagopa.apiconfig.selfcareintegration.service.IbansService; +import java.util.List; +import javax.validation.Valid; +import javax.validation.constraints.*; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.cache.annotation.Cacheable; import org.springframework.data.domain.PageRequest; import org.springframework.data.domain.Sort; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.RestController; - -import javax.validation.Valid; -import javax.validation.constraints.*; -import java.util.List; +import org.springframework.web.bind.annotation.*; @RestController() @RequestMapping(path = "/ibans") @@ -32,78 +29,90 @@ @Validated public class IbanController { - @Autowired - private IbansService ibansService; + @Autowired private IbansService ibansService; - /** - * GET / : Get all ibans - * - * @return OK. (status code 200) or Not Found (status code 404) or Service unavailable (status - * code 500) - */ - @Operation( - summary = "Get the paginated list of all IBANs, filtering by creditor institution", - security = { - @SecurityRequirement(name = "ApiKey"), - @SecurityRequirement(name = "Authorization") - }, - tags = { - "Ibans", - }) - @ApiResponses( - value = { - @ApiResponse( - responseCode = "200", - description = "OK", - content = - @Content( - mediaType = MediaType.APPLICATION_JSON_VALUE, - schema = @Schema(implementation = IbansList.class))), - @ApiResponse( - responseCode = "401", - description = "Unauthorized", - content = @Content(schema = @Schema())), - @ApiResponse( - responseCode = "403", - description = "Forbidden", - content = @Content(schema = @Schema())), - @ApiResponse( - responseCode = "404", - description = "Not Found", - content = @Content(schema = @Schema(implementation = ProblemJson.class))), - @ApiResponse( - responseCode = "429", - description = "Too many requests", - content = @Content(schema = @Schema())), - @ApiResponse( - responseCode = "500", - description = "Service unavailable", - content = - @Content( - mediaType = MediaType.APPLICATION_JSON_VALUE, - schema = @Schema(implementation = ProblemJson.class))) - }) - @GetMapping( - value = "", - produces = {MediaType.APPLICATION_JSON_VALUE}) - public ResponseEntity getIbans( - @Parameter(description = "The identifiers of the creditor institutions.") @RequestParam(name = "ci_list") - @NotEmpty @Size(min = 1, max = 100) List creditorInstitutions, - @Valid - @Parameter( - description = "The number of elements to be included in the page.", - required = true) - @RequestParam(required = false, defaultValue = "10") - @Positive - @Max(999) - Integer limit, - @Valid - @Parameter(description = "The index of the page, starting from 0.", required = true) - @Min(0) - @RequestParam(required = false, defaultValue = "0") - Integer page) { - return ResponseEntity.ok( - ibansService.getIbans( - creditorInstitutions, PageRequest.of(page, limit, Sort.by(Sort.Direction.ASC, "fkPa", "objId")))); + /** + * GET / : Get all ibans + * + * @return OK. (status code 200) or Not Found (status code 404) or Service unavailable (status + * code 500) + */ + @Operation( + summary = "Get the paginated list of all IBANs, filtering by creditor institution", + security = { + @SecurityRequirement(name = "ApiKey"), + @SecurityRequirement(name = "Authorization") + }, + tags = { + "Ibans", + } + ) + @ApiResponses( + value = { + @ApiResponse( + responseCode = "200", + description = "OK", + content = + @Content( + mediaType = MediaType.APPLICATION_JSON_VALUE, + schema = @Schema(implementation = IbansList.class) + ) + ), + @ApiResponse( + responseCode = "401", + description = "Unauthorized", + content = @Content(schema = @Schema()) + ), + @ApiResponse( + responseCode = "403", + description = "Forbidden", + content = @Content(schema = @Schema()) + ), + @ApiResponse( + responseCode = "404", + description = "Not Found", + content = @Content(schema = @Schema(implementation = ProblemJson.class)) + ), + @ApiResponse( + responseCode = "429", + description = "Too many requests", + content = @Content(schema = @Schema()) + ), + @ApiResponse( + responseCode = "500", + description = "Service unavailable", + content = + @Content( + mediaType = MediaType.APPLICATION_JSON_VALUE, + schema = @Schema(implementation = ProblemJson.class) + ) + ) } + ) + @PostMapping( + value = "", + produces = {MediaType.APPLICATION_JSON_VALUE} + ) + @Cacheable(value = "getIbans") + public ResponseEntity getIbans( + @RequestBody @NotEmpty List creditorInstitutions, + @Valid + @Parameter( + description = "The number of elements to be included in the page.", + required = true + ) + @RequestParam(required = false, defaultValue = "10") + @Positive + @Max(999) + Integer limit, + @Valid + @Parameter(description = "The index of the page, starting from 0.", required = true) + @Min(0) + @RequestParam(required = false, defaultValue = "0") + Integer page) { + return ResponseEntity.ok( + ibansService.getIbans( + creditorInstitutions, + PageRequest.of(page, limit, Sort.by(Sort.Direction.ASC, "fkPa", "objId")))); + } } diff --git a/src/main/java/it/gov/pagopa/apiconfig/selfcareintegration/service/IbansService.java b/src/main/java/it/gov/pagopa/apiconfig/selfcareintegration/service/IbansService.java index 46d83aad..d204adb5 100644 --- a/src/main/java/it/gov/pagopa/apiconfig/selfcareintegration/service/IbansService.java +++ b/src/main/java/it/gov/pagopa/apiconfig/selfcareintegration/service/IbansService.java @@ -30,7 +30,7 @@ public class IbansService { @Autowired private ModelMapper modelMapper; - public IbansList getIbans(@NotEmpty @Size(min = 1, max = 100) List creditorInstitutions, @NotNull Pageable page) { + public IbansList getIbans(@NotEmpty List creditorInstitutions, @NotNull Pageable page) { Page queryResult = extendedIbanMasterRepository.findAllByPa_idDominioIn(creditorInstitutions, page); return IbansList.builder() .pageInfo(Utility.buildPageInfo(queryResult)) diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 10bc7ef1..c0a426b8 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -52,3 +52,6 @@ spring.datasource.hikari.connection-test-query=${HEALTHCHECK_QUERY:select 1 from # Applicative parameters sc-int.application_code.max_value: 48 sc-int.segregation_code.max_value: 48 + +spring.cache.type=caffeine +spring.cache.caffeine.spec=maximumSize=${CACHE_SIZE:1000}, expireAfterAccess=${CACHE_EXPIRATION_TIME:10m} From 9299ce2da75b51c0690ecb46070cee803db7cdf7 Mon Sep 17 00:00:00 2001 From: pagopa-github-bot Date: Mon, 18 Dec 2023 16:48:26 +0000 Subject: [PATCH 02/20] Bump to version 1.8.6-1-export-iban [skip ci] --- helm/Chart.yaml | 4 ++-- helm/values-dev.yaml | 4 ++-- helm/values-prod.yaml | 4 ++-- helm/values-uat.yaml | 4 ++-- openapi/openapi.json | 2 +- pom.xml | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/helm/Chart.yaml b/helm/Chart.yaml index 72e6ed54..5be794db 100644 --- a/helm/Chart.yaml +++ b/helm/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: pagopa-api-config-selfcare-integration description: Microservice that manages requests from selfcare type: application -version: 1.44.0 -appVersion: 1.8.6 +version: 1.44.1 +appVersion: 1.8.6-1-export-iban dependencies: - name: microservice-chart version: 2.8.0 diff --git a/helm/values-dev.yaml b/helm/values-dev.yaml index 84869a01..e531bb5c 100644 --- a/helm/values-dev.yaml +++ b/helm/values-dev.yaml @@ -119,7 +119,7 @@ microservice-chart: values: - user canaryDelivery: - create: false + create: true ingress: canary: type: header @@ -132,7 +132,7 @@ microservice-chart: create: true image: repository: ghcr.io/pagopa/pagopa-api-config-selfcare-integration - tag: 1.3.6-3-chart + tag: 1.8.6-1-export-iban pullPolicy: Always envConfig: {} envSecret: {} diff --git a/helm/values-prod.yaml b/helm/values-prod.yaml index 8edc0269..c6aec91b 100644 --- a/helm/values-prod.yaml +++ b/helm/values-prod.yaml @@ -128,7 +128,7 @@ microservice-chart: namespaces: ["apiconfig"] topologyKey: topology.kubernetes.io/zone canaryDelivery: - create: false + create: true ingress: canary: type: header @@ -141,7 +141,7 @@ microservice-chart: create: true image: repository: ghcr.io/pagopa/pagopa-api-config-selfcare-integration - tag: 1.3.6-3-chart + tag: 1.8.6-1-export-iban pullPolicy: Always envConfig: {} envSecret: {} diff --git a/helm/values-uat.yaml b/helm/values-uat.yaml index b0fda8ff..084be8a8 100644 --- a/helm/values-uat.yaml +++ b/helm/values-uat.yaml @@ -119,7 +119,7 @@ microservice-chart: values: - user canaryDelivery: - create: false + create: true ingress: canary: type: header @@ -132,7 +132,7 @@ microservice-chart: create: true image: repository: ghcr.io/pagopa/pagopa-api-config-selfcare-integration - tag: 1.3.6-3-chart + tag: 1.8.6-1-export-iban pullPolicy: Always envConfig: {} envSecret: {} diff --git a/openapi/openapi.json b/openapi/openapi.json index 2875a6a4..137972cc 100644 --- a/openapi/openapi.json +++ b/openapi/openapi.json @@ -4,7 +4,7 @@ "title": "@project.name@", "description": "@project.description@", "termsOfService": "https://www.pagopa.gov.it/", - "version": "1.8.6" + "version": "1.8.6-1-export-iban" }, "servers": [ { diff --git a/pom.xml b/pom.xml index c55338f4..78737c3e 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ it.gov.pagopa.api-config selfcareintegration - 1.8.6 + 1.8.6-1-export-iban API-Config - SelfCare Integration Spring application exposes APIs for SelfCare From 8eff41eb19bf4143c3f72f09d7f95a24a1fb2ca7 Mon Sep 17 00:00:00 2001 From: pagopa-github-bot Date: Mon, 18 Dec 2023 17:06:41 +0000 Subject: [PATCH 03/20] Bump to version 1.8.6-2-export-iban [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 +- pom.xml | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/helm/Chart.yaml b/helm/Chart.yaml index 5be794db..18781db9 100644 --- a/helm/Chart.yaml +++ b/helm/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: pagopa-api-config-selfcare-integration description: Microservice that manages requests from selfcare type: application -version: 1.44.1 -appVersion: 1.8.6-1-export-iban +version: 1.44.2 +appVersion: 1.8.6-2-export-iban dependencies: - name: microservice-chart version: 2.8.0 diff --git a/helm/values-dev.yaml b/helm/values-dev.yaml index e531bb5c..00092855 100644 --- a/helm/values-dev.yaml +++ b/helm/values-dev.yaml @@ -132,7 +132,7 @@ microservice-chart: create: true image: repository: ghcr.io/pagopa/pagopa-api-config-selfcare-integration - tag: 1.8.6-1-export-iban + tag: 1.8.6-2-export-iban pullPolicy: Always envConfig: {} envSecret: {} diff --git a/helm/values-prod.yaml b/helm/values-prod.yaml index c6aec91b..0b3b4aa5 100644 --- a/helm/values-prod.yaml +++ b/helm/values-prod.yaml @@ -141,7 +141,7 @@ microservice-chart: create: true image: repository: ghcr.io/pagopa/pagopa-api-config-selfcare-integration - tag: 1.8.6-1-export-iban + tag: 1.8.6-2-export-iban pullPolicy: Always envConfig: {} envSecret: {} diff --git a/helm/values-uat.yaml b/helm/values-uat.yaml index 084be8a8..802760cd 100644 --- a/helm/values-uat.yaml +++ b/helm/values-uat.yaml @@ -132,7 +132,7 @@ microservice-chart: create: true image: repository: ghcr.io/pagopa/pagopa-api-config-selfcare-integration - tag: 1.8.6-1-export-iban + tag: 1.8.6-2-export-iban pullPolicy: Always envConfig: {} envSecret: {} diff --git a/openapi/openapi.json b/openapi/openapi.json index 137972cc..a402db8f 100644 --- a/openapi/openapi.json +++ b/openapi/openapi.json @@ -4,7 +4,7 @@ "title": "@project.name@", "description": "@project.description@", "termsOfService": "https://www.pagopa.gov.it/", - "version": "1.8.6-1-export-iban" + "version": "1.8.6-2-export-iban" }, "servers": [ { diff --git a/pom.xml b/pom.xml index 78737c3e..91265fa1 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ it.gov.pagopa.api-config selfcareintegration - 1.8.6-1-export-iban + 1.8.6-2-export-iban API-Config - SelfCare Integration Spring application exposes APIs for SelfCare From c597948cff399eb0ae26f743adf171dbc0680a6f Mon Sep 17 00:00:00 2001 From: pagopa-github-bot Date: Mon, 18 Dec 2023 17:09:17 +0000 Subject: [PATCH 04/20] Bump to version 1.8.6-3-export-iban [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 +- pom.xml | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/helm/Chart.yaml b/helm/Chart.yaml index 18781db9..0c009157 100644 --- a/helm/Chart.yaml +++ b/helm/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: pagopa-api-config-selfcare-integration description: Microservice that manages requests from selfcare type: application -version: 1.44.2 -appVersion: 1.8.6-2-export-iban +version: 1.44.3 +appVersion: 1.8.6-3-export-iban dependencies: - name: microservice-chart version: 2.8.0 diff --git a/helm/values-dev.yaml b/helm/values-dev.yaml index 00092855..ae044276 100644 --- a/helm/values-dev.yaml +++ b/helm/values-dev.yaml @@ -132,7 +132,7 @@ microservice-chart: create: true image: repository: ghcr.io/pagopa/pagopa-api-config-selfcare-integration - tag: 1.8.6-2-export-iban + tag: 1.8.6-3-export-iban pullPolicy: Always envConfig: {} envSecret: {} diff --git a/helm/values-prod.yaml b/helm/values-prod.yaml index 0b3b4aa5..5b3d6c0c 100644 --- a/helm/values-prod.yaml +++ b/helm/values-prod.yaml @@ -141,7 +141,7 @@ microservice-chart: create: true image: repository: ghcr.io/pagopa/pagopa-api-config-selfcare-integration - tag: 1.8.6-2-export-iban + tag: 1.8.6-3-export-iban pullPolicy: Always envConfig: {} envSecret: {} diff --git a/helm/values-uat.yaml b/helm/values-uat.yaml index 802760cd..75abc615 100644 --- a/helm/values-uat.yaml +++ b/helm/values-uat.yaml @@ -132,7 +132,7 @@ microservice-chart: create: true image: repository: ghcr.io/pagopa/pagopa-api-config-selfcare-integration - tag: 1.8.6-2-export-iban + tag: 1.8.6-3-export-iban pullPolicy: Always envConfig: {} envSecret: {} diff --git a/openapi/openapi.json b/openapi/openapi.json index a402db8f..b7155077 100644 --- a/openapi/openapi.json +++ b/openapi/openapi.json @@ -4,7 +4,7 @@ "title": "@project.name@", "description": "@project.description@", "termsOfService": "https://www.pagopa.gov.it/", - "version": "1.8.6-2-export-iban" + "version": "1.8.6-3-export-iban" }, "servers": [ { diff --git a/pom.xml b/pom.xml index 91265fa1..7bd3154c 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ it.gov.pagopa.api-config selfcareintegration - 1.8.6-2-export-iban + 1.8.6-3-export-iban API-Config - SelfCare Integration Spring application exposes APIs for SelfCare From d17984d8c610dd2415a8584ef85fda820ebf6a8c Mon Sep 17 00:00:00 2001 From: pagopa-github-bot Date: Mon, 18 Dec 2023 17:43:07 +0000 Subject: [PATCH 05/20] Bump to version 1.8.6-4-export-iban [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 +- pom.xml | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/helm/Chart.yaml b/helm/Chart.yaml index 0c009157..87f8cc37 100644 --- a/helm/Chart.yaml +++ b/helm/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: pagopa-api-config-selfcare-integration description: Microservice that manages requests from selfcare type: application -version: 1.44.3 -appVersion: 1.8.6-3-export-iban +version: 1.44.4 +appVersion: 1.8.6-4-export-iban dependencies: - name: microservice-chart version: 2.8.0 diff --git a/helm/values-dev.yaml b/helm/values-dev.yaml index ae044276..8f8b898d 100644 --- a/helm/values-dev.yaml +++ b/helm/values-dev.yaml @@ -132,7 +132,7 @@ microservice-chart: create: true image: repository: ghcr.io/pagopa/pagopa-api-config-selfcare-integration - tag: 1.8.6-3-export-iban + tag: 1.8.6-4-export-iban pullPolicy: Always envConfig: {} envSecret: {} diff --git a/helm/values-prod.yaml b/helm/values-prod.yaml index 5b3d6c0c..db2bf479 100644 --- a/helm/values-prod.yaml +++ b/helm/values-prod.yaml @@ -141,7 +141,7 @@ microservice-chart: create: true image: repository: ghcr.io/pagopa/pagopa-api-config-selfcare-integration - tag: 1.8.6-3-export-iban + tag: 1.8.6-4-export-iban pullPolicy: Always envConfig: {} envSecret: {} diff --git a/helm/values-uat.yaml b/helm/values-uat.yaml index 75abc615..8929c054 100644 --- a/helm/values-uat.yaml +++ b/helm/values-uat.yaml @@ -132,7 +132,7 @@ microservice-chart: create: true image: repository: ghcr.io/pagopa/pagopa-api-config-selfcare-integration - tag: 1.8.6-3-export-iban + tag: 1.8.6-4-export-iban pullPolicy: Always envConfig: {} envSecret: {} diff --git a/openapi/openapi.json b/openapi/openapi.json index b7155077..1c0132ef 100644 --- a/openapi/openapi.json +++ b/openapi/openapi.json @@ -4,7 +4,7 @@ "title": "@project.name@", "description": "@project.description@", "termsOfService": "https://www.pagopa.gov.it/", - "version": "1.8.6-3-export-iban" + "version": "1.8.6-4-export-iban" }, "servers": [ { diff --git a/pom.xml b/pom.xml index 7bd3154c..cb5a2dac 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ it.gov.pagopa.api-config selfcareintegration - 1.8.6-3-export-iban + 1.8.6-4-export-iban API-Config - SelfCare Integration Spring application exposes APIs for SelfCare From f13d2a2ddbc61210fad397d15170d7a34c97d97e Mon Sep 17 00:00:00 2001 From: Jacopo Date: Mon, 18 Dec 2023 18:53:45 +0100 Subject: [PATCH 06/20] post --- .github/workflows/deploy_with_github_runner.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/deploy_with_github_runner.yml b/.github/workflows/deploy_with_github_runner.yml index 1a8ef68d..571cfffb 100644 --- a/.github/workflows/deploy_with_github_runner.yml +++ b/.github/workflows/deploy_with_github_runner.yml @@ -56,6 +56,7 @@ jobs: resource_group: ${{ vars.CLUSTER_RESOURCE_GROUP }} app_name: ${{ env.APP_NAME }} helm_upgrade_options: "--debug" + timeout: "10m0s" cleanup_runner: name: Cleanup Runner From b1693a327faf9187fca1ab84951880b7f0fe970b Mon Sep 17 00:00:00 2001 From: pagopa-github-bot Date: Mon, 18 Dec 2023 17:55:34 +0000 Subject: [PATCH 07/20] Bump to version 1.8.6-5-export-iban [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 +- pom.xml | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/helm/Chart.yaml b/helm/Chart.yaml index 87f8cc37..7aeb751d 100644 --- a/helm/Chart.yaml +++ b/helm/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: pagopa-api-config-selfcare-integration description: Microservice that manages requests from selfcare type: application -version: 1.44.4 -appVersion: 1.8.6-4-export-iban +version: 1.44.5 +appVersion: 1.8.6-5-export-iban dependencies: - name: microservice-chart version: 2.8.0 diff --git a/helm/values-dev.yaml b/helm/values-dev.yaml index 8f8b898d..fabac756 100644 --- a/helm/values-dev.yaml +++ b/helm/values-dev.yaml @@ -132,7 +132,7 @@ microservice-chart: create: true image: repository: ghcr.io/pagopa/pagopa-api-config-selfcare-integration - tag: 1.8.6-4-export-iban + tag: 1.8.6-5-export-iban pullPolicy: Always envConfig: {} envSecret: {} diff --git a/helm/values-prod.yaml b/helm/values-prod.yaml index db2bf479..b1d114cb 100644 --- a/helm/values-prod.yaml +++ b/helm/values-prod.yaml @@ -141,7 +141,7 @@ microservice-chart: create: true image: repository: ghcr.io/pagopa/pagopa-api-config-selfcare-integration - tag: 1.8.6-4-export-iban + tag: 1.8.6-5-export-iban pullPolicy: Always envConfig: {} envSecret: {} diff --git a/helm/values-uat.yaml b/helm/values-uat.yaml index 8929c054..2ddb61fe 100644 --- a/helm/values-uat.yaml +++ b/helm/values-uat.yaml @@ -132,7 +132,7 @@ microservice-chart: create: true image: repository: ghcr.io/pagopa/pagopa-api-config-selfcare-integration - tag: 1.8.6-4-export-iban + tag: 1.8.6-5-export-iban pullPolicy: Always envConfig: {} envSecret: {} diff --git a/openapi/openapi.json b/openapi/openapi.json index 1c0132ef..f20e24b7 100644 --- a/openapi/openapi.json +++ b/openapi/openapi.json @@ -4,7 +4,7 @@ "title": "@project.name@", "description": "@project.description@", "termsOfService": "https://www.pagopa.gov.it/", - "version": "1.8.6-4-export-iban" + "version": "1.8.6-5-export-iban" }, "servers": [ { diff --git a/pom.xml b/pom.xml index cb5a2dac..2f294651 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ it.gov.pagopa.api-config selfcareintegration - 1.8.6-4-export-iban + 1.8.6-5-export-iban API-Config - SelfCare Integration Spring application exposes APIs for SelfCare From 9bc049c6031dd546fe00b8ed43e1b5945e745ecc Mon Sep 17 00:00:00 2001 From: pagopa-github-bot Date: Mon, 18 Dec 2023 18:48:16 +0000 Subject: [PATCH 08/20] Bump to version 1.8.6-6-export-iban [skip ci] --- helm/Chart.yaml | 4 ++-- helm/values-dev.yaml | 4 ++-- helm/values-prod.yaml | 4 ++-- helm/values-uat.yaml | 4 ++-- openapi/openapi.json | 2 +- pom.xml | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/helm/Chart.yaml b/helm/Chart.yaml index 7aeb751d..5ae03a5e 100644 --- a/helm/Chart.yaml +++ b/helm/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: pagopa-api-config-selfcare-integration description: Microservice that manages requests from selfcare type: application -version: 1.44.5 -appVersion: 1.8.6-5-export-iban +version: 1.45.0 +appVersion: 1.8.6-6-export-iban dependencies: - name: microservice-chart version: 2.8.0 diff --git a/helm/values-dev.yaml b/helm/values-dev.yaml index fabac756..fbc1df8e 100644 --- a/helm/values-dev.yaml +++ b/helm/values-dev.yaml @@ -9,7 +9,7 @@ microservice-chart: maxSurge: 1 image: repository: ghcr.io/pagopa/pagopa-api-config-selfcare-integration - tag: "1.8.6" + tag: "1.8.6-6-export-iban" pullPolicy: Always livenessProbe: httpGet: @@ -119,7 +119,7 @@ microservice-chart: values: - user canaryDelivery: - create: true + create: false ingress: canary: type: header diff --git a/helm/values-prod.yaml b/helm/values-prod.yaml index b1d114cb..16d3efbc 100644 --- a/helm/values-prod.yaml +++ b/helm/values-prod.yaml @@ -9,7 +9,7 @@ microservice-chart: maxSurge: 1 image: repository: ghcr.io/pagopa/pagopa-api-config-selfcare-integration - tag: "1.8.6" + tag: "1.8.6-6-export-iban" pullPolicy: Always livenessProbe: httpGet: @@ -128,7 +128,7 @@ microservice-chart: namespaces: ["apiconfig"] topologyKey: topology.kubernetes.io/zone canaryDelivery: - create: true + create: false ingress: canary: type: header diff --git a/helm/values-uat.yaml b/helm/values-uat.yaml index 2ddb61fe..0cabfd62 100644 --- a/helm/values-uat.yaml +++ b/helm/values-uat.yaml @@ -9,7 +9,7 @@ microservice-chart: maxSurge: 1 image: repository: ghcr.io/pagopa/pagopa-api-config-selfcare-integration - tag: "1.8.6" + tag: "1.8.6-6-export-iban" pullPolicy: Always livenessProbe: httpGet: @@ -119,7 +119,7 @@ microservice-chart: values: - user canaryDelivery: - create: true + create: false ingress: canary: type: header diff --git a/openapi/openapi.json b/openapi/openapi.json index f20e24b7..67bb3475 100644 --- a/openapi/openapi.json +++ b/openapi/openapi.json @@ -4,7 +4,7 @@ "title": "@project.name@", "description": "@project.description@", "termsOfService": "https://www.pagopa.gov.it/", - "version": "1.8.6-5-export-iban" + "version": "1.8.6-6-export-iban" }, "servers": [ { diff --git a/pom.xml b/pom.xml index 2f294651..29fe2b56 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ it.gov.pagopa.api-config selfcareintegration - 1.8.6-5-export-iban + 1.8.6-6-export-iban API-Config - SelfCare Integration Spring application exposes APIs for SelfCare From a3bcde46e16a1977a1e6d6ccf36ce9ace97f1bd3 Mon Sep 17 00:00:00 2001 From: Jacopo Date: Mon, 18 Dec 2023 20:11:56 +0100 Subject: [PATCH 09/20] openapi --- openapi/openapi.json | 2648 ++++++++++++++++++++---------------------- 1 file changed, 1248 insertions(+), 1400 deletions(-) diff --git a/openapi/openapi.json b/openapi/openapi.json index 1c0132ef..fbf9da07 100644 --- a/openapi/openapi.json +++ b/openapi/openapi.json @@ -1,1735 +1,1583 @@ { - "openapi": "3.0.1", - "info": { - "title": "@project.name@", - "description": "@project.description@", - "termsOfService": "https://www.pagopa.gov.it/", - "version": "1.8.6-4-export-iban" + "openapi" : "3.0.1", + "info" : { + "title" : "@project.name@", + "description" : "@project.description@", + "termsOfService" : "https://www.pagopa.gov.it/", + "version" : "1.8.4-2-PASELC-658-be-api-config-nuova-api-get-per-recupero-iban-da-lista-ec" }, - "servers": [ - { - "url": "http://localhost", - "description": "Generated server url" - } - ], - "tags": [ - { - "name": "PSP Brokers", - "description": "Everything about PSP's brokers" - }, - { - "name": "Ibans", - "description": "Everything about IBANs" - }, - { - "name": "Creditor Institutions", - "description": "Everything about Creditor Institution" - }, - { - "name": "Brokers", - "description": "Everything about brokers" - } - ], - "paths": { - "/brokers/{brokerId}/stations": { - "get": { - "tags": [ - "Brokers" - ], - "summary": "Get broker's station list", - "operationId": "getStationsDetailsFromBroker", - "parameters": [ - { - "name": "brokerId", - "in": "path", - "description": "The identifier of the broker.", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "stationId", - "in": "query", - "description": "The identifier of the station.", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "limit", - "in": "query", - "description": "The number of elements to be included in the page.", - "required": true, - "schema": { - "maximum": 999, - "type": "integer", - "format": "int32", - "default": 10 - } - }, - { - "name": "page", - "in": "query", - "description": "The index of the page, starting from 0.", - "required": true, - "schema": { - "minimum": 0, - "type": "integer", - "format": "int32", - "default": 0 - } + "servers" : [ { + "url" : "http://localhost", + "description" : "Generated server url" + } ], + "tags" : [ { + "name" : "PSP Brokers", + "description" : "Everything about PSP's brokers" + }, { + "name" : "Ibans", + "description" : "Everything about IBANs" + }, { + "name" : "Creditor Institutions", + "description" : "Everything about Creditor Institution" + }, { + "name" : "Brokers", + "description" : "Everything about brokers" + } ], + "paths" : { + "/brokers/{brokerId}/stations" : { + "get" : { + "tags" : [ "Brokers" ], + "summary" : "Get broker's station list", + "operationId" : "getStationsDetailsFromBroker", + "parameters" : [ { + "name" : "brokerId", + "in" : "path", + "description" : "The identifier of the broker.", + "required" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "stationId", + "in" : "query", + "description" : "The identifier of the station.", + "required" : false, + "schema" : { + "type" : "string" + } + }, { + "name" : "limit", + "in" : "query", + "description" : "The number of elements to be included in the page.", + "required" : true, + "schema" : { + "maximum" : 999, + "type" : "integer", + "format" : "int32", + "default" : 10 + } + }, { + "name" : "page", + "in" : "query", + "description" : "The index of the page, starting from 0.", + "required" : true, + "schema" : { + "minimum" : 0, + "type" : "integer", + "format" : "int32", + "default" : 0 } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/StationDetailsList" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/StationDetailsList" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/brokerspsp/{brokerId}/channels": { - "get": { - "tags": [ - "PSP Brokers" - ], - "summary": "Get PSP broker's channel list", - "operationId": "getChannelDetailsFromPSPBroker", - "parameters": [ - { - "name": "brokerId", - "in": "path", - "description": "The identifier of the PSP broker.", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "channelId", - "in": "query", - "description": "The identifier of the channel.", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "limit", - "in": "query", - "description": "The number of elements to be included in the page.", - "required": true, - "schema": { - "maximum": 999, - "type": "integer", - "format": "int32", - "default": 10 - } - }, - { - "name": "page", - "in": "query", - "description": "The index of the page, starting from 0.", - "required": true, - "schema": { - "minimum": 0, - "type": "integer", - "format": "int32", - "default": 0 - } + "/brokerspsp/{brokerId}/channels" : { + "get" : { + "tags" : [ "PSP Brokers" ], + "summary" : "Get PSP broker's channel list", + "operationId" : "getChannelDetailsFromPSPBroker", + "parameters" : [ { + "name" : "brokerId", + "in" : "path", + "description" : "The identifier of the PSP broker.", + "required" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "channelId", + "in" : "query", + "description" : "The identifier of the channel.", + "required" : false, + "schema" : { + "type" : "string" + } + }, { + "name" : "limit", + "in" : "query", + "description" : "The number of elements to be included in the page.", + "required" : true, + "schema" : { + "maximum" : 999, + "type" : "integer", + "format" : "int32", + "default" : 10 } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + }, { + "name" : "page", + "in" : "query", + "description" : "The index of the page, starting from 0.", + "required" : true, + "schema" : { + "minimum" : 0, + "type" : "integer", + "format" : "int32", + "default" : 0 + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ChannelDetailsList" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ChannelDetailsList" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/creditorinstitutions/{creditorInstitutionCode}/applicationcodes": { - "get": { - "tags": [ - "Creditor Institutions" - ], - "summary": "Get application code associations with creditor institution", - "operationId": "getApplicationCodesFromCreditorInstitution", - "parameters": [ - { - "name": "creditorInstitutionCode", - "in": "path", - "description": "Organization fiscal code, the fiscal code of the Organization.", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "showUsedCodes", - "in": "query", - "description": "The flag that permits to show the codes already used. Default: true", - "required": false, - "schema": { - "type": "boolean", - "default": true - } + "/creditorinstitutions/{creditorInstitutionCode}/applicationcodes" : { + "get" : { + "tags" : [ "Creditor Institutions" ], + "summary" : "Get application code associations with creditor institution", + "operationId" : "getApplicationCodesFromCreditorInstitution", + "parameters" : [ { + "name" : "creditorInstitutionCode", + "in" : "path", + "description" : "Organization fiscal code, the fiscal code of the Organization.", + "required" : true, + "schema" : { + "type" : "string" } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + }, { + "name" : "showUsedCodes", + "in" : "query", + "description" : "The flag that permits to show the codes already used. Default: true", + "required" : false, + "schema" : { + "type" : "boolean", + "default" : true + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CIAssociatedCodeList" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/CIAssociatedCodeList" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/creditorinstitutions/{creditorInstitutionCode}/segregationcodes": { - "get": { - "tags": [ - "Creditor Institutions" - ], - "summary": "Get segregation code associations with creditor institution", - "operationId": "getSegregationCodesFromCreditorInstitution", - "parameters": [ - { - "name": "creditorInstitutionCode", - "in": "path", - "description": "Organization fiscal code, the fiscal code of the Organization.", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "showUsedCodes", - "in": "query", - "description": "The flag that permits to show the codes already used. Default: true", - "required": false, - "schema": { - "type": "boolean", - "default": true - } - }, - { - "name": "service", - "in": "query", - "description": "The service endpoint, to be used as a search filter to obtain only the segregation codes used by the CI for stations using same endpoint service. Default: null", - "required": false, - "schema": { - "type": "string" - } + "/creditorinstitutions/{creditorInstitutionCode}/segregationcodes" : { + "get" : { + "tags" : [ "Creditor Institutions" ], + "summary" : "Get segregation code associations with creditor institution", + "operationId" : "getSegregationCodesFromCreditorInstitution", + "parameters" : [ { + "name" : "creditorInstitutionCode", + "in" : "path", + "description" : "Organization fiscal code, the fiscal code of the Organization.", + "required" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "showUsedCodes", + "in" : "query", + "description" : "The flag that permits to show the codes already used. Default: true", + "required" : false, + "schema" : { + "type" : "boolean", + "default" : true + } + }, { + "name" : "service", + "in" : "query", + "description" : "The service endpoint, to be used as a search filter to obtain only the segregation codes used by the CI for stations using same endpoint service. Default: null", + "required" : false, + "schema" : { + "type" : "string" } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CIAssociatedCodeList" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/CIAssociatedCodeList" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/creditorinstitutions/{creditorInstitutionCode}/stations": { - "get": { - "tags": [ - "Creditor Institutions" - ], - "summary": "Get creditor institution station list", - "operationId": "getStationsDetailsFromCreditorInstitution", - "parameters": [ - { - "name": "creditorInstitutionCode", - "in": "path", - "description": "Organization fiscal code, the fiscal code of the Organization.", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "limit", - "in": "query", - "description": "The number of elements to be included in the page.", - "required": true, - "schema": { - "maximum": 999, - "type": "integer", - "format": "int32", - "default": 10 - } - }, - { - "name": "page", - "in": "query", - "description": "The index of the page, starting from 0.", - "required": true, - "schema": { - "minimum": 0, - "type": "integer", - "format": "int32", - "default": 0 - } + "/creditorinstitutions/{creditorInstitutionCode}/stations" : { + "get" : { + "tags" : [ "Creditor Institutions" ], + "summary" : "Get creditor institution station list", + "operationId" : "getStationsDetailsFromCreditorInstitution", + "parameters" : [ { + "name" : "creditorInstitutionCode", + "in" : "path", + "description" : "Organization fiscal code, the fiscal code of the Organization.", + "required" : true, + "schema" : { + "type" : "string" } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + }, { + "name" : "limit", + "in" : "query", + "description" : "The number of elements to be included in the page.", + "required" : true, + "schema" : { + "maximum" : 999, + "type" : "integer", + "format" : "int32", + "default" : 10 + } + }, { + "name" : "page", + "in" : "query", + "description" : "The index of the page, starting from 0.", + "required" : true, + "schema" : { + "minimum" : 0, + "type" : "integer", + "format" : "int32", + "default" : 0 + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/StationDetailsList" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/StationDetailsList" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/ibans": { - "get": { - "tags": [ - "Ibans" - ], - "summary": "Get the paginated list of all IBANs, filtering by creditor institution", - "operationId": "getIbans", - "parameters": [ - { - "name": "ci_list", - "in": "query", - "description": "The identifiers of the creditor institutions.", - "required": true, - "schema": { - "maxItems": 100, - "minItems": 1, - "type": "array", - "items": { - "type": "string" + "/ibans" : { + "post" : { + "tags" : [ "Ibans" ], + "summary" : "Get the paginated list of all IBANs, filtering by creditor institution", + "operationId" : "getIbans", + "parameters" : [ { + "name" : "limit", + "in" : "query", + "description" : "The number of elements to be included in the page.", + "required" : true, + "schema" : { + "maximum" : 999, + "type" : "integer", + "format" : "int32", + "default" : 10 + } + }, { + "name" : "page", + "in" : "query", + "description" : "The index of the page, starting from 0.", + "required" : true, + "schema" : { + "minimum" : 0, + "type" : "integer", + "format" : "int32", + "default" : 0 + } + } ], + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "type" : "array", + "items" : { + "type" : "string" + } } } }, - { - "name": "limit", - "in": "query", - "description": "The number of elements to be included in the page.", - "required": true, - "schema": { - "maximum": 999, - "type": "integer", - "format": "int32", - "default": 10 - } - }, - { - "name": "page", - "in": "query", - "description": "The index of the page, starting from 0.", - "required": true, - "schema": { - "minimum": 0, - "type": "integer", - "format": "int32", - "default": 0 - } - } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "required" : true + }, + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/IbansList" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/IbansList" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/info": { - "get": { - "tags": [ - "Home" - ], - "summary": "Return OK if application is started", - "operationId": "healthCheck", - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "/info" : { + "get" : { + "tags" : [ "Home" ], + "summary" : "Return OK if application is started", + "operationId" : "healthCheck", + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/AppInfo" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/AppInfo" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] } }, - "components": { - "schemas": { - "AppInfo": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "version": { - "type": "string" - }, - "environment": { - "type": "string" - }, - "dbConnection": { - "type": "string" - } - } - }, - "ProblemJson": { - "type": "object", - "properties": { - "title": { - "type": "string", - "description": "A short, summary of the problem type. Written in english and readable for engineers (usually not suited for non technical stakeholders and not localized); example: Service Unavailable" - }, - "status": { - "maximum": 600, - "minimum": 100, - "type": "integer", - "description": "The HTTP status code generated by the origin server for this occurrence of the problem.", - "format": "int32", - "example": 200 - }, - "detail": { - "type": "string", - "description": "A human readable explanation specific to this occurrence of the problem.", - "example": "There was an error processing the request" - } - } - }, - "IbanDetails": { - "type": "object", - "properties": { - "ci_fiscal_code": { - "type": "string" + "components" : { + "schemas" : { + "IbanDetails" : { + "type" : "object", + "properties" : { + "ci_fiscal_code" : { + "type" : "string" }, - "ci_name": { - "type": "string" + "ci_name" : { + "type" : "string" }, - "iban": { - "type": "string" + "iban" : { + "type" : "string" }, - "inserted_date": { - "type": "string", - "format": "date-time" + "inserted_date" : { + "type" : "string", + "format" : "date-time" }, - "validity_date": { - "type": "string", - "format": "date-time" + "validity_date" : { + "type" : "string", + "format" : "date-time" }, - "due_date": { - "type": "string", - "format": "date-time" + "due_date" : { + "type" : "string", + "format" : "date-time" }, - "description": { - "type": "string" + "description" : { + "type" : "string" }, - "owner_fiscal_code": { - "type": "string" + "owner_fiscal_code" : { + "type" : "string" }, - "labels": { - "type": "array", - "items": { - "$ref": "#/components/schemas/IbanLabel" + "labels" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/IbanLabel" } } }, - "description": "List of IBANs associated to the passed creditor institutions" + "description" : "List of IBANs associated to the passed creditor institutions" }, - "IbanLabel": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" + "IbanLabel" : { + "type" : "object", + "properties" : { + "name" : { + "type" : "string" + }, + "description" : { + "type" : "string" } } }, - "IbansList": { - "required": [ - "ibans", - "page_info" - ], - "type": "object", - "properties": { - "ibans": { - "type": "array", - "description": "List of IBANs associated to the passed creditor institutions", - "items": { - "$ref": "#/components/schemas/IbanDetails" - } - }, - "page_info": { - "$ref": "#/components/schemas/PageInfo" + "IbansList" : { + "required" : [ "ibans", "page_info" ], + "type" : "object", + "properties" : { + "ibans" : { + "type" : "array", + "description" : "List of IBANs associated to the passed creditor institutions", + "items" : { + "$ref" : "#/components/schemas/IbanDetails" + } + }, + "page_info" : { + "$ref" : "#/components/schemas/PageInfo" } } }, - "PageInfo": { - "type": "object", - "properties": { - "page": { - "type": "integer", - "description": "Page number", - "format": "int32" - }, - "limit": { - "type": "integer", - "description": "Required number of items per page", - "format": "int32" - }, - "items_found": { - "type": "integer", - "description": "Number of items found. (The last page may have fewer elements than required)", - "format": "int32" - }, - "total_pages": { - "type": "integer", - "description": "Total number of pages", - "format": "int32" - }, - "total_items": { - "type": "integer", - "description": "Total number of items for all pages", - "format": "int64" + "PageInfo" : { + "type" : "object", + "properties" : { + "page" : { + "type" : "integer", + "description" : "Page number", + "format" : "int32" + }, + "limit" : { + "type" : "integer", + "description" : "Required number of items per page", + "format" : "int32" + }, + "items_found" : { + "type" : "integer", + "description" : "Number of items found. (The last page may have fewer elements than required)", + "format" : "int32" + }, + "total_pages" : { + "type" : "integer", + "description" : "Total number of pages", + "format" : "int32" + }, + "total_items" : { + "type" : "integer", + "description" : "Total number of items for all pages", + "format" : "int64" } } }, - "BrokerDetails": { - "required": [ - "broker_code", - "broker_details", - "enabled", - "extended_fault_bean" - ], - "type": "object", - "properties": { - "broker_code": { - "maxLength": 35, - "minLength": 0, - "type": "string", - "description": "Code used to identify the intermediate EC", - "example": "223344556677889900" - }, - "broker_details": { - "type": "string", - "description": "Name and generic details of the intermediate EC", - "example": "Regione Veneto" - }, - "enabled": { - "type": "boolean", - "description": "Parameter to find out whether or not the intermediate has been enabled" - }, - "extended_fault_bean": { - "type": "boolean", - "description": "Parameter to find out whether or not the extended fault bean has been enabled" + "ProblemJson" : { + "type" : "object", + "properties" : { + "title" : { + "type" : "string", + "description" : "A short, summary of the problem type. Written in english and readable for engineers (usually not suited for non technical stakeholders and not localized); example: Service Unavailable" + }, + "status" : { + "maximum" : 600, + "minimum" : 100, + "type" : "integer", + "description" : "The HTTP status code generated by the origin server for this occurrence of the problem.", + "format" : "int32", + "example" : 200 + }, + "detail" : { + "type" : "string", + "description" : "A human readable explanation specific to this occurrence of the problem.", + "example" : "There was an error processing the request" + } + } + }, + "AppInfo" : { + "type" : "object", + "properties" : { + "name" : { + "type" : "string" + }, + "version" : { + "type" : "string" + }, + "environment" : { + "type" : "string" + }, + "dbConnection" : { + "type" : "string" + } + } + }, + "BrokerDetails" : { + "required" : [ "broker_code", "broker_details", "enabled", "extended_fault_bean" ], + "type" : "object", + "properties" : { + "broker_code" : { + "maxLength" : 35, + "minLength" : 0, + "type" : "string", + "description" : "Code used to identify the intermediate EC", + "example" : "223344556677889900" + }, + "broker_details" : { + "type" : "string", + "description" : "Name and generic details of the intermediate EC", + "example" : "Regione Veneto" + }, + "enabled" : { + "type" : "boolean", + "description" : "Parameter to find out whether or not the intermediate has been enabled" + }, + "extended_fault_bean" : { + "type" : "boolean", + "description" : "Parameter to find out whether or not the extended fault bean has been enabled" } }, - "description": "Details of the intermediate EC of the station" + "description" : "Details of the intermediate EC of the station" }, - "StationDetails": { - "required": [ - "broker_details", - "enabled", - "port", - "primitive_version", - "protocol", - "station_code", - "thread_number", - "timeout_a", - "timeout_b", - "timeout_c", - "version" - ], - "type": "object", - "properties": { - "station_code": { - "maxLength": 35, - "minLength": 0, - "type": "string", - "description": "Unique code to identify the station", - "example": "1234567890100" - }, - "enabled": { - "type": "boolean", - "description": "Parameter to find out whether or not the station has been enabled", - "default": true - }, - "broker_description": { - "type": "string", - "description": "A description of the intermediate EC", - "example": "Regione Lazio" - }, - "version": { - "maximum": 2, - "minimum": 1, - "type": "integer", - "description": "The version of the station", - "format": "int64" - }, - "ip": { - "type": "string", - "description": "Ip address of the station" - }, - "new_password": { - "type": "string", - "description": "New password of the station" - }, - "password": { - "type": "string", - "description": "Password of the station" - }, - "port": { - "maximum": 65535, - "minimum": 1, - "type": "integer", - "description": "Port address of the station", - "format": "int64" - }, - "protocol": { - "type": "string", - "description": "Protocol associated to the station", - "enum": [ - "HTTPS", - "HTTP" - ] - }, - "redirect_ip": { - "type": "string", - "description": "Redirect ip address of the station" - }, - "redirect_path": { - "type": "string", - "description": "Redirect path of the station" - }, - "redirect_port": { - "maximum": 65535, - "minimum": 1, - "type": "integer", - "description": "Redirect port address of the station", - "format": "int64" - }, - "redirect_query_string": { - "type": "string", - "description": "Redirect query string of the station" - }, - "redirect_protocol": { - "type": "string", - "description": "Redirect protocol associated to the station", - "enum": [ - "HTTPS", - "HTTP" - ] - }, - "service": { - "type": "string" - }, - "pof_service": { - "type": "string" - }, - "broker_details": { - "$ref": "#/components/schemas/BrokerDetails" - }, - "protocol_4mod": { - "type": "string", - "description": "Protocol 4mod associated to the station", - "enum": [ - "HTTPS", - "HTTP" - ] - }, - "ip_4mod": { - "type": "string", - "description": "Ip address 4mod associated to the station" - }, - "port_4mod": { - "maximum": 65535, - "minimum": 1, - "type": "integer", - "description": "Port address 4mod associated to the station", - "format": "int64" - }, - "service_4mod": { - "type": "string" - }, - "proxy_enabled": { - "type": "boolean", - "description": "Parameter to inspect if the proxy has been enabled for this station" - }, - "proxy_host": { - "type": "string", - "description": "Proxy host" - }, - "proxy_port": { - "maximum": 65535, - "minimum": 1, - "type": "integer", - "description": "Proxy port address", - "format": "int64" - }, - "proxy_username": { - "type": "string" - }, - "proxy_password": { - "type": "string" - }, - "thread_number": { - "minimum": 1, - "type": "integer", - "format": "int64" - }, - "timeout_a": { - "minimum": 0, - "type": "integer", - "format": "int64" - }, - "timeout_b": { - "minimum": 0, - "type": "integer", - "format": "int64" - }, - "timeout_c": { - "minimum": 0, - "type": "integer", - "format": "int64" - }, - "flag_online": { - "type": "boolean" - }, - "invio_rt_istantaneo": { - "type": "boolean", - "description": "Parameter useful to find out if the instantaneous rt has been enabled" - }, - "target_host": { - "type": "string", - "description": "Target address of the station" - }, - "target_port": { - "type": "integer", - "description": "Port address target associated to the station", - "format": "int64" - }, - "target_path": { - "type": "string", - "description": "Target path of the station" - }, - "target_host_pof": { - "type": "string", - "description": "Pof address associated to the station" - }, - "target_port_pof": { - "type": "integer", - "description": "Port address pof associated to the station", - "format": "int64" - }, - "target_path_pof": { - "type": "string", - "description": "Pof path associated to the station" - }, - "primitive_version": { - "maximum": 2, - "minimum": 1, - "type": "integer", - "description": "Primitive number version", - "format": "int32", - "enum": [ - 1, - 2 - ] + "StationDetails" : { + "required" : [ "broker_details", "enabled", "port", "primitive_version", "protocol", "station_code", "thread_number", "timeout_a", "timeout_b", "timeout_c", "version" ], + "type" : "object", + "properties" : { + "station_code" : { + "maxLength" : 35, + "minLength" : 0, + "type" : "string", + "description" : "Unique code to identify the station", + "example" : "1234567890100" + }, + "enabled" : { + "type" : "boolean", + "description" : "Parameter to find out whether or not the station has been enabled", + "default" : true + }, + "broker_description" : { + "type" : "string", + "description" : "A description of the intermediate EC", + "example" : "Regione Lazio" + }, + "version" : { + "maximum" : 2, + "minimum" : 1, + "type" : "integer", + "description" : "The version of the station", + "format" : "int64" + }, + "ip" : { + "type" : "string", + "description" : "Ip address of the station" + }, + "new_password" : { + "type" : "string", + "description" : "New password of the station" + }, + "password" : { + "type" : "string", + "description" : "Password of the station" + }, + "port" : { + "maximum" : 65535, + "minimum" : 1, + "type" : "integer", + "description" : "Port address of the station", + "format" : "int64" + }, + "protocol" : { + "type" : "string", + "description" : "Protocol associated to the station", + "enum" : [ "HTTPS", "HTTP" ] + }, + "redirect_ip" : { + "type" : "string", + "description" : "Redirect ip address of the station" + }, + "redirect_path" : { + "type" : "string", + "description" : "Redirect path of the station" + }, + "redirect_port" : { + "maximum" : 65535, + "minimum" : 1, + "type" : "integer", + "description" : "Redirect port address of the station", + "format" : "int64" + }, + "redirect_query_string" : { + "type" : "string", + "description" : "Redirect query string of the station" + }, + "redirect_protocol" : { + "type" : "string", + "description" : "Redirect protocol associated to the station", + "enum" : [ "HTTPS", "HTTP" ] + }, + "service" : { + "type" : "string" + }, + "pof_service" : { + "type" : "string" + }, + "broker_details" : { + "$ref" : "#/components/schemas/BrokerDetails" + }, + "protocol_4mod" : { + "type" : "string", + "description" : "Protocol 4mod associated to the station", + "enum" : [ "HTTPS", "HTTP" ] + }, + "ip_4mod" : { + "type" : "string", + "description" : "Ip address 4mod associated to the station" + }, + "port_4mod" : { + "maximum" : 65535, + "minimum" : 1, + "type" : "integer", + "description" : "Port address 4mod associated to the station", + "format" : "int64" + }, + "service_4mod" : { + "type" : "string" + }, + "proxy_enabled" : { + "type" : "boolean", + "description" : "Parameter to inspect if the proxy has been enabled for this station" + }, + "proxy_host" : { + "type" : "string", + "description" : "Proxy host" + }, + "proxy_port" : { + "maximum" : 65535, + "minimum" : 1, + "type" : "integer", + "description" : "Proxy port address", + "format" : "int64" + }, + "proxy_username" : { + "type" : "string" + }, + "proxy_password" : { + "type" : "string" + }, + "thread_number" : { + "minimum" : 1, + "type" : "integer", + "format" : "int64" + }, + "timeout_a" : { + "minimum" : 0, + "type" : "integer", + "format" : "int64" + }, + "timeout_b" : { + "minimum" : 0, + "type" : "integer", + "format" : "int64" + }, + "timeout_c" : { + "minimum" : 0, + "type" : "integer", + "format" : "int64" + }, + "flag_online" : { + "type" : "boolean" + }, + "invio_rt_istantaneo" : { + "type" : "boolean", + "description" : "Parameter useful to find out if the instantaneous rt has been enabled" + }, + "target_host" : { + "type" : "string", + "description" : "Target address of the station" + }, + "target_port" : { + "type" : "integer", + "description" : "Port address target associated to the station", + "format" : "int64" + }, + "target_path" : { + "type" : "string", + "description" : "Target path of the station" + }, + "target_host_pof" : { + "type" : "string", + "description" : "Pof address associated to the station" + }, + "target_port_pof" : { + "type" : "integer", + "description" : "Port address pof associated to the station", + "format" : "int64" + }, + "target_path_pof" : { + "type" : "string", + "description" : "Pof path associated to the station" + }, + "primitive_version" : { + "maximum" : 2, + "minimum" : 1, + "type" : "integer", + "description" : "Primitive number version", + "format" : "int32", + "enum" : [ 1, 2 ] } }, - "description": "List of stations associated to the same entity" + "description" : "List of stations associated to the same entity" }, - "StationDetailsList": { - "required": [ - "page_info", - "stations" - ], - "type": "object", - "properties": { - "stations": { - "type": "array", - "description": "List of stations associated to the same entity", - "items": { - "$ref": "#/components/schemas/StationDetails" - } - }, - "page_info": { - "$ref": "#/components/schemas/PageInfo" + "StationDetailsList" : { + "required" : [ "page_info", "stations" ], + "type" : "object", + "properties" : { + "stations" : { + "type" : "array", + "description" : "List of stations associated to the same entity", + "items" : { + "$ref" : "#/components/schemas/StationDetails" + } + }, + "page_info" : { + "$ref" : "#/components/schemas/PageInfo" } } }, - "CIAssociatedCode": { - "required": [ - "code" - ], - "type": "object", - "properties": { - "code": { - "maxLength": 2, - "minLength": 2, - "type": "string", - "description": "The code that bound uniquely a creditor institution to a station" - }, - "name": { - "type": "string", - "description": "The name of the station associated to the creditor institution, if exists" + "CIAssociatedCode" : { + "required" : [ "code" ], + "type" : "object", + "properties" : { + "code" : { + "maxLength" : 2, + "minLength" : 2, + "type" : "string", + "description" : "The code that bound uniquely a creditor institution to a station" + }, + "name" : { + "type" : "string", + "description" : "The name of the station associated to the creditor institution, if exists" } }, - "description": "List of codes not used for existing associations" + "description" : "List of codes not used for existing associations" }, - "CIAssociatedCodeList": { - "required": [ - "unused" - ], - "type": "object", - "properties": { - "used": { - "type": "array", - "description": "List of codes already used for existing associations", - "items": { - "$ref": "#/components/schemas/CIAssociatedCode" - } - }, - "unused": { - "type": "array", - "description": "List of codes not used for existing associations", - "items": { - "$ref": "#/components/schemas/CIAssociatedCode" + "CIAssociatedCodeList" : { + "required" : [ "unused" ], + "type" : "object", + "properties" : { + "used" : { + "type" : "array", + "description" : "List of codes already used for existing associations", + "items" : { + "$ref" : "#/components/schemas/CIAssociatedCode" + } + }, + "unused" : { + "type" : "array", + "description" : "List of codes not used for existing associations", + "items" : { + "$ref" : "#/components/schemas/CIAssociatedCode" } } } }, - "ChannelDetails": { - "required": [ - "agid", - "broker_psp_code", - "card_chart", - "channel_code", - "digital_stamp_brand", - "enabled", - "on_us", - "payment_model", - "port", - "primitive_version", - "protocol", - "recovery", - "rt_push", - "thread_number", - "timeout_a", - "timeout_b", - "timeout_c" - ], - "type": "object", - "properties": { - "channel_code": { - "type": "string", - "example": "223344556677889900" - }, - "enabled": { - "type": "boolean" - }, - "broker_description": { - "type": "string", - "description": "Broker description. Read only field", - "example": "Lorem ipsum dolor sit amet" - }, - "password": { - "type": "string" - }, - "new_password": { - "type": "string" - }, - "protocol": { - "type": "string", - "enum": [ - "HTTPS", - "HTTP" - ] - }, - "ip": { - "type": "string" - }, - "port": { - "maximum": 65535, - "minimum": 1, - "type": "integer", - "format": "int64" - }, - "service": { - "type": "string" - }, - "broker_psp_code": { - "type": "string" - }, - "proxy_enabled": { - "type": "boolean" - }, - "proxy_host": { - "type": "string" - }, - "proxy_port": { - "maximum": 65535, - "minimum": 1, - "type": "integer", - "format": "int64" - }, - "proxy_username": { - "type": "string" - }, - "proxy_password": { - "type": "string" - }, - "target_host": { - "type": "string" - }, - "target_port": { - "type": "integer", - "format": "int64" - }, - "target_path": { - "type": "string" - }, - "thread_number": { - "minimum": 1, - "type": "integer", - "format": "int64" - }, - "timeout_a": { - "minimum": 0, - "type": "integer", - "format": "int64" - }, - "timeout_b": { - "minimum": 0, - "type": "integer", - "format": "int64" - }, - "timeout_c": { - "minimum": 0, - "type": "integer", - "format": "int64" - }, - "nmp_service": { - "type": "string" - }, - "new_fault_code": { - "type": "boolean" - }, - "target_host_nmp": { - "type": "string" - }, - "target_port_nmp": { - "type": "integer", - "format": "int64" + "ChannelDetails" : { + "required" : [ "agid", "broker_psp_code", "card_chart", "channel_code", "digital_stamp_brand", "enabled", "on_us", "payment_model", "port", "primitive_version", "protocol", "recovery", "rt_push", "thread_number", "timeout_a", "timeout_b", "timeout_c" ], + "type" : "object", + "properties" : { + "channel_code" : { + "type" : "string", + "example" : "223344556677889900" + }, + "enabled" : { + "type" : "boolean" + }, + "broker_description" : { + "type" : "string", + "description" : "Broker description. Read only field", + "example" : "Lorem ipsum dolor sit amet" + }, + "password" : { + "type" : "string" + }, + "new_password" : { + "type" : "string" + }, + "protocol" : { + "type" : "string", + "enum" : [ "HTTPS", "HTTP" ] + }, + "ip" : { + "type" : "string" + }, + "port" : { + "maximum" : 65535, + "minimum" : 1, + "type" : "integer", + "format" : "int64" + }, + "service" : { + "type" : "string" + }, + "broker_psp_code" : { + "type" : "string" + }, + "proxy_enabled" : { + "type" : "boolean" + }, + "proxy_host" : { + "type" : "string" + }, + "proxy_port" : { + "maximum" : 65535, + "minimum" : 1, + "type" : "integer", + "format" : "int64" }, - "target_path_nmp": { - "type": "string" + "proxy_username" : { + "type" : "string" }, - "redirect_ip": { - "type": "string" + "proxy_password" : { + "type" : "string" }, - "redirect_path": { - "type": "string" + "target_host" : { + "type" : "string" }, - "redirect_port": { - "maximum": 65535, - "minimum": 1, - "type": "integer", - "format": "int64" + "target_port" : { + "type" : "integer", + "format" : "int64" }, - "redirect_query_string": { - "type": "string" + "target_path" : { + "type" : "string" }, - "redirect_protocol": { - "type": "string", - "enum": [ - "HTTPS", - "HTTP" - ] + "thread_number" : { + "minimum" : 1, + "type" : "integer", + "format" : "int64" }, - "payment_model": { - "type": "string", - "enum": [ - "IMMEDIATE", - "IMMEDIATE_MULTIBENEFICIARY", - "DEFERRED", - "ACTIVATED_AT_PSP" - ] + "timeout_a" : { + "minimum" : 0, + "type" : "integer", + "format" : "int64" }, - "serv_plugin": { - "type": "string" + "timeout_b" : { + "minimum" : 0, + "type" : "integer", + "format" : "int64" }, - "rt_push": { - "type": "boolean" + "timeout_c" : { + "minimum" : 0, + "type" : "integer", + "format" : "int64" }, - "on_us": { - "type": "boolean" + "nmp_service" : { + "type" : "string" }, - "card_chart": { - "type": "boolean" + "new_fault_code" : { + "type" : "boolean" }, - "recovery": { - "type": "boolean" + "target_host_nmp" : { + "type" : "string" }, - "digital_stamp_brand": { - "type": "boolean" + "target_port_nmp" : { + "type" : "integer", + "format" : "int64" }, - "flag_io": { - "type": "boolean" + "target_path_nmp" : { + "type" : "string" }, - "flag_psp_cp": { - "type": "boolean" + "redirect_ip" : { + "type" : "string" }, - "agid": { - "type": "boolean" + "redirect_path" : { + "type" : "string" }, - "primitive_version": { - "maximum": 2, - "minimum": 1, - "type": "integer", - "description": "Primitive number version", - "format": "int32" + "redirect_port" : { + "maximum" : 65535, + "minimum" : 1, + "type" : "integer", + "format" : "int64" + }, + "redirect_query_string" : { + "type" : "string" + }, + "redirect_protocol" : { + "type" : "string", + "enum" : [ "HTTPS", "HTTP" ] + }, + "payment_model" : { + "type" : "string", + "enum" : [ "IMMEDIATE", "IMMEDIATE_MULTIBENEFICIARY", "DEFERRED", "ACTIVATED_AT_PSP" ] + }, + "serv_plugin" : { + "type" : "string" + }, + "rt_push" : { + "type" : "boolean" + }, + "on_us" : { + "type" : "boolean" + }, + "card_chart" : { + "type" : "boolean" + }, + "recovery" : { + "type" : "boolean" + }, + "digital_stamp_brand" : { + "type" : "boolean" + }, + "flag_io" : { + "type" : "boolean" + }, + "flag_psp_cp" : { + "type" : "boolean" + }, + "agid" : { + "type" : "boolean" + }, + "primitive_version" : { + "maximum" : 2, + "minimum" : 1, + "type" : "integer", + "description" : "Primitive number version", + "format" : "int32" } }, - "description": "List of stations associated to the same entity" + "description" : "List of stations associated to the same entity" }, - "ChannelDetailsList": { - "required": [ - "channels", - "page_info" - ], - "type": "object", - "properties": { - "channels": { - "type": "array", - "description": "List of stations associated to the same entity", - "items": { - "$ref": "#/components/schemas/ChannelDetails" - } - }, - "page_info": { - "$ref": "#/components/schemas/PageInfo" + "ChannelDetailsList" : { + "required" : [ "channels", "page_info" ], + "type" : "object", + "properties" : { + "channels" : { + "type" : "array", + "description" : "List of stations associated to the same entity", + "items" : { + "$ref" : "#/components/schemas/ChannelDetails" + } + }, + "page_info" : { + "$ref" : "#/components/schemas/PageInfo" } } } }, - "securitySchemes": { - "ApiKey": { - "type": "apiKey", - "description": "The API key to access this function app.", - "name": "Ocp-Apim-Subscription-Key", - "in": "header" + "securitySchemes" : { + "ApiKey" : { + "type" : "apiKey", + "description" : "The API key to access this function app.", + "name" : "Ocp-Apim-Subscription-Key", + "in" : "header" }, - "Authorization": { - "type": "http", - "description": "JWT token get after Azure Login", - "scheme": "bearer", - "bearerFormat": "JWT" + "Authorization" : { + "type" : "http", + "description" : "JWT token get after Azure Login", + "scheme" : "bearer", + "bearerFormat" : "JWT" } } } -} +} \ No newline at end of file From 1da61058437ef74b6d2b5ad35a0cb71745d3cb18 Mon Sep 17 00:00:00 2001 From: Jacopo Date: Mon, 18 Dec 2023 20:17:58 +0100 Subject: [PATCH 10/20] limit --- .../selfcareintegration/controller/IbanController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/it/gov/pagopa/apiconfig/selfcareintegration/controller/IbanController.java b/src/main/java/it/gov/pagopa/apiconfig/selfcareintegration/controller/IbanController.java index 5e3bb240..41665740 100644 --- a/src/main/java/it/gov/pagopa/apiconfig/selfcareintegration/controller/IbanController.java +++ b/src/main/java/it/gov/pagopa/apiconfig/selfcareintegration/controller/IbanController.java @@ -103,7 +103,7 @@ public ResponseEntity getIbans( ) @RequestParam(required = false, defaultValue = "10") @Positive - @Max(999) + // @Max(999) Integer limit, @Valid @Parameter(description = "The index of the page, starting from 0.", required = true) From 3c68f1fdee16a86e7483f480839dd83feb9cda1f Mon Sep 17 00:00:00 2001 From: Jacopo Date: Mon, 18 Dec 2023 20:19:03 +0100 Subject: [PATCH 11/20] find all --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 0b22acf7..2e2499a7 100644 --- a/.gitignore +++ b/.gitignore @@ -40,3 +40,4 @@ hs_err_pid* /docker/.env /.cache/ /docker/secrets +/.cache_ggshield From ebadfdfb5f46713ba6dc984aed5725f00aa2c5de Mon Sep 17 00:00:00 2001 From: pagopa-github-bot Date: Mon, 18 Dec 2023 19:44:40 +0000 Subject: [PATCH 12/20] Bump to version 1.8.6-7-export-iban [skip ci] --- helm/Chart.yaml | 4 +- helm/values-dev.yaml | 2 +- helm/values-prod.yaml | 2 +- helm/values-uat.yaml | 2 +- openapi/openapi.json | 2637 ++++++++++++++++++++++------------------- pom.xml | 2 +- 6 files changed, 1400 insertions(+), 1249 deletions(-) diff --git a/helm/Chart.yaml b/helm/Chart.yaml index 5ae03a5e..bbfcccfa 100644 --- a/helm/Chart.yaml +++ b/helm/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: pagopa-api-config-selfcare-integration description: Microservice that manages requests from selfcare type: application -version: 1.45.0 -appVersion: 1.8.6-6-export-iban +version: 1.46.0 +appVersion: 1.8.6-7-export-iban dependencies: - name: microservice-chart version: 2.8.0 diff --git a/helm/values-dev.yaml b/helm/values-dev.yaml index fbc1df8e..09659fdc 100644 --- a/helm/values-dev.yaml +++ b/helm/values-dev.yaml @@ -9,7 +9,7 @@ microservice-chart: maxSurge: 1 image: repository: ghcr.io/pagopa/pagopa-api-config-selfcare-integration - tag: "1.8.6-6-export-iban" + tag: "1.8.6-7-export-iban" pullPolicy: Always livenessProbe: httpGet: diff --git a/helm/values-prod.yaml b/helm/values-prod.yaml index 16d3efbc..a83a84f8 100644 --- a/helm/values-prod.yaml +++ b/helm/values-prod.yaml @@ -9,7 +9,7 @@ microservice-chart: maxSurge: 1 image: repository: ghcr.io/pagopa/pagopa-api-config-selfcare-integration - tag: "1.8.6-6-export-iban" + tag: "1.8.6-7-export-iban" pullPolicy: Always livenessProbe: httpGet: diff --git a/helm/values-uat.yaml b/helm/values-uat.yaml index 0cabfd62..26e5effb 100644 --- a/helm/values-uat.yaml +++ b/helm/values-uat.yaml @@ -9,7 +9,7 @@ microservice-chart: maxSurge: 1 image: repository: ghcr.io/pagopa/pagopa-api-config-selfcare-integration - tag: "1.8.6-6-export-iban" + tag: "1.8.6-7-export-iban" pullPolicy: Always livenessProbe: httpGet: diff --git a/openapi/openapi.json b/openapi/openapi.json index 152fa9ce..3858e9fc 100644 --- a/openapi/openapi.json +++ b/openapi/openapi.json @@ -1,1582 +1,1733 @@ { - "openapi" : "3.0.1", - "info" : { - "title" : "@project.name@", - "description" : "@project.description@", - "termsOfService" : "https://www.pagopa.gov.it/", - "version" : "1.8.4-2-PASELC-658-be-api-config-nuova-api-get-per-recupero-iban-da-lista-ec" + "openapi": "3.0.1", + "info": { + "title": "@project.name@", + "description": "@project.description@", + "termsOfService": "https://www.pagopa.gov.it/", + "version": "1.8.6-7-export-iban" }, - "servers" : [ { - "url" : "http://localhost", - "description" : "Generated server url" - } ], - "tags" : [ { - "name" : "PSP Brokers", - "description" : "Everything about PSP's brokers" - }, { - "name" : "Ibans", - "description" : "Everything about IBANs" - }, { - "name" : "Creditor Institutions", - "description" : "Everything about Creditor Institution" - }, { - "name" : "Brokers", - "description" : "Everything about brokers" - } ], - "paths" : { - "/brokers/{brokerId}/stations" : { - "get" : { - "tags" : [ "Brokers" ], - "summary" : "Get broker's station list", - "operationId" : "getStationsDetailsFromBroker", - "parameters" : [ { - "name" : "brokerId", - "in" : "path", - "description" : "The identifier of the broker.", - "required" : true, - "schema" : { - "type" : "string" - } - }, { - "name" : "stationId", - "in" : "query", - "description" : "The identifier of the station.", - "required" : false, - "schema" : { - "type" : "string" - } - }, { - "name" : "limit", - "in" : "query", - "description" : "The number of elements to be included in the page.", - "required" : true, - "schema" : { - "maximum" : 999, - "type" : "integer", - "format" : "int32", - "default" : 10 - } - }, { - "name" : "page", - "in" : "query", - "description" : "The index of the page, starting from 0.", - "required" : true, - "schema" : { - "minimum" : 0, - "type" : "integer", - "format" : "int32", - "default" : 0 + "servers": [ + { + "url": "http://localhost", + "description": "Generated server url" + } + ], + "tags": [ + { + "name": "PSP Brokers", + "description": "Everything about PSP's brokers" + }, + { + "name": "Ibans", + "description": "Everything about IBANs" + }, + { + "name": "Creditor Institutions", + "description": "Everything about Creditor Institution" + }, + { + "name": "Brokers", + "description": "Everything about brokers" + } + ], + "paths": { + "/brokers/{brokerId}/stations": { + "get": { + "tags": [ + "Brokers" + ], + "summary": "Get broker's station list", + "operationId": "getStationsDetailsFromBroker", + "parameters": [ + { + "name": "brokerId", + "in": "path", + "description": "The identifier of the broker.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "stationId", + "in": "query", + "description": "The identifier of the station.", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "limit", + "in": "query", + "description": "The number of elements to be included in the page.", + "required": true, + "schema": { + "maximum": 999, + "type": "integer", + "format": "int32", + "default": 10 + } + }, + { + "name": "page", + "in": "query", + "description": "The index of the page, starting from 0.", + "required": true, + "schema": { + "minimum": 0, + "type": "integer", + "format": "int32", + "default": 0 + } } - } ], - "responses" : { - "200" : { - "description" : "OK", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } }, - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/StationDetailsList" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/StationDetailsList" } } } }, - "401" : { - "description" : "Unauthorized", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "401": { + "description": "Unauthorized", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "403" : { - "description" : "Forbidden", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "403": { + "description": "Forbidden", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "404" : { - "description" : "Not Found", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "404": { + "description": "Not Found", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } }, - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } } } }, - "429" : { - "description" : "Too many requests", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "429": { + "description": "Too many requests", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "500" : { - "description" : "Service unavailable", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "500": { + "description": "Service unavailable", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } }, - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } } } } }, - "security" : [ { - "ApiKey" : [ ] - }, { - "Authorization" : [ ] - } ] + "security": [ + { + "ApiKey": [] + }, + { + "Authorization": [] + } + ] }, - "parameters" : [ { - "name" : "X-Request-Id", - "in" : "header", - "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema" : { - "type" : "string" + "parameters": [ + { + "name": "X-Request-Id", + "in": "header", + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema": { + "type": "string" + } } - } ] + ] }, - "/brokerspsp/{brokerId}/channels" : { - "get" : { - "tags" : [ "PSP Brokers" ], - "summary" : "Get PSP broker's channel list", - "operationId" : "getChannelDetailsFromPSPBroker", - "parameters" : [ { - "name" : "brokerId", - "in" : "path", - "description" : "The identifier of the PSP broker.", - "required" : true, - "schema" : { - "type" : "string" - } - }, { - "name" : "channelId", - "in" : "query", - "description" : "The identifier of the channel.", - "required" : false, - "schema" : { - "type" : "string" - } - }, { - "name" : "limit", - "in" : "query", - "description" : "The number of elements to be included in the page.", - "required" : true, - "schema" : { - "maximum" : 999, - "type" : "integer", - "format" : "int32", - "default" : 10 - } - }, { - "name" : "page", - "in" : "query", - "description" : "The index of the page, starting from 0.", - "required" : true, - "schema" : { - "minimum" : 0, - "type" : "integer", - "format" : "int32", - "default" : 0 + "/brokerspsp/{brokerId}/channels": { + "get": { + "tags": [ + "PSP Brokers" + ], + "summary": "Get PSP broker's channel list", + "operationId": "getChannelDetailsFromPSPBroker", + "parameters": [ + { + "name": "brokerId", + "in": "path", + "description": "The identifier of the PSP broker.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "channelId", + "in": "query", + "description": "The identifier of the channel.", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "limit", + "in": "query", + "description": "The number of elements to be included in the page.", + "required": true, + "schema": { + "maximum": 999, + "type": "integer", + "format": "int32", + "default": 10 + } + }, + { + "name": "page", + "in": "query", + "description": "The index of the page, starting from 0.", + "required": true, + "schema": { + "minimum": 0, + "type": "integer", + "format": "int32", + "default": 0 + } } - } ], - "responses" : { - "200" : { - "description" : "OK", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } }, - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ChannelDetailsList" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ChannelDetailsList" } } } }, - "401" : { - "description" : "Unauthorized", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "401": { + "description": "Unauthorized", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "403" : { - "description" : "Forbidden", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "403": { + "description": "Forbidden", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "404" : { - "description" : "Not Found", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "404": { + "description": "Not Found", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } }, - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } } } }, - "429" : { - "description" : "Too many requests", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "429": { + "description": "Too many requests", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "500" : { - "description" : "Service unavailable", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "500": { + "description": "Service unavailable", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } }, - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } } } } }, - "security" : [ { - "ApiKey" : [ ] - }, { - "Authorization" : [ ] - } ] + "security": [ + { + "ApiKey": [] + }, + { + "Authorization": [] + } + ] }, - "parameters" : [ { - "name" : "X-Request-Id", - "in" : "header", - "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema" : { - "type" : "string" + "parameters": [ + { + "name": "X-Request-Id", + "in": "header", + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema": { + "type": "string" + } } - } ] + ] }, - "/creditorinstitutions/{creditorInstitutionCode}/applicationcodes" : { - "get" : { - "tags" : [ "Creditor Institutions" ], - "summary" : "Get application code associations with creditor institution", - "operationId" : "getApplicationCodesFromCreditorInstitution", - "parameters" : [ { - "name" : "creditorInstitutionCode", - "in" : "path", - "description" : "Organization fiscal code, the fiscal code of the Organization.", - "required" : true, - "schema" : { - "type" : "string" - } - }, { - "name" : "showUsedCodes", - "in" : "query", - "description" : "The flag that permits to show the codes already used. Default: true", - "required" : false, - "schema" : { - "type" : "boolean", - "default" : true + "/creditorinstitutions/{creditorInstitutionCode}/applicationcodes": { + "get": { + "tags": [ + "Creditor Institutions" + ], + "summary": "Get application code associations with creditor institution", + "operationId": "getApplicationCodesFromCreditorInstitution", + "parameters": [ + { + "name": "creditorInstitutionCode", + "in": "path", + "description": "Organization fiscal code, the fiscal code of the Organization.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "showUsedCodes", + "in": "query", + "description": "The flag that permits to show the codes already used. Default: true", + "required": false, + "schema": { + "type": "boolean", + "default": true + } } - } ], - "responses" : { - "200" : { - "description" : "OK", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } }, - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/CIAssociatedCodeList" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CIAssociatedCodeList" } } } }, - "401" : { - "description" : "Unauthorized", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "401": { + "description": "Unauthorized", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "403" : { - "description" : "Forbidden", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "403": { + "description": "Forbidden", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "404" : { - "description" : "Not Found", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "404": { + "description": "Not Found", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } }, - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } } } }, - "429" : { - "description" : "Too many requests", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "429": { + "description": "Too many requests", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "500" : { - "description" : "Service unavailable", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "500": { + "description": "Service unavailable", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } }, - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } } } } }, - "security" : [ { - "ApiKey" : [ ] - }, { - "Authorization" : [ ] - } ] + "security": [ + { + "ApiKey": [] + }, + { + "Authorization": [] + } + ] }, - "parameters" : [ { - "name" : "X-Request-Id", - "in" : "header", - "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema" : { - "type" : "string" + "parameters": [ + { + "name": "X-Request-Id", + "in": "header", + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema": { + "type": "string" + } } - } ] + ] }, - "/creditorinstitutions/{creditorInstitutionCode}/segregationcodes" : { - "get" : { - "tags" : [ "Creditor Institutions" ], - "summary" : "Get segregation code associations with creditor institution", - "operationId" : "getSegregationCodesFromCreditorInstitution", - "parameters" : [ { - "name" : "creditorInstitutionCode", - "in" : "path", - "description" : "Organization fiscal code, the fiscal code of the Organization.", - "required" : true, - "schema" : { - "type" : "string" - } - }, { - "name" : "showUsedCodes", - "in" : "query", - "description" : "The flag that permits to show the codes already used. Default: true", - "required" : false, - "schema" : { - "type" : "boolean", - "default" : true - } - }, { - "name" : "service", - "in" : "query", - "description" : "The service endpoint, to be used as a search filter to obtain only the segregation codes used by the CI for stations using same endpoint service. Default: null", - "required" : false, - "schema" : { - "type" : "string" + "/creditorinstitutions/{creditorInstitutionCode}/segregationcodes": { + "get": { + "tags": [ + "Creditor Institutions" + ], + "summary": "Get segregation code associations with creditor institution", + "operationId": "getSegregationCodesFromCreditorInstitution", + "parameters": [ + { + "name": "creditorInstitutionCode", + "in": "path", + "description": "Organization fiscal code, the fiscal code of the Organization.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "showUsedCodes", + "in": "query", + "description": "The flag that permits to show the codes already used. Default: true", + "required": false, + "schema": { + "type": "boolean", + "default": true + } + }, + { + "name": "service", + "in": "query", + "description": "The service endpoint, to be used as a search filter to obtain only the segregation codes used by the CI for stations using same endpoint service. Default: null", + "required": false, + "schema": { + "type": "string" + } } - } ], - "responses" : { - "200" : { - "description" : "OK", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } }, - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/CIAssociatedCodeList" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CIAssociatedCodeList" } } } }, - "401" : { - "description" : "Unauthorized", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "401": { + "description": "Unauthorized", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "403" : { - "description" : "Forbidden", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "403": { + "description": "Forbidden", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "404" : { - "description" : "Not Found", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "404": { + "description": "Not Found", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } }, - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } } } }, - "429" : { - "description" : "Too many requests", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "429": { + "description": "Too many requests", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "500" : { - "description" : "Service unavailable", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "500": { + "description": "Service unavailable", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } }, - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } } } } }, - "security" : [ { - "ApiKey" : [ ] - }, { - "Authorization" : [ ] - } ] + "security": [ + { + "ApiKey": [] + }, + { + "Authorization": [] + } + ] }, - "parameters" : [ { - "name" : "X-Request-Id", - "in" : "header", - "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema" : { - "type" : "string" + "parameters": [ + { + "name": "X-Request-Id", + "in": "header", + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema": { + "type": "string" + } } - } ] + ] }, - "/creditorinstitutions/{creditorInstitutionCode}/stations" : { - "get" : { - "tags" : [ "Creditor Institutions" ], - "summary" : "Get creditor institution station list", - "operationId" : "getStationsDetailsFromCreditorInstitution", - "parameters" : [ { - "name" : "creditorInstitutionCode", - "in" : "path", - "description" : "Organization fiscal code, the fiscal code of the Organization.", - "required" : true, - "schema" : { - "type" : "string" - } - }, { - "name" : "limit", - "in" : "query", - "description" : "The number of elements to be included in the page.", - "required" : true, - "schema" : { - "maximum" : 999, - "type" : "integer", - "format" : "int32", - "default" : 10 - } - }, { - "name" : "page", - "in" : "query", - "description" : "The index of the page, starting from 0.", - "required" : true, - "schema" : { - "minimum" : 0, - "type" : "integer", - "format" : "int32", - "default" : 0 + "/creditorinstitutions/{creditorInstitutionCode}/stations": { + "get": { + "tags": [ + "Creditor Institutions" + ], + "summary": "Get creditor institution station list", + "operationId": "getStationsDetailsFromCreditorInstitution", + "parameters": [ + { + "name": "creditorInstitutionCode", + "in": "path", + "description": "Organization fiscal code, the fiscal code of the Organization.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "limit", + "in": "query", + "description": "The number of elements to be included in the page.", + "required": true, + "schema": { + "maximum": 999, + "type": "integer", + "format": "int32", + "default": 10 + } + }, + { + "name": "page", + "in": "query", + "description": "The index of the page, starting from 0.", + "required": true, + "schema": { + "minimum": 0, + "type": "integer", + "format": "int32", + "default": 0 + } } - } ], - "responses" : { - "200" : { - "description" : "OK", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } }, - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/StationDetailsList" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/StationDetailsList" } } } }, - "401" : { - "description" : "Unauthorized", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "401": { + "description": "Unauthorized", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "403" : { - "description" : "Forbidden", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "403": { + "description": "Forbidden", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "404" : { - "description" : "Not Found", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "404": { + "description": "Not Found", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } }, - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } } } }, - "429" : { - "description" : "Too many requests", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "429": { + "description": "Too many requests", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "500" : { - "description" : "Service unavailable", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "500": { + "description": "Service unavailable", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } }, - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } } } } }, - "security" : [ { - "ApiKey" : [ ] - }, { - "Authorization" : [ ] - } ] + "security": [ + { + "ApiKey": [] + }, + { + "Authorization": [] + } + ] }, - "parameters" : [ { - "name" : "X-Request-Id", - "in" : "header", - "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema" : { - "type" : "string" + "parameters": [ + { + "name": "X-Request-Id", + "in": "header", + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema": { + "type": "string" + } } - } ] + ] }, - "/ibans" : { - "post" : { - "tags" : [ "Ibans" ], - "summary" : "Get the paginated list of all IBANs, filtering by creditor institution", - "operationId" : "getIbans", - "parameters" : [ { - "name" : "limit", - "in" : "query", - "description" : "The number of elements to be included in the page.", - "required" : true, - "schema" : { - "maximum" : 999, - "type" : "integer", - "format" : "int32", - "default" : 10 - } - }, { - "name" : "page", - "in" : "query", - "description" : "The index of the page, starting from 0.", - "required" : true, - "schema" : { - "minimum" : 0, - "type" : "integer", - "format" : "int32", - "default" : 0 + "/ibans": { + "post": { + "tags": [ + "Ibans" + ], + "summary": "Get the paginated list of all IBANs, filtering by creditor institution", + "operationId": "getIbans", + "parameters": [ + { + "name": "limit", + "in": "query", + "description": "The number of elements to be included in the page.", + "required": true, + "schema": { + "maximum": 999, + "type": "integer", + "format": "int32", + "default": 10 + } + }, + { + "name": "page", + "in": "query", + "description": "The index of the page, starting from 0.", + "required": true, + "schema": { + "minimum": 0, + "type": "integer", + "format": "int32", + "default": 0 + } } - } ], - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "type" : "array", - "items" : { - "type" : "string" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "string" } } } }, - "required" : true + "required": true }, - "responses" : { - "200" : { - "description" : "OK", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "responses": { + "200": { + "description": "OK", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } }, - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/IbansList" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/IbansList" } } } }, - "401" : { - "description" : "Unauthorized", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "401": { + "description": "Unauthorized", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "403" : { - "description" : "Forbidden", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "403": { + "description": "Forbidden", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "404" : { - "description" : "Not Found", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "404": { + "description": "Not Found", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } }, - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } } } }, - "429" : { - "description" : "Too many requests", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "429": { + "description": "Too many requests", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "500" : { - "description" : "Service unavailable", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "500": { + "description": "Service unavailable", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } }, - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } } } } }, - "security" : [ { - "ApiKey" : [ ] - }, { - "Authorization" : [ ] - } ] + "security": [ + { + "ApiKey": [] + }, + { + "Authorization": [] + } + ] }, - "parameters" : [ { - "name" : "X-Request-Id", - "in" : "header", - "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema" : { - "type" : "string" + "parameters": [ + { + "name": "X-Request-Id", + "in": "header", + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema": { + "type": "string" + } } - } ] + ] }, - "/info" : { - "get" : { - "tags" : [ "Home" ], - "summary" : "Return OK if application is started", - "operationId" : "healthCheck", - "responses" : { - "200" : { - "description" : "OK", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "/info": { + "get": { + "tags": [ + "Home" + ], + "summary": "Return OK if application is started", + "operationId": "healthCheck", + "responses": { + "200": { + "description": "OK", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } }, - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/AppInfo" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppInfo" } } } }, - "400" : { - "description" : "Bad Request", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "400": { + "description": "Bad Request", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } }, - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } } } }, - "401" : { - "description" : "Unauthorized", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "401": { + "description": "Unauthorized", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "403" : { - "description" : "Forbidden", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "403": { + "description": "Forbidden", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "429" : { - "description" : "Too many requests", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "429": { + "description": "Too many requests", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "500" : { - "description" : "Service unavailable", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "500": { + "description": "Service unavailable", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } }, - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } } } } }, - "security" : [ { - "ApiKey" : [ ] - }, { - "Authorization" : [ ] - } ] + "security": [ + { + "ApiKey": [] + }, + { + "Authorization": [] + } + ] }, - "parameters" : [ { - "name" : "X-Request-Id", - "in" : "header", - "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema" : { - "type" : "string" + "parameters": [ + { + "name": "X-Request-Id", + "in": "header", + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema": { + "type": "string" + } } - } ] + ] } }, - "components" : { - "schemas" : { - "IbanDetails" : { - "type" : "object", - "properties" : { - "ci_fiscal_code" : { - "type" : "string" - }, - "ci_name" : { - "type" : "string" - }, - "iban" : { - "type" : "string" - }, - "inserted_date" : { - "type" : "string", - "format" : "date-time" - }, - "validity_date" : { - "type" : "string", - "format" : "date-time" - }, - "due_date" : { - "type" : "string", - "format" : "date-time" - }, - "description" : { - "type" : "string" - }, - "owner_fiscal_code" : { - "type" : "string" - }, - "labels" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/IbanLabel" + "components": { + "schemas": { + "IbanDetails": { + "type": "object", + "properties": { + "ci_fiscal_code": { + "type": "string" + }, + "ci_name": { + "type": "string" + }, + "iban": { + "type": "string" + }, + "inserted_date": { + "type": "string", + "format": "date-time" + }, + "validity_date": { + "type": "string", + "format": "date-time" + }, + "due_date": { + "type": "string", + "format": "date-time" + }, + "description": { + "type": "string" + }, + "owner_fiscal_code": { + "type": "string" + }, + "labels": { + "type": "array", + "items": { + "$ref": "#/components/schemas/IbanLabel" } } }, - "description" : "List of IBANs associated to the passed creditor institutions" + "description": "List of IBANs associated to the passed creditor institutions" }, - "IbanLabel" : { - "type" : "object", - "properties" : { - "name" : { - "type" : "string" - }, - "description" : { - "type" : "string" + "IbanLabel": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string" } } }, - "IbansList" : { - "required" : [ "ibans", "page_info" ], - "type" : "object", - "properties" : { - "ibans" : { - "type" : "array", - "description" : "List of IBANs associated to the passed creditor institutions", - "items" : { - "$ref" : "#/components/schemas/IbanDetails" - } - }, - "page_info" : { - "$ref" : "#/components/schemas/PageInfo" + "IbansList": { + "required": [ + "ibans", + "page_info" + ], + "type": "object", + "properties": { + "ibans": { + "type": "array", + "description": "List of IBANs associated to the passed creditor institutions", + "items": { + "$ref": "#/components/schemas/IbanDetails" + } + }, + "page_info": { + "$ref": "#/components/schemas/PageInfo" } } }, - "PageInfo" : { - "type" : "object", - "properties" : { - "page" : { - "type" : "integer", - "description" : "Page number", - "format" : "int32" - }, - "limit" : { - "type" : "integer", - "description" : "Required number of items per page", - "format" : "int32" - }, - "items_found" : { - "type" : "integer", - "description" : "Number of items found. (The last page may have fewer elements than required)", - "format" : "int32" - }, - "total_pages" : { - "type" : "integer", - "description" : "Total number of pages", - "format" : "int32" - }, - "total_items" : { - "type" : "integer", - "description" : "Total number of items for all pages", - "format" : "int64" + "PageInfo": { + "type": "object", + "properties": { + "page": { + "type": "integer", + "description": "Page number", + "format": "int32" + }, + "limit": { + "type": "integer", + "description": "Required number of items per page", + "format": "int32" + }, + "items_found": { + "type": "integer", + "description": "Number of items found. (The last page may have fewer elements than required)", + "format": "int32" + }, + "total_pages": { + "type": "integer", + "description": "Total number of pages", + "format": "int32" + }, + "total_items": { + "type": "integer", + "description": "Total number of items for all pages", + "format": "int64" } } }, - "ProblemJson" : { - "type" : "object", - "properties" : { - "title" : { - "type" : "string", - "description" : "A short, summary of the problem type. Written in english and readable for engineers (usually not suited for non technical stakeholders and not localized); example: Service Unavailable" - }, - "status" : { - "maximum" : 600, - "minimum" : 100, - "type" : "integer", - "description" : "The HTTP status code generated by the origin server for this occurrence of the problem.", - "format" : "int32", - "example" : 200 - }, - "detail" : { - "type" : "string", - "description" : "A human readable explanation specific to this occurrence of the problem.", - "example" : "There was an error processing the request" + "ProblemJson": { + "type": "object", + "properties": { + "title": { + "type": "string", + "description": "A short, summary of the problem type. Written in english and readable for engineers (usually not suited for non technical stakeholders and not localized); example: Service Unavailable" + }, + "status": { + "maximum": 600, + "minimum": 100, + "type": "integer", + "description": "The HTTP status code generated by the origin server for this occurrence of the problem.", + "format": "int32", + "example": 200 + }, + "detail": { + "type": "string", + "description": "A human readable explanation specific to this occurrence of the problem.", + "example": "There was an error processing the request" } } }, - "AppInfo" : { - "type" : "object", - "properties" : { - "name" : { - "type" : "string" + "AppInfo": { + "type": "object", + "properties": { + "name": { + "type": "string" }, - "version" : { - "type" : "string" + "version": { + "type": "string" }, - "environment" : { - "type" : "string" + "environment": { + "type": "string" }, - "dbConnection" : { - "type" : "string" + "dbConnection": { + "type": "string" } } }, - "BrokerDetails" : { - "required" : [ "broker_code", "broker_details", "enabled", "extended_fault_bean" ], - "type" : "object", - "properties" : { - "broker_code" : { - "maxLength" : 35, - "minLength" : 0, - "type" : "string", - "description" : "Code used to identify the intermediate EC", - "example" : "223344556677889900" - }, - "broker_details" : { - "type" : "string", - "description" : "Name and generic details of the intermediate EC", - "example" : "Regione Veneto" - }, - "enabled" : { - "type" : "boolean", - "description" : "Parameter to find out whether or not the intermediate has been enabled" - }, - "extended_fault_bean" : { - "type" : "boolean", - "description" : "Parameter to find out whether or not the extended fault bean has been enabled" + "BrokerDetails": { + "required": [ + "broker_code", + "broker_details", + "enabled", + "extended_fault_bean" + ], + "type": "object", + "properties": { + "broker_code": { + "maxLength": 35, + "minLength": 0, + "type": "string", + "description": "Code used to identify the intermediate EC", + "example": "223344556677889900" + }, + "broker_details": { + "type": "string", + "description": "Name and generic details of the intermediate EC", + "example": "Regione Veneto" + }, + "enabled": { + "type": "boolean", + "description": "Parameter to find out whether or not the intermediate has been enabled" + }, + "extended_fault_bean": { + "type": "boolean", + "description": "Parameter to find out whether or not the extended fault bean has been enabled" } }, - "description" : "Details of the intermediate EC of the station" + "description": "Details of the intermediate EC of the station" }, - "StationDetails" : { - "required" : [ "broker_details", "enabled", "port", "primitive_version", "protocol", "station_code", "thread_number", "timeout_a", "timeout_b", "timeout_c", "version" ], - "type" : "object", - "properties" : { - "station_code" : { - "maxLength" : 35, - "minLength" : 0, - "type" : "string", - "description" : "Unique code to identify the station", - "example" : "1234567890100" - }, - "enabled" : { - "type" : "boolean", - "description" : "Parameter to find out whether or not the station has been enabled", - "default" : true - }, - "broker_description" : { - "type" : "string", - "description" : "A description of the intermediate EC", - "example" : "Regione Lazio" - }, - "version" : { - "maximum" : 2, - "minimum" : 1, - "type" : "integer", - "description" : "The version of the station", - "format" : "int64" - }, - "ip" : { - "type" : "string", - "description" : "Ip address of the station" - }, - "new_password" : { - "type" : "string", - "description" : "New password of the station" - }, - "password" : { - "type" : "string", - "description" : "Password of the station" - }, - "port" : { - "maximum" : 65535, - "minimum" : 1, - "type" : "integer", - "description" : "Port address of the station", - "format" : "int64" - }, - "protocol" : { - "type" : "string", - "description" : "Protocol associated to the station", - "enum" : [ "HTTPS", "HTTP" ] - }, - "redirect_ip" : { - "type" : "string", - "description" : "Redirect ip address of the station" - }, - "redirect_path" : { - "type" : "string", - "description" : "Redirect path of the station" - }, - "redirect_port" : { - "maximum" : 65535, - "minimum" : 1, - "type" : "integer", - "description" : "Redirect port address of the station", - "format" : "int64" - }, - "redirect_query_string" : { - "type" : "string", - "description" : "Redirect query string of the station" - }, - "redirect_protocol" : { - "type" : "string", - "description" : "Redirect protocol associated to the station", - "enum" : [ "HTTPS", "HTTP" ] - }, - "service" : { - "type" : "string" - }, - "pof_service" : { - "type" : "string" - }, - "broker_details" : { - "$ref" : "#/components/schemas/BrokerDetails" - }, - "protocol_4mod" : { - "type" : "string", - "description" : "Protocol 4mod associated to the station", - "enum" : [ "HTTPS", "HTTP" ] - }, - "ip_4mod" : { - "type" : "string", - "description" : "Ip address 4mod associated to the station" - }, - "port_4mod" : { - "maximum" : 65535, - "minimum" : 1, - "type" : "integer", - "description" : "Port address 4mod associated to the station", - "format" : "int64" - }, - "service_4mod" : { - "type" : "string" - }, - "proxy_enabled" : { - "type" : "boolean", - "description" : "Parameter to inspect if the proxy has been enabled for this station" - }, - "proxy_host" : { - "type" : "string", - "description" : "Proxy host" - }, - "proxy_port" : { - "maximum" : 65535, - "minimum" : 1, - "type" : "integer", - "description" : "Proxy port address", - "format" : "int64" - }, - "proxy_username" : { - "type" : "string" - }, - "proxy_password" : { - "type" : "string" - }, - "thread_number" : { - "minimum" : 1, - "type" : "integer", - "format" : "int64" - }, - "timeout_a" : { - "minimum" : 0, - "type" : "integer", - "format" : "int64" - }, - "timeout_b" : { - "minimum" : 0, - "type" : "integer", - "format" : "int64" - }, - "timeout_c" : { - "minimum" : 0, - "type" : "integer", - "format" : "int64" - }, - "flag_online" : { - "type" : "boolean" - }, - "invio_rt_istantaneo" : { - "type" : "boolean", - "description" : "Parameter useful to find out if the instantaneous rt has been enabled" - }, - "target_host" : { - "type" : "string", - "description" : "Target address of the station" - }, - "target_port" : { - "type" : "integer", - "description" : "Port address target associated to the station", - "format" : "int64" - }, - "target_path" : { - "type" : "string", - "description" : "Target path of the station" - }, - "target_host_pof" : { - "type" : "string", - "description" : "Pof address associated to the station" - }, - "target_port_pof" : { - "type" : "integer", - "description" : "Port address pof associated to the station", - "format" : "int64" - }, - "target_path_pof" : { - "type" : "string", - "description" : "Pof path associated to the station" - }, - "primitive_version" : { - "maximum" : 2, - "minimum" : 1, - "type" : "integer", - "description" : "Primitive number version", - "format" : "int32", - "enum" : [ 1, 2 ] + "StationDetails": { + "required": [ + "broker_details", + "enabled", + "port", + "primitive_version", + "protocol", + "station_code", + "thread_number", + "timeout_a", + "timeout_b", + "timeout_c", + "version" + ], + "type": "object", + "properties": { + "station_code": { + "maxLength": 35, + "minLength": 0, + "type": "string", + "description": "Unique code to identify the station", + "example": "1234567890100" + }, + "enabled": { + "type": "boolean", + "description": "Parameter to find out whether or not the station has been enabled", + "default": true + }, + "broker_description": { + "type": "string", + "description": "A description of the intermediate EC", + "example": "Regione Lazio" + }, + "version": { + "maximum": 2, + "minimum": 1, + "type": "integer", + "description": "The version of the station", + "format": "int64" + }, + "ip": { + "type": "string", + "description": "Ip address of the station" + }, + "new_password": { + "type": "string", + "description": "New password of the station" + }, + "password": { + "type": "string", + "description": "Password of the station" + }, + "port": { + "maximum": 65535, + "minimum": 1, + "type": "integer", + "description": "Port address of the station", + "format": "int64" + }, + "protocol": { + "type": "string", + "description": "Protocol associated to the station", + "enum": [ + "HTTPS", + "HTTP" + ] + }, + "redirect_ip": { + "type": "string", + "description": "Redirect ip address of the station" + }, + "redirect_path": { + "type": "string", + "description": "Redirect path of the station" + }, + "redirect_port": { + "maximum": 65535, + "minimum": 1, + "type": "integer", + "description": "Redirect port address of the station", + "format": "int64" + }, + "redirect_query_string": { + "type": "string", + "description": "Redirect query string of the station" + }, + "redirect_protocol": { + "type": "string", + "description": "Redirect protocol associated to the station", + "enum": [ + "HTTPS", + "HTTP" + ] + }, + "service": { + "type": "string" + }, + "pof_service": { + "type": "string" + }, + "broker_details": { + "$ref": "#/components/schemas/BrokerDetails" + }, + "protocol_4mod": { + "type": "string", + "description": "Protocol 4mod associated to the station", + "enum": [ + "HTTPS", + "HTTP" + ] + }, + "ip_4mod": { + "type": "string", + "description": "Ip address 4mod associated to the station" + }, + "port_4mod": { + "maximum": 65535, + "minimum": 1, + "type": "integer", + "description": "Port address 4mod associated to the station", + "format": "int64" + }, + "service_4mod": { + "type": "string" + }, + "proxy_enabled": { + "type": "boolean", + "description": "Parameter to inspect if the proxy has been enabled for this station" + }, + "proxy_host": { + "type": "string", + "description": "Proxy host" + }, + "proxy_port": { + "maximum": 65535, + "minimum": 1, + "type": "integer", + "description": "Proxy port address", + "format": "int64" + }, + "proxy_username": { + "type": "string" + }, + "proxy_password": { + "type": "string" + }, + "thread_number": { + "minimum": 1, + "type": "integer", + "format": "int64" + }, + "timeout_a": { + "minimum": 0, + "type": "integer", + "format": "int64" + }, + "timeout_b": { + "minimum": 0, + "type": "integer", + "format": "int64" + }, + "timeout_c": { + "minimum": 0, + "type": "integer", + "format": "int64" + }, + "flag_online": { + "type": "boolean" + }, + "invio_rt_istantaneo": { + "type": "boolean", + "description": "Parameter useful to find out if the instantaneous rt has been enabled" + }, + "target_host": { + "type": "string", + "description": "Target address of the station" + }, + "target_port": { + "type": "integer", + "description": "Port address target associated to the station", + "format": "int64" + }, + "target_path": { + "type": "string", + "description": "Target path of the station" + }, + "target_host_pof": { + "type": "string", + "description": "Pof address associated to the station" + }, + "target_port_pof": { + "type": "integer", + "description": "Port address pof associated to the station", + "format": "int64" + }, + "target_path_pof": { + "type": "string", + "description": "Pof path associated to the station" + }, + "primitive_version": { + "maximum": 2, + "minimum": 1, + "type": "integer", + "description": "Primitive number version", + "format": "int32", + "enum": [ + 1, + 2 + ] } }, - "description" : "List of stations associated to the same entity" + "description": "List of stations associated to the same entity" }, - "StationDetailsList" : { - "required" : [ "page_info", "stations" ], - "type" : "object", - "properties" : { - "stations" : { - "type" : "array", - "description" : "List of stations associated to the same entity", - "items" : { - "$ref" : "#/components/schemas/StationDetails" - } - }, - "page_info" : { - "$ref" : "#/components/schemas/PageInfo" + "StationDetailsList": { + "required": [ + "page_info", + "stations" + ], + "type": "object", + "properties": { + "stations": { + "type": "array", + "description": "List of stations associated to the same entity", + "items": { + "$ref": "#/components/schemas/StationDetails" + } + }, + "page_info": { + "$ref": "#/components/schemas/PageInfo" } } }, - "CIAssociatedCode" : { - "required" : [ "code" ], - "type" : "object", - "properties" : { - "code" : { - "maxLength" : 2, - "minLength" : 2, - "type" : "string", - "description" : "The code that bound uniquely a creditor institution to a station" - }, - "name" : { - "type" : "string", - "description" : "The name of the station associated to the creditor institution, if exists" + "CIAssociatedCode": { + "required": [ + "code" + ], + "type": "object", + "properties": { + "code": { + "maxLength": 2, + "minLength": 2, + "type": "string", + "description": "The code that bound uniquely a creditor institution to a station" + }, + "name": { + "type": "string", + "description": "The name of the station associated to the creditor institution, if exists" } }, - "description" : "List of codes not used for existing associations" + "description": "List of codes not used for existing associations" }, - "CIAssociatedCodeList" : { - "required" : [ "unused" ], - "type" : "object", - "properties" : { - "used" : { - "type" : "array", - "description" : "List of codes already used for existing associations", - "items" : { - "$ref" : "#/components/schemas/CIAssociatedCode" - } - }, - "unused" : { - "type" : "array", - "description" : "List of codes not used for existing associations", - "items" : { - "$ref" : "#/components/schemas/CIAssociatedCode" + "CIAssociatedCodeList": { + "required": [ + "unused" + ], + "type": "object", + "properties": { + "used": { + "type": "array", + "description": "List of codes already used for existing associations", + "items": { + "$ref": "#/components/schemas/CIAssociatedCode" + } + }, + "unused": { + "type": "array", + "description": "List of codes not used for existing associations", + "items": { + "$ref": "#/components/schemas/CIAssociatedCode" } } } }, - "ChannelDetails" : { - "required" : [ "agid", "broker_psp_code", "card_chart", "channel_code", "digital_stamp_brand", "enabled", "on_us", "payment_model", "port", "primitive_version", "protocol", "recovery", "rt_push", "thread_number", "timeout_a", "timeout_b", "timeout_c" ], - "type" : "object", - "properties" : { - "channel_code" : { - "type" : "string", - "example" : "223344556677889900" + "ChannelDetails": { + "required": [ + "agid", + "broker_psp_code", + "card_chart", + "channel_code", + "digital_stamp_brand", + "enabled", + "on_us", + "payment_model", + "port", + "primitive_version", + "protocol", + "recovery", + "rt_push", + "thread_number", + "timeout_a", + "timeout_b", + "timeout_c" + ], + "type": "object", + "properties": { + "channel_code": { + "type": "string", + "example": "223344556677889900" + }, + "enabled": { + "type": "boolean" + }, + "broker_description": { + "type": "string", + "description": "Broker description. Read only field", + "example": "Lorem ipsum dolor sit amet" + }, + "password": { + "type": "string" + }, + "new_password": { + "type": "string" + }, + "protocol": { + "type": "string", + "enum": [ + "HTTPS", + "HTTP" + ] + }, + "ip": { + "type": "string" + }, + "port": { + "maximum": 65535, + "minimum": 1, + "type": "integer", + "format": "int64" + }, + "service": { + "type": "string" + }, + "broker_psp_code": { + "type": "string" + }, + "proxy_enabled": { + "type": "boolean" + }, + "proxy_host": { + "type": "string" + }, + "proxy_port": { + "maximum": 65535, + "minimum": 1, + "type": "integer", + "format": "int64" + }, + "proxy_username": { + "type": "string" + }, + "proxy_password": { + "type": "string" + }, + "target_host": { + "type": "string" + }, + "target_port": { + "type": "integer", + "format": "int64" + }, + "target_path": { + "type": "string" + }, + "thread_number": { + "minimum": 1, + "type": "integer", + "format": "int64" + }, + "timeout_a": { + "minimum": 0, + "type": "integer", + "format": "int64" + }, + "timeout_b": { + "minimum": 0, + "type": "integer", + "format": "int64" + }, + "timeout_c": { + "minimum": 0, + "type": "integer", + "format": "int64" + }, + "nmp_service": { + "type": "string" + }, + "new_fault_code": { + "type": "boolean" + }, + "target_host_nmp": { + "type": "string" + }, + "target_port_nmp": { + "type": "integer", + "format": "int64" }, - "enabled" : { - "type" : "boolean" + "target_path_nmp": { + "type": "string" }, - "broker_description" : { - "type" : "string", - "description" : "Broker description. Read only field", - "example" : "Lorem ipsum dolor sit amet" + "redirect_ip": { + "type": "string" }, - "password" : { - "type" : "string" + "redirect_path": { + "type": "string" }, - "new_password" : { - "type" : "string" + "redirect_port": { + "maximum": 65535, + "minimum": 1, + "type": "integer", + "format": "int64" }, - "protocol" : { - "type" : "string", - "enum" : [ "HTTPS", "HTTP" ] + "redirect_query_string": { + "type": "string" }, - "ip" : { - "type" : "string" + "redirect_protocol": { + "type": "string", + "enum": [ + "HTTPS", + "HTTP" + ] }, - "port" : { - "maximum" : 65535, - "minimum" : 1, - "type" : "integer", - "format" : "int64" + "payment_model": { + "type": "string", + "enum": [ + "IMMEDIATE", + "IMMEDIATE_MULTIBENEFICIARY", + "DEFERRED", + "ACTIVATED_AT_PSP" + ] }, - "service" : { - "type" : "string" + "serv_plugin": { + "type": "string" }, - "broker_psp_code" : { - "type" : "string" + "rt_push": { + "type": "boolean" }, - "proxy_enabled" : { - "type" : "boolean" + "on_us": { + "type": "boolean" }, - "proxy_host" : { - "type" : "string" + "card_chart": { + "type": "boolean" }, - "proxy_port" : { - "maximum" : 65535, - "minimum" : 1, - "type" : "integer", - "format" : "int64" + "recovery": { + "type": "boolean" }, - "proxy_username" : { - "type" : "string" + "digital_stamp_brand": { + "type": "boolean" }, - "proxy_password" : { - "type" : "string" + "flag_io": { + "type": "boolean" }, - "target_host" : { - "type" : "string" + "flag_psp_cp": { + "type": "boolean" }, - "target_port" : { - "type" : "integer", - "format" : "int64" + "agid": { + "type": "boolean" }, - "target_path" : { - "type" : "string" - }, - "thread_number" : { - "minimum" : 1, - "type" : "integer", - "format" : "int64" - }, - "timeout_a" : { - "minimum" : 0, - "type" : "integer", - "format" : "int64" - }, - "timeout_b" : { - "minimum" : 0, - "type" : "integer", - "format" : "int64" - }, - "timeout_c" : { - "minimum" : 0, - "type" : "integer", - "format" : "int64" - }, - "nmp_service" : { - "type" : "string" - }, - "new_fault_code" : { - "type" : "boolean" - }, - "target_host_nmp" : { - "type" : "string" - }, - "target_port_nmp" : { - "type" : "integer", - "format" : "int64" - }, - "target_path_nmp" : { - "type" : "string" - }, - "redirect_ip" : { - "type" : "string" - }, - "redirect_path" : { - "type" : "string" - }, - "redirect_port" : { - "maximum" : 65535, - "minimum" : 1, - "type" : "integer", - "format" : "int64" - }, - "redirect_query_string" : { - "type" : "string" - }, - "redirect_protocol" : { - "type" : "string", - "enum" : [ "HTTPS", "HTTP" ] - }, - "payment_model" : { - "type" : "string", - "enum" : [ "IMMEDIATE", "IMMEDIATE_MULTIBENEFICIARY", "DEFERRED", "ACTIVATED_AT_PSP" ] - }, - "serv_plugin" : { - "type" : "string" - }, - "rt_push" : { - "type" : "boolean" - }, - "on_us" : { - "type" : "boolean" - }, - "card_chart" : { - "type" : "boolean" - }, - "recovery" : { - "type" : "boolean" - }, - "digital_stamp_brand" : { - "type" : "boolean" - }, - "flag_io" : { - "type" : "boolean" - }, - "flag_psp_cp" : { - "type" : "boolean" - }, - "agid" : { - "type" : "boolean" - }, - "primitive_version" : { - "maximum" : 2, - "minimum" : 1, - "type" : "integer", - "description" : "Primitive number version", - "format" : "int32" + "primitive_version": { + "maximum": 2, + "minimum": 1, + "type": "integer", + "description": "Primitive number version", + "format": "int32" } }, - "description" : "List of stations associated to the same entity" + "description": "List of stations associated to the same entity" }, - "ChannelDetailsList" : { - "required" : [ "channels", "page_info" ], - "type" : "object", - "properties" : { - "channels" : { - "type" : "array", - "description" : "List of stations associated to the same entity", - "items" : { - "$ref" : "#/components/schemas/ChannelDetails" - } - }, - "page_info" : { - "$ref" : "#/components/schemas/PageInfo" + "ChannelDetailsList": { + "required": [ + "channels", + "page_info" + ], + "type": "object", + "properties": { + "channels": { + "type": "array", + "description": "List of stations associated to the same entity", + "items": { + "$ref": "#/components/schemas/ChannelDetails" + } + }, + "page_info": { + "$ref": "#/components/schemas/PageInfo" } } } }, - "securitySchemes" : { - "ApiKey" : { - "type" : "apiKey", - "description" : "The API key to access this function app.", - "name" : "Ocp-Apim-Subscription-Key", - "in" : "header" + "securitySchemes": { + "ApiKey": { + "type": "apiKey", + "description": "The API key to access this function app.", + "name": "Ocp-Apim-Subscription-Key", + "in": "header" }, - "Authorization" : { - "type" : "http", - "description" : "JWT token get after Azure Login", - "scheme" : "bearer", - "bearerFormat" : "JWT" + "Authorization": { + "type": "http", + "description": "JWT token get after Azure Login", + "scheme": "bearer", + "bearerFormat": "JWT" } } } diff --git a/pom.xml b/pom.xml index 29fe2b56..7818d20a 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ it.gov.pagopa.api-config selfcareintegration - 1.8.6-6-export-iban + 1.8.6-7-export-iban API-Config - SelfCare Integration Spring application exposes APIs for SelfCare From c9404cd75888d4f95cdfe201863b6bfb8f85af53 Mon Sep 17 00:00:00 2001 From: pagopa-github-bot Date: Tue, 19 Dec 2023 11:20:35 +0000 Subject: [PATCH 13/20] Bump to version 1.8.6-8-export-iban [skip ci] --- helm/Chart.yaml | 4 ++-- helm/values-dev.yaml | 4 ++-- helm/values-prod.yaml | 4 ++-- helm/values-uat.yaml | 4 ++-- openapi/openapi.json | 2 +- pom.xml | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/helm/Chart.yaml b/helm/Chart.yaml index bbfcccfa..774749d7 100644 --- a/helm/Chart.yaml +++ b/helm/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: pagopa-api-config-selfcare-integration description: Microservice that manages requests from selfcare type: application -version: 1.46.0 -appVersion: 1.8.6-7-export-iban +version: 1.46.1 +appVersion: 1.8.6-8-export-iban dependencies: - name: microservice-chart version: 2.8.0 diff --git a/helm/values-dev.yaml b/helm/values-dev.yaml index 09659fdc..48d7b40b 100644 --- a/helm/values-dev.yaml +++ b/helm/values-dev.yaml @@ -119,7 +119,7 @@ microservice-chart: values: - user canaryDelivery: - create: false + create: true ingress: canary: type: header @@ -132,7 +132,7 @@ microservice-chart: create: true image: repository: ghcr.io/pagopa/pagopa-api-config-selfcare-integration - tag: 1.8.6-5-export-iban + tag: 1.8.6-8-export-iban pullPolicy: Always envConfig: {} envSecret: {} diff --git a/helm/values-prod.yaml b/helm/values-prod.yaml index a83a84f8..2e22c207 100644 --- a/helm/values-prod.yaml +++ b/helm/values-prod.yaml @@ -128,7 +128,7 @@ microservice-chart: namespaces: ["apiconfig"] topologyKey: topology.kubernetes.io/zone canaryDelivery: - create: false + create: true ingress: canary: type: header @@ -141,7 +141,7 @@ microservice-chart: create: true image: repository: ghcr.io/pagopa/pagopa-api-config-selfcare-integration - tag: 1.8.6-5-export-iban + tag: 1.8.6-8-export-iban pullPolicy: Always envConfig: {} envSecret: {} diff --git a/helm/values-uat.yaml b/helm/values-uat.yaml index 26e5effb..5c90ed73 100644 --- a/helm/values-uat.yaml +++ b/helm/values-uat.yaml @@ -119,7 +119,7 @@ microservice-chart: values: - user canaryDelivery: - create: false + create: true ingress: canary: type: header @@ -132,7 +132,7 @@ microservice-chart: create: true image: repository: ghcr.io/pagopa/pagopa-api-config-selfcare-integration - tag: 1.8.6-5-export-iban + tag: 1.8.6-8-export-iban pullPolicy: Always envConfig: {} envSecret: {} diff --git a/openapi/openapi.json b/openapi/openapi.json index 3858e9fc..8e063256 100644 --- a/openapi/openapi.json +++ b/openapi/openapi.json @@ -4,7 +4,7 @@ "title": "@project.name@", "description": "@project.description@", "termsOfService": "https://www.pagopa.gov.it/", - "version": "1.8.6-7-export-iban" + "version": "1.8.6-8-export-iban" }, "servers": [ { diff --git a/pom.xml b/pom.xml index 7818d20a..00c166c7 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ it.gov.pagopa.api-config selfcareintegration - 1.8.6-7-export-iban + 1.8.6-8-export-iban API-Config - SelfCare Integration Spring application exposes APIs for SelfCare From adadfcc6f09e60a844a1aa01378f3d38486b87a2 Mon Sep 17 00:00:00 2001 From: pagopa-github-bot Date: Tue, 19 Dec 2023 11:28:46 +0000 Subject: [PATCH 14/20] Bump to version 1.8.6-9-export-iban [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 +- pom.xml | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/helm/Chart.yaml b/helm/Chart.yaml index 774749d7..5d0c1565 100644 --- a/helm/Chart.yaml +++ b/helm/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: pagopa-api-config-selfcare-integration description: Microservice that manages requests from selfcare type: application -version: 1.46.1 -appVersion: 1.8.6-8-export-iban +version: 1.46.2 +appVersion: 1.8.6-9-export-iban dependencies: - name: microservice-chart version: 2.8.0 diff --git a/helm/values-dev.yaml b/helm/values-dev.yaml index 48d7b40b..7c44b5a6 100644 --- a/helm/values-dev.yaml +++ b/helm/values-dev.yaml @@ -132,7 +132,7 @@ microservice-chart: create: true image: repository: ghcr.io/pagopa/pagopa-api-config-selfcare-integration - tag: 1.8.6-8-export-iban + tag: 1.8.6-9-export-iban pullPolicy: Always envConfig: {} envSecret: {} diff --git a/helm/values-prod.yaml b/helm/values-prod.yaml index 2e22c207..7f45066e 100644 --- a/helm/values-prod.yaml +++ b/helm/values-prod.yaml @@ -141,7 +141,7 @@ microservice-chart: create: true image: repository: ghcr.io/pagopa/pagopa-api-config-selfcare-integration - tag: 1.8.6-8-export-iban + tag: 1.8.6-9-export-iban pullPolicy: Always envConfig: {} envSecret: {} diff --git a/helm/values-uat.yaml b/helm/values-uat.yaml index 5c90ed73..dc034b12 100644 --- a/helm/values-uat.yaml +++ b/helm/values-uat.yaml @@ -132,7 +132,7 @@ microservice-chart: create: true image: repository: ghcr.io/pagopa/pagopa-api-config-selfcare-integration - tag: 1.8.6-8-export-iban + tag: 1.8.6-9-export-iban pullPolicy: Always envConfig: {} envSecret: {} diff --git a/openapi/openapi.json b/openapi/openapi.json index 8e063256..14d66808 100644 --- a/openapi/openapi.json +++ b/openapi/openapi.json @@ -4,7 +4,7 @@ "title": "@project.name@", "description": "@project.description@", "termsOfService": "https://www.pagopa.gov.it/", - "version": "1.8.6-8-export-iban" + "version": "1.8.6-9-export-iban" }, "servers": [ { diff --git a/pom.xml b/pom.xml index 00c166c7..d0e84523 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ it.gov.pagopa.api-config selfcareintegration - 1.8.6-8-export-iban + 1.8.6-9-export-iban API-Config - SelfCare Integration Spring application exposes APIs for SelfCare From 61d6896abb643bb533cf5fb687795cb6acdde513 Mon Sep 17 00:00:00 2001 From: pagopa-github-bot Date: Tue, 19 Dec 2023 11:37:36 +0000 Subject: [PATCH 15/20] Bump to version 1.8.6-10-export-iban [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 +- pom.xml | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/helm/Chart.yaml b/helm/Chart.yaml index 5d0c1565..fa62c29d 100644 --- a/helm/Chart.yaml +++ b/helm/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: pagopa-api-config-selfcare-integration description: Microservice that manages requests from selfcare type: application -version: 1.46.2 -appVersion: 1.8.6-9-export-iban +version: 1.46.3 +appVersion: 1.8.6-10-export-iban dependencies: - name: microservice-chart version: 2.8.0 diff --git a/helm/values-dev.yaml b/helm/values-dev.yaml index 7c44b5a6..e72de067 100644 --- a/helm/values-dev.yaml +++ b/helm/values-dev.yaml @@ -132,7 +132,7 @@ microservice-chart: create: true image: repository: ghcr.io/pagopa/pagopa-api-config-selfcare-integration - tag: 1.8.6-9-export-iban + tag: 1.8.6-10-export-iban pullPolicy: Always envConfig: {} envSecret: {} diff --git a/helm/values-prod.yaml b/helm/values-prod.yaml index 7f45066e..86fcddb7 100644 --- a/helm/values-prod.yaml +++ b/helm/values-prod.yaml @@ -141,7 +141,7 @@ microservice-chart: create: true image: repository: ghcr.io/pagopa/pagopa-api-config-selfcare-integration - tag: 1.8.6-9-export-iban + tag: 1.8.6-10-export-iban pullPolicy: Always envConfig: {} envSecret: {} diff --git a/helm/values-uat.yaml b/helm/values-uat.yaml index dc034b12..1d45a16a 100644 --- a/helm/values-uat.yaml +++ b/helm/values-uat.yaml @@ -132,7 +132,7 @@ microservice-chart: create: true image: repository: ghcr.io/pagopa/pagopa-api-config-selfcare-integration - tag: 1.8.6-9-export-iban + tag: 1.8.6-10-export-iban pullPolicy: Always envConfig: {} envSecret: {} diff --git a/openapi/openapi.json b/openapi/openapi.json index 14d66808..a32fcfb6 100644 --- a/openapi/openapi.json +++ b/openapi/openapi.json @@ -4,7 +4,7 @@ "title": "@project.name@", "description": "@project.description@", "termsOfService": "https://www.pagopa.gov.it/", - "version": "1.8.6-9-export-iban" + "version": "1.8.6-10-export-iban" }, "servers": [ { diff --git a/pom.xml b/pom.xml index d0e84523..2027020e 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ it.gov.pagopa.api-config selfcareintegration - 1.8.6-9-export-iban + 1.8.6-10-export-iban API-Config - SelfCare Integration Spring application exposes APIs for SelfCare From 8cb237dd0b2a8590df2fb987585c8fa3e17c8b91 Mon Sep 17 00:00:00 2001 From: pagopa-github-bot Date: Tue, 19 Dec 2023 11:54:09 +0000 Subject: [PATCH 16/20] Bump to version 1.8.6-11-export-iban [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 +- pom.xml | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/helm/Chart.yaml b/helm/Chart.yaml index fa62c29d..a2d9c7e3 100644 --- a/helm/Chart.yaml +++ b/helm/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: pagopa-api-config-selfcare-integration description: Microservice that manages requests from selfcare type: application -version: 1.46.3 -appVersion: 1.8.6-10-export-iban +version: 1.46.4 +appVersion: 1.8.6-11-export-iban dependencies: - name: microservice-chart version: 2.8.0 diff --git a/helm/values-dev.yaml b/helm/values-dev.yaml index e72de067..3cdaeb55 100644 --- a/helm/values-dev.yaml +++ b/helm/values-dev.yaml @@ -132,7 +132,7 @@ microservice-chart: create: true image: repository: ghcr.io/pagopa/pagopa-api-config-selfcare-integration - tag: 1.8.6-10-export-iban + tag: 1.8.6-11-export-iban pullPolicy: Always envConfig: {} envSecret: {} diff --git a/helm/values-prod.yaml b/helm/values-prod.yaml index 86fcddb7..b3004075 100644 --- a/helm/values-prod.yaml +++ b/helm/values-prod.yaml @@ -141,7 +141,7 @@ microservice-chart: create: true image: repository: ghcr.io/pagopa/pagopa-api-config-selfcare-integration - tag: 1.8.6-10-export-iban + tag: 1.8.6-11-export-iban pullPolicy: Always envConfig: {} envSecret: {} diff --git a/helm/values-uat.yaml b/helm/values-uat.yaml index 1d45a16a..9c998bd3 100644 --- a/helm/values-uat.yaml +++ b/helm/values-uat.yaml @@ -132,7 +132,7 @@ microservice-chart: create: true image: repository: ghcr.io/pagopa/pagopa-api-config-selfcare-integration - tag: 1.8.6-10-export-iban + tag: 1.8.6-11-export-iban pullPolicy: Always envConfig: {} envSecret: {} diff --git a/openapi/openapi.json b/openapi/openapi.json index a32fcfb6..eb00e596 100644 --- a/openapi/openapi.json +++ b/openapi/openapi.json @@ -4,7 +4,7 @@ "title": "@project.name@", "description": "@project.description@", "termsOfService": "https://www.pagopa.gov.it/", - "version": "1.8.6-10-export-iban" + "version": "1.8.6-11-export-iban" }, "servers": [ { diff --git a/pom.xml b/pom.xml index 2027020e..21038f4f 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ it.gov.pagopa.api-config selfcareintegration - 1.8.6-10-export-iban + 1.8.6-11-export-iban API-Config - SelfCare Integration Spring application exposes APIs for SelfCare From 87a2e5a64a8dbd57ba2f05e5cd18fce67ade660c Mon Sep 17 00:00:00 2001 From: Jacopo Date: Tue, 19 Dec 2023 13:02:55 +0100 Subject: [PATCH 17/20] workaround release --- .github/workflows/release_deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release_deploy.yml b/.github/workflows/release_deploy.yml index b583284b..3aa582c4 100644 --- a/.github/workflows/release_deploy.yml +++ b/.github/workflows/release_deploy.yml @@ -154,7 +154,7 @@ jobs: deploy_aks: name: Deploy on AKS needs: [ setup, release, image ] - if: ${{ always() && !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled') }} + if: ${{ always() }} uses: ./.github/workflows/deploy_with_github_runner.yml with: environment: ${{ needs.setup.outputs.environment }} From 823488cf366eaa165b8f0b6f5c2a8520bcf82912 Mon Sep 17 00:00:00 2001 From: Jacopo Date: Tue, 19 Dec 2023 16:50:47 +0100 Subject: [PATCH 18/20] fix --- .pre-commit-config.yaml | 5 - openapi/openapi.json | 2645 ++++++++--------- .../controller/IbanController.java | 11 +- 3 files changed, 1254 insertions(+), 1407 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 580c3840..0d2e1f8e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,8 +9,3 @@ repos: - id: ggshield language_version: python3 stages: [ commit ] - - - repo: https://github.com/maltzj/google-style-precommit-hook - rev: b7e9e7fcba4a5aea463e72fe9964c14877bd8130 - hooks: - - id: google-style-java diff --git a/openapi/openapi.json b/openapi/openapi.json index eb00e596..86c59054 100644 --- a/openapi/openapi.json +++ b/openapi/openapi.json @@ -1,1734 +1,1583 @@ { - "openapi": "3.0.1", - "info": { - "title": "@project.name@", - "description": "@project.description@", - "termsOfService": "https://www.pagopa.gov.it/", - "version": "1.8.6-11-export-iban" + "openapi" : "3.0.1", + "info" : { + "title" : "@project.name@", + "description" : "@project.description@", + "termsOfService" : "https://www.pagopa.gov.it/", + "version" : "1.8.4-2-PASELC-658-be-api-config-nuova-api-get-per-recupero-iban-da-lista-ec" }, - "servers": [ - { - "url": "http://localhost", - "description": "Generated server url" - } - ], - "tags": [ - { - "name": "PSP Brokers", - "description": "Everything about PSP's brokers" - }, - { - "name": "Ibans", - "description": "Everything about IBANs" - }, - { - "name": "Creditor Institutions", - "description": "Everything about Creditor Institution" - }, - { - "name": "Brokers", - "description": "Everything about brokers" - } - ], - "paths": { - "/brokers/{brokerId}/stations": { - "get": { - "tags": [ - "Brokers" - ], - "summary": "Get broker's station list", - "operationId": "getStationsDetailsFromBroker", - "parameters": [ - { - "name": "brokerId", - "in": "path", - "description": "The identifier of the broker.", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "stationId", - "in": "query", - "description": "The identifier of the station.", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "limit", - "in": "query", - "description": "The number of elements to be included in the page.", - "required": true, - "schema": { - "maximum": 999, - "type": "integer", - "format": "int32", - "default": 10 - } - }, - { - "name": "page", - "in": "query", - "description": "The index of the page, starting from 0.", - "required": true, - "schema": { - "minimum": 0, - "type": "integer", - "format": "int32", - "default": 0 - } + "servers" : [ { + "url" : "http://localhost", + "description" : "Generated server url" + } ], + "tags" : [ { + "name" : "PSP Brokers", + "description" : "Everything about PSP's brokers" + }, { + "name" : "Ibans", + "description" : "Everything about IBANs" + }, { + "name" : "Creditor Institutions", + "description" : "Everything about Creditor Institution" + }, { + "name" : "Brokers", + "description" : "Everything about brokers" + } ], + "paths" : { + "/brokers/{brokerId}/stations" : { + "get" : { + "tags" : [ "Brokers" ], + "summary" : "Get broker's station list", + "operationId" : "getStationsDetailsFromBroker", + "parameters" : [ { + "name" : "brokerId", + "in" : "path", + "description" : "The identifier of the broker.", + "required" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "stationId", + "in" : "query", + "description" : "The identifier of the station.", + "required" : false, + "schema" : { + "type" : "string" + } + }, { + "name" : "limit", + "in" : "query", + "description" : "The number of elements to be included in the page.", + "required" : true, + "schema" : { + "maximum" : 999, + "type" : "integer", + "format" : "int32", + "default" : 10 + } + }, { + "name" : "page", + "in" : "query", + "description" : "The index of the page, starting from 0.", + "required" : true, + "schema" : { + "minimum" : 0, + "type" : "integer", + "format" : "int32", + "default" : 0 } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/StationDetailsList" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/StationDetailsList" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/brokerspsp/{brokerId}/channels": { - "get": { - "tags": [ - "PSP Brokers" - ], - "summary": "Get PSP broker's channel list", - "operationId": "getChannelDetailsFromPSPBroker", - "parameters": [ - { - "name": "brokerId", - "in": "path", - "description": "The identifier of the PSP broker.", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "channelId", - "in": "query", - "description": "The identifier of the channel.", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "limit", - "in": "query", - "description": "The number of elements to be included in the page.", - "required": true, - "schema": { - "maximum": 999, - "type": "integer", - "format": "int32", - "default": 10 - } - }, - { - "name": "page", - "in": "query", - "description": "The index of the page, starting from 0.", - "required": true, - "schema": { - "minimum": 0, - "type": "integer", - "format": "int32", - "default": 0 - } + "/brokerspsp/{brokerId}/channels" : { + "get" : { + "tags" : [ "PSP Brokers" ], + "summary" : "Get PSP broker's channel list", + "operationId" : "getChannelDetailsFromPSPBroker", + "parameters" : [ { + "name" : "brokerId", + "in" : "path", + "description" : "The identifier of the PSP broker.", + "required" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "channelId", + "in" : "query", + "description" : "The identifier of the channel.", + "required" : false, + "schema" : { + "type" : "string" } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + }, { + "name" : "limit", + "in" : "query", + "description" : "The number of elements to be included in the page.", + "required" : true, + "schema" : { + "maximum" : 999, + "type" : "integer", + "format" : "int32", + "default" : 10 + } + }, { + "name" : "page", + "in" : "query", + "description" : "The index of the page, starting from 0.", + "required" : true, + "schema" : { + "minimum" : 0, + "type" : "integer", + "format" : "int32", + "default" : 0 + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ChannelDetailsList" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ChannelDetailsList" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/creditorinstitutions/{creditorInstitutionCode}/applicationcodes": { - "get": { - "tags": [ - "Creditor Institutions" - ], - "summary": "Get application code associations with creditor institution", - "operationId": "getApplicationCodesFromCreditorInstitution", - "parameters": [ - { - "name": "creditorInstitutionCode", - "in": "path", - "description": "Organization fiscal code, the fiscal code of the Organization.", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "showUsedCodes", - "in": "query", - "description": "The flag that permits to show the codes already used. Default: true", - "required": false, - "schema": { - "type": "boolean", - "default": true - } + "/creditorinstitutions/{creditorInstitutionCode}/applicationcodes" : { + "get" : { + "tags" : [ "Creditor Institutions" ], + "summary" : "Get application code associations with creditor institution", + "operationId" : "getApplicationCodesFromCreditorInstitution", + "parameters" : [ { + "name" : "creditorInstitutionCode", + "in" : "path", + "description" : "Organization fiscal code, the fiscal code of the Organization.", + "required" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "showUsedCodes", + "in" : "query", + "description" : "The flag that permits to show the codes already used. Default: true", + "required" : false, + "schema" : { + "type" : "boolean", + "default" : true } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CIAssociatedCodeList" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/CIAssociatedCodeList" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/creditorinstitutions/{creditorInstitutionCode}/segregationcodes": { - "get": { - "tags": [ - "Creditor Institutions" - ], - "summary": "Get segregation code associations with creditor institution", - "operationId": "getSegregationCodesFromCreditorInstitution", - "parameters": [ - { - "name": "creditorInstitutionCode", - "in": "path", - "description": "Organization fiscal code, the fiscal code of the Organization.", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "showUsedCodes", - "in": "query", - "description": "The flag that permits to show the codes already used. Default: true", - "required": false, - "schema": { - "type": "boolean", - "default": true - } - }, - { - "name": "service", - "in": "query", - "description": "The service endpoint, to be used as a search filter to obtain only the segregation codes used by the CI for stations using same endpoint service. Default: null", - "required": false, - "schema": { - "type": "string" - } + "/creditorinstitutions/{creditorInstitutionCode}/segregationcodes" : { + "get" : { + "tags" : [ "Creditor Institutions" ], + "summary" : "Get segregation code associations with creditor institution", + "operationId" : "getSegregationCodesFromCreditorInstitution", + "parameters" : [ { + "name" : "creditorInstitutionCode", + "in" : "path", + "description" : "Organization fiscal code, the fiscal code of the Organization.", + "required" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "showUsedCodes", + "in" : "query", + "description" : "The flag that permits to show the codes already used. Default: true", + "required" : false, + "schema" : { + "type" : "boolean", + "default" : true } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + }, { + "name" : "service", + "in" : "query", + "description" : "The service endpoint, to be used as a search filter to obtain only the segregation codes used by the CI for stations using same endpoint service. Default: null", + "required" : false, + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CIAssociatedCodeList" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/CIAssociatedCodeList" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/creditorinstitutions/{creditorInstitutionCode}/stations": { - "get": { - "tags": [ - "Creditor Institutions" - ], - "summary": "Get creditor institution station list", - "operationId": "getStationsDetailsFromCreditorInstitution", - "parameters": [ - { - "name": "creditorInstitutionCode", - "in": "path", - "description": "Organization fiscal code, the fiscal code of the Organization.", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "limit", - "in": "query", - "description": "The number of elements to be included in the page.", - "required": true, - "schema": { - "maximum": 999, - "type": "integer", - "format": "int32", - "default": 10 - } - }, - { - "name": "page", - "in": "query", - "description": "The index of the page, starting from 0.", - "required": true, - "schema": { - "minimum": 0, - "type": "integer", - "format": "int32", - "default": 0 - } + "/creditorinstitutions/{creditorInstitutionCode}/stations" : { + "get" : { + "tags" : [ "Creditor Institutions" ], + "summary" : "Get creditor institution station list", + "operationId" : "getStationsDetailsFromCreditorInstitution", + "parameters" : [ { + "name" : "creditorInstitutionCode", + "in" : "path", + "description" : "Organization fiscal code, the fiscal code of the Organization.", + "required" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "limit", + "in" : "query", + "description" : "The number of elements to be included in the page.", + "required" : true, + "schema" : { + "maximum" : 999, + "type" : "integer", + "format" : "int32", + "default" : 10 + } + }, { + "name" : "page", + "in" : "query", + "description" : "The index of the page, starting from 0.", + "required" : true, + "schema" : { + "minimum" : 0, + "type" : "integer", + "format" : "int32", + "default" : 0 } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/StationDetailsList" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/StationDetailsList" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/ibans": { - "post": { - "tags": [ - "Ibans" - ], - "summary": "Get the paginated list of all IBANs, filtering by creditor institution", - "operationId": "getIbans", - "parameters": [ - { - "name": "limit", - "in": "query", - "description": "The number of elements to be included in the page.", - "required": true, - "schema": { - "maximum": 999, - "type": "integer", - "format": "int32", - "default": 10 - } - }, - { - "name": "page", - "in": "query", - "description": "The index of the page, starting from 0.", - "required": true, - "schema": { - "minimum": 0, - "type": "integer", - "format": "int32", - "default": 0 - } + "/ibans" : { + "post" : { + "tags" : [ "Ibans" ], + "summary" : "Get the paginated list of all IBANs, filtering by creditor institution", + "operationId" : "getIbans", + "parameters" : [ { + "name" : "limit", + "in" : "query", + "description" : "The number of elements to be included in the page.", + "required" : true, + "schema" : { + "maximum" : 1000, + "type" : "integer", + "format" : "int32", + "default" : 10 + } + }, { + "name" : "page", + "in" : "query", + "description" : "The index of the page, starting from 0.", + "required" : true, + "schema" : { + "minimum" : 0, + "type" : "integer", + "format" : "int32", + "default" : 0 } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "string" + } ], + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "type" : "array", + "items" : { + "type" : "string" } } } }, - "required": true + "required" : true }, - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/IbansList" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/IbansList" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/info": { - "get": { - "tags": [ - "Home" - ], - "summary": "Return OK if application is started", - "operationId": "healthCheck", - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "/info" : { + "get" : { + "tags" : [ "Home" ], + "summary" : "Return OK if application is started", + "operationId" : "healthCheck", + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/AppInfo" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/AppInfo" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] } }, - "components": { - "schemas": { - "IbanDetails": { - "type": "object", - "properties": { - "ci_fiscal_code": { - "type": "string" - }, - "ci_name": { - "type": "string" - }, - "iban": { - "type": "string" - }, - "inserted_date": { - "type": "string", - "format": "date-time" - }, - "validity_date": { - "type": "string", - "format": "date-time" - }, - "due_date": { - "type": "string", - "format": "date-time" - }, - "description": { - "type": "string" - }, - "owner_fiscal_code": { - "type": "string" - }, - "labels": { - "type": "array", - "items": { - "$ref": "#/components/schemas/IbanLabel" - } - } - }, - "description": "List of IBANs associated to the passed creditor institutions" - }, - "IbanLabel": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" + "components" : { + "schemas" : { + "ProblemJson" : { + "type" : "object", + "properties" : { + "title" : { + "type" : "string", + "description" : "A short, summary of the problem type. Written in english and readable for engineers (usually not suited for non technical stakeholders and not localized); example: Service Unavailable" + }, + "status" : { + "maximum" : 600, + "minimum" : 100, + "type" : "integer", + "description" : "The HTTP status code generated by the origin server for this occurrence of the problem.", + "format" : "int32", + "example" : 200 + }, + "detail" : { + "type" : "string", + "description" : "A human readable explanation specific to this occurrence of the problem.", + "example" : "There was an error processing the request" } } }, - "IbansList": { - "required": [ - "ibans", - "page_info" - ], - "type": "object", - "properties": { - "ibans": { - "type": "array", - "description": "List of IBANs associated to the passed creditor institutions", - "items": { - "$ref": "#/components/schemas/IbanDetails" - } + "IbanDetails" : { + "type" : "object", + "properties" : { + "ci_fiscal_code" : { + "type" : "string" }, - "page_info": { - "$ref": "#/components/schemas/PageInfo" + "ci_name" : { + "type" : "string" + }, + "iban" : { + "type" : "string" + }, + "inserted_date" : { + "type" : "string", + "format" : "date-time" + }, + "validity_date" : { + "type" : "string", + "format" : "date-time" + }, + "due_date" : { + "type" : "string", + "format" : "date-time" + }, + "description" : { + "type" : "string" + }, + "owner_fiscal_code" : { + "type" : "string" + }, + "labels" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/IbanLabel" + } + } + }, + "description" : "List of IBANs associated to the passed creditor institutions" + }, + "IbanLabel" : { + "type" : "object", + "properties" : { + "name" : { + "type" : "string" + }, + "description" : { + "type" : "string" } } }, - "PageInfo": { - "type": "object", - "properties": { - "page": { - "type": "integer", - "description": "Page number", - "format": "int32" - }, - "limit": { - "type": "integer", - "description": "Required number of items per page", - "format": "int32" - }, - "items_found": { - "type": "integer", - "description": "Number of items found. (The last page may have fewer elements than required)", - "format": "int32" - }, - "total_pages": { - "type": "integer", - "description": "Total number of pages", - "format": "int32" - }, - "total_items": { - "type": "integer", - "description": "Total number of items for all pages", - "format": "int64" + "IbansList" : { + "required" : [ "ibans", "page_info" ], + "type" : "object", + "properties" : { + "ibans" : { + "type" : "array", + "description" : "List of IBANs associated to the passed creditor institutions", + "items" : { + "$ref" : "#/components/schemas/IbanDetails" + } + }, + "page_info" : { + "$ref" : "#/components/schemas/PageInfo" } } }, - "ProblemJson": { - "type": "object", - "properties": { - "title": { - "type": "string", - "description": "A short, summary of the problem type. Written in english and readable for engineers (usually not suited for non technical stakeholders and not localized); example: Service Unavailable" - }, - "status": { - "maximum": 600, - "minimum": 100, - "type": "integer", - "description": "The HTTP status code generated by the origin server for this occurrence of the problem.", - "format": "int32", - "example": 200 - }, - "detail": { - "type": "string", - "description": "A human readable explanation specific to this occurrence of the problem.", - "example": "There was an error processing the request" + "PageInfo" : { + "type" : "object", + "properties" : { + "page" : { + "type" : "integer", + "description" : "Page number", + "format" : "int32" + }, + "limit" : { + "type" : "integer", + "description" : "Required number of items per page", + "format" : "int32" + }, + "items_found" : { + "type" : "integer", + "description" : "Number of items found. (The last page may have fewer elements than required)", + "format" : "int32" + }, + "total_pages" : { + "type" : "integer", + "description" : "Total number of pages", + "format" : "int32" + }, + "total_items" : { + "type" : "integer", + "description" : "Total number of items for all pages", + "format" : "int64" } } }, - "AppInfo": { - "type": "object", - "properties": { - "name": { - "type": "string" + "AppInfo" : { + "type" : "object", + "properties" : { + "name" : { + "type" : "string" }, - "version": { - "type": "string" + "version" : { + "type" : "string" }, - "environment": { - "type": "string" + "environment" : { + "type" : "string" }, - "dbConnection": { - "type": "string" + "dbConnection" : { + "type" : "string" } } }, - "BrokerDetails": { - "required": [ - "broker_code", - "broker_details", - "enabled", - "extended_fault_bean" - ], - "type": "object", - "properties": { - "broker_code": { - "maxLength": 35, - "minLength": 0, - "type": "string", - "description": "Code used to identify the intermediate EC", - "example": "223344556677889900" - }, - "broker_details": { - "type": "string", - "description": "Name and generic details of the intermediate EC", - "example": "Regione Veneto" - }, - "enabled": { - "type": "boolean", - "description": "Parameter to find out whether or not the intermediate has been enabled" - }, - "extended_fault_bean": { - "type": "boolean", - "description": "Parameter to find out whether or not the extended fault bean has been enabled" + "BrokerDetails" : { + "required" : [ "broker_code", "broker_details", "enabled", "extended_fault_bean" ], + "type" : "object", + "properties" : { + "broker_code" : { + "maxLength" : 35, + "minLength" : 0, + "type" : "string", + "description" : "Code used to identify the intermediate EC", + "example" : "223344556677889900" + }, + "broker_details" : { + "type" : "string", + "description" : "Name and generic details of the intermediate EC", + "example" : "Regione Veneto" + }, + "enabled" : { + "type" : "boolean", + "description" : "Parameter to find out whether or not the intermediate has been enabled" + }, + "extended_fault_bean" : { + "type" : "boolean", + "description" : "Parameter to find out whether or not the extended fault bean has been enabled" } }, - "description": "Details of the intermediate EC of the station" + "description" : "Details of the intermediate EC of the station" }, - "StationDetails": { - "required": [ - "broker_details", - "enabled", - "port", - "primitive_version", - "protocol", - "station_code", - "thread_number", - "timeout_a", - "timeout_b", - "timeout_c", - "version" - ], - "type": "object", - "properties": { - "station_code": { - "maxLength": 35, - "minLength": 0, - "type": "string", - "description": "Unique code to identify the station", - "example": "1234567890100" - }, - "enabled": { - "type": "boolean", - "description": "Parameter to find out whether or not the station has been enabled", - "default": true - }, - "broker_description": { - "type": "string", - "description": "A description of the intermediate EC", - "example": "Regione Lazio" - }, - "version": { - "maximum": 2, - "minimum": 1, - "type": "integer", - "description": "The version of the station", - "format": "int64" - }, - "ip": { - "type": "string", - "description": "Ip address of the station" - }, - "new_password": { - "type": "string", - "description": "New password of the station" - }, - "password": { - "type": "string", - "description": "Password of the station" - }, - "port": { - "maximum": 65535, - "minimum": 1, - "type": "integer", - "description": "Port address of the station", - "format": "int64" - }, - "protocol": { - "type": "string", - "description": "Protocol associated to the station", - "enum": [ - "HTTPS", - "HTTP" - ] - }, - "redirect_ip": { - "type": "string", - "description": "Redirect ip address of the station" - }, - "redirect_path": { - "type": "string", - "description": "Redirect path of the station" - }, - "redirect_port": { - "maximum": 65535, - "minimum": 1, - "type": "integer", - "description": "Redirect port address of the station", - "format": "int64" - }, - "redirect_query_string": { - "type": "string", - "description": "Redirect query string of the station" - }, - "redirect_protocol": { - "type": "string", - "description": "Redirect protocol associated to the station", - "enum": [ - "HTTPS", - "HTTP" - ] - }, - "service": { - "type": "string" - }, - "pof_service": { - "type": "string" - }, - "broker_details": { - "$ref": "#/components/schemas/BrokerDetails" - }, - "protocol_4mod": { - "type": "string", - "description": "Protocol 4mod associated to the station", - "enum": [ - "HTTPS", - "HTTP" - ] - }, - "ip_4mod": { - "type": "string", - "description": "Ip address 4mod associated to the station" - }, - "port_4mod": { - "maximum": 65535, - "minimum": 1, - "type": "integer", - "description": "Port address 4mod associated to the station", - "format": "int64" - }, - "service_4mod": { - "type": "string" - }, - "proxy_enabled": { - "type": "boolean", - "description": "Parameter to inspect if the proxy has been enabled for this station" - }, - "proxy_host": { - "type": "string", - "description": "Proxy host" - }, - "proxy_port": { - "maximum": 65535, - "minimum": 1, - "type": "integer", - "description": "Proxy port address", - "format": "int64" - }, - "proxy_username": { - "type": "string" - }, - "proxy_password": { - "type": "string" - }, - "thread_number": { - "minimum": 1, - "type": "integer", - "format": "int64" - }, - "timeout_a": { - "minimum": 0, - "type": "integer", - "format": "int64" - }, - "timeout_b": { - "minimum": 0, - "type": "integer", - "format": "int64" - }, - "timeout_c": { - "minimum": 0, - "type": "integer", - "format": "int64" - }, - "flag_online": { - "type": "boolean" - }, - "invio_rt_istantaneo": { - "type": "boolean", - "description": "Parameter useful to find out if the instantaneous rt has been enabled" - }, - "target_host": { - "type": "string", - "description": "Target address of the station" - }, - "target_port": { - "type": "integer", - "description": "Port address target associated to the station", - "format": "int64" - }, - "target_path": { - "type": "string", - "description": "Target path of the station" - }, - "target_host_pof": { - "type": "string", - "description": "Pof address associated to the station" - }, - "target_port_pof": { - "type": "integer", - "description": "Port address pof associated to the station", - "format": "int64" - }, - "target_path_pof": { - "type": "string", - "description": "Pof path associated to the station" - }, - "primitive_version": { - "maximum": 2, - "minimum": 1, - "type": "integer", - "description": "Primitive number version", - "format": "int32", - "enum": [ - 1, - 2 - ] + "StationDetails" : { + "required" : [ "broker_details", "enabled", "port", "primitive_version", "protocol", "station_code", "thread_number", "timeout_a", "timeout_b", "timeout_c", "version" ], + "type" : "object", + "properties" : { + "station_code" : { + "maxLength" : 35, + "minLength" : 0, + "type" : "string", + "description" : "Unique code to identify the station", + "example" : "1234567890100" + }, + "enabled" : { + "type" : "boolean", + "description" : "Parameter to find out whether or not the station has been enabled", + "default" : true + }, + "broker_description" : { + "type" : "string", + "description" : "A description of the intermediate EC", + "example" : "Regione Lazio" + }, + "version" : { + "maximum" : 2, + "minimum" : 1, + "type" : "integer", + "description" : "The version of the station", + "format" : "int64" + }, + "ip" : { + "type" : "string", + "description" : "Ip address of the station" + }, + "new_password" : { + "type" : "string", + "description" : "New password of the station" + }, + "password" : { + "type" : "string", + "description" : "Password of the station" + }, + "port" : { + "maximum" : 65535, + "minimum" : 1, + "type" : "integer", + "description" : "Port address of the station", + "format" : "int64" + }, + "protocol" : { + "type" : "string", + "description" : "Protocol associated to the station", + "enum" : [ "HTTPS", "HTTP" ] + }, + "redirect_ip" : { + "type" : "string", + "description" : "Redirect ip address of the station" + }, + "redirect_path" : { + "type" : "string", + "description" : "Redirect path of the station" + }, + "redirect_port" : { + "maximum" : 65535, + "minimum" : 1, + "type" : "integer", + "description" : "Redirect port address of the station", + "format" : "int64" + }, + "redirect_query_string" : { + "type" : "string", + "description" : "Redirect query string of the station" + }, + "redirect_protocol" : { + "type" : "string", + "description" : "Redirect protocol associated to the station", + "enum" : [ "HTTPS", "HTTP" ] + }, + "service" : { + "type" : "string" + }, + "pof_service" : { + "type" : "string" + }, + "broker_details" : { + "$ref" : "#/components/schemas/BrokerDetails" + }, + "protocol_4mod" : { + "type" : "string", + "description" : "Protocol 4mod associated to the station", + "enum" : [ "HTTPS", "HTTP" ] + }, + "ip_4mod" : { + "type" : "string", + "description" : "Ip address 4mod associated to the station" + }, + "port_4mod" : { + "maximum" : 65535, + "minimum" : 1, + "type" : "integer", + "description" : "Port address 4mod associated to the station", + "format" : "int64" + }, + "service_4mod" : { + "type" : "string" + }, + "proxy_enabled" : { + "type" : "boolean", + "description" : "Parameter to inspect if the proxy has been enabled for this station" + }, + "proxy_host" : { + "type" : "string", + "description" : "Proxy host" + }, + "proxy_port" : { + "maximum" : 65535, + "minimum" : 1, + "type" : "integer", + "description" : "Proxy port address", + "format" : "int64" + }, + "proxy_username" : { + "type" : "string" + }, + "proxy_password" : { + "type" : "string" + }, + "thread_number" : { + "minimum" : 1, + "type" : "integer", + "format" : "int64" + }, + "timeout_a" : { + "minimum" : 0, + "type" : "integer", + "format" : "int64" + }, + "timeout_b" : { + "minimum" : 0, + "type" : "integer", + "format" : "int64" + }, + "timeout_c" : { + "minimum" : 0, + "type" : "integer", + "format" : "int64" + }, + "flag_online" : { + "type" : "boolean" + }, + "invio_rt_istantaneo" : { + "type" : "boolean", + "description" : "Parameter useful to find out if the instantaneous rt has been enabled" + }, + "target_host" : { + "type" : "string", + "description" : "Target address of the station" + }, + "target_port" : { + "type" : "integer", + "description" : "Port address target associated to the station", + "format" : "int64" + }, + "target_path" : { + "type" : "string", + "description" : "Target path of the station" + }, + "target_host_pof" : { + "type" : "string", + "description" : "Pof address associated to the station" + }, + "target_port_pof" : { + "type" : "integer", + "description" : "Port address pof associated to the station", + "format" : "int64" + }, + "target_path_pof" : { + "type" : "string", + "description" : "Pof path associated to the station" + }, + "primitive_version" : { + "maximum" : 2, + "minimum" : 1, + "type" : "integer", + "description" : "Primitive number version", + "format" : "int32", + "enum" : [ 1, 2 ] } }, - "description": "List of stations associated to the same entity" + "description" : "List of stations associated to the same entity" }, - "StationDetailsList": { - "required": [ - "page_info", - "stations" - ], - "type": "object", - "properties": { - "stations": { - "type": "array", - "description": "List of stations associated to the same entity", - "items": { - "$ref": "#/components/schemas/StationDetails" - } - }, - "page_info": { - "$ref": "#/components/schemas/PageInfo" + "StationDetailsList" : { + "required" : [ "page_info", "stations" ], + "type" : "object", + "properties" : { + "stations" : { + "type" : "array", + "description" : "List of stations associated to the same entity", + "items" : { + "$ref" : "#/components/schemas/StationDetails" + } + }, + "page_info" : { + "$ref" : "#/components/schemas/PageInfo" } } }, - "CIAssociatedCode": { - "required": [ - "code" - ], - "type": "object", - "properties": { - "code": { - "maxLength": 2, - "minLength": 2, - "type": "string", - "description": "The code that bound uniquely a creditor institution to a station" - }, - "name": { - "type": "string", - "description": "The name of the station associated to the creditor institution, if exists" + "CIAssociatedCode" : { + "required" : [ "code" ], + "type" : "object", + "properties" : { + "code" : { + "maxLength" : 2, + "minLength" : 2, + "type" : "string", + "description" : "The code that bound uniquely a creditor institution to a station" + }, + "name" : { + "type" : "string", + "description" : "The name of the station associated to the creditor institution, if exists" } }, - "description": "List of codes not used for existing associations" + "description" : "List of codes not used for existing associations" }, - "CIAssociatedCodeList": { - "required": [ - "unused" - ], - "type": "object", - "properties": { - "used": { - "type": "array", - "description": "List of codes already used for existing associations", - "items": { - "$ref": "#/components/schemas/CIAssociatedCode" - } - }, - "unused": { - "type": "array", - "description": "List of codes not used for existing associations", - "items": { - "$ref": "#/components/schemas/CIAssociatedCode" + "CIAssociatedCodeList" : { + "required" : [ "unused" ], + "type" : "object", + "properties" : { + "used" : { + "type" : "array", + "description" : "List of codes already used for existing associations", + "items" : { + "$ref" : "#/components/schemas/CIAssociatedCode" + } + }, + "unused" : { + "type" : "array", + "description" : "List of codes not used for existing associations", + "items" : { + "$ref" : "#/components/schemas/CIAssociatedCode" } } } }, - "ChannelDetails": { - "required": [ - "agid", - "broker_psp_code", - "card_chart", - "channel_code", - "digital_stamp_brand", - "enabled", - "on_us", - "payment_model", - "port", - "primitive_version", - "protocol", - "recovery", - "rt_push", - "thread_number", - "timeout_a", - "timeout_b", - "timeout_c" - ], - "type": "object", - "properties": { - "channel_code": { - "type": "string", - "example": "223344556677889900" - }, - "enabled": { - "type": "boolean" - }, - "broker_description": { - "type": "string", - "description": "Broker description. Read only field", - "example": "Lorem ipsum dolor sit amet" - }, - "password": { - "type": "string" - }, - "new_password": { - "type": "string" - }, - "protocol": { - "type": "string", - "enum": [ - "HTTPS", - "HTTP" - ] - }, - "ip": { - "type": "string" - }, - "port": { - "maximum": 65535, - "minimum": 1, - "type": "integer", - "format": "int64" - }, - "service": { - "type": "string" - }, - "broker_psp_code": { - "type": "string" - }, - "proxy_enabled": { - "type": "boolean" - }, - "proxy_host": { - "type": "string" - }, - "proxy_port": { - "maximum": 65535, - "minimum": 1, - "type": "integer", - "format": "int64" - }, - "proxy_username": { - "type": "string" - }, - "proxy_password": { - "type": "string" - }, - "target_host": { - "type": "string" - }, - "target_port": { - "type": "integer", - "format": "int64" - }, - "target_path": { - "type": "string" - }, - "thread_number": { - "minimum": 1, - "type": "integer", - "format": "int64" - }, - "timeout_a": { - "minimum": 0, - "type": "integer", - "format": "int64" - }, - "timeout_b": { - "minimum": 0, - "type": "integer", - "format": "int64" - }, - "timeout_c": { - "minimum": 0, - "type": "integer", - "format": "int64" - }, - "nmp_service": { - "type": "string" - }, - "new_fault_code": { - "type": "boolean" - }, - "target_host_nmp": { - "type": "string" - }, - "target_port_nmp": { - "type": "integer", - "format": "int64" + "ChannelDetails" : { + "required" : [ "agid", "broker_psp_code", "card_chart", "channel_code", "digital_stamp_brand", "enabled", "on_us", "payment_model", "port", "primitive_version", "protocol", "recovery", "rt_push", "thread_number", "timeout_a", "timeout_b", "timeout_c" ], + "type" : "object", + "properties" : { + "channel_code" : { + "type" : "string", + "example" : "223344556677889900" + }, + "enabled" : { + "type" : "boolean" + }, + "broker_description" : { + "type" : "string", + "description" : "Broker description. Read only field", + "example" : "Lorem ipsum dolor sit amet" + }, + "password" : { + "type" : "string" + }, + "new_password" : { + "type" : "string" + }, + "protocol" : { + "type" : "string", + "enum" : [ "HTTPS", "HTTP" ] + }, + "ip" : { + "type" : "string" + }, + "port" : { + "maximum" : 65535, + "minimum" : 1, + "type" : "integer", + "format" : "int64" + }, + "service" : { + "type" : "string" + }, + "broker_psp_code" : { + "type" : "string" + }, + "proxy_enabled" : { + "type" : "boolean" + }, + "proxy_host" : { + "type" : "string" + }, + "proxy_port" : { + "maximum" : 65535, + "minimum" : 1, + "type" : "integer", + "format" : "int64" + }, + "proxy_username" : { + "type" : "string" }, - "target_path_nmp": { - "type": "string" + "proxy_password" : { + "type" : "string" }, - "redirect_ip": { - "type": "string" + "target_host" : { + "type" : "string" }, - "redirect_path": { - "type": "string" + "target_port" : { + "type" : "integer", + "format" : "int64" }, - "redirect_port": { - "maximum": 65535, - "minimum": 1, - "type": "integer", - "format": "int64" + "target_path" : { + "type" : "string" }, - "redirect_query_string": { - "type": "string" + "thread_number" : { + "minimum" : 1, + "type" : "integer", + "format" : "int64" }, - "redirect_protocol": { - "type": "string", - "enum": [ - "HTTPS", - "HTTP" - ] + "timeout_a" : { + "minimum" : 0, + "type" : "integer", + "format" : "int64" }, - "payment_model": { - "type": "string", - "enum": [ - "IMMEDIATE", - "IMMEDIATE_MULTIBENEFICIARY", - "DEFERRED", - "ACTIVATED_AT_PSP" - ] + "timeout_b" : { + "minimum" : 0, + "type" : "integer", + "format" : "int64" }, - "serv_plugin": { - "type": "string" + "timeout_c" : { + "minimum" : 0, + "type" : "integer", + "format" : "int64" }, - "rt_push": { - "type": "boolean" + "nmp_service" : { + "type" : "string" }, - "on_us": { - "type": "boolean" + "new_fault_code" : { + "type" : "boolean" }, - "card_chart": { - "type": "boolean" + "target_host_nmp" : { + "type" : "string" }, - "recovery": { - "type": "boolean" + "target_port_nmp" : { + "type" : "integer", + "format" : "int64" }, - "digital_stamp_brand": { - "type": "boolean" + "target_path_nmp" : { + "type" : "string" }, - "flag_io": { - "type": "boolean" + "redirect_ip" : { + "type" : "string" }, - "flag_psp_cp": { - "type": "boolean" + "redirect_path" : { + "type" : "string" }, - "agid": { - "type": "boolean" + "redirect_port" : { + "maximum" : 65535, + "minimum" : 1, + "type" : "integer", + "format" : "int64" }, - "primitive_version": { - "maximum": 2, - "minimum": 1, - "type": "integer", - "description": "Primitive number version", - "format": "int32" + "redirect_query_string" : { + "type" : "string" + }, + "redirect_protocol" : { + "type" : "string", + "enum" : [ "HTTPS", "HTTP" ] + }, + "payment_model" : { + "type" : "string", + "enum" : [ "IMMEDIATE", "IMMEDIATE_MULTIBENEFICIARY", "DEFERRED", "ACTIVATED_AT_PSP" ] + }, + "serv_plugin" : { + "type" : "string" + }, + "rt_push" : { + "type" : "boolean" + }, + "on_us" : { + "type" : "boolean" + }, + "card_chart" : { + "type" : "boolean" + }, + "recovery" : { + "type" : "boolean" + }, + "digital_stamp_brand" : { + "type" : "boolean" + }, + "flag_io" : { + "type" : "boolean" + }, + "flag_psp_cp" : { + "type" : "boolean" + }, + "agid" : { + "type" : "boolean" + }, + "primitive_version" : { + "maximum" : 2, + "minimum" : 1, + "type" : "integer", + "description" : "Primitive number version", + "format" : "int32" } }, - "description": "List of stations associated to the same entity" + "description" : "List of stations associated to the same entity" }, - "ChannelDetailsList": { - "required": [ - "channels", - "page_info" - ], - "type": "object", - "properties": { - "channels": { - "type": "array", - "description": "List of stations associated to the same entity", - "items": { - "$ref": "#/components/schemas/ChannelDetails" - } - }, - "page_info": { - "$ref": "#/components/schemas/PageInfo" + "ChannelDetailsList" : { + "required" : [ "channels", "page_info" ], + "type" : "object", + "properties" : { + "channels" : { + "type" : "array", + "description" : "List of stations associated to the same entity", + "items" : { + "$ref" : "#/components/schemas/ChannelDetails" + } + }, + "page_info" : { + "$ref" : "#/components/schemas/PageInfo" } } } }, - "securitySchemes": { - "ApiKey": { - "type": "apiKey", - "description": "The API key to access this function app.", - "name": "Ocp-Apim-Subscription-Key", - "in": "header" + "securitySchemes" : { + "ApiKey" : { + "type" : "apiKey", + "description" : "The API key to access this function app.", + "name" : "Ocp-Apim-Subscription-Key", + "in" : "header" }, - "Authorization": { - "type": "http", - "description": "JWT token get after Azure Login", - "scheme": "bearer", - "bearerFormat": "JWT" + "Authorization" : { + "type" : "http", + "description" : "JWT token get after Azure Login", + "scheme" : "bearer", + "bearerFormat" : "JWT" } } } -} +} \ No newline at end of file diff --git a/src/main/java/it/gov/pagopa/apiconfig/selfcareintegration/controller/IbanController.java b/src/main/java/it/gov/pagopa/apiconfig/selfcareintegration/controller/IbanController.java index 41665740..be6ff044 100644 --- a/src/main/java/it/gov/pagopa/apiconfig/selfcareintegration/controller/IbanController.java +++ b/src/main/java/it/gov/pagopa/apiconfig/selfcareintegration/controller/IbanController.java @@ -13,7 +13,10 @@ import it.gov.pagopa.apiconfig.selfcareintegration.service.IbansService; import java.util.List; import javax.validation.Valid; -import javax.validation.constraints.*; +import javax.validation.constraints.Max; +import javax.validation.constraints.Min; +import javax.validation.constraints.NotEmpty; +import javax.validation.constraints.Positive; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.cache.annotation.Cacheable; import org.springframework.data.domain.PageRequest; @@ -103,10 +106,10 @@ public ResponseEntity getIbans( ) @RequestParam(required = false, defaultValue = "10") @Positive - // @Max(999) + @Max(1000) Integer limit, - @Valid - @Parameter(description = "The index of the page, starting from 0.", required = true) + @Parameter(description = "The index of the page, starting from 0.", required = true) + @Valid @Min(0) @RequestParam(required = false, defaultValue = "0") Integer page) { From 7babef9f2056d6abe49b8d4189e46d40e50b599c Mon Sep 17 00:00:00 2001 From: Jacopo Date: Tue, 19 Dec 2023 17:08:23 +0100 Subject: [PATCH 19/20] fix junit --- .../apiconfig/controller/IbanControllerTest.java | 3 ++- .../apiconfig/service/BrokerPSPsServiceTest.java | 8 ++++++++ .../apiconfig/service/BrokersServiceTest.java | 8 ++++++++ .../service/CreditorInstitutionsServiceTest.java | 8 ++++++++ .../pagopa/apiconfig/service/IbanServiceTest.java | 8 ++++++++ src/test/resources/response/get_ibans_ok1.json | 12 ++++++------ src/test/resources/response/get_ibans_ok2.json | 14 +++++++------- 7 files changed, 47 insertions(+), 14 deletions(-) diff --git a/src/test/java/it/gov/pagopa/apiconfig/controller/IbanControllerTest.java b/src/test/java/it/gov/pagopa/apiconfig/controller/IbanControllerTest.java index d1bdbeee..8657dca3 100644 --- a/src/test/java/it/gov/pagopa/apiconfig/controller/IbanControllerTest.java +++ b/src/test/java/it/gov/pagopa/apiconfig/controller/IbanControllerTest.java @@ -16,6 +16,7 @@ import java.io.IOException; import java.util.List; +import java.util.TimeZone; import static it.gov.pagopa.apiconfig.util.TestUtil.getMockIbanList; import static org.mockito.Mockito.when; @@ -32,9 +33,9 @@ class IbanControllerTest { @MockBean private IbansService ibansService; - @BeforeEach void setup() throws IOException { + TimeZone.setDefault(TimeZone.getTimeZone("UTC")); when(ibansService.getIbans(List.of("168480242"), PageRequest.of(0, 10, Sort.by(Sort.Direction.ASC, "fkPa", "objId")))) .thenReturn(getMockIbanList()); } diff --git a/src/test/java/it/gov/pagopa/apiconfig/service/BrokerPSPsServiceTest.java b/src/test/java/it/gov/pagopa/apiconfig/service/BrokerPSPsServiceTest.java index 7fdaa10c..e6622841 100644 --- a/src/test/java/it/gov/pagopa/apiconfig/service/BrokerPSPsServiceTest.java +++ b/src/test/java/it/gov/pagopa/apiconfig/service/BrokerPSPsServiceTest.java @@ -20,8 +20,11 @@ import it.gov.pagopa.apiconfig.util.TestUtil; import java.io.IOException; import java.util.Optional; +import java.util.TimeZone; + import org.assertj.core.util.Lists; import org.json.JSONException; +import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.mockito.InjectMocks; import org.mockito.Mock; @@ -46,6 +49,11 @@ class BrokerPSPsServiceTest { @Autowired @InjectMocks private BrokerPSPsService brokerPspsService; + @BeforeEach + void setup() { + TimeZone.setDefault(TimeZone.getTimeZone("UTC")); + } + @Test void getStationsDetailsCI_withChannelId_200() throws IOException, JSONException { diff --git a/src/test/java/it/gov/pagopa/apiconfig/service/BrokersServiceTest.java b/src/test/java/it/gov/pagopa/apiconfig/service/BrokersServiceTest.java index d26afd44..4efae64d 100644 --- a/src/test/java/it/gov/pagopa/apiconfig/service/BrokersServiceTest.java +++ b/src/test/java/it/gov/pagopa/apiconfig/service/BrokersServiceTest.java @@ -20,8 +20,11 @@ import it.gov.pagopa.apiconfig.util.TestUtil; import java.io.IOException; import java.util.Optional; +import java.util.TimeZone; + import org.assertj.core.util.Lists; import org.json.JSONException; +import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.mockito.InjectMocks; import org.skyscreamer.jsonassert.JSONAssert; @@ -46,6 +49,11 @@ class BrokersServiceTest { private Pageable pageable = PageRequest.of(0, 10); + @BeforeEach + void setup() { + TimeZone.setDefault(TimeZone.getTimeZone("UTC")); + } + @Test void getStationsDetailsCI_withStationId_200() throws IOException, JSONException { diff --git a/src/test/java/it/gov/pagopa/apiconfig/service/CreditorInstitutionsServiceTest.java b/src/test/java/it/gov/pagopa/apiconfig/service/CreditorInstitutionsServiceTest.java index b539333f..7d8f997c 100644 --- a/src/test/java/it/gov/pagopa/apiconfig/service/CreditorInstitutionsServiceTest.java +++ b/src/test/java/it/gov/pagopa/apiconfig/service/CreditorInstitutionsServiceTest.java @@ -19,8 +19,11 @@ import java.io.IOException; import java.util.List; import java.util.Optional; +import java.util.TimeZone; + import org.assertj.core.util.Lists; import org.json.JSONException; +import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.mockito.InjectMocks; import org.skyscreamer.jsonassert.JSONAssert; @@ -44,6 +47,11 @@ class CreditorInstitutionsServiceTest { private Pageable pageable = PageRequest.of(0, 10); + @BeforeEach + void setup() { + TimeZone.setDefault(TimeZone.getTimeZone("UTC")); + } + @Test void getStationsDetailsCI_200() throws IOException, JSONException { Page page = TestUtil.mockPage(Lists.newArrayList(getMockPaStazionePa()), 10, 0); diff --git a/src/test/java/it/gov/pagopa/apiconfig/service/IbanServiceTest.java b/src/test/java/it/gov/pagopa/apiconfig/service/IbanServiceTest.java index 6cec2cf3..a70dd157 100644 --- a/src/test/java/it/gov/pagopa/apiconfig/service/IbanServiceTest.java +++ b/src/test/java/it/gov/pagopa/apiconfig/service/IbanServiceTest.java @@ -9,6 +9,7 @@ import it.gov.pagopa.apiconfig.util.TestUtil; import org.assertj.core.util.Lists; import org.json.JSONException; +import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.mockito.InjectMocks; import org.mockito.Mock; @@ -24,6 +25,7 @@ import javax.validation.ConstraintViolationException; import java.io.IOException; import java.util.List; +import java.util.TimeZone; import static it.gov.pagopa.apiconfig.util.TestUtil.getMockIbanMaster; import static it.gov.pagopa.apiconfig.util.TestUtil.getMockIbanMaster2; @@ -48,6 +50,12 @@ class IbanServiceTest { @InjectMocks private IbansService ibansService; + + @BeforeEach + void setup() { + TimeZone.setDefault(TimeZone.getTimeZone("UTC")); + } + @Test void getIbans_singleCI_200() throws IOException, JSONException { diff --git a/src/test/resources/response/get_ibans_ok1.json b/src/test/resources/response/get_ibans_ok1.json index b7236978..d817c5ea 100644 --- a/src/test/resources/response/get_ibans_ok1.json +++ b/src/test/resources/response/get_ibans_ok1.json @@ -4,9 +4,9 @@ "ci_fiscal_code": "168480242", "ci_name": "Comune di Bassano del Grappa", "iban": "IT01X02933019297465283757", - "inserted_date": "2023-01-01T11:00:00.000Z", - "validity_date": "2023-01-01T11:00:00.000Z", - "due_date": "2035-12-31T22:59:59.999Z", + "inserted_date": "2023-01-01T12:00:00.000Z", + "validity_date": "2023-01-01T12:00:00.000Z", + "due_date": "2035-12-31T23:59:59.999Z", "description": "Cassa comunale Bassano del Grappa", "owner_fiscal_code": "168480242", "labels": [] @@ -15,9 +15,9 @@ "ci_fiscal_code": "168480242", "ci_name": "Comune di Bassano del Grappa", "iban": "IT01X02933019297465283758", - "inserted_date": "2023-01-01T11:00:00.000Z", - "validity_date": "2023-01-01T11:00:00.000Z", - "due_date": "2035-12-31T22:59:59.999Z", + "inserted_date": "2023-01-01T12:00:00.000Z", + "validity_date": "2023-01-01T12:00:00.000Z", + "due_date": "2035-12-31T23:59:59.999Z", "description": "Cassa comunale Bassano del Grappa - CUP e StandIn", "owner_fiscal_code": "168480242", "labels": [ diff --git a/src/test/resources/response/get_ibans_ok2.json b/src/test/resources/response/get_ibans_ok2.json index d75eb5e3..fbaf96f7 100644 --- a/src/test/resources/response/get_ibans_ok2.json +++ b/src/test/resources/response/get_ibans_ok2.json @@ -4,9 +4,9 @@ "ci_fiscal_code": "99999999999", "ci_name": "Comune di Ventimiglia", "iban": "IT01X02933019297465283888", - "inserted_date": "2023-02-01T11:00:00.000Z", - "validity_date": "2023-02-01T11:00:00.000Z", - "due_date": "2025-12-31T22:59:59.999Z", + "inserted_date": "2023-02-01T12:00:00.000Z", + "validity_date": "2023-02-01T12:00:00.000Z", + "due_date": "2025-12-31T23:59:59.999Z", "description": "Cassa comunale Ventimiglia", "owner_fiscal_code": "99999999999", "labels": [] @@ -15,8 +15,8 @@ "ci_fiscal_code": "168480242", "ci_name": "Comune di Bassano del Grappa", "iban": "IT01X02933019297465283757", - "inserted_date": "2023-01-01T11:00:00.000Z", - "validity_date": "2023-01-01T11:00:00.000Z", + "inserted_date": "2023-01-01T12:00:00.000Z", + "validity_date": "2023-01-01T12:00:00.000Z", "due_date": "2035-12-31T22:59:59.999Z", "description": "Cassa comunale Bassano del Grappa", "owner_fiscal_code": "168480242", @@ -26,8 +26,8 @@ "ci_fiscal_code": "168480242", "ci_name": "Comune di Bassano del Grappa", "iban": "IT01X02933019297465283758", - "inserted_date": "2023-01-01T11:00:00.000Z", - "validity_date": "2023-01-01T11:00:00.000Z", + "inserted_date": "2023-01-01T12:00:00.000Z", + "validity_date": "2023-01-01T12:00:00.000Z", "due_date": "2035-12-31T22:59:59.999Z", "description": "Cassa comunale Bassano del Grappa - CUP e StandIn", "owner_fiscal_code": "168480242", From 869da336d0250af109a6a27acafa3531fb55e681 Mon Sep 17 00:00:00 2001 From: Jacopo Date: Tue, 19 Dec 2023 17:26:08 +0100 Subject: [PATCH 20/20] fix --- openapi/openapi.json | 6 +++--- .../apiconfig/controller/IbanControllerTest.java | 11 +++++++---- src/test/resources/response/get_ibans_ok2.json | 4 ++-- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/openapi/openapi.json b/openapi/openapi.json index 86c59054..6123e5c9 100644 --- a/openapi/openapi.json +++ b/openapi/openapi.json @@ -1,10 +1,10 @@ { "openapi" : "3.0.1", "info" : { - "title" : "@project.name@", - "description" : "@project.description@", + "title" : "API-Config - SelfCare Integration", + "description" : "Spring application exposes APIs for SelfCare", "termsOfService" : "https://www.pagopa.gov.it/", - "version" : "1.8.4-2-PASELC-658-be-api-config-nuova-api-get-per-recupero-iban-da-lista-ec" + "version" : "1.8.6-11-export-iban" }, "servers" : [ { "url" : "http://localhost", diff --git a/src/test/java/it/gov/pagopa/apiconfig/controller/IbanControllerTest.java b/src/test/java/it/gov/pagopa/apiconfig/controller/IbanControllerTest.java index 8657dca3..d75376df 100644 --- a/src/test/java/it/gov/pagopa/apiconfig/controller/IbanControllerTest.java +++ b/src/test/java/it/gov/pagopa/apiconfig/controller/IbanControllerTest.java @@ -20,7 +20,7 @@ import static it.gov.pagopa.apiconfig.util.TestUtil.getMockIbanList; import static org.mockito.Mockito.when; -import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get; +import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.content; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; @@ -33,6 +33,7 @@ class IbanControllerTest { @MockBean private IbansService ibansService; + @BeforeEach void setup() throws IOException { TimeZone.setDefault(TimeZone.getTimeZone("UTC")); @@ -42,10 +43,12 @@ void setup() throws IOException { @ParameterizedTest @CsvSource({ - "/ibans?limit=10&page=0&ci_list=168480242", + "/ibans?limit=10&page=0", }) void testGetWithCIs(String url) throws Exception { - mvc.perform(get(url).contentType(MediaType.APPLICATION_JSON)) + mvc.perform(post(url) + .content("[\"168480242\"]") + .contentType(MediaType.APPLICATION_JSON)) .andExpect(status().isOk()) .andExpect(content().contentType(MediaType.APPLICATION_JSON)); } @@ -55,7 +58,7 @@ void testGetWithCIs(String url) throws Exception { "/ibans?limit=10&page=0", }) void testGetWithoutCIs(String url) throws Exception { - mvc.perform(get(url).contentType(MediaType.APPLICATION_JSON)) + mvc.perform(post(url).content("[]").contentType(MediaType.APPLICATION_JSON)) .andExpect(status().isBadRequest()); } } diff --git a/src/test/resources/response/get_ibans_ok2.json b/src/test/resources/response/get_ibans_ok2.json index fbaf96f7..463e5c63 100644 --- a/src/test/resources/response/get_ibans_ok2.json +++ b/src/test/resources/response/get_ibans_ok2.json @@ -17,7 +17,7 @@ "iban": "IT01X02933019297465283757", "inserted_date": "2023-01-01T12:00:00.000Z", "validity_date": "2023-01-01T12:00:00.000Z", - "due_date": "2035-12-31T22:59:59.999Z", + "due_date": "2035-12-31T23:59:59.999Z", "description": "Cassa comunale Bassano del Grappa", "owner_fiscal_code": "168480242", "labels": [] @@ -28,7 +28,7 @@ "iban": "IT01X02933019297465283758", "inserted_date": "2023-01-01T12:00:00.000Z", "validity_date": "2023-01-01T12:00:00.000Z", - "due_date": "2035-12-31T22:59:59.999Z", + "due_date": "2035-12-31T23:59:59.999Z", "description": "Cassa comunale Bassano del Grappa - CUP e StandIn", "owner_fiscal_code": "168480242", "labels": [