Class ConvertRequest
- Namespace
- Integrations.Contracts.Fx
- Assembly
- Integrations.Contracts.dll
Convert with an existing lock (LockId), or at the daily rate for Date (without locking).
public sealed record ConvertRequest : IEquatable<ConvertRequest>
- Inheritance
-
ConvertRequest
- Implements
- Inherited Members
Constructors
ConvertRequest(decimal, string, string, Guid?, DateOnly?)
Convert with an existing lock (LockId), or at the daily rate for Date (without locking).
public ConvertRequest(decimal Amount, string From, string To, Guid? LockId, DateOnly? Date)
Parameters
AmountdecimalAmount in
From.FromstringISO 4217 source currency.
TostringISO 4217 target currency.
LockIdGuid?Use this locked rate. Don't combine with
Date.DateDateOnly?Use the daily rate for this date; defaults to today.
Properties
Amount
Amount in From.
public decimal Amount { get; init; }
Property Value
Date
Use the daily rate for this date; defaults to today.
public DateOnly? Date { get; init; }
Property Value
From
ISO 4217 source currency.
public string From { get; init; }
Property Value
LockId
Use this locked rate. Don't combine with Date.
public Guid? LockId { get; init; }
Property Value
- Guid?
To
ISO 4217 target currency.
public string To { get; init; }