1+ // -----------------------------------------------------------------------------
2+ // Filename: PaymentAccountMinimal.cs
3+ //
4+ // Description: A minimal representation of a payment account:
5+ //
6+ // Author(s):
7+ // Donal O'Connor ([email protected] ) 8+ //
9+ // History:
10+ // 24 07 2025 Donal O'Connor Created, Harcourt St, Dublin, Ireland.
11+ //
12+ // License:
13+ // Proprietary NoFrixion.
14+ // -----------------------------------------------------------------------------
15+ #nullable disable
16+
17+ namespace NoFrixion . MoneyMoov . Models ;
18+
19+ public class PaymentAccountMinimal
20+ {
21+ /// <summary>
22+ /// Unique id for the account.
23+ /// </summary>
24+ public Guid ID { get ; set ; }
25+
26+ /// <summary>
27+ /// The ID of the merchant that owns the account.
28+ /// </summary>
29+ public Guid MerchantID { get ; set ; }
30+
31+ /// <summary>
32+ /// Balance of the account.
33+ /// </summary>
34+ public decimal Balance { get ; set ; }
35+
36+ /// <summary>
37+ /// Balance of the account expressed in the currency’s minor units (e.g. cents, pence).
38+ /// </summary>
39+ public long BalanceMinorUnits => Balance . ToAmountMinorUnits ( Currency ) ;
40+
41+ /// <summary>
42+ /// Currency of the account in ISO 4217 format
43+ /// </summary>
44+ /// <value>Currency of the account in ISO 4217 format</value>
45+ public CurrencyTypeEnum Currency { get ; set ; }
46+
47+ /// <summary>
48+ /// Name for the account
49+ /// </summary>
50+ /// <value>Name for the account</value>
51+ public string AccountName { get ; set ; }
52+
53+ /// <summary>
54+ /// The payment account identifier contains the information needed to access the account
55+ /// via a payment network.
56+ /// </summary>
57+ public AccountIdentifier Identifier { get ; set ; }
58+
59+ /// <summary>
60+ /// Is the account archived
61+ /// </summary>
62+ public bool IsArchived { get ; set ; }
63+
64+ /// <summary>
65+ /// Indicates if the payment account is an externally connected account.
66+ /// Externally connected account can be used to view account balances and transactions.
67+ /// </summary>
68+ public bool IsConnectedAccount { get ; set ; }
69+ }
0 commit comments