diff --git a/src/domains/gps-app/api/payments-service/v1/rest/external/_openapi.json.tpl b/src/domains/gps-app/api/payments-service/v1/rest/external/_openapi.json.tpl index 254ce01c84..821a58b2e2 100644 --- a/src/domains/gps-app/api/payments-service/v1/rest/external/_openapi.json.tpl +++ b/src/domains/gps-app/api/payments-service/v1/rest/external/_openapi.json.tpl @@ -4,7 +4,7 @@ "title": "PagoPA API Payments", "description": "Payments", "termsOfService": "https://www.pagopa.gov.it/", - "version": "0.8.0-1-PAGOPA-1140-sviluppo-gpd-payments-gestione-enti-pluri-intermediati" + "version": "0.12.29-3-sampling" }, "servers": [ { @@ -155,24 +155,25 @@ { "name": "pageNum", "in": "query", - "description": "Page number", - "required": true, + "description": "Page number, starts from 0", + "required": false, "schema": { "minimum": 0, "type": "integer", - "format": "int32" + "format": "int32", + "default": 0 } }, { "name": "pageSize", "in": "query", - "description": "Number of elements per page. Default = 50", + "description": "Number of elements per page. Default = 20", "required": false, "schema": { "maximum": 100, "type": "integer", "format": "int32", - "default": 50 + "default": 20 } }, { @@ -210,6 +211,25 @@ "schema": { "type": "string" } + }, + { + "name": "segregationCodes", + "in": "query", + "description": "Segregation codes for which broker is authorized", + "required": false, + "schema": { + "pattern": "\\d{2}(,\\d{2})*", + "type": "string" + } + }, + { + "name": "debtorOrIuv", + "in": "query", + "description": "Filter start of debtor or IUV", + "required": false, + "schema": { + "type": "string" + } } ], "responses": { @@ -226,7 +246,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ReceiptsInfo" + "$ref": "#/components/schemas/PaymentsResult" } } } @@ -326,6 +346,16 @@ "type": "string" }, "example": "ABC123" + }, + { + "name": "segregationCodes", + "in": "query", + "description": "Segregation codes for which broker is authorized", + "required": false, + "schema": { + "pattern": "\\d{2}(,\\d{2})*", + "type": "string" + } } ], "responses": { @@ -468,36 +498,25 @@ } } }, - "ReceiptModelResponse": { + "PaymentsResult": { "type": "object", "properties": { - "organizationFiscalCode": { - "type": "string" - }, - "iuv": { - "type": "string" + "currentPageNumber": { + "type": "integer", + "format": "int32" }, - "debtor": { - "type": "string" + "length": { + "type": "integer", + "format": "int32" }, - "paymentDateTime": { - "type": "string" + "totalPages": { + "type": "integer", + "format": "int32" }, - "status": { - "type": "string" - } - } - }, - "ReceiptsInfo": { - "required": [ - "receipts_list" - ], - "type": "object", - "properties": { - "receipts_list": { + "results": { "type": "array", "items": { - "$ref": "#/components/schemas/ReceiptModelResponse" + "type": "object" } } }