public final class ConversionParametersForNonFixedRate extends Object
The parameters are as follows:
fromCurrency - The source Currency
.
toCurrency - The target Currency
.
fromAmount - The CurrencyAmount
in 'fromCurrency' to be converted into CurrencyAmount
in
'toCurrency'.
conversionAsOfDateTime - The date time as of when the conversion is to be performed. If the value is not provided, it is defaulted to the current time in UTC.
exchangeRateType - The RateType
.
Modifier and Type | Class and Description |
---|---|
static class |
ConversionParametersForNonFixedRate.ConversionParametersForNonFixedRateBuilder
A builder to default the conversionAsOfDateTime as ‘now’ in the UTC if you provide a null value or no value.
|
Modifier and Type | Method and Description |
---|---|
static ConversionParametersForNonFixedRate.ConversionParametersForNonFixedRateBuilder |
builder() |
boolean |
equals(Object o) |
Instant |
getConversionAsOfDateTime() |
@NonNull RateType |
getExchangeRateType() |
@NonNull CurrencyAmount |
getFromAmount() |
@NonNull Currency |
getFromCurrency() |
@NonNull Currency |
getToCurrency() |
int |
hashCode() |
String |
toString() |
@Nonnull public static ConversionParametersForNonFixedRate.ConversionParametersForNonFixedRateBuilder builder()
@NonNull public @NonNull Currency getFromCurrency()
@NonNull public @NonNull Currency getToCurrency()
@NonNull public @NonNull CurrencyAmount getFromAmount()
public Instant getConversionAsOfDateTime()
@NonNull public @NonNull RateType getExchangeRateType()
Copyright © 2020 SAP SE. All rights reserved.