27 lines
646 B
C#
27 lines
646 B
C#
namespace FiscalOS.Infra.Accounts.Plaid;
|
|||
|
|
|
||
|
|
public sealed class PlaidMetadata : InstitutionMetadata
|
||
|
|
{
|
||
|
|
public const string TypeValue = "Plaid";
|
||
|
|
public string PlaidId { get; init; } = string.Empty;
|
||
|
|
public string PlaidName { get; init; } = string.Empty;
|
||
|
|
public string EncryptedAccessToken { get; init; } = string.Empty;
|
||
|
|
|
||
|
|
private PlaidMetadata() : base(TypeValue)
|
||
|
|
{
|
||
|
|
}
|
||
|
|
|
||
|
|
public static PlaidMetadata From(
|
||
|
|
string plaidId,
|
||
|
|
string plaidName,
|
||
|
|
string encryptedAccessToken
|
||
|
|
)
|
||
|
|
{
|
||
|
|
return new PlaidMetadata
|
||
|
|
{
|
||
|
|
PlaidId = plaidId,
|
||
|
|
PlaidName = plaidName,
|
||
|
|
EncryptedAccessToken = encryptedAccessToken
|
||
|
|
};
|
||
|
|
}
|
||
|
|
}
|