-
Notifications
You must be signed in to change notification settings - Fork 180
/
accountResponse.ts
40 lines (36 loc) · 995 Bytes
/
accountResponse.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import { SubAccount } from '../subAccount';
/**
* Type definition for the response representing an account, which includes
* properties such as `api_key`, `created_at`, `balance`, and `credit_limit`.
* This type combines properties from the account response with the properties
* of a subaccount (excluding specific subaccount-related properties).
*
* @remarks
* Vonage API's will return information using `snake_case`. This represents the
* pure response before the client will transform the keys into `camelCase`.
*/
export type AccountResponse = {
/**
* The API key associated with the account.
*/
api_key: string;
/**
* The creation date and time of the account.
*/
created_at: string;
/**
* The balance of the account.
*/
balance: number;
/**
* The credit limit of the account.
*/
credit_limit: number;
} & Omit<
SubAccount,
| 'apiKey'
| 'primaryAccountApiKey'
| 'usePrimaryAccountBalance'
| 'createdAt'
| 'creditLimit'
>;