ynab 2.0.0 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/apis/AccountsApi.d.ts +1 -1
- package/dist/apis/AccountsApi.js +1 -1
- package/dist/apis/BudgetsApi.d.ts +1 -1
- package/dist/apis/BudgetsApi.js +1 -1
- package/dist/apis/CategoriesApi.d.ts +17 -2
- package/dist/apis/CategoriesApi.js +43 -1
- package/dist/apis/CustomTransactionsApi.d.ts +1 -1
- package/dist/apis/MonthsApi.d.ts +1 -1
- package/dist/apis/MonthsApi.js +1 -1
- package/dist/apis/PayeeLocationsApi.d.ts +1 -1
- package/dist/apis/PayeeLocationsApi.js +1 -1
- package/dist/apis/PayeesApi.d.ts +17 -2
- package/dist/apis/PayeesApi.js +43 -1
- package/dist/apis/ScheduledTransactionsApi.d.ts +1 -1
- package/dist/apis/ScheduledTransactionsApi.js +1 -1
- package/dist/apis/TransactionsApi.d.ts +13 -13
- package/dist/apis/TransactionsApi.js +9 -9
- package/dist/apis/UserApi.d.ts +1 -1
- package/dist/apis/UserApi.js +1 -1
- package/dist/apis/index.d.ts +0 -1
- package/dist/apis/index.js +5 -2
- package/dist/browser/ynab.js +1 -1
- package/dist/esm/apis/CategoriesApi.d.ts +16 -1
- package/dist/esm/apis/CategoriesApi.js +65 -1
- package/dist/esm/apis/CustomTransactionsApi.d.ts +1 -1
- package/dist/esm/apis/index.d.ts +0 -1
- package/dist/esm/apis/index.js +0 -1
- package/dist/esm/models/Category.d.ts +0 -1
- package/dist/esm/models/Category.js +0 -1
- package/dist/esm/models/CategoryGoalType.d.ts +25 -0
- package/dist/esm/models/CategoryGoalType.js +29 -0
- package/dist/esm/models/HybridTransaction.d.ts +9 -30
- package/dist/esm/models/HybridTransaction.js +7 -26
- package/dist/esm/models/PatchCategoryWrapper.d.ts +32 -0
- package/dist/esm/models/PatchCategoryWrapper.js +44 -0
- package/dist/esm/models/SaveCategory.d.ts +43 -0
- package/dist/esm/models/SaveCategory.js +47 -0
- package/dist/esm/models/SaveTransaction.d.ts +8 -28
- package/dist/esm/models/SaveTransaction.js +6 -24
- package/dist/esm/models/SaveTransactionWithId.d.ts +8 -28
- package/dist/esm/models/SaveTransactionWithId.js +6 -24
- package/dist/esm/models/SaveTransactionWithOptionalFields.d.ts +8 -28
- package/dist/esm/models/SaveTransactionWithOptionalFields.js +6 -24
- package/dist/esm/models/SaveTransactionWithOptionalFieldsFlagColor.d.ts +25 -0
- package/dist/esm/models/SaveTransactionWithOptionalFieldsFlagColor.js +29 -0
- package/dist/esm/models/ScheduledTransactionDetail.d.ts +4 -16
- package/dist/esm/models/ScheduledTransactionDetail.js +3 -14
- package/dist/esm/models/ScheduledTransactionSummary.d.ts +4 -16
- package/dist/esm/models/ScheduledTransactionSummary.js +3 -14
- package/dist/esm/models/ScheduledTransactionSummaryFlagColor.d.ts +25 -0
- package/dist/esm/models/ScheduledTransactionSummaryFlagColor.js +29 -0
- package/dist/esm/models/TransactionClearedStatus.d.ts +24 -0
- package/dist/esm/models/TransactionClearedStatus.js +31 -0
- package/dist/esm/models/TransactionDetail.d.ts +9 -30
- package/dist/esm/models/TransactionDetail.js +7 -26
- package/dist/esm/models/TransactionFlagColor.d.ts +27 -0
- package/dist/esm/models/TransactionFlagColor.js +34 -0
- package/dist/esm/models/TransactionSummary.d.ts +9 -30
- package/dist/esm/models/TransactionSummary.js +7 -26
- package/dist/esm/models/TransactionSummaryDebtTransactionType.d.ts +25 -0
- package/dist/esm/models/TransactionSummaryDebtTransactionType.js +29 -0
- package/dist/esm/models/index.d.ts +4 -0
- package/dist/esm/models/index.js +4 -0
- package/dist/index.js +5 -1
- package/dist/models/Account.d.ts +8 -8
- package/dist/models/Account.js +51 -46
- package/dist/models/AccountResponse.d.ts +2 -2
- package/dist/models/AccountResponse.js +8 -11
- package/dist/models/AccountResponseData.d.ts +2 -2
- package/dist/models/AccountResponseData.js +8 -11
- package/dist/models/AccountType.d.ts +3 -2
- package/dist/models/AccountType.js +13 -2
- package/dist/models/AccountsResponse.d.ts +2 -2
- package/dist/models/AccountsResponse.js +8 -11
- package/dist/models/AccountsResponseData.d.ts +2 -2
- package/dist/models/AccountsResponseData.js +11 -13
- package/dist/models/BudgetDetail.d.ts +8 -8
- package/dist/models/BudgetDetail.js +45 -48
- package/dist/models/BudgetDetailResponse.d.ts +2 -2
- package/dist/models/BudgetDetailResponse.js +8 -11
- package/dist/models/BudgetDetailResponseData.d.ts +2 -2
- package/dist/models/BudgetDetailResponseData.js +11 -13
- package/dist/models/BudgetSettings.d.ts +2 -2
- package/dist/models/BudgetSettings.js +11 -13
- package/dist/models/BudgetSettingsResponse.d.ts +2 -2
- package/dist/models/BudgetSettingsResponse.js +8 -11
- package/dist/models/BudgetSettingsResponseData.d.ts +2 -2
- package/dist/models/BudgetSettingsResponseData.js +8 -11
- package/dist/models/BudgetSummary.d.ts +4 -4
- package/dist/models/BudgetSummary.js +23 -26
- package/dist/models/BudgetSummaryResponse.d.ts +2 -2
- package/dist/models/BudgetSummaryResponse.js +8 -11
- package/dist/models/BudgetSummaryResponseData.d.ts +2 -2
- package/dist/models/BudgetSummaryResponseData.js +10 -14
- package/dist/models/BulkResponse.d.ts +2 -2
- package/dist/models/BulkResponse.js +8 -11
- package/dist/models/BulkResponseData.d.ts +2 -2
- package/dist/models/BulkResponseData.js +8 -11
- package/dist/models/BulkResponseDataBulk.d.ts +2 -2
- package/dist/models/BulkResponseDataBulk.js +11 -13
- package/dist/models/BulkTransactions.d.ts +5 -5
- package/dist/models/BulkTransactions.js +10 -13
- package/dist/models/CategoriesResponse.d.ts +2 -2
- package/dist/models/CategoriesResponse.js +8 -11
- package/dist/models/CategoriesResponseData.d.ts +2 -2
- package/dist/models/CategoriesResponseData.js +11 -13
- package/dist/models/Category.d.ts +22 -17
- package/dist/models/Category.js +61 -57
- package/dist/models/CategoryGoalType.d.ts +25 -0
- package/dist/models/CategoryGoalType.js +36 -0
- package/dist/models/CategoryGroup.d.ts +2 -2
- package/dist/models/CategoryGroup.js +17 -17
- package/dist/models/CategoryGroupWithCategories.d.ts +2 -2
- package/dist/models/CategoryGroupWithCategories.js +20 -19
- package/dist/models/CategoryResponse.d.ts +2 -2
- package/dist/models/CategoryResponse.js +8 -11
- package/dist/models/CategoryResponseData.d.ts +2 -2
- package/dist/models/CategoryResponseData.js +8 -11
- package/dist/models/CurrencyFormat.d.ts +2 -2
- package/dist/models/CurrencyFormat.js +29 -25
- package/dist/models/DateFormat.d.ts +2 -2
- package/dist/models/DateFormat.js +8 -11
- package/dist/models/ErrorDetail.d.ts +2 -2
- package/dist/models/ErrorDetail.js +14 -15
- package/dist/models/ErrorResponse.d.ts +2 -2
- package/dist/models/ErrorResponse.js +8 -11
- package/dist/models/ExistingTransaction.d.ts +94 -0
- package/dist/models/ExistingTransaction.js +68 -0
- package/dist/models/HybridTransaction.d.ts +29 -44
- package/dist/models/HybridTransaction.js +67 -80
- package/dist/models/HybridTransactionAllOf.d.ts +1 -1
- package/dist/models/HybridTransactionsResponse.d.ts +2 -2
- package/dist/models/HybridTransactionsResponse.js +8 -11
- package/dist/models/HybridTransactionsResponseData.d.ts +2 -2
- package/dist/models/HybridTransactionsResponseData.js +10 -14
- package/dist/models/MonthDetail.d.ts +4 -4
- package/dist/models/MonthDetail.js +30 -28
- package/dist/models/MonthDetailResponse.d.ts +2 -2
- package/dist/models/MonthDetailResponse.js +8 -11
- package/dist/models/MonthDetailResponseData.d.ts +2 -2
- package/dist/models/MonthDetailResponseData.js +8 -11
- package/dist/models/MonthSummariesResponse.d.ts +2 -2
- package/dist/models/MonthSummariesResponse.js +8 -11
- package/dist/models/MonthSummariesResponseData.d.ts +2 -2
- package/dist/models/MonthSummariesResponseData.js +11 -13
- package/dist/models/MonthSummary.d.ts +4 -4
- package/dist/models/MonthSummary.js +27 -26
- package/dist/models/NewTransaction.d.ts +100 -0
- package/dist/models/NewTransaction.js +70 -0
- package/dist/models/PatchCategoryWrapper.d.ts +32 -0
- package/dist/models/PatchCategoryWrapper.js +48 -0
- package/dist/models/PatchMonthCategoryWrapper.d.ts +2 -2
- package/dist/models/PatchMonthCategoryWrapper.js +8 -11
- package/dist/models/PatchPayeeWrapper.d.ts +32 -0
- package/dist/models/PatchPayeeWrapper.js +48 -0
- package/dist/models/PatchTransactionsWrapper.d.ts +5 -5
- package/dist/models/PatchTransactionsWrapper.js +10 -13
- package/dist/models/Payee.d.ts +3 -3
- package/dist/models/Payee.js +16 -18
- package/dist/models/PayeeLocation.d.ts +2 -2
- package/dist/models/PayeeLocation.js +20 -19
- package/dist/models/PayeeLocationResponse.d.ts +2 -2
- package/dist/models/PayeeLocationResponse.js +8 -11
- package/dist/models/PayeeLocationResponseData.d.ts +2 -2
- package/dist/models/PayeeLocationResponseData.js +8 -11
- package/dist/models/PayeeLocationsResponse.d.ts +2 -2
- package/dist/models/PayeeLocationsResponse.js +8 -11
- package/dist/models/PayeeLocationsResponseData.d.ts +2 -2
- package/dist/models/PayeeLocationsResponseData.js +8 -11
- package/dist/models/PayeeResponse.d.ts +2 -2
- package/dist/models/PayeeResponse.js +8 -11
- package/dist/models/PayeeResponseData.d.ts +2 -2
- package/dist/models/PayeeResponseData.js +8 -11
- package/dist/models/PayeesResponse.d.ts +2 -2
- package/dist/models/PayeesResponse.js +8 -11
- package/dist/models/PayeesResponseData.d.ts +2 -2
- package/dist/models/PayeesResponseData.js +11 -13
- package/dist/models/PostAccountWrapper.d.ts +2 -2
- package/dist/models/PostAccountWrapper.js +8 -11
- package/dist/models/PostTransactionsWrapper.d.ts +7 -7
- package/dist/models/PostTransactionsWrapper.js +10 -15
- package/dist/models/PutTransactionWrapper.d.ts +5 -5
- package/dist/models/PutTransactionWrapper.js +10 -13
- package/dist/models/SaveAccount.d.ts +2 -2
- package/dist/models/SaveAccount.js +14 -15
- package/dist/models/SaveCategory.d.ts +43 -0
- package/dist/models/SaveCategory.js +49 -0
- package/dist/models/SaveCategoryResponse.d.ts +2 -2
- package/dist/models/SaveCategoryResponse.js +8 -11
- package/dist/models/SaveCategoryResponseData.d.ts +2 -2
- package/dist/models/SaveCategoryResponseData.js +11 -13
- package/dist/models/SaveMonthCategory.d.ts +2 -2
- package/dist/models/SaveMonthCategory.js +8 -11
- package/dist/models/SavePayee.d.ts +31 -0
- package/dist/models/SavePayee.js +45 -0
- package/dist/models/SavePayeeResponse.d.ts +32 -0
- package/dist/models/SavePayeeResponse.js +48 -0
- package/dist/models/SavePayeeResponseData.d.ts +38 -0
- package/dist/models/SavePayeeResponseData.js +52 -0
- package/dist/models/SaveSubTransaction.d.ts +6 -6
- package/dist/models/SaveSubTransaction.js +16 -20
- package/dist/models/SaveTransaction.d.ts +8 -28
- package/dist/models/SaveTransaction.js +7 -25
- package/dist/models/SaveTransactionWithId.d.ts +8 -28
- package/dist/models/SaveTransactionWithId.js +7 -25
- package/dist/models/SaveTransactionWithIdOrImportId.d.ts +106 -0
- package/dist/models/SaveTransactionWithIdOrImportId.js +72 -0
- package/dist/models/SaveTransactionWithOptionalFields.d.ts +14 -40
- package/dist/models/SaveTransactionWithOptionalFields.js +30 -55
- package/dist/models/SaveTransactionWithOptionalFieldsFlagColor.d.ts +25 -0
- package/dist/models/SaveTransactionWithOptionalFieldsFlagColor.js +36 -0
- package/dist/models/SaveTransactionsResponse.d.ts +2 -2
- package/dist/models/SaveTransactionsResponse.js +8 -11
- package/dist/models/SaveTransactionsResponseData.d.ts +2 -2
- package/dist/models/SaveTransactionsResponseData.js +17 -20
- package/dist/models/ScheduledSubTransaction.d.ts +6 -6
- package/dist/models/ScheduledSubTransaction.js +25 -26
- package/dist/models/ScheduledTransactionDetail.d.ts +18 -24
- package/dist/models/ScheduledTransactionDetail.js +50 -55
- package/dist/models/ScheduledTransactionResponse.d.ts +2 -2
- package/dist/models/ScheduledTransactionResponse.js +8 -11
- package/dist/models/ScheduledTransactionResponseData.d.ts +2 -2
- package/dist/models/ScheduledTransactionResponseData.js +8 -11
- package/dist/models/ScheduledTransactionSummary.d.ts +16 -22
- package/dist/models/ScheduledTransactionSummary.js +40 -47
- package/dist/models/ScheduledTransactionSummaryFlagColor.d.ts +25 -0
- package/dist/models/ScheduledTransactionSummaryFlagColor.js +36 -0
- package/dist/models/ScheduledTransactionsResponse.d.ts +2 -2
- package/dist/models/ScheduledTransactionsResponse.js +8 -11
- package/dist/models/ScheduledTransactionsResponseData.d.ts +2 -2
- package/dist/models/ScheduledTransactionsResponseData.js +11 -13
- package/dist/models/SubTransaction.d.ts +9 -9
- package/dist/models/SubTransaction.js +31 -32
- package/dist/models/TransactionClearedStatus.d.ts +25 -0
- package/dist/models/TransactionClearedStatus.js +48 -0
- package/dist/models/TransactionDetail.d.ts +28 -43
- package/dist/models/TransactionDetail.js +65 -78
- package/dist/models/TransactionFlagColor.d.ts +28 -0
- package/dist/models/TransactionFlagColor.js +51 -0
- package/dist/models/TransactionResponse.d.ts +2 -2
- package/dist/models/TransactionResponse.js +8 -11
- package/dist/models/TransactionResponseData.d.ts +2 -2
- package/dist/models/TransactionResponseData.js +8 -11
- package/dist/models/TransactionSummary.d.ts +26 -41
- package/dist/models/TransactionSummary.js +55 -70
- package/dist/models/TransactionSummaryDebtTransactionType.d.ts +25 -0
- package/dist/models/TransactionSummaryDebtTransactionType.js +36 -0
- package/dist/models/TransactionsImportResponse.d.ts +2 -2
- package/dist/models/TransactionsImportResponse.js +8 -11
- package/dist/models/TransactionsImportResponseData.d.ts +2 -2
- package/dist/models/TransactionsImportResponseData.js +8 -11
- package/dist/models/TransactionsResponse.d.ts +2 -2
- package/dist/models/TransactionsResponse.js +8 -11
- package/dist/models/TransactionsResponseData.d.ts +2 -2
- package/dist/models/TransactionsResponseData.js +11 -13
- package/dist/models/User.d.ts +2 -2
- package/dist/models/User.js +8 -11
- package/dist/models/UserResponse.d.ts +2 -2
- package/dist/models/UserResponse.js +8 -11
- package/dist/models/UserResponseData.d.ts +2 -2
- package/dist/models/UserResponseData.js +8 -11
- package/dist/models/index.d.ts +11 -9
- package/dist/models/index.js +16 -10
- package/dist/runtime.d.ts +10 -10
- package/dist/runtime.js +1 -1
- package/package.json +6 -7
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* YNAB API Endpoints
|
|
3
3
|
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.70.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -32,7 +32,7 @@ export interface ScheduledTransactionsResponseData {
|
|
|
32
32
|
/**
|
|
33
33
|
* Check if a given object implements the ScheduledTransactionsResponseData interface.
|
|
34
34
|
*/
|
|
35
|
-
export declare function instanceOfScheduledTransactionsResponseData(value: object):
|
|
35
|
+
export declare function instanceOfScheduledTransactionsResponseData(value: object): value is ScheduledTransactionsResponseData;
|
|
36
36
|
export declare function ScheduledTransactionsResponseDataFromJSON(json: any): ScheduledTransactionsResponseData;
|
|
37
37
|
export declare function ScheduledTransactionsResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduledTransactionsResponseData;
|
|
38
38
|
export declare function ScheduledTransactionsResponseDataToJSON(value?: ScheduledTransactionsResponseData | null): any;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* YNAB API Endpoints
|
|
6
6
|
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.70.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -19,10 +19,11 @@ const ScheduledTransactionDetail_1 = require("./ScheduledTransactionDetail");
|
|
|
19
19
|
* Check if a given object implements the ScheduledTransactionsResponseData interface.
|
|
20
20
|
*/
|
|
21
21
|
function instanceOfScheduledTransactionsResponseData(value) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
if (!('scheduled_transactions' in value) || value['scheduled_transactions'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('server_knowledge' in value) || value['server_knowledge'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
return true;
|
|
26
27
|
}
|
|
27
28
|
exports.instanceOfScheduledTransactionsResponseData = instanceOfScheduledTransactionsResponseData;
|
|
28
29
|
function ScheduledTransactionsResponseDataFromJSON(json) {
|
|
@@ -30,7 +31,7 @@ function ScheduledTransactionsResponseDataFromJSON(json) {
|
|
|
30
31
|
}
|
|
31
32
|
exports.ScheduledTransactionsResponseDataFromJSON = ScheduledTransactionsResponseDataFromJSON;
|
|
32
33
|
function ScheduledTransactionsResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
-
if (
|
|
34
|
+
if (json == null) {
|
|
34
35
|
return json;
|
|
35
36
|
}
|
|
36
37
|
return {
|
|
@@ -40,15 +41,12 @@ function ScheduledTransactionsResponseDataFromJSONTyped(json, ignoreDiscriminato
|
|
|
40
41
|
}
|
|
41
42
|
exports.ScheduledTransactionsResponseDataFromJSONTyped = ScheduledTransactionsResponseDataFromJSONTyped;
|
|
42
43
|
function ScheduledTransactionsResponseDataToJSON(value) {
|
|
43
|
-
if (value
|
|
44
|
-
return
|
|
45
|
-
}
|
|
46
|
-
if (value === null) {
|
|
47
|
-
return null;
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
48
46
|
}
|
|
49
47
|
return {
|
|
50
|
-
'scheduled_transactions': (value
|
|
51
|
-
'server_knowledge': value
|
|
48
|
+
'scheduled_transactions': (value['scheduled_transactions'].map(ScheduledTransactionDetail_1.ScheduledTransactionDetailToJSON)),
|
|
49
|
+
'server_knowledge': value['server_knowledge'],
|
|
52
50
|
};
|
|
53
51
|
}
|
|
54
52
|
exports.ScheduledTransactionsResponseDataToJSON = ScheduledTransactionsResponseDataToJSON;
|
|
@@ -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).
|
|
@@ -38,43 +38,43 @@ export interface SubTransaction {
|
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof SubTransaction
|
|
40
40
|
*/
|
|
41
|
-
memo?: string
|
|
41
|
+
memo?: string;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof SubTransaction
|
|
46
46
|
*/
|
|
47
|
-
payee_id?: string
|
|
47
|
+
payee_id?: string;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
50
|
* @type {string}
|
|
51
51
|
* @memberof SubTransaction
|
|
52
52
|
*/
|
|
53
|
-
payee_name?: string
|
|
53
|
+
payee_name?: string;
|
|
54
54
|
/**
|
|
55
55
|
*
|
|
56
56
|
* @type {string}
|
|
57
57
|
* @memberof SubTransaction
|
|
58
58
|
*/
|
|
59
|
-
category_id?: string
|
|
59
|
+
category_id?: string;
|
|
60
60
|
/**
|
|
61
61
|
*
|
|
62
62
|
* @type {string}
|
|
63
63
|
* @memberof SubTransaction
|
|
64
64
|
*/
|
|
65
|
-
category_name?: string
|
|
65
|
+
category_name?: string;
|
|
66
66
|
/**
|
|
67
67
|
* If a transfer, the account_id which the subtransaction transfers to
|
|
68
68
|
* @type {string}
|
|
69
69
|
* @memberof SubTransaction
|
|
70
70
|
*/
|
|
71
|
-
transfer_account_id?: string
|
|
71
|
+
transfer_account_id?: string;
|
|
72
72
|
/**
|
|
73
73
|
* If a transfer, the id of transaction on the other side of the transfer
|
|
74
74
|
* @type {string}
|
|
75
75
|
* @memberof SubTransaction
|
|
76
76
|
*/
|
|
77
|
-
transfer_transaction_id?: string
|
|
77
|
+
transfer_transaction_id?: string;
|
|
78
78
|
/**
|
|
79
79
|
* Whether or not the subtransaction has been deleted. Deleted subtransactions will only be included in delta requests.
|
|
80
80
|
* @type {boolean}
|
|
@@ -85,7 +85,7 @@ export interface SubTransaction {
|
|
|
85
85
|
/**
|
|
86
86
|
* Check if a given object implements the SubTransaction interface.
|
|
87
87
|
*/
|
|
88
|
-
export declare function instanceOfSubTransaction(value: object):
|
|
88
|
+
export declare function instanceOfSubTransaction(value: object): value is SubTransaction;
|
|
89
89
|
export declare function SubTransactionFromJSON(json: any): SubTransaction;
|
|
90
90
|
export declare function SubTransactionFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubTransaction;
|
|
91
91
|
export declare function SubTransactionToJSON(value?: SubTransaction | null): any;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* YNAB API Endpoints
|
|
6
6
|
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.70.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -14,17 +14,19 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.SubTransactionToJSON = exports.SubTransactionFromJSONTyped = exports.SubTransactionFromJSON = exports.instanceOfSubTransaction = void 0;
|
|
17
|
-
const runtime_1 = require("../runtime");
|
|
18
17
|
/**
|
|
19
18
|
* Check if a given object implements the SubTransaction interface.
|
|
20
19
|
*/
|
|
21
20
|
function instanceOfSubTransaction(value) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
21
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('transaction_id' in value) || value['transaction_id'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('amount' in value) || value['amount'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('deleted' in value) || value['deleted'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
28
30
|
}
|
|
29
31
|
exports.instanceOfSubTransaction = instanceOfSubTransaction;
|
|
30
32
|
function SubTransactionFromJSON(json) {
|
|
@@ -32,43 +34,40 @@ function SubTransactionFromJSON(json) {
|
|
|
32
34
|
}
|
|
33
35
|
exports.SubTransactionFromJSON = SubTransactionFromJSON;
|
|
34
36
|
function SubTransactionFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
-
if (
|
|
37
|
+
if (json == null) {
|
|
36
38
|
return json;
|
|
37
39
|
}
|
|
38
40
|
return {
|
|
39
41
|
'id': json['id'],
|
|
40
42
|
'transaction_id': json['transaction_id'],
|
|
41
43
|
'amount': json['amount'],
|
|
42
|
-
'memo':
|
|
43
|
-
'payee_id':
|
|
44
|
-
'payee_name':
|
|
45
|
-
'category_id':
|
|
46
|
-
'category_name':
|
|
47
|
-
'transfer_account_id':
|
|
48
|
-
'transfer_transaction_id':
|
|
44
|
+
'memo': json['memo'] == null ? undefined : json['memo'],
|
|
45
|
+
'payee_id': json['payee_id'] == null ? undefined : json['payee_id'],
|
|
46
|
+
'payee_name': json['payee_name'] == null ? undefined : json['payee_name'],
|
|
47
|
+
'category_id': json['category_id'] == null ? undefined : json['category_id'],
|
|
48
|
+
'category_name': json['category_name'] == null ? undefined : json['category_name'],
|
|
49
|
+
'transfer_account_id': json['transfer_account_id'] == null ? undefined : json['transfer_account_id'],
|
|
50
|
+
'transfer_transaction_id': json['transfer_transaction_id'] == null ? undefined : json['transfer_transaction_id'],
|
|
49
51
|
'deleted': json['deleted'],
|
|
50
52
|
};
|
|
51
53
|
}
|
|
52
54
|
exports.SubTransactionFromJSONTyped = SubTransactionFromJSONTyped;
|
|
53
55
|
function SubTransactionToJSON(value) {
|
|
54
|
-
if (value
|
|
55
|
-
return
|
|
56
|
-
}
|
|
57
|
-
if (value === null) {
|
|
58
|
-
return null;
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
59
58
|
}
|
|
60
59
|
return {
|
|
61
|
-
'id': value
|
|
62
|
-
'transaction_id': value
|
|
63
|
-
'amount': value
|
|
64
|
-
'memo': value
|
|
65
|
-
'payee_id': value
|
|
66
|
-
'payee_name': value
|
|
67
|
-
'category_id': value
|
|
68
|
-
'category_name': value
|
|
69
|
-
'transfer_account_id': value
|
|
70
|
-
'transfer_transaction_id': value
|
|
71
|
-
'deleted': value
|
|
60
|
+
'id': value['id'],
|
|
61
|
+
'transaction_id': value['transaction_id'],
|
|
62
|
+
'amount': value['amount'],
|
|
63
|
+
'memo': value['memo'],
|
|
64
|
+
'payee_id': value['payee_id'],
|
|
65
|
+
'payee_name': value['payee_name'],
|
|
66
|
+
'category_id': value['category_id'],
|
|
67
|
+
'category_name': value['category_name'],
|
|
68
|
+
'transfer_account_id': value['transfer_account_id'],
|
|
69
|
+
'transfer_transaction_id': value['transfer_transaction_id'],
|
|
70
|
+
'deleted': value['deleted'],
|
|
72
71
|
};
|
|
73
72
|
}
|
|
74
73
|
exports.SubTransactionToJSON = SubTransactionToJSON;
|
|
@@ -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.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
|
+
/**
|
|
13
|
+
* The cleared status of the transaction
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const TransactionClearedStatus: {
|
|
17
|
+
readonly Cleared: "cleared";
|
|
18
|
+
readonly Uncleared: "uncleared";
|
|
19
|
+
readonly Reconciled: "reconciled";
|
|
20
|
+
};
|
|
21
|
+
export type TransactionClearedStatus = typeof TransactionClearedStatus[keyof typeof TransactionClearedStatus];
|
|
22
|
+
export declare function instanceOfTransactionClearedStatus(value: any): boolean;
|
|
23
|
+
export declare function TransactionClearedStatusFromJSON(json: any): TransactionClearedStatus;
|
|
24
|
+
export declare function TransactionClearedStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionClearedStatus;
|
|
25
|
+
export declare function TransactionClearedStatusToJSON(value?: TransactionClearedStatus | null): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* YNAB API Endpoints
|
|
6
|
+
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.70.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.TransactionClearedStatusToJSON = exports.TransactionClearedStatusFromJSONTyped = exports.TransactionClearedStatusFromJSON = exports.instanceOfTransactionClearedStatus = exports.TransactionClearedStatus = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* The cleared status of the transaction
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
exports.TransactionClearedStatus = {
|
|
22
|
+
Cleared: 'cleared',
|
|
23
|
+
Uncleared: 'uncleared',
|
|
24
|
+
Reconciled: 'reconciled'
|
|
25
|
+
};
|
|
26
|
+
function instanceOfTransactionClearedStatus(value) {
|
|
27
|
+
for (const key in exports.TransactionClearedStatus) {
|
|
28
|
+
if (Object.prototype.hasOwnProperty.call(exports.TransactionClearedStatus, key)) {
|
|
29
|
+
if (exports.TransactionClearedStatus[key] === value) {
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
return false;
|
|
35
|
+
}
|
|
36
|
+
exports.instanceOfTransactionClearedStatus = instanceOfTransactionClearedStatus;
|
|
37
|
+
function TransactionClearedStatusFromJSON(json) {
|
|
38
|
+
return TransactionClearedStatusFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
exports.TransactionClearedStatusFromJSON = TransactionClearedStatusFromJSON;
|
|
41
|
+
function TransactionClearedStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
exports.TransactionClearedStatusFromJSONTyped = TransactionClearedStatusFromJSONTyped;
|
|
45
|
+
function TransactionClearedStatusToJSON(value) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
exports.TransactionClearedStatusToJSON = TransactionClearedStatusToJSON;
|
|
@@ -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
|
import type { SubTransaction } from './SubTransaction';
|
|
13
15
|
/**
|
|
14
16
|
*
|
|
@@ -39,13 +41,13 @@ export interface TransactionDetail {
|
|
|
39
41
|
* @type {string}
|
|
40
42
|
* @memberof TransactionDetail
|
|
41
43
|
*/
|
|
42
|
-
memo?: string
|
|
44
|
+
memo?: string;
|
|
43
45
|
/**
|
|
44
|
-
*
|
|
45
|
-
* @type {
|
|
46
|
+
*
|
|
47
|
+
* @type {TransactionClearedStatus}
|
|
46
48
|
* @memberof TransactionDetail
|
|
47
49
|
*/
|
|
48
|
-
cleared:
|
|
50
|
+
cleared: TransactionClearedStatus;
|
|
49
51
|
/**
|
|
50
52
|
* Whether or not the transaction is approved
|
|
51
53
|
* @type {boolean}
|
|
@@ -53,11 +55,17 @@ export interface TransactionDetail {
|
|
|
53
55
|
*/
|
|
54
56
|
approved: boolean;
|
|
55
57
|
/**
|
|
56
|
-
*
|
|
58
|
+
*
|
|
59
|
+
* @type {TransactionFlagColor}
|
|
60
|
+
* @memberof TransactionDetail
|
|
61
|
+
*/
|
|
62
|
+
flag_color?: TransactionFlagColor;
|
|
63
|
+
/**
|
|
64
|
+
* The customized name of a transaction flag
|
|
57
65
|
* @type {string}
|
|
58
66
|
* @memberof TransactionDetail
|
|
59
67
|
*/
|
|
60
|
-
|
|
68
|
+
flag_name?: string;
|
|
61
69
|
/**
|
|
62
70
|
*
|
|
63
71
|
* @type {string}
|
|
@@ -69,49 +77,49 @@ export interface TransactionDetail {
|
|
|
69
77
|
* @type {string}
|
|
70
78
|
* @memberof TransactionDetail
|
|
71
79
|
*/
|
|
72
|
-
payee_id?: string
|
|
80
|
+
payee_id?: string;
|
|
73
81
|
/**
|
|
74
82
|
*
|
|
75
83
|
* @type {string}
|
|
76
84
|
* @memberof TransactionDetail
|
|
77
85
|
*/
|
|
78
|
-
category_id?: string
|
|
86
|
+
category_id?: string;
|
|
79
87
|
/**
|
|
80
88
|
* If a transfer transaction, the account to which it transfers
|
|
81
89
|
* @type {string}
|
|
82
90
|
* @memberof TransactionDetail
|
|
83
91
|
*/
|
|
84
|
-
transfer_account_id?: string
|
|
92
|
+
transfer_account_id?: string;
|
|
85
93
|
/**
|
|
86
94
|
* If a transfer transaction, the id of transaction on the other side of the transfer
|
|
87
95
|
* @type {string}
|
|
88
96
|
* @memberof TransactionDetail
|
|
89
97
|
*/
|
|
90
|
-
transfer_transaction_id?: string
|
|
98
|
+
transfer_transaction_id?: string;
|
|
91
99
|
/**
|
|
92
100
|
* If transaction is matched, the id of the matched transaction
|
|
93
101
|
* @type {string}
|
|
94
102
|
* @memberof TransactionDetail
|
|
95
103
|
*/
|
|
96
|
-
matched_transaction_id?: string
|
|
104
|
+
matched_transaction_id?: string;
|
|
97
105
|
/**
|
|
98
106
|
* 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'.
|
|
99
107
|
* @type {string}
|
|
100
108
|
* @memberof TransactionDetail
|
|
101
109
|
*/
|
|
102
|
-
import_id?: string
|
|
110
|
+
import_id?: string;
|
|
103
111
|
/**
|
|
104
112
|
* If the transaction was imported, the payee name that was used when importing and before applying any payee rename rules
|
|
105
113
|
* @type {string}
|
|
106
114
|
* @memberof TransactionDetail
|
|
107
115
|
*/
|
|
108
|
-
import_payee_name?: string
|
|
116
|
+
import_payee_name?: string;
|
|
109
117
|
/**
|
|
110
118
|
* If the transaction was imported, the original payee name as it appeared on the statement
|
|
111
119
|
* @type {string}
|
|
112
120
|
* @memberof TransactionDetail
|
|
113
121
|
*/
|
|
114
|
-
import_payee_name_original?: string
|
|
122
|
+
import_payee_name_original?: string;
|
|
115
123
|
/**
|
|
116
124
|
* If the transaction is a debt/loan account transaction, the type of transaction
|
|
117
125
|
* @type {string}
|
|
@@ -135,13 +143,13 @@ export interface TransactionDetail {
|
|
|
135
143
|
* @type {string}
|
|
136
144
|
* @memberof TransactionDetail
|
|
137
145
|
*/
|
|
138
|
-
payee_name?: string
|
|
146
|
+
payee_name?: string;
|
|
139
147
|
/**
|
|
140
148
|
* The name of the category. If a split transaction, this will be 'Split'.
|
|
141
149
|
* @type {string}
|
|
142
150
|
* @memberof TransactionDetail
|
|
143
151
|
*/
|
|
144
|
-
category_name?: string
|
|
152
|
+
category_name?: string;
|
|
145
153
|
/**
|
|
146
154
|
* If a split transaction, the subtransactions.
|
|
147
155
|
* @type {Array<SubTransaction>}
|
|
@@ -149,28 +157,6 @@ export interface TransactionDetail {
|
|
|
149
157
|
*/
|
|
150
158
|
subtransactions: Array<SubTransaction>;
|
|
151
159
|
}
|
|
152
|
-
/**
|
|
153
|
-
* @export
|
|
154
|
-
*/
|
|
155
|
-
export declare const TransactionDetailClearedEnum: {
|
|
156
|
-
readonly Cleared: "cleared";
|
|
157
|
-
readonly Uncleared: "uncleared";
|
|
158
|
-
readonly Reconciled: "reconciled";
|
|
159
|
-
};
|
|
160
|
-
export declare type TransactionDetailClearedEnum = typeof TransactionDetailClearedEnum[keyof typeof TransactionDetailClearedEnum];
|
|
161
|
-
/**
|
|
162
|
-
* @export
|
|
163
|
-
*/
|
|
164
|
-
export declare const TransactionDetailFlagColorEnum: {
|
|
165
|
-
readonly Red: "red";
|
|
166
|
-
readonly Orange: "orange";
|
|
167
|
-
readonly Yellow: "yellow";
|
|
168
|
-
readonly Green: "green";
|
|
169
|
-
readonly Blue: "blue";
|
|
170
|
-
readonly Purple: "purple";
|
|
171
|
-
readonly Null: "null";
|
|
172
|
-
};
|
|
173
|
-
export declare type TransactionDetailFlagColorEnum = typeof TransactionDetailFlagColorEnum[keyof typeof TransactionDetailFlagColorEnum];
|
|
174
160
|
/**
|
|
175
161
|
* @export
|
|
176
162
|
*/
|
|
@@ -180,16 +166,15 @@ export declare const TransactionDetailDebtTransactionTypeEnum: {
|
|
|
180
166
|
readonly Fee: "fee";
|
|
181
167
|
readonly Interest: "interest";
|
|
182
168
|
readonly Escrow: "escrow";
|
|
183
|
-
readonly
|
|
169
|
+
readonly BalanceAdjustment: "balanceAdjustment";
|
|
184
170
|
readonly Credit: "credit";
|
|
185
171
|
readonly Charge: "charge";
|
|
186
|
-
readonly Null: "null";
|
|
187
172
|
};
|
|
188
|
-
export
|
|
173
|
+
export type TransactionDetailDebtTransactionTypeEnum = typeof TransactionDetailDebtTransactionTypeEnum[keyof typeof TransactionDetailDebtTransactionTypeEnum];
|
|
189
174
|
/**
|
|
190
175
|
* Check if a given object implements the TransactionDetail interface.
|
|
191
176
|
*/
|
|
192
|
-
export declare function instanceOfTransactionDetail(value: object):
|
|
177
|
+
export declare function instanceOfTransactionDetail(value: object): value is TransactionDetail;
|
|
193
178
|
export declare function TransactionDetailFromJSON(json: any): TransactionDetail;
|
|
194
179
|
export declare function TransactionDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionDetail;
|
|
195
180
|
export declare function TransactionDetailToJSON(value?: TransactionDetail | null): any;
|