Table of Contents

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

Amount decimal

Amount converted.

From string

Source currency.

To string

Target currency.

Rate decimal

Rate applied.

ConvertedAmount decimal

Result at full precision (6 decimal places).

RoundedAmount decimal

Result rounded to the target currency's minor units (half away from zero).

LockId Guid?

Lock used, if any.

RateDate DateOnly

Business date of the rate.

ObservationDate DateOnly

Date the source published the rate.

Source string

Rate source.

Properties

Amount

Amount converted.

public decimal Amount { get; init; }

Property Value

decimal

ConvertedAmount

Result at full precision (6 decimal places).

public decimal ConvertedAmount { get; init; }

Property Value

decimal

From

Source currency.

public string From { get; init; }

Property Value

string

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

DateOnly

Rate

Rate applied.

public decimal Rate { get; init; }

Property Value

decimal

RateDate

Business date of the rate.

public DateOnly RateDate { get; init; }

Property Value

DateOnly

RoundedAmount

Result rounded to the target currency's minor units (half away from zero).

public decimal RoundedAmount { get; init; }

Property Value

decimal

Source

Rate source.

public string Source { get; init; }

Property Value

string

To

Target currency.

public string To { get; init; }

Property Value

string