Class RateLock
- Namespace
- Integrations.Domain.Fx
- Assembly
- Integrations.Domain.dll
The exchange rate fixed for a currency pair on a business date. Created the first time any line is committed for that pair and date; every later lock for the same pair and date returns this same row, so all lines committed on one day share one rate. Callers store Id on the line and keep it when the line is edited (unless its transaction date changes). A lock is never updated.
public sealed class RateLock
- Inheritance
-
RateLock
- Inherited Members
Properties
CreatedAt
When the lock was created.
public DateTimeOffset CreatedAt { get; init; }
Property Value
CreatedBy
Who created the lock first (for audit), e.g. the calling client id.
public string? CreatedBy { get; init; }
Property Value
FromCurrency
ISO 4217 source currency.
public string FromCurrency { get; init; }
Property Value
Id
Lock id; callers store it on the line.
public Guid Id { get; init; }
Property Value
ObservationDate
The publication date actually used (the latest published on or before RateDate).
public DateOnly ObservationDate { get; init; }
Property Value
Rate
1 FromCurrency = Rate ToCurrency, 12 decimal places.
public decimal Rate { get; init; }
Property Value
RateDate
The business date the rate is locked for (the transaction/commit date).
public DateOnly RateDate { get; init; }
Property Value
Source
Rate source the lock came from.
public string Source { get; init; }
Property Value
ToCurrency
ISO 4217 target currency.
public string ToCurrency { get; init; }