Class Account
- Namespace
- Vonage.SubAccounts
- Assembly
- Vonage.dll
Represents an account.
public record Account : IEquatable<Account>
- Inheritance
-
Account
- Implements
- Inherited Members
Constructors
Account(string, string, string, bool, DateTimeOffset, bool, decimal?, decimal?)
Represents an account.
public Account(string ApiKey, string Name, string PrimaryAccountApiKey, bool UsePrimaryAccountBalance, DateTimeOffset CreatedAt, bool IsSuspended, decimal? Balance, decimal? CreditLimit)
Parameters
ApiKeystringUnique SubAccount ID.
NamestringName of the SubAccount.
PrimaryAccountApiKeystringUnique primary account ID.
UsePrimaryAccountBalanceboolFlag showing if balance is shared with primary account.
CreatedAtDateTimeOffsetSubAccount creation date and time.
IsSuspendedboolSubAccount suspension status.
Balancedecimal?Balance of the SubAccount. Value is null if balance is shared with primary account.
CreditLimitdecimal?Credit limit of the SubAccount. Value is null if balance is shared with primary account.
Properties
ApiKey
Unique SubAccount ID.
[JsonPropertyName("api_key")]
public string ApiKey { get; init; }
Property Value
Balance
Balance of the SubAccount. Value is null if balance is shared with primary account.
[JsonPropertyName("balance")]
public decimal? Balance { get; init; }
Property Value
CreatedAt
SubAccount creation date and time.
[JsonPropertyName("created_at")]
public DateTimeOffset CreatedAt { get; init; }
Property Value
CreditLimit
Credit limit of the SubAccount. Value is null if balance is shared with primary account.
[JsonPropertyName("credit_limit")]
public decimal? CreditLimit { get; init; }
Property Value
IsSuspended
SubAccount suspension status.
[JsonPropertyName("suspended")]
public bool IsSuspended { get; init; }
Property Value
Name
Name of the SubAccount.
[JsonPropertyName("name")]
public string Name { get; init; }
Property Value
PrimaryAccountApiKey
Unique primary account ID.
[JsonPropertyName("primary_account_api_key")]
public string PrimaryAccountApiKey { get; init; }
Property Value
UsePrimaryAccountBalance
Flag showing if balance is shared with primary account.
[JsonPropertyName("use_primary_account_balance")]
public bool UsePrimaryAccountBalance { get; init; }