-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathPayeesApi.d.ts
56 lines (56 loc) · 2.15 KB
/
PayeesApi.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
56
/**
* 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 { PatchPayeeWrapper, PayeeResponse, PayeesResponse, SavePayeeResponse } from '../models/index';
export interface GetPayeeByIdRequest {
budgetId: string;
payeeId: string;
}
export interface GetPayeesRequest {
budgetId: string;
lastKnowledgeOfServer?: number;
}
export interface UpdatePayeeRequest {
budgetId: string;
payeeId: string;
data: PatchPayeeWrapper;
}
/**
*
*/
export declare class PayeesApi extends runtime.BaseAPI {
/**
* Returns a single payee
* Single payee
*/
getPayeeByIdRaw(requestParameters: GetPayeeByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PayeeResponse>>;
/**
* Returns a single payee
* Single payee
*/
getPayeeById(budgetId: string, payeeId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PayeeResponse>;
/**
* Returns all payees
* List payees
*/
getPayeesRaw(requestParameters: GetPayeesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PayeesResponse>>;
/**
* Returns all payees
* List payees
*/
getPayees(budgetId: string, lastKnowledgeOfServer?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PayeesResponse>;
/**
* Update a payee
* Update a payee
*/
updatePayeeRaw(requestParameters: UpdatePayeeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SavePayeeResponse>>;
/**
* Update a payee
* Update a payee
*/
updatePayee(budgetId: string, payeeId: string, data: PatchPayeeWrapper, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SavePayeeResponse>;
}