ynab 2.4.0 → 2.6.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 +24 -1
- package/dist/apis/BudgetsApi.js +24 -1
- package/dist/apis/CategoriesApi.js +24 -1
- package/dist/apis/DeprecatedApi.js +24 -1
- package/dist/apis/MonthsApi.js +24 -1
- package/dist/apis/PayeeLocationsApi.js +24 -1
- package/dist/apis/PayeesApi.js +24 -1
- package/dist/apis/ScheduledTransactionsApi.js +24 -1
- package/dist/apis/TransactionsApi.js +24 -1
- package/dist/apis/UserApi.js +24 -1
- package/dist/browser/ynab.js +1 -1
- package/dist/esm/apis/AccountsApi.d.ts +1 -6
- package/dist/esm/apis/AccountsApi.js +2 -7
- package/dist/esm/apis/BudgetsApi.d.ts +1 -6
- package/dist/esm/apis/BudgetsApi.js +2 -7
- package/dist/esm/apis/CategoriesApi.d.ts +1 -6
- package/dist/esm/apis/CategoriesApi.js +2 -7
- package/dist/esm/apis/DeprecatedApi.js +1 -1
- package/dist/esm/apis/MonthsApi.d.ts +1 -6
- package/dist/esm/apis/MonthsApi.js +2 -7
- package/dist/esm/apis/PayeeLocationsApi.d.ts +1 -6
- package/dist/esm/apis/PayeeLocationsApi.js +2 -7
- package/dist/esm/apis/PayeesApi.d.ts +17 -7
- package/dist/esm/apis/PayeesApi.js +67 -8
- package/dist/esm/apis/ScheduledTransactionsApi.d.ts +16 -7
- package/dist/esm/apis/ScheduledTransactionsApi.js +64 -8
- package/dist/esm/apis/TransactionsApi.d.ts +40 -20
- package/dist/esm/apis/TransactionsApi.js +87 -17
- package/dist/esm/apis/UserApi.d.ts +1 -6
- package/dist/esm/apis/UserApi.js +2 -7
- package/dist/esm/models/Account.d.ts +2 -7
- package/dist/esm/models/Account.js +51 -51
- package/dist/esm/models/AccountResponse.d.ts +2 -7
- package/dist/esm/models/AccountResponse.js +8 -16
- package/dist/esm/models/AccountResponseData.d.ts +2 -7
- package/dist/esm/models/AccountResponseData.js +8 -16
- package/dist/esm/models/AccountType.d.ts +3 -7
- package/dist/esm/models/AccountType.js +11 -6
- package/dist/esm/models/AccountsResponse.d.ts +2 -7
- package/dist/esm/models/AccountsResponse.js +8 -16
- package/dist/esm/models/AccountsResponseData.d.ts +2 -7
- package/dist/esm/models/AccountsResponseData.js +11 -18
- package/dist/esm/models/BudgetDetail.d.ts +6 -11
- package/dist/esm/models/BudgetDetail.js +45 -53
- package/dist/esm/models/BudgetDetailResponse.d.ts +2 -7
- package/dist/esm/models/BudgetDetailResponse.js +8 -16
- package/dist/esm/models/BudgetDetailResponseData.d.ts +2 -7
- package/dist/esm/models/BudgetDetailResponseData.js +11 -18
- package/dist/esm/models/BudgetSettings.d.ts +2 -7
- package/dist/esm/models/BudgetSettings.js +11 -18
- package/dist/esm/models/BudgetSettingsResponse.d.ts +2 -7
- package/dist/esm/models/BudgetSettingsResponse.js +8 -16
- package/dist/esm/models/BudgetSettingsResponseData.d.ts +2 -7
- package/dist/esm/models/BudgetSettingsResponseData.js +8 -16
- package/dist/esm/models/BudgetSummary.d.ts +2 -7
- package/dist/esm/models/BudgetSummary.js +23 -31
- package/dist/esm/models/BudgetSummaryResponse.d.ts +2 -7
- package/dist/esm/models/BudgetSummaryResponse.js +8 -16
- package/dist/esm/models/BudgetSummaryResponseData.d.ts +2 -7
- package/dist/esm/models/BudgetSummaryResponseData.js +10 -19
- package/dist/esm/models/BulkResponse.d.ts +2 -7
- package/dist/esm/models/BulkResponse.js +8 -16
- package/dist/esm/models/BulkResponseData.d.ts +2 -7
- package/dist/esm/models/BulkResponseData.js +8 -16
- package/dist/esm/models/BulkResponseDataBulk.d.ts +2 -7
- package/dist/esm/models/BulkResponseDataBulk.js +11 -18
- package/dist/esm/models/BulkTransactions.d.ts +5 -10
- package/dist/esm/models/BulkTransactions.js +10 -18
- package/dist/esm/models/CategoriesResponse.d.ts +2 -7
- package/dist/esm/models/CategoriesResponse.js +8 -16
- package/dist/esm/models/CategoriesResponseData.d.ts +2 -7
- package/dist/esm/models/CategoriesResponseData.js +11 -18
- package/dist/esm/models/Category.d.ts +10 -9
- package/dist/esm/models/Category.js +61 -61
- package/dist/esm/models/CategoryGroup.d.ts +2 -7
- package/dist/esm/models/CategoryGroup.js +17 -22
- package/dist/esm/models/CategoryGroupWithCategories.d.ts +2 -7
- package/dist/esm/models/CategoryGroupWithCategories.js +20 -24
- package/dist/esm/models/CategoryResponse.d.ts +2 -7
- package/dist/esm/models/CategoryResponse.js +8 -16
- package/dist/esm/models/CategoryResponseData.d.ts +2 -7
- package/dist/esm/models/CategoryResponseData.js +8 -16
- package/dist/esm/models/CurrencyFormat.d.ts +2 -7
- package/dist/esm/models/CurrencyFormat.js +29 -30
- package/dist/esm/models/DateFormat.d.ts +2 -7
- package/dist/esm/models/DateFormat.js +8 -16
- package/dist/esm/models/ErrorDetail.d.ts +2 -7
- package/dist/esm/models/ErrorDetail.js +14 -20
- package/dist/esm/models/ErrorResponse.d.ts +2 -7
- package/dist/esm/models/ErrorResponse.js +8 -16
- package/dist/esm/models/ExistingTransaction.d.ts +89 -0
- package/dist/esm/models/ExistingTransaction.js +56 -0
- package/dist/esm/models/HybridTransaction.d.ts +12 -11
- package/dist/esm/models/HybridTransaction.js +63 -62
- package/dist/esm/models/HybridTransactionAllOf.d.ts +1 -1
- package/dist/esm/models/HybridTransactionsResponse.d.ts +2 -7
- package/dist/esm/models/HybridTransactionsResponse.js +8 -16
- package/dist/esm/models/HybridTransactionsResponseData.d.ts +2 -7
- package/dist/esm/models/HybridTransactionsResponseData.js +10 -19
- package/dist/esm/models/MonthDetail.d.ts +2 -7
- package/dist/esm/models/MonthDetail.js +30 -33
- package/dist/esm/models/MonthDetailResponse.d.ts +2 -7
- package/dist/esm/models/MonthDetailResponse.js +8 -16
- package/dist/esm/models/MonthDetailResponseData.d.ts +2 -7
- package/dist/esm/models/MonthDetailResponseData.js +8 -16
- package/dist/esm/models/MonthSummariesResponse.d.ts +2 -7
- package/dist/esm/models/MonthSummariesResponse.js +8 -16
- package/dist/esm/models/MonthSummariesResponseData.d.ts +2 -7
- package/dist/esm/models/MonthSummariesResponseData.js +11 -18
- package/dist/esm/models/MonthSummary.d.ts +2 -7
- package/dist/esm/models/MonthSummary.js +27 -31
- package/dist/esm/models/NewTransaction.d.ts +95 -0
- package/dist/esm/models/NewTransaction.js +58 -0
- package/dist/esm/models/PatchCategoryWrapper.d.ts +2 -7
- package/dist/esm/models/PatchCategoryWrapper.js +8 -16
- package/dist/esm/models/PatchMonthCategoryWrapper.d.ts +2 -7
- package/dist/esm/models/PatchMonthCategoryWrapper.js +8 -16
- package/dist/esm/models/PatchPayeeWrapper.d.ts +27 -0
- package/dist/esm/models/PatchPayeeWrapper.js +36 -0
- package/dist/esm/models/PatchTransactionsWrapper.d.ts +5 -10
- package/dist/esm/models/PatchTransactionsWrapper.js +10 -18
- package/dist/esm/models/Payee.d.ts +2 -7
- package/dist/esm/models/Payee.js +16 -23
- package/dist/esm/models/PayeeLocation.d.ts +2 -7
- package/dist/esm/models/PayeeLocation.js +20 -24
- package/dist/esm/models/PayeeLocationResponse.d.ts +2 -7
- package/dist/esm/models/PayeeLocationResponse.js +8 -16
- package/dist/esm/models/PayeeLocationResponseData.d.ts +2 -7
- package/dist/esm/models/PayeeLocationResponseData.js +8 -16
- package/dist/esm/models/PayeeLocationsResponse.d.ts +2 -7
- package/dist/esm/models/PayeeLocationsResponse.js +8 -16
- package/dist/esm/models/PayeeLocationsResponseData.d.ts +2 -7
- package/dist/esm/models/PayeeLocationsResponseData.js +8 -16
- package/dist/esm/models/PayeeResponse.d.ts +2 -7
- package/dist/esm/models/PayeeResponse.js +8 -16
- package/dist/esm/models/PayeeResponseData.d.ts +2 -7
- package/dist/esm/models/PayeeResponseData.js +8 -16
- package/dist/esm/models/PayeesResponse.d.ts +2 -7
- package/dist/esm/models/PayeesResponse.js +8 -16
- package/dist/esm/models/PayeesResponseData.d.ts +2 -7
- package/dist/esm/models/PayeesResponseData.js +11 -18
- package/dist/esm/models/PostAccountWrapper.d.ts +2 -7
- package/dist/esm/models/PostAccountWrapper.js +8 -16
- package/dist/esm/models/PostScheduledTransactionWrapper.d.ts +27 -0
- package/dist/esm/models/PostScheduledTransactionWrapper.js +36 -0
- package/dist/esm/models/PostTransactionsWrapper.d.ts +7 -12
- package/dist/esm/models/PostTransactionsWrapper.js +10 -20
- package/dist/esm/models/PutTransactionWrapper.d.ts +5 -10
- package/dist/esm/models/PutTransactionWrapper.js +10 -18
- package/dist/esm/models/SaveAccount.d.ts +2 -7
- package/dist/esm/models/SaveAccount.js +14 -20
- package/dist/esm/models/SaveCategory.d.ts +2 -7
- package/dist/esm/models/SaveCategory.js +11 -21
- package/dist/esm/models/SaveCategoryResponse.d.ts +2 -7
- package/dist/esm/models/SaveCategoryResponse.js +8 -16
- package/dist/esm/models/SaveCategoryResponseData.d.ts +2 -7
- package/dist/esm/models/SaveCategoryResponseData.js +11 -18
- package/dist/esm/models/SaveMonthCategory.d.ts +2 -7
- package/dist/esm/models/SaveMonthCategory.js +8 -16
- package/dist/esm/models/SavePayee.d.ts +26 -0
- package/dist/esm/models/SavePayee.js +33 -0
- package/dist/esm/models/SavePayeeResponse.d.ts +27 -0
- package/dist/esm/models/SavePayeeResponse.js +36 -0
- package/dist/esm/models/SavePayeeResponseData.d.ts +33 -0
- package/dist/esm/models/SavePayeeResponseData.js +40 -0
- package/dist/esm/models/SaveScheduledTransaction.d.ts +76 -0
- package/dist/esm/models/SaveScheduledTransaction.js +55 -0
- package/dist/esm/models/SaveSubTransaction.d.ts +2 -7
- package/dist/esm/models/SaveSubTransaction.js +16 -25
- package/dist/esm/models/SaveTransactionWithIdOrImportId.d.ts +101 -0
- package/dist/esm/models/SaveTransactionWithIdOrImportId.js +60 -0
- package/dist/esm/models/SaveTransactionWithOptionalFields.d.ts +5 -16
- package/dist/esm/models/SaveTransactionWithOptionalFields.js +29 -41
- package/dist/esm/models/SaveTransactionsResponse.d.ts +2 -7
- package/dist/esm/models/SaveTransactionsResponse.js +8 -16
- package/dist/esm/models/SaveTransactionsResponseData.d.ts +2 -7
- package/dist/esm/models/SaveTransactionsResponseData.js +17 -25
- package/dist/esm/models/ScheduledSubTransaction.d.ts +2 -7
- package/dist/esm/models/ScheduledSubTransaction.js +25 -31
- package/dist/esm/models/ScheduledTransactionDetail.d.ts +10 -9
- package/dist/esm/models/ScheduledTransactionDetail.js +49 -48
- package/dist/esm/models/ScheduledTransactionFrequency.d.ts +30 -0
- package/dist/esm/models/ScheduledTransactionFrequency.js +46 -0
- package/dist/esm/models/ScheduledTransactionResponse.d.ts +2 -7
- package/dist/esm/models/ScheduledTransactionResponse.js +8 -16
- package/dist/esm/models/ScheduledTransactionResponseData.d.ts +2 -7
- package/dist/esm/models/ScheduledTransactionResponseData.js +8 -16
- package/dist/esm/models/ScheduledTransactionSummary.d.ts +9 -8
- package/dist/esm/models/ScheduledTransactionSummary.js +38 -39
- package/dist/esm/models/ScheduledTransactionsResponse.d.ts +2 -7
- package/dist/esm/models/ScheduledTransactionsResponse.js +8 -16
- package/dist/esm/models/ScheduledTransactionsResponseData.d.ts +2 -7
- package/dist/esm/models/ScheduledTransactionsResponseData.js +11 -18
- package/dist/esm/models/SubTransaction.d.ts +2 -7
- package/dist/esm/models/SubTransaction.js +31 -37
- package/dist/esm/models/TransactionClearedStatus.d.ts +3 -7
- package/dist/esm/models/TransactionClearedStatus.js +11 -6
- package/dist/esm/models/TransactionDetail.d.ts +12 -11
- package/dist/esm/models/TransactionDetail.js +62 -61
- package/dist/esm/models/TransactionFlagColor.d.ts +3 -7
- package/dist/esm/models/TransactionFlagColor.js +11 -6
- package/dist/esm/models/TransactionResponse.d.ts +2 -7
- package/dist/esm/models/TransactionResponse.js +8 -16
- package/dist/esm/models/TransactionResponseData.d.ts +2 -7
- package/dist/esm/models/TransactionResponseData.js +8 -16
- package/dist/esm/models/TransactionSummary.d.ts +11 -10
- package/dist/esm/models/TransactionSummary.js +51 -52
- package/dist/esm/models/TransactionsImportResponse.d.ts +2 -7
- package/dist/esm/models/TransactionsImportResponse.js +8 -16
- package/dist/esm/models/TransactionsImportResponseData.d.ts +2 -7
- package/dist/esm/models/TransactionsImportResponseData.js +8 -16
- package/dist/esm/models/TransactionsResponse.d.ts +2 -7
- package/dist/esm/models/TransactionsResponse.js +8 -16
- package/dist/esm/models/TransactionsResponseData.d.ts +2 -7
- package/dist/esm/models/TransactionsResponseData.js +11 -18
- package/dist/esm/models/User.d.ts +2 -7
- package/dist/esm/models/User.js +8 -16
- package/dist/esm/models/UserResponse.d.ts +2 -7
- package/dist/esm/models/UserResponse.js +8 -16
- package/dist/esm/models/UserResponseData.d.ts +2 -7
- package/dist/esm/models/UserResponseData.js +8 -16
- package/dist/esm/models/index.d.ts +10 -9
- package/dist/esm/models/index.js +10 -9
- package/dist/esm/runtime.d.ts +12 -17
- package/dist/esm/runtime.js +43 -39
- package/dist/index.js +17 -2
- package/dist/runtime.d.ts +5 -5
- package/dist/runtime.js +58 -48
- package/package.json +1 -1
|
@@ -2,15 +2,10 @@
|
|
|
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
|
-
*
|
|
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.
|
|
5
|
+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
11
6
|
*/
|
|
12
|
-
import type { TransactionClearedStatus } from './TransactionClearedStatus';
|
|
13
7
|
import type { TransactionFlagColor } from './TransactionFlagColor';
|
|
8
|
+
import type { TransactionClearedStatus } from './TransactionClearedStatus';
|
|
14
9
|
/**
|
|
15
10
|
*
|
|
16
11
|
* @export
|
|
@@ -59,6 +54,12 @@ export interface HybridTransaction {
|
|
|
59
54
|
* @memberof HybridTransaction
|
|
60
55
|
*/
|
|
61
56
|
flag_color?: TransactionFlagColor | null;
|
|
57
|
+
/**
|
|
58
|
+
* The customized name of a transaction flag
|
|
59
|
+
* @type {string}
|
|
60
|
+
* @memberof HybridTransaction
|
|
61
|
+
*/
|
|
62
|
+
flag_name?: string | null;
|
|
62
63
|
/**
|
|
63
64
|
*
|
|
64
65
|
* @type {string}
|
|
@@ -118,7 +119,7 @@ export interface HybridTransaction {
|
|
|
118
119
|
* @type {string}
|
|
119
120
|
* @memberof HybridTransaction
|
|
120
121
|
*/
|
|
121
|
-
debt_transaction_type?: HybridTransactionDebtTransactionTypeEnum;
|
|
122
|
+
debt_transaction_type?: HybridTransactionDebtTransactionTypeEnum | null;
|
|
122
123
|
/**
|
|
123
124
|
* Whether or not the transaction has been deleted. Deleted transactions will only be included in delta requests.
|
|
124
125
|
* @type {boolean}
|
|
@@ -169,7 +170,7 @@ export declare const HybridTransactionDebtTransactionTypeEnum: {
|
|
|
169
170
|
readonly Credit: "credit";
|
|
170
171
|
readonly Charge: "charge";
|
|
171
172
|
};
|
|
172
|
-
export
|
|
173
|
+
export type HybridTransactionDebtTransactionTypeEnum = typeof HybridTransactionDebtTransactionTypeEnum[keyof typeof HybridTransactionDebtTransactionTypeEnum];
|
|
173
174
|
/**
|
|
174
175
|
* @export
|
|
175
176
|
*/
|
|
@@ -177,11 +178,11 @@ export declare const HybridTransactionTypeEnum: {
|
|
|
177
178
|
readonly Transaction: "transaction";
|
|
178
179
|
readonly Subtransaction: "subtransaction";
|
|
179
180
|
};
|
|
180
|
-
export
|
|
181
|
+
export type HybridTransactionTypeEnum = typeof HybridTransactionTypeEnum[keyof typeof HybridTransactionTypeEnum];
|
|
181
182
|
/**
|
|
182
183
|
* Check if a given object implements the HybridTransaction interface.
|
|
183
184
|
*/
|
|
184
|
-
export declare function instanceOfHybridTransaction(value: object):
|
|
185
|
+
export declare function instanceOfHybridTransaction(value: object): value is HybridTransaction;
|
|
185
186
|
export declare function HybridTransactionFromJSON(json: any): HybridTransaction;
|
|
186
187
|
export declare function HybridTransactionFromJSONTyped(json: any, ignoreDiscriminator: boolean): HybridTransaction;
|
|
187
188
|
export declare function HybridTransactionToJSON(value?: HybridTransaction | null): any;
|
|
@@ -4,16 +4,10 @@
|
|
|
4
4
|
* YNAB API Endpoints
|
|
5
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
6
|
*
|
|
7
|
-
*
|
|
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.
|
|
7
|
+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
13
8
|
*/
|
|
14
|
-
import { exists } from '../runtime';
|
|
15
|
-
import { TransactionClearedStatusFromJSON, TransactionClearedStatusToJSON, } from './TransactionClearedStatus';
|
|
16
9
|
import { TransactionFlagColorFromJSON, TransactionFlagColorToJSON, } from './TransactionFlagColor';
|
|
10
|
+
import { TransactionClearedStatusFromJSON, TransactionClearedStatusToJSON, } from './TransactionClearedStatus';
|
|
17
11
|
/**
|
|
18
12
|
* @export
|
|
19
13
|
*/
|
|
@@ -38,81 +32,88 @@ export var HybridTransactionTypeEnum = {
|
|
|
38
32
|
* Check if a given object implements the HybridTransaction interface.
|
|
39
33
|
*/
|
|
40
34
|
export function instanceOfHybridTransaction(value) {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
35
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('date' in value) || value['date'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('amount' in value) || value['amount'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('cleared' in value) || value['cleared'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('approved' in value) || value['approved'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('account_id' in value) || value['account_id'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('deleted' in value) || value['deleted'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
50
|
+
return false;
|
|
51
|
+
if (!('account_name' in value) || value['account_name'] === undefined)
|
|
52
|
+
return false;
|
|
53
|
+
return true;
|
|
52
54
|
}
|
|
53
55
|
export function HybridTransactionFromJSON(json) {
|
|
54
56
|
return HybridTransactionFromJSONTyped(json, false);
|
|
55
57
|
}
|
|
56
58
|
export function HybridTransactionFromJSONTyped(json, ignoreDiscriminator) {
|
|
57
|
-
if (
|
|
59
|
+
if (json == null) {
|
|
58
60
|
return json;
|
|
59
61
|
}
|
|
60
62
|
return {
|
|
61
63
|
'id': json['id'],
|
|
62
64
|
'date': json['date'],
|
|
63
65
|
'amount': json['amount'],
|
|
64
|
-
'memo':
|
|
66
|
+
'memo': json['memo'] == null ? undefined : json['memo'],
|
|
65
67
|
'cleared': TransactionClearedStatusFromJSON(json['cleared']),
|
|
66
68
|
'approved': json['approved'],
|
|
67
|
-
'flag_color':
|
|
69
|
+
'flag_color': json['flag_color'] == null ? undefined : TransactionFlagColorFromJSON(json['flag_color']),
|
|
70
|
+
'flag_name': json['flag_name'] == null ? undefined : json['flag_name'],
|
|
68
71
|
'account_id': json['account_id'],
|
|
69
|
-
'payee_id':
|
|
70
|
-
'category_id':
|
|
71
|
-
'transfer_account_id':
|
|
72
|
-
'transfer_transaction_id':
|
|
73
|
-
'matched_transaction_id':
|
|
74
|
-
'import_id':
|
|
75
|
-
'import_payee_name':
|
|
76
|
-
'import_payee_name_original':
|
|
77
|
-
'debt_transaction_type':
|
|
72
|
+
'payee_id': json['payee_id'] == null ? undefined : json['payee_id'],
|
|
73
|
+
'category_id': json['category_id'] == null ? undefined : json['category_id'],
|
|
74
|
+
'transfer_account_id': json['transfer_account_id'] == null ? undefined : json['transfer_account_id'],
|
|
75
|
+
'transfer_transaction_id': json['transfer_transaction_id'] == null ? undefined : json['transfer_transaction_id'],
|
|
76
|
+
'matched_transaction_id': json['matched_transaction_id'] == null ? undefined : json['matched_transaction_id'],
|
|
77
|
+
'import_id': json['import_id'] == null ? undefined : json['import_id'],
|
|
78
|
+
'import_payee_name': json['import_payee_name'] == null ? undefined : json['import_payee_name'],
|
|
79
|
+
'import_payee_name_original': json['import_payee_name_original'] == null ? undefined : json['import_payee_name_original'],
|
|
80
|
+
'debt_transaction_type': json['debt_transaction_type'] == null ? undefined : json['debt_transaction_type'],
|
|
78
81
|
'deleted': json['deleted'],
|
|
79
82
|
'type': json['type'],
|
|
80
|
-
'parent_transaction_id':
|
|
83
|
+
'parent_transaction_id': json['parent_transaction_id'] == null ? undefined : json['parent_transaction_id'],
|
|
81
84
|
'account_name': json['account_name'],
|
|
82
|
-
'payee_name':
|
|
83
|
-
'category_name':
|
|
85
|
+
'payee_name': json['payee_name'] == null ? undefined : json['payee_name'],
|
|
86
|
+
'category_name': json['category_name'] == null ? undefined : json['category_name'],
|
|
84
87
|
};
|
|
85
88
|
}
|
|
86
89
|
export function HybridTransactionToJSON(value) {
|
|
87
|
-
if (value
|
|
88
|
-
return
|
|
89
|
-
}
|
|
90
|
-
if (value === null) {
|
|
91
|
-
return null;
|
|
90
|
+
if (value == null) {
|
|
91
|
+
return value;
|
|
92
92
|
}
|
|
93
93
|
return {
|
|
94
|
-
'id': value
|
|
95
|
-
'date': value
|
|
96
|
-
'amount': value
|
|
97
|
-
'memo': value
|
|
98
|
-
'cleared': TransactionClearedStatusToJSON(value
|
|
99
|
-
'approved': value
|
|
100
|
-
'flag_color': TransactionFlagColorToJSON(value
|
|
101
|
-
'
|
|
102
|
-
'
|
|
103
|
-
'
|
|
104
|
-
'
|
|
105
|
-
'
|
|
106
|
-
'
|
|
107
|
-
'
|
|
108
|
-
'
|
|
109
|
-
'
|
|
110
|
-
'
|
|
111
|
-
'
|
|
112
|
-
'
|
|
113
|
-
'
|
|
114
|
-
'
|
|
115
|
-
'
|
|
116
|
-
'
|
|
94
|
+
'id': value['id'],
|
|
95
|
+
'date': value['date'],
|
|
96
|
+
'amount': value['amount'],
|
|
97
|
+
'memo': value['memo'],
|
|
98
|
+
'cleared': TransactionClearedStatusToJSON(value['cleared']),
|
|
99
|
+
'approved': value['approved'],
|
|
100
|
+
'flag_color': TransactionFlagColorToJSON(value['flag_color']),
|
|
101
|
+
'flag_name': value['flag_name'],
|
|
102
|
+
'account_id': value['account_id'],
|
|
103
|
+
'payee_id': value['payee_id'],
|
|
104
|
+
'category_id': value['category_id'],
|
|
105
|
+
'transfer_account_id': value['transfer_account_id'],
|
|
106
|
+
'transfer_transaction_id': value['transfer_transaction_id'],
|
|
107
|
+
'matched_transaction_id': value['matched_transaction_id'],
|
|
108
|
+
'import_id': value['import_id'],
|
|
109
|
+
'import_payee_name': value['import_payee_name'],
|
|
110
|
+
'import_payee_name_original': value['import_payee_name_original'],
|
|
111
|
+
'debt_transaction_type': value['debt_transaction_type'],
|
|
112
|
+
'deleted': value['deleted'],
|
|
113
|
+
'type': value['type'],
|
|
114
|
+
'parent_transaction_id': value['parent_transaction_id'],
|
|
115
|
+
'account_name': value['account_name'],
|
|
116
|
+
'payee_name': value['payee_name'],
|
|
117
|
+
'category_name': value['category_name'],
|
|
117
118
|
};
|
|
118
119
|
}
|
|
@@ -53,7 +53,7 @@ export declare const HybridTransactionAllOfTypeEnum: {
|
|
|
53
53
|
readonly Transaction: "transaction";
|
|
54
54
|
readonly Subtransaction: "subtransaction";
|
|
55
55
|
};
|
|
56
|
-
export
|
|
56
|
+
export type HybridTransactionAllOfTypeEnum = typeof HybridTransactionAllOfTypeEnum[keyof typeof HybridTransactionAllOfTypeEnum];
|
|
57
57
|
/**
|
|
58
58
|
* Check if a given object implements the HybridTransactionAllOf interface.
|
|
59
59
|
*/
|
|
@@ -2,12 +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
|
-
*
|
|
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.
|
|
5
|
+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
11
6
|
*/
|
|
12
7
|
import type { HybridTransactionsResponseData } from './HybridTransactionsResponseData';
|
|
13
8
|
/**
|
|
@@ -26,7 +21,7 @@ export interface HybridTransactionsResponse {
|
|
|
26
21
|
/**
|
|
27
22
|
* Check if a given object implements the HybridTransactionsResponse interface.
|
|
28
23
|
*/
|
|
29
|
-
export declare function instanceOfHybridTransactionsResponse(value: object):
|
|
24
|
+
export declare function instanceOfHybridTransactionsResponse(value: object): value is HybridTransactionsResponse;
|
|
30
25
|
export declare function HybridTransactionsResponseFromJSON(json: any): HybridTransactionsResponse;
|
|
31
26
|
export declare function HybridTransactionsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): HybridTransactionsResponse;
|
|
32
27
|
export declare function HybridTransactionsResponseToJSON(value?: HybridTransactionsResponse | null): any;
|
|
@@ -4,27 +4,22 @@
|
|
|
4
4
|
* YNAB API Endpoints
|
|
5
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
6
|
*
|
|
7
|
-
*
|
|
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.
|
|
7
|
+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
13
8
|
*/
|
|
14
9
|
import { HybridTransactionsResponseDataFromJSON, HybridTransactionsResponseDataToJSON, } from './HybridTransactionsResponseData';
|
|
15
10
|
/**
|
|
16
11
|
* Check if a given object implements the HybridTransactionsResponse interface.
|
|
17
12
|
*/
|
|
18
13
|
export function instanceOfHybridTransactionsResponse(value) {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
return
|
|
14
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
15
|
+
return false;
|
|
16
|
+
return true;
|
|
22
17
|
}
|
|
23
18
|
export function HybridTransactionsResponseFromJSON(json) {
|
|
24
19
|
return HybridTransactionsResponseFromJSONTyped(json, false);
|
|
25
20
|
}
|
|
26
21
|
export function HybridTransactionsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
-
if (
|
|
22
|
+
if (json == null) {
|
|
28
23
|
return json;
|
|
29
24
|
}
|
|
30
25
|
return {
|
|
@@ -32,13 +27,10 @@ export function HybridTransactionsResponseFromJSONTyped(json, ignoreDiscriminato
|
|
|
32
27
|
};
|
|
33
28
|
}
|
|
34
29
|
export function HybridTransactionsResponseToJSON(value) {
|
|
35
|
-
if (value
|
|
36
|
-
return
|
|
37
|
-
}
|
|
38
|
-
if (value === null) {
|
|
39
|
-
return null;
|
|
30
|
+
if (value == null) {
|
|
31
|
+
return value;
|
|
40
32
|
}
|
|
41
33
|
return {
|
|
42
|
-
'data': HybridTransactionsResponseDataToJSON(value
|
|
34
|
+
'data': HybridTransactionsResponseDataToJSON(value['data']),
|
|
43
35
|
};
|
|
44
36
|
}
|
|
@@ -2,12 +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
|
-
*
|
|
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.
|
|
5
|
+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
11
6
|
*/
|
|
12
7
|
import type { HybridTransaction } from './HybridTransaction';
|
|
13
8
|
/**
|
|
@@ -32,7 +27,7 @@ export interface HybridTransactionsResponseData {
|
|
|
32
27
|
/**
|
|
33
28
|
* Check if a given object implements the HybridTransactionsResponseData interface.
|
|
34
29
|
*/
|
|
35
|
-
export declare function instanceOfHybridTransactionsResponseData(value: object):
|
|
30
|
+
export declare function instanceOfHybridTransactionsResponseData(value: object): value is HybridTransactionsResponseData;
|
|
36
31
|
export declare function HybridTransactionsResponseDataFromJSON(json: any): HybridTransactionsResponseData;
|
|
37
32
|
export declare function HybridTransactionsResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): HybridTransactionsResponseData;
|
|
38
33
|
export declare function HybridTransactionsResponseDataToJSON(value?: HybridTransactionsResponseData | null): any;
|
|
@@ -4,44 +4,35 @@
|
|
|
4
4
|
* YNAB API Endpoints
|
|
5
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
6
|
*
|
|
7
|
-
*
|
|
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.
|
|
7
|
+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
13
8
|
*/
|
|
14
|
-
import { exists } from '../runtime';
|
|
15
9
|
import { HybridTransactionFromJSON, HybridTransactionToJSON, } from './HybridTransaction';
|
|
16
10
|
/**
|
|
17
11
|
* Check if a given object implements the HybridTransactionsResponseData interface.
|
|
18
12
|
*/
|
|
19
13
|
export function instanceOfHybridTransactionsResponseData(value) {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
return
|
|
14
|
+
if (!('transactions' in value) || value['transactions'] === undefined)
|
|
15
|
+
return false;
|
|
16
|
+
return true;
|
|
23
17
|
}
|
|
24
18
|
export function HybridTransactionsResponseDataFromJSON(json) {
|
|
25
19
|
return HybridTransactionsResponseDataFromJSONTyped(json, false);
|
|
26
20
|
}
|
|
27
21
|
export function HybridTransactionsResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
-
if (
|
|
22
|
+
if (json == null) {
|
|
29
23
|
return json;
|
|
30
24
|
}
|
|
31
25
|
return {
|
|
32
26
|
'transactions': (json['transactions'].map(HybridTransactionFromJSON)),
|
|
33
|
-
'server_knowledge':
|
|
27
|
+
'server_knowledge': json['server_knowledge'] == null ? undefined : json['server_knowledge'],
|
|
34
28
|
};
|
|
35
29
|
}
|
|
36
30
|
export function HybridTransactionsResponseDataToJSON(value) {
|
|
37
|
-
if (value
|
|
38
|
-
return
|
|
39
|
-
}
|
|
40
|
-
if (value === null) {
|
|
41
|
-
return null;
|
|
31
|
+
if (value == null) {
|
|
32
|
+
return value;
|
|
42
33
|
}
|
|
43
34
|
return {
|
|
44
|
-
'transactions': (value
|
|
45
|
-
'server_knowledge': value
|
|
35
|
+
'transactions': (value['transactions'].map(HybridTransactionToJSON)),
|
|
36
|
+
'server_knowledge': value['server_knowledge'],
|
|
46
37
|
};
|
|
47
38
|
}
|
|
@@ -2,12 +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
|
-
*
|
|
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.
|
|
5
|
+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
11
6
|
*/
|
|
12
7
|
import type { Category } from './Category';
|
|
13
8
|
/**
|
|
@@ -74,7 +69,7 @@ export interface MonthDetail {
|
|
|
74
69
|
/**
|
|
75
70
|
* Check if a given object implements the MonthDetail interface.
|
|
76
71
|
*/
|
|
77
|
-
export declare function instanceOfMonthDetail(value: object):
|
|
72
|
+
export declare function instanceOfMonthDetail(value: object): value is MonthDetail;
|
|
78
73
|
export declare function MonthDetailFromJSON(json: any): MonthDetail;
|
|
79
74
|
export declare function MonthDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): MonthDetail;
|
|
80
75
|
export declare function MonthDetailToJSON(value?: MonthDetail | null): any;
|
|
@@ -4,64 +4,61 @@
|
|
|
4
4
|
* YNAB API Endpoints
|
|
5
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
6
|
*
|
|
7
|
-
*
|
|
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.
|
|
7
|
+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
13
8
|
*/
|
|
14
|
-
import { exists } from '../runtime';
|
|
15
9
|
import { CategoryFromJSON, CategoryToJSON, } from './Category';
|
|
16
10
|
/**
|
|
17
11
|
* Check if a given object implements the MonthDetail interface.
|
|
18
12
|
*/
|
|
19
13
|
export function instanceOfMonthDetail(value) {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
14
|
+
if (!('month' in value) || value['month'] === undefined)
|
|
15
|
+
return false;
|
|
16
|
+
if (!('income' in value) || value['income'] === undefined)
|
|
17
|
+
return false;
|
|
18
|
+
if (!('budgeted' in value) || value['budgeted'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('activity' in value) || value['activity'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('to_be_budgeted' in value) || value['to_be_budgeted'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('deleted' in value) || value['deleted'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('categories' in value) || value['categories'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
29
|
}
|
|
30
30
|
export function MonthDetailFromJSON(json) {
|
|
31
31
|
return MonthDetailFromJSONTyped(json, false);
|
|
32
32
|
}
|
|
33
33
|
export function MonthDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
-
if (
|
|
34
|
+
if (json == null) {
|
|
35
35
|
return json;
|
|
36
36
|
}
|
|
37
37
|
return {
|
|
38
38
|
'month': json['month'],
|
|
39
|
-
'note':
|
|
39
|
+
'note': json['note'] == null ? undefined : json['note'],
|
|
40
40
|
'income': json['income'],
|
|
41
41
|
'budgeted': json['budgeted'],
|
|
42
42
|
'activity': json['activity'],
|
|
43
43
|
'to_be_budgeted': json['to_be_budgeted'],
|
|
44
|
-
'age_of_money':
|
|
44
|
+
'age_of_money': json['age_of_money'] == null ? undefined : json['age_of_money'],
|
|
45
45
|
'deleted': json['deleted'],
|
|
46
46
|
'categories': (json['categories'].map(CategoryFromJSON)),
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
49
|
export function MonthDetailToJSON(value) {
|
|
50
|
-
if (value
|
|
51
|
-
return
|
|
52
|
-
}
|
|
53
|
-
if (value === null) {
|
|
54
|
-
return null;
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
55
52
|
}
|
|
56
53
|
return {
|
|
57
|
-
'month': value
|
|
58
|
-
'note': value
|
|
59
|
-
'income': value
|
|
60
|
-
'budgeted': value
|
|
61
|
-
'activity': value
|
|
62
|
-
'to_be_budgeted': value
|
|
63
|
-
'age_of_money': value
|
|
64
|
-
'deleted': value
|
|
65
|
-
'categories': (value
|
|
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
|
+
'categories': (value['categories'].map(CategoryToJSON)),
|
|
66
63
|
};
|
|
67
64
|
}
|
|
@@ -2,12 +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
|
-
*
|
|
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.
|
|
5
|
+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
11
6
|
*/
|
|
12
7
|
import type { MonthDetailResponseData } from './MonthDetailResponseData';
|
|
13
8
|
/**
|
|
@@ -26,7 +21,7 @@ export interface MonthDetailResponse {
|
|
|
26
21
|
/**
|
|
27
22
|
* Check if a given object implements the MonthDetailResponse interface.
|
|
28
23
|
*/
|
|
29
|
-
export declare function instanceOfMonthDetailResponse(value: object):
|
|
24
|
+
export declare function instanceOfMonthDetailResponse(value: object): value is MonthDetailResponse;
|
|
30
25
|
export declare function MonthDetailResponseFromJSON(json: any): MonthDetailResponse;
|
|
31
26
|
export declare function MonthDetailResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MonthDetailResponse;
|
|
32
27
|
export declare function MonthDetailResponseToJSON(value?: MonthDetailResponse | null): any;
|
|
@@ -4,27 +4,22 @@
|
|
|
4
4
|
* YNAB API Endpoints
|
|
5
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
6
|
*
|
|
7
|
-
*
|
|
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.
|
|
7
|
+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
13
8
|
*/
|
|
14
9
|
import { MonthDetailResponseDataFromJSON, MonthDetailResponseDataToJSON, } from './MonthDetailResponseData';
|
|
15
10
|
/**
|
|
16
11
|
* Check if a given object implements the MonthDetailResponse interface.
|
|
17
12
|
*/
|
|
18
13
|
export function instanceOfMonthDetailResponse(value) {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
return
|
|
14
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
15
|
+
return false;
|
|
16
|
+
return true;
|
|
22
17
|
}
|
|
23
18
|
export function MonthDetailResponseFromJSON(json) {
|
|
24
19
|
return MonthDetailResponseFromJSONTyped(json, false);
|
|
25
20
|
}
|
|
26
21
|
export function MonthDetailResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
-
if (
|
|
22
|
+
if (json == null) {
|
|
28
23
|
return json;
|
|
29
24
|
}
|
|
30
25
|
return {
|
|
@@ -32,13 +27,10 @@ export function MonthDetailResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
27
|
};
|
|
33
28
|
}
|
|
34
29
|
export function MonthDetailResponseToJSON(value) {
|
|
35
|
-
if (value
|
|
36
|
-
return
|
|
37
|
-
}
|
|
38
|
-
if (value === null) {
|
|
39
|
-
return null;
|
|
30
|
+
if (value == null) {
|
|
31
|
+
return value;
|
|
40
32
|
}
|
|
41
33
|
return {
|
|
42
|
-
'data': MonthDetailResponseDataToJSON(value
|
|
34
|
+
'data': MonthDetailResponseDataToJSON(value['data']),
|
|
43
35
|
};
|
|
44
36
|
}
|
|
@@ -2,12 +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
|
-
*
|
|
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.
|
|
5
|
+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
11
6
|
*/
|
|
12
7
|
import type { MonthDetail } from './MonthDetail';
|
|
13
8
|
/**
|
|
@@ -26,7 +21,7 @@ export interface MonthDetailResponseData {
|
|
|
26
21
|
/**
|
|
27
22
|
* Check if a given object implements the MonthDetailResponseData interface.
|
|
28
23
|
*/
|
|
29
|
-
export declare function instanceOfMonthDetailResponseData(value: object):
|
|
24
|
+
export declare function instanceOfMonthDetailResponseData(value: object): value is MonthDetailResponseData;
|
|
30
25
|
export declare function MonthDetailResponseDataFromJSON(json: any): MonthDetailResponseData;
|
|
31
26
|
export declare function MonthDetailResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): MonthDetailResponseData;
|
|
32
27
|
export declare function MonthDetailResponseDataToJSON(value?: MonthDetailResponseData | null): any;
|