ynab 3.1.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/README.md +1 -1
- package/dist/apis/AccountsApi.js +3 -3
- package/dist/apis/CategoriesApi.js +8 -8
- package/dist/apis/MoneyMovementsApi.js +4 -4
- package/dist/apis/MonthsApi.js +2 -2
- package/dist/apis/PayeeLocationsApi.js +3 -3
- package/dist/apis/PayeesApi.d.ts +15 -1
- package/dist/apis/PayeesApi.js +42 -3
- package/dist/apis/PlansApi.js +3 -3
- package/dist/apis/ScheduledTransactionsApi.js +5 -5
- package/dist/apis/TransactionsApi.js +11 -11
- package/dist/browser/ynab.js +1 -1
- package/dist/esm/apis/AccountsApi.js +3 -3
- package/dist/esm/apis/CategoriesApi.js +8 -8
- package/dist/esm/apis/MoneyMovementsApi.js +4 -4
- package/dist/esm/apis/MonthsApi.js +2 -2
- package/dist/esm/apis/PayeeLocationsApi.js +3 -3
- package/dist/esm/apis/PayeesApi.d.ts +15 -1
- package/dist/esm/apis/PayeesApi.js +65 -4
- package/dist/esm/apis/PlansApi.js +3 -3
- package/dist/esm/apis/ScheduledTransactionsApi.js +5 -5
- package/dist/esm/apis/TransactionsApi.js +11 -11
- 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/PlanDetailResponseData.d.ts +1 -1
- package/dist/esm/models/PlanDetailResponseData.js +3 -3
- package/dist/esm/models/PlanSummaryResponseData.d.ts +2 -2
- package/dist/esm/models/PlanSummaryResponseData.js +5 -5
- 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/PlanDetailResponseData.d.ts +1 -1
- package/dist/models/PlanDetailResponseData.js +3 -3
- package/dist/models/PlanSummaryResponseData.d.ts +2 -2
- package/dist/models/PlanSummaryResponseData.js +5 -5
- 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
|
@@ -21,7 +21,7 @@ export interface MonthSummary {
|
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @memberof MonthSummary
|
|
23
23
|
*/
|
|
24
|
-
note?: string
|
|
24
|
+
note?: string;
|
|
25
25
|
/**
|
|
26
26
|
* The total amount of transactions categorized to 'Inflow: Ready to Assign' in the month
|
|
27
27
|
* @type {number}
|
|
@@ -51,13 +51,61 @@ export interface MonthSummary {
|
|
|
51
51
|
* @type {number}
|
|
52
52
|
* @memberof MonthSummary
|
|
53
53
|
*/
|
|
54
|
-
age_of_money?: number
|
|
54
|
+
age_of_money?: number;
|
|
55
55
|
/**
|
|
56
56
|
* Whether or not the month has been deleted. Deleted months will only be included in delta requests.
|
|
57
57
|
* @type {boolean}
|
|
58
58
|
* @memberof MonthSummary
|
|
59
59
|
*/
|
|
60
60
|
deleted: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* The total income formatted in the plan's currency format
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof MonthSummary
|
|
65
|
+
*/
|
|
66
|
+
income_formatted?: string;
|
|
67
|
+
/**
|
|
68
|
+
* The total income as a decimal currency amount
|
|
69
|
+
* @type {number}
|
|
70
|
+
* @memberof MonthSummary
|
|
71
|
+
*/
|
|
72
|
+
income_currency?: number;
|
|
73
|
+
/**
|
|
74
|
+
* The total amount assigned formatted in the plan's currency format
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof MonthSummary
|
|
77
|
+
*/
|
|
78
|
+
budgeted_formatted?: string;
|
|
79
|
+
/**
|
|
80
|
+
* The total amount assigned as a decimal currency amount
|
|
81
|
+
* @type {number}
|
|
82
|
+
* @memberof MonthSummary
|
|
83
|
+
*/
|
|
84
|
+
budgeted_currency?: number;
|
|
85
|
+
/**
|
|
86
|
+
* The total activity amount formatted in the plan's currency format
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof MonthSummary
|
|
89
|
+
*/
|
|
90
|
+
activity_formatted?: string;
|
|
91
|
+
/**
|
|
92
|
+
* The total activity amount as a decimal currency amount
|
|
93
|
+
* @type {number}
|
|
94
|
+
* @memberof MonthSummary
|
|
95
|
+
*/
|
|
96
|
+
activity_currency?: number;
|
|
97
|
+
/**
|
|
98
|
+
* The available amount for 'Ready to Assign' formatted in the plan's currency format
|
|
99
|
+
* @type {string}
|
|
100
|
+
* @memberof MonthSummary
|
|
101
|
+
*/
|
|
102
|
+
to_be_budgeted_formatted?: string;
|
|
103
|
+
/**
|
|
104
|
+
* The available amount for 'Ready to Assign' as a decimal currency amount
|
|
105
|
+
* @type {number}
|
|
106
|
+
* @memberof MonthSummary
|
|
107
|
+
*/
|
|
108
|
+
to_be_budgeted_currency?: number;
|
|
61
109
|
}
|
|
62
110
|
/**
|
|
63
111
|
* Check if a given object implements the MonthSummary interface.
|
|
@@ -40,6 +40,14 @@ export function MonthSummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
40
|
'to_be_budgeted': json['to_be_budgeted'],
|
|
41
41
|
'age_of_money': json['age_of_money'] == null ? undefined : json['age_of_money'],
|
|
42
42
|
'deleted': json['deleted'],
|
|
43
|
+
'income_formatted': json['income_formatted'] == null ? undefined : json['income_formatted'],
|
|
44
|
+
'income_currency': json['income_currency'] == null ? undefined : json['income_currency'],
|
|
45
|
+
'budgeted_formatted': json['budgeted_formatted'] == null ? undefined : json['budgeted_formatted'],
|
|
46
|
+
'budgeted_currency': json['budgeted_currency'] == null ? undefined : json['budgeted_currency'],
|
|
47
|
+
'activity_formatted': json['activity_formatted'] == null ? undefined : json['activity_formatted'],
|
|
48
|
+
'activity_currency': json['activity_currency'] == null ? undefined : json['activity_currency'],
|
|
49
|
+
'to_be_budgeted_formatted': json['to_be_budgeted_formatted'] == null ? undefined : json['to_be_budgeted_formatted'],
|
|
50
|
+
'to_be_budgeted_currency': json['to_be_budgeted_currency'] == null ? undefined : json['to_be_budgeted_currency'],
|
|
43
51
|
};
|
|
44
52
|
}
|
|
45
53
|
export function MonthSummaryToJSON(json) {
|
|
@@ -59,5 +67,13 @@ export function MonthSummaryToJSONTyped(value, ignoreDiscriminator) {
|
|
|
59
67
|
'to_be_budgeted': value['to_be_budgeted'],
|
|
60
68
|
'age_of_money': value['age_of_money'],
|
|
61
69
|
'deleted': value['deleted'],
|
|
70
|
+
'income_formatted': value['income_formatted'],
|
|
71
|
+
'income_currency': value['income_currency'],
|
|
72
|
+
'budgeted_formatted': value['budgeted_formatted'],
|
|
73
|
+
'budgeted_currency': value['budgeted_currency'],
|
|
74
|
+
'activity_formatted': value['activity_formatted'],
|
|
75
|
+
'activity_currency': value['activity_currency'],
|
|
76
|
+
'to_be_budgeted_formatted': value['to_be_budgeted_formatted'],
|
|
77
|
+
'to_be_budgeted_currency': value['to_be_budgeted_currency'],
|
|
62
78
|
};
|
|
63
79
|
}
|
|
@@ -0,0 +1,69 @@
|
|
|
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 MonthSummaryBase
|
|
11
|
+
*/
|
|
12
|
+
export interface MonthSummaryBase {
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @type {string}
|
|
16
|
+
* @memberof MonthSummaryBase
|
|
17
|
+
*/
|
|
18
|
+
month: string;
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof MonthSummaryBase
|
|
23
|
+
*/
|
|
24
|
+
note?: string | null;
|
|
25
|
+
/**
|
|
26
|
+
* The total amount of transactions categorized to 'Inflow: Ready to Assign' in the month
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof MonthSummaryBase
|
|
29
|
+
*/
|
|
30
|
+
income: number;
|
|
31
|
+
/**
|
|
32
|
+
* The total amount assigned (budgeted) in the month
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof MonthSummaryBase
|
|
35
|
+
*/
|
|
36
|
+
budgeted: number;
|
|
37
|
+
/**
|
|
38
|
+
* The total amount of transactions in the month, excluding those categorized to 'Inflow: Ready to Assign'
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof MonthSummaryBase
|
|
41
|
+
*/
|
|
42
|
+
activity: number;
|
|
43
|
+
/**
|
|
44
|
+
* The available amount for 'Ready to Assign'
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof MonthSummaryBase
|
|
47
|
+
*/
|
|
48
|
+
to_be_budgeted: number;
|
|
49
|
+
/**
|
|
50
|
+
* The Age of Money as of the month
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof MonthSummaryBase
|
|
53
|
+
*/
|
|
54
|
+
age_of_money?: number | null;
|
|
55
|
+
/**
|
|
56
|
+
* Whether or not the month has been deleted. Deleted months will only be included in delta requests.
|
|
57
|
+
* @type {boolean}
|
|
58
|
+
* @memberof MonthSummaryBase
|
|
59
|
+
*/
|
|
60
|
+
deleted: boolean;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Check if a given object implements the MonthSummaryBase interface.
|
|
64
|
+
*/
|
|
65
|
+
export declare function instanceOfMonthSummaryBase(value: object): value is MonthSummaryBase;
|
|
66
|
+
export declare function MonthSummaryBaseFromJSON(json: any): MonthSummaryBase;
|
|
67
|
+
export declare function MonthSummaryBaseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MonthSummaryBase;
|
|
68
|
+
export declare function MonthSummaryBaseToJSON(json: any): MonthSummaryBase;
|
|
69
|
+
export declare function MonthSummaryBaseToJSONTyped(value?: MonthSummaryBase | 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 MonthSummaryBase interface.
|
|
11
|
+
*/
|
|
12
|
+
export function instanceOfMonthSummaryBase(value) {
|
|
13
|
+
if (!('month' in value) || value['month'] === undefined)
|
|
14
|
+
return false;
|
|
15
|
+
if (!('income' in value) || value['income'] === undefined)
|
|
16
|
+
return false;
|
|
17
|
+
if (!('budgeted' in value) || value['budgeted'] === undefined)
|
|
18
|
+
return false;
|
|
19
|
+
if (!('activity' in value) || value['activity'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('to_be_budgeted' in value) || value['to_be_budgeted'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('deleted' in value) || value['deleted'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
export function MonthSummaryBaseFromJSON(json) {
|
|
28
|
+
return MonthSummaryBaseFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
export function MonthSummaryBaseFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'month': json['month'],
|
|
36
|
+
'note': json['note'] == null ? undefined : json['note'],
|
|
37
|
+
'income': json['income'],
|
|
38
|
+
'budgeted': json['budgeted'],
|
|
39
|
+
'activity': json['activity'],
|
|
40
|
+
'to_be_budgeted': json['to_be_budgeted'],
|
|
41
|
+
'age_of_money': json['age_of_money'] == null ? undefined : json['age_of_money'],
|
|
42
|
+
'deleted': json['deleted'],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
export function MonthSummaryBaseToJSON(json) {
|
|
46
|
+
return MonthSummaryBaseToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
export function MonthSummaryBaseToJSONTyped(value, ignoreDiscriminator) {
|
|
49
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'month': value['month'],
|
|
55
|
+
'note': value['note'],
|
|
56
|
+
'income': value['income'],
|
|
57
|
+
'budgeted': value['budgeted'],
|
|
58
|
+
'activity': value['activity'],
|
|
59
|
+
'to_be_budgeted': value['to_be_budgeted'],
|
|
60
|
+
'age_of_money': value['age_of_money'],
|
|
61
|
+
'deleted': value['deleted'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
@@ -29,7 +29,7 @@ export interface NewCategory {
|
|
|
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 NewCategory
|
|
35
35
|
*/
|
|
@@ -40,6 +40,12 @@ export interface NewCategory {
|
|
|
40
40
|
* @memberof NewCategory
|
|
41
41
|
*/
|
|
42
42
|
goal_target_date?: string;
|
|
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 NewCategory
|
|
47
|
+
*/
|
|
48
|
+
goal_needs_whole_amount?: boolean;
|
|
43
49
|
}
|
|
44
50
|
/**
|
|
45
51
|
* Check if a given object implements the NewCategory interface.
|
|
@@ -25,6 +25,7 @@ export function NewCategoryFromJSONTyped(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 NewCategoryToJSON(json) {
|
|
@@ -41,5 +42,6 @@ export function NewCategoryToJSONTyped(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
|
}
|
|
@@ -4,17 +4,17 @@
|
|
|
4
4
|
*
|
|
5
5
|
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
6
6
|
*/
|
|
7
|
+
import type { MonthDetailBase } from './MonthDetailBase';
|
|
7
8
|
import type { PayeeLocation } from './PayeeLocation';
|
|
8
|
-
import type {
|
|
9
|
-
import type { ScheduledTransactionSummary } from './ScheduledTransactionSummary';
|
|
10
|
-
import type { Category } from './Category';
|
|
9
|
+
import type { CategoryBase } from './CategoryBase';
|
|
11
10
|
import type { CurrencyFormat } from './CurrencyFormat';
|
|
12
11
|
import type { DateFormat } from './DateFormat';
|
|
13
|
-
import type {
|
|
14
|
-
import type {
|
|
12
|
+
import type { SubTransactionBase } from './SubTransactionBase';
|
|
13
|
+
import type { ScheduledSubTransactionBase } from './ScheduledSubTransactionBase';
|
|
14
|
+
import type { ScheduledTransactionSummaryBase } from './ScheduledTransactionSummaryBase';
|
|
15
|
+
import type { TransactionSummaryBase } from './TransactionSummaryBase';
|
|
15
16
|
import type { Payee } from './Payee';
|
|
16
|
-
import type {
|
|
17
|
-
import type { TransactionSummary } from './TransactionSummary';
|
|
17
|
+
import type { AccountBase } from './AccountBase';
|
|
18
18
|
import type { CategoryGroup } from './CategoryGroup';
|
|
19
19
|
/**
|
|
20
20
|
*
|
|
@@ -66,10 +66,10 @@ export interface PlanDetail {
|
|
|
66
66
|
currency_format?: CurrencyFormat;
|
|
67
67
|
/**
|
|
68
68
|
*
|
|
69
|
-
* @type {Array<
|
|
69
|
+
* @type {Array<AccountBase>}
|
|
70
70
|
* @memberof PlanDetail
|
|
71
71
|
*/
|
|
72
|
-
accounts?: Array<
|
|
72
|
+
accounts?: Array<AccountBase>;
|
|
73
73
|
/**
|
|
74
74
|
*
|
|
75
75
|
* @type {Array<Payee>}
|
|
@@ -90,40 +90,40 @@ export interface PlanDetail {
|
|
|
90
90
|
category_groups?: Array<CategoryGroup>;
|
|
91
91
|
/**
|
|
92
92
|
*
|
|
93
|
-
* @type {Array<
|
|
93
|
+
* @type {Array<CategoryBase>}
|
|
94
94
|
* @memberof PlanDetail
|
|
95
95
|
*/
|
|
96
|
-
categories?: Array<
|
|
96
|
+
categories?: Array<CategoryBase>;
|
|
97
97
|
/**
|
|
98
98
|
*
|
|
99
|
-
* @type {Array<
|
|
99
|
+
* @type {Array<MonthDetailBase>}
|
|
100
100
|
* @memberof PlanDetail
|
|
101
101
|
*/
|
|
102
|
-
months?: Array<
|
|
102
|
+
months?: Array<MonthDetailBase>;
|
|
103
103
|
/**
|
|
104
104
|
*
|
|
105
|
-
* @type {Array<
|
|
105
|
+
* @type {Array<TransactionSummaryBase>}
|
|
106
106
|
* @memberof PlanDetail
|
|
107
107
|
*/
|
|
108
|
-
transactions?: Array<
|
|
108
|
+
transactions?: Array<TransactionSummaryBase>;
|
|
109
109
|
/**
|
|
110
110
|
*
|
|
111
|
-
* @type {Array<
|
|
111
|
+
* @type {Array<SubTransactionBase>}
|
|
112
112
|
* @memberof PlanDetail
|
|
113
113
|
*/
|
|
114
|
-
subtransactions?: Array<
|
|
114
|
+
subtransactions?: Array<SubTransactionBase>;
|
|
115
115
|
/**
|
|
116
116
|
*
|
|
117
|
-
* @type {Array<
|
|
117
|
+
* @type {Array<ScheduledTransactionSummaryBase>}
|
|
118
118
|
* @memberof PlanDetail
|
|
119
119
|
*/
|
|
120
|
-
scheduled_transactions?: Array<
|
|
120
|
+
scheduled_transactions?: Array<ScheduledTransactionSummaryBase>;
|
|
121
121
|
/**
|
|
122
122
|
*
|
|
123
|
-
* @type {Array<
|
|
123
|
+
* @type {Array<ScheduledSubTransactionBase>}
|
|
124
124
|
* @memberof PlanDetail
|
|
125
125
|
*/
|
|
126
|
-
scheduled_subtransactions?: Array<
|
|
126
|
+
scheduled_subtransactions?: Array<ScheduledSubTransactionBase>;
|
|
127
127
|
}
|
|
128
128
|
/**
|
|
129
129
|
* Check if a given object implements the PlanDetail interface.
|
|
@@ -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
|
}
|
|
@@ -11,7 +11,7 @@ import { PlanDetailFromJSON, PlanDetailToJSON, } from './PlanDetail';
|
|
|
11
11
|
* Check if a given object implements the PlanDetailResponseData interface.
|
|
12
12
|
*/
|
|
13
13
|
export function instanceOfPlanDetailResponseData(value) {
|
|
14
|
-
if (!('
|
|
14
|
+
if (!('plan' in value) || value['plan'] === undefined)
|
|
15
15
|
return false;
|
|
16
16
|
if (!('server_knowledge' in value) || value['server_knowledge'] === undefined)
|
|
17
17
|
return false;
|
|
@@ -25,7 +25,7 @@ export function PlanDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
25
25
|
return json;
|
|
26
26
|
}
|
|
27
27
|
return {
|
|
28
|
-
'
|
|
28
|
+
'plan': PlanDetailFromJSON(json['plan']),
|
|
29
29
|
'server_knowledge': json['server_knowledge'],
|
|
30
30
|
};
|
|
31
31
|
}
|
|
@@ -38,7 +38,7 @@ export function PlanDetailResponseDataToJSONTyped(value, ignoreDiscriminator) {
|
|
|
38
38
|
return value;
|
|
39
39
|
}
|
|
40
40
|
return {
|
|
41
|
-
'
|
|
41
|
+
'plan': PlanDetailToJSON(value['plan']),
|
|
42
42
|
'server_knowledge': value['server_knowledge'],
|
|
43
43
|
};
|
|
44
44
|
}
|
|
@@ -16,13 +16,13 @@ export interface PlanSummaryResponseData {
|
|
|
16
16
|
* @type {Array<PlanSummary>}
|
|
17
17
|
* @memberof PlanSummaryResponseData
|
|
18
18
|
*/
|
|
19
|
-
|
|
19
|
+
plans: Array<PlanSummary>;
|
|
20
20
|
/**
|
|
21
21
|
*
|
|
22
22
|
* @type {PlanSummary}
|
|
23
23
|
* @memberof PlanSummaryResponseData
|
|
24
24
|
*/
|
|
25
|
-
|
|
25
|
+
default_plan?: PlanSummary;
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
28
28
|
* Check if a given object implements the PlanSummaryResponseData interface.
|
|
@@ -11,7 +11,7 @@ import { PlanSummaryFromJSON, PlanSummaryToJSON, } from './PlanSummary';
|
|
|
11
11
|
* Check if a given object implements the PlanSummaryResponseData interface.
|
|
12
12
|
*/
|
|
13
13
|
export function instanceOfPlanSummaryResponseData(value) {
|
|
14
|
-
if (!('
|
|
14
|
+
if (!('plans' in value) || value['plans'] === undefined)
|
|
15
15
|
return false;
|
|
16
16
|
return true;
|
|
17
17
|
}
|
|
@@ -23,8 +23,8 @@ export function PlanSummaryResponseDataFromJSONTyped(json, ignoreDiscriminator)
|
|
|
23
23
|
return json;
|
|
24
24
|
}
|
|
25
25
|
return {
|
|
26
|
-
'
|
|
27
|
-
'
|
|
26
|
+
'plans': (json['plans'].map(PlanSummaryFromJSON)),
|
|
27
|
+
'default_plan': json['default_plan'] == null ? undefined : PlanSummaryFromJSON(json['default_plan']),
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
30
|
export function PlanSummaryResponseDataToJSON(json) {
|
|
@@ -36,7 +36,7 @@ export function PlanSummaryResponseDataToJSONTyped(value, ignoreDiscriminator) {
|
|
|
36
36
|
return value;
|
|
37
37
|
}
|
|
38
38
|
return {
|
|
39
|
-
'
|
|
40
|
-
'
|
|
39
|
+
'plans': (value['plans'].map(PlanSummaryToJSON)),
|
|
40
|
+
'default_plan': PlanSummaryToJSON(value['default_plan']),
|
|
41
41
|
};
|
|
42
42
|
}
|
|
@@ -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;
|