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": {