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
|
@@ -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).
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.ScheduledTransactionDetailToJSON = exports.ScheduledTransactionDetailFromJSONTyped = exports.ScheduledTransactionDetailFromJSON = exports.instanceOfScheduledTransactionDetail = exports.
|
|
17
|
-
const
|
|
16
|
+
exports.ScheduledTransactionDetailToJSON = exports.ScheduledTransactionDetailFromJSONTyped = exports.ScheduledTransactionDetailFromJSON = exports.instanceOfScheduledTransactionDetail = exports.ScheduledTransactionDetailFrequencyEnum = void 0;
|
|
17
|
+
const TransactionFlagColor_1 = require("./TransactionFlagColor");
|
|
18
18
|
const ScheduledSubTransaction_1 = require("./ScheduledSubTransaction");
|
|
19
19
|
/**
|
|
20
20
|
* @export
|
|
@@ -34,33 +34,29 @@ exports.ScheduledTransactionDetailFrequencyEnum = {
|
|
|
34
34
|
Yearly: 'yearly',
|
|
35
35
|
EveryOtherYear: 'everyOtherYear'
|
|
36
36
|
};
|
|
37
|
-
/**
|
|
38
|
-
* @export
|
|
39
|
-
*/
|
|
40
|
-
exports.ScheduledTransactionDetailFlagColorEnum = {
|
|
41
|
-
Red: 'red',
|
|
42
|
-
Orange: 'orange',
|
|
43
|
-
Yellow: 'yellow',
|
|
44
|
-
Green: 'green',
|
|
45
|
-
Blue: 'blue',
|
|
46
|
-
Purple: 'purple',
|
|
47
|
-
Null: 'null'
|
|
48
|
-
};
|
|
49
37
|
/**
|
|
50
38
|
* Check if a given object implements the ScheduledTransactionDetail interface.
|
|
51
39
|
*/
|
|
52
40
|
function instanceOfScheduledTransactionDetail(value) {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
41
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('date_first' in value) || value['date_first'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('date_next' in value) || value['date_next'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('frequency' in value) || value['frequency'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
if (!('amount' in value) || value['amount'] === undefined)
|
|
50
|
+
return false;
|
|
51
|
+
if (!('account_id' in value) || value['account_id'] === undefined)
|
|
52
|
+
return false;
|
|
53
|
+
if (!('deleted' in value) || value['deleted'] === undefined)
|
|
54
|
+
return false;
|
|
55
|
+
if (!('account_name' in value) || value['account_name'] === undefined)
|
|
56
|
+
return false;
|
|
57
|
+
if (!('subtransactions' in value) || value['subtransactions'] === undefined)
|
|
58
|
+
return false;
|
|
59
|
+
return true;
|
|
64
60
|
}
|
|
65
61
|
exports.instanceOfScheduledTransactionDetail = instanceOfScheduledTransactionDetail;
|
|
66
62
|
function ScheduledTransactionDetailFromJSON(json) {
|
|
@@ -68,7 +64,7 @@ function ScheduledTransactionDetailFromJSON(json) {
|
|
|
68
64
|
}
|
|
69
65
|
exports.ScheduledTransactionDetailFromJSON = ScheduledTransactionDetailFromJSON;
|
|
70
66
|
function ScheduledTransactionDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
71
|
-
if (
|
|
67
|
+
if (json == null) {
|
|
72
68
|
return json;
|
|
73
69
|
}
|
|
74
70
|
return {
|
|
@@ -77,44 +73,43 @@ function ScheduledTransactionDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
77
73
|
'date_next': json['date_next'],
|
|
78
74
|
'frequency': json['frequency'],
|
|
79
75
|
'amount': json['amount'],
|
|
80
|
-
'memo':
|
|
81
|
-
'flag_color':
|
|
76
|
+
'memo': json['memo'] == null ? undefined : json['memo'],
|
|
77
|
+
'flag_color': json['flag_color'] == null ? undefined : (0, TransactionFlagColor_1.TransactionFlagColorFromJSON)(json['flag_color']),
|
|
78
|
+
'flag_name': json['flag_name'] == null ? undefined : json['flag_name'],
|
|
82
79
|
'account_id': json['account_id'],
|
|
83
|
-
'payee_id':
|
|
84
|
-
'category_id':
|
|
85
|
-
'transfer_account_id':
|
|
80
|
+
'payee_id': json['payee_id'] == null ? undefined : json['payee_id'],
|
|
81
|
+
'category_id': json['category_id'] == null ? undefined : json['category_id'],
|
|
82
|
+
'transfer_account_id': json['transfer_account_id'] == null ? undefined : json['transfer_account_id'],
|
|
86
83
|
'deleted': json['deleted'],
|
|
87
84
|
'account_name': json['account_name'],
|
|
88
|
-
'payee_name':
|
|
89
|
-
'category_name':
|
|
85
|
+
'payee_name': json['payee_name'] == null ? undefined : json['payee_name'],
|
|
86
|
+
'category_name': json['category_name'] == null ? undefined : json['category_name'],
|
|
90
87
|
'subtransactions': (json['subtransactions'].map(ScheduledSubTransaction_1.ScheduledSubTransactionFromJSON)),
|
|
91
88
|
};
|
|
92
89
|
}
|
|
93
90
|
exports.ScheduledTransactionDetailFromJSONTyped = ScheduledTransactionDetailFromJSONTyped;
|
|
94
91
|
function ScheduledTransactionDetailToJSON(value) {
|
|
95
|
-
if (value
|
|
96
|
-
return
|
|
97
|
-
}
|
|
98
|
-
if (value === null) {
|
|
99
|
-
return null;
|
|
92
|
+
if (value == null) {
|
|
93
|
+
return value;
|
|
100
94
|
}
|
|
101
95
|
return {
|
|
102
|
-
'id': value
|
|
103
|
-
'date_first': value
|
|
104
|
-
'date_next': value
|
|
105
|
-
'frequency': value
|
|
106
|
-
'amount': value
|
|
107
|
-
'memo': value
|
|
108
|
-
'flag_color': value
|
|
109
|
-
'
|
|
110
|
-
'
|
|
111
|
-
'
|
|
112
|
-
'
|
|
113
|
-
'
|
|
114
|
-
'
|
|
115
|
-
'
|
|
116
|
-
'
|
|
117
|
-
'
|
|
96
|
+
'id': value['id'],
|
|
97
|
+
'date_first': value['date_first'],
|
|
98
|
+
'date_next': value['date_next'],
|
|
99
|
+
'frequency': value['frequency'],
|
|
100
|
+
'amount': value['amount'],
|
|
101
|
+
'memo': value['memo'],
|
|
102
|
+
'flag_color': (0, TransactionFlagColor_1.TransactionFlagColorToJSON)(value['flag_color']),
|
|
103
|
+
'flag_name': value['flag_name'],
|
|
104
|
+
'account_id': value['account_id'],
|
|
105
|
+
'payee_id': value['payee_id'],
|
|
106
|
+
'category_id': value['category_id'],
|
|
107
|
+
'transfer_account_id': value['transfer_account_id'],
|
|
108
|
+
'deleted': value['deleted'],
|
|
109
|
+
'account_name': value['account_name'],
|
|
110
|
+
'payee_name': value['payee_name'],
|
|
111
|
+
'category_name': value['category_name'],
|
|
112
|
+
'subtransactions': (value['subtransactions'].map(ScheduledSubTransaction_1.ScheduledSubTransactionToJSON)),
|
|
118
113
|
};
|
|
119
114
|
}
|
|
120
115
|
exports.ScheduledTransactionDetailToJSON = ScheduledTransactionDetailToJSON;
|
|
@@ -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 ScheduledTransactionResponse {
|
|
|
26
26
|
/**
|
|
27
27
|
* Check if a given object implements the ScheduledTransactionResponse interface.
|
|
28
28
|
*/
|
|
29
|
-
export declare function instanceOfScheduledTransactionResponse(value: object):
|
|
29
|
+
export declare function instanceOfScheduledTransactionResponse(value: object): value is ScheduledTransactionResponse;
|
|
30
30
|
export declare function ScheduledTransactionResponseFromJSON(json: any): ScheduledTransactionResponse;
|
|
31
31
|
export declare function ScheduledTransactionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduledTransactionResponse;
|
|
32
32
|
export declare function ScheduledTransactionResponseToJSON(value?: ScheduledTransactionResponse | 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 ScheduledTransactionResponseData_1 = require("./ScheduledTransactionRespon
|
|
|
19
19
|
* Check if a given object implements the ScheduledTransactionResponse interface.
|
|
20
20
|
*/
|
|
21
21
|
function instanceOfScheduledTransactionResponse(value) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return
|
|
22
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
25
|
}
|
|
26
26
|
exports.instanceOfScheduledTransactionResponse = instanceOfScheduledTransactionResponse;
|
|
27
27
|
function ScheduledTransactionResponseFromJSON(json) {
|
|
@@ -29,7 +29,7 @@ function ScheduledTransactionResponseFromJSON(json) {
|
|
|
29
29
|
}
|
|
30
30
|
exports.ScheduledTransactionResponseFromJSON = ScheduledTransactionResponseFromJSON;
|
|
31
31
|
function ScheduledTransactionResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (
|
|
32
|
+
if (json == null) {
|
|
33
33
|
return json;
|
|
34
34
|
}
|
|
35
35
|
return {
|
|
@@ -38,14 +38,11 @@ function ScheduledTransactionResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
38
|
}
|
|
39
39
|
exports.ScheduledTransactionResponseFromJSONTyped = ScheduledTransactionResponseFromJSONTyped;
|
|
40
40
|
function ScheduledTransactionResponseToJSON(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, ScheduledTransactionResponseData_1.ScheduledTransactionResponseDataToJSON)(value
|
|
45
|
+
'data': (0, ScheduledTransactionResponseData_1.ScheduledTransactionResponseDataToJSON)(value['data']),
|
|
49
46
|
};
|
|
50
47
|
}
|
|
51
48
|
exports.ScheduledTransactionResponseToJSON = ScheduledTransactionResponseToJSON;
|
|
@@ -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 ScheduledTransactionResponseData {
|
|
|
26
26
|
/**
|
|
27
27
|
* Check if a given object implements the ScheduledTransactionResponseData interface.
|
|
28
28
|
*/
|
|
29
|
-
export declare function instanceOfScheduledTransactionResponseData(value: object):
|
|
29
|
+
export declare function instanceOfScheduledTransactionResponseData(value: object): value is ScheduledTransactionResponseData;
|
|
30
30
|
export declare function ScheduledTransactionResponseDataFromJSON(json: any): ScheduledTransactionResponseData;
|
|
31
31
|
export declare function ScheduledTransactionResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduledTransactionResponseData;
|
|
32
32
|
export declare function ScheduledTransactionResponseDataToJSON(value?: ScheduledTransactionResponseData | 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 ScheduledTransactionDetail_1 = require("./ScheduledTransactionDetail");
|
|
|
19
19
|
* Check if a given object implements the ScheduledTransactionResponseData interface.
|
|
20
20
|
*/
|
|
21
21
|
function instanceOfScheduledTransactionResponseData(value) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return
|
|
22
|
+
if (!('scheduled_transaction' in value) || value['scheduled_transaction'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
25
|
}
|
|
26
26
|
exports.instanceOfScheduledTransactionResponseData = instanceOfScheduledTransactionResponseData;
|
|
27
27
|
function ScheduledTransactionResponseDataFromJSON(json) {
|
|
@@ -29,7 +29,7 @@ function ScheduledTransactionResponseDataFromJSON(json) {
|
|
|
29
29
|
}
|
|
30
30
|
exports.ScheduledTransactionResponseDataFromJSON = ScheduledTransactionResponseDataFromJSON;
|
|
31
31
|
function ScheduledTransactionResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (
|
|
32
|
+
if (json == null) {
|
|
33
33
|
return json;
|
|
34
34
|
}
|
|
35
35
|
return {
|
|
@@ -38,14 +38,11 @@ function ScheduledTransactionResponseDataFromJSONTyped(json, ignoreDiscriminator
|
|
|
38
38
|
}
|
|
39
39
|
exports.ScheduledTransactionResponseDataFromJSONTyped = ScheduledTransactionResponseDataFromJSONTyped;
|
|
40
40
|
function ScheduledTransactionResponseDataToJSON(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
|
-
'scheduled_transaction': (0, ScheduledTransactionDetail_1.ScheduledTransactionDetailToJSON)(value
|
|
45
|
+
'scheduled_transaction': (0, ScheduledTransactionDetail_1.ScheduledTransactionDetailToJSON)(value['scheduled_transaction']),
|
|
49
46
|
};
|
|
50
47
|
}
|
|
51
48
|
exports.ScheduledTransactionResponseDataToJSON = ScheduledTransactionResponseDataToJSON;
|
|
@@ -2,13 +2,14 @@
|
|
|
2
2
|
* YNAB API Endpoints
|
|
3
3
|
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.70.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { TransactionFlagColor } from './TransactionFlagColor';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -50,13 +51,19 @@ export interface ScheduledTransactionSummary {
|
|
|
50
51
|
* @type {string}
|
|
51
52
|
* @memberof ScheduledTransactionSummary
|
|
52
53
|
*/
|
|
53
|
-
memo?: string
|
|
54
|
+
memo?: string;
|
|
54
55
|
/**
|
|
55
|
-
*
|
|
56
|
+
*
|
|
57
|
+
* @type {TransactionFlagColor}
|
|
58
|
+
* @memberof ScheduledTransactionSummary
|
|
59
|
+
*/
|
|
60
|
+
flag_color?: TransactionFlagColor;
|
|
61
|
+
/**
|
|
62
|
+
* The customized name of a transaction flag
|
|
56
63
|
* @type {string}
|
|
57
64
|
* @memberof ScheduledTransactionSummary
|
|
58
65
|
*/
|
|
59
|
-
|
|
66
|
+
flag_name?: string;
|
|
60
67
|
/**
|
|
61
68
|
*
|
|
62
69
|
* @type {string}
|
|
@@ -68,19 +75,19 @@ export interface ScheduledTransactionSummary {
|
|
|
68
75
|
* @type {string}
|
|
69
76
|
* @memberof ScheduledTransactionSummary
|
|
70
77
|
*/
|
|
71
|
-
payee_id?: string
|
|
78
|
+
payee_id?: string;
|
|
72
79
|
/**
|
|
73
80
|
*
|
|
74
81
|
* @type {string}
|
|
75
82
|
* @memberof ScheduledTransactionSummary
|
|
76
83
|
*/
|
|
77
|
-
category_id?: string
|
|
84
|
+
category_id?: string;
|
|
78
85
|
/**
|
|
79
86
|
* If a transfer, the account_id which the scheduled transaction transfers to
|
|
80
87
|
* @type {string}
|
|
81
88
|
* @memberof ScheduledTransactionSummary
|
|
82
89
|
*/
|
|
83
|
-
transfer_account_id?: string
|
|
90
|
+
transfer_account_id?: string;
|
|
84
91
|
/**
|
|
85
92
|
* Whether or not the scheduled transaction has been deleted. Deleted scheduled transactions will only be included in delta requests.
|
|
86
93
|
* @type {boolean}
|
|
@@ -106,24 +113,11 @@ export declare const ScheduledTransactionSummaryFrequencyEnum: {
|
|
|
106
113
|
readonly Yearly: "yearly";
|
|
107
114
|
readonly EveryOtherYear: "everyOtherYear";
|
|
108
115
|
};
|
|
109
|
-
export
|
|
110
|
-
/**
|
|
111
|
-
* @export
|
|
112
|
-
*/
|
|
113
|
-
export declare const ScheduledTransactionSummaryFlagColorEnum: {
|
|
114
|
-
readonly Red: "red";
|
|
115
|
-
readonly Orange: "orange";
|
|
116
|
-
readonly Yellow: "yellow";
|
|
117
|
-
readonly Green: "green";
|
|
118
|
-
readonly Blue: "blue";
|
|
119
|
-
readonly Purple: "purple";
|
|
120
|
-
readonly Null: "null";
|
|
121
|
-
};
|
|
122
|
-
export declare type ScheduledTransactionSummaryFlagColorEnum = typeof ScheduledTransactionSummaryFlagColorEnum[keyof typeof ScheduledTransactionSummaryFlagColorEnum];
|
|
116
|
+
export type ScheduledTransactionSummaryFrequencyEnum = typeof ScheduledTransactionSummaryFrequencyEnum[keyof typeof ScheduledTransactionSummaryFrequencyEnum];
|
|
123
117
|
/**
|
|
124
118
|
* Check if a given object implements the ScheduledTransactionSummary interface.
|
|
125
119
|
*/
|
|
126
|
-
export declare function instanceOfScheduledTransactionSummary(value: object):
|
|
120
|
+
export declare function instanceOfScheduledTransactionSummary(value: object): value is ScheduledTransactionSummary;
|
|
127
121
|
export declare function ScheduledTransactionSummaryFromJSON(json: any): ScheduledTransactionSummary;
|
|
128
122
|
export declare function ScheduledTransactionSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduledTransactionSummary;
|
|
129
123
|
export declare function ScheduledTransactionSummaryToJSON(value?: ScheduledTransactionSummary | 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).
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.ScheduledTransactionSummaryToJSON = exports.ScheduledTransactionSummaryFromJSONTyped = exports.ScheduledTransactionSummaryFromJSON = exports.instanceOfScheduledTransactionSummary = exports.
|
|
17
|
-
const
|
|
16
|
+
exports.ScheduledTransactionSummaryToJSON = exports.ScheduledTransactionSummaryFromJSONTyped = exports.ScheduledTransactionSummaryFromJSON = exports.instanceOfScheduledTransactionSummary = exports.ScheduledTransactionSummaryFrequencyEnum = void 0;
|
|
17
|
+
const TransactionFlagColor_1 = require("./TransactionFlagColor");
|
|
18
18
|
/**
|
|
19
19
|
* @export
|
|
20
20
|
*/
|
|
@@ -33,31 +33,25 @@ exports.ScheduledTransactionSummaryFrequencyEnum = {
|
|
|
33
33
|
Yearly: 'yearly',
|
|
34
34
|
EveryOtherYear: 'everyOtherYear'
|
|
35
35
|
};
|
|
36
|
-
/**
|
|
37
|
-
* @export
|
|
38
|
-
*/
|
|
39
|
-
exports.ScheduledTransactionSummaryFlagColorEnum = {
|
|
40
|
-
Red: 'red',
|
|
41
|
-
Orange: 'orange',
|
|
42
|
-
Yellow: 'yellow',
|
|
43
|
-
Green: 'green',
|
|
44
|
-
Blue: 'blue',
|
|
45
|
-
Purple: 'purple',
|
|
46
|
-
Null: 'null'
|
|
47
|
-
};
|
|
48
36
|
/**
|
|
49
37
|
* Check if a given object implements the ScheduledTransactionSummary interface.
|
|
50
38
|
*/
|
|
51
39
|
function instanceOfScheduledTransactionSummary(value) {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
40
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('date_first' in value) || value['date_first'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('date_next' in value) || value['date_next'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('frequency' in value) || value['frequency'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('amount' in value) || value['amount'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
if (!('account_id' in value) || value['account_id'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
if (!('deleted' in value) || value['deleted'] === undefined)
|
|
53
|
+
return false;
|
|
54
|
+
return true;
|
|
61
55
|
}
|
|
62
56
|
exports.instanceOfScheduledTransactionSummary = instanceOfScheduledTransactionSummary;
|
|
63
57
|
function ScheduledTransactionSummaryFromJSON(json) {
|
|
@@ -65,7 +59,7 @@ function ScheduledTransactionSummaryFromJSON(json) {
|
|
|
65
59
|
}
|
|
66
60
|
exports.ScheduledTransactionSummaryFromJSON = ScheduledTransactionSummaryFromJSON;
|
|
67
61
|
function ScheduledTransactionSummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
68
|
-
if (
|
|
62
|
+
if (json == null) {
|
|
69
63
|
return json;
|
|
70
64
|
}
|
|
71
65
|
return {
|
|
@@ -74,36 +68,35 @@ function ScheduledTransactionSummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
74
68
|
'date_next': json['date_next'],
|
|
75
69
|
'frequency': json['frequency'],
|
|
76
70
|
'amount': json['amount'],
|
|
77
|
-
'memo':
|
|
78
|
-
'flag_color':
|
|
71
|
+
'memo': json['memo'] == null ? undefined : json['memo'],
|
|
72
|
+
'flag_color': json['flag_color'] == null ? undefined : (0, TransactionFlagColor_1.TransactionFlagColorFromJSON)(json['flag_color']),
|
|
73
|
+
'flag_name': json['flag_name'] == null ? undefined : json['flag_name'],
|
|
79
74
|
'account_id': json['account_id'],
|
|
80
|
-
'payee_id':
|
|
81
|
-
'category_id':
|
|
82
|
-
'transfer_account_id':
|
|
75
|
+
'payee_id': json['payee_id'] == null ? undefined : json['payee_id'],
|
|
76
|
+
'category_id': json['category_id'] == null ? undefined : json['category_id'],
|
|
77
|
+
'transfer_account_id': json['transfer_account_id'] == null ? undefined : json['transfer_account_id'],
|
|
83
78
|
'deleted': json['deleted'],
|
|
84
79
|
};
|
|
85
80
|
}
|
|
86
81
|
exports.ScheduledTransactionSummaryFromJSONTyped = ScheduledTransactionSummaryFromJSONTyped;
|
|
87
82
|
function ScheduledTransactionSummaryToJSON(value) {
|
|
88
|
-
if (value
|
|
89
|
-
return
|
|
90
|
-
}
|
|
91
|
-
if (value === null) {
|
|
92
|
-
return null;
|
|
83
|
+
if (value == null) {
|
|
84
|
+
return value;
|
|
93
85
|
}
|
|
94
86
|
return {
|
|
95
|
-
'id': value
|
|
96
|
-
'date_first': value
|
|
97
|
-
'date_next': value
|
|
98
|
-
'frequency': value
|
|
99
|
-
'amount': value
|
|
100
|
-
'memo': value
|
|
101
|
-
'flag_color': value
|
|
102
|
-
'
|
|
103
|
-
'
|
|
104
|
-
'
|
|
105
|
-
'
|
|
106
|
-
'
|
|
87
|
+
'id': value['id'],
|
|
88
|
+
'date_first': value['date_first'],
|
|
89
|
+
'date_next': value['date_next'],
|
|
90
|
+
'frequency': value['frequency'],
|
|
91
|
+
'amount': value['amount'],
|
|
92
|
+
'memo': value['memo'],
|
|
93
|
+
'flag_color': (0, TransactionFlagColor_1.TransactionFlagColorToJSON)(value['flag_color']),
|
|
94
|
+
'flag_name': value['flag_name'],
|
|
95
|
+
'account_id': value['account_id'],
|
|
96
|
+
'payee_id': value['payee_id'],
|
|
97
|
+
'category_id': value['category_id'],
|
|
98
|
+
'transfer_account_id': value['transfer_account_id'],
|
|
99
|
+
'deleted': value['deleted'],
|
|
107
100
|
};
|
|
108
101
|
}
|
|
109
102
|
exports.ScheduledTransactionSummaryToJSON = ScheduledTransactionSummaryToJSON;
|
|
@@ -0,0 +1,25 @@
|
|
|
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.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* The scheduled transaction flag
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ScheduledTransactionSummaryFlagColor
|
|
16
|
+
*/
|
|
17
|
+
export interface ScheduledTransactionSummaryFlagColor {
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Check if a given object implements the ScheduledTransactionSummaryFlagColor interface.
|
|
21
|
+
*/
|
|
22
|
+
export declare function instanceOfScheduledTransactionSummaryFlagColor(value: object): boolean;
|
|
23
|
+
export declare function ScheduledTransactionSummaryFlagColorFromJSON(json: any): ScheduledTransactionSummaryFlagColor;
|
|
24
|
+
export declare function ScheduledTransactionSummaryFlagColorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduledTransactionSummaryFlagColor;
|
|
25
|
+
export declare function ScheduledTransactionSummaryFlagColorToJSON(value?: ScheduledTransactionSummaryFlagColor | null): any;
|
|
@@ -0,0 +1,36 @@
|
|
|
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.0.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.ScheduledTransactionSummaryFlagColorToJSON = exports.ScheduledTransactionSummaryFlagColorFromJSONTyped = exports.ScheduledTransactionSummaryFlagColorFromJSON = exports.instanceOfScheduledTransactionSummaryFlagColor = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the ScheduledTransactionSummaryFlagColor interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfScheduledTransactionSummaryFlagColor(value) {
|
|
21
|
+
let isInstance = true;
|
|
22
|
+
return isInstance;
|
|
23
|
+
}
|
|
24
|
+
exports.instanceOfScheduledTransactionSummaryFlagColor = instanceOfScheduledTransactionSummaryFlagColor;
|
|
25
|
+
function ScheduledTransactionSummaryFlagColorFromJSON(json) {
|
|
26
|
+
return ScheduledTransactionSummaryFlagColorFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
exports.ScheduledTransactionSummaryFlagColorFromJSON = ScheduledTransactionSummaryFlagColorFromJSON;
|
|
29
|
+
function ScheduledTransactionSummaryFlagColorFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
exports.ScheduledTransactionSummaryFlagColorFromJSONTyped = ScheduledTransactionSummaryFlagColorFromJSONTyped;
|
|
33
|
+
function ScheduledTransactionSummaryFlagColorToJSON(value) {
|
|
34
|
+
return value;
|
|
35
|
+
}
|
|
36
|
+
exports.ScheduledTransactionSummaryFlagColorToJSON = ScheduledTransactionSummaryFlagColorToJSON;
|
|
@@ -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 ScheduledTransactionsResponse {
|
|
|
26
26
|
/**
|
|
27
27
|
* Check if a given object implements the ScheduledTransactionsResponse interface.
|
|
28
28
|
*/
|
|
29
|
-
export declare function instanceOfScheduledTransactionsResponse(value: object):
|
|
29
|
+
export declare function instanceOfScheduledTransactionsResponse(value: object): value is ScheduledTransactionsResponse;
|
|
30
30
|
export declare function ScheduledTransactionsResponseFromJSON(json: any): ScheduledTransactionsResponse;
|
|
31
31
|
export declare function ScheduledTransactionsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduledTransactionsResponse;
|
|
32
32
|
export declare function ScheduledTransactionsResponseToJSON(value?: ScheduledTransactionsResponse | 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 ScheduledTransactionsResponseData_1 = require("./ScheduledTransactionsResp
|
|
|
19
19
|
* Check if a given object implements the ScheduledTransactionsResponse interface.
|
|
20
20
|
*/
|
|
21
21
|
function instanceOfScheduledTransactionsResponse(value) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return
|
|
22
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
25
|
}
|
|
26
26
|
exports.instanceOfScheduledTransactionsResponse = instanceOfScheduledTransactionsResponse;
|
|
27
27
|
function ScheduledTransactionsResponseFromJSON(json) {
|
|
@@ -29,7 +29,7 @@ function ScheduledTransactionsResponseFromJSON(json) {
|
|
|
29
29
|
}
|
|
30
30
|
exports.ScheduledTransactionsResponseFromJSON = ScheduledTransactionsResponseFromJSON;
|
|
31
31
|
function ScheduledTransactionsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (
|
|
32
|
+
if (json == null) {
|
|
33
33
|
return json;
|
|
34
34
|
}
|
|
35
35
|
return {
|
|
@@ -38,14 +38,11 @@ function ScheduledTransactionsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
38
|
}
|
|
39
39
|
exports.ScheduledTransactionsResponseFromJSONTyped = ScheduledTransactionsResponseFromJSONTyped;
|
|
40
40
|
function ScheduledTransactionsResponseToJSON(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, ScheduledTransactionsResponseData_1.ScheduledTransactionsResponseDataToJSON)(value
|
|
45
|
+
'data': (0, ScheduledTransactionsResponseData_1.ScheduledTransactionsResponseDataToJSON)(value['data']),
|
|
49
46
|
};
|
|
50
47
|
}
|
|
51
48
|
exports.ScheduledTransactionsResponseToJSON = ScheduledTransactionsResponseToJSON;
|