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
|
@@ -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 MonthSummariesResponse {
|
|
|
26
26
|
/**
|
|
27
27
|
* Check if a given object implements the MonthSummariesResponse interface.
|
|
28
28
|
*/
|
|
29
|
-
export declare function instanceOfMonthSummariesResponse(value: object):
|
|
29
|
+
export declare function instanceOfMonthSummariesResponse(value: object): value is MonthSummariesResponse;
|
|
30
30
|
export declare function MonthSummariesResponseFromJSON(json: any): MonthSummariesResponse;
|
|
31
31
|
export declare function MonthSummariesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MonthSummariesResponse;
|
|
32
32
|
export declare function MonthSummariesResponseToJSON(value?: MonthSummariesResponse | 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 MonthSummariesResponseData_1 = require("./MonthSummariesResponseData");
|
|
|
19
19
|
* Check if a given object implements the MonthSummariesResponse interface.
|
|
20
20
|
*/
|
|
21
21
|
function instanceOfMonthSummariesResponse(value) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return
|
|
22
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
25
|
}
|
|
26
26
|
exports.instanceOfMonthSummariesResponse = instanceOfMonthSummariesResponse;
|
|
27
27
|
function MonthSummariesResponseFromJSON(json) {
|
|
@@ -29,7 +29,7 @@ function MonthSummariesResponseFromJSON(json) {
|
|
|
29
29
|
}
|
|
30
30
|
exports.MonthSummariesResponseFromJSON = MonthSummariesResponseFromJSON;
|
|
31
31
|
function MonthSummariesResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (
|
|
32
|
+
if (json == null) {
|
|
33
33
|
return json;
|
|
34
34
|
}
|
|
35
35
|
return {
|
|
@@ -38,14 +38,11 @@ function MonthSummariesResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
38
|
}
|
|
39
39
|
exports.MonthSummariesResponseFromJSONTyped = MonthSummariesResponseFromJSONTyped;
|
|
40
40
|
function MonthSummariesResponseToJSON(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, MonthSummariesResponseData_1.MonthSummariesResponseDataToJSON)(value
|
|
45
|
+
'data': (0, MonthSummariesResponseData_1.MonthSummariesResponseDataToJSON)(value['data']),
|
|
49
46
|
};
|
|
50
47
|
}
|
|
51
48
|
exports.MonthSummariesResponseToJSON = MonthSummariesResponseToJSON;
|
|
@@ -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 MonthSummariesResponseData {
|
|
|
32
32
|
/**
|
|
33
33
|
* Check if a given object implements the MonthSummariesResponseData interface.
|
|
34
34
|
*/
|
|
35
|
-
export declare function instanceOfMonthSummariesResponseData(value: object):
|
|
35
|
+
export declare function instanceOfMonthSummariesResponseData(value: object): value is MonthSummariesResponseData;
|
|
36
36
|
export declare function MonthSummariesResponseDataFromJSON(json: any): MonthSummariesResponseData;
|
|
37
37
|
export declare function MonthSummariesResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): MonthSummariesResponseData;
|
|
38
38
|
export declare function MonthSummariesResponseDataToJSON(value?: MonthSummariesResponseData | 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 MonthSummary_1 = require("./MonthSummary");
|
|
|
19
19
|
* Check if a given object implements the MonthSummariesResponseData interface.
|
|
20
20
|
*/
|
|
21
21
|
function instanceOfMonthSummariesResponseData(value) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
if (!('months' in value) || value['months'] === 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.instanceOfMonthSummariesResponseData = instanceOfMonthSummariesResponseData;
|
|
28
29
|
function MonthSummariesResponseDataFromJSON(json) {
|
|
@@ -30,7 +31,7 @@ function MonthSummariesResponseDataFromJSON(json) {
|
|
|
30
31
|
}
|
|
31
32
|
exports.MonthSummariesResponseDataFromJSON = MonthSummariesResponseDataFromJSON;
|
|
32
33
|
function MonthSummariesResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
-
if (
|
|
34
|
+
if (json == null) {
|
|
34
35
|
return json;
|
|
35
36
|
}
|
|
36
37
|
return {
|
|
@@ -40,15 +41,12 @@ function MonthSummariesResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
41
|
}
|
|
41
42
|
exports.MonthSummariesResponseDataFromJSONTyped = MonthSummariesResponseDataFromJSONTyped;
|
|
42
43
|
function MonthSummariesResponseDataToJSON(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
|
-
'months': (value
|
|
51
|
-
'server_knowledge': value
|
|
48
|
+
'months': (value['months'].map(MonthSummary_1.MonthSummaryToJSON)),
|
|
49
|
+
'server_knowledge': value['server_knowledge'],
|
|
52
50
|
};
|
|
53
51
|
}
|
|
54
52
|
exports.MonthSummariesResponseDataToJSON = MonthSummariesResponseDataToJSON;
|
|
@@ -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 MonthSummary {
|
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof MonthSummary
|
|
28
28
|
*/
|
|
29
|
-
note?: string
|
|
29
|
+
note?: string;
|
|
30
30
|
/**
|
|
31
31
|
* The total amount of transactions categorized to 'Inflow: Ready to Assign' in the month
|
|
32
32
|
* @type {number}
|
|
@@ -56,7 +56,7 @@ export interface MonthSummary {
|
|
|
56
56
|
* @type {number}
|
|
57
57
|
* @memberof MonthSummary
|
|
58
58
|
*/
|
|
59
|
-
age_of_money?: number
|
|
59
|
+
age_of_money?: number;
|
|
60
60
|
/**
|
|
61
61
|
* Whether or not the month has been deleted. Deleted months will only be included in delta requests.
|
|
62
62
|
* @type {boolean}
|
|
@@ -67,7 +67,7 @@ export interface MonthSummary {
|
|
|
67
67
|
/**
|
|
68
68
|
* Check if a given object implements the MonthSummary interface.
|
|
69
69
|
*/
|
|
70
|
-
export declare function instanceOfMonthSummary(value: object):
|
|
70
|
+
export declare function instanceOfMonthSummary(value: object): value is MonthSummary;
|
|
71
71
|
export declare function MonthSummaryFromJSON(json: any): MonthSummary;
|
|
72
72
|
export declare function MonthSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): MonthSummary;
|
|
73
73
|
export declare function MonthSummaryToJSON(value?: MonthSummary | 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,19 +14,23 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.MonthSummaryToJSON = exports.MonthSummaryFromJSONTyped = exports.MonthSummaryFromJSON = exports.instanceOfMonthSummary = void 0;
|
|
17
|
-
const runtime_1 = require("../runtime");
|
|
18
17
|
/**
|
|
19
18
|
* Check if a given object implements the MonthSummary interface.
|
|
20
19
|
*/
|
|
21
20
|
function instanceOfMonthSummary(value) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
21
|
+
if (!('month' in value) || value['month'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('income' in value) || value['income'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('budgeted' in value) || value['budgeted'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('activity' in value) || value['activity'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('to_be_budgeted' in value) || value['to_be_budgeted'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('deleted' in value) || value['deleted'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
30
34
|
}
|
|
31
35
|
exports.instanceOfMonthSummary = instanceOfMonthSummary;
|
|
32
36
|
function MonthSummaryFromJSON(json) {
|
|
@@ -34,37 +38,34 @@ function MonthSummaryFromJSON(json) {
|
|
|
34
38
|
}
|
|
35
39
|
exports.MonthSummaryFromJSON = MonthSummaryFromJSON;
|
|
36
40
|
function MonthSummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
-
if (
|
|
41
|
+
if (json == null) {
|
|
38
42
|
return json;
|
|
39
43
|
}
|
|
40
44
|
return {
|
|
41
45
|
'month': json['month'],
|
|
42
|
-
'note':
|
|
46
|
+
'note': json['note'] == null ? undefined : json['note'],
|
|
43
47
|
'income': json['income'],
|
|
44
48
|
'budgeted': json['budgeted'],
|
|
45
49
|
'activity': json['activity'],
|
|
46
50
|
'to_be_budgeted': json['to_be_budgeted'],
|
|
47
|
-
'age_of_money':
|
|
51
|
+
'age_of_money': json['age_of_money'] == null ? undefined : json['age_of_money'],
|
|
48
52
|
'deleted': json['deleted'],
|
|
49
53
|
};
|
|
50
54
|
}
|
|
51
55
|
exports.MonthSummaryFromJSONTyped = MonthSummaryFromJSONTyped;
|
|
52
56
|
function MonthSummaryToJSON(value) {
|
|
53
|
-
if (value
|
|
54
|
-
return
|
|
55
|
-
}
|
|
56
|
-
if (value === null) {
|
|
57
|
-
return null;
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
58
59
|
}
|
|
59
60
|
return {
|
|
60
|
-
'month': value
|
|
61
|
-
'note': value
|
|
62
|
-
'income': value
|
|
63
|
-
'budgeted': value
|
|
64
|
-
'activity': value
|
|
65
|
-
'to_be_budgeted': value
|
|
66
|
-
'age_of_money': value
|
|
67
|
-
'deleted': value
|
|
61
|
+
'month': value['month'],
|
|
62
|
+
'note': value['note'],
|
|
63
|
+
'income': value['income'],
|
|
64
|
+
'budgeted': value['budgeted'],
|
|
65
|
+
'activity': value['activity'],
|
|
66
|
+
'to_be_budgeted': value['to_be_budgeted'],
|
|
67
|
+
'age_of_money': value['age_of_money'],
|
|
68
|
+
'deleted': value['deleted'],
|
|
68
69
|
};
|
|
69
70
|
}
|
|
70
71
|
exports.MonthSummaryToJSON = MonthSummaryToJSON;
|
|
@@ -0,0 +1,100 @@
|
|
|
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 { TransactionFlagColor } from './TransactionFlagColor';
|
|
13
|
+
import type { TransactionClearedStatus } from './TransactionClearedStatus';
|
|
14
|
+
import type { SaveSubTransaction } from './SaveSubTransaction';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface NewTransaction
|
|
19
|
+
*/
|
|
20
|
+
export interface NewTransaction {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof NewTransaction
|
|
25
|
+
*/
|
|
26
|
+
account_id?: string;
|
|
27
|
+
/**
|
|
28
|
+
* The transaction date in ISO format (e.g. 2016-12-01). Future dates (scheduled transactions) are not permitted. Split transaction dates cannot be changed and if a different date is supplied it will be ignored.
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof NewTransaction
|
|
31
|
+
*/
|
|
32
|
+
date?: string;
|
|
33
|
+
/**
|
|
34
|
+
* The transaction amount in milliunits format. Split transaction amounts cannot be changed and if a different amount is supplied it will be ignored.
|
|
35
|
+
* @type {number}
|
|
36
|
+
* @memberof NewTransaction
|
|
37
|
+
*/
|
|
38
|
+
amount?: number;
|
|
39
|
+
/**
|
|
40
|
+
* The payee for the transaction. To create a transfer between two accounts, use the account transfer payee pointing to the target account. Account transfer payees are specified as `tranfer_payee_id` on the account resource.
|
|
41
|
+
* @type {string}
|
|
42
|
+
* @memberof NewTransaction
|
|
43
|
+
*/
|
|
44
|
+
payee_id?: string;
|
|
45
|
+
/**
|
|
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
|
+
* @type {string}
|
|
48
|
+
* @memberof NewTransaction
|
|
49
|
+
*/
|
|
50
|
+
payee_name?: string;
|
|
51
|
+
/**
|
|
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
|
+
* @type {string}
|
|
54
|
+
* @memberof NewTransaction
|
|
55
|
+
*/
|
|
56
|
+
category_id?: string;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {string}
|
|
60
|
+
* @memberof NewTransaction
|
|
61
|
+
*/
|
|
62
|
+
memo?: string;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {TransactionClearedStatus}
|
|
66
|
+
* @memberof NewTransaction
|
|
67
|
+
*/
|
|
68
|
+
cleared?: TransactionClearedStatus;
|
|
69
|
+
/**
|
|
70
|
+
* Whether or not the transaction is approved. If not supplied, transaction will be unapproved by default.
|
|
71
|
+
* @type {boolean}
|
|
72
|
+
* @memberof NewTransaction
|
|
73
|
+
*/
|
|
74
|
+
approved?: boolean;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {TransactionFlagColor}
|
|
78
|
+
* @memberof NewTransaction
|
|
79
|
+
*/
|
|
80
|
+
flag_color?: TransactionFlagColor;
|
|
81
|
+
/**
|
|
82
|
+
* An array of subtransactions to configure a transaction as a split. Updating `subtransactions` on an existing split transaction is not supported.
|
|
83
|
+
* @type {Array<SaveSubTransaction>}
|
|
84
|
+
* @memberof NewTransaction
|
|
85
|
+
*/
|
|
86
|
+
subtransactions?: Array<SaveSubTransaction>;
|
|
87
|
+
/**
|
|
88
|
+
* If specified, a 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" transaction 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).
|
|
89
|
+
* @type {string}
|
|
90
|
+
* @memberof NewTransaction
|
|
91
|
+
*/
|
|
92
|
+
import_id?: string;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Check if a given object implements the NewTransaction interface.
|
|
96
|
+
*/
|
|
97
|
+
export declare function instanceOfNewTransaction(value: object): value is NewTransaction;
|
|
98
|
+
export declare function NewTransactionFromJSON(json: any): NewTransaction;
|
|
99
|
+
export declare function NewTransactionFromJSONTyped(json: any, ignoreDiscriminator: boolean): NewTransaction;
|
|
100
|
+
export declare function NewTransactionToJSON(value?: NewTransaction | null): any;
|
|
@@ -0,0 +1,70 @@
|
|
|
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.NewTransactionToJSON = exports.NewTransactionFromJSONTyped = exports.NewTransactionFromJSON = exports.instanceOfNewTransaction = 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 NewTransaction interface.
|
|
22
|
+
*/
|
|
23
|
+
function instanceOfNewTransaction(value) {
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
exports.instanceOfNewTransaction = instanceOfNewTransaction;
|
|
27
|
+
function NewTransactionFromJSON(json) {
|
|
28
|
+
return NewTransactionFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
exports.NewTransactionFromJSON = NewTransactionFromJSON;
|
|
31
|
+
function NewTransactionFromJSONTyped(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
|
+
'import_id': json['import_id'] == null ? undefined : json['import_id'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
exports.NewTransactionFromJSONTyped = NewTransactionFromJSONTyped;
|
|
51
|
+
function NewTransactionToJSON(value) {
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'account_id': value['account_id'],
|
|
57
|
+
'date': value['date'],
|
|
58
|
+
'amount': value['amount'],
|
|
59
|
+
'payee_id': value['payee_id'],
|
|
60
|
+
'payee_name': value['payee_name'],
|
|
61
|
+
'category_id': value['category_id'],
|
|
62
|
+
'memo': value['memo'],
|
|
63
|
+
'cleared': (0, TransactionClearedStatus_1.TransactionClearedStatusToJSON)(value['cleared']),
|
|
64
|
+
'approved': value['approved'],
|
|
65
|
+
'flag_color': (0, TransactionFlagColor_1.TransactionFlagColorToJSON)(value['flag_color']),
|
|
66
|
+
'subtransactions': value['subtransactions'] == null ? undefined : (value['subtransactions'].map(SaveSubTransaction_1.SaveSubTransactionToJSON)),
|
|
67
|
+
'import_id': value['import_id'],
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
exports.NewTransactionToJSON = NewTransactionToJSON;
|
|
@@ -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 { SaveCategory } from './SaveCategory';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PatchCategoryWrapper
|
|
17
|
+
*/
|
|
18
|
+
export interface PatchCategoryWrapper {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {SaveCategory}
|
|
22
|
+
* @memberof PatchCategoryWrapper
|
|
23
|
+
*/
|
|
24
|
+
category: SaveCategory;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the PatchCategoryWrapper interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfPatchCategoryWrapper(value: object): value is PatchCategoryWrapper;
|
|
30
|
+
export declare function PatchCategoryWrapperFromJSON(json: any): PatchCategoryWrapper;
|
|
31
|
+
export declare function PatchCategoryWrapperFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchCategoryWrapper;
|
|
32
|
+
export declare function PatchCategoryWrapperToJSON(value?: PatchCategoryWrapper | 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.PatchCategoryWrapperToJSON = exports.PatchCategoryWrapperFromJSONTyped = exports.PatchCategoryWrapperFromJSON = exports.instanceOfPatchCategoryWrapper = void 0;
|
|
17
|
+
const SaveCategory_1 = require("./SaveCategory");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the PatchCategoryWrapper interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfPatchCategoryWrapper(value) {
|
|
22
|
+
if (!('category' in value) || value['category'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
exports.instanceOfPatchCategoryWrapper = instanceOfPatchCategoryWrapper;
|
|
27
|
+
function PatchCategoryWrapperFromJSON(json) {
|
|
28
|
+
return PatchCategoryWrapperFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
exports.PatchCategoryWrapperFromJSON = PatchCategoryWrapperFromJSON;
|
|
31
|
+
function PatchCategoryWrapperFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'category': (0, SaveCategory_1.SaveCategoryFromJSON)(json['category']),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
exports.PatchCategoryWrapperFromJSONTyped = PatchCategoryWrapperFromJSONTyped;
|
|
40
|
+
function PatchCategoryWrapperToJSON(value) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'category': (0, SaveCategory_1.SaveCategoryToJSON)(value['category']),
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
exports.PatchCategoryWrapperToJSON = PatchCategoryWrapperToJSON;
|
|
@@ -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 PatchMonthCategoryWrapper {
|
|
|
26
26
|
/**
|
|
27
27
|
* Check if a given object implements the PatchMonthCategoryWrapper interface.
|
|
28
28
|
*/
|
|
29
|
-
export declare function instanceOfPatchMonthCategoryWrapper(value: object):
|
|
29
|
+
export declare function instanceOfPatchMonthCategoryWrapper(value: object): value is PatchMonthCategoryWrapper;
|
|
30
30
|
export declare function PatchMonthCategoryWrapperFromJSON(json: any): PatchMonthCategoryWrapper;
|
|
31
31
|
export declare function PatchMonthCategoryWrapperFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchMonthCategoryWrapper;
|
|
32
32
|
export declare function PatchMonthCategoryWrapperToJSON(value?: PatchMonthCategoryWrapper | 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 SaveMonthCategory_1 = require("./SaveMonthCategory");
|
|
|
19
19
|
* Check if a given object implements the PatchMonthCategoryWrapper interface.
|
|
20
20
|
*/
|
|
21
21
|
function instanceOfPatchMonthCategoryWrapper(value) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return
|
|
22
|
+
if (!('category' in value) || value['category'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
25
|
}
|
|
26
26
|
exports.instanceOfPatchMonthCategoryWrapper = instanceOfPatchMonthCategoryWrapper;
|
|
27
27
|
function PatchMonthCategoryWrapperFromJSON(json) {
|
|
@@ -29,7 +29,7 @@ function PatchMonthCategoryWrapperFromJSON(json) {
|
|
|
29
29
|
}
|
|
30
30
|
exports.PatchMonthCategoryWrapperFromJSON = PatchMonthCategoryWrapperFromJSON;
|
|
31
31
|
function PatchMonthCategoryWrapperFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (
|
|
32
|
+
if (json == null) {
|
|
33
33
|
return json;
|
|
34
34
|
}
|
|
35
35
|
return {
|
|
@@ -38,14 +38,11 @@ function PatchMonthCategoryWrapperFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
38
|
}
|
|
39
39
|
exports.PatchMonthCategoryWrapperFromJSONTyped = PatchMonthCategoryWrapperFromJSONTyped;
|
|
40
40
|
function PatchMonthCategoryWrapperToJSON(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
|
-
'category': (0, SaveMonthCategory_1.SaveMonthCategoryToJSON)(value
|
|
45
|
+
'category': (0, SaveMonthCategory_1.SaveMonthCategoryToJSON)(value['category']),
|
|
49
46
|
};
|
|
50
47
|
}
|
|
51
48
|
exports.PatchMonthCategoryWrapperToJSON = PatchMonthCategoryWrapperToJSON;
|
|
@@ -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 { SavePayee } from './SavePayee';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PatchPayeeWrapper
|
|
17
|
+
*/
|
|
18
|
+
export interface PatchPayeeWrapper {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {SavePayee}
|
|
22
|
+
* @memberof PatchPayeeWrapper
|
|
23
|
+
*/
|
|
24
|
+
payee: SavePayee;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the PatchPayeeWrapper interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfPatchPayeeWrapper(value: object): value is PatchPayeeWrapper;
|
|
30
|
+
export declare function PatchPayeeWrapperFromJSON(json: any): PatchPayeeWrapper;
|
|
31
|
+
export declare function PatchPayeeWrapperFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchPayeeWrapper;
|
|
32
|
+
export declare function PatchPayeeWrapperToJSON(value?: PatchPayeeWrapper | null): any;
|