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
|
@@ -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).
|
|
@@ -13,28 +13,9 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.HybridTransactionToJSON = exports.HybridTransactionFromJSONTyped = exports.HybridTransactionFromJSON = exports.instanceOfHybridTransaction = exports.HybridTransactionTypeEnum = exports.HybridTransactionDebtTransactionTypeEnum =
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
* @export
|
|
20
|
-
*/
|
|
21
|
-
exports.HybridTransactionClearedEnum = {
|
|
22
|
-
Cleared: 'cleared',
|
|
23
|
-
Uncleared: 'uncleared',
|
|
24
|
-
Reconciled: 'reconciled'
|
|
25
|
-
};
|
|
26
|
-
/**
|
|
27
|
-
* @export
|
|
28
|
-
*/
|
|
29
|
-
exports.HybridTransactionFlagColorEnum = {
|
|
30
|
-
Red: 'red',
|
|
31
|
-
Orange: 'orange',
|
|
32
|
-
Yellow: 'yellow',
|
|
33
|
-
Green: 'green',
|
|
34
|
-
Blue: 'blue',
|
|
35
|
-
Purple: 'purple',
|
|
36
|
-
Null: 'null'
|
|
37
|
-
};
|
|
16
|
+
exports.HybridTransactionToJSON = exports.HybridTransactionFromJSONTyped = exports.HybridTransactionFromJSON = exports.instanceOfHybridTransaction = exports.HybridTransactionTypeEnum = exports.HybridTransactionDebtTransactionTypeEnum = void 0;
|
|
17
|
+
const TransactionFlagColor_1 = require("./TransactionFlagColor");
|
|
18
|
+
const TransactionClearedStatus_1 = require("./TransactionClearedStatus");
|
|
38
19
|
/**
|
|
39
20
|
* @export
|
|
40
21
|
*/
|
|
@@ -44,10 +25,9 @@ exports.HybridTransactionDebtTransactionTypeEnum = {
|
|
|
44
25
|
Fee: 'fee',
|
|
45
26
|
Interest: 'interest',
|
|
46
27
|
Escrow: 'escrow',
|
|
47
|
-
|
|
28
|
+
BalanceAdjustment: 'balanceAdjustment',
|
|
48
29
|
Credit: 'credit',
|
|
49
30
|
Charge: 'charge',
|
|
50
|
-
Null: 'null'
|
|
51
31
|
};
|
|
52
32
|
/**
|
|
53
33
|
* @export
|
|
@@ -60,17 +40,25 @@ exports.HybridTransactionTypeEnum = {
|
|
|
60
40
|
* Check if a given object implements the HybridTransaction interface.
|
|
61
41
|
*/
|
|
62
42
|
function instanceOfHybridTransaction(value) {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
43
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('date' in value) || value['date'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('amount' in value) || value['amount'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
if (!('cleared' in value) || value['cleared'] === undefined)
|
|
50
|
+
return false;
|
|
51
|
+
if (!('approved' in value) || value['approved'] === undefined)
|
|
52
|
+
return false;
|
|
53
|
+
if (!('account_id' in value) || value['account_id'] === undefined)
|
|
54
|
+
return false;
|
|
55
|
+
if (!('deleted' in value) || value['deleted'] === undefined)
|
|
56
|
+
return false;
|
|
57
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
58
|
+
return false;
|
|
59
|
+
if (!('account_name' in value) || value['account_name'] === undefined)
|
|
60
|
+
return false;
|
|
61
|
+
return true;
|
|
74
62
|
}
|
|
75
63
|
exports.instanceOfHybridTransaction = instanceOfHybridTransaction;
|
|
76
64
|
function HybridTransactionFromJSON(json) {
|
|
@@ -78,67 +66,66 @@ function HybridTransactionFromJSON(json) {
|
|
|
78
66
|
}
|
|
79
67
|
exports.HybridTransactionFromJSON = HybridTransactionFromJSON;
|
|
80
68
|
function HybridTransactionFromJSONTyped(json, ignoreDiscriminator) {
|
|
81
|
-
if (
|
|
69
|
+
if (json == null) {
|
|
82
70
|
return json;
|
|
83
71
|
}
|
|
84
72
|
return {
|
|
85
73
|
'id': json['id'],
|
|
86
74
|
'date': json['date'],
|
|
87
75
|
'amount': json['amount'],
|
|
88
|
-
'memo':
|
|
89
|
-
'cleared': json['cleared'],
|
|
76
|
+
'memo': json['memo'] == null ? undefined : json['memo'],
|
|
77
|
+
'cleared': (0, TransactionClearedStatus_1.TransactionClearedStatusFromJSON)(json['cleared']),
|
|
90
78
|
'approved': json['approved'],
|
|
91
|
-
'flag_color':
|
|
79
|
+
'flag_color': json['flag_color'] == null ? undefined : (0, TransactionFlagColor_1.TransactionFlagColorFromJSON)(json['flag_color']),
|
|
80
|
+
'flag_name': json['flag_name'] == null ? undefined : json['flag_name'],
|
|
92
81
|
'account_id': json['account_id'],
|
|
93
|
-
'payee_id':
|
|
94
|
-
'category_id':
|
|
95
|
-
'transfer_account_id':
|
|
96
|
-
'transfer_transaction_id':
|
|
97
|
-
'matched_transaction_id':
|
|
98
|
-
'import_id':
|
|
99
|
-
'import_payee_name':
|
|
100
|
-
'import_payee_name_original':
|
|
101
|
-
'debt_transaction_type':
|
|
82
|
+
'payee_id': json['payee_id'] == null ? undefined : json['payee_id'],
|
|
83
|
+
'category_id': json['category_id'] == null ? undefined : json['category_id'],
|
|
84
|
+
'transfer_account_id': json['transfer_account_id'] == null ? undefined : json['transfer_account_id'],
|
|
85
|
+
'transfer_transaction_id': json['transfer_transaction_id'] == null ? undefined : json['transfer_transaction_id'],
|
|
86
|
+
'matched_transaction_id': json['matched_transaction_id'] == null ? undefined : json['matched_transaction_id'],
|
|
87
|
+
'import_id': json['import_id'] == null ? undefined : json['import_id'],
|
|
88
|
+
'import_payee_name': json['import_payee_name'] == null ? undefined : json['import_payee_name'],
|
|
89
|
+
'import_payee_name_original': json['import_payee_name_original'] == null ? undefined : json['import_payee_name_original'],
|
|
90
|
+
'debt_transaction_type': json['debt_transaction_type'] == null ? undefined : json['debt_transaction_type'],
|
|
102
91
|
'deleted': json['deleted'],
|
|
103
92
|
'type': json['type'],
|
|
104
|
-
'parent_transaction_id':
|
|
93
|
+
'parent_transaction_id': json['parent_transaction_id'] == null ? undefined : json['parent_transaction_id'],
|
|
105
94
|
'account_name': json['account_name'],
|
|
106
|
-
'payee_name':
|
|
107
|
-
'category_name':
|
|
95
|
+
'payee_name': json['payee_name'] == null ? undefined : json['payee_name'],
|
|
96
|
+
'category_name': json['category_name'] == null ? undefined : json['category_name'],
|
|
108
97
|
};
|
|
109
98
|
}
|
|
110
99
|
exports.HybridTransactionFromJSONTyped = HybridTransactionFromJSONTyped;
|
|
111
100
|
function HybridTransactionToJSON(value) {
|
|
112
|
-
if (value
|
|
113
|
-
return
|
|
114
|
-
}
|
|
115
|
-
if (value === null) {
|
|
116
|
-
return null;
|
|
101
|
+
if (value == null) {
|
|
102
|
+
return value;
|
|
117
103
|
}
|
|
118
104
|
return {
|
|
119
|
-
'id': value
|
|
120
|
-
'date': value
|
|
121
|
-
'amount': value
|
|
122
|
-
'memo': value
|
|
123
|
-
'cleared': value
|
|
124
|
-
'approved': value
|
|
125
|
-
'flag_color': value
|
|
126
|
-
'
|
|
127
|
-
'
|
|
128
|
-
'
|
|
129
|
-
'
|
|
130
|
-
'
|
|
131
|
-
'
|
|
132
|
-
'
|
|
133
|
-
'
|
|
134
|
-
'
|
|
135
|
-
'
|
|
136
|
-
'
|
|
137
|
-
'
|
|
138
|
-
'
|
|
139
|
-
'
|
|
140
|
-
'
|
|
141
|
-
'
|
|
105
|
+
'id': value['id'],
|
|
106
|
+
'date': value['date'],
|
|
107
|
+
'amount': value['amount'],
|
|
108
|
+
'memo': value['memo'],
|
|
109
|
+
'cleared': (0, TransactionClearedStatus_1.TransactionClearedStatusToJSON)(value['cleared']),
|
|
110
|
+
'approved': value['approved'],
|
|
111
|
+
'flag_color': (0, TransactionFlagColor_1.TransactionFlagColorToJSON)(value['flag_color']),
|
|
112
|
+
'flag_name': value['flag_name'],
|
|
113
|
+
'account_id': value['account_id'],
|
|
114
|
+
'payee_id': value['payee_id'],
|
|
115
|
+
'category_id': value['category_id'],
|
|
116
|
+
'transfer_account_id': value['transfer_account_id'],
|
|
117
|
+
'transfer_transaction_id': value['transfer_transaction_id'],
|
|
118
|
+
'matched_transaction_id': value['matched_transaction_id'],
|
|
119
|
+
'import_id': value['import_id'],
|
|
120
|
+
'import_payee_name': value['import_payee_name'],
|
|
121
|
+
'import_payee_name_original': value['import_payee_name_original'],
|
|
122
|
+
'debt_transaction_type': value['debt_transaction_type'],
|
|
123
|
+
'deleted': value['deleted'],
|
|
124
|
+
'type': value['type'],
|
|
125
|
+
'parent_transaction_id': value['parent_transaction_id'],
|
|
126
|
+
'account_name': value['account_name'],
|
|
127
|
+
'payee_name': value['payee_name'],
|
|
128
|
+
'category_name': value['category_name'],
|
|
142
129
|
};
|
|
143
130
|
}
|
|
144
131
|
exports.HybridTransactionToJSON = HybridTransactionToJSON;
|
|
@@ -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,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 HybridTransactionsResponse {
|
|
|
26
26
|
/**
|
|
27
27
|
* Check if a given object implements the HybridTransactionsResponse interface.
|
|
28
28
|
*/
|
|
29
|
-
export declare function instanceOfHybridTransactionsResponse(value: object):
|
|
29
|
+
export declare function instanceOfHybridTransactionsResponse(value: object): value is HybridTransactionsResponse;
|
|
30
30
|
export declare function HybridTransactionsResponseFromJSON(json: any): HybridTransactionsResponse;
|
|
31
31
|
export declare function HybridTransactionsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): HybridTransactionsResponse;
|
|
32
32
|
export declare function HybridTransactionsResponseToJSON(value?: HybridTransactionsResponse | null): any;
|
|
@@ -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).
|
|
@@ -19,9 +19,9 @@ const HybridTransactionsResponseData_1 = require("./HybridTransactionsResponseDa
|
|
|
19
19
|
* Check if a given object implements the HybridTransactionsResponse interface.
|
|
20
20
|
*/
|
|
21
21
|
function instanceOfHybridTransactionsResponse(value) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return
|
|
22
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
25
|
}
|
|
26
26
|
exports.instanceOfHybridTransactionsResponse = instanceOfHybridTransactionsResponse;
|
|
27
27
|
function HybridTransactionsResponseFromJSON(json) {
|
|
@@ -29,7 +29,7 @@ function HybridTransactionsResponseFromJSON(json) {
|
|
|
29
29
|
}
|
|
30
30
|
exports.HybridTransactionsResponseFromJSON = HybridTransactionsResponseFromJSON;
|
|
31
31
|
function HybridTransactionsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (
|
|
32
|
+
if (json == null) {
|
|
33
33
|
return json;
|
|
34
34
|
}
|
|
35
35
|
return {
|
|
@@ -38,14 +38,11 @@ function HybridTransactionsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
38
|
}
|
|
39
39
|
exports.HybridTransactionsResponseFromJSONTyped = HybridTransactionsResponseFromJSONTyped;
|
|
40
40
|
function HybridTransactionsResponseToJSON(value) {
|
|
41
|
-
if (value
|
|
42
|
-
return
|
|
43
|
-
}
|
|
44
|
-
if (value === null) {
|
|
45
|
-
return null;
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
46
43
|
}
|
|
47
44
|
return {
|
|
48
|
-
'data': (0, HybridTransactionsResponseData_1.HybridTransactionsResponseDataToJSON)(value
|
|
45
|
+
'data': (0, HybridTransactionsResponseData_1.HybridTransactionsResponseDataToJSON)(value['data']),
|
|
49
46
|
};
|
|
50
47
|
}
|
|
51
48
|
exports.HybridTransactionsResponseToJSON = HybridTransactionsResponseToJSON;
|
|
@@ -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).
|
|
@@ -32,7 +32,7 @@ export interface HybridTransactionsResponseData {
|
|
|
32
32
|
/**
|
|
33
33
|
* Check if a given object implements the HybridTransactionsResponseData interface.
|
|
34
34
|
*/
|
|
35
|
-
export declare function instanceOfHybridTransactionsResponseData(value: object):
|
|
35
|
+
export declare function instanceOfHybridTransactionsResponseData(value: object): value is HybridTransactionsResponseData;
|
|
36
36
|
export declare function HybridTransactionsResponseDataFromJSON(json: any): HybridTransactionsResponseData;
|
|
37
37
|
export declare function HybridTransactionsResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): HybridTransactionsResponseData;
|
|
38
38
|
export declare function HybridTransactionsResponseDataToJSON(value?: HybridTransactionsResponseData | null): any;
|
|
@@ -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,15 +14,14 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.HybridTransactionsResponseDataToJSON = exports.HybridTransactionsResponseDataFromJSONTyped = exports.HybridTransactionsResponseDataFromJSON = exports.instanceOfHybridTransactionsResponseData = void 0;
|
|
17
|
-
const runtime_1 = require("../runtime");
|
|
18
17
|
const HybridTransaction_1 = require("./HybridTransaction");
|
|
19
18
|
/**
|
|
20
19
|
* Check if a given object implements the HybridTransactionsResponseData interface.
|
|
21
20
|
*/
|
|
22
21
|
function instanceOfHybridTransactionsResponseData(value) {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
return
|
|
22
|
+
if (!('transactions' in value) || value['transactions'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
26
25
|
}
|
|
27
26
|
exports.instanceOfHybridTransactionsResponseData = instanceOfHybridTransactionsResponseData;
|
|
28
27
|
function HybridTransactionsResponseDataFromJSON(json) {
|
|
@@ -30,25 +29,22 @@ function HybridTransactionsResponseDataFromJSON(json) {
|
|
|
30
29
|
}
|
|
31
30
|
exports.HybridTransactionsResponseDataFromJSON = HybridTransactionsResponseDataFromJSON;
|
|
32
31
|
function HybridTransactionsResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
-
if (
|
|
32
|
+
if (json == null) {
|
|
34
33
|
return json;
|
|
35
34
|
}
|
|
36
35
|
return {
|
|
37
36
|
'transactions': (json['transactions'].map(HybridTransaction_1.HybridTransactionFromJSON)),
|
|
38
|
-
'server_knowledge':
|
|
37
|
+
'server_knowledge': json['server_knowledge'] == null ? undefined : json['server_knowledge'],
|
|
39
38
|
};
|
|
40
39
|
}
|
|
41
40
|
exports.HybridTransactionsResponseDataFromJSONTyped = HybridTransactionsResponseDataFromJSONTyped;
|
|
42
41
|
function HybridTransactionsResponseDataToJSON(value) {
|
|
43
|
-
if (value
|
|
44
|
-
return
|
|
45
|
-
}
|
|
46
|
-
if (value === null) {
|
|
47
|
-
return null;
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
48
44
|
}
|
|
49
45
|
return {
|
|
50
|
-
'transactions': (value
|
|
51
|
-
'server_knowledge': value
|
|
46
|
+
'transactions': (value['transactions'].map(HybridTransaction_1.HybridTransactionToJSON)),
|
|
47
|
+
'server_knowledge': value['server_knowledge'],
|
|
52
48
|
};
|
|
53
49
|
}
|
|
54
50
|
exports.HybridTransactionsResponseDataToJSON = HybridTransactionsResponseDataToJSON;
|
|
@@ -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).
|
|
@@ -27,7 +27,7 @@ export interface MonthDetail {
|
|
|
27
27
|
* @type {string}
|
|
28
28
|
* @memberof MonthDetail
|
|
29
29
|
*/
|
|
30
|
-
note?: string
|
|
30
|
+
note?: string;
|
|
31
31
|
/**
|
|
32
32
|
* The total amount of transactions categorized to 'Inflow: Ready to Assign' in the month
|
|
33
33
|
* @type {number}
|
|
@@ -57,7 +57,7 @@ export interface MonthDetail {
|
|
|
57
57
|
* @type {number}
|
|
58
58
|
* @memberof MonthDetail
|
|
59
59
|
*/
|
|
60
|
-
age_of_money?: number
|
|
60
|
+
age_of_money?: number;
|
|
61
61
|
/**
|
|
62
62
|
* Whether or not the month has been deleted. Deleted months will only be included in delta requests.
|
|
63
63
|
* @type {boolean}
|
|
@@ -74,7 +74,7 @@ export interface MonthDetail {
|
|
|
74
74
|
/**
|
|
75
75
|
* Check if a given object implements the MonthDetail interface.
|
|
76
76
|
*/
|
|
77
|
-
export declare function instanceOfMonthDetail(value: object):
|
|
77
|
+
export declare function instanceOfMonthDetail(value: object): value is MonthDetail;
|
|
78
78
|
export declare function MonthDetailFromJSON(json: any): MonthDetail;
|
|
79
79
|
export declare function MonthDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): MonthDetail;
|
|
80
80
|
export declare function MonthDetailToJSON(value?: MonthDetail | null): any;
|
|
@@ -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,21 +14,26 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.MonthDetailToJSON = exports.MonthDetailFromJSONTyped = exports.MonthDetailFromJSON = exports.instanceOfMonthDetail = void 0;
|
|
17
|
-
const runtime_1 = require("../runtime");
|
|
18
17
|
const Category_1 = require("./Category");
|
|
19
18
|
/**
|
|
20
19
|
* Check if a given object implements the MonthDetail interface.
|
|
21
20
|
*/
|
|
22
21
|
function instanceOfMonthDetail(value) {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
22
|
+
if (!('month' in value) || value['month'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('income' in value) || value['income'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('budgeted' in value) || value['budgeted'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('activity' in value) || value['activity'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('to_be_budgeted' in value) || value['to_be_budgeted'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('deleted' in value) || value['deleted'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('categories' in value) || value['categories'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
return true;
|
|
32
37
|
}
|
|
33
38
|
exports.instanceOfMonthDetail = instanceOfMonthDetail;
|
|
34
39
|
function MonthDetailFromJSON(json) {
|
|
@@ -36,39 +41,36 @@ function MonthDetailFromJSON(json) {
|
|
|
36
41
|
}
|
|
37
42
|
exports.MonthDetailFromJSON = MonthDetailFromJSON;
|
|
38
43
|
function MonthDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
-
if (
|
|
44
|
+
if (json == null) {
|
|
40
45
|
return json;
|
|
41
46
|
}
|
|
42
47
|
return {
|
|
43
48
|
'month': json['month'],
|
|
44
|
-
'note':
|
|
49
|
+
'note': json['note'] == null ? undefined : json['note'],
|
|
45
50
|
'income': json['income'],
|
|
46
51
|
'budgeted': json['budgeted'],
|
|
47
52
|
'activity': json['activity'],
|
|
48
53
|
'to_be_budgeted': json['to_be_budgeted'],
|
|
49
|
-
'age_of_money':
|
|
54
|
+
'age_of_money': json['age_of_money'] == null ? undefined : json['age_of_money'],
|
|
50
55
|
'deleted': json['deleted'],
|
|
51
56
|
'categories': (json['categories'].map(Category_1.CategoryFromJSON)),
|
|
52
57
|
};
|
|
53
58
|
}
|
|
54
59
|
exports.MonthDetailFromJSONTyped = MonthDetailFromJSONTyped;
|
|
55
60
|
function MonthDetailToJSON(value) {
|
|
56
|
-
if (value
|
|
57
|
-
return
|
|
58
|
-
}
|
|
59
|
-
if (value === null) {
|
|
60
|
-
return null;
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
61
63
|
}
|
|
62
64
|
return {
|
|
63
|
-
'month': value
|
|
64
|
-
'note': value
|
|
65
|
-
'income': value
|
|
66
|
-
'budgeted': value
|
|
67
|
-
'activity': value
|
|
68
|
-
'to_be_budgeted': value
|
|
69
|
-
'age_of_money': value
|
|
70
|
-
'deleted': value
|
|
71
|
-
'categories': (value
|
|
65
|
+
'month': value['month'],
|
|
66
|
+
'note': value['note'],
|
|
67
|
+
'income': value['income'],
|
|
68
|
+
'budgeted': value['budgeted'],
|
|
69
|
+
'activity': value['activity'],
|
|
70
|
+
'to_be_budgeted': value['to_be_budgeted'],
|
|
71
|
+
'age_of_money': value['age_of_money'],
|
|
72
|
+
'deleted': value['deleted'],
|
|
73
|
+
'categories': (value['categories'].map(Category_1.CategoryToJSON)),
|
|
72
74
|
};
|
|
73
75
|
}
|
|
74
76
|
exports.MonthDetailToJSON = MonthDetailToJSON;
|
|
@@ -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 MonthDetailResponse {
|
|
|
26
26
|
/**
|
|
27
27
|
* Check if a given object implements the MonthDetailResponse interface.
|
|
28
28
|
*/
|
|
29
|
-
export declare function instanceOfMonthDetailResponse(value: object):
|
|
29
|
+
export declare function instanceOfMonthDetailResponse(value: object): value is MonthDetailResponse;
|
|
30
30
|
export declare function MonthDetailResponseFromJSON(json: any): MonthDetailResponse;
|
|
31
31
|
export declare function MonthDetailResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MonthDetailResponse;
|
|
32
32
|
export declare function MonthDetailResponseToJSON(value?: MonthDetailResponse | null): any;
|
|
@@ -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).
|
|
@@ -19,9 +19,9 @@ const MonthDetailResponseData_1 = require("./MonthDetailResponseData");
|
|
|
19
19
|
* Check if a given object implements the MonthDetailResponse interface.
|
|
20
20
|
*/
|
|
21
21
|
function instanceOfMonthDetailResponse(value) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return
|
|
22
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
25
|
}
|
|
26
26
|
exports.instanceOfMonthDetailResponse = instanceOfMonthDetailResponse;
|
|
27
27
|
function MonthDetailResponseFromJSON(json) {
|
|
@@ -29,7 +29,7 @@ function MonthDetailResponseFromJSON(json) {
|
|
|
29
29
|
}
|
|
30
30
|
exports.MonthDetailResponseFromJSON = MonthDetailResponseFromJSON;
|
|
31
31
|
function MonthDetailResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (
|
|
32
|
+
if (json == null) {
|
|
33
33
|
return json;
|
|
34
34
|
}
|
|
35
35
|
return {
|
|
@@ -38,14 +38,11 @@ function MonthDetailResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
38
|
}
|
|
39
39
|
exports.MonthDetailResponseFromJSONTyped = MonthDetailResponseFromJSONTyped;
|
|
40
40
|
function MonthDetailResponseToJSON(value) {
|
|
41
|
-
if (value
|
|
42
|
-
return
|
|
43
|
-
}
|
|
44
|
-
if (value === null) {
|
|
45
|
-
return null;
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
46
43
|
}
|
|
47
44
|
return {
|
|
48
|
-
'data': (0, MonthDetailResponseData_1.MonthDetailResponseDataToJSON)(value
|
|
45
|
+
'data': (0, MonthDetailResponseData_1.MonthDetailResponseDataToJSON)(value['data']),
|
|
49
46
|
};
|
|
50
47
|
}
|
|
51
48
|
exports.MonthDetailResponseToJSON = MonthDetailResponseToJSON;
|
|
@@ -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 MonthDetailResponseData {
|
|
|
26
26
|
/**
|
|
27
27
|
* Check if a given object implements the MonthDetailResponseData interface.
|
|
28
28
|
*/
|
|
29
|
-
export declare function instanceOfMonthDetailResponseData(value: object):
|
|
29
|
+
export declare function instanceOfMonthDetailResponseData(value: object): value is MonthDetailResponseData;
|
|
30
30
|
export declare function MonthDetailResponseDataFromJSON(json: any): MonthDetailResponseData;
|
|
31
31
|
export declare function MonthDetailResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): MonthDetailResponseData;
|
|
32
32
|
export declare function MonthDetailResponseDataToJSON(value?: MonthDetailResponseData | null): any;
|
|
@@ -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).
|
|
@@ -19,9 +19,9 @@ const MonthDetail_1 = require("./MonthDetail");
|
|
|
19
19
|
* Check if a given object implements the MonthDetailResponseData interface.
|
|
20
20
|
*/
|
|
21
21
|
function instanceOfMonthDetailResponseData(value) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return
|
|
22
|
+
if (!('month' in value) || value['month'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
25
|
}
|
|
26
26
|
exports.instanceOfMonthDetailResponseData = instanceOfMonthDetailResponseData;
|
|
27
27
|
function MonthDetailResponseDataFromJSON(json) {
|
|
@@ -29,7 +29,7 @@ function MonthDetailResponseDataFromJSON(json) {
|
|
|
29
29
|
}
|
|
30
30
|
exports.MonthDetailResponseDataFromJSON = MonthDetailResponseDataFromJSON;
|
|
31
31
|
function MonthDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (
|
|
32
|
+
if (json == null) {
|
|
33
33
|
return json;
|
|
34
34
|
}
|
|
35
35
|
return {
|
|
@@ -38,14 +38,11 @@ function MonthDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
38
|
}
|
|
39
39
|
exports.MonthDetailResponseDataFromJSONTyped = MonthDetailResponseDataFromJSONTyped;
|
|
40
40
|
function MonthDetailResponseDataToJSON(value) {
|
|
41
|
-
if (value
|
|
42
|
-
return
|
|
43
|
-
}
|
|
44
|
-
if (value === null) {
|
|
45
|
-
return null;
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
46
43
|
}
|
|
47
44
|
return {
|
|
48
|
-
'month': (0, MonthDetail_1.MonthDetailToJSON)(value
|
|
45
|
+
'month': (0, MonthDetail_1.MonthDetailToJSON)(value['month']),
|
|
49
46
|
};
|
|
50
47
|
}
|
|
51
48
|
exports.MonthDetailResponseDataToJSON = MonthDetailResponseDataToJSON;
|