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).
|
|
@@ -18,16 +18,23 @@ exports.CurrencyFormatToJSON = exports.CurrencyFormatFromJSONTyped = exports.Cur
|
|
|
18
18
|
* Check if a given object implements the CurrencyFormat interface.
|
|
19
19
|
*/
|
|
20
20
|
function instanceOfCurrencyFormat(value) {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
21
|
+
if (!('iso_code' in value) || value['iso_code'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('example_format' in value) || value['example_format'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('decimal_digits' in value) || value['decimal_digits'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('decimal_separator' in value) || value['decimal_separator'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('symbol_first' in value) || value['symbol_first'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('group_separator' in value) || value['group_separator'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('currency_symbol' in value) || value['currency_symbol'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('display_symbol' in value) || value['display_symbol'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
31
38
|
}
|
|
32
39
|
exports.instanceOfCurrencyFormat = instanceOfCurrencyFormat;
|
|
33
40
|
function CurrencyFormatFromJSON(json) {
|
|
@@ -35,7 +42,7 @@ function CurrencyFormatFromJSON(json) {
|
|
|
35
42
|
}
|
|
36
43
|
exports.CurrencyFormatFromJSON = CurrencyFormatFromJSON;
|
|
37
44
|
function CurrencyFormatFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
-
if (
|
|
45
|
+
if (json == null) {
|
|
39
46
|
return json;
|
|
40
47
|
}
|
|
41
48
|
return {
|
|
@@ -51,21 +58,18 @@ function CurrencyFormatFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
51
58
|
}
|
|
52
59
|
exports.CurrencyFormatFromJSONTyped = CurrencyFormatFromJSONTyped;
|
|
53
60
|
function CurrencyFormatToJSON(value) {
|
|
54
|
-
if (value
|
|
55
|
-
return
|
|
56
|
-
}
|
|
57
|
-
if (value === null) {
|
|
58
|
-
return null;
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
59
63
|
}
|
|
60
64
|
return {
|
|
61
|
-
'iso_code': value
|
|
62
|
-
'example_format': value
|
|
63
|
-
'decimal_digits': value
|
|
64
|
-
'decimal_separator': value
|
|
65
|
-
'symbol_first': value
|
|
66
|
-
'group_separator': value
|
|
67
|
-
'currency_symbol': value
|
|
68
|
-
'display_symbol': value
|
|
65
|
+
'iso_code': value['iso_code'],
|
|
66
|
+
'example_format': value['example_format'],
|
|
67
|
+
'decimal_digits': value['decimal_digits'],
|
|
68
|
+
'decimal_separator': value['decimal_separator'],
|
|
69
|
+
'symbol_first': value['symbol_first'],
|
|
70
|
+
'group_separator': value['group_separator'],
|
|
71
|
+
'currency_symbol': value['currency_symbol'],
|
|
72
|
+
'display_symbol': value['display_symbol'],
|
|
69
73
|
};
|
|
70
74
|
}
|
|
71
75
|
exports.CurrencyFormatToJSON = CurrencyFormatToJSON;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* YNAB API Endpoints
|
|
3
3
|
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.70.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -25,7 +25,7 @@ export interface DateFormat {
|
|
|
25
25
|
/**
|
|
26
26
|
* Check if a given object implements the DateFormat interface.
|
|
27
27
|
*/
|
|
28
|
-
export declare function instanceOfDateFormat(value: object):
|
|
28
|
+
export declare function instanceOfDateFormat(value: object): value is DateFormat;
|
|
29
29
|
export declare function DateFormatFromJSON(json: any): DateFormat;
|
|
30
30
|
export declare function DateFormatFromJSONTyped(json: any, ignoreDiscriminator: boolean): DateFormat;
|
|
31
31
|
export declare function DateFormatToJSON(value?: DateFormat | null): any;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* YNAB API Endpoints
|
|
6
6
|
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.70.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -18,9 +18,9 @@ exports.DateFormatToJSON = exports.DateFormatFromJSONTyped = exports.DateFormatF
|
|
|
18
18
|
* Check if a given object implements the DateFormat interface.
|
|
19
19
|
*/
|
|
20
20
|
function instanceOfDateFormat(value) {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
return
|
|
21
|
+
if (!('format' in value) || value['format'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
24
|
}
|
|
25
25
|
exports.instanceOfDateFormat = instanceOfDateFormat;
|
|
26
26
|
function DateFormatFromJSON(json) {
|
|
@@ -28,7 +28,7 @@ function DateFormatFromJSON(json) {
|
|
|
28
28
|
}
|
|
29
29
|
exports.DateFormatFromJSON = DateFormatFromJSON;
|
|
30
30
|
function DateFormatFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
-
if (
|
|
31
|
+
if (json == null) {
|
|
32
32
|
return json;
|
|
33
33
|
}
|
|
34
34
|
return {
|
|
@@ -37,14 +37,11 @@ function DateFormatFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
37
|
}
|
|
38
38
|
exports.DateFormatFromJSONTyped = DateFormatFromJSONTyped;
|
|
39
39
|
function DateFormatToJSON(value) {
|
|
40
|
-
if (value
|
|
41
|
-
return
|
|
42
|
-
}
|
|
43
|
-
if (value === null) {
|
|
44
|
-
return null;
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
45
42
|
}
|
|
46
43
|
return {
|
|
47
|
-
'format': value
|
|
44
|
+
'format': value['format'],
|
|
48
45
|
};
|
|
49
46
|
}
|
|
50
47
|
exports.DateFormatToJSON = DateFormatToJSON;
|
|
@@ -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).
|
|
@@ -37,7 +37,7 @@ export interface ErrorDetail {
|
|
|
37
37
|
/**
|
|
38
38
|
* Check if a given object implements the ErrorDetail interface.
|
|
39
39
|
*/
|
|
40
|
-
export declare function instanceOfErrorDetail(value: object):
|
|
40
|
+
export declare function instanceOfErrorDetail(value: object): value is ErrorDetail;
|
|
41
41
|
export declare function ErrorDetailFromJSON(json: any): ErrorDetail;
|
|
42
42
|
export declare function ErrorDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorDetail;
|
|
43
43
|
export declare function ErrorDetailToJSON(value?: ErrorDetail | null): any;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* YNAB API Endpoints
|
|
6
6
|
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.70.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -18,11 +18,13 @@ exports.ErrorDetailToJSON = exports.ErrorDetailFromJSONTyped = exports.ErrorDeta
|
|
|
18
18
|
* Check if a given object implements the ErrorDetail interface.
|
|
19
19
|
*/
|
|
20
20
|
function instanceOfErrorDetail(value) {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('detail' in value) || value['detail'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
26
28
|
}
|
|
27
29
|
exports.instanceOfErrorDetail = instanceOfErrorDetail;
|
|
28
30
|
function ErrorDetailFromJSON(json) {
|
|
@@ -30,7 +32,7 @@ function ErrorDetailFromJSON(json) {
|
|
|
30
32
|
}
|
|
31
33
|
exports.ErrorDetailFromJSON = ErrorDetailFromJSON;
|
|
32
34
|
function ErrorDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
-
if (
|
|
35
|
+
if (json == null) {
|
|
34
36
|
return json;
|
|
35
37
|
}
|
|
36
38
|
return {
|
|
@@ -41,16 +43,13 @@ function ErrorDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
43
|
}
|
|
42
44
|
exports.ErrorDetailFromJSONTyped = ErrorDetailFromJSONTyped;
|
|
43
45
|
function ErrorDetailToJSON(value) {
|
|
44
|
-
if (value
|
|
45
|
-
return
|
|
46
|
-
}
|
|
47
|
-
if (value === null) {
|
|
48
|
-
return null;
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
49
48
|
}
|
|
50
49
|
return {
|
|
51
|
-
'id': value
|
|
52
|
-
'name': value
|
|
53
|
-
'detail': value
|
|
50
|
+
'id': value['id'],
|
|
51
|
+
'name': value['name'],
|
|
52
|
+
'detail': value['detail'],
|
|
54
53
|
};
|
|
55
54
|
}
|
|
56
55
|
exports.ErrorDetailToJSON = ErrorDetailToJSON;
|
|
@@ -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 ErrorResponse {
|
|
|
26
26
|
/**
|
|
27
27
|
* Check if a given object implements the ErrorResponse interface.
|
|
28
28
|
*/
|
|
29
|
-
export declare function instanceOfErrorResponse(value: object):
|
|
29
|
+
export declare function instanceOfErrorResponse(value: object): value is ErrorResponse;
|
|
30
30
|
export declare function ErrorResponseFromJSON(json: any): ErrorResponse;
|
|
31
31
|
export declare function ErrorResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorResponse;
|
|
32
32
|
export declare function ErrorResponseToJSON(value?: ErrorResponse | 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 ErrorDetail_1 = require("./ErrorDetail");
|
|
|
19
19
|
* Check if a given object implements the ErrorResponse interface.
|
|
20
20
|
*/
|
|
21
21
|
function instanceOfErrorResponse(value) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return
|
|
22
|
+
if (!('error' in value) || value['error'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
25
|
}
|
|
26
26
|
exports.instanceOfErrorResponse = instanceOfErrorResponse;
|
|
27
27
|
function ErrorResponseFromJSON(json) {
|
|
@@ -29,7 +29,7 @@ function ErrorResponseFromJSON(json) {
|
|
|
29
29
|
}
|
|
30
30
|
exports.ErrorResponseFromJSON = ErrorResponseFromJSON;
|
|
31
31
|
function ErrorResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (
|
|
32
|
+
if (json == null) {
|
|
33
33
|
return json;
|
|
34
34
|
}
|
|
35
35
|
return {
|
|
@@ -38,14 +38,11 @@ function ErrorResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
38
|
}
|
|
39
39
|
exports.ErrorResponseFromJSONTyped = ErrorResponseFromJSONTyped;
|
|
40
40
|
function ErrorResponseToJSON(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
|
-
'error': (0, ErrorDetail_1.ErrorDetailToJSON)(value
|
|
45
|
+
'error': (0, ErrorDetail_1.ErrorDetailToJSON)(value['error']),
|
|
49
46
|
};
|
|
50
47
|
}
|
|
51
48
|
exports.ErrorResponseToJSON = ErrorResponseToJSON;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* YNAB API Endpoints
|
|
3
|
+
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.70.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { TransactionFlagColor } from './TransactionFlagColor';
|
|
13
|
+
import type { TransactionClearedStatus } from './TransactionClearedStatus';
|
|
14
|
+
import type { SaveSubTransaction } from './SaveSubTransaction';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface ExistingTransaction
|
|
19
|
+
*/
|
|
20
|
+
export interface ExistingTransaction {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof ExistingTransaction
|
|
25
|
+
*/
|
|
26
|
+
account_id?: string;
|
|
27
|
+
/**
|
|
28
|
+
* The transaction date in ISO format (e.g. 2016-12-01). Future dates (scheduled transactions) are not permitted. Split transaction dates cannot be changed and if a different date is supplied it will be ignored.
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof ExistingTransaction
|
|
31
|
+
*/
|
|
32
|
+
date?: string;
|
|
33
|
+
/**
|
|
34
|
+
* The transaction amount in milliunits format. Split transaction amounts cannot be changed and if a different amount is supplied it will be ignored.
|
|
35
|
+
* @type {number}
|
|
36
|
+
* @memberof ExistingTransaction
|
|
37
|
+
*/
|
|
38
|
+
amount?: number;
|
|
39
|
+
/**
|
|
40
|
+
* The payee for the transaction. To create a transfer between two accounts, use the account transfer payee pointing to the target account. Account transfer payees are specified as `tranfer_payee_id` on the account resource.
|
|
41
|
+
* @type {string}
|
|
42
|
+
* @memberof ExistingTransaction
|
|
43
|
+
*/
|
|
44
|
+
payee_id?: string;
|
|
45
|
+
/**
|
|
46
|
+
* The payee name. If a `payee_name` value is provided and `payee_id` has a null value, the `payee_name` value will be used to resolve the payee by either (1) a matching payee rename rule (only if `import_id` is also specified) or (2) a payee with the same name or (3) creation of a new payee.
|
|
47
|
+
* @type {string}
|
|
48
|
+
* @memberof ExistingTransaction
|
|
49
|
+
*/
|
|
50
|
+
payee_name?: string;
|
|
51
|
+
/**
|
|
52
|
+
* The category for the transaction. To configure a split transaction, you can specify null for `category_id` and provide a `subtransactions` array as part of the transaction object. If an existing transaction is a split, the `category_id` cannot be changed. Credit Card Payment categories are not permitted and will be ignored if supplied.
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof ExistingTransaction
|
|
55
|
+
*/
|
|
56
|
+
category_id?: string;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {string}
|
|
60
|
+
* @memberof ExistingTransaction
|
|
61
|
+
*/
|
|
62
|
+
memo?: string;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {TransactionClearedStatus}
|
|
66
|
+
* @memberof ExistingTransaction
|
|
67
|
+
*/
|
|
68
|
+
cleared?: TransactionClearedStatus;
|
|
69
|
+
/**
|
|
70
|
+
* Whether or not the transaction is approved. If not supplied, transaction will be unapproved by default.
|
|
71
|
+
* @type {boolean}
|
|
72
|
+
* @memberof ExistingTransaction
|
|
73
|
+
*/
|
|
74
|
+
approved?: boolean;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {TransactionFlagColor}
|
|
78
|
+
* @memberof ExistingTransaction
|
|
79
|
+
*/
|
|
80
|
+
flag_color?: TransactionFlagColor;
|
|
81
|
+
/**
|
|
82
|
+
* An array of subtransactions to configure a transaction as a split. Updating `subtransactions` on an existing split transaction is not supported.
|
|
83
|
+
* @type {Array<SaveSubTransaction>}
|
|
84
|
+
* @memberof ExistingTransaction
|
|
85
|
+
*/
|
|
86
|
+
subtransactions?: Array<SaveSubTransaction>;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Check if a given object implements the ExistingTransaction interface.
|
|
90
|
+
*/
|
|
91
|
+
export declare function instanceOfExistingTransaction(value: object): value is ExistingTransaction;
|
|
92
|
+
export declare function ExistingTransactionFromJSON(json: any): ExistingTransaction;
|
|
93
|
+
export declare function ExistingTransactionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExistingTransaction;
|
|
94
|
+
export declare function ExistingTransactionToJSON(value?: ExistingTransaction | null): any;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* YNAB API Endpoints
|
|
6
|
+
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.70.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ExistingTransactionToJSON = exports.ExistingTransactionFromJSONTyped = exports.ExistingTransactionFromJSON = exports.instanceOfExistingTransaction = void 0;
|
|
17
|
+
const TransactionFlagColor_1 = require("./TransactionFlagColor");
|
|
18
|
+
const TransactionClearedStatus_1 = require("./TransactionClearedStatus");
|
|
19
|
+
const SaveSubTransaction_1 = require("./SaveSubTransaction");
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the ExistingTransaction interface.
|
|
22
|
+
*/
|
|
23
|
+
function instanceOfExistingTransaction(value) {
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
exports.instanceOfExistingTransaction = instanceOfExistingTransaction;
|
|
27
|
+
function ExistingTransactionFromJSON(json) {
|
|
28
|
+
return ExistingTransactionFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
exports.ExistingTransactionFromJSON = ExistingTransactionFromJSON;
|
|
31
|
+
function ExistingTransactionFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'account_id': json['account_id'] == null ? undefined : json['account_id'],
|
|
37
|
+
'date': json['date'] == null ? undefined : json['date'],
|
|
38
|
+
'amount': json['amount'] == null ? undefined : json['amount'],
|
|
39
|
+
'payee_id': json['payee_id'] == null ? undefined : json['payee_id'],
|
|
40
|
+
'payee_name': json['payee_name'] == null ? undefined : json['payee_name'],
|
|
41
|
+
'category_id': json['category_id'] == null ? undefined : json['category_id'],
|
|
42
|
+
'memo': json['memo'] == null ? undefined : json['memo'],
|
|
43
|
+
'cleared': json['cleared'] == null ? undefined : (0, TransactionClearedStatus_1.TransactionClearedStatusFromJSON)(json['cleared']),
|
|
44
|
+
'approved': json['approved'] == null ? undefined : json['approved'],
|
|
45
|
+
'flag_color': json['flag_color'] == null ? undefined : (0, TransactionFlagColor_1.TransactionFlagColorFromJSON)(json['flag_color']),
|
|
46
|
+
'subtransactions': json['subtransactions'] == null ? undefined : (json['subtransactions'].map(SaveSubTransaction_1.SaveSubTransactionFromJSON)),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
exports.ExistingTransactionFromJSONTyped = ExistingTransactionFromJSONTyped;
|
|
50
|
+
function ExistingTransactionToJSON(value) {
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'account_id': value['account_id'],
|
|
56
|
+
'date': value['date'],
|
|
57
|
+
'amount': value['amount'],
|
|
58
|
+
'payee_id': value['payee_id'],
|
|
59
|
+
'payee_name': value['payee_name'],
|
|
60
|
+
'category_id': value['category_id'],
|
|
61
|
+
'memo': value['memo'],
|
|
62
|
+
'cleared': (0, TransactionClearedStatus_1.TransactionClearedStatusToJSON)(value['cleared']),
|
|
63
|
+
'approved': value['approved'],
|
|
64
|
+
'flag_color': (0, TransactionFlagColor_1.TransactionFlagColorToJSON)(value['flag_color']),
|
|
65
|
+
'subtransactions': value['subtransactions'] == null ? undefined : (value['subtransactions'].map(SaveSubTransaction_1.SaveSubTransactionToJSON)),
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
exports.ExistingTransactionToJSON = ExistingTransactionToJSON;
|
|
@@ -2,13 +2,15 @@
|
|
|
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';
|
|
13
|
+
import type { TransactionClearedStatus } from './TransactionClearedStatus';
|
|
12
14
|
/**
|
|
13
15
|
*
|
|
14
16
|
* @export
|
|
@@ -38,13 +40,13 @@ export interface HybridTransaction {
|
|
|
38
40
|
* @type {string}
|
|
39
41
|
* @memberof HybridTransaction
|
|
40
42
|
*/
|
|
41
|
-
memo?: string
|
|
43
|
+
memo?: string;
|
|
42
44
|
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {
|
|
45
|
+
*
|
|
46
|
+
* @type {TransactionClearedStatus}
|
|
45
47
|
* @memberof HybridTransaction
|
|
46
48
|
*/
|
|
47
|
-
cleared:
|
|
49
|
+
cleared: TransactionClearedStatus;
|
|
48
50
|
/**
|
|
49
51
|
* Whether or not the transaction is approved
|
|
50
52
|
* @type {boolean}
|
|
@@ -52,11 +54,17 @@ export interface HybridTransaction {
|
|
|
52
54
|
*/
|
|
53
55
|
approved: boolean;
|
|
54
56
|
/**
|
|
55
|
-
*
|
|
57
|
+
*
|
|
58
|
+
* @type {TransactionFlagColor}
|
|
59
|
+
* @memberof HybridTransaction
|
|
60
|
+
*/
|
|
61
|
+
flag_color?: TransactionFlagColor;
|
|
62
|
+
/**
|
|
63
|
+
* The customized name of a transaction flag
|
|
56
64
|
* @type {string}
|
|
57
65
|
* @memberof HybridTransaction
|
|
58
66
|
*/
|
|
59
|
-
|
|
67
|
+
flag_name?: string;
|
|
60
68
|
/**
|
|
61
69
|
*
|
|
62
70
|
* @type {string}
|
|
@@ -68,49 +76,49 @@ export interface HybridTransaction {
|
|
|
68
76
|
* @type {string}
|
|
69
77
|
* @memberof HybridTransaction
|
|
70
78
|
*/
|
|
71
|
-
payee_id?: string
|
|
79
|
+
payee_id?: string;
|
|
72
80
|
/**
|
|
73
81
|
*
|
|
74
82
|
* @type {string}
|
|
75
83
|
* @memberof HybridTransaction
|
|
76
84
|
*/
|
|
77
|
-
category_id?: string
|
|
85
|
+
category_id?: string;
|
|
78
86
|
/**
|
|
79
87
|
* If a transfer transaction, the account to which it transfers
|
|
80
88
|
* @type {string}
|
|
81
89
|
* @memberof HybridTransaction
|
|
82
90
|
*/
|
|
83
|
-
transfer_account_id?: string
|
|
91
|
+
transfer_account_id?: string;
|
|
84
92
|
/**
|
|
85
93
|
* If a transfer transaction, the id of transaction on the other side of the transfer
|
|
86
94
|
* @type {string}
|
|
87
95
|
* @memberof HybridTransaction
|
|
88
96
|
*/
|
|
89
|
-
transfer_transaction_id?: string
|
|
97
|
+
transfer_transaction_id?: string;
|
|
90
98
|
/**
|
|
91
99
|
* If transaction is matched, the id of the matched transaction
|
|
92
100
|
* @type {string}
|
|
93
101
|
* @memberof HybridTransaction
|
|
94
102
|
*/
|
|
95
|
-
matched_transaction_id?: string
|
|
103
|
+
matched_transaction_id?: string;
|
|
96
104
|
/**
|
|
97
105
|
* If the transaction was imported, this field is a unique (by account) import identifier. If this transaction was imported through File Based Import or Direct Import and not through the API, the import_id will have the format: 'YNAB:[milliunit_amount]:[iso_date]:[occurrence]'. For example, a transaction dated 2015-12-30 in the amount of -$294.23 USD would have an import_id of 'YNAB:-294230:2015-12-30:1'. If a second transaction on the same account was imported and had the same date and same amount, its import_id would be 'YNAB:-294230:2015-12-30:2'.
|
|
98
106
|
* @type {string}
|
|
99
107
|
* @memberof HybridTransaction
|
|
100
108
|
*/
|
|
101
|
-
import_id?: string
|
|
109
|
+
import_id?: string;
|
|
102
110
|
/**
|
|
103
111
|
* If the transaction was imported, the payee name that was used when importing and before applying any payee rename rules
|
|
104
112
|
* @type {string}
|
|
105
113
|
* @memberof HybridTransaction
|
|
106
114
|
*/
|
|
107
|
-
import_payee_name?: string
|
|
115
|
+
import_payee_name?: string;
|
|
108
116
|
/**
|
|
109
117
|
* If the transaction was imported, the original payee name as it appeared on the statement
|
|
110
118
|
* @type {string}
|
|
111
119
|
* @memberof HybridTransaction
|
|
112
120
|
*/
|
|
113
|
-
import_payee_name_original?: string
|
|
121
|
+
import_payee_name_original?: string;
|
|
114
122
|
/**
|
|
115
123
|
* If the transaction is a debt/loan account transaction, the type of transaction
|
|
116
124
|
* @type {string}
|
|
@@ -134,7 +142,7 @@ export interface HybridTransaction {
|
|
|
134
142
|
* @type {string}
|
|
135
143
|
* @memberof HybridTransaction
|
|
136
144
|
*/
|
|
137
|
-
parent_transaction_id?: string
|
|
145
|
+
parent_transaction_id?: string;
|
|
138
146
|
/**
|
|
139
147
|
*
|
|
140
148
|
* @type {string}
|
|
@@ -146,7 +154,7 @@ export interface HybridTransaction {
|
|
|
146
154
|
* @type {string}
|
|
147
155
|
* @memberof HybridTransaction
|
|
148
156
|
*/
|
|
149
|
-
payee_name?: string
|
|
157
|
+
payee_name?: string;
|
|
150
158
|
/**
|
|
151
159
|
* The name of the category. If a split transaction, this will be 'Split'.
|
|
152
160
|
* @type {string}
|
|
@@ -154,28 +162,6 @@ export interface HybridTransaction {
|
|
|
154
162
|
*/
|
|
155
163
|
category_name?: string;
|
|
156
164
|
}
|
|
157
|
-
/**
|
|
158
|
-
* @export
|
|
159
|
-
*/
|
|
160
|
-
export declare const HybridTransactionClearedEnum: {
|
|
161
|
-
readonly Cleared: "cleared";
|
|
162
|
-
readonly Uncleared: "uncleared";
|
|
163
|
-
readonly Reconciled: "reconciled";
|
|
164
|
-
};
|
|
165
|
-
export declare type HybridTransactionClearedEnum = typeof HybridTransactionClearedEnum[keyof typeof HybridTransactionClearedEnum];
|
|
166
|
-
/**
|
|
167
|
-
* @export
|
|
168
|
-
*/
|
|
169
|
-
export declare const HybridTransactionFlagColorEnum: {
|
|
170
|
-
readonly Red: "red";
|
|
171
|
-
readonly Orange: "orange";
|
|
172
|
-
readonly Yellow: "yellow";
|
|
173
|
-
readonly Green: "green";
|
|
174
|
-
readonly Blue: "blue";
|
|
175
|
-
readonly Purple: "purple";
|
|
176
|
-
readonly Null: "null";
|
|
177
|
-
};
|
|
178
|
-
export declare type HybridTransactionFlagColorEnum = typeof HybridTransactionFlagColorEnum[keyof typeof HybridTransactionFlagColorEnum];
|
|
179
165
|
/**
|
|
180
166
|
* @export
|
|
181
167
|
*/
|
|
@@ -185,12 +171,11 @@ export declare const HybridTransactionDebtTransactionTypeEnum: {
|
|
|
185
171
|
readonly Fee: "fee";
|
|
186
172
|
readonly Interest: "interest";
|
|
187
173
|
readonly Escrow: "escrow";
|
|
188
|
-
readonly
|
|
174
|
+
readonly BalanceAdjustment: "balanceAdjustment";
|
|
189
175
|
readonly Credit: "credit";
|
|
190
176
|
readonly Charge: "charge";
|
|
191
|
-
readonly Null: "null";
|
|
192
177
|
};
|
|
193
|
-
export
|
|
178
|
+
export type HybridTransactionDebtTransactionTypeEnum = typeof HybridTransactionDebtTransactionTypeEnum[keyof typeof HybridTransactionDebtTransactionTypeEnum];
|
|
194
179
|
/**
|
|
195
180
|
* @export
|
|
196
181
|
*/
|
|
@@ -198,11 +183,11 @@ export declare const HybridTransactionTypeEnum: {
|
|
|
198
183
|
readonly Transaction: "transaction";
|
|
199
184
|
readonly Subtransaction: "subtransaction";
|
|
200
185
|
};
|
|
201
|
-
export
|
|
186
|
+
export type HybridTransactionTypeEnum = typeof HybridTransactionTypeEnum[keyof typeof HybridTransactionTypeEnum];
|
|
202
187
|
/**
|
|
203
188
|
* Check if a given object implements the HybridTransaction interface.
|
|
204
189
|
*/
|
|
205
|
-
export declare function instanceOfHybridTransaction(value: object):
|
|
190
|
+
export declare function instanceOfHybridTransaction(value: object): value is HybridTransaction;
|
|
206
191
|
export declare function HybridTransactionFromJSON(json: any): HybridTransaction;
|
|
207
192
|
export declare function HybridTransactionFromJSONTyped(json: any, ignoreDiscriminator: boolean): HybridTransaction;
|
|
208
193
|
export declare function HybridTransactionToJSON(value?: HybridTransaction | null): any;
|