Skip to content

Commit e8a7f62

Browse files
committed
Merge branch 'release/ident-1.8.91'
2 parents e2e0179 + 77e6a2d commit e8a7f62

File tree

3 files changed

+83
-0
lines changed

3 files changed

+83
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// -----------------------------------------------------------------------------
2+
// Filename: TimeZoneConstants.cs
3+
//
4+
// Description: Constants for time zones.
5+
//
6+
// Author(s):
7+
// Saurav Maiti ([email protected])
8+
//
9+
// History:
10+
// 18 Jul 2025 Saurav Maiti Created, Hamilton gardens, Dublin, Ireland.
11+
//
12+
// License:
13+
// MIT.
14+
// -----------------------------------------------------------------------------
15+
16+
namespace NoFrixion.MoneyMoov.Constants;
17+
18+
public static class TimeZoneConstants
19+
{
20+
public const string IRISH_TIME_ZONE_ID = "Europe/Dublin";
21+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// -----------------------------------------------------------------------------
2+
// Filename: DateTimeOffsetExtensions.cs
3+
//
4+
// Description: Extensions for DateTimeOffset
5+
//
6+
// Author(s):
7+
// Saurav Maiti ([email protected])
8+
//
9+
// History:
10+
// 18 Jul 2025 Saurav Maiti Created, Hamilton gardens, Dublin, Ireland.
11+
//
12+
// License:
13+
// MIT.
14+
// -----------------------------------------------------------------------------
15+
16+
17+
namespace NoFrixion.MoneyMoov.Extensions;
18+
19+
public static class DateTimeOffsetExtensions
20+
{
21+
public static DateTime ToTimeZoneSpecificTime(this DateTimeOffset dateTimeOffset, TimeZoneInfo timeZoneInfo)
22+
{
23+
return TimeZoneInfo.ConvertTime(
24+
dateTimeOffset, timeZoneInfo).DateTime;
25+
}
26+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
//-----------------------------------------------------------------------------
2+
// Filename: FxRate.cs
3+
//
4+
// Description: A model representing a Foreign Exchange (FX) rate.
5+
//
6+
// Author(s):
7+
// Aaron Clasuon ([email protected])
8+
//
9+
// History:
10+
// 17 Jul 2025 Aaron Clauson Created, Stillorgan Wood, Dublin, Ireland.
11+
//
12+
// License:
13+
// Proprietary NoFrixion.
14+
//-----------------------------------------------------------------------------
15+
16+
namespace NoFrixion.MoneyMoov.Models;
17+
18+
/// <summary>
19+
/// Represents a Foreign Exchange (FX) rate.
20+
/// </summary>
21+
public class FxRate
22+
{
23+
public CurrencyTypeEnum SourceCurrency { get; set; }
24+
25+
public CurrencyTypeEnum DestinationCurrency { get; set; }
26+
27+
/// <summary>
28+
/// The price at which the transaction will buy the source currency
29+
/// using the destination currency.
30+
/// </summary>
31+
public decimal ExchangeRate { get; set; }
32+
33+
public string? QuoteID { get; set; }
34+
35+
public DateTimeOffset ExpiryTime { get; set; }
36+
}

0 commit comments

Comments
 (0)