Interface MorpheusCurrencyConversionService


public interface MorpheusCurrencyConversionService
The MorpheusCurrencyConversionService interface provides methods for retrieving currency conversion rates and performing currency conversions for specified dates and currency types. Implementations of this service should provide asynchronous access to conversion rates and conversion operations using RxJava's Single.

Typical usage involves calling getCurrencyConversionRate(String, Date, String) to obtain the conversion rate between two currencies for a given date, and using that rate to convert monetary values as needed.

  • Method Summary

    Modifier and Type
    Method
    Description
    io.reactivex.rxjava3.core.Single<Double>
    getCurrencyConversionRate(String targetType, Date rateDate, String sourceType)
    Retrieves the currency conversion rate between two currency types for a specific date.
  • Method Details

    • getCurrencyConversionRate

      io.reactivex.rxjava3.core.Single<Double> getCurrencyConversionRate(String targetType, Date rateDate, String sourceType)
      Retrieves the currency conversion rate between two currency types for a specific date.
      Parameters:
      targetType - the target currency type (e.g., "USD", "EUR").
      rateDate - the date for which the conversion rate is required.
      sourceType - the source currency type (e.g., "INR", "GBP").
      Returns:
      a Single observable containing a double value with the conversion rate.