Package | Description |
---|---|
com.sap.cloud.sdk.services.currencyconversion.core |
This package provides the conversion APIs for fixed and non-fixed rates.
|
com.sap.cloud.sdk.services.currencyconversion.datamodel.adapter |
This package provides the interface with the method signatures to get exchange rates, exchange rate type details, and
default tenant settings.
|
com.sap.cloud.sdk.services.currencyconversion.datamodel.model |
This package provides models that you can use to send information to the Currency Conversion library.
|
Modifier and Type | Method and Description |
---|---|
SingleNonFixedRateConversionResult |
CurrencyConverter.convertCurrencyWithNonFixedRate(ConversionParametersForNonFixedRate param,
DataAdapter dataAdapter)
Provides conversion capabilities for one conversion in one call by picking the best possible exchange rate that
is applicable.
|
SingleNonFixedRateConversionResult |
CurrencyConverter.convertCurrencyWithNonFixedRate(ConversionParametersForNonFixedRate param,
DataAdapter dataAdapter,
OverrideTenantSetting overrideSetting)
Provides conversion capabilities for one conversion in one call by picking the best possible exchange rate that
is applicable.
|
Modifier and Type | Method and Description |
---|---|
BulkNonFixedRateConversionResult |
CurrencyConverter.convertCurrenciesWithNonFixedRate(List<ConversionParametersForNonFixedRate> conversionParameters,
DataAdapter dataAdapter)
Provides conversion capabilities for multiple conversions in one call by picking the best possible exchange rate
that is applicable.
|
BulkNonFixedRateConversionResult |
CurrencyConverter.convertCurrenciesWithNonFixedRate(List<ConversionParametersForNonFixedRate> conversionParameters,
DataAdapter dataAdapter,
OverrideTenantSetting overrideSetting)
Provides conversion capabilities for multiple conversions in one call by overriding the default tenant settings
that are provided by the
DataAdapter and uses the Data Adapter provided in the input to get the required
ExchangeRate s. |
Modifier and Type | Method and Description |
---|---|
default List<ExchangeRate> |
DataAdapter.getExchangeRates(List<ConversionParametersForNonFixedRate> conversionParameters,
Tenant tenant,
TenantSettings tenantSettings)
Deprecated.
It is a deprecated API. Please use
DataAdapter.getExchangeRatesForTenant(List, Tenant, TenantSettings) .
Returns a list of |
default List<ExchangeRate> |
DataAdapter.getExchangeRatesForTenant(List<ConversionParametersForNonFixedRate> conversionParameters,
Tenant tenant,
TenantSettings tenantSettings)
Returns a list of
ExchangeRate to be used for conversion for a given list of
ConversionParametersForNonFixedRate . |
Modifier and Type | Method and Description |
---|---|
ConversionParametersForNonFixedRate |
ConversionParametersForNonFixedRate.ConversionParametersForNonFixedRateBuilder.build()
A build method to default the conversionAsOfDateTime as ‘now’ in the UTC if you provide a null value or no
value.
|
Modifier and Type | Method and Description |
---|---|
Set<Map.Entry<ConversionParametersForNonFixedRate,io.vavr.control.Try<SingleNonFixedRateConversionResult>>> |
BulkNonFixedRateConversionResult.entrySet()
Returns all values for the conversion operation with the input provided for conversion as
ConversionParametersForNonFixedRate . |
Modifier and Type | Method and Description |
---|---|
BulkNonFixedRateConversionResult.BulkNonFixedRateConversionResultBuilder |
BulkNonFixedRateConversionResult.BulkNonFixedRateConversionResultBuilder.addFailureResultEntry(ConversionParametersForNonFixedRate conversionParametersForNonFixedRate,
Throwable throwable)
Adds the
Try of Throwable as a failed entry to the conversion result set map with the given
ConversionParametersForNonFixedRate . |
BulkNonFixedRateConversionResult.BulkNonFixedRateConversionResultBuilder |
BulkNonFixedRateConversionResult.BulkNonFixedRateConversionResultBuilder.addSuccessResultEntry(ConversionParametersForNonFixedRate conversionParametersForNonFixedRate,
SingleNonFixedRateConversionResult singleNonFixedRateConversionResult)
Adds the
Try of SingleNonFixedRateConversionResult as a success entry to the conversion
result set map with the given ConversionParametersForNonFixedRate . |
io.vavr.control.Try<SingleNonFixedRateConversionResult> |
BulkNonFixedRateConversionResult.get(ConversionParametersForNonFixedRate conversionParametersForNonFixedRate)
Returns the
Try of the SingleNonFixedRateConversionResult for a given
ConversionParametersForNonFixedRate . |
Copyright © 2020 SAP SE. All rights reserved.