ynab 2.4.0 → 2.5.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/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 +10 -15
- package/dist/esm/runtime.js +2 -7
- package/package.json +1 -1
|
@@ -4,17 +4,11 @@
|
|
|
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 { SubTransactionFromJSON, SubTransactionToJSON, } from './SubTransaction';
|
|
16
|
-
import { TransactionClearedStatusFromJSON, TransactionClearedStatusToJSON, } from './TransactionClearedStatus';
|
|
17
9
|
import { TransactionFlagColorFromJSON, TransactionFlagColorToJSON, } from './TransactionFlagColor';
|
|
10
|
+
import { TransactionClearedStatusFromJSON, TransactionClearedStatusToJSON, } from './TransactionClearedStatus';
|
|
11
|
+
import { SubTransactionFromJSON, SubTransactionToJSON, } from './SubTransaction';
|
|
18
12
|
/**
|
|
19
13
|
* @export
|
|
20
14
|
*/
|
|
@@ -32,79 +26,86 @@ export var TransactionDetailDebtTransactionTypeEnum = {
|
|
|
32
26
|
* Check if a given object implements the TransactionDetail interface.
|
|
33
27
|
*/
|
|
34
28
|
export function instanceOfTransactionDetail(value) {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
29
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('date' in value) || value['date'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('amount' in value) || value['amount'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('cleared' in value) || value['cleared'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('approved' in value) || value['approved'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('account_id' in value) || value['account_id'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('deleted' in value) || value['deleted'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('account_name' in value) || value['account_name'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('subtransactions' in value) || value['subtransactions'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
return true;
|
|
46
48
|
}
|
|
47
49
|
export function TransactionDetailFromJSON(json) {
|
|
48
50
|
return TransactionDetailFromJSONTyped(json, false);
|
|
49
51
|
}
|
|
50
52
|
export function TransactionDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
51
|
-
if (
|
|
53
|
+
if (json == null) {
|
|
52
54
|
return json;
|
|
53
55
|
}
|
|
54
56
|
return {
|
|
55
57
|
'id': json['id'],
|
|
56
58
|
'date': json['date'],
|
|
57
59
|
'amount': json['amount'],
|
|
58
|
-
'memo':
|
|
60
|
+
'memo': json['memo'] == null ? undefined : json['memo'],
|
|
59
61
|
'cleared': TransactionClearedStatusFromJSON(json['cleared']),
|
|
60
62
|
'approved': json['approved'],
|
|
61
|
-
'flag_color':
|
|
63
|
+
'flag_color': json['flag_color'] == null ? undefined : TransactionFlagColorFromJSON(json['flag_color']),
|
|
64
|
+
'flag_name': json['flag_name'] == null ? undefined : json['flag_name'],
|
|
62
65
|
'account_id': json['account_id'],
|
|
63
|
-
'payee_id':
|
|
64
|
-
'category_id':
|
|
65
|
-
'transfer_account_id':
|
|
66
|
-
'transfer_transaction_id':
|
|
67
|
-
'matched_transaction_id':
|
|
68
|
-
'import_id':
|
|
69
|
-
'import_payee_name':
|
|
70
|
-
'import_payee_name_original':
|
|
71
|
-
'debt_transaction_type':
|
|
66
|
+
'payee_id': json['payee_id'] == null ? undefined : json['payee_id'],
|
|
67
|
+
'category_id': json['category_id'] == null ? undefined : json['category_id'],
|
|
68
|
+
'transfer_account_id': json['transfer_account_id'] == null ? undefined : json['transfer_account_id'],
|
|
69
|
+
'transfer_transaction_id': json['transfer_transaction_id'] == null ? undefined : json['transfer_transaction_id'],
|
|
70
|
+
'matched_transaction_id': json['matched_transaction_id'] == null ? undefined : json['matched_transaction_id'],
|
|
71
|
+
'import_id': json['import_id'] == null ? undefined : json['import_id'],
|
|
72
|
+
'import_payee_name': json['import_payee_name'] == null ? undefined : json['import_payee_name'],
|
|
73
|
+
'import_payee_name_original': json['import_payee_name_original'] == null ? undefined : json['import_payee_name_original'],
|
|
74
|
+
'debt_transaction_type': json['debt_transaction_type'] == null ? undefined : json['debt_transaction_type'],
|
|
72
75
|
'deleted': json['deleted'],
|
|
73
76
|
'account_name': json['account_name'],
|
|
74
|
-
'payee_name':
|
|
75
|
-
'category_name':
|
|
77
|
+
'payee_name': json['payee_name'] == null ? undefined : json['payee_name'],
|
|
78
|
+
'category_name': json['category_name'] == null ? undefined : json['category_name'],
|
|
76
79
|
'subtransactions': (json['subtransactions'].map(SubTransactionFromJSON)),
|
|
77
80
|
};
|
|
78
81
|
}
|
|
79
82
|
export function TransactionDetailToJSON(value) {
|
|
80
|
-
if (value
|
|
81
|
-
return
|
|
82
|
-
}
|
|
83
|
-
if (value === null) {
|
|
84
|
-
return null;
|
|
83
|
+
if (value == null) {
|
|
84
|
+
return value;
|
|
85
85
|
}
|
|
86
86
|
return {
|
|
87
|
-
'id': value
|
|
88
|
-
'date': value
|
|
89
|
-
'amount': value
|
|
90
|
-
'memo': value
|
|
91
|
-
'cleared': TransactionClearedStatusToJSON(value
|
|
92
|
-
'approved': value
|
|
93
|
-
'flag_color': TransactionFlagColorToJSON(value
|
|
94
|
-
'
|
|
95
|
-
'
|
|
96
|
-
'
|
|
97
|
-
'
|
|
98
|
-
'
|
|
99
|
-
'
|
|
100
|
-
'
|
|
101
|
-
'
|
|
102
|
-
'
|
|
103
|
-
'
|
|
104
|
-
'
|
|
105
|
-
'
|
|
106
|
-
'
|
|
107
|
-
'
|
|
108
|
-
'
|
|
87
|
+
'id': value['id'],
|
|
88
|
+
'date': value['date'],
|
|
89
|
+
'amount': value['amount'],
|
|
90
|
+
'memo': value['memo'],
|
|
91
|
+
'cleared': TransactionClearedStatusToJSON(value['cleared']),
|
|
92
|
+
'approved': value['approved'],
|
|
93
|
+
'flag_color': TransactionFlagColorToJSON(value['flag_color']),
|
|
94
|
+
'flag_name': value['flag_name'],
|
|
95
|
+
'account_id': value['account_id'],
|
|
96
|
+
'payee_id': value['payee_id'],
|
|
97
|
+
'category_id': value['category_id'],
|
|
98
|
+
'transfer_account_id': value['transfer_account_id'],
|
|
99
|
+
'transfer_transaction_id': value['transfer_transaction_id'],
|
|
100
|
+
'matched_transaction_id': value['matched_transaction_id'],
|
|
101
|
+
'import_id': value['import_id'],
|
|
102
|
+
'import_payee_name': value['import_payee_name'],
|
|
103
|
+
'import_payee_name_original': value['import_payee_name_original'],
|
|
104
|
+
'debt_transaction_type': value['debt_transaction_type'],
|
|
105
|
+
'deleted': value['deleted'],
|
|
106
|
+
'account_name': value['account_name'],
|
|
107
|
+
'payee_name': value['payee_name'],
|
|
108
|
+
'category_name': value['category_name'],
|
|
109
|
+
'subtransactions': (value['subtransactions'].map(SubTransactionToJSON)),
|
|
109
110
|
};
|
|
110
111
|
}
|
|
@@ -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
|
/**
|
|
13
8
|
* The transaction flag
|
|
@@ -21,7 +16,8 @@ export declare const TransactionFlagColor: {
|
|
|
21
16
|
readonly Blue: "blue";
|
|
22
17
|
readonly Purple: "purple";
|
|
23
18
|
};
|
|
24
|
-
export
|
|
19
|
+
export type TransactionFlagColor = typeof TransactionFlagColor[keyof typeof TransactionFlagColor];
|
|
20
|
+
export declare function instanceOfTransactionFlagColor(value: any): boolean;
|
|
25
21
|
export declare function TransactionFlagColorFromJSON(json: any): TransactionFlagColor;
|
|
26
22
|
export declare function TransactionFlagColorFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionFlagColor;
|
|
27
23
|
export declare function TransactionFlagColorToJSON(value?: TransactionFlagColor | null): any;
|
|
@@ -4,12 +4,7 @@
|
|
|
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
|
/**
|
|
15
10
|
* The transaction flag
|
|
@@ -23,6 +18,16 @@ export var TransactionFlagColor = {
|
|
|
23
18
|
Blue: 'blue',
|
|
24
19
|
Purple: 'purple',
|
|
25
20
|
};
|
|
21
|
+
export function instanceOfTransactionFlagColor(value) {
|
|
22
|
+
for (var key in TransactionFlagColor) {
|
|
23
|
+
if (Object.prototype.hasOwnProperty.call(TransactionFlagColor, key)) {
|
|
24
|
+
if (TransactionFlagColor[key] === value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
return false;
|
|
30
|
+
}
|
|
26
31
|
export function TransactionFlagColorFromJSON(json) {
|
|
27
32
|
return TransactionFlagColorFromJSONTyped(json, false);
|
|
28
33
|
}
|
|
@@ -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 { TransactionResponseData } from './TransactionResponseData';
|
|
13
8
|
/**
|
|
@@ -26,7 +21,7 @@ export interface TransactionResponse {
|
|
|
26
21
|
/**
|
|
27
22
|
* Check if a given object implements the TransactionResponse interface.
|
|
28
23
|
*/
|
|
29
|
-
export declare function instanceOfTransactionResponse(value: object):
|
|
24
|
+
export declare function instanceOfTransactionResponse(value: object): value is TransactionResponse;
|
|
30
25
|
export declare function TransactionResponseFromJSON(json: any): TransactionResponse;
|
|
31
26
|
export declare function TransactionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionResponse;
|
|
32
27
|
export declare function TransactionResponseToJSON(value?: TransactionResponse | 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 { TransactionResponseDataFromJSON, TransactionResponseDataToJSON, } from './TransactionResponseData';
|
|
15
10
|
/**
|
|
16
11
|
* Check if a given object implements the TransactionResponse interface.
|
|
17
12
|
*/
|
|
18
13
|
export function instanceOfTransactionResponse(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 TransactionResponseFromJSON(json) {
|
|
24
19
|
return TransactionResponseFromJSONTyped(json, false);
|
|
25
20
|
}
|
|
26
21
|
export function TransactionResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
-
if (
|
|
22
|
+
if (json == null) {
|
|
28
23
|
return json;
|
|
29
24
|
}
|
|
30
25
|
return {
|
|
@@ -32,13 +27,10 @@ export function TransactionResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
27
|
};
|
|
33
28
|
}
|
|
34
29
|
export function TransactionResponseToJSON(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': TransactionResponseDataToJSON(value
|
|
34
|
+
'data': TransactionResponseDataToJSON(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 { TransactionDetail } from './TransactionDetail';
|
|
13
8
|
/**
|
|
@@ -26,7 +21,7 @@ export interface TransactionResponseData {
|
|
|
26
21
|
/**
|
|
27
22
|
* Check if a given object implements the TransactionResponseData interface.
|
|
28
23
|
*/
|
|
29
|
-
export declare function instanceOfTransactionResponseData(value: object):
|
|
24
|
+
export declare function instanceOfTransactionResponseData(value: object): value is TransactionResponseData;
|
|
30
25
|
export declare function TransactionResponseDataFromJSON(json: any): TransactionResponseData;
|
|
31
26
|
export declare function TransactionResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionResponseData;
|
|
32
27
|
export declare function TransactionResponseDataToJSON(value?: TransactionResponseData | 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 { TransactionDetailFromJSON, TransactionDetailToJSON, } from './TransactionDetail';
|
|
15
10
|
/**
|
|
16
11
|
* Check if a given object implements the TransactionResponseData interface.
|
|
17
12
|
*/
|
|
18
13
|
export function instanceOfTransactionResponseData(value) {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
return
|
|
14
|
+
if (!('transaction' in value) || value['transaction'] === undefined)
|
|
15
|
+
return false;
|
|
16
|
+
return true;
|
|
22
17
|
}
|
|
23
18
|
export function TransactionResponseDataFromJSON(json) {
|
|
24
19
|
return TransactionResponseDataFromJSONTyped(json, false);
|
|
25
20
|
}
|
|
26
21
|
export function TransactionResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
-
if (
|
|
22
|
+
if (json == null) {
|
|
28
23
|
return json;
|
|
29
24
|
}
|
|
30
25
|
return {
|
|
@@ -32,13 +27,10 @@ export function TransactionResponseDataFromJSONTyped(json, ignoreDiscriminator)
|
|
|
32
27
|
};
|
|
33
28
|
}
|
|
34
29
|
export function TransactionResponseDataToJSON(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
|
-
'transaction': TransactionDetailToJSON(value
|
|
34
|
+
'transaction': TransactionDetailToJSON(value['transaction']),
|
|
43
35
|
};
|
|
44
36
|
}
|
|
@@ -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 TransactionSummary {
|
|
|
59
54
|
* @memberof TransactionSummary
|
|
60
55
|
*/
|
|
61
56
|
flag_color?: TransactionFlagColor | null;
|
|
57
|
+
/**
|
|
58
|
+
* The customized name of a transaction flag
|
|
59
|
+
* @type {string}
|
|
60
|
+
* @memberof TransactionSummary
|
|
61
|
+
*/
|
|
62
|
+
flag_name?: string | null;
|
|
62
63
|
/**
|
|
63
64
|
*
|
|
64
65
|
* @type {string}
|
|
@@ -118,7 +119,7 @@ export interface TransactionSummary {
|
|
|
118
119
|
* @type {string}
|
|
119
120
|
* @memberof TransactionSummary
|
|
120
121
|
*/
|
|
121
|
-
debt_transaction_type?: TransactionSummaryDebtTransactionTypeEnum;
|
|
122
|
+
debt_transaction_type?: TransactionSummaryDebtTransactionTypeEnum | 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}
|
|
@@ -139,11 +140,11 @@ export declare const TransactionSummaryDebtTransactionTypeEnum: {
|
|
|
139
140
|
readonly Credit: "credit";
|
|
140
141
|
readonly Charge: "charge";
|
|
141
142
|
};
|
|
142
|
-
export
|
|
143
|
+
export type TransactionSummaryDebtTransactionTypeEnum = typeof TransactionSummaryDebtTransactionTypeEnum[keyof typeof TransactionSummaryDebtTransactionTypeEnum];
|
|
143
144
|
/**
|
|
144
145
|
* Check if a given object implements the TransactionSummary interface.
|
|
145
146
|
*/
|
|
146
|
-
export declare function instanceOfTransactionSummary(value: object):
|
|
147
|
+
export declare function instanceOfTransactionSummary(value: object): value is TransactionSummary;
|
|
147
148
|
export declare function TransactionSummaryFromJSON(json: any): TransactionSummary;
|
|
148
149
|
export declare function TransactionSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionSummary;
|
|
149
150
|
export declare function TransactionSummaryToJSON(value?: TransactionSummary | 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
|
*/
|
|
@@ -31,69 +25,74 @@ export var TransactionSummaryDebtTransactionTypeEnum = {
|
|
|
31
25
|
* Check if a given object implements the TransactionSummary interface.
|
|
32
26
|
*/
|
|
33
27
|
export function instanceOfTransactionSummary(value) {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
28
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('date' in value) || value['date'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('amount' in value) || value['amount'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('cleared' in value) || value['cleared'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('approved' in value) || value['approved'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('account_id' in value) || value['account_id'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('deleted' in value) || value['deleted'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
return true;
|
|
43
43
|
}
|
|
44
44
|
export function TransactionSummaryFromJSON(json) {
|
|
45
45
|
return TransactionSummaryFromJSONTyped(json, false);
|
|
46
46
|
}
|
|
47
47
|
export function TransactionSummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
48
|
-
if (
|
|
48
|
+
if (json == null) {
|
|
49
49
|
return json;
|
|
50
50
|
}
|
|
51
51
|
return {
|
|
52
52
|
'id': json['id'],
|
|
53
53
|
'date': json['date'],
|
|
54
54
|
'amount': json['amount'],
|
|
55
|
-
'memo':
|
|
55
|
+
'memo': json['memo'] == null ? undefined : json['memo'],
|
|
56
56
|
'cleared': TransactionClearedStatusFromJSON(json['cleared']),
|
|
57
57
|
'approved': json['approved'],
|
|
58
|
-
'flag_color':
|
|
58
|
+
'flag_color': json['flag_color'] == null ? undefined : TransactionFlagColorFromJSON(json['flag_color']),
|
|
59
|
+
'flag_name': json['flag_name'] == null ? undefined : json['flag_name'],
|
|
59
60
|
'account_id': json['account_id'],
|
|
60
|
-
'payee_id':
|
|
61
|
-
'category_id':
|
|
62
|
-
'transfer_account_id':
|
|
63
|
-
'transfer_transaction_id':
|
|
64
|
-
'matched_transaction_id':
|
|
65
|
-
'import_id':
|
|
66
|
-
'import_payee_name':
|
|
67
|
-
'import_payee_name_original':
|
|
68
|
-
'debt_transaction_type':
|
|
61
|
+
'payee_id': json['payee_id'] == null ? undefined : json['payee_id'],
|
|
62
|
+
'category_id': json['category_id'] == null ? undefined : json['category_id'],
|
|
63
|
+
'transfer_account_id': json['transfer_account_id'] == null ? undefined : json['transfer_account_id'],
|
|
64
|
+
'transfer_transaction_id': json['transfer_transaction_id'] == null ? undefined : json['transfer_transaction_id'],
|
|
65
|
+
'matched_transaction_id': json['matched_transaction_id'] == null ? undefined : json['matched_transaction_id'],
|
|
66
|
+
'import_id': json['import_id'] == null ? undefined : json['import_id'],
|
|
67
|
+
'import_payee_name': json['import_payee_name'] == null ? undefined : json['import_payee_name'],
|
|
68
|
+
'import_payee_name_original': json['import_payee_name_original'] == null ? undefined : json['import_payee_name_original'],
|
|
69
|
+
'debt_transaction_type': json['debt_transaction_type'] == null ? undefined : json['debt_transaction_type'],
|
|
69
70
|
'deleted': json['deleted'],
|
|
70
71
|
};
|
|
71
72
|
}
|
|
72
73
|
export function TransactionSummaryToJSON(value) {
|
|
73
|
-
if (value
|
|
74
|
-
return
|
|
75
|
-
}
|
|
76
|
-
if (value === null) {
|
|
77
|
-
return null;
|
|
74
|
+
if (value == null) {
|
|
75
|
+
return value;
|
|
78
76
|
}
|
|
79
77
|
return {
|
|
80
|
-
'id': value
|
|
81
|
-
'date': value
|
|
82
|
-
'amount': value
|
|
83
|
-
'memo': value
|
|
84
|
-
'cleared': TransactionClearedStatusToJSON(value
|
|
85
|
-
'approved': value
|
|
86
|
-
'flag_color': TransactionFlagColorToJSON(value
|
|
87
|
-
'
|
|
88
|
-
'
|
|
89
|
-
'
|
|
90
|
-
'
|
|
91
|
-
'
|
|
92
|
-
'
|
|
93
|
-
'
|
|
94
|
-
'
|
|
95
|
-
'
|
|
96
|
-
'
|
|
97
|
-
'
|
|
78
|
+
'id': value['id'],
|
|
79
|
+
'date': value['date'],
|
|
80
|
+
'amount': value['amount'],
|
|
81
|
+
'memo': value['memo'],
|
|
82
|
+
'cleared': TransactionClearedStatusToJSON(value['cleared']),
|
|
83
|
+
'approved': value['approved'],
|
|
84
|
+
'flag_color': TransactionFlagColorToJSON(value['flag_color']),
|
|
85
|
+
'flag_name': value['flag_name'],
|
|
86
|
+
'account_id': value['account_id'],
|
|
87
|
+
'payee_id': value['payee_id'],
|
|
88
|
+
'category_id': value['category_id'],
|
|
89
|
+
'transfer_account_id': value['transfer_account_id'],
|
|
90
|
+
'transfer_transaction_id': value['transfer_transaction_id'],
|
|
91
|
+
'matched_transaction_id': value['matched_transaction_id'],
|
|
92
|
+
'import_id': value['import_id'],
|
|
93
|
+
'import_payee_name': value['import_payee_name'],
|
|
94
|
+
'import_payee_name_original': value['import_payee_name_original'],
|
|
95
|
+
'debt_transaction_type': value['debt_transaction_type'],
|
|
96
|
+
'deleted': value['deleted'],
|
|
98
97
|
};
|
|
99
98
|
}
|
|
@@ -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 { TransactionsImportResponseData } from './TransactionsImportResponseData';
|
|
13
8
|
/**
|
|
@@ -26,7 +21,7 @@ export interface TransactionsImportResponse {
|
|
|
26
21
|
/**
|
|
27
22
|
* Check if a given object implements the TransactionsImportResponse interface.
|
|
28
23
|
*/
|
|
29
|
-
export declare function instanceOfTransactionsImportResponse(value: object):
|
|
24
|
+
export declare function instanceOfTransactionsImportResponse(value: object): value is TransactionsImportResponse;
|
|
30
25
|
export declare function TransactionsImportResponseFromJSON(json: any): TransactionsImportResponse;
|
|
31
26
|
export declare function TransactionsImportResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionsImportResponse;
|
|
32
27
|
export declare function TransactionsImportResponseToJSON(value?: TransactionsImportResponse | 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 { TransactionsImportResponseDataFromJSON, TransactionsImportResponseDataToJSON, } from './TransactionsImportResponseData';
|
|
15
10
|
/**
|
|
16
11
|
* Check if a given object implements the TransactionsImportResponse interface.
|
|
17
12
|
*/
|
|
18
13
|
export function instanceOfTransactionsImportResponse(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 TransactionsImportResponseFromJSON(json) {
|
|
24
19
|
return TransactionsImportResponseFromJSONTyped(json, false);
|
|
25
20
|
}
|
|
26
21
|
export function TransactionsImportResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
-
if (
|
|
22
|
+
if (json == null) {
|
|
28
23
|
return json;
|
|
29
24
|
}
|
|
30
25
|
return {
|
|
@@ -32,13 +27,10 @@ export function TransactionsImportResponseFromJSONTyped(json, ignoreDiscriminato
|
|
|
32
27
|
};
|
|
33
28
|
}
|
|
34
29
|
export function TransactionsImportResponseToJSON(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': TransactionsImportResponseDataToJSON(value
|
|
34
|
+
'data': TransactionsImportResponseDataToJSON(value['data']),
|
|
43
35
|
};
|
|
44
36
|
}
|