From 6e5959e0cd6a529a26287af69f6c87aeb2c62e56 Mon Sep 17 00:00:00 2001 From: Ivan Koriakovskii Date: Thu, 1 Feb 2024 15:30:53 +0300 Subject: [PATCH] =?UTF-8?q?PROF-24570=20=D0=BF=D1=80=D0=B0=D0=B2=D0=BA?= =?UTF-8?q?=D0=B8=20=D0=BF=D0=BE=20v3=20api?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- precalc-api.json | 45 ++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 44 insertions(+), 1 deletion(-) diff --git a/precalc-api.json b/precalc-api.json index 22894bc..ed4ecb2 100644 --- a/precalc-api.json +++ b/precalc-api.json @@ -28,7 +28,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ExternalPrecalcRequestDto" + "$ref": "#/components/schemas/RequestV3" } } }, @@ -363,6 +363,49 @@ }, "description": "Request for payment calculation (either 'fromAmount' or 'toAmount' must be specified)" }, + "RequestV3": { + "required": [ + "merchantId", + "fromCurrency", + "toCurrency" + ], + "type": "object", + "properties": { + "merchantId": { + "type": "string", + "description": "Merchant ID" + }, + "methodId": { + "type": "string", + "description": "Payment method type id" + }, + "fromCountry": { + "type": "string", + "description": "Source country (ISO Alpha2 code)" + }, + "fromCurrency": { + "type": "string", + "description": "Source currency (ISO code)" + }, + "fromAmount": { + "type": "number", + "description": "Source amount (one of fromAmount and toAmount must be specified)" + }, + "toCountry": { + "type": "string", + "description": "Destination country (ISO Alpa2 code)" + }, + "toCurrency": { + "type": "string", + "description": "Destination currency (ISO code)" + }, + "toAmount": { + "type": "number", + "description": "Destination amount (one of fromAmount and toAmount must be specified)" + } + }, + "description": "Request for payment calculation (either 'fromAmount' or 'toAmount' must be specified)" + }, "CorridorDescriptorDto": { "type": "object", "properties": {