From e1315652b5e6c93bfcdd3ab3ede2496bb13e8428 Mon Sep 17 00:00:00 2001 From: pagopa-github-bot Date: Thu, 13 Jul 2023 07:37:01 +0000 Subject: [PATCH] Bump to version 2.6.4 [skip ci] --- helm/Chart.yaml | 4 +- helm/values-dev.yaml | 4 +- helm/values-prod.yaml | 4 +- helm/values-uat.yaml | 4 +- openapi/openapi-node.json | 4 +- openapi/openapi.json | 2138 ++++++++++++++++++------------------- pom.xml | 2 +- 7 files changed, 1080 insertions(+), 1080 deletions(-) diff --git a/helm/Chart.yaml b/helm/Chart.yaml index 231cc5c3..2a5220bc 100644 --- a/helm/Chart.yaml +++ b/helm/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: pagopa-afm-calculator description: Microservice that handles calculation for pagoPA Advanced Fees Management type: application -version: 2.21.0 -appVersion: 2.6.3-1-PAGOPA-1023-sviluppo-aggiunta-all-ccp-su-get-fees-by-psp +version: 2.22.0 +appVersion: 2.6.4 dependencies: - name: microservice-chart version: 1.21.0 diff --git a/helm/values-dev.yaml b/helm/values-dev.yaml index 972589dd..74aba1fa 100644 --- a/helm/values-dev.yaml +++ b/helm/values-dev.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-afm-calculator - tag: "2.6.3-1-PAGOPA-1023-sviluppo-aggiunta-all-ccp-su-get-fees-by-psp" + tag: "2.6.4" pullPolicy: Always livenessProbe: httpGet: @@ -109,7 +109,7 @@ microservice-chart: create: true image: repository: ghcr.io/pagopa/pagopa-afm-calculator - tag: "2.6.3-1-PAGOPA-1023-sviluppo-aggiunta-all-ccp-su-get-fees-by-psp" + tag: "2.6.4" pullPolicy: Always envConfig: envSecret: diff --git a/helm/values-prod.yaml b/helm/values-prod.yaml index c7006c43..ea3397ab 100644 --- a/helm/values-prod.yaml +++ b/helm/values-prod.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-afm-calculator - tag: "2.6.3-1-PAGOPA-1023-sviluppo-aggiunta-all-ccp-su-get-fees-by-psp" + tag: "2.6.4" pullPolicy: Always livenessProbe: httpGet: @@ -108,7 +108,7 @@ microservice-chart: create: true image: repository: ghcr.io/pagopa/pagopa-afm-calculator - tag: "2.6.3-1-PAGOPA-1023-sviluppo-aggiunta-all-ccp-su-get-fees-by-psp" + tag: "2.6.4" pullPolicy: Always envConfig: envSecret: diff --git a/helm/values-uat.yaml b/helm/values-uat.yaml index 2486f1af..81c95f53 100644 --- a/helm/values-uat.yaml +++ b/helm/values-uat.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-afm-calculator - tag: "2.6.3-1-PAGOPA-1023-sviluppo-aggiunta-all-ccp-su-get-fees-by-psp" + tag: "2.6.4" pullPolicy: Always livenessProbe: httpGet: @@ -108,7 +108,7 @@ microservice-chart: create: true image: repository: ghcr.io/pagopa/pagopa-afm-calculator - tag: "2.6.3-1-PAGOPA-1023-sviluppo-aggiunta-all-ccp-su-get-fees-by-psp" + tag: "2.6.4" pullPolicy: Always envConfig: envSecret: diff --git a/openapi/openapi-node.json b/openapi/openapi-node.json index 2cfc5f80..61f03b69 100644 --- a/openapi/openapi-node.json +++ b/openapi/openapi-node.json @@ -4,7 +4,7 @@ "title": "PagoPA API Calculator Logic for Node", "description": "Calculator Logic microservice for pagoPA AFM", "termsOfService": "https://www.pagopa.gov.it/", - "version": "2.6.3-1-PAGOPA-1023-sviluppo-aggiunta-all-ccp-su-get-fees-by-psp" + "version": "2.6.4" }, "servers": [ { @@ -851,4 +851,4 @@ } } } -} \ No newline at end of file +} diff --git a/openapi/openapi.json b/openapi/openapi.json index 390abdbb..e5e00c36 100644 --- a/openapi/openapi.json +++ b/openapi/openapi.json @@ -1,1122 +1,1122 @@ { - "openapi": "3.0.1", - "info": { - "title": "PagoPA API Calculator Logic", - "description": "Calculator Logic microservice for pagoPA AFM", - "termsOfService": "https://www.pagopa.gov.it/", - "version": "2.6.3-1-PAGOPA-1023-sviluppo-aggiunta-all-ccp-su-get-fees-by-psp" + "openapi": "3.0.1", + "info": { + "title": "PagoPA API Calculator Logic", + "description": "Calculator Logic microservice for pagoPA AFM", + "termsOfService": "https://www.pagopa.gov.it/", + "version": "2.6.4" + }, + "servers": [ + { + "url": "http://localhost:8080", + "description": "Generated server url" + } + ], + "tags": [ + { + "name": "Calculator", + "description": "Everything about Calculator business logic" }, - "servers": [ - { - "url": "http://localhost:8080", - "description": "Generated server url" + { + "name": "Configuration", + "description": "Utility Services" + } + ], + "paths": { + "/configuration/bundles/add": { + "post": { + "tags": [ + "Configuration" + ], + "operationId": "addValidBundles", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ValidBundle" + } + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "OK", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" + } + } + } + } } - ], - "tags": [ + }, + "parameters": [ { - "name": "Calculator", - "description": "Everything about Calculator business logic" + "name": "X-Request-Id", + "in": "header", + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema": { + "type": "string" + } + } + ] + }, + "/configuration/bundles/delete": { + "post": { + "tags": [ + "Configuration" + ], + "operationId": "deleteValidBundles", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ValidBundle" + } + } + } + }, + "required": true }, + "responses": { + "200": { + "description": "OK", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" + } + } + } + } + } + }, + "parameters": [ { - "name": "Configuration", - "description": "Utility Services" + "name": "X-Request-Id", + "in": "header", + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema": { + "type": "string" + } } - ], - "paths": { - "/configuration/bundles/add": { - "post": { - "tags": [ - "Configuration" - ], - "operationId": "addValidBundles", - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ValidBundle" - } - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" - } - } - } - } - } - }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + ] + }, + "/configuration/paymenttypes/add": { + "post": { + "tags": [ + "Configuration" + ], + "operationId": "addPaymentTypes", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PaymentType" } - ] + } + } + }, + "required": true }, - "/configuration/bundles/delete": { - "post": { - "tags": [ - "Configuration" - ], - "operationId": "deleteValidBundles", - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ValidBundle" - } - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" - } - } - } - } + "responses": { + "200": { + "description": "OK", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } - }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + } + } + } + } + }, + "parameters": [ + { + "name": "X-Request-Id", + "in": "header", + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema": { + "type": "string" + } + } + ] + }, + "/configuration/paymenttypes/delete": { + "post": { + "tags": [ + "Configuration" + ], + "operationId": "deletePaymentTypes", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PaymentType" } - ] + } + } + }, + "required": true }, - "/configuration/paymenttypes/add": { - "post": { - "tags": [ - "Configuration" - ], - "operationId": "addPaymentTypes", - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PaymentType" - } - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" - } - } - } - } + "responses": { + "200": { + "description": "OK", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } - }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + } + } + } + } + }, + "parameters": [ + { + "name": "X-Request-Id", + "in": "header", + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema": { + "type": "string" + } + } + ] + }, + "/configuration/touchpoint/add": { + "post": { + "tags": [ + "Configuration" + ], + "operationId": "addTouchpoints", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Touchpoint" } - ] + } + } + }, + "required": true }, - "/configuration/paymenttypes/delete": { - "post": { - "tags": [ - "Configuration" - ], - "operationId": "deletePaymentTypes", - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PaymentType" - } - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" - } - } - } - } + "responses": { + "200": { + "description": "OK", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } - }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + } + } + } + } + }, + "parameters": [ + { + "name": "X-Request-Id", + "in": "header", + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema": { + "type": "string" + } + } + ] + }, + "/configuration/touchpoint/delete": { + "post": { + "tags": [ + "Configuration" + ], + "operationId": "deleteTouchpoints", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Touchpoint" } - ] + } + } + }, + "required": true }, - "/configuration/touchpoint/add": { - "post": { - "tags": [ - "Configuration" - ], - "operationId": "addTouchpoints", - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Touchpoint" - } - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" - } - } - } - } + "responses": { + "200": { + "description": "OK", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } + } + } + } + } + }, + "parameters": [ + { + "name": "X-Request-Id", + "in": "header", + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema": { + "type": "string" + } + } + ] + }, + "/fees": { + "post": { + "tags": [ + "Calculator" + ], + "summary": "Get taxpayer fees of all or specified idPSP", + "operationId": "getFees", + "parameters": [ + { + "name": "maxOccurrences", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 10 + } + }, + { + "name": "allCcp", + "in": "query", + "description": "Flag for the exclusion of Poste bundles: false -> excluded, true or null -> included", + "required": false, + "schema": { + "type": "string", + "default": "true" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PaymentOption" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Ok", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" + } + } }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BundleOption" } - ] - }, - "/configuration/touchpoint/delete": { - "post": { - "tags": [ - "Configuration" - ], - "operationId": "deleteTouchpoints", - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Touchpoint" - } - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" - } - } - } - } + } + } + }, + "400": { + "description": "Bad Request", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } + } }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } - ] - }, - "/fees": { - "post": { - "tags": [ - "Calculator" - ], - "summary": "Get taxpayer fees of all or specified idPSP", - "operationId": "getFees", - "parameters": [ - { - "name": "maxOccurrences", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "default": 10 - } - }, - { - "name": "allCcp", - "in": "query", - "description": "Flag for the exclusion of Poste bundles: false -> excluded, true or null -> included", - "required": false, - "schema": { - "type": "string", - "default": "true" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PaymentOption" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Ok", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" - } - } - }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BundleOption" - } - } - } - }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" - } - } - }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" - } - } - } - }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" - } - } - } - }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" - } - } - }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" - } - } - } - }, - "422": { - "description": "Unable to process the request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" - } - } - }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" - } - } - } - }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" - } - } - } - }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" - } - } - }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" - } - } - } - } - }, - "security": [ - { - "ApiKey": [] - } - ] + } + } + }, + "401": { + "description": "Unauthorized", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" + } + } + } + }, + "404": { + "description": "Not Found", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" + } + } }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } - ] - }, - "/info": { - "get": { - "tags": [ - "Home" - ], - "summary": "health check", - "description": "Return OK if application is started", - "operationId": "healthCheck", - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" - } - } - }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/AppInfo" - } - } - } - }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" - } - } - }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" - } - } - } - }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" - } - } - } - }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" - } - } - } - }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" - } - } - } - }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" - } - } - }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" - } - } - } - } - }, - "security": [ - { - "ApiKey": [] - } - ] + } + } + }, + "422": { + "description": "Unable to process the request", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" + } + } }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } - ] - }, - "/psps/{idPsp}/fees": { - "post": { - "tags": [ - "Calculator" - ], - "summary": "Get taxpayer fees of the specified idPSP", - "operationId": "getFeesByPsp", - "parameters": [ - { - "name": "idPsp", - "in": "path", - "description": "PSP identifier", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "maxOccurrences", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "default": 10 - } - }, - { - "name": "allCcp", - "in": "query", - "description": "Flag for the exclusion of Poste bundles: false -> excluded, true or null -> included", - "required": false, - "schema": { - "type": "string", - "default": "true" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PaymentOptionByPsp" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Ok", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" - } - } - }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BundleOption" - } - } - } - }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" - } - } - }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" - } - } - } - }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" - } - } - } - }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" - } - } - }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" - } - } - } - }, - "422": { - "description": "Unable to process the request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" - } - } - }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" - } - } - } - }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" - } - } - } - }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" - } - } - }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" - } - } - } - } - }, - "security": [ - { - "ApiKey": [] - } - ] + } + } + }, + "429": { + "description": "Too many requests", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" + } + } + } + }, + "500": { + "description": "Service unavailable", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" + } + } }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } - ] + } + } + } + }, + "security": [ + { + "ApiKey": [] + } + ] + }, + "parameters": [ + { + "name": "X-Request-Id", + "in": "header", + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema": { + "type": "string" + } } + ] }, - "components": { - "schemas": { - "AppInfo": { - "type": "object", - "properties": { - "environment": { - "type": "string" - }, - "name": { - "type": "string" - }, - "version": { - "type": "string" - } + "/info": { + "get": { + "tags": [ + "Home" + ], + "summary": "health check", + "description": "Return OK if application is started", + "operationId": "healthCheck", + "responses": { + "200": { + "description": "OK", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } + } }, - "BundleOption": { - "type": "object", - "properties": { - "belowThreshold": { - "type": "boolean", - "description": "if true (the payment amount is lower than the threshold value) the bundles onus is not calculated (always false)" - }, - "bundleOptions": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Transfer" - } - } + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppInfo" } - }, - "CiBundle": { - "type": "object", - "properties": { - "attributes": { - "type": "array", - "items": { - "$ref": "#/components/schemas/CiBundleAttribute" - } - }, - "ciFiscalCode": { - "type": "string" - }, - "id": { - "type": "string" - } - }, - "required": [ - "ciFiscalCode", - "id" - ] - }, - "CiBundleAttribute": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "maxPaymentAmount": { - "type": "integer", - "format": "int64" - }, - "transferCategory": { - "type": "string" - }, - "transferCategoryRelation": { - "type": "string", - "enum": [ - "EQUAL", - "NOT_EQUAL" - ] - } - }, - "required": [ - "id" - ] - }, - "PaymentOption": { - "type": "object", - "properties": { - "bin": { - "type": "string" - }, - "idPspList": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PspSearchCriteria" - } - }, - "paymentAmount": { - "type": "integer", - "format": "int64" - }, - "paymentMethod": { - "type": "string" - }, - "primaryCreditorInstitution": { - "type": "string" - }, - "touchpoint": { - "type": "string" - }, - "transferList": { - "type": "array", - "items": { - "$ref": "#/components/schemas/TransferListItem" - } - } - }, - "required": [ - "paymentAmount", - "primaryCreditorInstitution", - "transferList" - ] - }, - "PaymentOptionByPsp": { - "type": "object", - "properties": { - "bin": { - "type": "string" - }, - "idBrokerPsp": { - "type": "string" - }, - "idChannel": { - "type": "string" - }, - "paymentAmount": { - "type": "integer", - "format": "int64" - }, - "paymentMethod": { - "type": "string" - }, - "primaryCreditorInstitution": { - "type": "string" - }, - "touchpoint": { - "type": "string" - }, - "transferList": { - "type": "array", - "items": { - "$ref": "#/components/schemas/TransferListItem" - } - } + } + } + }, + "400": { + "description": "Bad Request", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } + } }, - "PaymentType": { - "type": "object", - "properties": { - "createdDate": { - "type": "string", - "format": "date-time" - }, - "id": { - "type": "string" - }, - "name": { - "type": "string" - } - }, - "required": [ - "id", - "name" - ] + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" + } + } + } + }, + "401": { + "description": "Unauthorized", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" + } + } + } + }, + "403": { + "description": "Forbidden", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" + } + } + } + }, + "429": { + "description": "Too many requests", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" + } + } + } + }, + "500": { + "description": "Service unavailable", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" + } + } }, - "ProblemJson": { - "type": "object", - "properties": { - "detail": { - "type": "string", - "description": "A human readable explanation specific to this occurrence of the problem.", - "example": "There was an error processing the request" - }, - "status": { - "maximum": 600, - "minimum": 100, - "type": "integer", - "description": "The HTTP status code generated by the origin server for this occurrence of the problem.", - "format": "int32", - "example": 200 - }, - "title": { - "type": "string", - "description": "A short, summary of the problem type. Written in english and readable for engineers (usually not suited for non technical stakeholders and not localized); example: Service Unavailable" - } + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } + } + } + } + }, + "security": [ + { + "ApiKey": [] + } + ] + }, + "parameters": [ + { + "name": "X-Request-Id", + "in": "header", + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema": { + "type": "string" + } + } + ] + }, + "/psps/{idPsp}/fees": { + "post": { + "tags": [ + "Calculator" + ], + "summary": "Get taxpayer fees of the specified idPSP", + "operationId": "getFeesByPsp", + "parameters": [ + { + "name": "idPsp", + "in": "path", + "description": "PSP identifier", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "maxOccurrences", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 10 + } + }, + { + "name": "allCcp", + "in": "query", + "description": "Flag for the exclusion of Poste bundles: false -> excluded, true or null -> included", + "required": false, + "schema": { + "type": "string", + "default": "true" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PaymentOptionByPsp" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Ok", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" + } + } }, - "PspSearchCriteria": { - "type": "object", - "properties": { - "idBrokerPsp": { - "type": "string" - }, - "idChannel": { - "type": "string" - }, - "idPsp": { - "type": "string" - } - }, - "required": [ - "idPsp" - ] + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BundleOption" + } + } + } + }, + "400": { + "description": "Bad Request", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" + } + } }, - "Touchpoint": { - "type": "object", - "properties": { - "creationDate": { - "type": "string", - "format": "date-time" - }, - "id": { - "type": "string" - }, - "name": { - "type": "string" - } + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } + } + } + }, + "401": { + "description": "Unauthorized", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" + } + } + } + }, + "404": { + "description": "Not Found", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" + } + } }, - "Transfer": { - "type": "object", - "properties": { - "abi": { - "type": "string" - }, - "bundleDescription": { - "type": "string" - }, - "bundleName": { - "type": "string" - }, - "idBrokerPsp": { - "type": "string" - }, - "idBundle": { - "type": "string" - }, - "idChannel": { - "type": "string" - }, - "idCiBundle": { - "type": "string" - }, - "idPsp": { - "type": "string" - }, - "onUs": { - "type": "boolean" - }, - "paymentMethod": { - "type": "string" - }, - "primaryCiIncurredFee": { - "type": "integer", - "format": "int64" - }, - "taxPayerFee": { - "type": "integer", - "format": "int64" - }, - "touchpoint": { - "type": "string" - } + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } + } + } + }, + "422": { + "description": "Unable to process the request", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" + } + } }, - "TransferListItem": { - "type": "object", - "properties": { - "creditorInstitution": { - "type": "string" - }, - "digitalStamp": { - "type": "boolean" - }, - "transferCategory": { - "type": "string" - } + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" + } + } + } + }, + "429": { + "description": "Too many requests", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" + } + } + } + }, + "500": { + "description": "Service unavailable", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } + } }, - "ValidBundle": { - "type": "object", - "properties": { - "abi": { - "type": "string" - }, - "ciBundleList": { - "type": "array", - "items": { - "$ref": "#/components/schemas/CiBundle" - } - }, - "description": { - "type": "string" - }, - "digitalStamp": { - "type": "boolean" - }, - "digitalStampRestriction": { - "type": "boolean" - }, - "id": { - "type": "string" - }, - "idBrokerPsp": { - "type": "string" - }, - "idChannel": { - "type": "string" - }, - "idPsp": { - "type": "string" - }, - "maxPaymentAmount": { - "type": "integer", - "format": "int64" - }, - "minPaymentAmount": { - "type": "integer", - "format": "int64" - }, - "name": { - "type": "string" - }, - "onUs": { - "type": "boolean" - }, - "paymentAmount": { - "type": "integer", - "format": "int64" - }, - "paymentType": { - "type": "string" - }, - "touchpoint": { - "type": "string" - }, - "transferCategoryList": { - "type": "array", - "items": { - "type": "string" - } - }, - "type": { - "type": "string", - "enum": [ - "GLOBAL", - "PUBLIC", - "PRIVATE" - ] - } - }, - "required": [ - "digitalStamp", - "digitalStampRestriction" - ] + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" + } + } } + } }, - "securitySchemes": { - "ApiKey": { - "type": "apiKey", - "description": "The API key to access this function app.", - "name": "Ocp-Apim-Subscription-Key", - "in": "header" + "security": [ + { + "ApiKey": [] + } + ] + }, + "parameters": [ + { + "name": "X-Request-Id", + "in": "header", + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema": { + "type": "string" + } + } + ] + } + }, + "components": { + "schemas": { + "AppInfo": { + "type": "object", + "properties": { + "environment": { + "type": "string" + }, + "name": { + "type": "string" + }, + "version": { + "type": "string" + } + } + }, + "BundleOption": { + "type": "object", + "properties": { + "belowThreshold": { + "type": "boolean", + "description": "if true (the payment amount is lower than the threshold value) the bundles onus is not calculated (always false)" + }, + "bundleOptions": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Transfer" } + } } + }, + "CiBundle": { + "type": "object", + "properties": { + "attributes": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CiBundleAttribute" + } + }, + "ciFiscalCode": { + "type": "string" + }, + "id": { + "type": "string" + } + }, + "required": [ + "ciFiscalCode", + "id" + ] + }, + "CiBundleAttribute": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "maxPaymentAmount": { + "type": "integer", + "format": "int64" + }, + "transferCategory": { + "type": "string" + }, + "transferCategoryRelation": { + "type": "string", + "enum": [ + "EQUAL", + "NOT_EQUAL" + ] + } + }, + "required": [ + "id" + ] + }, + "PaymentOption": { + "type": "object", + "properties": { + "bin": { + "type": "string" + }, + "idPspList": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PspSearchCriteria" + } + }, + "paymentAmount": { + "type": "integer", + "format": "int64" + }, + "paymentMethod": { + "type": "string" + }, + "primaryCreditorInstitution": { + "type": "string" + }, + "touchpoint": { + "type": "string" + }, + "transferList": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TransferListItem" + } + } + }, + "required": [ + "paymentAmount", + "primaryCreditorInstitution", + "transferList" + ] + }, + "PaymentOptionByPsp": { + "type": "object", + "properties": { + "bin": { + "type": "string" + }, + "idBrokerPsp": { + "type": "string" + }, + "idChannel": { + "type": "string" + }, + "paymentAmount": { + "type": "integer", + "format": "int64" + }, + "paymentMethod": { + "type": "string" + }, + "primaryCreditorInstitution": { + "type": "string" + }, + "touchpoint": { + "type": "string" + }, + "transferList": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TransferListItem" + } + } + } + }, + "PaymentType": { + "type": "object", + "properties": { + "createdDate": { + "type": "string", + "format": "date-time" + }, + "id": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "required": [ + "id", + "name" + ] + }, + "ProblemJson": { + "type": "object", + "properties": { + "detail": { + "type": "string", + "description": "A human readable explanation specific to this occurrence of the problem.", + "example": "There was an error processing the request" + }, + "status": { + "maximum": 600, + "minimum": 100, + "type": "integer", + "description": "The HTTP status code generated by the origin server for this occurrence of the problem.", + "format": "int32", + "example": 200 + }, + "title": { + "type": "string", + "description": "A short, summary of the problem type. Written in english and readable for engineers (usually not suited for non technical stakeholders and not localized); example: Service Unavailable" + } + } + }, + "PspSearchCriteria": { + "type": "object", + "properties": { + "idBrokerPsp": { + "type": "string" + }, + "idChannel": { + "type": "string" + }, + "idPsp": { + "type": "string" + } + }, + "required": [ + "idPsp" + ] + }, + "Touchpoint": { + "type": "object", + "properties": { + "creationDate": { + "type": "string", + "format": "date-time" + }, + "id": { + "type": "string" + }, + "name": { + "type": "string" + } + } + }, + "Transfer": { + "type": "object", + "properties": { + "abi": { + "type": "string" + }, + "bundleDescription": { + "type": "string" + }, + "bundleName": { + "type": "string" + }, + "idBrokerPsp": { + "type": "string" + }, + "idBundle": { + "type": "string" + }, + "idChannel": { + "type": "string" + }, + "idCiBundle": { + "type": "string" + }, + "idPsp": { + "type": "string" + }, + "onUs": { + "type": "boolean" + }, + "paymentMethod": { + "type": "string" + }, + "primaryCiIncurredFee": { + "type": "integer", + "format": "int64" + }, + "taxPayerFee": { + "type": "integer", + "format": "int64" + }, + "touchpoint": { + "type": "string" + } + } + }, + "TransferListItem": { + "type": "object", + "properties": { + "creditorInstitution": { + "type": "string" + }, + "digitalStamp": { + "type": "boolean" + }, + "transferCategory": { + "type": "string" + } + } + }, + "ValidBundle": { + "type": "object", + "properties": { + "abi": { + "type": "string" + }, + "ciBundleList": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CiBundle" + } + }, + "description": { + "type": "string" + }, + "digitalStamp": { + "type": "boolean" + }, + "digitalStampRestriction": { + "type": "boolean" + }, + "id": { + "type": "string" + }, + "idBrokerPsp": { + "type": "string" + }, + "idChannel": { + "type": "string" + }, + "idPsp": { + "type": "string" + }, + "maxPaymentAmount": { + "type": "integer", + "format": "int64" + }, + "minPaymentAmount": { + "type": "integer", + "format": "int64" + }, + "name": { + "type": "string" + }, + "onUs": { + "type": "boolean" + }, + "paymentAmount": { + "type": "integer", + "format": "int64" + }, + "paymentType": { + "type": "string" + }, + "touchpoint": { + "type": "string" + }, + "transferCategoryList": { + "type": "array", + "items": { + "type": "string" + } + }, + "type": { + "type": "string", + "enum": [ + "GLOBAL", + "PUBLIC", + "PRIVATE" + ] + } + }, + "required": [ + "digitalStamp", + "digitalStampRestriction" + ] + } + }, + "securitySchemes": { + "ApiKey": { + "type": "apiKey", + "description": "The API key to access this function app.", + "name": "Ocp-Apim-Subscription-Key", + "in": "header" + } } + } } diff --git a/pom.xml b/pom.xml index 413f9192..c3983046 100644 --- a/pom.xml +++ b/pom.xml @@ -11,7 +11,7 @@ it.gov.pagopa calculator - 2.6.3-1-PAGOPA-1023-sviluppo-aggiunta-all-ccp-su-get-fees-by-psp + 2.6.4 afm-calculator Calculator Logic microservice for pagoPA AFM