public interface DataAdapter
ExchangeRate
, ExchangeRateTypeDetail
and
TenantSettings
to perform conversions.Modifier and Type | Method and Description |
---|---|
default TenantSettings |
getDefaultSettingsForTenant(Tenant tenant)
Returns the default
TenantSettings associated with a Tenant . |
default TenantSettings |
getDefaultTenantSettings(Tenant tenant)
Deprecated.
It is a deprecated API. Please use
getDefaultSettingsForTenant(Tenant) .
Returns the default |
default List<ExchangeRate> |
getExchangeRates(List<ConversionParametersForNonFixedRate> conversionParameters,
Tenant tenant,
TenantSettings tenantSettings)
Deprecated.
It is a deprecated API. Please use
getExchangeRatesForTenant(List, Tenant, TenantSettings) .
Returns a list of |
default List<ExchangeRate> |
getExchangeRatesForTenant(List<ConversionParametersForNonFixedRate> conversionParameters,
Tenant tenant,
TenantSettings tenantSettings)
Returns a list of
ExchangeRate to be used for conversion for a given list of
ConversionParametersForNonFixedRate . |
default Map<RateType,ExchangeRateTypeDetail> |
getExchangeRateTypeDetails(Set<RateType> rateTypeSet)
Deprecated.
It is a deprecated API. Please use
getExchangeRateTypeDetailsForTenant(Tenant, Set) .
Returns the |
default Map<RateType,ExchangeRateTypeDetail> |
getExchangeRateTypeDetailsForTenant(Tenant tenant,
Set<RateType> rateTypeSet)
Returns the
Map of the ExchangeRateTypeDetail with the RateType as the key for a given
Set of RateType . |
@Nullable default List<ExchangeRate> getExchangeRatesForTenant(@Nonnull List<ConversionParametersForNonFixedRate> conversionParameters, @Nonnull Tenant tenant, @Nullable TenantSettings tenantSettings) throws DataAdapterException
ExchangeRate
to be used for conversion for a given list of
ConversionParametersForNonFixedRate
. It fetches the exchange rates with the given TenantSettings
for a specific Tenant
. It is recommended that its implementation provides a minimal response so that the
conversion process is optimized.conversionParameters
- The ConversionParametersForNonFixedRate
to fetch the relevant exchange rates.tenant
- The Tenant
for which the conversion is requested.tenantSettings
- The TenantSettings
to fetch the relevant exchange rates.ExchangeRate
.DataAdapterException
- An exception that occurs when none of the requested conversions could be processed.@Deprecated @Nullable default List<ExchangeRate> getExchangeRates(@Nonnull List<ConversionParametersForNonFixedRate> conversionParameters, @Nonnull Tenant tenant, @Nullable TenantSettings tenantSettings) throws DataAdapterException
getExchangeRatesForTenant(List, Tenant, TenantSettings)
.
Returns a list of ExchangeRate
to be used for conversion for a given list of
ConversionParametersForNonFixedRate
. It fetches the exchange rates with the given
TenantSettings
for a specific Tenant
. It is recommended that its implementation
provides a minimal response so that the conversion process is optimized.
conversionParameters
- The ConversionParametersForNonFixedRate
to fetch the relevant exchange rates.tenant
- The Tenant
for which the conversion is requested.tenantSettings
- The TenantSettings
to fetch the relevant exchange rates.ExchangeRate
.DataAdapterException
- An exception that occurs when none of the requested conversions could be processed.@Nullable default TenantSettings getDefaultSettingsForTenant(@Nonnull Tenant tenant) throws DataAdapterException
TenantSettings
associated with a Tenant
.tenant
- The Tenant
for which the conversion is requested.TenantSettings
for the given Tenant
.DataAdapterException
- An exception that occurs when none of the requested conversions could be processed.@Deprecated @Nullable default TenantSettings getDefaultTenantSettings(@Nonnull Tenant tenant) throws DataAdapterException
getDefaultSettingsForTenant(Tenant)
.
Returns the default TenantSettings
associated with a Tenant
.
tenant
- The Tenant
for which the conversion is requested.TenantSettings
for the given Tenant
.DataAdapterException
- An exception that occurs when none of the requested conversions could be processed.@Nullable default Map<RateType,ExchangeRateTypeDetail> getExchangeRateTypeDetailsForTenant(@Nonnull Tenant tenant, @Nonnull Set<RateType> rateTypeSet) throws DataAdapterException
Map
of the ExchangeRateTypeDetail
with the RateType
as the key for a given
Set
of RateType
. It fetches the details of the given rate types. Based on that the details, we
can determine if the inversion is allowed for the rate type and if there is any reference currency specified for
the rate type.tenant
- The Tenant
for which the exchange rate type details is requested.rateTypeSet
- The Set
of RateType
used to fetch the relevant exchange rate type details.Map
of the ExchangeRateTypeDetail
with the RateType
as the key.DataAdapterException
- An exception that occurs when none of the requested conversions could be processed.@Deprecated @Nullable default Map<RateType,ExchangeRateTypeDetail> getExchangeRateTypeDetails(@Nonnull Set<RateType> rateTypeSet) throws DataAdapterException
getExchangeRateTypeDetailsForTenant(Tenant, Set)
.
Returns the Map
of the ExchangeRateTypeDetail
with the RateType
as the key
for a given Set
of RateType
. It fetches the details of the given rate types. Based on
that the details, we can determine if the inversion is allowed for the rate type and if there is any
reference currency specified for the rate type.
rateTypeSet
- The Set
of RateType
used to fetch the relevant exchange rate type details.Map
of the ExchangeRateTypeDetail
with the RateType
as the key.DataAdapterException
- An exception that occurs when none of the requested conversions could be processed.Copyright © 2021 SAP SE. All rights reserved.