public final class ExchangeRateTypeDetail extends Object
RateType
supports indirect conversions based on the inverted
exchange rates and if there is a reference currency that can be used for all currency conversions. Note that the
‘isInversionAllowed’ flag is not taken into consideration if a ‘referenceCurrency’ is set for an exchange rate type.
The parameters are as follows:
isInversionAllowed - This parameter enables indirect conversions based on inverted exchange rates for this exchange rate type. If the flag is set, the indirect rate is looked for if a direct rate is not found. Note that if a reference currency is specified, it will take precedence over inverted rates. That is, the reference currency will be considered for conversion.
referenceCurrency - If specified, this Currency
acts as the reference currency for all currency conversions
that use this exchange rate type. The library first looks for a reference currency rate and if not found, checks for
a direct rate. The reference currency takes precedence over inverted rates.
Modifier and Type | Class and Description |
---|---|
static class |
ExchangeRateTypeDetail.ExchangeRateTypeDetailBuilder
A builder to default the isInversionAllowed value to false if you provide a null value or no value.
|
Modifier and Type | Method and Description |
---|---|
static ExchangeRateTypeDetail.ExchangeRateTypeDetailBuilder |
builder() |
boolean |
equals(Object o) |
Boolean |
getIsInversionAllowed() |
Currency |
getReferenceCurrency() |
int |
hashCode() |
String |
toString() |
@Nonnull public static ExchangeRateTypeDetail.ExchangeRateTypeDetailBuilder builder()
public Boolean getIsInversionAllowed()
public Currency getReferenceCurrency()
Copyright © 2020 SAP SE. All rights reserved.