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,14 +4,8 @@
|
|
|
4
4
|
* YNAB API Endpoints
|
|
5
5
|
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
6
6
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
7
|
+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
13
8
|
*/
|
|
14
|
-
import { exists } from '../runtime';
|
|
15
9
|
import { TransactionFlagColorFromJSON, TransactionFlagColorToJSON, } from './TransactionFlagColor';
|
|
16
10
|
/**
|
|
17
11
|
* @export
|
|
@@ -35,21 +29,27 @@ export var ScheduledTransactionSummaryFrequencyEnum = {
|
|
|
35
29
|
* Check if a given object implements the ScheduledTransactionSummary interface.
|
|
36
30
|
*/
|
|
37
31
|
export function instanceOfScheduledTransactionSummary(value) {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
32
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('date_first' in value) || value['date_first'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('date_next' in value) || value['date_next'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('frequency' in value) || value['frequency'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('amount' in value) || value['amount'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('account_id' in value) || value['account_id'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('deleted' in value) || value['deleted'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
return true;
|
|
47
47
|
}
|
|
48
48
|
export function ScheduledTransactionSummaryFromJSON(json) {
|
|
49
49
|
return ScheduledTransactionSummaryFromJSONTyped(json, false);
|
|
50
50
|
}
|
|
51
51
|
export function ScheduledTransactionSummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
52
|
-
if (
|
|
52
|
+
if (json == null) {
|
|
53
53
|
return json;
|
|
54
54
|
}
|
|
55
55
|
return {
|
|
@@ -58,34 +58,33 @@ export function ScheduledTransactionSummaryFromJSONTyped(json, ignoreDiscriminat
|
|
|
58
58
|
'date_next': json['date_next'],
|
|
59
59
|
'frequency': json['frequency'],
|
|
60
60
|
'amount': json['amount'],
|
|
61
|
-
'memo':
|
|
62
|
-
'flag_color':
|
|
61
|
+
'memo': json['memo'] == null ? undefined : json['memo'],
|
|
62
|
+
'flag_color': json['flag_color'] == null ? undefined : TransactionFlagColorFromJSON(json['flag_color']),
|
|
63
|
+
'flag_name': json['flag_name'] == null ? undefined : json['flag_name'],
|
|
63
64
|
'account_id': json['account_id'],
|
|
64
|
-
'payee_id':
|
|
65
|
-
'category_id':
|
|
66
|
-
'transfer_account_id':
|
|
65
|
+
'payee_id': json['payee_id'] == null ? undefined : json['payee_id'],
|
|
66
|
+
'category_id': json['category_id'] == null ? undefined : json['category_id'],
|
|
67
|
+
'transfer_account_id': json['transfer_account_id'] == null ? undefined : json['transfer_account_id'],
|
|
67
68
|
'deleted': json['deleted'],
|
|
68
69
|
};
|
|
69
70
|
}
|
|
70
71
|
export function ScheduledTransactionSummaryToJSON(value) {
|
|
71
|
-
if (value
|
|
72
|
-
return
|
|
73
|
-
}
|
|
74
|
-
if (value === null) {
|
|
75
|
-
return null;
|
|
72
|
+
if (value == null) {
|
|
73
|
+
return value;
|
|
76
74
|
}
|
|
77
75
|
return {
|
|
78
|
-
'id': value
|
|
79
|
-
'date_first': value
|
|
80
|
-
'date_next': value
|
|
81
|
-
'frequency': value
|
|
82
|
-
'amount': value
|
|
83
|
-
'memo': value
|
|
84
|
-
'flag_color': TransactionFlagColorToJSON(value
|
|
85
|
-
'
|
|
86
|
-
'
|
|
87
|
-
'
|
|
88
|
-
'
|
|
89
|
-
'
|
|
76
|
+
'id': value['id'],
|
|
77
|
+
'date_first': value['date_first'],
|
|
78
|
+
'date_next': value['date_next'],
|
|
79
|
+
'frequency': value['frequency'],
|
|
80
|
+
'amount': value['amount'],
|
|
81
|
+
'memo': value['memo'],
|
|
82
|
+
'flag_color': TransactionFlagColorToJSON(value['flag_color']),
|
|
83
|
+
'flag_name': value['flag_name'],
|
|
84
|
+
'account_id': value['account_id'],
|
|
85
|
+
'payee_id': value['payee_id'],
|
|
86
|
+
'category_id': value['category_id'],
|
|
87
|
+
'transfer_account_id': value['transfer_account_id'],
|
|
88
|
+
'deleted': value['deleted'],
|
|
90
89
|
};
|
|
91
90
|
}
|
|
@@ -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 { ScheduledTransactionsResponseData } from './ScheduledTransactionsResponseData';
|
|
13
8
|
/**
|
|
@@ -26,7 +21,7 @@ export interface ScheduledTransactionsResponse {
|
|
|
26
21
|
/**
|
|
27
22
|
* Check if a given object implements the ScheduledTransactionsResponse interface.
|
|
28
23
|
*/
|
|
29
|
-
export declare function instanceOfScheduledTransactionsResponse(value: object):
|
|
24
|
+
export declare function instanceOfScheduledTransactionsResponse(value: object): value is ScheduledTransactionsResponse;
|
|
30
25
|
export declare function ScheduledTransactionsResponseFromJSON(json: any): ScheduledTransactionsResponse;
|
|
31
26
|
export declare function ScheduledTransactionsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduledTransactionsResponse;
|
|
32
27
|
export declare function ScheduledTransactionsResponseToJSON(value?: ScheduledTransactionsResponse | 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 { ScheduledTransactionsResponseDataFromJSON, ScheduledTransactionsResponseDataToJSON, } from './ScheduledTransactionsResponseData';
|
|
15
10
|
/**
|
|
16
11
|
* Check if a given object implements the ScheduledTransactionsResponse interface.
|
|
17
12
|
*/
|
|
18
13
|
export function instanceOfScheduledTransactionsResponse(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 ScheduledTransactionsResponseFromJSON(json) {
|
|
24
19
|
return ScheduledTransactionsResponseFromJSONTyped(json, false);
|
|
25
20
|
}
|
|
26
21
|
export function ScheduledTransactionsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
-
if (
|
|
22
|
+
if (json == null) {
|
|
28
23
|
return json;
|
|
29
24
|
}
|
|
30
25
|
return {
|
|
@@ -32,13 +27,10 @@ export function ScheduledTransactionsResponseFromJSONTyped(json, ignoreDiscrimin
|
|
|
32
27
|
};
|
|
33
28
|
}
|
|
34
29
|
export function ScheduledTransactionsResponseToJSON(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': ScheduledTransactionsResponseDataToJSON(value
|
|
34
|
+
'data': ScheduledTransactionsResponseDataToJSON(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 { ScheduledTransactionDetail } from './ScheduledTransactionDetail';
|
|
13
8
|
/**
|
|
@@ -32,7 +27,7 @@ export interface ScheduledTransactionsResponseData {
|
|
|
32
27
|
/**
|
|
33
28
|
* Check if a given object implements the ScheduledTransactionsResponseData interface.
|
|
34
29
|
*/
|
|
35
|
-
export declare function instanceOfScheduledTransactionsResponseData(value: object):
|
|
30
|
+
export declare function instanceOfScheduledTransactionsResponseData(value: object): value is ScheduledTransactionsResponseData;
|
|
36
31
|
export declare function ScheduledTransactionsResponseDataFromJSON(json: any): ScheduledTransactionsResponseData;
|
|
37
32
|
export declare function ScheduledTransactionsResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduledTransactionsResponseData;
|
|
38
33
|
export declare function ScheduledTransactionsResponseDataToJSON(value?: ScheduledTransactionsResponseData | 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 { ScheduledTransactionDetailFromJSON, ScheduledTransactionDetailToJSON, } from './ScheduledTransactionDetail';
|
|
15
10
|
/**
|
|
16
11
|
* Check if a given object implements the ScheduledTransactionsResponseData interface.
|
|
17
12
|
*/
|
|
18
13
|
export function instanceOfScheduledTransactionsResponseData(value) {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
14
|
+
if (!('scheduled_transactions' in value) || value['scheduled_transactions'] === 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 ScheduledTransactionsResponseDataFromJSON(json) {
|
|
25
21
|
return ScheduledTransactionsResponseDataFromJSONTyped(json, false);
|
|
26
22
|
}
|
|
27
23
|
export function ScheduledTransactionsResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
-
if (
|
|
24
|
+
if (json == null) {
|
|
29
25
|
return json;
|
|
30
26
|
}
|
|
31
27
|
return {
|
|
@@ -34,14 +30,11 @@ export function ScheduledTransactionsResponseDataFromJSONTyped(json, ignoreDiscr
|
|
|
34
30
|
};
|
|
35
31
|
}
|
|
36
32
|
export function ScheduledTransactionsResponseDataToJSON(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
|
-
'scheduled_transactions': (value
|
|
45
|
-
'server_knowledge': value
|
|
37
|
+
'scheduled_transactions': (value['scheduled_transactions'].map(ScheduledTransactionDetailToJSON)),
|
|
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
|
/**
|
|
13
8
|
*
|
|
@@ -85,7 +80,7 @@ export interface SubTransaction {
|
|
|
85
80
|
/**
|
|
86
81
|
* Check if a given object implements the SubTransaction interface.
|
|
87
82
|
*/
|
|
88
|
-
export declare function instanceOfSubTransaction(value: object):
|
|
83
|
+
export declare function instanceOfSubTransaction(value: object): value is SubTransaction;
|
|
89
84
|
export declare function SubTransactionFromJSON(json: any): SubTransaction;
|
|
90
85
|
export declare function SubTransactionFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubTransaction;
|
|
91
86
|
export declare function SubTransactionToJSON(value?: SubTransaction | null): any;
|
|
@@ -4,64 +4,58 @@
|
|
|
4
4
|
* YNAB API Endpoints
|
|
5
5
|
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
6
6
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
7
|
+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
13
8
|
*/
|
|
14
|
-
import { exists } from '../runtime';
|
|
15
9
|
/**
|
|
16
10
|
* Check if a given object implements the SubTransaction interface.
|
|
17
11
|
*/
|
|
18
12
|
export function instanceOfSubTransaction(value) {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
13
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
14
|
+
return false;
|
|
15
|
+
if (!('transaction_id' in value) || value['transaction_id'] === undefined)
|
|
16
|
+
return false;
|
|
17
|
+
if (!('amount' in value) || value['amount'] === undefined)
|
|
18
|
+
return false;
|
|
19
|
+
if (!('deleted' in value) || value['deleted'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
return true;
|
|
25
22
|
}
|
|
26
23
|
export function SubTransactionFromJSON(json) {
|
|
27
24
|
return SubTransactionFromJSONTyped(json, false);
|
|
28
25
|
}
|
|
29
26
|
export function SubTransactionFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
-
if (
|
|
27
|
+
if (json == null) {
|
|
31
28
|
return json;
|
|
32
29
|
}
|
|
33
30
|
return {
|
|
34
31
|
'id': json['id'],
|
|
35
32
|
'transaction_id': json['transaction_id'],
|
|
36
33
|
'amount': json['amount'],
|
|
37
|
-
'memo':
|
|
38
|
-
'payee_id':
|
|
39
|
-
'payee_name':
|
|
40
|
-
'category_id':
|
|
41
|
-
'category_name':
|
|
42
|
-
'transfer_account_id':
|
|
43
|
-
'transfer_transaction_id':
|
|
34
|
+
'memo': json['memo'] == null ? undefined : json['memo'],
|
|
35
|
+
'payee_id': json['payee_id'] == null ? undefined : json['payee_id'],
|
|
36
|
+
'payee_name': json['payee_name'] == null ? undefined : json['payee_name'],
|
|
37
|
+
'category_id': json['category_id'] == null ? undefined : json['category_id'],
|
|
38
|
+
'category_name': json['category_name'] == null ? undefined : json['category_name'],
|
|
39
|
+
'transfer_account_id': json['transfer_account_id'] == null ? undefined : json['transfer_account_id'],
|
|
40
|
+
'transfer_transaction_id': json['transfer_transaction_id'] == null ? undefined : json['transfer_transaction_id'],
|
|
44
41
|
'deleted': json['deleted'],
|
|
45
42
|
};
|
|
46
43
|
}
|
|
47
44
|
export function SubTransactionToJSON(value) {
|
|
48
|
-
if (value
|
|
49
|
-
return
|
|
50
|
-
}
|
|
51
|
-
if (value === null) {
|
|
52
|
-
return null;
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
53
47
|
}
|
|
54
48
|
return {
|
|
55
|
-
'id': value
|
|
56
|
-
'transaction_id': value
|
|
57
|
-
'amount': value
|
|
58
|
-
'memo': value
|
|
59
|
-
'payee_id': value
|
|
60
|
-
'payee_name': value
|
|
61
|
-
'category_id': value
|
|
62
|
-
'category_name': value
|
|
63
|
-
'transfer_account_id': value
|
|
64
|
-
'transfer_transaction_id': value
|
|
65
|
-
'deleted': value
|
|
49
|
+
'id': value['id'],
|
|
50
|
+
'transaction_id': value['transaction_id'],
|
|
51
|
+
'amount': value['amount'],
|
|
52
|
+
'memo': value['memo'],
|
|
53
|
+
'payee_id': value['payee_id'],
|
|
54
|
+
'payee_name': value['payee_name'],
|
|
55
|
+
'category_id': value['category_id'],
|
|
56
|
+
'category_name': value['category_name'],
|
|
57
|
+
'transfer_account_id': value['transfer_account_id'],
|
|
58
|
+
'transfer_transaction_id': value['transfer_transaction_id'],
|
|
59
|
+
'deleted': value['deleted'],
|
|
66
60
|
};
|
|
67
61
|
}
|
|
@@ -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 cleared status of the transaction
|
|
@@ -18,7 +13,8 @@ export declare const TransactionClearedStatus: {
|
|
|
18
13
|
readonly Uncleared: "uncleared";
|
|
19
14
|
readonly Reconciled: "reconciled";
|
|
20
15
|
};
|
|
21
|
-
export
|
|
16
|
+
export type TransactionClearedStatus = typeof TransactionClearedStatus[keyof typeof TransactionClearedStatus];
|
|
17
|
+
export declare function instanceOfTransactionClearedStatus(value: any): boolean;
|
|
22
18
|
export declare function TransactionClearedStatusFromJSON(json: any): TransactionClearedStatus;
|
|
23
19
|
export declare function TransactionClearedStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionClearedStatus;
|
|
24
20
|
export declare function TransactionClearedStatusToJSON(value?: TransactionClearedStatus | 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 cleared status of the transaction
|
|
@@ -20,6 +15,16 @@ export var TransactionClearedStatus = {
|
|
|
20
15
|
Uncleared: 'uncleared',
|
|
21
16
|
Reconciled: 'reconciled'
|
|
22
17
|
};
|
|
18
|
+
export function instanceOfTransactionClearedStatus(value) {
|
|
19
|
+
for (var key in TransactionClearedStatus) {
|
|
20
|
+
if (Object.prototype.hasOwnProperty.call(TransactionClearedStatus, key)) {
|
|
21
|
+
if (TransactionClearedStatus[key] === value) {
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
return false;
|
|
27
|
+
}
|
|
23
28
|
export function TransactionClearedStatusFromJSON(json) {
|
|
24
29
|
return TransactionClearedStatusFromJSONTyped(json, false);
|
|
25
30
|
}
|
|
@@ -2,16 +2,11 @@
|
|
|
2
2
|
* YNAB API Endpoints
|
|
3
3
|
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
5
|
+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
11
6
|
*/
|
|
12
|
-
import type { SubTransaction } from './SubTransaction';
|
|
13
|
-
import type { TransactionClearedStatus } from './TransactionClearedStatus';
|
|
14
7
|
import type { TransactionFlagColor } from './TransactionFlagColor';
|
|
8
|
+
import type { TransactionClearedStatus } from './TransactionClearedStatus';
|
|
9
|
+
import type { SubTransaction } from './SubTransaction';
|
|
15
10
|
/**
|
|
16
11
|
*
|
|
17
12
|
* @export
|
|
@@ -60,6 +55,12 @@ export interface TransactionDetail {
|
|
|
60
55
|
* @memberof TransactionDetail
|
|
61
56
|
*/
|
|
62
57
|
flag_color?: TransactionFlagColor | null;
|
|
58
|
+
/**
|
|
59
|
+
* The customized name of a transaction flag
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof TransactionDetail
|
|
62
|
+
*/
|
|
63
|
+
flag_name?: string | null;
|
|
63
64
|
/**
|
|
64
65
|
*
|
|
65
66
|
* @type {string}
|
|
@@ -119,7 +120,7 @@ export interface TransactionDetail {
|
|
|
119
120
|
* @type {string}
|
|
120
121
|
* @memberof TransactionDetail
|
|
121
122
|
*/
|
|
122
|
-
debt_transaction_type?: TransactionDetailDebtTransactionTypeEnum;
|
|
123
|
+
debt_transaction_type?: TransactionDetailDebtTransactionTypeEnum | null;
|
|
123
124
|
/**
|
|
124
125
|
* Whether or not the transaction has been deleted. Deleted transactions will only be included in delta requests.
|
|
125
126
|
* @type {boolean}
|
|
@@ -164,11 +165,11 @@ export declare const TransactionDetailDebtTransactionTypeEnum: {
|
|
|
164
165
|
readonly Credit: "credit";
|
|
165
166
|
readonly Charge: "charge";
|
|
166
167
|
};
|
|
167
|
-
export
|
|
168
|
+
export type TransactionDetailDebtTransactionTypeEnum = typeof TransactionDetailDebtTransactionTypeEnum[keyof typeof TransactionDetailDebtTransactionTypeEnum];
|
|
168
169
|
/**
|
|
169
170
|
* Check if a given object implements the TransactionDetail interface.
|
|
170
171
|
*/
|
|
171
|
-
export declare function instanceOfTransactionDetail(value: object):
|
|
172
|
+
export declare function instanceOfTransactionDetail(value: object): value is TransactionDetail;
|
|
172
173
|
export declare function TransactionDetailFromJSON(json: any): TransactionDetail;
|
|
173
174
|
export declare function TransactionDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionDetail;
|
|
174
175
|
export declare function TransactionDetailToJSON(value?: TransactionDetail | null): any;
|