From 3d5314f800d809189ed76c13fd299134c5cab711 Mon Sep 17 00:00:00 2001 From: Ivan Koriakovskii Date: Tue, 30 Jan 2024 14:24:52 +0300 Subject: [PATCH] =?UTF-8?q?PROF-24570=20=D0=B0=D0=BA=D1=82=D1=83=D0=B0?= =?UTF-8?q?=D0=BB=D0=B8=D0=B7=D0=B0=D1=86=D0=B8=D1=8F=20=D0=BE=D1=82=D0=B2?= =?UTF-8?q?=D0=B5=D1=82=D0=B0=20=D0=B4=D0=BB=D1=8F=20v3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- precalc-api.json | 50 ++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 48 insertions(+), 2 deletions(-) diff --git a/precalc-api.json b/precalc-api.json index 69fbe5b..22894bc 100644 --- a/precalc-api.json +++ b/precalc-api.json @@ -257,14 +257,60 @@ }, "description": "Payment calculation result" }, + "ResponseDtoV3": { + "type": "object", + "properties": { + "precalcId": { + "type": "string", + "description": "Calculation ID" + }, + "fromCurrency": { + "type": "string", + "description": "Source currency" + }, + "fromAmount": { + "type": "number", + "description": "Source amount" + }, + "toCurrency": { + "type": "string", + "description": "Destination currency" + }, + "toAmount": { + "type": "number", + "description": "Destination amount" + }, + "feeCurrency": { + "type": "string", + "description": "Fee currency" + }, + "feeAmount": { + "type": "number", + "description": "Fee amount" + }, + "rateFromCurrency": { + "type": "string", + "description": "Rate source currency" + }, + "rateToCurrency": { + "type": "string", + "description": "Rate destination currency" + }, + "rateAmount": { + "type": "number", + "description": "Currency rate amount" + } + }, + "description": "Payment calculation result V3" + }, "PrecalcResponseDtoV3": { "type": "object", "properties": { "promotion": { - "$ref": "#/components/schemas/ResponseDto" + "$ref": "#/components/schemas/ResponseDtoV3" }, "standard": { - "$ref": "#/components/schemas/ResponseDto" + "$ref": "#/components/schemas/ResponseDtoV3" } } },