setExchangeRates
void setExchangeRates(SessionId sessionId,
ExchangeRate[] exchangeRates,
string? referenceCurrency)
throws BasketServiceFault;
See also: v, SessionId, ExchangeRate, BasketServiceFault
Operation to set zero or more exchange rates.
For each specified instance of ExchangeRate, the attribute currency must be an ISO 4217 currency code known to the currency converter, and the attribute rate must be present and specify a number greater than zero. If the currency is equal to the reference currency, the rate must be 1.0.
If the operation terminates normally, all exchange rates have been updated as specified. Otherwise, if the operation terminates abnormally with a BasketServiceFault, no exchange rates have been modified. Otherwise (abnormal termination with another fault) the behavior is undefined.
If argument referenceCurrency is present and contains a non-empty string, it must be one of the ISO 4217 currency codes returned by operation getExchangeRates. If so, it is set as the new reference currency, the conversion rate of this new reference currency is set to 1.0, and the conversion rates of all other currencies are updated to reflect the new reference currency.
New exchange rates specified by parameter exchangeRates will be set after the reference currency has been changed.
The implementation attempts to make sure that changing reference currency and exchange rates in one operation is atomic.
Note that changing the reference currency, and changing it back to the original reference currency, may result in slightly different conversion rates due to rounding of (intermediate) exchange rates to at most six significant digits.