From 173cb95a9fb1d294535ac5208a84300437d69679 Mon Sep 17 00:00:00 2001 From: Massimo Scattarella Date: Thu, 2 May 2024 19:34:26 +0200 Subject: [PATCH 1/5] NOD-875 add STAND_IN_RPT --- .../fdr/model/PaymentStatusEnumEntity.java | 3 +- .../it/gov/pagopa/fdr/rest/model/Payment.java | 3 +- .../fdr/rest/model/PaymentStatusEnum.java | 3 +- .../fdr/service/dto/PaymentStatusEnumDto.java | 3 +- .../schema-json/fdr_history_schema_v1.json | 2 +- .../InternalOrganizationResourceTest.java | 7 ++-- .../OrganizationResourceTest.java | 8 ++-- .../rest/psps/InternalPspResourceTest.java | 3 +- .../pagopa/fdr/rest/psps/PspResourceTest.java | 11 ++--- .../it/gov/pagopa/fdr/test/util/TestUtil.java | 42 ++++++++++++------- 10 files changed, 53 insertions(+), 32 deletions(-) diff --git a/src/main/java/it/gov/pagopa/fdr/repository/fdr/model/PaymentStatusEnumEntity.java b/src/main/java/it/gov/pagopa/fdr/repository/fdr/model/PaymentStatusEnumEntity.java index 31a805ff..311c2a62 100644 --- a/src/main/java/it/gov/pagopa/fdr/repository/fdr/model/PaymentStatusEnumEntity.java +++ b/src/main/java/it/gov/pagopa/fdr/repository/fdr/model/PaymentStatusEnumEntity.java @@ -4,5 +4,6 @@ public enum PaymentStatusEnumEntity { EXECUTED, REVOKED, NO_RPT, - STAND_IN + STAND_IN, + STAND_IN_NO_RPT; } diff --git a/src/main/java/it/gov/pagopa/fdr/rest/model/Payment.java b/src/main/java/it/gov/pagopa/fdr/rest/model/Payment.java index a3f090c5..ae6ddc13 100644 --- a/src/main/java/it/gov/pagopa/fdr/rest/model/Payment.java +++ b/src/main/java/it/gov/pagopa/fdr/rest/model/Payment.java @@ -57,7 +57,8 @@ public class Payment { + "0 -> EXECUTED\n" + "3 -> REVOKED\n" + "9 -> NO_RPT\n" - + "4 -> STAND_IN") + + "4 -> STAND_IN\n" + + "8 -> STAND_IN_NO_RPT") private PaymentStatusEnum payStatus; @NotNull diff --git a/src/main/java/it/gov/pagopa/fdr/rest/model/PaymentStatusEnum.java b/src/main/java/it/gov/pagopa/fdr/rest/model/PaymentStatusEnum.java index a15240e9..b5d3b172 100644 --- a/src/main/java/it/gov/pagopa/fdr/rest/model/PaymentStatusEnum.java +++ b/src/main/java/it/gov/pagopa/fdr/rest/model/PaymentStatusEnum.java @@ -4,5 +4,6 @@ public enum PaymentStatusEnum { EXECUTED, REVOKED, NO_RPT, - STAND_IN + STAND_IN, + STAND_IN_NO_RPT; } diff --git a/src/main/java/it/gov/pagopa/fdr/service/dto/PaymentStatusEnumDto.java b/src/main/java/it/gov/pagopa/fdr/service/dto/PaymentStatusEnumDto.java index 48b706de..673fc70c 100644 --- a/src/main/java/it/gov/pagopa/fdr/service/dto/PaymentStatusEnumDto.java +++ b/src/main/java/it/gov/pagopa/fdr/service/dto/PaymentStatusEnumDto.java @@ -4,5 +4,6 @@ public enum PaymentStatusEnumDto { EXECUTED, REVOKED, NO_RPT, - STAND_IN + STAND_IN, + STAND_IN_NO_RPT; } diff --git a/src/main/resources/schema-json/fdr_history_schema_v1.json b/src/main/resources/schema-json/fdr_history_schema_v1.json index eddd12f3..f91a8d60 100644 --- a/src/main/resources/schema-json/fdr_history_schema_v1.json +++ b/src/main/resources/schema-json/fdr_history_schema_v1.json @@ -171,7 +171,7 @@ "description": "Stato del pagamento", "type": "string", "example": "EXECUTED", - "enum": ["EXECUTED", "REVOKED", "NO_RPT", "STAND_IN"] + "enum": ["EXECUTED", "REVOKED", "NO_RPT", "STAND_IN", "STAND_IN_NO_RPT"] }, "payDate": { "description": "Data pagamento", diff --git a/src/test/java/it/gov/pagopa/fdr/rest/organizations/InternalOrganizationResourceTest.java b/src/test/java/it/gov/pagopa/fdr/rest/organizations/InternalOrganizationResourceTest.java index cf738128..20756bb7 100644 --- a/src/test/java/it/gov/pagopa/fdr/rest/organizations/InternalOrganizationResourceTest.java +++ b/src/test/java/it/gov/pagopa/fdr/rest/organizations/InternalOrganizationResourceTest.java @@ -149,7 +149,7 @@ void testOrganization_getReportingFlow_Ok() { assertThat(res.getReceiver().getOrganizationId(), equalTo(EC_CODE)); assertThat(res.getSender().getPspId(), equalTo(PSP_CODE)); assertThat(res.getStatus(), equalTo(ReportingFlowStatusEnum.PUBLISHED)); - assertThat(res.getComputedTotPayments(), equalTo(4L)); + assertThat(res.getComputedTotPayments(), equalTo(5L)); } @Test @@ -218,13 +218,14 @@ void testOrganization_getReportingFlowPayments_Ok() { .statusCode(200) .extract() .as(GetPaymentResponse.class); - assertThat(res.getCount(), equalTo(4L)); + assertThat(res.getCount(), equalTo(5L)); List expectedList = List.of( PaymentStatusEnum.EXECUTED.name(), PaymentStatusEnum.REVOKED.name(), PaymentStatusEnum.NO_RPT.name(), - PaymentStatusEnum.STAND_IN.name()); + PaymentStatusEnum.STAND_IN.name(), + PaymentStatusEnum.STAND_IN_NO_RPT.name()); assertThat( res.getData().stream().map(o -> o.getPayStatus().name()).toList(), equalTo(expectedList)); assertThat( diff --git a/src/test/java/it/gov/pagopa/fdr/rest/organizations/OrganizationResourceTest.java b/src/test/java/it/gov/pagopa/fdr/rest/organizations/OrganizationResourceTest.java index 3a8caeaf..2d95fc3f 100644 --- a/src/test/java/it/gov/pagopa/fdr/rest/organizations/OrganizationResourceTest.java +++ b/src/test/java/it/gov/pagopa/fdr/rest/organizations/OrganizationResourceTest.java @@ -174,7 +174,7 @@ void testOrganization_getReportingFlow_Ok() { assertThat(res.getReceiver().getOrganizationId(), equalTo(EC_CODE)); assertThat(res.getSender().getPspId(), equalTo(PSP_CODE)); assertThat(res.getStatus(), equalTo(ReportingFlowStatusEnum.PUBLISHED)); - assertThat(res.getComputedTotPayments(), equalTo(4L)); + assertThat(res.getComputedTotPayments(), equalTo(5L)); } @Test @@ -236,8 +236,8 @@ void testOrganization_getReportingFlowPayments_Ok() { .statusCode(200) .extract() .as(GetPaymentResponse.class); - assertThat(res.getCount(), equalTo(4L)); - List expectedList = List.of(PaymentStatusEnum.EXECUTED.name(), PaymentStatusEnum.REVOKED.name(), PaymentStatusEnum.NO_RPT.name(), PaymentStatusEnum.STAND_IN.name()); + assertThat(res.getCount(), equalTo(5L)); + List expectedList = List.of(PaymentStatusEnum.EXECUTED.name(), PaymentStatusEnum.REVOKED.name(), PaymentStatusEnum.NO_RPT.name(), PaymentStatusEnum.STAND_IN.name(), PaymentStatusEnum.STAND_IN_NO_RPT.name()); assertThat(res.getData().stream().map(o -> o.getPayStatus().name()).toList(), equalTo(expectedList)); assertThat(res.getData().stream().map(o -> o.getPayStatus().name()).toList(), @@ -263,7 +263,7 @@ void testOrganization_getReportingFlowPayments_pagination_Ok() { assertThat(res.getMetadata().getPageSize(), equalTo(1)); assertThat(res.getMetadata().getPageNumber(), equalTo(2)); - assertThat(res.getCount(), equalTo(4L)); + assertThat(res.getCount(), equalTo(5L)); assertThat(data.stream().map(o -> o.getPayStatus().name()).toList(), equalTo(List.of(PaymentStatusEnum.REVOKED.name()))); assertThat(data.stream().map(Payment::getIndex).toList(), diff --git a/src/test/java/it/gov/pagopa/fdr/rest/psps/InternalPspResourceTest.java b/src/test/java/it/gov/pagopa/fdr/rest/psps/InternalPspResourceTest.java index 42282cf7..c7e32668 100644 --- a/src/test/java/it/gov/pagopa/fdr/rest/psps/InternalPspResourceTest.java +++ b/src/test/java/it/gov/pagopa/fdr/rest/psps/InternalPspResourceTest.java @@ -194,7 +194,8 @@ class InternalPspResourceTest { 100, 101, 102, - 103 + 103, + 104 ] } """; diff --git a/src/test/java/it/gov/pagopa/fdr/rest/psps/PspResourceTest.java b/src/test/java/it/gov/pagopa/fdr/rest/psps/PspResourceTest.java index a5f2ba44..f65578e9 100644 --- a/src/test/java/it/gov/pagopa/fdr/rest/psps/PspResourceTest.java +++ b/src/test/java/it/gov/pagopa/fdr/rest/psps/PspResourceTest.java @@ -183,7 +183,8 @@ class PspResourceTest { "indexList": [ 100, 101, - 102 + 102, + 103 ] } """; @@ -1297,7 +1298,7 @@ void testOrganization_getAllPublishedFlow_Ok() { .statusCode(200) .extract() .as(GetResponse.class); - assertThat(res.getTotPayments(), equalTo(4L)); + assertThat(res.getTotPayments(), equalTo(5L)); assertThat(res.getStatus(), equalTo(ReportingFlowStatusEnum.PUBLISHED)); } @@ -1439,7 +1440,7 @@ void test_psp_getReportingFlow_Ok() { assertThat(res.getReceiver().getOrganizationId(), equalTo(EC_CODE)); assertThat(res.getSender().getPspId(), equalTo(PSP_CODE)); assertThat(res.getStatus(), equalTo(ReportingFlowStatusEnum.PUBLISHED)); - assertThat(res.getComputedTotPayments(), equalTo(4L)); + assertThat(res.getComputedTotPayments(), equalTo(5L)); } @Test @@ -1496,8 +1497,8 @@ void test_psp_getReportingFlowPaymentsPublished_Ok() { .statusCode(200) .extract() .as(GetPaymentResponse.class); - assertThat(res.getCount(), equalTo(4L)); - List expectedList = List.of(PaymentStatusEnum.EXECUTED.name(), PaymentStatusEnum.REVOKED.name(), PaymentStatusEnum.NO_RPT.name(), PaymentStatusEnum.STAND_IN.name()); + assertThat(res.getCount(), equalTo(5L)); + List expectedList = List.of(PaymentStatusEnum.EXECUTED.name(), PaymentStatusEnum.REVOKED.name(), PaymentStatusEnum.NO_RPT.name(), PaymentStatusEnum.STAND_IN.name(), PaymentStatusEnum.STAND_IN_NO_RPT.name()); assertThat(res.getData().stream().map(o -> o.getPayStatus().name()).toList(), equalTo(expectedList)); assertThat(res.getData().stream().map(o -> o.getPayStatus().name()).toList(), diff --git a/src/test/java/it/gov/pagopa/fdr/test/util/TestUtil.java b/src/test/java/it/gov/pagopa/fdr/test/util/TestUtil.java index 23ddbec2..f5228db3 100644 --- a/src/test/java/it/gov/pagopa/fdr/test/util/TestUtil.java +++ b/src/test/java/it/gov/pagopa/fdr/test/util/TestUtil.java @@ -14,8 +14,7 @@ import it.gov.pagopa.fdr.rest.model.GenericResponse; import it.gov.pagopa.fdr.service.dto.SenderTypeEnumDto; -import java.util.Random; -import java.util.random.RandomGenerator; +import java.time.Instant; public class TestUtil { public static String getDynamicFlowName() { @@ -23,8 +22,7 @@ public static String getDynamicFlowName() { } public static String getDynamicFlowName(String psp) { - RandomGenerator randomGenerator = new Random(); - return String.format("2016-08-16%s-%s", psp, randomGenerator.nextInt(1111, 9999)); + return String.format("2016-08-16%s-%s", psp, Instant.now().toEpochMilli()); } public static String FLOW_TEMPLATE = @@ -49,8 +47,8 @@ public static String getDynamicFlowName(String psp) { "regulation": "SEPA - Bonifico xzy", "regulationDate": "2023-04-03T12:00:30.900000Z", "bicCodePouringBank": "UNCRITMMXXX", - "totPayments": 4, - "sumPayments": 0.04 + "totPayments": 5, + "sumPayments": 0.05 } """; @@ -89,6 +87,14 @@ public static String getDynamicFlowName(String psp) { "pay": 0.01, "payStatus": "STAND_IN", "payDate": "2023-02-03T12:00:30.900000Z" + },{ + "index": 104, + "iuv": "e", + "iur": "abcdefg", + "idTransfer": 5, + "pay": 0.01, + "payStatus": "STAND_IN_NO_RPT", + "payDate": "2023-02-03T12:00:30.900000Z" } ] } @@ -98,37 +104,45 @@ public static String getDynamicFlowName(String psp) { """ { "payments": [{ - "index": 104, - "iuv": "e", + "index": 105, + "iuv": "f", "iur": "abcdefg", "idTransfer": 5, "pay": 0.01, "payStatus": "EXECUTED", "payDate": "2023-02-03T12:00:30.900000Z" },{ - "index": 105, - "iuv": "f", + "index": 106, + "iuv": "g", "iur": "abcdefg", "idTransfer": 5, "pay": 0.01, "payStatus": "REVOKED", "payDate": "2023-02-03T12:00:30.900000Z" },{ - "index": 106, - "iuv": "g", + "index": 107, + "iuv": "h", "iur": "abcdefg", "idTransfer": 5, "pay": 0.01, "payStatus": "NO_RPT", "payDate": "2023-02-03T12:00:30.900000Z" },{ - "index": 107, - "iuv": "h", + "index": 108, + "iuv": "i", "iur": "abcdefg", "idTransfer": 5, "pay": 0.01, "payStatus": "STAND_IN", "payDate": "2023-02-03T12:00:30.900000Z" + },{ + "index": 109, + "iuv": "l", + "iur": "abcdefg", + "idTransfer": 5, + "pay": 0.01, + "payStatus": "STAND_IN_NO_RPT", + "payDate": "2023-02-03T12:00:30.900000Z" } ] } From 410426d6550edd31e1c46a76e3858a1c20a0c5c6 Mon Sep 17 00:00:00 2001 From: Massimo Scattarella Date: Thu, 2 May 2024 19:45:21 +0200 Subject: [PATCH 2/5] NOD-875 add STAND_IN_RPT --- openapi/openapi_internal.json | 3376 ++++++++++++++--------------- openapi/openapi_organization.json | 1978 ++++++++--------- openapi/openapi_psp.json | 2726 +++++++++++------------ 3 files changed, 3782 insertions(+), 4298 deletions(-) diff --git a/openapi/openapi_internal.json b/openapi/openapi_internal.json index 6df7d1c5..916e623d 100644 --- a/openapi/openapi_internal.json +++ b/openapi/openapi_internal.json @@ -1,98 +1,81 @@ { - "openapi": "3.0.3", - "info": { - "title": "FDR - Flussi di rendicontazione (local)", - "description": "Manage FDR ( aka \"Flussi di Rendicontazione\" ) exchanged between PSP and EC", - "termsOfService": "https://www.pagopa.gov.it/", - "version": "1.0.15" + "openapi" : "3.0.3", + "info" : { + "title" : "FDR - Flussi di rendicontazione (local)", + "description" : "Manage FDR ( aka \"Flussi di Rendicontazione\" ) exchanged between PSP and EC", + "termsOfService" : "https://www.pagopa.gov.it/", + "version" : "0.0.0-SNAPSHOT" }, - "servers": [ - { - "url": "http://localhost:8080/" - } - ], - "security": [ - { - "api_key": [] - } - ], - "tags": [ - { - "name": "Info", - "description": "Info operations" - }, - { - "name": "Internal Organizations", - "description": "Organizations operations" - }, - { - "name": "Internal PSP", - "description": "PSP operations" - }, - { - "name": "Organizations", - "description": "Organizations operations" - }, - { - "name": "PSP", - "description": "PSP operations" - }, - { - "name": "Support", - "description": "Support operations" - } - ], - "paths": { - "/internal/psps/{pspId}/created/fdrs/{fdr}/organizations/{organizationId}": { - "get": { - "tags": [ - "Internal PSP" - ], - "summary": "Get created fdr", - "description": "Get created fdr", - "operationId": "internalGetCreated", - "parameters": [ - { - "name": "fdr", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "organizationId", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "pspId", - "in": "path", - "required": true, - "schema": { - "type": "string" - } + "servers" : [ { + "url" : "http://localhost:8080/" + } ], + "security" : [ { + "api_key" : [ ] + } ], + "tags" : [ { + "name" : "Info", + "description" : "Info operations" + }, { + "name" : "Internal Organizations", + "description" : "Organizations operations" + }, { + "name" : "Internal PSP", + "description" : "PSP operations" + }, { + "name" : "Organizations", + "description" : "Organizations operations" + }, { + "name" : "PSP", + "description" : "PSP operations" + }, { + "name" : "Support", + "description" : "Support operations" + } ], + "paths" : { + "/internal/psps/{pspId}/created/fdrs/{fdr}/organizations/{organizationId}" : { + "get" : { + "tags" : [ "Internal PSP" ], + "summary" : "Get created fdr", + "description" : "Get created fdr", + "operationId" : "internalGetCreated", + "parameters" : [ { + "name" : "fdr", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" } - ], - "responses": { - "500": { - "$ref": "#/components/responses/InternalServerError" - }, - "400": { - "$ref": "#/components/responses/AppException400" - }, - "404": { - "$ref": "#/components/responses/AppException404" - }, - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GetCreatedResponse" + }, { + "name" : "organizationId", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "pspId", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "500" : { + "$ref" : "#/components/responses/InternalServerError" + }, + "400" : { + "$ref" : "#/components/responses/AppException400" + }, + "404" : { + "$ref" : "#/components/responses/AppException404" + }, + "200" : { + "description" : "Success", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/GetCreatedResponse" } } } @@ -100,57 +83,52 @@ } } }, - "/internal/psps/{pspId}/fdrs/{fdr}/payments/add": { - "put": { - "tags": [ - "Internal PSP" - ], - "summary": "Add payments to fdr", - "description": "Add payments to fdr", - "operationId": "internalAddPayment", - "parameters": [ - { - "name": "fdr", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "pspId", - "in": "path", - "required": true, - "schema": { - "type": "string" - } + "/internal/psps/{pspId}/fdrs/{fdr}/payments/add" : { + "put" : { + "tags" : [ "Internal PSP" ], + "summary" : "Add payments to fdr", + "description" : "Add payments to fdr", + "operationId" : "internalAddPayment", + "parameters" : [ { + "name" : "fdr", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "pspId", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/AddPaymentRequest" + } ], + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/AddPaymentRequest" } } } }, - "responses": { - "500": { - "$ref": "#/components/responses/InternalServerError" - }, - "400": { - "$ref": "#/components/responses/AppException400" - }, - "404": { - "$ref": "#/components/responses/AppException404" - }, - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GenericResponse" + "responses" : { + "500" : { + "$ref" : "#/components/responses/InternalServerError" + }, + "400" : { + "$ref" : "#/components/responses/AppException400" + }, + "404" : { + "$ref" : "#/components/responses/AppException404" + }, + "200" : { + "description" : "Success", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/GenericResponse" } } } @@ -158,65 +136,58 @@ } } }, - "/internal/psps/{pspId}/published/fdrs/{fdr}/revisions/{revision}/organizations/{organizationId}": { - "get": { - "tags": [ - "Internal PSP" - ], - "summary": "Get internal fdr Published", - "description": "Get internal fdr Published", - "operationId": "internalGetPublishedByPsp", - "parameters": [ - { - "name": "fdr", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "organizationId", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "pspId", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "revision", - "in": "path", - "required": true, - "schema": { - "format": "int64", - "type": "integer" - } + "/internal/psps/{pspId}/published/fdrs/{fdr}/revisions/{revision}/organizations/{organizationId}" : { + "get" : { + "tags" : [ "Internal PSP" ], + "summary" : "Get internal fdr Published", + "description" : "Get internal fdr Published", + "operationId" : "internalGetPublishedByPsp", + "parameters" : [ { + "name" : "fdr", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" } - ], - "responses": { - "500": { - "$ref": "#/components/responses/InternalServerError" - }, - "400": { - "$ref": "#/components/responses/AppException400" - }, - "404": { - "$ref": "#/components/responses/AppException404" - }, - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GetResponse" + }, { + "name" : "organizationId", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "pspId", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "revision", + "in" : "path", + "required" : true, + "schema" : { + "format" : "int64", + "type" : "integer" + } + } ], + "responses" : { + "500" : { + "$ref" : "#/components/responses/InternalServerError" + }, + "400" : { + "$ref" : "#/components/responses/AppException400" + }, + "404" : { + "$ref" : "#/components/responses/AppException404" + }, + "200" : { + "description" : "Success", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/GetResponse" } } } @@ -224,75 +195,67 @@ } } }, - "/internal/psps/{pspId}/published": { - "get": { - "tags": [ - "Internal PSP" - ], - "summary": "Get all internal fdr published", - "description": "Get all internal fdr published", - "operationId": "internalGetAllPublishedByPsp", - "parameters": [ - { - "name": "pspId", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "organizationId", - "in": "query", - "schema": { - "pattern": "^(.{1,35})$", - "type": "string" - } - }, - { - "name": "page", - "in": "query", - "schema": { - "format": "int64", - "default": 1, - "minimum": 1, - "type": "integer" - } - }, - { - "name": "publishedGt", - "in": "query", - "schema": { - "$ref": "#/components/schemas/Instant" - } - }, - { - "name": "size", - "in": "query", - "schema": { - "format": "int64", - "default": 1000, - "minimum": 1, - "type": "integer" - } + "/internal/psps/{pspId}/published" : { + "get" : { + "tags" : [ "Internal PSP" ], + "summary" : "Get all internal fdr published", + "description" : "Get all internal fdr published", + "operationId" : "internalGetAllPublishedByPsp", + "parameters" : [ { + "name" : "pspId", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" } - ], - "responses": { - "500": { - "$ref": "#/components/responses/InternalServerError" - }, - "400": { - "$ref": "#/components/responses/AppException400" - }, - "404": { - "$ref": "#/components/responses/AppException404" - }, - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GetAllPublishedResponse" + }, { + "name" : "organizationId", + "in" : "query", + "schema" : { + "pattern" : "^(.{1,35})$", + "type" : "string" + } + }, { + "name" : "page", + "in" : "query", + "schema" : { + "format" : "int64", + "default" : 1, + "minimum" : 1, + "type" : "integer" + } + }, { + "name" : "publishedGt", + "in" : "query", + "schema" : { + "$ref" : "#/components/schemas/Instant" + } + }, { + "name" : "size", + "in" : "query", + "schema" : { + "format" : "int64", + "default" : 1000, + "minimum" : 1, + "type" : "integer" + } + } ], + "responses" : { + "500" : { + "$ref" : "#/components/responses/InternalServerError" + }, + "400" : { + "$ref" : "#/components/responses/AppException400" + }, + "404" : { + "$ref" : "#/components/responses/AppException404" + }, + "200" : { + "description" : "Success", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/GetAllPublishedResponse" } } } @@ -300,76 +263,68 @@ } } }, - "/internal/psps/{pspId}/created/fdrs/{fdr}/organizations/{organizationId}/payments": { - "get": { - "tags": [ - "Internal PSP" - ], - "summary": "Get internal created payments of fdr", - "description": "Get internal created payments of fdr", - "operationId": "internalGetCreatedPayment", - "parameters": [ - { - "name": "fdr", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "organizationId", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "pspId", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "page", - "in": "query", - "schema": { - "format": "int64", - "default": 1, - "minimum": 1, - "type": "integer" - } - }, - { - "name": "size", - "in": "query", - "schema": { - "format": "int64", - "default": 1000, - "minimum": 1, - "type": "integer" - } + "/internal/psps/{pspId}/created/fdrs/{fdr}/organizations/{organizationId}/payments" : { + "get" : { + "tags" : [ "Internal PSP" ], + "summary" : "Get internal created payments of fdr", + "description" : "Get internal created payments of fdr", + "operationId" : "internalGetCreatedPayment", + "parameters" : [ { + "name" : "fdr", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" } - ], - "responses": { - "500": { - "$ref": "#/components/responses/InternalServerError" - }, - "400": { - "$ref": "#/components/responses/AppException400" - }, - "404": { - "$ref": "#/components/responses/AppException404" - }, - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GetPaymentResponse" + }, { + "name" : "organizationId", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "pspId", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "page", + "in" : "query", + "schema" : { + "format" : "int64", + "default" : 1, + "minimum" : 1, + "type" : "integer" + } + }, { + "name" : "size", + "in" : "query", + "schema" : { + "format" : "int64", + "default" : 1000, + "minimum" : 1, + "type" : "integer" + } + } ], + "responses" : { + "500" : { + "$ref" : "#/components/responses/InternalServerError" + }, + "400" : { + "$ref" : "#/components/responses/AppException400" + }, + "404" : { + "$ref" : "#/components/responses/AppException404" + }, + "200" : { + "description" : "Success", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/GetPaymentResponse" } } } @@ -377,76 +332,68 @@ } } }, - "/internal/organizations/{organizationId}/fdrs": { - "get": { - "tags": [ - "Internal Organizations" - ], - "summary": "Get all fdr published", - "description": "Get all fdr published", - "operationId": "internalGetAllPublished", - "parameters": [ - { - "name": "organizationId", - "in": "path", - "required": true, - "schema": { - "pattern": "^(.{1,35})$", - "type": "string" - } - }, - { - "name": "page", - "in": "query", - "schema": { - "format": "int64", - "default": 1, - "minimum": 1, - "type": "integer" - } - }, - { - "name": "pspId", - "in": "query", - "schema": { - "pattern": "^(.{1,35})$", - "type": "string" - } - }, - { - "name": "publishedGt", - "in": "query", - "schema": { - "$ref": "#/components/schemas/Instant" - } - }, - { - "name": "size", - "in": "query", - "schema": { - "format": "int64", - "default": 1000, - "minimum": 1, - "type": "integer" - } + "/internal/organizations/{organizationId}/fdrs" : { + "get" : { + "tags" : [ "Internal Organizations" ], + "summary" : "Get all fdr published", + "description" : "Get all fdr published", + "operationId" : "internalGetAllPublished", + "parameters" : [ { + "name" : "organizationId", + "in" : "path", + "required" : true, + "schema" : { + "pattern" : "^(.{1,35})$", + "type" : "string" } - ], - "responses": { - "500": { - "$ref": "#/components/responses/InternalServerError" - }, - "400": { - "$ref": "#/components/responses/AppException400" - }, - "404": { - "$ref": "#/components/responses/AppException404" - }, - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GetAllResponse" + }, { + "name" : "page", + "in" : "query", + "schema" : { + "format" : "int64", + "default" : 1, + "minimum" : 1, + "type" : "integer" + } + }, { + "name" : "pspId", + "in" : "query", + "schema" : { + "pattern" : "^(.{1,35})$", + "type" : "string" + } + }, { + "name" : "publishedGt", + "in" : "query", + "schema" : { + "$ref" : "#/components/schemas/Instant" + } + }, { + "name" : "size", + "in" : "query", + "schema" : { + "format" : "int64", + "default" : 1000, + "minimum" : 1, + "type" : "integer" + } + } ], + "responses" : { + "500" : { + "$ref" : "#/components/responses/InternalServerError" + }, + "400" : { + "$ref" : "#/components/responses/AppException400" + }, + "404" : { + "$ref" : "#/components/responses/AppException404" + }, + "200" : { + "description" : "Success", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/GetAllResponse" } } } @@ -454,48 +401,43 @@ } } }, - "/internal/psps/{pspId}/fdrs/{fdr}/publish": { - "post": { - "tags": [ - "Internal PSP" - ], - "summary": "Publish fdr", - "description": "Publish fdr", - "operationId": "internalPublish", - "parameters": [ - { - "name": "fdr", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "pspId", - "in": "path", - "required": true, - "schema": { - "type": "string" - } + "/internal/psps/{pspId}/fdrs/{fdr}/publish" : { + "post" : { + "tags" : [ "Internal PSP" ], + "summary" : "Publish fdr", + "description" : "Publish fdr", + "operationId" : "internalPublish", + "parameters" : [ { + "name" : "fdr", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" } - ], - "responses": { - "500": { - "$ref": "#/components/responses/InternalServerError" - }, - "400": { - "$ref": "#/components/responses/AppException400" - }, - "404": { - "$ref": "#/components/responses/AppException404" - }, - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GenericResponse" + }, { + "name" : "pspId", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "500" : { + "$ref" : "#/components/responses/InternalServerError" + }, + "400" : { + "$ref" : "#/components/responses/AppException400" + }, + "404" : { + "$ref" : "#/components/responses/AppException404" + }, + "200" : { + "description" : "Success", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/GenericResponse" } } } @@ -503,84 +445,75 @@ } } }, - "/internal/psps/{pspId}/iuv/{iuv}": { - "get": { - "tags": [ - "Support" - ], - "summary": "Get all payments by psp id and iuv", - "description": "Get all payments by psp id and iuv", - "operationId": "getByIuv", - "parameters": [ - { - "name": "iuv", - "in": "path", - "required": true, - "schema": { - "pattern": "^(.{1,35})$", - "type": "string" - } - }, - { - "name": "pspId", - "in": "path", - "required": true, - "schema": { - "pattern": "^(.{1,35})$", - "type": "string" - } - }, - { - "name": "createdFrom", - "in": "query", - "schema": { - "$ref": "#/components/schemas/Instant" - } - }, - { - "name": "createdTo", - "in": "query", - "schema": { - "$ref": "#/components/schemas/Instant" - } - }, - { - "name": "page", - "in": "query", - "schema": { - "format": "int64", - "default": 1, - "minimum": 1, - "type": "integer" - } - }, - { - "name": "size", - "in": "query", - "schema": { - "format": "int64", - "default": 1000, - "minimum": 1, - "type": "integer" - } + "/internal/psps/{pspId}/iuv/{iuv}" : { + "get" : { + "tags" : [ "Support" ], + "summary" : "Get all payments by psp id and iuv", + "description" : "Get all payments by psp id and iuv", + "operationId" : "getByIuv", + "parameters" : [ { + "name" : "iuv", + "in" : "path", + "required" : true, + "schema" : { + "pattern" : "^(.{1,35})$", + "type" : "string" } - ], - "responses": { - "500": { - "$ref": "#/components/responses/InternalServerError" - }, - "400": { - "$ref": "#/components/responses/AppException400" - }, - "404": { - "$ref": "#/components/responses/AppException404" - }, - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FdrByPspIdIuvIurResponse" + }, { + "name" : "pspId", + "in" : "path", + "required" : true, + "schema" : { + "pattern" : "^(.{1,35})$", + "type" : "string" + } + }, { + "name" : "createdFrom", + "in" : "query", + "schema" : { + "$ref" : "#/components/schemas/Instant" + } + }, { + "name" : "createdTo", + "in" : "query", + "schema" : { + "$ref" : "#/components/schemas/Instant" + } + }, { + "name" : "page", + "in" : "query", + "schema" : { + "format" : "int64", + "default" : 1, + "minimum" : 1, + "type" : "integer" + } + }, { + "name" : "size", + "in" : "query", + "schema" : { + "format" : "int64", + "default" : 1000, + "minimum" : 1, + "type" : "integer" + } + } ], + "responses" : { + "500" : { + "$ref" : "#/components/responses/InternalServerError" + }, + "400" : { + "$ref" : "#/components/responses/AppException400" + }, + "404" : { + "$ref" : "#/components/responses/AppException404" + }, + "200" : { + "description" : "Success", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/FdrByPspIdIuvIurResponse" } } } @@ -588,66 +521,59 @@ } } }, - "/internal/organizations/{organizationId}/fdrs/{fdr}/revisions/{revision}/psps/{pspId}": { - "get": { - "tags": [ - "Internal Organizations" - ], - "summary": "Get fdr", - "description": "Get fdr by id but not payments", - "operationId": "internalGet", - "parameters": [ - { - "name": "fdr", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "organizationId", - "in": "path", - "required": true, - "schema": { - "pattern": "^(.{1,35})$", - "type": "string" - } - }, - { - "name": "pspId", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "revision", - "in": "path", - "required": true, - "schema": { - "format": "int64", - "type": "integer" - } + "/internal/organizations/{organizationId}/fdrs/{fdr}/revisions/{revision}/psps/{pspId}" : { + "get" : { + "tags" : [ "Internal Organizations" ], + "summary" : "Get fdr", + "description" : "Get fdr by id but not payments", + "operationId" : "internalGet", + "parameters" : [ { + "name" : "fdr", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" } - ], - "responses": { - "500": { - "$ref": "#/components/responses/InternalServerError" - }, - "400": { - "$ref": "#/components/responses/AppException400" - }, - "404": { - "$ref": "#/components/responses/AppException404" - }, - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GetResponse" + }, { + "name" : "organizationId", + "in" : "path", + "required" : true, + "schema" : { + "pattern" : "^(.{1,35})$", + "type" : "string" + } + }, { + "name" : "pspId", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "revision", + "in" : "path", + "required" : true, + "schema" : { + "format" : "int64", + "type" : "integer" + } + } ], + "responses" : { + "500" : { + "$ref" : "#/components/responses/InternalServerError" + }, + "400" : { + "$ref" : "#/components/responses/AppException400" + }, + "404" : { + "$ref" : "#/components/responses/AppException404" + }, + "200" : { + "description" : "Success", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/GetResponse" } } } @@ -655,57 +581,52 @@ } } }, - "/internal/psps/{pspId}/fdrs/{fdr}/payments/del": { - "put": { - "tags": [ - "Internal PSP" - ], - "summary": "Delete payments to fdr", - "description": "Delete payments to fdr", - "operationId": "internalDeletePayment", - "parameters": [ - { - "name": "fdr", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "pspId", - "in": "path", - "required": true, - "schema": { - "type": "string" - } + "/internal/psps/{pspId}/fdrs/{fdr}/payments/del" : { + "put" : { + "tags" : [ "Internal PSP" ], + "summary" : "Delete payments to fdr", + "description" : "Delete payments to fdr", + "operationId" : "internalDeletePayment", + "parameters" : [ { + "name" : "fdr", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "pspId", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/DeletePaymentRequest" + } ], + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/DeletePaymentRequest" } } } }, - "responses": { - "500": { - "$ref": "#/components/responses/InternalServerError" - }, - "400": { - "$ref": "#/components/responses/AppException400" - }, - "404": { - "$ref": "#/components/responses/AppException404" - }, - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GenericResponse" + "responses" : { + "500" : { + "$ref" : "#/components/responses/InternalServerError" + }, + "400" : { + "$ref" : "#/components/responses/AppException400" + }, + "404" : { + "$ref" : "#/components/responses/AppException404" + }, + "200" : { + "description" : "Success", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/GenericResponse" } } } @@ -713,105 +634,95 @@ } } }, - "/internal/psps/{pspId}/fdrs/{fdr}": { - "post": { - "tags": [ - "Internal PSP" - ], - "summary": "Create fdr", - "description": "Create fdr", - "operationId": "internalCreate", - "parameters": [ - { - "name": "fdr", - "in": "path", - "required": true, - "schema": { - "pattern": "[a-zA-Z0-9\\-_]{1,35}", - "type": "string" - } - }, - { - "name": "pspId", - "in": "path", - "required": true, - "schema": { - "type": "string" - } + "/internal/psps/{pspId}/fdrs/{fdr}" : { + "post" : { + "tags" : [ "Internal PSP" ], + "summary" : "Create fdr", + "description" : "Create fdr", + "operationId" : "internalCreate", + "parameters" : [ { + "name" : "fdr", + "in" : "path", + "required" : true, + "schema" : { + "pattern" : "[a-zA-Z0-9\\-_]{1,35}", + "type" : "string" + } + }, { + "name" : "pspId", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreateRequest" + } ], + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/CreateRequest" } } } }, - "responses": { - "500": { - "$ref": "#/components/responses/InternalServerError" - }, - "400": { - "$ref": "#/components/responses/AppException400" - }, - "404": { - "$ref": "#/components/responses/AppException404" - }, - "201": { - "description": "Created", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GenericResponse" + "responses" : { + "500" : { + "$ref" : "#/components/responses/InternalServerError" + }, + "400" : { + "$ref" : "#/components/responses/AppException400" + }, + "404" : { + "$ref" : "#/components/responses/AppException404" + }, + "201" : { + "description" : "Created", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/GenericResponse" } } } } } }, - "delete": { - "tags": [ - "Internal PSP" - ], - "summary": "Delete fdr", - "description": "Delete fdr", - "operationId": "internalDelete", - "parameters": [ - { - "name": "fdr", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "pspId", - "in": "path", - "required": true, - "schema": { - "type": "string" - } + "delete" : { + "tags" : [ "Internal PSP" ], + "summary" : "Delete fdr", + "description" : "Delete fdr", + "operationId" : "internalDelete", + "parameters" : [ { + "name" : "fdr", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" } - ], - "responses": { - "500": { - "$ref": "#/components/responses/InternalServerError" - }, - "400": { - "$ref": "#/components/responses/AppException400" - }, - "404": { - "$ref": "#/components/responses/AppException404" - }, - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GenericResponse" + }, { + "name" : "pspId", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "500" : { + "$ref" : "#/components/responses/InternalServerError" + }, + "400" : { + "$ref" : "#/components/responses/AppException400" + }, + "404" : { + "$ref" : "#/components/responses/AppException404" + }, + "200" : { + "description" : "Success", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/GenericResponse" } } } @@ -819,84 +730,75 @@ } } }, - "/internal/psps/{pspId}/iur/{iur}": { - "get": { - "tags": [ - "Support" - ], - "summary": "Get all payments by psp id and iur", - "description": "Get all payments by psp id and iur", - "operationId": "getByIur", - "parameters": [ - { - "name": "iur", - "in": "path", - "required": true, - "schema": { - "pattern": "^(.{1,35})$", - "type": "string" - } - }, - { - "name": "pspId", - "in": "path", - "required": true, - "schema": { - "pattern": "^(.{1,35})$", - "type": "string" - } - }, - { - "name": "createdFrom", - "in": "query", - "schema": { - "$ref": "#/components/schemas/Instant" - } - }, - { - "name": "createdTo", - "in": "query", - "schema": { - "$ref": "#/components/schemas/Instant" - } - }, - { - "name": "page", - "in": "query", - "schema": { - "format": "int64", - "default": 1, - "minimum": 1, - "type": "integer" - } - }, - { - "name": "size", - "in": "query", - "schema": { - "format": "int64", - "default": 1000, - "minimum": 1, - "type": "integer" - } + "/internal/psps/{pspId}/iur/{iur}" : { + "get" : { + "tags" : [ "Support" ], + "summary" : "Get all payments by psp id and iur", + "description" : "Get all payments by psp id and iur", + "operationId" : "getByIur", + "parameters" : [ { + "name" : "iur", + "in" : "path", + "required" : true, + "schema" : { + "pattern" : "^(.{1,35})$", + "type" : "string" } - ], - "responses": { - "500": { - "$ref": "#/components/responses/InternalServerError" - }, - "400": { - "$ref": "#/components/responses/AppException400" - }, - "404": { - "$ref": "#/components/responses/AppException404" - }, - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FdrByPspIdIuvIurResponse" + }, { + "name" : "pspId", + "in" : "path", + "required" : true, + "schema" : { + "pattern" : "^(.{1,35})$", + "type" : "string" + } + }, { + "name" : "createdFrom", + "in" : "query", + "schema" : { + "$ref" : "#/components/schemas/Instant" + } + }, { + "name" : "createdTo", + "in" : "query", + "schema" : { + "$ref" : "#/components/schemas/Instant" + } + }, { + "name" : "page", + "in" : "query", + "schema" : { + "format" : "int64", + "default" : 1, + "minimum" : 1, + "type" : "integer" + } + }, { + "name" : "size", + "in" : "query", + "schema" : { + "format" : "int64", + "default" : 1000, + "minimum" : 1, + "type" : "integer" + } + } ], + "responses" : { + "500" : { + "$ref" : "#/components/responses/InternalServerError" + }, + "400" : { + "$ref" : "#/components/responses/AppException400" + }, + "404" : { + "$ref" : "#/components/responses/AppException404" + }, + "200" : { + "description" : "Success", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/FdrByPspIdIuvIurResponse" } } } @@ -904,85 +806,76 @@ } } }, - "/internal/psps/{pspId}/published/fdrs/{fdr}/revisions/{revision}/organizations/{organizationId}/payments": { - "get": { - "tags": [ - "Internal PSP" - ], - "summary": "Get internal payments of fdr Published", - "description": "Get internal payments of fdr Published", - "operationId": "internalGetPaymentPublishedByPSp", - "parameters": [ - { - "name": "fdr", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "organizationId", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "pspId", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "revision", - "in": "path", - "required": true, - "schema": { - "format": "int64", - "type": "integer" - } - }, - { - "name": "page", - "in": "query", - "schema": { - "format": "int64", - "default": 1, - "minimum": 1, - "type": "integer" - } - }, - { - "name": "size", - "in": "query", - "schema": { - "format": "int64", - "default": 1000, - "minimum": 1, - "type": "integer" - } + "/internal/psps/{pspId}/published/fdrs/{fdr}/revisions/{revision}/organizations/{organizationId}/payments" : { + "get" : { + "tags" : [ "Internal PSP" ], + "summary" : "Get internal payments of fdr Published", + "description" : "Get internal payments of fdr Published", + "operationId" : "internalGetPaymentPublishedByPSp", + "parameters" : [ { + "name" : "fdr", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" } - ], - "responses": { - "500": { - "$ref": "#/components/responses/InternalServerError" - }, - "400": { - "$ref": "#/components/responses/AppException400" - }, - "404": { - "$ref": "#/components/responses/AppException404" - }, - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GetPaymentResponse" + }, { + "name" : "organizationId", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "pspId", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "revision", + "in" : "path", + "required" : true, + "schema" : { + "format" : "int64", + "type" : "integer" + } + }, { + "name" : "page", + "in" : "query", + "schema" : { + "format" : "int64", + "default" : 1, + "minimum" : 1, + "type" : "integer" + } + }, { + "name" : "size", + "in" : "query", + "schema" : { + "format" : "int64", + "default" : 1000, + "minimum" : 1, + "type" : "integer" + } + } ], + "responses" : { + "500" : { + "$ref" : "#/components/responses/InternalServerError" + }, + "400" : { + "$ref" : "#/components/responses/AppException400" + }, + "404" : { + "$ref" : "#/components/responses/AppException404" + }, + "200" : { + "description" : "Success", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/GetPaymentResponse" } } } @@ -990,86 +883,77 @@ } } }, - "/internal/organizations/{organizationId}/fdrs/{fdr}/revisions/{revision}/psps/{pspId}/payments": { - "get": { - "tags": [ - "Internal Organizations" - ], - "summary": "Get payments of fdr", - "description": "Get payments of fdr", - "operationId": "internalGetPayment", - "parameters": [ - { - "name": "fdr", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "organizationId", - "in": "path", - "required": true, - "schema": { - "pattern": "^(.{1,35})$", - "type": "string" - } - }, - { - "name": "pspId", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "revision", - "in": "path", - "required": true, - "schema": { - "format": "int64", - "type": "integer" - } - }, - { - "name": "page", - "in": "query", - "schema": { - "format": "int64", - "default": 1, - "minimum": 1, - "type": "integer" - } - }, - { - "name": "size", - "in": "query", - "schema": { - "format": "int64", - "default": 1000, - "minimum": 1, - "type": "integer" - } + "/internal/organizations/{organizationId}/fdrs/{fdr}/revisions/{revision}/psps/{pspId}/payments" : { + "get" : { + "tags" : [ "Internal Organizations" ], + "summary" : "Get payments of fdr", + "description" : "Get payments of fdr", + "operationId" : "internalGetPayment", + "parameters" : [ { + "name" : "fdr", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" } - ], - "responses": { - "500": { - "$ref": "#/components/responses/InternalServerError" - }, - "400": { - "$ref": "#/components/responses/AppException400" - }, - "404": { - "$ref": "#/components/responses/AppException404" - }, - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GetPaymentResponse" + }, { + "name" : "organizationId", + "in" : "path", + "required" : true, + "schema" : { + "pattern" : "^(.{1,35})$", + "type" : "string" + } + }, { + "name" : "pspId", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "revision", + "in" : "path", + "required" : true, + "schema" : { + "format" : "int64", + "type" : "integer" + } + }, { + "name" : "page", + "in" : "query", + "schema" : { + "format" : "int64", + "default" : 1, + "minimum" : 1, + "type" : "integer" + } + }, { + "name" : "size", + "in" : "query", + "schema" : { + "format" : "int64", + "default" : 1000, + "minimum" : 1, + "type" : "integer" + } + } ], + "responses" : { + "500" : { + "$ref" : "#/components/responses/InternalServerError" + }, + "400" : { + "$ref" : "#/components/responses/AppException400" + }, + "404" : { + "$ref" : "#/components/responses/AppException404" + }, + "200" : { + "description" : "Success", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/GetPaymentResponse" } } } @@ -1077,67 +961,60 @@ } } }, - "/internal/psps/{pspId}/created": { - "get": { - "tags": [ - "Internal PSP" - ], - "summary": "Get all fdr inserted", - "description": "Get all fdr inserted", - "operationId": "internalGetAllCreated", - "parameters": [ - { - "name": "pspId", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "createdGt", - "in": "query", - "schema": { - "$ref": "#/components/schemas/Instant" - } - }, - { - "name": "page", - "in": "query", - "schema": { - "format": "int64", - "default": 1, - "minimum": 1, - "type": "integer" - } - }, - { - "name": "size", - "in": "query", - "schema": { - "format": "int64", - "default": 1000, - "minimum": 1, - "type": "integer" - } + "/internal/psps/{pspId}/created" : { + "get" : { + "tags" : [ "Internal PSP" ], + "summary" : "Get all fdr inserted", + "description" : "Get all fdr inserted", + "operationId" : "internalGetAllCreated", + "parameters" : [ { + "name" : "pspId", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" } - ], - "responses": { - "500": { - "$ref": "#/components/responses/InternalServerError" - }, - "400": { - "$ref": "#/components/responses/AppException400" - }, - "404": { - "$ref": "#/components/responses/AppException404" - }, - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GetAllCreatedResponse" + }, { + "name" : "createdGt", + "in" : "query", + "schema" : { + "$ref" : "#/components/schemas/Instant" + } + }, { + "name" : "page", + "in" : "query", + "schema" : { + "format" : "int64", + "default" : 1, + "minimum" : 1, + "type" : "integer" + } + }, { + "name" : "size", + "in" : "query", + "schema" : { + "format" : "int64", + "default" : 1000, + "minimum" : 1, + "type" : "integer" + } + } ], + "responses" : { + "500" : { + "$ref" : "#/components/responses/InternalServerError" + }, + "400" : { + "$ref" : "#/components/responses/AppException400" + }, + "404" : { + "$ref" : "#/components/responses/AppException404" + }, + "200" : { + "description" : "Success", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/GetAllCreatedResponse" } } } @@ -1146,903 +1023,812 @@ } } }, - "components": { - "schemas": { - "AddPaymentRequest": { - "required": [ - "payments" - ], - "type": "object", - "properties": { - "payments": { - "maxItems": 1000, - "minItems": 1, - "type": "array", - "items": { - "$ref": "#/components/schemas/Payment" + "components" : { + "schemas" : { + "AddPaymentRequest" : { + "required" : [ "payments" ], + "type" : "object", + "properties" : { + "payments" : { + "maxItems" : 1000, + "minItems" : 1, + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/Payment" } } } }, - "CreateRequest": { - "required": [ - "fdr", - "fdrDate", - "sender", - "receiver", - "regulation", - "regulationDate", - "totPayments", - "sumPayments" - ], - "type": "object", - "properties": { - "fdr": { - "description": "[XML NodoInviaFlussoRendicontazione]=[identificativoFlusso]", - "pattern": "[a-zA-Z0-9\\-_]{1,35}", - "type": "string", - "example": "2016-08-16pspTest-1178" - }, - "fdrDate": { - "description": "[XML NodoInviaFlussoRendicontazione]=[dataOraFlusso]", - "type": "string", - "allOf": [ - { - "$ref": "#/components/schemas/Instant" - } - ], - "example": "2023-04-05T09:21:37.810000Z" - }, - "sender": { - "$ref": "#/components/schemas/Sender" - }, - "receiver": { - "$ref": "#/components/schemas/Receiver" - }, - "regulation": { - "description": "[XML FlussoRiversamento]=[identificativoUnivocoRegolamento]", - "pattern": "^(.{1,35})$", - "type": "string", - "example": "SEPA - Bonifico xzy" - }, - "regulationDate": { - "description": "[XML FlussoRiversamento]=[dataRegolamento]", - "type": "string", - "allOf": [ - { - "$ref": "#/components/schemas/Instant" - } - ], - "example": "2023-04-03T12:00:30.900000Z" - }, - "bicCodePouringBank": { - "description": "[XML FlussoRiversamento]=[codiceBicBancaDiRiversamento]", - "pattern": "^(.{1,35})$", - "type": "string", - "example": "UNCRITMMXXX" - }, - "totPayments": { - "format": "int64", - "description": "[XML FlussoRiversamento]=[numeroTotalePagamenti]", - "minimum": 1, - "type": "integer", - "example": 1 - }, - "sumPayments": { - "format": "double", - "description": "[XML FlussoRiversamento]=[importoTotalePagamenti]", - "minimum": 0, - "exclusiveMinimum": true, - "pattern": "^\\d{1,2147483647}([.]\\d{1,2})?$", - "type": "number", - "example": 0.01 + "CreateRequest" : { + "required" : [ "fdr", "fdrDate", "sender", "receiver", "regulation", "regulationDate", "totPayments", "sumPayments" ], + "type" : "object", + "properties" : { + "fdr" : { + "description" : "[XML NodoInviaFlussoRendicontazione]=[identificativoFlusso]", + "pattern" : "[a-zA-Z0-9\\-_]{1,35}", + "type" : "string", + "example" : "2016-08-16pspTest-1178" + }, + "fdrDate" : { + "description" : "[XML NodoInviaFlussoRendicontazione]=[dataOraFlusso]", + "type" : "string", + "allOf" : [ { + "$ref" : "#/components/schemas/Instant" + } ], + "example" : "2023-04-05T09:21:37.810000Z" + }, + "sender" : { + "$ref" : "#/components/schemas/Sender" + }, + "receiver" : { + "$ref" : "#/components/schemas/Receiver" + }, + "regulation" : { + "description" : "[XML FlussoRiversamento]=[identificativoUnivocoRegolamento]", + "pattern" : "^(.{1,35})$", + "type" : "string", + "example" : "SEPA - Bonifico xzy" + }, + "regulationDate" : { + "description" : "[XML FlussoRiversamento]=[dataRegolamento]", + "type" : "string", + "allOf" : [ { + "$ref" : "#/components/schemas/Instant" + } ], + "example" : "2023-04-03T12:00:30.900000Z" + }, + "bicCodePouringBank" : { + "description" : "[XML FlussoRiversamento]=[codiceBicBancaDiRiversamento]", + "pattern" : "^(.{1,35})$", + "type" : "string", + "example" : "UNCRITMMXXX" + }, + "totPayments" : { + "format" : "int64", + "description" : "[XML FlussoRiversamento]=[numeroTotalePagamenti]", + "minimum" : 1, + "type" : "integer", + "example" : 1 + }, + "sumPayments" : { + "format" : "double", + "description" : "[XML FlussoRiversamento]=[importoTotalePagamenti]", + "minimum" : 0, + "exclusiveMinimum" : true, + "pattern" : "^\\d{1,2147483647}([.]\\d{1,2})?$", + "type" : "number", + "example" : 0.01 } } }, - "DeletePaymentRequest": { - "required": [ - "indexList" - ], - "type": "object", - "properties": { - "indexList": { - "maxItems": 1000, - "minItems": 1, - "type": "array", - "items": { - "format": "int64", - "type": "integer" + "DeletePaymentRequest" : { + "required" : [ "indexList" ], + "type" : "object", + "properties" : { + "indexList" : { + "maxItems" : 1000, + "minItems" : 1, + "type" : "array", + "items" : { + "format" : "int64", + "type" : "integer" } } } }, - "ErrorCode": { - "type": "object", - "properties": { - "code": { - "type": "string", - "example": "FDR-0500" - }, - "description": { - "type": "string", - "example": "An unexpected error has occurred. Please contact support." - }, - "statusCode": { - "format": "int32", - "type": "integer", - "example": 500 + "ErrorCode" : { + "type" : "object", + "properties" : { + "code" : { + "type" : "string", + "example" : "FDR-0500" + }, + "description" : { + "type" : "string", + "example" : "An unexpected error has occurred. Please contact support." + }, + "statusCode" : { + "format" : "int32", + "type" : "integer", + "example" : 500 } } }, - "ErrorMessage": { - "type": "object", - "properties": { - "path": { - "type": "string", - "example": "demo.test" - }, - "message": { - "type": "string", - "example": "An unexpected error has occurred. Please contact support." + "ErrorMessage" : { + "type" : "object", + "properties" : { + "path" : { + "type" : "string", + "example" : "demo.test" + }, + "message" : { + "type" : "string", + "example" : "An unexpected error has occurred. Please contact support." } } }, - "ErrorResponse": { - "type": "object", - "properties": { - "errorId": { - "type": "string", - "example": "50905466-1881-457b-b42f-fb7b2bfb1610" - }, - "httpStatusCode": { - "format": "int32", - "type": "integer", - "example": 500 - }, - "httpStatusDescription": { - "type": "string", - "example": "Internal Server Error" - }, - "appErrorCode": { - "type": "string", - "example": "FDR-500" - }, - "errors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ErrorMessage" + "ErrorResponse" : { + "type" : "object", + "properties" : { + "errorId" : { + "type" : "string", + "example" : "50905466-1881-457b-b42f-fb7b2bfb1610" + }, + "httpStatusCode" : { + "format" : "int32", + "type" : "integer", + "example" : 500 + }, + "httpStatusDescription" : { + "type" : "string", + "example" : "Internal Server Error" + }, + "appErrorCode" : { + "type" : "string", + "example" : "FDR-500" + }, + "errors" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/ErrorMessage" } } } }, - "Fdr": { - "type": "object", - "properties": { - "fdr": { - "type": "string", - "example": "AAABBB" - }, - "pspId": { - "type": "string", - "example": "1" - }, - "revision": { - "format": "int64", - "type": "integer", - "example": 1 - }, - "published": { - "type": "string", - "allOf": [ - { - "$ref": "#/components/schemas/Instant" - } - ], - "example": "2023-04-03T12:00:30.900000Z" + "Fdr" : { + "type" : "object", + "properties" : { + "fdr" : { + "type" : "string", + "example" : "AAABBB" + }, + "pspId" : { + "type" : "string", + "example" : "1" + }, + "revision" : { + "format" : "int64", + "type" : "integer", + "example" : 1 + }, + "published" : { + "type" : "string", + "allOf" : [ { + "$ref" : "#/components/schemas/Instant" + } ], + "example" : "2023-04-03T12:00:30.900000Z" } } }, - "FdrByPspIdIuvIurBase": { - "type": "object", - "properties": { - "pspId": { - "type": "string" + "FdrByPspIdIuvIurBase" : { + "type" : "object", + "properties" : { + "pspId" : { + "type" : "string" }, - "organizationId": { - "type": "string" + "organizationId" : { + "type" : "string" }, - "fdr": { - "type": "string" + "fdr" : { + "type" : "string" }, - "revision": { - "format": "int64", - "type": "integer" + "revision" : { + "format" : "int64", + "type" : "integer" }, - "created": { - "$ref": "#/components/schemas/Instant" + "created" : { + "$ref" : "#/components/schemas/Instant" } } }, - "FdrByPspIdIuvIurResponse": { - "type": "object", - "properties": { - "metadata": { - "$ref": "#/components/schemas/Metadata" - }, - "count": { - "format": "int64", - "type": "integer", - "example": 100 - }, - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/FdrByPspIdIuvIurBase" + "FdrByPspIdIuvIurResponse" : { + "type" : "object", + "properties" : { + "metadata" : { + "$ref" : "#/components/schemas/Metadata" + }, + "count" : { + "format" : "int64", + "type" : "integer", + "example" : 100 + }, + "data" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/FdrByPspIdIuvIurBase" } } } }, - "FdrInserted": { - "type": "object", - "properties": { - "fdr": { - "type": "string", - "example": "AAABBB" - }, - "organizationId": { - "type": "string", - "example": "1" - }, - "revision": { - "format": "int64", - "type": "integer", - "example": 1 - }, - "created": { - "type": "string", - "allOf": [ - { - "$ref": "#/components/schemas/Instant" - } - ], - "example": "2023-04-03T12:00:30.900000Z" + "FdrInserted" : { + "type" : "object", + "properties" : { + "fdr" : { + "type" : "string", + "example" : "AAABBB" + }, + "organizationId" : { + "type" : "string", + "example" : "1" + }, + "revision" : { + "format" : "int64", + "type" : "integer", + "example" : 1 + }, + "created" : { + "type" : "string", + "allOf" : [ { + "$ref" : "#/components/schemas/Instant" + } ], + "example" : "2023-04-03T12:00:30.900000Z" } } }, - "FdrPublished": { - "type": "object", - "properties": { - "fdr": { - "type": "string", - "example": "AAABBB" - }, - "organizationId": { - "type": "string", - "example": "1" - }, - "revision": { - "format": "int64", - "type": "integer", - "example": 1 - }, - "published": { - "type": "string", - "allOf": [ - { - "$ref": "#/components/schemas/Instant" - } - ], - "example": "2023-04-03T12:00:30.900000Z" + "FdrPublished" : { + "type" : "object", + "properties" : { + "fdr" : { + "type" : "string", + "example" : "AAABBB" + }, + "organizationId" : { + "type" : "string", + "example" : "1" + }, + "revision" : { + "format" : "int64", + "type" : "integer", + "example" : 1 + }, + "published" : { + "type" : "string", + "allOf" : [ { + "$ref" : "#/components/schemas/Instant" + } ], + "example" : "2023-04-03T12:00:30.900000Z" } } }, - "GenericResponse": { - "type": "object", - "properties": { - "message": { - "type": "string", - "example": "Success" + "GenericResponse" : { + "type" : "object", + "properties" : { + "message" : { + "type" : "string", + "example" : "Success" } } }, - "GetAllCreatedResponse": { - "type": "object", - "properties": { - "metadata": { - "$ref": "#/components/schemas/Metadata" - }, - "count": { - "format": "int64", - "type": "integer", - "example": 100 - }, - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/FdrInserted" + "GetAllCreatedResponse" : { + "type" : "object", + "properties" : { + "metadata" : { + "$ref" : "#/components/schemas/Metadata" + }, + "count" : { + "format" : "int64", + "type" : "integer", + "example" : 100 + }, + "data" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/FdrInserted" } } } }, - "GetAllPublishedResponse": { - "type": "object", - "properties": { - "metadata": { - "$ref": "#/components/schemas/Metadata" - }, - "count": { - "format": "int64", - "type": "integer", - "example": 100 - }, - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/FdrPublished" + "GetAllPublishedResponse" : { + "type" : "object", + "properties" : { + "metadata" : { + "$ref" : "#/components/schemas/Metadata" + }, + "count" : { + "format" : "int64", + "type" : "integer", + "example" : 100 + }, + "data" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/FdrPublished" } } } }, - "GetAllResponse": { - "type": "object", - "properties": { - "metadata": { - "$ref": "#/components/schemas/Metadata" - }, - "count": { - "format": "int64", - "type": "integer", - "example": 100 - }, - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Fdr" + "GetAllResponse" : { + "type" : "object", + "properties" : { + "metadata" : { + "$ref" : "#/components/schemas/Metadata" + }, + "count" : { + "format" : "int64", + "type" : "integer", + "example" : 100 + }, + "data" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/Fdr" } } } }, - "GetCreatedResponse": { - "type": "object", - "properties": { - "status": { - "type": "string", - "allOf": [ - { - "$ref": "#/components/schemas/ReportingFlowStatusEnum" - } - ], - "example": "CREATED" - }, - "revision": { - "format": "int64", - "type": "integer", - "example": 4 - }, - "created": { - "type": "string", - "allOf": [ - { - "$ref": "#/components/schemas/Instant" - } - ], - "example": "2023-04-03T12:00:30.900000Z" - }, - "updated": { - "type": "string", - "allOf": [ - { - "$ref": "#/components/schemas/Instant" - } - ], - "example": "2023-04-03T12:00:30.900000Z" - }, - "fdr": { - "type": "string", - "example": "2016-08-16pspTest-1178" - }, - "fdrDate": { - "type": "string", - "allOf": [ - { - "$ref": "#/components/schemas/Instant" - } - ], - "example": "2023-04-05T09:21:37.810000Z" - }, - "regulation": { - "type": "string", - "example": "SEPA - Bonifico xzy" - }, - "regulationDate": { - "type": "string", - "allOf": [ - { - "$ref": "#/components/schemas/Instant" - } - ], - "example": "2023-04-03T12:00:30.900000Z" - }, - "bicCodePouringBank": { - "type": "string", - "example": "UNCRITMMXXX" - }, - "sender": { - "$ref": "#/components/schemas/Sender" - }, - "receiver": { - "$ref": "#/components/schemas/Receiver" - }, - "computedTotPayments": { - "format": "int64", - "type": "integer", - "example": 100 - }, - "computedSumPayments": { - "format": "double", - "type": "number", - "example": 100.9 - }, - "totPayments": { - "format": "int64", - "type": "integer", - "example": 100 - }, - "sumPayments": { - "format": "double", - "type": "number", - "example": 100.9 + "GetCreatedResponse" : { + "type" : "object", + "properties" : { + "status" : { + "type" : "string", + "allOf" : [ { + "$ref" : "#/components/schemas/ReportingFlowStatusEnum" + } ], + "example" : "CREATED" + }, + "revision" : { + "format" : "int64", + "type" : "integer", + "example" : 4 + }, + "created" : { + "type" : "string", + "allOf" : [ { + "$ref" : "#/components/schemas/Instant" + } ], + "example" : "2023-04-03T12:00:30.900000Z" + }, + "updated" : { + "type" : "string", + "allOf" : [ { + "$ref" : "#/components/schemas/Instant" + } ], + "example" : "2023-04-03T12:00:30.900000Z" + }, + "fdr" : { + "type" : "string", + "example" : "2016-08-16pspTest-1178" + }, + "fdrDate" : { + "type" : "string", + "allOf" : [ { + "$ref" : "#/components/schemas/Instant" + } ], + "example" : "2023-04-05T09:21:37.810000Z" + }, + "regulation" : { + "type" : "string", + "example" : "SEPA - Bonifico xzy" + }, + "regulationDate" : { + "type" : "string", + "allOf" : [ { + "$ref" : "#/components/schemas/Instant" + } ], + "example" : "2023-04-03T12:00:30.900000Z" + }, + "bicCodePouringBank" : { + "type" : "string", + "example" : "UNCRITMMXXX" + }, + "sender" : { + "$ref" : "#/components/schemas/Sender" + }, + "receiver" : { + "$ref" : "#/components/schemas/Receiver" + }, + "computedTotPayments" : { + "format" : "int64", + "type" : "integer", + "example" : 100 + }, + "computedSumPayments" : { + "format" : "double", + "type" : "number", + "example" : 100.9 + }, + "totPayments" : { + "format" : "int64", + "type" : "integer", + "example" : 100 + }, + "sumPayments" : { + "format" : "double", + "type" : "number", + "example" : 100.9 } } }, - "GetPaymentResponse": { - "type": "object", - "properties": { - "metadata": { - "$ref": "#/components/schemas/Metadata" - }, - "count": { - "format": "int64", - "type": "integer", - "example": 100 - }, - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Payment" + "GetPaymentResponse" : { + "type" : "object", + "properties" : { + "metadata" : { + "$ref" : "#/components/schemas/Metadata" + }, + "count" : { + "format" : "int64", + "type" : "integer", + "example" : 100 + }, + "data" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/Payment" } } } }, - "GetResponse": { - "type": "object", - "properties": { - "status": { - "type": "string", - "allOf": [ - { - "$ref": "#/components/schemas/ReportingFlowStatusEnum" - } - ], - "example": "CREATED" - }, - "revision": { - "format": "int64", - "type": "integer", - "example": 4 - }, - "created": { - "type": "string", - "allOf": [ - { - "$ref": "#/components/schemas/Instant" - } - ], - "example": "2023-04-03T12:00:30.900000Z" - }, - "updated": { - "type": "string", - "allOf": [ - { - "$ref": "#/components/schemas/Instant" - } - ], - "example": "2023-04-03T12:00:30.900000Z" - }, - "fdr": { - "type": "string", - "example": "2016-08-16pspTest-1178" - }, - "fdrDate": { - "type": "string", - "allOf": [ - { - "$ref": "#/components/schemas/Instant" - } - ], - "example": "2023-04-05T09:21:37.810000Z" - }, - "regulation": { - "type": "string", - "example": "SEPA - Bonifico xzy" - }, - "regulationDate": { - "type": "string", - "allOf": [ - { - "$ref": "#/components/schemas/Instant" - } - ], - "example": "2023-04-03T12:00:30.900000Z" - }, - "bicCodePouringBank": { - "type": "string", - "example": "UNCRITMMXXX" - }, - "sender": { - "$ref": "#/components/schemas/Sender" - }, - "receiver": { - "$ref": "#/components/schemas/Receiver" - }, - "published": { - "type": "string", - "allOf": [ - { - "$ref": "#/components/schemas/Instant" - } - ], - "example": "2023-04-03T12:00:30.900000Z" - }, - "computedTotPayments": { - "format": "int64", - "type": "integer", - "example": 100 - }, - "computedSumPayments": { - "format": "double", - "type": "number", - "example": 100.9 - }, - "totPayments": { - "format": "int64", - "type": "integer", - "example": 100 - }, - "sumPayments": { - "format": "double", - "type": "number", - "example": 100.9 + "GetResponse" : { + "type" : "object", + "properties" : { + "status" : { + "type" : "string", + "allOf" : [ { + "$ref" : "#/components/schemas/ReportingFlowStatusEnum" + } ], + "example" : "CREATED" + }, + "revision" : { + "format" : "int64", + "type" : "integer", + "example" : 4 + }, + "created" : { + "type" : "string", + "allOf" : [ { + "$ref" : "#/components/schemas/Instant" + } ], + "example" : "2023-04-03T12:00:30.900000Z" + }, + "updated" : { + "type" : "string", + "allOf" : [ { + "$ref" : "#/components/schemas/Instant" + } ], + "example" : "2023-04-03T12:00:30.900000Z" + }, + "fdr" : { + "type" : "string", + "example" : "2016-08-16pspTest-1178" + }, + "fdrDate" : { + "type" : "string", + "allOf" : [ { + "$ref" : "#/components/schemas/Instant" + } ], + "example" : "2023-04-05T09:21:37.810000Z" + }, + "regulation" : { + "type" : "string", + "example" : "SEPA - Bonifico xzy" + }, + "regulationDate" : { + "type" : "string", + "allOf" : [ { + "$ref" : "#/components/schemas/Instant" + } ], + "example" : "2023-04-03T12:00:30.900000Z" + }, + "bicCodePouringBank" : { + "type" : "string", + "example" : "UNCRITMMXXX" + }, + "sender" : { + "$ref" : "#/components/schemas/Sender" + }, + "receiver" : { + "$ref" : "#/components/schemas/Receiver" + }, + "published" : { + "type" : "string", + "allOf" : [ { + "$ref" : "#/components/schemas/Instant" + } ], + "example" : "2023-04-03T12:00:30.900000Z" + }, + "computedTotPayments" : { + "format" : "int64", + "type" : "integer", + "example" : 100 + }, + "computedSumPayments" : { + "format" : "double", + "type" : "number", + "example" : 100.9 + }, + "totPayments" : { + "format" : "int64", + "type" : "integer", + "example" : 100 + }, + "sumPayments" : { + "format" : "double", + "type" : "number", + "example" : 100.9 } } }, - "InfoResponse": { - "type": "object", - "properties": { - "name": { - "type": "string", - "example": "pagopa-fdr" - }, - "version": { - "type": "string", - "example": "1.2.3" - }, - "environment": { - "type": "string", - "example": "dev" - }, - "description": { - "type": "string", - "example": "FDR - Flussi di rendicontazione" - }, - "errorCodes": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ErrorCode" + "InfoResponse" : { + "type" : "object", + "properties" : { + "name" : { + "type" : "string", + "example" : "pagopa-fdr" + }, + "version" : { + "type" : "string", + "example" : "1.2.3" + }, + "environment" : { + "type" : "string", + "example" : "dev" + }, + "description" : { + "type" : "string", + "example" : "FDR - Flussi di rendicontazione" + }, + "errorCodes" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/ErrorCode" } } } }, - "Instant": { - "format": "date-time", - "type": "string", - "example": "2022-03-10T16:15:50Z" + "Instant" : { + "format" : "date-time", + "type" : "string", + "example" : "2022-03-10T16:15:50Z" }, - "Metadata": { - "type": "object", - "properties": { - "pageSize": { - "format": "int32", - "type": "integer", - "example": 25 - }, - "pageNumber": { - "format": "int32", - "type": "integer", - "example": 1 - }, - "totPage": { - "format": "int32", - "type": "integer", - "example": 3 + "Metadata" : { + "type" : "object", + "properties" : { + "pageSize" : { + "format" : "int32", + "type" : "integer", + "example" : 25 + }, + "pageNumber" : { + "format" : "int32", + "type" : "integer", + "example" : 1 + }, + "totPage" : { + "format" : "int32", + "type" : "integer", + "example" : 3 } } }, - "Payment": { - "required": [ - "index", - "iuv", - "iur", - "idTransfer", - "pay", - "payStatus", - "payDate" - ], - "type": "object", - "properties": { - "index": { - "format": "int64", - "description": "Identificativo del pagamento univoco nel flusso", - "minimum": 1, - "type": "integer", - "example": 1 - }, - "iuv": { - "description": "[XML FlussoRiversamento]=[datiSingoliPagamenti.identificativoUnivocoVersamento]", - "pattern": "^(.{1,35})$", - "type": "string", - "example": "abcdefg" - }, - "iur": { - "description": "[XML FlussoRiversamento]=[datiSingoliPagamenti.identificativoUnivocoRiscossione]", - "pattern": "^(.{1,35})$", - "type": "string", - "example": "abcdefg" - }, - "idTransfer": { - "format": "int64", - "description": "[XML FlussoRiversamento]=[datiSingoliPagamenti.indiceDatiSingoloPagamento]", - "maximum": 5, - "minimum": 1, - "type": "integer", - "example": 1 - }, - "pay": { - "format": "double", - "description": "[XML FlussoRiversamento]=[datiSingoliPagamenti.singoloImportoPagato]", - "minimum": 0, - "exclusiveMinimum": true, - "pattern": "^\\d{1,2147483647}([.]\\d{1,2})?$", - "type": "number", - "example": 0.01 - }, - "payStatus": { - "description": "[XML FlussoRiversamento]=[datiSingoliPagamenti.codiceEsitoSingoloPagamento] \n0 -> EXECUTED\n3 -> REVOKED\n9 -> NO_RPT\n4 -> STAND_IN", - "type": "string", - "allOf": [ - { - "$ref": "#/components/schemas/PaymentStatusEnum" - } - ], - "example": "EXECUTED" - }, - "payDate": { - "description": "[XML FlussoRiversamento]=[datiSingoliPagamenti.dataEsitoSingoloPagamento]", - "type": "string", - "allOf": [ - { - "$ref": "#/components/schemas/Instant" - } - ], - "example": "2023-02-03T12:00:30.900000Z" + "Payment" : { + "required" : [ "index", "iuv", "iur", "idTransfer", "pay", "payStatus", "payDate" ], + "type" : "object", + "properties" : { + "index" : { + "format" : "int64", + "description" : "Identificativo del pagamento univoco nel flusso", + "minimum" : 1, + "type" : "integer", + "example" : 1 + }, + "iuv" : { + "description" : "[XML FlussoRiversamento]=[datiSingoliPagamenti.identificativoUnivocoVersamento]", + "pattern" : "^(.{1,35})$", + "type" : "string", + "example" : "abcdefg" + }, + "iur" : { + "description" : "[XML FlussoRiversamento]=[datiSingoliPagamenti.identificativoUnivocoRiscossione]", + "pattern" : "^(.{1,35})$", + "type" : "string", + "example" : "abcdefg" + }, + "idTransfer" : { + "format" : "int64", + "description" : "[XML FlussoRiversamento]=[datiSingoliPagamenti.indiceDatiSingoloPagamento]", + "maximum" : 5, + "minimum" : 1, + "type" : "integer", + "example" : 1 + }, + "pay" : { + "format" : "double", + "description" : "[XML FlussoRiversamento]=[datiSingoliPagamenti.singoloImportoPagato]", + "minimum" : 0, + "exclusiveMinimum" : true, + "pattern" : "^\\d{1,2147483647}([.]\\d{1,2})?$", + "type" : "number", + "example" : 0.01 + }, + "payStatus" : { + "description" : "[XML FlussoRiversamento]=[datiSingoliPagamenti.codiceEsitoSingoloPagamento] \n0 -> EXECUTED\n3 -> REVOKED\n9 -> NO_RPT\n4 -> STAND_IN\n8 -> STAND_IN_NO_RPT", + "type" : "string", + "allOf" : [ { + "$ref" : "#/components/schemas/PaymentStatusEnum" + } ], + "example" : "EXECUTED" + }, + "payDate" : { + "description" : "[XML FlussoRiversamento]=[datiSingoliPagamenti.dataEsitoSingoloPagamento]", + "type" : "string", + "allOf" : [ { + "$ref" : "#/components/schemas/Instant" + } ], + "example" : "2023-02-03T12:00:30.900000Z" } } }, - "PaymentStatusEnum": { - "enum": [ - "EXECUTED", - "REVOKED", - "NO_RPT", - "STAND_IN" - ], - "type": "string" + "PaymentStatusEnum" : { + "enum" : [ "EXECUTED", "REVOKED", "NO_RPT", "STAND_IN", "STAND_IN_NO_RPT" ], + "type" : "string" }, - "Receiver": { - "required": [ - "id", - "organizationId", - "organizationName" - ], - "type": "object", - "properties": { - "id": { - "description": "[XML FlussoRiversamento]=[istitutoRicevente.identificativoUnivocoRicevente.codiceIdentificativoUnivoco]", - "pattern": "^(.{1,35})$", - "type": "string", - "example": "APPBIT2B" - }, - "organizationId": { - "description": "[XML NodoInviaFlussoRendicontazione]=[identificativoDominio]", - "pattern": "^(.{1,35})$", - "type": "string", - "example": "20000000001" - }, - "organizationName": { - "description": "[XML FlussoRiversamento]=[istitutoRicevente.denominazioneRicevente]", - "pattern": "^(.{1,140})$", - "type": "string", - "example": "Comune di xyz" + "Receiver" : { + "required" : [ "id", "organizationId", "organizationName" ], + "type" : "object", + "properties" : { + "id" : { + "description" : "[XML FlussoRiversamento]=[istitutoRicevente.identificativoUnivocoRicevente.codiceIdentificativoUnivoco]", + "pattern" : "^(.{1,35})$", + "type" : "string", + "example" : "APPBIT2B" + }, + "organizationId" : { + "description" : "[XML NodoInviaFlussoRendicontazione]=[identificativoDominio]", + "pattern" : "^(.{1,35})$", + "type" : "string", + "example" : "20000000001" + }, + "organizationName" : { + "description" : "[XML FlussoRiversamento]=[istitutoRicevente.denominazioneRicevente]", + "pattern" : "^(.{1,140})$", + "type" : "string", + "example" : "Comune di xyz" } } }, - "ReportingFlowStatusEnum": { - "enum": [ - "CREATED", - "INSERTED", - "PUBLISHED" - ], - "type": "string" + "ReportingFlowStatusEnum" : { + "enum" : [ "CREATED", "INSERTED", "PUBLISHED" ], + "type" : "string" }, - "Sender": { - "required": [ - "type", - "id", - "pspId", - "pspName", - "pspBrokerId", - "channelId" - ], - "type": "object", - "properties": { - "type": { - "description": "[XML FlussoRiversamento]=[istitutoMittente.identificativoUnivocoMittente.tipoIdentificativoUnivoco] \nG -> LEGAL_PERSON\nA -> ABI_CODE\nB -> BIC_CODE", - "type": "string", - "allOf": [ - { - "$ref": "#/components/schemas/SenderTypeEnum" - } - ], - "example": "LEGAL_PERSON" - }, - "id": { - "description": "[XML FlussoRiversamento]=[istitutoMittente.identificativoUnivocoMittente.codiceIdentificativoUnivoco]", - "pattern": "^(.{1,35})$", - "type": "string", - "example": "SELBIT2B" - }, - "pspId": { - "description": "[XML NodoInviaFlussoRendicontazione]=[identificativoPSP]", - "pattern": "^(.{1,35})$", - "type": "string", - "example": "60000000001" - }, - "pspName": { - "description": "[XML FlussoRiversamento]=[istitutoMittente.denominazioneMittente]", - "pattern": "^(.{3,70})$", - "type": "string", - "example": "Bank" - }, - "pspBrokerId": { - "description": "[XML NodoInviaFlussoRendicontazione]=[identificativoIntermediarioPSP]", - "pattern": "^(.{1,35})$", - "type": "string", - "example": "70000000001" - }, - "channelId": { - "description": "[XML NodoInviaFlussoRendicontazione]=[identificativoCanale]", - "pattern": "^(.{1,35})$", - "type": "string", - "example": "80000000001" - }, - "password": { - "description": "[XML NodoInviaFlussoRendicontazione]=[password]", - "pattern": "^(\\w{8,15})$", - "type": "string", - "example": "1234567890", - "deprecated": true + "Sender" : { + "required" : [ "type", "id", "pspId", "pspName", "pspBrokerId", "channelId" ], + "type" : "object", + "properties" : { + "type" : { + "description" : "[XML FlussoRiversamento]=[istitutoMittente.identificativoUnivocoMittente.tipoIdentificativoUnivoco] \nG -> LEGAL_PERSON\nA -> ABI_CODE\nB -> BIC_CODE", + "type" : "string", + "allOf" : [ { + "$ref" : "#/components/schemas/SenderTypeEnum" + } ], + "example" : "LEGAL_PERSON" + }, + "id" : { + "description" : "[XML FlussoRiversamento]=[istitutoMittente.identificativoUnivocoMittente.codiceIdentificativoUnivoco]", + "pattern" : "^(.{1,35})$", + "type" : "string", + "example" : "SELBIT2B" + }, + "pspId" : { + "description" : "[XML NodoInviaFlussoRendicontazione]=[identificativoPSP]", + "pattern" : "^(.{1,35})$", + "type" : "string", + "example" : "60000000001" + }, + "pspName" : { + "description" : "[XML FlussoRiversamento]=[istitutoMittente.denominazioneMittente]", + "pattern" : "^(.{3,70})$", + "type" : "string", + "example" : "Bank" + }, + "pspBrokerId" : { + "description" : "[XML NodoInviaFlussoRendicontazione]=[identificativoIntermediarioPSP]", + "pattern" : "^(.{1,35})$", + "type" : "string", + "example" : "70000000001" + }, + "channelId" : { + "description" : "[XML NodoInviaFlussoRendicontazione]=[identificativoCanale]", + "pattern" : "^(.{1,35})$", + "type" : "string", + "example" : "80000000001" + }, + "password" : { + "description" : "[XML NodoInviaFlussoRendicontazione]=[password]", + "pattern" : "^(\\w{8,15})$", + "type" : "string", + "example" : "1234567890", + "deprecated" : true } } }, - "SenderTypeEnum": { - "enum": [ - "LEGAL_PERSON", - "ABI_CODE", - "BIC_CODE" - ], - "type": "string" + "SenderTypeEnum" : { + "enum" : [ "LEGAL_PERSON", "ABI_CODE", "BIC_CODE" ], + "type" : "string" } }, - "responses": { - "AppException400": { - "description": "Default app exception for status 400", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "responses" : { + "AppException400" : { + "description" : "Default app exception for status 400", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ErrorResponse" }, - "examples": { - "Error": { - "value": { - "httpStatusCode": 400, - "httpStatusDescription": "Bad Request", - "appErrorCode": "FDR-0702", - "errors": [ - { - "message": "Reporting Fdr [] is invalid" - } - ] + "examples" : { + "Error" : { + "value" : { + "httpStatusCode" : 400, + "httpStatusDescription" : "Bad Request", + "appErrorCode" : "FDR-0702", + "errors" : [ { + "message" : "Reporting Fdr [] is invalid" + } ] } }, - "Errors with path": { - "value": { - "httpStatusCode": 400, - "httpStatusDescription": "Bad Request", - "appErrorCode": "FDR-0702", - "errors": [ - { - "path": "", - "message": "" - } - ] + "Errors with path" : { + "value" : { + "httpStatusCode" : 400, + "httpStatusDescription" : "Bad Request", + "appErrorCode" : "FDR-0702", + "errors" : [ { + "path" : "", + "message" : "" + } ] } } } } } }, - "AppException404": { - "description": "Default app exception for status 404", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "AppException404" : { + "description" : "Default app exception for status 404", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ErrorResponse" }, - "example": { - "httpStatusCode": 404, - "httpStatusDescription": "Not Found", - "appErrorCode": "FDR-0701", - "errors": [ - { - "message": "Reporting Fdr [] not found" - } - ] + "example" : { + "httpStatusCode" : 404, + "httpStatusDescription" : "Not Found", + "appErrorCode" : "FDR-0701", + "errors" : [ { + "message" : "Reporting Fdr [] not found" + } ] } } } }, - "InternalServerError": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "InternalServerError" : { + "description" : "Internal Server Error", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ErrorResponse" }, - "example": { - "errorId": "50905466-1881-457b-b42f-fb7b2bfb1610", - "httpStatusCode": 500, - "httpStatusDescription": "Internal Server Error", - "appErrorCode": "FDR-0500", - "errors": [ - { - "message": "An unexpected error has occurred. Please contact support." - } - ] + "example" : { + "errorId" : "50905466-1881-457b-b42f-fb7b2bfb1610", + "httpStatusCode" : 500, + "httpStatusDescription" : "Internal Server Error", + "appErrorCode" : "FDR-0500", + "errors" : [ { + "message" : "An unexpected error has occurred. Please contact support." + } ] } } } } }, - "securitySchemes": { - "api_key": { - "type": "apiKey", - "name": "Ocp-Apim-Subscription-Key", - "in": "header" + "securitySchemes" : { + "api_key" : { + "type" : "apiKey", + "name" : "Ocp-Apim-Subscription-Key", + "in" : "header" }, - "SecurityScheme": { - "type": "http", - "description": "Authentication", - "scheme": "basic" + "SecurityScheme" : { + "type" : "http", + "description" : "Authentication", + "scheme" : "basic" } } } -} +} \ No newline at end of file diff --git a/openapi/openapi_organization.json b/openapi/openapi_organization.json index 2ed81f47..d10cb90a 100644 --- a/openapi/openapi_organization.json +++ b/openapi/openapi_organization.json @@ -1,107 +1,89 @@ { - "openapi": "3.0.3", - "info": { - "title": "FDR - Flussi di rendicontazione (local)", - "description": "Manage FDR ( aka \"Flussi di Rendicontazione\" ) exchanged between PSP and EC", - "termsOfService": "https://www.pagopa.gov.it/", - "version": "1.0.15" + "openapi" : "3.0.3", + "info" : { + "title" : "FDR - Flussi di rendicontazione (local)", + "description" : "Manage FDR ( aka \"Flussi di Rendicontazione\" ) exchanged between PSP and EC", + "termsOfService" : "https://www.pagopa.gov.it/", + "version" : "0.0.0-SNAPSHOT" }, - "servers": [ - { - "url": "http://localhost:8080/" - } - ], - "security": [ - { - "api_key": [] - } - ], - "tags": [ - { - "name": "Info", - "description": "Info operations" - }, - { - "name": "Internal Organizations", - "description": "Organizations operations" - }, - { - "name": "Internal PSP", - "description": "PSP operations" - }, - { - "name": "Organizations", - "description": "Organizations operations" - }, - { - "name": "PSP", - "description": "PSP operations" - }, - { - "name": "Support", - "description": "Support operations" - } - ], - "paths": { - "/organizations/{organizationId}/fdrs/{fdr}/revisions/{revision}/psps/{pspId}": { - "get": { - "tags": [ - "Organizations" - ], - "summary": "Get fdr", - "description": "Get fdr", - "operationId": "get", - "parameters": [ - { - "name": "fdr", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "organizationId", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "pspId", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "revision", - "in": "path", - "required": true, - "schema": { - "format": "int64", - "type": "integer" - } + "servers" : [ { + "url" : "http://localhost:8080/" + } ], + "security" : [ { + "api_key" : [ ] + } ], + "tags" : [ { + "name" : "Info", + "description" : "Info operations" + }, { + "name" : "Internal Organizations", + "description" : "Organizations operations" + }, { + "name" : "Internal PSP", + "description" : "PSP operations" + }, { + "name" : "Organizations", + "description" : "Organizations operations" + }, { + "name" : "PSP", + "description" : "PSP operations" + }, { + "name" : "Support", + "description" : "Support operations" + } ], + "paths" : { + "/organizations/{organizationId}/fdrs/{fdr}/revisions/{revision}/psps/{pspId}" : { + "get" : { + "tags" : [ "Organizations" ], + "summary" : "Get fdr", + "description" : "Get fdr", + "operationId" : "get", + "parameters" : [ { + "name" : "fdr", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "organizationId", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "pspId", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "revision", + "in" : "path", + "required" : true, + "schema" : { + "format" : "int64", + "type" : "integer" } - ], - "responses": { - "500": { - "$ref": "#/components/responses/InternalServerError" - }, - "400": { - "$ref": "#/components/responses/AppException400" - }, - "404": { - "$ref": "#/components/responses/AppException404" - }, - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GetResponse" + } ], + "responses" : { + "500" : { + "$ref" : "#/components/responses/InternalServerError" + }, + "400" : { + "$ref" : "#/components/responses/AppException400" + }, + "404" : { + "$ref" : "#/components/responses/AppException404" + }, + "200" : { + "description" : "Success", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/GetResponse" } } } @@ -109,85 +91,76 @@ } } }, - "/organizations/{organizationId}/fdrs/{fdr}/revisions/{revision}/psps/{pspId}/payments": { - "get": { - "tags": [ - "Organizations" - ], - "summary": "Get payments of fdr", - "description": "Get payments of fdr", - "operationId": "getPayment", - "parameters": [ - { - "name": "fdr", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "organizationId", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "pspId", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "revision", - "in": "path", - "required": true, - "schema": { - "format": "int64", - "type": "integer" - } - }, - { - "name": "page", - "in": "query", - "schema": { - "format": "int64", - "default": 1, - "minimum": 1, - "type": "integer" - } - }, - { - "name": "size", - "in": "query", - "schema": { - "format": "int64", - "default": 1000, - "minimum": 1, - "type": "integer" - } + "/organizations/{organizationId}/fdrs/{fdr}/revisions/{revision}/psps/{pspId}/payments" : { + "get" : { + "tags" : [ "Organizations" ], + "summary" : "Get payments of fdr", + "description" : "Get payments of fdr", + "operationId" : "getPayment", + "parameters" : [ { + "name" : "fdr", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "organizationId", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "pspId", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "revision", + "in" : "path", + "required" : true, + "schema" : { + "format" : "int64", + "type" : "integer" } - ], - "responses": { - "500": { - "$ref": "#/components/responses/InternalServerError" - }, - "400": { - "$ref": "#/components/responses/AppException400" - }, - "404": { - "$ref": "#/components/responses/AppException404" - }, - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GetPaymentResponse" + }, { + "name" : "page", + "in" : "query", + "schema" : { + "format" : "int64", + "default" : 1, + "minimum" : 1, + "type" : "integer" + } + }, { + "name" : "size", + "in" : "query", + "schema" : { + "format" : "int64", + "default" : 1000, + "minimum" : 1, + "type" : "integer" + } + } ], + "responses" : { + "500" : { + "$ref" : "#/components/responses/InternalServerError" + }, + "400" : { + "$ref" : "#/components/responses/AppException400" + }, + "404" : { + "$ref" : "#/components/responses/AppException404" + }, + "200" : { + "description" : "Success", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/GetPaymentResponse" } } } @@ -195,22 +168,20 @@ } } }, - "/info": { - "get": { - "tags": [ - "Info" - ], - "summary": "Get info of FDR", - "responses": { - "500": { - "$ref": "#/components/responses/InternalServerError" - }, - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/InfoResponse" + "/info" : { + "get" : { + "tags" : [ "Info" ], + "summary" : "Get info of FDR", + "responses" : { + "500" : { + "$ref" : "#/components/responses/InternalServerError" + }, + "200" : { + "description" : "Success", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/InfoResponse" } } } @@ -218,76 +189,68 @@ } } }, - "/organizations/{organizationId}/fdrs": { - "get": { - "tags": [ - "Organizations" - ], - "summary": "Get all fdr published", - "description": "Get all fdr published", - "operationId": "getAllPublished", - "parameters": [ - { - "name": "organizationId", - "in": "path", - "required": true, - "schema": { - "pattern": "^(.{1,35})$", - "type": "string" - } - }, - { - "name": "page", - "in": "query", - "schema": { - "format": "int64", - "default": 1, - "minimum": 1, - "type": "integer" - } - }, - { - "name": "pspId", - "in": "query", - "schema": { - "pattern": "^(.{1,35})$", - "type": "string" - } - }, - { - "name": "publishedGt", - "in": "query", - "schema": { - "$ref": "#/components/schemas/Instant" - } - }, - { - "name": "size", - "in": "query", - "schema": { - "format": "int64", - "default": 1000, - "minimum": 1, - "type": "integer" - } + "/organizations/{organizationId}/fdrs" : { + "get" : { + "tags" : [ "Organizations" ], + "summary" : "Get all fdr published", + "description" : "Get all fdr published", + "operationId" : "getAllPublished", + "parameters" : [ { + "name" : "organizationId", + "in" : "path", + "required" : true, + "schema" : { + "pattern" : "^(.{1,35})$", + "type" : "string" + } + }, { + "name" : "page", + "in" : "query", + "schema" : { + "format" : "int64", + "default" : 1, + "minimum" : 1, + "type" : "integer" + } + }, { + "name" : "pspId", + "in" : "query", + "schema" : { + "pattern" : "^(.{1,35})$", + "type" : "string" } - ], - "responses": { - "500": { - "$ref": "#/components/responses/InternalServerError" - }, - "400": { - "$ref": "#/components/responses/AppException400" - }, - "404": { - "$ref": "#/components/responses/AppException404" - }, - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GetAllResponse" + }, { + "name" : "publishedGt", + "in" : "query", + "schema" : { + "$ref" : "#/components/schemas/Instant" + } + }, { + "name" : "size", + "in" : "query", + "schema" : { + "format" : "int64", + "default" : 1000, + "minimum" : 1, + "type" : "integer" + } + } ], + "responses" : { + "500" : { + "$ref" : "#/components/responses/InternalServerError" + }, + "400" : { + "$ref" : "#/components/responses/AppException400" + }, + "404" : { + "$ref" : "#/components/responses/AppException404" + }, + "200" : { + "description" : "Success", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/GetAllResponse" } } } @@ -296,903 +259,812 @@ } } }, - "components": { - "schemas": { - "AddPaymentRequest": { - "required": [ - "payments" - ], - "type": "object", - "properties": { - "payments": { - "maxItems": 1000, - "minItems": 1, - "type": "array", - "items": { - "$ref": "#/components/schemas/Payment" + "components" : { + "schemas" : { + "AddPaymentRequest" : { + "required" : [ "payments" ], + "type" : "object", + "properties" : { + "payments" : { + "maxItems" : 1000, + "minItems" : 1, + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/Payment" } } } }, - "CreateRequest": { - "required": [ - "fdr", - "fdrDate", - "sender", - "receiver", - "regulation", - "regulationDate", - "totPayments", - "sumPayments" - ], - "type": "object", - "properties": { - "fdr": { - "description": "[XML NodoInviaFlussoRendicontazione]=[identificativoFlusso]", - "pattern": "[a-zA-Z0-9\\-_]{1,35}", - "type": "string", - "example": "2016-08-16pspTest-1178" - }, - "fdrDate": { - "description": "[XML NodoInviaFlussoRendicontazione]=[dataOraFlusso]", - "type": "string", - "allOf": [ - { - "$ref": "#/components/schemas/Instant" - } - ], - "example": "2023-04-05T09:21:37.810000Z" - }, - "sender": { - "$ref": "#/components/schemas/Sender" - }, - "receiver": { - "$ref": "#/components/schemas/Receiver" - }, - "regulation": { - "description": "[XML FlussoRiversamento]=[identificativoUnivocoRegolamento]", - "pattern": "^(.{1,35})$", - "type": "string", - "example": "SEPA - Bonifico xzy" - }, - "regulationDate": { - "description": "[XML FlussoRiversamento]=[dataRegolamento]", - "type": "string", - "allOf": [ - { - "$ref": "#/components/schemas/Instant" - } - ], - "example": "2023-04-03T12:00:30.900000Z" - }, - "bicCodePouringBank": { - "description": "[XML FlussoRiversamento]=[codiceBicBancaDiRiversamento]", - "pattern": "^(.{1,35})$", - "type": "string", - "example": "UNCRITMMXXX" - }, - "totPayments": { - "format": "int64", - "description": "[XML FlussoRiversamento]=[numeroTotalePagamenti]", - "minimum": 1, - "type": "integer", - "example": 1 - }, - "sumPayments": { - "format": "double", - "description": "[XML FlussoRiversamento]=[importoTotalePagamenti]", - "minimum": 0, - "exclusiveMinimum": true, - "pattern": "^\\d{1,2147483647}([.]\\d{1,2})?$", - "type": "number", - "example": 0.01 + "CreateRequest" : { + "required" : [ "fdr", "fdrDate", "sender", "receiver", "regulation", "regulationDate", "totPayments", "sumPayments" ], + "type" : "object", + "properties" : { + "fdr" : { + "description" : "[XML NodoInviaFlussoRendicontazione]=[identificativoFlusso]", + "pattern" : "[a-zA-Z0-9\\-_]{1,35}", + "type" : "string", + "example" : "2016-08-16pspTest-1178" + }, + "fdrDate" : { + "description" : "[XML NodoInviaFlussoRendicontazione]=[dataOraFlusso]", + "type" : "string", + "allOf" : [ { + "$ref" : "#/components/schemas/Instant" + } ], + "example" : "2023-04-05T09:21:37.810000Z" + }, + "sender" : { + "$ref" : "#/components/schemas/Sender" + }, + "receiver" : { + "$ref" : "#/components/schemas/Receiver" + }, + "regulation" : { + "description" : "[XML FlussoRiversamento]=[identificativoUnivocoRegolamento]", + "pattern" : "^(.{1,35})$", + "type" : "string", + "example" : "SEPA - Bonifico xzy" + }, + "regulationDate" : { + "description" : "[XML FlussoRiversamento]=[dataRegolamento]", + "type" : "string", + "allOf" : [ { + "$ref" : "#/components/schemas/Instant" + } ], + "example" : "2023-04-03T12:00:30.900000Z" + }, + "bicCodePouringBank" : { + "description" : "[XML FlussoRiversamento]=[codiceBicBancaDiRiversamento]", + "pattern" : "^(.{1,35})$", + "type" : "string", + "example" : "UNCRITMMXXX" + }, + "totPayments" : { + "format" : "int64", + "description" : "[XML FlussoRiversamento]=[numeroTotalePagamenti]", + "minimum" : 1, + "type" : "integer", + "example" : 1 + }, + "sumPayments" : { + "format" : "double", + "description" : "[XML FlussoRiversamento]=[importoTotalePagamenti]", + "minimum" : 0, + "exclusiveMinimum" : true, + "pattern" : "^\\d{1,2147483647}([.]\\d{1,2})?$", + "type" : "number", + "example" : 0.01 } } }, - "DeletePaymentRequest": { - "required": [ - "indexList" - ], - "type": "object", - "properties": { - "indexList": { - "maxItems": 1000, - "minItems": 1, - "type": "array", - "items": { - "format": "int64", - "type": "integer" + "DeletePaymentRequest" : { + "required" : [ "indexList" ], + "type" : "object", + "properties" : { + "indexList" : { + "maxItems" : 1000, + "minItems" : 1, + "type" : "array", + "items" : { + "format" : "int64", + "type" : "integer" } } } }, - "ErrorCode": { - "type": "object", - "properties": { - "code": { - "type": "string", - "example": "FDR-0500" - }, - "description": { - "type": "string", - "example": "An unexpected error has occurred. Please contact support." - }, - "statusCode": { - "format": "int32", - "type": "integer", - "example": 500 + "ErrorCode" : { + "type" : "object", + "properties" : { + "code" : { + "type" : "string", + "example" : "FDR-0500" + }, + "description" : { + "type" : "string", + "example" : "An unexpected error has occurred. Please contact support." + }, + "statusCode" : { + "format" : "int32", + "type" : "integer", + "example" : 500 } } }, - "ErrorMessage": { - "type": "object", - "properties": { - "path": { - "type": "string", - "example": "demo.test" - }, - "message": { - "type": "string", - "example": "An unexpected error has occurred. Please contact support." + "ErrorMessage" : { + "type" : "object", + "properties" : { + "path" : { + "type" : "string", + "example" : "demo.test" + }, + "message" : { + "type" : "string", + "example" : "An unexpected error has occurred. Please contact support." } } }, - "ErrorResponse": { - "type": "object", - "properties": { - "errorId": { - "type": "string", - "example": "50905466-1881-457b-b42f-fb7b2bfb1610" - }, - "httpStatusCode": { - "format": "int32", - "type": "integer", - "example": 500 - }, - "httpStatusDescription": { - "type": "string", - "example": "Internal Server Error" - }, - "appErrorCode": { - "type": "string", - "example": "FDR-500" - }, - "errors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ErrorMessage" + "ErrorResponse" : { + "type" : "object", + "properties" : { + "errorId" : { + "type" : "string", + "example" : "50905466-1881-457b-b42f-fb7b2bfb1610" + }, + "httpStatusCode" : { + "format" : "int32", + "type" : "integer", + "example" : 500 + }, + "httpStatusDescription" : { + "type" : "string", + "example" : "Internal Server Error" + }, + "appErrorCode" : { + "type" : "string", + "example" : "FDR-500" + }, + "errors" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/ErrorMessage" } } } }, - "Fdr": { - "type": "object", - "properties": { - "fdr": { - "type": "string", - "example": "AAABBB" - }, - "pspId": { - "type": "string", - "example": "1" - }, - "revision": { - "format": "int64", - "type": "integer", - "example": 1 - }, - "published": { - "type": "string", - "allOf": [ - { - "$ref": "#/components/schemas/Instant" - } - ], - "example": "2023-04-03T12:00:30.900000Z" + "Fdr" : { + "type" : "object", + "properties" : { + "fdr" : { + "type" : "string", + "example" : "AAABBB" + }, + "pspId" : { + "type" : "string", + "example" : "1" + }, + "revision" : { + "format" : "int64", + "type" : "integer", + "example" : 1 + }, + "published" : { + "type" : "string", + "allOf" : [ { + "$ref" : "#/components/schemas/Instant" + } ], + "example" : "2023-04-03T12:00:30.900000Z" } } }, - "FdrByPspIdIuvIurBase": { - "type": "object", - "properties": { - "pspId": { - "type": "string" + "FdrByPspIdIuvIurBase" : { + "type" : "object", + "properties" : { + "pspId" : { + "type" : "string" }, - "organizationId": { - "type": "string" + "organizationId" : { + "type" : "string" }, - "fdr": { - "type": "string" + "fdr" : { + "type" : "string" }, - "revision": { - "format": "int64", - "type": "integer" + "revision" : { + "format" : "int64", + "type" : "integer" }, - "created": { - "$ref": "#/components/schemas/Instant" + "created" : { + "$ref" : "#/components/schemas/Instant" } } }, - "FdrByPspIdIuvIurResponse": { - "type": "object", - "properties": { - "metadata": { - "$ref": "#/components/schemas/Metadata" - }, - "count": { - "format": "int64", - "type": "integer", - "example": 100 - }, - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/FdrByPspIdIuvIurBase" + "FdrByPspIdIuvIurResponse" : { + "type" : "object", + "properties" : { + "metadata" : { + "$ref" : "#/components/schemas/Metadata" + }, + "count" : { + "format" : "int64", + "type" : "integer", + "example" : 100 + }, + "data" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/FdrByPspIdIuvIurBase" } } } }, - "FdrInserted": { - "type": "object", - "properties": { - "fdr": { - "type": "string", - "example": "AAABBB" - }, - "organizationId": { - "type": "string", - "example": "1" - }, - "revision": { - "format": "int64", - "type": "integer", - "example": 1 - }, - "created": { - "type": "string", - "allOf": [ - { - "$ref": "#/components/schemas/Instant" - } - ], - "example": "2023-04-03T12:00:30.900000Z" + "FdrInserted" : { + "type" : "object", + "properties" : { + "fdr" : { + "type" : "string", + "example" : "AAABBB" + }, + "organizationId" : { + "type" : "string", + "example" : "1" + }, + "revision" : { + "format" : "int64", + "type" : "integer", + "example" : 1 + }, + "created" : { + "type" : "string", + "allOf" : [ { + "$ref" : "#/components/schemas/Instant" + } ], + "example" : "2023-04-03T12:00:30.900000Z" } } }, - "FdrPublished": { - "type": "object", - "properties": { - "fdr": { - "type": "string", - "example": "AAABBB" - }, - "organizationId": { - "type": "string", - "example": "1" - }, - "revision": { - "format": "int64", - "type": "integer", - "example": 1 - }, - "published": { - "type": "string", - "allOf": [ - { - "$ref": "#/components/schemas/Instant" - } - ], - "example": "2023-04-03T12:00:30.900000Z" + "FdrPublished" : { + "type" : "object", + "properties" : { + "fdr" : { + "type" : "string", + "example" : "AAABBB" + }, + "organizationId" : { + "type" : "string", + "example" : "1" + }, + "revision" : { + "format" : "int64", + "type" : "integer", + "example" : 1 + }, + "published" : { + "type" : "string", + "allOf" : [ { + "$ref" : "#/components/schemas/Instant" + } ], + "example" : "2023-04-03T12:00:30.900000Z" } } }, - "GenericResponse": { - "type": "object", - "properties": { - "message": { - "type": "string", - "example": "Success" + "GenericResponse" : { + "type" : "object", + "properties" : { + "message" : { + "type" : "string", + "example" : "Success" } } }, - "GetAllCreatedResponse": { - "type": "object", - "properties": { - "metadata": { - "$ref": "#/components/schemas/Metadata" - }, - "count": { - "format": "int64", - "type": "integer", - "example": 100 - }, - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/FdrInserted" + "GetAllCreatedResponse" : { + "type" : "object", + "properties" : { + "metadata" : { + "$ref" : "#/components/schemas/Metadata" + }, + "count" : { + "format" : "int64", + "type" : "integer", + "example" : 100 + }, + "data" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/FdrInserted" } } } }, - "GetAllPublishedResponse": { - "type": "object", - "properties": { - "metadata": { - "$ref": "#/components/schemas/Metadata" - }, - "count": { - "format": "int64", - "type": "integer", - "example": 100 - }, - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/FdrPublished" + "GetAllPublishedResponse" : { + "type" : "object", + "properties" : { + "metadata" : { + "$ref" : "#/components/schemas/Metadata" + }, + "count" : { + "format" : "int64", + "type" : "integer", + "example" : 100 + }, + "data" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/FdrPublished" } } } }, - "GetAllResponse": { - "type": "object", - "properties": { - "metadata": { - "$ref": "#/components/schemas/Metadata" - }, - "count": { - "format": "int64", - "type": "integer", - "example": 100 - }, - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Fdr" + "GetAllResponse" : { + "type" : "object", + "properties" : { + "metadata" : { + "$ref" : "#/components/schemas/Metadata" + }, + "count" : { + "format" : "int64", + "type" : "integer", + "example" : 100 + }, + "data" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/Fdr" } } } }, - "GetCreatedResponse": { - "type": "object", - "properties": { - "status": { - "type": "string", - "allOf": [ - { - "$ref": "#/components/schemas/ReportingFlowStatusEnum" - } - ], - "example": "CREATED" - }, - "revision": { - "format": "int64", - "type": "integer", - "example": 4 - }, - "created": { - "type": "string", - "allOf": [ - { - "$ref": "#/components/schemas/Instant" - } - ], - "example": "2023-04-03T12:00:30.900000Z" - }, - "updated": { - "type": "string", - "allOf": [ - { - "$ref": "#/components/schemas/Instant" - } - ], - "example": "2023-04-03T12:00:30.900000Z" - }, - "fdr": { - "type": "string", - "example": "2016-08-16pspTest-1178" - }, - "fdrDate": { - "type": "string", - "allOf": [ - { - "$ref": "#/components/schemas/Instant" - } - ], - "example": "2023-04-05T09:21:37.810000Z" - }, - "regulation": { - "type": "string", - "example": "SEPA - Bonifico xzy" - }, - "regulationDate": { - "type": "string", - "allOf": [ - { - "$ref": "#/components/schemas/Instant" - } - ], - "example": "2023-04-03T12:00:30.900000Z" - }, - "bicCodePouringBank": { - "type": "string", - "example": "UNCRITMMXXX" - }, - "sender": { - "$ref": "#/components/schemas/Sender" - }, - "receiver": { - "$ref": "#/components/schemas/Receiver" - }, - "computedTotPayments": { - "format": "int64", - "type": "integer", - "example": 100 - }, - "computedSumPayments": { - "format": "double", - "type": "number", - "example": 100.9 - }, - "totPayments": { - "format": "int64", - "type": "integer", - "example": 100 - }, - "sumPayments": { - "format": "double", - "type": "number", - "example": 100.9 + "GetCreatedResponse" : { + "type" : "object", + "properties" : { + "status" : { + "type" : "string", + "allOf" : [ { + "$ref" : "#/components/schemas/ReportingFlowStatusEnum" + } ], + "example" : "CREATED" + }, + "revision" : { + "format" : "int64", + "type" : "integer", + "example" : 4 + }, + "created" : { + "type" : "string", + "allOf" : [ { + "$ref" : "#/components/schemas/Instant" + } ], + "example" : "2023-04-03T12:00:30.900000Z" + }, + "updated" : { + "type" : "string", + "allOf" : [ { + "$ref" : "#/components/schemas/Instant" + } ], + "example" : "2023-04-03T12:00:30.900000Z" + }, + "fdr" : { + "type" : "string", + "example" : "2016-08-16pspTest-1178" + }, + "fdrDate" : { + "type" : "string", + "allOf" : [ { + "$ref" : "#/components/schemas/Instant" + } ], + "example" : "2023-04-05T09:21:37.810000Z" + }, + "regulation" : { + "type" : "string", + "example" : "SEPA - Bonifico xzy" + }, + "regulationDate" : { + "type" : "string", + "allOf" : [ { + "$ref" : "#/components/schemas/Instant" + } ], + "example" : "2023-04-03T12:00:30.900000Z" + }, + "bicCodePouringBank" : { + "type" : "string", + "example" : "UNCRITMMXXX" + }, + "sender" : { + "$ref" : "#/components/schemas/Sender" + }, + "receiver" : { + "$ref" : "#/components/schemas/Receiver" + }, + "computedTotPayments" : { + "format" : "int64", + "type" : "integer", + "example" : 100 + }, + "computedSumPayments" : { + "format" : "double", + "type" : "number", + "example" : 100.9 + }, + "totPayments" : { + "format" : "int64", + "type" : "integer", + "example" : 100 + }, + "sumPayments" : { + "format" : "double", + "type" : "number", + "example" : 100.9 } } }, - "GetPaymentResponse": { - "type": "object", - "properties": { - "metadata": { - "$ref": "#/components/schemas/Metadata" - }, - "count": { - "format": "int64", - "type": "integer", - "example": 100 - }, - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Payment" + "GetPaymentResponse" : { + "type" : "object", + "properties" : { + "metadata" : { + "$ref" : "#/components/schemas/Metadata" + }, + "count" : { + "format" : "int64", + "type" : "integer", + "example" : 100 + }, + "data" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/Payment" } } } }, - "GetResponse": { - "type": "object", - "properties": { - "status": { - "type": "string", - "allOf": [ - { - "$ref": "#/components/schemas/ReportingFlowStatusEnum" - } - ], - "example": "CREATED" - }, - "revision": { - "format": "int64", - "type": "integer", - "example": 4 - }, - "created": { - "type": "string", - "allOf": [ - { - "$ref": "#/components/schemas/Instant" - } - ], - "example": "2023-04-03T12:00:30.900000Z" - }, - "updated": { - "type": "string", - "allOf": [ - { - "$ref": "#/components/schemas/Instant" - } - ], - "example": "2023-04-03T12:00:30.900000Z" - }, - "fdr": { - "type": "string", - "example": "2016-08-16pspTest-1178" - }, - "fdrDate": { - "type": "string", - "allOf": [ - { - "$ref": "#/components/schemas/Instant" - } - ], - "example": "2023-04-05T09:21:37.810000Z" - }, - "regulation": { - "type": "string", - "example": "SEPA - Bonifico xzy" - }, - "regulationDate": { - "type": "string", - "allOf": [ - { - "$ref": "#/components/schemas/Instant" - } - ], - "example": "2023-04-03T12:00:30.900000Z" - }, - "bicCodePouringBank": { - "type": "string", - "example": "UNCRITMMXXX" - }, - "sender": { - "$ref": "#/components/schemas/Sender" - }, - "receiver": { - "$ref": "#/components/schemas/Receiver" - }, - "published": { - "type": "string", - "allOf": [ - { - "$ref": "#/components/schemas/Instant" - } - ], - "example": "2023-04-03T12:00:30.900000Z" - }, - "computedTotPayments": { - "format": "int64", - "type": "integer", - "example": 100 - }, - "computedSumPayments": { - "format": "double", - "type": "number", - "example": 100.9 - }, - "totPayments": { - "format": "int64", - "type": "integer", - "example": 100 - }, - "sumPayments": { - "format": "double", - "type": "number", - "example": 100.9 + "GetResponse" : { + "type" : "object", + "properties" : { + "status" : { + "type" : "string", + "allOf" : [ { + "$ref" : "#/components/schemas/ReportingFlowStatusEnum" + } ], + "example" : "CREATED" + }, + "revision" : { + "format" : "int64", + "type" : "integer", + "example" : 4 + }, + "created" : { + "type" : "string", + "allOf" : [ { + "$ref" : "#/components/schemas/Instant" + } ], + "example" : "2023-04-03T12:00:30.900000Z" + }, + "updated" : { + "type" : "string", + "allOf" : [ { + "$ref" : "#/components/schemas/Instant" + } ], + "example" : "2023-04-03T12:00:30.900000Z" + }, + "fdr" : { + "type" : "string", + "example" : "2016-08-16pspTest-1178" + }, + "fdrDate" : { + "type" : "string", + "allOf" : [ { + "$ref" : "#/components/schemas/Instant" + } ], + "example" : "2023-04-05T09:21:37.810000Z" + }, + "regulation" : { + "type" : "string", + "example" : "SEPA - Bonifico xzy" + }, + "regulationDate" : { + "type" : "string", + "allOf" : [ { + "$ref" : "#/components/schemas/Instant" + } ], + "example" : "2023-04-03T12:00:30.900000Z" + }, + "bicCodePouringBank" : { + "type" : "string", + "example" : "UNCRITMMXXX" + }, + "sender" : { + "$ref" : "#/components/schemas/Sender" + }, + "receiver" : { + "$ref" : "#/components/schemas/Receiver" + }, + "published" : { + "type" : "string", + "allOf" : [ { + "$ref" : "#/components/schemas/Instant" + } ], + "example" : "2023-04-03T12:00:30.900000Z" + }, + "computedTotPayments" : { + "format" : "int64", + "type" : "integer", + "example" : 100 + }, + "computedSumPayments" : { + "format" : "double", + "type" : "number", + "example" : 100.9 + }, + "totPayments" : { + "format" : "int64", + "type" : "integer", + "example" : 100 + }, + "sumPayments" : { + "format" : "double", + "type" : "number", + "example" : 100.9 } } }, - "InfoResponse": { - "type": "object", - "properties": { - "name": { - "type": "string", - "example": "pagopa-fdr" - }, - "version": { - "type": "string", - "example": "1.2.3" - }, - "environment": { - "type": "string", - "example": "dev" - }, - "description": { - "type": "string", - "example": "FDR - Flussi di rendicontazione" - }, - "errorCodes": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ErrorCode" + "InfoResponse" : { + "type" : "object", + "properties" : { + "name" : { + "type" : "string", + "example" : "pagopa-fdr" + }, + "version" : { + "type" : "string", + "example" : "1.2.3" + }, + "environment" : { + "type" : "string", + "example" : "dev" + }, + "description" : { + "type" : "string", + "example" : "FDR - Flussi di rendicontazione" + }, + "errorCodes" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/ErrorCode" } } } }, - "Instant": { - "format": "date-time", - "type": "string", - "example": "2022-03-10T16:15:50Z" + "Instant" : { + "format" : "date-time", + "type" : "string", + "example" : "2022-03-10T16:15:50Z" }, - "Metadata": { - "type": "object", - "properties": { - "pageSize": { - "format": "int32", - "type": "integer", - "example": 25 - }, - "pageNumber": { - "format": "int32", - "type": "integer", - "example": 1 - }, - "totPage": { - "format": "int32", - "type": "integer", - "example": 3 + "Metadata" : { + "type" : "object", + "properties" : { + "pageSize" : { + "format" : "int32", + "type" : "integer", + "example" : 25 + }, + "pageNumber" : { + "format" : "int32", + "type" : "integer", + "example" : 1 + }, + "totPage" : { + "format" : "int32", + "type" : "integer", + "example" : 3 } } }, - "Payment": { - "required": [ - "index", - "iuv", - "iur", - "idTransfer", - "pay", - "payStatus", - "payDate" - ], - "type": "object", - "properties": { - "index": { - "format": "int64", - "description": "Identificativo del pagamento univoco nel flusso", - "minimum": 1, - "type": "integer", - "example": 1 - }, - "iuv": { - "description": "[XML FlussoRiversamento]=[datiSingoliPagamenti.identificativoUnivocoVersamento]", - "pattern": "^(.{1,35})$", - "type": "string", - "example": "abcdefg" - }, - "iur": { - "description": "[XML FlussoRiversamento]=[datiSingoliPagamenti.identificativoUnivocoRiscossione]", - "pattern": "^(.{1,35})$", - "type": "string", - "example": "abcdefg" - }, - "idTransfer": { - "format": "int64", - "description": "[XML FlussoRiversamento]=[datiSingoliPagamenti.indiceDatiSingoloPagamento]", - "maximum": 5, - "minimum": 1, - "type": "integer", - "example": 1 - }, - "pay": { - "format": "double", - "description": "[XML FlussoRiversamento]=[datiSingoliPagamenti.singoloImportoPagato]", - "minimum": 0, - "exclusiveMinimum": true, - "pattern": "^\\d{1,2147483647}([.]\\d{1,2})?$", - "type": "number", - "example": 0.01 - }, - "payStatus": { - "description": "[XML FlussoRiversamento]=[datiSingoliPagamenti.codiceEsitoSingoloPagamento] \n0 -> EXECUTED\n3 -> REVOKED\n9 -> NO_RPT\n4 -> STAND_IN", - "type": "string", - "allOf": [ - { - "$ref": "#/components/schemas/PaymentStatusEnum" - } - ], - "example": "EXECUTED" - }, - "payDate": { - "description": "[XML FlussoRiversamento]=[datiSingoliPagamenti.dataEsitoSingoloPagamento]", - "type": "string", - "allOf": [ - { - "$ref": "#/components/schemas/Instant" - } - ], - "example": "2023-02-03T12:00:30.900000Z" + "Payment" : { + "required" : [ "index", "iuv", "iur", "idTransfer", "pay", "payStatus", "payDate" ], + "type" : "object", + "properties" : { + "index" : { + "format" : "int64", + "description" : "Identificativo del pagamento univoco nel flusso", + "minimum" : 1, + "type" : "integer", + "example" : 1 + }, + "iuv" : { + "description" : "[XML FlussoRiversamento]=[datiSingoliPagamenti.identificativoUnivocoVersamento]", + "pattern" : "^(.{1,35})$", + "type" : "string", + "example" : "abcdefg" + }, + "iur" : { + "description" : "[XML FlussoRiversamento]=[datiSingoliPagamenti.identificativoUnivocoRiscossione]", + "pattern" : "^(.{1,35})$", + "type" : "string", + "example" : "abcdefg" + }, + "idTransfer" : { + "format" : "int64", + "description" : "[XML FlussoRiversamento]=[datiSingoliPagamenti.indiceDatiSingoloPagamento]", + "maximum" : 5, + "minimum" : 1, + "type" : "integer", + "example" : 1 + }, + "pay" : { + "format" : "double", + "description" : "[XML FlussoRiversamento]=[datiSingoliPagamenti.singoloImportoPagato]", + "minimum" : 0, + "exclusiveMinimum" : true, + "pattern" : "^\\d{1,2147483647}([.]\\d{1,2})?$", + "type" : "number", + "example" : 0.01 + }, + "payStatus" : { + "description" : "[XML FlussoRiversamento]=[datiSingoliPagamenti.codiceEsitoSingoloPagamento] \n0 -> EXECUTED\n3 -> REVOKED\n9 -> NO_RPT\n4 -> STAND_IN\n8 -> STAND_IN_NO_RPT", + "type" : "string", + "allOf" : [ { + "$ref" : "#/components/schemas/PaymentStatusEnum" + } ], + "example" : "EXECUTED" + }, + "payDate" : { + "description" : "[XML FlussoRiversamento]=[datiSingoliPagamenti.dataEsitoSingoloPagamento]", + "type" : "string", + "allOf" : [ { + "$ref" : "#/components/schemas/Instant" + } ], + "example" : "2023-02-03T12:00:30.900000Z" } } }, - "PaymentStatusEnum": { - "enum": [ - "EXECUTED", - "REVOKED", - "NO_RPT", - "STAND_IN" - ], - "type": "string" + "PaymentStatusEnum" : { + "enum" : [ "EXECUTED", "REVOKED", "NO_RPT", "STAND_IN", "STAND_IN_NO_RPT" ], + "type" : "string" }, - "Receiver": { - "required": [ - "id", - "organizationId", - "organizationName" - ], - "type": "object", - "properties": { - "id": { - "description": "[XML FlussoRiversamento]=[istitutoRicevente.identificativoUnivocoRicevente.codiceIdentificativoUnivoco]", - "pattern": "^(.{1,35})$", - "type": "string", - "example": "APPBIT2B" - }, - "organizationId": { - "description": "[XML NodoInviaFlussoRendicontazione]=[identificativoDominio]", - "pattern": "^(.{1,35})$", - "type": "string", - "example": "20000000001" - }, - "organizationName": { - "description": "[XML FlussoRiversamento]=[istitutoRicevente.denominazioneRicevente]", - "pattern": "^(.{1,140})$", - "type": "string", - "example": "Comune di xyz" + "Receiver" : { + "required" : [ "id", "organizationId", "organizationName" ], + "type" : "object", + "properties" : { + "id" : { + "description" : "[XML FlussoRiversamento]=[istitutoRicevente.identificativoUnivocoRicevente.codiceIdentificativoUnivoco]", + "pattern" : "^(.{1,35})$", + "type" : "string", + "example" : "APPBIT2B" + }, + "organizationId" : { + "description" : "[XML NodoInviaFlussoRendicontazione]=[identificativoDominio]", + "pattern" : "^(.{1,35})$", + "type" : "string", + "example" : "20000000001" + }, + "organizationName" : { + "description" : "[XML FlussoRiversamento]=[istitutoRicevente.denominazioneRicevente]", + "pattern" : "^(.{1,140})$", + "type" : "string", + "example" : "Comune di xyz" } } }, - "ReportingFlowStatusEnum": { - "enum": [ - "CREATED", - "INSERTED", - "PUBLISHED" - ], - "type": "string" + "ReportingFlowStatusEnum" : { + "enum" : [ "CREATED", "INSERTED", "PUBLISHED" ], + "type" : "string" }, - "Sender": { - "required": [ - "type", - "id", - "pspId", - "pspName", - "pspBrokerId", - "channelId" - ], - "type": "object", - "properties": { - "type": { - "description": "[XML FlussoRiversamento]=[istitutoMittente.identificativoUnivocoMittente.tipoIdentificativoUnivoco] \nG -> LEGAL_PERSON\nA -> ABI_CODE\nB -> BIC_CODE", - "type": "string", - "allOf": [ - { - "$ref": "#/components/schemas/SenderTypeEnum" - } - ], - "example": "LEGAL_PERSON" - }, - "id": { - "description": "[XML FlussoRiversamento]=[istitutoMittente.identificativoUnivocoMittente.codiceIdentificativoUnivoco]", - "pattern": "^(.{1,35})$", - "type": "string", - "example": "SELBIT2B" - }, - "pspId": { - "description": "[XML NodoInviaFlussoRendicontazione]=[identificativoPSP]", - "pattern": "^(.{1,35})$", - "type": "string", - "example": "60000000001" - }, - "pspName": { - "description": "[XML FlussoRiversamento]=[istitutoMittente.denominazioneMittente]", - "pattern": "^(.{3,70})$", - "type": "string", - "example": "Bank" - }, - "pspBrokerId": { - "description": "[XML NodoInviaFlussoRendicontazione]=[identificativoIntermediarioPSP]", - "pattern": "^(.{1,35})$", - "type": "string", - "example": "70000000001" - }, - "channelId": { - "description": "[XML NodoInviaFlussoRendicontazione]=[identificativoCanale]", - "pattern": "^(.{1,35})$", - "type": "string", - "example": "80000000001" - }, - "password": { - "description": "[XML NodoInviaFlussoRendicontazione]=[password]", - "pattern": "^(\\w{8,15})$", - "type": "string", - "example": "1234567890", - "deprecated": true + "Sender" : { + "required" : [ "type", "id", "pspId", "pspName", "pspBrokerId", "channelId" ], + "type" : "object", + "properties" : { + "type" : { + "description" : "[XML FlussoRiversamento]=[istitutoMittente.identificativoUnivocoMittente.tipoIdentificativoUnivoco] \nG -> LEGAL_PERSON\nA -> ABI_CODE\nB -> BIC_CODE", + "type" : "string", + "allOf" : [ { + "$ref" : "#/components/schemas/SenderTypeEnum" + } ], + "example" : "LEGAL_PERSON" + }, + "id" : { + "description" : "[XML FlussoRiversamento]=[istitutoMittente.identificativoUnivocoMittente.codiceIdentificativoUnivoco]", + "pattern" : "^(.{1,35})$", + "type" : "string", + "example" : "SELBIT2B" + }, + "pspId" : { + "description" : "[XML NodoInviaFlussoRendicontazione]=[identificativoPSP]", + "pattern" : "^(.{1,35})$", + "type" : "string", + "example" : "60000000001" + }, + "pspName" : { + "description" : "[XML FlussoRiversamento]=[istitutoMittente.denominazioneMittente]", + "pattern" : "^(.{3,70})$", + "type" : "string", + "example" : "Bank" + }, + "pspBrokerId" : { + "description" : "[XML NodoInviaFlussoRendicontazione]=[identificativoIntermediarioPSP]", + "pattern" : "^(.{1,35})$", + "type" : "string", + "example" : "70000000001" + }, + "channelId" : { + "description" : "[XML NodoInviaFlussoRendicontazione]=[identificativoCanale]", + "pattern" : "^(.{1,35})$", + "type" : "string", + "example" : "80000000001" + }, + "password" : { + "description" : "[XML NodoInviaFlussoRendicontazione]=[password]", + "pattern" : "^(\\w{8,15})$", + "type" : "string", + "example" : "1234567890", + "deprecated" : true } } }, - "SenderTypeEnum": { - "enum": [ - "LEGAL_PERSON", - "ABI_CODE", - "BIC_CODE" - ], - "type": "string" + "SenderTypeEnum" : { + "enum" : [ "LEGAL_PERSON", "ABI_CODE", "BIC_CODE" ], + "type" : "string" } }, - "responses": { - "AppException400": { - "description": "Default app exception for status 400", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "responses" : { + "AppException400" : { + "description" : "Default app exception for status 400", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ErrorResponse" }, - "examples": { - "Error": { - "value": { - "httpStatusCode": 400, - "httpStatusDescription": "Bad Request", - "appErrorCode": "FDR-0702", - "errors": [ - { - "message": "Reporting Fdr [] is invalid" - } - ] + "examples" : { + "Error" : { + "value" : { + "httpStatusCode" : 400, + "httpStatusDescription" : "Bad Request", + "appErrorCode" : "FDR-0702", + "errors" : [ { + "message" : "Reporting Fdr [] is invalid" + } ] } }, - "Errors with path": { - "value": { - "httpStatusCode": 400, - "httpStatusDescription": "Bad Request", - "appErrorCode": "FDR-0702", - "errors": [ - { - "path": "", - "message": "" - } - ] + "Errors with path" : { + "value" : { + "httpStatusCode" : 400, + "httpStatusDescription" : "Bad Request", + "appErrorCode" : "FDR-0702", + "errors" : [ { + "path" : "", + "message" : "" + } ] } } } } } }, - "AppException404": { - "description": "Default app exception for status 404", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "AppException404" : { + "description" : "Default app exception for status 404", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ErrorResponse" }, - "example": { - "httpStatusCode": 404, - "httpStatusDescription": "Not Found", - "appErrorCode": "FDR-0701", - "errors": [ - { - "message": "Reporting Fdr [] not found" - } - ] + "example" : { + "httpStatusCode" : 404, + "httpStatusDescription" : "Not Found", + "appErrorCode" : "FDR-0701", + "errors" : [ { + "message" : "Reporting Fdr [] not found" + } ] } } } }, - "InternalServerError": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "InternalServerError" : { + "description" : "Internal Server Error", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ErrorResponse" }, - "example": { - "errorId": "50905466-1881-457b-b42f-fb7b2bfb1610", - "httpStatusCode": 500, - "httpStatusDescription": "Internal Server Error", - "appErrorCode": "FDR-0500", - "errors": [ - { - "message": "An unexpected error has occurred. Please contact support." - } - ] + "example" : { + "errorId" : "50905466-1881-457b-b42f-fb7b2bfb1610", + "httpStatusCode" : 500, + "httpStatusDescription" : "Internal Server Error", + "appErrorCode" : "FDR-0500", + "errors" : [ { + "message" : "An unexpected error has occurred. Please contact support." + } ] } } } } }, - "securitySchemes": { - "api_key": { - "type": "apiKey", - "name": "Ocp-Apim-Subscription-Key", - "in": "header" + "securitySchemes" : { + "api_key" : { + "type" : "apiKey", + "name" : "Ocp-Apim-Subscription-Key", + "in" : "header" }, - "SecurityScheme": { - "type": "http", - "description": "Authentication", - "scheme": "basic" + "SecurityScheme" : { + "type" : "http", + "description" : "Authentication", + "scheme" : "basic" } } } -} +} \ No newline at end of file diff --git a/openapi/openapi_psp.json b/openapi/openapi_psp.json index 5887e76e..a1010b40 100644 --- a/openapi/openapi_psp.json +++ b/openapi/openapi_psp.json @@ -1,99 +1,83 @@ { - "openapi": "3.0.3", - "info": { - "title": "FDR - Flussi di rendicontazione (local)", - "description": "Manage FDR ( aka \"Flussi di Rendicontazione\" ) exchanged between PSP and EC", - "termsOfService": "https://www.pagopa.gov.it/", - "version": "1.0.15" + "openapi" : "3.0.3", + "info" : { + "title" : "FDR - Flussi di rendicontazione (local)", + "description" : "Manage FDR ( aka \"Flussi di Rendicontazione\" ) exchanged between PSP and EC", + "termsOfService" : "https://www.pagopa.gov.it/", + "version" : "0.0.0-SNAPSHOT" }, - "servers": [ - { - "url": "http://localhost:8080/" - } - ], - "security": [ - { - "api_key": [] - } - ], - "tags": [ - { - "name": "Info", - "description": "Info operations" - }, - { - "name": "Internal Organizations", - "description": "Organizations operations" - }, - { - "name": "Internal PSP", - "description": "PSP operations" - }, - { - "name": "Organizations", - "description": "Organizations operations" - }, - { - "name": "PSP", - "description": "PSP operations" - }, - { - "name": "Support", - "description": "Support operations" - } - ], - "paths": { - "/psps/{pspId}/fdrs/{fdr}/payments/add": { - "put": { - "tags": [ - "PSP" - ], - "summary": "Add payments to fdr", - "description": "Add payments to fdr", - "operationId": "addPayment", - "parameters": [ - { - "name": "fdr", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "pspId", - "in": "path", - "required": true, - "schema": { - "type": "string" - } + "servers" : [ { + "url" : "http://localhost:8080/" + } ], + "security" : [ { + "api_key" : [ ] + } ], + "tags" : [ { + "name" : "Info", + "description" : "Info operations" + }, { + "name" : "Internal Organizations", + "description" : "Organizations operations" + }, { + "name" : "Internal PSP", + "description" : "PSP operations" + }, { + "name" : "Organizations", + "description" : "Organizations operations" + }, { + "name" : "PSP", + "description" : "PSP operations" + }, { + "name" : "Support", + "description" : "Support operations" + } ], + "paths" : { + "/psps/{pspId}/fdrs/{fdr}/payments/add" : { + "put" : { + "tags" : [ "PSP" ], + "summary" : "Add payments to fdr", + "description" : "Add payments to fdr", + "operationId" : "addPayment", + "parameters" : [ { + "name" : "fdr", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "pspId", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/AddPaymentRequest" + } ], + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/AddPaymentRequest" } } } }, - "responses": { - "500": { - "$ref": "#/components/responses/InternalServerError" - }, - "400": { - "$ref": "#/components/responses/AppException400" - }, - "404": { - "$ref": "#/components/responses/AppException404" - }, - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GenericResponse" + "responses" : { + "500" : { + "$ref" : "#/components/responses/InternalServerError" + }, + "400" : { + "$ref" : "#/components/responses/AppException400" + }, + "404" : { + "$ref" : "#/components/responses/AppException404" + }, + "200" : { + "description" : "Success", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/GenericResponse" } } } @@ -101,48 +85,43 @@ } } }, - "/psps/{pspId}/fdrs/{fdr}/publish": { - "post": { - "tags": [ - "PSP" - ], - "summary": "Publish fdr", - "description": "Publish fdr", - "operationId": "publish", - "parameters": [ - { - "name": "fdr", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "pspId", - "in": "path", - "required": true, - "schema": { - "type": "string" - } + "/psps/{pspId}/fdrs/{fdr}/publish" : { + "post" : { + "tags" : [ "PSP" ], + "summary" : "Publish fdr", + "description" : "Publish fdr", + "operationId" : "publish", + "parameters" : [ { + "name" : "fdr", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" } - ], - "responses": { - "500": { - "$ref": "#/components/responses/InternalServerError" - }, - "400": { - "$ref": "#/components/responses/AppException400" - }, - "404": { - "$ref": "#/components/responses/AppException404" - }, - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GenericResponse" + }, { + "name" : "pspId", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "500" : { + "$ref" : "#/components/responses/InternalServerError" + }, + "400" : { + "$ref" : "#/components/responses/AppException400" + }, + "404" : { + "$ref" : "#/components/responses/AppException404" + }, + "200" : { + "description" : "Success", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/GenericResponse" } } } @@ -150,56 +129,50 @@ } } }, - "/psps/{pspId}/created/fdrs/{fdr}/organizations/{organizationId}": { - "get": { - "tags": [ - "PSP" - ], - "summary": "Get created fdr", - "description": "Get created fdr", - "operationId": "getCreated", - "parameters": [ - { - "name": "fdr", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "organizationId", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "pspId", - "in": "path", - "required": true, - "schema": { - "type": "string" - } + "/psps/{pspId}/created/fdrs/{fdr}/organizations/{organizationId}" : { + "get" : { + "tags" : [ "PSP" ], + "summary" : "Get created fdr", + "description" : "Get created fdr", + "operationId" : "getCreated", + "parameters" : [ { + "name" : "fdr", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" } - ], - "responses": { - "500": { - "$ref": "#/components/responses/InternalServerError" - }, - "400": { - "$ref": "#/components/responses/AppException400" - }, - "404": { - "$ref": "#/components/responses/AppException404" - }, - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GetCreatedResponse" + }, { + "name" : "organizationId", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "pspId", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "500" : { + "$ref" : "#/components/responses/InternalServerError" + }, + "400" : { + "$ref" : "#/components/responses/AppException400" + }, + "404" : { + "$ref" : "#/components/responses/AppException404" + }, + "200" : { + "description" : "Success", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/GetCreatedResponse" } } } @@ -207,85 +180,76 @@ } } }, - "/psps/{pspId}/published/fdrs/{fdr}/revisions/{revision}/organizations/{organizationId}/payments": { - "get": { - "tags": [ - "PSP" - ], - "summary": "Get payments of fdr Published", - "description": "Get payments of fdr Published", - "operationId": "getPaymentPublishedByPsp", - "parameters": [ - { - "name": "fdr", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "organizationId", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "pspId", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "revision", - "in": "path", - "required": true, - "schema": { - "format": "int64", - "type": "integer" - } - }, - { - "name": "page", - "in": "query", - "schema": { - "format": "int64", - "default": 1, - "minimum": 1, - "type": "integer" - } - }, - { - "name": "size", - "in": "query", - "schema": { - "format": "int64", - "default": 1000, - "minimum": 1, - "type": "integer" - } + "/psps/{pspId}/published/fdrs/{fdr}/revisions/{revision}/organizations/{organizationId}/payments" : { + "get" : { + "tags" : [ "PSP" ], + "summary" : "Get payments of fdr Published", + "description" : "Get payments of fdr Published", + "operationId" : "getPaymentPublishedByPsp", + "parameters" : [ { + "name" : "fdr", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" } - ], - "responses": { - "500": { - "$ref": "#/components/responses/InternalServerError" - }, - "400": { - "$ref": "#/components/responses/AppException400" - }, - "404": { - "$ref": "#/components/responses/AppException404" - }, - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GetPaymentResponse" + }, { + "name" : "organizationId", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "pspId", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "revision", + "in" : "path", + "required" : true, + "schema" : { + "format" : "int64", + "type" : "integer" + } + }, { + "name" : "page", + "in" : "query", + "schema" : { + "format" : "int64", + "default" : 1, + "minimum" : 1, + "type" : "integer" + } + }, { + "name" : "size", + "in" : "query", + "schema" : { + "format" : "int64", + "default" : 1000, + "minimum" : 1, + "type" : "integer" + } + } ], + "responses" : { + "500" : { + "$ref" : "#/components/responses/InternalServerError" + }, + "400" : { + "$ref" : "#/components/responses/AppException400" + }, + "404" : { + "$ref" : "#/components/responses/AppException404" + }, + "200" : { + "description" : "Success", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/GetPaymentResponse" } } } @@ -293,105 +257,95 @@ } } }, - "/psps/{pspId}/fdrs/{fdr}": { - "post": { - "tags": [ - "PSP" - ], - "summary": "Create fdr", - "description": "Create fdr", - "operationId": "create", - "parameters": [ - { - "name": "fdr", - "in": "path", - "required": true, - "schema": { - "pattern": "[a-zA-Z0-9\\-_]{1,35}", - "type": "string" - } - }, - { - "name": "pspId", - "in": "path", - "required": true, - "schema": { - "type": "string" - } + "/psps/{pspId}/fdrs/{fdr}" : { + "post" : { + "tags" : [ "PSP" ], + "summary" : "Create fdr", + "description" : "Create fdr", + "operationId" : "create", + "parameters" : [ { + "name" : "fdr", + "in" : "path", + "required" : true, + "schema" : { + "pattern" : "[a-zA-Z0-9\\-_]{1,35}", + "type" : "string" + } + }, { + "name" : "pspId", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreateRequest" + } ], + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/CreateRequest" } } } }, - "responses": { - "500": { - "$ref": "#/components/responses/InternalServerError" - }, - "400": { - "$ref": "#/components/responses/AppException400" - }, - "404": { - "$ref": "#/components/responses/AppException404" - }, - "201": { - "description": "Created", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GenericResponse" + "responses" : { + "500" : { + "$ref" : "#/components/responses/InternalServerError" + }, + "400" : { + "$ref" : "#/components/responses/AppException400" + }, + "404" : { + "$ref" : "#/components/responses/AppException404" + }, + "201" : { + "description" : "Created", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/GenericResponse" } } } } } }, - "delete": { - "tags": [ - "PSP" - ], - "summary": "Delete fdr", - "description": "Delete fdr", - "operationId": "delete", - "parameters": [ - { - "name": "fdr", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "pspId", - "in": "path", - "required": true, - "schema": { - "type": "string" - } + "delete" : { + "tags" : [ "PSP" ], + "summary" : "Delete fdr", + "description" : "Delete fdr", + "operationId" : "delete", + "parameters" : [ { + "name" : "fdr", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" } - ], - "responses": { - "500": { - "$ref": "#/components/responses/InternalServerError" - }, - "400": { - "$ref": "#/components/responses/AppException400" - }, - "404": { - "$ref": "#/components/responses/AppException404" - }, - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GenericResponse" + }, { + "name" : "pspId", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "500" : { + "$ref" : "#/components/responses/InternalServerError" + }, + "400" : { + "$ref" : "#/components/responses/AppException400" + }, + "404" : { + "$ref" : "#/components/responses/AppException404" + }, + "200" : { + "description" : "Success", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/GenericResponse" } } } @@ -399,65 +353,58 @@ } } }, - "/psps/{pspId}/published/fdrs/{fdr}/revisions/{revision}/organizations/{organizationId}": { - "get": { - "tags": [ - "PSP" - ], - "summary": "Get fdr Published", - "description": "Get fdr Published", - "operationId": "getPublishedByPsp", - "parameters": [ - { - "name": "fdr", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "organizationId", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "pspId", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "revision", - "in": "path", - "required": true, - "schema": { - "format": "int64", - "type": "integer" - } + "/psps/{pspId}/published/fdrs/{fdr}/revisions/{revision}/organizations/{organizationId}" : { + "get" : { + "tags" : [ "PSP" ], + "summary" : "Get fdr Published", + "description" : "Get fdr Published", + "operationId" : "getPublishedByPsp", + "parameters" : [ { + "name" : "fdr", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" } - ], - "responses": { - "500": { - "$ref": "#/components/responses/InternalServerError" - }, - "400": { - "$ref": "#/components/responses/AppException400" - }, - "404": { - "$ref": "#/components/responses/AppException404" - }, - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GetResponse" + }, { + "name" : "organizationId", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "pspId", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "revision", + "in" : "path", + "required" : true, + "schema" : { + "format" : "int64", + "type" : "integer" + } + } ], + "responses" : { + "500" : { + "$ref" : "#/components/responses/InternalServerError" + }, + "400" : { + "$ref" : "#/components/responses/AppException400" + }, + "404" : { + "$ref" : "#/components/responses/AppException404" + }, + "200" : { + "description" : "Success", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/GetResponse" } } } @@ -465,22 +412,20 @@ } } }, - "/info": { - "get": { - "tags": [ - "Info" - ], - "summary": "Get info of FDR", - "responses": { - "500": { - "$ref": "#/components/responses/InternalServerError" - }, - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/InfoResponse" + "/info" : { + "get" : { + "tags" : [ "Info" ], + "summary" : "Get info of FDR", + "responses" : { + "500" : { + "$ref" : "#/components/responses/InternalServerError" + }, + "200" : { + "description" : "Success", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/InfoResponse" } } } @@ -488,67 +433,60 @@ } } }, - "/psps/{pspId}/created": { - "get": { - "tags": [ - "PSP" - ], - "summary": "Get all fdr created", - "description": "Get all fdr created", - "operationId": "getAllcreated", - "parameters": [ - { - "name": "pspId", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "createdGt", - "in": "query", - "schema": { - "$ref": "#/components/schemas/Instant" - } - }, - { - "name": "page", - "in": "query", - "schema": { - "format": "int64", - "default": 1, - "minimum": 1, - "type": "integer" - } - }, - { - "name": "size", - "in": "query", - "schema": { - "format": "int64", - "default": 1000, - "minimum": 1, - "type": "integer" - } + "/psps/{pspId}/created" : { + "get" : { + "tags" : [ "PSP" ], + "summary" : "Get all fdr created", + "description" : "Get all fdr created", + "operationId" : "getAllcreated", + "parameters" : [ { + "name" : "pspId", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" } - ], - "responses": { - "500": { - "$ref": "#/components/responses/InternalServerError" - }, - "400": { - "$ref": "#/components/responses/AppException400" - }, - "404": { - "$ref": "#/components/responses/AppException404" - }, - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GetAllCreatedResponse" + }, { + "name" : "createdGt", + "in" : "query", + "schema" : { + "$ref" : "#/components/schemas/Instant" + } + }, { + "name" : "page", + "in" : "query", + "schema" : { + "format" : "int64", + "default" : 1, + "minimum" : 1, + "type" : "integer" + } + }, { + "name" : "size", + "in" : "query", + "schema" : { + "format" : "int64", + "default" : 1000, + "minimum" : 1, + "type" : "integer" + } + } ], + "responses" : { + "500" : { + "$ref" : "#/components/responses/InternalServerError" + }, + "400" : { + "$ref" : "#/components/responses/AppException400" + }, + "404" : { + "$ref" : "#/components/responses/AppException404" + }, + "200" : { + "description" : "Success", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/GetAllCreatedResponse" } } } @@ -556,57 +494,52 @@ } } }, - "/psps/{pspId}/fdrs/{fdr}/payments/del": { - "put": { - "tags": [ - "PSP" - ], - "summary": "Delete payments to fdr", - "description": "Delete payments to fdr", - "operationId": "deletePayment", - "parameters": [ - { - "name": "fdr", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "pspId", - "in": "path", - "required": true, - "schema": { - "type": "string" - } + "/psps/{pspId}/fdrs/{fdr}/payments/del" : { + "put" : { + "tags" : [ "PSP" ], + "summary" : "Delete payments to fdr", + "description" : "Delete payments to fdr", + "operationId" : "deletePayment", + "parameters" : [ { + "name" : "fdr", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "pspId", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/DeletePaymentRequest" + } ], + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/DeletePaymentRequest" } } } }, - "responses": { - "500": { - "$ref": "#/components/responses/InternalServerError" - }, - "400": { - "$ref": "#/components/responses/AppException400" - }, - "404": { - "$ref": "#/components/responses/AppException404" - }, - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GenericResponse" + "responses" : { + "500" : { + "$ref" : "#/components/responses/InternalServerError" + }, + "400" : { + "$ref" : "#/components/responses/AppException400" + }, + "404" : { + "$ref" : "#/components/responses/AppException404" + }, + "200" : { + "description" : "Success", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/GenericResponse" } } } @@ -614,76 +547,68 @@ } } }, - "/psps/{pspId}/created/fdrs/{fdr}/organizations/{organizationId}/payments": { - "get": { - "tags": [ - "PSP" - ], - "summary": "Get created payments of fdr", - "description": "Get created payments of fdr", - "operationId": "getCreatedPayment", - "parameters": [ - { - "name": "fdr", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "organizationId", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "pspId", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "page", - "in": "query", - "schema": { - "format": "int64", - "default": 1, - "minimum": 1, - "type": "integer" - } - }, - { - "name": "size", - "in": "query", - "schema": { - "format": "int64", - "default": 1000, - "minimum": 1, - "type": "integer" - } + "/psps/{pspId}/created/fdrs/{fdr}/organizations/{organizationId}/payments" : { + "get" : { + "tags" : [ "PSP" ], + "summary" : "Get created payments of fdr", + "description" : "Get created payments of fdr", + "operationId" : "getCreatedPayment", + "parameters" : [ { + "name" : "fdr", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" } - ], - "responses": { - "500": { - "$ref": "#/components/responses/InternalServerError" - }, - "400": { - "$ref": "#/components/responses/AppException400" - }, - "404": { - "$ref": "#/components/responses/AppException404" - }, - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GetPaymentResponse" + }, { + "name" : "organizationId", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "pspId", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "page", + "in" : "query", + "schema" : { + "format" : "int64", + "default" : 1, + "minimum" : 1, + "type" : "integer" + } + }, { + "name" : "size", + "in" : "query", + "schema" : { + "format" : "int64", + "default" : 1000, + "minimum" : 1, + "type" : "integer" + } + } ], + "responses" : { + "500" : { + "$ref" : "#/components/responses/InternalServerError" + }, + "400" : { + "$ref" : "#/components/responses/AppException400" + }, + "404" : { + "$ref" : "#/components/responses/AppException404" + }, + "200" : { + "description" : "Success", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/GetPaymentResponse" } } } @@ -691,75 +616,67 @@ } } }, - "/psps/{pspId}/published": { - "get": { - "tags": [ - "PSP" - ], - "summary": "Get all fdr published", - "description": "Get all fdr published", - "operationId": "getAllPublishedByPsp", - "parameters": [ - { - "name": "pspId", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "organizationId", - "in": "query", - "schema": { - "pattern": "^(.{1,35})$", - "type": "string" - } - }, - { - "name": "page", - "in": "query", - "schema": { - "format": "int64", - "default": 1, - "minimum": 1, - "type": "integer" - } - }, - { - "name": "publishedGt", - "in": "query", - "schema": { - "$ref": "#/components/schemas/Instant" - } - }, - { - "name": "size", - "in": "query", - "schema": { - "format": "int64", - "default": 1000, - "minimum": 1, - "type": "integer" - } + "/psps/{pspId}/published" : { + "get" : { + "tags" : [ "PSP" ], + "summary" : "Get all fdr published", + "description" : "Get all fdr published", + "operationId" : "getAllPublishedByPsp", + "parameters" : [ { + "name" : "pspId", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" } - ], - "responses": { - "500": { - "$ref": "#/components/responses/InternalServerError" - }, - "400": { - "$ref": "#/components/responses/AppException400" - }, - "404": { - "$ref": "#/components/responses/AppException404" - }, - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GetAllPublishedResponse" + }, { + "name" : "organizationId", + "in" : "query", + "schema" : { + "pattern" : "^(.{1,35})$", + "type" : "string" + } + }, { + "name" : "page", + "in" : "query", + "schema" : { + "format" : "int64", + "default" : 1, + "minimum" : 1, + "type" : "integer" + } + }, { + "name" : "publishedGt", + "in" : "query", + "schema" : { + "$ref" : "#/components/schemas/Instant" + } + }, { + "name" : "size", + "in" : "query", + "schema" : { + "format" : "int64", + "default" : 1000, + "minimum" : 1, + "type" : "integer" + } + } ], + "responses" : { + "500" : { + "$ref" : "#/components/responses/InternalServerError" + }, + "400" : { + "$ref" : "#/components/responses/AppException400" + }, + "404" : { + "$ref" : "#/components/responses/AppException404" + }, + "200" : { + "description" : "Success", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/GetAllPublishedResponse" } } } @@ -768,903 +685,812 @@ } } }, - "components": { - "schemas": { - "AddPaymentRequest": { - "required": [ - "payments" - ], - "type": "object", - "properties": { - "payments": { - "maxItems": 1000, - "minItems": 1, - "type": "array", - "items": { - "$ref": "#/components/schemas/Payment" + "components" : { + "schemas" : { + "AddPaymentRequest" : { + "required" : [ "payments" ], + "type" : "object", + "properties" : { + "payments" : { + "maxItems" : 1000, + "minItems" : 1, + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/Payment" } } } }, - "CreateRequest": { - "required": [ - "fdr", - "fdrDate", - "sender", - "receiver", - "regulation", - "regulationDate", - "totPayments", - "sumPayments" - ], - "type": "object", - "properties": { - "fdr": { - "description": "[XML NodoInviaFlussoRendicontazione]=[identificativoFlusso]", - "pattern": "[a-zA-Z0-9\\-_]{1,35}", - "type": "string", - "example": "2016-08-16pspTest-1178" - }, - "fdrDate": { - "description": "[XML NodoInviaFlussoRendicontazione]=[dataOraFlusso]", - "type": "string", - "allOf": [ - { - "$ref": "#/components/schemas/Instant" - } - ], - "example": "2023-04-05T09:21:37.810000Z" - }, - "sender": { - "$ref": "#/components/schemas/Sender" - }, - "receiver": { - "$ref": "#/components/schemas/Receiver" - }, - "regulation": { - "description": "[XML FlussoRiversamento]=[identificativoUnivocoRegolamento]", - "pattern": "^(.{1,35})$", - "type": "string", - "example": "SEPA - Bonifico xzy" - }, - "regulationDate": { - "description": "[XML FlussoRiversamento]=[dataRegolamento]", - "type": "string", - "allOf": [ - { - "$ref": "#/components/schemas/Instant" - } - ], - "example": "2023-04-03T12:00:30.900000Z" - }, - "bicCodePouringBank": { - "description": "[XML FlussoRiversamento]=[codiceBicBancaDiRiversamento]", - "pattern": "^(.{1,35})$", - "type": "string", - "example": "UNCRITMMXXX" - }, - "totPayments": { - "format": "int64", - "description": "[XML FlussoRiversamento]=[numeroTotalePagamenti]", - "minimum": 1, - "type": "integer", - "example": 1 - }, - "sumPayments": { - "format": "double", - "description": "[XML FlussoRiversamento]=[importoTotalePagamenti]", - "minimum": 0, - "exclusiveMinimum": true, - "pattern": "^\\d{1,2147483647}([.]\\d{1,2})?$", - "type": "number", - "example": 0.01 + "CreateRequest" : { + "required" : [ "fdr", "fdrDate", "sender", "receiver", "regulation", "regulationDate", "totPayments", "sumPayments" ], + "type" : "object", + "properties" : { + "fdr" : { + "description" : "[XML NodoInviaFlussoRendicontazione]=[identificativoFlusso]", + "pattern" : "[a-zA-Z0-9\\-_]{1,35}", + "type" : "string", + "example" : "2016-08-16pspTest-1178" + }, + "fdrDate" : { + "description" : "[XML NodoInviaFlussoRendicontazione]=[dataOraFlusso]", + "type" : "string", + "allOf" : [ { + "$ref" : "#/components/schemas/Instant" + } ], + "example" : "2023-04-05T09:21:37.810000Z" + }, + "sender" : { + "$ref" : "#/components/schemas/Sender" + }, + "receiver" : { + "$ref" : "#/components/schemas/Receiver" + }, + "regulation" : { + "description" : "[XML FlussoRiversamento]=[identificativoUnivocoRegolamento]", + "pattern" : "^(.{1,35})$", + "type" : "string", + "example" : "SEPA - Bonifico xzy" + }, + "regulationDate" : { + "description" : "[XML FlussoRiversamento]=[dataRegolamento]", + "type" : "string", + "allOf" : [ { + "$ref" : "#/components/schemas/Instant" + } ], + "example" : "2023-04-03T12:00:30.900000Z" + }, + "bicCodePouringBank" : { + "description" : "[XML FlussoRiversamento]=[codiceBicBancaDiRiversamento]", + "pattern" : "^(.{1,35})$", + "type" : "string", + "example" : "UNCRITMMXXX" + }, + "totPayments" : { + "format" : "int64", + "description" : "[XML FlussoRiversamento]=[numeroTotalePagamenti]", + "minimum" : 1, + "type" : "integer", + "example" : 1 + }, + "sumPayments" : { + "format" : "double", + "description" : "[XML FlussoRiversamento]=[importoTotalePagamenti]", + "minimum" : 0, + "exclusiveMinimum" : true, + "pattern" : "^\\d{1,2147483647}([.]\\d{1,2})?$", + "type" : "number", + "example" : 0.01 } } }, - "DeletePaymentRequest": { - "required": [ - "indexList" - ], - "type": "object", - "properties": { - "indexList": { - "maxItems": 1000, - "minItems": 1, - "type": "array", - "items": { - "format": "int64", - "type": "integer" + "DeletePaymentRequest" : { + "required" : [ "indexList" ], + "type" : "object", + "properties" : { + "indexList" : { + "maxItems" : 1000, + "minItems" : 1, + "type" : "array", + "items" : { + "format" : "int64", + "type" : "integer" } } } }, - "ErrorCode": { - "type": "object", - "properties": { - "code": { - "type": "string", - "example": "FDR-0500" - }, - "description": { - "type": "string", - "example": "An unexpected error has occurred. Please contact support." - }, - "statusCode": { - "format": "int32", - "type": "integer", - "example": 500 + "ErrorCode" : { + "type" : "object", + "properties" : { + "code" : { + "type" : "string", + "example" : "FDR-0500" + }, + "description" : { + "type" : "string", + "example" : "An unexpected error has occurred. Please contact support." + }, + "statusCode" : { + "format" : "int32", + "type" : "integer", + "example" : 500 } } }, - "ErrorMessage": { - "type": "object", - "properties": { - "path": { - "type": "string", - "example": "demo.test" - }, - "message": { - "type": "string", - "example": "An unexpected error has occurred. Please contact support." + "ErrorMessage" : { + "type" : "object", + "properties" : { + "path" : { + "type" : "string", + "example" : "demo.test" + }, + "message" : { + "type" : "string", + "example" : "An unexpected error has occurred. Please contact support." } } }, - "ErrorResponse": { - "type": "object", - "properties": { - "errorId": { - "type": "string", - "example": "50905466-1881-457b-b42f-fb7b2bfb1610" - }, - "httpStatusCode": { - "format": "int32", - "type": "integer", - "example": 500 - }, - "httpStatusDescription": { - "type": "string", - "example": "Internal Server Error" - }, - "appErrorCode": { - "type": "string", - "example": "FDR-500" - }, - "errors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ErrorMessage" + "ErrorResponse" : { + "type" : "object", + "properties" : { + "errorId" : { + "type" : "string", + "example" : "50905466-1881-457b-b42f-fb7b2bfb1610" + }, + "httpStatusCode" : { + "format" : "int32", + "type" : "integer", + "example" : 500 + }, + "httpStatusDescription" : { + "type" : "string", + "example" : "Internal Server Error" + }, + "appErrorCode" : { + "type" : "string", + "example" : "FDR-500" + }, + "errors" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/ErrorMessage" } } } }, - "Fdr": { - "type": "object", - "properties": { - "fdr": { - "type": "string", - "example": "AAABBB" - }, - "pspId": { - "type": "string", - "example": "1" - }, - "revision": { - "format": "int64", - "type": "integer", - "example": 1 - }, - "published": { - "type": "string", - "allOf": [ - { - "$ref": "#/components/schemas/Instant" - } - ], - "example": "2023-04-03T12:00:30.900000Z" + "Fdr" : { + "type" : "object", + "properties" : { + "fdr" : { + "type" : "string", + "example" : "AAABBB" + }, + "pspId" : { + "type" : "string", + "example" : "1" + }, + "revision" : { + "format" : "int64", + "type" : "integer", + "example" : 1 + }, + "published" : { + "type" : "string", + "allOf" : [ { + "$ref" : "#/components/schemas/Instant" + } ], + "example" : "2023-04-03T12:00:30.900000Z" } } }, - "FdrByPspIdIuvIurBase": { - "type": "object", - "properties": { - "pspId": { - "type": "string" + "FdrByPspIdIuvIurBase" : { + "type" : "object", + "properties" : { + "pspId" : { + "type" : "string" }, - "organizationId": { - "type": "string" + "organizationId" : { + "type" : "string" }, - "fdr": { - "type": "string" + "fdr" : { + "type" : "string" }, - "revision": { - "format": "int64", - "type": "integer" + "revision" : { + "format" : "int64", + "type" : "integer" }, - "created": { - "$ref": "#/components/schemas/Instant" + "created" : { + "$ref" : "#/components/schemas/Instant" } } }, - "FdrByPspIdIuvIurResponse": { - "type": "object", - "properties": { - "metadata": { - "$ref": "#/components/schemas/Metadata" - }, - "count": { - "format": "int64", - "type": "integer", - "example": 100 - }, - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/FdrByPspIdIuvIurBase" + "FdrByPspIdIuvIurResponse" : { + "type" : "object", + "properties" : { + "metadata" : { + "$ref" : "#/components/schemas/Metadata" + }, + "count" : { + "format" : "int64", + "type" : "integer", + "example" : 100 + }, + "data" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/FdrByPspIdIuvIurBase" } } } }, - "FdrInserted": { - "type": "object", - "properties": { - "fdr": { - "type": "string", - "example": "AAABBB" - }, - "organizationId": { - "type": "string", - "example": "1" - }, - "revision": { - "format": "int64", - "type": "integer", - "example": 1 - }, - "created": { - "type": "string", - "allOf": [ - { - "$ref": "#/components/schemas/Instant" - } - ], - "example": "2023-04-03T12:00:30.900000Z" + "FdrInserted" : { + "type" : "object", + "properties" : { + "fdr" : { + "type" : "string", + "example" : "AAABBB" + }, + "organizationId" : { + "type" : "string", + "example" : "1" + }, + "revision" : { + "format" : "int64", + "type" : "integer", + "example" : 1 + }, + "created" : { + "type" : "string", + "allOf" : [ { + "$ref" : "#/components/schemas/Instant" + } ], + "example" : "2023-04-03T12:00:30.900000Z" } } }, - "FdrPublished": { - "type": "object", - "properties": { - "fdr": { - "type": "string", - "example": "AAABBB" - }, - "organizationId": { - "type": "string", - "example": "1" - }, - "revision": { - "format": "int64", - "type": "integer", - "example": 1 - }, - "published": { - "type": "string", - "allOf": [ - { - "$ref": "#/components/schemas/Instant" - } - ], - "example": "2023-04-03T12:00:30.900000Z" + "FdrPublished" : { + "type" : "object", + "properties" : { + "fdr" : { + "type" : "string", + "example" : "AAABBB" + }, + "organizationId" : { + "type" : "string", + "example" : "1" + }, + "revision" : { + "format" : "int64", + "type" : "integer", + "example" : 1 + }, + "published" : { + "type" : "string", + "allOf" : [ { + "$ref" : "#/components/schemas/Instant" + } ], + "example" : "2023-04-03T12:00:30.900000Z" } } }, - "GenericResponse": { - "type": "object", - "properties": { - "message": { - "type": "string", - "example": "Success" + "GenericResponse" : { + "type" : "object", + "properties" : { + "message" : { + "type" : "string", + "example" : "Success" } } }, - "GetAllCreatedResponse": { - "type": "object", - "properties": { - "metadata": { - "$ref": "#/components/schemas/Metadata" - }, - "count": { - "format": "int64", - "type": "integer", - "example": 100 - }, - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/FdrInserted" + "GetAllCreatedResponse" : { + "type" : "object", + "properties" : { + "metadata" : { + "$ref" : "#/components/schemas/Metadata" + }, + "count" : { + "format" : "int64", + "type" : "integer", + "example" : 100 + }, + "data" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/FdrInserted" } } } }, - "GetAllPublishedResponse": { - "type": "object", - "properties": { - "metadata": { - "$ref": "#/components/schemas/Metadata" - }, - "count": { - "format": "int64", - "type": "integer", - "example": 100 - }, - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/FdrPublished" + "GetAllPublishedResponse" : { + "type" : "object", + "properties" : { + "metadata" : { + "$ref" : "#/components/schemas/Metadata" + }, + "count" : { + "format" : "int64", + "type" : "integer", + "example" : 100 + }, + "data" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/FdrPublished" } } } }, - "GetAllResponse": { - "type": "object", - "properties": { - "metadata": { - "$ref": "#/components/schemas/Metadata" - }, - "count": { - "format": "int64", - "type": "integer", - "example": 100 - }, - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Fdr" + "GetAllResponse" : { + "type" : "object", + "properties" : { + "metadata" : { + "$ref" : "#/components/schemas/Metadata" + }, + "count" : { + "format" : "int64", + "type" : "integer", + "example" : 100 + }, + "data" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/Fdr" } } } }, - "GetCreatedResponse": { - "type": "object", - "properties": { - "status": { - "type": "string", - "allOf": [ - { - "$ref": "#/components/schemas/ReportingFlowStatusEnum" - } - ], - "example": "CREATED" - }, - "revision": { - "format": "int64", - "type": "integer", - "example": 4 - }, - "created": { - "type": "string", - "allOf": [ - { - "$ref": "#/components/schemas/Instant" - } - ], - "example": "2023-04-03T12:00:30.900000Z" - }, - "updated": { - "type": "string", - "allOf": [ - { - "$ref": "#/components/schemas/Instant" - } - ], - "example": "2023-04-03T12:00:30.900000Z" - }, - "fdr": { - "type": "string", - "example": "2016-08-16pspTest-1178" - }, - "fdrDate": { - "type": "string", - "allOf": [ - { - "$ref": "#/components/schemas/Instant" - } - ], - "example": "2023-04-05T09:21:37.810000Z" - }, - "regulation": { - "type": "string", - "example": "SEPA - Bonifico xzy" - }, - "regulationDate": { - "type": "string", - "allOf": [ - { - "$ref": "#/components/schemas/Instant" - } - ], - "example": "2023-04-03T12:00:30.900000Z" - }, - "bicCodePouringBank": { - "type": "string", - "example": "UNCRITMMXXX" - }, - "sender": { - "$ref": "#/components/schemas/Sender" - }, - "receiver": { - "$ref": "#/components/schemas/Receiver" - }, - "computedTotPayments": { - "format": "int64", - "type": "integer", - "example": 100 - }, - "computedSumPayments": { - "format": "double", - "type": "number", - "example": 100.9 - }, - "totPayments": { - "format": "int64", - "type": "integer", - "example": 100 - }, - "sumPayments": { - "format": "double", - "type": "number", - "example": 100.9 + "GetCreatedResponse" : { + "type" : "object", + "properties" : { + "status" : { + "type" : "string", + "allOf" : [ { + "$ref" : "#/components/schemas/ReportingFlowStatusEnum" + } ], + "example" : "CREATED" + }, + "revision" : { + "format" : "int64", + "type" : "integer", + "example" : 4 + }, + "created" : { + "type" : "string", + "allOf" : [ { + "$ref" : "#/components/schemas/Instant" + } ], + "example" : "2023-04-03T12:00:30.900000Z" + }, + "updated" : { + "type" : "string", + "allOf" : [ { + "$ref" : "#/components/schemas/Instant" + } ], + "example" : "2023-04-03T12:00:30.900000Z" + }, + "fdr" : { + "type" : "string", + "example" : "2016-08-16pspTest-1178" + }, + "fdrDate" : { + "type" : "string", + "allOf" : [ { + "$ref" : "#/components/schemas/Instant" + } ], + "example" : "2023-04-05T09:21:37.810000Z" + }, + "regulation" : { + "type" : "string", + "example" : "SEPA - Bonifico xzy" + }, + "regulationDate" : { + "type" : "string", + "allOf" : [ { + "$ref" : "#/components/schemas/Instant" + } ], + "example" : "2023-04-03T12:00:30.900000Z" + }, + "bicCodePouringBank" : { + "type" : "string", + "example" : "UNCRITMMXXX" + }, + "sender" : { + "$ref" : "#/components/schemas/Sender" + }, + "receiver" : { + "$ref" : "#/components/schemas/Receiver" + }, + "computedTotPayments" : { + "format" : "int64", + "type" : "integer", + "example" : 100 + }, + "computedSumPayments" : { + "format" : "double", + "type" : "number", + "example" : 100.9 + }, + "totPayments" : { + "format" : "int64", + "type" : "integer", + "example" : 100 + }, + "sumPayments" : { + "format" : "double", + "type" : "number", + "example" : 100.9 } } }, - "GetPaymentResponse": { - "type": "object", - "properties": { - "metadata": { - "$ref": "#/components/schemas/Metadata" - }, - "count": { - "format": "int64", - "type": "integer", - "example": 100 - }, - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Payment" + "GetPaymentResponse" : { + "type" : "object", + "properties" : { + "metadata" : { + "$ref" : "#/components/schemas/Metadata" + }, + "count" : { + "format" : "int64", + "type" : "integer", + "example" : 100 + }, + "data" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/Payment" } } } }, - "GetResponse": { - "type": "object", - "properties": { - "status": { - "type": "string", - "allOf": [ - { - "$ref": "#/components/schemas/ReportingFlowStatusEnum" - } - ], - "example": "CREATED" - }, - "revision": { - "format": "int64", - "type": "integer", - "example": 4 - }, - "created": { - "type": "string", - "allOf": [ - { - "$ref": "#/components/schemas/Instant" - } - ], - "example": "2023-04-03T12:00:30.900000Z" - }, - "updated": { - "type": "string", - "allOf": [ - { - "$ref": "#/components/schemas/Instant" - } - ], - "example": "2023-04-03T12:00:30.900000Z" - }, - "fdr": { - "type": "string", - "example": "2016-08-16pspTest-1178" - }, - "fdrDate": { - "type": "string", - "allOf": [ - { - "$ref": "#/components/schemas/Instant" - } - ], - "example": "2023-04-05T09:21:37.810000Z" - }, - "regulation": { - "type": "string", - "example": "SEPA - Bonifico xzy" - }, - "regulationDate": { - "type": "string", - "allOf": [ - { - "$ref": "#/components/schemas/Instant" - } - ], - "example": "2023-04-03T12:00:30.900000Z" - }, - "bicCodePouringBank": { - "type": "string", - "example": "UNCRITMMXXX" - }, - "sender": { - "$ref": "#/components/schemas/Sender" - }, - "receiver": { - "$ref": "#/components/schemas/Receiver" - }, - "published": { - "type": "string", - "allOf": [ - { - "$ref": "#/components/schemas/Instant" - } - ], - "example": "2023-04-03T12:00:30.900000Z" - }, - "computedTotPayments": { - "format": "int64", - "type": "integer", - "example": 100 - }, - "computedSumPayments": { - "format": "double", - "type": "number", - "example": 100.9 - }, - "totPayments": { - "format": "int64", - "type": "integer", - "example": 100 - }, - "sumPayments": { - "format": "double", - "type": "number", - "example": 100.9 + "GetResponse" : { + "type" : "object", + "properties" : { + "status" : { + "type" : "string", + "allOf" : [ { + "$ref" : "#/components/schemas/ReportingFlowStatusEnum" + } ], + "example" : "CREATED" + }, + "revision" : { + "format" : "int64", + "type" : "integer", + "example" : 4 + }, + "created" : { + "type" : "string", + "allOf" : [ { + "$ref" : "#/components/schemas/Instant" + } ], + "example" : "2023-04-03T12:00:30.900000Z" + }, + "updated" : { + "type" : "string", + "allOf" : [ { + "$ref" : "#/components/schemas/Instant" + } ], + "example" : "2023-04-03T12:00:30.900000Z" + }, + "fdr" : { + "type" : "string", + "example" : "2016-08-16pspTest-1178" + }, + "fdrDate" : { + "type" : "string", + "allOf" : [ { + "$ref" : "#/components/schemas/Instant" + } ], + "example" : "2023-04-05T09:21:37.810000Z" + }, + "regulation" : { + "type" : "string", + "example" : "SEPA - Bonifico xzy" + }, + "regulationDate" : { + "type" : "string", + "allOf" : [ { + "$ref" : "#/components/schemas/Instant" + } ], + "example" : "2023-04-03T12:00:30.900000Z" + }, + "bicCodePouringBank" : { + "type" : "string", + "example" : "UNCRITMMXXX" + }, + "sender" : { + "$ref" : "#/components/schemas/Sender" + }, + "receiver" : { + "$ref" : "#/components/schemas/Receiver" + }, + "published" : { + "type" : "string", + "allOf" : [ { + "$ref" : "#/components/schemas/Instant" + } ], + "example" : "2023-04-03T12:00:30.900000Z" + }, + "computedTotPayments" : { + "format" : "int64", + "type" : "integer", + "example" : 100 + }, + "computedSumPayments" : { + "format" : "double", + "type" : "number", + "example" : 100.9 + }, + "totPayments" : { + "format" : "int64", + "type" : "integer", + "example" : 100 + }, + "sumPayments" : { + "format" : "double", + "type" : "number", + "example" : 100.9 } } }, - "InfoResponse": { - "type": "object", - "properties": { - "name": { - "type": "string", - "example": "pagopa-fdr" - }, - "version": { - "type": "string", - "example": "1.2.3" - }, - "environment": { - "type": "string", - "example": "dev" - }, - "description": { - "type": "string", - "example": "FDR - Flussi di rendicontazione" - }, - "errorCodes": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ErrorCode" + "InfoResponse" : { + "type" : "object", + "properties" : { + "name" : { + "type" : "string", + "example" : "pagopa-fdr" + }, + "version" : { + "type" : "string", + "example" : "1.2.3" + }, + "environment" : { + "type" : "string", + "example" : "dev" + }, + "description" : { + "type" : "string", + "example" : "FDR - Flussi di rendicontazione" + }, + "errorCodes" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/ErrorCode" } } } }, - "Instant": { - "format": "date-time", - "type": "string", - "example": "2022-03-10T16:15:50Z" + "Instant" : { + "format" : "date-time", + "type" : "string", + "example" : "2022-03-10T16:15:50Z" }, - "Metadata": { - "type": "object", - "properties": { - "pageSize": { - "format": "int32", - "type": "integer", - "example": 25 - }, - "pageNumber": { - "format": "int32", - "type": "integer", - "example": 1 - }, - "totPage": { - "format": "int32", - "type": "integer", - "example": 3 + "Metadata" : { + "type" : "object", + "properties" : { + "pageSize" : { + "format" : "int32", + "type" : "integer", + "example" : 25 + }, + "pageNumber" : { + "format" : "int32", + "type" : "integer", + "example" : 1 + }, + "totPage" : { + "format" : "int32", + "type" : "integer", + "example" : 3 } } }, - "Payment": { - "required": [ - "index", - "iuv", - "iur", - "idTransfer", - "pay", - "payStatus", - "payDate" - ], - "type": "object", - "properties": { - "index": { - "format": "int64", - "description": "Identificativo del pagamento univoco nel flusso", - "minimum": 1, - "type": "integer", - "example": 1 - }, - "iuv": { - "description": "[XML FlussoRiversamento]=[datiSingoliPagamenti.identificativoUnivocoVersamento]", - "pattern": "^(.{1,35})$", - "type": "string", - "example": "abcdefg" - }, - "iur": { - "description": "[XML FlussoRiversamento]=[datiSingoliPagamenti.identificativoUnivocoRiscossione]", - "pattern": "^(.{1,35})$", - "type": "string", - "example": "abcdefg" - }, - "idTransfer": { - "format": "int64", - "description": "[XML FlussoRiversamento]=[datiSingoliPagamenti.indiceDatiSingoloPagamento]", - "maximum": 5, - "minimum": 1, - "type": "integer", - "example": 1 - }, - "pay": { - "format": "double", - "description": "[XML FlussoRiversamento]=[datiSingoliPagamenti.singoloImportoPagato]", - "minimum": 0, - "exclusiveMinimum": true, - "pattern": "^\\d{1,2147483647}([.]\\d{1,2})?$", - "type": "number", - "example": 0.01 - }, - "payStatus": { - "description": "[XML FlussoRiversamento]=[datiSingoliPagamenti.codiceEsitoSingoloPagamento] \n0 -> EXECUTED\n3 -> REVOKED\n9 -> NO_RPT\n4 -> STAND_IN", - "type": "string", - "allOf": [ - { - "$ref": "#/components/schemas/PaymentStatusEnum" - } - ], - "example": "EXECUTED" - }, - "payDate": { - "description": "[XML FlussoRiversamento]=[datiSingoliPagamenti.dataEsitoSingoloPagamento]", - "type": "string", - "allOf": [ - { - "$ref": "#/components/schemas/Instant" - } - ], - "example": "2023-02-03T12:00:30.900000Z" + "Payment" : { + "required" : [ "index", "iuv", "iur", "idTransfer", "pay", "payStatus", "payDate" ], + "type" : "object", + "properties" : { + "index" : { + "format" : "int64", + "description" : "Identificativo del pagamento univoco nel flusso", + "minimum" : 1, + "type" : "integer", + "example" : 1 + }, + "iuv" : { + "description" : "[XML FlussoRiversamento]=[datiSingoliPagamenti.identificativoUnivocoVersamento]", + "pattern" : "^(.{1,35})$", + "type" : "string", + "example" : "abcdefg" + }, + "iur" : { + "description" : "[XML FlussoRiversamento]=[datiSingoliPagamenti.identificativoUnivocoRiscossione]", + "pattern" : "^(.{1,35})$", + "type" : "string", + "example" : "abcdefg" + }, + "idTransfer" : { + "format" : "int64", + "description" : "[XML FlussoRiversamento]=[datiSingoliPagamenti.indiceDatiSingoloPagamento]", + "maximum" : 5, + "minimum" : 1, + "type" : "integer", + "example" : 1 + }, + "pay" : { + "format" : "double", + "description" : "[XML FlussoRiversamento]=[datiSingoliPagamenti.singoloImportoPagato]", + "minimum" : 0, + "exclusiveMinimum" : true, + "pattern" : "^\\d{1,2147483647}([.]\\d{1,2})?$", + "type" : "number", + "example" : 0.01 + }, + "payStatus" : { + "description" : "[XML FlussoRiversamento]=[datiSingoliPagamenti.codiceEsitoSingoloPagamento] \n0 -> EXECUTED\n3 -> REVOKED\n9 -> NO_RPT\n4 -> STAND_IN\n8 -> STAND_IN_NO_RPT", + "type" : "string", + "allOf" : [ { + "$ref" : "#/components/schemas/PaymentStatusEnum" + } ], + "example" : "EXECUTED" + }, + "payDate" : { + "description" : "[XML FlussoRiversamento]=[datiSingoliPagamenti.dataEsitoSingoloPagamento]", + "type" : "string", + "allOf" : [ { + "$ref" : "#/components/schemas/Instant" + } ], + "example" : "2023-02-03T12:00:30.900000Z" } } }, - "PaymentStatusEnum": { - "enum": [ - "EXECUTED", - "REVOKED", - "NO_RPT", - "STAND_IN" - ], - "type": "string" + "PaymentStatusEnum" : { + "enum" : [ "EXECUTED", "REVOKED", "NO_RPT", "STAND_IN", "STAND_IN_NO_RPT" ], + "type" : "string" }, - "Receiver": { - "required": [ - "id", - "organizationId", - "organizationName" - ], - "type": "object", - "properties": { - "id": { - "description": "[XML FlussoRiversamento]=[istitutoRicevente.identificativoUnivocoRicevente.codiceIdentificativoUnivoco]", - "pattern": "^(.{1,35})$", - "type": "string", - "example": "APPBIT2B" - }, - "organizationId": { - "description": "[XML NodoInviaFlussoRendicontazione]=[identificativoDominio]", - "pattern": "^(.{1,35})$", - "type": "string", - "example": "20000000001" - }, - "organizationName": { - "description": "[XML FlussoRiversamento]=[istitutoRicevente.denominazioneRicevente]", - "pattern": "^(.{1,140})$", - "type": "string", - "example": "Comune di xyz" + "Receiver" : { + "required" : [ "id", "organizationId", "organizationName" ], + "type" : "object", + "properties" : { + "id" : { + "description" : "[XML FlussoRiversamento]=[istitutoRicevente.identificativoUnivocoRicevente.codiceIdentificativoUnivoco]", + "pattern" : "^(.{1,35})$", + "type" : "string", + "example" : "APPBIT2B" + }, + "organizationId" : { + "description" : "[XML NodoInviaFlussoRendicontazione]=[identificativoDominio]", + "pattern" : "^(.{1,35})$", + "type" : "string", + "example" : "20000000001" + }, + "organizationName" : { + "description" : "[XML FlussoRiversamento]=[istitutoRicevente.denominazioneRicevente]", + "pattern" : "^(.{1,140})$", + "type" : "string", + "example" : "Comune di xyz" } } }, - "ReportingFlowStatusEnum": { - "enum": [ - "CREATED", - "INSERTED", - "PUBLISHED" - ], - "type": "string" + "ReportingFlowStatusEnum" : { + "enum" : [ "CREATED", "INSERTED", "PUBLISHED" ], + "type" : "string" }, - "Sender": { - "required": [ - "type", - "id", - "pspId", - "pspName", - "pspBrokerId", - "channelId" - ], - "type": "object", - "properties": { - "type": { - "description": "[XML FlussoRiversamento]=[istitutoMittente.identificativoUnivocoMittente.tipoIdentificativoUnivoco] \nG -> LEGAL_PERSON\nA -> ABI_CODE\nB -> BIC_CODE", - "type": "string", - "allOf": [ - { - "$ref": "#/components/schemas/SenderTypeEnum" - } - ], - "example": "LEGAL_PERSON" - }, - "id": { - "description": "[XML FlussoRiversamento]=[istitutoMittente.identificativoUnivocoMittente.codiceIdentificativoUnivoco]", - "pattern": "^(.{1,35})$", - "type": "string", - "example": "SELBIT2B" - }, - "pspId": { - "description": "[XML NodoInviaFlussoRendicontazione]=[identificativoPSP]", - "pattern": "^(.{1,35})$", - "type": "string", - "example": "60000000001" - }, - "pspName": { - "description": "[XML FlussoRiversamento]=[istitutoMittente.denominazioneMittente]", - "pattern": "^(.{3,70})$", - "type": "string", - "example": "Bank" - }, - "pspBrokerId": { - "description": "[XML NodoInviaFlussoRendicontazione]=[identificativoIntermediarioPSP]", - "pattern": "^(.{1,35})$", - "type": "string", - "example": "70000000001" - }, - "channelId": { - "description": "[XML NodoInviaFlussoRendicontazione]=[identificativoCanale]", - "pattern": "^(.{1,35})$", - "type": "string", - "example": "80000000001" - }, - "password": { - "description": "[XML NodoInviaFlussoRendicontazione]=[password]", - "pattern": "^(\\w{8,15})$", - "type": "string", - "example": "1234567890", - "deprecated": true + "Sender" : { + "required" : [ "type", "id", "pspId", "pspName", "pspBrokerId", "channelId" ], + "type" : "object", + "properties" : { + "type" : { + "description" : "[XML FlussoRiversamento]=[istitutoMittente.identificativoUnivocoMittente.tipoIdentificativoUnivoco] \nG -> LEGAL_PERSON\nA -> ABI_CODE\nB -> BIC_CODE", + "type" : "string", + "allOf" : [ { + "$ref" : "#/components/schemas/SenderTypeEnum" + } ], + "example" : "LEGAL_PERSON" + }, + "id" : { + "description" : "[XML FlussoRiversamento]=[istitutoMittente.identificativoUnivocoMittente.codiceIdentificativoUnivoco]", + "pattern" : "^(.{1,35})$", + "type" : "string", + "example" : "SELBIT2B" + }, + "pspId" : { + "description" : "[XML NodoInviaFlussoRendicontazione]=[identificativoPSP]", + "pattern" : "^(.{1,35})$", + "type" : "string", + "example" : "60000000001" + }, + "pspName" : { + "description" : "[XML FlussoRiversamento]=[istitutoMittente.denominazioneMittente]", + "pattern" : "^(.{3,70})$", + "type" : "string", + "example" : "Bank" + }, + "pspBrokerId" : { + "description" : "[XML NodoInviaFlussoRendicontazione]=[identificativoIntermediarioPSP]", + "pattern" : "^(.{1,35})$", + "type" : "string", + "example" : "70000000001" + }, + "channelId" : { + "description" : "[XML NodoInviaFlussoRendicontazione]=[identificativoCanale]", + "pattern" : "^(.{1,35})$", + "type" : "string", + "example" : "80000000001" + }, + "password" : { + "description" : "[XML NodoInviaFlussoRendicontazione]=[password]", + "pattern" : "^(\\w{8,15})$", + "type" : "string", + "example" : "1234567890", + "deprecated" : true } } }, - "SenderTypeEnum": { - "enum": [ - "LEGAL_PERSON", - "ABI_CODE", - "BIC_CODE" - ], - "type": "string" + "SenderTypeEnum" : { + "enum" : [ "LEGAL_PERSON", "ABI_CODE", "BIC_CODE" ], + "type" : "string" } }, - "responses": { - "AppException400": { - "description": "Default app exception for status 400", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "responses" : { + "AppException400" : { + "description" : "Default app exception for status 400", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ErrorResponse" }, - "examples": { - "Error": { - "value": { - "httpStatusCode": 400, - "httpStatusDescription": "Bad Request", - "appErrorCode": "FDR-0702", - "errors": [ - { - "message": "Reporting Fdr [] is invalid" - } - ] + "examples" : { + "Error" : { + "value" : { + "httpStatusCode" : 400, + "httpStatusDescription" : "Bad Request", + "appErrorCode" : "FDR-0702", + "errors" : [ { + "message" : "Reporting Fdr [] is invalid" + } ] } }, - "Errors with path": { - "value": { - "httpStatusCode": 400, - "httpStatusDescription": "Bad Request", - "appErrorCode": "FDR-0702", - "errors": [ - { - "path": "", - "message": "" - } - ] + "Errors with path" : { + "value" : { + "httpStatusCode" : 400, + "httpStatusDescription" : "Bad Request", + "appErrorCode" : "FDR-0702", + "errors" : [ { + "path" : "", + "message" : "" + } ] } } } } } }, - "AppException404": { - "description": "Default app exception for status 404", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "AppException404" : { + "description" : "Default app exception for status 404", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ErrorResponse" }, - "example": { - "httpStatusCode": 404, - "httpStatusDescription": "Not Found", - "appErrorCode": "FDR-0701", - "errors": [ - { - "message": "Reporting Fdr [] not found" - } - ] + "example" : { + "httpStatusCode" : 404, + "httpStatusDescription" : "Not Found", + "appErrorCode" : "FDR-0701", + "errors" : [ { + "message" : "Reporting Fdr [] not found" + } ] } } } }, - "InternalServerError": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "InternalServerError" : { + "description" : "Internal Server Error", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ErrorResponse" }, - "example": { - "errorId": "50905466-1881-457b-b42f-fb7b2bfb1610", - "httpStatusCode": 500, - "httpStatusDescription": "Internal Server Error", - "appErrorCode": "FDR-0500", - "errors": [ - { - "message": "An unexpected error has occurred. Please contact support." - } - ] + "example" : { + "errorId" : "50905466-1881-457b-b42f-fb7b2bfb1610", + "httpStatusCode" : 500, + "httpStatusDescription" : "Internal Server Error", + "appErrorCode" : "FDR-0500", + "errors" : [ { + "message" : "An unexpected error has occurred. Please contact support." + } ] } } } } }, - "securitySchemes": { - "api_key": { - "type": "apiKey", - "name": "Ocp-Apim-Subscription-Key", - "in": "header" + "securitySchemes" : { + "api_key" : { + "type" : "apiKey", + "name" : "Ocp-Apim-Subscription-Key", + "in" : "header" }, - "SecurityScheme": { - "type": "http", - "description": "Authentication", - "scheme": "basic" + "SecurityScheme" : { + "type" : "http", + "description" : "Authentication", + "scheme" : "basic" } } } -} +} \ No newline at end of file From 4b8f54d0b31601333794e0b2ee9e191268d7dd00 Mon Sep 17 00:00:00 2001 From: pagopa-github-bot Date: Fri, 3 May 2024 07:09:35 +0000 Subject: [PATCH 3/5] Bump to version 1.0.16 [skip ci] --- helm/Chart.yaml | 4 +- helm/values-dev.yaml | 2 +- helm/values-uat.yaml | 2 +- openapi/openapi_internal.json | 3377 +++++++++++++++-------------- openapi/openapi_organization.json | 1979 +++++++++-------- openapi/openapi_psp.json | 2727 ++++++++++++----------- pom.xml | 2 +- 7 files changed, 4306 insertions(+), 3787 deletions(-) diff --git a/helm/Chart.yaml b/helm/Chart.yaml index c27bf173..7915f532 100644 --- a/helm/Chart.yaml +++ b/helm/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: pagopa-fdr-chart description: Flussi di rendicontazioni type: application -version: "1.18.0" -appVersion: "1.0.15" +version: "1.19.0" +appVersion: "1.0.16" dependencies: - name: microservice-chart version: 3.0.0 diff --git a/helm/values-dev.yaml b/helm/values-dev.yaml index c8e23c1d..a9dec74b 100644 --- a/helm/values-dev.yaml +++ b/helm/values-dev.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-fdr - tag: 1.0.15 + tag: 1.0.16 pullPolicy: Always readinessProbe: httpGet: diff --git a/helm/values-uat.yaml b/helm/values-uat.yaml index 0818b4a3..c86dee15 100644 --- a/helm/values-uat.yaml +++ b/helm/values-uat.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-fdr - tag: 1.0.15 + tag: 1.0.16 pullPolicy: Always readinessProbe: httpGet: diff --git a/openapi/openapi_internal.json b/openapi/openapi_internal.json index 916e623d..7c4ff84b 100644 --- a/openapi/openapi_internal.json +++ b/openapi/openapi_internal.json @@ -1,81 +1,98 @@ { - "openapi" : "3.0.3", - "info" : { - "title" : "FDR - Flussi di rendicontazione (local)", - "description" : "Manage FDR ( aka \"Flussi di Rendicontazione\" ) exchanged between PSP and EC", - "termsOfService" : "https://www.pagopa.gov.it/", - "version" : "0.0.0-SNAPSHOT" + "openapi": "3.0.3", + "info": { + "title": "FDR - Flussi di rendicontazione (local)", + "description": "Manage FDR ( aka \"Flussi di Rendicontazione\" ) exchanged between PSP and EC", + "termsOfService": "https://www.pagopa.gov.it/", + "version": "1.0.16" }, - "servers" : [ { - "url" : "http://localhost:8080/" - } ], - "security" : [ { - "api_key" : [ ] - } ], - "tags" : [ { - "name" : "Info", - "description" : "Info operations" - }, { - "name" : "Internal Organizations", - "description" : "Organizations operations" - }, { - "name" : "Internal PSP", - "description" : "PSP operations" - }, { - "name" : "Organizations", - "description" : "Organizations operations" - }, { - "name" : "PSP", - "description" : "PSP operations" - }, { - "name" : "Support", - "description" : "Support operations" - } ], - "paths" : { - "/internal/psps/{pspId}/created/fdrs/{fdr}/organizations/{organizationId}" : { - "get" : { - "tags" : [ "Internal PSP" ], - "summary" : "Get created fdr", - "description" : "Get created fdr", - "operationId" : "internalGetCreated", - "parameters" : [ { - "name" : "fdr", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - }, { - "name" : "organizationId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - }, { - "name" : "pspId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" + "servers": [ + { + "url": "http://localhost:8080/" + } + ], + "security": [ + { + "api_key": [] + } + ], + "tags": [ + { + "name": "Info", + "description": "Info operations" + }, + { + "name": "Internal Organizations", + "description": "Organizations operations" + }, + { + "name": "Internal PSP", + "description": "PSP operations" + }, + { + "name": "Organizations", + "description": "Organizations operations" + }, + { + "name": "PSP", + "description": "PSP operations" + }, + { + "name": "Support", + "description": "Support operations" + } + ], + "paths": { + "/internal/psps/{pspId}/created/fdrs/{fdr}/organizations/{organizationId}": { + "get": { + "tags": [ + "Internal PSP" + ], + "summary": "Get created fdr", + "description": "Get created fdr", + "operationId": "internalGetCreated", + "parameters": [ + { + "name": "fdr", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "organizationId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "pspId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } } - } ], - "responses" : { - "500" : { - "$ref" : "#/components/responses/InternalServerError" - }, - "400" : { - "$ref" : "#/components/responses/AppException400" - }, - "404" : { - "$ref" : "#/components/responses/AppException404" - }, - "200" : { - "description" : "Success", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/GetCreatedResponse" + ], + "responses": { + "500": { + "$ref": "#/components/responses/InternalServerError" + }, + "400": { + "$ref": "#/components/responses/AppException400" + }, + "404": { + "$ref": "#/components/responses/AppException404" + }, + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetCreatedResponse" } } } @@ -83,52 +100,57 @@ } } }, - "/internal/psps/{pspId}/fdrs/{fdr}/payments/add" : { - "put" : { - "tags" : [ "Internal PSP" ], - "summary" : "Add payments to fdr", - "description" : "Add payments to fdr", - "operationId" : "internalAddPayment", - "parameters" : [ { - "name" : "fdr", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - }, { - "name" : "pspId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" + "/internal/psps/{pspId}/fdrs/{fdr}/payments/add": { + "put": { + "tags": [ + "Internal PSP" + ], + "summary": "Add payments to fdr", + "description": "Add payments to fdr", + "operationId": "internalAddPayment", + "parameters": [ + { + "name": "fdr", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "pspId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } } - } ], - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/AddPaymentRequest" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AddPaymentRequest" } } } }, - "responses" : { - "500" : { - "$ref" : "#/components/responses/InternalServerError" - }, - "400" : { - "$ref" : "#/components/responses/AppException400" - }, - "404" : { - "$ref" : "#/components/responses/AppException404" - }, - "200" : { - "description" : "Success", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/GenericResponse" + "responses": { + "500": { + "$ref": "#/components/responses/InternalServerError" + }, + "400": { + "$ref": "#/components/responses/AppException400" + }, + "404": { + "$ref": "#/components/responses/AppException404" + }, + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GenericResponse" } } } @@ -136,58 +158,65 @@ } } }, - "/internal/psps/{pspId}/published/fdrs/{fdr}/revisions/{revision}/organizations/{organizationId}" : { - "get" : { - "tags" : [ "Internal PSP" ], - "summary" : "Get internal fdr Published", - "description" : "Get internal fdr Published", - "operationId" : "internalGetPublishedByPsp", - "parameters" : [ { - "name" : "fdr", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - }, { - "name" : "organizationId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - }, { - "name" : "pspId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - }, { - "name" : "revision", - "in" : "path", - "required" : true, - "schema" : { - "format" : "int64", - "type" : "integer" + "/internal/psps/{pspId}/published/fdrs/{fdr}/revisions/{revision}/organizations/{organizationId}": { + "get": { + "tags": [ + "Internal PSP" + ], + "summary": "Get internal fdr Published", + "description": "Get internal fdr Published", + "operationId": "internalGetPublishedByPsp", + "parameters": [ + { + "name": "fdr", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "organizationId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "pspId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "revision", + "in": "path", + "required": true, + "schema": { + "format": "int64", + "type": "integer" + } } - } ], - "responses" : { - "500" : { - "$ref" : "#/components/responses/InternalServerError" - }, - "400" : { - "$ref" : "#/components/responses/AppException400" - }, - "404" : { - "$ref" : "#/components/responses/AppException404" - }, - "200" : { - "description" : "Success", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/GetResponse" + ], + "responses": { + "500": { + "$ref": "#/components/responses/InternalServerError" + }, + "400": { + "$ref": "#/components/responses/AppException400" + }, + "404": { + "$ref": "#/components/responses/AppException404" + }, + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetResponse" } } } @@ -195,67 +224,75 @@ } } }, - "/internal/psps/{pspId}/published" : { - "get" : { - "tags" : [ "Internal PSP" ], - "summary" : "Get all internal fdr published", - "description" : "Get all internal fdr published", - "operationId" : "internalGetAllPublishedByPsp", - "parameters" : [ { - "name" : "pspId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - }, { - "name" : "organizationId", - "in" : "query", - "schema" : { - "pattern" : "^(.{1,35})$", - "type" : "string" - } - }, { - "name" : "page", - "in" : "query", - "schema" : { - "format" : "int64", - "default" : 1, - "minimum" : 1, - "type" : "integer" - } - }, { - "name" : "publishedGt", - "in" : "query", - "schema" : { - "$ref" : "#/components/schemas/Instant" - } - }, { - "name" : "size", - "in" : "query", - "schema" : { - "format" : "int64", - "default" : 1000, - "minimum" : 1, - "type" : "integer" + "/internal/psps/{pspId}/published": { + "get": { + "tags": [ + "Internal PSP" + ], + "summary": "Get all internal fdr published", + "description": "Get all internal fdr published", + "operationId": "internalGetAllPublishedByPsp", + "parameters": [ + { + "name": "pspId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "organizationId", + "in": "query", + "schema": { + "pattern": "^(.{1,35})$", + "type": "string" + } + }, + { + "name": "page", + "in": "query", + "schema": { + "format": "int64", + "default": 1, + "minimum": 1, + "type": "integer" + } + }, + { + "name": "publishedGt", + "in": "query", + "schema": { + "$ref": "#/components/schemas/Instant" + } + }, + { + "name": "size", + "in": "query", + "schema": { + "format": "int64", + "default": 1000, + "minimum": 1, + "type": "integer" + } } - } ], - "responses" : { - "500" : { - "$ref" : "#/components/responses/InternalServerError" - }, - "400" : { - "$ref" : "#/components/responses/AppException400" - }, - "404" : { - "$ref" : "#/components/responses/AppException404" - }, - "200" : { - "description" : "Success", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/GetAllPublishedResponse" + ], + "responses": { + "500": { + "$ref": "#/components/responses/InternalServerError" + }, + "400": { + "$ref": "#/components/responses/AppException400" + }, + "404": { + "$ref": "#/components/responses/AppException404" + }, + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetAllPublishedResponse" } } } @@ -263,68 +300,76 @@ } } }, - "/internal/psps/{pspId}/created/fdrs/{fdr}/organizations/{organizationId}/payments" : { - "get" : { - "tags" : [ "Internal PSP" ], - "summary" : "Get internal created payments of fdr", - "description" : "Get internal created payments of fdr", - "operationId" : "internalGetCreatedPayment", - "parameters" : [ { - "name" : "fdr", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - }, { - "name" : "organizationId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - }, { - "name" : "pspId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - }, { - "name" : "page", - "in" : "query", - "schema" : { - "format" : "int64", - "default" : 1, - "minimum" : 1, - "type" : "integer" - } - }, { - "name" : "size", - "in" : "query", - "schema" : { - "format" : "int64", - "default" : 1000, - "minimum" : 1, - "type" : "integer" + "/internal/psps/{pspId}/created/fdrs/{fdr}/organizations/{organizationId}/payments": { + "get": { + "tags": [ + "Internal PSP" + ], + "summary": "Get internal created payments of fdr", + "description": "Get internal created payments of fdr", + "operationId": "internalGetCreatedPayment", + "parameters": [ + { + "name": "fdr", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "organizationId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "pspId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "page", + "in": "query", + "schema": { + "format": "int64", + "default": 1, + "minimum": 1, + "type": "integer" + } + }, + { + "name": "size", + "in": "query", + "schema": { + "format": "int64", + "default": 1000, + "minimum": 1, + "type": "integer" + } } - } ], - "responses" : { - "500" : { - "$ref" : "#/components/responses/InternalServerError" - }, - "400" : { - "$ref" : "#/components/responses/AppException400" - }, - "404" : { - "$ref" : "#/components/responses/AppException404" - }, - "200" : { - "description" : "Success", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/GetPaymentResponse" + ], + "responses": { + "500": { + "$ref": "#/components/responses/InternalServerError" + }, + "400": { + "$ref": "#/components/responses/AppException400" + }, + "404": { + "$ref": "#/components/responses/AppException404" + }, + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetPaymentResponse" } } } @@ -332,68 +377,76 @@ } } }, - "/internal/organizations/{organizationId}/fdrs" : { - "get" : { - "tags" : [ "Internal Organizations" ], - "summary" : "Get all fdr published", - "description" : "Get all fdr published", - "operationId" : "internalGetAllPublished", - "parameters" : [ { - "name" : "organizationId", - "in" : "path", - "required" : true, - "schema" : { - "pattern" : "^(.{1,35})$", - "type" : "string" - } - }, { - "name" : "page", - "in" : "query", - "schema" : { - "format" : "int64", - "default" : 1, - "minimum" : 1, - "type" : "integer" - } - }, { - "name" : "pspId", - "in" : "query", - "schema" : { - "pattern" : "^(.{1,35})$", - "type" : "string" - } - }, { - "name" : "publishedGt", - "in" : "query", - "schema" : { - "$ref" : "#/components/schemas/Instant" - } - }, { - "name" : "size", - "in" : "query", - "schema" : { - "format" : "int64", - "default" : 1000, - "minimum" : 1, - "type" : "integer" + "/internal/organizations/{organizationId}/fdrs": { + "get": { + "tags": [ + "Internal Organizations" + ], + "summary": "Get all fdr published", + "description": "Get all fdr published", + "operationId": "internalGetAllPublished", + "parameters": [ + { + "name": "organizationId", + "in": "path", + "required": true, + "schema": { + "pattern": "^(.{1,35})$", + "type": "string" + } + }, + { + "name": "page", + "in": "query", + "schema": { + "format": "int64", + "default": 1, + "minimum": 1, + "type": "integer" + } + }, + { + "name": "pspId", + "in": "query", + "schema": { + "pattern": "^(.{1,35})$", + "type": "string" + } + }, + { + "name": "publishedGt", + "in": "query", + "schema": { + "$ref": "#/components/schemas/Instant" + } + }, + { + "name": "size", + "in": "query", + "schema": { + "format": "int64", + "default": 1000, + "minimum": 1, + "type": "integer" + } } - } ], - "responses" : { - "500" : { - "$ref" : "#/components/responses/InternalServerError" - }, - "400" : { - "$ref" : "#/components/responses/AppException400" - }, - "404" : { - "$ref" : "#/components/responses/AppException404" - }, - "200" : { - "description" : "Success", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/GetAllResponse" + ], + "responses": { + "500": { + "$ref": "#/components/responses/InternalServerError" + }, + "400": { + "$ref": "#/components/responses/AppException400" + }, + "404": { + "$ref": "#/components/responses/AppException404" + }, + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetAllResponse" } } } @@ -401,43 +454,48 @@ } } }, - "/internal/psps/{pspId}/fdrs/{fdr}/publish" : { - "post" : { - "tags" : [ "Internal PSP" ], - "summary" : "Publish fdr", - "description" : "Publish fdr", - "operationId" : "internalPublish", - "parameters" : [ { - "name" : "fdr", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - }, { - "name" : "pspId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" + "/internal/psps/{pspId}/fdrs/{fdr}/publish": { + "post": { + "tags": [ + "Internal PSP" + ], + "summary": "Publish fdr", + "description": "Publish fdr", + "operationId": "internalPublish", + "parameters": [ + { + "name": "fdr", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "pspId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } } - } ], - "responses" : { - "500" : { - "$ref" : "#/components/responses/InternalServerError" - }, - "400" : { - "$ref" : "#/components/responses/AppException400" - }, - "404" : { - "$ref" : "#/components/responses/AppException404" - }, - "200" : { - "description" : "Success", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/GenericResponse" + ], + "responses": { + "500": { + "$ref": "#/components/responses/InternalServerError" + }, + "400": { + "$ref": "#/components/responses/AppException400" + }, + "404": { + "$ref": "#/components/responses/AppException404" + }, + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GenericResponse" } } } @@ -445,75 +503,84 @@ } } }, - "/internal/psps/{pspId}/iuv/{iuv}" : { - "get" : { - "tags" : [ "Support" ], - "summary" : "Get all payments by psp id and iuv", - "description" : "Get all payments by psp id and iuv", - "operationId" : "getByIuv", - "parameters" : [ { - "name" : "iuv", - "in" : "path", - "required" : true, - "schema" : { - "pattern" : "^(.{1,35})$", - "type" : "string" - } - }, { - "name" : "pspId", - "in" : "path", - "required" : true, - "schema" : { - "pattern" : "^(.{1,35})$", - "type" : "string" - } - }, { - "name" : "createdFrom", - "in" : "query", - "schema" : { - "$ref" : "#/components/schemas/Instant" - } - }, { - "name" : "createdTo", - "in" : "query", - "schema" : { - "$ref" : "#/components/schemas/Instant" - } - }, { - "name" : "page", - "in" : "query", - "schema" : { - "format" : "int64", - "default" : 1, - "minimum" : 1, - "type" : "integer" - } - }, { - "name" : "size", - "in" : "query", - "schema" : { - "format" : "int64", - "default" : 1000, - "minimum" : 1, - "type" : "integer" + "/internal/psps/{pspId}/iuv/{iuv}": { + "get": { + "tags": [ + "Support" + ], + "summary": "Get all payments by psp id and iuv", + "description": "Get all payments by psp id and iuv", + "operationId": "getByIuv", + "parameters": [ + { + "name": "iuv", + "in": "path", + "required": true, + "schema": { + "pattern": "^(.{1,35})$", + "type": "string" + } + }, + { + "name": "pspId", + "in": "path", + "required": true, + "schema": { + "pattern": "^(.{1,35})$", + "type": "string" + } + }, + { + "name": "createdFrom", + "in": "query", + "schema": { + "$ref": "#/components/schemas/Instant" + } + }, + { + "name": "createdTo", + "in": "query", + "schema": { + "$ref": "#/components/schemas/Instant" + } + }, + { + "name": "page", + "in": "query", + "schema": { + "format": "int64", + "default": 1, + "minimum": 1, + "type": "integer" + } + }, + { + "name": "size", + "in": "query", + "schema": { + "format": "int64", + "default": 1000, + "minimum": 1, + "type": "integer" + } } - } ], - "responses" : { - "500" : { - "$ref" : "#/components/responses/InternalServerError" - }, - "400" : { - "$ref" : "#/components/responses/AppException400" - }, - "404" : { - "$ref" : "#/components/responses/AppException404" - }, - "200" : { - "description" : "Success", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/FdrByPspIdIuvIurResponse" + ], + "responses": { + "500": { + "$ref": "#/components/responses/InternalServerError" + }, + "400": { + "$ref": "#/components/responses/AppException400" + }, + "404": { + "$ref": "#/components/responses/AppException404" + }, + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FdrByPspIdIuvIurResponse" } } } @@ -521,59 +588,66 @@ } } }, - "/internal/organizations/{organizationId}/fdrs/{fdr}/revisions/{revision}/psps/{pspId}" : { - "get" : { - "tags" : [ "Internal Organizations" ], - "summary" : "Get fdr", - "description" : "Get fdr by id but not payments", - "operationId" : "internalGet", - "parameters" : [ { - "name" : "fdr", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - }, { - "name" : "organizationId", - "in" : "path", - "required" : true, - "schema" : { - "pattern" : "^(.{1,35})$", - "type" : "string" - } - }, { - "name" : "pspId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - }, { - "name" : "revision", - "in" : "path", - "required" : true, - "schema" : { - "format" : "int64", - "type" : "integer" + "/internal/organizations/{organizationId}/fdrs/{fdr}/revisions/{revision}/psps/{pspId}": { + "get": { + "tags": [ + "Internal Organizations" + ], + "summary": "Get fdr", + "description": "Get fdr by id but not payments", + "operationId": "internalGet", + "parameters": [ + { + "name": "fdr", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "organizationId", + "in": "path", + "required": true, + "schema": { + "pattern": "^(.{1,35})$", + "type": "string" + } + }, + { + "name": "pspId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "revision", + "in": "path", + "required": true, + "schema": { + "format": "int64", + "type": "integer" + } } - } ], - "responses" : { - "500" : { - "$ref" : "#/components/responses/InternalServerError" - }, - "400" : { - "$ref" : "#/components/responses/AppException400" - }, - "404" : { - "$ref" : "#/components/responses/AppException404" - }, - "200" : { - "description" : "Success", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/GetResponse" + ], + "responses": { + "500": { + "$ref": "#/components/responses/InternalServerError" + }, + "400": { + "$ref": "#/components/responses/AppException400" + }, + "404": { + "$ref": "#/components/responses/AppException404" + }, + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetResponse" } } } @@ -581,52 +655,57 @@ } } }, - "/internal/psps/{pspId}/fdrs/{fdr}/payments/del" : { - "put" : { - "tags" : [ "Internal PSP" ], - "summary" : "Delete payments to fdr", - "description" : "Delete payments to fdr", - "operationId" : "internalDeletePayment", - "parameters" : [ { - "name" : "fdr", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - }, { - "name" : "pspId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" + "/internal/psps/{pspId}/fdrs/{fdr}/payments/del": { + "put": { + "tags": [ + "Internal PSP" + ], + "summary": "Delete payments to fdr", + "description": "Delete payments to fdr", + "operationId": "internalDeletePayment", + "parameters": [ + { + "name": "fdr", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "pspId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } } - } ], - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/DeletePaymentRequest" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DeletePaymentRequest" } } } }, - "responses" : { - "500" : { - "$ref" : "#/components/responses/InternalServerError" - }, - "400" : { - "$ref" : "#/components/responses/AppException400" - }, - "404" : { - "$ref" : "#/components/responses/AppException404" - }, - "200" : { - "description" : "Success", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/GenericResponse" + "responses": { + "500": { + "$ref": "#/components/responses/InternalServerError" + }, + "400": { + "$ref": "#/components/responses/AppException400" + }, + "404": { + "$ref": "#/components/responses/AppException404" + }, + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GenericResponse" } } } @@ -634,95 +713,105 @@ } } }, - "/internal/psps/{pspId}/fdrs/{fdr}" : { - "post" : { - "tags" : [ "Internal PSP" ], - "summary" : "Create fdr", - "description" : "Create fdr", - "operationId" : "internalCreate", - "parameters" : [ { - "name" : "fdr", - "in" : "path", - "required" : true, - "schema" : { - "pattern" : "[a-zA-Z0-9\\-_]{1,35}", - "type" : "string" - } - }, { - "name" : "pspId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" + "/internal/psps/{pspId}/fdrs/{fdr}": { + "post": { + "tags": [ + "Internal PSP" + ], + "summary": "Create fdr", + "description": "Create fdr", + "operationId": "internalCreate", + "parameters": [ + { + "name": "fdr", + "in": "path", + "required": true, + "schema": { + "pattern": "[a-zA-Z0-9\\-_]{1,35}", + "type": "string" + } + }, + { + "name": "pspId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } } - } ], - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/CreateRequest" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateRequest" } } } }, - "responses" : { - "500" : { - "$ref" : "#/components/responses/InternalServerError" - }, - "400" : { - "$ref" : "#/components/responses/AppException400" - }, - "404" : { - "$ref" : "#/components/responses/AppException404" - }, - "201" : { - "description" : "Created", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/GenericResponse" + "responses": { + "500": { + "$ref": "#/components/responses/InternalServerError" + }, + "400": { + "$ref": "#/components/responses/AppException400" + }, + "404": { + "$ref": "#/components/responses/AppException404" + }, + "201": { + "description": "Created", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GenericResponse" } } } } } }, - "delete" : { - "tags" : [ "Internal PSP" ], - "summary" : "Delete fdr", - "description" : "Delete fdr", - "operationId" : "internalDelete", - "parameters" : [ { - "name" : "fdr", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - }, { - "name" : "pspId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" + "delete": { + "tags": [ + "Internal PSP" + ], + "summary": "Delete fdr", + "description": "Delete fdr", + "operationId": "internalDelete", + "parameters": [ + { + "name": "fdr", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "pspId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } } - } ], - "responses" : { - "500" : { - "$ref" : "#/components/responses/InternalServerError" - }, - "400" : { - "$ref" : "#/components/responses/AppException400" - }, - "404" : { - "$ref" : "#/components/responses/AppException404" - }, - "200" : { - "description" : "Success", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/GenericResponse" + ], + "responses": { + "500": { + "$ref": "#/components/responses/InternalServerError" + }, + "400": { + "$ref": "#/components/responses/AppException400" + }, + "404": { + "$ref": "#/components/responses/AppException404" + }, + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GenericResponse" } } } @@ -730,75 +819,84 @@ } } }, - "/internal/psps/{pspId}/iur/{iur}" : { - "get" : { - "tags" : [ "Support" ], - "summary" : "Get all payments by psp id and iur", - "description" : "Get all payments by psp id and iur", - "operationId" : "getByIur", - "parameters" : [ { - "name" : "iur", - "in" : "path", - "required" : true, - "schema" : { - "pattern" : "^(.{1,35})$", - "type" : "string" - } - }, { - "name" : "pspId", - "in" : "path", - "required" : true, - "schema" : { - "pattern" : "^(.{1,35})$", - "type" : "string" - } - }, { - "name" : "createdFrom", - "in" : "query", - "schema" : { - "$ref" : "#/components/schemas/Instant" - } - }, { - "name" : "createdTo", - "in" : "query", - "schema" : { - "$ref" : "#/components/schemas/Instant" - } - }, { - "name" : "page", - "in" : "query", - "schema" : { - "format" : "int64", - "default" : 1, - "minimum" : 1, - "type" : "integer" - } - }, { - "name" : "size", - "in" : "query", - "schema" : { - "format" : "int64", - "default" : 1000, - "minimum" : 1, - "type" : "integer" + "/internal/psps/{pspId}/iur/{iur}": { + "get": { + "tags": [ + "Support" + ], + "summary": "Get all payments by psp id and iur", + "description": "Get all payments by psp id and iur", + "operationId": "getByIur", + "parameters": [ + { + "name": "iur", + "in": "path", + "required": true, + "schema": { + "pattern": "^(.{1,35})$", + "type": "string" + } + }, + { + "name": "pspId", + "in": "path", + "required": true, + "schema": { + "pattern": "^(.{1,35})$", + "type": "string" + } + }, + { + "name": "createdFrom", + "in": "query", + "schema": { + "$ref": "#/components/schemas/Instant" + } + }, + { + "name": "createdTo", + "in": "query", + "schema": { + "$ref": "#/components/schemas/Instant" + } + }, + { + "name": "page", + "in": "query", + "schema": { + "format": "int64", + "default": 1, + "minimum": 1, + "type": "integer" + } + }, + { + "name": "size", + "in": "query", + "schema": { + "format": "int64", + "default": 1000, + "minimum": 1, + "type": "integer" + } } - } ], - "responses" : { - "500" : { - "$ref" : "#/components/responses/InternalServerError" - }, - "400" : { - "$ref" : "#/components/responses/AppException400" - }, - "404" : { - "$ref" : "#/components/responses/AppException404" - }, - "200" : { - "description" : "Success", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/FdrByPspIdIuvIurResponse" + ], + "responses": { + "500": { + "$ref": "#/components/responses/InternalServerError" + }, + "400": { + "$ref": "#/components/responses/AppException400" + }, + "404": { + "$ref": "#/components/responses/AppException404" + }, + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FdrByPspIdIuvIurResponse" } } } @@ -806,76 +904,85 @@ } } }, - "/internal/psps/{pspId}/published/fdrs/{fdr}/revisions/{revision}/organizations/{organizationId}/payments" : { - "get" : { - "tags" : [ "Internal PSP" ], - "summary" : "Get internal payments of fdr Published", - "description" : "Get internal payments of fdr Published", - "operationId" : "internalGetPaymentPublishedByPSp", - "parameters" : [ { - "name" : "fdr", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - }, { - "name" : "organizationId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - }, { - "name" : "pspId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - }, { - "name" : "revision", - "in" : "path", - "required" : true, - "schema" : { - "format" : "int64", - "type" : "integer" - } - }, { - "name" : "page", - "in" : "query", - "schema" : { - "format" : "int64", - "default" : 1, - "minimum" : 1, - "type" : "integer" - } - }, { - "name" : "size", - "in" : "query", - "schema" : { - "format" : "int64", - "default" : 1000, - "minimum" : 1, - "type" : "integer" + "/internal/psps/{pspId}/published/fdrs/{fdr}/revisions/{revision}/organizations/{organizationId}/payments": { + "get": { + "tags": [ + "Internal PSP" + ], + "summary": "Get internal payments of fdr Published", + "description": "Get internal payments of fdr Published", + "operationId": "internalGetPaymentPublishedByPSp", + "parameters": [ + { + "name": "fdr", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "organizationId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "pspId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "revision", + "in": "path", + "required": true, + "schema": { + "format": "int64", + "type": "integer" + } + }, + { + "name": "page", + "in": "query", + "schema": { + "format": "int64", + "default": 1, + "minimum": 1, + "type": "integer" + } + }, + { + "name": "size", + "in": "query", + "schema": { + "format": "int64", + "default": 1000, + "minimum": 1, + "type": "integer" + } } - } ], - "responses" : { - "500" : { - "$ref" : "#/components/responses/InternalServerError" - }, - "400" : { - "$ref" : "#/components/responses/AppException400" - }, - "404" : { - "$ref" : "#/components/responses/AppException404" - }, - "200" : { - "description" : "Success", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/GetPaymentResponse" + ], + "responses": { + "500": { + "$ref": "#/components/responses/InternalServerError" + }, + "400": { + "$ref": "#/components/responses/AppException400" + }, + "404": { + "$ref": "#/components/responses/AppException404" + }, + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetPaymentResponse" } } } @@ -883,77 +990,86 @@ } } }, - "/internal/organizations/{organizationId}/fdrs/{fdr}/revisions/{revision}/psps/{pspId}/payments" : { - "get" : { - "tags" : [ "Internal Organizations" ], - "summary" : "Get payments of fdr", - "description" : "Get payments of fdr", - "operationId" : "internalGetPayment", - "parameters" : [ { - "name" : "fdr", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - }, { - "name" : "organizationId", - "in" : "path", - "required" : true, - "schema" : { - "pattern" : "^(.{1,35})$", - "type" : "string" - } - }, { - "name" : "pspId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - }, { - "name" : "revision", - "in" : "path", - "required" : true, - "schema" : { - "format" : "int64", - "type" : "integer" - } - }, { - "name" : "page", - "in" : "query", - "schema" : { - "format" : "int64", - "default" : 1, - "minimum" : 1, - "type" : "integer" - } - }, { - "name" : "size", - "in" : "query", - "schema" : { - "format" : "int64", - "default" : 1000, - "minimum" : 1, - "type" : "integer" + "/internal/organizations/{organizationId}/fdrs/{fdr}/revisions/{revision}/psps/{pspId}/payments": { + "get": { + "tags": [ + "Internal Organizations" + ], + "summary": "Get payments of fdr", + "description": "Get payments of fdr", + "operationId": "internalGetPayment", + "parameters": [ + { + "name": "fdr", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "organizationId", + "in": "path", + "required": true, + "schema": { + "pattern": "^(.{1,35})$", + "type": "string" + } + }, + { + "name": "pspId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "revision", + "in": "path", + "required": true, + "schema": { + "format": "int64", + "type": "integer" + } + }, + { + "name": "page", + "in": "query", + "schema": { + "format": "int64", + "default": 1, + "minimum": 1, + "type": "integer" + } + }, + { + "name": "size", + "in": "query", + "schema": { + "format": "int64", + "default": 1000, + "minimum": 1, + "type": "integer" + } } - } ], - "responses" : { - "500" : { - "$ref" : "#/components/responses/InternalServerError" - }, - "400" : { - "$ref" : "#/components/responses/AppException400" - }, - "404" : { - "$ref" : "#/components/responses/AppException404" - }, - "200" : { - "description" : "Success", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/GetPaymentResponse" + ], + "responses": { + "500": { + "$ref": "#/components/responses/InternalServerError" + }, + "400": { + "$ref": "#/components/responses/AppException400" + }, + "404": { + "$ref": "#/components/responses/AppException404" + }, + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetPaymentResponse" } } } @@ -961,60 +1077,67 @@ } } }, - "/internal/psps/{pspId}/created" : { - "get" : { - "tags" : [ "Internal PSP" ], - "summary" : "Get all fdr inserted", - "description" : "Get all fdr inserted", - "operationId" : "internalGetAllCreated", - "parameters" : [ { - "name" : "pspId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - }, { - "name" : "createdGt", - "in" : "query", - "schema" : { - "$ref" : "#/components/schemas/Instant" - } - }, { - "name" : "page", - "in" : "query", - "schema" : { - "format" : "int64", - "default" : 1, - "minimum" : 1, - "type" : "integer" - } - }, { - "name" : "size", - "in" : "query", - "schema" : { - "format" : "int64", - "default" : 1000, - "minimum" : 1, - "type" : "integer" + "/internal/psps/{pspId}/created": { + "get": { + "tags": [ + "Internal PSP" + ], + "summary": "Get all fdr inserted", + "description": "Get all fdr inserted", + "operationId": "internalGetAllCreated", + "parameters": [ + { + "name": "pspId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "createdGt", + "in": "query", + "schema": { + "$ref": "#/components/schemas/Instant" + } + }, + { + "name": "page", + "in": "query", + "schema": { + "format": "int64", + "default": 1, + "minimum": 1, + "type": "integer" + } + }, + { + "name": "size", + "in": "query", + "schema": { + "format": "int64", + "default": 1000, + "minimum": 1, + "type": "integer" + } } - } ], - "responses" : { - "500" : { - "$ref" : "#/components/responses/InternalServerError" - }, - "400" : { - "$ref" : "#/components/responses/AppException400" - }, - "404" : { - "$ref" : "#/components/responses/AppException404" - }, - "200" : { - "description" : "Success", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/GetAllCreatedResponse" + ], + "responses": { + "500": { + "$ref": "#/components/responses/InternalServerError" + }, + "400": { + "$ref": "#/components/responses/AppException400" + }, + "404": { + "$ref": "#/components/responses/AppException404" + }, + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetAllCreatedResponse" } } } @@ -1023,812 +1146,904 @@ } } }, - "components" : { - "schemas" : { - "AddPaymentRequest" : { - "required" : [ "payments" ], - "type" : "object", - "properties" : { - "payments" : { - "maxItems" : 1000, - "minItems" : 1, - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/Payment" + "components": { + "schemas": { + "AddPaymentRequest": { + "required": [ + "payments" + ], + "type": "object", + "properties": { + "payments": { + "maxItems": 1000, + "minItems": 1, + "type": "array", + "items": { + "$ref": "#/components/schemas/Payment" } } } }, - "CreateRequest" : { - "required" : [ "fdr", "fdrDate", "sender", "receiver", "regulation", "regulationDate", "totPayments", "sumPayments" ], - "type" : "object", - "properties" : { - "fdr" : { - "description" : "[XML NodoInviaFlussoRendicontazione]=[identificativoFlusso]", - "pattern" : "[a-zA-Z0-9\\-_]{1,35}", - "type" : "string", - "example" : "2016-08-16pspTest-1178" - }, - "fdrDate" : { - "description" : "[XML NodoInviaFlussoRendicontazione]=[dataOraFlusso]", - "type" : "string", - "allOf" : [ { - "$ref" : "#/components/schemas/Instant" - } ], - "example" : "2023-04-05T09:21:37.810000Z" - }, - "sender" : { - "$ref" : "#/components/schemas/Sender" - }, - "receiver" : { - "$ref" : "#/components/schemas/Receiver" - }, - "regulation" : { - "description" : "[XML FlussoRiversamento]=[identificativoUnivocoRegolamento]", - "pattern" : "^(.{1,35})$", - "type" : "string", - "example" : "SEPA - Bonifico xzy" - }, - "regulationDate" : { - "description" : "[XML FlussoRiversamento]=[dataRegolamento]", - "type" : "string", - "allOf" : [ { - "$ref" : "#/components/schemas/Instant" - } ], - "example" : "2023-04-03T12:00:30.900000Z" - }, - "bicCodePouringBank" : { - "description" : "[XML FlussoRiversamento]=[codiceBicBancaDiRiversamento]", - "pattern" : "^(.{1,35})$", - "type" : "string", - "example" : "UNCRITMMXXX" - }, - "totPayments" : { - "format" : "int64", - "description" : "[XML FlussoRiversamento]=[numeroTotalePagamenti]", - "minimum" : 1, - "type" : "integer", - "example" : 1 - }, - "sumPayments" : { - "format" : "double", - "description" : "[XML FlussoRiversamento]=[importoTotalePagamenti]", - "minimum" : 0, - "exclusiveMinimum" : true, - "pattern" : "^\\d{1,2147483647}([.]\\d{1,2})?$", - "type" : "number", - "example" : 0.01 + "CreateRequest": { + "required": [ + "fdr", + "fdrDate", + "sender", + "receiver", + "regulation", + "regulationDate", + "totPayments", + "sumPayments" + ], + "type": "object", + "properties": { + "fdr": { + "description": "[XML NodoInviaFlussoRendicontazione]=[identificativoFlusso]", + "pattern": "[a-zA-Z0-9\\-_]{1,35}", + "type": "string", + "example": "2016-08-16pspTest-1178" + }, + "fdrDate": { + "description": "[XML NodoInviaFlussoRendicontazione]=[dataOraFlusso]", + "type": "string", + "allOf": [ + { + "$ref": "#/components/schemas/Instant" + } + ], + "example": "2023-04-05T09:21:37.810000Z" + }, + "sender": { + "$ref": "#/components/schemas/Sender" + }, + "receiver": { + "$ref": "#/components/schemas/Receiver" + }, + "regulation": { + "description": "[XML FlussoRiversamento]=[identificativoUnivocoRegolamento]", + "pattern": "^(.{1,35})$", + "type": "string", + "example": "SEPA - Bonifico xzy" + }, + "regulationDate": { + "description": "[XML FlussoRiversamento]=[dataRegolamento]", + "type": "string", + "allOf": [ + { + "$ref": "#/components/schemas/Instant" + } + ], + "example": "2023-04-03T12:00:30.900000Z" + }, + "bicCodePouringBank": { + "description": "[XML FlussoRiversamento]=[codiceBicBancaDiRiversamento]", + "pattern": "^(.{1,35})$", + "type": "string", + "example": "UNCRITMMXXX" + }, + "totPayments": { + "format": "int64", + "description": "[XML FlussoRiversamento]=[numeroTotalePagamenti]", + "minimum": 1, + "type": "integer", + "example": 1 + }, + "sumPayments": { + "format": "double", + "description": "[XML FlussoRiversamento]=[importoTotalePagamenti]", + "minimum": 0, + "exclusiveMinimum": true, + "pattern": "^\\d{1,2147483647}([.]\\d{1,2})?$", + "type": "number", + "example": 0.01 } } }, - "DeletePaymentRequest" : { - "required" : [ "indexList" ], - "type" : "object", - "properties" : { - "indexList" : { - "maxItems" : 1000, - "minItems" : 1, - "type" : "array", - "items" : { - "format" : "int64", - "type" : "integer" + "DeletePaymentRequest": { + "required": [ + "indexList" + ], + "type": "object", + "properties": { + "indexList": { + "maxItems": 1000, + "minItems": 1, + "type": "array", + "items": { + "format": "int64", + "type": "integer" } } } }, - "ErrorCode" : { - "type" : "object", - "properties" : { - "code" : { - "type" : "string", - "example" : "FDR-0500" - }, - "description" : { - "type" : "string", - "example" : "An unexpected error has occurred. Please contact support." - }, - "statusCode" : { - "format" : "int32", - "type" : "integer", - "example" : 500 + "ErrorCode": { + "type": "object", + "properties": { + "code": { + "type": "string", + "example": "FDR-0500" + }, + "description": { + "type": "string", + "example": "An unexpected error has occurred. Please contact support." + }, + "statusCode": { + "format": "int32", + "type": "integer", + "example": 500 } } }, - "ErrorMessage" : { - "type" : "object", - "properties" : { - "path" : { - "type" : "string", - "example" : "demo.test" - }, - "message" : { - "type" : "string", - "example" : "An unexpected error has occurred. Please contact support." + "ErrorMessage": { + "type": "object", + "properties": { + "path": { + "type": "string", + "example": "demo.test" + }, + "message": { + "type": "string", + "example": "An unexpected error has occurred. Please contact support." } } }, - "ErrorResponse" : { - "type" : "object", - "properties" : { - "errorId" : { - "type" : "string", - "example" : "50905466-1881-457b-b42f-fb7b2bfb1610" - }, - "httpStatusCode" : { - "format" : "int32", - "type" : "integer", - "example" : 500 - }, - "httpStatusDescription" : { - "type" : "string", - "example" : "Internal Server Error" - }, - "appErrorCode" : { - "type" : "string", - "example" : "FDR-500" - }, - "errors" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/ErrorMessage" + "ErrorResponse": { + "type": "object", + "properties": { + "errorId": { + "type": "string", + "example": "50905466-1881-457b-b42f-fb7b2bfb1610" + }, + "httpStatusCode": { + "format": "int32", + "type": "integer", + "example": 500 + }, + "httpStatusDescription": { + "type": "string", + "example": "Internal Server Error" + }, + "appErrorCode": { + "type": "string", + "example": "FDR-500" + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ErrorMessage" } } } }, - "Fdr" : { - "type" : "object", - "properties" : { - "fdr" : { - "type" : "string", - "example" : "AAABBB" - }, - "pspId" : { - "type" : "string", - "example" : "1" - }, - "revision" : { - "format" : "int64", - "type" : "integer", - "example" : 1 - }, - "published" : { - "type" : "string", - "allOf" : [ { - "$ref" : "#/components/schemas/Instant" - } ], - "example" : "2023-04-03T12:00:30.900000Z" + "Fdr": { + "type": "object", + "properties": { + "fdr": { + "type": "string", + "example": "AAABBB" + }, + "pspId": { + "type": "string", + "example": "1" + }, + "revision": { + "format": "int64", + "type": "integer", + "example": 1 + }, + "published": { + "type": "string", + "allOf": [ + { + "$ref": "#/components/schemas/Instant" + } + ], + "example": "2023-04-03T12:00:30.900000Z" } } }, - "FdrByPspIdIuvIurBase" : { - "type" : "object", - "properties" : { - "pspId" : { - "type" : "string" + "FdrByPspIdIuvIurBase": { + "type": "object", + "properties": { + "pspId": { + "type": "string" }, - "organizationId" : { - "type" : "string" + "organizationId": { + "type": "string" }, - "fdr" : { - "type" : "string" + "fdr": { + "type": "string" }, - "revision" : { - "format" : "int64", - "type" : "integer" + "revision": { + "format": "int64", + "type": "integer" }, - "created" : { - "$ref" : "#/components/schemas/Instant" + "created": { + "$ref": "#/components/schemas/Instant" } } }, - "FdrByPspIdIuvIurResponse" : { - "type" : "object", - "properties" : { - "metadata" : { - "$ref" : "#/components/schemas/Metadata" - }, - "count" : { - "format" : "int64", - "type" : "integer", - "example" : 100 - }, - "data" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/FdrByPspIdIuvIurBase" + "FdrByPspIdIuvIurResponse": { + "type": "object", + "properties": { + "metadata": { + "$ref": "#/components/schemas/Metadata" + }, + "count": { + "format": "int64", + "type": "integer", + "example": 100 + }, + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/FdrByPspIdIuvIurBase" } } } }, - "FdrInserted" : { - "type" : "object", - "properties" : { - "fdr" : { - "type" : "string", - "example" : "AAABBB" - }, - "organizationId" : { - "type" : "string", - "example" : "1" - }, - "revision" : { - "format" : "int64", - "type" : "integer", - "example" : 1 - }, - "created" : { - "type" : "string", - "allOf" : [ { - "$ref" : "#/components/schemas/Instant" - } ], - "example" : "2023-04-03T12:00:30.900000Z" + "FdrInserted": { + "type": "object", + "properties": { + "fdr": { + "type": "string", + "example": "AAABBB" + }, + "organizationId": { + "type": "string", + "example": "1" + }, + "revision": { + "format": "int64", + "type": "integer", + "example": 1 + }, + "created": { + "type": "string", + "allOf": [ + { + "$ref": "#/components/schemas/Instant" + } + ], + "example": "2023-04-03T12:00:30.900000Z" } } }, - "FdrPublished" : { - "type" : "object", - "properties" : { - "fdr" : { - "type" : "string", - "example" : "AAABBB" - }, - "organizationId" : { - "type" : "string", - "example" : "1" - }, - "revision" : { - "format" : "int64", - "type" : "integer", - "example" : 1 - }, - "published" : { - "type" : "string", - "allOf" : [ { - "$ref" : "#/components/schemas/Instant" - } ], - "example" : "2023-04-03T12:00:30.900000Z" + "FdrPublished": { + "type": "object", + "properties": { + "fdr": { + "type": "string", + "example": "AAABBB" + }, + "organizationId": { + "type": "string", + "example": "1" + }, + "revision": { + "format": "int64", + "type": "integer", + "example": 1 + }, + "published": { + "type": "string", + "allOf": [ + { + "$ref": "#/components/schemas/Instant" + } + ], + "example": "2023-04-03T12:00:30.900000Z" } } }, - "GenericResponse" : { - "type" : "object", - "properties" : { - "message" : { - "type" : "string", - "example" : "Success" + "GenericResponse": { + "type": "object", + "properties": { + "message": { + "type": "string", + "example": "Success" } } }, - "GetAllCreatedResponse" : { - "type" : "object", - "properties" : { - "metadata" : { - "$ref" : "#/components/schemas/Metadata" - }, - "count" : { - "format" : "int64", - "type" : "integer", - "example" : 100 - }, - "data" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/FdrInserted" + "GetAllCreatedResponse": { + "type": "object", + "properties": { + "metadata": { + "$ref": "#/components/schemas/Metadata" + }, + "count": { + "format": "int64", + "type": "integer", + "example": 100 + }, + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/FdrInserted" } } } }, - "GetAllPublishedResponse" : { - "type" : "object", - "properties" : { - "metadata" : { - "$ref" : "#/components/schemas/Metadata" - }, - "count" : { - "format" : "int64", - "type" : "integer", - "example" : 100 - }, - "data" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/FdrPublished" + "GetAllPublishedResponse": { + "type": "object", + "properties": { + "metadata": { + "$ref": "#/components/schemas/Metadata" + }, + "count": { + "format": "int64", + "type": "integer", + "example": 100 + }, + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/FdrPublished" } } } }, - "GetAllResponse" : { - "type" : "object", - "properties" : { - "metadata" : { - "$ref" : "#/components/schemas/Metadata" - }, - "count" : { - "format" : "int64", - "type" : "integer", - "example" : 100 - }, - "data" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/Fdr" + "GetAllResponse": { + "type": "object", + "properties": { + "metadata": { + "$ref": "#/components/schemas/Metadata" + }, + "count": { + "format": "int64", + "type": "integer", + "example": 100 + }, + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Fdr" } } } }, - "GetCreatedResponse" : { - "type" : "object", - "properties" : { - "status" : { - "type" : "string", - "allOf" : [ { - "$ref" : "#/components/schemas/ReportingFlowStatusEnum" - } ], - "example" : "CREATED" - }, - "revision" : { - "format" : "int64", - "type" : "integer", - "example" : 4 - }, - "created" : { - "type" : "string", - "allOf" : [ { - "$ref" : "#/components/schemas/Instant" - } ], - "example" : "2023-04-03T12:00:30.900000Z" - }, - "updated" : { - "type" : "string", - "allOf" : [ { - "$ref" : "#/components/schemas/Instant" - } ], - "example" : "2023-04-03T12:00:30.900000Z" - }, - "fdr" : { - "type" : "string", - "example" : "2016-08-16pspTest-1178" - }, - "fdrDate" : { - "type" : "string", - "allOf" : [ { - "$ref" : "#/components/schemas/Instant" - } ], - "example" : "2023-04-05T09:21:37.810000Z" - }, - "regulation" : { - "type" : "string", - "example" : "SEPA - Bonifico xzy" - }, - "regulationDate" : { - "type" : "string", - "allOf" : [ { - "$ref" : "#/components/schemas/Instant" - } ], - "example" : "2023-04-03T12:00:30.900000Z" - }, - "bicCodePouringBank" : { - "type" : "string", - "example" : "UNCRITMMXXX" - }, - "sender" : { - "$ref" : "#/components/schemas/Sender" - }, - "receiver" : { - "$ref" : "#/components/schemas/Receiver" - }, - "computedTotPayments" : { - "format" : "int64", - "type" : "integer", - "example" : 100 - }, - "computedSumPayments" : { - "format" : "double", - "type" : "number", - "example" : 100.9 - }, - "totPayments" : { - "format" : "int64", - "type" : "integer", - "example" : 100 - }, - "sumPayments" : { - "format" : "double", - "type" : "number", - "example" : 100.9 + "GetCreatedResponse": { + "type": "object", + "properties": { + "status": { + "type": "string", + "allOf": [ + { + "$ref": "#/components/schemas/ReportingFlowStatusEnum" + } + ], + "example": "CREATED" + }, + "revision": { + "format": "int64", + "type": "integer", + "example": 4 + }, + "created": { + "type": "string", + "allOf": [ + { + "$ref": "#/components/schemas/Instant" + } + ], + "example": "2023-04-03T12:00:30.900000Z" + }, + "updated": { + "type": "string", + "allOf": [ + { + "$ref": "#/components/schemas/Instant" + } + ], + "example": "2023-04-03T12:00:30.900000Z" + }, + "fdr": { + "type": "string", + "example": "2016-08-16pspTest-1178" + }, + "fdrDate": { + "type": "string", + "allOf": [ + { + "$ref": "#/components/schemas/Instant" + } + ], + "example": "2023-04-05T09:21:37.810000Z" + }, + "regulation": { + "type": "string", + "example": "SEPA - Bonifico xzy" + }, + "regulationDate": { + "type": "string", + "allOf": [ + { + "$ref": "#/components/schemas/Instant" + } + ], + "example": "2023-04-03T12:00:30.900000Z" + }, + "bicCodePouringBank": { + "type": "string", + "example": "UNCRITMMXXX" + }, + "sender": { + "$ref": "#/components/schemas/Sender" + }, + "receiver": { + "$ref": "#/components/schemas/Receiver" + }, + "computedTotPayments": { + "format": "int64", + "type": "integer", + "example": 100 + }, + "computedSumPayments": { + "format": "double", + "type": "number", + "example": 100.9 + }, + "totPayments": { + "format": "int64", + "type": "integer", + "example": 100 + }, + "sumPayments": { + "format": "double", + "type": "number", + "example": 100.9 } } }, - "GetPaymentResponse" : { - "type" : "object", - "properties" : { - "metadata" : { - "$ref" : "#/components/schemas/Metadata" - }, - "count" : { - "format" : "int64", - "type" : "integer", - "example" : 100 - }, - "data" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/Payment" + "GetPaymentResponse": { + "type": "object", + "properties": { + "metadata": { + "$ref": "#/components/schemas/Metadata" + }, + "count": { + "format": "int64", + "type": "integer", + "example": 100 + }, + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Payment" } } } }, - "GetResponse" : { - "type" : "object", - "properties" : { - "status" : { - "type" : "string", - "allOf" : [ { - "$ref" : "#/components/schemas/ReportingFlowStatusEnum" - } ], - "example" : "CREATED" - }, - "revision" : { - "format" : "int64", - "type" : "integer", - "example" : 4 - }, - "created" : { - "type" : "string", - "allOf" : [ { - "$ref" : "#/components/schemas/Instant" - } ], - "example" : "2023-04-03T12:00:30.900000Z" - }, - "updated" : { - "type" : "string", - "allOf" : [ { - "$ref" : "#/components/schemas/Instant" - } ], - "example" : "2023-04-03T12:00:30.900000Z" - }, - "fdr" : { - "type" : "string", - "example" : "2016-08-16pspTest-1178" - }, - "fdrDate" : { - "type" : "string", - "allOf" : [ { - "$ref" : "#/components/schemas/Instant" - } ], - "example" : "2023-04-05T09:21:37.810000Z" - }, - "regulation" : { - "type" : "string", - "example" : "SEPA - Bonifico xzy" - }, - "regulationDate" : { - "type" : "string", - "allOf" : [ { - "$ref" : "#/components/schemas/Instant" - } ], - "example" : "2023-04-03T12:00:30.900000Z" - }, - "bicCodePouringBank" : { - "type" : "string", - "example" : "UNCRITMMXXX" - }, - "sender" : { - "$ref" : "#/components/schemas/Sender" - }, - "receiver" : { - "$ref" : "#/components/schemas/Receiver" - }, - "published" : { - "type" : "string", - "allOf" : [ { - "$ref" : "#/components/schemas/Instant" - } ], - "example" : "2023-04-03T12:00:30.900000Z" - }, - "computedTotPayments" : { - "format" : "int64", - "type" : "integer", - "example" : 100 - }, - "computedSumPayments" : { - "format" : "double", - "type" : "number", - "example" : 100.9 - }, - "totPayments" : { - "format" : "int64", - "type" : "integer", - "example" : 100 - }, - "sumPayments" : { - "format" : "double", - "type" : "number", - "example" : 100.9 + "GetResponse": { + "type": "object", + "properties": { + "status": { + "type": "string", + "allOf": [ + { + "$ref": "#/components/schemas/ReportingFlowStatusEnum" + } + ], + "example": "CREATED" + }, + "revision": { + "format": "int64", + "type": "integer", + "example": 4 + }, + "created": { + "type": "string", + "allOf": [ + { + "$ref": "#/components/schemas/Instant" + } + ], + "example": "2023-04-03T12:00:30.900000Z" + }, + "updated": { + "type": "string", + "allOf": [ + { + "$ref": "#/components/schemas/Instant" + } + ], + "example": "2023-04-03T12:00:30.900000Z" + }, + "fdr": { + "type": "string", + "example": "2016-08-16pspTest-1178" + }, + "fdrDate": { + "type": "string", + "allOf": [ + { + "$ref": "#/components/schemas/Instant" + } + ], + "example": "2023-04-05T09:21:37.810000Z" + }, + "regulation": { + "type": "string", + "example": "SEPA - Bonifico xzy" + }, + "regulationDate": { + "type": "string", + "allOf": [ + { + "$ref": "#/components/schemas/Instant" + } + ], + "example": "2023-04-03T12:00:30.900000Z" + }, + "bicCodePouringBank": { + "type": "string", + "example": "UNCRITMMXXX" + }, + "sender": { + "$ref": "#/components/schemas/Sender" + }, + "receiver": { + "$ref": "#/components/schemas/Receiver" + }, + "published": { + "type": "string", + "allOf": [ + { + "$ref": "#/components/schemas/Instant" + } + ], + "example": "2023-04-03T12:00:30.900000Z" + }, + "computedTotPayments": { + "format": "int64", + "type": "integer", + "example": 100 + }, + "computedSumPayments": { + "format": "double", + "type": "number", + "example": 100.9 + }, + "totPayments": { + "format": "int64", + "type": "integer", + "example": 100 + }, + "sumPayments": { + "format": "double", + "type": "number", + "example": 100.9 } } }, - "InfoResponse" : { - "type" : "object", - "properties" : { - "name" : { - "type" : "string", - "example" : "pagopa-fdr" - }, - "version" : { - "type" : "string", - "example" : "1.2.3" - }, - "environment" : { - "type" : "string", - "example" : "dev" - }, - "description" : { - "type" : "string", - "example" : "FDR - Flussi di rendicontazione" - }, - "errorCodes" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/ErrorCode" + "InfoResponse": { + "type": "object", + "properties": { + "name": { + "type": "string", + "example": "pagopa-fdr" + }, + "version": { + "type": "string", + "example": "1.2.3" + }, + "environment": { + "type": "string", + "example": "dev" + }, + "description": { + "type": "string", + "example": "FDR - Flussi di rendicontazione" + }, + "errorCodes": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ErrorCode" } } } }, - "Instant" : { - "format" : "date-time", - "type" : "string", - "example" : "2022-03-10T16:15:50Z" + "Instant": { + "format": "date-time", + "type": "string", + "example": "2022-03-10T16:15:50Z" }, - "Metadata" : { - "type" : "object", - "properties" : { - "pageSize" : { - "format" : "int32", - "type" : "integer", - "example" : 25 - }, - "pageNumber" : { - "format" : "int32", - "type" : "integer", - "example" : 1 - }, - "totPage" : { - "format" : "int32", - "type" : "integer", - "example" : 3 + "Metadata": { + "type": "object", + "properties": { + "pageSize": { + "format": "int32", + "type": "integer", + "example": 25 + }, + "pageNumber": { + "format": "int32", + "type": "integer", + "example": 1 + }, + "totPage": { + "format": "int32", + "type": "integer", + "example": 3 } } }, - "Payment" : { - "required" : [ "index", "iuv", "iur", "idTransfer", "pay", "payStatus", "payDate" ], - "type" : "object", - "properties" : { - "index" : { - "format" : "int64", - "description" : "Identificativo del pagamento univoco nel flusso", - "minimum" : 1, - "type" : "integer", - "example" : 1 - }, - "iuv" : { - "description" : "[XML FlussoRiversamento]=[datiSingoliPagamenti.identificativoUnivocoVersamento]", - "pattern" : "^(.{1,35})$", - "type" : "string", - "example" : "abcdefg" - }, - "iur" : { - "description" : "[XML FlussoRiversamento]=[datiSingoliPagamenti.identificativoUnivocoRiscossione]", - "pattern" : "^(.{1,35})$", - "type" : "string", - "example" : "abcdefg" - }, - "idTransfer" : { - "format" : "int64", - "description" : "[XML FlussoRiversamento]=[datiSingoliPagamenti.indiceDatiSingoloPagamento]", - "maximum" : 5, - "minimum" : 1, - "type" : "integer", - "example" : 1 - }, - "pay" : { - "format" : "double", - "description" : "[XML FlussoRiversamento]=[datiSingoliPagamenti.singoloImportoPagato]", - "minimum" : 0, - "exclusiveMinimum" : true, - "pattern" : "^\\d{1,2147483647}([.]\\d{1,2})?$", - "type" : "number", - "example" : 0.01 - }, - "payStatus" : { - "description" : "[XML FlussoRiversamento]=[datiSingoliPagamenti.codiceEsitoSingoloPagamento] \n0 -> EXECUTED\n3 -> REVOKED\n9 -> NO_RPT\n4 -> STAND_IN\n8 -> STAND_IN_NO_RPT", - "type" : "string", - "allOf" : [ { - "$ref" : "#/components/schemas/PaymentStatusEnum" - } ], - "example" : "EXECUTED" - }, - "payDate" : { - "description" : "[XML FlussoRiversamento]=[datiSingoliPagamenti.dataEsitoSingoloPagamento]", - "type" : "string", - "allOf" : [ { - "$ref" : "#/components/schemas/Instant" - } ], - "example" : "2023-02-03T12:00:30.900000Z" + "Payment": { + "required": [ + "index", + "iuv", + "iur", + "idTransfer", + "pay", + "payStatus", + "payDate" + ], + "type": "object", + "properties": { + "index": { + "format": "int64", + "description": "Identificativo del pagamento univoco nel flusso", + "minimum": 1, + "type": "integer", + "example": 1 + }, + "iuv": { + "description": "[XML FlussoRiversamento]=[datiSingoliPagamenti.identificativoUnivocoVersamento]", + "pattern": "^(.{1,35})$", + "type": "string", + "example": "abcdefg" + }, + "iur": { + "description": "[XML FlussoRiversamento]=[datiSingoliPagamenti.identificativoUnivocoRiscossione]", + "pattern": "^(.{1,35})$", + "type": "string", + "example": "abcdefg" + }, + "idTransfer": { + "format": "int64", + "description": "[XML FlussoRiversamento]=[datiSingoliPagamenti.indiceDatiSingoloPagamento]", + "maximum": 5, + "minimum": 1, + "type": "integer", + "example": 1 + }, + "pay": { + "format": "double", + "description": "[XML FlussoRiversamento]=[datiSingoliPagamenti.singoloImportoPagato]", + "minimum": 0, + "exclusiveMinimum": true, + "pattern": "^\\d{1,2147483647}([.]\\d{1,2})?$", + "type": "number", + "example": 0.01 + }, + "payStatus": { + "description": "[XML FlussoRiversamento]=[datiSingoliPagamenti.codiceEsitoSingoloPagamento] \n0 -> EXECUTED\n3 -> REVOKED\n9 -> NO_RPT\n4 -> STAND_IN\n8 -> STAND_IN_NO_RPT", + "type": "string", + "allOf": [ + { + "$ref": "#/components/schemas/PaymentStatusEnum" + } + ], + "example": "EXECUTED" + }, + "payDate": { + "description": "[XML FlussoRiversamento]=[datiSingoliPagamenti.dataEsitoSingoloPagamento]", + "type": "string", + "allOf": [ + { + "$ref": "#/components/schemas/Instant" + } + ], + "example": "2023-02-03T12:00:30.900000Z" } } }, - "PaymentStatusEnum" : { - "enum" : [ "EXECUTED", "REVOKED", "NO_RPT", "STAND_IN", "STAND_IN_NO_RPT" ], - "type" : "string" + "PaymentStatusEnum": { + "enum": [ + "EXECUTED", + "REVOKED", + "NO_RPT", + "STAND_IN", + "STAND_IN_NO_RPT" + ], + "type": "string" }, - "Receiver" : { - "required" : [ "id", "organizationId", "organizationName" ], - "type" : "object", - "properties" : { - "id" : { - "description" : "[XML FlussoRiversamento]=[istitutoRicevente.identificativoUnivocoRicevente.codiceIdentificativoUnivoco]", - "pattern" : "^(.{1,35})$", - "type" : "string", - "example" : "APPBIT2B" - }, - "organizationId" : { - "description" : "[XML NodoInviaFlussoRendicontazione]=[identificativoDominio]", - "pattern" : "^(.{1,35})$", - "type" : "string", - "example" : "20000000001" - }, - "organizationName" : { - "description" : "[XML FlussoRiversamento]=[istitutoRicevente.denominazioneRicevente]", - "pattern" : "^(.{1,140})$", - "type" : "string", - "example" : "Comune di xyz" + "Receiver": { + "required": [ + "id", + "organizationId", + "organizationName" + ], + "type": "object", + "properties": { + "id": { + "description": "[XML FlussoRiversamento]=[istitutoRicevente.identificativoUnivocoRicevente.codiceIdentificativoUnivoco]", + "pattern": "^(.{1,35})$", + "type": "string", + "example": "APPBIT2B" + }, + "organizationId": { + "description": "[XML NodoInviaFlussoRendicontazione]=[identificativoDominio]", + "pattern": "^(.{1,35})$", + "type": "string", + "example": "20000000001" + }, + "organizationName": { + "description": "[XML FlussoRiversamento]=[istitutoRicevente.denominazioneRicevente]", + "pattern": "^(.{1,140})$", + "type": "string", + "example": "Comune di xyz" } } }, - "ReportingFlowStatusEnum" : { - "enum" : [ "CREATED", "INSERTED", "PUBLISHED" ], - "type" : "string" + "ReportingFlowStatusEnum": { + "enum": [ + "CREATED", + "INSERTED", + "PUBLISHED" + ], + "type": "string" }, - "Sender" : { - "required" : [ "type", "id", "pspId", "pspName", "pspBrokerId", "channelId" ], - "type" : "object", - "properties" : { - "type" : { - "description" : "[XML FlussoRiversamento]=[istitutoMittente.identificativoUnivocoMittente.tipoIdentificativoUnivoco] \nG -> LEGAL_PERSON\nA -> ABI_CODE\nB -> BIC_CODE", - "type" : "string", - "allOf" : [ { - "$ref" : "#/components/schemas/SenderTypeEnum" - } ], - "example" : "LEGAL_PERSON" - }, - "id" : { - "description" : "[XML FlussoRiversamento]=[istitutoMittente.identificativoUnivocoMittente.codiceIdentificativoUnivoco]", - "pattern" : "^(.{1,35})$", - "type" : "string", - "example" : "SELBIT2B" - }, - "pspId" : { - "description" : "[XML NodoInviaFlussoRendicontazione]=[identificativoPSP]", - "pattern" : "^(.{1,35})$", - "type" : "string", - "example" : "60000000001" - }, - "pspName" : { - "description" : "[XML FlussoRiversamento]=[istitutoMittente.denominazioneMittente]", - "pattern" : "^(.{3,70})$", - "type" : "string", - "example" : "Bank" - }, - "pspBrokerId" : { - "description" : "[XML NodoInviaFlussoRendicontazione]=[identificativoIntermediarioPSP]", - "pattern" : "^(.{1,35})$", - "type" : "string", - "example" : "70000000001" - }, - "channelId" : { - "description" : "[XML NodoInviaFlussoRendicontazione]=[identificativoCanale]", - "pattern" : "^(.{1,35})$", - "type" : "string", - "example" : "80000000001" - }, - "password" : { - "description" : "[XML NodoInviaFlussoRendicontazione]=[password]", - "pattern" : "^(\\w{8,15})$", - "type" : "string", - "example" : "1234567890", - "deprecated" : true + "Sender": { + "required": [ + "type", + "id", + "pspId", + "pspName", + "pspBrokerId", + "channelId" + ], + "type": "object", + "properties": { + "type": { + "description": "[XML FlussoRiversamento]=[istitutoMittente.identificativoUnivocoMittente.tipoIdentificativoUnivoco] \nG -> LEGAL_PERSON\nA -> ABI_CODE\nB -> BIC_CODE", + "type": "string", + "allOf": [ + { + "$ref": "#/components/schemas/SenderTypeEnum" + } + ], + "example": "LEGAL_PERSON" + }, + "id": { + "description": "[XML FlussoRiversamento]=[istitutoMittente.identificativoUnivocoMittente.codiceIdentificativoUnivoco]", + "pattern": "^(.{1,35})$", + "type": "string", + "example": "SELBIT2B" + }, + "pspId": { + "description": "[XML NodoInviaFlussoRendicontazione]=[identificativoPSP]", + "pattern": "^(.{1,35})$", + "type": "string", + "example": "60000000001" + }, + "pspName": { + "description": "[XML FlussoRiversamento]=[istitutoMittente.denominazioneMittente]", + "pattern": "^(.{3,70})$", + "type": "string", + "example": "Bank" + }, + "pspBrokerId": { + "description": "[XML NodoInviaFlussoRendicontazione]=[identificativoIntermediarioPSP]", + "pattern": "^(.{1,35})$", + "type": "string", + "example": "70000000001" + }, + "channelId": { + "description": "[XML NodoInviaFlussoRendicontazione]=[identificativoCanale]", + "pattern": "^(.{1,35})$", + "type": "string", + "example": "80000000001" + }, + "password": { + "description": "[XML NodoInviaFlussoRendicontazione]=[password]", + "pattern": "^(\\w{8,15})$", + "type": "string", + "example": "1234567890", + "deprecated": true } } }, - "SenderTypeEnum" : { - "enum" : [ "LEGAL_PERSON", "ABI_CODE", "BIC_CODE" ], - "type" : "string" + "SenderTypeEnum": { + "enum": [ + "LEGAL_PERSON", + "ABI_CODE", + "BIC_CODE" + ], + "type": "string" } }, - "responses" : { - "AppException400" : { - "description" : "Default app exception for status 400", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" + "responses": { + "AppException400": { + "description": "Default app exception for status 400", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" }, - "examples" : { - "Error" : { - "value" : { - "httpStatusCode" : 400, - "httpStatusDescription" : "Bad Request", - "appErrorCode" : "FDR-0702", - "errors" : [ { - "message" : "Reporting Fdr [] is invalid" - } ] + "examples": { + "Error": { + "value": { + "httpStatusCode": 400, + "httpStatusDescription": "Bad Request", + "appErrorCode": "FDR-0702", + "errors": [ + { + "message": "Reporting Fdr [] is invalid" + } + ] } }, - "Errors with path" : { - "value" : { - "httpStatusCode" : 400, - "httpStatusDescription" : "Bad Request", - "appErrorCode" : "FDR-0702", - "errors" : [ { - "path" : "", - "message" : "" - } ] + "Errors with path": { + "value": { + "httpStatusCode": 400, + "httpStatusDescription": "Bad Request", + "appErrorCode": "FDR-0702", + "errors": [ + { + "path": "", + "message": "" + } + ] } } } } } }, - "AppException404" : { - "description" : "Default app exception for status 404", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" + "AppException404": { + "description": "Default app exception for status 404", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" }, - "example" : { - "httpStatusCode" : 404, - "httpStatusDescription" : "Not Found", - "appErrorCode" : "FDR-0701", - "errors" : [ { - "message" : "Reporting Fdr [] not found" - } ] + "example": { + "httpStatusCode": 404, + "httpStatusDescription": "Not Found", + "appErrorCode": "FDR-0701", + "errors": [ + { + "message": "Reporting Fdr [] not found" + } + ] } } } }, - "InternalServerError" : { - "description" : "Internal Server Error", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" + "InternalServerError": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" }, - "example" : { - "errorId" : "50905466-1881-457b-b42f-fb7b2bfb1610", - "httpStatusCode" : 500, - "httpStatusDescription" : "Internal Server Error", - "appErrorCode" : "FDR-0500", - "errors" : [ { - "message" : "An unexpected error has occurred. Please contact support." - } ] + "example": { + "errorId": "50905466-1881-457b-b42f-fb7b2bfb1610", + "httpStatusCode": 500, + "httpStatusDescription": "Internal Server Error", + "appErrorCode": "FDR-0500", + "errors": [ + { + "message": "An unexpected error has occurred. Please contact support." + } + ] } } } } }, - "securitySchemes" : { - "api_key" : { - "type" : "apiKey", - "name" : "Ocp-Apim-Subscription-Key", - "in" : "header" + "securitySchemes": { + "api_key": { + "type": "apiKey", + "name": "Ocp-Apim-Subscription-Key", + "in": "header" }, - "SecurityScheme" : { - "type" : "http", - "description" : "Authentication", - "scheme" : "basic" + "SecurityScheme": { + "type": "http", + "description": "Authentication", + "scheme": "basic" } } } -} \ No newline at end of file +} diff --git a/openapi/openapi_organization.json b/openapi/openapi_organization.json index d10cb90a..435584eb 100644 --- a/openapi/openapi_organization.json +++ b/openapi/openapi_organization.json @@ -1,89 +1,107 @@ { - "openapi" : "3.0.3", - "info" : { - "title" : "FDR - Flussi di rendicontazione (local)", - "description" : "Manage FDR ( aka \"Flussi di Rendicontazione\" ) exchanged between PSP and EC", - "termsOfService" : "https://www.pagopa.gov.it/", - "version" : "0.0.0-SNAPSHOT" + "openapi": "3.0.3", + "info": { + "title": "FDR - Flussi di rendicontazione (local)", + "description": "Manage FDR ( aka \"Flussi di Rendicontazione\" ) exchanged between PSP and EC", + "termsOfService": "https://www.pagopa.gov.it/", + "version": "1.0.16" }, - "servers" : [ { - "url" : "http://localhost:8080/" - } ], - "security" : [ { - "api_key" : [ ] - } ], - "tags" : [ { - "name" : "Info", - "description" : "Info operations" - }, { - "name" : "Internal Organizations", - "description" : "Organizations operations" - }, { - "name" : "Internal PSP", - "description" : "PSP operations" - }, { - "name" : "Organizations", - "description" : "Organizations operations" - }, { - "name" : "PSP", - "description" : "PSP operations" - }, { - "name" : "Support", - "description" : "Support operations" - } ], - "paths" : { - "/organizations/{organizationId}/fdrs/{fdr}/revisions/{revision}/psps/{pspId}" : { - "get" : { - "tags" : [ "Organizations" ], - "summary" : "Get fdr", - "description" : "Get fdr", - "operationId" : "get", - "parameters" : [ { - "name" : "fdr", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - }, { - "name" : "organizationId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - }, { - "name" : "pspId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - }, { - "name" : "revision", - "in" : "path", - "required" : true, - "schema" : { - "format" : "int64", - "type" : "integer" + "servers": [ + { + "url": "http://localhost:8080/" + } + ], + "security": [ + { + "api_key": [] + } + ], + "tags": [ + { + "name": "Info", + "description": "Info operations" + }, + { + "name": "Internal Organizations", + "description": "Organizations operations" + }, + { + "name": "Internal PSP", + "description": "PSP operations" + }, + { + "name": "Organizations", + "description": "Organizations operations" + }, + { + "name": "PSP", + "description": "PSP operations" + }, + { + "name": "Support", + "description": "Support operations" + } + ], + "paths": { + "/organizations/{organizationId}/fdrs/{fdr}/revisions/{revision}/psps/{pspId}": { + "get": { + "tags": [ + "Organizations" + ], + "summary": "Get fdr", + "description": "Get fdr", + "operationId": "get", + "parameters": [ + { + "name": "fdr", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "organizationId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "pspId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "revision", + "in": "path", + "required": true, + "schema": { + "format": "int64", + "type": "integer" + } } - } ], - "responses" : { - "500" : { - "$ref" : "#/components/responses/InternalServerError" - }, - "400" : { - "$ref" : "#/components/responses/AppException400" - }, - "404" : { - "$ref" : "#/components/responses/AppException404" - }, - "200" : { - "description" : "Success", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/GetResponse" + ], + "responses": { + "500": { + "$ref": "#/components/responses/InternalServerError" + }, + "400": { + "$ref": "#/components/responses/AppException400" + }, + "404": { + "$ref": "#/components/responses/AppException404" + }, + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetResponse" } } } @@ -91,76 +109,85 @@ } } }, - "/organizations/{organizationId}/fdrs/{fdr}/revisions/{revision}/psps/{pspId}/payments" : { - "get" : { - "tags" : [ "Organizations" ], - "summary" : "Get payments of fdr", - "description" : "Get payments of fdr", - "operationId" : "getPayment", - "parameters" : [ { - "name" : "fdr", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - }, { - "name" : "organizationId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - }, { - "name" : "pspId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - }, { - "name" : "revision", - "in" : "path", - "required" : true, - "schema" : { - "format" : "int64", - "type" : "integer" - } - }, { - "name" : "page", - "in" : "query", - "schema" : { - "format" : "int64", - "default" : 1, - "minimum" : 1, - "type" : "integer" - } - }, { - "name" : "size", - "in" : "query", - "schema" : { - "format" : "int64", - "default" : 1000, - "minimum" : 1, - "type" : "integer" + "/organizations/{organizationId}/fdrs/{fdr}/revisions/{revision}/psps/{pspId}/payments": { + "get": { + "tags": [ + "Organizations" + ], + "summary": "Get payments of fdr", + "description": "Get payments of fdr", + "operationId": "getPayment", + "parameters": [ + { + "name": "fdr", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "organizationId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "pspId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "revision", + "in": "path", + "required": true, + "schema": { + "format": "int64", + "type": "integer" + } + }, + { + "name": "page", + "in": "query", + "schema": { + "format": "int64", + "default": 1, + "minimum": 1, + "type": "integer" + } + }, + { + "name": "size", + "in": "query", + "schema": { + "format": "int64", + "default": 1000, + "minimum": 1, + "type": "integer" + } } - } ], - "responses" : { - "500" : { - "$ref" : "#/components/responses/InternalServerError" - }, - "400" : { - "$ref" : "#/components/responses/AppException400" - }, - "404" : { - "$ref" : "#/components/responses/AppException404" - }, - "200" : { - "description" : "Success", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/GetPaymentResponse" + ], + "responses": { + "500": { + "$ref": "#/components/responses/InternalServerError" + }, + "400": { + "$ref": "#/components/responses/AppException400" + }, + "404": { + "$ref": "#/components/responses/AppException404" + }, + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetPaymentResponse" } } } @@ -168,20 +195,22 @@ } } }, - "/info" : { - "get" : { - "tags" : [ "Info" ], - "summary" : "Get info of FDR", - "responses" : { - "500" : { - "$ref" : "#/components/responses/InternalServerError" - }, - "200" : { - "description" : "Success", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/InfoResponse" + "/info": { + "get": { + "tags": [ + "Info" + ], + "summary": "Get info of FDR", + "responses": { + "500": { + "$ref": "#/components/responses/InternalServerError" + }, + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InfoResponse" } } } @@ -189,68 +218,76 @@ } } }, - "/organizations/{organizationId}/fdrs" : { - "get" : { - "tags" : [ "Organizations" ], - "summary" : "Get all fdr published", - "description" : "Get all fdr published", - "operationId" : "getAllPublished", - "parameters" : [ { - "name" : "organizationId", - "in" : "path", - "required" : true, - "schema" : { - "pattern" : "^(.{1,35})$", - "type" : "string" - } - }, { - "name" : "page", - "in" : "query", - "schema" : { - "format" : "int64", - "default" : 1, - "minimum" : 1, - "type" : "integer" - } - }, { - "name" : "pspId", - "in" : "query", - "schema" : { - "pattern" : "^(.{1,35})$", - "type" : "string" - } - }, { - "name" : "publishedGt", - "in" : "query", - "schema" : { - "$ref" : "#/components/schemas/Instant" - } - }, { - "name" : "size", - "in" : "query", - "schema" : { - "format" : "int64", - "default" : 1000, - "minimum" : 1, - "type" : "integer" + "/organizations/{organizationId}/fdrs": { + "get": { + "tags": [ + "Organizations" + ], + "summary": "Get all fdr published", + "description": "Get all fdr published", + "operationId": "getAllPublished", + "parameters": [ + { + "name": "organizationId", + "in": "path", + "required": true, + "schema": { + "pattern": "^(.{1,35})$", + "type": "string" + } + }, + { + "name": "page", + "in": "query", + "schema": { + "format": "int64", + "default": 1, + "minimum": 1, + "type": "integer" + } + }, + { + "name": "pspId", + "in": "query", + "schema": { + "pattern": "^(.{1,35})$", + "type": "string" + } + }, + { + "name": "publishedGt", + "in": "query", + "schema": { + "$ref": "#/components/schemas/Instant" + } + }, + { + "name": "size", + "in": "query", + "schema": { + "format": "int64", + "default": 1000, + "minimum": 1, + "type": "integer" + } } - } ], - "responses" : { - "500" : { - "$ref" : "#/components/responses/InternalServerError" - }, - "400" : { - "$ref" : "#/components/responses/AppException400" - }, - "404" : { - "$ref" : "#/components/responses/AppException404" - }, - "200" : { - "description" : "Success", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/GetAllResponse" + ], + "responses": { + "500": { + "$ref": "#/components/responses/InternalServerError" + }, + "400": { + "$ref": "#/components/responses/AppException400" + }, + "404": { + "$ref": "#/components/responses/AppException404" + }, + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetAllResponse" } } } @@ -259,812 +296,904 @@ } } }, - "components" : { - "schemas" : { - "AddPaymentRequest" : { - "required" : [ "payments" ], - "type" : "object", - "properties" : { - "payments" : { - "maxItems" : 1000, - "minItems" : 1, - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/Payment" + "components": { + "schemas": { + "AddPaymentRequest": { + "required": [ + "payments" + ], + "type": "object", + "properties": { + "payments": { + "maxItems": 1000, + "minItems": 1, + "type": "array", + "items": { + "$ref": "#/components/schemas/Payment" } } } }, - "CreateRequest" : { - "required" : [ "fdr", "fdrDate", "sender", "receiver", "regulation", "regulationDate", "totPayments", "sumPayments" ], - "type" : "object", - "properties" : { - "fdr" : { - "description" : "[XML NodoInviaFlussoRendicontazione]=[identificativoFlusso]", - "pattern" : "[a-zA-Z0-9\\-_]{1,35}", - "type" : "string", - "example" : "2016-08-16pspTest-1178" - }, - "fdrDate" : { - "description" : "[XML NodoInviaFlussoRendicontazione]=[dataOraFlusso]", - "type" : "string", - "allOf" : [ { - "$ref" : "#/components/schemas/Instant" - } ], - "example" : "2023-04-05T09:21:37.810000Z" - }, - "sender" : { - "$ref" : "#/components/schemas/Sender" - }, - "receiver" : { - "$ref" : "#/components/schemas/Receiver" - }, - "regulation" : { - "description" : "[XML FlussoRiversamento]=[identificativoUnivocoRegolamento]", - "pattern" : "^(.{1,35})$", - "type" : "string", - "example" : "SEPA - Bonifico xzy" - }, - "regulationDate" : { - "description" : "[XML FlussoRiversamento]=[dataRegolamento]", - "type" : "string", - "allOf" : [ { - "$ref" : "#/components/schemas/Instant" - } ], - "example" : "2023-04-03T12:00:30.900000Z" - }, - "bicCodePouringBank" : { - "description" : "[XML FlussoRiversamento]=[codiceBicBancaDiRiversamento]", - "pattern" : "^(.{1,35})$", - "type" : "string", - "example" : "UNCRITMMXXX" - }, - "totPayments" : { - "format" : "int64", - "description" : "[XML FlussoRiversamento]=[numeroTotalePagamenti]", - "minimum" : 1, - "type" : "integer", - "example" : 1 - }, - "sumPayments" : { - "format" : "double", - "description" : "[XML FlussoRiversamento]=[importoTotalePagamenti]", - "minimum" : 0, - "exclusiveMinimum" : true, - "pattern" : "^\\d{1,2147483647}([.]\\d{1,2})?$", - "type" : "number", - "example" : 0.01 + "CreateRequest": { + "required": [ + "fdr", + "fdrDate", + "sender", + "receiver", + "regulation", + "regulationDate", + "totPayments", + "sumPayments" + ], + "type": "object", + "properties": { + "fdr": { + "description": "[XML NodoInviaFlussoRendicontazione]=[identificativoFlusso]", + "pattern": "[a-zA-Z0-9\\-_]{1,35}", + "type": "string", + "example": "2016-08-16pspTest-1178" + }, + "fdrDate": { + "description": "[XML NodoInviaFlussoRendicontazione]=[dataOraFlusso]", + "type": "string", + "allOf": [ + { + "$ref": "#/components/schemas/Instant" + } + ], + "example": "2023-04-05T09:21:37.810000Z" + }, + "sender": { + "$ref": "#/components/schemas/Sender" + }, + "receiver": { + "$ref": "#/components/schemas/Receiver" + }, + "regulation": { + "description": "[XML FlussoRiversamento]=[identificativoUnivocoRegolamento]", + "pattern": "^(.{1,35})$", + "type": "string", + "example": "SEPA - Bonifico xzy" + }, + "regulationDate": { + "description": "[XML FlussoRiversamento]=[dataRegolamento]", + "type": "string", + "allOf": [ + { + "$ref": "#/components/schemas/Instant" + } + ], + "example": "2023-04-03T12:00:30.900000Z" + }, + "bicCodePouringBank": { + "description": "[XML FlussoRiversamento]=[codiceBicBancaDiRiversamento]", + "pattern": "^(.{1,35})$", + "type": "string", + "example": "UNCRITMMXXX" + }, + "totPayments": { + "format": "int64", + "description": "[XML FlussoRiversamento]=[numeroTotalePagamenti]", + "minimum": 1, + "type": "integer", + "example": 1 + }, + "sumPayments": { + "format": "double", + "description": "[XML FlussoRiversamento]=[importoTotalePagamenti]", + "minimum": 0, + "exclusiveMinimum": true, + "pattern": "^\\d{1,2147483647}([.]\\d{1,2})?$", + "type": "number", + "example": 0.01 } } }, - "DeletePaymentRequest" : { - "required" : [ "indexList" ], - "type" : "object", - "properties" : { - "indexList" : { - "maxItems" : 1000, - "minItems" : 1, - "type" : "array", - "items" : { - "format" : "int64", - "type" : "integer" + "DeletePaymentRequest": { + "required": [ + "indexList" + ], + "type": "object", + "properties": { + "indexList": { + "maxItems": 1000, + "minItems": 1, + "type": "array", + "items": { + "format": "int64", + "type": "integer" } } } }, - "ErrorCode" : { - "type" : "object", - "properties" : { - "code" : { - "type" : "string", - "example" : "FDR-0500" - }, - "description" : { - "type" : "string", - "example" : "An unexpected error has occurred. Please contact support." - }, - "statusCode" : { - "format" : "int32", - "type" : "integer", - "example" : 500 + "ErrorCode": { + "type": "object", + "properties": { + "code": { + "type": "string", + "example": "FDR-0500" + }, + "description": { + "type": "string", + "example": "An unexpected error has occurred. Please contact support." + }, + "statusCode": { + "format": "int32", + "type": "integer", + "example": 500 } } }, - "ErrorMessage" : { - "type" : "object", - "properties" : { - "path" : { - "type" : "string", - "example" : "demo.test" - }, - "message" : { - "type" : "string", - "example" : "An unexpected error has occurred. Please contact support." + "ErrorMessage": { + "type": "object", + "properties": { + "path": { + "type": "string", + "example": "demo.test" + }, + "message": { + "type": "string", + "example": "An unexpected error has occurred. Please contact support." } } }, - "ErrorResponse" : { - "type" : "object", - "properties" : { - "errorId" : { - "type" : "string", - "example" : "50905466-1881-457b-b42f-fb7b2bfb1610" - }, - "httpStatusCode" : { - "format" : "int32", - "type" : "integer", - "example" : 500 - }, - "httpStatusDescription" : { - "type" : "string", - "example" : "Internal Server Error" - }, - "appErrorCode" : { - "type" : "string", - "example" : "FDR-500" - }, - "errors" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/ErrorMessage" + "ErrorResponse": { + "type": "object", + "properties": { + "errorId": { + "type": "string", + "example": "50905466-1881-457b-b42f-fb7b2bfb1610" + }, + "httpStatusCode": { + "format": "int32", + "type": "integer", + "example": 500 + }, + "httpStatusDescription": { + "type": "string", + "example": "Internal Server Error" + }, + "appErrorCode": { + "type": "string", + "example": "FDR-500" + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ErrorMessage" } } } }, - "Fdr" : { - "type" : "object", - "properties" : { - "fdr" : { - "type" : "string", - "example" : "AAABBB" - }, - "pspId" : { - "type" : "string", - "example" : "1" - }, - "revision" : { - "format" : "int64", - "type" : "integer", - "example" : 1 - }, - "published" : { - "type" : "string", - "allOf" : [ { - "$ref" : "#/components/schemas/Instant" - } ], - "example" : "2023-04-03T12:00:30.900000Z" + "Fdr": { + "type": "object", + "properties": { + "fdr": { + "type": "string", + "example": "AAABBB" + }, + "pspId": { + "type": "string", + "example": "1" + }, + "revision": { + "format": "int64", + "type": "integer", + "example": 1 + }, + "published": { + "type": "string", + "allOf": [ + { + "$ref": "#/components/schemas/Instant" + } + ], + "example": "2023-04-03T12:00:30.900000Z" } } }, - "FdrByPspIdIuvIurBase" : { - "type" : "object", - "properties" : { - "pspId" : { - "type" : "string" + "FdrByPspIdIuvIurBase": { + "type": "object", + "properties": { + "pspId": { + "type": "string" }, - "organizationId" : { - "type" : "string" + "organizationId": { + "type": "string" }, - "fdr" : { - "type" : "string" + "fdr": { + "type": "string" }, - "revision" : { - "format" : "int64", - "type" : "integer" + "revision": { + "format": "int64", + "type": "integer" }, - "created" : { - "$ref" : "#/components/schemas/Instant" + "created": { + "$ref": "#/components/schemas/Instant" } } }, - "FdrByPspIdIuvIurResponse" : { - "type" : "object", - "properties" : { - "metadata" : { - "$ref" : "#/components/schemas/Metadata" - }, - "count" : { - "format" : "int64", - "type" : "integer", - "example" : 100 - }, - "data" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/FdrByPspIdIuvIurBase" + "FdrByPspIdIuvIurResponse": { + "type": "object", + "properties": { + "metadata": { + "$ref": "#/components/schemas/Metadata" + }, + "count": { + "format": "int64", + "type": "integer", + "example": 100 + }, + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/FdrByPspIdIuvIurBase" } } } }, - "FdrInserted" : { - "type" : "object", - "properties" : { - "fdr" : { - "type" : "string", - "example" : "AAABBB" - }, - "organizationId" : { - "type" : "string", - "example" : "1" - }, - "revision" : { - "format" : "int64", - "type" : "integer", - "example" : 1 - }, - "created" : { - "type" : "string", - "allOf" : [ { - "$ref" : "#/components/schemas/Instant" - } ], - "example" : "2023-04-03T12:00:30.900000Z" + "FdrInserted": { + "type": "object", + "properties": { + "fdr": { + "type": "string", + "example": "AAABBB" + }, + "organizationId": { + "type": "string", + "example": "1" + }, + "revision": { + "format": "int64", + "type": "integer", + "example": 1 + }, + "created": { + "type": "string", + "allOf": [ + { + "$ref": "#/components/schemas/Instant" + } + ], + "example": "2023-04-03T12:00:30.900000Z" } } }, - "FdrPublished" : { - "type" : "object", - "properties" : { - "fdr" : { - "type" : "string", - "example" : "AAABBB" - }, - "organizationId" : { - "type" : "string", - "example" : "1" - }, - "revision" : { - "format" : "int64", - "type" : "integer", - "example" : 1 - }, - "published" : { - "type" : "string", - "allOf" : [ { - "$ref" : "#/components/schemas/Instant" - } ], - "example" : "2023-04-03T12:00:30.900000Z" + "FdrPublished": { + "type": "object", + "properties": { + "fdr": { + "type": "string", + "example": "AAABBB" + }, + "organizationId": { + "type": "string", + "example": "1" + }, + "revision": { + "format": "int64", + "type": "integer", + "example": 1 + }, + "published": { + "type": "string", + "allOf": [ + { + "$ref": "#/components/schemas/Instant" + } + ], + "example": "2023-04-03T12:00:30.900000Z" } } }, - "GenericResponse" : { - "type" : "object", - "properties" : { - "message" : { - "type" : "string", - "example" : "Success" + "GenericResponse": { + "type": "object", + "properties": { + "message": { + "type": "string", + "example": "Success" } } }, - "GetAllCreatedResponse" : { - "type" : "object", - "properties" : { - "metadata" : { - "$ref" : "#/components/schemas/Metadata" - }, - "count" : { - "format" : "int64", - "type" : "integer", - "example" : 100 - }, - "data" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/FdrInserted" + "GetAllCreatedResponse": { + "type": "object", + "properties": { + "metadata": { + "$ref": "#/components/schemas/Metadata" + }, + "count": { + "format": "int64", + "type": "integer", + "example": 100 + }, + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/FdrInserted" } } } }, - "GetAllPublishedResponse" : { - "type" : "object", - "properties" : { - "metadata" : { - "$ref" : "#/components/schemas/Metadata" - }, - "count" : { - "format" : "int64", - "type" : "integer", - "example" : 100 - }, - "data" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/FdrPublished" + "GetAllPublishedResponse": { + "type": "object", + "properties": { + "metadata": { + "$ref": "#/components/schemas/Metadata" + }, + "count": { + "format": "int64", + "type": "integer", + "example": 100 + }, + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/FdrPublished" } } } }, - "GetAllResponse" : { - "type" : "object", - "properties" : { - "metadata" : { - "$ref" : "#/components/schemas/Metadata" - }, - "count" : { - "format" : "int64", - "type" : "integer", - "example" : 100 - }, - "data" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/Fdr" + "GetAllResponse": { + "type": "object", + "properties": { + "metadata": { + "$ref": "#/components/schemas/Metadata" + }, + "count": { + "format": "int64", + "type": "integer", + "example": 100 + }, + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Fdr" } } } }, - "GetCreatedResponse" : { - "type" : "object", - "properties" : { - "status" : { - "type" : "string", - "allOf" : [ { - "$ref" : "#/components/schemas/ReportingFlowStatusEnum" - } ], - "example" : "CREATED" - }, - "revision" : { - "format" : "int64", - "type" : "integer", - "example" : 4 - }, - "created" : { - "type" : "string", - "allOf" : [ { - "$ref" : "#/components/schemas/Instant" - } ], - "example" : "2023-04-03T12:00:30.900000Z" - }, - "updated" : { - "type" : "string", - "allOf" : [ { - "$ref" : "#/components/schemas/Instant" - } ], - "example" : "2023-04-03T12:00:30.900000Z" - }, - "fdr" : { - "type" : "string", - "example" : "2016-08-16pspTest-1178" - }, - "fdrDate" : { - "type" : "string", - "allOf" : [ { - "$ref" : "#/components/schemas/Instant" - } ], - "example" : "2023-04-05T09:21:37.810000Z" - }, - "regulation" : { - "type" : "string", - "example" : "SEPA - Bonifico xzy" - }, - "regulationDate" : { - "type" : "string", - "allOf" : [ { - "$ref" : "#/components/schemas/Instant" - } ], - "example" : "2023-04-03T12:00:30.900000Z" - }, - "bicCodePouringBank" : { - "type" : "string", - "example" : "UNCRITMMXXX" - }, - "sender" : { - "$ref" : "#/components/schemas/Sender" - }, - "receiver" : { - "$ref" : "#/components/schemas/Receiver" - }, - "computedTotPayments" : { - "format" : "int64", - "type" : "integer", - "example" : 100 - }, - "computedSumPayments" : { - "format" : "double", - "type" : "number", - "example" : 100.9 - }, - "totPayments" : { - "format" : "int64", - "type" : "integer", - "example" : 100 - }, - "sumPayments" : { - "format" : "double", - "type" : "number", - "example" : 100.9 + "GetCreatedResponse": { + "type": "object", + "properties": { + "status": { + "type": "string", + "allOf": [ + { + "$ref": "#/components/schemas/ReportingFlowStatusEnum" + } + ], + "example": "CREATED" + }, + "revision": { + "format": "int64", + "type": "integer", + "example": 4 + }, + "created": { + "type": "string", + "allOf": [ + { + "$ref": "#/components/schemas/Instant" + } + ], + "example": "2023-04-03T12:00:30.900000Z" + }, + "updated": { + "type": "string", + "allOf": [ + { + "$ref": "#/components/schemas/Instant" + } + ], + "example": "2023-04-03T12:00:30.900000Z" + }, + "fdr": { + "type": "string", + "example": "2016-08-16pspTest-1178" + }, + "fdrDate": { + "type": "string", + "allOf": [ + { + "$ref": "#/components/schemas/Instant" + } + ], + "example": "2023-04-05T09:21:37.810000Z" + }, + "regulation": { + "type": "string", + "example": "SEPA - Bonifico xzy" + }, + "regulationDate": { + "type": "string", + "allOf": [ + { + "$ref": "#/components/schemas/Instant" + } + ], + "example": "2023-04-03T12:00:30.900000Z" + }, + "bicCodePouringBank": { + "type": "string", + "example": "UNCRITMMXXX" + }, + "sender": { + "$ref": "#/components/schemas/Sender" + }, + "receiver": { + "$ref": "#/components/schemas/Receiver" + }, + "computedTotPayments": { + "format": "int64", + "type": "integer", + "example": 100 + }, + "computedSumPayments": { + "format": "double", + "type": "number", + "example": 100.9 + }, + "totPayments": { + "format": "int64", + "type": "integer", + "example": 100 + }, + "sumPayments": { + "format": "double", + "type": "number", + "example": 100.9 } } }, - "GetPaymentResponse" : { - "type" : "object", - "properties" : { - "metadata" : { - "$ref" : "#/components/schemas/Metadata" - }, - "count" : { - "format" : "int64", - "type" : "integer", - "example" : 100 - }, - "data" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/Payment" + "GetPaymentResponse": { + "type": "object", + "properties": { + "metadata": { + "$ref": "#/components/schemas/Metadata" + }, + "count": { + "format": "int64", + "type": "integer", + "example": 100 + }, + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Payment" } } } }, - "GetResponse" : { - "type" : "object", - "properties" : { - "status" : { - "type" : "string", - "allOf" : [ { - "$ref" : "#/components/schemas/ReportingFlowStatusEnum" - } ], - "example" : "CREATED" - }, - "revision" : { - "format" : "int64", - "type" : "integer", - "example" : 4 - }, - "created" : { - "type" : "string", - "allOf" : [ { - "$ref" : "#/components/schemas/Instant" - } ], - "example" : "2023-04-03T12:00:30.900000Z" - }, - "updated" : { - "type" : "string", - "allOf" : [ { - "$ref" : "#/components/schemas/Instant" - } ], - "example" : "2023-04-03T12:00:30.900000Z" - }, - "fdr" : { - "type" : "string", - "example" : "2016-08-16pspTest-1178" - }, - "fdrDate" : { - "type" : "string", - "allOf" : [ { - "$ref" : "#/components/schemas/Instant" - } ], - "example" : "2023-04-05T09:21:37.810000Z" - }, - "regulation" : { - "type" : "string", - "example" : "SEPA - Bonifico xzy" - }, - "regulationDate" : { - "type" : "string", - "allOf" : [ { - "$ref" : "#/components/schemas/Instant" - } ], - "example" : "2023-04-03T12:00:30.900000Z" - }, - "bicCodePouringBank" : { - "type" : "string", - "example" : "UNCRITMMXXX" - }, - "sender" : { - "$ref" : "#/components/schemas/Sender" - }, - "receiver" : { - "$ref" : "#/components/schemas/Receiver" - }, - "published" : { - "type" : "string", - "allOf" : [ { - "$ref" : "#/components/schemas/Instant" - } ], - "example" : "2023-04-03T12:00:30.900000Z" - }, - "computedTotPayments" : { - "format" : "int64", - "type" : "integer", - "example" : 100 - }, - "computedSumPayments" : { - "format" : "double", - "type" : "number", - "example" : 100.9 - }, - "totPayments" : { - "format" : "int64", - "type" : "integer", - "example" : 100 - }, - "sumPayments" : { - "format" : "double", - "type" : "number", - "example" : 100.9 + "GetResponse": { + "type": "object", + "properties": { + "status": { + "type": "string", + "allOf": [ + { + "$ref": "#/components/schemas/ReportingFlowStatusEnum" + } + ], + "example": "CREATED" + }, + "revision": { + "format": "int64", + "type": "integer", + "example": 4 + }, + "created": { + "type": "string", + "allOf": [ + { + "$ref": "#/components/schemas/Instant" + } + ], + "example": "2023-04-03T12:00:30.900000Z" + }, + "updated": { + "type": "string", + "allOf": [ + { + "$ref": "#/components/schemas/Instant" + } + ], + "example": "2023-04-03T12:00:30.900000Z" + }, + "fdr": { + "type": "string", + "example": "2016-08-16pspTest-1178" + }, + "fdrDate": { + "type": "string", + "allOf": [ + { + "$ref": "#/components/schemas/Instant" + } + ], + "example": "2023-04-05T09:21:37.810000Z" + }, + "regulation": { + "type": "string", + "example": "SEPA - Bonifico xzy" + }, + "regulationDate": { + "type": "string", + "allOf": [ + { + "$ref": "#/components/schemas/Instant" + } + ], + "example": "2023-04-03T12:00:30.900000Z" + }, + "bicCodePouringBank": { + "type": "string", + "example": "UNCRITMMXXX" + }, + "sender": { + "$ref": "#/components/schemas/Sender" + }, + "receiver": { + "$ref": "#/components/schemas/Receiver" + }, + "published": { + "type": "string", + "allOf": [ + { + "$ref": "#/components/schemas/Instant" + } + ], + "example": "2023-04-03T12:00:30.900000Z" + }, + "computedTotPayments": { + "format": "int64", + "type": "integer", + "example": 100 + }, + "computedSumPayments": { + "format": "double", + "type": "number", + "example": 100.9 + }, + "totPayments": { + "format": "int64", + "type": "integer", + "example": 100 + }, + "sumPayments": { + "format": "double", + "type": "number", + "example": 100.9 } } }, - "InfoResponse" : { - "type" : "object", - "properties" : { - "name" : { - "type" : "string", - "example" : "pagopa-fdr" - }, - "version" : { - "type" : "string", - "example" : "1.2.3" - }, - "environment" : { - "type" : "string", - "example" : "dev" - }, - "description" : { - "type" : "string", - "example" : "FDR - Flussi di rendicontazione" - }, - "errorCodes" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/ErrorCode" + "InfoResponse": { + "type": "object", + "properties": { + "name": { + "type": "string", + "example": "pagopa-fdr" + }, + "version": { + "type": "string", + "example": "1.2.3" + }, + "environment": { + "type": "string", + "example": "dev" + }, + "description": { + "type": "string", + "example": "FDR - Flussi di rendicontazione" + }, + "errorCodes": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ErrorCode" } } } }, - "Instant" : { - "format" : "date-time", - "type" : "string", - "example" : "2022-03-10T16:15:50Z" + "Instant": { + "format": "date-time", + "type": "string", + "example": "2022-03-10T16:15:50Z" }, - "Metadata" : { - "type" : "object", - "properties" : { - "pageSize" : { - "format" : "int32", - "type" : "integer", - "example" : 25 - }, - "pageNumber" : { - "format" : "int32", - "type" : "integer", - "example" : 1 - }, - "totPage" : { - "format" : "int32", - "type" : "integer", - "example" : 3 + "Metadata": { + "type": "object", + "properties": { + "pageSize": { + "format": "int32", + "type": "integer", + "example": 25 + }, + "pageNumber": { + "format": "int32", + "type": "integer", + "example": 1 + }, + "totPage": { + "format": "int32", + "type": "integer", + "example": 3 } } }, - "Payment" : { - "required" : [ "index", "iuv", "iur", "idTransfer", "pay", "payStatus", "payDate" ], - "type" : "object", - "properties" : { - "index" : { - "format" : "int64", - "description" : "Identificativo del pagamento univoco nel flusso", - "minimum" : 1, - "type" : "integer", - "example" : 1 - }, - "iuv" : { - "description" : "[XML FlussoRiversamento]=[datiSingoliPagamenti.identificativoUnivocoVersamento]", - "pattern" : "^(.{1,35})$", - "type" : "string", - "example" : "abcdefg" - }, - "iur" : { - "description" : "[XML FlussoRiversamento]=[datiSingoliPagamenti.identificativoUnivocoRiscossione]", - "pattern" : "^(.{1,35})$", - "type" : "string", - "example" : "abcdefg" - }, - "idTransfer" : { - "format" : "int64", - "description" : "[XML FlussoRiversamento]=[datiSingoliPagamenti.indiceDatiSingoloPagamento]", - "maximum" : 5, - "minimum" : 1, - "type" : "integer", - "example" : 1 - }, - "pay" : { - "format" : "double", - "description" : "[XML FlussoRiversamento]=[datiSingoliPagamenti.singoloImportoPagato]", - "minimum" : 0, - "exclusiveMinimum" : true, - "pattern" : "^\\d{1,2147483647}([.]\\d{1,2})?$", - "type" : "number", - "example" : 0.01 - }, - "payStatus" : { - "description" : "[XML FlussoRiversamento]=[datiSingoliPagamenti.codiceEsitoSingoloPagamento] \n0 -> EXECUTED\n3 -> REVOKED\n9 -> NO_RPT\n4 -> STAND_IN\n8 -> STAND_IN_NO_RPT", - "type" : "string", - "allOf" : [ { - "$ref" : "#/components/schemas/PaymentStatusEnum" - } ], - "example" : "EXECUTED" - }, - "payDate" : { - "description" : "[XML FlussoRiversamento]=[datiSingoliPagamenti.dataEsitoSingoloPagamento]", - "type" : "string", - "allOf" : [ { - "$ref" : "#/components/schemas/Instant" - } ], - "example" : "2023-02-03T12:00:30.900000Z" + "Payment": { + "required": [ + "index", + "iuv", + "iur", + "idTransfer", + "pay", + "payStatus", + "payDate" + ], + "type": "object", + "properties": { + "index": { + "format": "int64", + "description": "Identificativo del pagamento univoco nel flusso", + "minimum": 1, + "type": "integer", + "example": 1 + }, + "iuv": { + "description": "[XML FlussoRiversamento]=[datiSingoliPagamenti.identificativoUnivocoVersamento]", + "pattern": "^(.{1,35})$", + "type": "string", + "example": "abcdefg" + }, + "iur": { + "description": "[XML FlussoRiversamento]=[datiSingoliPagamenti.identificativoUnivocoRiscossione]", + "pattern": "^(.{1,35})$", + "type": "string", + "example": "abcdefg" + }, + "idTransfer": { + "format": "int64", + "description": "[XML FlussoRiversamento]=[datiSingoliPagamenti.indiceDatiSingoloPagamento]", + "maximum": 5, + "minimum": 1, + "type": "integer", + "example": 1 + }, + "pay": { + "format": "double", + "description": "[XML FlussoRiversamento]=[datiSingoliPagamenti.singoloImportoPagato]", + "minimum": 0, + "exclusiveMinimum": true, + "pattern": "^\\d{1,2147483647}([.]\\d{1,2})?$", + "type": "number", + "example": 0.01 + }, + "payStatus": { + "description": "[XML FlussoRiversamento]=[datiSingoliPagamenti.codiceEsitoSingoloPagamento] \n0 -> EXECUTED\n3 -> REVOKED\n9 -> NO_RPT\n4 -> STAND_IN\n8 -> STAND_IN_NO_RPT", + "type": "string", + "allOf": [ + { + "$ref": "#/components/schemas/PaymentStatusEnum" + } + ], + "example": "EXECUTED" + }, + "payDate": { + "description": "[XML FlussoRiversamento]=[datiSingoliPagamenti.dataEsitoSingoloPagamento]", + "type": "string", + "allOf": [ + { + "$ref": "#/components/schemas/Instant" + } + ], + "example": "2023-02-03T12:00:30.900000Z" } } }, - "PaymentStatusEnum" : { - "enum" : [ "EXECUTED", "REVOKED", "NO_RPT", "STAND_IN", "STAND_IN_NO_RPT" ], - "type" : "string" + "PaymentStatusEnum": { + "enum": [ + "EXECUTED", + "REVOKED", + "NO_RPT", + "STAND_IN", + "STAND_IN_NO_RPT" + ], + "type": "string" }, - "Receiver" : { - "required" : [ "id", "organizationId", "organizationName" ], - "type" : "object", - "properties" : { - "id" : { - "description" : "[XML FlussoRiversamento]=[istitutoRicevente.identificativoUnivocoRicevente.codiceIdentificativoUnivoco]", - "pattern" : "^(.{1,35})$", - "type" : "string", - "example" : "APPBIT2B" - }, - "organizationId" : { - "description" : "[XML NodoInviaFlussoRendicontazione]=[identificativoDominio]", - "pattern" : "^(.{1,35})$", - "type" : "string", - "example" : "20000000001" - }, - "organizationName" : { - "description" : "[XML FlussoRiversamento]=[istitutoRicevente.denominazioneRicevente]", - "pattern" : "^(.{1,140})$", - "type" : "string", - "example" : "Comune di xyz" + "Receiver": { + "required": [ + "id", + "organizationId", + "organizationName" + ], + "type": "object", + "properties": { + "id": { + "description": "[XML FlussoRiversamento]=[istitutoRicevente.identificativoUnivocoRicevente.codiceIdentificativoUnivoco]", + "pattern": "^(.{1,35})$", + "type": "string", + "example": "APPBIT2B" + }, + "organizationId": { + "description": "[XML NodoInviaFlussoRendicontazione]=[identificativoDominio]", + "pattern": "^(.{1,35})$", + "type": "string", + "example": "20000000001" + }, + "organizationName": { + "description": "[XML FlussoRiversamento]=[istitutoRicevente.denominazioneRicevente]", + "pattern": "^(.{1,140})$", + "type": "string", + "example": "Comune di xyz" } } }, - "ReportingFlowStatusEnum" : { - "enum" : [ "CREATED", "INSERTED", "PUBLISHED" ], - "type" : "string" + "ReportingFlowStatusEnum": { + "enum": [ + "CREATED", + "INSERTED", + "PUBLISHED" + ], + "type": "string" }, - "Sender" : { - "required" : [ "type", "id", "pspId", "pspName", "pspBrokerId", "channelId" ], - "type" : "object", - "properties" : { - "type" : { - "description" : "[XML FlussoRiversamento]=[istitutoMittente.identificativoUnivocoMittente.tipoIdentificativoUnivoco] \nG -> LEGAL_PERSON\nA -> ABI_CODE\nB -> BIC_CODE", - "type" : "string", - "allOf" : [ { - "$ref" : "#/components/schemas/SenderTypeEnum" - } ], - "example" : "LEGAL_PERSON" - }, - "id" : { - "description" : "[XML FlussoRiversamento]=[istitutoMittente.identificativoUnivocoMittente.codiceIdentificativoUnivoco]", - "pattern" : "^(.{1,35})$", - "type" : "string", - "example" : "SELBIT2B" - }, - "pspId" : { - "description" : "[XML NodoInviaFlussoRendicontazione]=[identificativoPSP]", - "pattern" : "^(.{1,35})$", - "type" : "string", - "example" : "60000000001" - }, - "pspName" : { - "description" : "[XML FlussoRiversamento]=[istitutoMittente.denominazioneMittente]", - "pattern" : "^(.{3,70})$", - "type" : "string", - "example" : "Bank" - }, - "pspBrokerId" : { - "description" : "[XML NodoInviaFlussoRendicontazione]=[identificativoIntermediarioPSP]", - "pattern" : "^(.{1,35})$", - "type" : "string", - "example" : "70000000001" - }, - "channelId" : { - "description" : "[XML NodoInviaFlussoRendicontazione]=[identificativoCanale]", - "pattern" : "^(.{1,35})$", - "type" : "string", - "example" : "80000000001" - }, - "password" : { - "description" : "[XML NodoInviaFlussoRendicontazione]=[password]", - "pattern" : "^(\\w{8,15})$", - "type" : "string", - "example" : "1234567890", - "deprecated" : true + "Sender": { + "required": [ + "type", + "id", + "pspId", + "pspName", + "pspBrokerId", + "channelId" + ], + "type": "object", + "properties": { + "type": { + "description": "[XML FlussoRiversamento]=[istitutoMittente.identificativoUnivocoMittente.tipoIdentificativoUnivoco] \nG -> LEGAL_PERSON\nA -> ABI_CODE\nB -> BIC_CODE", + "type": "string", + "allOf": [ + { + "$ref": "#/components/schemas/SenderTypeEnum" + } + ], + "example": "LEGAL_PERSON" + }, + "id": { + "description": "[XML FlussoRiversamento]=[istitutoMittente.identificativoUnivocoMittente.codiceIdentificativoUnivoco]", + "pattern": "^(.{1,35})$", + "type": "string", + "example": "SELBIT2B" + }, + "pspId": { + "description": "[XML NodoInviaFlussoRendicontazione]=[identificativoPSP]", + "pattern": "^(.{1,35})$", + "type": "string", + "example": "60000000001" + }, + "pspName": { + "description": "[XML FlussoRiversamento]=[istitutoMittente.denominazioneMittente]", + "pattern": "^(.{3,70})$", + "type": "string", + "example": "Bank" + }, + "pspBrokerId": { + "description": "[XML NodoInviaFlussoRendicontazione]=[identificativoIntermediarioPSP]", + "pattern": "^(.{1,35})$", + "type": "string", + "example": "70000000001" + }, + "channelId": { + "description": "[XML NodoInviaFlussoRendicontazione]=[identificativoCanale]", + "pattern": "^(.{1,35})$", + "type": "string", + "example": "80000000001" + }, + "password": { + "description": "[XML NodoInviaFlussoRendicontazione]=[password]", + "pattern": "^(\\w{8,15})$", + "type": "string", + "example": "1234567890", + "deprecated": true } } }, - "SenderTypeEnum" : { - "enum" : [ "LEGAL_PERSON", "ABI_CODE", "BIC_CODE" ], - "type" : "string" + "SenderTypeEnum": { + "enum": [ + "LEGAL_PERSON", + "ABI_CODE", + "BIC_CODE" + ], + "type": "string" } }, - "responses" : { - "AppException400" : { - "description" : "Default app exception for status 400", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" + "responses": { + "AppException400": { + "description": "Default app exception for status 400", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" }, - "examples" : { - "Error" : { - "value" : { - "httpStatusCode" : 400, - "httpStatusDescription" : "Bad Request", - "appErrorCode" : "FDR-0702", - "errors" : [ { - "message" : "Reporting Fdr [] is invalid" - } ] + "examples": { + "Error": { + "value": { + "httpStatusCode": 400, + "httpStatusDescription": "Bad Request", + "appErrorCode": "FDR-0702", + "errors": [ + { + "message": "Reporting Fdr [] is invalid" + } + ] } }, - "Errors with path" : { - "value" : { - "httpStatusCode" : 400, - "httpStatusDescription" : "Bad Request", - "appErrorCode" : "FDR-0702", - "errors" : [ { - "path" : "", - "message" : "" - } ] + "Errors with path": { + "value": { + "httpStatusCode": 400, + "httpStatusDescription": "Bad Request", + "appErrorCode": "FDR-0702", + "errors": [ + { + "path": "", + "message": "" + } + ] } } } } } }, - "AppException404" : { - "description" : "Default app exception for status 404", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" + "AppException404": { + "description": "Default app exception for status 404", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" }, - "example" : { - "httpStatusCode" : 404, - "httpStatusDescription" : "Not Found", - "appErrorCode" : "FDR-0701", - "errors" : [ { - "message" : "Reporting Fdr [] not found" - } ] + "example": { + "httpStatusCode": 404, + "httpStatusDescription": "Not Found", + "appErrorCode": "FDR-0701", + "errors": [ + { + "message": "Reporting Fdr [] not found" + } + ] } } } }, - "InternalServerError" : { - "description" : "Internal Server Error", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" + "InternalServerError": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" }, - "example" : { - "errorId" : "50905466-1881-457b-b42f-fb7b2bfb1610", - "httpStatusCode" : 500, - "httpStatusDescription" : "Internal Server Error", - "appErrorCode" : "FDR-0500", - "errors" : [ { - "message" : "An unexpected error has occurred. Please contact support." - } ] + "example": { + "errorId": "50905466-1881-457b-b42f-fb7b2bfb1610", + "httpStatusCode": 500, + "httpStatusDescription": "Internal Server Error", + "appErrorCode": "FDR-0500", + "errors": [ + { + "message": "An unexpected error has occurred. Please contact support." + } + ] } } } } }, - "securitySchemes" : { - "api_key" : { - "type" : "apiKey", - "name" : "Ocp-Apim-Subscription-Key", - "in" : "header" + "securitySchemes": { + "api_key": { + "type": "apiKey", + "name": "Ocp-Apim-Subscription-Key", + "in": "header" }, - "SecurityScheme" : { - "type" : "http", - "description" : "Authentication", - "scheme" : "basic" + "SecurityScheme": { + "type": "http", + "description": "Authentication", + "scheme": "basic" } } } -} \ No newline at end of file +} diff --git a/openapi/openapi_psp.json b/openapi/openapi_psp.json index a1010b40..6d812a3c 100644 --- a/openapi/openapi_psp.json +++ b/openapi/openapi_psp.json @@ -1,83 +1,99 @@ { - "openapi" : "3.0.3", - "info" : { - "title" : "FDR - Flussi di rendicontazione (local)", - "description" : "Manage FDR ( aka \"Flussi di Rendicontazione\" ) exchanged between PSP and EC", - "termsOfService" : "https://www.pagopa.gov.it/", - "version" : "0.0.0-SNAPSHOT" + "openapi": "3.0.3", + "info": { + "title": "FDR - Flussi di rendicontazione (local)", + "description": "Manage FDR ( aka \"Flussi di Rendicontazione\" ) exchanged between PSP and EC", + "termsOfService": "https://www.pagopa.gov.it/", + "version": "1.0.16" }, - "servers" : [ { - "url" : "http://localhost:8080/" - } ], - "security" : [ { - "api_key" : [ ] - } ], - "tags" : [ { - "name" : "Info", - "description" : "Info operations" - }, { - "name" : "Internal Organizations", - "description" : "Organizations operations" - }, { - "name" : "Internal PSP", - "description" : "PSP operations" - }, { - "name" : "Organizations", - "description" : "Organizations operations" - }, { - "name" : "PSP", - "description" : "PSP operations" - }, { - "name" : "Support", - "description" : "Support operations" - } ], - "paths" : { - "/psps/{pspId}/fdrs/{fdr}/payments/add" : { - "put" : { - "tags" : [ "PSP" ], - "summary" : "Add payments to fdr", - "description" : "Add payments to fdr", - "operationId" : "addPayment", - "parameters" : [ { - "name" : "fdr", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - }, { - "name" : "pspId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" + "servers": [ + { + "url": "http://localhost:8080/" + } + ], + "security": [ + { + "api_key": [] + } + ], + "tags": [ + { + "name": "Info", + "description": "Info operations" + }, + { + "name": "Internal Organizations", + "description": "Organizations operations" + }, + { + "name": "Internal PSP", + "description": "PSP operations" + }, + { + "name": "Organizations", + "description": "Organizations operations" + }, + { + "name": "PSP", + "description": "PSP operations" + }, + { + "name": "Support", + "description": "Support operations" + } + ], + "paths": { + "/psps/{pspId}/fdrs/{fdr}/payments/add": { + "put": { + "tags": [ + "PSP" + ], + "summary": "Add payments to fdr", + "description": "Add payments to fdr", + "operationId": "addPayment", + "parameters": [ + { + "name": "fdr", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "pspId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } } - } ], - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/AddPaymentRequest" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AddPaymentRequest" } } } }, - "responses" : { - "500" : { - "$ref" : "#/components/responses/InternalServerError" - }, - "400" : { - "$ref" : "#/components/responses/AppException400" - }, - "404" : { - "$ref" : "#/components/responses/AppException404" - }, - "200" : { - "description" : "Success", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/GenericResponse" + "responses": { + "500": { + "$ref": "#/components/responses/InternalServerError" + }, + "400": { + "$ref": "#/components/responses/AppException400" + }, + "404": { + "$ref": "#/components/responses/AppException404" + }, + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GenericResponse" } } } @@ -85,43 +101,48 @@ } } }, - "/psps/{pspId}/fdrs/{fdr}/publish" : { - "post" : { - "tags" : [ "PSP" ], - "summary" : "Publish fdr", - "description" : "Publish fdr", - "operationId" : "publish", - "parameters" : [ { - "name" : "fdr", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - }, { - "name" : "pspId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" + "/psps/{pspId}/fdrs/{fdr}/publish": { + "post": { + "tags": [ + "PSP" + ], + "summary": "Publish fdr", + "description": "Publish fdr", + "operationId": "publish", + "parameters": [ + { + "name": "fdr", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "pspId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } } - } ], - "responses" : { - "500" : { - "$ref" : "#/components/responses/InternalServerError" - }, - "400" : { - "$ref" : "#/components/responses/AppException400" - }, - "404" : { - "$ref" : "#/components/responses/AppException404" - }, - "200" : { - "description" : "Success", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/GenericResponse" + ], + "responses": { + "500": { + "$ref": "#/components/responses/InternalServerError" + }, + "400": { + "$ref": "#/components/responses/AppException400" + }, + "404": { + "$ref": "#/components/responses/AppException404" + }, + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GenericResponse" } } } @@ -129,50 +150,56 @@ } } }, - "/psps/{pspId}/created/fdrs/{fdr}/organizations/{organizationId}" : { - "get" : { - "tags" : [ "PSP" ], - "summary" : "Get created fdr", - "description" : "Get created fdr", - "operationId" : "getCreated", - "parameters" : [ { - "name" : "fdr", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - }, { - "name" : "organizationId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - }, { - "name" : "pspId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" + "/psps/{pspId}/created/fdrs/{fdr}/organizations/{organizationId}": { + "get": { + "tags": [ + "PSP" + ], + "summary": "Get created fdr", + "description": "Get created fdr", + "operationId": "getCreated", + "parameters": [ + { + "name": "fdr", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "organizationId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "pspId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } } - } ], - "responses" : { - "500" : { - "$ref" : "#/components/responses/InternalServerError" - }, - "400" : { - "$ref" : "#/components/responses/AppException400" - }, - "404" : { - "$ref" : "#/components/responses/AppException404" - }, - "200" : { - "description" : "Success", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/GetCreatedResponse" + ], + "responses": { + "500": { + "$ref": "#/components/responses/InternalServerError" + }, + "400": { + "$ref": "#/components/responses/AppException400" + }, + "404": { + "$ref": "#/components/responses/AppException404" + }, + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetCreatedResponse" } } } @@ -180,76 +207,85 @@ } } }, - "/psps/{pspId}/published/fdrs/{fdr}/revisions/{revision}/organizations/{organizationId}/payments" : { - "get" : { - "tags" : [ "PSP" ], - "summary" : "Get payments of fdr Published", - "description" : "Get payments of fdr Published", - "operationId" : "getPaymentPublishedByPsp", - "parameters" : [ { - "name" : "fdr", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - }, { - "name" : "organizationId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - }, { - "name" : "pspId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - }, { - "name" : "revision", - "in" : "path", - "required" : true, - "schema" : { - "format" : "int64", - "type" : "integer" - } - }, { - "name" : "page", - "in" : "query", - "schema" : { - "format" : "int64", - "default" : 1, - "minimum" : 1, - "type" : "integer" - } - }, { - "name" : "size", - "in" : "query", - "schema" : { - "format" : "int64", - "default" : 1000, - "minimum" : 1, - "type" : "integer" + "/psps/{pspId}/published/fdrs/{fdr}/revisions/{revision}/organizations/{organizationId}/payments": { + "get": { + "tags": [ + "PSP" + ], + "summary": "Get payments of fdr Published", + "description": "Get payments of fdr Published", + "operationId": "getPaymentPublishedByPsp", + "parameters": [ + { + "name": "fdr", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "organizationId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "pspId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "revision", + "in": "path", + "required": true, + "schema": { + "format": "int64", + "type": "integer" + } + }, + { + "name": "page", + "in": "query", + "schema": { + "format": "int64", + "default": 1, + "minimum": 1, + "type": "integer" + } + }, + { + "name": "size", + "in": "query", + "schema": { + "format": "int64", + "default": 1000, + "minimum": 1, + "type": "integer" + } } - } ], - "responses" : { - "500" : { - "$ref" : "#/components/responses/InternalServerError" - }, - "400" : { - "$ref" : "#/components/responses/AppException400" - }, - "404" : { - "$ref" : "#/components/responses/AppException404" - }, - "200" : { - "description" : "Success", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/GetPaymentResponse" + ], + "responses": { + "500": { + "$ref": "#/components/responses/InternalServerError" + }, + "400": { + "$ref": "#/components/responses/AppException400" + }, + "404": { + "$ref": "#/components/responses/AppException404" + }, + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetPaymentResponse" } } } @@ -257,95 +293,105 @@ } } }, - "/psps/{pspId}/fdrs/{fdr}" : { - "post" : { - "tags" : [ "PSP" ], - "summary" : "Create fdr", - "description" : "Create fdr", - "operationId" : "create", - "parameters" : [ { - "name" : "fdr", - "in" : "path", - "required" : true, - "schema" : { - "pattern" : "[a-zA-Z0-9\\-_]{1,35}", - "type" : "string" - } - }, { - "name" : "pspId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" + "/psps/{pspId}/fdrs/{fdr}": { + "post": { + "tags": [ + "PSP" + ], + "summary": "Create fdr", + "description": "Create fdr", + "operationId": "create", + "parameters": [ + { + "name": "fdr", + "in": "path", + "required": true, + "schema": { + "pattern": "[a-zA-Z0-9\\-_]{1,35}", + "type": "string" + } + }, + { + "name": "pspId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } } - } ], - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/CreateRequest" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateRequest" } } } }, - "responses" : { - "500" : { - "$ref" : "#/components/responses/InternalServerError" - }, - "400" : { - "$ref" : "#/components/responses/AppException400" - }, - "404" : { - "$ref" : "#/components/responses/AppException404" - }, - "201" : { - "description" : "Created", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/GenericResponse" + "responses": { + "500": { + "$ref": "#/components/responses/InternalServerError" + }, + "400": { + "$ref": "#/components/responses/AppException400" + }, + "404": { + "$ref": "#/components/responses/AppException404" + }, + "201": { + "description": "Created", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GenericResponse" } } } } } }, - "delete" : { - "tags" : [ "PSP" ], - "summary" : "Delete fdr", - "description" : "Delete fdr", - "operationId" : "delete", - "parameters" : [ { - "name" : "fdr", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - }, { - "name" : "pspId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" + "delete": { + "tags": [ + "PSP" + ], + "summary": "Delete fdr", + "description": "Delete fdr", + "operationId": "delete", + "parameters": [ + { + "name": "fdr", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "pspId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } } - } ], - "responses" : { - "500" : { - "$ref" : "#/components/responses/InternalServerError" - }, - "400" : { - "$ref" : "#/components/responses/AppException400" - }, - "404" : { - "$ref" : "#/components/responses/AppException404" - }, - "200" : { - "description" : "Success", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/GenericResponse" + ], + "responses": { + "500": { + "$ref": "#/components/responses/InternalServerError" + }, + "400": { + "$ref": "#/components/responses/AppException400" + }, + "404": { + "$ref": "#/components/responses/AppException404" + }, + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GenericResponse" } } } @@ -353,58 +399,65 @@ } } }, - "/psps/{pspId}/published/fdrs/{fdr}/revisions/{revision}/organizations/{organizationId}" : { - "get" : { - "tags" : [ "PSP" ], - "summary" : "Get fdr Published", - "description" : "Get fdr Published", - "operationId" : "getPublishedByPsp", - "parameters" : [ { - "name" : "fdr", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - }, { - "name" : "organizationId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - }, { - "name" : "pspId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - }, { - "name" : "revision", - "in" : "path", - "required" : true, - "schema" : { - "format" : "int64", - "type" : "integer" + "/psps/{pspId}/published/fdrs/{fdr}/revisions/{revision}/organizations/{organizationId}": { + "get": { + "tags": [ + "PSP" + ], + "summary": "Get fdr Published", + "description": "Get fdr Published", + "operationId": "getPublishedByPsp", + "parameters": [ + { + "name": "fdr", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "organizationId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "pspId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "revision", + "in": "path", + "required": true, + "schema": { + "format": "int64", + "type": "integer" + } } - } ], - "responses" : { - "500" : { - "$ref" : "#/components/responses/InternalServerError" - }, - "400" : { - "$ref" : "#/components/responses/AppException400" - }, - "404" : { - "$ref" : "#/components/responses/AppException404" - }, - "200" : { - "description" : "Success", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/GetResponse" + ], + "responses": { + "500": { + "$ref": "#/components/responses/InternalServerError" + }, + "400": { + "$ref": "#/components/responses/AppException400" + }, + "404": { + "$ref": "#/components/responses/AppException404" + }, + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetResponse" } } } @@ -412,20 +465,22 @@ } } }, - "/info" : { - "get" : { - "tags" : [ "Info" ], - "summary" : "Get info of FDR", - "responses" : { - "500" : { - "$ref" : "#/components/responses/InternalServerError" - }, - "200" : { - "description" : "Success", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/InfoResponse" + "/info": { + "get": { + "tags": [ + "Info" + ], + "summary": "Get info of FDR", + "responses": { + "500": { + "$ref": "#/components/responses/InternalServerError" + }, + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InfoResponse" } } } @@ -433,60 +488,67 @@ } } }, - "/psps/{pspId}/created" : { - "get" : { - "tags" : [ "PSP" ], - "summary" : "Get all fdr created", - "description" : "Get all fdr created", - "operationId" : "getAllcreated", - "parameters" : [ { - "name" : "pspId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - }, { - "name" : "createdGt", - "in" : "query", - "schema" : { - "$ref" : "#/components/schemas/Instant" - } - }, { - "name" : "page", - "in" : "query", - "schema" : { - "format" : "int64", - "default" : 1, - "minimum" : 1, - "type" : "integer" - } - }, { - "name" : "size", - "in" : "query", - "schema" : { - "format" : "int64", - "default" : 1000, - "minimum" : 1, - "type" : "integer" + "/psps/{pspId}/created": { + "get": { + "tags": [ + "PSP" + ], + "summary": "Get all fdr created", + "description": "Get all fdr created", + "operationId": "getAllcreated", + "parameters": [ + { + "name": "pspId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "createdGt", + "in": "query", + "schema": { + "$ref": "#/components/schemas/Instant" + } + }, + { + "name": "page", + "in": "query", + "schema": { + "format": "int64", + "default": 1, + "minimum": 1, + "type": "integer" + } + }, + { + "name": "size", + "in": "query", + "schema": { + "format": "int64", + "default": 1000, + "minimum": 1, + "type": "integer" + } } - } ], - "responses" : { - "500" : { - "$ref" : "#/components/responses/InternalServerError" - }, - "400" : { - "$ref" : "#/components/responses/AppException400" - }, - "404" : { - "$ref" : "#/components/responses/AppException404" - }, - "200" : { - "description" : "Success", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/GetAllCreatedResponse" + ], + "responses": { + "500": { + "$ref": "#/components/responses/InternalServerError" + }, + "400": { + "$ref": "#/components/responses/AppException400" + }, + "404": { + "$ref": "#/components/responses/AppException404" + }, + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetAllCreatedResponse" } } } @@ -494,52 +556,57 @@ } } }, - "/psps/{pspId}/fdrs/{fdr}/payments/del" : { - "put" : { - "tags" : [ "PSP" ], - "summary" : "Delete payments to fdr", - "description" : "Delete payments to fdr", - "operationId" : "deletePayment", - "parameters" : [ { - "name" : "fdr", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - }, { - "name" : "pspId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" + "/psps/{pspId}/fdrs/{fdr}/payments/del": { + "put": { + "tags": [ + "PSP" + ], + "summary": "Delete payments to fdr", + "description": "Delete payments to fdr", + "operationId": "deletePayment", + "parameters": [ + { + "name": "fdr", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "pspId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } } - } ], - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/DeletePaymentRequest" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DeletePaymentRequest" } } } }, - "responses" : { - "500" : { - "$ref" : "#/components/responses/InternalServerError" - }, - "400" : { - "$ref" : "#/components/responses/AppException400" - }, - "404" : { - "$ref" : "#/components/responses/AppException404" - }, - "200" : { - "description" : "Success", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/GenericResponse" + "responses": { + "500": { + "$ref": "#/components/responses/InternalServerError" + }, + "400": { + "$ref": "#/components/responses/AppException400" + }, + "404": { + "$ref": "#/components/responses/AppException404" + }, + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GenericResponse" } } } @@ -547,68 +614,76 @@ } } }, - "/psps/{pspId}/created/fdrs/{fdr}/organizations/{organizationId}/payments" : { - "get" : { - "tags" : [ "PSP" ], - "summary" : "Get created payments of fdr", - "description" : "Get created payments of fdr", - "operationId" : "getCreatedPayment", - "parameters" : [ { - "name" : "fdr", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - }, { - "name" : "organizationId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - }, { - "name" : "pspId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - }, { - "name" : "page", - "in" : "query", - "schema" : { - "format" : "int64", - "default" : 1, - "minimum" : 1, - "type" : "integer" - } - }, { - "name" : "size", - "in" : "query", - "schema" : { - "format" : "int64", - "default" : 1000, - "minimum" : 1, - "type" : "integer" + "/psps/{pspId}/created/fdrs/{fdr}/organizations/{organizationId}/payments": { + "get": { + "tags": [ + "PSP" + ], + "summary": "Get created payments of fdr", + "description": "Get created payments of fdr", + "operationId": "getCreatedPayment", + "parameters": [ + { + "name": "fdr", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "organizationId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "pspId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "page", + "in": "query", + "schema": { + "format": "int64", + "default": 1, + "minimum": 1, + "type": "integer" + } + }, + { + "name": "size", + "in": "query", + "schema": { + "format": "int64", + "default": 1000, + "minimum": 1, + "type": "integer" + } } - } ], - "responses" : { - "500" : { - "$ref" : "#/components/responses/InternalServerError" - }, - "400" : { - "$ref" : "#/components/responses/AppException400" - }, - "404" : { - "$ref" : "#/components/responses/AppException404" - }, - "200" : { - "description" : "Success", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/GetPaymentResponse" + ], + "responses": { + "500": { + "$ref": "#/components/responses/InternalServerError" + }, + "400": { + "$ref": "#/components/responses/AppException400" + }, + "404": { + "$ref": "#/components/responses/AppException404" + }, + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetPaymentResponse" } } } @@ -616,67 +691,75 @@ } } }, - "/psps/{pspId}/published" : { - "get" : { - "tags" : [ "PSP" ], - "summary" : "Get all fdr published", - "description" : "Get all fdr published", - "operationId" : "getAllPublishedByPsp", - "parameters" : [ { - "name" : "pspId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - }, { - "name" : "organizationId", - "in" : "query", - "schema" : { - "pattern" : "^(.{1,35})$", - "type" : "string" - } - }, { - "name" : "page", - "in" : "query", - "schema" : { - "format" : "int64", - "default" : 1, - "minimum" : 1, - "type" : "integer" - } - }, { - "name" : "publishedGt", - "in" : "query", - "schema" : { - "$ref" : "#/components/schemas/Instant" - } - }, { - "name" : "size", - "in" : "query", - "schema" : { - "format" : "int64", - "default" : 1000, - "minimum" : 1, - "type" : "integer" + "/psps/{pspId}/published": { + "get": { + "tags": [ + "PSP" + ], + "summary": "Get all fdr published", + "description": "Get all fdr published", + "operationId": "getAllPublishedByPsp", + "parameters": [ + { + "name": "pspId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "organizationId", + "in": "query", + "schema": { + "pattern": "^(.{1,35})$", + "type": "string" + } + }, + { + "name": "page", + "in": "query", + "schema": { + "format": "int64", + "default": 1, + "minimum": 1, + "type": "integer" + } + }, + { + "name": "publishedGt", + "in": "query", + "schema": { + "$ref": "#/components/schemas/Instant" + } + }, + { + "name": "size", + "in": "query", + "schema": { + "format": "int64", + "default": 1000, + "minimum": 1, + "type": "integer" + } } - } ], - "responses" : { - "500" : { - "$ref" : "#/components/responses/InternalServerError" - }, - "400" : { - "$ref" : "#/components/responses/AppException400" - }, - "404" : { - "$ref" : "#/components/responses/AppException404" - }, - "200" : { - "description" : "Success", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/GetAllPublishedResponse" + ], + "responses": { + "500": { + "$ref": "#/components/responses/InternalServerError" + }, + "400": { + "$ref": "#/components/responses/AppException400" + }, + "404": { + "$ref": "#/components/responses/AppException404" + }, + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetAllPublishedResponse" } } } @@ -685,812 +768,904 @@ } } }, - "components" : { - "schemas" : { - "AddPaymentRequest" : { - "required" : [ "payments" ], - "type" : "object", - "properties" : { - "payments" : { - "maxItems" : 1000, - "minItems" : 1, - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/Payment" + "components": { + "schemas": { + "AddPaymentRequest": { + "required": [ + "payments" + ], + "type": "object", + "properties": { + "payments": { + "maxItems": 1000, + "minItems": 1, + "type": "array", + "items": { + "$ref": "#/components/schemas/Payment" } } } }, - "CreateRequest" : { - "required" : [ "fdr", "fdrDate", "sender", "receiver", "regulation", "regulationDate", "totPayments", "sumPayments" ], - "type" : "object", - "properties" : { - "fdr" : { - "description" : "[XML NodoInviaFlussoRendicontazione]=[identificativoFlusso]", - "pattern" : "[a-zA-Z0-9\\-_]{1,35}", - "type" : "string", - "example" : "2016-08-16pspTest-1178" - }, - "fdrDate" : { - "description" : "[XML NodoInviaFlussoRendicontazione]=[dataOraFlusso]", - "type" : "string", - "allOf" : [ { - "$ref" : "#/components/schemas/Instant" - } ], - "example" : "2023-04-05T09:21:37.810000Z" - }, - "sender" : { - "$ref" : "#/components/schemas/Sender" - }, - "receiver" : { - "$ref" : "#/components/schemas/Receiver" - }, - "regulation" : { - "description" : "[XML FlussoRiversamento]=[identificativoUnivocoRegolamento]", - "pattern" : "^(.{1,35})$", - "type" : "string", - "example" : "SEPA - Bonifico xzy" - }, - "regulationDate" : { - "description" : "[XML FlussoRiversamento]=[dataRegolamento]", - "type" : "string", - "allOf" : [ { - "$ref" : "#/components/schemas/Instant" - } ], - "example" : "2023-04-03T12:00:30.900000Z" - }, - "bicCodePouringBank" : { - "description" : "[XML FlussoRiversamento]=[codiceBicBancaDiRiversamento]", - "pattern" : "^(.{1,35})$", - "type" : "string", - "example" : "UNCRITMMXXX" - }, - "totPayments" : { - "format" : "int64", - "description" : "[XML FlussoRiversamento]=[numeroTotalePagamenti]", - "minimum" : 1, - "type" : "integer", - "example" : 1 - }, - "sumPayments" : { - "format" : "double", - "description" : "[XML FlussoRiversamento]=[importoTotalePagamenti]", - "minimum" : 0, - "exclusiveMinimum" : true, - "pattern" : "^\\d{1,2147483647}([.]\\d{1,2})?$", - "type" : "number", - "example" : 0.01 + "CreateRequest": { + "required": [ + "fdr", + "fdrDate", + "sender", + "receiver", + "regulation", + "regulationDate", + "totPayments", + "sumPayments" + ], + "type": "object", + "properties": { + "fdr": { + "description": "[XML NodoInviaFlussoRendicontazione]=[identificativoFlusso]", + "pattern": "[a-zA-Z0-9\\-_]{1,35}", + "type": "string", + "example": "2016-08-16pspTest-1178" + }, + "fdrDate": { + "description": "[XML NodoInviaFlussoRendicontazione]=[dataOraFlusso]", + "type": "string", + "allOf": [ + { + "$ref": "#/components/schemas/Instant" + } + ], + "example": "2023-04-05T09:21:37.810000Z" + }, + "sender": { + "$ref": "#/components/schemas/Sender" + }, + "receiver": { + "$ref": "#/components/schemas/Receiver" + }, + "regulation": { + "description": "[XML FlussoRiversamento]=[identificativoUnivocoRegolamento]", + "pattern": "^(.{1,35})$", + "type": "string", + "example": "SEPA - Bonifico xzy" + }, + "regulationDate": { + "description": "[XML FlussoRiversamento]=[dataRegolamento]", + "type": "string", + "allOf": [ + { + "$ref": "#/components/schemas/Instant" + } + ], + "example": "2023-04-03T12:00:30.900000Z" + }, + "bicCodePouringBank": { + "description": "[XML FlussoRiversamento]=[codiceBicBancaDiRiversamento]", + "pattern": "^(.{1,35})$", + "type": "string", + "example": "UNCRITMMXXX" + }, + "totPayments": { + "format": "int64", + "description": "[XML FlussoRiversamento]=[numeroTotalePagamenti]", + "minimum": 1, + "type": "integer", + "example": 1 + }, + "sumPayments": { + "format": "double", + "description": "[XML FlussoRiversamento]=[importoTotalePagamenti]", + "minimum": 0, + "exclusiveMinimum": true, + "pattern": "^\\d{1,2147483647}([.]\\d{1,2})?$", + "type": "number", + "example": 0.01 } } }, - "DeletePaymentRequest" : { - "required" : [ "indexList" ], - "type" : "object", - "properties" : { - "indexList" : { - "maxItems" : 1000, - "minItems" : 1, - "type" : "array", - "items" : { - "format" : "int64", - "type" : "integer" + "DeletePaymentRequest": { + "required": [ + "indexList" + ], + "type": "object", + "properties": { + "indexList": { + "maxItems": 1000, + "minItems": 1, + "type": "array", + "items": { + "format": "int64", + "type": "integer" } } } }, - "ErrorCode" : { - "type" : "object", - "properties" : { - "code" : { - "type" : "string", - "example" : "FDR-0500" - }, - "description" : { - "type" : "string", - "example" : "An unexpected error has occurred. Please contact support." - }, - "statusCode" : { - "format" : "int32", - "type" : "integer", - "example" : 500 + "ErrorCode": { + "type": "object", + "properties": { + "code": { + "type": "string", + "example": "FDR-0500" + }, + "description": { + "type": "string", + "example": "An unexpected error has occurred. Please contact support." + }, + "statusCode": { + "format": "int32", + "type": "integer", + "example": 500 } } }, - "ErrorMessage" : { - "type" : "object", - "properties" : { - "path" : { - "type" : "string", - "example" : "demo.test" - }, - "message" : { - "type" : "string", - "example" : "An unexpected error has occurred. Please contact support." + "ErrorMessage": { + "type": "object", + "properties": { + "path": { + "type": "string", + "example": "demo.test" + }, + "message": { + "type": "string", + "example": "An unexpected error has occurred. Please contact support." } } }, - "ErrorResponse" : { - "type" : "object", - "properties" : { - "errorId" : { - "type" : "string", - "example" : "50905466-1881-457b-b42f-fb7b2bfb1610" - }, - "httpStatusCode" : { - "format" : "int32", - "type" : "integer", - "example" : 500 - }, - "httpStatusDescription" : { - "type" : "string", - "example" : "Internal Server Error" - }, - "appErrorCode" : { - "type" : "string", - "example" : "FDR-500" - }, - "errors" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/ErrorMessage" + "ErrorResponse": { + "type": "object", + "properties": { + "errorId": { + "type": "string", + "example": "50905466-1881-457b-b42f-fb7b2bfb1610" + }, + "httpStatusCode": { + "format": "int32", + "type": "integer", + "example": 500 + }, + "httpStatusDescription": { + "type": "string", + "example": "Internal Server Error" + }, + "appErrorCode": { + "type": "string", + "example": "FDR-500" + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ErrorMessage" } } } }, - "Fdr" : { - "type" : "object", - "properties" : { - "fdr" : { - "type" : "string", - "example" : "AAABBB" - }, - "pspId" : { - "type" : "string", - "example" : "1" - }, - "revision" : { - "format" : "int64", - "type" : "integer", - "example" : 1 - }, - "published" : { - "type" : "string", - "allOf" : [ { - "$ref" : "#/components/schemas/Instant" - } ], - "example" : "2023-04-03T12:00:30.900000Z" + "Fdr": { + "type": "object", + "properties": { + "fdr": { + "type": "string", + "example": "AAABBB" + }, + "pspId": { + "type": "string", + "example": "1" + }, + "revision": { + "format": "int64", + "type": "integer", + "example": 1 + }, + "published": { + "type": "string", + "allOf": [ + { + "$ref": "#/components/schemas/Instant" + } + ], + "example": "2023-04-03T12:00:30.900000Z" } } }, - "FdrByPspIdIuvIurBase" : { - "type" : "object", - "properties" : { - "pspId" : { - "type" : "string" + "FdrByPspIdIuvIurBase": { + "type": "object", + "properties": { + "pspId": { + "type": "string" }, - "organizationId" : { - "type" : "string" + "organizationId": { + "type": "string" }, - "fdr" : { - "type" : "string" + "fdr": { + "type": "string" }, - "revision" : { - "format" : "int64", - "type" : "integer" + "revision": { + "format": "int64", + "type": "integer" }, - "created" : { - "$ref" : "#/components/schemas/Instant" + "created": { + "$ref": "#/components/schemas/Instant" } } }, - "FdrByPspIdIuvIurResponse" : { - "type" : "object", - "properties" : { - "metadata" : { - "$ref" : "#/components/schemas/Metadata" - }, - "count" : { - "format" : "int64", - "type" : "integer", - "example" : 100 - }, - "data" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/FdrByPspIdIuvIurBase" + "FdrByPspIdIuvIurResponse": { + "type": "object", + "properties": { + "metadata": { + "$ref": "#/components/schemas/Metadata" + }, + "count": { + "format": "int64", + "type": "integer", + "example": 100 + }, + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/FdrByPspIdIuvIurBase" } } } }, - "FdrInserted" : { - "type" : "object", - "properties" : { - "fdr" : { - "type" : "string", - "example" : "AAABBB" - }, - "organizationId" : { - "type" : "string", - "example" : "1" - }, - "revision" : { - "format" : "int64", - "type" : "integer", - "example" : 1 - }, - "created" : { - "type" : "string", - "allOf" : [ { - "$ref" : "#/components/schemas/Instant" - } ], - "example" : "2023-04-03T12:00:30.900000Z" + "FdrInserted": { + "type": "object", + "properties": { + "fdr": { + "type": "string", + "example": "AAABBB" + }, + "organizationId": { + "type": "string", + "example": "1" + }, + "revision": { + "format": "int64", + "type": "integer", + "example": 1 + }, + "created": { + "type": "string", + "allOf": [ + { + "$ref": "#/components/schemas/Instant" + } + ], + "example": "2023-04-03T12:00:30.900000Z" } } }, - "FdrPublished" : { - "type" : "object", - "properties" : { - "fdr" : { - "type" : "string", - "example" : "AAABBB" - }, - "organizationId" : { - "type" : "string", - "example" : "1" - }, - "revision" : { - "format" : "int64", - "type" : "integer", - "example" : 1 - }, - "published" : { - "type" : "string", - "allOf" : [ { - "$ref" : "#/components/schemas/Instant" - } ], - "example" : "2023-04-03T12:00:30.900000Z" + "FdrPublished": { + "type": "object", + "properties": { + "fdr": { + "type": "string", + "example": "AAABBB" + }, + "organizationId": { + "type": "string", + "example": "1" + }, + "revision": { + "format": "int64", + "type": "integer", + "example": 1 + }, + "published": { + "type": "string", + "allOf": [ + { + "$ref": "#/components/schemas/Instant" + } + ], + "example": "2023-04-03T12:00:30.900000Z" } } }, - "GenericResponse" : { - "type" : "object", - "properties" : { - "message" : { - "type" : "string", - "example" : "Success" + "GenericResponse": { + "type": "object", + "properties": { + "message": { + "type": "string", + "example": "Success" } } }, - "GetAllCreatedResponse" : { - "type" : "object", - "properties" : { - "metadata" : { - "$ref" : "#/components/schemas/Metadata" - }, - "count" : { - "format" : "int64", - "type" : "integer", - "example" : 100 - }, - "data" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/FdrInserted" + "GetAllCreatedResponse": { + "type": "object", + "properties": { + "metadata": { + "$ref": "#/components/schemas/Metadata" + }, + "count": { + "format": "int64", + "type": "integer", + "example": 100 + }, + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/FdrInserted" } } } }, - "GetAllPublishedResponse" : { - "type" : "object", - "properties" : { - "metadata" : { - "$ref" : "#/components/schemas/Metadata" - }, - "count" : { - "format" : "int64", - "type" : "integer", - "example" : 100 - }, - "data" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/FdrPublished" + "GetAllPublishedResponse": { + "type": "object", + "properties": { + "metadata": { + "$ref": "#/components/schemas/Metadata" + }, + "count": { + "format": "int64", + "type": "integer", + "example": 100 + }, + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/FdrPublished" } } } }, - "GetAllResponse" : { - "type" : "object", - "properties" : { - "metadata" : { - "$ref" : "#/components/schemas/Metadata" - }, - "count" : { - "format" : "int64", - "type" : "integer", - "example" : 100 - }, - "data" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/Fdr" + "GetAllResponse": { + "type": "object", + "properties": { + "metadata": { + "$ref": "#/components/schemas/Metadata" + }, + "count": { + "format": "int64", + "type": "integer", + "example": 100 + }, + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Fdr" } } } }, - "GetCreatedResponse" : { - "type" : "object", - "properties" : { - "status" : { - "type" : "string", - "allOf" : [ { - "$ref" : "#/components/schemas/ReportingFlowStatusEnum" - } ], - "example" : "CREATED" - }, - "revision" : { - "format" : "int64", - "type" : "integer", - "example" : 4 - }, - "created" : { - "type" : "string", - "allOf" : [ { - "$ref" : "#/components/schemas/Instant" - } ], - "example" : "2023-04-03T12:00:30.900000Z" - }, - "updated" : { - "type" : "string", - "allOf" : [ { - "$ref" : "#/components/schemas/Instant" - } ], - "example" : "2023-04-03T12:00:30.900000Z" - }, - "fdr" : { - "type" : "string", - "example" : "2016-08-16pspTest-1178" - }, - "fdrDate" : { - "type" : "string", - "allOf" : [ { - "$ref" : "#/components/schemas/Instant" - } ], - "example" : "2023-04-05T09:21:37.810000Z" - }, - "regulation" : { - "type" : "string", - "example" : "SEPA - Bonifico xzy" - }, - "regulationDate" : { - "type" : "string", - "allOf" : [ { - "$ref" : "#/components/schemas/Instant" - } ], - "example" : "2023-04-03T12:00:30.900000Z" - }, - "bicCodePouringBank" : { - "type" : "string", - "example" : "UNCRITMMXXX" - }, - "sender" : { - "$ref" : "#/components/schemas/Sender" - }, - "receiver" : { - "$ref" : "#/components/schemas/Receiver" - }, - "computedTotPayments" : { - "format" : "int64", - "type" : "integer", - "example" : 100 - }, - "computedSumPayments" : { - "format" : "double", - "type" : "number", - "example" : 100.9 - }, - "totPayments" : { - "format" : "int64", - "type" : "integer", - "example" : 100 - }, - "sumPayments" : { - "format" : "double", - "type" : "number", - "example" : 100.9 + "GetCreatedResponse": { + "type": "object", + "properties": { + "status": { + "type": "string", + "allOf": [ + { + "$ref": "#/components/schemas/ReportingFlowStatusEnum" + } + ], + "example": "CREATED" + }, + "revision": { + "format": "int64", + "type": "integer", + "example": 4 + }, + "created": { + "type": "string", + "allOf": [ + { + "$ref": "#/components/schemas/Instant" + } + ], + "example": "2023-04-03T12:00:30.900000Z" + }, + "updated": { + "type": "string", + "allOf": [ + { + "$ref": "#/components/schemas/Instant" + } + ], + "example": "2023-04-03T12:00:30.900000Z" + }, + "fdr": { + "type": "string", + "example": "2016-08-16pspTest-1178" + }, + "fdrDate": { + "type": "string", + "allOf": [ + { + "$ref": "#/components/schemas/Instant" + } + ], + "example": "2023-04-05T09:21:37.810000Z" + }, + "regulation": { + "type": "string", + "example": "SEPA - Bonifico xzy" + }, + "regulationDate": { + "type": "string", + "allOf": [ + { + "$ref": "#/components/schemas/Instant" + } + ], + "example": "2023-04-03T12:00:30.900000Z" + }, + "bicCodePouringBank": { + "type": "string", + "example": "UNCRITMMXXX" + }, + "sender": { + "$ref": "#/components/schemas/Sender" + }, + "receiver": { + "$ref": "#/components/schemas/Receiver" + }, + "computedTotPayments": { + "format": "int64", + "type": "integer", + "example": 100 + }, + "computedSumPayments": { + "format": "double", + "type": "number", + "example": 100.9 + }, + "totPayments": { + "format": "int64", + "type": "integer", + "example": 100 + }, + "sumPayments": { + "format": "double", + "type": "number", + "example": 100.9 } } }, - "GetPaymentResponse" : { - "type" : "object", - "properties" : { - "metadata" : { - "$ref" : "#/components/schemas/Metadata" - }, - "count" : { - "format" : "int64", - "type" : "integer", - "example" : 100 - }, - "data" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/Payment" + "GetPaymentResponse": { + "type": "object", + "properties": { + "metadata": { + "$ref": "#/components/schemas/Metadata" + }, + "count": { + "format": "int64", + "type": "integer", + "example": 100 + }, + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Payment" } } } }, - "GetResponse" : { - "type" : "object", - "properties" : { - "status" : { - "type" : "string", - "allOf" : [ { - "$ref" : "#/components/schemas/ReportingFlowStatusEnum" - } ], - "example" : "CREATED" - }, - "revision" : { - "format" : "int64", - "type" : "integer", - "example" : 4 - }, - "created" : { - "type" : "string", - "allOf" : [ { - "$ref" : "#/components/schemas/Instant" - } ], - "example" : "2023-04-03T12:00:30.900000Z" - }, - "updated" : { - "type" : "string", - "allOf" : [ { - "$ref" : "#/components/schemas/Instant" - } ], - "example" : "2023-04-03T12:00:30.900000Z" - }, - "fdr" : { - "type" : "string", - "example" : "2016-08-16pspTest-1178" - }, - "fdrDate" : { - "type" : "string", - "allOf" : [ { - "$ref" : "#/components/schemas/Instant" - } ], - "example" : "2023-04-05T09:21:37.810000Z" - }, - "regulation" : { - "type" : "string", - "example" : "SEPA - Bonifico xzy" - }, - "regulationDate" : { - "type" : "string", - "allOf" : [ { - "$ref" : "#/components/schemas/Instant" - } ], - "example" : "2023-04-03T12:00:30.900000Z" - }, - "bicCodePouringBank" : { - "type" : "string", - "example" : "UNCRITMMXXX" - }, - "sender" : { - "$ref" : "#/components/schemas/Sender" - }, - "receiver" : { - "$ref" : "#/components/schemas/Receiver" - }, - "published" : { - "type" : "string", - "allOf" : [ { - "$ref" : "#/components/schemas/Instant" - } ], - "example" : "2023-04-03T12:00:30.900000Z" - }, - "computedTotPayments" : { - "format" : "int64", - "type" : "integer", - "example" : 100 - }, - "computedSumPayments" : { - "format" : "double", - "type" : "number", - "example" : 100.9 - }, - "totPayments" : { - "format" : "int64", - "type" : "integer", - "example" : 100 - }, - "sumPayments" : { - "format" : "double", - "type" : "number", - "example" : 100.9 + "GetResponse": { + "type": "object", + "properties": { + "status": { + "type": "string", + "allOf": [ + { + "$ref": "#/components/schemas/ReportingFlowStatusEnum" + } + ], + "example": "CREATED" + }, + "revision": { + "format": "int64", + "type": "integer", + "example": 4 + }, + "created": { + "type": "string", + "allOf": [ + { + "$ref": "#/components/schemas/Instant" + } + ], + "example": "2023-04-03T12:00:30.900000Z" + }, + "updated": { + "type": "string", + "allOf": [ + { + "$ref": "#/components/schemas/Instant" + } + ], + "example": "2023-04-03T12:00:30.900000Z" + }, + "fdr": { + "type": "string", + "example": "2016-08-16pspTest-1178" + }, + "fdrDate": { + "type": "string", + "allOf": [ + { + "$ref": "#/components/schemas/Instant" + } + ], + "example": "2023-04-05T09:21:37.810000Z" + }, + "regulation": { + "type": "string", + "example": "SEPA - Bonifico xzy" + }, + "regulationDate": { + "type": "string", + "allOf": [ + { + "$ref": "#/components/schemas/Instant" + } + ], + "example": "2023-04-03T12:00:30.900000Z" + }, + "bicCodePouringBank": { + "type": "string", + "example": "UNCRITMMXXX" + }, + "sender": { + "$ref": "#/components/schemas/Sender" + }, + "receiver": { + "$ref": "#/components/schemas/Receiver" + }, + "published": { + "type": "string", + "allOf": [ + { + "$ref": "#/components/schemas/Instant" + } + ], + "example": "2023-04-03T12:00:30.900000Z" + }, + "computedTotPayments": { + "format": "int64", + "type": "integer", + "example": 100 + }, + "computedSumPayments": { + "format": "double", + "type": "number", + "example": 100.9 + }, + "totPayments": { + "format": "int64", + "type": "integer", + "example": 100 + }, + "sumPayments": { + "format": "double", + "type": "number", + "example": 100.9 } } }, - "InfoResponse" : { - "type" : "object", - "properties" : { - "name" : { - "type" : "string", - "example" : "pagopa-fdr" - }, - "version" : { - "type" : "string", - "example" : "1.2.3" - }, - "environment" : { - "type" : "string", - "example" : "dev" - }, - "description" : { - "type" : "string", - "example" : "FDR - Flussi di rendicontazione" - }, - "errorCodes" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/ErrorCode" + "InfoResponse": { + "type": "object", + "properties": { + "name": { + "type": "string", + "example": "pagopa-fdr" + }, + "version": { + "type": "string", + "example": "1.2.3" + }, + "environment": { + "type": "string", + "example": "dev" + }, + "description": { + "type": "string", + "example": "FDR - Flussi di rendicontazione" + }, + "errorCodes": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ErrorCode" } } } }, - "Instant" : { - "format" : "date-time", - "type" : "string", - "example" : "2022-03-10T16:15:50Z" + "Instant": { + "format": "date-time", + "type": "string", + "example": "2022-03-10T16:15:50Z" }, - "Metadata" : { - "type" : "object", - "properties" : { - "pageSize" : { - "format" : "int32", - "type" : "integer", - "example" : 25 - }, - "pageNumber" : { - "format" : "int32", - "type" : "integer", - "example" : 1 - }, - "totPage" : { - "format" : "int32", - "type" : "integer", - "example" : 3 + "Metadata": { + "type": "object", + "properties": { + "pageSize": { + "format": "int32", + "type": "integer", + "example": 25 + }, + "pageNumber": { + "format": "int32", + "type": "integer", + "example": 1 + }, + "totPage": { + "format": "int32", + "type": "integer", + "example": 3 } } }, - "Payment" : { - "required" : [ "index", "iuv", "iur", "idTransfer", "pay", "payStatus", "payDate" ], - "type" : "object", - "properties" : { - "index" : { - "format" : "int64", - "description" : "Identificativo del pagamento univoco nel flusso", - "minimum" : 1, - "type" : "integer", - "example" : 1 - }, - "iuv" : { - "description" : "[XML FlussoRiversamento]=[datiSingoliPagamenti.identificativoUnivocoVersamento]", - "pattern" : "^(.{1,35})$", - "type" : "string", - "example" : "abcdefg" - }, - "iur" : { - "description" : "[XML FlussoRiversamento]=[datiSingoliPagamenti.identificativoUnivocoRiscossione]", - "pattern" : "^(.{1,35})$", - "type" : "string", - "example" : "abcdefg" - }, - "idTransfer" : { - "format" : "int64", - "description" : "[XML FlussoRiversamento]=[datiSingoliPagamenti.indiceDatiSingoloPagamento]", - "maximum" : 5, - "minimum" : 1, - "type" : "integer", - "example" : 1 - }, - "pay" : { - "format" : "double", - "description" : "[XML FlussoRiversamento]=[datiSingoliPagamenti.singoloImportoPagato]", - "minimum" : 0, - "exclusiveMinimum" : true, - "pattern" : "^\\d{1,2147483647}([.]\\d{1,2})?$", - "type" : "number", - "example" : 0.01 - }, - "payStatus" : { - "description" : "[XML FlussoRiversamento]=[datiSingoliPagamenti.codiceEsitoSingoloPagamento] \n0 -> EXECUTED\n3 -> REVOKED\n9 -> NO_RPT\n4 -> STAND_IN\n8 -> STAND_IN_NO_RPT", - "type" : "string", - "allOf" : [ { - "$ref" : "#/components/schemas/PaymentStatusEnum" - } ], - "example" : "EXECUTED" - }, - "payDate" : { - "description" : "[XML FlussoRiversamento]=[datiSingoliPagamenti.dataEsitoSingoloPagamento]", - "type" : "string", - "allOf" : [ { - "$ref" : "#/components/schemas/Instant" - } ], - "example" : "2023-02-03T12:00:30.900000Z" + "Payment": { + "required": [ + "index", + "iuv", + "iur", + "idTransfer", + "pay", + "payStatus", + "payDate" + ], + "type": "object", + "properties": { + "index": { + "format": "int64", + "description": "Identificativo del pagamento univoco nel flusso", + "minimum": 1, + "type": "integer", + "example": 1 + }, + "iuv": { + "description": "[XML FlussoRiversamento]=[datiSingoliPagamenti.identificativoUnivocoVersamento]", + "pattern": "^(.{1,35})$", + "type": "string", + "example": "abcdefg" + }, + "iur": { + "description": "[XML FlussoRiversamento]=[datiSingoliPagamenti.identificativoUnivocoRiscossione]", + "pattern": "^(.{1,35})$", + "type": "string", + "example": "abcdefg" + }, + "idTransfer": { + "format": "int64", + "description": "[XML FlussoRiversamento]=[datiSingoliPagamenti.indiceDatiSingoloPagamento]", + "maximum": 5, + "minimum": 1, + "type": "integer", + "example": 1 + }, + "pay": { + "format": "double", + "description": "[XML FlussoRiversamento]=[datiSingoliPagamenti.singoloImportoPagato]", + "minimum": 0, + "exclusiveMinimum": true, + "pattern": "^\\d{1,2147483647}([.]\\d{1,2})?$", + "type": "number", + "example": 0.01 + }, + "payStatus": { + "description": "[XML FlussoRiversamento]=[datiSingoliPagamenti.codiceEsitoSingoloPagamento] \n0 -> EXECUTED\n3 -> REVOKED\n9 -> NO_RPT\n4 -> STAND_IN\n8 -> STAND_IN_NO_RPT", + "type": "string", + "allOf": [ + { + "$ref": "#/components/schemas/PaymentStatusEnum" + } + ], + "example": "EXECUTED" + }, + "payDate": { + "description": "[XML FlussoRiversamento]=[datiSingoliPagamenti.dataEsitoSingoloPagamento]", + "type": "string", + "allOf": [ + { + "$ref": "#/components/schemas/Instant" + } + ], + "example": "2023-02-03T12:00:30.900000Z" } } }, - "PaymentStatusEnum" : { - "enum" : [ "EXECUTED", "REVOKED", "NO_RPT", "STAND_IN", "STAND_IN_NO_RPT" ], - "type" : "string" + "PaymentStatusEnum": { + "enum": [ + "EXECUTED", + "REVOKED", + "NO_RPT", + "STAND_IN", + "STAND_IN_NO_RPT" + ], + "type": "string" }, - "Receiver" : { - "required" : [ "id", "organizationId", "organizationName" ], - "type" : "object", - "properties" : { - "id" : { - "description" : "[XML FlussoRiversamento]=[istitutoRicevente.identificativoUnivocoRicevente.codiceIdentificativoUnivoco]", - "pattern" : "^(.{1,35})$", - "type" : "string", - "example" : "APPBIT2B" - }, - "organizationId" : { - "description" : "[XML NodoInviaFlussoRendicontazione]=[identificativoDominio]", - "pattern" : "^(.{1,35})$", - "type" : "string", - "example" : "20000000001" - }, - "organizationName" : { - "description" : "[XML FlussoRiversamento]=[istitutoRicevente.denominazioneRicevente]", - "pattern" : "^(.{1,140})$", - "type" : "string", - "example" : "Comune di xyz" + "Receiver": { + "required": [ + "id", + "organizationId", + "organizationName" + ], + "type": "object", + "properties": { + "id": { + "description": "[XML FlussoRiversamento]=[istitutoRicevente.identificativoUnivocoRicevente.codiceIdentificativoUnivoco]", + "pattern": "^(.{1,35})$", + "type": "string", + "example": "APPBIT2B" + }, + "organizationId": { + "description": "[XML NodoInviaFlussoRendicontazione]=[identificativoDominio]", + "pattern": "^(.{1,35})$", + "type": "string", + "example": "20000000001" + }, + "organizationName": { + "description": "[XML FlussoRiversamento]=[istitutoRicevente.denominazioneRicevente]", + "pattern": "^(.{1,140})$", + "type": "string", + "example": "Comune di xyz" } } }, - "ReportingFlowStatusEnum" : { - "enum" : [ "CREATED", "INSERTED", "PUBLISHED" ], - "type" : "string" + "ReportingFlowStatusEnum": { + "enum": [ + "CREATED", + "INSERTED", + "PUBLISHED" + ], + "type": "string" }, - "Sender" : { - "required" : [ "type", "id", "pspId", "pspName", "pspBrokerId", "channelId" ], - "type" : "object", - "properties" : { - "type" : { - "description" : "[XML FlussoRiversamento]=[istitutoMittente.identificativoUnivocoMittente.tipoIdentificativoUnivoco] \nG -> LEGAL_PERSON\nA -> ABI_CODE\nB -> BIC_CODE", - "type" : "string", - "allOf" : [ { - "$ref" : "#/components/schemas/SenderTypeEnum" - } ], - "example" : "LEGAL_PERSON" - }, - "id" : { - "description" : "[XML FlussoRiversamento]=[istitutoMittente.identificativoUnivocoMittente.codiceIdentificativoUnivoco]", - "pattern" : "^(.{1,35})$", - "type" : "string", - "example" : "SELBIT2B" - }, - "pspId" : { - "description" : "[XML NodoInviaFlussoRendicontazione]=[identificativoPSP]", - "pattern" : "^(.{1,35})$", - "type" : "string", - "example" : "60000000001" - }, - "pspName" : { - "description" : "[XML FlussoRiversamento]=[istitutoMittente.denominazioneMittente]", - "pattern" : "^(.{3,70})$", - "type" : "string", - "example" : "Bank" - }, - "pspBrokerId" : { - "description" : "[XML NodoInviaFlussoRendicontazione]=[identificativoIntermediarioPSP]", - "pattern" : "^(.{1,35})$", - "type" : "string", - "example" : "70000000001" - }, - "channelId" : { - "description" : "[XML NodoInviaFlussoRendicontazione]=[identificativoCanale]", - "pattern" : "^(.{1,35})$", - "type" : "string", - "example" : "80000000001" - }, - "password" : { - "description" : "[XML NodoInviaFlussoRendicontazione]=[password]", - "pattern" : "^(\\w{8,15})$", - "type" : "string", - "example" : "1234567890", - "deprecated" : true + "Sender": { + "required": [ + "type", + "id", + "pspId", + "pspName", + "pspBrokerId", + "channelId" + ], + "type": "object", + "properties": { + "type": { + "description": "[XML FlussoRiversamento]=[istitutoMittente.identificativoUnivocoMittente.tipoIdentificativoUnivoco] \nG -> LEGAL_PERSON\nA -> ABI_CODE\nB -> BIC_CODE", + "type": "string", + "allOf": [ + { + "$ref": "#/components/schemas/SenderTypeEnum" + } + ], + "example": "LEGAL_PERSON" + }, + "id": { + "description": "[XML FlussoRiversamento]=[istitutoMittente.identificativoUnivocoMittente.codiceIdentificativoUnivoco]", + "pattern": "^(.{1,35})$", + "type": "string", + "example": "SELBIT2B" + }, + "pspId": { + "description": "[XML NodoInviaFlussoRendicontazione]=[identificativoPSP]", + "pattern": "^(.{1,35})$", + "type": "string", + "example": "60000000001" + }, + "pspName": { + "description": "[XML FlussoRiversamento]=[istitutoMittente.denominazioneMittente]", + "pattern": "^(.{3,70})$", + "type": "string", + "example": "Bank" + }, + "pspBrokerId": { + "description": "[XML NodoInviaFlussoRendicontazione]=[identificativoIntermediarioPSP]", + "pattern": "^(.{1,35})$", + "type": "string", + "example": "70000000001" + }, + "channelId": { + "description": "[XML NodoInviaFlussoRendicontazione]=[identificativoCanale]", + "pattern": "^(.{1,35})$", + "type": "string", + "example": "80000000001" + }, + "password": { + "description": "[XML NodoInviaFlussoRendicontazione]=[password]", + "pattern": "^(\\w{8,15})$", + "type": "string", + "example": "1234567890", + "deprecated": true } } }, - "SenderTypeEnum" : { - "enum" : [ "LEGAL_PERSON", "ABI_CODE", "BIC_CODE" ], - "type" : "string" + "SenderTypeEnum": { + "enum": [ + "LEGAL_PERSON", + "ABI_CODE", + "BIC_CODE" + ], + "type": "string" } }, - "responses" : { - "AppException400" : { - "description" : "Default app exception for status 400", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" + "responses": { + "AppException400": { + "description": "Default app exception for status 400", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" }, - "examples" : { - "Error" : { - "value" : { - "httpStatusCode" : 400, - "httpStatusDescription" : "Bad Request", - "appErrorCode" : "FDR-0702", - "errors" : [ { - "message" : "Reporting Fdr [] is invalid" - } ] + "examples": { + "Error": { + "value": { + "httpStatusCode": 400, + "httpStatusDescription": "Bad Request", + "appErrorCode": "FDR-0702", + "errors": [ + { + "message": "Reporting Fdr [] is invalid" + } + ] } }, - "Errors with path" : { - "value" : { - "httpStatusCode" : 400, - "httpStatusDescription" : "Bad Request", - "appErrorCode" : "FDR-0702", - "errors" : [ { - "path" : "", - "message" : "" - } ] + "Errors with path": { + "value": { + "httpStatusCode": 400, + "httpStatusDescription": "Bad Request", + "appErrorCode": "FDR-0702", + "errors": [ + { + "path": "", + "message": "" + } + ] } } } } } }, - "AppException404" : { - "description" : "Default app exception for status 404", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" + "AppException404": { + "description": "Default app exception for status 404", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" }, - "example" : { - "httpStatusCode" : 404, - "httpStatusDescription" : "Not Found", - "appErrorCode" : "FDR-0701", - "errors" : [ { - "message" : "Reporting Fdr [] not found" - } ] + "example": { + "httpStatusCode": 404, + "httpStatusDescription": "Not Found", + "appErrorCode": "FDR-0701", + "errors": [ + { + "message": "Reporting Fdr [] not found" + } + ] } } } }, - "InternalServerError" : { - "description" : "Internal Server Error", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" + "InternalServerError": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" }, - "example" : { - "errorId" : "50905466-1881-457b-b42f-fb7b2bfb1610", - "httpStatusCode" : 500, - "httpStatusDescription" : "Internal Server Error", - "appErrorCode" : "FDR-0500", - "errors" : [ { - "message" : "An unexpected error has occurred. Please contact support." - } ] + "example": { + "errorId": "50905466-1881-457b-b42f-fb7b2bfb1610", + "httpStatusCode": 500, + "httpStatusDescription": "Internal Server Error", + "appErrorCode": "FDR-0500", + "errors": [ + { + "message": "An unexpected error has occurred. Please contact support." + } + ] } } } } }, - "securitySchemes" : { - "api_key" : { - "type" : "apiKey", - "name" : "Ocp-Apim-Subscription-Key", - "in" : "header" + "securitySchemes": { + "api_key": { + "type": "apiKey", + "name": "Ocp-Apim-Subscription-Key", + "in": "header" }, - "SecurityScheme" : { - "type" : "http", - "description" : "Authentication", - "scheme" : "basic" + "SecurityScheme": { + "type": "http", + "description": "Authentication", + "scheme": "basic" } } } -} \ No newline at end of file +} diff --git a/pom.xml b/pom.xml index 6dd35da2..f7bcc4cc 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 it.gov.pagopa pagopa-fdr - 1.0.15 + 1.0.16 3.11.0 1.18.26 From 59c71dd852b3102d491a32cd8050d939275d421c Mon Sep 17 00:00:00 2001 From: Francesco Cesareo Date: Mon, 6 May 2024 17:18:44 +0200 Subject: [PATCH 4/5] fix identity --- .../04h_deploy_with_github_runner.yml | 10 +- .github/workflows/06_integration_test.yml | 2 +- .identity/.terraform.lock.hcl | 20 ---- .identity/00_data.tf | 24 ++++- .identity/02_application_action.tf | 98 +------------------ .identity/03_github_environment.tf | 42 +++++--- .identity/99_variables.tf | 4 + 7 files changed, 62 insertions(+), 138 deletions(-) diff --git a/.github/workflows/04h_deploy_with_github_runner.yml b/.github/workflows/04h_deploy_with_github_runner.yml index 0cb12ea3..df047110 100644 --- a/.github/workflows/04h_deploy_with_github_runner.yml +++ b/.github/workflows/04h_deploy_with_github_runner.yml @@ -35,7 +35,7 @@ jobs: # from https://github.com/pagopa/eng-github-actions-iac-template/tree/main/azure/github-self-hosted-runner-azure-create-action uses: pagopa/eng-github-actions-iac-template/azure/github-self-hosted-runner-azure-create-action@main with: - client_id: ${{ secrets.CLIENT_ID }} + client_id: ${{ secrets.CD_CLIENT_ID }} tenant_id: ${{ secrets.TENANT_ID }} subscription_id: ${{ secrets.SUBSCRIPTION_ID }} container_app_environment_name: ${{ vars.CONTAINER_APP_ENVIRONMENT_NAME }} @@ -53,7 +53,7 @@ jobs: uses: pagopa/github-actions-template/aks-deploy@main with: branch: ${{ github.ref_name }} - client_id: ${{ secrets.CLIENT_ID }} + client_id: ${{ secrets.CD_CLIENT_ID }} subscription_id: ${{ secrets.SUBSCRIPTION_ID }} tenant_id: ${{ secrets.TENANT_ID }} env: ${{ inputs.environment }} @@ -75,7 +75,7 @@ jobs: # from https://github.com/pagopa/eng-github-actions-iac-template/tree/main/azure/github-self-hosted-runner-azure-cleanup-action uses: pagopa/eng-github-actions-iac-template/azure/github-self-hosted-runner-azure-cleanup-action@0ee2f58fd46d10ac7f00bce4304b98db3dbdbe9a with: - client_id: ${{ secrets.CLIENT_ID }} + client_id: ${{ secrets.CD_CLIENT_ID }} tenant_id: ${{ secrets.TENANT_ID }} subscription_id: ${{ secrets.SUBSCRIPTION_ID }} resource_group_name: ${{ vars.CONTAINER_APP_ENVIRONMENT_RESOURCE_GROUP_NAME }} @@ -107,7 +107,7 @@ jobs: # from https://github.com/Azure/login/commits/master uses: azure/login@92a5484dfaf04ca78a94597f4f19fea633851fa2 with: - client-id: ${{ secrets.CLIENT_ID }} + client-id: ${{ secrets.CD_CLIENT_ID }} tenant-id: ${{ secrets.TENANT_ID }} subscription-id: ${{ secrets.SUBSCRIPTION_ID }} @@ -115,7 +115,7 @@ jobs: shell: bash run: | cd ./infra - export ARM_CLIENT_ID="${{ secrets.CLIENT_ID }}" + export ARM_CLIENT_ID="${{ secrets.CD_CLIENT_ID }}" export ARM_SUBSCRIPTION_ID=$(az account show --query id --output tsv) export ARM_TENANT_ID=$(az account show --query tenantId --output tsv) export ARM_USE_OIDC=true diff --git a/.github/workflows/06_integration_test.yml b/.github/workflows/06_integration_test.yml index 91102abf..afe84d4a 100644 --- a/.github/workflows/06_integration_test.yml +++ b/.github/workflows/06_integration_test.yml @@ -65,7 +65,7 @@ jobs: # from https://github.com/Azure/login/commits/master uses: azure/login@92a5484dfaf04ca78a94597f4f19fea633851fa2 with: - client-id: ${{ secrets.CLIENT_ID }} + client-id: ${{ secrets.CI_CLIENT_ID }} tenant-id: ${{ secrets.TENANT_ID }} subscription-id: ${{ secrets.SUBSCRIPTION_ID }} diff --git a/.identity/.terraform.lock.hcl b/.identity/.terraform.lock.hcl index 8a81fd03..002ebc40 100644 --- a/.identity/.terraform.lock.hcl +++ b/.identity/.terraform.lock.hcl @@ -43,26 +43,6 @@ provider "registry.terraform.io/hashicorp/azurerm" { ] } -provider "registry.terraform.io/hashicorp/null" { - version = "3.2.1" - hashes = [ - "h1:tSj1mL6OQ8ILGqR2mDu7OYYYWf+hoir0pf9KAQ8IzO8=", - "h1:ydA0/SNRVB1o95btfshvYsmxA+jZFRZcvKzZSB+4S1M=", - "zh:58ed64389620cc7b82f01332e27723856422820cfd302e304b5f6c3436fb9840", - "zh:62a5cc82c3b2ddef7ef3a6f2fedb7b9b3deff4ab7b414938b08e51d6e8be87cb", - "zh:63cff4de03af983175a7e37e52d4bd89d990be256b16b5c7f919aff5ad485aa5", - "zh:74cb22c6700e48486b7cabefa10b33b801dfcab56f1a6ac9b6624531f3d36ea3", - "zh:78d5eefdd9e494defcb3c68d282b8f96630502cac21d1ea161f53cfe9bb483b3", - "zh:79e553aff77f1cfa9012a2218b8238dd672ea5e1b2924775ac9ac24d2a75c238", - "zh:a1e06ddda0b5ac48f7e7c7d59e1ab5a4073bbcf876c73c0299e4610ed53859dc", - "zh:c37a97090f1a82222925d45d84483b2aa702ef7ab66532af6cbcfb567818b970", - "zh:e4453fbebf90c53ca3323a92e7ca0f9961427d2f0ce0d2b65523cc04d5d999c2", - "zh:e80a746921946d8b6761e77305b752ad188da60688cfd2059322875d363be5f5", - "zh:fbdb892d9822ed0e4cb60f2fedbdbb556e4da0d88d3b942ae963ed6ff091e48f", - "zh:fca01a623d90d0cad0843102f9b8b9fe0d3ff8244593bd817f126582b52dd694", - ] -} - provider "registry.terraform.io/integrations/github" { version = "5.18.3" constraints = "5.18.3" diff --git a/.identity/00_data.tf b/.identity/00_data.tf index 067a81e1..a7b5fc3c 100644 --- a/.identity/00_data.tf +++ b/.identity/00_data.tf @@ -22,6 +22,15 @@ data "azurerm_key_vault" "domain_key_vault" { resource_group_name = "pagopa-${var.env_short}-${local.domain}-sec-rg" } +data "azurerm_key_vault" "nodo_key_vault" { + name = "pagopa-${var.env_short}-nodo-kv" + resource_group_name = "pagopa-${var.env_short}-nodo-sec-rg" +} + +data "azurerm_resource_group" "apim_resource_group" { + name = "${local.product}-api-rg" +} + data "azurerm_key_vault_secret" "key_vault_sonar" { name = "sonar-token" key_vault_id = data.azurerm_key_vault.key_vault.id @@ -49,11 +58,22 @@ data "azurerm_key_vault_secret" "key_vault_slack_webhook_url" { key_vault_id = data.azurerm_key_vault.domain_key_vault.id } -data "azurerm_resource_group" "app_rg" { - name = "${local.prefix}-${var.env_short}-${local.location_short}-${local.domain}-rg" +data "azurerm_key_vault_secret" "key_vault_integration_test_slack_webhook_url" { + name = "integrationtest-slack-webhook-url" + key_vault_id = data.azurerm_key_vault.nodo_key_vault.id +} + +data "azurerm_user_assigned_identity" "identity_cd" { + name = "${local.product}-${local.domain}-01-github-cd-identity" + resource_group_name = "${local.product}-identity-rg" } data "azurerm_storage_account" "integration_test_storage_account" { name = local.integration_test.storage_account_name resource_group_name = local.integration_test.storage_account_rg } + +data "azurerm_user_assigned_identity" "identity_ci" { + name = "${local.product}-${local.domain}-01-github-ci-identity" + resource_group_name = "${local.product}-identity-rg" +} \ No newline at end of file diff --git a/.identity/02_application_action.tf b/.identity/02_application_action.tf index 1ef2889a..4a371a38 100644 --- a/.identity/02_application_action.tf +++ b/.identity/02_application_action.tf @@ -1,101 +1,5 @@ -module "github_runner_app" { - source = "git::https://github.com/pagopa/github-actions-tf-modules.git//app-github-runner-creator?ref=main" - - app_name = local.app_name - - subscription_id = data.azurerm_subscription.current.id - - github_org = local.github.org - github_repository = local.github.repository - github_environment_name = var.env - - container_app_github_runner_env_rg = local.container_app_environment.resource_group -} - -resource "null_resource" "github_runner_app_permissions_to_namespace" { - triggers = { - aks_id = data.azurerm_kubernetes_cluster.aks.id - service_principal_id = module.github_runner_app.client_id - namespace = local.domain - version = "v2" - } - - provisioner "local-exec" { - command = < Date: Mon, 6 May 2024 17:57:33 +0200 Subject: [PATCH 5/5] fix integration test --- .identity/.terraform.lock.hcl | 19 +++++++++++++++++++ integration-test/config/config.json | 6 +++--- integration-test/steps/steps.py | 29 +++++++++-------------------- 3 files changed, 31 insertions(+), 23 deletions(-) diff --git a/.identity/.terraform.lock.hcl b/.identity/.terraform.lock.hcl index 002ebc40..5d31003a 100644 --- a/.identity/.terraform.lock.hcl +++ b/.identity/.terraform.lock.hcl @@ -43,6 +43,25 @@ provider "registry.terraform.io/hashicorp/azurerm" { ] } +provider "registry.terraform.io/hashicorp/null" { + version = "3.2.2" + hashes = [ + "h1:vWAsYRd7MjYr3adj8BVKRohVfHpWQdvkIwUQ2Jf5FVM=", + "zh:3248aae6a2198f3ec8394218d05bd5e42be59f43a3a7c0b71c66ec0df08b69e7", + "zh:32b1aaa1c3013d33c245493f4a65465eab9436b454d250102729321a44c8ab9a", + "zh:38eff7e470acb48f66380a73a5c7cdd76cc9b9c9ba9a7249c7991488abe22fe3", + "zh:4c2f1faee67af104f5f9e711c4574ff4d298afaa8a420680b0cb55d7bbc65606", + "zh:544b33b757c0b954dbb87db83a5ad921edd61f02f1dc86c6186a5ea86465b546", + "zh:696cf785090e1e8cf1587499516b0494f47413b43cb99877ad97f5d0de3dc539", + "zh:6e301f34757b5d265ae44467d95306d61bef5e41930be1365f5a8dcf80f59452", + "zh:78d5eefdd9e494defcb3c68d282b8f96630502cac21d1ea161f53cfe9bb483b3", + "zh:913a929070c819e59e94bb37a2a253c228f83921136ff4a7aa1a178c7cce5422", + "zh:aa9015926cd152425dbf86d1abdbc74bfe0e1ba3d26b3db35051d7b9ca9f72ae", + "zh:bb04798b016e1e1d49bcc76d62c53b56c88c63d6f2dfe38821afef17c416a0e1", + "zh:c23084e1b23577de22603cff752e59128d83cfecc2e6819edadd8cf7a10af11e", + ] +} + provider "registry.terraform.io/integrations/github" { version = "5.18.3" constraints = "5.18.3" diff --git a/integration-test/config/config.json b/integration-test/config/config.json index ce715195..a37db0c8 100644 --- a/integration-test/config/config.json +++ b/integration-test/config/config.json @@ -13,12 +13,12 @@ } }, "global_configuration": { - "psp": "60000000001", - "channel": "15376371009_04", + "psp": "88888888888", + "channel": "88888888888_01", "channel_password": "PLACEHOLDER", "organization": "15376371009", "broker_org": "15376371009", - "broker_psp": "60000000001", + "broker_psp": "88888888888", "station": "15376371009_03", "station_password": "PLACEHOLDER" } diff --git a/integration-test/steps/steps.py b/integration-test/steps/steps.py index 6b20b55e..3a0e532c 100644 --- a/integration-test/steps/steps.py +++ b/integration-test/steps/steps.py @@ -9,6 +9,7 @@ # Constants RESPONSE = "RES" REQUEST = "REQ" +OCP_APIM_SUBSCRIPTION_KEY = "Ocp-Apim-Subscription-Key" @given('systems up') @@ -28,7 +29,7 @@ def step_impl(context): subscription_key = row.get("subscription_key") headers = {'Content-Type': 'application/json'} if subscription_key is not None: - headers['Ocp-Apim-Subscription-Key'] = subscription_key + headers[OCP_APIM_SUBSCRIPTION_KEY] = subscription_key resp = requests.get(url, headers=headers, verify=False) logging.debug(f"response: {resp.status_code}") responses &= (resp.status_code == 200) @@ -73,30 +74,17 @@ def step_impl(context, partner, request_type, payload): subscription_key = utils.get_subscription_key(context, partner) headers = {'Content-Type': 'application/json'} if subscription_key is not None: - headers['Ocp-Apim-Subscription-Key'] = subscription_key + headers[OCP_APIM_SUBSCRIPTION_KEY] = subscription_key + execute_request(context, partner, request_type, headers, payload) - endpoint_info = utils.get_fdr_url(request_type) - endpoint = utils.replace_local_variables(endpoint_info.get("endpoint"), context) - endpoint = utils.replace_global_variables(endpoint, context) - endpoint_info["endpoint"] = endpoint - url = utils.get_url(context, partner) + endpoint - - if hasattr(context, "query_params"): - query_params = getattr(context, "query_params") - delattr(context, "query_params") - url += "?" + query_params - - data = None - if payload != 'None': - data = getattr(context, payload) - response = utils.execute_request(url=url, method=endpoint_info.get("method"), headers=headers, payload=data) - setattr(context, request_type + RESPONSE, response) @when('{partner} with invalid subscription_key request {request_type} to fdr-microservice with {payload}') def step_impl(context, partner, request_type, payload): - headers = {'Content-Type': 'application/json'} - headers['Ocp-Apim-Subscription-Key'] = "00000000000000" + headers = {'Content-Type': 'application/json', OCP_APIM_SUBSCRIPTION_KEY: "00000000000000"} + execute_request(context, partner, request_type, headers, payload) + +def execute_request(context, partner, request_type, headers, payload): endpoint_info = utils.get_fdr_url(request_type) endpoint = utils.replace_local_variables(endpoint_info.get("endpoint"), context) endpoint = utils.replace_global_variables(endpoint, context) @@ -141,6 +129,7 @@ def step_impl(context, number, amount, flow_name, payload): for i in range(0, int(number)): pay_date = today - datetime.timedelta(days=i) single_payment = { + "idTransfer": 1, "iuv": utils.generate_iuv(), "iur": utils.generate_iur(), "index": i+1,