ynab 2.10.0 → 3.1.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 +50 -42
- package/dist/apis/AccountsApi.d.ts +12 -12
- package/dist/apis/AccountsApi.js +38 -28
- package/dist/apis/CategoriesApi.d.ts +68 -25
- package/dist/apis/CategoriesApi.js +176 -46
- package/dist/apis/DeprecatedApi.js +17 -7
- package/dist/apis/MoneyMovementsApi.d.ts +67 -0
- package/dist/apis/MoneyMovementsApi.js +194 -0
- package/dist/apis/MonthsApi.d.ts +16 -16
- package/dist/apis/MonthsApi.js +38 -28
- package/dist/apis/PayeeLocationsApi.d.ts +12 -12
- package/dist/apis/PayeeLocationsApi.js +38 -28
- package/dist/apis/PayeesApi.d.ts +10 -10
- package/dist/apis/PayeesApi.js +36 -26
- package/dist/apis/PlansApi.d.ts +53 -0
- package/dist/apis/{BudgetsApi.js → PlansApi.js} +50 -40
- package/dist/apis/ScheduledTransactionsApi.d.ts +20 -20
- package/dist/apis/ScheduledTransactionsApi.js +52 -42
- package/dist/apis/TransactionsApi.d.ts +49 -49
- package/dist/apis/TransactionsApi.js +99 -89
- package/dist/apis/UserApi.d.ts +2 -2
- package/dist/apis/UserApi.js +19 -9
- package/dist/apis/index.d.ts +2 -1
- package/dist/apis/index.js +2 -1
- package/dist/browser/ynab.js +1 -1
- package/dist/esm/apis/AccountsApi.d.ts +12 -12
- package/dist/esm/apis/AccountsApi.js +23 -23
- package/dist/esm/apis/CategoriesApi.d.ts +68 -25
- package/dist/esm/apis/CategoriesApi.js +228 -42
- package/dist/esm/apis/DeprecatedApi.js +2 -2
- package/dist/esm/apis/MoneyMovementsApi.d.ts +67 -0
- package/dist/esm/apis/MoneyMovementsApi.js +302 -0
- package/dist/esm/apis/MonthsApi.d.ts +16 -16
- package/dist/esm/apis/MonthsApi.js +23 -23
- package/dist/esm/apis/PayeeLocationsApi.d.ts +12 -12
- package/dist/esm/apis/PayeeLocationsApi.js +23 -23
- package/dist/esm/apis/PayeesApi.d.ts +10 -10
- package/dist/esm/apis/PayeesApi.js +21 -21
- package/dist/esm/apis/PlansApi.d.ts +53 -0
- package/dist/esm/apis/{BudgetsApi.js → PlansApi.js} +38 -38
- package/dist/esm/apis/ScheduledTransactionsApi.d.ts +20 -20
- package/dist/esm/apis/ScheduledTransactionsApi.js +37 -37
- package/dist/esm/apis/TransactionsApi.d.ts +49 -49
- package/dist/esm/apis/TransactionsApi.js +84 -84
- package/dist/esm/apis/UserApi.d.ts +2 -2
- package/dist/esm/apis/UserApi.js +4 -4
- package/dist/esm/apis/index.d.ts +2 -1
- package/dist/esm/apis/index.js +2 -1
- package/dist/esm/index.d.ts +3 -3
- package/dist/esm/index.js +5 -5
- package/dist/esm/models/Account.d.ts +6 -6
- package/dist/esm/models/Category.d.ts +10 -4
- package/dist/esm/models/Category.js +2 -0
- package/dist/esm/models/CategoryGroupWithCategories.d.ts +1 -1
- package/dist/esm/models/CurrencyFormat.d.ts +1 -1
- package/dist/esm/models/DateFormat.d.ts +1 -1
- package/dist/esm/models/ExistingCategory.d.ts +51 -0
- package/dist/esm/models/ExistingCategory.js +45 -0
- package/dist/esm/models/ExistingTransaction.d.ts +4 -4
- package/dist/esm/models/HybridTransaction.d.ts +12 -12
- package/dist/esm/models/MoneyMovement.d.ts +75 -0
- package/dist/esm/models/MoneyMovement.js +57 -0
- package/dist/esm/models/MoneyMovementGroup.d.ts +51 -0
- package/dist/esm/models/MoneyMovementGroup.js +51 -0
- package/dist/esm/models/MoneyMovementGroupsResponse.d.ts +28 -0
- package/dist/esm/models/MoneyMovementGroupsResponse.js +40 -0
- package/dist/esm/models/MoneyMovementGroupsResponseData.d.ts +34 -0
- package/dist/esm/models/MoneyMovementGroupsResponseData.js +44 -0
- package/dist/esm/models/MoneyMovementsResponse.d.ts +28 -0
- package/dist/esm/models/{BudgetSettingsResponse.js → MoneyMovementsResponse.js} +11 -11
- package/dist/esm/models/MoneyMovementsResponseData.d.ts +34 -0
- package/dist/esm/models/MoneyMovementsResponseData.js +44 -0
- package/dist/esm/models/MonthDetail.d.ts +4 -4
- package/dist/esm/models/MonthSummary.d.ts +1 -1
- package/dist/esm/models/NewCategory.d.ts +51 -0
- package/dist/esm/models/NewCategory.js +45 -0
- package/dist/esm/models/NewTransaction.d.ts +4 -4
- package/dist/esm/models/PatchCategoryGroupWrapper.d.ts +28 -0
- package/dist/esm/models/PatchCategoryGroupWrapper.js +40 -0
- package/dist/esm/models/PatchCategoryWrapper.d.ts +3 -3
- package/dist/esm/models/PatchCategoryWrapper.js +3 -3
- package/dist/{models/BudgetDetail.d.ts → esm/models/PlanDetail.d.ts} +30 -30
- package/dist/esm/models/{BudgetDetail.js → PlanDetail.js} +8 -8
- package/dist/esm/models/PlanDetailResponse.d.ts +28 -0
- package/dist/esm/models/PlanDetailResponse.js +40 -0
- package/dist/esm/models/PlanDetailResponseData.d.ts +34 -0
- package/dist/esm/models/{BudgetDetailResponseData.js → PlanDetailResponseData.js} +11 -11
- package/dist/esm/models/PlanSettings.d.ts +35 -0
- package/dist/esm/models/{BudgetSettings.js → PlanSettings.js} +8 -8
- package/dist/esm/models/PlanSettingsResponse.d.ts +28 -0
- package/dist/esm/models/{BudgetDetailResponse.js → PlanSettingsResponse.js} +11 -11
- package/dist/esm/models/PlanSettingsResponseData.d.ts +28 -0
- package/dist/esm/models/PlanSettingsResponseData.js +40 -0
- package/dist/esm/models/PlanSummary.d.ts +72 -0
- package/dist/esm/models/{BudgetSummary.js → PlanSummary.js} +8 -8
- package/dist/esm/models/PlanSummaryResponse.d.ts +28 -0
- package/dist/esm/models/PlanSummaryResponse.js +40 -0
- package/dist/esm/models/PlanSummaryResponseData.d.ts +34 -0
- package/dist/esm/models/PlanSummaryResponseData.js +42 -0
- package/dist/esm/models/PostCategoryGroupWrapper.d.ts +28 -0
- package/dist/esm/models/PostCategoryGroupWrapper.js +40 -0
- package/dist/esm/models/PostCategoryWrapper.d.ts +28 -0
- package/dist/esm/models/PostCategoryWrapper.js +40 -0
- package/dist/esm/models/SaveCategory.d.ts +7 -1
- package/dist/esm/models/SaveCategory.js +2 -0
- package/dist/esm/models/SaveCategoryGroup.d.ts +27 -0
- package/dist/esm/models/SaveCategoryGroup.js +39 -0
- package/dist/esm/models/SaveCategoryGroupResponse.d.ts +28 -0
- package/dist/esm/models/SaveCategoryGroupResponse.js +40 -0
- package/dist/esm/models/SaveCategoryGroupResponseData.d.ts +34 -0
- package/dist/esm/models/SaveCategoryGroupResponseData.js +44 -0
- package/dist/esm/models/SaveMonthCategory.d.ts +1 -1
- package/dist/esm/models/SaveTransactionWithIdOrImportId.d.ts +4 -4
- package/dist/esm/models/ScheduledTransactionDetail.d.ts +6 -6
- package/dist/esm/models/ScheduledTransactionSummary.d.ts +1 -1
- package/dist/esm/models/TransactionDetail.d.ts +11 -11
- package/dist/esm/models/TransactionSummary.d.ts +1 -1
- package/dist/esm/models/index.d.ts +23 -9
- package/dist/esm/models/index.js +23 -9
- package/dist/esm/runtime.js +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +22 -12
- package/dist/models/Account.d.ts +6 -6
- package/dist/models/Account.js +5 -6
- package/dist/models/AccountResponse.js +5 -6
- package/dist/models/AccountResponseData.js +5 -6
- package/dist/models/AccountType.js +6 -6
- package/dist/models/AccountsResponse.js +5 -6
- package/dist/models/AccountsResponseData.js +5 -6
- package/dist/models/BulkResponse.js +5 -6
- package/dist/models/BulkResponseData.js +5 -6
- package/dist/models/BulkResponseDataBulk.js +5 -6
- package/dist/models/BulkTransactions.js +5 -6
- package/dist/models/CategoriesResponse.js +5 -6
- package/dist/models/CategoriesResponseData.js +5 -6
- package/dist/models/Category.d.ts +10 -4
- package/dist/models/Category.js +8 -6
- package/dist/models/CategoryGoalType.js +4 -5
- package/dist/models/CategoryGroup.js +5 -6
- package/dist/models/CategoryGroupWithCategories.d.ts +1 -1
- package/dist/models/CategoryGroupWithCategories.js +5 -6
- package/dist/models/CategoryGroupWithCategoriesAllOf.js +4 -5
- package/dist/models/CategoryResponse.js +5 -6
- package/dist/models/CategoryResponseData.js +5 -6
- package/dist/models/CurrencyFormat.d.ts +1 -1
- package/dist/models/CurrencyFormat.js +5 -6
- package/dist/models/DateFormat.d.ts +1 -1
- package/dist/models/DateFormat.js +5 -6
- package/dist/models/ErrorDetail.js +5 -6
- package/dist/models/ErrorResponse.js +5 -6
- package/dist/models/ExistingCategory.d.ts +51 -0
- package/dist/models/ExistingCategory.js +51 -0
- package/dist/models/ExistingTransaction.d.ts +4 -4
- package/dist/models/ExistingTransaction.js +5 -6
- package/dist/models/HybridTransaction.d.ts +12 -12
- package/dist/models/HybridTransaction.js +6 -6
- package/dist/models/HybridTransactionAllOf.js +5 -5
- package/dist/models/HybridTransactionsResponse.js +5 -6
- package/dist/models/HybridTransactionsResponseData.js +5 -6
- package/dist/models/MoneyMovement.d.ts +75 -0
- package/dist/models/MoneyMovement.js +63 -0
- package/dist/models/MoneyMovementGroup.d.ts +51 -0
- package/dist/models/MoneyMovementGroup.js +57 -0
- package/dist/models/MoneyMovementGroupsResponse.d.ts +28 -0
- package/dist/models/MoneyMovementGroupsResponse.js +46 -0
- package/dist/models/MoneyMovementGroupsResponseData.d.ts +34 -0
- package/dist/models/MoneyMovementGroupsResponseData.js +50 -0
- package/dist/models/MoneyMovementsResponse.d.ts +28 -0
- package/dist/models/MoneyMovementsResponse.js +46 -0
- package/dist/models/MoneyMovementsResponseData.d.ts +34 -0
- package/dist/models/MoneyMovementsResponseData.js +50 -0
- package/dist/models/MonthDetail.d.ts +4 -4
- package/dist/models/MonthDetail.js +5 -6
- package/dist/models/MonthDetailAllOf.js +4 -5
- package/dist/models/MonthDetailResponse.js +5 -6
- package/dist/models/MonthDetailResponseData.js +5 -6
- package/dist/models/MonthSummariesResponse.js +5 -6
- package/dist/models/MonthSummariesResponseData.js +5 -6
- package/dist/models/MonthSummary.d.ts +1 -1
- package/dist/models/MonthSummary.js +5 -6
- package/dist/models/NewCategory.d.ts +51 -0
- package/dist/models/NewCategory.js +51 -0
- package/dist/models/NewTransaction.d.ts +4 -4
- package/dist/models/NewTransaction.js +5 -6
- package/dist/models/PatchCategoryGroupWrapper.d.ts +28 -0
- package/dist/models/PatchCategoryGroupWrapper.js +46 -0
- package/dist/models/PatchCategoryWrapper.d.ts +3 -3
- package/dist/models/PatchCategoryWrapper.js +8 -9
- package/dist/models/PatchMonthCategoryWrapper.js +5 -6
- package/dist/models/PatchPayeeWrapper.js +5 -6
- package/dist/models/PatchTransactionsWrapper.js +5 -6
- package/dist/models/Payee.js +5 -6
- package/dist/models/PayeeLocation.js +5 -6
- package/dist/models/PayeeLocationResponse.js +5 -6
- package/dist/models/PayeeLocationResponseData.js +5 -6
- package/dist/models/PayeeLocationsResponse.js +5 -6
- package/dist/models/PayeeLocationsResponseData.js +5 -6
- package/dist/models/PayeeResponse.js +5 -6
- package/dist/models/PayeeResponseData.js +5 -6
- package/dist/models/PayeesResponse.js +5 -6
- package/dist/models/PayeesResponseData.js +5 -6
- package/dist/{esm/models/BudgetDetail.d.ts → models/PlanDetail.d.ts} +30 -30
- package/dist/models/{BudgetDetail.js → PlanDetail.js} +13 -14
- package/dist/models/PlanDetailResponse.d.ts +28 -0
- package/dist/models/PlanDetailResponse.js +46 -0
- package/dist/models/PlanDetailResponseData.d.ts +34 -0
- package/dist/models/PlanDetailResponseData.js +50 -0
- package/dist/models/PlanSettings.d.ts +35 -0
- package/dist/models/{BudgetSettings.js → PlanSettings.js} +13 -14
- package/dist/models/PlanSettingsResponse.d.ts +28 -0
- package/dist/models/PlanSettingsResponse.js +46 -0
- package/dist/models/PlanSettingsResponseData.d.ts +28 -0
- package/dist/models/PlanSettingsResponseData.js +46 -0
- package/dist/models/PlanSummary.d.ts +72 -0
- package/dist/models/{BudgetSummary.js → PlanSummary.js} +13 -14
- package/dist/models/PlanSummaryResponse.d.ts +28 -0
- package/dist/models/PlanSummaryResponse.js +46 -0
- package/dist/models/PlanSummaryResponseData.d.ts +34 -0
- package/dist/models/PlanSummaryResponseData.js +48 -0
- package/dist/models/PostAccountWrapper.js +5 -6
- package/dist/models/PostCategoryGroupWrapper.d.ts +28 -0
- package/dist/models/PostCategoryGroupWrapper.js +46 -0
- package/dist/models/PostCategoryWrapper.d.ts +28 -0
- package/dist/models/PostCategoryWrapper.js +46 -0
- package/dist/models/PostScheduledTransactionWrapper.js +5 -6
- package/dist/models/PostTransactionsWrapper.js +5 -6
- package/dist/models/PutScheduledTransactionWrapper.js +5 -6
- package/dist/models/PutTransactionWrapper.js +5 -6
- package/dist/models/SaveAccount.js +5 -6
- package/dist/models/SaveCategory.d.ts +7 -1
- package/dist/models/SaveCategory.js +7 -6
- package/dist/models/SaveCategoryGroup.d.ts +27 -0
- package/dist/models/SaveCategoryGroup.js +45 -0
- package/dist/models/SaveCategoryGroupResponse.d.ts +28 -0
- package/dist/models/SaveCategoryGroupResponse.js +46 -0
- package/dist/models/SaveCategoryGroupResponseData.d.ts +34 -0
- package/dist/models/SaveCategoryGroupResponseData.js +50 -0
- package/dist/models/SaveCategoryResponse.js +5 -6
- package/dist/models/SaveCategoryResponseData.js +5 -6
- package/dist/models/SaveMonthCategory.d.ts +1 -1
- package/dist/models/SaveMonthCategory.js +5 -6
- package/dist/models/SavePayee.js +5 -6
- package/dist/models/SavePayeeResponse.js +5 -6
- package/dist/models/SavePayeeResponseData.js +5 -6
- package/dist/models/SaveScheduledTransaction.js +5 -6
- package/dist/models/SaveSubTransaction.js +5 -6
- package/dist/models/SaveTransaction.js +4 -5
- package/dist/models/SaveTransactionWithId.js +4 -5
- package/dist/models/SaveTransactionWithIdAllOf.js +4 -5
- package/dist/models/SaveTransactionWithIdOrImportId.d.ts +4 -4
- package/dist/models/SaveTransactionWithIdOrImportId.js +5 -6
- package/dist/models/SaveTransactionWithOptionalFields.js +5 -6
- package/dist/models/SaveTransactionWithOptionalFieldsFlagColor.js +4 -5
- package/dist/models/SaveTransactionsResponse.js +5 -6
- package/dist/models/SaveTransactionsResponseData.js +5 -6
- package/dist/models/ScheduledSubTransaction.js +5 -6
- package/dist/models/ScheduledTransactionDetail.d.ts +6 -6
- package/dist/models/ScheduledTransactionDetail.js +6 -6
- package/dist/models/ScheduledTransactionDetailAllOf.js +4 -5
- package/dist/models/ScheduledTransactionFrequency.js +6 -6
- package/dist/models/ScheduledTransactionResponse.js +5 -6
- package/dist/models/ScheduledTransactionResponseData.js +5 -6
- package/dist/models/ScheduledTransactionSummary.d.ts +1 -1
- package/dist/models/ScheduledTransactionSummary.js +6 -6
- package/dist/models/ScheduledTransactionSummaryFlagColor.js +4 -5
- package/dist/models/ScheduledTransactionsResponse.js +5 -6
- package/dist/models/ScheduledTransactionsResponseData.js +5 -6
- package/dist/models/SubTransaction.js +5 -6
- package/dist/models/TransactionClearedStatus.js +6 -6
- package/dist/models/TransactionDetail.d.ts +11 -11
- package/dist/models/TransactionDetail.js +6 -6
- package/dist/models/TransactionDetailAllOf.js +4 -5
- package/dist/models/TransactionFlagColor.js +6 -6
- package/dist/models/TransactionResponse.js +5 -6
- package/dist/models/TransactionResponseData.js +5 -6
- package/dist/models/TransactionSummary.d.ts +1 -1
- package/dist/models/TransactionSummary.js +6 -6
- package/dist/models/TransactionSummaryDebtTransactionType.js +4 -5
- package/dist/models/TransactionsImportResponse.js +5 -6
- package/dist/models/TransactionsImportResponseData.js +5 -6
- package/dist/models/TransactionsResponse.js +5 -6
- package/dist/models/TransactionsResponseData.js +5 -6
- package/dist/models/User.js +5 -6
- package/dist/models/UserResponse.js +5 -6
- package/dist/models/UserResponseData.js +5 -6
- package/dist/models/index.d.ts +23 -9
- package/dist/models/index.js +23 -9
- package/dist/runtime.js +5 -5
- package/package.json +7 -8
- package/dist/apis/BudgetsApi.d.ts +0 -53
- package/dist/esm/apis/BudgetsApi.d.ts +0 -53
- package/dist/esm/models/BudgetDetailAllOf.d.ts +0 -95
- package/dist/esm/models/BudgetDetailAllOf.js +0 -71
- package/dist/esm/models/BudgetDetailResponse.d.ts +0 -28
- package/dist/esm/models/BudgetDetailResponseData.d.ts +0 -34
- package/dist/esm/models/BudgetSettings.d.ts +0 -35
- package/dist/esm/models/BudgetSettingsResponse.d.ts +0 -28
- package/dist/esm/models/BudgetSettingsResponseData.d.ts +0 -28
- package/dist/esm/models/BudgetSettingsResponseData.js +0 -40
- package/dist/esm/models/BudgetSummary.d.ts +0 -72
- package/dist/esm/models/BudgetSummaryResponse.d.ts +0 -28
- package/dist/esm/models/BudgetSummaryResponse.js +0 -40
- package/dist/esm/models/BudgetSummaryResponseData.d.ts +0 -34
- package/dist/esm/models/BudgetSummaryResponseData.js +0 -42
- package/dist/models/BudgetDetailAllOf.d.ts +0 -95
- package/dist/models/BudgetDetailAllOf.js +0 -78
- package/dist/models/BudgetDetailResponse.d.ts +0 -28
- package/dist/models/BudgetDetailResponse.js +0 -47
- package/dist/models/BudgetDetailResponseData.d.ts +0 -34
- package/dist/models/BudgetDetailResponseData.js +0 -51
- package/dist/models/BudgetSettings.d.ts +0 -35
- package/dist/models/BudgetSettingsResponse.d.ts +0 -28
- package/dist/models/BudgetSettingsResponse.js +0 -47
- package/dist/models/BudgetSettingsResponseData.d.ts +0 -28
- package/dist/models/BudgetSettingsResponseData.js +0 -47
- package/dist/models/BudgetSummary.d.ts +0 -72
- package/dist/models/BudgetSummaryResponse.d.ts +0 -28
- package/dist/models/BudgetSummaryResponse.js +0 -47
- package/dist/models/BudgetSummaryResponseData.d.ts +0 -34
- package/dist/models/BudgetSummaryResponseData.js +0 -49
package/dist/esm/index.js
CHANGED
|
@@ -35,15 +35,15 @@ var api = /** @class */ (function () {
|
|
|
35
35
|
enumerable: false,
|
|
36
36
|
configurable: true
|
|
37
37
|
});
|
|
38
|
-
Object.defineProperty(api.prototype, "
|
|
38
|
+
Object.defineProperty(api.prototype, "plans", {
|
|
39
39
|
/**
|
|
40
|
-
* /
|
|
40
|
+
* /plans endpoints interface
|
|
41
41
|
*/
|
|
42
42
|
get: function () {
|
|
43
|
-
if (!this.
|
|
44
|
-
this.
|
|
43
|
+
if (!this._plans) {
|
|
44
|
+
this._plans = new apis.PlansApi(this._configuration);
|
|
45
45
|
}
|
|
46
|
-
return this.
|
|
46
|
+
return this._plans;
|
|
47
47
|
},
|
|
48
48
|
enumerable: false,
|
|
49
49
|
configurable: true
|
|
@@ -30,7 +30,7 @@ export interface Account {
|
|
|
30
30
|
*/
|
|
31
31
|
type: AccountType;
|
|
32
32
|
/**
|
|
33
|
-
* Whether this account is on budget or not
|
|
33
|
+
* Whether this account is "on budget" or not
|
|
34
34
|
* @type {boolean}
|
|
35
35
|
* @memberof Account
|
|
36
36
|
*/
|
|
@@ -48,7 +48,7 @@ export interface Account {
|
|
|
48
48
|
*/
|
|
49
49
|
note?: string | null;
|
|
50
50
|
/**
|
|
51
|
-
* The current balance of the account in milliunits format
|
|
51
|
+
* The current available balance of the account in milliunits format
|
|
52
52
|
* @type {number}
|
|
53
53
|
* @memberof Account
|
|
54
54
|
*/
|
|
@@ -90,7 +90,7 @@ export interface Account {
|
|
|
90
90
|
*/
|
|
91
91
|
last_reconciled_at?: string | null;
|
|
92
92
|
/**
|
|
93
|
-
*
|
|
93
|
+
* This field is deprecated and will always be null.
|
|
94
94
|
* @type {number}
|
|
95
95
|
* @memberof Account
|
|
96
96
|
*/
|
|
@@ -102,7 +102,7 @@ export interface Account {
|
|
|
102
102
|
*/
|
|
103
103
|
debt_interest_rates?: {
|
|
104
104
|
[key: string]: number;
|
|
105
|
-
}
|
|
105
|
+
};
|
|
106
106
|
/**
|
|
107
107
|
*
|
|
108
108
|
* @type {{ [key: string]: number; }}
|
|
@@ -110,7 +110,7 @@ export interface Account {
|
|
|
110
110
|
*/
|
|
111
111
|
debt_minimum_payments?: {
|
|
112
112
|
[key: string]: number;
|
|
113
|
-
}
|
|
113
|
+
};
|
|
114
114
|
/**
|
|
115
115
|
*
|
|
116
116
|
* @type {{ [key: string]: number; }}
|
|
@@ -118,7 +118,7 @@ export interface Account {
|
|
|
118
118
|
*/
|
|
119
119
|
debt_escrow_amounts?: {
|
|
120
120
|
[key: string]: number;
|
|
121
|
-
}
|
|
121
|
+
};
|
|
122
122
|
/**
|
|
123
123
|
* Whether or not the account has been deleted. Deleted accounts will only be included in delta requests.
|
|
124
124
|
* @type {boolean}
|
|
@@ -53,7 +53,7 @@ export interface Category {
|
|
|
53
53
|
*/
|
|
54
54
|
note?: string | null;
|
|
55
55
|
/**
|
|
56
|
-
*
|
|
56
|
+
* Assigned (budgeted) amount in milliunits format
|
|
57
57
|
* @type {number}
|
|
58
58
|
* @memberof Category
|
|
59
59
|
*/
|
|
@@ -65,14 +65,14 @@ export interface Category {
|
|
|
65
65
|
*/
|
|
66
66
|
activity: number;
|
|
67
67
|
/**
|
|
68
|
-
*
|
|
68
|
+
* Available balance in milliunits format
|
|
69
69
|
* @type {number}
|
|
70
70
|
* @memberof Category
|
|
71
71
|
*/
|
|
72
72
|
balance: number;
|
|
73
73
|
/**
|
|
74
74
|
* The type of goal, if the category has a goal (TB='Target Category Balance', TBD='Target Category Balance by Date', MF='Monthly Funding', NEED='Plan Your Spending')
|
|
75
|
-
* @type {
|
|
75
|
+
* @type {CategoryGoalTypeEnum}
|
|
76
76
|
* @memberof Category
|
|
77
77
|
*/
|
|
78
78
|
goal_type?: CategoryGoalTypeEnum | null;
|
|
@@ -113,11 +113,17 @@ export interface Category {
|
|
|
113
113
|
*/
|
|
114
114
|
goal_target?: number | null;
|
|
115
115
|
/**
|
|
116
|
-
*
|
|
116
|
+
* DEPRECATED: No longer used. Use `goal_target_date` instead.
|
|
117
117
|
* @type {string}
|
|
118
118
|
* @memberof Category
|
|
119
119
|
*/
|
|
120
120
|
goal_target_month?: string | null;
|
|
121
|
+
/**
|
|
122
|
+
* The target date for the goal to be completed. Only some goal types specify this date.
|
|
123
|
+
* @type {string}
|
|
124
|
+
* @memberof Category
|
|
125
|
+
*/
|
|
126
|
+
goal_target_date?: string | null;
|
|
121
127
|
/**
|
|
122
128
|
* The percentage completion of the goal
|
|
123
129
|
* @type {number}
|
|
@@ -64,6 +64,7 @@ export function CategoryFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
64
64
|
'goal_creation_month': json['goal_creation_month'] == null ? undefined : json['goal_creation_month'],
|
|
65
65
|
'goal_target': json['goal_target'] == null ? undefined : json['goal_target'],
|
|
66
66
|
'goal_target_month': json['goal_target_month'] == null ? undefined : json['goal_target_month'],
|
|
67
|
+
'goal_target_date': json['goal_target_date'] == null ? undefined : json['goal_target_date'],
|
|
67
68
|
'goal_percentage_complete': json['goal_percentage_complete'] == null ? undefined : json['goal_percentage_complete'],
|
|
68
69
|
'goal_months_to_budget': json['goal_months_to_budget'] == null ? undefined : json['goal_months_to_budget'],
|
|
69
70
|
'goal_under_funded': json['goal_under_funded'] == null ? undefined : json['goal_under_funded'],
|
|
@@ -100,6 +101,7 @@ export function CategoryToJSONTyped(value, ignoreDiscriminator) {
|
|
|
100
101
|
'goal_creation_month': value['goal_creation_month'],
|
|
101
102
|
'goal_target': value['goal_target'],
|
|
102
103
|
'goal_target_month': value['goal_target_month'],
|
|
104
|
+
'goal_target_date': value['goal_target_date'],
|
|
103
105
|
'goal_percentage_complete': value['goal_percentage_complete'],
|
|
104
106
|
'goal_months_to_budget': value['goal_months_to_budget'],
|
|
105
107
|
'goal_under_funded': value['goal_under_funded'],
|
|
@@ -36,7 +36,7 @@ export interface CategoryGroupWithCategories {
|
|
|
36
36
|
*/
|
|
37
37
|
deleted: boolean;
|
|
38
38
|
/**
|
|
39
|
-
* Category group categories. Amounts (
|
|
39
|
+
* Category group categories. Amounts (assigned, activity, available, etc.) are specific to the current plan month (UTC).
|
|
40
40
|
* @type {Array<Category>}
|
|
41
41
|
* @memberof CategoryGroupWithCategories
|
|
42
42
|
*/
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
6
6
|
*/
|
|
7
7
|
/**
|
|
8
|
-
* The currency format setting for the
|
|
8
|
+
* The currency format setting for the plan. In some cases the format will not be available and will be specified as null.
|
|
9
9
|
* @export
|
|
10
10
|
* @interface CurrencyFormat
|
|
11
11
|
*/
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
6
6
|
*/
|
|
7
7
|
/**
|
|
8
|
-
* The date format setting for the
|
|
8
|
+
* The date format setting for the plan. In some cases the format will not be available and will be specified as null.
|
|
9
9
|
* @export
|
|
10
10
|
* @interface DateFormat
|
|
11
11
|
*/
|
|
@@ -0,0 +1,51 @@
|
|
|
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
|
+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
*
|
|
9
|
+
* @export
|
|
10
|
+
* @interface ExistingCategory
|
|
11
|
+
*/
|
|
12
|
+
export interface ExistingCategory {
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @type {string}
|
|
16
|
+
* @memberof ExistingCategory
|
|
17
|
+
*/
|
|
18
|
+
name?: string;
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ExistingCategory
|
|
23
|
+
*/
|
|
24
|
+
note?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ExistingCategory
|
|
29
|
+
*/
|
|
30
|
+
category_group_id?: string;
|
|
31
|
+
/**
|
|
32
|
+
* The goal target amount in milliunits format. If value is specified and goal has not already been configured for category, a monthly 'Needed for Spending' goal will be created for the category with this target amount.
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof ExistingCategory
|
|
35
|
+
*/
|
|
36
|
+
goal_target?: number;
|
|
37
|
+
/**
|
|
38
|
+
* The goal target date in ISO format (e.g. 2016-12-01).
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof ExistingCategory
|
|
41
|
+
*/
|
|
42
|
+
goal_target_date?: string;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the ExistingCategory interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfExistingCategory(value: object): value is ExistingCategory;
|
|
48
|
+
export declare function ExistingCategoryFromJSON(json: any): ExistingCategory;
|
|
49
|
+
export declare function ExistingCategoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExistingCategory;
|
|
50
|
+
export declare function ExistingCategoryToJSON(json: any): ExistingCategory;
|
|
51
|
+
export declare function ExistingCategoryToJSONTyped(value?: ExistingCategory | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* YNAB API Endpoints
|
|
5
|
+
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
6
|
+
*
|
|
7
|
+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Check if a given object implements the ExistingCategory interface.
|
|
11
|
+
*/
|
|
12
|
+
export function instanceOfExistingCategory(value) {
|
|
13
|
+
return true;
|
|
14
|
+
}
|
|
15
|
+
export function ExistingCategoryFromJSON(json) {
|
|
16
|
+
return ExistingCategoryFromJSONTyped(json, false);
|
|
17
|
+
}
|
|
18
|
+
export function ExistingCategoryFromJSONTyped(json, ignoreDiscriminator) {
|
|
19
|
+
if (json == null) {
|
|
20
|
+
return json;
|
|
21
|
+
}
|
|
22
|
+
return {
|
|
23
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
24
|
+
'note': json['note'] == null ? undefined : json['note'],
|
|
25
|
+
'category_group_id': json['category_group_id'] == null ? undefined : json['category_group_id'],
|
|
26
|
+
'goal_target': json['goal_target'] == null ? undefined : json['goal_target'],
|
|
27
|
+
'goal_target_date': json['goal_target_date'] == null ? undefined : json['goal_target_date'],
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
export function ExistingCategoryToJSON(json) {
|
|
31
|
+
return ExistingCategoryToJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
export function ExistingCategoryToJSONTyped(value, ignoreDiscriminator) {
|
|
34
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
35
|
+
if (value == null) {
|
|
36
|
+
return value;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'name': value['name'],
|
|
40
|
+
'note': value['note'],
|
|
41
|
+
'category_group_id': value['category_group_id'],
|
|
42
|
+
'goal_target': value['goal_target'],
|
|
43
|
+
'goal_target_date': value['goal_target_date'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
@@ -36,25 +36,25 @@ export interface ExistingTransaction {
|
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof ExistingTransaction
|
|
38
38
|
*/
|
|
39
|
-
payee_id?: string
|
|
39
|
+
payee_id?: string;
|
|
40
40
|
/**
|
|
41
41
|
* 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.
|
|
42
42
|
* @type {string}
|
|
43
43
|
* @memberof ExistingTransaction
|
|
44
44
|
*/
|
|
45
|
-
payee_name?: string
|
|
45
|
+
payee_name?: string;
|
|
46
46
|
/**
|
|
47
47
|
* 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.
|
|
48
48
|
* @type {string}
|
|
49
49
|
* @memberof ExistingTransaction
|
|
50
50
|
*/
|
|
51
|
-
category_id?: string
|
|
51
|
+
category_id?: string;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {string}
|
|
55
55
|
* @memberof ExistingTransaction
|
|
56
56
|
*/
|
|
57
|
-
memo?: string
|
|
57
|
+
memo?: string;
|
|
58
58
|
/**
|
|
59
59
|
*
|
|
60
60
|
* @type {TransactionClearedStatus}
|
|
@@ -35,7 +35,7 @@ export interface HybridTransaction {
|
|
|
35
35
|
* @type {string}
|
|
36
36
|
* @memberof HybridTransaction
|
|
37
37
|
*/
|
|
38
|
-
memo?: string
|
|
38
|
+
memo?: string;
|
|
39
39
|
/**
|
|
40
40
|
*
|
|
41
41
|
* @type {TransactionClearedStatus}
|
|
@@ -59,7 +59,7 @@ export interface HybridTransaction {
|
|
|
59
59
|
* @type {string}
|
|
60
60
|
* @memberof HybridTransaction
|
|
61
61
|
*/
|
|
62
|
-
flag_name?: string
|
|
62
|
+
flag_name?: string;
|
|
63
63
|
/**
|
|
64
64
|
*
|
|
65
65
|
* @type {string}
|
|
@@ -71,52 +71,52 @@ export interface HybridTransaction {
|
|
|
71
71
|
* @type {string}
|
|
72
72
|
* @memberof HybridTransaction
|
|
73
73
|
*/
|
|
74
|
-
payee_id?: string
|
|
74
|
+
payee_id?: string;
|
|
75
75
|
/**
|
|
76
76
|
*
|
|
77
77
|
* @type {string}
|
|
78
78
|
* @memberof HybridTransaction
|
|
79
79
|
*/
|
|
80
|
-
category_id?: string
|
|
80
|
+
category_id?: string;
|
|
81
81
|
/**
|
|
82
82
|
* If a transfer transaction, the account to which it transfers
|
|
83
83
|
* @type {string}
|
|
84
84
|
* @memberof HybridTransaction
|
|
85
85
|
*/
|
|
86
|
-
transfer_account_id?: string
|
|
86
|
+
transfer_account_id?: string;
|
|
87
87
|
/**
|
|
88
88
|
* If a transfer transaction, the id of transaction on the other side of the transfer
|
|
89
89
|
* @type {string}
|
|
90
90
|
* @memberof HybridTransaction
|
|
91
91
|
*/
|
|
92
|
-
transfer_transaction_id?: string
|
|
92
|
+
transfer_transaction_id?: string;
|
|
93
93
|
/**
|
|
94
94
|
* If transaction is matched, the id of the matched transaction
|
|
95
95
|
* @type {string}
|
|
96
96
|
* @memberof HybridTransaction
|
|
97
97
|
*/
|
|
98
|
-
matched_transaction_id?: string
|
|
98
|
+
matched_transaction_id?: string;
|
|
99
99
|
/**
|
|
100
100
|
* 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'.
|
|
101
101
|
* @type {string}
|
|
102
102
|
* @memberof HybridTransaction
|
|
103
103
|
*/
|
|
104
|
-
import_id?: string
|
|
104
|
+
import_id?: string;
|
|
105
105
|
/**
|
|
106
106
|
* If the transaction was imported, the payee name that was used when importing and before applying any payee rename rules
|
|
107
107
|
* @type {string}
|
|
108
108
|
* @memberof HybridTransaction
|
|
109
109
|
*/
|
|
110
|
-
import_payee_name?: string
|
|
110
|
+
import_payee_name?: string;
|
|
111
111
|
/**
|
|
112
112
|
* If the transaction was imported, the original payee name as it appeared on the statement
|
|
113
113
|
* @type {string}
|
|
114
114
|
* @memberof HybridTransaction
|
|
115
115
|
*/
|
|
116
|
-
import_payee_name_original?: string
|
|
116
|
+
import_payee_name_original?: string;
|
|
117
117
|
/**
|
|
118
118
|
* If the transaction is a debt/loan account transaction, the type of transaction
|
|
119
|
-
* @type {
|
|
119
|
+
* @type {HybridTransactionDebtTransactionTypeEnum}
|
|
120
120
|
* @memberof HybridTransaction
|
|
121
121
|
*/
|
|
122
122
|
debt_transaction_type?: HybridTransactionDebtTransactionTypeEnum | null;
|
|
@@ -128,7 +128,7 @@ export interface HybridTransaction {
|
|
|
128
128
|
deleted: boolean;
|
|
129
129
|
/**
|
|
130
130
|
* Whether the hybrid transaction represents a regular transaction or a subtransaction
|
|
131
|
-
* @type {
|
|
131
|
+
* @type {HybridTransactionTypeEnum}
|
|
132
132
|
* @memberof HybridTransaction
|
|
133
133
|
*/
|
|
134
134
|
type: HybridTransactionTypeEnum;
|
|
@@ -0,0 +1,75 @@
|
|
|
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
|
+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
*
|
|
9
|
+
* @export
|
|
10
|
+
* @interface MoneyMovement
|
|
11
|
+
*/
|
|
12
|
+
export interface MoneyMovement {
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @type {string}
|
|
16
|
+
* @memberof MoneyMovement
|
|
17
|
+
*/
|
|
18
|
+
id: string;
|
|
19
|
+
/**
|
|
20
|
+
* The month of the money movement in ISO format (e.g. 2024-01-01)
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof MoneyMovement
|
|
23
|
+
*/
|
|
24
|
+
month?: string | null;
|
|
25
|
+
/**
|
|
26
|
+
* The date/time the money movement was processed on the server in ISO format (e.g. 2024-01-01T12:00:00Z)
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof MoneyMovement
|
|
29
|
+
*/
|
|
30
|
+
moved_at?: string | null;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof MoneyMovement
|
|
35
|
+
*/
|
|
36
|
+
note?: string | null;
|
|
37
|
+
/**
|
|
38
|
+
* The id of the money movement group this movement belongs to
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof MoneyMovement
|
|
41
|
+
*/
|
|
42
|
+
money_movement_group_id?: string | null;
|
|
43
|
+
/**
|
|
44
|
+
* The id of the user who performed the money movement
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof MoneyMovement
|
|
47
|
+
*/
|
|
48
|
+
performed_by_user_id?: string | null;
|
|
49
|
+
/**
|
|
50
|
+
* The id of the category the money was moved from
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof MoneyMovement
|
|
53
|
+
*/
|
|
54
|
+
from_category_id?: string | null;
|
|
55
|
+
/**
|
|
56
|
+
* The id of the category the money was moved to
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof MoneyMovement
|
|
59
|
+
*/
|
|
60
|
+
to_category_id?: string | null;
|
|
61
|
+
/**
|
|
62
|
+
* The amount of the money movement in milliunits format
|
|
63
|
+
* @type {number}
|
|
64
|
+
* @memberof MoneyMovement
|
|
65
|
+
*/
|
|
66
|
+
amount: number;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Check if a given object implements the MoneyMovement interface.
|
|
70
|
+
*/
|
|
71
|
+
export declare function instanceOfMoneyMovement(value: object): value is MoneyMovement;
|
|
72
|
+
export declare function MoneyMovementFromJSON(json: any): MoneyMovement;
|
|
73
|
+
export declare function MoneyMovementFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoneyMovement;
|
|
74
|
+
export declare function MoneyMovementToJSON(json: any): MoneyMovement;
|
|
75
|
+
export declare function MoneyMovementToJSONTyped(value?: MoneyMovement | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* YNAB API Endpoints
|
|
5
|
+
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
6
|
+
*
|
|
7
|
+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Check if a given object implements the MoneyMovement interface.
|
|
11
|
+
*/
|
|
12
|
+
export function instanceOfMoneyMovement(value) {
|
|
13
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
14
|
+
return false;
|
|
15
|
+
if (!('amount' in value) || value['amount'] === undefined)
|
|
16
|
+
return false;
|
|
17
|
+
return true;
|
|
18
|
+
}
|
|
19
|
+
export function MoneyMovementFromJSON(json) {
|
|
20
|
+
return MoneyMovementFromJSONTyped(json, false);
|
|
21
|
+
}
|
|
22
|
+
export function MoneyMovementFromJSONTyped(json, ignoreDiscriminator) {
|
|
23
|
+
if (json == null) {
|
|
24
|
+
return json;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'id': json['id'],
|
|
28
|
+
'month': json['month'] == null ? undefined : json['month'],
|
|
29
|
+
'moved_at': json['moved_at'] == null ? undefined : json['moved_at'],
|
|
30
|
+
'note': json['note'] == null ? undefined : json['note'],
|
|
31
|
+
'money_movement_group_id': json['money_movement_group_id'] == null ? undefined : json['money_movement_group_id'],
|
|
32
|
+
'performed_by_user_id': json['performed_by_user_id'] == null ? undefined : json['performed_by_user_id'],
|
|
33
|
+
'from_category_id': json['from_category_id'] == null ? undefined : json['from_category_id'],
|
|
34
|
+
'to_category_id': json['to_category_id'] == null ? undefined : json['to_category_id'],
|
|
35
|
+
'amount': json['amount'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export function MoneyMovementToJSON(json) {
|
|
39
|
+
return MoneyMovementToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
export function MoneyMovementToJSONTyped(value, ignoreDiscriminator) {
|
|
42
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'id': value['id'],
|
|
48
|
+
'month': value['month'],
|
|
49
|
+
'moved_at': value['moved_at'],
|
|
50
|
+
'note': value['note'],
|
|
51
|
+
'money_movement_group_id': value['money_movement_group_id'],
|
|
52
|
+
'performed_by_user_id': value['performed_by_user_id'],
|
|
53
|
+
'from_category_id': value['from_category_id'],
|
|
54
|
+
'to_category_id': value['to_category_id'],
|
|
55
|
+
'amount': value['amount'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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
|
+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
*
|
|
9
|
+
* @export
|
|
10
|
+
* @interface MoneyMovementGroup
|
|
11
|
+
*/
|
|
12
|
+
export interface MoneyMovementGroup {
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @type {string}
|
|
16
|
+
* @memberof MoneyMovementGroup
|
|
17
|
+
*/
|
|
18
|
+
id: string;
|
|
19
|
+
/**
|
|
20
|
+
* When the money movement group was created
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof MoneyMovementGroup
|
|
23
|
+
*/
|
|
24
|
+
group_created_at: string;
|
|
25
|
+
/**
|
|
26
|
+
* The month of the money movement group in ISO format (e.g. 2024-01-01)
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof MoneyMovementGroup
|
|
29
|
+
*/
|
|
30
|
+
month: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof MoneyMovementGroup
|
|
35
|
+
*/
|
|
36
|
+
note?: string | null;
|
|
37
|
+
/**
|
|
38
|
+
* The id of the user who performed the money movement group
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof MoneyMovementGroup
|
|
41
|
+
*/
|
|
42
|
+
performed_by_user_id?: string | null;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the MoneyMovementGroup interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfMoneyMovementGroup(value: object): value is MoneyMovementGroup;
|
|
48
|
+
export declare function MoneyMovementGroupFromJSON(json: any): MoneyMovementGroup;
|
|
49
|
+
export declare function MoneyMovementGroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoneyMovementGroup;
|
|
50
|
+
export declare function MoneyMovementGroupToJSON(json: any): MoneyMovementGroup;
|
|
51
|
+
export declare function MoneyMovementGroupToJSONTyped(value?: MoneyMovementGroup | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* YNAB API Endpoints
|
|
5
|
+
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
6
|
+
*
|
|
7
|
+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Check if a given object implements the MoneyMovementGroup interface.
|
|
11
|
+
*/
|
|
12
|
+
export function instanceOfMoneyMovementGroup(value) {
|
|
13
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
14
|
+
return false;
|
|
15
|
+
if (!('group_created_at' in value) || value['group_created_at'] === undefined)
|
|
16
|
+
return false;
|
|
17
|
+
if (!('month' in value) || value['month'] === undefined)
|
|
18
|
+
return false;
|
|
19
|
+
return true;
|
|
20
|
+
}
|
|
21
|
+
export function MoneyMovementGroupFromJSON(json) {
|
|
22
|
+
return MoneyMovementGroupFromJSONTyped(json, false);
|
|
23
|
+
}
|
|
24
|
+
export function MoneyMovementGroupFromJSONTyped(json, ignoreDiscriminator) {
|
|
25
|
+
if (json == null) {
|
|
26
|
+
return json;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'id': json['id'],
|
|
30
|
+
'group_created_at': json['group_created_at'],
|
|
31
|
+
'month': json['month'],
|
|
32
|
+
'note': json['note'] == null ? undefined : json['note'],
|
|
33
|
+
'performed_by_user_id': json['performed_by_user_id'] == null ? undefined : json['performed_by_user_id'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function MoneyMovementGroupToJSON(json) {
|
|
37
|
+
return MoneyMovementGroupToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function MoneyMovementGroupToJSONTyped(value, ignoreDiscriminator) {
|
|
40
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'id': value['id'],
|
|
46
|
+
'group_created_at': value['group_created_at'],
|
|
47
|
+
'month': value['month'],
|
|
48
|
+
'note': value['note'],
|
|
49
|
+
'performed_by_user_id': value['performed_by_user_id'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
6
|
+
*/
|
|
7
|
+
import type { MoneyMovementGroupsResponseData } from './MoneyMovementGroupsResponseData';
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @export
|
|
11
|
+
* @interface MoneyMovementGroupsResponse
|
|
12
|
+
*/
|
|
13
|
+
export interface MoneyMovementGroupsResponse {
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @type {MoneyMovementGroupsResponseData}
|
|
17
|
+
* @memberof MoneyMovementGroupsResponse
|
|
18
|
+
*/
|
|
19
|
+
data: MoneyMovementGroupsResponseData;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the MoneyMovementGroupsResponse interface.
|
|
23
|
+
*/
|
|
24
|
+
export declare function instanceOfMoneyMovementGroupsResponse(value: object): value is MoneyMovementGroupsResponse;
|
|
25
|
+
export declare function MoneyMovementGroupsResponseFromJSON(json: any): MoneyMovementGroupsResponse;
|
|
26
|
+
export declare function MoneyMovementGroupsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoneyMovementGroupsResponse;
|
|
27
|
+
export declare function MoneyMovementGroupsResponseToJSON(json: any): MoneyMovementGroupsResponse;
|
|
28
|
+
export declare function MoneyMovementGroupsResponseToJSONTyped(value?: MoneyMovementGroupsResponse | null, ignoreDiscriminator?: boolean): any;
|