ynab 2.3.0 → 2.5.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 +3 -1
- package/dist/apis/AccountsApi.d.ts +1 -6
- package/dist/apis/AccountsApi.js +1 -6
- package/dist/apis/BudgetsApi.d.ts +1 -6
- package/dist/apis/BudgetsApi.js +1 -6
- package/dist/apis/CategoriesApi.d.ts +1 -6
- package/dist/apis/CategoriesApi.js +1 -6
- package/dist/apis/MonthsApi.d.ts +1 -6
- package/dist/apis/MonthsApi.js +1 -6
- package/dist/apis/PayeeLocationsApi.d.ts +1 -6
- package/dist/apis/PayeeLocationsApi.js +1 -6
- package/dist/apis/PayeesApi.d.ts +1 -6
- package/dist/apis/PayeesApi.js +1 -6
- package/dist/apis/ScheduledTransactionsApi.d.ts +16 -7
- package/dist/apis/ScheduledTransactionsApi.js +40 -6
- package/dist/apis/TransactionsApi.d.ts +28 -8
- package/dist/apis/TransactionsApi.js +57 -9
- package/dist/apis/UserApi.d.ts +1 -6
- package/dist/apis/UserApi.js +1 -6
- package/dist/browser/ynab.js +1 -1
- package/dist/esm/apis/AccountsApi.d.ts +1 -6
- package/dist/esm/apis/AccountsApi.js +2 -7
- package/dist/esm/apis/BudgetsApi.d.ts +1 -6
- package/dist/esm/apis/BudgetsApi.js +2 -7
- package/dist/esm/apis/CategoriesApi.d.ts +1 -6
- package/dist/esm/apis/CategoriesApi.js +2 -7
- package/dist/esm/apis/DeprecatedApi.js +1 -1
- package/dist/esm/apis/MonthsApi.d.ts +1 -6
- package/dist/esm/apis/MonthsApi.js +2 -7
- package/dist/esm/apis/PayeeLocationsApi.d.ts +1 -6
- package/dist/esm/apis/PayeeLocationsApi.js +2 -7
- package/dist/esm/apis/PayeesApi.d.ts +17 -7
- package/dist/esm/apis/PayeesApi.js +67 -8
- package/dist/esm/apis/ScheduledTransactionsApi.d.ts +16 -7
- package/dist/esm/apis/ScheduledTransactionsApi.js +64 -8
- package/dist/esm/apis/TransactionsApi.d.ts +40 -20
- package/dist/esm/apis/TransactionsApi.js +87 -17
- package/dist/esm/apis/UserApi.d.ts +1 -6
- package/dist/esm/apis/UserApi.js +2 -7
- package/dist/esm/models/Account.d.ts +2 -7
- package/dist/esm/models/Account.js +51 -51
- package/dist/esm/models/AccountResponse.d.ts +2 -7
- package/dist/esm/models/AccountResponse.js +8 -16
- package/dist/esm/models/AccountResponseData.d.ts +2 -7
- package/dist/esm/models/AccountResponseData.js +8 -16
- package/dist/esm/models/AccountType.d.ts +3 -7
- package/dist/esm/models/AccountType.js +11 -6
- package/dist/esm/models/AccountsResponse.d.ts +2 -7
- package/dist/esm/models/AccountsResponse.js +8 -16
- package/dist/esm/models/AccountsResponseData.d.ts +2 -7
- package/dist/esm/models/AccountsResponseData.js +11 -18
- package/dist/esm/models/BudgetDetail.d.ts +6 -11
- package/dist/esm/models/BudgetDetail.js +45 -53
- package/dist/esm/models/BudgetDetailResponse.d.ts +2 -7
- package/dist/esm/models/BudgetDetailResponse.js +8 -16
- package/dist/esm/models/BudgetDetailResponseData.d.ts +2 -7
- package/dist/esm/models/BudgetDetailResponseData.js +11 -18
- package/dist/esm/models/BudgetSettings.d.ts +2 -7
- package/dist/esm/models/BudgetSettings.js +11 -18
- package/dist/esm/models/BudgetSettingsResponse.d.ts +2 -7
- package/dist/esm/models/BudgetSettingsResponse.js +8 -16
- package/dist/esm/models/BudgetSettingsResponseData.d.ts +2 -7
- package/dist/esm/models/BudgetSettingsResponseData.js +8 -16
- package/dist/esm/models/BudgetSummary.d.ts +2 -7
- package/dist/esm/models/BudgetSummary.js +23 -31
- package/dist/esm/models/BudgetSummaryResponse.d.ts +2 -7
- package/dist/esm/models/BudgetSummaryResponse.js +8 -16
- package/dist/esm/models/BudgetSummaryResponseData.d.ts +2 -7
- package/dist/esm/models/BudgetSummaryResponseData.js +10 -19
- package/dist/esm/models/BulkResponse.d.ts +2 -7
- package/dist/esm/models/BulkResponse.js +8 -16
- package/dist/esm/models/BulkResponseData.d.ts +2 -7
- package/dist/esm/models/BulkResponseData.js +8 -16
- package/dist/esm/models/BulkResponseDataBulk.d.ts +2 -7
- package/dist/esm/models/BulkResponseDataBulk.js +11 -18
- package/dist/esm/models/BulkTransactions.d.ts +5 -10
- package/dist/esm/models/BulkTransactions.js +10 -18
- package/dist/esm/models/CategoriesResponse.d.ts +2 -7
- package/dist/esm/models/CategoriesResponse.js +8 -16
- package/dist/esm/models/CategoriesResponseData.d.ts +2 -7
- package/dist/esm/models/CategoriesResponseData.js +11 -18
- package/dist/esm/models/Category.d.ts +10 -9
- package/dist/esm/models/Category.js +61 -61
- package/dist/esm/models/CategoryGroup.d.ts +2 -7
- package/dist/esm/models/CategoryGroup.js +17 -22
- package/dist/esm/models/CategoryGroupWithCategories.d.ts +2 -7
- package/dist/esm/models/CategoryGroupWithCategories.js +20 -24
- package/dist/esm/models/CategoryResponse.d.ts +2 -7
- package/dist/esm/models/CategoryResponse.js +8 -16
- package/dist/esm/models/CategoryResponseData.d.ts +2 -7
- package/dist/esm/models/CategoryResponseData.js +8 -16
- package/dist/esm/models/CurrencyFormat.d.ts +2 -7
- package/dist/esm/models/CurrencyFormat.js +29 -30
- package/dist/esm/models/DateFormat.d.ts +2 -7
- package/dist/esm/models/DateFormat.js +8 -16
- package/dist/esm/models/ErrorDetail.d.ts +2 -7
- package/dist/esm/models/ErrorDetail.js +14 -20
- package/dist/esm/models/ErrorResponse.d.ts +2 -7
- package/dist/esm/models/ErrorResponse.js +8 -16
- package/dist/esm/models/ExistingTransaction.d.ts +89 -0
- package/dist/esm/models/ExistingTransaction.js +56 -0
- package/dist/esm/models/HybridTransaction.d.ts +12 -11
- package/dist/esm/models/HybridTransaction.js +63 -62
- package/dist/esm/models/HybridTransactionAllOf.d.ts +1 -1
- package/dist/esm/models/HybridTransactionsResponse.d.ts +2 -7
- package/dist/esm/models/HybridTransactionsResponse.js +8 -16
- package/dist/esm/models/HybridTransactionsResponseData.d.ts +2 -7
- package/dist/esm/models/HybridTransactionsResponseData.js +10 -19
- package/dist/esm/models/MonthDetail.d.ts +2 -7
- package/dist/esm/models/MonthDetail.js +30 -33
- package/dist/esm/models/MonthDetailResponse.d.ts +2 -7
- package/dist/esm/models/MonthDetailResponse.js +8 -16
- package/dist/esm/models/MonthDetailResponseData.d.ts +2 -7
- package/dist/esm/models/MonthDetailResponseData.js +8 -16
- package/dist/esm/models/MonthSummariesResponse.d.ts +2 -7
- package/dist/esm/models/MonthSummariesResponse.js +8 -16
- package/dist/esm/models/MonthSummariesResponseData.d.ts +2 -7
- package/dist/esm/models/MonthSummariesResponseData.js +11 -18
- package/dist/esm/models/MonthSummary.d.ts +2 -7
- package/dist/esm/models/MonthSummary.js +27 -31
- package/dist/esm/models/NewTransaction.d.ts +95 -0
- package/dist/esm/models/NewTransaction.js +58 -0
- package/dist/esm/models/PatchCategoryWrapper.d.ts +2 -7
- package/dist/esm/models/PatchCategoryWrapper.js +8 -16
- package/dist/esm/models/PatchMonthCategoryWrapper.d.ts +2 -7
- package/dist/esm/models/PatchMonthCategoryWrapper.js +8 -16
- package/dist/esm/models/PatchPayeeWrapper.d.ts +27 -0
- package/dist/esm/models/PatchPayeeWrapper.js +36 -0
- package/dist/esm/models/PatchTransactionsWrapper.d.ts +5 -10
- package/dist/esm/models/PatchTransactionsWrapper.js +10 -18
- package/dist/esm/models/Payee.d.ts +2 -7
- package/dist/esm/models/Payee.js +16 -23
- package/dist/esm/models/PayeeLocation.d.ts +2 -7
- package/dist/esm/models/PayeeLocation.js +20 -24
- package/dist/esm/models/PayeeLocationResponse.d.ts +2 -7
- package/dist/esm/models/PayeeLocationResponse.js +8 -16
- package/dist/esm/models/PayeeLocationResponseData.d.ts +2 -7
- package/dist/esm/models/PayeeLocationResponseData.js +8 -16
- package/dist/esm/models/PayeeLocationsResponse.d.ts +2 -7
- package/dist/esm/models/PayeeLocationsResponse.js +8 -16
- package/dist/esm/models/PayeeLocationsResponseData.d.ts +2 -7
- package/dist/esm/models/PayeeLocationsResponseData.js +8 -16
- package/dist/esm/models/PayeeResponse.d.ts +2 -7
- package/dist/esm/models/PayeeResponse.js +8 -16
- package/dist/esm/models/PayeeResponseData.d.ts +2 -7
- package/dist/esm/models/PayeeResponseData.js +8 -16
- package/dist/esm/models/PayeesResponse.d.ts +2 -7
- package/dist/esm/models/PayeesResponse.js +8 -16
- package/dist/esm/models/PayeesResponseData.d.ts +2 -7
- package/dist/esm/models/PayeesResponseData.js +11 -18
- package/dist/esm/models/PostAccountWrapper.d.ts +2 -7
- package/dist/esm/models/PostAccountWrapper.js +8 -16
- package/dist/esm/models/PostScheduledTransactionWrapper.d.ts +27 -0
- package/dist/esm/models/PostScheduledTransactionWrapper.js +36 -0
- package/dist/esm/models/PostTransactionsWrapper.d.ts +7 -12
- package/dist/esm/models/PostTransactionsWrapper.js +10 -20
- package/dist/esm/models/PutTransactionWrapper.d.ts +5 -10
- package/dist/esm/models/PutTransactionWrapper.js +10 -18
- package/dist/esm/models/SaveAccount.d.ts +2 -7
- package/dist/esm/models/SaveAccount.js +14 -20
- package/dist/esm/models/SaveCategory.d.ts +2 -7
- package/dist/esm/models/SaveCategory.js +11 -21
- package/dist/esm/models/SaveCategoryResponse.d.ts +2 -7
- package/dist/esm/models/SaveCategoryResponse.js +8 -16
- package/dist/esm/models/SaveCategoryResponseData.d.ts +2 -7
- package/dist/esm/models/SaveCategoryResponseData.js +11 -18
- package/dist/esm/models/SaveMonthCategory.d.ts +2 -7
- package/dist/esm/models/SaveMonthCategory.js +8 -16
- package/dist/esm/models/SavePayee.d.ts +26 -0
- package/dist/esm/models/SavePayee.js +33 -0
- package/dist/esm/models/SavePayeeResponse.d.ts +27 -0
- package/dist/esm/models/SavePayeeResponse.js +36 -0
- package/dist/esm/models/SavePayeeResponseData.d.ts +33 -0
- package/dist/esm/models/SavePayeeResponseData.js +40 -0
- package/dist/esm/models/SaveScheduledTransaction.d.ts +76 -0
- package/dist/esm/models/SaveScheduledTransaction.js +55 -0
- package/dist/esm/models/SaveSubTransaction.d.ts +2 -7
- package/dist/esm/models/SaveSubTransaction.js +16 -25
- package/dist/esm/models/SaveTransactionWithIdOrImportId.d.ts +101 -0
- package/dist/esm/models/SaveTransactionWithIdOrImportId.js +60 -0
- package/dist/esm/models/SaveTransactionWithOptionalFields.d.ts +5 -16
- package/dist/esm/models/SaveTransactionWithOptionalFields.js +29 -41
- package/dist/esm/models/SaveTransactionsResponse.d.ts +2 -7
- package/dist/esm/models/SaveTransactionsResponse.js +8 -16
- package/dist/esm/models/SaveTransactionsResponseData.d.ts +2 -7
- package/dist/esm/models/SaveTransactionsResponseData.js +17 -25
- package/dist/esm/models/ScheduledSubTransaction.d.ts +2 -7
- package/dist/esm/models/ScheduledSubTransaction.js +25 -31
- package/dist/esm/models/ScheduledTransactionDetail.d.ts +10 -9
- package/dist/esm/models/ScheduledTransactionDetail.js +49 -48
- package/dist/esm/models/ScheduledTransactionFrequency.d.ts +30 -0
- package/dist/esm/models/ScheduledTransactionFrequency.js +46 -0
- package/dist/esm/models/ScheduledTransactionResponse.d.ts +2 -7
- package/dist/esm/models/ScheduledTransactionResponse.js +8 -16
- package/dist/esm/models/ScheduledTransactionResponseData.d.ts +2 -7
- package/dist/esm/models/ScheduledTransactionResponseData.js +8 -16
- package/dist/esm/models/ScheduledTransactionSummary.d.ts +9 -8
- package/dist/esm/models/ScheduledTransactionSummary.js +38 -39
- package/dist/esm/models/ScheduledTransactionsResponse.d.ts +2 -7
- package/dist/esm/models/ScheduledTransactionsResponse.js +8 -16
- package/dist/esm/models/ScheduledTransactionsResponseData.d.ts +2 -7
- package/dist/esm/models/ScheduledTransactionsResponseData.js +11 -18
- package/dist/esm/models/SubTransaction.d.ts +2 -7
- package/dist/esm/models/SubTransaction.js +31 -37
- package/dist/esm/models/TransactionClearedStatus.d.ts +3 -7
- package/dist/esm/models/TransactionClearedStatus.js +11 -6
- package/dist/esm/models/TransactionDetail.d.ts +12 -11
- package/dist/esm/models/TransactionDetail.js +62 -61
- package/dist/esm/models/TransactionFlagColor.d.ts +3 -7
- package/dist/esm/models/TransactionFlagColor.js +11 -6
- package/dist/esm/models/TransactionResponse.d.ts +2 -7
- package/dist/esm/models/TransactionResponse.js +8 -16
- package/dist/esm/models/TransactionResponseData.d.ts +2 -7
- package/dist/esm/models/TransactionResponseData.js +8 -16
- package/dist/esm/models/TransactionSummary.d.ts +11 -10
- package/dist/esm/models/TransactionSummary.js +51 -52
- package/dist/esm/models/TransactionsImportResponse.d.ts +2 -7
- package/dist/esm/models/TransactionsImportResponse.js +8 -16
- package/dist/esm/models/TransactionsImportResponseData.d.ts +2 -7
- package/dist/esm/models/TransactionsImportResponseData.js +8 -16
- package/dist/esm/models/TransactionsResponse.d.ts +2 -7
- package/dist/esm/models/TransactionsResponse.js +8 -16
- package/dist/esm/models/TransactionsResponseData.d.ts +2 -7
- package/dist/esm/models/TransactionsResponseData.js +11 -18
- package/dist/esm/models/User.d.ts +2 -7
- package/dist/esm/models/User.js +8 -16
- package/dist/esm/models/UserResponse.d.ts +2 -7
- package/dist/esm/models/UserResponse.js +8 -16
- package/dist/esm/models/UserResponseData.d.ts +2 -7
- package/dist/esm/models/UserResponseData.js +8 -16
- package/dist/esm/models/index.d.ts +10 -9
- package/dist/esm/models/index.js +10 -9
- package/dist/esm/runtime.d.ts +10 -15
- package/dist/esm/runtime.js +2 -7
- package/dist/models/Account.d.ts +7 -12
- package/dist/models/Account.js +1 -6
- package/dist/models/AccountResponse.d.ts +1 -6
- package/dist/models/AccountResponse.js +1 -6
- package/dist/models/AccountResponseData.d.ts +1 -6
- package/dist/models/AccountResponseData.js +1 -6
- package/dist/models/AccountType.d.ts +1 -6
- package/dist/models/AccountType.js +1 -6
- package/dist/models/AccountsResponse.d.ts +1 -6
- package/dist/models/AccountsResponse.js +1 -6
- package/dist/models/AccountsResponseData.d.ts +1 -6
- package/dist/models/AccountsResponseData.js +1 -6
- package/dist/models/BudgetDetail.d.ts +3 -8
- package/dist/models/BudgetDetail.js +1 -6
- package/dist/models/BudgetDetailResponse.d.ts +1 -6
- package/dist/models/BudgetDetailResponse.js +1 -6
- package/dist/models/BudgetDetailResponseData.d.ts +1 -6
- package/dist/models/BudgetDetailResponseData.js +1 -6
- package/dist/models/BudgetSettings.d.ts +1 -6
- package/dist/models/BudgetSettings.js +1 -6
- package/dist/models/BudgetSettingsResponse.d.ts +1 -6
- package/dist/models/BudgetSettingsResponse.js +1 -6
- package/dist/models/BudgetSettingsResponseData.d.ts +1 -6
- package/dist/models/BudgetSettingsResponseData.js +1 -6
- package/dist/models/BudgetSummary.d.ts +3 -8
- package/dist/models/BudgetSummary.js +1 -6
- package/dist/models/BudgetSummaryResponse.d.ts +1 -6
- package/dist/models/BudgetSummaryResponse.js +1 -6
- package/dist/models/BudgetSummaryResponseData.d.ts +1 -6
- package/dist/models/BudgetSummaryResponseData.js +1 -6
- package/dist/models/BulkResponse.d.ts +1 -6
- package/dist/models/BulkResponse.js +1 -6
- package/dist/models/BulkResponseData.d.ts +1 -6
- package/dist/models/BulkResponseData.js +1 -6
- package/dist/models/BulkResponseDataBulk.d.ts +1 -6
- package/dist/models/BulkResponseDataBulk.js +1 -6
- package/dist/models/BulkTransactions.d.ts +1 -6
- package/dist/models/BulkTransactions.js +1 -6
- package/dist/models/CategoriesResponse.d.ts +1 -6
- package/dist/models/CategoriesResponse.js +1 -6
- package/dist/models/CategoriesResponseData.d.ts +1 -6
- package/dist/models/CategoriesResponseData.js +1 -6
- package/dist/models/Category.d.ts +16 -21
- package/dist/models/Category.js +1 -6
- package/dist/models/CategoryGroup.d.ts +1 -6
- package/dist/models/CategoryGroup.js +1 -6
- package/dist/models/CategoryGroupWithCategories.d.ts +1 -6
- package/dist/models/CategoryGroupWithCategories.js +1 -6
- package/dist/models/CategoryResponse.d.ts +1 -6
- package/dist/models/CategoryResponse.js +1 -6
- package/dist/models/CategoryResponseData.d.ts +1 -6
- package/dist/models/CategoryResponseData.js +1 -6
- package/dist/models/CurrencyFormat.d.ts +1 -6
- package/dist/models/CurrencyFormat.js +1 -6
- package/dist/models/DateFormat.d.ts +1 -6
- package/dist/models/DateFormat.js +1 -6
- package/dist/models/ErrorDetail.d.ts +1 -6
- package/dist/models/ErrorDetail.js +1 -6
- package/dist/models/ErrorResponse.d.ts +1 -6
- package/dist/models/ErrorResponse.js +1 -6
- package/dist/models/ExistingTransaction.d.ts +7 -12
- package/dist/models/ExistingTransaction.js +1 -6
- package/dist/models/HybridTransaction.d.ts +15 -20
- package/dist/models/HybridTransaction.js +1 -6
- package/dist/models/HybridTransactionsResponse.d.ts +1 -6
- package/dist/models/HybridTransactionsResponse.js +1 -6
- package/dist/models/HybridTransactionsResponseData.d.ts +1 -6
- package/dist/models/HybridTransactionsResponseData.js +1 -6
- package/dist/models/MonthDetail.d.ts +3 -8
- package/dist/models/MonthDetail.js +1 -6
- package/dist/models/MonthDetailResponse.d.ts +1 -6
- package/dist/models/MonthDetailResponse.js +1 -6
- package/dist/models/MonthDetailResponseData.d.ts +1 -6
- package/dist/models/MonthDetailResponseData.js +1 -6
- package/dist/models/MonthSummariesResponse.d.ts +1 -6
- package/dist/models/MonthSummariesResponse.js +1 -6
- package/dist/models/MonthSummariesResponseData.d.ts +1 -6
- package/dist/models/MonthSummariesResponseData.js +1 -6
- package/dist/models/MonthSummary.d.ts +3 -8
- package/dist/models/MonthSummary.js +1 -6
- package/dist/models/NewTransaction.d.ts +8 -13
- package/dist/models/NewTransaction.js +1 -6
- package/dist/models/PatchCategoryWrapper.d.ts +1 -6
- package/dist/models/PatchCategoryWrapper.js +1 -6
- package/dist/models/PatchMonthCategoryWrapper.d.ts +1 -6
- package/dist/models/PatchMonthCategoryWrapper.js +1 -6
- package/dist/models/PatchPayeeWrapper.d.ts +1 -6
- package/dist/models/PatchPayeeWrapper.js +1 -6
- package/dist/models/PatchTransactionsWrapper.d.ts +1 -6
- package/dist/models/PatchTransactionsWrapper.js +1 -6
- package/dist/models/Payee.d.ts +2 -7
- package/dist/models/Payee.js +1 -6
- package/dist/models/PayeeLocation.d.ts +1 -6
- package/dist/models/PayeeLocation.js +1 -6
- package/dist/models/PayeeLocationResponse.d.ts +1 -6
- package/dist/models/PayeeLocationResponse.js +1 -6
- package/dist/models/PayeeLocationResponseData.d.ts +1 -6
- package/dist/models/PayeeLocationResponseData.js +1 -6
- package/dist/models/PayeeLocationsResponse.d.ts +1 -6
- package/dist/models/PayeeLocationsResponse.js +1 -6
- package/dist/models/PayeeLocationsResponseData.d.ts +1 -6
- package/dist/models/PayeeLocationsResponseData.js +1 -6
- package/dist/models/PayeeResponse.d.ts +1 -6
- package/dist/models/PayeeResponse.js +1 -6
- package/dist/models/PayeeResponseData.d.ts +1 -6
- package/dist/models/PayeeResponseData.js +1 -6
- package/dist/models/PayeesResponse.d.ts +1 -6
- package/dist/models/PayeesResponse.js +1 -6
- package/dist/models/PayeesResponseData.d.ts +1 -6
- package/dist/models/PayeesResponseData.js +1 -6
- package/dist/models/PostAccountWrapper.d.ts +1 -6
- package/dist/models/PostAccountWrapper.js +1 -6
- package/dist/models/PostScheduledTransactionWrapper.d.ts +27 -0
- package/dist/models/PostScheduledTransactionWrapper.js +43 -0
- package/dist/models/PostTransactionsWrapper.d.ts +1 -6
- package/dist/models/PostTransactionsWrapper.js +1 -6
- package/dist/models/PutTransactionWrapper.d.ts +1 -6
- package/dist/models/PutTransactionWrapper.js +1 -6
- package/dist/models/SaveAccount.d.ts +1 -6
- package/dist/models/SaveAccount.js +1 -6
- package/dist/models/SaveCategory.d.ts +3 -8
- package/dist/models/SaveCategory.js +1 -6
- package/dist/models/SaveCategoryResponse.d.ts +1 -6
- package/dist/models/SaveCategoryResponse.js +1 -6
- package/dist/models/SaveCategoryResponseData.d.ts +1 -6
- package/dist/models/SaveCategoryResponseData.js +1 -6
- package/dist/models/SaveMonthCategory.d.ts +1 -6
- package/dist/models/SaveMonthCategory.js +1 -6
- package/dist/models/SavePayee.d.ts +1 -6
- package/dist/models/SavePayee.js +1 -6
- package/dist/models/SavePayeeResponse.d.ts +1 -6
- package/dist/models/SavePayeeResponse.js +1 -6
- package/dist/models/SavePayeeResponseData.d.ts +1 -6
- package/dist/models/SavePayeeResponseData.js +1 -6
- package/dist/models/SaveScheduledTransaction.d.ts +76 -0
- package/dist/models/SaveScheduledTransaction.js +62 -0
- package/dist/models/SaveSubTransaction.d.ts +5 -10
- package/dist/models/SaveSubTransaction.js +1 -6
- package/dist/models/SaveTransactionWithIdOrImportId.d.ts +9 -14
- package/dist/models/SaveTransactionWithIdOrImportId.js +1 -6
- package/dist/models/SaveTransactionWithOptionalFields.d.ts +7 -12
- package/dist/models/SaveTransactionWithOptionalFields.js +1 -6
- package/dist/models/SaveTransactionsResponse.d.ts +1 -6
- package/dist/models/SaveTransactionsResponse.js +1 -6
- package/dist/models/SaveTransactionsResponseData.d.ts +1 -6
- package/dist/models/SaveTransactionsResponseData.js +1 -6
- package/dist/models/ScheduledSubTransaction.d.ts +5 -10
- package/dist/models/ScheduledSubTransaction.js +1 -6
- package/dist/models/ScheduledTransactionDetail.d.ts +9 -14
- package/dist/models/ScheduledTransactionDetail.js +1 -6
- package/dist/models/ScheduledTransactionFrequency.d.ts +30 -0
- package/dist/models/ScheduledTransactionFrequency.js +53 -0
- package/dist/models/ScheduledTransactionResponse.d.ts +1 -6
- package/dist/models/ScheduledTransactionResponse.js +1 -6
- package/dist/models/ScheduledTransactionResponseData.d.ts +1 -6
- package/dist/models/ScheduledTransactionResponseData.js +1 -6
- package/dist/models/ScheduledTransactionSummary.d.ts +7 -12
- package/dist/models/ScheduledTransactionSummary.js +1 -6
- package/dist/models/ScheduledTransactionsResponse.d.ts +1 -6
- package/dist/models/ScheduledTransactionsResponse.js +1 -6
- package/dist/models/ScheduledTransactionsResponseData.d.ts +1 -6
- package/dist/models/ScheduledTransactionsResponseData.js +1 -6
- package/dist/models/SubTransaction.d.ts +8 -13
- package/dist/models/SubTransaction.js +1 -6
- package/dist/models/TransactionClearedStatus.d.ts +1 -6
- package/dist/models/TransactionClearedStatus.js +1 -6
- package/dist/models/TransactionDetail.d.ts +15 -20
- package/dist/models/TransactionDetail.js +1 -6
- package/dist/models/TransactionFlagColor.d.ts +1 -6
- package/dist/models/TransactionFlagColor.js +1 -6
- package/dist/models/TransactionResponse.d.ts +1 -6
- package/dist/models/TransactionResponse.js +1 -6
- package/dist/models/TransactionResponseData.d.ts +1 -6
- package/dist/models/TransactionResponseData.js +1 -6
- package/dist/models/TransactionSummary.d.ts +13 -18
- package/dist/models/TransactionSummary.js +1 -6
- package/dist/models/TransactionsImportResponse.d.ts +1 -6
- package/dist/models/TransactionsImportResponse.js +1 -6
- package/dist/models/TransactionsImportResponseData.d.ts +1 -6
- package/dist/models/TransactionsImportResponseData.js +1 -6
- package/dist/models/TransactionsResponse.d.ts +1 -6
- package/dist/models/TransactionsResponse.js +1 -6
- package/dist/models/TransactionsResponseData.d.ts +1 -6
- package/dist/models/TransactionsResponseData.js +1 -6
- package/dist/models/User.d.ts +1 -6
- package/dist/models/User.js +1 -6
- package/dist/models/UserResponse.d.ts +1 -6
- package/dist/models/UserResponse.js +1 -6
- package/dist/models/UserResponseData.d.ts +1 -6
- package/dist/models/UserResponseData.js +1 -6
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/dist/runtime.d.ts +1 -6
- package/dist/runtime.js +1 -6
- package/package.json +1 -1
|
@@ -4,12 +4,7 @@
|
|
|
4
4
|
* YNAB API Endpoints
|
|
5
5
|
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
6
6
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
7
|
+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
13
8
|
*/
|
|
14
9
|
var __extends = (this && this.__extends) || (function () {
|
|
15
10
|
var extendStatics = function (d, b) {
|
|
@@ -41,7 +36,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
41
36
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
42
37
|
function step(op) {
|
|
43
38
|
if (f) throw new TypeError("Generator is already executing.");
|
|
44
|
-
while (_) try {
|
|
39
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
45
40
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
46
41
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
47
42
|
switch (op[0]) {
|
|
@@ -73,7 +68,7 @@ var TransactionsApi = /** @class */ (function (_super) {
|
|
|
73
68
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
74
69
|
}
|
|
75
70
|
/**
|
|
76
|
-
* 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 cannot be created on this endpoint.
|
|
71
|
+
* 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.
|
|
77
72
|
* Create a single transaction or multiple transactions
|
|
78
73
|
*/
|
|
79
74
|
TransactionsApi.prototype.createTransactionRaw = function (requestParameters, initOverrides) {
|
|
@@ -116,7 +111,7 @@ var TransactionsApi = /** @class */ (function (_super) {
|
|
|
116
111
|
});
|
|
117
112
|
};
|
|
118
113
|
/**
|
|
119
|
-
* 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 cannot be created on this endpoint.
|
|
114
|
+
* 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.
|
|
120
115
|
* Create a single transaction or multiple transactions
|
|
121
116
|
*/
|
|
122
117
|
TransactionsApi.prototype.createTransaction = function (budgetId, data, initOverrides) {
|
|
@@ -252,7 +247,7 @@ var TransactionsApi = /** @class */ (function (_super) {
|
|
|
252
247
|
});
|
|
253
248
|
};
|
|
254
249
|
/**
|
|
255
|
-
* Returns budget transactions
|
|
250
|
+
* Returns budget transactions, excluding any pending transactions
|
|
256
251
|
* List transactions
|
|
257
252
|
*/
|
|
258
253
|
TransactionsApi.prototype.getTransactionsRaw = function (requestParameters, initOverrides) {
|
|
@@ -299,7 +294,7 @@ var TransactionsApi = /** @class */ (function (_super) {
|
|
|
299
294
|
});
|
|
300
295
|
};
|
|
301
296
|
/**
|
|
302
|
-
* Returns budget transactions
|
|
297
|
+
* Returns budget transactions, excluding any pending transactions
|
|
303
298
|
* List transactions
|
|
304
299
|
*/
|
|
305
300
|
TransactionsApi.prototype.getTransactions = function (budgetId, sinceDate, type, lastKnowledgeOfServer, initOverrides) {
|
|
@@ -317,7 +312,7 @@ var TransactionsApi = /** @class */ (function (_super) {
|
|
|
317
312
|
});
|
|
318
313
|
};
|
|
319
314
|
/**
|
|
320
|
-
* Returns all transactions for a specified account
|
|
315
|
+
* Returns all transactions for a specified account, excluding any pending transactions
|
|
321
316
|
* List account transactions
|
|
322
317
|
*/
|
|
323
318
|
TransactionsApi.prototype.getTransactionsByAccountRaw = function (requestParameters, initOverrides) {
|
|
@@ -367,7 +362,7 @@ var TransactionsApi = /** @class */ (function (_super) {
|
|
|
367
362
|
});
|
|
368
363
|
};
|
|
369
364
|
/**
|
|
370
|
-
* Returns all transactions for a specified account
|
|
365
|
+
* Returns all transactions for a specified account, excluding any pending transactions
|
|
371
366
|
* List account transactions
|
|
372
367
|
*/
|
|
373
368
|
TransactionsApi.prototype.getTransactionsByAccount = function (budgetId, accountId, sinceDate, type, lastKnowledgeOfServer, initOverrides) {
|
|
@@ -386,7 +381,7 @@ var TransactionsApi = /** @class */ (function (_super) {
|
|
|
386
381
|
};
|
|
387
382
|
/**
|
|
388
383
|
* Returns all transactions for a specified category
|
|
389
|
-
* List category transactions
|
|
384
|
+
* List category transactions, excluding any pending transactions
|
|
390
385
|
*/
|
|
391
386
|
TransactionsApi.prototype.getTransactionsByCategoryRaw = function (requestParameters, initOverrides) {
|
|
392
387
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -436,7 +431,7 @@ var TransactionsApi = /** @class */ (function (_super) {
|
|
|
436
431
|
};
|
|
437
432
|
/**
|
|
438
433
|
* Returns all transactions for a specified category
|
|
439
|
-
* List category transactions
|
|
434
|
+
* List category transactions, excluding any pending transactions
|
|
440
435
|
*/
|
|
441
436
|
TransactionsApi.prototype.getTransactionsByCategory = function (budgetId, categoryId, sinceDate, type, lastKnowledgeOfServer, initOverrides) {
|
|
442
437
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -452,9 +447,77 @@ var TransactionsApi = /** @class */ (function (_super) {
|
|
|
452
447
|
});
|
|
453
448
|
});
|
|
454
449
|
};
|
|
450
|
+
/**
|
|
451
|
+
* Returns all transactions for a specified month
|
|
452
|
+
* List transactions in month, excluding any pending transactions
|
|
453
|
+
*/
|
|
454
|
+
TransactionsApi.prototype.getTransactionsByMonthRaw = function (requestParameters, initOverrides) {
|
|
455
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
456
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
457
|
+
return __generator(this, function (_a) {
|
|
458
|
+
switch (_a.label) {
|
|
459
|
+
case 0:
|
|
460
|
+
if (requestParameters.budgetId === null || requestParameters.budgetId === undefined) {
|
|
461
|
+
throw new runtime.RequiredError('budgetId', 'Required parameter requestParameters.budgetId was null or undefined when calling getTransactionsByMonth.');
|
|
462
|
+
}
|
|
463
|
+
if (requestParameters.month === null || requestParameters.month === undefined) {
|
|
464
|
+
throw new runtime.RequiredError('month', 'Required parameter requestParameters.month was null or undefined when calling getTransactionsByMonth.');
|
|
465
|
+
}
|
|
466
|
+
queryParameters = {};
|
|
467
|
+
if (requestParameters.sinceDate !== undefined) {
|
|
468
|
+
queryParameters['since_date'] = requestParameters.sinceDate;
|
|
469
|
+
}
|
|
470
|
+
if (requestParameters.type !== undefined) {
|
|
471
|
+
queryParameters['type'] = requestParameters.type;
|
|
472
|
+
}
|
|
473
|
+
if (requestParameters.lastKnowledgeOfServer !== undefined) {
|
|
474
|
+
queryParameters['last_knowledge_of_server'] = requestParameters.lastKnowledgeOfServer;
|
|
475
|
+
}
|
|
476
|
+
headerParameters = {};
|
|
477
|
+
headerParameters['Accept'] = 'application/json';
|
|
478
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
479
|
+
token = this.configuration.accessToken;
|
|
480
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
481
|
+
case 1:
|
|
482
|
+
tokenString = _a.sent();
|
|
483
|
+
if (tokenString) {
|
|
484
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
485
|
+
}
|
|
486
|
+
_a.label = 2;
|
|
487
|
+
case 2: return [4 /*yield*/, this.request({
|
|
488
|
+
path: "/budgets/{budget_id}/months/{month}/transactions".replace("{".concat("budget_id", "}"), encodeURIComponent(String(requestParameters.budgetId))).replace("{".concat("month", "}"), encodeURIComponent(String(requestParameters.month))),
|
|
489
|
+
method: 'GET',
|
|
490
|
+
headers: headerParameters,
|
|
491
|
+
query: queryParameters,
|
|
492
|
+
}, initOverrides)];
|
|
493
|
+
case 3:
|
|
494
|
+
response = _a.sent();
|
|
495
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return HybridTransactionsResponseFromJSON(jsonValue); })];
|
|
496
|
+
}
|
|
497
|
+
});
|
|
498
|
+
});
|
|
499
|
+
};
|
|
500
|
+
/**
|
|
501
|
+
* Returns all transactions for a specified month
|
|
502
|
+
* List transactions in month, excluding any pending transactions
|
|
503
|
+
*/
|
|
504
|
+
TransactionsApi.prototype.getTransactionsByMonth = function (budgetId, month, sinceDate, type, lastKnowledgeOfServer, initOverrides) {
|
|
505
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
506
|
+
var response;
|
|
507
|
+
return __generator(this, function (_a) {
|
|
508
|
+
switch (_a.label) {
|
|
509
|
+
case 0: return [4 /*yield*/, this.getTransactionsByMonthRaw({ budgetId: budgetId, month: month, sinceDate: sinceDate, type: type, lastKnowledgeOfServer: lastKnowledgeOfServer }, initOverrides)];
|
|
510
|
+
case 1:
|
|
511
|
+
response = _a.sent();
|
|
512
|
+
return [4 /*yield*/, response.value()];
|
|
513
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
514
|
+
}
|
|
515
|
+
});
|
|
516
|
+
});
|
|
517
|
+
};
|
|
455
518
|
/**
|
|
456
519
|
* Returns all transactions for a specified payee
|
|
457
|
-
* List payee transactions
|
|
520
|
+
* List payee transactions, excluding any pending transactions
|
|
458
521
|
*/
|
|
459
522
|
TransactionsApi.prototype.getTransactionsByPayeeRaw = function (requestParameters, initOverrides) {
|
|
460
523
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -504,7 +567,7 @@ var TransactionsApi = /** @class */ (function (_super) {
|
|
|
504
567
|
};
|
|
505
568
|
/**
|
|
506
569
|
* Returns all transactions for a specified payee
|
|
507
|
-
* List payee transactions
|
|
570
|
+
* List payee transactions, excluding any pending transactions
|
|
508
571
|
*/
|
|
509
572
|
TransactionsApi.prototype.getTransactionsByPayee = function (budgetId, payeeId, sinceDate, type, lastKnowledgeOfServer, initOverrides) {
|
|
510
573
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -725,6 +788,13 @@ export var GetTransactionsByCategoryTypeEnum = {
|
|
|
725
788
|
Uncategorized: 'uncategorized',
|
|
726
789
|
Unapproved: 'unapproved'
|
|
727
790
|
};
|
|
791
|
+
/**
|
|
792
|
+
* @export
|
|
793
|
+
*/
|
|
794
|
+
export var GetTransactionsByMonthTypeEnum = {
|
|
795
|
+
Uncategorized: 'uncategorized',
|
|
796
|
+
Unapproved: 'unapproved'
|
|
797
|
+
};
|
|
728
798
|
/**
|
|
729
799
|
* @export
|
|
730
800
|
*/
|
|
@@ -2,12 +2,7 @@
|
|
|
2
2
|
* YNAB API Endpoints
|
|
3
3
|
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
4
4
|
*
|
|
5
|
-
*
|
|
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.
|
|
5
|
+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
11
6
|
*/
|
|
12
7
|
import * as runtime from '../runtime';
|
|
13
8
|
import type { UserResponse } from '../models/index';
|
package/dist/esm/apis/UserApi.js
CHANGED
|
@@ -4,12 +4,7 @@
|
|
|
4
4
|
* YNAB API Endpoints
|
|
5
5
|
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
6
6
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
7
|
+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
13
8
|
*/
|
|
14
9
|
var __extends = (this && this.__extends) || (function () {
|
|
15
10
|
var extendStatics = function (d, b) {
|
|
@@ -41,7 +36,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
41
36
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
42
37
|
function step(op) {
|
|
43
38
|
if (f) throw new TypeError("Generator is already executing.");
|
|
44
|
-
while (_) try {
|
|
39
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
45
40
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
46
41
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
47
42
|
switch (op[0]) {
|
|
@@ -2,12 +2,7 @@
|
|
|
2
2
|
* YNAB API Endpoints
|
|
3
3
|
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
4
4
|
*
|
|
5
|
-
*
|
|
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.
|
|
5
|
+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
11
6
|
*/
|
|
12
7
|
import type { AccountType } from './AccountType';
|
|
13
8
|
/**
|
|
@@ -134,7 +129,7 @@ export interface Account {
|
|
|
134
129
|
/**
|
|
135
130
|
* Check if a given object implements the Account interface.
|
|
136
131
|
*/
|
|
137
|
-
export declare function instanceOfAccount(value: object):
|
|
132
|
+
export declare function instanceOfAccount(value: object): value is Account;
|
|
138
133
|
export declare function AccountFromJSON(json: any): Account;
|
|
139
134
|
export declare function AccountFromJSONTyped(json: any, ignoreDiscriminator: boolean): Account;
|
|
140
135
|
export declare function AccountToJSON(value?: Account | null): any;
|
|
@@ -4,37 +4,40 @@
|
|
|
4
4
|
* YNAB API Endpoints
|
|
5
5
|
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
6
6
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
7
|
+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
13
8
|
*/
|
|
14
|
-
import { exists } from '../runtime';
|
|
15
9
|
import { AccountTypeFromJSON, AccountTypeToJSON, } from './AccountType';
|
|
16
10
|
/**
|
|
17
11
|
* Check if a given object implements the Account interface.
|
|
18
12
|
*/
|
|
19
13
|
export function instanceOfAccount(value) {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
14
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
15
|
+
return false;
|
|
16
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
17
|
+
return false;
|
|
18
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('on_budget' in value) || value['on_budget'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('closed' in value) || value['closed'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('balance' in value) || value['balance'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('cleared_balance' in value) || value['cleared_balance'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('uncleared_balance' in value) || value['uncleared_balance'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('transfer_payee_id' in value) || value['transfer_payee_id'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('deleted' in value) || value['deleted'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
32
35
|
}
|
|
33
36
|
export function AccountFromJSON(json) {
|
|
34
37
|
return AccountFromJSONTyped(json, false);
|
|
35
38
|
}
|
|
36
39
|
export function AccountFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
-
if (
|
|
40
|
+
if (json == null) {
|
|
38
41
|
return json;
|
|
39
42
|
}
|
|
40
43
|
return {
|
|
@@ -43,46 +46,43 @@ export function AccountFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
43
46
|
'type': AccountTypeFromJSON(json['type']),
|
|
44
47
|
'on_budget': json['on_budget'],
|
|
45
48
|
'closed': json['closed'],
|
|
46
|
-
'note':
|
|
49
|
+
'note': json['note'] == null ? undefined : json['note'],
|
|
47
50
|
'balance': json['balance'],
|
|
48
51
|
'cleared_balance': json['cleared_balance'],
|
|
49
52
|
'uncleared_balance': json['uncleared_balance'],
|
|
50
53
|
'transfer_payee_id': json['transfer_payee_id'],
|
|
51
|
-
'direct_import_linked':
|
|
52
|
-
'direct_import_in_error':
|
|
53
|
-
'last_reconciled_at':
|
|
54
|
-
'debt_original_balance':
|
|
55
|
-
'debt_interest_rates':
|
|
56
|
-
'debt_minimum_payments':
|
|
57
|
-
'debt_escrow_amounts':
|
|
54
|
+
'direct_import_linked': json['direct_import_linked'] == null ? undefined : json['direct_import_linked'],
|
|
55
|
+
'direct_import_in_error': json['direct_import_in_error'] == null ? undefined : json['direct_import_in_error'],
|
|
56
|
+
'last_reconciled_at': json['last_reconciled_at'] == null ? undefined : json['last_reconciled_at'],
|
|
57
|
+
'debt_original_balance': json['debt_original_balance'] == null ? undefined : json['debt_original_balance'],
|
|
58
|
+
'debt_interest_rates': json['debt_interest_rates'] == null ? undefined : json['debt_interest_rates'],
|
|
59
|
+
'debt_minimum_payments': json['debt_minimum_payments'] == null ? undefined : json['debt_minimum_payments'],
|
|
60
|
+
'debt_escrow_amounts': json['debt_escrow_amounts'] == null ? undefined : json['debt_escrow_amounts'],
|
|
58
61
|
'deleted': json['deleted'],
|
|
59
62
|
};
|
|
60
63
|
}
|
|
61
64
|
export function AccountToJSON(value) {
|
|
62
|
-
if (value
|
|
63
|
-
return
|
|
64
|
-
}
|
|
65
|
-
if (value === null) {
|
|
66
|
-
return null;
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
67
|
}
|
|
68
68
|
return {
|
|
69
|
-
'id': value
|
|
70
|
-
'name': value
|
|
71
|
-
'type': AccountTypeToJSON(value
|
|
72
|
-
'on_budget': value
|
|
73
|
-
'closed': value
|
|
74
|
-
'note': value
|
|
75
|
-
'balance': value
|
|
76
|
-
'cleared_balance': value
|
|
77
|
-
'uncleared_balance': value
|
|
78
|
-
'transfer_payee_id': value
|
|
79
|
-
'direct_import_linked': value
|
|
80
|
-
'direct_import_in_error': value
|
|
81
|
-
'last_reconciled_at': value
|
|
82
|
-
'debt_original_balance': value
|
|
83
|
-
'debt_interest_rates': value
|
|
84
|
-
'debt_minimum_payments': value
|
|
85
|
-
'debt_escrow_amounts': value
|
|
86
|
-
'deleted': value
|
|
69
|
+
'id': value['id'],
|
|
70
|
+
'name': value['name'],
|
|
71
|
+
'type': AccountTypeToJSON(value['type']),
|
|
72
|
+
'on_budget': value['on_budget'],
|
|
73
|
+
'closed': value['closed'],
|
|
74
|
+
'note': value['note'],
|
|
75
|
+
'balance': value['balance'],
|
|
76
|
+
'cleared_balance': value['cleared_balance'],
|
|
77
|
+
'uncleared_balance': value['uncleared_balance'],
|
|
78
|
+
'transfer_payee_id': value['transfer_payee_id'],
|
|
79
|
+
'direct_import_linked': value['direct_import_linked'],
|
|
80
|
+
'direct_import_in_error': value['direct_import_in_error'],
|
|
81
|
+
'last_reconciled_at': value['last_reconciled_at'],
|
|
82
|
+
'debt_original_balance': value['debt_original_balance'],
|
|
83
|
+
'debt_interest_rates': value['debt_interest_rates'],
|
|
84
|
+
'debt_minimum_payments': value['debt_minimum_payments'],
|
|
85
|
+
'debt_escrow_amounts': value['debt_escrow_amounts'],
|
|
86
|
+
'deleted': value['deleted'],
|
|
87
87
|
};
|
|
88
88
|
}
|
|
@@ -2,12 +2,7 @@
|
|
|
2
2
|
* YNAB API Endpoints
|
|
3
3
|
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
4
4
|
*
|
|
5
|
-
*
|
|
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.
|
|
5
|
+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
11
6
|
*/
|
|
12
7
|
import type { AccountResponseData } from './AccountResponseData';
|
|
13
8
|
/**
|
|
@@ -26,7 +21,7 @@ export interface AccountResponse {
|
|
|
26
21
|
/**
|
|
27
22
|
* Check if a given object implements the AccountResponse interface.
|
|
28
23
|
*/
|
|
29
|
-
export declare function instanceOfAccountResponse(value: object):
|
|
24
|
+
export declare function instanceOfAccountResponse(value: object): value is AccountResponse;
|
|
30
25
|
export declare function AccountResponseFromJSON(json: any): AccountResponse;
|
|
31
26
|
export declare function AccountResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountResponse;
|
|
32
27
|
export declare function AccountResponseToJSON(value?: AccountResponse | null): any;
|
|
@@ -4,27 +4,22 @@
|
|
|
4
4
|
* YNAB API Endpoints
|
|
5
5
|
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
6
6
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
7
|
+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
13
8
|
*/
|
|
14
9
|
import { AccountResponseDataFromJSON, AccountResponseDataToJSON, } from './AccountResponseData';
|
|
15
10
|
/**
|
|
16
11
|
* Check if a given object implements the AccountResponse interface.
|
|
17
12
|
*/
|
|
18
13
|
export function instanceOfAccountResponse(value) {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
return
|
|
14
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
15
|
+
return false;
|
|
16
|
+
return true;
|
|
22
17
|
}
|
|
23
18
|
export function AccountResponseFromJSON(json) {
|
|
24
19
|
return AccountResponseFromJSONTyped(json, false);
|
|
25
20
|
}
|
|
26
21
|
export function AccountResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
-
if (
|
|
22
|
+
if (json == null) {
|
|
28
23
|
return json;
|
|
29
24
|
}
|
|
30
25
|
return {
|
|
@@ -32,13 +27,10 @@ export function AccountResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
27
|
};
|
|
33
28
|
}
|
|
34
29
|
export function AccountResponseToJSON(value) {
|
|
35
|
-
if (value
|
|
36
|
-
return
|
|
37
|
-
}
|
|
38
|
-
if (value === null) {
|
|
39
|
-
return null;
|
|
30
|
+
if (value == null) {
|
|
31
|
+
return value;
|
|
40
32
|
}
|
|
41
33
|
return {
|
|
42
|
-
'data': AccountResponseDataToJSON(value
|
|
34
|
+
'data': AccountResponseDataToJSON(value['data']),
|
|
43
35
|
};
|
|
44
36
|
}
|
|
@@ -2,12 +2,7 @@
|
|
|
2
2
|
* YNAB API Endpoints
|
|
3
3
|
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
4
4
|
*
|
|
5
|
-
*
|
|
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.
|
|
5
|
+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
11
6
|
*/
|
|
12
7
|
import type { Account } from './Account';
|
|
13
8
|
/**
|
|
@@ -26,7 +21,7 @@ export interface AccountResponseData {
|
|
|
26
21
|
/**
|
|
27
22
|
* Check if a given object implements the AccountResponseData interface.
|
|
28
23
|
*/
|
|
29
|
-
export declare function instanceOfAccountResponseData(value: object):
|
|
24
|
+
export declare function instanceOfAccountResponseData(value: object): value is AccountResponseData;
|
|
30
25
|
export declare function AccountResponseDataFromJSON(json: any): AccountResponseData;
|
|
31
26
|
export declare function AccountResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountResponseData;
|
|
32
27
|
export declare function AccountResponseDataToJSON(value?: AccountResponseData | null): any;
|
|
@@ -4,27 +4,22 @@
|
|
|
4
4
|
* YNAB API Endpoints
|
|
5
5
|
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
6
6
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
7
|
+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
13
8
|
*/
|
|
14
9
|
import { AccountFromJSON, AccountToJSON, } from './Account';
|
|
15
10
|
/**
|
|
16
11
|
* Check if a given object implements the AccountResponseData interface.
|
|
17
12
|
*/
|
|
18
13
|
export function instanceOfAccountResponseData(value) {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
return
|
|
14
|
+
if (!('account' in value) || value['account'] === undefined)
|
|
15
|
+
return false;
|
|
16
|
+
return true;
|
|
22
17
|
}
|
|
23
18
|
export function AccountResponseDataFromJSON(json) {
|
|
24
19
|
return AccountResponseDataFromJSONTyped(json, false);
|
|
25
20
|
}
|
|
26
21
|
export function AccountResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
-
if (
|
|
22
|
+
if (json == null) {
|
|
28
23
|
return json;
|
|
29
24
|
}
|
|
30
25
|
return {
|
|
@@ -32,13 +27,10 @@ export function AccountResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
27
|
};
|
|
33
28
|
}
|
|
34
29
|
export function AccountResponseDataToJSON(value) {
|
|
35
|
-
if (value
|
|
36
|
-
return
|
|
37
|
-
}
|
|
38
|
-
if (value === null) {
|
|
39
|
-
return null;
|
|
30
|
+
if (value == null) {
|
|
31
|
+
return value;
|
|
40
32
|
}
|
|
41
33
|
return {
|
|
42
|
-
'account': AccountToJSON(value
|
|
34
|
+
'account': AccountToJSON(value['account']),
|
|
43
35
|
};
|
|
44
36
|
}
|
|
@@ -2,12 +2,7 @@
|
|
|
2
2
|
* YNAB API Endpoints
|
|
3
3
|
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
4
4
|
*
|
|
5
|
-
*
|
|
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.
|
|
5
|
+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
11
6
|
*/
|
|
12
7
|
/**
|
|
13
8
|
* The type of account
|
|
@@ -28,7 +23,8 @@ export declare const AccountType: {
|
|
|
28
23
|
readonly MedicalDebt: "medicalDebt";
|
|
29
24
|
readonly OtherDebt: "otherDebt";
|
|
30
25
|
};
|
|
31
|
-
export
|
|
26
|
+
export type AccountType = typeof AccountType[keyof typeof AccountType];
|
|
27
|
+
export declare function instanceOfAccountType(value: any): boolean;
|
|
32
28
|
export declare function AccountTypeFromJSON(json: any): AccountType;
|
|
33
29
|
export declare function AccountTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountType;
|
|
34
30
|
export declare function AccountTypeToJSON(value?: AccountType | null): any;
|
|
@@ -4,12 +4,7 @@
|
|
|
4
4
|
* YNAB API Endpoints
|
|
5
5
|
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
6
6
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
7
|
+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
13
8
|
*/
|
|
14
9
|
/**
|
|
15
10
|
* The type of account
|
|
@@ -30,6 +25,16 @@ export var AccountType = {
|
|
|
30
25
|
MedicalDebt: 'medicalDebt',
|
|
31
26
|
OtherDebt: 'otherDebt'
|
|
32
27
|
};
|
|
28
|
+
export function instanceOfAccountType(value) {
|
|
29
|
+
for (var key in AccountType) {
|
|
30
|
+
if (Object.prototype.hasOwnProperty.call(AccountType, key)) {
|
|
31
|
+
if (AccountType[key] === value) {
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
33
38
|
export function AccountTypeFromJSON(json) {
|
|
34
39
|
return AccountTypeFromJSONTyped(json, false);
|
|
35
40
|
}
|
|
@@ -2,12 +2,7 @@
|
|
|
2
2
|
* YNAB API Endpoints
|
|
3
3
|
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
4
4
|
*
|
|
5
|
-
*
|
|
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.
|
|
5
|
+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
11
6
|
*/
|
|
12
7
|
import type { AccountsResponseData } from './AccountsResponseData';
|
|
13
8
|
/**
|
|
@@ -26,7 +21,7 @@ export interface AccountsResponse {
|
|
|
26
21
|
/**
|
|
27
22
|
* Check if a given object implements the AccountsResponse interface.
|
|
28
23
|
*/
|
|
29
|
-
export declare function instanceOfAccountsResponse(value: object):
|
|
24
|
+
export declare function instanceOfAccountsResponse(value: object): value is AccountsResponse;
|
|
30
25
|
export declare function AccountsResponseFromJSON(json: any): AccountsResponse;
|
|
31
26
|
export declare function AccountsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountsResponse;
|
|
32
27
|
export declare function AccountsResponseToJSON(value?: AccountsResponse | null): any;
|