ynab 2.0.0 → 2.3.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 +2 -2
- package/dist/apis/AccountsApi.d.ts +1 -1
- package/dist/apis/AccountsApi.js +1 -1
- package/dist/apis/BudgetsApi.d.ts +1 -1
- package/dist/apis/BudgetsApi.js +1 -1
- package/dist/apis/CategoriesApi.d.ts +17 -2
- package/dist/apis/CategoriesApi.js +43 -1
- package/dist/apis/CustomTransactionsApi.d.ts +1 -1
- package/dist/apis/MonthsApi.d.ts +1 -1
- package/dist/apis/MonthsApi.js +1 -1
- package/dist/apis/PayeeLocationsApi.d.ts +1 -1
- package/dist/apis/PayeeLocationsApi.js +1 -1
- package/dist/apis/PayeesApi.d.ts +17 -2
- package/dist/apis/PayeesApi.js +43 -1
- package/dist/apis/ScheduledTransactionsApi.d.ts +1 -1
- package/dist/apis/ScheduledTransactionsApi.js +1 -1
- package/dist/apis/TransactionsApi.d.ts +13 -13
- package/dist/apis/TransactionsApi.js +9 -9
- package/dist/apis/UserApi.d.ts +1 -1
- package/dist/apis/UserApi.js +1 -1
- package/dist/apis/index.d.ts +0 -1
- package/dist/apis/index.js +5 -2
- package/dist/browser/ynab.js +1 -1
- package/dist/esm/apis/CategoriesApi.d.ts +16 -1
- package/dist/esm/apis/CategoriesApi.js +65 -1
- package/dist/esm/apis/CustomTransactionsApi.d.ts +1 -1
- package/dist/esm/apis/index.d.ts +0 -1
- package/dist/esm/apis/index.js +0 -1
- package/dist/esm/models/Category.d.ts +0 -1
- package/dist/esm/models/Category.js +0 -1
- package/dist/esm/models/CategoryGoalType.d.ts +25 -0
- package/dist/esm/models/CategoryGoalType.js +29 -0
- package/dist/esm/models/HybridTransaction.d.ts +9 -30
- package/dist/esm/models/HybridTransaction.js +7 -26
- package/dist/esm/models/PatchCategoryWrapper.d.ts +32 -0
- package/dist/esm/models/PatchCategoryWrapper.js +44 -0
- package/dist/esm/models/SaveCategory.d.ts +43 -0
- package/dist/esm/models/SaveCategory.js +47 -0
- package/dist/esm/models/SaveTransaction.d.ts +8 -28
- package/dist/esm/models/SaveTransaction.js +6 -24
- package/dist/esm/models/SaveTransactionWithId.d.ts +8 -28
- package/dist/esm/models/SaveTransactionWithId.js +6 -24
- package/dist/esm/models/SaveTransactionWithOptionalFields.d.ts +8 -28
- package/dist/esm/models/SaveTransactionWithOptionalFields.js +6 -24
- package/dist/esm/models/SaveTransactionWithOptionalFieldsFlagColor.d.ts +25 -0
- package/dist/esm/models/SaveTransactionWithOptionalFieldsFlagColor.js +29 -0
- package/dist/esm/models/ScheduledTransactionDetail.d.ts +4 -16
- package/dist/esm/models/ScheduledTransactionDetail.js +3 -14
- package/dist/esm/models/ScheduledTransactionSummary.d.ts +4 -16
- package/dist/esm/models/ScheduledTransactionSummary.js +3 -14
- package/dist/esm/models/ScheduledTransactionSummaryFlagColor.d.ts +25 -0
- package/dist/esm/models/ScheduledTransactionSummaryFlagColor.js +29 -0
- package/dist/esm/models/TransactionClearedStatus.d.ts +24 -0
- package/dist/esm/models/TransactionClearedStatus.js +31 -0
- package/dist/esm/models/TransactionDetail.d.ts +9 -30
- package/dist/esm/models/TransactionDetail.js +7 -26
- package/dist/esm/models/TransactionFlagColor.d.ts +27 -0
- package/dist/esm/models/TransactionFlagColor.js +34 -0
- package/dist/esm/models/TransactionSummary.d.ts +9 -30
- package/dist/esm/models/TransactionSummary.js +7 -26
- package/dist/esm/models/TransactionSummaryDebtTransactionType.d.ts +25 -0
- package/dist/esm/models/TransactionSummaryDebtTransactionType.js +29 -0
- package/dist/esm/models/index.d.ts +4 -0
- package/dist/esm/models/index.js +4 -0
- package/dist/index.js +5 -1
- package/dist/models/Account.d.ts +8 -8
- package/dist/models/Account.js +51 -46
- package/dist/models/AccountResponse.d.ts +2 -2
- package/dist/models/AccountResponse.js +8 -11
- package/dist/models/AccountResponseData.d.ts +2 -2
- package/dist/models/AccountResponseData.js +8 -11
- package/dist/models/AccountType.d.ts +3 -2
- package/dist/models/AccountType.js +13 -2
- package/dist/models/AccountsResponse.d.ts +2 -2
- package/dist/models/AccountsResponse.js +8 -11
- package/dist/models/AccountsResponseData.d.ts +2 -2
- package/dist/models/AccountsResponseData.js +11 -13
- package/dist/models/BudgetDetail.d.ts +8 -8
- package/dist/models/BudgetDetail.js +45 -48
- package/dist/models/BudgetDetailResponse.d.ts +2 -2
- package/dist/models/BudgetDetailResponse.js +8 -11
- package/dist/models/BudgetDetailResponseData.d.ts +2 -2
- package/dist/models/BudgetDetailResponseData.js +11 -13
- package/dist/models/BudgetSettings.d.ts +2 -2
- package/dist/models/BudgetSettings.js +11 -13
- package/dist/models/BudgetSettingsResponse.d.ts +2 -2
- package/dist/models/BudgetSettingsResponse.js +8 -11
- package/dist/models/BudgetSettingsResponseData.d.ts +2 -2
- package/dist/models/BudgetSettingsResponseData.js +8 -11
- package/dist/models/BudgetSummary.d.ts +4 -4
- package/dist/models/BudgetSummary.js +23 -26
- package/dist/models/BudgetSummaryResponse.d.ts +2 -2
- package/dist/models/BudgetSummaryResponse.js +8 -11
- package/dist/models/BudgetSummaryResponseData.d.ts +2 -2
- package/dist/models/BudgetSummaryResponseData.js +10 -14
- package/dist/models/BulkResponse.d.ts +2 -2
- package/dist/models/BulkResponse.js +8 -11
- package/dist/models/BulkResponseData.d.ts +2 -2
- package/dist/models/BulkResponseData.js +8 -11
- package/dist/models/BulkResponseDataBulk.d.ts +2 -2
- package/dist/models/BulkResponseDataBulk.js +11 -13
- package/dist/models/BulkTransactions.d.ts +5 -5
- package/dist/models/BulkTransactions.js +10 -13
- package/dist/models/CategoriesResponse.d.ts +2 -2
- package/dist/models/CategoriesResponse.js +8 -11
- package/dist/models/CategoriesResponseData.d.ts +2 -2
- package/dist/models/CategoriesResponseData.js +11 -13
- package/dist/models/Category.d.ts +22 -17
- package/dist/models/Category.js +61 -57
- package/dist/models/CategoryGoalType.d.ts +25 -0
- package/dist/models/CategoryGoalType.js +36 -0
- package/dist/models/CategoryGroup.d.ts +2 -2
- package/dist/models/CategoryGroup.js +17 -17
- package/dist/models/CategoryGroupWithCategories.d.ts +2 -2
- package/dist/models/CategoryGroupWithCategories.js +20 -19
- package/dist/models/CategoryResponse.d.ts +2 -2
- package/dist/models/CategoryResponse.js +8 -11
- package/dist/models/CategoryResponseData.d.ts +2 -2
- package/dist/models/CategoryResponseData.js +8 -11
- package/dist/models/CurrencyFormat.d.ts +2 -2
- package/dist/models/CurrencyFormat.js +29 -25
- package/dist/models/DateFormat.d.ts +2 -2
- package/dist/models/DateFormat.js +8 -11
- package/dist/models/ErrorDetail.d.ts +2 -2
- package/dist/models/ErrorDetail.js +14 -15
- package/dist/models/ErrorResponse.d.ts +2 -2
- package/dist/models/ErrorResponse.js +8 -11
- package/dist/models/ExistingTransaction.d.ts +94 -0
- package/dist/models/ExistingTransaction.js +68 -0
- package/dist/models/HybridTransaction.d.ts +29 -44
- package/dist/models/HybridTransaction.js +67 -80
- package/dist/models/HybridTransactionAllOf.d.ts +1 -1
- package/dist/models/HybridTransactionsResponse.d.ts +2 -2
- package/dist/models/HybridTransactionsResponse.js +8 -11
- package/dist/models/HybridTransactionsResponseData.d.ts +2 -2
- package/dist/models/HybridTransactionsResponseData.js +10 -14
- package/dist/models/MonthDetail.d.ts +4 -4
- package/dist/models/MonthDetail.js +30 -28
- package/dist/models/MonthDetailResponse.d.ts +2 -2
- package/dist/models/MonthDetailResponse.js +8 -11
- package/dist/models/MonthDetailResponseData.d.ts +2 -2
- package/dist/models/MonthDetailResponseData.js +8 -11
- package/dist/models/MonthSummariesResponse.d.ts +2 -2
- package/dist/models/MonthSummariesResponse.js +8 -11
- package/dist/models/MonthSummariesResponseData.d.ts +2 -2
- package/dist/models/MonthSummariesResponseData.js +11 -13
- package/dist/models/MonthSummary.d.ts +4 -4
- package/dist/models/MonthSummary.js +27 -26
- package/dist/models/NewTransaction.d.ts +100 -0
- package/dist/models/NewTransaction.js +70 -0
- package/dist/models/PatchCategoryWrapper.d.ts +32 -0
- package/dist/models/PatchCategoryWrapper.js +48 -0
- package/dist/models/PatchMonthCategoryWrapper.d.ts +2 -2
- package/dist/models/PatchMonthCategoryWrapper.js +8 -11
- package/dist/models/PatchPayeeWrapper.d.ts +32 -0
- package/dist/models/PatchPayeeWrapper.js +48 -0
- package/dist/models/PatchTransactionsWrapper.d.ts +5 -5
- package/dist/models/PatchTransactionsWrapper.js +10 -13
- package/dist/models/Payee.d.ts +3 -3
- package/dist/models/Payee.js +16 -18
- package/dist/models/PayeeLocation.d.ts +2 -2
- package/dist/models/PayeeLocation.js +20 -19
- package/dist/models/PayeeLocationResponse.d.ts +2 -2
- package/dist/models/PayeeLocationResponse.js +8 -11
- package/dist/models/PayeeLocationResponseData.d.ts +2 -2
- package/dist/models/PayeeLocationResponseData.js +8 -11
- package/dist/models/PayeeLocationsResponse.d.ts +2 -2
- package/dist/models/PayeeLocationsResponse.js +8 -11
- package/dist/models/PayeeLocationsResponseData.d.ts +2 -2
- package/dist/models/PayeeLocationsResponseData.js +8 -11
- package/dist/models/PayeeResponse.d.ts +2 -2
- package/dist/models/PayeeResponse.js +8 -11
- package/dist/models/PayeeResponseData.d.ts +2 -2
- package/dist/models/PayeeResponseData.js +8 -11
- package/dist/models/PayeesResponse.d.ts +2 -2
- package/dist/models/PayeesResponse.js +8 -11
- package/dist/models/PayeesResponseData.d.ts +2 -2
- package/dist/models/PayeesResponseData.js +11 -13
- package/dist/models/PostAccountWrapper.d.ts +2 -2
- package/dist/models/PostAccountWrapper.js +8 -11
- package/dist/models/PostTransactionsWrapper.d.ts +7 -7
- package/dist/models/PostTransactionsWrapper.js +10 -15
- package/dist/models/PutTransactionWrapper.d.ts +5 -5
- package/dist/models/PutTransactionWrapper.js +10 -13
- package/dist/models/SaveAccount.d.ts +2 -2
- package/dist/models/SaveAccount.js +14 -15
- package/dist/models/SaveCategory.d.ts +43 -0
- package/dist/models/SaveCategory.js +49 -0
- package/dist/models/SaveCategoryResponse.d.ts +2 -2
- package/dist/models/SaveCategoryResponse.js +8 -11
- package/dist/models/SaveCategoryResponseData.d.ts +2 -2
- package/dist/models/SaveCategoryResponseData.js +11 -13
- package/dist/models/SaveMonthCategory.d.ts +2 -2
- package/dist/models/SaveMonthCategory.js +8 -11
- package/dist/models/SavePayee.d.ts +31 -0
- package/dist/models/SavePayee.js +45 -0
- package/dist/models/SavePayeeResponse.d.ts +32 -0
- package/dist/models/SavePayeeResponse.js +48 -0
- package/dist/models/SavePayeeResponseData.d.ts +38 -0
- package/dist/models/SavePayeeResponseData.js +52 -0
- package/dist/models/SaveSubTransaction.d.ts +6 -6
- package/dist/models/SaveSubTransaction.js +16 -20
- package/dist/models/SaveTransaction.d.ts +8 -28
- package/dist/models/SaveTransaction.js +7 -25
- package/dist/models/SaveTransactionWithId.d.ts +8 -28
- package/dist/models/SaveTransactionWithId.js +7 -25
- package/dist/models/SaveTransactionWithIdOrImportId.d.ts +106 -0
- package/dist/models/SaveTransactionWithIdOrImportId.js +72 -0
- package/dist/models/SaveTransactionWithOptionalFields.d.ts +14 -40
- package/dist/models/SaveTransactionWithOptionalFields.js +30 -55
- package/dist/models/SaveTransactionWithOptionalFieldsFlagColor.d.ts +25 -0
- package/dist/models/SaveTransactionWithOptionalFieldsFlagColor.js +36 -0
- package/dist/models/SaveTransactionsResponse.d.ts +2 -2
- package/dist/models/SaveTransactionsResponse.js +8 -11
- package/dist/models/SaveTransactionsResponseData.d.ts +2 -2
- package/dist/models/SaveTransactionsResponseData.js +17 -20
- package/dist/models/ScheduledSubTransaction.d.ts +6 -6
- package/dist/models/ScheduledSubTransaction.js +25 -26
- package/dist/models/ScheduledTransactionDetail.d.ts +18 -24
- package/dist/models/ScheduledTransactionDetail.js +50 -55
- package/dist/models/ScheduledTransactionResponse.d.ts +2 -2
- package/dist/models/ScheduledTransactionResponse.js +8 -11
- package/dist/models/ScheduledTransactionResponseData.d.ts +2 -2
- package/dist/models/ScheduledTransactionResponseData.js +8 -11
- package/dist/models/ScheduledTransactionSummary.d.ts +16 -22
- package/dist/models/ScheduledTransactionSummary.js +40 -47
- package/dist/models/ScheduledTransactionSummaryFlagColor.d.ts +25 -0
- package/dist/models/ScheduledTransactionSummaryFlagColor.js +36 -0
- package/dist/models/ScheduledTransactionsResponse.d.ts +2 -2
- package/dist/models/ScheduledTransactionsResponse.js +8 -11
- package/dist/models/ScheduledTransactionsResponseData.d.ts +2 -2
- package/dist/models/ScheduledTransactionsResponseData.js +11 -13
- package/dist/models/SubTransaction.d.ts +9 -9
- package/dist/models/SubTransaction.js +31 -32
- package/dist/models/TransactionClearedStatus.d.ts +25 -0
- package/dist/models/TransactionClearedStatus.js +48 -0
- package/dist/models/TransactionDetail.d.ts +28 -43
- package/dist/models/TransactionDetail.js +65 -78
- package/dist/models/TransactionFlagColor.d.ts +28 -0
- package/dist/models/TransactionFlagColor.js +51 -0
- package/dist/models/TransactionResponse.d.ts +2 -2
- package/dist/models/TransactionResponse.js +8 -11
- package/dist/models/TransactionResponseData.d.ts +2 -2
- package/dist/models/TransactionResponseData.js +8 -11
- package/dist/models/TransactionSummary.d.ts +26 -41
- package/dist/models/TransactionSummary.js +55 -70
- package/dist/models/TransactionSummaryDebtTransactionType.d.ts +25 -0
- package/dist/models/TransactionSummaryDebtTransactionType.js +36 -0
- package/dist/models/TransactionsImportResponse.d.ts +2 -2
- package/dist/models/TransactionsImportResponse.js +8 -11
- package/dist/models/TransactionsImportResponseData.d.ts +2 -2
- package/dist/models/TransactionsImportResponseData.js +8 -11
- package/dist/models/TransactionsResponse.d.ts +2 -2
- package/dist/models/TransactionsResponse.js +8 -11
- package/dist/models/TransactionsResponseData.d.ts +2 -2
- package/dist/models/TransactionsResponseData.js +11 -13
- package/dist/models/User.d.ts +2 -2
- package/dist/models/User.js +8 -11
- package/dist/models/UserResponse.d.ts +2 -2
- package/dist/models/UserResponse.js +8 -11
- package/dist/models/UserResponseData.d.ts +2 -2
- package/dist/models/UserResponseData.js +8 -11
- package/dist/models/index.d.ts +11 -9
- package/dist/models/index.js +16 -10
- package/dist/runtime.d.ts +10 -10
- package/dist/runtime.js +1 -1
- package/package.json +6 -7
|
@@ -13,26 +13,8 @@
|
|
|
13
13
|
*/
|
|
14
14
|
import { exists } from '../runtime';
|
|
15
15
|
import { SubTransactionFromJSON, SubTransactionToJSON, } from './SubTransaction';
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
*/
|
|
19
|
-
export var TransactionDetailClearedEnum = {
|
|
20
|
-
Cleared: 'cleared',
|
|
21
|
-
Uncleared: 'uncleared',
|
|
22
|
-
Reconciled: 'reconciled'
|
|
23
|
-
};
|
|
24
|
-
/**
|
|
25
|
-
* @export
|
|
26
|
-
*/
|
|
27
|
-
export var TransactionDetailFlagColorEnum = {
|
|
28
|
-
Red: 'red',
|
|
29
|
-
Orange: 'orange',
|
|
30
|
-
Yellow: 'yellow',
|
|
31
|
-
Green: 'green',
|
|
32
|
-
Blue: 'blue',
|
|
33
|
-
Purple: 'purple',
|
|
34
|
-
Null: 'null'
|
|
35
|
-
};
|
|
16
|
+
import { TransactionClearedStatusFromJSON, TransactionClearedStatusToJSON, } from './TransactionClearedStatus';
|
|
17
|
+
import { TransactionFlagColorFromJSON, TransactionFlagColorToJSON, } from './TransactionFlagColor';
|
|
36
18
|
/**
|
|
37
19
|
* @export
|
|
38
20
|
*/
|
|
@@ -42,10 +24,9 @@ export var TransactionDetailDebtTransactionTypeEnum = {
|
|
|
42
24
|
Fee: 'fee',
|
|
43
25
|
Interest: 'interest',
|
|
44
26
|
Escrow: 'escrow',
|
|
45
|
-
|
|
27
|
+
BalanceAdjustment: 'balanceAdjustment',
|
|
46
28
|
Credit: 'credit',
|
|
47
29
|
Charge: 'charge',
|
|
48
|
-
Null: 'null'
|
|
49
30
|
};
|
|
50
31
|
/**
|
|
51
32
|
* Check if a given object implements the TransactionDetail interface.
|
|
@@ -75,9 +56,9 @@ export function TransactionDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
75
56
|
'date': json['date'],
|
|
76
57
|
'amount': json['amount'],
|
|
77
58
|
'memo': !exists(json, 'memo') ? undefined : json['memo'],
|
|
78
|
-
'cleared': json['cleared'],
|
|
59
|
+
'cleared': TransactionClearedStatusFromJSON(json['cleared']),
|
|
79
60
|
'approved': json['approved'],
|
|
80
|
-
'flag_color': !exists(json, 'flag_color') ? undefined : json['flag_color'],
|
|
61
|
+
'flag_color': !exists(json, 'flag_color') ? undefined : TransactionFlagColorFromJSON(json['flag_color']),
|
|
81
62
|
'account_id': json['account_id'],
|
|
82
63
|
'payee_id': !exists(json, 'payee_id') ? undefined : json['payee_id'],
|
|
83
64
|
'category_id': !exists(json, 'category_id') ? undefined : json['category_id'],
|
|
@@ -107,9 +88,9 @@ export function TransactionDetailToJSON(value) {
|
|
|
107
88
|
'date': value.date,
|
|
108
89
|
'amount': value.amount,
|
|
109
90
|
'memo': value.memo,
|
|
110
|
-
'cleared': value.cleared,
|
|
91
|
+
'cleared': TransactionClearedStatusToJSON(value.cleared),
|
|
111
92
|
'approved': value.approved,
|
|
112
|
-
'flag_color': value.flag_color,
|
|
93
|
+
'flag_color': TransactionFlagColorToJSON(value.flag_color),
|
|
113
94
|
'account_id': value.account_id,
|
|
114
95
|
'payee_id': value.payee_id,
|
|
115
96
|
'category_id': value.category_id,
|
|
@@ -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
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* The transaction flag
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const TransactionFlagColor: {
|
|
17
|
+
readonly Red: "red";
|
|
18
|
+
readonly Orange: "orange";
|
|
19
|
+
readonly Yellow: "yellow";
|
|
20
|
+
readonly Green: "green";
|
|
21
|
+
readonly Blue: "blue";
|
|
22
|
+
readonly Purple: "purple";
|
|
23
|
+
};
|
|
24
|
+
export declare type TransactionFlagColor = typeof TransactionFlagColor[keyof typeof TransactionFlagColor];
|
|
25
|
+
export declare function TransactionFlagColorFromJSON(json: any): TransactionFlagColor;
|
|
26
|
+
export declare function TransactionFlagColorFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionFlagColor;
|
|
27
|
+
export declare function TransactionFlagColorToJSON(value?: TransactionFlagColor | null): any;
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* The transaction flag
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export var TransactionFlagColor = {
|
|
19
|
+
Red: 'red',
|
|
20
|
+
Orange: 'orange',
|
|
21
|
+
Yellow: 'yellow',
|
|
22
|
+
Green: 'green',
|
|
23
|
+
Blue: 'blue',
|
|
24
|
+
Purple: 'purple',
|
|
25
|
+
};
|
|
26
|
+
export function TransactionFlagColorFromJSON(json) {
|
|
27
|
+
return TransactionFlagColorFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function TransactionFlagColorFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
export function TransactionFlagColorToJSON(value) {
|
|
33
|
+
return value;
|
|
34
|
+
}
|
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { TransactionClearedStatus } from './TransactionClearedStatus';
|
|
13
|
+
import type { TransactionFlagColor } from './TransactionFlagColor';
|
|
12
14
|
/**
|
|
13
15
|
*
|
|
14
16
|
* @export
|
|
@@ -40,11 +42,11 @@ export interface TransactionSummary {
|
|
|
40
42
|
*/
|
|
41
43
|
memo?: string | null;
|
|
42
44
|
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {
|
|
45
|
+
*
|
|
46
|
+
* @type {TransactionClearedStatus}
|
|
45
47
|
* @memberof TransactionSummary
|
|
46
48
|
*/
|
|
47
|
-
cleared:
|
|
49
|
+
cleared: TransactionClearedStatus;
|
|
48
50
|
/**
|
|
49
51
|
* Whether or not the transaction is approved
|
|
50
52
|
* @type {boolean}
|
|
@@ -52,11 +54,11 @@ export interface TransactionSummary {
|
|
|
52
54
|
*/
|
|
53
55
|
approved: boolean;
|
|
54
56
|
/**
|
|
55
|
-
*
|
|
56
|
-
* @type {
|
|
57
|
+
*
|
|
58
|
+
* @type {TransactionFlagColor}
|
|
57
59
|
* @memberof TransactionSummary
|
|
58
60
|
*/
|
|
59
|
-
flag_color?:
|
|
61
|
+
flag_color?: TransactionFlagColor | null;
|
|
60
62
|
/**
|
|
61
63
|
*
|
|
62
64
|
* @type {string}
|
|
@@ -124,28 +126,6 @@ export interface TransactionSummary {
|
|
|
124
126
|
*/
|
|
125
127
|
deleted: boolean;
|
|
126
128
|
}
|
|
127
|
-
/**
|
|
128
|
-
* @export
|
|
129
|
-
*/
|
|
130
|
-
export declare const TransactionSummaryClearedEnum: {
|
|
131
|
-
readonly Cleared: "cleared";
|
|
132
|
-
readonly Uncleared: "uncleared";
|
|
133
|
-
readonly Reconciled: "reconciled";
|
|
134
|
-
};
|
|
135
|
-
export declare type TransactionSummaryClearedEnum = typeof TransactionSummaryClearedEnum[keyof typeof TransactionSummaryClearedEnum];
|
|
136
|
-
/**
|
|
137
|
-
* @export
|
|
138
|
-
*/
|
|
139
|
-
export declare const TransactionSummaryFlagColorEnum: {
|
|
140
|
-
readonly Red: "red";
|
|
141
|
-
readonly Orange: "orange";
|
|
142
|
-
readonly Yellow: "yellow";
|
|
143
|
-
readonly Green: "green";
|
|
144
|
-
readonly Blue: "blue";
|
|
145
|
-
readonly Purple: "purple";
|
|
146
|
-
readonly Null: "null";
|
|
147
|
-
};
|
|
148
|
-
export declare type TransactionSummaryFlagColorEnum = typeof TransactionSummaryFlagColorEnum[keyof typeof TransactionSummaryFlagColorEnum];
|
|
149
129
|
/**
|
|
150
130
|
* @export
|
|
151
131
|
*/
|
|
@@ -155,10 +135,9 @@ export declare const TransactionSummaryDebtTransactionTypeEnum: {
|
|
|
155
135
|
readonly Fee: "fee";
|
|
156
136
|
readonly Interest: "interest";
|
|
157
137
|
readonly Escrow: "escrow";
|
|
158
|
-
readonly
|
|
138
|
+
readonly BalanceAdjustment: "balanceAdjustment";
|
|
159
139
|
readonly Credit: "credit";
|
|
160
140
|
readonly Charge: "charge";
|
|
161
|
-
readonly Null: "null";
|
|
162
141
|
};
|
|
163
142
|
export declare type TransactionSummaryDebtTransactionTypeEnum = typeof TransactionSummaryDebtTransactionTypeEnum[keyof typeof TransactionSummaryDebtTransactionTypeEnum];
|
|
164
143
|
/**
|
|
@@ -12,26 +12,8 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { exists } from '../runtime';
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
*/
|
|
18
|
-
export var TransactionSummaryClearedEnum = {
|
|
19
|
-
Cleared: 'cleared',
|
|
20
|
-
Uncleared: 'uncleared',
|
|
21
|
-
Reconciled: 'reconciled'
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @export
|
|
25
|
-
*/
|
|
26
|
-
export var TransactionSummaryFlagColorEnum = {
|
|
27
|
-
Red: 'red',
|
|
28
|
-
Orange: 'orange',
|
|
29
|
-
Yellow: 'yellow',
|
|
30
|
-
Green: 'green',
|
|
31
|
-
Blue: 'blue',
|
|
32
|
-
Purple: 'purple',
|
|
33
|
-
Null: 'null'
|
|
34
|
-
};
|
|
15
|
+
import { TransactionClearedStatusFromJSON, TransactionClearedStatusToJSON, } from './TransactionClearedStatus';
|
|
16
|
+
import { TransactionFlagColorFromJSON, TransactionFlagColorToJSON, } from './TransactionFlagColor';
|
|
35
17
|
/**
|
|
36
18
|
* @export
|
|
37
19
|
*/
|
|
@@ -41,10 +23,9 @@ export var TransactionSummaryDebtTransactionTypeEnum = {
|
|
|
41
23
|
Fee: 'fee',
|
|
42
24
|
Interest: 'interest',
|
|
43
25
|
Escrow: 'escrow',
|
|
44
|
-
|
|
26
|
+
BalanceAdjustment: 'balanceAdjustment',
|
|
45
27
|
Credit: 'credit',
|
|
46
28
|
Charge: 'charge',
|
|
47
|
-
Null: 'null'
|
|
48
29
|
};
|
|
49
30
|
/**
|
|
50
31
|
* Check if a given object implements the TransactionSummary interface.
|
|
@@ -72,9 +53,9 @@ export function TransactionSummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
72
53
|
'date': json['date'],
|
|
73
54
|
'amount': json['amount'],
|
|
74
55
|
'memo': !exists(json, 'memo') ? undefined : json['memo'],
|
|
75
|
-
'cleared': json['cleared'],
|
|
56
|
+
'cleared': TransactionClearedStatusFromJSON(json['cleared']),
|
|
76
57
|
'approved': json['approved'],
|
|
77
|
-
'flag_color': !exists(json, 'flag_color') ? undefined : json['flag_color'],
|
|
58
|
+
'flag_color': !exists(json, 'flag_color') ? undefined : TransactionFlagColorFromJSON(json['flag_color']),
|
|
78
59
|
'account_id': json['account_id'],
|
|
79
60
|
'payee_id': !exists(json, 'payee_id') ? undefined : json['payee_id'],
|
|
80
61
|
'category_id': !exists(json, 'category_id') ? undefined : json['category_id'],
|
|
@@ -100,9 +81,9 @@ export function TransactionSummaryToJSON(value) {
|
|
|
100
81
|
'date': value.date,
|
|
101
82
|
'amount': value.amount,
|
|
102
83
|
'memo': value.memo,
|
|
103
|
-
'cleared': value.cleared,
|
|
84
|
+
'cleared': TransactionClearedStatusToJSON(value.cleared),
|
|
104
85
|
'approved': value.approved,
|
|
105
|
-
'flag_color': value.flag_color,
|
|
86
|
+
'flag_color': TransactionFlagColorToJSON(value.flag_color),
|
|
106
87
|
'account_id': value.account_id,
|
|
107
88
|
'payee_id': value.payee_id,
|
|
108
89
|
'category_id': value.category_id,
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* If the transaction is a debt/loan account transaction, the type of transaction
|
|
14
|
+
* @export
|
|
15
|
+
* @interface TransactionSummaryDebtTransactionType
|
|
16
|
+
*/
|
|
17
|
+
export interface TransactionSummaryDebtTransactionType {
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Check if a given object implements the TransactionSummaryDebtTransactionType interface.
|
|
21
|
+
*/
|
|
22
|
+
export declare function instanceOfTransactionSummaryDebtTransactionType(value: object): boolean;
|
|
23
|
+
export declare function TransactionSummaryDebtTransactionTypeFromJSON(json: any): TransactionSummaryDebtTransactionType;
|
|
24
|
+
export declare function TransactionSummaryDebtTransactionTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionSummaryDebtTransactionType;
|
|
25
|
+
export declare function TransactionSummaryDebtTransactionTypeToJSON(value?: TransactionSummaryDebtTransactionType | null): any;
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the TransactionSummaryDebtTransactionType interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfTransactionSummaryDebtTransactionType(value) {
|
|
18
|
+
var isInstance = true;
|
|
19
|
+
return isInstance;
|
|
20
|
+
}
|
|
21
|
+
export function TransactionSummaryDebtTransactionTypeFromJSON(json) {
|
|
22
|
+
return TransactionSummaryDebtTransactionTypeFromJSONTyped(json, false);
|
|
23
|
+
}
|
|
24
|
+
export function TransactionSummaryDebtTransactionTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
export function TransactionSummaryDebtTransactionTypeToJSON(value) {
|
|
28
|
+
return value;
|
|
29
|
+
}
|
|
@@ -41,6 +41,7 @@ export * from './MonthDetailResponseData';
|
|
|
41
41
|
export * from './MonthSummariesResponse';
|
|
42
42
|
export * from './MonthSummariesResponseData';
|
|
43
43
|
export * from './MonthSummary';
|
|
44
|
+
export * from './PatchCategoryWrapper';
|
|
44
45
|
export * from './PatchMonthCategoryWrapper';
|
|
45
46
|
export * from './PatchTransactionsWrapper';
|
|
46
47
|
export * from './Payee';
|
|
@@ -57,6 +58,7 @@ export * from './PostAccountWrapper';
|
|
|
57
58
|
export * from './PostTransactionsWrapper';
|
|
58
59
|
export * from './PutTransactionWrapper';
|
|
59
60
|
export * from './SaveAccount';
|
|
61
|
+
export * from './SaveCategory';
|
|
60
62
|
export * from './SaveCategoryResponse';
|
|
61
63
|
export * from './SaveCategoryResponseData';
|
|
62
64
|
export * from './SaveMonthCategory';
|
|
@@ -76,8 +78,10 @@ export * from './ScheduledTransactionSummary';
|
|
|
76
78
|
export * from './ScheduledTransactionsResponse';
|
|
77
79
|
export * from './ScheduledTransactionsResponseData';
|
|
78
80
|
export * from './SubTransaction';
|
|
81
|
+
export * from './TransactionClearedStatus';
|
|
79
82
|
export * from './TransactionDetail';
|
|
80
83
|
export * from './TransactionDetailAllOf';
|
|
84
|
+
export * from './TransactionFlagColor';
|
|
81
85
|
export * from './TransactionResponse';
|
|
82
86
|
export * from './TransactionResponseData';
|
|
83
87
|
export * from './TransactionSummary';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -43,6 +43,7 @@ export * from './MonthDetailResponseData';
|
|
|
43
43
|
export * from './MonthSummariesResponse';
|
|
44
44
|
export * from './MonthSummariesResponseData';
|
|
45
45
|
export * from './MonthSummary';
|
|
46
|
+
export * from './PatchCategoryWrapper';
|
|
46
47
|
export * from './PatchMonthCategoryWrapper';
|
|
47
48
|
export * from './PatchTransactionsWrapper';
|
|
48
49
|
export * from './Payee';
|
|
@@ -59,6 +60,7 @@ export * from './PostAccountWrapper';
|
|
|
59
60
|
export * from './PostTransactionsWrapper';
|
|
60
61
|
export * from './PutTransactionWrapper';
|
|
61
62
|
export * from './SaveAccount';
|
|
63
|
+
export * from './SaveCategory';
|
|
62
64
|
export * from './SaveCategoryResponse';
|
|
63
65
|
export * from './SaveCategoryResponseData';
|
|
64
66
|
export * from './SaveMonthCategory';
|
|
@@ -78,8 +80,10 @@ export * from './ScheduledTransactionSummary';
|
|
|
78
80
|
export * from './ScheduledTransactionsResponse';
|
|
79
81
|
export * from './ScheduledTransactionsResponseData';
|
|
80
82
|
export * from './SubTransaction';
|
|
83
|
+
export * from './TransactionClearedStatus';
|
|
81
84
|
export * from './TransactionDetail';
|
|
82
85
|
export * from './TransactionDetailAllOf';
|
|
86
|
+
export * from './TransactionFlagColor';
|
|
83
87
|
export * from './TransactionResponse';
|
|
84
88
|
export * from './TransactionResponseData';
|
|
85
89
|
export * from './TransactionSummary';
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
/* tslint:disable */
|
|
3
3
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
4
|
if (k2 === undefined) k2 = k;
|
|
5
|
-
Object.
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
6
10
|
}) : (function(o, m, k, k2) {
|
|
7
11
|
if (k2 === undefined) k2 = k;
|
|
8
12
|
o[k2] = m[k];
|
package/dist/models/Account.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* YNAB API Endpoints
|
|
3
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
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.70.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -51,7 +51,7 @@ export interface Account {
|
|
|
51
51
|
* @type {string}
|
|
52
52
|
* @memberof Account
|
|
53
53
|
*/
|
|
54
|
-
note?: string
|
|
54
|
+
note?: string;
|
|
55
55
|
/**
|
|
56
56
|
* The current balance of the account in milliunits format
|
|
57
57
|
* @type {number}
|
|
@@ -93,13 +93,13 @@ export interface Account {
|
|
|
93
93
|
* @type {string}
|
|
94
94
|
* @memberof Account
|
|
95
95
|
*/
|
|
96
|
-
last_reconciled_at?: string
|
|
96
|
+
last_reconciled_at?: string;
|
|
97
97
|
/**
|
|
98
98
|
* The original debt/loan account balance, specified in milliunits format.
|
|
99
99
|
* @type {number}
|
|
100
100
|
* @memberof Account
|
|
101
101
|
*/
|
|
102
|
-
debt_original_balance?: number
|
|
102
|
+
debt_original_balance?: number;
|
|
103
103
|
/**
|
|
104
104
|
*
|
|
105
105
|
* @type {{ [key: string]: number; }}
|
|
@@ -107,7 +107,7 @@ export interface Account {
|
|
|
107
107
|
*/
|
|
108
108
|
debt_interest_rates?: {
|
|
109
109
|
[key: string]: number;
|
|
110
|
-
}
|
|
110
|
+
};
|
|
111
111
|
/**
|
|
112
112
|
*
|
|
113
113
|
* @type {{ [key: string]: number; }}
|
|
@@ -115,7 +115,7 @@ export interface Account {
|
|
|
115
115
|
*/
|
|
116
116
|
debt_minimum_payments?: {
|
|
117
117
|
[key: string]: number;
|
|
118
|
-
}
|
|
118
|
+
};
|
|
119
119
|
/**
|
|
120
120
|
*
|
|
121
121
|
* @type {{ [key: string]: number; }}
|
|
@@ -123,7 +123,7 @@ export interface Account {
|
|
|
123
123
|
*/
|
|
124
124
|
debt_escrow_amounts?: {
|
|
125
125
|
[key: string]: number;
|
|
126
|
-
}
|
|
126
|
+
};
|
|
127
127
|
/**
|
|
128
128
|
* Whether or not the account has been deleted. Deleted accounts will only be included in delta requests.
|
|
129
129
|
* @type {boolean}
|
|
@@ -134,7 +134,7 @@ export interface Account {
|
|
|
134
134
|
/**
|
|
135
135
|
* Check if a given object implements the Account interface.
|
|
136
136
|
*/
|
|
137
|
-
export declare function instanceOfAccount(value: object):
|
|
137
|
+
export declare function instanceOfAccount(value: object): value is Account;
|
|
138
138
|
export declare function AccountFromJSON(json: any): Account;
|
|
139
139
|
export declare function AccountFromJSONTyped(json: any, ignoreDiscriminator: boolean): Account;
|
|
140
140
|
export declare function AccountToJSON(value?: Account | null): any;
|
package/dist/models/Account.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* YNAB API Endpoints
|
|
6
6
|
* 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
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.70.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -14,24 +14,32 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.AccountToJSON = exports.AccountFromJSONTyped = exports.AccountFromJSON = exports.instanceOfAccount = void 0;
|
|
17
|
-
const runtime_1 = require("../runtime");
|
|
18
17
|
const AccountType_1 = require("./AccountType");
|
|
19
18
|
/**
|
|
20
19
|
* Check if a given object implements the Account interface.
|
|
21
20
|
*/
|
|
22
21
|
function instanceOfAccount(value) {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
22
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('on_budget' in value) || value['on_budget'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('closed' in value) || value['closed'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('balance' in value) || value['balance'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('cleared_balance' in value) || value['cleared_balance'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('uncleared_balance' in value) || value['uncleared_balance'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('transfer_payee_id' in value) || value['transfer_payee_id'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('deleted' in value) || value['deleted'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
return true;
|
|
35
43
|
}
|
|
36
44
|
exports.instanceOfAccount = instanceOfAccount;
|
|
37
45
|
function AccountFromJSON(json) {
|
|
@@ -39,7 +47,7 @@ function AccountFromJSON(json) {
|
|
|
39
47
|
}
|
|
40
48
|
exports.AccountFromJSON = AccountFromJSON;
|
|
41
49
|
function AccountFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
-
if (
|
|
50
|
+
if (json == null) {
|
|
43
51
|
return json;
|
|
44
52
|
}
|
|
45
53
|
return {
|
|
@@ -48,48 +56,45 @@ function AccountFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
48
56
|
'type': (0, AccountType_1.AccountTypeFromJSON)(json['type']),
|
|
49
57
|
'on_budget': json['on_budget'],
|
|
50
58
|
'closed': json['closed'],
|
|
51
|
-
'note':
|
|
59
|
+
'note': json['note'] == null ? undefined : json['note'],
|
|
52
60
|
'balance': json['balance'],
|
|
53
61
|
'cleared_balance': json['cleared_balance'],
|
|
54
62
|
'uncleared_balance': json['uncleared_balance'],
|
|
55
63
|
'transfer_payee_id': json['transfer_payee_id'],
|
|
56
|
-
'direct_import_linked':
|
|
57
|
-
'direct_import_in_error':
|
|
58
|
-
'last_reconciled_at':
|
|
59
|
-
'debt_original_balance':
|
|
60
|
-
'debt_interest_rates':
|
|
61
|
-
'debt_minimum_payments':
|
|
62
|
-
'debt_escrow_amounts':
|
|
64
|
+
'direct_import_linked': json['direct_import_linked'] == null ? undefined : json['direct_import_linked'],
|
|
65
|
+
'direct_import_in_error': json['direct_import_in_error'] == null ? undefined : json['direct_import_in_error'],
|
|
66
|
+
'last_reconciled_at': json['last_reconciled_at'] == null ? undefined : json['last_reconciled_at'],
|
|
67
|
+
'debt_original_balance': json['debt_original_balance'] == null ? undefined : json['debt_original_balance'],
|
|
68
|
+
'debt_interest_rates': json['debt_interest_rates'] == null ? undefined : json['debt_interest_rates'],
|
|
69
|
+
'debt_minimum_payments': json['debt_minimum_payments'] == null ? undefined : json['debt_minimum_payments'],
|
|
70
|
+
'debt_escrow_amounts': json['debt_escrow_amounts'] == null ? undefined : json['debt_escrow_amounts'],
|
|
63
71
|
'deleted': json['deleted'],
|
|
64
72
|
};
|
|
65
73
|
}
|
|
66
74
|
exports.AccountFromJSONTyped = AccountFromJSONTyped;
|
|
67
75
|
function AccountToJSON(value) {
|
|
68
|
-
if (value
|
|
69
|
-
return
|
|
70
|
-
}
|
|
71
|
-
if (value === null) {
|
|
72
|
-
return null;
|
|
76
|
+
if (value == null) {
|
|
77
|
+
return value;
|
|
73
78
|
}
|
|
74
79
|
return {
|
|
75
|
-
'id': value
|
|
76
|
-
'name': value
|
|
77
|
-
'type': (0, AccountType_1.AccountTypeToJSON)(value
|
|
78
|
-
'on_budget': value
|
|
79
|
-
'closed': value
|
|
80
|
-
'note': value
|
|
81
|
-
'balance': value
|
|
82
|
-
'cleared_balance': value
|
|
83
|
-
'uncleared_balance': value
|
|
84
|
-
'transfer_payee_id': value
|
|
85
|
-
'direct_import_linked': value
|
|
86
|
-
'direct_import_in_error': value
|
|
87
|
-
'last_reconciled_at': value
|
|
88
|
-
'debt_original_balance': value
|
|
89
|
-
'debt_interest_rates': value
|
|
90
|
-
'debt_minimum_payments': value
|
|
91
|
-
'debt_escrow_amounts': value
|
|
92
|
-
'deleted': value
|
|
80
|
+
'id': value['id'],
|
|
81
|
+
'name': value['name'],
|
|
82
|
+
'type': (0, AccountType_1.AccountTypeToJSON)(value['type']),
|
|
83
|
+
'on_budget': value['on_budget'],
|
|
84
|
+
'closed': value['closed'],
|
|
85
|
+
'note': value['note'],
|
|
86
|
+
'balance': value['balance'],
|
|
87
|
+
'cleared_balance': value['cleared_balance'],
|
|
88
|
+
'uncleared_balance': value['uncleared_balance'],
|
|
89
|
+
'transfer_payee_id': value['transfer_payee_id'],
|
|
90
|
+
'direct_import_linked': value['direct_import_linked'],
|
|
91
|
+
'direct_import_in_error': value['direct_import_in_error'],
|
|
92
|
+
'last_reconciled_at': value['last_reconciled_at'],
|
|
93
|
+
'debt_original_balance': value['debt_original_balance'],
|
|
94
|
+
'debt_interest_rates': value['debt_interest_rates'],
|
|
95
|
+
'debt_minimum_payments': value['debt_minimum_payments'],
|
|
96
|
+
'debt_escrow_amounts': value['debt_escrow_amounts'],
|
|
97
|
+
'deleted': value['deleted'],
|
|
93
98
|
};
|
|
94
99
|
}
|
|
95
100
|
exports.AccountToJSON = AccountToJSON;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* YNAB API Endpoints
|
|
3
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
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.70.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -26,7 +26,7 @@ export interface AccountResponse {
|
|
|
26
26
|
/**
|
|
27
27
|
* Check if a given object implements the AccountResponse interface.
|
|
28
28
|
*/
|
|
29
|
-
export declare function instanceOfAccountResponse(value: object):
|
|
29
|
+
export declare function instanceOfAccountResponse(value: object): value is AccountResponse;
|
|
30
30
|
export declare function AccountResponseFromJSON(json: any): AccountResponse;
|
|
31
31
|
export declare function AccountResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountResponse;
|
|
32
32
|
export declare function AccountResponseToJSON(value?: AccountResponse | null): any;
|