feat(core): extend balance model to store currency code

This commit is contained in:
Stevan Freeborn
2026-02-14 06:46:05 -06:00
parent 497dedf6ac
commit 49e4288eba
+7 -1
View File
@@ -5,17 +5,23 @@ public sealed class Balance : Entity
public Guid AccountId { get; init; }
public decimal Current { get; init; }
public decimal Available { get; init; }
public string CurrencyCode { get; init; } = string.Empty;
private Balance()
{
}
public static Balance From(decimal current, decimal available)
public static Balance From(
decimal current,
decimal available,
string currencyCode
)
{
return new()
{
Current = current,
Available = available,
CurrencyCode = currencyCode,
};
}
}