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
|
@@ -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
|
*
|
|
@@ -67,7 +62,7 @@ export interface ScheduledSubTransaction {
|
|
|
67
62
|
/**
|
|
68
63
|
* Check if a given object implements the ScheduledSubTransaction interface.
|
|
69
64
|
*/
|
|
70
|
-
export declare function instanceOfScheduledSubTransaction(value: object):
|
|
65
|
+
export declare function instanceOfScheduledSubTransaction(value: object): value is ScheduledSubTransaction;
|
|
71
66
|
export declare function ScheduledSubTransactionFromJSON(json: any): ScheduledSubTransaction;
|
|
72
67
|
export declare function ScheduledSubTransactionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduledSubTransaction;
|
|
73
68
|
export declare function ScheduledSubTransactionToJSON(value?: ScheduledSubTransaction | null): any;
|
|
@@ -4,58 +4,52 @@
|
|
|
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
|
/**
|
|
16
10
|
* Check if a given object implements the ScheduledSubTransaction interface.
|
|
17
11
|
*/
|
|
18
12
|
export function instanceOfScheduledSubTransaction(value) {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
13
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
14
|
+
return false;
|
|
15
|
+
if (!('scheduled_transaction_id' in value) || value['scheduled_transaction_id'] === undefined)
|
|
16
|
+
return false;
|
|
17
|
+
if (!('amount' in value) || value['amount'] === undefined)
|
|
18
|
+
return false;
|
|
19
|
+
if (!('deleted' in value) || value['deleted'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
return true;
|
|
25
22
|
}
|
|
26
23
|
export function ScheduledSubTransactionFromJSON(json) {
|
|
27
24
|
return ScheduledSubTransactionFromJSONTyped(json, false);
|
|
28
25
|
}
|
|
29
26
|
export function ScheduledSubTransactionFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
-
if (
|
|
27
|
+
if (json == null) {
|
|
31
28
|
return json;
|
|
32
29
|
}
|
|
33
30
|
return {
|
|
34
31
|
'id': json['id'],
|
|
35
32
|
'scheduled_transaction_id': json['scheduled_transaction_id'],
|
|
36
33
|
'amount': json['amount'],
|
|
37
|
-
'memo':
|
|
38
|
-
'payee_id':
|
|
39
|
-
'category_id':
|
|
40
|
-
'transfer_account_id':
|
|
34
|
+
'memo': json['memo'] == null ? undefined : json['memo'],
|
|
35
|
+
'payee_id': json['payee_id'] == null ? undefined : json['payee_id'],
|
|
36
|
+
'category_id': json['category_id'] == null ? undefined : json['category_id'],
|
|
37
|
+
'transfer_account_id': json['transfer_account_id'] == null ? undefined : json['transfer_account_id'],
|
|
41
38
|
'deleted': json['deleted'],
|
|
42
39
|
};
|
|
43
40
|
}
|
|
44
41
|
export function ScheduledSubTransactionToJSON(value) {
|
|
45
|
-
if (value
|
|
46
|
-
return
|
|
47
|
-
}
|
|
48
|
-
if (value === null) {
|
|
49
|
-
return null;
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
50
44
|
}
|
|
51
45
|
return {
|
|
52
|
-
'id': value
|
|
53
|
-
'scheduled_transaction_id': value
|
|
54
|
-
'amount': value
|
|
55
|
-
'memo': value
|
|
56
|
-
'payee_id': value
|
|
57
|
-
'category_id': value
|
|
58
|
-
'transfer_account_id': value
|
|
59
|
-
'deleted': value
|
|
46
|
+
'id': value['id'],
|
|
47
|
+
'scheduled_transaction_id': value['scheduled_transaction_id'],
|
|
48
|
+
'amount': value['amount'],
|
|
49
|
+
'memo': value['memo'],
|
|
50
|
+
'payee_id': value['payee_id'],
|
|
51
|
+
'category_id': value['category_id'],
|
|
52
|
+
'transfer_account_id': value['transfer_account_id'],
|
|
53
|
+
'deleted': value['deleted'],
|
|
60
54
|
};
|
|
61
55
|
}
|
|
@@ -2,15 +2,10 @@
|
|
|
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
|
-
import type { ScheduledSubTransaction } from './ScheduledSubTransaction';
|
|
13
7
|
import type { TransactionFlagColor } from './TransactionFlagColor';
|
|
8
|
+
import type { ScheduledSubTransaction } from './ScheduledSubTransaction';
|
|
14
9
|
/**
|
|
15
10
|
*
|
|
16
11
|
* @export
|
|
@@ -59,6 +54,12 @@ export interface ScheduledTransactionDetail {
|
|
|
59
54
|
* @memberof ScheduledTransactionDetail
|
|
60
55
|
*/
|
|
61
56
|
flag_color?: TransactionFlagColor | null;
|
|
57
|
+
/**
|
|
58
|
+
* The customized name of a transaction flag
|
|
59
|
+
* @type {string}
|
|
60
|
+
* @memberof ScheduledTransactionDetail
|
|
61
|
+
*/
|
|
62
|
+
flag_name?: string | null;
|
|
62
63
|
/**
|
|
63
64
|
*
|
|
64
65
|
* @type {string}
|
|
@@ -132,11 +133,11 @@ export declare const ScheduledTransactionDetailFrequencyEnum: {
|
|
|
132
133
|
readonly Yearly: "yearly";
|
|
133
134
|
readonly EveryOtherYear: "everyOtherYear";
|
|
134
135
|
};
|
|
135
|
-
export
|
|
136
|
+
export type ScheduledTransactionDetailFrequencyEnum = typeof ScheduledTransactionDetailFrequencyEnum[keyof typeof ScheduledTransactionDetailFrequencyEnum];
|
|
136
137
|
/**
|
|
137
138
|
* Check if a given object implements the ScheduledTransactionDetail interface.
|
|
138
139
|
*/
|
|
139
|
-
export declare function instanceOfScheduledTransactionDetail(value: object):
|
|
140
|
+
export declare function instanceOfScheduledTransactionDetail(value: object): value is ScheduledTransactionDetail;
|
|
140
141
|
export declare function ScheduledTransactionDetailFromJSON(json: any): ScheduledTransactionDetail;
|
|
141
142
|
export declare function ScheduledTransactionDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduledTransactionDetail;
|
|
142
143
|
export declare function ScheduledTransactionDetailToJSON(value?: ScheduledTransactionDetail | null): any;
|
|
@@ -4,16 +4,10 @@
|
|
|
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
|
-
import { ScheduledSubTransactionFromJSON, ScheduledSubTransactionToJSON, } from './ScheduledSubTransaction';
|
|
16
9
|
import { TransactionFlagColorFromJSON, TransactionFlagColorToJSON, } from './TransactionFlagColor';
|
|
10
|
+
import { ScheduledSubTransactionFromJSON, ScheduledSubTransactionToJSON, } from './ScheduledSubTransaction';
|
|
17
11
|
/**
|
|
18
12
|
* @export
|
|
19
13
|
*/
|
|
@@ -36,23 +30,31 @@ export var ScheduledTransactionDetailFrequencyEnum = {
|
|
|
36
30
|
* Check if a given object implements the ScheduledTransactionDetail interface.
|
|
37
31
|
*/
|
|
38
32
|
export function instanceOfScheduledTransactionDetail(value) {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
33
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('date_first' in value) || value['date_first'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('date_next' in value) || value['date_next'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('frequency' in value) || value['frequency'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('amount' in value) || value['amount'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('account_id' in value) || value['account_id'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('deleted' in value) || value['deleted'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('account_name' in value) || value['account_name'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
if (!('subtransactions' in value) || value['subtransactions'] === undefined)
|
|
50
|
+
return false;
|
|
51
|
+
return true;
|
|
50
52
|
}
|
|
51
53
|
export function ScheduledTransactionDetailFromJSON(json) {
|
|
52
54
|
return ScheduledTransactionDetailFromJSONTyped(json, false);
|
|
53
55
|
}
|
|
54
56
|
export function ScheduledTransactionDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
55
|
-
if (
|
|
57
|
+
if (json == null) {
|
|
56
58
|
return json;
|
|
57
59
|
}
|
|
58
60
|
return {
|
|
@@ -61,42 +63,41 @@ export function ScheduledTransactionDetailFromJSONTyped(json, ignoreDiscriminato
|
|
|
61
63
|
'date_next': json['date_next'],
|
|
62
64
|
'frequency': json['frequency'],
|
|
63
65
|
'amount': json['amount'],
|
|
64
|
-
'memo':
|
|
65
|
-
'flag_color':
|
|
66
|
+
'memo': json['memo'] == null ? undefined : json['memo'],
|
|
67
|
+
'flag_color': json['flag_color'] == null ? undefined : TransactionFlagColorFromJSON(json['flag_color']),
|
|
68
|
+
'flag_name': json['flag_name'] == null ? undefined : json['flag_name'],
|
|
66
69
|
'account_id': json['account_id'],
|
|
67
|
-
'payee_id':
|
|
68
|
-
'category_id':
|
|
69
|
-
'transfer_account_id':
|
|
70
|
+
'payee_id': json['payee_id'] == null ? undefined : json['payee_id'],
|
|
71
|
+
'category_id': json['category_id'] == null ? undefined : json['category_id'],
|
|
72
|
+
'transfer_account_id': json['transfer_account_id'] == null ? undefined : json['transfer_account_id'],
|
|
70
73
|
'deleted': json['deleted'],
|
|
71
74
|
'account_name': json['account_name'],
|
|
72
|
-
'payee_name':
|
|
73
|
-
'category_name':
|
|
75
|
+
'payee_name': json['payee_name'] == null ? undefined : json['payee_name'],
|
|
76
|
+
'category_name': json['category_name'] == null ? undefined : json['category_name'],
|
|
74
77
|
'subtransactions': (json['subtransactions'].map(ScheduledSubTransactionFromJSON)),
|
|
75
78
|
};
|
|
76
79
|
}
|
|
77
80
|
export function ScheduledTransactionDetailToJSON(value) {
|
|
78
|
-
if (value
|
|
79
|
-
return
|
|
80
|
-
}
|
|
81
|
-
if (value === null) {
|
|
82
|
-
return null;
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
83
|
}
|
|
84
84
|
return {
|
|
85
|
-
'id': value
|
|
86
|
-
'date_first': value
|
|
87
|
-
'date_next': value
|
|
88
|
-
'frequency': value
|
|
89
|
-
'amount': value
|
|
90
|
-
'memo': value
|
|
91
|
-
'flag_color': TransactionFlagColorToJSON(value
|
|
92
|
-
'
|
|
93
|
-
'
|
|
94
|
-
'
|
|
95
|
-
'
|
|
96
|
-
'
|
|
97
|
-
'
|
|
98
|
-
'
|
|
99
|
-
'
|
|
100
|
-
'
|
|
85
|
+
'id': value['id'],
|
|
86
|
+
'date_first': value['date_first'],
|
|
87
|
+
'date_next': value['date_next'],
|
|
88
|
+
'frequency': value['frequency'],
|
|
89
|
+
'amount': value['amount'],
|
|
90
|
+
'memo': value['memo'],
|
|
91
|
+
'flag_color': TransactionFlagColorToJSON(value['flag_color']),
|
|
92
|
+
'flag_name': value['flag_name'],
|
|
93
|
+
'account_id': value['account_id'],
|
|
94
|
+
'payee_id': value['payee_id'],
|
|
95
|
+
'category_id': value['category_id'],
|
|
96
|
+
'transfer_account_id': value['transfer_account_id'],
|
|
97
|
+
'deleted': value['deleted'],
|
|
98
|
+
'account_name': value['account_name'],
|
|
99
|
+
'payee_name': value['payee_name'],
|
|
100
|
+
'category_name': value['category_name'],
|
|
101
|
+
'subtransactions': (value['subtransactions'].map(ScheduledSubTransactionToJSON)),
|
|
101
102
|
};
|
|
102
103
|
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* YNAB API Endpoints
|
|
3
|
+
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
4
|
+
*
|
|
5
|
+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* The scheduled transaction frequency
|
|
9
|
+
* @export
|
|
10
|
+
*/
|
|
11
|
+
export declare const ScheduledTransactionFrequency: {
|
|
12
|
+
readonly Never: "never";
|
|
13
|
+
readonly Daily: "daily";
|
|
14
|
+
readonly Weekly: "weekly";
|
|
15
|
+
readonly EveryOtherWeek: "everyOtherWeek";
|
|
16
|
+
readonly TwiceAMonth: "twiceAMonth";
|
|
17
|
+
readonly Every4Weeks: "every4Weeks";
|
|
18
|
+
readonly Monthly: "monthly";
|
|
19
|
+
readonly EveryOtherMonth: "everyOtherMonth";
|
|
20
|
+
readonly Every3Months: "every3Months";
|
|
21
|
+
readonly Every4Months: "every4Months";
|
|
22
|
+
readonly TwiceAYear: "twiceAYear";
|
|
23
|
+
readonly Yearly: "yearly";
|
|
24
|
+
readonly EveryOtherYear: "everyOtherYear";
|
|
25
|
+
};
|
|
26
|
+
export type ScheduledTransactionFrequency = typeof ScheduledTransactionFrequency[keyof typeof ScheduledTransactionFrequency];
|
|
27
|
+
export declare function instanceOfScheduledTransactionFrequency(value: any): boolean;
|
|
28
|
+
export declare function ScheduledTransactionFrequencyFromJSON(json: any): ScheduledTransactionFrequency;
|
|
29
|
+
export declare function ScheduledTransactionFrequencyFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduledTransactionFrequency;
|
|
30
|
+
export declare function ScheduledTransactionFrequencyToJSON(value?: ScheduledTransactionFrequency | null): any;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* YNAB API Endpoints
|
|
5
|
+
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
6
|
+
*
|
|
7
|
+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* The scheduled transaction frequency
|
|
11
|
+
* @export
|
|
12
|
+
*/
|
|
13
|
+
export var ScheduledTransactionFrequency = {
|
|
14
|
+
Never: 'never',
|
|
15
|
+
Daily: 'daily',
|
|
16
|
+
Weekly: 'weekly',
|
|
17
|
+
EveryOtherWeek: 'everyOtherWeek',
|
|
18
|
+
TwiceAMonth: 'twiceAMonth',
|
|
19
|
+
Every4Weeks: 'every4Weeks',
|
|
20
|
+
Monthly: 'monthly',
|
|
21
|
+
EveryOtherMonth: 'everyOtherMonth',
|
|
22
|
+
Every3Months: 'every3Months',
|
|
23
|
+
Every4Months: 'every4Months',
|
|
24
|
+
TwiceAYear: 'twiceAYear',
|
|
25
|
+
Yearly: 'yearly',
|
|
26
|
+
EveryOtherYear: 'everyOtherYear'
|
|
27
|
+
};
|
|
28
|
+
export function instanceOfScheduledTransactionFrequency(value) {
|
|
29
|
+
for (var key in ScheduledTransactionFrequency) {
|
|
30
|
+
if (Object.prototype.hasOwnProperty.call(ScheduledTransactionFrequency, key)) {
|
|
31
|
+
if (ScheduledTransactionFrequency[key] === value) {
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
export function ScheduledTransactionFrequencyFromJSON(json) {
|
|
39
|
+
return ScheduledTransactionFrequencyFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
export function ScheduledTransactionFrequencyFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
export function ScheduledTransactionFrequencyToJSON(value) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
@@ -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 { ScheduledTransactionResponseData } from './ScheduledTransactionResponseData';
|
|
13
8
|
/**
|
|
@@ -26,7 +21,7 @@ export interface ScheduledTransactionResponse {
|
|
|
26
21
|
/**
|
|
27
22
|
* Check if a given object implements the ScheduledTransactionResponse interface.
|
|
28
23
|
*/
|
|
29
|
-
export declare function instanceOfScheduledTransactionResponse(value: object):
|
|
24
|
+
export declare function instanceOfScheduledTransactionResponse(value: object): value is ScheduledTransactionResponse;
|
|
30
25
|
export declare function ScheduledTransactionResponseFromJSON(json: any): ScheduledTransactionResponse;
|
|
31
26
|
export declare function ScheduledTransactionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduledTransactionResponse;
|
|
32
27
|
export declare function ScheduledTransactionResponseToJSON(value?: ScheduledTransactionResponse | 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 { ScheduledTransactionResponseDataFromJSON, ScheduledTransactionResponseDataToJSON, } from './ScheduledTransactionResponseData';
|
|
15
10
|
/**
|
|
16
11
|
* Check if a given object implements the ScheduledTransactionResponse interface.
|
|
17
12
|
*/
|
|
18
13
|
export function instanceOfScheduledTransactionResponse(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 ScheduledTransactionResponseFromJSON(json) {
|
|
24
19
|
return ScheduledTransactionResponseFromJSONTyped(json, false);
|
|
25
20
|
}
|
|
26
21
|
export function ScheduledTransactionResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
-
if (
|
|
22
|
+
if (json == null) {
|
|
28
23
|
return json;
|
|
29
24
|
}
|
|
30
25
|
return {
|
|
@@ -32,13 +27,10 @@ export function ScheduledTransactionResponseFromJSONTyped(json, ignoreDiscrimina
|
|
|
32
27
|
};
|
|
33
28
|
}
|
|
34
29
|
export function ScheduledTransactionResponseToJSON(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': ScheduledTransactionResponseDataToJSON(value
|
|
34
|
+
'data': ScheduledTransactionResponseDataToJSON(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 { ScheduledTransactionDetail } from './ScheduledTransactionDetail';
|
|
13
8
|
/**
|
|
@@ -26,7 +21,7 @@ export interface ScheduledTransactionResponseData {
|
|
|
26
21
|
/**
|
|
27
22
|
* Check if a given object implements the ScheduledTransactionResponseData interface.
|
|
28
23
|
*/
|
|
29
|
-
export declare function instanceOfScheduledTransactionResponseData(value: object):
|
|
24
|
+
export declare function instanceOfScheduledTransactionResponseData(value: object): value is ScheduledTransactionResponseData;
|
|
30
25
|
export declare function ScheduledTransactionResponseDataFromJSON(json: any): ScheduledTransactionResponseData;
|
|
31
26
|
export declare function ScheduledTransactionResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduledTransactionResponseData;
|
|
32
27
|
export declare function ScheduledTransactionResponseDataToJSON(value?: ScheduledTransactionResponseData | 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 { ScheduledTransactionDetailFromJSON, ScheduledTransactionDetailToJSON, } from './ScheduledTransactionDetail';
|
|
15
10
|
/**
|
|
16
11
|
* Check if a given object implements the ScheduledTransactionResponseData interface.
|
|
17
12
|
*/
|
|
18
13
|
export function instanceOfScheduledTransactionResponseData(value) {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
return
|
|
14
|
+
if (!('scheduled_transaction' in value) || value['scheduled_transaction'] === undefined)
|
|
15
|
+
return false;
|
|
16
|
+
return true;
|
|
22
17
|
}
|
|
23
18
|
export function ScheduledTransactionResponseDataFromJSON(json) {
|
|
24
19
|
return ScheduledTransactionResponseDataFromJSONTyped(json, false);
|
|
25
20
|
}
|
|
26
21
|
export function ScheduledTransactionResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
-
if (
|
|
22
|
+
if (json == null) {
|
|
28
23
|
return json;
|
|
29
24
|
}
|
|
30
25
|
return {
|
|
@@ -32,13 +27,10 @@ export function ScheduledTransactionResponseDataFromJSONTyped(json, ignoreDiscri
|
|
|
32
27
|
};
|
|
33
28
|
}
|
|
34
29
|
export function ScheduledTransactionResponseDataToJSON(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
|
-
'scheduled_transaction': ScheduledTransactionDetailToJSON(value
|
|
34
|
+
'scheduled_transaction': ScheduledTransactionDetailToJSON(value['scheduled_transaction']),
|
|
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 { TransactionFlagColor } from './TransactionFlagColor';
|
|
13
8
|
/**
|
|
@@ -58,6 +53,12 @@ export interface ScheduledTransactionSummary {
|
|
|
58
53
|
* @memberof ScheduledTransactionSummary
|
|
59
54
|
*/
|
|
60
55
|
flag_color?: TransactionFlagColor | null;
|
|
56
|
+
/**
|
|
57
|
+
* The customized name of a transaction flag
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof ScheduledTransactionSummary
|
|
60
|
+
*/
|
|
61
|
+
flag_name?: string | null;
|
|
61
62
|
/**
|
|
62
63
|
*
|
|
63
64
|
* @type {string}
|
|
@@ -107,11 +108,11 @@ export declare const ScheduledTransactionSummaryFrequencyEnum: {
|
|
|
107
108
|
readonly Yearly: "yearly";
|
|
108
109
|
readonly EveryOtherYear: "everyOtherYear";
|
|
109
110
|
};
|
|
110
|
-
export
|
|
111
|
+
export type ScheduledTransactionSummaryFrequencyEnum = typeof ScheduledTransactionSummaryFrequencyEnum[keyof typeof ScheduledTransactionSummaryFrequencyEnum];
|
|
111
112
|
/**
|
|
112
113
|
* Check if a given object implements the ScheduledTransactionSummary interface.
|
|
113
114
|
*/
|
|
114
|
-
export declare function instanceOfScheduledTransactionSummary(value: object):
|
|
115
|
+
export declare function instanceOfScheduledTransactionSummary(value: object): value is ScheduledTransactionSummary;
|
|
115
116
|
export declare function ScheduledTransactionSummaryFromJSON(json: any): ScheduledTransactionSummary;
|
|
116
117
|
export declare function ScheduledTransactionSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduledTransactionSummary;
|
|
117
118
|
export declare function ScheduledTransactionSummaryToJSON(value?: ScheduledTransactionSummary | null): any;
|