ynab 1.55.0 → 2.0.0-rc.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 +31 -38
- package/dist/apis/AccountsApi.d.ts +60 -0
- package/dist/apis/AccountsApi.js +137 -0
- package/dist/apis/BudgetsApi.d.ts +58 -0
- package/dist/apis/BudgetsApi.js +129 -0
- package/dist/apis/CategoriesApi.d.ts +77 -0
- package/dist/apis/CategoriesApi.js +183 -0
- package/dist/{esm/transactionsApi.d.ts → apis/CustomTransactionsApi.d.ts} +19 -19
- package/dist/{transactionsApi.js → apis/CustomTransactionsApi.js} +24 -19
- package/dist/apis/DeprecatedApi.d.ts +32 -0
- package/dist/apis/DeprecatedApi.js +63 -0
- package/dist/apis/MonthsApi.d.ts +46 -0
- package/dist/apis/MonthsApi.js +98 -0
- package/dist/apis/PayeeLocationsApi.d.ts +59 -0
- package/dist/apis/PayeeLocationsApi.js +132 -0
- package/dist/apis/PayeesApi.d.ts +46 -0
- package/dist/apis/PayeesApi.js +98 -0
- package/dist/apis/ScheduledTransactionsApi.d.ts +46 -0
- package/dist/apis/ScheduledTransactionsApi.js +98 -0
- package/dist/apis/TransactionsApi.d.ts +201 -0
- package/dist/apis/TransactionsApi.js +461 -0
- package/dist/apis/UserApi.d.ts +28 -0
- package/dist/apis/UserApi.js +55 -0
- package/dist/apis/index.d.ts +10 -0
- package/dist/apis/index.js +24 -0
- package/dist/browser/ynab.js +1 -1
- package/dist/esm/apis/AccountsApi.d.ts +60 -0
- package/dist/esm/apis/AccountsApi.js +256 -0
- package/dist/esm/apis/BudgetsApi.d.ts +58 -0
- package/dist/esm/apis/BudgetsApi.js +248 -0
- package/dist/esm/apis/CategoriesApi.d.ts +77 -0
- package/dist/esm/apis/CategoriesApi.js +324 -0
- package/dist/{transactionsApi.d.ts → esm/apis/CustomTransactionsApi.d.ts} +19 -19
- package/dist/esm/{transactionsApi.js → apis/CustomTransactionsApi.js} +27 -22
- package/dist/esm/apis/DeprecatedApi.d.ts +32 -0
- package/dist/esm/apis/DeprecatedApi.js +138 -0
- package/dist/esm/apis/MonthsApi.d.ts +46 -0
- package/dist/esm/apis/MonthsApi.js +195 -0
- package/dist/esm/apis/PayeeLocationsApi.d.ts +59 -0
- package/dist/esm/apis/PayeeLocationsApi.js +251 -0
- package/dist/esm/apis/PayeesApi.d.ts +46 -0
- package/dist/esm/apis/PayeesApi.js +195 -0
- package/dist/esm/apis/ScheduledTransactionsApi.d.ts +46 -0
- package/dist/esm/apis/ScheduledTransactionsApi.js +195 -0
- package/dist/esm/apis/TransactionsApi.d.ts +201 -0
- package/dist/esm/apis/TransactionsApi.js +734 -0
- package/dist/esm/apis/UserApi.d.ts +28 -0
- package/dist/esm/apis/UserApi.js +130 -0
- package/dist/esm/apis/index.d.ts +10 -0
- package/dist/esm/apis/index.js +12 -0
- package/dist/esm/index.d.ts +24 -36
- package/dist/esm/index.js +22 -30
- package/dist/esm/models/Account.d.ts +140 -0
- package/dist/esm/models/Account.js +88 -0
- package/dist/esm/models/AccountResponse.d.ts +32 -0
- package/dist/esm/models/AccountResponse.js +44 -0
- package/dist/esm/models/AccountResponseData.d.ts +32 -0
- package/dist/esm/models/AccountResponseData.js +44 -0
- package/dist/esm/models/AccountType.d.ts +34 -0
- package/dist/esm/models/AccountType.js +41 -0
- package/dist/esm/models/AccountsResponse.d.ts +32 -0
- package/dist/esm/models/AccountsResponse.js +44 -0
- package/dist/esm/models/AccountsResponseData.d.ts +38 -0
- package/dist/esm/models/AccountsResponseData.js +47 -0
- package/dist/esm/models/BudgetDetail.d.ts +139 -0
- package/dist/esm/models/BudgetDetail.js +89 -0
- package/dist/esm/models/BudgetDetailAllOf.d.ts +95 -0
- package/dist/esm/models/BudgetDetailAllOf.js +71 -0
- package/dist/esm/models/BudgetDetailResponse.d.ts +32 -0
- package/dist/esm/models/BudgetDetailResponse.js +44 -0
- package/dist/esm/models/BudgetDetailResponseData.d.ts +38 -0
- package/dist/esm/models/BudgetDetailResponseData.js +47 -0
- package/dist/esm/models/BudgetSettings.d.ts +39 -0
- package/dist/esm/models/BudgetSettings.js +48 -0
- package/dist/esm/models/BudgetSettingsResponse.d.ts +32 -0
- package/dist/esm/models/BudgetSettingsResponse.js +44 -0
- package/dist/esm/models/BudgetSettingsResponseData.d.ts +32 -0
- package/dist/esm/models/BudgetSettingsResponseData.js +44 -0
- package/dist/esm/models/BudgetSummary.d.ts +76 -0
- package/dist/esm/models/BudgetSummary.js +62 -0
- package/dist/esm/models/BudgetSummaryResponse.d.ts +32 -0
- package/dist/esm/models/BudgetSummaryResponse.js +44 -0
- package/dist/esm/models/BudgetSummaryResponseData.d.ts +38 -0
- package/dist/esm/models/BudgetSummaryResponseData.js +47 -0
- package/dist/esm/models/BulkResponse.d.ts +32 -0
- package/dist/esm/models/BulkResponse.js +44 -0
- package/dist/esm/models/BulkResponseData.d.ts +32 -0
- package/dist/esm/models/BulkResponseData.js +44 -0
- package/dist/esm/models/BulkResponseDataBulk.d.ts +37 -0
- package/dist/esm/models/BulkResponseDataBulk.js +46 -0
- package/dist/esm/models/BulkTransactions.d.ts +32 -0
- package/dist/esm/models/BulkTransactions.js +44 -0
- package/dist/esm/models/CategoriesResponse.d.ts +32 -0
- package/dist/esm/models/CategoriesResponse.js +44 -0
- package/dist/esm/models/CategoriesResponseData.d.ts +38 -0
- package/dist/esm/models/CategoriesResponseData.js +47 -0
- package/dist/esm/models/Category.d.ts +175 -0
- package/dist/esm/models/Category.js +106 -0
- package/dist/esm/models/CategoryGroup.d.ts +49 -0
- package/dist/esm/models/CategoryGroup.js +52 -0
- package/dist/esm/models/CategoryGroupWithCategories.d.ts +56 -0
- package/dist/esm/models/CategoryGroupWithCategories.js +56 -0
- package/dist/esm/models/CategoryGroupWithCategoriesAllOf.d.ts +32 -0
- package/dist/esm/models/CategoryGroupWithCategoriesAllOf.js +44 -0
- package/dist/esm/models/CategoryResponse.d.ts +32 -0
- package/dist/esm/models/CategoryResponse.js +44 -0
- package/dist/esm/models/CategoryResponseData.d.ts +32 -0
- package/dist/esm/models/CategoryResponseData.js +44 -0
- package/dist/esm/models/CurrencyFormat.d.ts +73 -0
- package/dist/esm/models/CurrencyFormat.js +64 -0
- package/dist/esm/models/DateFormat.d.ts +31 -0
- package/dist/esm/models/DateFormat.js +43 -0
- package/dist/esm/models/ErrorDetail.d.ts +43 -0
- package/dist/esm/models/ErrorDetail.js +49 -0
- package/dist/esm/models/ErrorResponse.d.ts +32 -0
- package/dist/esm/models/ErrorResponse.js +44 -0
- package/dist/esm/models/HybridTransaction.d.ts +208 -0
- package/dist/esm/models/HybridTransaction.js +137 -0
- package/dist/esm/models/HybridTransactionAllOf.d.ts +63 -0
- package/dist/esm/models/HybridTransactionAllOf.js +60 -0
- package/dist/esm/models/HybridTransactionsResponse.d.ts +32 -0
- package/dist/esm/models/HybridTransactionsResponse.js +44 -0
- package/dist/esm/models/HybridTransactionsResponseData.d.ts +38 -0
- package/dist/esm/models/HybridTransactionsResponseData.js +47 -0
- package/dist/esm/models/MonthDetail.d.ts +80 -0
- package/dist/esm/models/MonthDetail.js +67 -0
- package/dist/esm/models/MonthDetailAllOf.d.ts +32 -0
- package/dist/esm/models/MonthDetailAllOf.js +44 -0
- package/dist/esm/models/MonthDetailResponse.d.ts +32 -0
- package/dist/esm/models/MonthDetailResponse.js +44 -0
- package/dist/esm/models/MonthDetailResponseData.d.ts +32 -0
- package/dist/esm/models/MonthDetailResponseData.js +44 -0
- package/dist/esm/models/MonthSummariesResponse.d.ts +32 -0
- package/dist/esm/models/MonthSummariesResponse.js +44 -0
- package/dist/esm/models/MonthSummariesResponseData.d.ts +38 -0
- package/dist/esm/models/MonthSummariesResponseData.js +47 -0
- package/dist/esm/models/MonthSummary.d.ts +73 -0
- package/dist/esm/models/MonthSummary.js +63 -0
- package/dist/esm/models/PatchMonthCategoryWrapper.d.ts +32 -0
- package/dist/esm/models/PatchMonthCategoryWrapper.js +44 -0
- package/dist/esm/models/PatchTransactionsWrapper.d.ts +32 -0
- package/dist/esm/models/PatchTransactionsWrapper.js +44 -0
- package/dist/esm/models/Payee.d.ts +49 -0
- package/dist/esm/models/Payee.js +52 -0
- package/dist/esm/models/PayeeLocation.d.ts +55 -0
- package/dist/esm/models/PayeeLocation.js +55 -0
- package/dist/esm/models/PayeeLocationResponse.d.ts +32 -0
- package/dist/esm/models/PayeeLocationResponse.js +44 -0
- package/dist/esm/models/PayeeLocationResponseData.d.ts +32 -0
- package/dist/esm/models/PayeeLocationResponseData.js +44 -0
- package/dist/esm/models/PayeeLocationsResponse.d.ts +32 -0
- package/dist/esm/models/PayeeLocationsResponse.js +44 -0
- package/dist/esm/models/PayeeLocationsResponseData.d.ts +32 -0
- package/dist/esm/models/PayeeLocationsResponseData.js +44 -0
- package/dist/esm/models/PayeeResponse.d.ts +32 -0
- package/dist/esm/models/PayeeResponse.js +44 -0
- package/dist/esm/models/PayeeResponseData.d.ts +32 -0
- package/dist/esm/models/PayeeResponseData.js +44 -0
- package/dist/esm/models/PayeesResponse.d.ts +32 -0
- package/dist/esm/models/PayeesResponse.js +44 -0
- package/dist/esm/models/PayeesResponseData.d.ts +38 -0
- package/dist/esm/models/PayeesResponseData.js +47 -0
- package/dist/esm/models/PostAccountWrapper.d.ts +32 -0
- package/dist/esm/models/PostAccountWrapper.js +44 -0
- package/dist/esm/models/PostTransactionsWrapper.d.ts +38 -0
- package/dist/esm/models/PostTransactionsWrapper.js +46 -0
- package/dist/esm/models/PutTransactionWrapper.d.ts +32 -0
- package/dist/esm/models/PutTransactionWrapper.js +44 -0
- package/dist/esm/models/SaveAccount.d.ts +44 -0
- package/dist/esm/models/SaveAccount.js +50 -0
- package/dist/esm/models/SaveCategoryResponse.d.ts +32 -0
- package/dist/esm/models/SaveCategoryResponse.js +44 -0
- package/dist/esm/models/SaveCategoryResponseData.d.ts +38 -0
- package/dist/esm/models/SaveCategoryResponseData.js +47 -0
- package/dist/esm/models/SaveMonthCategory.d.ts +31 -0
- package/dist/esm/models/SaveMonthCategory.js +43 -0
- package/dist/esm/models/SaveSubTransaction.d.ts +55 -0
- package/dist/esm/models/SaveSubTransaction.js +52 -0
- package/dist/esm/models/SaveTransaction.d.ts +120 -0
- package/dist/esm/models/SaveTransaction.js +86 -0
- package/dist/esm/models/SaveTransactionWithId.d.ts +126 -0
- package/dist/esm/models/SaveTransactionWithId.js +88 -0
- package/dist/esm/models/SaveTransactionWithIdAllOf.d.ts +31 -0
- package/dist/esm/models/SaveTransactionWithIdAllOf.js +43 -0
- package/dist/esm/models/SaveTransactionWithOptionalFields.d.ts +120 -0
- package/dist/esm/models/SaveTransactionWithOptionalFields.js +86 -0
- package/dist/esm/models/SaveTransactionsResponse.d.ts +32 -0
- package/dist/esm/models/SaveTransactionsResponse.js +44 -0
- package/dist/esm/models/SaveTransactionsResponseData.d.ts +56 -0
- package/dist/esm/models/SaveTransactionsResponseData.js +54 -0
- package/dist/esm/models/ScheduledSubTransaction.d.ts +73 -0
- package/dist/esm/models/ScheduledSubTransaction.js +61 -0
- package/dist/esm/models/ScheduledTransactionDetail.d.ts +154 -0
- package/dist/esm/models/ScheduledTransactionDetail.js +113 -0
- package/dist/esm/models/ScheduledTransactionDetailAllOf.d.ts +50 -0
- package/dist/esm/models/ScheduledTransactionDetailAllOf.js +52 -0
- package/dist/esm/models/ScheduledTransactionResponse.d.ts +32 -0
- package/dist/esm/models/ScheduledTransactionResponse.js +44 -0
- package/dist/esm/models/ScheduledTransactionResponseData.d.ts +32 -0
- package/dist/esm/models/ScheduledTransactionResponseData.js +44 -0
- package/dist/esm/models/ScheduledTransactionSummary.d.ts +129 -0
- package/dist/esm/models/ScheduledTransactionSummary.js +102 -0
- package/dist/esm/models/ScheduledTransactionsResponse.d.ts +32 -0
- package/dist/esm/models/ScheduledTransactionsResponse.js +44 -0
- package/dist/esm/models/ScheduledTransactionsResponseData.d.ts +38 -0
- package/dist/esm/models/ScheduledTransactionsResponseData.js +47 -0
- package/dist/esm/models/SubTransaction.d.ts +91 -0
- package/dist/esm/models/SubTransaction.js +67 -0
- package/dist/esm/models/TransactionDetail.d.ts +195 -0
- package/dist/esm/models/TransactionDetail.js +129 -0
- package/dist/esm/models/TransactionDetailAllOf.d.ts +50 -0
- package/dist/esm/models/TransactionDetailAllOf.js +52 -0
- package/dist/esm/models/TransactionResponse.d.ts +32 -0
- package/dist/esm/models/TransactionResponse.js +44 -0
- package/dist/esm/models/TransactionResponseData.d.ts +32 -0
- package/dist/esm/models/TransactionResponseData.js +44 -0
- package/dist/esm/models/TransactionSummary.d.ts +170 -0
- package/dist/esm/models/TransactionSummary.js +118 -0
- package/dist/esm/models/TransactionsImportResponse.d.ts +32 -0
- package/dist/esm/models/TransactionsImportResponse.js +44 -0
- package/dist/esm/models/TransactionsImportResponseData.d.ts +31 -0
- package/dist/esm/models/TransactionsImportResponseData.js +43 -0
- package/dist/esm/models/TransactionsResponse.d.ts +32 -0
- package/dist/esm/models/TransactionsResponse.js +44 -0
- package/dist/esm/models/TransactionsResponseData.d.ts +38 -0
- package/dist/esm/models/TransactionsResponseData.js +47 -0
- package/dist/esm/models/User.d.ts +31 -0
- package/dist/esm/models/User.js +43 -0
- package/dist/esm/models/UserResponse.d.ts +32 -0
- package/dist/esm/models/UserResponse.js +44 -0
- package/dist/esm/models/UserResponseData.d.ts +32 -0
- package/dist/esm/models/UserResponseData.js +44 -0
- package/dist/esm/models/index.d.ts +90 -0
- package/dist/esm/models/index.js +92 -0
- package/dist/esm/runtime.d.ts +182 -0
- package/dist/esm/runtime.js +555 -0
- package/dist/index.d.ts +24 -36
- package/dist/index.js +22 -30
- package/dist/models/Account.d.ts +140 -0
- package/dist/models/Account.js +95 -0
- package/dist/models/AccountResponse.d.ts +32 -0
- package/dist/models/AccountResponse.js +51 -0
- package/dist/models/AccountResponseData.d.ts +32 -0
- package/dist/models/AccountResponseData.js +51 -0
- package/dist/models/AccountType.d.ts +34 -0
- package/dist/models/AccountType.js +47 -0
- package/dist/models/AccountsResponse.d.ts +32 -0
- package/dist/models/AccountsResponse.js +51 -0
- package/dist/models/AccountsResponseData.d.ts +38 -0
- package/dist/models/AccountsResponseData.js +54 -0
- package/dist/models/BudgetDetail.d.ts +139 -0
- package/dist/models/BudgetDetail.js +96 -0
- package/dist/models/BudgetDetailAllOf.d.ts +95 -0
- package/dist/models/BudgetDetailAllOf.js +78 -0
- package/dist/models/BudgetDetailResponse.d.ts +32 -0
- package/dist/models/BudgetDetailResponse.js +51 -0
- package/dist/models/BudgetDetailResponseData.d.ts +38 -0
- package/dist/models/BudgetDetailResponseData.js +54 -0
- package/dist/models/BudgetSettings.d.ts +39 -0
- package/dist/models/BudgetSettings.js +55 -0
- package/dist/models/BudgetSettingsResponse.d.ts +32 -0
- package/dist/models/BudgetSettingsResponse.js +51 -0
- package/dist/models/BudgetSettingsResponseData.d.ts +32 -0
- package/dist/models/BudgetSettingsResponseData.js +51 -0
- package/dist/models/BudgetSummary.d.ts +76 -0
- package/dist/models/BudgetSummary.js +69 -0
- package/dist/models/BudgetSummaryResponse.d.ts +32 -0
- package/dist/models/BudgetSummaryResponse.js +51 -0
- package/dist/models/BudgetSummaryResponseData.d.ts +38 -0
- package/dist/models/BudgetSummaryResponseData.js +54 -0
- package/dist/models/BulkResponse.d.ts +32 -0
- package/dist/models/BulkResponse.js +51 -0
- package/dist/models/BulkResponseData.d.ts +32 -0
- package/dist/models/BulkResponseData.js +51 -0
- package/dist/models/BulkResponseDataBulk.d.ts +37 -0
- package/dist/models/BulkResponseDataBulk.js +53 -0
- package/dist/models/BulkTransactions.d.ts +32 -0
- package/dist/models/BulkTransactions.js +51 -0
- package/dist/models/CategoriesResponse.d.ts +32 -0
- package/dist/models/CategoriesResponse.js +51 -0
- package/dist/models/CategoriesResponseData.d.ts +38 -0
- package/dist/models/CategoriesResponseData.js +54 -0
- package/dist/models/Category.d.ts +175 -0
- package/dist/models/Category.js +113 -0
- package/dist/models/CategoryGroup.d.ts +49 -0
- package/dist/models/CategoryGroup.js +59 -0
- package/dist/models/CategoryGroupWithCategories.d.ts +56 -0
- package/dist/models/CategoryGroupWithCategories.js +63 -0
- package/dist/models/CategoryGroupWithCategoriesAllOf.d.ts +32 -0
- package/dist/models/CategoryGroupWithCategoriesAllOf.js +51 -0
- package/dist/models/CategoryResponse.d.ts +32 -0
- package/dist/models/CategoryResponse.js +51 -0
- package/dist/models/CategoryResponseData.d.ts +32 -0
- package/dist/models/CategoryResponseData.js +51 -0
- package/dist/models/CurrencyFormat.d.ts +73 -0
- package/dist/models/CurrencyFormat.js +71 -0
- package/dist/models/DateFormat.d.ts +31 -0
- package/dist/models/DateFormat.js +50 -0
- package/dist/models/ErrorDetail.d.ts +43 -0
- package/dist/models/ErrorDetail.js +56 -0
- package/dist/models/ErrorResponse.d.ts +32 -0
- package/dist/models/ErrorResponse.js +51 -0
- package/dist/models/HybridTransaction.d.ts +208 -0
- package/dist/models/HybridTransaction.js +144 -0
- package/dist/models/HybridTransactionAllOf.d.ts +63 -0
- package/dist/models/HybridTransactionAllOf.js +67 -0
- package/dist/models/HybridTransactionsResponse.d.ts +32 -0
- package/dist/models/HybridTransactionsResponse.js +51 -0
- package/dist/models/HybridTransactionsResponseData.d.ts +38 -0
- package/dist/models/HybridTransactionsResponseData.js +54 -0
- package/dist/models/MonthDetail.d.ts +80 -0
- package/dist/models/MonthDetail.js +74 -0
- package/dist/models/MonthDetailAllOf.d.ts +32 -0
- package/dist/models/MonthDetailAllOf.js +51 -0
- package/dist/models/MonthDetailResponse.d.ts +32 -0
- package/dist/models/MonthDetailResponse.js +51 -0
- package/dist/models/MonthDetailResponseData.d.ts +32 -0
- package/dist/models/MonthDetailResponseData.js +51 -0
- package/dist/models/MonthSummariesResponse.d.ts +32 -0
- package/dist/models/MonthSummariesResponse.js +51 -0
- package/dist/models/MonthSummariesResponseData.d.ts +38 -0
- package/dist/models/MonthSummariesResponseData.js +54 -0
- package/dist/models/MonthSummary.d.ts +73 -0
- package/dist/models/MonthSummary.js +70 -0
- package/dist/models/PatchMonthCategoryWrapper.d.ts +32 -0
- package/dist/models/PatchMonthCategoryWrapper.js +51 -0
- package/dist/models/PatchTransactionsWrapper.d.ts +32 -0
- package/dist/models/PatchTransactionsWrapper.js +51 -0
- package/dist/models/Payee.d.ts +49 -0
- package/dist/models/Payee.js +59 -0
- package/dist/models/PayeeLocation.d.ts +55 -0
- package/dist/models/PayeeLocation.js +62 -0
- package/dist/models/PayeeLocationResponse.d.ts +32 -0
- package/dist/models/PayeeLocationResponse.js +51 -0
- package/dist/models/PayeeLocationResponseData.d.ts +32 -0
- package/dist/models/PayeeLocationResponseData.js +51 -0
- package/dist/models/PayeeLocationsResponse.d.ts +32 -0
- package/dist/models/PayeeLocationsResponse.js +51 -0
- package/dist/models/PayeeLocationsResponseData.d.ts +32 -0
- package/dist/models/PayeeLocationsResponseData.js +51 -0
- package/dist/models/PayeeResponse.d.ts +32 -0
- package/dist/models/PayeeResponse.js +51 -0
- package/dist/models/PayeeResponseData.d.ts +32 -0
- package/dist/models/PayeeResponseData.js +51 -0
- package/dist/models/PayeesResponse.d.ts +32 -0
- package/dist/models/PayeesResponse.js +51 -0
- package/dist/models/PayeesResponseData.d.ts +38 -0
- package/dist/models/PayeesResponseData.js +54 -0
- package/dist/models/PostAccountWrapper.d.ts +32 -0
- package/dist/models/PostAccountWrapper.js +51 -0
- package/dist/models/PostTransactionsWrapper.d.ts +38 -0
- package/dist/models/PostTransactionsWrapper.js +53 -0
- package/dist/models/PutTransactionWrapper.d.ts +32 -0
- package/dist/models/PutTransactionWrapper.js +51 -0
- package/dist/models/SaveAccount.d.ts +44 -0
- package/dist/models/SaveAccount.js +57 -0
- package/dist/models/SaveCategoryResponse.d.ts +32 -0
- package/dist/models/SaveCategoryResponse.js +51 -0
- package/dist/models/SaveCategoryResponseData.d.ts +38 -0
- package/dist/models/SaveCategoryResponseData.js +54 -0
- package/dist/models/SaveMonthCategory.d.ts +31 -0
- package/dist/models/SaveMonthCategory.js +50 -0
- package/dist/models/SaveSubTransaction.d.ts +55 -0
- package/dist/models/SaveSubTransaction.js +59 -0
- package/dist/models/SaveTransaction.d.ts +120 -0
- package/dist/models/SaveTransaction.js +93 -0
- package/dist/models/SaveTransactionWithId.d.ts +126 -0
- package/dist/models/SaveTransactionWithId.js +95 -0
- package/dist/models/SaveTransactionWithIdAllOf.d.ts +31 -0
- package/dist/models/SaveTransactionWithIdAllOf.js +50 -0
- package/dist/models/SaveTransactionWithOptionalFields.d.ts +120 -0
- package/dist/models/SaveTransactionWithOptionalFields.js +93 -0
- package/dist/models/SaveTransactionsResponse.d.ts +32 -0
- package/dist/models/SaveTransactionsResponse.js +51 -0
- package/dist/models/SaveTransactionsResponseData.d.ts +56 -0
- package/dist/models/SaveTransactionsResponseData.js +61 -0
- package/dist/models/ScheduledSubTransaction.d.ts +73 -0
- package/dist/models/ScheduledSubTransaction.js +68 -0
- package/dist/models/ScheduledTransactionDetail.d.ts +154 -0
- package/dist/models/ScheduledTransactionDetail.js +120 -0
- package/dist/models/ScheduledTransactionDetailAllOf.d.ts +50 -0
- package/dist/models/ScheduledTransactionDetailAllOf.js +59 -0
- package/dist/models/ScheduledTransactionResponse.d.ts +32 -0
- package/dist/models/ScheduledTransactionResponse.js +51 -0
- package/dist/models/ScheduledTransactionResponseData.d.ts +32 -0
- package/dist/models/ScheduledTransactionResponseData.js +51 -0
- package/dist/models/ScheduledTransactionSummary.d.ts +129 -0
- package/dist/models/ScheduledTransactionSummary.js +109 -0
- package/dist/models/ScheduledTransactionsResponse.d.ts +32 -0
- package/dist/models/ScheduledTransactionsResponse.js +51 -0
- package/dist/models/ScheduledTransactionsResponseData.d.ts +38 -0
- package/dist/models/ScheduledTransactionsResponseData.js +54 -0
- package/dist/models/SubTransaction.d.ts +91 -0
- package/dist/models/SubTransaction.js +74 -0
- package/dist/models/TransactionDetail.d.ts +195 -0
- package/dist/models/TransactionDetail.js +136 -0
- package/dist/models/TransactionDetailAllOf.d.ts +50 -0
- package/dist/models/TransactionDetailAllOf.js +59 -0
- package/dist/models/TransactionResponse.d.ts +32 -0
- package/dist/models/TransactionResponse.js +51 -0
- package/dist/models/TransactionResponseData.d.ts +32 -0
- package/dist/models/TransactionResponseData.js +51 -0
- package/dist/models/TransactionSummary.d.ts +170 -0
- package/dist/models/TransactionSummary.js +125 -0
- package/dist/models/TransactionsImportResponse.d.ts +32 -0
- package/dist/models/TransactionsImportResponse.js +51 -0
- package/dist/models/TransactionsImportResponseData.d.ts +31 -0
- package/dist/models/TransactionsImportResponseData.js +50 -0
- package/dist/models/TransactionsResponse.d.ts +32 -0
- package/dist/models/TransactionsResponse.js +51 -0
- package/dist/models/TransactionsResponseData.d.ts +38 -0
- package/dist/models/TransactionsResponseData.js +54 -0
- package/dist/models/User.d.ts +31 -0
- package/dist/models/User.js +50 -0
- package/dist/models/UserResponse.d.ts +32 -0
- package/dist/models/UserResponse.js +51 -0
- package/dist/models/UserResponseData.d.ts +32 -0
- package/dist/models/UserResponseData.js +51 -0
- package/dist/models/index.d.ts +90 -0
- package/dist/models/index.js +104 -0
- package/dist/runtime.d.ts +182 -0
- package/dist/runtime.js +336 -0
- package/package.json +4 -4
- package/dist/api.d.ts +0 -4639
- package/dist/api.js +0 -3757
- package/dist/browser/ynab.js.LICENSE.txt +0 -1
- package/dist/configuration.d.ts +0 -26
- package/dist/configuration.js +0 -22
- package/dist/esm/api.d.ts +0 -4639
- package/dist/esm/api.js +0 -4067
- package/dist/esm/configuration.d.ts +0 -26
- package/dist/esm/configuration.js +0 -20
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* YNAB API Endpoints
|
|
6
|
+
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ScheduledTransactionsResponseToJSON = exports.ScheduledTransactionsResponseFromJSONTyped = exports.ScheduledTransactionsResponseFromJSON = exports.instanceOfScheduledTransactionsResponse = void 0;
|
|
17
|
+
const ScheduledTransactionsResponseData_1 = require("./ScheduledTransactionsResponseData");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the ScheduledTransactionsResponse interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfScheduledTransactionsResponse(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
isInstance = isInstance && "data" in value;
|
|
24
|
+
return isInstance;
|
|
25
|
+
}
|
|
26
|
+
exports.instanceOfScheduledTransactionsResponse = instanceOfScheduledTransactionsResponse;
|
|
27
|
+
function ScheduledTransactionsResponseFromJSON(json) {
|
|
28
|
+
return ScheduledTransactionsResponseFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
exports.ScheduledTransactionsResponseFromJSON = ScheduledTransactionsResponseFromJSON;
|
|
31
|
+
function ScheduledTransactionsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if ((json === undefined) || (json === null)) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': (0, ScheduledTransactionsResponseData_1.ScheduledTransactionsResponseDataFromJSON)(json['data']),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
exports.ScheduledTransactionsResponseFromJSONTyped = ScheduledTransactionsResponseFromJSONTyped;
|
|
40
|
+
function ScheduledTransactionsResponseToJSON(value) {
|
|
41
|
+
if (value === undefined) {
|
|
42
|
+
return undefined;
|
|
43
|
+
}
|
|
44
|
+
if (value === null) {
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'data': (0, ScheduledTransactionsResponseData_1.ScheduledTransactionsResponseDataToJSON)(value.data),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
exports.ScheduledTransactionsResponseToJSON = ScheduledTransactionsResponseToJSON;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* YNAB API Endpoints
|
|
3
|
+
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { ScheduledTransactionDetail } from './ScheduledTransactionDetail';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ScheduledTransactionsResponseData
|
|
17
|
+
*/
|
|
18
|
+
export interface ScheduledTransactionsResponseData {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<ScheduledTransactionDetail>}
|
|
22
|
+
* @memberof ScheduledTransactionsResponseData
|
|
23
|
+
*/
|
|
24
|
+
scheduled_transactions: Array<ScheduledTransactionDetail>;
|
|
25
|
+
/**
|
|
26
|
+
* The knowledge of the server
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof ScheduledTransactionsResponseData
|
|
29
|
+
*/
|
|
30
|
+
server_knowledge: number;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the ScheduledTransactionsResponseData interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfScheduledTransactionsResponseData(value: object): boolean;
|
|
36
|
+
export declare function ScheduledTransactionsResponseDataFromJSON(json: any): ScheduledTransactionsResponseData;
|
|
37
|
+
export declare function ScheduledTransactionsResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduledTransactionsResponseData;
|
|
38
|
+
export declare function ScheduledTransactionsResponseDataToJSON(value?: ScheduledTransactionsResponseData | null): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* YNAB API Endpoints
|
|
6
|
+
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ScheduledTransactionsResponseDataToJSON = exports.ScheduledTransactionsResponseDataFromJSONTyped = exports.ScheduledTransactionsResponseDataFromJSON = exports.instanceOfScheduledTransactionsResponseData = void 0;
|
|
17
|
+
const ScheduledTransactionDetail_1 = require("./ScheduledTransactionDetail");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the ScheduledTransactionsResponseData interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfScheduledTransactionsResponseData(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
isInstance = isInstance && "scheduled_transactions" in value;
|
|
24
|
+
isInstance = isInstance && "server_knowledge" in value;
|
|
25
|
+
return isInstance;
|
|
26
|
+
}
|
|
27
|
+
exports.instanceOfScheduledTransactionsResponseData = instanceOfScheduledTransactionsResponseData;
|
|
28
|
+
function ScheduledTransactionsResponseDataFromJSON(json) {
|
|
29
|
+
return ScheduledTransactionsResponseDataFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
exports.ScheduledTransactionsResponseDataFromJSON = ScheduledTransactionsResponseDataFromJSON;
|
|
32
|
+
function ScheduledTransactionsResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if ((json === undefined) || (json === null)) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'scheduled_transactions': (json['scheduled_transactions'].map(ScheduledTransactionDetail_1.ScheduledTransactionDetailFromJSON)),
|
|
38
|
+
'server_knowledge': json['server_knowledge'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
exports.ScheduledTransactionsResponseDataFromJSONTyped = ScheduledTransactionsResponseDataFromJSONTyped;
|
|
42
|
+
function ScheduledTransactionsResponseDataToJSON(value) {
|
|
43
|
+
if (value === undefined) {
|
|
44
|
+
return undefined;
|
|
45
|
+
}
|
|
46
|
+
if (value === null) {
|
|
47
|
+
return null;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'scheduled_transactions': (value.scheduled_transactions.map(ScheduledTransactionDetail_1.ScheduledTransactionDetailToJSON)),
|
|
51
|
+
'server_knowledge': value.server_knowledge,
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
exports.ScheduledTransactionsResponseDataToJSON = ScheduledTransactionsResponseDataToJSON;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* YNAB API Endpoints
|
|
3
|
+
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SubTransaction
|
|
16
|
+
*/
|
|
17
|
+
export interface SubTransaction {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SubTransaction
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SubTransaction
|
|
28
|
+
*/
|
|
29
|
+
transaction_id: string;
|
|
30
|
+
/**
|
|
31
|
+
* The subtransaction amount in milliunits format
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof SubTransaction
|
|
34
|
+
*/
|
|
35
|
+
amount: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof SubTransaction
|
|
40
|
+
*/
|
|
41
|
+
memo?: string | null;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof SubTransaction
|
|
46
|
+
*/
|
|
47
|
+
payee_id?: string | null;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof SubTransaction
|
|
52
|
+
*/
|
|
53
|
+
payee_name?: string | null;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof SubTransaction
|
|
58
|
+
*/
|
|
59
|
+
category_id?: string | null;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof SubTransaction
|
|
64
|
+
*/
|
|
65
|
+
category_name?: string | null;
|
|
66
|
+
/**
|
|
67
|
+
* If a transfer, the account_id which the subtransaction transfers to
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof SubTransaction
|
|
70
|
+
*/
|
|
71
|
+
transfer_account_id?: string | null;
|
|
72
|
+
/**
|
|
73
|
+
* If a transfer, the id of transaction on the other side of the transfer
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof SubTransaction
|
|
76
|
+
*/
|
|
77
|
+
transfer_transaction_id?: string | null;
|
|
78
|
+
/**
|
|
79
|
+
* Whether or not the subtransaction has been deleted. Deleted subtransactions will only be included in delta requests.
|
|
80
|
+
* @type {boolean}
|
|
81
|
+
* @memberof SubTransaction
|
|
82
|
+
*/
|
|
83
|
+
deleted: boolean;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Check if a given object implements the SubTransaction interface.
|
|
87
|
+
*/
|
|
88
|
+
export declare function instanceOfSubTransaction(value: object): boolean;
|
|
89
|
+
export declare function SubTransactionFromJSON(json: any): SubTransaction;
|
|
90
|
+
export declare function SubTransactionFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubTransaction;
|
|
91
|
+
export declare function SubTransactionToJSON(value?: SubTransaction | null): any;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* YNAB API Endpoints
|
|
6
|
+
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.SubTransactionToJSON = exports.SubTransactionFromJSONTyped = exports.SubTransactionFromJSON = exports.instanceOfSubTransaction = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the SubTransaction interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfSubTransaction(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
isInstance = isInstance && "id" in value;
|
|
24
|
+
isInstance = isInstance && "transaction_id" in value;
|
|
25
|
+
isInstance = isInstance && "amount" in value;
|
|
26
|
+
isInstance = isInstance && "deleted" in value;
|
|
27
|
+
return isInstance;
|
|
28
|
+
}
|
|
29
|
+
exports.instanceOfSubTransaction = instanceOfSubTransaction;
|
|
30
|
+
function SubTransactionFromJSON(json) {
|
|
31
|
+
return SubTransactionFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
exports.SubTransactionFromJSON = SubTransactionFromJSON;
|
|
34
|
+
function SubTransactionFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if ((json === undefined) || (json === null)) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'id': json['id'],
|
|
40
|
+
'transaction_id': json['transaction_id'],
|
|
41
|
+
'amount': json['amount'],
|
|
42
|
+
'memo': !(0, runtime_1.exists)(json, 'memo') ? undefined : json['memo'],
|
|
43
|
+
'payee_id': !(0, runtime_1.exists)(json, 'payee_id') ? undefined : json['payee_id'],
|
|
44
|
+
'payee_name': !(0, runtime_1.exists)(json, 'payee_name') ? undefined : json['payee_name'],
|
|
45
|
+
'category_id': !(0, runtime_1.exists)(json, 'category_id') ? undefined : json['category_id'],
|
|
46
|
+
'category_name': !(0, runtime_1.exists)(json, 'category_name') ? undefined : json['category_name'],
|
|
47
|
+
'transfer_account_id': !(0, runtime_1.exists)(json, 'transfer_account_id') ? undefined : json['transfer_account_id'],
|
|
48
|
+
'transfer_transaction_id': !(0, runtime_1.exists)(json, 'transfer_transaction_id') ? undefined : json['transfer_transaction_id'],
|
|
49
|
+
'deleted': json['deleted'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
exports.SubTransactionFromJSONTyped = SubTransactionFromJSONTyped;
|
|
53
|
+
function SubTransactionToJSON(value) {
|
|
54
|
+
if (value === undefined) {
|
|
55
|
+
return undefined;
|
|
56
|
+
}
|
|
57
|
+
if (value === null) {
|
|
58
|
+
return null;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'id': value.id,
|
|
62
|
+
'transaction_id': value.transaction_id,
|
|
63
|
+
'amount': value.amount,
|
|
64
|
+
'memo': value.memo,
|
|
65
|
+
'payee_id': value.payee_id,
|
|
66
|
+
'payee_name': value.payee_name,
|
|
67
|
+
'category_id': value.category_id,
|
|
68
|
+
'category_name': value.category_name,
|
|
69
|
+
'transfer_account_id': value.transfer_account_id,
|
|
70
|
+
'transfer_transaction_id': value.transfer_transaction_id,
|
|
71
|
+
'deleted': value.deleted,
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
exports.SubTransactionToJSON = SubTransactionToJSON;
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* YNAB API Endpoints
|
|
3
|
+
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { SubTransaction } from './SubTransaction';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface TransactionDetail
|
|
17
|
+
*/
|
|
18
|
+
export interface TransactionDetail {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof TransactionDetail
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
* The transaction date in ISO format (e.g. 2016-12-01)
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof TransactionDetail
|
|
29
|
+
*/
|
|
30
|
+
date: string;
|
|
31
|
+
/**
|
|
32
|
+
* The transaction amount in milliunits format
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof TransactionDetail
|
|
35
|
+
*/
|
|
36
|
+
amount: number;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof TransactionDetail
|
|
41
|
+
*/
|
|
42
|
+
memo?: string | null;
|
|
43
|
+
/**
|
|
44
|
+
* The cleared status of the transaction
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof TransactionDetail
|
|
47
|
+
*/
|
|
48
|
+
cleared: TransactionDetailClearedEnum;
|
|
49
|
+
/**
|
|
50
|
+
* Whether or not the transaction is approved
|
|
51
|
+
* @type {boolean}
|
|
52
|
+
* @memberof TransactionDetail
|
|
53
|
+
*/
|
|
54
|
+
approved: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* The transaction flag
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof TransactionDetail
|
|
59
|
+
*/
|
|
60
|
+
flag_color?: TransactionDetailFlagColorEnum;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof TransactionDetail
|
|
65
|
+
*/
|
|
66
|
+
account_id: string;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof TransactionDetail
|
|
71
|
+
*/
|
|
72
|
+
payee_id?: string | null;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof TransactionDetail
|
|
77
|
+
*/
|
|
78
|
+
category_id?: string | null;
|
|
79
|
+
/**
|
|
80
|
+
* If a transfer transaction, the account to which it transfers
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof TransactionDetail
|
|
83
|
+
*/
|
|
84
|
+
transfer_account_id?: string | null;
|
|
85
|
+
/**
|
|
86
|
+
* If a transfer transaction, the id of transaction on the other side of the transfer
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof TransactionDetail
|
|
89
|
+
*/
|
|
90
|
+
transfer_transaction_id?: string | null;
|
|
91
|
+
/**
|
|
92
|
+
* If transaction is matched, the id of the matched transaction
|
|
93
|
+
* @type {string}
|
|
94
|
+
* @memberof TransactionDetail
|
|
95
|
+
*/
|
|
96
|
+
matched_transaction_id?: string | null;
|
|
97
|
+
/**
|
|
98
|
+
* If the transaction was imported, this field is a unique (by account) import identifier. If this transaction was imported through File Based Import or Direct Import and not through the API, the import_id will have the format: 'YNAB:[milliunit_amount]:[iso_date]:[occurrence]'. For example, a transaction dated 2015-12-30 in the amount of -$294.23 USD would have an import_id of 'YNAB:-294230:2015-12-30:1'. If a second transaction on the same account was imported and had the same date and same amount, its import_id would be 'YNAB:-294230:2015-12-30:2'.
|
|
99
|
+
* @type {string}
|
|
100
|
+
* @memberof TransactionDetail
|
|
101
|
+
*/
|
|
102
|
+
import_id?: string | null;
|
|
103
|
+
/**
|
|
104
|
+
* If the transaction was imported, the payee name that was used when importing and before applying any payee rename rules
|
|
105
|
+
* @type {string}
|
|
106
|
+
* @memberof TransactionDetail
|
|
107
|
+
*/
|
|
108
|
+
import_payee_name?: string | null;
|
|
109
|
+
/**
|
|
110
|
+
* If the transaction was imported, the original payee name as it appeared on the statement
|
|
111
|
+
* @type {string}
|
|
112
|
+
* @memberof TransactionDetail
|
|
113
|
+
*/
|
|
114
|
+
import_payee_name_original?: string | null;
|
|
115
|
+
/**
|
|
116
|
+
* If the transaction is a debt/loan account transaction, the type of transaction
|
|
117
|
+
* @type {string}
|
|
118
|
+
* @memberof TransactionDetail
|
|
119
|
+
*/
|
|
120
|
+
debt_transaction_type?: TransactionDetailDebtTransactionTypeEnum;
|
|
121
|
+
/**
|
|
122
|
+
* Whether or not the transaction has been deleted. Deleted transactions will only be included in delta requests.
|
|
123
|
+
* @type {boolean}
|
|
124
|
+
* @memberof TransactionDetail
|
|
125
|
+
*/
|
|
126
|
+
deleted: boolean;
|
|
127
|
+
/**
|
|
128
|
+
*
|
|
129
|
+
* @type {string}
|
|
130
|
+
* @memberof TransactionDetail
|
|
131
|
+
*/
|
|
132
|
+
account_name: string;
|
|
133
|
+
/**
|
|
134
|
+
*
|
|
135
|
+
* @type {string}
|
|
136
|
+
* @memberof TransactionDetail
|
|
137
|
+
*/
|
|
138
|
+
payee_name?: string | null;
|
|
139
|
+
/**
|
|
140
|
+
* The name of the category. If a split transaction, this will be 'Split'.
|
|
141
|
+
* @type {string}
|
|
142
|
+
* @memberof TransactionDetail
|
|
143
|
+
*/
|
|
144
|
+
category_name?: string | null;
|
|
145
|
+
/**
|
|
146
|
+
* If a split transaction, the subtransactions.
|
|
147
|
+
* @type {Array<SubTransaction>}
|
|
148
|
+
* @memberof TransactionDetail
|
|
149
|
+
*/
|
|
150
|
+
subtransactions: Array<SubTransaction>;
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* @export
|
|
154
|
+
*/
|
|
155
|
+
export declare const TransactionDetailClearedEnum: {
|
|
156
|
+
readonly Cleared: "cleared";
|
|
157
|
+
readonly Uncleared: "uncleared";
|
|
158
|
+
readonly Reconciled: "reconciled";
|
|
159
|
+
};
|
|
160
|
+
export declare type TransactionDetailClearedEnum = typeof TransactionDetailClearedEnum[keyof typeof TransactionDetailClearedEnum];
|
|
161
|
+
/**
|
|
162
|
+
* @export
|
|
163
|
+
*/
|
|
164
|
+
export declare const TransactionDetailFlagColorEnum: {
|
|
165
|
+
readonly Red: "red";
|
|
166
|
+
readonly Orange: "orange";
|
|
167
|
+
readonly Yellow: "yellow";
|
|
168
|
+
readonly Green: "green";
|
|
169
|
+
readonly Blue: "blue";
|
|
170
|
+
readonly Purple: "purple";
|
|
171
|
+
readonly Null: "null";
|
|
172
|
+
};
|
|
173
|
+
export declare type TransactionDetailFlagColorEnum = typeof TransactionDetailFlagColorEnum[keyof typeof TransactionDetailFlagColorEnum];
|
|
174
|
+
/**
|
|
175
|
+
* @export
|
|
176
|
+
*/
|
|
177
|
+
export declare const TransactionDetailDebtTransactionTypeEnum: {
|
|
178
|
+
readonly Payment: "payment";
|
|
179
|
+
readonly Refund: "refund";
|
|
180
|
+
readonly Fee: "fee";
|
|
181
|
+
readonly Interest: "interest";
|
|
182
|
+
readonly Escrow: "escrow";
|
|
183
|
+
readonly BalancedAdjustment: "balancedAdjustment";
|
|
184
|
+
readonly Credit: "credit";
|
|
185
|
+
readonly Charge: "charge";
|
|
186
|
+
readonly Null: "null";
|
|
187
|
+
};
|
|
188
|
+
export declare type TransactionDetailDebtTransactionTypeEnum = typeof TransactionDetailDebtTransactionTypeEnum[keyof typeof TransactionDetailDebtTransactionTypeEnum];
|
|
189
|
+
/**
|
|
190
|
+
* Check if a given object implements the TransactionDetail interface.
|
|
191
|
+
*/
|
|
192
|
+
export declare function instanceOfTransactionDetail(value: object): boolean;
|
|
193
|
+
export declare function TransactionDetailFromJSON(json: any): TransactionDetail;
|
|
194
|
+
export declare function TransactionDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionDetail;
|
|
195
|
+
export declare function TransactionDetailToJSON(value?: TransactionDetail | null): any;
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* YNAB API Endpoints
|
|
6
|
+
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.TransactionDetailToJSON = exports.TransactionDetailFromJSONTyped = exports.TransactionDetailFromJSON = exports.instanceOfTransactionDetail = exports.TransactionDetailDebtTransactionTypeEnum = exports.TransactionDetailFlagColorEnum = exports.TransactionDetailClearedEnum = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
const SubTransaction_1 = require("./SubTransaction");
|
|
19
|
+
/**
|
|
20
|
+
* @export
|
|
21
|
+
*/
|
|
22
|
+
exports.TransactionDetailClearedEnum = {
|
|
23
|
+
Cleared: 'cleared',
|
|
24
|
+
Uncleared: 'uncleared',
|
|
25
|
+
Reconciled: 'reconciled'
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* @export
|
|
29
|
+
*/
|
|
30
|
+
exports.TransactionDetailFlagColorEnum = {
|
|
31
|
+
Red: 'red',
|
|
32
|
+
Orange: 'orange',
|
|
33
|
+
Yellow: 'yellow',
|
|
34
|
+
Green: 'green',
|
|
35
|
+
Blue: 'blue',
|
|
36
|
+
Purple: 'purple',
|
|
37
|
+
Null: 'null'
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* @export
|
|
41
|
+
*/
|
|
42
|
+
exports.TransactionDetailDebtTransactionTypeEnum = {
|
|
43
|
+
Payment: 'payment',
|
|
44
|
+
Refund: 'refund',
|
|
45
|
+
Fee: 'fee',
|
|
46
|
+
Interest: 'interest',
|
|
47
|
+
Escrow: 'escrow',
|
|
48
|
+
BalancedAdjustment: 'balancedAdjustment',
|
|
49
|
+
Credit: 'credit',
|
|
50
|
+
Charge: 'charge',
|
|
51
|
+
Null: 'null'
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* Check if a given object implements the TransactionDetail interface.
|
|
55
|
+
*/
|
|
56
|
+
function instanceOfTransactionDetail(value) {
|
|
57
|
+
let isInstance = true;
|
|
58
|
+
isInstance = isInstance && "id" in value;
|
|
59
|
+
isInstance = isInstance && "date" in value;
|
|
60
|
+
isInstance = isInstance && "amount" in value;
|
|
61
|
+
isInstance = isInstance && "cleared" in value;
|
|
62
|
+
isInstance = isInstance && "approved" in value;
|
|
63
|
+
isInstance = isInstance && "account_id" in value;
|
|
64
|
+
isInstance = isInstance && "deleted" in value;
|
|
65
|
+
isInstance = isInstance && "account_name" in value;
|
|
66
|
+
isInstance = isInstance && "subtransactions" in value;
|
|
67
|
+
return isInstance;
|
|
68
|
+
}
|
|
69
|
+
exports.instanceOfTransactionDetail = instanceOfTransactionDetail;
|
|
70
|
+
function TransactionDetailFromJSON(json) {
|
|
71
|
+
return TransactionDetailFromJSONTyped(json, false);
|
|
72
|
+
}
|
|
73
|
+
exports.TransactionDetailFromJSON = TransactionDetailFromJSON;
|
|
74
|
+
function TransactionDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
75
|
+
if ((json === undefined) || (json === null)) {
|
|
76
|
+
return json;
|
|
77
|
+
}
|
|
78
|
+
return {
|
|
79
|
+
'id': json['id'],
|
|
80
|
+
'date': json['date'],
|
|
81
|
+
'amount': json['amount'],
|
|
82
|
+
'memo': !(0, runtime_1.exists)(json, 'memo') ? undefined : json['memo'],
|
|
83
|
+
'cleared': json['cleared'],
|
|
84
|
+
'approved': json['approved'],
|
|
85
|
+
'flag_color': !(0, runtime_1.exists)(json, 'flag_color') ? undefined : json['flag_color'],
|
|
86
|
+
'account_id': json['account_id'],
|
|
87
|
+
'payee_id': !(0, runtime_1.exists)(json, 'payee_id') ? undefined : json['payee_id'],
|
|
88
|
+
'category_id': !(0, runtime_1.exists)(json, 'category_id') ? undefined : json['category_id'],
|
|
89
|
+
'transfer_account_id': !(0, runtime_1.exists)(json, 'transfer_account_id') ? undefined : json['transfer_account_id'],
|
|
90
|
+
'transfer_transaction_id': !(0, runtime_1.exists)(json, 'transfer_transaction_id') ? undefined : json['transfer_transaction_id'],
|
|
91
|
+
'matched_transaction_id': !(0, runtime_1.exists)(json, 'matched_transaction_id') ? undefined : json['matched_transaction_id'],
|
|
92
|
+
'import_id': !(0, runtime_1.exists)(json, 'import_id') ? undefined : json['import_id'],
|
|
93
|
+
'import_payee_name': !(0, runtime_1.exists)(json, 'import_payee_name') ? undefined : json['import_payee_name'],
|
|
94
|
+
'import_payee_name_original': !(0, runtime_1.exists)(json, 'import_payee_name_original') ? undefined : json['import_payee_name_original'],
|
|
95
|
+
'debt_transaction_type': !(0, runtime_1.exists)(json, 'debt_transaction_type') ? undefined : json['debt_transaction_type'],
|
|
96
|
+
'deleted': json['deleted'],
|
|
97
|
+
'account_name': json['account_name'],
|
|
98
|
+
'payee_name': !(0, runtime_1.exists)(json, 'payee_name') ? undefined : json['payee_name'],
|
|
99
|
+
'category_name': !(0, runtime_1.exists)(json, 'category_name') ? undefined : json['category_name'],
|
|
100
|
+
'subtransactions': (json['subtransactions'].map(SubTransaction_1.SubTransactionFromJSON)),
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
exports.TransactionDetailFromJSONTyped = TransactionDetailFromJSONTyped;
|
|
104
|
+
function TransactionDetailToJSON(value) {
|
|
105
|
+
if (value === undefined) {
|
|
106
|
+
return undefined;
|
|
107
|
+
}
|
|
108
|
+
if (value === null) {
|
|
109
|
+
return null;
|
|
110
|
+
}
|
|
111
|
+
return {
|
|
112
|
+
'id': value.id,
|
|
113
|
+
'date': value.date,
|
|
114
|
+
'amount': value.amount,
|
|
115
|
+
'memo': value.memo,
|
|
116
|
+
'cleared': value.cleared,
|
|
117
|
+
'approved': value.approved,
|
|
118
|
+
'flag_color': value.flag_color,
|
|
119
|
+
'account_id': value.account_id,
|
|
120
|
+
'payee_id': value.payee_id,
|
|
121
|
+
'category_id': value.category_id,
|
|
122
|
+
'transfer_account_id': value.transfer_account_id,
|
|
123
|
+
'transfer_transaction_id': value.transfer_transaction_id,
|
|
124
|
+
'matched_transaction_id': value.matched_transaction_id,
|
|
125
|
+
'import_id': value.import_id,
|
|
126
|
+
'import_payee_name': value.import_payee_name,
|
|
127
|
+
'import_payee_name_original': value.import_payee_name_original,
|
|
128
|
+
'debt_transaction_type': value.debt_transaction_type,
|
|
129
|
+
'deleted': value.deleted,
|
|
130
|
+
'account_name': value.account_name,
|
|
131
|
+
'payee_name': value.payee_name,
|
|
132
|
+
'category_name': value.category_name,
|
|
133
|
+
'subtransactions': (value.subtransactions.map(SubTransaction_1.SubTransactionToJSON)),
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
exports.TransactionDetailToJSON = TransactionDetailToJSON;
|