ynab 4.0.0 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/apis/PayeesApi.d.ts +15 -1
- package/dist/apis/PayeesApi.js +39 -0
- package/dist/browser/ynab.js +1 -1
- package/dist/esm/apis/PayeesApi.d.ts +15 -1
- package/dist/esm/apis/PayeesApi.js +62 -1
- package/dist/esm/models/Account.d.ts +40 -4
- package/dist/esm/models/Account.js +12 -0
- package/dist/esm/models/AccountBase.d.ts +136 -0
- package/dist/esm/models/AccountBase.js +92 -0
- package/dist/esm/models/Category.d.ts +100 -16
- package/dist/esm/models/Category.js +28 -0
- package/dist/esm/models/CategoryBase.d.ts +188 -0
- package/dist/esm/models/CategoryBase.js +113 -0
- package/dist/esm/models/ExistingCategory.d.ts +7 -1
- package/dist/esm/models/ExistingCategory.js +2 -0
- package/dist/esm/models/HybridTransaction.d.ts +12 -0
- package/dist/esm/models/HybridTransaction.js +4 -0
- package/dist/esm/models/MoneyMovement.d.ts +19 -7
- package/dist/esm/models/MoneyMovement.js +4 -0
- package/dist/esm/models/MoneyMovementBase.d.ts +75 -0
- package/dist/esm/models/MoneyMovementBase.js +57 -0
- package/dist/esm/models/MonthDetail.d.ts +48 -0
- package/dist/esm/models/MonthDetail.js +16 -0
- package/dist/esm/models/MonthDetailBase.d.ts +76 -0
- package/dist/esm/models/MonthDetailBase.js +68 -0
- package/dist/esm/models/MonthSummary.d.ts +50 -2
- package/dist/esm/models/MonthSummary.js +16 -0
- package/dist/esm/models/MonthSummaryBase.d.ts +69 -0
- package/dist/esm/models/MonthSummaryBase.js +63 -0
- package/dist/esm/models/NewCategory.d.ts +7 -1
- package/dist/esm/models/NewCategory.js +2 -0
- package/dist/esm/models/PlanDetail.d.ts +21 -21
- package/dist/esm/models/PlanDetail.js +21 -21
- package/dist/esm/models/PostPayee.d.ts +27 -0
- package/dist/esm/models/PostPayee.js +39 -0
- package/dist/esm/models/PostPayeeWrapper.d.ts +28 -0
- package/dist/esm/models/PostPayeeWrapper.js +40 -0
- package/dist/esm/models/SaveAccount.d.ts +3 -3
- package/dist/esm/models/SaveAccount.js +3 -3
- package/dist/esm/models/SaveAccountType.d.ts +24 -0
- package/dist/esm/models/SaveAccountType.js +42 -0
- package/dist/esm/models/SaveCategory.d.ts +7 -1
- package/dist/esm/models/SaveCategory.js +2 -0
- package/dist/esm/models/SavePayee.d.ts +1 -1
- package/dist/esm/models/ScheduledSubTransaction.d.ts +18 -6
- package/dist/esm/models/ScheduledSubTransaction.js +4 -0
- package/dist/esm/models/ScheduledSubTransactionBase.d.ts +81 -0
- package/dist/esm/models/ScheduledSubTransactionBase.js +63 -0
- package/dist/esm/models/ScheduledTransactionDetail.d.ts +12 -0
- package/dist/esm/models/ScheduledTransactionDetail.js +4 -0
- package/dist/esm/models/ScheduledTransactionSummary.d.ts +17 -5
- package/dist/esm/models/ScheduledTransactionSummary.js +4 -0
- package/dist/esm/models/ScheduledTransactionSummaryBase.d.ts +119 -0
- package/dist/esm/models/ScheduledTransactionSummaryBase.js +94 -0
- package/dist/esm/models/SubTransaction.d.ts +19 -7
- package/dist/esm/models/SubTransaction.js +4 -0
- package/dist/esm/models/SubTransactionBase.d.ts +87 -0
- package/dist/esm/models/SubTransactionBase.js +65 -0
- package/dist/esm/models/TransactionDetail.d.ts +12 -0
- package/dist/esm/models/TransactionDetail.js +4 -0
- package/dist/esm/models/TransactionSummary.d.ts +22 -10
- package/dist/esm/models/TransactionSummary.js +4 -0
- package/dist/esm/models/TransactionSummaryBase.d.ts +151 -0
- package/dist/esm/models/TransactionSummaryBase.js +102 -0
- package/dist/esm/models/index.d.ts +12 -0
- package/dist/esm/models/index.js +12 -0
- package/dist/models/Account.d.ts +40 -4
- package/dist/models/Account.js +12 -0
- package/dist/models/AccountBase.d.ts +136 -0
- package/dist/models/AccountBase.js +98 -0
- package/dist/models/Category.d.ts +100 -16
- package/dist/models/Category.js +28 -0
- package/dist/models/CategoryBase.d.ts +188 -0
- package/dist/models/CategoryBase.js +120 -0
- package/dist/models/ExistingCategory.d.ts +7 -1
- package/dist/models/ExistingCategory.js +2 -0
- package/dist/models/HybridTransaction.d.ts +12 -0
- package/dist/models/HybridTransaction.js +4 -0
- package/dist/models/MoneyMovement.d.ts +19 -7
- package/dist/models/MoneyMovement.js +4 -0
- package/dist/models/MoneyMovementBase.d.ts +75 -0
- package/dist/models/MoneyMovementBase.js +63 -0
- package/dist/models/MonthDetail.d.ts +48 -0
- package/dist/models/MonthDetail.js +16 -0
- package/dist/models/MonthDetailBase.d.ts +76 -0
- package/dist/models/MonthDetailBase.js +74 -0
- package/dist/models/MonthSummary.d.ts +50 -2
- package/dist/models/MonthSummary.js +16 -0
- package/dist/models/MonthSummaryBase.d.ts +69 -0
- package/dist/models/MonthSummaryBase.js +69 -0
- package/dist/models/NewCategory.d.ts +7 -1
- package/dist/models/NewCategory.js +2 -0
- package/dist/models/PlanDetail.d.ts +21 -21
- package/dist/models/PlanDetail.js +21 -21
- package/dist/models/PostPayee.d.ts +27 -0
- package/dist/models/PostPayee.js +45 -0
- package/dist/models/PostPayeeWrapper.d.ts +28 -0
- package/dist/models/PostPayeeWrapper.js +46 -0
- package/dist/models/SaveAccount.d.ts +3 -3
- package/dist/models/SaveAccount.js +3 -3
- package/dist/models/SaveAccountType.d.ts +24 -0
- package/dist/models/SaveAccountType.js +50 -0
- package/dist/models/SaveCategory.d.ts +7 -1
- package/dist/models/SaveCategory.js +2 -0
- package/dist/models/SavePayee.d.ts +1 -1
- package/dist/models/ScheduledSubTransaction.d.ts +18 -6
- package/dist/models/ScheduledSubTransaction.js +4 -0
- package/dist/models/ScheduledSubTransactionBase.d.ts +81 -0
- package/dist/models/ScheduledSubTransactionBase.js +69 -0
- package/dist/models/ScheduledTransactionDetail.d.ts +12 -0
- package/dist/models/ScheduledTransactionDetail.js +4 -0
- package/dist/models/ScheduledTransactionSummary.d.ts +17 -5
- package/dist/models/ScheduledTransactionSummary.js +4 -0
- package/dist/models/ScheduledTransactionSummaryBase.d.ts +119 -0
- package/dist/models/ScheduledTransactionSummaryBase.js +101 -0
- package/dist/models/SubTransaction.d.ts +19 -7
- package/dist/models/SubTransaction.js +4 -0
- package/dist/models/SubTransactionBase.d.ts +87 -0
- package/dist/models/SubTransactionBase.js +71 -0
- package/dist/models/TransactionDetail.d.ts +12 -0
- package/dist/models/TransactionDetail.js +4 -0
- package/dist/models/TransactionSummary.d.ts +22 -10
- package/dist/models/TransactionSummary.js +4 -0
- package/dist/models/TransactionSummaryBase.d.ts +151 -0
- package/dist/models/TransactionSummaryBase.js +109 -0
- package/dist/models/index.d.ts +12 -0
- package/dist/models/index.js +12 -0
- package/package.json +2 -2
|
@@ -6,17 +6,17 @@
|
|
|
6
6
|
*
|
|
7
7
|
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
8
8
|
*/
|
|
9
|
+
import { MonthDetailBaseFromJSON, MonthDetailBaseToJSON, } from './MonthDetailBase';
|
|
9
10
|
import { PayeeLocationFromJSON, PayeeLocationToJSON, } from './PayeeLocation';
|
|
10
|
-
import {
|
|
11
|
-
import { ScheduledTransactionSummaryFromJSON, ScheduledTransactionSummaryToJSON, } from './ScheduledTransactionSummary';
|
|
12
|
-
import { CategoryFromJSON, CategoryToJSON, } from './Category';
|
|
11
|
+
import { CategoryBaseFromJSON, CategoryBaseToJSON, } from './CategoryBase';
|
|
13
12
|
import { CurrencyFormatFromJSON, CurrencyFormatToJSON, } from './CurrencyFormat';
|
|
14
13
|
import { DateFormatFromJSON, DateFormatToJSON, } from './DateFormat';
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
14
|
+
import { SubTransactionBaseFromJSON, SubTransactionBaseToJSON, } from './SubTransactionBase';
|
|
15
|
+
import { ScheduledSubTransactionBaseFromJSON, ScheduledSubTransactionBaseToJSON, } from './ScheduledSubTransactionBase';
|
|
16
|
+
import { ScheduledTransactionSummaryBaseFromJSON, ScheduledTransactionSummaryBaseToJSON, } from './ScheduledTransactionSummaryBase';
|
|
17
|
+
import { TransactionSummaryBaseFromJSON, TransactionSummaryBaseToJSON, } from './TransactionSummaryBase';
|
|
17
18
|
import { PayeeFromJSON, PayeeToJSON, } from './Payee';
|
|
18
|
-
import {
|
|
19
|
-
import { TransactionSummaryFromJSON, TransactionSummaryToJSON, } from './TransactionSummary';
|
|
19
|
+
import { AccountBaseFromJSON, AccountBaseToJSON, } from './AccountBase';
|
|
20
20
|
import { CategoryGroupFromJSON, CategoryGroupToJSON, } from './CategoryGroup';
|
|
21
21
|
/**
|
|
22
22
|
* Check if a given object implements the PlanDetail interface.
|
|
@@ -43,16 +43,16 @@ export function PlanDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
43
43
|
'last_month': json['last_month'] == null ? undefined : json['last_month'],
|
|
44
44
|
'date_format': json['date_format'] == null ? undefined : DateFormatFromJSON(json['date_format']),
|
|
45
45
|
'currency_format': json['currency_format'] == null ? undefined : CurrencyFormatFromJSON(json['currency_format']),
|
|
46
|
-
'accounts': json['accounts'] == null ? undefined : (json['accounts'].map(
|
|
46
|
+
'accounts': json['accounts'] == null ? undefined : (json['accounts'].map(AccountBaseFromJSON)),
|
|
47
47
|
'payees': json['payees'] == null ? undefined : (json['payees'].map(PayeeFromJSON)),
|
|
48
48
|
'payee_locations': json['payee_locations'] == null ? undefined : (json['payee_locations'].map(PayeeLocationFromJSON)),
|
|
49
49
|
'category_groups': json['category_groups'] == null ? undefined : (json['category_groups'].map(CategoryGroupFromJSON)),
|
|
50
|
-
'categories': json['categories'] == null ? undefined : (json['categories'].map(
|
|
51
|
-
'months': json['months'] == null ? undefined : (json['months'].map(
|
|
52
|
-
'transactions': json['transactions'] == null ? undefined : (json['transactions'].map(
|
|
53
|
-
'subtransactions': json['subtransactions'] == null ? undefined : (json['subtransactions'].map(
|
|
54
|
-
'scheduled_transactions': json['scheduled_transactions'] == null ? undefined : (json['scheduled_transactions'].map(
|
|
55
|
-
'scheduled_subtransactions': json['scheduled_subtransactions'] == null ? undefined : (json['scheduled_subtransactions'].map(
|
|
50
|
+
'categories': json['categories'] == null ? undefined : (json['categories'].map(CategoryBaseFromJSON)),
|
|
51
|
+
'months': json['months'] == null ? undefined : (json['months'].map(MonthDetailBaseFromJSON)),
|
|
52
|
+
'transactions': json['transactions'] == null ? undefined : (json['transactions'].map(TransactionSummaryBaseFromJSON)),
|
|
53
|
+
'subtransactions': json['subtransactions'] == null ? undefined : (json['subtransactions'].map(SubTransactionBaseFromJSON)),
|
|
54
|
+
'scheduled_transactions': json['scheduled_transactions'] == null ? undefined : (json['scheduled_transactions'].map(ScheduledTransactionSummaryBaseFromJSON)),
|
|
55
|
+
'scheduled_subtransactions': json['scheduled_subtransactions'] == null ? undefined : (json['scheduled_subtransactions'].map(ScheduledSubTransactionBaseFromJSON)),
|
|
56
56
|
};
|
|
57
57
|
}
|
|
58
58
|
export function PlanDetailToJSON(json) {
|
|
@@ -71,15 +71,15 @@ export function PlanDetailToJSONTyped(value, ignoreDiscriminator) {
|
|
|
71
71
|
'last_month': value['last_month'],
|
|
72
72
|
'date_format': DateFormatToJSON(value['date_format']),
|
|
73
73
|
'currency_format': CurrencyFormatToJSON(value['currency_format']),
|
|
74
|
-
'accounts': value['accounts'] == null ? undefined : (value['accounts'].map(
|
|
74
|
+
'accounts': value['accounts'] == null ? undefined : (value['accounts'].map(AccountBaseToJSON)),
|
|
75
75
|
'payees': value['payees'] == null ? undefined : (value['payees'].map(PayeeToJSON)),
|
|
76
76
|
'payee_locations': value['payee_locations'] == null ? undefined : (value['payee_locations'].map(PayeeLocationToJSON)),
|
|
77
77
|
'category_groups': value['category_groups'] == null ? undefined : (value['category_groups'].map(CategoryGroupToJSON)),
|
|
78
|
-
'categories': value['categories'] == null ? undefined : (value['categories'].map(
|
|
79
|
-
'months': value['months'] == null ? undefined : (value['months'].map(
|
|
80
|
-
'transactions': value['transactions'] == null ? undefined : (value['transactions'].map(
|
|
81
|
-
'subtransactions': value['subtransactions'] == null ? undefined : (value['subtransactions'].map(
|
|
82
|
-
'scheduled_transactions': value['scheduled_transactions'] == null ? undefined : (value['scheduled_transactions'].map(
|
|
83
|
-
'scheduled_subtransactions': value['scheduled_subtransactions'] == null ? undefined : (value['scheduled_subtransactions'].map(
|
|
78
|
+
'categories': value['categories'] == null ? undefined : (value['categories'].map(CategoryBaseToJSON)),
|
|
79
|
+
'months': value['months'] == null ? undefined : (value['months'].map(MonthDetailBaseToJSON)),
|
|
80
|
+
'transactions': value['transactions'] == null ? undefined : (value['transactions'].map(TransactionSummaryBaseToJSON)),
|
|
81
|
+
'subtransactions': value['subtransactions'] == null ? undefined : (value['subtransactions'].map(SubTransactionBaseToJSON)),
|
|
82
|
+
'scheduled_transactions': value['scheduled_transactions'] == null ? undefined : (value['scheduled_transactions'].map(ScheduledTransactionSummaryBaseToJSON)),
|
|
83
|
+
'scheduled_subtransactions': value['scheduled_subtransactions'] == null ? undefined : (value['scheduled_subtransactions'].map(ScheduledSubTransactionBaseToJSON)),
|
|
84
84
|
};
|
|
85
85
|
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* YNAB API Endpoints
|
|
3
|
+
* 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
|
|
4
|
+
*
|
|
5
|
+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
*
|
|
9
|
+
* @export
|
|
10
|
+
* @interface PostPayee
|
|
11
|
+
*/
|
|
12
|
+
export interface PostPayee {
|
|
13
|
+
/**
|
|
14
|
+
* The name of the payee.
|
|
15
|
+
* @type {string}
|
|
16
|
+
* @memberof PostPayee
|
|
17
|
+
*/
|
|
18
|
+
name: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the PostPayee interface.
|
|
22
|
+
*/
|
|
23
|
+
export declare function instanceOfPostPayee(value: object): value is PostPayee;
|
|
24
|
+
export declare function PostPayeeFromJSON(json: any): PostPayee;
|
|
25
|
+
export declare function PostPayeeFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostPayee;
|
|
26
|
+
export declare function PostPayeeToJSON(json: any): PostPayee;
|
|
27
|
+
export declare function PostPayeeToJSONTyped(value?: PostPayee | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* YNAB API Endpoints
|
|
5
|
+
* 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
|
|
6
|
+
*
|
|
7
|
+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Check if a given object implements the PostPayee interface.
|
|
11
|
+
*/
|
|
12
|
+
export function instanceOfPostPayee(value) {
|
|
13
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
14
|
+
return false;
|
|
15
|
+
return true;
|
|
16
|
+
}
|
|
17
|
+
export function PostPayeeFromJSON(json) {
|
|
18
|
+
return PostPayeeFromJSONTyped(json, false);
|
|
19
|
+
}
|
|
20
|
+
export function PostPayeeFromJSONTyped(json, ignoreDiscriminator) {
|
|
21
|
+
if (json == null) {
|
|
22
|
+
return json;
|
|
23
|
+
}
|
|
24
|
+
return {
|
|
25
|
+
'name': json['name'],
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
export function PostPayeeToJSON(json) {
|
|
29
|
+
return PostPayeeToJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
export function PostPayeeToJSONTyped(value, ignoreDiscriminator) {
|
|
32
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
33
|
+
if (value == null) {
|
|
34
|
+
return value;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'name': value['name'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* YNAB API Endpoints
|
|
3
|
+
* 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
|
|
4
|
+
*
|
|
5
|
+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
6
|
+
*/
|
|
7
|
+
import type { PostPayee } from './PostPayee';
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @export
|
|
11
|
+
* @interface PostPayeeWrapper
|
|
12
|
+
*/
|
|
13
|
+
export interface PostPayeeWrapper {
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @type {PostPayee}
|
|
17
|
+
* @memberof PostPayeeWrapper
|
|
18
|
+
*/
|
|
19
|
+
payee: PostPayee;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PostPayeeWrapper interface.
|
|
23
|
+
*/
|
|
24
|
+
export declare function instanceOfPostPayeeWrapper(value: object): value is PostPayeeWrapper;
|
|
25
|
+
export declare function PostPayeeWrapperFromJSON(json: any): PostPayeeWrapper;
|
|
26
|
+
export declare function PostPayeeWrapperFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostPayeeWrapper;
|
|
27
|
+
export declare function PostPayeeWrapperToJSON(json: any): PostPayeeWrapper;
|
|
28
|
+
export declare function PostPayeeWrapperToJSONTyped(value?: PostPayeeWrapper | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* YNAB API Endpoints
|
|
5
|
+
* 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
|
|
6
|
+
*
|
|
7
|
+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
8
|
+
*/
|
|
9
|
+
import { PostPayeeFromJSON, PostPayeeToJSON, } from './PostPayee';
|
|
10
|
+
/**
|
|
11
|
+
* Check if a given object implements the PostPayeeWrapper interface.
|
|
12
|
+
*/
|
|
13
|
+
export function instanceOfPostPayeeWrapper(value) {
|
|
14
|
+
if (!('payee' in value) || value['payee'] === undefined)
|
|
15
|
+
return false;
|
|
16
|
+
return true;
|
|
17
|
+
}
|
|
18
|
+
export function PostPayeeWrapperFromJSON(json) {
|
|
19
|
+
return PostPayeeWrapperFromJSONTyped(json, false);
|
|
20
|
+
}
|
|
21
|
+
export function PostPayeeWrapperFromJSONTyped(json, ignoreDiscriminator) {
|
|
22
|
+
if (json == null) {
|
|
23
|
+
return json;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
'payee': PostPayeeFromJSON(json['payee']),
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
export function PostPayeeWrapperToJSON(json) {
|
|
30
|
+
return PostPayeeWrapperToJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
export function PostPayeeWrapperToJSONTyped(value, ignoreDiscriminator) {
|
|
33
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
34
|
+
if (value == null) {
|
|
35
|
+
return value;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'payee': PostPayeeToJSON(value['payee']),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*
|
|
5
5
|
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
6
6
|
*/
|
|
7
|
-
import type {
|
|
7
|
+
import type { SaveAccountType } from './SaveAccountType';
|
|
8
8
|
/**
|
|
9
9
|
*
|
|
10
10
|
* @export
|
|
@@ -19,10 +19,10 @@ export interface SaveAccount {
|
|
|
19
19
|
name: string;
|
|
20
20
|
/**
|
|
21
21
|
*
|
|
22
|
-
* @type {
|
|
22
|
+
* @type {SaveAccountType}
|
|
23
23
|
* @memberof SaveAccount
|
|
24
24
|
*/
|
|
25
|
-
type:
|
|
25
|
+
type: SaveAccountType;
|
|
26
26
|
/**
|
|
27
27
|
* The current balance of the account in milliunits format
|
|
28
28
|
* @type {number}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
8
8
|
*/
|
|
9
|
-
import {
|
|
9
|
+
import { SaveAccountTypeFromJSON, SaveAccountTypeToJSON, } from './SaveAccountType';
|
|
10
10
|
/**
|
|
11
11
|
* Check if a given object implements the SaveAccount interface.
|
|
12
12
|
*/
|
|
@@ -28,7 +28,7 @@ export function SaveAccountFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
28
28
|
}
|
|
29
29
|
return {
|
|
30
30
|
'name': json['name'],
|
|
31
|
-
'type':
|
|
31
|
+
'type': SaveAccountTypeFromJSON(json['type']),
|
|
32
32
|
'balance': json['balance'],
|
|
33
33
|
};
|
|
34
34
|
}
|
|
@@ -42,7 +42,7 @@ export function SaveAccountToJSONTyped(value, ignoreDiscriminator) {
|
|
|
42
42
|
}
|
|
43
43
|
return {
|
|
44
44
|
'name': value['name'],
|
|
45
|
-
'type':
|
|
45
|
+
'type': SaveAccountTypeToJSON(value['type']),
|
|
46
46
|
'balance': value['balance'],
|
|
47
47
|
};
|
|
48
48
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* YNAB API Endpoints
|
|
3
|
+
* 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
|
|
4
|
+
*
|
|
5
|
+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* The type of account to create or update
|
|
9
|
+
* @export
|
|
10
|
+
*/
|
|
11
|
+
export declare const SaveAccountType: {
|
|
12
|
+
readonly Checking: "checking";
|
|
13
|
+
readonly Savings: "savings";
|
|
14
|
+
readonly Cash: "cash";
|
|
15
|
+
readonly CreditCard: "creditCard";
|
|
16
|
+
readonly OtherAsset: "otherAsset";
|
|
17
|
+
readonly OtherLiability: "otherLiability";
|
|
18
|
+
};
|
|
19
|
+
export type SaveAccountType = typeof SaveAccountType[keyof typeof SaveAccountType];
|
|
20
|
+
export declare function instanceOfSaveAccountType(value: any): boolean;
|
|
21
|
+
export declare function SaveAccountTypeFromJSON(json: any): SaveAccountType;
|
|
22
|
+
export declare function SaveAccountTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): SaveAccountType;
|
|
23
|
+
export declare function SaveAccountTypeToJSON(value?: SaveAccountType | null): any;
|
|
24
|
+
export declare function SaveAccountTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): SaveAccountType;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* YNAB API Endpoints
|
|
5
|
+
* 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
|
|
6
|
+
*
|
|
7
|
+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* The type of account to create or update
|
|
11
|
+
* @export
|
|
12
|
+
*/
|
|
13
|
+
export var SaveAccountType = {
|
|
14
|
+
Checking: 'checking',
|
|
15
|
+
Savings: 'savings',
|
|
16
|
+
Cash: 'cash',
|
|
17
|
+
CreditCard: 'creditCard',
|
|
18
|
+
OtherAsset: 'otherAsset',
|
|
19
|
+
OtherLiability: 'otherLiability'
|
|
20
|
+
};
|
|
21
|
+
export function instanceOfSaveAccountType(value) {
|
|
22
|
+
for (var key in SaveAccountType) {
|
|
23
|
+
if (Object.prototype.hasOwnProperty.call(SaveAccountType, key)) {
|
|
24
|
+
if (SaveAccountType[key] === value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
return false;
|
|
30
|
+
}
|
|
31
|
+
export function SaveAccountTypeFromJSON(json) {
|
|
32
|
+
return SaveAccountTypeFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
export function SaveAccountTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
export function SaveAccountTypeToJSON(value) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
export function SaveAccountTypeToJSONTyped(value, ignoreDiscriminator) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
@@ -29,7 +29,7 @@ export interface SaveCategory {
|
|
|
29
29
|
*/
|
|
30
30
|
category_group_id?: string;
|
|
31
31
|
/**
|
|
32
|
-
* The goal target amount in milliunits format. If value is specified and goal has not already been configured for category, a monthly
|
|
32
|
+
* The goal target amount in milliunits format. If value is specified and goal has not already been configured for category, a monthly goal will be created for the category with this target amount. If goal_type is not specified, it will default to 'NEED' or 'MF' for Credit Card Payment categories.
|
|
33
33
|
* @type {number}
|
|
34
34
|
* @memberof SaveCategory
|
|
35
35
|
*/
|
|
@@ -40,6 +40,12 @@ export interface SaveCategory {
|
|
|
40
40
|
* @memberof SaveCategory
|
|
41
41
|
*/
|
|
42
42
|
goal_target_date?: string | null;
|
|
43
|
+
/**
|
|
44
|
+
* Whether the goal requires the full target amount each period. Only supported for 'NEED' goals. When true, the goal is configured as 'Set aside another...'. When false, the goal is configured as 'Refill up to...'.
|
|
45
|
+
* @type {boolean}
|
|
46
|
+
* @memberof SaveCategory
|
|
47
|
+
*/
|
|
48
|
+
goal_needs_whole_amount?: boolean | null;
|
|
43
49
|
}
|
|
44
50
|
/**
|
|
45
51
|
* Check if a given object implements the SaveCategory interface.
|
|
@@ -25,6 +25,7 @@ export function SaveCategoryFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
25
25
|
'category_group_id': json['category_group_id'] == null ? undefined : json['category_group_id'],
|
|
26
26
|
'goal_target': json['goal_target'] == null ? undefined : json['goal_target'],
|
|
27
27
|
'goal_target_date': json['goal_target_date'] == null ? undefined : json['goal_target_date'],
|
|
28
|
+
'goal_needs_whole_amount': json['goal_needs_whole_amount'] == null ? undefined : json['goal_needs_whole_amount'],
|
|
28
29
|
};
|
|
29
30
|
}
|
|
30
31
|
export function SaveCategoryToJSON(json) {
|
|
@@ -41,5 +42,6 @@ export function SaveCategoryToJSONTyped(value, ignoreDiscriminator) {
|
|
|
41
42
|
'category_group_id': value['category_group_id'],
|
|
42
43
|
'goal_target': value['goal_target'],
|
|
43
44
|
'goal_target_date': value['goal_target_date'],
|
|
45
|
+
'goal_needs_whole_amount': value['goal_needs_whole_amount'],
|
|
44
46
|
};
|
|
45
47
|
}
|
|
@@ -33,43 +33,55 @@ export interface ScheduledSubTransaction {
|
|
|
33
33
|
* @type {string}
|
|
34
34
|
* @memberof ScheduledSubTransaction
|
|
35
35
|
*/
|
|
36
|
-
memo?: string
|
|
36
|
+
memo?: string;
|
|
37
37
|
/**
|
|
38
38
|
*
|
|
39
39
|
* @type {string}
|
|
40
40
|
* @memberof ScheduledSubTransaction
|
|
41
41
|
*/
|
|
42
|
-
payee_id?: string
|
|
42
|
+
payee_id?: string;
|
|
43
43
|
/**
|
|
44
44
|
*
|
|
45
45
|
* @type {string}
|
|
46
46
|
* @memberof ScheduledSubTransaction
|
|
47
47
|
*/
|
|
48
|
-
payee_name?: string
|
|
48
|
+
payee_name?: string;
|
|
49
49
|
/**
|
|
50
50
|
*
|
|
51
51
|
* @type {string}
|
|
52
52
|
* @memberof ScheduledSubTransaction
|
|
53
53
|
*/
|
|
54
|
-
category_id?: string
|
|
54
|
+
category_id?: string;
|
|
55
55
|
/**
|
|
56
56
|
*
|
|
57
57
|
* @type {string}
|
|
58
58
|
* @memberof ScheduledSubTransaction
|
|
59
59
|
*/
|
|
60
|
-
category_name?: string
|
|
60
|
+
category_name?: string;
|
|
61
61
|
/**
|
|
62
62
|
* If a transfer, the account_id which the scheduled subtransaction transfers to
|
|
63
63
|
* @type {string}
|
|
64
64
|
* @memberof ScheduledSubTransaction
|
|
65
65
|
*/
|
|
66
|
-
transfer_account_id?: string
|
|
66
|
+
transfer_account_id?: string;
|
|
67
67
|
/**
|
|
68
68
|
* Whether or not the scheduled subtransaction has been deleted. Deleted scheduled subtransactions will only be included in delta requests.
|
|
69
69
|
* @type {boolean}
|
|
70
70
|
* @memberof ScheduledSubTransaction
|
|
71
71
|
*/
|
|
72
72
|
deleted: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* The scheduled subtransaction amount formatted in the plan's currency format
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof ScheduledSubTransaction
|
|
77
|
+
*/
|
|
78
|
+
amount_formatted?: string;
|
|
79
|
+
/**
|
|
80
|
+
* The scheduled subtransaction amount as a decimal currency amount
|
|
81
|
+
* @type {number}
|
|
82
|
+
* @memberof ScheduledSubTransaction
|
|
83
|
+
*/
|
|
84
|
+
amount_currency?: number;
|
|
73
85
|
}
|
|
74
86
|
/**
|
|
75
87
|
* Check if a given object implements the ScheduledSubTransaction interface.
|
|
@@ -38,6 +38,8 @@ export function ScheduledSubTransactionFromJSONTyped(json, ignoreDiscriminator)
|
|
|
38
38
|
'category_name': json['category_name'] == null ? undefined : json['category_name'],
|
|
39
39
|
'transfer_account_id': json['transfer_account_id'] == null ? undefined : json['transfer_account_id'],
|
|
40
40
|
'deleted': json['deleted'],
|
|
41
|
+
'amount_formatted': json['amount_formatted'] == null ? undefined : json['amount_formatted'],
|
|
42
|
+
'amount_currency': json['amount_currency'] == null ? undefined : json['amount_currency'],
|
|
41
43
|
};
|
|
42
44
|
}
|
|
43
45
|
export function ScheduledSubTransactionToJSON(json) {
|
|
@@ -59,5 +61,7 @@ export function ScheduledSubTransactionToJSONTyped(value, ignoreDiscriminator) {
|
|
|
59
61
|
'category_name': value['category_name'],
|
|
60
62
|
'transfer_account_id': value['transfer_account_id'],
|
|
61
63
|
'deleted': value['deleted'],
|
|
64
|
+
'amount_formatted': value['amount_formatted'],
|
|
65
|
+
'amount_currency': value['amount_currency'],
|
|
62
66
|
};
|
|
63
67
|
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* YNAB API Endpoints
|
|
3
|
+
* 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
|
|
4
|
+
*
|
|
5
|
+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
*
|
|
9
|
+
* @export
|
|
10
|
+
* @interface ScheduledSubTransactionBase
|
|
11
|
+
*/
|
|
12
|
+
export interface ScheduledSubTransactionBase {
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @type {string}
|
|
16
|
+
* @memberof ScheduledSubTransactionBase
|
|
17
|
+
*/
|
|
18
|
+
id: string;
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ScheduledSubTransactionBase
|
|
23
|
+
*/
|
|
24
|
+
scheduled_transaction_id: string;
|
|
25
|
+
/**
|
|
26
|
+
* The scheduled subtransaction amount in milliunits format
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof ScheduledSubTransactionBase
|
|
29
|
+
*/
|
|
30
|
+
amount: number;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof ScheduledSubTransactionBase
|
|
35
|
+
*/
|
|
36
|
+
memo?: string | null;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof ScheduledSubTransactionBase
|
|
41
|
+
*/
|
|
42
|
+
payee_id?: string | null;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof ScheduledSubTransactionBase
|
|
47
|
+
*/
|
|
48
|
+
payee_name?: string | null;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof ScheduledSubTransactionBase
|
|
53
|
+
*/
|
|
54
|
+
category_id?: string | null;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof ScheduledSubTransactionBase
|
|
59
|
+
*/
|
|
60
|
+
category_name?: string | null;
|
|
61
|
+
/**
|
|
62
|
+
* If a transfer, the account_id which the scheduled subtransaction transfers to
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof ScheduledSubTransactionBase
|
|
65
|
+
*/
|
|
66
|
+
transfer_account_id?: string | null;
|
|
67
|
+
/**
|
|
68
|
+
* Whether or not the scheduled subtransaction has been deleted. Deleted scheduled subtransactions will only be included in delta requests.
|
|
69
|
+
* @type {boolean}
|
|
70
|
+
* @memberof ScheduledSubTransactionBase
|
|
71
|
+
*/
|
|
72
|
+
deleted: boolean;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Check if a given object implements the ScheduledSubTransactionBase interface.
|
|
76
|
+
*/
|
|
77
|
+
export declare function instanceOfScheduledSubTransactionBase(value: object): value is ScheduledSubTransactionBase;
|
|
78
|
+
export declare function ScheduledSubTransactionBaseFromJSON(json: any): ScheduledSubTransactionBase;
|
|
79
|
+
export declare function ScheduledSubTransactionBaseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduledSubTransactionBase;
|
|
80
|
+
export declare function ScheduledSubTransactionBaseToJSON(json: any): ScheduledSubTransactionBase;
|
|
81
|
+
export declare function ScheduledSubTransactionBaseToJSONTyped(value?: ScheduledSubTransactionBase | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* YNAB API Endpoints
|
|
5
|
+
* 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
|
|
6
|
+
*
|
|
7
|
+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Check if a given object implements the ScheduledSubTransactionBase interface.
|
|
11
|
+
*/
|
|
12
|
+
export function instanceOfScheduledSubTransactionBase(value) {
|
|
13
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
14
|
+
return false;
|
|
15
|
+
if (!('scheduled_transaction_id' in value) || value['scheduled_transaction_id'] === undefined)
|
|
16
|
+
return false;
|
|
17
|
+
if (!('amount' in value) || value['amount'] === undefined)
|
|
18
|
+
return false;
|
|
19
|
+
if (!('deleted' in value) || value['deleted'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
export function ScheduledSubTransactionBaseFromJSON(json) {
|
|
24
|
+
return ScheduledSubTransactionBaseFromJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
export function ScheduledSubTransactionBaseFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if (json == null) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'id': json['id'],
|
|
32
|
+
'scheduled_transaction_id': json['scheduled_transaction_id'],
|
|
33
|
+
'amount': json['amount'],
|
|
34
|
+
'memo': json['memo'] == null ? undefined : json['memo'],
|
|
35
|
+
'payee_id': json['payee_id'] == null ? undefined : json['payee_id'],
|
|
36
|
+
'payee_name': json['payee_name'] == null ? undefined : json['payee_name'],
|
|
37
|
+
'category_id': json['category_id'] == null ? undefined : json['category_id'],
|
|
38
|
+
'category_name': json['category_name'] == null ? undefined : json['category_name'],
|
|
39
|
+
'transfer_account_id': json['transfer_account_id'] == null ? undefined : json['transfer_account_id'],
|
|
40
|
+
'deleted': json['deleted'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
export function ScheduledSubTransactionBaseToJSON(json) {
|
|
44
|
+
return ScheduledSubTransactionBaseToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
export function ScheduledSubTransactionBaseToJSONTyped(value, ignoreDiscriminator) {
|
|
47
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'id': value['id'],
|
|
53
|
+
'scheduled_transaction_id': value['scheduled_transaction_id'],
|
|
54
|
+
'amount': value['amount'],
|
|
55
|
+
'memo': value['memo'],
|
|
56
|
+
'payee_id': value['payee_id'],
|
|
57
|
+
'payee_name': value['payee_name'],
|
|
58
|
+
'category_id': value['category_id'],
|
|
59
|
+
'category_name': value['category_name'],
|
|
60
|
+
'transfer_account_id': value['transfer_account_id'],
|
|
61
|
+
'deleted': value['deleted'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
@@ -90,6 +90,18 @@ export interface ScheduledTransactionDetail {
|
|
|
90
90
|
* @memberof ScheduledTransactionDetail
|
|
91
91
|
*/
|
|
92
92
|
deleted: boolean;
|
|
93
|
+
/**
|
|
94
|
+
* The scheduled transaction amount formatted in the plan's currency format
|
|
95
|
+
* @type {string}
|
|
96
|
+
* @memberof ScheduledTransactionDetail
|
|
97
|
+
*/
|
|
98
|
+
amount_formatted?: string;
|
|
99
|
+
/**
|
|
100
|
+
* The scheduled transaction amount as a decimal currency amount
|
|
101
|
+
* @type {number}
|
|
102
|
+
* @memberof ScheduledTransactionDetail
|
|
103
|
+
*/
|
|
104
|
+
amount_currency?: number;
|
|
93
105
|
/**
|
|
94
106
|
*
|
|
95
107
|
* @type {string}
|
|
@@ -71,6 +71,8 @@ export function ScheduledTransactionDetailFromJSONTyped(json, ignoreDiscriminato
|
|
|
71
71
|
'category_id': json['category_id'] == null ? undefined : json['category_id'],
|
|
72
72
|
'transfer_account_id': json['transfer_account_id'] == null ? undefined : json['transfer_account_id'],
|
|
73
73
|
'deleted': json['deleted'],
|
|
74
|
+
'amount_formatted': json['amount_formatted'] == null ? undefined : json['amount_formatted'],
|
|
75
|
+
'amount_currency': json['amount_currency'] == null ? undefined : json['amount_currency'],
|
|
74
76
|
'account_name': json['account_name'],
|
|
75
77
|
'payee_name': json['payee_name'] == null ? undefined : json['payee_name'],
|
|
76
78
|
'category_name': json['category_name'] == null ? undefined : json['category_name'],
|
|
@@ -99,6 +101,8 @@ export function ScheduledTransactionDetailToJSONTyped(value, ignoreDiscriminator
|
|
|
99
101
|
'category_id': value['category_id'],
|
|
100
102
|
'transfer_account_id': value['transfer_account_id'],
|
|
101
103
|
'deleted': value['deleted'],
|
|
104
|
+
'amount_formatted': value['amount_formatted'],
|
|
105
|
+
'amount_currency': value['amount_currency'],
|
|
102
106
|
'account_name': value['account_name'],
|
|
103
107
|
'payee_name': value['payee_name'],
|
|
104
108
|
'category_name': value['category_name'],
|