Class ConvertResponse
- Namespace
- Integrations.Contracts.Fx
- Assembly
- Integrations.Contracts.dll
ConvertedAmount is full precision (6 dp); RoundedAmount is in the target currency's minor units.
public sealed record ConvertResponse : IEquatable<ConvertResponse>
- Inheritance
-
ConvertResponse
- Implements
- Inherited Members
Constructors
ConvertResponse(decimal, string, string, decimal, decimal, decimal, Guid?, DateOnly, DateOnly, string)
ConvertedAmount is full precision (6 dp); RoundedAmount is in the target currency's minor units.
public ConvertResponse(decimal Amount, string From, string To, decimal Rate, decimal ConvertedAmount, decimal RoundedAmount, Guid? LockId, DateOnly RateDate, DateOnly ObservationDate, string Source)
Parameters
AmountdecimalAmount converted.
FromstringSource currency.
TostringTarget currency.
RatedecimalRate applied.
ConvertedAmountdecimalResult at full precision (6 decimal places).
RoundedAmountdecimalResult rounded to the target currency's minor units (half away from zero).
LockIdGuid?Lock used, if any.
RateDateDateOnlyBusiness date of the rate.
ObservationDateDateOnlyDate the source published the rate.
SourcestringRate source.
Properties
Amount
Amount converted.
public decimal Amount { get; init; }
Property Value
ConvertedAmount
Result at full precision (6 decimal places).
public decimal ConvertedAmount { get; init; }
Property Value
From
Source currency.
public string From { get; init; }
Property Value
LockId
Lock used, if any.
public Guid? LockId { get; init; }
Property Value
- Guid?
ObservationDate
Date the source published the rate.
public DateOnly ObservationDate { get; init; }
Property Value
Rate
Rate applied.
public decimal Rate { get; init; }
Property Value
RateDate
Business date of the rate.
public DateOnly RateDate { get; init; }
Property Value
RoundedAmount
Result rounded to the target currency's minor units (half away from zero).
public decimal RoundedAmount { get; init; }
Property Value
Source
Rate source.
public string Source { get; init; }
Property Value
To
Target currency.
public string To { get; init; }