ynab 2.4.0 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/esm/apis/AccountsApi.d.ts +1 -6
- package/dist/esm/apis/AccountsApi.js +2 -7
- package/dist/esm/apis/BudgetsApi.d.ts +1 -6
- package/dist/esm/apis/BudgetsApi.js +2 -7
- package/dist/esm/apis/CategoriesApi.d.ts +1 -6
- package/dist/esm/apis/CategoriesApi.js +2 -7
- package/dist/esm/apis/DeprecatedApi.js +1 -1
- package/dist/esm/apis/MonthsApi.d.ts +1 -6
- package/dist/esm/apis/MonthsApi.js +2 -7
- package/dist/esm/apis/PayeeLocationsApi.d.ts +1 -6
- package/dist/esm/apis/PayeeLocationsApi.js +2 -7
- package/dist/esm/apis/PayeesApi.d.ts +17 -7
- package/dist/esm/apis/PayeesApi.js +67 -8
- package/dist/esm/apis/ScheduledTransactionsApi.d.ts +16 -7
- package/dist/esm/apis/ScheduledTransactionsApi.js +64 -8
- package/dist/esm/apis/TransactionsApi.d.ts +40 -20
- package/dist/esm/apis/TransactionsApi.js +87 -17
- package/dist/esm/apis/UserApi.d.ts +1 -6
- package/dist/esm/apis/UserApi.js +2 -7
- package/dist/esm/models/Account.d.ts +2 -7
- package/dist/esm/models/Account.js +51 -51
- package/dist/esm/models/AccountResponse.d.ts +2 -7
- package/dist/esm/models/AccountResponse.js +8 -16
- package/dist/esm/models/AccountResponseData.d.ts +2 -7
- package/dist/esm/models/AccountResponseData.js +8 -16
- package/dist/esm/models/AccountType.d.ts +3 -7
- package/dist/esm/models/AccountType.js +11 -6
- package/dist/esm/models/AccountsResponse.d.ts +2 -7
- package/dist/esm/models/AccountsResponse.js +8 -16
- package/dist/esm/models/AccountsResponseData.d.ts +2 -7
- package/dist/esm/models/AccountsResponseData.js +11 -18
- package/dist/esm/models/BudgetDetail.d.ts +6 -11
- package/dist/esm/models/BudgetDetail.js +45 -53
- package/dist/esm/models/BudgetDetailResponse.d.ts +2 -7
- package/dist/esm/models/BudgetDetailResponse.js +8 -16
- package/dist/esm/models/BudgetDetailResponseData.d.ts +2 -7
- package/dist/esm/models/BudgetDetailResponseData.js +11 -18
- package/dist/esm/models/BudgetSettings.d.ts +2 -7
- package/dist/esm/models/BudgetSettings.js +11 -18
- package/dist/esm/models/BudgetSettingsResponse.d.ts +2 -7
- package/dist/esm/models/BudgetSettingsResponse.js +8 -16
- package/dist/esm/models/BudgetSettingsResponseData.d.ts +2 -7
- package/dist/esm/models/BudgetSettingsResponseData.js +8 -16
- package/dist/esm/models/BudgetSummary.d.ts +2 -7
- package/dist/esm/models/BudgetSummary.js +23 -31
- package/dist/esm/models/BudgetSummaryResponse.d.ts +2 -7
- package/dist/esm/models/BudgetSummaryResponse.js +8 -16
- package/dist/esm/models/BudgetSummaryResponseData.d.ts +2 -7
- package/dist/esm/models/BudgetSummaryResponseData.js +10 -19
- package/dist/esm/models/BulkResponse.d.ts +2 -7
- package/dist/esm/models/BulkResponse.js +8 -16
- package/dist/esm/models/BulkResponseData.d.ts +2 -7
- package/dist/esm/models/BulkResponseData.js +8 -16
- package/dist/esm/models/BulkResponseDataBulk.d.ts +2 -7
- package/dist/esm/models/BulkResponseDataBulk.js +11 -18
- package/dist/esm/models/BulkTransactions.d.ts +5 -10
- package/dist/esm/models/BulkTransactions.js +10 -18
- package/dist/esm/models/CategoriesResponse.d.ts +2 -7
- package/dist/esm/models/CategoriesResponse.js +8 -16
- package/dist/esm/models/CategoriesResponseData.d.ts +2 -7
- package/dist/esm/models/CategoriesResponseData.js +11 -18
- package/dist/esm/models/Category.d.ts +10 -9
- package/dist/esm/models/Category.js +61 -61
- package/dist/esm/models/CategoryGroup.d.ts +2 -7
- package/dist/esm/models/CategoryGroup.js +17 -22
- package/dist/esm/models/CategoryGroupWithCategories.d.ts +2 -7
- package/dist/esm/models/CategoryGroupWithCategories.js +20 -24
- package/dist/esm/models/CategoryResponse.d.ts +2 -7
- package/dist/esm/models/CategoryResponse.js +8 -16
- package/dist/esm/models/CategoryResponseData.d.ts +2 -7
- package/dist/esm/models/CategoryResponseData.js +8 -16
- package/dist/esm/models/CurrencyFormat.d.ts +2 -7
- package/dist/esm/models/CurrencyFormat.js +29 -30
- package/dist/esm/models/DateFormat.d.ts +2 -7
- package/dist/esm/models/DateFormat.js +8 -16
- package/dist/esm/models/ErrorDetail.d.ts +2 -7
- package/dist/esm/models/ErrorDetail.js +14 -20
- package/dist/esm/models/ErrorResponse.d.ts +2 -7
- package/dist/esm/models/ErrorResponse.js +8 -16
- package/dist/esm/models/ExistingTransaction.d.ts +89 -0
- package/dist/esm/models/ExistingTransaction.js +56 -0
- package/dist/esm/models/HybridTransaction.d.ts +12 -11
- package/dist/esm/models/HybridTransaction.js +63 -62
- package/dist/esm/models/HybridTransactionAllOf.d.ts +1 -1
- package/dist/esm/models/HybridTransactionsResponse.d.ts +2 -7
- package/dist/esm/models/HybridTransactionsResponse.js +8 -16
- package/dist/esm/models/HybridTransactionsResponseData.d.ts +2 -7
- package/dist/esm/models/HybridTransactionsResponseData.js +10 -19
- package/dist/esm/models/MonthDetail.d.ts +2 -7
- package/dist/esm/models/MonthDetail.js +30 -33
- package/dist/esm/models/MonthDetailResponse.d.ts +2 -7
- package/dist/esm/models/MonthDetailResponse.js +8 -16
- package/dist/esm/models/MonthDetailResponseData.d.ts +2 -7
- package/dist/esm/models/MonthDetailResponseData.js +8 -16
- package/dist/esm/models/MonthSummariesResponse.d.ts +2 -7
- package/dist/esm/models/MonthSummariesResponse.js +8 -16
- package/dist/esm/models/MonthSummariesResponseData.d.ts +2 -7
- package/dist/esm/models/MonthSummariesResponseData.js +11 -18
- package/dist/esm/models/MonthSummary.d.ts +2 -7
- package/dist/esm/models/MonthSummary.js +27 -31
- package/dist/esm/models/NewTransaction.d.ts +95 -0
- package/dist/esm/models/NewTransaction.js +58 -0
- package/dist/esm/models/PatchCategoryWrapper.d.ts +2 -7
- package/dist/esm/models/PatchCategoryWrapper.js +8 -16
- package/dist/esm/models/PatchMonthCategoryWrapper.d.ts +2 -7
- package/dist/esm/models/PatchMonthCategoryWrapper.js +8 -16
- package/dist/esm/models/PatchPayeeWrapper.d.ts +27 -0
- package/dist/esm/models/PatchPayeeWrapper.js +36 -0
- package/dist/esm/models/PatchTransactionsWrapper.d.ts +5 -10
- package/dist/esm/models/PatchTransactionsWrapper.js +10 -18
- package/dist/esm/models/Payee.d.ts +2 -7
- package/dist/esm/models/Payee.js +16 -23
- package/dist/esm/models/PayeeLocation.d.ts +2 -7
- package/dist/esm/models/PayeeLocation.js +20 -24
- package/dist/esm/models/PayeeLocationResponse.d.ts +2 -7
- package/dist/esm/models/PayeeLocationResponse.js +8 -16
- package/dist/esm/models/PayeeLocationResponseData.d.ts +2 -7
- package/dist/esm/models/PayeeLocationResponseData.js +8 -16
- package/dist/esm/models/PayeeLocationsResponse.d.ts +2 -7
- package/dist/esm/models/PayeeLocationsResponse.js +8 -16
- package/dist/esm/models/PayeeLocationsResponseData.d.ts +2 -7
- package/dist/esm/models/PayeeLocationsResponseData.js +8 -16
- package/dist/esm/models/PayeeResponse.d.ts +2 -7
- package/dist/esm/models/PayeeResponse.js +8 -16
- package/dist/esm/models/PayeeResponseData.d.ts +2 -7
- package/dist/esm/models/PayeeResponseData.js +8 -16
- package/dist/esm/models/PayeesResponse.d.ts +2 -7
- package/dist/esm/models/PayeesResponse.js +8 -16
- package/dist/esm/models/PayeesResponseData.d.ts +2 -7
- package/dist/esm/models/PayeesResponseData.js +11 -18
- package/dist/esm/models/PostAccountWrapper.d.ts +2 -7
- package/dist/esm/models/PostAccountWrapper.js +8 -16
- package/dist/esm/models/PostScheduledTransactionWrapper.d.ts +27 -0
- package/dist/esm/models/PostScheduledTransactionWrapper.js +36 -0
- package/dist/esm/models/PostTransactionsWrapper.d.ts +7 -12
- package/dist/esm/models/PostTransactionsWrapper.js +10 -20
- package/dist/esm/models/PutTransactionWrapper.d.ts +5 -10
- package/dist/esm/models/PutTransactionWrapper.js +10 -18
- package/dist/esm/models/SaveAccount.d.ts +2 -7
- package/dist/esm/models/SaveAccount.js +14 -20
- package/dist/esm/models/SaveCategory.d.ts +2 -7
- package/dist/esm/models/SaveCategory.js +11 -21
- package/dist/esm/models/SaveCategoryResponse.d.ts +2 -7
- package/dist/esm/models/SaveCategoryResponse.js +8 -16
- package/dist/esm/models/SaveCategoryResponseData.d.ts +2 -7
- package/dist/esm/models/SaveCategoryResponseData.js +11 -18
- package/dist/esm/models/SaveMonthCategory.d.ts +2 -7
- package/dist/esm/models/SaveMonthCategory.js +8 -16
- package/dist/esm/models/SavePayee.d.ts +26 -0
- package/dist/esm/models/SavePayee.js +33 -0
- package/dist/esm/models/SavePayeeResponse.d.ts +27 -0
- package/dist/esm/models/SavePayeeResponse.js +36 -0
- package/dist/esm/models/SavePayeeResponseData.d.ts +33 -0
- package/dist/esm/models/SavePayeeResponseData.js +40 -0
- package/dist/esm/models/SaveScheduledTransaction.d.ts +76 -0
- package/dist/esm/models/SaveScheduledTransaction.js +55 -0
- package/dist/esm/models/SaveSubTransaction.d.ts +2 -7
- package/dist/esm/models/SaveSubTransaction.js +16 -25
- package/dist/esm/models/SaveTransactionWithIdOrImportId.d.ts +101 -0
- package/dist/esm/models/SaveTransactionWithIdOrImportId.js +60 -0
- package/dist/esm/models/SaveTransactionWithOptionalFields.d.ts +5 -16
- package/dist/esm/models/SaveTransactionWithOptionalFields.js +29 -41
- package/dist/esm/models/SaveTransactionsResponse.d.ts +2 -7
- package/dist/esm/models/SaveTransactionsResponse.js +8 -16
- package/dist/esm/models/SaveTransactionsResponseData.d.ts +2 -7
- package/dist/esm/models/SaveTransactionsResponseData.js +17 -25
- package/dist/esm/models/ScheduledSubTransaction.d.ts +2 -7
- package/dist/esm/models/ScheduledSubTransaction.js +25 -31
- package/dist/esm/models/ScheduledTransactionDetail.d.ts +10 -9
- package/dist/esm/models/ScheduledTransactionDetail.js +49 -48
- package/dist/esm/models/ScheduledTransactionFrequency.d.ts +30 -0
- package/dist/esm/models/ScheduledTransactionFrequency.js +46 -0
- package/dist/esm/models/ScheduledTransactionResponse.d.ts +2 -7
- package/dist/esm/models/ScheduledTransactionResponse.js +8 -16
- package/dist/esm/models/ScheduledTransactionResponseData.d.ts +2 -7
- package/dist/esm/models/ScheduledTransactionResponseData.js +8 -16
- package/dist/esm/models/ScheduledTransactionSummary.d.ts +9 -8
- package/dist/esm/models/ScheduledTransactionSummary.js +38 -39
- package/dist/esm/models/ScheduledTransactionsResponse.d.ts +2 -7
- package/dist/esm/models/ScheduledTransactionsResponse.js +8 -16
- package/dist/esm/models/ScheduledTransactionsResponseData.d.ts +2 -7
- package/dist/esm/models/ScheduledTransactionsResponseData.js +11 -18
- package/dist/esm/models/SubTransaction.d.ts +2 -7
- package/dist/esm/models/SubTransaction.js +31 -37
- package/dist/esm/models/TransactionClearedStatus.d.ts +3 -7
- package/dist/esm/models/TransactionClearedStatus.js +11 -6
- package/dist/esm/models/TransactionDetail.d.ts +12 -11
- package/dist/esm/models/TransactionDetail.js +62 -61
- package/dist/esm/models/TransactionFlagColor.d.ts +3 -7
- package/dist/esm/models/TransactionFlagColor.js +11 -6
- package/dist/esm/models/TransactionResponse.d.ts +2 -7
- package/dist/esm/models/TransactionResponse.js +8 -16
- package/dist/esm/models/TransactionResponseData.d.ts +2 -7
- package/dist/esm/models/TransactionResponseData.js +8 -16
- package/dist/esm/models/TransactionSummary.d.ts +11 -10
- package/dist/esm/models/TransactionSummary.js +51 -52
- package/dist/esm/models/TransactionsImportResponse.d.ts +2 -7
- package/dist/esm/models/TransactionsImportResponse.js +8 -16
- package/dist/esm/models/TransactionsImportResponseData.d.ts +2 -7
- package/dist/esm/models/TransactionsImportResponseData.js +8 -16
- package/dist/esm/models/TransactionsResponse.d.ts +2 -7
- package/dist/esm/models/TransactionsResponse.js +8 -16
- package/dist/esm/models/TransactionsResponseData.d.ts +2 -7
- package/dist/esm/models/TransactionsResponseData.js +11 -18
- package/dist/esm/models/User.d.ts +2 -7
- package/dist/esm/models/User.js +8 -16
- package/dist/esm/models/UserResponse.d.ts +2 -7
- package/dist/esm/models/UserResponse.js +8 -16
- package/dist/esm/models/UserResponseData.d.ts +2 -7
- package/dist/esm/models/UserResponseData.js +8 -16
- package/dist/esm/models/index.d.ts +10 -9
- package/dist/esm/models/index.js +10 -9
- package/dist/esm/runtime.d.ts +10 -15
- package/dist/esm/runtime.js +2 -7
- package/package.json +1 -1
|
@@ -4,27 +4,22 @@
|
|
|
4
4
|
* YNAB API Endpoints
|
|
5
5
|
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
6
6
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
7
|
+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
13
8
|
*/
|
|
14
9
|
import { AccountFromJSON, AccountToJSON, } from './Account';
|
|
15
10
|
/**
|
|
16
11
|
* Check if a given object implements the AccountResponseData interface.
|
|
17
12
|
*/
|
|
18
13
|
export function instanceOfAccountResponseData(value) {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
return
|
|
14
|
+
if (!('account' in value) || value['account'] === undefined)
|
|
15
|
+
return false;
|
|
16
|
+
return true;
|
|
22
17
|
}
|
|
23
18
|
export function AccountResponseDataFromJSON(json) {
|
|
24
19
|
return AccountResponseDataFromJSONTyped(json, false);
|
|
25
20
|
}
|
|
26
21
|
export function AccountResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
-
if (
|
|
22
|
+
if (json == null) {
|
|
28
23
|
return json;
|
|
29
24
|
}
|
|
30
25
|
return {
|
|
@@ -32,13 +27,10 @@ export function AccountResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
27
|
};
|
|
33
28
|
}
|
|
34
29
|
export function AccountResponseDataToJSON(value) {
|
|
35
|
-
if (value
|
|
36
|
-
return
|
|
37
|
-
}
|
|
38
|
-
if (value === null) {
|
|
39
|
-
return null;
|
|
30
|
+
if (value == null) {
|
|
31
|
+
return value;
|
|
40
32
|
}
|
|
41
33
|
return {
|
|
42
|
-
'account': AccountToJSON(value
|
|
34
|
+
'account': AccountToJSON(value['account']),
|
|
43
35
|
};
|
|
44
36
|
}
|
|
@@ -2,12 +2,7 @@
|
|
|
2
2
|
* YNAB API Endpoints
|
|
3
3
|
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
5
|
+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
11
6
|
*/
|
|
12
7
|
/**
|
|
13
8
|
* The type of account
|
|
@@ -28,7 +23,8 @@ export declare const AccountType: {
|
|
|
28
23
|
readonly MedicalDebt: "medicalDebt";
|
|
29
24
|
readonly OtherDebt: "otherDebt";
|
|
30
25
|
};
|
|
31
|
-
export
|
|
26
|
+
export type AccountType = typeof AccountType[keyof typeof AccountType];
|
|
27
|
+
export declare function instanceOfAccountType(value: any): boolean;
|
|
32
28
|
export declare function AccountTypeFromJSON(json: any): AccountType;
|
|
33
29
|
export declare function AccountTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountType;
|
|
34
30
|
export declare function AccountTypeToJSON(value?: AccountType | null): any;
|
|
@@ -4,12 +4,7 @@
|
|
|
4
4
|
* YNAB API Endpoints
|
|
5
5
|
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
6
6
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
7
|
+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
13
8
|
*/
|
|
14
9
|
/**
|
|
15
10
|
* The type of account
|
|
@@ -30,6 +25,16 @@ export var AccountType = {
|
|
|
30
25
|
MedicalDebt: 'medicalDebt',
|
|
31
26
|
OtherDebt: 'otherDebt'
|
|
32
27
|
};
|
|
28
|
+
export function instanceOfAccountType(value) {
|
|
29
|
+
for (var key in AccountType) {
|
|
30
|
+
if (Object.prototype.hasOwnProperty.call(AccountType, key)) {
|
|
31
|
+
if (AccountType[key] === value) {
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
33
38
|
export function AccountTypeFromJSON(json) {
|
|
34
39
|
return AccountTypeFromJSONTyped(json, false);
|
|
35
40
|
}
|
|
@@ -2,12 +2,7 @@
|
|
|
2
2
|
* YNAB API Endpoints
|
|
3
3
|
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
5
|
+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
11
6
|
*/
|
|
12
7
|
import type { AccountsResponseData } from './AccountsResponseData';
|
|
13
8
|
/**
|
|
@@ -26,7 +21,7 @@ export interface AccountsResponse {
|
|
|
26
21
|
/**
|
|
27
22
|
* Check if a given object implements the AccountsResponse interface.
|
|
28
23
|
*/
|
|
29
|
-
export declare function instanceOfAccountsResponse(value: object):
|
|
24
|
+
export declare function instanceOfAccountsResponse(value: object): value is AccountsResponse;
|
|
30
25
|
export declare function AccountsResponseFromJSON(json: any): AccountsResponse;
|
|
31
26
|
export declare function AccountsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountsResponse;
|
|
32
27
|
export declare function AccountsResponseToJSON(value?: AccountsResponse | null): any;
|
|
@@ -4,27 +4,22 @@
|
|
|
4
4
|
* YNAB API Endpoints
|
|
5
5
|
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
6
6
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
7
|
+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
13
8
|
*/
|
|
14
9
|
import { AccountsResponseDataFromJSON, AccountsResponseDataToJSON, } from './AccountsResponseData';
|
|
15
10
|
/**
|
|
16
11
|
* Check if a given object implements the AccountsResponse interface.
|
|
17
12
|
*/
|
|
18
13
|
export function instanceOfAccountsResponse(value) {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
return
|
|
14
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
15
|
+
return false;
|
|
16
|
+
return true;
|
|
22
17
|
}
|
|
23
18
|
export function AccountsResponseFromJSON(json) {
|
|
24
19
|
return AccountsResponseFromJSONTyped(json, false);
|
|
25
20
|
}
|
|
26
21
|
export function AccountsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
-
if (
|
|
22
|
+
if (json == null) {
|
|
28
23
|
return json;
|
|
29
24
|
}
|
|
30
25
|
return {
|
|
@@ -32,13 +27,10 @@ export function AccountsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
27
|
};
|
|
33
28
|
}
|
|
34
29
|
export function AccountsResponseToJSON(value) {
|
|
35
|
-
if (value
|
|
36
|
-
return
|
|
37
|
-
}
|
|
38
|
-
if (value === null) {
|
|
39
|
-
return null;
|
|
30
|
+
if (value == null) {
|
|
31
|
+
return value;
|
|
40
32
|
}
|
|
41
33
|
return {
|
|
42
|
-
'data': AccountsResponseDataToJSON(value
|
|
34
|
+
'data': AccountsResponseDataToJSON(value['data']),
|
|
43
35
|
};
|
|
44
36
|
}
|
|
@@ -2,12 +2,7 @@
|
|
|
2
2
|
* YNAB API Endpoints
|
|
3
3
|
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
5
|
+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
11
6
|
*/
|
|
12
7
|
import type { Account } from './Account';
|
|
13
8
|
/**
|
|
@@ -32,7 +27,7 @@ export interface AccountsResponseData {
|
|
|
32
27
|
/**
|
|
33
28
|
* Check if a given object implements the AccountsResponseData interface.
|
|
34
29
|
*/
|
|
35
|
-
export declare function instanceOfAccountsResponseData(value: object):
|
|
30
|
+
export declare function instanceOfAccountsResponseData(value: object): value is AccountsResponseData;
|
|
36
31
|
export declare function AccountsResponseDataFromJSON(json: any): AccountsResponseData;
|
|
37
32
|
export declare function AccountsResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountsResponseData;
|
|
38
33
|
export declare function AccountsResponseDataToJSON(value?: AccountsResponseData | null): any;
|
|
@@ -4,28 +4,24 @@
|
|
|
4
4
|
* YNAB API Endpoints
|
|
5
5
|
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
6
6
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
7
|
+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
13
8
|
*/
|
|
14
9
|
import { AccountFromJSON, AccountToJSON, } from './Account';
|
|
15
10
|
/**
|
|
16
11
|
* Check if a given object implements the AccountsResponseData interface.
|
|
17
12
|
*/
|
|
18
13
|
export function instanceOfAccountsResponseData(value) {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
14
|
+
if (!('accounts' in value) || value['accounts'] === undefined)
|
|
15
|
+
return false;
|
|
16
|
+
if (!('server_knowledge' in value) || value['server_knowledge'] === undefined)
|
|
17
|
+
return false;
|
|
18
|
+
return true;
|
|
23
19
|
}
|
|
24
20
|
export function AccountsResponseDataFromJSON(json) {
|
|
25
21
|
return AccountsResponseDataFromJSONTyped(json, false);
|
|
26
22
|
}
|
|
27
23
|
export function AccountsResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
-
if (
|
|
24
|
+
if (json == null) {
|
|
29
25
|
return json;
|
|
30
26
|
}
|
|
31
27
|
return {
|
|
@@ -34,14 +30,11 @@ export function AccountsResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
30
|
};
|
|
35
31
|
}
|
|
36
32
|
export function AccountsResponseDataToJSON(value) {
|
|
37
|
-
if (value
|
|
38
|
-
return
|
|
39
|
-
}
|
|
40
|
-
if (value === null) {
|
|
41
|
-
return null;
|
|
33
|
+
if (value == null) {
|
|
34
|
+
return value;
|
|
42
35
|
}
|
|
43
36
|
return {
|
|
44
|
-
'accounts': (value
|
|
45
|
-
'server_knowledge': value
|
|
37
|
+
'accounts': (value['accounts'].map(AccountToJSON)),
|
|
38
|
+
'server_knowledge': value['server_knowledge'],
|
|
46
39
|
};
|
|
47
40
|
}
|
|
@@ -2,25 +2,20 @@
|
|
|
2
2
|
* YNAB API Endpoints
|
|
3
3
|
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
5
|
+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
11
6
|
*/
|
|
7
|
+
import type { PayeeLocation } from './PayeeLocation';
|
|
12
8
|
import type { Account } from './Account';
|
|
9
|
+
import type { ScheduledTransactionSummary } from './ScheduledTransactionSummary';
|
|
13
10
|
import type { Category } from './Category';
|
|
14
|
-
import type { CategoryGroup } from './CategoryGroup';
|
|
15
11
|
import type { CurrencyFormat } from './CurrencyFormat';
|
|
16
12
|
import type { DateFormat } from './DateFormat';
|
|
13
|
+
import type { SubTransaction } from './SubTransaction';
|
|
17
14
|
import type { MonthDetail } from './MonthDetail';
|
|
18
15
|
import type { Payee } from './Payee';
|
|
19
|
-
import type { PayeeLocation } from './PayeeLocation';
|
|
20
16
|
import type { ScheduledSubTransaction } from './ScheduledSubTransaction';
|
|
21
|
-
import type { ScheduledTransactionSummary } from './ScheduledTransactionSummary';
|
|
22
|
-
import type { SubTransaction } from './SubTransaction';
|
|
23
17
|
import type { TransactionSummary } from './TransactionSummary';
|
|
18
|
+
import type { CategoryGroup } from './CategoryGroup';
|
|
24
19
|
/**
|
|
25
20
|
*
|
|
26
21
|
* @export
|
|
@@ -133,7 +128,7 @@ export interface BudgetDetail {
|
|
|
133
128
|
/**
|
|
134
129
|
* Check if a given object implements the BudgetDetail interface.
|
|
135
130
|
*/
|
|
136
|
-
export declare function instanceOfBudgetDetail(value: object):
|
|
131
|
+
export declare function instanceOfBudgetDetail(value: object): value is BudgetDetail;
|
|
137
132
|
export declare function BudgetDetailFromJSON(json: any): BudgetDetail;
|
|
138
133
|
export declare function BudgetDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): BudgetDetail;
|
|
139
134
|
export declare function BudgetDetailToJSON(value?: BudgetDetail | null): any;
|
|
@@ -4,86 +4,78 @@
|
|
|
4
4
|
* YNAB API Endpoints
|
|
5
5
|
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
6
6
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
7
|
+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
13
8
|
*/
|
|
14
|
-
import {
|
|
9
|
+
import { PayeeLocationFromJSON, PayeeLocationToJSON, } from './PayeeLocation';
|
|
15
10
|
import { AccountFromJSON, AccountToJSON, } from './Account';
|
|
11
|
+
import { ScheduledTransactionSummaryFromJSON, ScheduledTransactionSummaryToJSON, } from './ScheduledTransactionSummary';
|
|
16
12
|
import { CategoryFromJSON, CategoryToJSON, } from './Category';
|
|
17
|
-
import { CategoryGroupFromJSON, CategoryGroupToJSON, } from './CategoryGroup';
|
|
18
13
|
import { CurrencyFormatFromJSON, CurrencyFormatToJSON, } from './CurrencyFormat';
|
|
19
14
|
import { DateFormatFromJSON, DateFormatToJSON, } from './DateFormat';
|
|
15
|
+
import { SubTransactionFromJSON, SubTransactionToJSON, } from './SubTransaction';
|
|
20
16
|
import { MonthDetailFromJSON, MonthDetailToJSON, } from './MonthDetail';
|
|
21
17
|
import { PayeeFromJSON, PayeeToJSON, } from './Payee';
|
|
22
|
-
import { PayeeLocationFromJSON, PayeeLocationToJSON, } from './PayeeLocation';
|
|
23
18
|
import { ScheduledSubTransactionFromJSON, ScheduledSubTransactionToJSON, } from './ScheduledSubTransaction';
|
|
24
|
-
import { ScheduledTransactionSummaryFromJSON, ScheduledTransactionSummaryToJSON, } from './ScheduledTransactionSummary';
|
|
25
|
-
import { SubTransactionFromJSON, SubTransactionToJSON, } from './SubTransaction';
|
|
26
19
|
import { TransactionSummaryFromJSON, TransactionSummaryToJSON, } from './TransactionSummary';
|
|
20
|
+
import { CategoryGroupFromJSON, CategoryGroupToJSON, } from './CategoryGroup';
|
|
27
21
|
/**
|
|
28
22
|
* Check if a given object implements the BudgetDetail interface.
|
|
29
23
|
*/
|
|
30
24
|
export function instanceOfBudgetDetail(value) {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
35
30
|
}
|
|
36
31
|
export function BudgetDetailFromJSON(json) {
|
|
37
32
|
return BudgetDetailFromJSONTyped(json, false);
|
|
38
33
|
}
|
|
39
34
|
export function BudgetDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
-
if (
|
|
35
|
+
if (json == null) {
|
|
41
36
|
return json;
|
|
42
37
|
}
|
|
43
38
|
return {
|
|
44
39
|
'id': json['id'],
|
|
45
40
|
'name': json['name'],
|
|
46
|
-
'last_modified_on':
|
|
47
|
-
'first_month':
|
|
48
|
-
'last_month':
|
|
49
|
-
'date_format':
|
|
50
|
-
'currency_format':
|
|
51
|
-
'accounts':
|
|
52
|
-
'payees':
|
|
53
|
-
'payee_locations':
|
|
54
|
-
'category_groups':
|
|
55
|
-
'categories':
|
|
56
|
-
'months':
|
|
57
|
-
'transactions':
|
|
58
|
-
'subtransactions':
|
|
59
|
-
'scheduled_transactions':
|
|
60
|
-
'scheduled_subtransactions':
|
|
41
|
+
'last_modified_on': json['last_modified_on'] == null ? undefined : json['last_modified_on'],
|
|
42
|
+
'first_month': json['first_month'] == null ? undefined : json['first_month'],
|
|
43
|
+
'last_month': json['last_month'] == null ? undefined : json['last_month'],
|
|
44
|
+
'date_format': json['date_format'] == null ? undefined : DateFormatFromJSON(json['date_format']),
|
|
45
|
+
'currency_format': json['currency_format'] == null ? undefined : CurrencyFormatFromJSON(json['currency_format']),
|
|
46
|
+
'accounts': json['accounts'] == null ? undefined : (json['accounts'].map(AccountFromJSON)),
|
|
47
|
+
'payees': json['payees'] == null ? undefined : (json['payees'].map(PayeeFromJSON)),
|
|
48
|
+
'payee_locations': json['payee_locations'] == null ? undefined : (json['payee_locations'].map(PayeeLocationFromJSON)),
|
|
49
|
+
'category_groups': json['category_groups'] == null ? undefined : (json['category_groups'].map(CategoryGroupFromJSON)),
|
|
50
|
+
'categories': json['categories'] == null ? undefined : (json['categories'].map(CategoryFromJSON)),
|
|
51
|
+
'months': json['months'] == null ? undefined : (json['months'].map(MonthDetailFromJSON)),
|
|
52
|
+
'transactions': json['transactions'] == null ? undefined : (json['transactions'].map(TransactionSummaryFromJSON)),
|
|
53
|
+
'subtransactions': json['subtransactions'] == null ? undefined : (json['subtransactions'].map(SubTransactionFromJSON)),
|
|
54
|
+
'scheduled_transactions': json['scheduled_transactions'] == null ? undefined : (json['scheduled_transactions'].map(ScheduledTransactionSummaryFromJSON)),
|
|
55
|
+
'scheduled_subtransactions': json['scheduled_subtransactions'] == null ? undefined : (json['scheduled_subtransactions'].map(ScheduledSubTransactionFromJSON)),
|
|
61
56
|
};
|
|
62
57
|
}
|
|
63
58
|
export function BudgetDetailToJSON(value) {
|
|
64
|
-
if (value
|
|
65
|
-
return
|
|
66
|
-
}
|
|
67
|
-
if (value === null) {
|
|
68
|
-
return null;
|
|
59
|
+
if (value == null) {
|
|
60
|
+
return value;
|
|
69
61
|
}
|
|
70
62
|
return {
|
|
71
|
-
'id': value
|
|
72
|
-
'name': value
|
|
73
|
-
'last_modified_on': value
|
|
74
|
-
'first_month': value
|
|
75
|
-
'last_month': value
|
|
76
|
-
'date_format': DateFormatToJSON(value
|
|
77
|
-
'currency_format': CurrencyFormatToJSON(value
|
|
78
|
-
'accounts': value
|
|
79
|
-
'payees': value
|
|
80
|
-
'payee_locations': value
|
|
81
|
-
'category_groups': value
|
|
82
|
-
'categories': value
|
|
83
|
-
'months': value
|
|
84
|
-
'transactions': value
|
|
85
|
-
'subtransactions': value
|
|
86
|
-
'scheduled_transactions': value
|
|
87
|
-
'scheduled_subtransactions': value
|
|
63
|
+
'id': value['id'],
|
|
64
|
+
'name': value['name'],
|
|
65
|
+
'last_modified_on': value['last_modified_on'],
|
|
66
|
+
'first_month': value['first_month'],
|
|
67
|
+
'last_month': value['last_month'],
|
|
68
|
+
'date_format': DateFormatToJSON(value['date_format']),
|
|
69
|
+
'currency_format': CurrencyFormatToJSON(value['currency_format']),
|
|
70
|
+
'accounts': value['accounts'] == null ? undefined : (value['accounts'].map(AccountToJSON)),
|
|
71
|
+
'payees': value['payees'] == null ? undefined : (value['payees'].map(PayeeToJSON)),
|
|
72
|
+
'payee_locations': value['payee_locations'] == null ? undefined : (value['payee_locations'].map(PayeeLocationToJSON)),
|
|
73
|
+
'category_groups': value['category_groups'] == null ? undefined : (value['category_groups'].map(CategoryGroupToJSON)),
|
|
74
|
+
'categories': value['categories'] == null ? undefined : (value['categories'].map(CategoryToJSON)),
|
|
75
|
+
'months': value['months'] == null ? undefined : (value['months'].map(MonthDetailToJSON)),
|
|
76
|
+
'transactions': value['transactions'] == null ? undefined : (value['transactions'].map(TransactionSummaryToJSON)),
|
|
77
|
+
'subtransactions': value['subtransactions'] == null ? undefined : (value['subtransactions'].map(SubTransactionToJSON)),
|
|
78
|
+
'scheduled_transactions': value['scheduled_transactions'] == null ? undefined : (value['scheduled_transactions'].map(ScheduledTransactionSummaryToJSON)),
|
|
79
|
+
'scheduled_subtransactions': value['scheduled_subtransactions'] == null ? undefined : (value['scheduled_subtransactions'].map(ScheduledSubTransactionToJSON)),
|
|
88
80
|
};
|
|
89
81
|
}
|
|
@@ -2,12 +2,7 @@
|
|
|
2
2
|
* YNAB API Endpoints
|
|
3
3
|
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
5
|
+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
11
6
|
*/
|
|
12
7
|
import type { BudgetDetailResponseData } from './BudgetDetailResponseData';
|
|
13
8
|
/**
|
|
@@ -26,7 +21,7 @@ export interface BudgetDetailResponse {
|
|
|
26
21
|
/**
|
|
27
22
|
* Check if a given object implements the BudgetDetailResponse interface.
|
|
28
23
|
*/
|
|
29
|
-
export declare function instanceOfBudgetDetailResponse(value: object):
|
|
24
|
+
export declare function instanceOfBudgetDetailResponse(value: object): value is BudgetDetailResponse;
|
|
30
25
|
export declare function BudgetDetailResponseFromJSON(json: any): BudgetDetailResponse;
|
|
31
26
|
export declare function BudgetDetailResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): BudgetDetailResponse;
|
|
32
27
|
export declare function BudgetDetailResponseToJSON(value?: BudgetDetailResponse | null): any;
|
|
@@ -4,27 +4,22 @@
|
|
|
4
4
|
* YNAB API Endpoints
|
|
5
5
|
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
6
6
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
7
|
+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
13
8
|
*/
|
|
14
9
|
import { BudgetDetailResponseDataFromJSON, BudgetDetailResponseDataToJSON, } from './BudgetDetailResponseData';
|
|
15
10
|
/**
|
|
16
11
|
* Check if a given object implements the BudgetDetailResponse interface.
|
|
17
12
|
*/
|
|
18
13
|
export function instanceOfBudgetDetailResponse(value) {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
return
|
|
14
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
15
|
+
return false;
|
|
16
|
+
return true;
|
|
22
17
|
}
|
|
23
18
|
export function BudgetDetailResponseFromJSON(json) {
|
|
24
19
|
return BudgetDetailResponseFromJSONTyped(json, false);
|
|
25
20
|
}
|
|
26
21
|
export function BudgetDetailResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
-
if (
|
|
22
|
+
if (json == null) {
|
|
28
23
|
return json;
|
|
29
24
|
}
|
|
30
25
|
return {
|
|
@@ -32,13 +27,10 @@ export function BudgetDetailResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
27
|
};
|
|
33
28
|
}
|
|
34
29
|
export function BudgetDetailResponseToJSON(value) {
|
|
35
|
-
if (value
|
|
36
|
-
return
|
|
37
|
-
}
|
|
38
|
-
if (value === null) {
|
|
39
|
-
return null;
|
|
30
|
+
if (value == null) {
|
|
31
|
+
return value;
|
|
40
32
|
}
|
|
41
33
|
return {
|
|
42
|
-
'data': BudgetDetailResponseDataToJSON(value
|
|
34
|
+
'data': BudgetDetailResponseDataToJSON(value['data']),
|
|
43
35
|
};
|
|
44
36
|
}
|
|
@@ -2,12 +2,7 @@
|
|
|
2
2
|
* YNAB API Endpoints
|
|
3
3
|
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
5
|
+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
11
6
|
*/
|
|
12
7
|
import type { BudgetDetail } from './BudgetDetail';
|
|
13
8
|
/**
|
|
@@ -32,7 +27,7 @@ export interface BudgetDetailResponseData {
|
|
|
32
27
|
/**
|
|
33
28
|
* Check if a given object implements the BudgetDetailResponseData interface.
|
|
34
29
|
*/
|
|
35
|
-
export declare function instanceOfBudgetDetailResponseData(value: object):
|
|
30
|
+
export declare function instanceOfBudgetDetailResponseData(value: object): value is BudgetDetailResponseData;
|
|
36
31
|
export declare function BudgetDetailResponseDataFromJSON(json: any): BudgetDetailResponseData;
|
|
37
32
|
export declare function BudgetDetailResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): BudgetDetailResponseData;
|
|
38
33
|
export declare function BudgetDetailResponseDataToJSON(value?: BudgetDetailResponseData | null): any;
|
|
@@ -4,28 +4,24 @@
|
|
|
4
4
|
* YNAB API Endpoints
|
|
5
5
|
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
6
6
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
7
|
+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
13
8
|
*/
|
|
14
9
|
import { BudgetDetailFromJSON, BudgetDetailToJSON, } from './BudgetDetail';
|
|
15
10
|
/**
|
|
16
11
|
* Check if a given object implements the BudgetDetailResponseData interface.
|
|
17
12
|
*/
|
|
18
13
|
export function instanceOfBudgetDetailResponseData(value) {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
14
|
+
if (!('budget' in value) || value['budget'] === undefined)
|
|
15
|
+
return false;
|
|
16
|
+
if (!('server_knowledge' in value) || value['server_knowledge'] === undefined)
|
|
17
|
+
return false;
|
|
18
|
+
return true;
|
|
23
19
|
}
|
|
24
20
|
export function BudgetDetailResponseDataFromJSON(json) {
|
|
25
21
|
return BudgetDetailResponseDataFromJSONTyped(json, false);
|
|
26
22
|
}
|
|
27
23
|
export function BudgetDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
-
if (
|
|
24
|
+
if (json == null) {
|
|
29
25
|
return json;
|
|
30
26
|
}
|
|
31
27
|
return {
|
|
@@ -34,14 +30,11 @@ export function BudgetDetailResponseDataFromJSONTyped(json, ignoreDiscriminator)
|
|
|
34
30
|
};
|
|
35
31
|
}
|
|
36
32
|
export function BudgetDetailResponseDataToJSON(value) {
|
|
37
|
-
if (value
|
|
38
|
-
return
|
|
39
|
-
}
|
|
40
|
-
if (value === null) {
|
|
41
|
-
return null;
|
|
33
|
+
if (value == null) {
|
|
34
|
+
return value;
|
|
42
35
|
}
|
|
43
36
|
return {
|
|
44
|
-
'budget': BudgetDetailToJSON(value
|
|
45
|
-
'server_knowledge': value
|
|
37
|
+
'budget': BudgetDetailToJSON(value['budget']),
|
|
38
|
+
'server_knowledge': value['server_knowledge'],
|
|
46
39
|
};
|
|
47
40
|
}
|
|
@@ -2,12 +2,7 @@
|
|
|
2
2
|
* YNAB API Endpoints
|
|
3
3
|
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
5
|
+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
11
6
|
*/
|
|
12
7
|
import type { CurrencyFormat } from './CurrencyFormat';
|
|
13
8
|
import type { DateFormat } from './DateFormat';
|
|
@@ -33,7 +28,7 @@ export interface BudgetSettings {
|
|
|
33
28
|
/**
|
|
34
29
|
* Check if a given object implements the BudgetSettings interface.
|
|
35
30
|
*/
|
|
36
|
-
export declare function instanceOfBudgetSettings(value: object):
|
|
31
|
+
export declare function instanceOfBudgetSettings(value: object): value is BudgetSettings;
|
|
37
32
|
export declare function BudgetSettingsFromJSON(json: any): BudgetSettings;
|
|
38
33
|
export declare function BudgetSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): BudgetSettings;
|
|
39
34
|
export declare function BudgetSettingsToJSON(value?: BudgetSettings | null): any;
|