Class ExchangeRate

java.lang.Object
com.sportradar.mbs.sdk.entities.common.ExchangeRate

public class ExchangeRate extends Object
Represents an exchange rate between two currencies.
  • Constructor Details

    • ExchangeRate

      public ExchangeRate()
  • Method Details

    • newBuilder

      public static ExchangeRate.Builder newBuilder()
      Creates a new instance of the ExchangeRate.Builder class.
      Returns:
      A new instance of the ExchangeRate.Builder class.
    • getToCurrency

      public String getToCurrency()
      Gets the currency code of the target currency.
      Returns:
      The currency code of the target currency.
    • setToCurrency

      public void setToCurrency(String value)
      Sets the currency code of the target currency.
      Parameters:
      value - The currency code of the target currency.
    • getRate

      public BigDecimal getRate()
      Gets the exchange rate value.
      Returns:
      The exchange rate value.
    • setRate

      public void setRate(BigDecimal value)
      Sets the exchange rate value.
      Parameters:
      value - The exchange rate value.
    • getFromCurrency

      public String getFromCurrency()
      Gets the currency code of the source currency.
      Returns:
      The currency code of the source currency.
    • setFromCurrency

      public void setFromCurrency(String value)
      Sets the currency code of the source currency.
      Parameters:
      value - The currency code of the source currency.