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
|
@@ -0,0 +1,49 @@
|
|
|
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.SaveCategoryToJSON = exports.SaveCategoryFromJSONTyped = exports.SaveCategoryFromJSON = exports.instanceOfSaveCategory = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the SaveCategory interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfSaveCategory(value) {
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
exports.instanceOfSaveCategory = instanceOfSaveCategory;
|
|
24
|
+
function SaveCategoryFromJSON(json) {
|
|
25
|
+
return SaveCategoryFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
exports.SaveCategoryFromJSON = SaveCategoryFromJSON;
|
|
28
|
+
function SaveCategoryFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if (json == null) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
34
|
+
'note': json['note'] == null ? undefined : json['note'],
|
|
35
|
+
'category_group_id': json['category_group_id'] == null ? undefined : json['category_group_id'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
exports.SaveCategoryFromJSONTyped = SaveCategoryFromJSONTyped;
|
|
39
|
+
function SaveCategoryToJSON(value) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'name': value['name'],
|
|
45
|
+
'note': value['note'],
|
|
46
|
+
'category_group_id': value['category_group_id'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
exports.SaveCategoryToJSON = SaveCategoryToJSON;
|
|
@@ -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 SaveCategoryResponse {
|
|
|
26
26
|
/**
|
|
27
27
|
* Check if a given object implements the SaveCategoryResponse interface.
|
|
28
28
|
*/
|
|
29
|
-
export declare function instanceOfSaveCategoryResponse(value: object):
|
|
29
|
+
export declare function instanceOfSaveCategoryResponse(value: object): value is SaveCategoryResponse;
|
|
30
30
|
export declare function SaveCategoryResponseFromJSON(json: any): SaveCategoryResponse;
|
|
31
31
|
export declare function SaveCategoryResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SaveCategoryResponse;
|
|
32
32
|
export declare function SaveCategoryResponseToJSON(value?: SaveCategoryResponse | 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 SaveCategoryResponseData_1 = require("./SaveCategoryResponseData");
|
|
|
19
19
|
* Check if a given object implements the SaveCategoryResponse interface.
|
|
20
20
|
*/
|
|
21
21
|
function instanceOfSaveCategoryResponse(value) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return
|
|
22
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
25
|
}
|
|
26
26
|
exports.instanceOfSaveCategoryResponse = instanceOfSaveCategoryResponse;
|
|
27
27
|
function SaveCategoryResponseFromJSON(json) {
|
|
@@ -29,7 +29,7 @@ function SaveCategoryResponseFromJSON(json) {
|
|
|
29
29
|
}
|
|
30
30
|
exports.SaveCategoryResponseFromJSON = SaveCategoryResponseFromJSON;
|
|
31
31
|
function SaveCategoryResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (
|
|
32
|
+
if (json == null) {
|
|
33
33
|
return json;
|
|
34
34
|
}
|
|
35
35
|
return {
|
|
@@ -38,14 +38,11 @@ function SaveCategoryResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
38
|
}
|
|
39
39
|
exports.SaveCategoryResponseFromJSONTyped = SaveCategoryResponseFromJSONTyped;
|
|
40
40
|
function SaveCategoryResponseToJSON(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, SaveCategoryResponseData_1.SaveCategoryResponseDataToJSON)(value
|
|
45
|
+
'data': (0, SaveCategoryResponseData_1.SaveCategoryResponseDataToJSON)(value['data']),
|
|
49
46
|
};
|
|
50
47
|
}
|
|
51
48
|
exports.SaveCategoryResponseToJSON = SaveCategoryResponseToJSON;
|
|
@@ -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 SaveCategoryResponseData {
|
|
|
32
32
|
/**
|
|
33
33
|
* Check if a given object implements the SaveCategoryResponseData interface.
|
|
34
34
|
*/
|
|
35
|
-
export declare function instanceOfSaveCategoryResponseData(value: object):
|
|
35
|
+
export declare function instanceOfSaveCategoryResponseData(value: object): value is SaveCategoryResponseData;
|
|
36
36
|
export declare function SaveCategoryResponseDataFromJSON(json: any): SaveCategoryResponseData;
|
|
37
37
|
export declare function SaveCategoryResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): SaveCategoryResponseData;
|
|
38
38
|
export declare function SaveCategoryResponseDataToJSON(value?: SaveCategoryResponseData | 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,10 +19,11 @@ const Category_1 = require("./Category");
|
|
|
19
19
|
* Check if a given object implements the SaveCategoryResponseData interface.
|
|
20
20
|
*/
|
|
21
21
|
function instanceOfSaveCategoryResponseData(value) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
if (!('category' in value) || value['category'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('server_knowledge' in value) || value['server_knowledge'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
return true;
|
|
26
27
|
}
|
|
27
28
|
exports.instanceOfSaveCategoryResponseData = instanceOfSaveCategoryResponseData;
|
|
28
29
|
function SaveCategoryResponseDataFromJSON(json) {
|
|
@@ -30,7 +31,7 @@ function SaveCategoryResponseDataFromJSON(json) {
|
|
|
30
31
|
}
|
|
31
32
|
exports.SaveCategoryResponseDataFromJSON = SaveCategoryResponseDataFromJSON;
|
|
32
33
|
function SaveCategoryResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
-
if (
|
|
34
|
+
if (json == null) {
|
|
34
35
|
return json;
|
|
35
36
|
}
|
|
36
37
|
return {
|
|
@@ -40,15 +41,12 @@ function SaveCategoryResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
41
|
}
|
|
41
42
|
exports.SaveCategoryResponseDataFromJSONTyped = SaveCategoryResponseDataFromJSONTyped;
|
|
42
43
|
function SaveCategoryResponseDataToJSON(value) {
|
|
43
|
-
if (value
|
|
44
|
-
return
|
|
45
|
-
}
|
|
46
|
-
if (value === null) {
|
|
47
|
-
return null;
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
48
46
|
}
|
|
49
47
|
return {
|
|
50
|
-
'category': (0, Category_1.CategoryToJSON)(value
|
|
51
|
-
'server_knowledge': value
|
|
48
|
+
'category': (0, Category_1.CategoryToJSON)(value['category']),
|
|
49
|
+
'server_knowledge': value['server_knowledge'],
|
|
52
50
|
};
|
|
53
51
|
}
|
|
54
52
|
exports.SaveCategoryResponseDataToJSON = SaveCategoryResponseDataToJSON;
|
|
@@ -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).
|
|
@@ -25,7 +25,7 @@ export interface SaveMonthCategory {
|
|
|
25
25
|
/**
|
|
26
26
|
* Check if a given object implements the SaveMonthCategory interface.
|
|
27
27
|
*/
|
|
28
|
-
export declare function instanceOfSaveMonthCategory(value: object):
|
|
28
|
+
export declare function instanceOfSaveMonthCategory(value: object): value is SaveMonthCategory;
|
|
29
29
|
export declare function SaveMonthCategoryFromJSON(json: any): SaveMonthCategory;
|
|
30
30
|
export declare function SaveMonthCategoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): SaveMonthCategory;
|
|
31
31
|
export declare function SaveMonthCategoryToJSON(value?: SaveMonthCategory | 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).
|
|
@@ -18,9 +18,9 @@ exports.SaveMonthCategoryToJSON = exports.SaveMonthCategoryFromJSONTyped = expor
|
|
|
18
18
|
* Check if a given object implements the SaveMonthCategory interface.
|
|
19
19
|
*/
|
|
20
20
|
function instanceOfSaveMonthCategory(value) {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
return
|
|
21
|
+
if (!('budgeted' in value) || value['budgeted'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
24
|
}
|
|
25
25
|
exports.instanceOfSaveMonthCategory = instanceOfSaveMonthCategory;
|
|
26
26
|
function SaveMonthCategoryFromJSON(json) {
|
|
@@ -28,7 +28,7 @@ function SaveMonthCategoryFromJSON(json) {
|
|
|
28
28
|
}
|
|
29
29
|
exports.SaveMonthCategoryFromJSON = SaveMonthCategoryFromJSON;
|
|
30
30
|
function SaveMonthCategoryFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
-
if (
|
|
31
|
+
if (json == null) {
|
|
32
32
|
return json;
|
|
33
33
|
}
|
|
34
34
|
return {
|
|
@@ -37,14 +37,11 @@ function SaveMonthCategoryFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
37
|
}
|
|
38
38
|
exports.SaveMonthCategoryFromJSONTyped = SaveMonthCategoryFromJSONTyped;
|
|
39
39
|
function SaveMonthCategoryToJSON(value) {
|
|
40
|
-
if (value
|
|
41
|
-
return
|
|
42
|
-
}
|
|
43
|
-
if (value === null) {
|
|
44
|
-
return null;
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
45
42
|
}
|
|
46
43
|
return {
|
|
47
|
-
'budgeted': value
|
|
44
|
+
'budgeted': value['budgeted'],
|
|
48
45
|
};
|
|
49
46
|
}
|
|
50
47
|
exports.SaveMonthCategoryToJSON = SaveMonthCategoryToJSON;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* YNAB API Endpoints
|
|
3
|
+
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.70.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SavePayee
|
|
16
|
+
*/
|
|
17
|
+
export interface SavePayee {
|
|
18
|
+
/**
|
|
19
|
+
* The name of the payee. The name must be a maximum of 500 characters.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SavePayee
|
|
22
|
+
*/
|
|
23
|
+
name?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the SavePayee interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfSavePayee(value: object): value is SavePayee;
|
|
29
|
+
export declare function SavePayeeFromJSON(json: any): SavePayee;
|
|
30
|
+
export declare function SavePayeeFromJSONTyped(json: any, ignoreDiscriminator: boolean): SavePayee;
|
|
31
|
+
export declare function SavePayeeToJSON(value?: SavePayee | null): any;
|
|
@@ -0,0 +1,45 @@
|
|
|
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.SavePayeeToJSON = exports.SavePayeeFromJSONTyped = exports.SavePayeeFromJSON = exports.instanceOfSavePayee = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the SavePayee interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfSavePayee(value) {
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
exports.instanceOfSavePayee = instanceOfSavePayee;
|
|
24
|
+
function SavePayeeFromJSON(json) {
|
|
25
|
+
return SavePayeeFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
exports.SavePayeeFromJSON = SavePayeeFromJSON;
|
|
28
|
+
function SavePayeeFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if (json == null) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
exports.SavePayeeFromJSONTyped = SavePayeeFromJSONTyped;
|
|
37
|
+
function SavePayeeToJSON(value) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'name': value['name'],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
exports.SavePayeeToJSON = SavePayeeToJSON;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* YNAB API Endpoints
|
|
3
|
+
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.70.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { SavePayeeResponseData } from './SavePayeeResponseData';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface SavePayeeResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface SavePayeeResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {SavePayeeResponseData}
|
|
22
|
+
* @memberof SavePayeeResponse
|
|
23
|
+
*/
|
|
24
|
+
data: SavePayeeResponseData;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the SavePayeeResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfSavePayeeResponse(value: object): value is SavePayeeResponse;
|
|
30
|
+
export declare function SavePayeeResponseFromJSON(json: any): SavePayeeResponse;
|
|
31
|
+
export declare function SavePayeeResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SavePayeeResponse;
|
|
32
|
+
export declare function SavePayeeResponseToJSON(value?: SavePayeeResponse | null): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
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.SavePayeeResponseToJSON = exports.SavePayeeResponseFromJSONTyped = exports.SavePayeeResponseFromJSON = exports.instanceOfSavePayeeResponse = void 0;
|
|
17
|
+
const SavePayeeResponseData_1 = require("./SavePayeeResponseData");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the SavePayeeResponse interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfSavePayeeResponse(value) {
|
|
22
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
exports.instanceOfSavePayeeResponse = instanceOfSavePayeeResponse;
|
|
27
|
+
function SavePayeeResponseFromJSON(json) {
|
|
28
|
+
return SavePayeeResponseFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
exports.SavePayeeResponseFromJSON = SavePayeeResponseFromJSON;
|
|
31
|
+
function SavePayeeResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': (0, SavePayeeResponseData_1.SavePayeeResponseDataFromJSON)(json['data']),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
exports.SavePayeeResponseFromJSONTyped = SavePayeeResponseFromJSONTyped;
|
|
40
|
+
function SavePayeeResponseToJSON(value) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'data': (0, SavePayeeResponseData_1.SavePayeeResponseDataToJSON)(value['data']),
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
exports.SavePayeeResponseToJSON = SavePayeeResponseToJSON;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* YNAB API Endpoints
|
|
3
|
+
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.70.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Payee } from './Payee';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface SavePayeeResponseData
|
|
17
|
+
*/
|
|
18
|
+
export interface SavePayeeResponseData {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Payee}
|
|
22
|
+
* @memberof SavePayeeResponseData
|
|
23
|
+
*/
|
|
24
|
+
payee: Payee;
|
|
25
|
+
/**
|
|
26
|
+
* The knowledge of the server
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof SavePayeeResponseData
|
|
29
|
+
*/
|
|
30
|
+
server_knowledge: number;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the SavePayeeResponseData interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfSavePayeeResponseData(value: object): value is SavePayeeResponseData;
|
|
36
|
+
export declare function SavePayeeResponseDataFromJSON(json: any): SavePayeeResponseData;
|
|
37
|
+
export declare function SavePayeeResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): SavePayeeResponseData;
|
|
38
|
+
export declare function SavePayeeResponseDataToJSON(value?: SavePayeeResponseData | null): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
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.SavePayeeResponseDataToJSON = exports.SavePayeeResponseDataFromJSONTyped = exports.SavePayeeResponseDataFromJSON = exports.instanceOfSavePayeeResponseData = void 0;
|
|
17
|
+
const Payee_1 = require("./Payee");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the SavePayeeResponseData interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfSavePayeeResponseData(value) {
|
|
22
|
+
if (!('payee' in value) || value['payee'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('server_knowledge' in value) || value['server_knowledge'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
exports.instanceOfSavePayeeResponseData = instanceOfSavePayeeResponseData;
|
|
29
|
+
function SavePayeeResponseDataFromJSON(json) {
|
|
30
|
+
return SavePayeeResponseDataFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
exports.SavePayeeResponseDataFromJSON = SavePayeeResponseDataFromJSON;
|
|
33
|
+
function SavePayeeResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'payee': (0, Payee_1.PayeeFromJSON)(json['payee']),
|
|
39
|
+
'server_knowledge': json['server_knowledge'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
exports.SavePayeeResponseDataFromJSONTyped = SavePayeeResponseDataFromJSONTyped;
|
|
43
|
+
function SavePayeeResponseDataToJSON(value) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'payee': (0, Payee_1.PayeeToJSON)(value['payee']),
|
|
49
|
+
'server_knowledge': value['server_knowledge'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
exports.SavePayeeResponseDataToJSON = SavePayeeResponseDataToJSON;
|
|
@@ -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,30 +26,30 @@ export interface SaveSubTransaction {
|
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof SaveSubTransaction
|
|
28
28
|
*/
|
|
29
|
-
payee_id?: string
|
|
29
|
+
payee_id?: string;
|
|
30
30
|
/**
|
|
31
31
|
* 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 on parent transaction) or (2) a payee with the same name or (3) creation of a new payee.
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof SaveSubTransaction
|
|
34
34
|
*/
|
|
35
|
-
payee_name?: string
|
|
35
|
+
payee_name?: string;
|
|
36
36
|
/**
|
|
37
37
|
* The category for the subtransaction. Credit Card Payment categories are not permitted and will be ignored if supplied.
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof SaveSubTransaction
|
|
40
40
|
*/
|
|
41
|
-
category_id?: string
|
|
41
|
+
category_id?: string;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof SaveSubTransaction
|
|
46
46
|
*/
|
|
47
|
-
memo?: string
|
|
47
|
+
memo?: string;
|
|
48
48
|
}
|
|
49
49
|
/**
|
|
50
50
|
* Check if a given object implements the SaveSubTransaction interface.
|
|
51
51
|
*/
|
|
52
|
-
export declare function instanceOfSaveSubTransaction(value: object):
|
|
52
|
+
export declare function instanceOfSaveSubTransaction(value: object): value is SaveSubTransaction;
|
|
53
53
|
export declare function SaveSubTransactionFromJSON(json: any): SaveSubTransaction;
|
|
54
54
|
export declare function SaveSubTransactionFromJSONTyped(json: any, ignoreDiscriminator: boolean): SaveSubTransaction;
|
|
55
55
|
export declare function SaveSubTransactionToJSON(value?: SaveSubTransaction | 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,14 +14,13 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.SaveSubTransactionToJSON = exports.SaveSubTransactionFromJSONTyped = exports.SaveSubTransactionFromJSON = exports.instanceOfSaveSubTransaction = void 0;
|
|
17
|
-
const runtime_1 = require("../runtime");
|
|
18
17
|
/**
|
|
19
18
|
* Check if a given object implements the SaveSubTransaction interface.
|
|
20
19
|
*/
|
|
21
20
|
function instanceOfSaveSubTransaction(value) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return
|
|
21
|
+
if (!('amount' in value) || value['amount'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
25
24
|
}
|
|
26
25
|
exports.instanceOfSaveSubTransaction = instanceOfSaveSubTransaction;
|
|
27
26
|
function SaveSubTransactionFromJSON(json) {
|
|
@@ -29,31 +28,28 @@ function SaveSubTransactionFromJSON(json) {
|
|
|
29
28
|
}
|
|
30
29
|
exports.SaveSubTransactionFromJSON = SaveSubTransactionFromJSON;
|
|
31
30
|
function SaveSubTransactionFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (
|
|
31
|
+
if (json == null) {
|
|
33
32
|
return json;
|
|
34
33
|
}
|
|
35
34
|
return {
|
|
36
35
|
'amount': json['amount'],
|
|
37
|
-
'payee_id':
|
|
38
|
-
'payee_name':
|
|
39
|
-
'category_id':
|
|
40
|
-
'memo':
|
|
36
|
+
'payee_id': json['payee_id'] == null ? undefined : json['payee_id'],
|
|
37
|
+
'payee_name': json['payee_name'] == null ? undefined : json['payee_name'],
|
|
38
|
+
'category_id': json['category_id'] == null ? undefined : json['category_id'],
|
|
39
|
+
'memo': json['memo'] == null ? undefined : json['memo'],
|
|
41
40
|
};
|
|
42
41
|
}
|
|
43
42
|
exports.SaveSubTransactionFromJSONTyped = SaveSubTransactionFromJSONTyped;
|
|
44
43
|
function SaveSubTransactionToJSON(value) {
|
|
45
|
-
if (value
|
|
46
|
-
return
|
|
47
|
-
}
|
|
48
|
-
if (value === null) {
|
|
49
|
-
return null;
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
50
46
|
}
|
|
51
47
|
return {
|
|
52
|
-
'amount': value
|
|
53
|
-
'payee_id': value
|
|
54
|
-
'payee_name': value
|
|
55
|
-
'category_id': value
|
|
56
|
-
'memo': value
|
|
48
|
+
'amount': value['amount'],
|
|
49
|
+
'payee_id': value['payee_id'],
|
|
50
|
+
'payee_name': value['payee_name'],
|
|
51
|
+
'category_id': value['category_id'],
|
|
52
|
+
'memo': value['memo'],
|
|
57
53
|
};
|
|
58
54
|
}
|
|
59
55
|
exports.SaveSubTransactionToJSON = SaveSubTransactionToJSON;
|