diff --git a/mod-finance/examples/exchange_rate_calculations.sample b/mod-finance/examples/exchange_rate_calculations.sample index 0e7f13ac..6fb1d067 100644 --- a/mod-finance/examples/exchange_rate_calculations.sample +++ b/mod-finance/examples/exchange_rate_calculations.sample @@ -10,13 +10,15 @@ "from": "EUR", "to": "GBP", "amount": 500, - "rate": 0.90 + "rate": 0.90, + "operationMode": "MULTIPLY" }, { "from": "GBP", "to": "JPY", "amount": 200, - "rate": 150.00 + "rate": 150.00, + "operationMode": "DIVIDE" } ] } diff --git a/mod-finance/schemas/exchange_rate_calculations.json b/mod-finance/schemas/exchange_rate_calculations.json index 732ae8c7..6cc5a267 100644 --- a/mod-finance/schemas/exchange_rate_calculations.json +++ b/mod-finance/schemas/exchange_rate_calculations.json @@ -29,6 +29,10 @@ "calculation": { "description": "Calculated exchange rate value", "type": "number" + }, + "operationMode": { + "description": "Operation mode for manual exchange rate to use, supports null, MULTIPLY (inferred default) or DIVIDE", + "type": "string" } }, "additionalProperties": false,