ynab 2.10.0 → 4.0.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} +51 -41
- 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} +39 -39
- 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} +12 -12
- 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
|
@@ -7,23 +7,23 @@
|
|
|
7
7
|
import * as runtime from '../runtime';
|
|
8
8
|
import type { PostScheduledTransactionWrapper, PutScheduledTransactionWrapper, ScheduledTransactionResponse, ScheduledTransactionsResponse } from '../models/index';
|
|
9
9
|
export interface CreateScheduledTransactionRequest {
|
|
10
|
-
|
|
10
|
+
planId: string;
|
|
11
11
|
data: PostScheduledTransactionWrapper;
|
|
12
12
|
}
|
|
13
13
|
export interface DeleteScheduledTransactionRequest {
|
|
14
|
-
|
|
14
|
+
planId: string;
|
|
15
15
|
scheduledTransactionId: string;
|
|
16
16
|
}
|
|
17
17
|
export interface GetScheduledTransactionByIdRequest {
|
|
18
|
-
|
|
18
|
+
planId: string;
|
|
19
19
|
scheduledTransactionId: string;
|
|
20
20
|
}
|
|
21
21
|
export interface GetScheduledTransactionsRequest {
|
|
22
|
-
|
|
22
|
+
planId: string;
|
|
23
23
|
lastKnowledgeOfServer?: number;
|
|
24
24
|
}
|
|
25
25
|
export interface UpdateScheduledTransactionRequest {
|
|
26
|
-
|
|
26
|
+
planId: string;
|
|
27
27
|
scheduledTransactionId: string;
|
|
28
28
|
putScheduledTransactionWrapper: PutScheduledTransactionWrapper;
|
|
29
29
|
}
|
|
@@ -33,52 +33,52 @@ export interface UpdateScheduledTransactionRequest {
|
|
|
33
33
|
export declare class ScheduledTransactionsApi extends runtime.BaseAPI {
|
|
34
34
|
/**
|
|
35
35
|
* Creates a single scheduled transaction (a transaction with a future date).
|
|
36
|
-
* Create a
|
|
36
|
+
* Create a scheduled transaction
|
|
37
37
|
*/
|
|
38
38
|
createScheduledTransactionRaw(requestParameters: CreateScheduledTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ScheduledTransactionResponse>>;
|
|
39
39
|
/**
|
|
40
40
|
* Creates a single scheduled transaction (a transaction with a future date).
|
|
41
|
-
* Create a
|
|
41
|
+
* Create a scheduled transaction
|
|
42
42
|
*/
|
|
43
|
-
createScheduledTransaction(
|
|
43
|
+
createScheduledTransaction(planId: string, data: PostScheduledTransactionWrapper, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ScheduledTransactionResponse>;
|
|
44
44
|
/**
|
|
45
45
|
* Deletes a scheduled transaction
|
|
46
|
-
*
|
|
46
|
+
* Delete a scheduled transaction
|
|
47
47
|
*/
|
|
48
48
|
deleteScheduledTransactionRaw(requestParameters: DeleteScheduledTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ScheduledTransactionResponse>>;
|
|
49
49
|
/**
|
|
50
50
|
* Deletes a scheduled transaction
|
|
51
|
-
*
|
|
51
|
+
* Delete a scheduled transaction
|
|
52
52
|
*/
|
|
53
|
-
deleteScheduledTransaction(
|
|
53
|
+
deleteScheduledTransaction(planId: string, scheduledTransactionId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ScheduledTransactionResponse>;
|
|
54
54
|
/**
|
|
55
55
|
* Returns a single scheduled transaction
|
|
56
|
-
*
|
|
56
|
+
* Get a scheduled transaction
|
|
57
57
|
*/
|
|
58
58
|
getScheduledTransactionByIdRaw(requestParameters: GetScheduledTransactionByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ScheduledTransactionResponse>>;
|
|
59
59
|
/**
|
|
60
60
|
* Returns a single scheduled transaction
|
|
61
|
-
*
|
|
61
|
+
* Get a scheduled transaction
|
|
62
62
|
*/
|
|
63
|
-
getScheduledTransactionById(
|
|
63
|
+
getScheduledTransactionById(planId: string, scheduledTransactionId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ScheduledTransactionResponse>;
|
|
64
64
|
/**
|
|
65
65
|
* Returns all scheduled transactions
|
|
66
|
-
*
|
|
66
|
+
* Get all scheduled transactions
|
|
67
67
|
*/
|
|
68
68
|
getScheduledTransactionsRaw(requestParameters: GetScheduledTransactionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ScheduledTransactionsResponse>>;
|
|
69
69
|
/**
|
|
70
70
|
* Returns all scheduled transactions
|
|
71
|
-
*
|
|
71
|
+
* Get all scheduled transactions
|
|
72
72
|
*/
|
|
73
|
-
getScheduledTransactions(
|
|
73
|
+
getScheduledTransactions(planId: string, lastKnowledgeOfServer?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ScheduledTransactionsResponse>;
|
|
74
74
|
/**
|
|
75
75
|
* Updates a single scheduled transaction
|
|
76
|
-
*
|
|
76
|
+
* Update a scheduled transaction
|
|
77
77
|
*/
|
|
78
78
|
updateScheduledTransactionRaw(requestParameters: UpdateScheduledTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ScheduledTransactionResponse>>;
|
|
79
79
|
/**
|
|
80
80
|
* Updates a single scheduled transaction
|
|
81
|
-
*
|
|
81
|
+
* Update a scheduled transaction
|
|
82
82
|
*/
|
|
83
|
-
updateScheduledTransaction(
|
|
83
|
+
updateScheduledTransaction(planId: string, scheduledTransactionId: string, putScheduledTransactionWrapper: PutScheduledTransactionWrapper, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ScheduledTransactionResponse>;
|
|
84
84
|
}
|
|
@@ -31,8 +31,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
31
31
|
});
|
|
32
32
|
};
|
|
33
33
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
34
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
35
|
-
return g =
|
|
34
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
35
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
36
36
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
37
37
|
function step(op) {
|
|
38
38
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -69,7 +69,7 @@ var ScheduledTransactionsApi = /** @class */ (function (_super) {
|
|
|
69
69
|
}
|
|
70
70
|
/**
|
|
71
71
|
* Creates a single scheduled transaction (a transaction with a future date).
|
|
72
|
-
* Create a
|
|
72
|
+
* Create a scheduled transaction
|
|
73
73
|
*/
|
|
74
74
|
ScheduledTransactionsApi.prototype.createScheduledTransactionRaw = function (requestParameters, initOverrides) {
|
|
75
75
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -77,8 +77,8 @@ var ScheduledTransactionsApi = /** @class */ (function (_super) {
|
|
|
77
77
|
return __generator(this, function (_a) {
|
|
78
78
|
switch (_a.label) {
|
|
79
79
|
case 0:
|
|
80
|
-
if (requestParameters.
|
|
81
|
-
throw new runtime.RequiredError('
|
|
80
|
+
if (requestParameters.planId === null || requestParameters.planId === undefined) {
|
|
81
|
+
throw new runtime.RequiredError('planId', 'Required parameter requestParameters.planId was null or undefined when calling createScheduledTransaction.');
|
|
82
82
|
}
|
|
83
83
|
if (requestParameters.data === null || requestParameters.data === undefined) {
|
|
84
84
|
throw new runtime.RequiredError('data', 'Required parameter requestParameters.data was null or undefined when calling createScheduledTransaction.');
|
|
@@ -97,7 +97,7 @@ var ScheduledTransactionsApi = /** @class */ (function (_super) {
|
|
|
97
97
|
}
|
|
98
98
|
_a.label = 2;
|
|
99
99
|
case 2: return [4 /*yield*/, this.request({
|
|
100
|
-
path: "/
|
|
100
|
+
path: "/plans/{plan_id}/scheduled_transactions".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))),
|
|
101
101
|
method: 'POST',
|
|
102
102
|
headers: headerParameters,
|
|
103
103
|
query: queryParameters,
|
|
@@ -112,14 +112,14 @@ var ScheduledTransactionsApi = /** @class */ (function (_super) {
|
|
|
112
112
|
};
|
|
113
113
|
/**
|
|
114
114
|
* Creates a single scheduled transaction (a transaction with a future date).
|
|
115
|
-
* Create a
|
|
115
|
+
* Create a scheduled transaction
|
|
116
116
|
*/
|
|
117
|
-
ScheduledTransactionsApi.prototype.createScheduledTransaction = function (
|
|
117
|
+
ScheduledTransactionsApi.prototype.createScheduledTransaction = function (planId, data, initOverrides) {
|
|
118
118
|
return __awaiter(this, void 0, void 0, function () {
|
|
119
119
|
var response;
|
|
120
120
|
return __generator(this, function (_a) {
|
|
121
121
|
switch (_a.label) {
|
|
122
|
-
case 0: return [4 /*yield*/, this.createScheduledTransactionRaw({
|
|
122
|
+
case 0: return [4 /*yield*/, this.createScheduledTransactionRaw({ planId: planId, data: data }, initOverrides)];
|
|
123
123
|
case 1:
|
|
124
124
|
response = _a.sent();
|
|
125
125
|
return [4 /*yield*/, response.value()];
|
|
@@ -130,7 +130,7 @@ var ScheduledTransactionsApi = /** @class */ (function (_super) {
|
|
|
130
130
|
};
|
|
131
131
|
/**
|
|
132
132
|
* Deletes a scheduled transaction
|
|
133
|
-
*
|
|
133
|
+
* Delete a scheduled transaction
|
|
134
134
|
*/
|
|
135
135
|
ScheduledTransactionsApi.prototype.deleteScheduledTransactionRaw = function (requestParameters, initOverrides) {
|
|
136
136
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -138,8 +138,8 @@ var ScheduledTransactionsApi = /** @class */ (function (_super) {
|
|
|
138
138
|
return __generator(this, function (_a) {
|
|
139
139
|
switch (_a.label) {
|
|
140
140
|
case 0:
|
|
141
|
-
if (requestParameters.
|
|
142
|
-
throw new runtime.RequiredError('
|
|
141
|
+
if (requestParameters.planId === null || requestParameters.planId === undefined) {
|
|
142
|
+
throw new runtime.RequiredError('planId', 'Required parameter requestParameters.planId was null or undefined when calling deleteScheduledTransaction.');
|
|
143
143
|
}
|
|
144
144
|
if (requestParameters.scheduledTransactionId === null || requestParameters.scheduledTransactionId === undefined) {
|
|
145
145
|
throw new runtime.RequiredError('scheduledTransactionId', 'Required parameter requestParameters.scheduledTransactionId was null or undefined when calling deleteScheduledTransaction.');
|
|
@@ -157,7 +157,7 @@ var ScheduledTransactionsApi = /** @class */ (function (_super) {
|
|
|
157
157
|
}
|
|
158
158
|
_a.label = 2;
|
|
159
159
|
case 2: return [4 /*yield*/, this.request({
|
|
160
|
-
path: "/
|
|
160
|
+
path: "/plans/{plan_id}/scheduled_transactions/{scheduled_transaction_id}".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))).replace("{".concat("scheduled_transaction_id", "}"), encodeURIComponent(String(requestParameters.scheduledTransactionId))),
|
|
161
161
|
method: 'DELETE',
|
|
162
162
|
headers: headerParameters,
|
|
163
163
|
query: queryParameters,
|
|
@@ -171,14 +171,14 @@ var ScheduledTransactionsApi = /** @class */ (function (_super) {
|
|
|
171
171
|
};
|
|
172
172
|
/**
|
|
173
173
|
* Deletes a scheduled transaction
|
|
174
|
-
*
|
|
174
|
+
* Delete a scheduled transaction
|
|
175
175
|
*/
|
|
176
|
-
ScheduledTransactionsApi.prototype.deleteScheduledTransaction = function (
|
|
176
|
+
ScheduledTransactionsApi.prototype.deleteScheduledTransaction = function (planId, scheduledTransactionId, initOverrides) {
|
|
177
177
|
return __awaiter(this, void 0, void 0, function () {
|
|
178
178
|
var response;
|
|
179
179
|
return __generator(this, function (_a) {
|
|
180
180
|
switch (_a.label) {
|
|
181
|
-
case 0: return [4 /*yield*/, this.deleteScheduledTransactionRaw({
|
|
181
|
+
case 0: return [4 /*yield*/, this.deleteScheduledTransactionRaw({ planId: planId, scheduledTransactionId: scheduledTransactionId }, initOverrides)];
|
|
182
182
|
case 1:
|
|
183
183
|
response = _a.sent();
|
|
184
184
|
return [4 /*yield*/, response.value()];
|
|
@@ -189,7 +189,7 @@ var ScheduledTransactionsApi = /** @class */ (function (_super) {
|
|
|
189
189
|
};
|
|
190
190
|
/**
|
|
191
191
|
* Returns a single scheduled transaction
|
|
192
|
-
*
|
|
192
|
+
* Get a scheduled transaction
|
|
193
193
|
*/
|
|
194
194
|
ScheduledTransactionsApi.prototype.getScheduledTransactionByIdRaw = function (requestParameters, initOverrides) {
|
|
195
195
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -197,8 +197,8 @@ var ScheduledTransactionsApi = /** @class */ (function (_super) {
|
|
|
197
197
|
return __generator(this, function (_a) {
|
|
198
198
|
switch (_a.label) {
|
|
199
199
|
case 0:
|
|
200
|
-
if (requestParameters.
|
|
201
|
-
throw new runtime.RequiredError('
|
|
200
|
+
if (requestParameters.planId === null || requestParameters.planId === undefined) {
|
|
201
|
+
throw new runtime.RequiredError('planId', 'Required parameter requestParameters.planId was null or undefined when calling getScheduledTransactionById.');
|
|
202
202
|
}
|
|
203
203
|
if (requestParameters.scheduledTransactionId === null || requestParameters.scheduledTransactionId === undefined) {
|
|
204
204
|
throw new runtime.RequiredError('scheduledTransactionId', 'Required parameter requestParameters.scheduledTransactionId was null or undefined when calling getScheduledTransactionById.');
|
|
@@ -216,7 +216,7 @@ var ScheduledTransactionsApi = /** @class */ (function (_super) {
|
|
|
216
216
|
}
|
|
217
217
|
_a.label = 2;
|
|
218
218
|
case 2: return [4 /*yield*/, this.request({
|
|
219
|
-
path: "/
|
|
219
|
+
path: "/plans/{plan_id}/scheduled_transactions/{scheduled_transaction_id}".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))).replace("{".concat("scheduled_transaction_id", "}"), encodeURIComponent(String(requestParameters.scheduledTransactionId))),
|
|
220
220
|
method: 'GET',
|
|
221
221
|
headers: headerParameters,
|
|
222
222
|
query: queryParameters,
|
|
@@ -230,14 +230,14 @@ var ScheduledTransactionsApi = /** @class */ (function (_super) {
|
|
|
230
230
|
};
|
|
231
231
|
/**
|
|
232
232
|
* Returns a single scheduled transaction
|
|
233
|
-
*
|
|
233
|
+
* Get a scheduled transaction
|
|
234
234
|
*/
|
|
235
|
-
ScheduledTransactionsApi.prototype.getScheduledTransactionById = function (
|
|
235
|
+
ScheduledTransactionsApi.prototype.getScheduledTransactionById = function (planId, scheduledTransactionId, initOverrides) {
|
|
236
236
|
return __awaiter(this, void 0, void 0, function () {
|
|
237
237
|
var response;
|
|
238
238
|
return __generator(this, function (_a) {
|
|
239
239
|
switch (_a.label) {
|
|
240
|
-
case 0: return [4 /*yield*/, this.getScheduledTransactionByIdRaw({
|
|
240
|
+
case 0: return [4 /*yield*/, this.getScheduledTransactionByIdRaw({ planId: planId, scheduledTransactionId: scheduledTransactionId }, initOverrides)];
|
|
241
241
|
case 1:
|
|
242
242
|
response = _a.sent();
|
|
243
243
|
return [4 /*yield*/, response.value()];
|
|
@@ -248,7 +248,7 @@ var ScheduledTransactionsApi = /** @class */ (function (_super) {
|
|
|
248
248
|
};
|
|
249
249
|
/**
|
|
250
250
|
* Returns all scheduled transactions
|
|
251
|
-
*
|
|
251
|
+
* Get all scheduled transactions
|
|
252
252
|
*/
|
|
253
253
|
ScheduledTransactionsApi.prototype.getScheduledTransactionsRaw = function (requestParameters, initOverrides) {
|
|
254
254
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -256,8 +256,8 @@ var ScheduledTransactionsApi = /** @class */ (function (_super) {
|
|
|
256
256
|
return __generator(this, function (_a) {
|
|
257
257
|
switch (_a.label) {
|
|
258
258
|
case 0:
|
|
259
|
-
if (requestParameters.
|
|
260
|
-
throw new runtime.RequiredError('
|
|
259
|
+
if (requestParameters.planId === null || requestParameters.planId === undefined) {
|
|
260
|
+
throw new runtime.RequiredError('planId', 'Required parameter requestParameters.planId was null or undefined when calling getScheduledTransactions.');
|
|
261
261
|
}
|
|
262
262
|
queryParameters = {};
|
|
263
263
|
if (requestParameters.lastKnowledgeOfServer !== undefined) {
|
|
@@ -275,7 +275,7 @@ var ScheduledTransactionsApi = /** @class */ (function (_super) {
|
|
|
275
275
|
}
|
|
276
276
|
_a.label = 2;
|
|
277
277
|
case 2: return [4 /*yield*/, this.request({
|
|
278
|
-
path: "/
|
|
278
|
+
path: "/plans/{plan_id}/scheduled_transactions".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))),
|
|
279
279
|
method: 'GET',
|
|
280
280
|
headers: headerParameters,
|
|
281
281
|
query: queryParameters,
|
|
@@ -289,14 +289,14 @@ var ScheduledTransactionsApi = /** @class */ (function (_super) {
|
|
|
289
289
|
};
|
|
290
290
|
/**
|
|
291
291
|
* Returns all scheduled transactions
|
|
292
|
-
*
|
|
292
|
+
* Get all scheduled transactions
|
|
293
293
|
*/
|
|
294
|
-
ScheduledTransactionsApi.prototype.getScheduledTransactions = function (
|
|
294
|
+
ScheduledTransactionsApi.prototype.getScheduledTransactions = function (planId, lastKnowledgeOfServer, initOverrides) {
|
|
295
295
|
return __awaiter(this, void 0, void 0, function () {
|
|
296
296
|
var response;
|
|
297
297
|
return __generator(this, function (_a) {
|
|
298
298
|
switch (_a.label) {
|
|
299
|
-
case 0: return [4 /*yield*/, this.getScheduledTransactionsRaw({
|
|
299
|
+
case 0: return [4 /*yield*/, this.getScheduledTransactionsRaw({ planId: planId, lastKnowledgeOfServer: lastKnowledgeOfServer }, initOverrides)];
|
|
300
300
|
case 1:
|
|
301
301
|
response = _a.sent();
|
|
302
302
|
return [4 /*yield*/, response.value()];
|
|
@@ -307,7 +307,7 @@ var ScheduledTransactionsApi = /** @class */ (function (_super) {
|
|
|
307
307
|
};
|
|
308
308
|
/**
|
|
309
309
|
* Updates a single scheduled transaction
|
|
310
|
-
*
|
|
310
|
+
* Update a scheduled transaction
|
|
311
311
|
*/
|
|
312
312
|
ScheduledTransactionsApi.prototype.updateScheduledTransactionRaw = function (requestParameters, initOverrides) {
|
|
313
313
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -315,8 +315,8 @@ var ScheduledTransactionsApi = /** @class */ (function (_super) {
|
|
|
315
315
|
return __generator(this, function (_a) {
|
|
316
316
|
switch (_a.label) {
|
|
317
317
|
case 0:
|
|
318
|
-
if (requestParameters.
|
|
319
|
-
throw new runtime.RequiredError('
|
|
318
|
+
if (requestParameters.planId === null || requestParameters.planId === undefined) {
|
|
319
|
+
throw new runtime.RequiredError('planId', 'Required parameter requestParameters.planId was null or undefined when calling updateScheduledTransaction.');
|
|
320
320
|
}
|
|
321
321
|
if (requestParameters.scheduledTransactionId === null || requestParameters.scheduledTransactionId === undefined) {
|
|
322
322
|
throw new runtime.RequiredError('scheduledTransactionId', 'Required parameter requestParameters.scheduledTransactionId was null or undefined when calling updateScheduledTransaction.');
|
|
@@ -338,7 +338,7 @@ var ScheduledTransactionsApi = /** @class */ (function (_super) {
|
|
|
338
338
|
}
|
|
339
339
|
_a.label = 2;
|
|
340
340
|
case 2: return [4 /*yield*/, this.request({
|
|
341
|
-
path: "/
|
|
341
|
+
path: "/plans/{plan_id}/scheduled_transactions/{scheduled_transaction_id}".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))).replace("{".concat("scheduled_transaction_id", "}"), encodeURIComponent(String(requestParameters.scheduledTransactionId))),
|
|
342
342
|
method: 'PUT',
|
|
343
343
|
headers: headerParameters,
|
|
344
344
|
query: queryParameters,
|
|
@@ -353,14 +353,14 @@ var ScheduledTransactionsApi = /** @class */ (function (_super) {
|
|
|
353
353
|
};
|
|
354
354
|
/**
|
|
355
355
|
* Updates a single scheduled transaction
|
|
356
|
-
*
|
|
356
|
+
* Update a scheduled transaction
|
|
357
357
|
*/
|
|
358
|
-
ScheduledTransactionsApi.prototype.updateScheduledTransaction = function (
|
|
358
|
+
ScheduledTransactionsApi.prototype.updateScheduledTransaction = function (planId, scheduledTransactionId, putScheduledTransactionWrapper, initOverrides) {
|
|
359
359
|
return __awaiter(this, void 0, void 0, function () {
|
|
360
360
|
var response;
|
|
361
361
|
return __generator(this, function (_a) {
|
|
362
362
|
switch (_a.label) {
|
|
363
|
-
case 0: return [4 /*yield*/, this.updateScheduledTransactionRaw({
|
|
363
|
+
case 0: return [4 /*yield*/, this.updateScheduledTransactionRaw({ planId: planId, scheduledTransactionId: scheduledTransactionId, putScheduledTransactionWrapper: putScheduledTransactionWrapper }, initOverrides)];
|
|
364
364
|
case 1:
|
|
365
365
|
response = _a.sent();
|
|
366
366
|
return [4 /*yield*/, response.value()];
|
|
@@ -7,61 +7,61 @@
|
|
|
7
7
|
import * as runtime from '../runtime';
|
|
8
8
|
import type { HybridTransactionsResponse, PatchTransactionsWrapper, PostTransactionsWrapper, PutTransactionWrapper, SaveTransactionsResponse, TransactionResponse, TransactionsImportResponse, TransactionsResponse } from '../models/index';
|
|
9
9
|
export interface CreateTransactionRequest {
|
|
10
|
-
|
|
10
|
+
planId: string;
|
|
11
11
|
data: PostTransactionsWrapper;
|
|
12
12
|
}
|
|
13
13
|
export interface DeleteTransactionRequest {
|
|
14
|
-
|
|
14
|
+
planId: string;
|
|
15
15
|
transactionId: string;
|
|
16
16
|
}
|
|
17
17
|
export interface GetTransactionByIdRequest {
|
|
18
|
-
|
|
18
|
+
planId: string;
|
|
19
19
|
transactionId: string;
|
|
20
20
|
}
|
|
21
21
|
export interface GetTransactionsRequest {
|
|
22
|
-
|
|
22
|
+
planId: string;
|
|
23
23
|
sinceDate?: string;
|
|
24
24
|
type?: GetTransactionsTypeEnum;
|
|
25
25
|
lastKnowledgeOfServer?: number;
|
|
26
26
|
}
|
|
27
27
|
export interface GetTransactionsByAccountRequest {
|
|
28
|
-
|
|
28
|
+
planId: string;
|
|
29
29
|
accountId: string;
|
|
30
30
|
sinceDate?: string;
|
|
31
31
|
type?: GetTransactionsByAccountTypeEnum;
|
|
32
32
|
lastKnowledgeOfServer?: number;
|
|
33
33
|
}
|
|
34
34
|
export interface GetTransactionsByCategoryRequest {
|
|
35
|
-
|
|
35
|
+
planId: string;
|
|
36
36
|
categoryId: string;
|
|
37
37
|
sinceDate?: string;
|
|
38
38
|
type?: GetTransactionsByCategoryTypeEnum;
|
|
39
39
|
lastKnowledgeOfServer?: number;
|
|
40
40
|
}
|
|
41
41
|
export interface GetTransactionsByMonthRequest {
|
|
42
|
-
|
|
42
|
+
planId: string;
|
|
43
43
|
month: string;
|
|
44
44
|
sinceDate?: string;
|
|
45
45
|
type?: GetTransactionsByMonthTypeEnum;
|
|
46
46
|
lastKnowledgeOfServer?: number;
|
|
47
47
|
}
|
|
48
48
|
export interface GetTransactionsByPayeeRequest {
|
|
49
|
-
|
|
49
|
+
planId: string;
|
|
50
50
|
payeeId: string;
|
|
51
51
|
sinceDate?: string;
|
|
52
52
|
type?: GetTransactionsByPayeeTypeEnum;
|
|
53
53
|
lastKnowledgeOfServer?: number;
|
|
54
54
|
}
|
|
55
55
|
export interface ImportTransactionsRequest {
|
|
56
|
-
|
|
56
|
+
planId: string;
|
|
57
57
|
}
|
|
58
58
|
export interface UpdateTransactionRequest {
|
|
59
|
-
|
|
59
|
+
planId: string;
|
|
60
60
|
transactionId: string;
|
|
61
61
|
data: PutTransactionWrapper;
|
|
62
62
|
}
|
|
63
63
|
export interface UpdateTransactionsRequest {
|
|
64
|
-
|
|
64
|
+
planId: string;
|
|
65
65
|
data: PatchTransactionsWrapper;
|
|
66
66
|
}
|
|
67
67
|
/**
|
|
@@ -77,97 +77,97 @@ export declare class TransactionsApi extends runtime.BaseAPI {
|
|
|
77
77
|
* Creates a single transaction or multiple transactions. If you provide a body containing a `transaction` object, a single transaction will be created and if you provide a body containing a `transactions` array, multiple transactions will be created. Scheduled transactions (transactions with a future date) cannot be created on this endpoint.
|
|
78
78
|
* Create a single transaction or multiple transactions
|
|
79
79
|
*/
|
|
80
|
-
createTransaction(
|
|
80
|
+
createTransaction(planId: string, data: PostTransactionsWrapper, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SaveTransactionsResponse>;
|
|
81
81
|
/**
|
|
82
82
|
* Deletes a transaction
|
|
83
|
-
*
|
|
83
|
+
* Delete a transaction
|
|
84
84
|
*/
|
|
85
85
|
deleteTransactionRaw(requestParameters: DeleteTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TransactionResponse>>;
|
|
86
86
|
/**
|
|
87
87
|
* Deletes a transaction
|
|
88
|
-
*
|
|
88
|
+
* Delete a transaction
|
|
89
89
|
*/
|
|
90
|
-
deleteTransaction(
|
|
90
|
+
deleteTransaction(planId: string, transactionId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TransactionResponse>;
|
|
91
91
|
/**
|
|
92
92
|
* Returns a single transaction
|
|
93
|
-
*
|
|
93
|
+
* Get a transaction
|
|
94
94
|
*/
|
|
95
95
|
getTransactionByIdRaw(requestParameters: GetTransactionByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TransactionResponse>>;
|
|
96
96
|
/**
|
|
97
97
|
* Returns a single transaction
|
|
98
|
-
*
|
|
98
|
+
* Get a transaction
|
|
99
99
|
*/
|
|
100
|
-
getTransactionById(
|
|
100
|
+
getTransactionById(planId: string, transactionId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TransactionResponse>;
|
|
101
101
|
/**
|
|
102
|
-
* Returns
|
|
103
|
-
*
|
|
102
|
+
* Returns plan transactions, excluding any pending transactions
|
|
103
|
+
* Get all transactions
|
|
104
104
|
*/
|
|
105
105
|
getTransactionsRaw(requestParameters: GetTransactionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TransactionsResponse>>;
|
|
106
106
|
/**
|
|
107
|
-
* Returns
|
|
108
|
-
*
|
|
107
|
+
* Returns plan transactions, excluding any pending transactions
|
|
108
|
+
* Get all transactions
|
|
109
109
|
*/
|
|
110
|
-
getTransactions(
|
|
110
|
+
getTransactions(planId: string, sinceDate?: string, type?: GetTransactionsTypeEnum, lastKnowledgeOfServer?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TransactionsResponse>;
|
|
111
111
|
/**
|
|
112
112
|
* Returns all transactions for a specified account, excluding any pending transactions
|
|
113
|
-
*
|
|
113
|
+
* Get all account transactions
|
|
114
114
|
*/
|
|
115
115
|
getTransactionsByAccountRaw(requestParameters: GetTransactionsByAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TransactionsResponse>>;
|
|
116
116
|
/**
|
|
117
117
|
* Returns all transactions for a specified account, excluding any pending transactions
|
|
118
|
-
*
|
|
118
|
+
* Get all account transactions
|
|
119
119
|
*/
|
|
120
|
-
getTransactionsByAccount(
|
|
120
|
+
getTransactionsByAccount(planId: string, accountId: string, sinceDate?: string, type?: GetTransactionsByAccountTypeEnum, lastKnowledgeOfServer?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TransactionsResponse>;
|
|
121
121
|
/**
|
|
122
|
-
* Returns all transactions for a specified category
|
|
123
|
-
*
|
|
122
|
+
* Returns all transactions for a specified category, excluding any pending transactions
|
|
123
|
+
* Get all category transactions
|
|
124
124
|
*/
|
|
125
125
|
getTransactionsByCategoryRaw(requestParameters: GetTransactionsByCategoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<HybridTransactionsResponse>>;
|
|
126
126
|
/**
|
|
127
|
-
* Returns all transactions for a specified category
|
|
128
|
-
*
|
|
127
|
+
* Returns all transactions for a specified category, excluding any pending transactions
|
|
128
|
+
* Get all category transactions
|
|
129
129
|
*/
|
|
130
|
-
getTransactionsByCategory(
|
|
130
|
+
getTransactionsByCategory(planId: string, categoryId: string, sinceDate?: string, type?: GetTransactionsByCategoryTypeEnum, lastKnowledgeOfServer?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<HybridTransactionsResponse>;
|
|
131
131
|
/**
|
|
132
|
-
* Returns all transactions for a specified month
|
|
133
|
-
*
|
|
132
|
+
* Returns all transactions for a specified month, excluding any pending transactions
|
|
133
|
+
* Get all plan month transactions
|
|
134
134
|
*/
|
|
135
|
-
getTransactionsByMonthRaw(requestParameters: GetTransactionsByMonthRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
135
|
+
getTransactionsByMonthRaw(requestParameters: GetTransactionsByMonthRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TransactionsResponse>>;
|
|
136
136
|
/**
|
|
137
|
-
* Returns all transactions for a specified month
|
|
138
|
-
*
|
|
137
|
+
* Returns all transactions for a specified month, excluding any pending transactions
|
|
138
|
+
* Get all plan month transactions
|
|
139
139
|
*/
|
|
140
|
-
getTransactionsByMonth(
|
|
140
|
+
getTransactionsByMonth(planId: string, month: string, sinceDate?: string, type?: GetTransactionsByMonthTypeEnum, lastKnowledgeOfServer?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TransactionsResponse>;
|
|
141
141
|
/**
|
|
142
|
-
* Returns all transactions for a specified payee
|
|
143
|
-
*
|
|
142
|
+
* Returns all transactions for a specified payee, excluding any pending transactions
|
|
143
|
+
* Get all payee transactions
|
|
144
144
|
*/
|
|
145
145
|
getTransactionsByPayeeRaw(requestParameters: GetTransactionsByPayeeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<HybridTransactionsResponse>>;
|
|
146
146
|
/**
|
|
147
|
-
* Returns all transactions for a specified payee
|
|
148
|
-
*
|
|
147
|
+
* Returns all transactions for a specified payee, excluding any pending transactions
|
|
148
|
+
* Get all payee transactions
|
|
149
149
|
*/
|
|
150
|
-
getTransactionsByPayee(
|
|
150
|
+
getTransactionsByPayee(planId: string, payeeId: string, sinceDate?: string, type?: GetTransactionsByPayeeTypeEnum, lastKnowledgeOfServer?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<HybridTransactionsResponse>;
|
|
151
151
|
/**
|
|
152
|
-
* Imports available transactions on all linked accounts for the given
|
|
152
|
+
* Imports available transactions on all linked accounts for the given plan. Linked accounts allow transactions to be imported directly from a specified financial institution and this endpoint initiates that import. Sending a request to this endpoint is the equivalent of clicking \"Import\" on each account in the web application or tapping the \"New Transactions\" banner in the mobile applications. The response for this endpoint contains the transaction ids that have been imported.
|
|
153
153
|
* Import transactions
|
|
154
154
|
*/
|
|
155
155
|
importTransactionsRaw(requestParameters: ImportTransactionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TransactionsImportResponse>>;
|
|
156
156
|
/**
|
|
157
|
-
* Imports available transactions on all linked accounts for the given
|
|
157
|
+
* Imports available transactions on all linked accounts for the given plan. Linked accounts allow transactions to be imported directly from a specified financial institution and this endpoint initiates that import. Sending a request to this endpoint is the equivalent of clicking \"Import\" on each account in the web application or tapping the \"New Transactions\" banner in the mobile applications. The response for this endpoint contains the transaction ids that have been imported.
|
|
158
158
|
* Import transactions
|
|
159
159
|
*/
|
|
160
|
-
importTransactions(
|
|
160
|
+
importTransactions(planId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TransactionsImportResponse>;
|
|
161
161
|
/**
|
|
162
162
|
* Updates a single transaction
|
|
163
|
-
*
|
|
163
|
+
* Update a transaction
|
|
164
164
|
*/
|
|
165
165
|
updateTransactionRaw(requestParameters: UpdateTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TransactionResponse>>;
|
|
166
166
|
/**
|
|
167
167
|
* Updates a single transaction
|
|
168
|
-
*
|
|
168
|
+
* Update a transaction
|
|
169
169
|
*/
|
|
170
|
-
updateTransaction(
|
|
170
|
+
updateTransaction(planId: string, transactionId: string, data: PutTransactionWrapper, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TransactionResponse>;
|
|
171
171
|
/**
|
|
172
172
|
* Updates multiple transactions, by `id` or `import_id`.
|
|
173
173
|
* Update multiple transactions
|
|
@@ -177,7 +177,7 @@ export declare class TransactionsApi extends runtime.BaseAPI {
|
|
|
177
177
|
* Updates multiple transactions, by `id` or `import_id`.
|
|
178
178
|
* Update multiple transactions
|
|
179
179
|
*/
|
|
180
|
-
updateTransactions(
|
|
180
|
+
updateTransactions(planId: string, data: PatchTransactionsWrapper, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SaveTransactionsResponse>;
|
|
181
181
|
}
|
|
182
182
|
/**
|
|
183
183
|
* @export
|