-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathAccountsApi.d.ts
55 lines (55 loc) · 2.17 KB
/
AccountsApi.d.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/**
* YNAB API Endpoints
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
*
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
import * as runtime from '../runtime';
import type { AccountResponse, AccountsResponse, PostAccountWrapper } from '../models/index';
export interface CreateAccountRequest {
budgetId: string;
data: PostAccountWrapper;
}
export interface GetAccountByIdRequest {
budgetId: string;
accountId: string;
}
export interface GetAccountsRequest {
budgetId: string;
lastKnowledgeOfServer?: number;
}
/**
*
*/
export declare class AccountsApi extends runtime.BaseAPI {
/**
* Creates a new account
* Create a new account
*/
createAccountRaw(requestParameters: CreateAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountResponse>>;
/**
* Creates a new account
* Create a new account
*/
createAccount(budgetId: string, data: PostAccountWrapper, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountResponse>;
/**
* Returns a single account
* Single account
*/
getAccountByIdRaw(requestParameters: GetAccountByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountResponse>>;
/**
* Returns a single account
* Single account
*/
getAccountById(budgetId: string, accountId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountResponse>;
/**
* Returns all accounts
* Account list
*/
getAccountsRaw(requestParameters: GetAccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountsResponse>>;
/**
* Returns all accounts
* Account list
*/
getAccounts(budgetId: string, lastKnowledgeOfServer?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountsResponse>;
}