Table of Contents

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

ApiKey string

Unique SubAccount ID.

Name string

Name of the SubAccount.

PrimaryAccountApiKey string

Unique primary account ID.

UsePrimaryAccountBalance bool

Flag showing if balance is shared with primary account.

CreatedAt DateTimeOffset

SubAccount creation date and time.

IsSuspended bool

SubAccount suspension status.

Balance decimal?

Balance of the SubAccount. Value is null if balance is shared with primary account.

CreditLimit decimal?

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

string

Balance

Balance of the SubAccount. Value is null if balance is shared with primary account.

[JsonPropertyName("balance")]
public decimal? Balance { get; init; }

Property Value

decimal?

CreatedAt

SubAccount creation date and time.

[JsonPropertyName("created_at")]
public DateTimeOffset CreatedAt { get; init; }

Property Value

DateTimeOffset

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

decimal?

IsSuspended

SubAccount suspension status.

[JsonPropertyName("suspended")]
public bool IsSuspended { get; init; }

Property Value

bool

Name

Name of the SubAccount.

[JsonPropertyName("name")]
public string Name { get; init; }

Property Value

string

PrimaryAccountApiKey

Unique primary account ID.

[JsonPropertyName("primary_account_api_key")]
public string PrimaryAccountApiKey { get; init; }

Property Value

string

UsePrimaryAccountBalance

Flag showing if balance is shared with primary account.

[JsonPropertyName("use_primary_account_balance")]
public bool UsePrimaryAccountBalance { get; init; }

Property Value

bool