├── test ├── __init__.py ├── test_user_api.py ├── test_user.py ├── test_payee.py ├── test_account.py ├── test_category.py ├── test_date_format.py ├── test_error_detail.py ├── test_month_detail.py ├── test_budget_detail.py ├── test_bulk_response.py ├── test_month_summary.py ├── test_user_response.py ├── test_deprecated_api.py ├── test_budget_summary.py ├── test_category_group.py ├── test_error_response.py ├── test_payee_location.py ├── test_payee_response.py ├── test_budget_settings.py ├── test_currency_format.py ├── test_payees_response.py ├── test_sub_transaction.py ├── test_account_response.py ├── test_save_transaction.py ├── test_accounts_response.py ├── test_bulk_transactions.py ├── test_category_response.py ├── test_bulk_response_data.py ├── test_month_detail_all_of.py ├── test_user_response_data.py ├── test_hybrid_transaction.py ├── test_transaction_detail.py ├── test_update_transaction.py ├── test_budget_detail_all_of.py ├── test_payee_response_data.py ├── test_save_month_category.py ├── test_categories_response.py ├── test_payees_response_data.py ├── test_save_sub_transaction.py ├── test_transaction_summary.py ├── test_account_response_data.py ├── test_month_detail_response.py ├── test_transaction_response.py ├── test_transactions_response.py ├── test_accounts_response_data.py ├── test_budget_detail_response.py ├── test_category_response_data.py ├── test_save_category_response.py ├── test_bulk_response_data_bulk.py ├── test_budget_summary_response.py ├── test_payee_location_response.py ├── test_budget_settings_response.py ├── test_categories_response_data.py ├── test_hybrid_transaction_all_of.py ├── test_month_summaries_response.py ├── test_payee_locations_response.py ├── test_save_transaction_wrapper.py ├── test_transaction_detail_all_of.py ├── test_update_transaction_all_of.py ├── test_save_transactions_wrapper.py ├── test_scheduled_sub_transaction.py ├── test_transaction_response_data.py ├── test_month_detail_response_data.py ├── test_payees_api.py ├── test_save_transactions_response.py ├── test_transactions_response_data.py ├── test_budget_detail_response_data.py ├── test_save_category_response_data.py ├── test_save_month_category_wrapper.py ├── test_update_transactions_wrapper.py ├── test_budget_summary_response_data.py ├── test_payee_location_response_data.py ├── test_budget_settings_response_data.py ├── test_hybrid_transactions_response.py ├── test_month_summaries_response_data.py ├── test_payee_locations_response_data.py ├── test_scheduled_transaction_detail.py ├── test_transactions_import_response.py ├── test_accounts_api.py ├── test_category_group_with_categories.py ├── test_months_api.py ├── test_scheduled_transaction_summary.py ├── test_scheduled_transaction_response.py ├── test_save_transactions_response_data.py ├── test_scheduled_transactions_response.py ├── test_hybrid_transactions_response_data.py ├── test_transactions_import_response_data.py ├── test_scheduled_transaction_detail_all_of.py ├── test_scheduled_transaction_response_data.py ├── test_category_group_with_categories_all_of.py ├── test_scheduled_transactions_response_data.py ├── test_scheduled_transactions_api.py ├── test_budgets_api.py ├── test_payee_locations_api.py ├── test_categories_api.py └── test_transactions_api.py ├── .openapi-generator └── VERSION ├── setup.cfg ├── openapi.yaml ├── test-requirements.txt ├── .openapi-generator-ignore ├── requirements.txt ├── tox.ini ├── docs ├── User.md ├── UpdateTransactionAllOf.md ├── UserResponseData.md ├── PayeeResponseData.md ├── ErrorResponse.md ├── AccountResponseData.md ├── BulkResponse.md ├── UserResponse.md ├── CategoryResponseData.md ├── PayeeResponse.md ├── PayeesResponse.md ├── AccountResponse.md ├── AccountsResponse.md ├── BulkResponseData.md ├── CategoryResponse.md ├── MonthDetailResponseData.md ├── SaveMonthCategory.md ├── BulkTransactions.md ├── CategoriesResponse.md ├── ErrorDetail.md ├── SaveTransactionWrapper.md ├── BudgetSettingsResponseData.md ├── MonthDetailResponse.md ├── PayeeLocationResponseData.md ├── SaveMonthCategoryWrapper.md ├── TransactionResponse.md ├── TransactionResponseData.md ├── BudgetDetailResponse.md ├── BudgetSummaryResponse.md ├── PayeeLocationResponse.md ├── SaveCategoryResponse.md ├── TransactionsResponse.md ├── BudgetSettingsResponse.md ├── MonthSummariesResponse.md ├── PayeeLocationsResponse.md ├── PayeeLocationsResponseData.md ├── UpdateTransactionsWrapper.md ├── SaveTransactionsResponse.md ├── HybridTransactionsResponse.md ├── HybridTransactionsResponseData.md ├── TransactionsImportResponse.md ├── ScheduledTransactionResponse.md ├── TransactionsImportResponseData.md ├── PayeesResponseData.md ├── ScheduledTransactionsResponse.md ├── BudgetSettings.md ├── AccountsResponseData.md ├── SaveCategoryResponseData.md ├── ScheduledTransactionResponseData.md ├── DateFormat.md ├── BudgetDetailResponseData.md ├── MonthSummariesResponseData.md ├── BudgetSummaryResponseData.md ├── TransactionsResponseData.md ├── MonthDetailAllOf.md ├── CategoriesResponseData.md ├── SaveTransactionsWrapper.md ├── CategoryGroupWithCategoriesAllOf.md ├── ScheduledTransactionsResponseData.md ├── TransactionDetailAllOf.md ├── CategoryGroup.md ├── PayeeLocation.md ├── Payee.md ├── ScheduledTransactionDetailAllOf.md ├── BulkResponseDataBulk.md ├── CurrencyFormat.md ├── HybridTransactionAllOf.md ├── CategoryGroupWithCategories.md ├── ScheduledSubTransaction.md ├── SaveTransactionsResponseData.md ├── SubTransaction.md ├── BudgetSummary.md ├── MonthSummary.md ├── SaveSubTransaction.md ├── BudgetDetailAllOf.md ├── MonthDetail.md ├── ScheduledTransactionSummary.md ├── Account.md ├── ScheduledTransactionDetail.md ├── BudgetDetail.md ├── Category.md ├── TransactionSummary.md ├── UserApi.md ├── TransactionDetail.md ├── HybridTransaction.md ├── DeprecatedApi.md ├── SaveTransaction.md └── UpdateTransaction.md ├── ynab └── api │ └── __init__.py ├── .github └── workflows │ ├── ci_test.yaml │ └── update_spec.yaml ├── .gitignore ├── setup.py └── README.md /test/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.openapi-generator/VERSION: -------------------------------------------------------------------------------- 1 | 4.2.2 -------------------------------------------------------------------------------- /setup.cfg: -------------------------------------------------------------------------------- 1 | [flake8] 2 | max-line-length=99 3 | -------------------------------------------------------------------------------- /openapi.yaml: -------------------------------------------------------------------------------- 1 | packageVersion: 0.0.3 2 | packageName: ynab 3 | packageUrl: https://github.com/davidhao3300/ynab-python -------------------------------------------------------------------------------- /test-requirements.txt: -------------------------------------------------------------------------------- 1 | coverage>=4.0.3 2 | nose>=1.3.7 3 | pluggy>=0.3.1 4 | py>=1.4.31 5 | randomize>=0.13 6 | pytest 7 | -------------------------------------------------------------------------------- /.openapi-generator-ignore: -------------------------------------------------------------------------------- 1 | .gitlab-ci.yml 2 | git_push.sh 3 | .travis.yml 4 | .gitignore 5 | README.md 6 | test-requirements.txt 7 | -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | certifi >= 14.05.14 2 | future; python_version<="2.7" 3 | six >= 1.10 4 | python_dateutil >= 2.5.3 5 | setuptools >= 21.0.0 6 | urllib3 >= 1.15.1 7 | -------------------------------------------------------------------------------- /tox.ini: -------------------------------------------------------------------------------- 1 | [tox] 2 | envlist = py27, py3 3 | 4 | [testenv] 5 | deps=-r{toxinidir}/requirements.txt 6 | -r{toxinidir}/test-requirements.txt 7 | 8 | commands= 9 | nosetests \ 10 | [] 11 | -------------------------------------------------------------------------------- /docs/User.md: -------------------------------------------------------------------------------- 1 | # User 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **str** | | 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/UpdateTransactionAllOf.md: -------------------------------------------------------------------------------- 1 | # UpdateTransactionAllOf 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **str** | | 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/UserResponseData.md: -------------------------------------------------------------------------------- 1 | # UserResponseData 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **user** | [**User**](User.md) | | 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/PayeeResponseData.md: -------------------------------------------------------------------------------- 1 | # PayeeResponseData 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **payee** | [**Payee**](Payee.md) | | 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/ErrorResponse.md: -------------------------------------------------------------------------------- 1 | # ErrorResponse 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **error** | [**ErrorDetail**](ErrorDetail.md) | | 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/AccountResponseData.md: -------------------------------------------------------------------------------- 1 | # AccountResponseData 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **account** | [**Account**](Account.md) | | 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/BulkResponse.md: -------------------------------------------------------------------------------- 1 | # BulkResponse 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **data** | [**BulkResponseData**](BulkResponseData.md) | | 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/UserResponse.md: -------------------------------------------------------------------------------- 1 | # UserResponse 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **data** | [**UserResponseData**](UserResponseData.md) | | 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/CategoryResponseData.md: -------------------------------------------------------------------------------- 1 | # CategoryResponseData 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **category** | [**Category**](Category.md) | | 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/PayeeResponse.md: -------------------------------------------------------------------------------- 1 | # PayeeResponse 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **data** | [**PayeeResponseData**](PayeeResponseData.md) | | 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/PayeesResponse.md: -------------------------------------------------------------------------------- 1 | # PayeesResponse 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **data** | [**PayeesResponseData**](PayeesResponseData.md) | | 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/AccountResponse.md: -------------------------------------------------------------------------------- 1 | # AccountResponse 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **data** | [**AccountResponseData**](AccountResponseData.md) | | 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/AccountsResponse.md: -------------------------------------------------------------------------------- 1 | # AccountsResponse 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **data** | [**AccountsResponseData**](AccountsResponseData.md) | | 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/BulkResponseData.md: -------------------------------------------------------------------------------- 1 | # BulkResponseData 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **bulk** | [**BulkResponseDataBulk**](BulkResponseDataBulk.md) | | 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/CategoryResponse.md: -------------------------------------------------------------------------------- 1 | # CategoryResponse 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **data** | [**CategoryResponseData**](CategoryResponseData.md) | | 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/MonthDetailResponseData.md: -------------------------------------------------------------------------------- 1 | # MonthDetailResponseData 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **month** | [**MonthDetail**](MonthDetail.md) | | 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/SaveMonthCategory.md: -------------------------------------------------------------------------------- 1 | # SaveMonthCategory 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **budgeted** | **int** | Budgeted amount in milliunits format | 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/BulkTransactions.md: -------------------------------------------------------------------------------- 1 | # BulkTransactions 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **transactions** | [**list[SaveTransaction]**](SaveTransaction.md) | | 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/CategoriesResponse.md: -------------------------------------------------------------------------------- 1 | # CategoriesResponse 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **data** | [**CategoriesResponseData**](CategoriesResponseData.md) | | 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/ErrorDetail.md: -------------------------------------------------------------------------------- 1 | # ErrorDetail 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **str** | | 7 | **name** | **str** | | 8 | **detail** | **str** | | 9 | 10 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/SaveTransactionWrapper.md: -------------------------------------------------------------------------------- 1 | # SaveTransactionWrapper 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **transaction** | [**SaveTransaction**](SaveTransaction.md) | | 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/BudgetSettingsResponseData.md: -------------------------------------------------------------------------------- 1 | # BudgetSettingsResponseData 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **settings** | [**BudgetSettings**](BudgetSettings.md) | | 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/MonthDetailResponse.md: -------------------------------------------------------------------------------- 1 | # MonthDetailResponse 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **data** | [**MonthDetailResponseData**](MonthDetailResponseData.md) | | 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/PayeeLocationResponseData.md: -------------------------------------------------------------------------------- 1 | # PayeeLocationResponseData 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **payee_location** | [**PayeeLocation**](PayeeLocation.md) | | 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/SaveMonthCategoryWrapper.md: -------------------------------------------------------------------------------- 1 | # SaveMonthCategoryWrapper 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **category** | [**SaveMonthCategory**](SaveMonthCategory.md) | | 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/TransactionResponse.md: -------------------------------------------------------------------------------- 1 | # TransactionResponse 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **data** | [**TransactionResponseData**](TransactionResponseData.md) | | 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/TransactionResponseData.md: -------------------------------------------------------------------------------- 1 | # TransactionResponseData 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **transaction** | [**TransactionDetail**](TransactionDetail.md) | | 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/BudgetDetailResponse.md: -------------------------------------------------------------------------------- 1 | # BudgetDetailResponse 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **data** | [**BudgetDetailResponseData**](BudgetDetailResponseData.md) | | 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/BudgetSummaryResponse.md: -------------------------------------------------------------------------------- 1 | # BudgetSummaryResponse 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **data** | [**BudgetSummaryResponseData**](BudgetSummaryResponseData.md) | | 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/PayeeLocationResponse.md: -------------------------------------------------------------------------------- 1 | # PayeeLocationResponse 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **data** | [**PayeeLocationResponseData**](PayeeLocationResponseData.md) | | 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/SaveCategoryResponse.md: -------------------------------------------------------------------------------- 1 | # SaveCategoryResponse 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **data** | [**SaveCategoryResponseData**](SaveCategoryResponseData.md) | | 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/TransactionsResponse.md: -------------------------------------------------------------------------------- 1 | # TransactionsResponse 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **data** | [**TransactionsResponseData**](TransactionsResponseData.md) | | 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/BudgetSettingsResponse.md: -------------------------------------------------------------------------------- 1 | # BudgetSettingsResponse 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **data** | [**BudgetSettingsResponseData**](BudgetSettingsResponseData.md) | | 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/MonthSummariesResponse.md: -------------------------------------------------------------------------------- 1 | # MonthSummariesResponse 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **data** | [**MonthSummariesResponseData**](MonthSummariesResponseData.md) | | 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/PayeeLocationsResponse.md: -------------------------------------------------------------------------------- 1 | # PayeeLocationsResponse 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **data** | [**PayeeLocationsResponseData**](PayeeLocationsResponseData.md) | | 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/PayeeLocationsResponseData.md: -------------------------------------------------------------------------------- 1 | # PayeeLocationsResponseData 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **payee_locations** | [**list[PayeeLocation]**](PayeeLocation.md) | | 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/UpdateTransactionsWrapper.md: -------------------------------------------------------------------------------- 1 | # UpdateTransactionsWrapper 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **transactions** | [**list[UpdateTransaction]**](UpdateTransaction.md) | | 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/SaveTransactionsResponse.md: -------------------------------------------------------------------------------- 1 | # SaveTransactionsResponse 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **data** | [**SaveTransactionsResponseData**](SaveTransactionsResponseData.md) | | 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/HybridTransactionsResponse.md: -------------------------------------------------------------------------------- 1 | # HybridTransactionsResponse 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **data** | [**HybridTransactionsResponseData**](HybridTransactionsResponseData.md) | | 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/HybridTransactionsResponseData.md: -------------------------------------------------------------------------------- 1 | # HybridTransactionsResponseData 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **transactions** | [**list[HybridTransaction]**](HybridTransaction.md) | | 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/TransactionsImportResponse.md: -------------------------------------------------------------------------------- 1 | # TransactionsImportResponse 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **data** | [**TransactionsImportResponseData**](TransactionsImportResponseData.md) | | 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/ScheduledTransactionResponse.md: -------------------------------------------------------------------------------- 1 | # ScheduledTransactionResponse 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **data** | [**ScheduledTransactionResponseData**](ScheduledTransactionResponseData.md) | | 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/TransactionsImportResponseData.md: -------------------------------------------------------------------------------- 1 | # TransactionsImportResponseData 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **transaction_ids** | **list[str]** | The list of transaction ids that were imported. | 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/PayeesResponseData.md: -------------------------------------------------------------------------------- 1 | # PayeesResponseData 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **payees** | [**list[Payee]**](Payee.md) | | 7 | **server_knowledge** | **int** | The knowledge of the server | 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/ScheduledTransactionsResponse.md: -------------------------------------------------------------------------------- 1 | # ScheduledTransactionsResponse 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **data** | [**ScheduledTransactionsResponseData**](ScheduledTransactionsResponseData.md) | | 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/BudgetSettings.md: -------------------------------------------------------------------------------- 1 | # BudgetSettings 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **date_format** | [**DateFormat**](DateFormat.md) | | 7 | **currency_format** | [**CurrencyFormat**](CurrencyFormat.md) | | 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/AccountsResponseData.md: -------------------------------------------------------------------------------- 1 | # AccountsResponseData 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **accounts** | [**list[Account]**](Account.md) | | 7 | **server_knowledge** | **int** | The knowledge of the server | 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/SaveCategoryResponseData.md: -------------------------------------------------------------------------------- 1 | # SaveCategoryResponseData 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **category** | [**Category**](Category.md) | | 7 | **server_knowledge** | **int** | The knowledge of the server | 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/ScheduledTransactionResponseData.md: -------------------------------------------------------------------------------- 1 | # ScheduledTransactionResponseData 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **scheduled_transaction** | [**ScheduledTransactionDetail**](ScheduledTransactionDetail.md) | | 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/DateFormat.md: -------------------------------------------------------------------------------- 1 | # DateFormat 2 | 3 | The date format setting for the budget. In some cases the format will not be available and will be specified as null. 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **format** | **str** | | 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/BudgetDetailResponseData.md: -------------------------------------------------------------------------------- 1 | # BudgetDetailResponseData 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **budget** | [**BudgetDetail**](BudgetDetail.md) | | 7 | **server_knowledge** | **int** | The knowledge of the server | 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/MonthSummariesResponseData.md: -------------------------------------------------------------------------------- 1 | # MonthSummariesResponseData 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **months** | [**list[MonthSummary]**](MonthSummary.md) | | 7 | **server_knowledge** | **int** | The knowledge of the server | 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/BudgetSummaryResponseData.md: -------------------------------------------------------------------------------- 1 | # BudgetSummaryResponseData 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **budgets** | [**list[BudgetSummary]**](BudgetSummary.md) | | 7 | **default_budget** | [**BudgetSummary**](BudgetSummary.md) | | [optional] 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/TransactionsResponseData.md: -------------------------------------------------------------------------------- 1 | # TransactionsResponseData 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **transactions** | [**list[TransactionDetail]**](TransactionDetail.md) | | 7 | **server_knowledge** | **int** | The knowledge of the server | 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/MonthDetailAllOf.md: -------------------------------------------------------------------------------- 1 | # MonthDetailAllOf 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **categories** | [**list[Category]**](Category.md) | The budget month categories. Amounts (budgeted, activity, balance, etc.) are specific to the {month} parameter specified. | 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/CategoriesResponseData.md: -------------------------------------------------------------------------------- 1 | # CategoriesResponseData 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **category_groups** | [**list[CategoryGroupWithCategories]**](CategoryGroupWithCategories.md) | | 7 | **server_knowledge** | **int** | The knowledge of the server | 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/SaveTransactionsWrapper.md: -------------------------------------------------------------------------------- 1 | # SaveTransactionsWrapper 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **transaction** | [**SaveTransaction**](SaveTransaction.md) | | [optional] 7 | **transactions** | [**list[SaveTransaction]**](SaveTransaction.md) | | [optional] 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/CategoryGroupWithCategoriesAllOf.md: -------------------------------------------------------------------------------- 1 | # CategoryGroupWithCategoriesAllOf 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **categories** | [**list[Category]**](Category.md) | Category group categories. Amounts (budgeted, activity, balance, etc.) are specific to the current budget month (UTC). | 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/ScheduledTransactionsResponseData.md: -------------------------------------------------------------------------------- 1 | # ScheduledTransactionsResponseData 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **scheduled_transactions** | [**list[ScheduledTransactionDetail]**](ScheduledTransactionDetail.md) | | 7 | **server_knowledge** | **int** | The knowledge of the server | 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/TransactionDetailAllOf.md: -------------------------------------------------------------------------------- 1 | # TransactionDetailAllOf 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **account_name** | **str** | | 7 | **payee_name** | **str** | | [optional] 8 | **category_name** | **str** | | [optional] 9 | **subtransactions** | [**list[SubTransaction]**](SubTransaction.md) | If a split transaction, the subtransactions. | 10 | 11 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/CategoryGroup.md: -------------------------------------------------------------------------------- 1 | # CategoryGroup 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **str** | | 7 | **name** | **str** | | 8 | **hidden** | **bool** | Whether or not the category group is hidden | 9 | **deleted** | **bool** | Whether or not the category group has been deleted. Deleted category groups will only be included in delta requests. | 10 | 11 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/PayeeLocation.md: -------------------------------------------------------------------------------- 1 | # PayeeLocation 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **str** | | 7 | **payee_id** | **str** | | 8 | **latitude** | **str** | | 9 | **longitude** | **str** | | 10 | **deleted** | **bool** | Whether or not the payee location has been deleted. Deleted payee locations will only be included in delta requests. | 11 | 12 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/Payee.md: -------------------------------------------------------------------------------- 1 | # Payee 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **str** | | 7 | **name** | **str** | | 8 | **transfer_account_id** | **str** | If a transfer payee, the `account_id` to which this payee transfers to | [optional] 9 | **deleted** | **bool** | Whether or not the payee has been deleted. Deleted payees will only be included in delta requests. | 10 | 11 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/ScheduledTransactionDetailAllOf.md: -------------------------------------------------------------------------------- 1 | # ScheduledTransactionDetailAllOf 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **account_name** | **str** | | 7 | **payee_name** | **str** | | [optional] 8 | **category_name** | **str** | | [optional] 9 | **subtransactions** | [**list[ScheduledSubTransaction]**](ScheduledSubTransaction.md) | If a split scheduled transaction, the subtransactions. | 10 | 11 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 12 | 13 | 14 | -------------------------------------------------------------------------------- /ynab/api/__init__.py: -------------------------------------------------------------------------------- 1 | from __future__ import absolute_import 2 | 3 | # flake8: noqa 4 | 5 | # import apis into api package 6 | from ynab.api.accounts_api import AccountsApi 7 | from ynab.api.budgets_api import BudgetsApi 8 | from ynab.api.categories_api import CategoriesApi 9 | from ynab.api.deprecated_api import DeprecatedApi 10 | from ynab.api.months_api import MonthsApi 11 | from ynab.api.payee_locations_api import PayeeLocationsApi 12 | from ynab.api.payees_api import PayeesApi 13 | from ynab.api.scheduled_transactions_api import ScheduledTransactionsApi 14 | from ynab.api.transactions_api import TransactionsApi 15 | from ynab.api.user_api import UserApi 16 | -------------------------------------------------------------------------------- /docs/BulkResponseDataBulk.md: -------------------------------------------------------------------------------- 1 | # BulkResponseDataBulk 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **transaction_ids** | **list[str]** | The list of Transaction ids that were created. | 7 | **duplicate_import_ids** | **list[str]** | If any Transactions were not created because they had an `import_id` matching a transaction already on the same account, the specified import_id(s) will be included in this list. | 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /.github/workflows/ci_test.yaml: -------------------------------------------------------------------------------- 1 | name: CI tests 2 | on: 3 | push 4 | jobs: 5 | ci_test: 6 | runs-on: ubuntu-latest 7 | strategy: 8 | matrix: 9 | python: 10 | # EOL: 12/23/2021 11 | - 3.6.x 12 | # EOL: 06/07/2023 13 | - 3.7.x 14 | # EOL: 10/2024 15 | - 3.8.x 16 | # EOL: TBD 17 | - 3.9.x 18 | steps: 19 | - uses: actions/checkout@v1.0.0 20 | - uses: actions/setup-python@v1.0.1 21 | with: 22 | python-version: ${{ matrix.python }} 23 | architecture: 'x64' 24 | - run: | 25 | pip install -r requirements.txt 26 | pip install -r test-requirements.txt 27 | python -m pytest test/ 28 | -------------------------------------------------------------------------------- /docs/CurrencyFormat.md: -------------------------------------------------------------------------------- 1 | # CurrencyFormat 2 | 3 | The currency format setting for the budget. In some cases the format will not be available and will be specified as null. 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **iso_code** | **str** | | 8 | **example_format** | **str** | | 9 | **decimal_digits** | **int** | | 10 | **decimal_separator** | **str** | | 11 | **symbol_first** | **bool** | | 12 | **group_separator** | **str** | | 13 | **currency_symbol** | **str** | | 14 | **display_symbol** | **bool** | | 15 | 16 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 17 | 18 | 19 | -------------------------------------------------------------------------------- /docs/HybridTransactionAllOf.md: -------------------------------------------------------------------------------- 1 | # HybridTransactionAllOf 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **type** | **str** | Whether the hybrid transaction represents a regular transaction or a subtransaction | 7 | **parent_transaction_id** | **str** | For subtransaction types, this is the id of the parent transaction. For transaction types, this id will be always be null. | [optional] 8 | **account_name** | **str** | | 9 | **payee_name** | **str** | | [optional] 10 | **category_name** | **str** | | [optional] 11 | 12 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/CategoryGroupWithCategories.md: -------------------------------------------------------------------------------- 1 | # CategoryGroupWithCategories 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **str** | | 7 | **name** | **str** | | 8 | **hidden** | **bool** | Whether or not the category group is hidden | 9 | **deleted** | **bool** | Whether or not the category group has been deleted. Deleted category groups will only be included in delta requests. | 10 | **categories** | [**list[Category]**](Category.md) | Category group categories. Amounts (budgeted, activity, balance, etc.) are specific to the current budget month (UTC). | 11 | 12 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/ScheduledSubTransaction.md: -------------------------------------------------------------------------------- 1 | # ScheduledSubTransaction 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **str** | | 7 | **scheduled_transaction_id** | **str** | | 8 | **amount** | **int** | The scheduled subtransaction amount in milliunits format | 9 | **memo** | **str** | | [optional] 10 | **payee_id** | **str** | | [optional] 11 | **category_id** | **str** | | [optional] 12 | **transfer_account_id** | **str** | If a transfer, the account_id which the scheduled subtransaction transfers to | [optional] 13 | **deleted** | **bool** | Whether or not the scheduled subtransaction has been deleted. Deleted scheduled subtransactions will only be included in delta requests. | 14 | 15 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 16 | 17 | 18 | -------------------------------------------------------------------------------- /docs/SaveTransactionsResponseData.md: -------------------------------------------------------------------------------- 1 | # SaveTransactionsResponseData 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **transaction_ids** | **list[str]** | The transaction ids that were saved | 7 | **transaction** | [**TransactionDetail**](TransactionDetail.md) | | [optional] 8 | **transactions** | [**list[TransactionDetail]**](TransactionDetail.md) | If multiple transactions were specified, the transactions that were saved | [optional] 9 | **duplicate_import_ids** | **list[str]** | If multiple transactions were specified, a list of import_ids that were not created because of an existing `import_id` found on the same account | [optional] 10 | **server_knowledge** | **int** | The knowledge of the server | 11 | 12 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/SubTransaction.md: -------------------------------------------------------------------------------- 1 | # SubTransaction 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **str** | | 7 | **transaction_id** | **str** | | 8 | **amount** | **int** | The subtransaction amount in milliunits format | 9 | **memo** | **str** | | [optional] 10 | **payee_id** | **str** | | [optional] 11 | **payee_name** | **str** | | [optional] 12 | **category_id** | **str** | | [optional] 13 | **category_name** | **str** | | [optional] 14 | **transfer_account_id** | **str** | If a transfer, the account_id which the subtransaction transfers to | [optional] 15 | **deleted** | **bool** | Whether or not the subtransaction has been deleted. Deleted subtransactions will only be included in delta requests. | 16 | 17 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 18 | 19 | 20 | -------------------------------------------------------------------------------- /docs/BudgetSummary.md: -------------------------------------------------------------------------------- 1 | # BudgetSummary 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **str** | | 7 | **name** | **str** | | 8 | **last_modified_on** | **datetime** | The last time any changes were made to the budget from either a web or mobile client | [optional] 9 | **first_month** | **date** | The earliest budget month | [optional] 10 | **last_month** | **date** | The latest budget month | [optional] 11 | **date_format** | [**DateFormat**](DateFormat.md) | | [optional] 12 | **currency_format** | [**CurrencyFormat**](CurrencyFormat.md) | | [optional] 13 | **accounts** | [**list[Account]**](Account.md) | The budget accounts (only included if `include_accounts=true` specified as query parameter) | [optional] 14 | 15 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 16 | 17 | 18 | -------------------------------------------------------------------------------- /docs/MonthSummary.md: -------------------------------------------------------------------------------- 1 | # MonthSummary 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **month** | **date** | | 7 | **note** | **str** | | [optional] 8 | **income** | **int** | The total amount of transactions categorized to 'Inflow: To be Budgeted' in the month | 9 | **budgeted** | **int** | The total amount budgeted in the month | 10 | **activity** | **int** | The total amount of transactions in the month, excluding those categorized to 'Inflow: To be Budgeted' | 11 | **to_be_budgeted** | **int** | The available amount for 'To be Budgeted' | 12 | **age_of_money** | **int** | The Age of Money as of the month | [optional] 13 | **deleted** | **bool** | Whether or not the month has been deleted. Deleted months will only be included in delta requests. | 14 | 15 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 16 | 17 | 18 | -------------------------------------------------------------------------------- /docs/SaveSubTransaction.md: -------------------------------------------------------------------------------- 1 | # SaveSubTransaction 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **amount** | **int** | The subtransaction amount in milliunits format. | 7 | **payee_id** | **str** | The payee for the subtransaction. | [optional] 8 | **payee_name** | **str** | The payee name. If a `payee_name` value is provided and `payee_id` has a null value, the `payee_name` value will be used to resolve the payee by either (1) a matching payee rename rule (only if import_id is also specified on parent transaction) or (2) a payee with the same name or (3) creation of a new payee. | [optional] 9 | **category_id** | **str** | The category for the subtransaction. Credit Card Payment categories are not permitted and will be ignored if supplied. | [optional] 10 | **memo** | **str** | | [optional] 11 | 12 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 13 | 14 | 15 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Byte-compiled / optimized / DLL files 2 | __pycache__/ 3 | *.py[cod] 4 | *$py.class 5 | 6 | # C extensions 7 | *.so 8 | 9 | # Distribution / packaging 10 | .Python 11 | env/ 12 | build/ 13 | develop-eggs/ 14 | dist/ 15 | downloads/ 16 | eggs/ 17 | .eggs/ 18 | lib/ 19 | lib64/ 20 | parts/ 21 | sdist/ 22 | var/ 23 | *.egg-info/ 24 | .installed.cfg 25 | *.egg 26 | 27 | # PyInstaller 28 | # Usually these files are written by a python script from a template 29 | # before PyInstaller builds the exe, so as to inject date/other infos into it. 30 | *.manifest 31 | *.spec 32 | 33 | # Installer logs 34 | pip-log.txt 35 | pip-delete-this-directory.txt 36 | 37 | # Unit test / coverage reports 38 | htmlcov/ 39 | .tox/ 40 | .coverage 41 | .coverage.* 42 | .cache 43 | nosetests.xml 44 | coverage.xml 45 | *,cover 46 | .hypothesis/ 47 | venv/ 48 | .python-version 49 | 50 | # Translations 51 | *.mo 52 | *.pot 53 | 54 | # Django stuff: 55 | *.log 56 | 57 | # Sphinx documentation 58 | docs/_build/ 59 | 60 | # PyBuilder 61 | target/ 62 | 63 | #Ipython Notebook 64 | .ipynb_checkpoints 65 | .vscode/ 66 | 67 | .mypy_cache/ 68 | -------------------------------------------------------------------------------- /test/test_user_api.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.api.user_api import UserApi # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestUserApi(unittest.TestCase): 23 | """UserApi unit test stubs""" 24 | 25 | def setUp(self): 26 | self.api = ynab.api.user_api.UserApi() # noqa: E501 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def test_get_user(self): 32 | """Test case for get_user 33 | 34 | User info # noqa: E501 35 | """ 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_user.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.user import User # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestUser(unittest.TestCase): 23 | """User unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testUser(self): 32 | """Test User""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.user.User() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_payee.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.payee import Payee # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestPayee(unittest.TestCase): 23 | """Payee unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testPayee(self): 32 | """Test Payee""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.payee.Payee() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_account.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.account import Account # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestAccount(unittest.TestCase): 23 | """Account unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testAccount(self): 32 | """Test Account""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.account.Account() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_category.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.category import Category # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestCategory(unittest.TestCase): 23 | """Category unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testCategory(self): 32 | """Test Category""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.category.Category() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /docs/BudgetDetailAllOf.md: -------------------------------------------------------------------------------- 1 | # BudgetDetailAllOf 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **accounts** | [**list[Account]**](Account.md) | | [optional] 7 | **payees** | [**list[Payee]**](Payee.md) | | [optional] 8 | **payee_locations** | [**list[PayeeLocation]**](PayeeLocation.md) | | [optional] 9 | **category_groups** | [**list[CategoryGroup]**](CategoryGroup.md) | | [optional] 10 | **categories** | [**list[Category]**](Category.md) | | [optional] 11 | **months** | [**list[MonthDetail]**](MonthDetail.md) | | [optional] 12 | **transactions** | [**list[TransactionSummary]**](TransactionSummary.md) | | [optional] 13 | **subtransactions** | [**list[SubTransaction]**](SubTransaction.md) | | [optional] 14 | **scheduled_transactions** | [**list[ScheduledTransactionSummary]**](ScheduledTransactionSummary.md) | | [optional] 15 | **scheduled_subtransactions** | [**list[ScheduledSubTransaction]**](ScheduledSubTransaction.md) | | [optional] 16 | 17 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 18 | 19 | 20 | -------------------------------------------------------------------------------- /test/test_date_format.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.date_format import DateFormat # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestDateFormat(unittest.TestCase): 23 | """DateFormat unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testDateFormat(self): 32 | """Test DateFormat""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.date_format.DateFormat() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /docs/MonthDetail.md: -------------------------------------------------------------------------------- 1 | # MonthDetail 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **month** | **date** | | 7 | **note** | **str** | | [optional] 8 | **income** | **int** | The total amount of transactions categorized to 'Inflow: To be Budgeted' in the month | 9 | **budgeted** | **int** | The total amount budgeted in the month | 10 | **activity** | **int** | The total amount of transactions in the month, excluding those categorized to 'Inflow: To be Budgeted' | 11 | **to_be_budgeted** | **int** | The available amount for 'To be Budgeted' | 12 | **age_of_money** | **int** | The Age of Money as of the month | [optional] 13 | **deleted** | **bool** | Whether or not the month has been deleted. Deleted months will only be included in delta requests. | 14 | **categories** | [**list[Category]**](Category.md) | The budget month categories. Amounts (budgeted, activity, balance, etc.) are specific to the {month} parameter specified. | 15 | 16 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 17 | 18 | 19 | -------------------------------------------------------------------------------- /test/test_error_detail.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.error_detail import ErrorDetail # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestErrorDetail(unittest.TestCase): 23 | """ErrorDetail unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testErrorDetail(self): 32 | """Test ErrorDetail""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.error_detail.ErrorDetail() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_month_detail.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.month_detail import MonthDetail # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestMonthDetail(unittest.TestCase): 23 | """MonthDetail unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testMonthDetail(self): 32 | """Test MonthDetail""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.month_detail.MonthDetail() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_budget_detail.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.budget_detail import BudgetDetail # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestBudgetDetail(unittest.TestCase): 23 | """BudgetDetail unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testBudgetDetail(self): 32 | """Test BudgetDetail""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.budget_detail.BudgetDetail() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_bulk_response.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.bulk_response import BulkResponse # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestBulkResponse(unittest.TestCase): 23 | """BulkResponse unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testBulkResponse(self): 32 | """Test BulkResponse""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.bulk_response.BulkResponse() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_month_summary.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.month_summary import MonthSummary # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestMonthSummary(unittest.TestCase): 23 | """MonthSummary unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testMonthSummary(self): 32 | """Test MonthSummary""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.month_summary.MonthSummary() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_user_response.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.user_response import UserResponse # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestUserResponse(unittest.TestCase): 23 | """UserResponse unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testUserResponse(self): 32 | """Test UserResponse""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.user_response.UserResponse() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /docs/ScheduledTransactionSummary.md: -------------------------------------------------------------------------------- 1 | # ScheduledTransactionSummary 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **str** | | 7 | **date_first** | **date** | The first date for which the Scheduled Transaction was scheduled. | 8 | **date_next** | **date** | The next date for which the Scheduled Transaction is scheduled. | 9 | **frequency** | **str** | | 10 | **amount** | **int** | The scheduled transaction amount in milliunits format | 11 | **memo** | **str** | | [optional] 12 | **flag_color** | **str** | The scheduled transaction flag | [optional] 13 | **account_id** | **str** | | 14 | **payee_id** | **str** | | [optional] 15 | **category_id** | **str** | | [optional] 16 | **transfer_account_id** | **str** | If a transfer, the account_id which the scheduled transaction transfers to | [optional] 17 | **deleted** | **bool** | Whether or not the scheduled transaction has been deleted. Deleted scheduled transactions will only be included in delta requests. | 18 | 19 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 20 | 21 | 22 | -------------------------------------------------------------------------------- /test/test_deprecated_api.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.api.deprecated_api import DeprecatedApi # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestDeprecatedApi(unittest.TestCase): 23 | """DeprecatedApi unit test stubs""" 24 | 25 | def setUp(self): 26 | self.api = ynab.api.deprecated_api.DeprecatedApi() # noqa: E501 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def test_bulk_create_transactions(self): 32 | """Test case for bulk_create_transactions 33 | 34 | Bulk create transactions # noqa: E501 35 | """ 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_budget_summary.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.budget_summary import BudgetSummary # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestBudgetSummary(unittest.TestCase): 23 | """BudgetSummary unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testBudgetSummary(self): 32 | """Test BudgetSummary""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.budget_summary.BudgetSummary() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_category_group.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.category_group import CategoryGroup # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestCategoryGroup(unittest.TestCase): 23 | """CategoryGroup unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testCategoryGroup(self): 32 | """Test CategoryGroup""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.category_group.CategoryGroup() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_error_response.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.error_response import ErrorResponse # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestErrorResponse(unittest.TestCase): 23 | """ErrorResponse unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testErrorResponse(self): 32 | """Test ErrorResponse""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.error_response.ErrorResponse() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_payee_location.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.payee_location import PayeeLocation # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestPayeeLocation(unittest.TestCase): 23 | """PayeeLocation unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testPayeeLocation(self): 32 | """Test PayeeLocation""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.payee_location.PayeeLocation() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_payee_response.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.payee_response import PayeeResponse # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestPayeeResponse(unittest.TestCase): 23 | """PayeeResponse unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testPayeeResponse(self): 32 | """Test PayeeResponse""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.payee_response.PayeeResponse() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_budget_settings.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.budget_settings import BudgetSettings # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestBudgetSettings(unittest.TestCase): 23 | """BudgetSettings unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testBudgetSettings(self): 32 | """Test BudgetSettings""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.budget_settings.BudgetSettings() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_currency_format.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.currency_format import CurrencyFormat # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestCurrencyFormat(unittest.TestCase): 23 | """CurrencyFormat unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testCurrencyFormat(self): 32 | """Test CurrencyFormat""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.currency_format.CurrencyFormat() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_payees_response.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.payees_response import PayeesResponse # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestPayeesResponse(unittest.TestCase): 23 | """PayeesResponse unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testPayeesResponse(self): 32 | """Test PayeesResponse""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.payees_response.PayeesResponse() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_sub_transaction.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.sub_transaction import SubTransaction # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestSubTransaction(unittest.TestCase): 23 | """SubTransaction unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testSubTransaction(self): 32 | """Test SubTransaction""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.sub_transaction.SubTransaction() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_account_response.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.account_response import AccountResponse # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestAccountResponse(unittest.TestCase): 23 | """AccountResponse unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testAccountResponse(self): 32 | """Test AccountResponse""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.account_response.AccountResponse() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_save_transaction.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.save_transaction import SaveTransaction # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestSaveTransaction(unittest.TestCase): 23 | """SaveTransaction unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testSaveTransaction(self): 32 | """Test SaveTransaction""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.save_transaction.SaveTransaction() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_accounts_response.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.accounts_response import AccountsResponse # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestAccountsResponse(unittest.TestCase): 23 | """AccountsResponse unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testAccountsResponse(self): 32 | """Test AccountsResponse""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.accounts_response.AccountsResponse() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_bulk_transactions.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.bulk_transactions import BulkTransactions # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestBulkTransactions(unittest.TestCase): 23 | """BulkTransactions unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testBulkTransactions(self): 32 | """Test BulkTransactions""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.bulk_transactions.BulkTransactions() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_category_response.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.category_response import CategoryResponse # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestCategoryResponse(unittest.TestCase): 23 | """CategoryResponse unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testCategoryResponse(self): 32 | """Test CategoryResponse""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.category_response.CategoryResponse() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /docs/Account.md: -------------------------------------------------------------------------------- 1 | # Account 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **str** | | 7 | **name** | **str** | | 8 | **type** | **str** | The type of account. Note: payPal, merchantAccount, investmentAccount, and mortgage types have been deprecated and will be removed in the future. | 9 | **on_budget** | **bool** | Whether this account is on budget or not | 10 | **closed** | **bool** | Whether this account is closed or not | 11 | **note** | **str** | | [optional] 12 | **balance** | **int** | The current balance of the account in milliunits format | 13 | **cleared_balance** | **int** | The current cleared balance of the account in milliunits format | 14 | **uncleared_balance** | **int** | The current uncleared balance of the account in milliunits format | 15 | **transfer_payee_id** | **str** | The payee id which should be used when transferring to this account | 16 | **deleted** | **bool** | Whether or not the account has been deleted. Deleted accounts will only be included in delta requests. | 17 | 18 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 19 | 20 | 21 | -------------------------------------------------------------------------------- /test/test_bulk_response_data.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.bulk_response_data import BulkResponseData # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestBulkResponseData(unittest.TestCase): 23 | """BulkResponseData unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testBulkResponseData(self): 32 | """Test BulkResponseData""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.bulk_response_data.BulkResponseData() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_month_detail_all_of.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.month_detail_all_of import MonthDetailAllOf # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestMonthDetailAllOf(unittest.TestCase): 23 | """MonthDetailAllOf unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testMonthDetailAllOf(self): 32 | """Test MonthDetailAllOf""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.month_detail_all_of.MonthDetailAllOf() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_user_response_data.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.user_response_data import UserResponseData # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestUserResponseData(unittest.TestCase): 23 | """UserResponseData unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testUserResponseData(self): 32 | """Test UserResponseData""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.user_response_data.UserResponseData() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_hybrid_transaction.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.hybrid_transaction import HybridTransaction # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestHybridTransaction(unittest.TestCase): 23 | """HybridTransaction unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testHybridTransaction(self): 32 | """Test HybridTransaction""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.hybrid_transaction.HybridTransaction() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_transaction_detail.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.transaction_detail import TransactionDetail # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestTransactionDetail(unittest.TestCase): 23 | """TransactionDetail unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testTransactionDetail(self): 32 | """Test TransactionDetail""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.transaction_detail.TransactionDetail() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_update_transaction.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.update_transaction import UpdateTransaction # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestUpdateTransaction(unittest.TestCase): 23 | """UpdateTransaction unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testUpdateTransaction(self): 32 | """Test UpdateTransaction""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.update_transaction.UpdateTransaction() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_budget_detail_all_of.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.budget_detail_all_of import BudgetDetailAllOf # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestBudgetDetailAllOf(unittest.TestCase): 23 | """BudgetDetailAllOf unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testBudgetDetailAllOf(self): 32 | """Test BudgetDetailAllOf""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.budget_detail_all_of.BudgetDetailAllOf() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_payee_response_data.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.payee_response_data import PayeeResponseData # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestPayeeResponseData(unittest.TestCase): 23 | """PayeeResponseData unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testPayeeResponseData(self): 32 | """Test PayeeResponseData""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.payee_response_data.PayeeResponseData() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_save_month_category.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.save_month_category import SaveMonthCategory # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestSaveMonthCategory(unittest.TestCase): 23 | """SaveMonthCategory unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testSaveMonthCategory(self): 32 | """Test SaveMonthCategory""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.save_month_category.SaveMonthCategory() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_categories_response.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.categories_response import CategoriesResponse # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestCategoriesResponse(unittest.TestCase): 23 | """CategoriesResponse unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testCategoriesResponse(self): 32 | """Test CategoriesResponse""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.categories_response.CategoriesResponse() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_payees_response_data.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.payees_response_data import PayeesResponseData # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestPayeesResponseData(unittest.TestCase): 23 | """PayeesResponseData unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testPayeesResponseData(self): 32 | """Test PayeesResponseData""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.payees_response_data.PayeesResponseData() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_save_sub_transaction.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.save_sub_transaction import SaveSubTransaction # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestSaveSubTransaction(unittest.TestCase): 23 | """SaveSubTransaction unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testSaveSubTransaction(self): 32 | """Test SaveSubTransaction""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.save_sub_transaction.SaveSubTransaction() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_transaction_summary.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.transaction_summary import TransactionSummary # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestTransactionSummary(unittest.TestCase): 23 | """TransactionSummary unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testTransactionSummary(self): 32 | """Test TransactionSummary""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.transaction_summary.TransactionSummary() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_account_response_data.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.account_response_data import AccountResponseData # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestAccountResponseData(unittest.TestCase): 23 | """AccountResponseData unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testAccountResponseData(self): 32 | """Test AccountResponseData""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.account_response_data.AccountResponseData() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_month_detail_response.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.month_detail_response import MonthDetailResponse # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestMonthDetailResponse(unittest.TestCase): 23 | """MonthDetailResponse unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testMonthDetailResponse(self): 32 | """Test MonthDetailResponse""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.month_detail_response.MonthDetailResponse() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_transaction_response.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.transaction_response import TransactionResponse # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestTransactionResponse(unittest.TestCase): 23 | """TransactionResponse unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testTransactionResponse(self): 32 | """Test TransactionResponse""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.transaction_response.TransactionResponse() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_transactions_response.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.transactions_response import TransactionsResponse # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestTransactionsResponse(unittest.TestCase): 23 | """TransactionsResponse unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testTransactionsResponse(self): 32 | """Test TransactionsResponse""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.transactions_response.TransactionsResponse() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_accounts_response_data.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.accounts_response_data import AccountsResponseData # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestAccountsResponseData(unittest.TestCase): 23 | """AccountsResponseData unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testAccountsResponseData(self): 32 | """Test AccountsResponseData""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.accounts_response_data.AccountsResponseData() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_budget_detail_response.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.budget_detail_response import BudgetDetailResponse # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestBudgetDetailResponse(unittest.TestCase): 23 | """BudgetDetailResponse unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testBudgetDetailResponse(self): 32 | """Test BudgetDetailResponse""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.budget_detail_response.BudgetDetailResponse() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_category_response_data.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.category_response_data import CategoryResponseData # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestCategoryResponseData(unittest.TestCase): 23 | """CategoryResponseData unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testCategoryResponseData(self): 32 | """Test CategoryResponseData""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.category_response_data.CategoryResponseData() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_save_category_response.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.save_category_response import SaveCategoryResponse # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestSaveCategoryResponse(unittest.TestCase): 23 | """SaveCategoryResponse unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testSaveCategoryResponse(self): 32 | """Test SaveCategoryResponse""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.save_category_response.SaveCategoryResponse() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_bulk_response_data_bulk.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.bulk_response_data_bulk import BulkResponseDataBulk # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestBulkResponseDataBulk(unittest.TestCase): 23 | """BulkResponseDataBulk unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testBulkResponseDataBulk(self): 32 | """Test BulkResponseDataBulk""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.bulk_response_data_bulk.BulkResponseDataBulk() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_budget_summary_response.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.budget_summary_response import BudgetSummaryResponse # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestBudgetSummaryResponse(unittest.TestCase): 23 | """BudgetSummaryResponse unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testBudgetSummaryResponse(self): 32 | """Test BudgetSummaryResponse""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.budget_summary_response.BudgetSummaryResponse() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_payee_location_response.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.payee_location_response import PayeeLocationResponse # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestPayeeLocationResponse(unittest.TestCase): 23 | """PayeeLocationResponse unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testPayeeLocationResponse(self): 32 | """Test PayeeLocationResponse""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.payee_location_response.PayeeLocationResponse() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_budget_settings_response.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.budget_settings_response import BudgetSettingsResponse # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestBudgetSettingsResponse(unittest.TestCase): 23 | """BudgetSettingsResponse unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testBudgetSettingsResponse(self): 32 | """Test BudgetSettingsResponse""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.budget_settings_response.BudgetSettingsResponse() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_categories_response_data.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.categories_response_data import CategoriesResponseData # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestCategoriesResponseData(unittest.TestCase): 23 | """CategoriesResponseData unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testCategoriesResponseData(self): 32 | """Test CategoriesResponseData""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.categories_response_data.CategoriesResponseData() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_hybrid_transaction_all_of.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.hybrid_transaction_all_of import HybridTransactionAllOf # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestHybridTransactionAllOf(unittest.TestCase): 23 | """HybridTransactionAllOf unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testHybridTransactionAllOf(self): 32 | """Test HybridTransactionAllOf""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.hybrid_transaction_all_of.HybridTransactionAllOf() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_month_summaries_response.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.month_summaries_response import MonthSummariesResponse # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestMonthSummariesResponse(unittest.TestCase): 23 | """MonthSummariesResponse unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testMonthSummariesResponse(self): 32 | """Test MonthSummariesResponse""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.month_summaries_response.MonthSummariesResponse() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_payee_locations_response.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.payee_locations_response import PayeeLocationsResponse # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestPayeeLocationsResponse(unittest.TestCase): 23 | """PayeeLocationsResponse unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testPayeeLocationsResponse(self): 32 | """Test PayeeLocationsResponse""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.payee_locations_response.PayeeLocationsResponse() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_save_transaction_wrapper.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.save_transaction_wrapper import SaveTransactionWrapper # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestSaveTransactionWrapper(unittest.TestCase): 23 | """SaveTransactionWrapper unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testSaveTransactionWrapper(self): 32 | """Test SaveTransactionWrapper""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.save_transaction_wrapper.SaveTransactionWrapper() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_transaction_detail_all_of.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.transaction_detail_all_of import TransactionDetailAllOf # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestTransactionDetailAllOf(unittest.TestCase): 23 | """TransactionDetailAllOf unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testTransactionDetailAllOf(self): 32 | """Test TransactionDetailAllOf""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.transaction_detail_all_of.TransactionDetailAllOf() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_update_transaction_all_of.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.update_transaction_all_of import UpdateTransactionAllOf # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestUpdateTransactionAllOf(unittest.TestCase): 23 | """UpdateTransactionAllOf unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testUpdateTransactionAllOf(self): 32 | """Test UpdateTransactionAllOf""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.update_transaction_all_of.UpdateTransactionAllOf() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_save_transactions_wrapper.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.save_transactions_wrapper import SaveTransactionsWrapper # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestSaveTransactionsWrapper(unittest.TestCase): 23 | """SaveTransactionsWrapper unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testSaveTransactionsWrapper(self): 32 | """Test SaveTransactionsWrapper""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.save_transactions_wrapper.SaveTransactionsWrapper() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_scheduled_sub_transaction.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.scheduled_sub_transaction import ScheduledSubTransaction # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestScheduledSubTransaction(unittest.TestCase): 23 | """ScheduledSubTransaction unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testScheduledSubTransaction(self): 32 | """Test ScheduledSubTransaction""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.scheduled_sub_transaction.ScheduledSubTransaction() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_transaction_response_data.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.transaction_response_data import TransactionResponseData # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestTransactionResponseData(unittest.TestCase): 23 | """TransactionResponseData unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testTransactionResponseData(self): 32 | """Test TransactionResponseData""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.transaction_response_data.TransactionResponseData() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_month_detail_response_data.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.month_detail_response_data import MonthDetailResponseData # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestMonthDetailResponseData(unittest.TestCase): 23 | """MonthDetailResponseData unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testMonthDetailResponseData(self): 32 | """Test MonthDetailResponseData""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.month_detail_response_data.MonthDetailResponseData() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_payees_api.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.api.payees_api import PayeesApi # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestPayeesApi(unittest.TestCase): 23 | """PayeesApi unit test stubs""" 24 | 25 | def setUp(self): 26 | self.api = ynab.api.payees_api.PayeesApi() # noqa: E501 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def test_get_payee_by_id(self): 32 | """Test case for get_payee_by_id 33 | 34 | Single payee # noqa: E501 35 | """ 36 | pass 37 | 38 | def test_get_payees(self): 39 | """Test case for get_payees 40 | 41 | List payees # noqa: E501 42 | """ 43 | pass 44 | 45 | 46 | if __name__ == '__main__': 47 | unittest.main() 48 | -------------------------------------------------------------------------------- /test/test_save_transactions_response.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.save_transactions_response import SaveTransactionsResponse # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestSaveTransactionsResponse(unittest.TestCase): 23 | """SaveTransactionsResponse unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testSaveTransactionsResponse(self): 32 | """Test SaveTransactionsResponse""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.save_transactions_response.SaveTransactionsResponse() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_transactions_response_data.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.transactions_response_data import TransactionsResponseData # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestTransactionsResponseData(unittest.TestCase): 23 | """TransactionsResponseData unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testTransactionsResponseData(self): 32 | """Test TransactionsResponseData""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.transactions_response_data.TransactionsResponseData() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_budget_detail_response_data.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.budget_detail_response_data import BudgetDetailResponseData # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestBudgetDetailResponseData(unittest.TestCase): 23 | """BudgetDetailResponseData unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testBudgetDetailResponseData(self): 32 | """Test BudgetDetailResponseData""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.budget_detail_response_data.BudgetDetailResponseData() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_save_category_response_data.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.save_category_response_data import SaveCategoryResponseData # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestSaveCategoryResponseData(unittest.TestCase): 23 | """SaveCategoryResponseData unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testSaveCategoryResponseData(self): 32 | """Test SaveCategoryResponseData""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.save_category_response_data.SaveCategoryResponseData() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_save_month_category_wrapper.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.save_month_category_wrapper import SaveMonthCategoryWrapper # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestSaveMonthCategoryWrapper(unittest.TestCase): 23 | """SaveMonthCategoryWrapper unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testSaveMonthCategoryWrapper(self): 32 | """Test SaveMonthCategoryWrapper""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.save_month_category_wrapper.SaveMonthCategoryWrapper() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_update_transactions_wrapper.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.update_transactions_wrapper import UpdateTransactionsWrapper # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestUpdateTransactionsWrapper(unittest.TestCase): 23 | """UpdateTransactionsWrapper unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testUpdateTransactionsWrapper(self): 32 | """Test UpdateTransactionsWrapper""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.update_transactions_wrapper.UpdateTransactionsWrapper() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_budget_summary_response_data.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.budget_summary_response_data import BudgetSummaryResponseData # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestBudgetSummaryResponseData(unittest.TestCase): 23 | """BudgetSummaryResponseData unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testBudgetSummaryResponseData(self): 32 | """Test BudgetSummaryResponseData""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.budget_summary_response_data.BudgetSummaryResponseData() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_payee_location_response_data.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.payee_location_response_data import PayeeLocationResponseData # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestPayeeLocationResponseData(unittest.TestCase): 23 | """PayeeLocationResponseData unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testPayeeLocationResponseData(self): 32 | """Test PayeeLocationResponseData""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.payee_location_response_data.PayeeLocationResponseData() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_budget_settings_response_data.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.budget_settings_response_data import BudgetSettingsResponseData # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestBudgetSettingsResponseData(unittest.TestCase): 23 | """BudgetSettingsResponseData unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testBudgetSettingsResponseData(self): 32 | """Test BudgetSettingsResponseData""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.budget_settings_response_data.BudgetSettingsResponseData() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_hybrid_transactions_response.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.hybrid_transactions_response import HybridTransactionsResponse # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestHybridTransactionsResponse(unittest.TestCase): 23 | """HybridTransactionsResponse unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testHybridTransactionsResponse(self): 32 | """Test HybridTransactionsResponse""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.hybrid_transactions_response.HybridTransactionsResponse() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_month_summaries_response_data.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.month_summaries_response_data import MonthSummariesResponseData # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestMonthSummariesResponseData(unittest.TestCase): 23 | """MonthSummariesResponseData unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testMonthSummariesResponseData(self): 32 | """Test MonthSummariesResponseData""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.month_summaries_response_data.MonthSummariesResponseData() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_payee_locations_response_data.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.payee_locations_response_data import PayeeLocationsResponseData # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestPayeeLocationsResponseData(unittest.TestCase): 23 | """PayeeLocationsResponseData unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testPayeeLocationsResponseData(self): 32 | """Test PayeeLocationsResponseData""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.payee_locations_response_data.PayeeLocationsResponseData() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_scheduled_transaction_detail.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.scheduled_transaction_detail import ScheduledTransactionDetail # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestScheduledTransactionDetail(unittest.TestCase): 23 | """ScheduledTransactionDetail unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testScheduledTransactionDetail(self): 32 | """Test ScheduledTransactionDetail""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.scheduled_transaction_detail.ScheduledTransactionDetail() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_transactions_import_response.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.transactions_import_response import TransactionsImportResponse # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestTransactionsImportResponse(unittest.TestCase): 23 | """TransactionsImportResponse unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testTransactionsImportResponse(self): 32 | """Test TransactionsImportResponse""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.transactions_import_response.TransactionsImportResponse() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_accounts_api.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.api.accounts_api import AccountsApi # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestAccountsApi(unittest.TestCase): 23 | """AccountsApi unit test stubs""" 24 | 25 | def setUp(self): 26 | self.api = ynab.api.accounts_api.AccountsApi() # noqa: E501 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def test_get_account_by_id(self): 32 | """Test case for get_account_by_id 33 | 34 | Single account # noqa: E501 35 | """ 36 | pass 37 | 38 | def test_get_accounts(self): 39 | """Test case for get_accounts 40 | 41 | Account list # noqa: E501 42 | """ 43 | pass 44 | 45 | 46 | if __name__ == '__main__': 47 | unittest.main() 48 | -------------------------------------------------------------------------------- /test/test_category_group_with_categories.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.category_group_with_categories import CategoryGroupWithCategories # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestCategoryGroupWithCategories(unittest.TestCase): 23 | """CategoryGroupWithCategories unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testCategoryGroupWithCategories(self): 32 | """Test CategoryGroupWithCategories""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.category_group_with_categories.CategoryGroupWithCategories() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_months_api.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.api.months_api import MonthsApi # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestMonthsApi(unittest.TestCase): 23 | """MonthsApi unit test stubs""" 24 | 25 | def setUp(self): 26 | self.api = ynab.api.months_api.MonthsApi() # noqa: E501 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def test_get_budget_month(self): 32 | """Test case for get_budget_month 33 | 34 | Single budget month # noqa: E501 35 | """ 36 | pass 37 | 38 | def test_get_budget_months(self): 39 | """Test case for get_budget_months 40 | 41 | List budget months # noqa: E501 42 | """ 43 | pass 44 | 45 | 46 | if __name__ == '__main__': 47 | unittest.main() 48 | -------------------------------------------------------------------------------- /test/test_scheduled_transaction_summary.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.scheduled_transaction_summary import ScheduledTransactionSummary # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestScheduledTransactionSummary(unittest.TestCase): 23 | """ScheduledTransactionSummary unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testScheduledTransactionSummary(self): 32 | """Test ScheduledTransactionSummary""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.scheduled_transaction_summary.ScheduledTransactionSummary() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_scheduled_transaction_response.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.scheduled_transaction_response import ScheduledTransactionResponse # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestScheduledTransactionResponse(unittest.TestCase): 23 | """ScheduledTransactionResponse unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testScheduledTransactionResponse(self): 32 | """Test ScheduledTransactionResponse""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.scheduled_transaction_response.ScheduledTransactionResponse() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_save_transactions_response_data.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.save_transactions_response_data import SaveTransactionsResponseData # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestSaveTransactionsResponseData(unittest.TestCase): 23 | """SaveTransactionsResponseData unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testSaveTransactionsResponseData(self): 32 | """Test SaveTransactionsResponseData""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.save_transactions_response_data.SaveTransactionsResponseData() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_scheduled_transactions_response.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.scheduled_transactions_response import ScheduledTransactionsResponse # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestScheduledTransactionsResponse(unittest.TestCase): 23 | """ScheduledTransactionsResponse unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testScheduledTransactionsResponse(self): 32 | """Test ScheduledTransactionsResponse""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.scheduled_transactions_response.ScheduledTransactionsResponse() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_hybrid_transactions_response_data.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.hybrid_transactions_response_data import HybridTransactionsResponseData # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestHybridTransactionsResponseData(unittest.TestCase): 23 | """HybridTransactionsResponseData unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testHybridTransactionsResponseData(self): 32 | """Test HybridTransactionsResponseData""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.hybrid_transactions_response_data.HybridTransactionsResponseData() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_transactions_import_response_data.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.transactions_import_response_data import TransactionsImportResponseData # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestTransactionsImportResponseData(unittest.TestCase): 23 | """TransactionsImportResponseData unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testTransactionsImportResponseData(self): 32 | """Test TransactionsImportResponseData""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.transactions_import_response_data.TransactionsImportResponseData() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_scheduled_transaction_detail_all_of.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.scheduled_transaction_detail_all_of import ScheduledTransactionDetailAllOf # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestScheduledTransactionDetailAllOf(unittest.TestCase): 23 | """ScheduledTransactionDetailAllOf unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testScheduledTransactionDetailAllOf(self): 32 | """Test ScheduledTransactionDetailAllOf""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.scheduled_transaction_detail_all_of.ScheduledTransactionDetailAllOf() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_scheduled_transaction_response_data.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.scheduled_transaction_response_data import ScheduledTransactionResponseData # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestScheduledTransactionResponseData(unittest.TestCase): 23 | """ScheduledTransactionResponseData unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testScheduledTransactionResponseData(self): 32 | """Test ScheduledTransactionResponseData""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.scheduled_transaction_response_data.ScheduledTransactionResponseData() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_category_group_with_categories_all_of.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.category_group_with_categories_all_of import CategoryGroupWithCategoriesAllOf # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestCategoryGroupWithCategoriesAllOf(unittest.TestCase): 23 | """CategoryGroupWithCategoriesAllOf unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testCategoryGroupWithCategoriesAllOf(self): 32 | """Test CategoryGroupWithCategoriesAllOf""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.category_group_with_categories_all_of.CategoryGroupWithCategoriesAllOf() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /test/test_scheduled_transactions_response_data.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.models.scheduled_transactions_response_data import ScheduledTransactionsResponseData # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestScheduledTransactionsResponseData(unittest.TestCase): 23 | """ScheduledTransactionsResponseData unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def testScheduledTransactionsResponseData(self): 32 | """Test ScheduledTransactionsResponseData""" 33 | # FIXME: construct object with mandatory attributes with example values 34 | # model = ynab.models.scheduled_transactions_response_data.ScheduledTransactionsResponseData() # noqa: E501 35 | pass 36 | 37 | 38 | if __name__ == '__main__': 39 | unittest.main() 40 | -------------------------------------------------------------------------------- /docs/ScheduledTransactionDetail.md: -------------------------------------------------------------------------------- 1 | # ScheduledTransactionDetail 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **str** | | 7 | **date_first** | **date** | The first date for which the Scheduled Transaction was scheduled. | 8 | **date_next** | **date** | The next date for which the Scheduled Transaction is scheduled. | 9 | **frequency** | **str** | | 10 | **amount** | **int** | The scheduled transaction amount in milliunits format | 11 | **memo** | **str** | | [optional] 12 | **flag_color** | **str** | The scheduled transaction flag | [optional] 13 | **account_id** | **str** | | 14 | **payee_id** | **str** | | [optional] 15 | **category_id** | **str** | | [optional] 16 | **transfer_account_id** | **str** | If a transfer, the account_id which the scheduled transaction transfers to | [optional] 17 | **deleted** | **bool** | Whether or not the scheduled transaction has been deleted. Deleted scheduled transactions will only be included in delta requests. | 18 | **account_name** | **str** | | 19 | **payee_name** | **str** | | [optional] 20 | **category_name** | **str** | | [optional] 21 | **subtransactions** | [**list[ScheduledSubTransaction]**](ScheduledSubTransaction.md) | If a split scheduled transaction, the subtransactions. | 22 | 23 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 24 | 25 | 26 | -------------------------------------------------------------------------------- /test/test_scheduled_transactions_api.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.api.scheduled_transactions_api import ScheduledTransactionsApi # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestScheduledTransactionsApi(unittest.TestCase): 23 | """ScheduledTransactionsApi unit test stubs""" 24 | 25 | def setUp(self): 26 | self.api = ynab.api.scheduled_transactions_api.ScheduledTransactionsApi() # noqa: E501 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def test_get_scheduled_transaction_by_id(self): 32 | """Test case for get_scheduled_transaction_by_id 33 | 34 | Single scheduled transaction # noqa: E501 35 | """ 36 | pass 37 | 38 | def test_get_scheduled_transactions(self): 39 | """Test case for get_scheduled_transactions 40 | 41 | List scheduled transactions # noqa: E501 42 | """ 43 | pass 44 | 45 | 46 | if __name__ == '__main__': 47 | unittest.main() 48 | -------------------------------------------------------------------------------- /test/test_budgets_api.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.api.budgets_api import BudgetsApi # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestBudgetsApi(unittest.TestCase): 23 | """BudgetsApi unit test stubs""" 24 | 25 | def setUp(self): 26 | self.api = ynab.api.budgets_api.BudgetsApi() # noqa: E501 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def test_get_budget_by_id(self): 32 | """Test case for get_budget_by_id 33 | 34 | Single budget # noqa: E501 35 | """ 36 | pass 37 | 38 | def test_get_budget_settings_by_id(self): 39 | """Test case for get_budget_settings_by_id 40 | 41 | Budget Settings # noqa: E501 42 | """ 43 | pass 44 | 45 | def test_get_budgets(self): 46 | """Test case for get_budgets 47 | 48 | List budgets # noqa: E501 49 | """ 50 | pass 51 | 52 | 53 | if __name__ == '__main__': 54 | unittest.main() 55 | -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from setuptools import setup, find_packages # noqa: H301 14 | 15 | NAME = "ynab" 16 | VERSION = "0.0.3" 17 | # To install the library, run the following 18 | # 19 | # python setup.py install 20 | # 21 | # prerequisite: setuptools 22 | # http://pypi.python.org/pypi/setuptools 23 | 24 | REQUIRES = ["urllib3 >= 1.15", "six >= 1.10", "certifi", "python-dateutil"] 25 | 26 | setup( 27 | name=NAME, 28 | version=VERSION, 29 | description="YNAB API Endpoints", 30 | author="OpenAPI Generator community", 31 | author_email="team@openapitools.org", 32 | url="https://github.com/davidhao3300/ynab-python", 33 | keywords=["OpenAPI", "OpenAPI-Generator", "YNAB API Endpoints"], 34 | install_requires=REQUIRES, 35 | packages=find_packages(exclude=["test", "tests"]), 36 | include_package_data=True, 37 | long_description="""\ 38 | 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.youneedabudget.com # noqa: E501 39 | """ 40 | ) 41 | -------------------------------------------------------------------------------- /test/test_payee_locations_api.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.api.payee_locations_api import PayeeLocationsApi # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestPayeeLocationsApi(unittest.TestCase): 23 | """PayeeLocationsApi unit test stubs""" 24 | 25 | def setUp(self): 26 | self.api = ynab.api.payee_locations_api.PayeeLocationsApi() # noqa: E501 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def test_get_payee_location_by_id(self): 32 | """Test case for get_payee_location_by_id 33 | 34 | Single payee location # noqa: E501 35 | """ 36 | pass 37 | 38 | def test_get_payee_locations(self): 39 | """Test case for get_payee_locations 40 | 41 | List payee locations # noqa: E501 42 | """ 43 | pass 44 | 45 | def test_get_payee_locations_by_payee(self): 46 | """Test case for get_payee_locations_by_payee 47 | 48 | List locations for a payee # noqa: E501 49 | """ 50 | pass 51 | 52 | 53 | if __name__ == '__main__': 54 | unittest.main() 55 | -------------------------------------------------------------------------------- /docs/BudgetDetail.md: -------------------------------------------------------------------------------- 1 | # BudgetDetail 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **str** | | 7 | **name** | **str** | | 8 | **last_modified_on** | **datetime** | The last time any changes were made to the budget from either a web or mobile client | [optional] 9 | **first_month** | **date** | The earliest budget month | [optional] 10 | **last_month** | **date** | The latest budget month | [optional] 11 | **date_format** | [**DateFormat**](DateFormat.md) | | [optional] 12 | **currency_format** | [**CurrencyFormat**](CurrencyFormat.md) | | [optional] 13 | **accounts** | [**list[Account]**](Account.md) | | [optional] 14 | **payees** | [**list[Payee]**](Payee.md) | | [optional] 15 | **payee_locations** | [**list[PayeeLocation]**](PayeeLocation.md) | | [optional] 16 | **category_groups** | [**list[CategoryGroup]**](CategoryGroup.md) | | [optional] 17 | **categories** | [**list[Category]**](Category.md) | | [optional] 18 | **months** | [**list[MonthDetail]**](MonthDetail.md) | | [optional] 19 | **transactions** | [**list[TransactionSummary]**](TransactionSummary.md) | | [optional] 20 | **subtransactions** | [**list[SubTransaction]**](SubTransaction.md) | | [optional] 21 | **scheduled_transactions** | [**list[ScheduledTransactionSummary]**](ScheduledTransactionSummary.md) | | [optional] 22 | **scheduled_subtransactions** | [**list[ScheduledSubTransaction]**](ScheduledSubTransaction.md) | | [optional] 23 | 24 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 25 | 26 | 27 | -------------------------------------------------------------------------------- /docs/Category.md: -------------------------------------------------------------------------------- 1 | # Category 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **str** | | 7 | **category_group_id** | **str** | | 8 | **name** | **str** | | 9 | **hidden** | **bool** | Whether or not the category is hidden | 10 | **original_category_group_id** | **str** | If category is hidden this is the id of the category group it originally belonged to before it was hidden. | [optional] 11 | **note** | **str** | | [optional] 12 | **budgeted** | **int** | Budgeted amount in milliunits format | 13 | **activity** | **int** | Activity amount in milliunits format | 14 | **balance** | **int** | Balance in milliunits format | 15 | **goal_type** | **str** | The type of goal, if the category has a goal (TB='Target Category Balance', TBD='Target Category Balance by Date', MF='Monthly Funding', NEED='Plan Your Spending') | [optional] 16 | **goal_creation_month** | **date** | The month a goal was created | [optional] 17 | **goal_target** | **int** | The goal target amount in milliunits | [optional] 18 | **goal_target_month** | **date** | The target month for the goal to be completed. Only some goal types specify this date. | [optional] 19 | **goal_percentage_complete** | **int** | The percentage completion of the goal | [optional] 20 | **deleted** | **bool** | Whether or not the category has been deleted. Deleted categories will only be included in delta requests. | 21 | 22 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 23 | 24 | 25 | -------------------------------------------------------------------------------- /test/test_categories_api.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.api.categories_api import CategoriesApi # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestCategoriesApi(unittest.TestCase): 23 | """CategoriesApi unit test stubs""" 24 | 25 | def setUp(self): 26 | self.api = ynab.api.categories_api.CategoriesApi() # noqa: E501 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def test_get_categories(self): 32 | """Test case for get_categories 33 | 34 | List categories # noqa: E501 35 | """ 36 | pass 37 | 38 | def test_get_category_by_id(self): 39 | """Test case for get_category_by_id 40 | 41 | Single category # noqa: E501 42 | """ 43 | pass 44 | 45 | def test_get_month_category_by_id(self): 46 | """Test case for get_month_category_by_id 47 | 48 | Single category for a specific budget month # noqa: E501 49 | """ 50 | pass 51 | 52 | def test_update_month_category(self): 53 | """Test case for update_month_category 54 | 55 | Update a category for a specific month # noqa: E501 56 | """ 57 | pass 58 | 59 | 60 | if __name__ == '__main__': 61 | unittest.main() 62 | -------------------------------------------------------------------------------- /.github/workflows/update_spec.yaml: -------------------------------------------------------------------------------- 1 | name: Update spec JSON 2 | on: 3 | schedule: 4 | - cron: '0 9 * * *' 5 | jobs: 6 | update_spec: 7 | runs-on: ubuntu-latest 8 | steps: 9 | - uses: actions/checkout@v1.0.0 10 | - name: Update OpenAPI JSON 11 | run: | 12 | curl https://api.youneedabudget.com/papi/spec-v1-swagger.json > spec-v1-swagger.json 13 | # Not using setup-java action b/c we really don't care what java version, just that it's new 14 | # If it ever turns out openapi generator isn't compatible with the newest java, we can 15 | # switch to using the action. 16 | - name: Install required packages 17 | run: | 18 | sudo apt update 19 | sudo apt install -y default-jdk-headless wget 20 | - name: Install and run OpenApi generator 21 | run: | 22 | mkdir -p ~/bin/openapitools 23 | curl https://raw.githubusercontent.com/OpenAPITools/openapi-generator/master/bin/utils/openapi-generator-cli.sh > ~/bin/openapitools/openapi-generator-cli 24 | chmod u+x ~/bin/openapitools/openapi-generator-cli 25 | export PATH=$PATH:~/bin/openapitools/ 26 | rm -rf docs test ynab 27 | OPENAPI_GENERATOR_VERSION=4.2.2 openapi-generator-cli generate -g python -i spec-v1-swagger.json -c openapi.yaml 28 | - name: Open Pull Request 29 | uses: peter-evans/create-pull-request@v1.5.0 30 | env: 31 | COMMIT_MESSAGE: "[Automated] Update openapi-generator-cli and swagger spec" 32 | PULL_REQUEST_TITLE: "[Automated] Update openapi-generator-cli and swagger spec" 33 | PULL_REQUEST_LABELS: "automated" 34 | PULL_REQUEST_REVIEWERS: "davidhao3300" 35 | # TODO: Supply a different github token so that the PR will trigger future github actions. 36 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 37 | BRANCH_SUFFIX: none 38 | PULL_REQUEST_BRANCH: automated/openapi-spec-update 39 | -------------------------------------------------------------------------------- /docs/TransactionSummary.md: -------------------------------------------------------------------------------- 1 | # TransactionSummary 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **str** | | 7 | **date** | **date** | The transaction date in ISO format (e.g. 2016-12-01) | 8 | **amount** | **int** | The transaction amount in milliunits format | 9 | **memo** | **str** | | [optional] 10 | **cleared** | **str** | The cleared status of the transaction | 11 | **approved** | **bool** | Whether or not the transaction is approved | 12 | **flag_color** | **str** | The transaction flag | [optional] 13 | **account_id** | **str** | | 14 | **payee_id** | **str** | | [optional] 15 | **category_id** | **str** | | [optional] 16 | **transfer_account_id** | **str** | If a transfer transaction, the account to which it transfers | [optional] 17 | **transfer_transaction_id** | **str** | If a transfer transaction, the id of transaction on the other side of the transfer | [optional] 18 | **matched_transaction_id** | **str** | If transaction is matched, the id of the matched transaction | [optional] 19 | **import_id** | **str** | If the Transaction was imported, this field is a unique (by account) import identifier. If this transaction was imported through File Based Import or Direct Import and not through the API, the import_id will have the format: 'YNAB:[milliunit_amount]:[iso_date]:[occurrence]'. For example, a transaction dated 2015-12-30 in the amount of -$294.23 USD would have an import_id of 'YNAB:-294230:2015-12-30:1'. If a second transaction on the same account was imported and had the same date and same amount, its import_id would be 'YNAB:-294230:2015-12-30:2'. | [optional] 20 | **deleted** | **bool** | Whether or not the transaction has been deleted. Deleted transactions will only be included in delta requests. | 21 | 22 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 23 | 24 | 25 | -------------------------------------------------------------------------------- /docs/UserApi.md: -------------------------------------------------------------------------------- 1 | # ynab.UserApi 2 | 3 | All URIs are relative to *https://api.youneedabudget.com/v1* 4 | 5 | Method | HTTP request | Description 6 | ------------- | ------------- | ------------- 7 | [**get_user**](UserApi.md#get_user) | **GET** /user | User info 8 | 9 | 10 | # **get_user** 11 | > UserResponse get_user() 12 | 13 | User info 14 | 15 | Returns authenticated user information 16 | 17 | ### Example 18 | 19 | * Api Key Authentication (bearer): 20 | ```python 21 | from __future__ import print_function 22 | import time 23 | import ynab 24 | from ynab.rest import ApiException 25 | from pprint import pprint 26 | configuration = ynab.Configuration() 27 | # Configure API key authorization: bearer 28 | configuration.api_key['Authorization'] = 'YOUR_API_KEY' 29 | # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed 30 | # configuration.api_key_prefix['Authorization'] = 'Bearer' 31 | 32 | # Defining host is optional and default to https://api.youneedabudget.com/v1 33 | configuration.host = "https://api.youneedabudget.com/v1" 34 | # Create an instance of the API class 35 | api_instance = ynab.UserApi(ynab.ApiClient(configuration)) 36 | 37 | try: 38 | # User info 39 | api_response = api_instance.get_user() 40 | pprint(api_response) 41 | except ApiException as e: 42 | print("Exception when calling UserApi->get_user: %s\n" % e) 43 | ``` 44 | 45 | ### Parameters 46 | This endpoint does not need any parameter. 47 | 48 | ### Return type 49 | 50 | [**UserResponse**](UserResponse.md) 51 | 52 | ### Authorization 53 | 54 | [bearer](../README.md#bearer) 55 | 56 | ### HTTP request headers 57 | 58 | - **Content-Type**: Not defined 59 | - **Accept**: application/json 60 | 61 | ### HTTP response details 62 | | Status code | Description | Response headers | 63 | |-------------|-------------|------------------| 64 | **200** | The user info | - | 65 | **0** | An error occurred | - | 66 | 67 | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 68 | 69 | -------------------------------------------------------------------------------- /docs/TransactionDetail.md: -------------------------------------------------------------------------------- 1 | # TransactionDetail 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **str** | | 7 | **date** | **date** | The transaction date in ISO format (e.g. 2016-12-01) | 8 | **amount** | **int** | The transaction amount in milliunits format | 9 | **memo** | **str** | | [optional] 10 | **cleared** | **str** | The cleared status of the transaction | 11 | **approved** | **bool** | Whether or not the transaction is approved | 12 | **flag_color** | **str** | The transaction flag | [optional] 13 | **account_id** | **str** | | 14 | **payee_id** | **str** | | [optional] 15 | **category_id** | **str** | | [optional] 16 | **transfer_account_id** | **str** | If a transfer transaction, the account to which it transfers | [optional] 17 | **transfer_transaction_id** | **str** | If a transfer transaction, the id of transaction on the other side of the transfer | [optional] 18 | **matched_transaction_id** | **str** | If transaction is matched, the id of the matched transaction | [optional] 19 | **import_id** | **str** | If the Transaction was imported, this field is a unique (by account) import identifier. If this transaction was imported through File Based Import or Direct Import and not through the API, the import_id will have the format: 'YNAB:[milliunit_amount]:[iso_date]:[occurrence]'. For example, a transaction dated 2015-12-30 in the amount of -$294.23 USD would have an import_id of 'YNAB:-294230:2015-12-30:1'. If a second transaction on the same account was imported and had the same date and same amount, its import_id would be 'YNAB:-294230:2015-12-30:2'. | [optional] 20 | **deleted** | **bool** | Whether or not the transaction has been deleted. Deleted transactions will only be included in delta requests. | 21 | **account_name** | **str** | | 22 | **payee_name** | **str** | | [optional] 23 | **category_name** | **str** | | [optional] 24 | **subtransactions** | [**list[SubTransaction]**](SubTransaction.md) | If a split transaction, the subtransactions. | 25 | 26 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 27 | 28 | 29 | -------------------------------------------------------------------------------- /docs/HybridTransaction.md: -------------------------------------------------------------------------------- 1 | # HybridTransaction 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **str** | | 7 | **date** | **date** | The transaction date in ISO format (e.g. 2016-12-01) | 8 | **amount** | **int** | The transaction amount in milliunits format | 9 | **memo** | **str** | | [optional] 10 | **cleared** | **str** | The cleared status of the transaction | 11 | **approved** | **bool** | Whether or not the transaction is approved | 12 | **flag_color** | **str** | The transaction flag | [optional] 13 | **account_id** | **str** | | 14 | **payee_id** | **str** | | [optional] 15 | **category_id** | **str** | | [optional] 16 | **transfer_account_id** | **str** | If a transfer transaction, the account to which it transfers | [optional] 17 | **transfer_transaction_id** | **str** | If a transfer transaction, the id of transaction on the other side of the transfer | [optional] 18 | **matched_transaction_id** | **str** | If transaction is matched, the id of the matched transaction | [optional] 19 | **import_id** | **str** | If the Transaction was imported, this field is a unique (by account) import identifier. If this transaction was imported through File Based Import or Direct Import and not through the API, the import_id will have the format: 'YNAB:[milliunit_amount]:[iso_date]:[occurrence]'. For example, a transaction dated 2015-12-30 in the amount of -$294.23 USD would have an import_id of 'YNAB:-294230:2015-12-30:1'. If a second transaction on the same account was imported and had the same date and same amount, its import_id would be 'YNAB:-294230:2015-12-30:2'. | [optional] 20 | **deleted** | **bool** | Whether or not the transaction has been deleted. Deleted transactions will only be included in delta requests. | 21 | **type** | **str** | Whether the hybrid transaction represents a regular transaction or a subtransaction | 22 | **parent_transaction_id** | **str** | For subtransaction types, this is the id of the parent transaction. For transaction types, this id will be always be null. | [optional] 23 | **account_name** | **str** | | 24 | **payee_name** | **str** | | [optional] 25 | **category_name** | **str** | | [optional] 26 | 27 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 28 | 29 | 30 | -------------------------------------------------------------------------------- /test/test_transactions_api.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | YNAB API Endpoints 5 | 6 | Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Generated by: https://openapi-generator.tech 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | 17 | import ynab 18 | from ynab.api.transactions_api import TransactionsApi # noqa: E501 19 | from ynab.rest import ApiException 20 | 21 | 22 | class TestTransactionsApi(unittest.TestCase): 23 | """TransactionsApi unit test stubs""" 24 | 25 | def setUp(self): 26 | self.api = ynab.api.transactions_api.TransactionsApi() # noqa: E501 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def test_create_transaction(self): 32 | """Test case for create_transaction 33 | 34 | Create a single transaction or multiple transactions # noqa: E501 35 | """ 36 | pass 37 | 38 | def test_get_transaction_by_id(self): 39 | """Test case for get_transaction_by_id 40 | 41 | Single transaction # noqa: E501 42 | """ 43 | pass 44 | 45 | def test_get_transactions(self): 46 | """Test case for get_transactions 47 | 48 | List transactions # noqa: E501 49 | """ 50 | pass 51 | 52 | def test_get_transactions_by_account(self): 53 | """Test case for get_transactions_by_account 54 | 55 | List account transactions # noqa: E501 56 | """ 57 | pass 58 | 59 | def test_get_transactions_by_category(self): 60 | """Test case for get_transactions_by_category 61 | 62 | List category transactions # noqa: E501 63 | """ 64 | pass 65 | 66 | def test_get_transactions_by_payee(self): 67 | """Test case for get_transactions_by_payee 68 | 69 | List payee transactions # noqa: E501 70 | """ 71 | pass 72 | 73 | def test_import_transactions(self): 74 | """Test case for import_transactions 75 | 76 | Import transactions # noqa: E501 77 | """ 78 | pass 79 | 80 | def test_update_transaction(self): 81 | """Test case for update_transaction 82 | 83 | Updates an existing transaction # noqa: E501 84 | """ 85 | pass 86 | 87 | def test_update_transactions(self): 88 | """Test case for update_transactions 89 | 90 | Update multiple transactions # noqa: E501 91 | """ 92 | pass 93 | 94 | 95 | if __name__ == '__main__': 96 | unittest.main() 97 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # ynab 2 | 3 | Provide integration with YNAB's API. See https://api.youneedabudget.com 4 | 5 | This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project. 6 | 7 | Forked from [deanmcgregor/ynab-python](https://github.com/deanmcgregor/ynab-python) due to lack of maintenance. 8 | 9 | Status: Github Actions takes care of opening PRs for new OpenAPI versions/YNAB API updates. I try to check weekly on new PRs/issues, but no guarantees. If you would like to more strongly maintain the project, please feel free to reach out. 10 | 11 | ## Requirements 12 | 13 | Python 3.6+ (We try to respect the [Python EOL schedule](https://devguide.python.org/#status-of-python-branches)) 14 | 15 | ## Installation & Usage 16 | ### pip install 17 | 18 | ```sh 19 | pip install ynab 20 | ``` 21 | 22 | Then import the package: 23 | ```python 24 | import ynab 25 | ``` 26 | 27 | ### Setuptools 28 | 29 | Install via [Setuptools](http://pypi.python.org/pypi/setuptools). 30 | 31 | ```sh 32 | python setup.py install --user 33 | ``` 34 | (or `sudo python setup.py install` to install the package for all users) 35 | 36 | Then import the package: 37 | ```python 38 | import ynab 39 | ``` 40 | 41 | ## Getting Started 42 | 43 | Please follow the [installation procedure](#installation--usage) and then run the following: 44 | 45 | ```python 46 | from __future__ import print_function 47 | import time 48 | import ynab 49 | from ynab.rest import ApiException 50 | from pprint import pprint 51 | 52 | configuration = ynab.Configuration() 53 | # Configure API key authorization: bearer 54 | configuration.api_key['Authorization'] = 'YOUR_API_KEY' 55 | # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed 56 | # configuration.api_key_prefix['Authorization'] = 'Bearer' 57 | 58 | # Defining host is optional and default to https://api.youneedabudget.com/v1 59 | configuration.host = "https://api.youneedabudget.com/v1" 60 | # Create an instance of the API class 61 | api_instance = ynab.AccountsApi(ynab.ApiClient(configuration)) 62 | budget_id = 'budget_id_example' # str | The id of the budget (\"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget) 63 | account_id = 'account_id_example' # str | The id of the account 64 | 65 | try: 66 | # Single account 67 | api_response = api_instance.get_account_by_id(budget_id, account_id) 68 | pprint(api_response) 69 | except ApiException as e: 70 | print("Exception when calling AccountsApi->get_account_by_id: %s\n" % e) 71 | 72 | ``` 73 | 74 | ## Documentation for API Endpoints and Models 75 | 76 | All URIs are relative to *https://api.youneedabudget.com/v1* 77 | 78 | See [docs folder](docs/) for auto-generated documentation. 79 | 80 | ## Author 81 | 82 | David Hao 83 | -------------------------------------------------------------------------------- /docs/DeprecatedApi.md: -------------------------------------------------------------------------------- 1 | # ynab.DeprecatedApi 2 | 3 | All URIs are relative to *https://api.youneedabudget.com/v1* 4 | 5 | Method | HTTP request | Description 6 | ------------- | ------------- | ------------- 7 | [**bulk_create_transactions**](DeprecatedApi.md#bulk_create_transactions) | **POST** /budgets/{budget_id}/transactions/bulk | Bulk create transactions 8 | 9 | 10 | # **bulk_create_transactions** 11 | > BulkResponse bulk_create_transactions(budget_id, transactions) 12 | 13 | Bulk create transactions 14 | 15 | Creates multiple transactions. Although this endpoint is still supported, it is recommended to use 'POST /budgets/{budget_id}/transactions' to create multiple transactions. 16 | 17 | ### Example 18 | 19 | * Api Key Authentication (bearer): 20 | ```python 21 | from __future__ import print_function 22 | import time 23 | import ynab 24 | from ynab.rest import ApiException 25 | from pprint import pprint 26 | configuration = ynab.Configuration() 27 | # Configure API key authorization: bearer 28 | configuration.api_key['Authorization'] = 'YOUR_API_KEY' 29 | # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed 30 | # configuration.api_key_prefix['Authorization'] = 'Bearer' 31 | 32 | # Defining host is optional and default to https://api.youneedabudget.com/v1 33 | configuration.host = "https://api.youneedabudget.com/v1" 34 | # Create an instance of the API class 35 | api_instance = ynab.DeprecatedApi(ynab.ApiClient(configuration)) 36 | budget_id = 'budget_id_example' # str | The id of the budget (\"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget) 37 | transactions = ynab.BulkTransactions() # BulkTransactions | The list of transactions to create 38 | 39 | try: 40 | # Bulk create transactions 41 | api_response = api_instance.bulk_create_transactions(budget_id, transactions) 42 | pprint(api_response) 43 | except ApiException as e: 44 | print("Exception when calling DeprecatedApi->bulk_create_transactions: %s\n" % e) 45 | ``` 46 | 47 | ### Parameters 48 | 49 | Name | Type | Description | Notes 50 | ------------- | ------------- | ------------- | ------------- 51 | **budget_id** | **str**| The id of the budget (\"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget) | 52 | **transactions** | [**BulkTransactions**](BulkTransactions.md)| The list of transactions to create | 53 | 54 | ### Return type 55 | 56 | [**BulkResponse**](BulkResponse.md) 57 | 58 | ### Authorization 59 | 60 | [bearer](../README.md#bearer) 61 | 62 | ### HTTP request headers 63 | 64 | - **Content-Type**: Not defined 65 | - **Accept**: application/json 66 | 67 | ### HTTP response details 68 | | Status code | Description | Response headers | 69 | |-------------|-------------|------------------| 70 | **201** | The bulk request was processed successfully | - | 71 | **400** | The request could not be understood due to malformed syntax or validation error(s) | - | 72 | 73 | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 74 | 75 | -------------------------------------------------------------------------------- /docs/SaveTransaction.md: -------------------------------------------------------------------------------- 1 | # SaveTransaction 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **account_id** | **str** | | 7 | **date** | **date** | The transaction date in ISO format (e.g. 2016-12-01). Future dates (scheduled transactions) are not permitted. Split transaction dates cannot be changed and if a different date is supplied it will be ignored. | 8 | **amount** | **int** | The transaction amount in milliunits format. Split transaction amounts cannot be changed and if a different amount is supplied it will be ignored. | 9 | **payee_id** | **str** | The payee for the transaction. To create a transfer between two accounts, use the account transfer payee pointing to the target account. Account transfer payees are specified as `tranfer_payee_id` on the account resource. | [optional] 10 | **payee_name** | **str** | The payee name. If a `payee_name` value is provided and `payee_id` has a null value, the `payee_name` value will be used to resolve the payee by either (1) a matching payee rename rule (only if `import_id` is also specified) or (2) a payee with the same name or (3) creation of a new payee. | [optional] 11 | **category_id** | **str** | The category for the transaction. To configure a split transaction, you can specify null for `category_id` and provide a `subtransactions` array as part of the transaction object. If an existing transaction is a split, the `category_id` cannot be changed. Credit Card Payment categories are not permitted and will be ignored if supplied. | [optional] 12 | **memo** | **str** | | [optional] 13 | **cleared** | **str** | The cleared status of the transaction | [optional] 14 | **approved** | **bool** | Whether or not the transaction is approved. If not supplied, transaction will be unapproved by default. | [optional] 15 | **flag_color** | **str** | The transaction flag | [optional] 16 | **import_id** | **str** | If specified, the new transaction will be assigned this `import_id` and considered \"imported\". We will also attempt to match this imported transaction to an existing \"user-entered\" transation on the same account, with the same amount, and with a date +/-10 days from the imported transaction date.<br><br>Transactions imported through File Based Import or Direct Import (not through the API) are assigned an import_id in the format: 'YNAB:[milliunit_amount]:[iso_date]:[occurrence]'. For example, a transaction dated 2015-12-30 in the amount of -$294.23 USD would have an import_id of 'YNAB:-294230:2015-12-30:1'. If a second transaction on the same account was imported and had the same date and same amount, its import_id would be 'YNAB:-294230:2015-12-30:2'. Using a consistent format will prevent duplicates through Direct Import and File Based Import.<br><br>If import_id is omitted or specified as null, the transaction will be treated as a \"user-entered\" transaction. As such, it will be eligible to be matched against transactions later being imported (via DI, FBI, or API). | [optional] 17 | **subtransactions** | [**list[SaveSubTransaction]**](SaveSubTransaction.md) | An array of subtransactions to configure a transaction as a split. Updating `subtransactions` on an existing split transaction is not supported. | [optional] 18 | 19 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 20 | 21 | 22 | -------------------------------------------------------------------------------- /docs/UpdateTransaction.md: -------------------------------------------------------------------------------- 1 | # UpdateTransaction 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **str** | | 7 | **account_id** | **str** | | 8 | **date** | **date** | The transaction date in ISO format (e.g. 2016-12-01). Future dates (scheduled transactions) are not permitted. Split transaction dates cannot be changed and if a different date is supplied it will be ignored. | 9 | **amount** | **int** | The transaction amount in milliunits format. Split transaction amounts cannot be changed and if a different amount is supplied it will be ignored. | 10 | **payee_id** | **str** | The payee for the transaction. To create a transfer between two accounts, use the account transfer payee pointing to the target account. Account transfer payees are specified as `tranfer_payee_id` on the account resource. | [optional] 11 | **payee_name** | **str** | The payee name. If a `payee_name` value is provided and `payee_id` has a null value, the `payee_name` value will be used to resolve the payee by either (1) a matching payee rename rule (only if `import_id` is also specified) or (2) a payee with the same name or (3) creation of a new payee. | [optional] 12 | **category_id** | **str** | The category for the transaction. To configure a split transaction, you can specify null for `category_id` and provide a `subtransactions` array as part of the transaction object. If an existing transaction is a split, the `category_id` cannot be changed. Credit Card Payment categories are not permitted and will be ignored if supplied. | [optional] 13 | **memo** | **str** | | [optional] 14 | **cleared** | **str** | The cleared status of the transaction | [optional] 15 | **approved** | **bool** | Whether or not the transaction is approved. If not supplied, transaction will be unapproved by default. | [optional] 16 | **flag_color** | **str** | The transaction flag | [optional] 17 | **import_id** | **str** | If specified, the new transaction will be assigned this `import_id` and considered \"imported\". We will also attempt to match this imported transaction to an existing \"user-entered\" transation on the same account, with the same amount, and with a date +/-10 days from the imported transaction date.<br><br>Transactions imported through File Based Import or Direct Import (not through the API) are assigned an import_id in the format: 'YNAB:[milliunit_amount]:[iso_date]:[occurrence]'. For example, a transaction dated 2015-12-30 in the amount of -$294.23 USD would have an import_id of 'YNAB:-294230:2015-12-30:1'. If a second transaction on the same account was imported and had the same date and same amount, its import_id would be 'YNAB:-294230:2015-12-30:2'. Using a consistent format will prevent duplicates through Direct Import and File Based Import.<br><br>If import_id is omitted or specified as null, the transaction will be treated as a \"user-entered\" transaction. As such, it will be eligible to be matched against transactions later being imported (via DI, FBI, or API). | [optional] 18 | **subtransactions** | [**list[SaveSubTransaction]**](SaveSubTransaction.md) | An array of subtransactions to configure a transaction as a split. Updating `subtransactions` on an existing split transaction is not supported. | [optional] 19 | 20 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 21 | 22 | 23 | --------------------------------------------------------------------------------