ynab 2.2.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/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 +1 -1
- package/dist/apis/CategoriesApi.js +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 +9 -9
- package/dist/apis/TransactionsApi.js +9 -9
- package/dist/apis/UserApi.d.ts +1 -1
- package/dist/apis/UserApi.js +1 -1
- package/dist/browser/ynab.js +1 -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 +2 -1
- 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 +21 -15
- package/dist/models/Category.js +61 -56
- 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 +21 -15
- package/dist/models/HybridTransaction.js +63 -57
- 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 +2 -2
- package/dist/models/PatchCategoryWrapper.js +8 -11
- 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 +4 -4
- package/dist/models/SaveCategory.js +11 -16
- 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/SaveTransactionWithIdOrImportId.d.ts +106 -0
- package/dist/models/SaveTransactionWithIdOrImportId.js +72 -0
- package/dist/models/SaveTransactionWithOptionalFields.d.ts +9 -15
- package/dist/models/SaveTransactionWithOptionalFields.js +29 -36
- 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 +16 -10
- package/dist/models/ScheduledTransactionDetail.js +49 -43
- 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 +13 -7
- package/dist/models/ScheduledTransactionSummary.js +38 -34
- 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 +2 -1
- package/dist/models/TransactionClearedStatus.js +13 -2
- package/dist/models/TransactionDetail.d.ts +22 -16
- package/dist/models/TransactionDetail.js +62 -56
- package/dist/models/TransactionFlagColor.d.ts +2 -1
- package/dist/models/TransactionFlagColor.js +13 -2
- 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 +19 -13
- package/dist/models/TransactionSummary.js +51 -47
- 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 +7 -9
- package/dist/models/index.js +7 -9
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* YNAB API Endpoints
|
|
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
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.70.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.SaveTransactionWithIdOrImportIdToJSON = exports.SaveTransactionWithIdOrImportIdFromJSONTyped = exports.SaveTransactionWithIdOrImportIdFromJSON = exports.instanceOfSaveTransactionWithIdOrImportId = void 0;
|
|
17
|
+
const TransactionFlagColor_1 = require("./TransactionFlagColor");
|
|
18
|
+
const TransactionClearedStatus_1 = require("./TransactionClearedStatus");
|
|
19
|
+
const SaveSubTransaction_1 = require("./SaveSubTransaction");
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the SaveTransactionWithIdOrImportId interface.
|
|
22
|
+
*/
|
|
23
|
+
function instanceOfSaveTransactionWithIdOrImportId(value) {
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
exports.instanceOfSaveTransactionWithIdOrImportId = instanceOfSaveTransactionWithIdOrImportId;
|
|
27
|
+
function SaveTransactionWithIdOrImportIdFromJSON(json) {
|
|
28
|
+
return SaveTransactionWithIdOrImportIdFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
exports.SaveTransactionWithIdOrImportIdFromJSON = SaveTransactionWithIdOrImportIdFromJSON;
|
|
31
|
+
function SaveTransactionWithIdOrImportIdFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'account_id': json['account_id'] == null ? undefined : json['account_id'],
|
|
37
|
+
'date': json['date'] == null ? undefined : json['date'],
|
|
38
|
+
'amount': json['amount'] == null ? undefined : json['amount'],
|
|
39
|
+
'payee_id': json['payee_id'] == null ? undefined : json['payee_id'],
|
|
40
|
+
'payee_name': json['payee_name'] == null ? undefined : json['payee_name'],
|
|
41
|
+
'category_id': json['category_id'] == null ? undefined : json['category_id'],
|
|
42
|
+
'memo': json['memo'] == null ? undefined : json['memo'],
|
|
43
|
+
'cleared': json['cleared'] == null ? undefined : (0, TransactionClearedStatus_1.TransactionClearedStatusFromJSON)(json['cleared']),
|
|
44
|
+
'approved': json['approved'] == null ? undefined : json['approved'],
|
|
45
|
+
'flag_color': json['flag_color'] == null ? undefined : (0, TransactionFlagColor_1.TransactionFlagColorFromJSON)(json['flag_color']),
|
|
46
|
+
'subtransactions': json['subtransactions'] == null ? undefined : (json['subtransactions'].map(SaveSubTransaction_1.SaveSubTransactionFromJSON)),
|
|
47
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
48
|
+
'import_id': json['import_id'] == null ? undefined : json['import_id'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
exports.SaveTransactionWithIdOrImportIdFromJSONTyped = SaveTransactionWithIdOrImportIdFromJSONTyped;
|
|
52
|
+
function SaveTransactionWithIdOrImportIdToJSON(value) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'account_id': value['account_id'],
|
|
58
|
+
'date': value['date'],
|
|
59
|
+
'amount': value['amount'],
|
|
60
|
+
'payee_id': value['payee_id'],
|
|
61
|
+
'payee_name': value['payee_name'],
|
|
62
|
+
'category_id': value['category_id'],
|
|
63
|
+
'memo': value['memo'],
|
|
64
|
+
'cleared': (0, TransactionClearedStatus_1.TransactionClearedStatusToJSON)(value['cleared']),
|
|
65
|
+
'approved': value['approved'],
|
|
66
|
+
'flag_color': (0, TransactionFlagColor_1.TransactionFlagColorToJSON)(value['flag_color']),
|
|
67
|
+
'subtransactions': value['subtransactions'] == null ? undefined : (value['subtransactions'].map(SaveSubTransaction_1.SaveSubTransactionToJSON)),
|
|
68
|
+
'id': value['id'],
|
|
69
|
+
'import_id': value['import_id'],
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
exports.SaveTransactionWithIdOrImportIdToJSON = SaveTransactionWithIdOrImportIdToJSON;
|
|
@@ -2,16 +2,16 @@
|
|
|
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).
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { SaveSubTransaction } from './SaveSubTransaction';
|
|
13
|
-
import type { TransactionClearedStatus } from './TransactionClearedStatus';
|
|
14
12
|
import type { TransactionFlagColor } from './TransactionFlagColor';
|
|
13
|
+
import type { TransactionClearedStatus } from './TransactionClearedStatus';
|
|
14
|
+
import type { SaveSubTransaction } from './SaveSubTransaction';
|
|
15
15
|
/**
|
|
16
16
|
*
|
|
17
17
|
* @export
|
|
@@ -41,25 +41,25 @@ export interface SaveTransactionWithOptionalFields {
|
|
|
41
41
|
* @type {string}
|
|
42
42
|
* @memberof SaveTransactionWithOptionalFields
|
|
43
43
|
*/
|
|
44
|
-
payee_id?: string
|
|
44
|
+
payee_id?: string;
|
|
45
45
|
/**
|
|
46
46
|
* The payee name. If a `payee_name` value is provided and `payee_id` has a null value, the `payee_name` value will be used to resolve the payee by either (1) a matching payee rename rule (only if `import_id` is also specified) or (2) a payee with the same name or (3) creation of a new payee.
|
|
47
47
|
* @type {string}
|
|
48
48
|
* @memberof SaveTransactionWithOptionalFields
|
|
49
49
|
*/
|
|
50
|
-
payee_name?: string
|
|
50
|
+
payee_name?: string;
|
|
51
51
|
/**
|
|
52
52
|
* The category for the transaction. To configure a split transaction, you can specify null for `category_id` and provide a `subtransactions` array as part of the transaction object. If an existing transaction is a split, the `category_id` cannot be changed. Credit Card Payment categories are not permitted and will be ignored if supplied.
|
|
53
53
|
* @type {string}
|
|
54
54
|
* @memberof SaveTransactionWithOptionalFields
|
|
55
55
|
*/
|
|
56
|
-
category_id?: string
|
|
56
|
+
category_id?: string;
|
|
57
57
|
/**
|
|
58
58
|
*
|
|
59
59
|
* @type {string}
|
|
60
60
|
* @memberof SaveTransactionWithOptionalFields
|
|
61
61
|
*/
|
|
62
|
-
memo?: string
|
|
62
|
+
memo?: string;
|
|
63
63
|
/**
|
|
64
64
|
*
|
|
65
65
|
* @type {TransactionClearedStatus}
|
|
@@ -77,13 +77,7 @@ export interface SaveTransactionWithOptionalFields {
|
|
|
77
77
|
* @type {TransactionFlagColor}
|
|
78
78
|
* @memberof SaveTransactionWithOptionalFields
|
|
79
79
|
*/
|
|
80
|
-
flag_color?: TransactionFlagColor
|
|
81
|
-
/**
|
|
82
|
-
* If specified, the new transaction will be assigned this `import_id` and considered "imported". We will also attempt to match this imported transaction to an existing "user-entered" transation on the same account, with the same amount, and with a date +/-10 days from the imported transaction date.<br><br>Transactions imported through File Based Import or Direct Import (not through the API) are assigned an import_id in the format: 'YNAB:[milliunit_amount]:[iso_date]:[occurrence]'. For example, a transaction dated 2015-12-30 in the amount of -$294.23 USD would have an import_id of 'YNAB:-294230:2015-12-30:1'. If a second transaction on the same account was imported and had the same date and same amount, its import_id would be 'YNAB:-294230:2015-12-30:2'. Using a consistent format will prevent duplicates through Direct Import and File Based Import.<br><br>If import_id is omitted or specified as null, the transaction will be treated as a "user-entered" transaction. As such, it will be eligible to be matched against transactions later being imported (via DI, FBI, or API).
|
|
83
|
-
* @type {string}
|
|
84
|
-
* @memberof SaveTransactionWithOptionalFields
|
|
85
|
-
*/
|
|
86
|
-
import_id?: string | null;
|
|
80
|
+
flag_color?: TransactionFlagColor;
|
|
87
81
|
/**
|
|
88
82
|
* An array of subtransactions to configure a transaction as a split. Updating `subtransactions` on an existing split transaction is not supported.
|
|
89
83
|
* @type {Array<SaveSubTransaction>}
|
|
@@ -94,7 +88,7 @@ export interface SaveTransactionWithOptionalFields {
|
|
|
94
88
|
/**
|
|
95
89
|
* Check if a given object implements the SaveTransactionWithOptionalFields interface.
|
|
96
90
|
*/
|
|
97
|
-
export declare function instanceOfSaveTransactionWithOptionalFields(value: object):
|
|
91
|
+
export declare function instanceOfSaveTransactionWithOptionalFields(value: object): value is SaveTransactionWithOptionalFields;
|
|
98
92
|
export declare function SaveTransactionWithOptionalFieldsFromJSON(json: any): SaveTransactionWithOptionalFields;
|
|
99
93
|
export declare function SaveTransactionWithOptionalFieldsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SaveTransactionWithOptionalFields;
|
|
100
94
|
export declare function SaveTransactionWithOptionalFieldsToJSON(value?: SaveTransactionWithOptionalFields | 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,16 +14,14 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.SaveTransactionWithOptionalFieldsToJSON = exports.SaveTransactionWithOptionalFieldsFromJSONTyped = exports.SaveTransactionWithOptionalFieldsFromJSON = exports.instanceOfSaveTransactionWithOptionalFields = void 0;
|
|
17
|
-
const runtime_1 = require("../runtime");
|
|
18
|
-
const SaveSubTransaction_1 = require("./SaveSubTransaction");
|
|
19
|
-
const TransactionClearedStatus_1 = require("./TransactionClearedStatus");
|
|
20
17
|
const TransactionFlagColor_1 = require("./TransactionFlagColor");
|
|
18
|
+
const TransactionClearedStatus_1 = require("./TransactionClearedStatus");
|
|
19
|
+
const SaveSubTransaction_1 = require("./SaveSubTransaction");
|
|
21
20
|
/**
|
|
22
21
|
* Check if a given object implements the SaveTransactionWithOptionalFields interface.
|
|
23
22
|
*/
|
|
24
23
|
function instanceOfSaveTransactionWithOptionalFields(value) {
|
|
25
|
-
|
|
26
|
-
return isInstance;
|
|
24
|
+
return true;
|
|
27
25
|
}
|
|
28
26
|
exports.instanceOfSaveTransactionWithOptionalFields = instanceOfSaveTransactionWithOptionalFields;
|
|
29
27
|
function SaveTransactionWithOptionalFieldsFromJSON(json) {
|
|
@@ -31,45 +29,40 @@ function SaveTransactionWithOptionalFieldsFromJSON(json) {
|
|
|
31
29
|
}
|
|
32
30
|
exports.SaveTransactionWithOptionalFieldsFromJSON = SaveTransactionWithOptionalFieldsFromJSON;
|
|
33
31
|
function SaveTransactionWithOptionalFieldsFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
-
if (
|
|
32
|
+
if (json == null) {
|
|
35
33
|
return json;
|
|
36
34
|
}
|
|
37
35
|
return {
|
|
38
|
-
'account_id':
|
|
39
|
-
'date':
|
|
40
|
-
'amount':
|
|
41
|
-
'payee_id':
|
|
42
|
-
'payee_name':
|
|
43
|
-
'category_id':
|
|
44
|
-
'memo':
|
|
45
|
-
'cleared':
|
|
46
|
-
'approved':
|
|
47
|
-
'flag_color':
|
|
48
|
-
'
|
|
49
|
-
'subtransactions': !(0, runtime_1.exists)(json, 'subtransactions') ? undefined : (json['subtransactions'].map(SaveSubTransaction_1.SaveSubTransactionFromJSON)),
|
|
36
|
+
'account_id': json['account_id'] == null ? undefined : json['account_id'],
|
|
37
|
+
'date': json['date'] == null ? undefined : json['date'],
|
|
38
|
+
'amount': json['amount'] == null ? undefined : json['amount'],
|
|
39
|
+
'payee_id': json['payee_id'] == null ? undefined : json['payee_id'],
|
|
40
|
+
'payee_name': json['payee_name'] == null ? undefined : json['payee_name'],
|
|
41
|
+
'category_id': json['category_id'] == null ? undefined : json['category_id'],
|
|
42
|
+
'memo': json['memo'] == null ? undefined : json['memo'],
|
|
43
|
+
'cleared': json['cleared'] == null ? undefined : (0, TransactionClearedStatus_1.TransactionClearedStatusFromJSON)(json['cleared']),
|
|
44
|
+
'approved': json['approved'] == null ? undefined : json['approved'],
|
|
45
|
+
'flag_color': json['flag_color'] == null ? undefined : (0, TransactionFlagColor_1.TransactionFlagColorFromJSON)(json['flag_color']),
|
|
46
|
+
'subtransactions': json['subtransactions'] == null ? undefined : (json['subtransactions'].map(SaveSubTransaction_1.SaveSubTransactionFromJSON)),
|
|
50
47
|
};
|
|
51
48
|
}
|
|
52
49
|
exports.SaveTransactionWithOptionalFieldsFromJSONTyped = SaveTransactionWithOptionalFieldsFromJSONTyped;
|
|
53
50
|
function SaveTransactionWithOptionalFieldsToJSON(value) {
|
|
54
|
-
if (value
|
|
55
|
-
return
|
|
56
|
-
}
|
|
57
|
-
if (value === null) {
|
|
58
|
-
return null;
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
59
53
|
}
|
|
60
54
|
return {
|
|
61
|
-
'account_id': value
|
|
62
|
-
'date': value
|
|
63
|
-
'amount': value
|
|
64
|
-
'payee_id': value
|
|
65
|
-
'payee_name': value
|
|
66
|
-
'category_id': value
|
|
67
|
-
'memo': value
|
|
68
|
-
'cleared': (0, TransactionClearedStatus_1.TransactionClearedStatusToJSON)(value
|
|
69
|
-
'approved': value
|
|
70
|
-
'flag_color': (0, TransactionFlagColor_1.TransactionFlagColorToJSON)(value
|
|
71
|
-
'
|
|
72
|
-
'subtransactions': value.subtransactions === undefined ? undefined : (value.subtransactions.map(SaveSubTransaction_1.SaveSubTransactionToJSON)),
|
|
55
|
+
'account_id': value['account_id'],
|
|
56
|
+
'date': value['date'],
|
|
57
|
+
'amount': value['amount'],
|
|
58
|
+
'payee_id': value['payee_id'],
|
|
59
|
+
'payee_name': value['payee_name'],
|
|
60
|
+
'category_id': value['category_id'],
|
|
61
|
+
'memo': value['memo'],
|
|
62
|
+
'cleared': (0, TransactionClearedStatus_1.TransactionClearedStatusToJSON)(value['cleared']),
|
|
63
|
+
'approved': value['approved'],
|
|
64
|
+
'flag_color': (0, TransactionFlagColor_1.TransactionFlagColorToJSON)(value['flag_color']),
|
|
65
|
+
'subtransactions': value['subtransactions'] == null ? undefined : (value['subtransactions'].map(SaveSubTransaction_1.SaveSubTransactionToJSON)),
|
|
73
66
|
};
|
|
74
67
|
}
|
|
75
68
|
exports.SaveTransactionWithOptionalFieldsToJSON = SaveTransactionWithOptionalFieldsToJSON;
|
|
@@ -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 SaveTransactionsResponse {
|
|
|
26
26
|
/**
|
|
27
27
|
* Check if a given object implements the SaveTransactionsResponse interface.
|
|
28
28
|
*/
|
|
29
|
-
export declare function instanceOfSaveTransactionsResponse(value: object):
|
|
29
|
+
export declare function instanceOfSaveTransactionsResponse(value: object): value is SaveTransactionsResponse;
|
|
30
30
|
export declare function SaveTransactionsResponseFromJSON(json: any): SaveTransactionsResponse;
|
|
31
31
|
export declare function SaveTransactionsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SaveTransactionsResponse;
|
|
32
32
|
export declare function SaveTransactionsResponseToJSON(value?: SaveTransactionsResponse | 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 SaveTransactionsResponseData_1 = require("./SaveTransactionsResponseData")
|
|
|
19
19
|
* Check if a given object implements the SaveTransactionsResponse interface.
|
|
20
20
|
*/
|
|
21
21
|
function instanceOfSaveTransactionsResponse(value) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return
|
|
22
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
25
|
}
|
|
26
26
|
exports.instanceOfSaveTransactionsResponse = instanceOfSaveTransactionsResponse;
|
|
27
27
|
function SaveTransactionsResponseFromJSON(json) {
|
|
@@ -29,7 +29,7 @@ function SaveTransactionsResponseFromJSON(json) {
|
|
|
29
29
|
}
|
|
30
30
|
exports.SaveTransactionsResponseFromJSON = SaveTransactionsResponseFromJSON;
|
|
31
31
|
function SaveTransactionsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (
|
|
32
|
+
if (json == null) {
|
|
33
33
|
return json;
|
|
34
34
|
}
|
|
35
35
|
return {
|
|
@@ -38,14 +38,11 @@ function SaveTransactionsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
38
|
}
|
|
39
39
|
exports.SaveTransactionsResponseFromJSONTyped = SaveTransactionsResponseFromJSONTyped;
|
|
40
40
|
function SaveTransactionsResponseToJSON(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, SaveTransactionsResponseData_1.SaveTransactionsResponseDataToJSON)(value
|
|
45
|
+
'data': (0, SaveTransactionsResponseData_1.SaveTransactionsResponseDataToJSON)(value['data']),
|
|
49
46
|
};
|
|
50
47
|
}
|
|
51
48
|
exports.SaveTransactionsResponseToJSON = SaveTransactionsResponseToJSON;
|
|
@@ -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).
|
|
@@ -50,7 +50,7 @@ export interface SaveTransactionsResponseData {
|
|
|
50
50
|
/**
|
|
51
51
|
* Check if a given object implements the SaveTransactionsResponseData interface.
|
|
52
52
|
*/
|
|
53
|
-
export declare function instanceOfSaveTransactionsResponseData(value: object):
|
|
53
|
+
export declare function instanceOfSaveTransactionsResponseData(value: object): value is SaveTransactionsResponseData;
|
|
54
54
|
export declare function SaveTransactionsResponseDataFromJSON(json: any): SaveTransactionsResponseData;
|
|
55
55
|
export declare function SaveTransactionsResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): SaveTransactionsResponseData;
|
|
56
56
|
export declare function SaveTransactionsResponseDataToJSON(value?: SaveTransactionsResponseData | 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,16 +14,16 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.SaveTransactionsResponseDataToJSON = exports.SaveTransactionsResponseDataFromJSONTyped = exports.SaveTransactionsResponseDataFromJSON = exports.instanceOfSaveTransactionsResponseData = void 0;
|
|
17
|
-
const runtime_1 = require("../runtime");
|
|
18
17
|
const TransactionDetail_1 = require("./TransactionDetail");
|
|
19
18
|
/**
|
|
20
19
|
* Check if a given object implements the SaveTransactionsResponseData interface.
|
|
21
20
|
*/
|
|
22
21
|
function instanceOfSaveTransactionsResponseData(value) {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
if (!('transaction_ids' in value) || value['transaction_ids'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('server_knowledge' in value) || value['server_knowledge'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
return true;
|
|
27
27
|
}
|
|
28
28
|
exports.instanceOfSaveTransactionsResponseData = instanceOfSaveTransactionsResponseData;
|
|
29
29
|
function SaveTransactionsResponseDataFromJSON(json) {
|
|
@@ -31,31 +31,28 @@ function SaveTransactionsResponseDataFromJSON(json) {
|
|
|
31
31
|
}
|
|
32
32
|
exports.SaveTransactionsResponseDataFromJSON = SaveTransactionsResponseDataFromJSON;
|
|
33
33
|
function SaveTransactionsResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
-
if (
|
|
34
|
+
if (json == null) {
|
|
35
35
|
return json;
|
|
36
36
|
}
|
|
37
37
|
return {
|
|
38
38
|
'transaction_ids': json['transaction_ids'],
|
|
39
|
-
'transaction':
|
|
40
|
-
'transactions':
|
|
41
|
-
'duplicate_import_ids':
|
|
39
|
+
'transaction': json['transaction'] == null ? undefined : (0, TransactionDetail_1.TransactionDetailFromJSON)(json['transaction']),
|
|
40
|
+
'transactions': json['transactions'] == null ? undefined : (json['transactions'].map(TransactionDetail_1.TransactionDetailFromJSON)),
|
|
41
|
+
'duplicate_import_ids': json['duplicate_import_ids'] == null ? undefined : json['duplicate_import_ids'],
|
|
42
42
|
'server_knowledge': json['server_knowledge'],
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
45
|
exports.SaveTransactionsResponseDataFromJSONTyped = SaveTransactionsResponseDataFromJSONTyped;
|
|
46
46
|
function SaveTransactionsResponseDataToJSON(value) {
|
|
47
|
-
if (value
|
|
48
|
-
return
|
|
49
|
-
}
|
|
50
|
-
if (value === null) {
|
|
51
|
-
return null;
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
52
49
|
}
|
|
53
50
|
return {
|
|
54
|
-
'transaction_ids': value
|
|
55
|
-
'transaction': (0, TransactionDetail_1.TransactionDetailToJSON)(value
|
|
56
|
-
'transactions': value
|
|
57
|
-
'duplicate_import_ids': value
|
|
58
|
-
'server_knowledge': value
|
|
51
|
+
'transaction_ids': value['transaction_ids'],
|
|
52
|
+
'transaction': (0, TransactionDetail_1.TransactionDetailToJSON)(value['transaction']),
|
|
53
|
+
'transactions': value['transactions'] == null ? undefined : (value['transactions'].map(TransactionDetail_1.TransactionDetailToJSON)),
|
|
54
|
+
'duplicate_import_ids': value['duplicate_import_ids'],
|
|
55
|
+
'server_knowledge': value['server_knowledge'],
|
|
59
56
|
};
|
|
60
57
|
}
|
|
61
58
|
exports.SaveTransactionsResponseDataToJSON = SaveTransactionsResponseDataToJSON;
|
|
@@ -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).
|
|
@@ -38,25 +38,25 @@ export interface ScheduledSubTransaction {
|
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof ScheduledSubTransaction
|
|
40
40
|
*/
|
|
41
|
-
memo?: string
|
|
41
|
+
memo?: string;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof ScheduledSubTransaction
|
|
46
46
|
*/
|
|
47
|
-
payee_id?: string
|
|
47
|
+
payee_id?: string;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
50
|
* @type {string}
|
|
51
51
|
* @memberof ScheduledSubTransaction
|
|
52
52
|
*/
|
|
53
|
-
category_id?: string
|
|
53
|
+
category_id?: string;
|
|
54
54
|
/**
|
|
55
55
|
* If a transfer, the account_id which the scheduled subtransaction transfers to
|
|
56
56
|
* @type {string}
|
|
57
57
|
* @memberof ScheduledSubTransaction
|
|
58
58
|
*/
|
|
59
|
-
transfer_account_id?: string
|
|
59
|
+
transfer_account_id?: string;
|
|
60
60
|
/**
|
|
61
61
|
* Whether or not the scheduled subtransaction has been deleted. Deleted scheduled subtransactions will only be included in delta requests.
|
|
62
62
|
* @type {boolean}
|
|
@@ -67,7 +67,7 @@ export interface ScheduledSubTransaction {
|
|
|
67
67
|
/**
|
|
68
68
|
* Check if a given object implements the ScheduledSubTransaction interface.
|
|
69
69
|
*/
|
|
70
|
-
export declare function instanceOfScheduledSubTransaction(value: object):
|
|
70
|
+
export declare function instanceOfScheduledSubTransaction(value: object): value is ScheduledSubTransaction;
|
|
71
71
|
export declare function ScheduledSubTransactionFromJSON(json: any): ScheduledSubTransaction;
|
|
72
72
|
export declare function ScheduledSubTransactionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduledSubTransaction;
|
|
73
73
|
export declare function ScheduledSubTransactionToJSON(value?: ScheduledSubTransaction | 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,17 +14,19 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.ScheduledSubTransactionToJSON = exports.ScheduledSubTransactionFromJSONTyped = exports.ScheduledSubTransactionFromJSON = exports.instanceOfScheduledSubTransaction = void 0;
|
|
17
|
-
const runtime_1 = require("../runtime");
|
|
18
17
|
/**
|
|
19
18
|
* Check if a given object implements the ScheduledSubTransaction interface.
|
|
20
19
|
*/
|
|
21
20
|
function instanceOfScheduledSubTransaction(value) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
21
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('scheduled_transaction_id' in value) || value['scheduled_transaction_id'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('amount' in value) || value['amount'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('deleted' in value) || value['deleted'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
28
30
|
}
|
|
29
31
|
exports.instanceOfScheduledSubTransaction = instanceOfScheduledSubTransaction;
|
|
30
32
|
function ScheduledSubTransactionFromJSON(json) {
|
|
@@ -32,37 +34,34 @@ function ScheduledSubTransactionFromJSON(json) {
|
|
|
32
34
|
}
|
|
33
35
|
exports.ScheduledSubTransactionFromJSON = ScheduledSubTransactionFromJSON;
|
|
34
36
|
function ScheduledSubTransactionFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
-
if (
|
|
37
|
+
if (json == null) {
|
|
36
38
|
return json;
|
|
37
39
|
}
|
|
38
40
|
return {
|
|
39
41
|
'id': json['id'],
|
|
40
42
|
'scheduled_transaction_id': json['scheduled_transaction_id'],
|
|
41
43
|
'amount': json['amount'],
|
|
42
|
-
'memo':
|
|
43
|
-
'payee_id':
|
|
44
|
-
'category_id':
|
|
45
|
-
'transfer_account_id':
|
|
44
|
+
'memo': json['memo'] == null ? undefined : json['memo'],
|
|
45
|
+
'payee_id': json['payee_id'] == null ? undefined : json['payee_id'],
|
|
46
|
+
'category_id': json['category_id'] == null ? undefined : json['category_id'],
|
|
47
|
+
'transfer_account_id': json['transfer_account_id'] == null ? undefined : json['transfer_account_id'],
|
|
46
48
|
'deleted': json['deleted'],
|
|
47
49
|
};
|
|
48
50
|
}
|
|
49
51
|
exports.ScheduledSubTransactionFromJSONTyped = ScheduledSubTransactionFromJSONTyped;
|
|
50
52
|
function ScheduledSubTransactionToJSON(value) {
|
|
51
|
-
if (value
|
|
52
|
-
return
|
|
53
|
-
}
|
|
54
|
-
if (value === null) {
|
|
55
|
-
return null;
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
56
55
|
}
|
|
57
56
|
return {
|
|
58
|
-
'id': value
|
|
59
|
-
'scheduled_transaction_id': value
|
|
60
|
-
'amount': value
|
|
61
|
-
'memo': value
|
|
62
|
-
'payee_id': value
|
|
63
|
-
'category_id': value
|
|
64
|
-
'transfer_account_id': value
|
|
65
|
-
'deleted': value
|
|
57
|
+
'id': value['id'],
|
|
58
|
+
'scheduled_transaction_id': value['scheduled_transaction_id'],
|
|
59
|
+
'amount': value['amount'],
|
|
60
|
+
'memo': value['memo'],
|
|
61
|
+
'payee_id': value['payee_id'],
|
|
62
|
+
'category_id': value['category_id'],
|
|
63
|
+
'transfer_account_id': value['transfer_account_id'],
|
|
64
|
+
'deleted': value['deleted'],
|
|
66
65
|
};
|
|
67
66
|
}
|
|
68
67
|
exports.ScheduledSubTransactionToJSON = ScheduledSubTransactionToJSON;
|
|
@@ -2,15 +2,15 @@
|
|
|
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).
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { ScheduledSubTransaction } from './ScheduledSubTransaction';
|
|
13
12
|
import type { TransactionFlagColor } from './TransactionFlagColor';
|
|
13
|
+
import type { ScheduledSubTransaction } from './ScheduledSubTransaction';
|
|
14
14
|
/**
|
|
15
15
|
*
|
|
16
16
|
* @export
|
|
@@ -52,13 +52,19 @@ export interface ScheduledTransactionDetail {
|
|
|
52
52
|
* @type {string}
|
|
53
53
|
* @memberof ScheduledTransactionDetail
|
|
54
54
|
*/
|
|
55
|
-
memo?: string
|
|
55
|
+
memo?: string;
|
|
56
56
|
/**
|
|
57
57
|
*
|
|
58
58
|
* @type {TransactionFlagColor}
|
|
59
59
|
* @memberof ScheduledTransactionDetail
|
|
60
60
|
*/
|
|
61
|
-
flag_color?: TransactionFlagColor
|
|
61
|
+
flag_color?: TransactionFlagColor;
|
|
62
|
+
/**
|
|
63
|
+
* The customized name of a transaction flag
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof ScheduledTransactionDetail
|
|
66
|
+
*/
|
|
67
|
+
flag_name?: string;
|
|
62
68
|
/**
|
|
63
69
|
*
|
|
64
70
|
* @type {string}
|
|
@@ -70,19 +76,19 @@ export interface ScheduledTransactionDetail {
|
|
|
70
76
|
* @type {string}
|
|
71
77
|
* @memberof ScheduledTransactionDetail
|
|
72
78
|
*/
|
|
73
|
-
payee_id?: string
|
|
79
|
+
payee_id?: string;
|
|
74
80
|
/**
|
|
75
81
|
*
|
|
76
82
|
* @type {string}
|
|
77
83
|
* @memberof ScheduledTransactionDetail
|
|
78
84
|
*/
|
|
79
|
-
category_id?: string
|
|
85
|
+
category_id?: string;
|
|
80
86
|
/**
|
|
81
87
|
* If a transfer, the account_id which the scheduled transaction transfers to
|
|
82
88
|
* @type {string}
|
|
83
89
|
* @memberof ScheduledTransactionDetail
|
|
84
90
|
*/
|
|
85
|
-
transfer_account_id?: string
|
|
91
|
+
transfer_account_id?: string;
|
|
86
92
|
/**
|
|
87
93
|
* Whether or not the scheduled transaction has been deleted. Deleted scheduled transactions will only be included in delta requests.
|
|
88
94
|
* @type {boolean}
|
|
@@ -100,13 +106,13 @@ export interface ScheduledTransactionDetail {
|
|
|
100
106
|
* @type {string}
|
|
101
107
|
* @memberof ScheduledTransactionDetail
|
|
102
108
|
*/
|
|
103
|
-
payee_name?: string
|
|
109
|
+
payee_name?: string;
|
|
104
110
|
/**
|
|
105
111
|
* The name of the category. If a split scheduled transaction, this will be 'Split'.
|
|
106
112
|
* @type {string}
|
|
107
113
|
* @memberof ScheduledTransactionDetail
|
|
108
114
|
*/
|
|
109
|
-
category_name?: string
|
|
115
|
+
category_name?: string;
|
|
110
116
|
/**
|
|
111
117
|
* If a split scheduled transaction, the subtransactions.
|
|
112
118
|
* @type {Array<ScheduledSubTransaction>}
|
|
@@ -136,7 +142,7 @@ export type ScheduledTransactionDetailFrequencyEnum = typeof ScheduledTransactio
|
|
|
136
142
|
/**
|
|
137
143
|
* Check if a given object implements the ScheduledTransactionDetail interface.
|
|
138
144
|
*/
|
|
139
|
-
export declare function instanceOfScheduledTransactionDetail(value: object):
|
|
145
|
+
export declare function instanceOfScheduledTransactionDetail(value: object): value is ScheduledTransactionDetail;
|
|
140
146
|
export declare function ScheduledTransactionDetailFromJSON(json: any): ScheduledTransactionDetail;
|
|
141
147
|
export declare function ScheduledTransactionDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduledTransactionDetail;
|
|
142
148
|
export declare function ScheduledTransactionDetailToJSON(value?: ScheduledTransactionDetail | null): any;
|