├── .gitignore ├── .swagger-codegen-ignore ├── .swagger-codegen └── VERSION ├── .travis.yml ├── README.md ├── docs ├── Account.md ├── AccountResponse.md ├── AccountWrapper.md ├── AccountsApi.md ├── AccountsResponse.md ├── AccountsWrapper.md ├── BudgetDetail.md ├── BudgetDetailResponse.md ├── BudgetDetailWrapper.md ├── BudgetSummary.md ├── BudgetSummaryResponse.md ├── BudgetSummaryWrapper.md ├── BudgetsApi.md ├── BulkIdWrapper.md ├── BulkIds.md ├── BulkResponse.md ├── BulkTransactions.md ├── CategoriesApi.md ├── CategoriesResponse.md ├── Category.md ├── CategoryGroup.md ├── CategoryGroupWithCategories.md ├── CategoryGroupsWrapper.md ├── CategoryResponse.md ├── CategoryWrapper.md ├── CurrencyFormat.md ├── DateFormat.md ├── ErrorDetail.md ├── ErrorResponse.md ├── HybridTransaction.md ├── HybridTransactionsResponse.md ├── HybridTransactionsWrapper.md ├── MonthDetail.md ├── MonthDetailResponse.md ├── MonthDetailWrapper.md ├── MonthSummariesResponse.md ├── MonthSummariesWrapper.md ├── MonthSummary.md ├── MonthsApi.md ├── Payee.md ├── PayeeLocation.md ├── PayeeLocationResponse.md ├── PayeeLocationWrapper.md ├── PayeeLocationsApi.md ├── PayeeLocationsResponse.md ├── PayeeLocationsWrapper.md ├── PayeeResponse.md ├── PayeeWrapper.md ├── PayeesApi.md ├── PayeesResponse.md ├── PayeesWrapper.md ├── SaveTransaction.md ├── SaveTransactionWrapper.md ├── ScheduledSubTransaction.md ├── ScheduledTransactionDetail.md ├── ScheduledTransactionResponse.md ├── ScheduledTransactionSummary.md ├── ScheduledTransactionWrapper.md ├── ScheduledTransactionsApi.md ├── ScheduledTransactionsResponse.md ├── ScheduledTransactionsWrapper.md ├── SubTransaction.md ├── TransactionDetail.md ├── TransactionResponse.md ├── TransactionSummary.md ├── TransactionWrapper.md ├── TransactionsApi.md ├── TransactionsResponse.md ├── TransactionsWrapper.md ├── User.md ├── UserApi.md ├── UserResponse.md └── UserWrapper.md ├── git_push.sh ├── requirements.txt ├── setup.py ├── test-requirements.txt ├── test ├── __init__.py ├── test_account.py ├── test_account_response.py ├── test_account_wrapper.py ├── test_accounts_api.py ├── test_accounts_response.py ├── test_accounts_wrapper.py ├── test_budget_detail.py ├── test_budget_detail_response.py ├── test_budget_detail_wrapper.py ├── test_budget_summary.py ├── test_budget_summary_response.py ├── test_budget_summary_wrapper.py ├── test_budgets_api.py ├── test_bulk_id_wrapper.py ├── test_bulk_ids.py ├── test_bulk_response.py ├── test_bulk_transactions.py ├── test_categories_api.py ├── test_categories_response.py ├── test_category.py ├── test_category_group.py ├── test_category_group_with_categories.py ├── test_category_groups_wrapper.py ├── test_category_response.py ├── test_category_wrapper.py ├── test_currency_format.py ├── test_date_format.py ├── test_error_detail.py ├── test_error_response.py ├── test_hybrid_transaction.py ├── test_hybrid_transactions_response.py ├── test_hybrid_transactions_wrapper.py ├── test_month_detail.py ├── test_month_detail_response.py ├── test_month_detail_wrapper.py ├── test_month_summaries_response.py ├── test_month_summaries_wrapper.py ├── test_month_summary.py ├── test_months_api.py ├── test_payee.py ├── test_payee_location.py ├── test_payee_location_response.py ├── test_payee_location_wrapper.py ├── test_payee_locations_api.py ├── test_payee_locations_response.py ├── test_payee_locations_wrapper.py ├── test_payee_response.py ├── test_payee_wrapper.py ├── test_payees_api.py ├── test_payees_response.py ├── test_payees_wrapper.py ├── test_save_transaction.py ├── test_save_transaction_wrapper.py ├── test_scheduled_sub_transaction.py ├── test_scheduled_transaction_detail.py ├── test_scheduled_transaction_response.py ├── test_scheduled_transaction_summary.py ├── test_scheduled_transaction_wrapper.py ├── test_scheduled_transactions_api.py ├── test_scheduled_transactions_response.py ├── test_scheduled_transactions_wrapper.py ├── test_sub_transaction.py ├── test_transaction_detail.py ├── test_transaction_response.py ├── test_transaction_summary.py ├── test_transaction_wrapper.py ├── test_transactions_api.py ├── test_transactions_response.py ├── test_transactions_wrapper.py ├── test_user.py ├── test_user_api.py ├── test_user_response.py └── test_user_wrapper.py ├── tox.ini └── ynab ├── __init__.py ├── api_client.py ├── configuration.py ├── models ├── __init__.py ├── account.py ├── account_response.py ├── account_wrapper.py ├── accounts_response.py ├── accounts_wrapper.py ├── budget_detail.py ├── budget_detail_response.py ├── budget_detail_wrapper.py ├── budget_summary.py ├── budget_summary_response.py ├── budget_summary_wrapper.py ├── bulk_id_wrapper.py ├── bulk_ids.py ├── bulk_response.py ├── bulk_transactions.py ├── categories_response.py ├── category.py ├── category_group.py ├── category_group_with_categories.py ├── category_groups_wrapper.py ├── category_response.py ├── category_wrapper.py ├── currency_format.py ├── date_format.py ├── error_detail.py ├── error_response.py ├── hybrid_transaction.py ├── hybrid_transactions_response.py ├── hybrid_transactions_wrapper.py ├── month_detail.py ├── month_detail_response.py ├── month_detail_wrapper.py ├── month_summaries_response.py ├── month_summaries_wrapper.py ├── month_summary.py ├── payee.py ├── payee_location.py ├── payee_location_response.py ├── payee_location_wrapper.py ├── payee_locations_response.py ├── payee_locations_wrapper.py ├── payee_response.py ├── payee_wrapper.py ├── payees_response.py ├── payees_wrapper.py ├── save_transaction.py ├── save_transaction_wrapper.py ├── scheduled_sub_transaction.py ├── scheduled_transaction_detail.py ├── scheduled_transaction_response.py ├── scheduled_transaction_summary.py ├── scheduled_transaction_wrapper.py ├── scheduled_transactions_response.py ├── scheduled_transactions_wrapper.py ├── sub_transaction.py ├── transaction_detail.py ├── transaction_response.py ├── transaction_summary.py ├── transaction_wrapper.py ├── transactions_response.py ├── transactions_wrapper.py ├── user.py ├── user_response.py └── user_wrapper.py ├── rest.py └── ynab ├── __init__.py ├── accounts_api.py ├── budgets_api.py ├── categories_api.py ├── months_api.py ├── payee_locations_api.py ├── payees_api.py ├── scheduled_transactions_api.py ├── transactions_api.py └── user_api.py /.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 | -------------------------------------------------------------------------------- /.swagger-codegen-ignore: -------------------------------------------------------------------------------- 1 | # Swagger Codegen Ignore 2 | # Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen 3 | 4 | # Use this file to prevent files from being overwritten by the generator. 5 | # The patterns follow closely to .gitignore or .dockerignore. 6 | 7 | # As an example, the C# client generator defines ApiClient.cs. 8 | # You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line: 9 | #ApiClient.cs 10 | 11 | # You can match any string of characters against a directory, file or extension with a single asterisk (*): 12 | #foo/*/qux 13 | # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux 14 | 15 | # You can recursively match patterns against a directory, file or extension with a double asterisk (**): 16 | #foo/**/qux 17 | # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux 18 | 19 | # You can also negate patterns with an exclamation (!). 20 | # For example, you can ignore all files in a docs folder with the file extension .md: 21 | #docs/*.md 22 | # Then explicitly reverse the ignore rule for a single file: 23 | #!docs/README.md 24 | -------------------------------------------------------------------------------- /.swagger-codegen/VERSION: -------------------------------------------------------------------------------- 1 | 2.3.1 -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | # ref: https://docs.travis-ci.com/user/languages/python 2 | language: python 3 | python: 4 | - "2.7" 5 | - "3.2" 6 | - "3.3" 7 | - "3.4" 8 | - "3.5" 9 | #- "3.5-dev" # 3.5 development branch 10 | #- "nightly" # points to the latest development branch e.g. 3.6-dev 11 | # command to install dependencies 12 | install: "pip install -r requirements.txt" 13 | # command to run tests 14 | script: nosetests 15 | -------------------------------------------------------------------------------- /docs/Account.md: -------------------------------------------------------------------------------- 1 | # Account 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **str** | | 7 | **name** | **str** | | 8 | **type** | **str** | | 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** | | 12 | **balance** | **float** | The current balance of the account in milliunits format | 13 | **cleared_balance** | **float** | The current cleared balance of the account in milliunits format | 14 | **uncleared_balance** | **float** | The current uncleared balance of the account in milliunits format | 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/AccountResponse.md: -------------------------------------------------------------------------------- 1 | # AccountResponse 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **data** | [**AccountWrapper**](AccountWrapper.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/AccountWrapper.md: -------------------------------------------------------------------------------- 1 | # AccountWrapper 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/AccountsResponse.md: -------------------------------------------------------------------------------- 1 | # AccountsResponse 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **data** | [**AccountsWrapper**](AccountsWrapper.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/AccountsWrapper.md: -------------------------------------------------------------------------------- 1 | # AccountsWrapper 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **accounts** | [**list[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/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 | **date_format** | [**DateFormat**](DateFormat.md) | | [optional] 10 | **currency_format** | [**CurrencyFormat**](CurrencyFormat.md) | | [optional] 11 | **accounts** | [**list[Account]**](Account.md) | | [optional] 12 | **payees** | [**list[Payee]**](Payee.md) | | [optional] 13 | **payee_locations** | [**list[PayeeLocation]**](PayeeLocation.md) | | [optional] 14 | **category_groups** | [**list[CategoryGroup]**](CategoryGroup.md) | | [optional] 15 | **categories** | [**list[Category]**](Category.md) | | [optional] 16 | **months** | [**list[MonthDetail]**](MonthDetail.md) | | [optional] 17 | **transactions** | [**list[TransactionSummary]**](TransactionSummary.md) | | [optional] 18 | **subtransactions** | [**list[SubTransaction]**](SubTransaction.md) | | [optional] 19 | **scheduled_transactions** | [**list[ScheduledTransactionSummary]**](ScheduledTransactionSummary.md) | | [optional] 20 | **scheduled_subtransactions** | [**list[ScheduledSubTransaction]**](ScheduledSubTransaction.md) | | [optional] 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/BudgetDetailResponse.md: -------------------------------------------------------------------------------- 1 | # BudgetDetailResponse 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **data** | [**BudgetDetailWrapper**](BudgetDetailWrapper.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/BudgetDetailWrapper.md: -------------------------------------------------------------------------------- 1 | # BudgetDetailWrapper 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **budget** | [**BudgetDetail**](BudgetDetail.md) | | 7 | **server_knowledge** | **float** | 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/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 | **date_format** | [**DateFormat**](DateFormat.md) | | [optional] 10 | **currency_format** | [**CurrencyFormat**](CurrencyFormat.md) | | [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/BudgetSummaryResponse.md: -------------------------------------------------------------------------------- 1 | # BudgetSummaryResponse 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **data** | [**BudgetSummaryWrapper**](BudgetSummaryWrapper.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/BudgetSummaryWrapper.md: -------------------------------------------------------------------------------- 1 | # BudgetSummaryWrapper 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **budgets** | [**list[BudgetSummary]**](BudgetSummary.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/BulkIdWrapper.md: -------------------------------------------------------------------------------- 1 | # BulkIdWrapper 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **bulk** | [**BulkIds**](BulkIds.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/BulkIds.md: -------------------------------------------------------------------------------- 1 | # BulkIds 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 | -------------------------------------------------------------------------------- /docs/BulkResponse.md: -------------------------------------------------------------------------------- 1 | # BulkResponse 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **data** | [**BulkIdWrapper**](BulkIdWrapper.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/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** | [**CategoryGroupsWrapper**](CategoryGroupsWrapper.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/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 | **note** | **str** | | 11 | **budgeted** | **float** | Budgeted amount in current month in milliunits format | 12 | **activity** | **float** | Activity amount in current month in milliunits format | 13 | **balance** | **float** | Balance in current month in milliunits format | 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/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 | 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/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 | **categories** | [**list[Category]**](Category.md) | Category group categories | 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/CategoryGroupsWrapper.md: -------------------------------------------------------------------------------- 1 | # CategoryGroupsWrapper 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **category_groups** | [**list[CategoryGroupWithCategories]**](CategoryGroupWithCategories.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** | [**CategoryWrapper**](CategoryWrapper.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/CategoryWrapper.md: -------------------------------------------------------------------------------- 1 | # CategoryWrapper 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/CurrencyFormat.md: -------------------------------------------------------------------------------- 1 | # CurrencyFormat 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **iso_code** | **str** | | 7 | **example_format** | **str** | | 8 | **decimal_digits** | **float** | | 9 | **decimal_separator** | **str** | | 10 | **symbol_first** | **bool** | | 11 | **group_separator** | **str** | | 12 | **currency_symbol** | **str** | | 13 | **display_symbol** | **bool** | | 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/DateFormat.md: -------------------------------------------------------------------------------- 1 | # DateFormat 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **format** | **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/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/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/HybridTransaction.md: -------------------------------------------------------------------------------- 1 | # HybridTransaction 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **str** | | 7 | **date** | **date** | | 8 | **amount** | **float** | The transaction amount in milliunits format | 9 | **memo** | **str** | | 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 | 13 | **account_id** | **str** | | 14 | **payee_id** | **str** | | 15 | **category_id** | **str** | | 16 | **transfer_account_id** | **str** | | 17 | **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'. | 18 | **type** | **str** | Whether the hybrid transaction represents a regular transaction or a subtransaction | 19 | **parent_transaction_id** | **str** | For subtransaction types, this is the id of the pararent transaction. For transaction types, this id will be always be null. | 20 | **account_name** | **str** | | 21 | **payee_name** | **str** | | 22 | **category_name** | **str** | | 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/HybridTransactionsResponse.md: -------------------------------------------------------------------------------- 1 | # HybridTransactionsResponse 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **data** | [**HybridTransactionsWrapper**](HybridTransactionsWrapper.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/HybridTransactionsWrapper.md: -------------------------------------------------------------------------------- 1 | # HybridTransactionsWrapper 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/MonthDetail.md: -------------------------------------------------------------------------------- 1 | # MonthDetail 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **month** | **date** | | 7 | **note** | **str** | | 8 | **to_be_budgeted** | **float** | The current balance of the account in milliunits format | 9 | **age_of_money** | **float** | | 10 | **categories** | [**list[Category]**](Category.md) | The budget month categories | 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/MonthDetailResponse.md: -------------------------------------------------------------------------------- 1 | # MonthDetailResponse 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **data** | [**MonthDetailWrapper**](MonthDetailWrapper.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/MonthDetailWrapper.md: -------------------------------------------------------------------------------- 1 | # MonthDetailWrapper 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/MonthSummariesResponse.md: -------------------------------------------------------------------------------- 1 | # MonthSummariesResponse 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **data** | [**MonthSummariesWrapper**](MonthSummariesWrapper.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/MonthSummariesWrapper.md: -------------------------------------------------------------------------------- 1 | # MonthSummariesWrapper 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **months** | [**list[MonthSummary]**](MonthSummary.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/MonthSummary.md: -------------------------------------------------------------------------------- 1 | # MonthSummary 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **month** | **date** | | 7 | **note** | **str** | | 8 | **to_be_budgeted** | **float** | The current balance of the account in milliunits format | 9 | **age_of_money** | **float** | | 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/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 | 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/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 | 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/PayeeLocationResponse.md: -------------------------------------------------------------------------------- 1 | # PayeeLocationResponse 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **data** | [**PayeeLocationWrapper**](PayeeLocationWrapper.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/PayeeLocationWrapper.md: -------------------------------------------------------------------------------- 1 | # PayeeLocationWrapper 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/PayeeLocationsResponse.md: -------------------------------------------------------------------------------- 1 | # PayeeLocationsResponse 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **data** | [**PayeeLocationsWrapper**](PayeeLocationsWrapper.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/PayeeLocationsWrapper.md: -------------------------------------------------------------------------------- 1 | # PayeeLocationsWrapper 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/PayeeResponse.md: -------------------------------------------------------------------------------- 1 | # PayeeResponse 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **data** | [**PayeeWrapper**](PayeeWrapper.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/PayeeWrapper.md: -------------------------------------------------------------------------------- 1 | # PayeeWrapper 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/PayeesResponse.md: -------------------------------------------------------------------------------- 1 | # PayeesResponse 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **data** | [**PayeesWrapper**](PayeesWrapper.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/PayeesWrapper.md: -------------------------------------------------------------------------------- 1 | # PayeesWrapper 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **payees** | [**list[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/SaveTransaction.md: -------------------------------------------------------------------------------- 1 | # SaveTransaction 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **account_id** | **str** | | 7 | **date** | **date** | | 8 | **amount** | **float** | The transaction amount in milliunits format | 9 | **payee_id** | **str** | The payee for the transaction. Transfer payees are not permitted and will be ignored if supplied. | [optional] 10 | **payee_name** | **str** | The payee name. If a payee_name value is provided and payee_id is not included or has a null value, payee_name will be used to create or use an existing payee. | [optional] 11 | **category_id** | **str** | The category for the transaction. Split and 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 for a new transaction, the transaction will be treated as Imported and assigned this import_id. If another transaction on the same account with this same import_id is later attempted to be created, it will be skipped to prevent duplication. Transactions imported through File Based Import or Direct Import and 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. If import_id is specified as null, the transaction will be treated as a user entered transaction. | [optional] 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 | -------------------------------------------------------------------------------- /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/ScheduledSubTransaction.md: -------------------------------------------------------------------------------- 1 | # ScheduledSubTransaction 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **str** | | 7 | **scheduled_transaction_id** | **str** | | 8 | **amount** | **float** | The scheduled subtransaction amount in milliunits format | 9 | **memo** | **str** | | 10 | **payee_id** | **str** | | 11 | **category_id** | **str** | | 12 | **transfer_account_id** | **str** | If a transfer, the account_id which the scheduled sub transaction transfers to | 13 | 14 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 15 | 16 | 17 | -------------------------------------------------------------------------------- /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** | **float** | The scheduled transaction amount in milliunits format | 11 | **memo** | **str** | | 12 | **flag_color** | **str** | The scheduled transaction flag | 13 | **account_id** | **str** | | 14 | **payee_id** | **str** | | 15 | **category_id** | **str** | | 16 | **transfer_account_id** | **str** | If a transfer, the account_id which the scheduled transaction transfers to | 17 | **account_name** | **str** | | 18 | **payee_name** | **str** | | 19 | **category_name** | **str** | | 20 | **subtransactions** | [**list[ScheduledSubTransaction]**](ScheduledSubTransaction.md) | If a split scheduled transaction, the subtransactions. | 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/ScheduledTransactionResponse.md: -------------------------------------------------------------------------------- 1 | # ScheduledTransactionResponse 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **data** | [**ScheduledTransactionWrapper**](ScheduledTransactionWrapper.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/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** | **float** | The scheduled transaction amount in milliunits format | 11 | **memo** | **str** | | 12 | **flag_color** | **str** | The scheduled transaction flag | 13 | **account_id** | **str** | | 14 | **payee_id** | **str** | | 15 | **category_id** | **str** | | 16 | **transfer_account_id** | **str** | If a transfer, the account_id which the scheduled transaction transfers to | 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 | -------------------------------------------------------------------------------- /docs/ScheduledTransactionWrapper.md: -------------------------------------------------------------------------------- 1 | # ScheduledTransactionWrapper 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/ScheduledTransactionsResponse.md: -------------------------------------------------------------------------------- 1 | # ScheduledTransactionsResponse 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **data** | [**ScheduledTransactionsWrapper**](ScheduledTransactionsWrapper.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/ScheduledTransactionsWrapper.md: -------------------------------------------------------------------------------- 1 | # ScheduledTransactionsWrapper 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **scheduled_transactions** | [**list[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/SubTransaction.md: -------------------------------------------------------------------------------- 1 | # SubTransaction 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **str** | | 7 | **transaction_id** | **str** | | 8 | **amount** | **float** | The subtransaction amount in milliunits format | 9 | **memo** | **str** | | 10 | **payee_id** | **str** | | 11 | **category_id** | **str** | | 12 | **transfer_account_id** | **str** | If a transfer, the account_id which the subtransaction transfers to | 13 | 14 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 15 | 16 | 17 | -------------------------------------------------------------------------------- /docs/TransactionDetail.md: -------------------------------------------------------------------------------- 1 | # TransactionDetail 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **str** | | 7 | **date** | **date** | | 8 | **amount** | **float** | The transaction amount in milliunits format | 9 | **memo** | **str** | | 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 | 13 | **account_id** | **str** | | 14 | **payee_id** | **str** | | 15 | **category_id** | **str** | | 16 | **transfer_account_id** | **str** | | 17 | **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'. | 18 | **account_name** | **str** | | 19 | **payee_name** | **str** | | 20 | **category_name** | **str** | | 21 | **subtransactions** | [**list[SubTransaction]**](SubTransaction.md) | If a split 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 | -------------------------------------------------------------------------------- /docs/TransactionResponse.md: -------------------------------------------------------------------------------- 1 | # TransactionResponse 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **data** | [**TransactionWrapper**](TransactionWrapper.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/TransactionSummary.md: -------------------------------------------------------------------------------- 1 | # TransactionSummary 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **str** | | 7 | **date** | **date** | | 8 | **amount** | **float** | The transaction amount in milliunits format | 9 | **memo** | **str** | | 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 | 13 | **account_id** | **str** | | 14 | **payee_id** | **str** | | 15 | **category_id** | **str** | | 16 | **transfer_account_id** | **str** | | 17 | **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'. | 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/TransactionWrapper.md: -------------------------------------------------------------------------------- 1 | # TransactionWrapper 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/TransactionsResponse.md: -------------------------------------------------------------------------------- 1 | # TransactionsResponse 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **data** | [**TransactionsWrapper**](TransactionsWrapper.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/TransactionsWrapper.md: -------------------------------------------------------------------------------- 1 | # TransactionsWrapper 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **transactions** | [**list[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/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/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 | ```python 19 | from __future__ import print_function 20 | import time 21 | import ynab 22 | from ynab.rest import ApiException 23 | from pprint import pprint 24 | 25 | # Configure API key authorization: bearer 26 | configuration = ynab.Configuration() 27 | configuration.api_key['Authorization'] = 'YOUR_API_KEY' 28 | # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed 29 | # configuration.api_key_prefix['Authorization'] = 'Bearer' 30 | 31 | # create an instance of the API class 32 | api_instance = ynab.UserApi(ynab.ApiClient(configuration)) 33 | 34 | try: 35 | # User info 36 | api_response = api_instance.get_user() 37 | pprint(api_response) 38 | except ApiException as e: 39 | print("Exception when calling UserApi->get_user: %s\n" % e) 40 | ``` 41 | 42 | ### Parameters 43 | This endpoint does not need any parameter. 44 | 45 | ### Return type 46 | 47 | [**UserResponse**](UserResponse.md) 48 | 49 | ### Authorization 50 | 51 | [bearer](../README.md#bearer) 52 | 53 | ### HTTP request headers 54 | 55 | - **Content-Type**: Not defined 56 | - **Accept**: application/json 57 | 58 | [[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) 59 | 60 | -------------------------------------------------------------------------------- /docs/UserResponse.md: -------------------------------------------------------------------------------- 1 | # UserResponse 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **data** | [**UserWrapper**](UserWrapper.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/UserWrapper.md: -------------------------------------------------------------------------------- 1 | # UserWrapper 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 | -------------------------------------------------------------------------------- /git_push.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ 3 | # 4 | # Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update" 5 | 6 | git_user_id=$1 7 | git_repo_id=$2 8 | release_note=$3 9 | 10 | if [ "$git_user_id" = "" ]; then 11 | git_user_id="deanmcgregor" 12 | echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" 13 | fi 14 | 15 | if [ "$git_repo_id" = "" ]; then 16 | git_repo_id="ynab-python" 17 | echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" 18 | fi 19 | 20 | if [ "$release_note" = "" ]; then 21 | release_note="Minor update" 22 | echo "[INFO] No command line input provided. Set \$release_note to $release_note" 23 | fi 24 | 25 | # Initialize the local directory as a Git repository 26 | git init 27 | 28 | # Adds the files in the local repository and stages them for commit. 29 | git add . 30 | 31 | # Commits the tracked changes and prepares them to be pushed to a remote repository. 32 | git commit -m "$release_note" 33 | 34 | # Sets the new remote 35 | git_remote=`git remote` 36 | if [ "$git_remote" = "" ]; then # git remote not defined 37 | 38 | if [ "$GIT_TOKEN" = "" ]; then 39 | echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." 40 | git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git 41 | else 42 | git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git 43 | fi 44 | 45 | fi 46 | 47 | git pull origin master 48 | 49 | # Pushes (Forces) the changes in the local repository up to the remote repository 50 | echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git" 51 | git push origin master 2>&1 | grep -v 'To https' 52 | 53 | -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | certifi >= 14.05.14 2 | six >= 1.10 3 | python_dateutil >= 2.5.3 4 | setuptools >= 21.0.0 5 | urllib3 >= 1.15.1 6 | -------------------------------------------------------------------------------- /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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from setuptools import setup, find_packages # noqa: H301 15 | 16 | NAME = "ynab-python" 17 | VERSION = "1.0.0" 18 | # To install the library, run the following 19 | # 20 | # python setup.py install 21 | # 22 | # prerequisite: setuptools 23 | # http://pypi.python.org/pypi/setuptools 24 | 25 | REQUIRES = ["urllib3 >= 1.15", "six >= 1.10", "certifi", "python-dateutil"] 26 | 27 | setup( 28 | name=NAME, 29 | version=VERSION, 30 | description="YNAB API Endpoints", 31 | author_email="", 32 | url="", 33 | keywords=["Swagger", "YNAB API Endpoints"], 34 | install_requires=REQUIRES, 35 | packages=find_packages(), 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-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 | -------------------------------------------------------------------------------- /test/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deanmcgregor/ynab-python/83b533589e4ef7c979f15ab0b6e0bfa8e6cd2673/test/__init__.py -------------------------------------------------------------------------------- /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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import ynab 19 | from ynab.models.account import Account # noqa: E501 20 | from ynab.rest import ApiException 21 | 22 | 23 | class TestAccount(unittest.TestCase): 24 | """Account unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testAccount(self): 33 | """Test Account""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = ynab.models.account.Account() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import ynab 19 | from ynab.models.account_response import AccountResponse # noqa: E501 20 | from ynab.rest import ApiException 21 | 22 | 23 | class TestAccountResponse(unittest.TestCase): 24 | """AccountResponse unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testAccountResponse(self): 33 | """Test AccountResponse""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = ynab.models.account_response.AccountResponse() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_account_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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import ynab 19 | from ynab.models.account_wrapper import AccountWrapper # noqa: E501 20 | from ynab.rest import ApiException 21 | 22 | 23 | class TestAccountWrapper(unittest.TestCase): 24 | """AccountWrapper unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testAccountWrapper(self): 33 | """Test AccountWrapper""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = ynab.models.account_wrapper.AccountWrapper() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import ynab 19 | from ynab.accounts_api import AccountsApi # noqa: E501 20 | from ynab.rest import ApiException 21 | 22 | 23 | class TestAccountsApi(unittest.TestCase): 24 | """AccountsApi unit test stubs""" 25 | 26 | def setUp(self): 27 | self.api = ynab.accounts_api.AccountsApi() # noqa: E501 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def test_get_account_by_id(self): 33 | """Test case for get_account_by_id 34 | 35 | Single account # noqa: E501 36 | """ 37 | pass 38 | 39 | def test_get_accounts(self): 40 | """Test case for get_accounts 41 | 42 | Account list # noqa: E501 43 | """ 44 | pass 45 | 46 | 47 | if __name__ == '__main__': 48 | unittest.main() 49 | -------------------------------------------------------------------------------- /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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import ynab 19 | from ynab.models.accounts_response import AccountsResponse # noqa: E501 20 | from ynab.rest import ApiException 21 | 22 | 23 | class TestAccountsResponse(unittest.TestCase): 24 | """AccountsResponse unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testAccountsResponse(self): 33 | """Test AccountsResponse""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = ynab.models.accounts_response.AccountsResponse() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_accounts_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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import ynab 19 | from ynab.models.accounts_wrapper import AccountsWrapper # noqa: E501 20 | from ynab.rest import ApiException 21 | 22 | 23 | class TestAccountsWrapper(unittest.TestCase): 24 | """AccountsWrapper unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testAccountsWrapper(self): 33 | """Test AccountsWrapper""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = ynab.models.accounts_wrapper.AccountsWrapper() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import ynab 19 | from ynab.models.budget_detail import BudgetDetail # noqa: E501 20 | from ynab.rest import ApiException 21 | 22 | 23 | class TestBudgetDetail(unittest.TestCase): 24 | """BudgetDetail unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testBudgetDetail(self): 33 | """Test BudgetDetail""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = ynab.models.budget_detail.BudgetDetail() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import ynab 19 | from ynab.models.budget_detail_response import BudgetDetailResponse # noqa: E501 20 | from ynab.rest import ApiException 21 | 22 | 23 | class TestBudgetDetailResponse(unittest.TestCase): 24 | """BudgetDetailResponse unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testBudgetDetailResponse(self): 33 | """Test BudgetDetailResponse""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = ynab.models.budget_detail_response.BudgetDetailResponse() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_budget_detail_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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import ynab 19 | from ynab.models.budget_detail_wrapper import BudgetDetailWrapper # noqa: E501 20 | from ynab.rest import ApiException 21 | 22 | 23 | class TestBudgetDetailWrapper(unittest.TestCase): 24 | """BudgetDetailWrapper unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testBudgetDetailWrapper(self): 33 | """Test BudgetDetailWrapper""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = ynab.models.budget_detail_wrapper.BudgetDetailWrapper() # noqa: E501 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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import ynab 19 | from ynab.models.budget_summary import BudgetSummary # noqa: E501 20 | from ynab.rest import ApiException 21 | 22 | 23 | class TestBudgetSummary(unittest.TestCase): 24 | """BudgetSummary unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testBudgetSummary(self): 33 | """Test BudgetSummary""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = ynab.models.budget_summary.BudgetSummary() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import ynab 19 | from ynab.models.budget_summary_response import BudgetSummaryResponse # noqa: E501 20 | from ynab.rest import ApiException 21 | 22 | 23 | class TestBudgetSummaryResponse(unittest.TestCase): 24 | """BudgetSummaryResponse unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testBudgetSummaryResponse(self): 33 | """Test BudgetSummaryResponse""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = ynab.models.budget_summary_response.BudgetSummaryResponse() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_budget_summary_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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import ynab 19 | from ynab.models.budget_summary_wrapper import BudgetSummaryWrapper # noqa: E501 20 | from ynab.rest import ApiException 21 | 22 | 23 | class TestBudgetSummaryWrapper(unittest.TestCase): 24 | """BudgetSummaryWrapper unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testBudgetSummaryWrapper(self): 33 | """Test BudgetSummaryWrapper""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = ynab.models.budget_summary_wrapper.BudgetSummaryWrapper() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import ynab 19 | from ynab.budgets_api import BudgetsApi # noqa: E501 20 | from ynab.rest import ApiException 21 | 22 | 23 | class TestBudgetsApi(unittest.TestCase): 24 | """BudgetsApi unit test stubs""" 25 | 26 | def setUp(self): 27 | self.api = ynab.budgets_api.BudgetsApi() # noqa: E501 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def test_get_budget_by_id(self): 33 | """Test case for get_budget_by_id 34 | 35 | Single budget # noqa: E501 36 | """ 37 | pass 38 | 39 | def test_get_budgets(self): 40 | """Test case for get_budgets 41 | 42 | List budgets # noqa: E501 43 | """ 44 | pass 45 | 46 | 47 | if __name__ == '__main__': 48 | unittest.main() 49 | -------------------------------------------------------------------------------- /test/test_bulk_id_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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import ynab 19 | from ynab.models.bulk_id_wrapper import BulkIdWrapper # noqa: E501 20 | from ynab.rest import ApiException 21 | 22 | 23 | class TestBulkIdWrapper(unittest.TestCase): 24 | """BulkIdWrapper unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testBulkIdWrapper(self): 33 | """Test BulkIdWrapper""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = ynab.models.bulk_id_wrapper.BulkIdWrapper() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_bulk_ids.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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import ynab 19 | from ynab.models.bulk_ids import BulkIds # noqa: E501 20 | from ynab.rest import ApiException 21 | 22 | 23 | class TestBulkIds(unittest.TestCase): 24 | """BulkIds unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testBulkIds(self): 33 | """Test BulkIds""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = ynab.models.bulk_ids.BulkIds() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import ynab 19 | from ynab.models.bulk_response import BulkResponse # noqa: E501 20 | from ynab.rest import ApiException 21 | 22 | 23 | class TestBulkResponse(unittest.TestCase): 24 | """BulkResponse unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testBulkResponse(self): 33 | """Test BulkResponse""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = ynab.models.bulk_response.BulkResponse() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import ynab 19 | from ynab.models.bulk_transactions import BulkTransactions # noqa: E501 20 | from ynab.rest import ApiException 21 | 22 | 23 | class TestBulkTransactions(unittest.TestCase): 24 | """BulkTransactions unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testBulkTransactions(self): 33 | """Test BulkTransactions""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = ynab.models.bulk_transactions.BulkTransactions() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import ynab 19 | from ynab.categories_api import CategoriesApi # noqa: E501 20 | from ynab.rest import ApiException 21 | 22 | 23 | class TestCategoriesApi(unittest.TestCase): 24 | """CategoriesApi unit test stubs""" 25 | 26 | def setUp(self): 27 | self.api = ynab.categories_api.CategoriesApi() # noqa: E501 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def test_get_categories(self): 33 | """Test case for get_categories 34 | 35 | List categories # noqa: E501 36 | """ 37 | pass 38 | 39 | def test_get_category_by_id(self): 40 | """Test case for get_category_by_id 41 | 42 | Single category # noqa: E501 43 | """ 44 | pass 45 | 46 | 47 | if __name__ == '__main__': 48 | unittest.main() 49 | -------------------------------------------------------------------------------- /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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import ynab 19 | from ynab.models.categories_response import CategoriesResponse # noqa: E501 20 | from ynab.rest import ApiException 21 | 22 | 23 | class TestCategoriesResponse(unittest.TestCase): 24 | """CategoriesResponse unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testCategoriesResponse(self): 33 | """Test CategoriesResponse""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = ynab.models.categories_response.CategoriesResponse() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import ynab 19 | from ynab.models.category import Category # noqa: E501 20 | from ynab.rest import ApiException 21 | 22 | 23 | class TestCategory(unittest.TestCase): 24 | """Category unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testCategory(self): 33 | """Test Category""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = ynab.models.category.Category() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import ynab 19 | from ynab.models.category_group import CategoryGroup # noqa: E501 20 | from ynab.rest import ApiException 21 | 22 | 23 | class TestCategoryGroup(unittest.TestCase): 24 | """CategoryGroup unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testCategoryGroup(self): 33 | """Test CategoryGroup""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = ynab.models.category_group.CategoryGroup() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import ynab 19 | from ynab.models.category_group_with_categories import CategoryGroupWithCategories # noqa: E501 20 | from ynab.rest import ApiException 21 | 22 | 23 | class TestCategoryGroupWithCategories(unittest.TestCase): 24 | """CategoryGroupWithCategories unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testCategoryGroupWithCategories(self): 33 | """Test CategoryGroupWithCategories""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = ynab.models.category_group_with_categories.CategoryGroupWithCategories() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_category_groups_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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import ynab 19 | from ynab.models.category_groups_wrapper import CategoryGroupsWrapper # noqa: E501 20 | from ynab.rest import ApiException 21 | 22 | 23 | class TestCategoryGroupsWrapper(unittest.TestCase): 24 | """CategoryGroupsWrapper unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testCategoryGroupsWrapper(self): 33 | """Test CategoryGroupsWrapper""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = ynab.models.category_groups_wrapper.CategoryGroupsWrapper() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import ynab 19 | from ynab.models.category_response import CategoryResponse # noqa: E501 20 | from ynab.rest import ApiException 21 | 22 | 23 | class TestCategoryResponse(unittest.TestCase): 24 | """CategoryResponse unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testCategoryResponse(self): 33 | """Test CategoryResponse""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = ynab.models.category_response.CategoryResponse() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import ynab 19 | from ynab.models.category_wrapper import CategoryWrapper # noqa: E501 20 | from ynab.rest import ApiException 21 | 22 | 23 | class TestCategoryWrapper(unittest.TestCase): 24 | """CategoryWrapper unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testCategoryWrapper(self): 33 | """Test CategoryWrapper""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = ynab.models.category_wrapper.CategoryWrapper() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import ynab 19 | from ynab.models.currency_format import CurrencyFormat # noqa: E501 20 | from ynab.rest import ApiException 21 | 22 | 23 | class TestCurrencyFormat(unittest.TestCase): 24 | """CurrencyFormat unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testCurrencyFormat(self): 33 | """Test CurrencyFormat""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = ynab.models.currency_format.CurrencyFormat() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import ynab 19 | from ynab.models.date_format import DateFormat # noqa: E501 20 | from ynab.rest import ApiException 21 | 22 | 23 | class TestDateFormat(unittest.TestCase): 24 | """DateFormat unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testDateFormat(self): 33 | """Test DateFormat""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = ynab.models.date_format.DateFormat() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import ynab 19 | from ynab.models.error_detail import ErrorDetail # noqa: E501 20 | from ynab.rest import ApiException 21 | 22 | 23 | class TestErrorDetail(unittest.TestCase): 24 | """ErrorDetail unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testErrorDetail(self): 33 | """Test ErrorDetail""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = ynab.models.error_detail.ErrorDetail() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import ynab 19 | from ynab.models.error_response import ErrorResponse # noqa: E501 20 | from ynab.rest import ApiException 21 | 22 | 23 | class TestErrorResponse(unittest.TestCase): 24 | """ErrorResponse unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testErrorResponse(self): 33 | """Test ErrorResponse""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = ynab.models.error_response.ErrorResponse() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import ynab 19 | from ynab.models.hybrid_transaction import HybridTransaction # noqa: E501 20 | from ynab.rest import ApiException 21 | 22 | 23 | class TestHybridTransaction(unittest.TestCase): 24 | """HybridTransaction unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testHybridTransaction(self): 33 | """Test HybridTransaction""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = ynab.models.hybrid_transaction.HybridTransaction() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import ynab 19 | from ynab.models.hybrid_transactions_response import HybridTransactionsResponse # noqa: E501 20 | from ynab.rest import ApiException 21 | 22 | 23 | class TestHybridTransactionsResponse(unittest.TestCase): 24 | """HybridTransactionsResponse unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testHybridTransactionsResponse(self): 33 | """Test HybridTransactionsResponse""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = ynab.models.hybrid_transactions_response.HybridTransactionsResponse() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_hybrid_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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import ynab 19 | from ynab.models.hybrid_transactions_wrapper import HybridTransactionsWrapper # noqa: E501 20 | from ynab.rest import ApiException 21 | 22 | 23 | class TestHybridTransactionsWrapper(unittest.TestCase): 24 | """HybridTransactionsWrapper unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testHybridTransactionsWrapper(self): 33 | """Test HybridTransactionsWrapper""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = ynab.models.hybrid_transactions_wrapper.HybridTransactionsWrapper() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import ynab 19 | from ynab.models.month_detail import MonthDetail # noqa: E501 20 | from ynab.rest import ApiException 21 | 22 | 23 | class TestMonthDetail(unittest.TestCase): 24 | """MonthDetail unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testMonthDetail(self): 33 | """Test MonthDetail""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = ynab.models.month_detail.MonthDetail() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import ynab 19 | from ynab.models.month_detail_response import MonthDetailResponse # noqa: E501 20 | from ynab.rest import ApiException 21 | 22 | 23 | class TestMonthDetailResponse(unittest.TestCase): 24 | """MonthDetailResponse unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testMonthDetailResponse(self): 33 | """Test MonthDetailResponse""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = ynab.models.month_detail_response.MonthDetailResponse() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_month_detail_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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import ynab 19 | from ynab.models.month_detail_wrapper import MonthDetailWrapper # noqa: E501 20 | from ynab.rest import ApiException 21 | 22 | 23 | class TestMonthDetailWrapper(unittest.TestCase): 24 | """MonthDetailWrapper unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testMonthDetailWrapper(self): 33 | """Test MonthDetailWrapper""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = ynab.models.month_detail_wrapper.MonthDetailWrapper() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import ynab 19 | from ynab.models.month_summaries_response import MonthSummariesResponse # noqa: E501 20 | from ynab.rest import ApiException 21 | 22 | 23 | class TestMonthSummariesResponse(unittest.TestCase): 24 | """MonthSummariesResponse unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testMonthSummariesResponse(self): 33 | """Test MonthSummariesResponse""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = ynab.models.month_summaries_response.MonthSummariesResponse() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_month_summaries_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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import ynab 19 | from ynab.models.month_summaries_wrapper import MonthSummariesWrapper # noqa: E501 20 | from ynab.rest import ApiException 21 | 22 | 23 | class TestMonthSummariesWrapper(unittest.TestCase): 24 | """MonthSummariesWrapper unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testMonthSummariesWrapper(self): 33 | """Test MonthSummariesWrapper""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = ynab.models.month_summaries_wrapper.MonthSummariesWrapper() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import ynab 19 | from ynab.models.month_summary import MonthSummary # noqa: E501 20 | from ynab.rest import ApiException 21 | 22 | 23 | class TestMonthSummary(unittest.TestCase): 24 | """MonthSummary unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testMonthSummary(self): 33 | """Test MonthSummary""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = ynab.models.month_summary.MonthSummary() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import ynab 19 | from ynab.months_api import MonthsApi # noqa: E501 20 | from ynab.rest import ApiException 21 | 22 | 23 | class TestMonthsApi(unittest.TestCase): 24 | """MonthsApi unit test stubs""" 25 | 26 | def setUp(self): 27 | self.api = ynab.months_api.MonthsApi() # noqa: E501 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def test_get_budget_month(self): 33 | """Test case for get_budget_month 34 | 35 | Single budget month # noqa: E501 36 | """ 37 | pass 38 | 39 | def test_get_budget_months(self): 40 | """Test case for get_budget_months 41 | 42 | List budget months # noqa: E501 43 | """ 44 | pass 45 | 46 | 47 | if __name__ == '__main__': 48 | unittest.main() 49 | -------------------------------------------------------------------------------- /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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import ynab 19 | from ynab.models.payee import Payee # noqa: E501 20 | from ynab.rest import ApiException 21 | 22 | 23 | class TestPayee(unittest.TestCase): 24 | """Payee unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testPayee(self): 33 | """Test Payee""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = ynab.models.payee.Payee() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import ynab 19 | from ynab.models.payee_location import PayeeLocation # noqa: E501 20 | from ynab.rest import ApiException 21 | 22 | 23 | class TestPayeeLocation(unittest.TestCase): 24 | """PayeeLocation unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testPayeeLocation(self): 33 | """Test PayeeLocation""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = ynab.models.payee_location.PayeeLocation() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import ynab 19 | from ynab.models.payee_location_response import PayeeLocationResponse # noqa: E501 20 | from ynab.rest import ApiException 21 | 22 | 23 | class TestPayeeLocationResponse(unittest.TestCase): 24 | """PayeeLocationResponse unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testPayeeLocationResponse(self): 33 | """Test PayeeLocationResponse""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = ynab.models.payee_location_response.PayeeLocationResponse() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_payee_location_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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import ynab 19 | from ynab.models.payee_location_wrapper import PayeeLocationWrapper # noqa: E501 20 | from ynab.rest import ApiException 21 | 22 | 23 | class TestPayeeLocationWrapper(unittest.TestCase): 24 | """PayeeLocationWrapper unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testPayeeLocationWrapper(self): 33 | """Test PayeeLocationWrapper""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = ynab.models.payee_location_wrapper.PayeeLocationWrapper() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import ynab 19 | from ynab.payee_locations_api import PayeeLocationsApi # noqa: E501 20 | from ynab.rest import ApiException 21 | 22 | 23 | class TestPayeeLocationsApi(unittest.TestCase): 24 | """PayeeLocationsApi unit test stubs""" 25 | 26 | def setUp(self): 27 | self.api = ynab.payee_locations_api.PayeeLocationsApi() # noqa: E501 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def test_get_payee_location_by_id(self): 33 | """Test case for get_payee_location_by_id 34 | 35 | Single payee location # noqa: E501 36 | """ 37 | pass 38 | 39 | def test_get_payee_locations(self): 40 | """Test case for get_payee_locations 41 | 42 | List payee locations # noqa: E501 43 | """ 44 | pass 45 | 46 | def test_get_payee_locations_by_payee(self): 47 | """Test case for get_payee_locations_by_payee 48 | 49 | List locations for a payee # noqa: E501 50 | """ 51 | pass 52 | 53 | 54 | if __name__ == '__main__': 55 | unittest.main() 56 | -------------------------------------------------------------------------------- /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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import ynab 19 | from ynab.models.payee_locations_response import PayeeLocationsResponse # noqa: E501 20 | from ynab.rest import ApiException 21 | 22 | 23 | class TestPayeeLocationsResponse(unittest.TestCase): 24 | """PayeeLocationsResponse unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testPayeeLocationsResponse(self): 33 | """Test PayeeLocationsResponse""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = ynab.models.payee_locations_response.PayeeLocationsResponse() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_payee_locations_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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import ynab 19 | from ynab.models.payee_locations_wrapper import PayeeLocationsWrapper # noqa: E501 20 | from ynab.rest import ApiException 21 | 22 | 23 | class TestPayeeLocationsWrapper(unittest.TestCase): 24 | """PayeeLocationsWrapper unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testPayeeLocationsWrapper(self): 33 | """Test PayeeLocationsWrapper""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = ynab.models.payee_locations_wrapper.PayeeLocationsWrapper() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import ynab 19 | from ynab.models.payee_response import PayeeResponse # noqa: E501 20 | from ynab.rest import ApiException 21 | 22 | 23 | class TestPayeeResponse(unittest.TestCase): 24 | """PayeeResponse unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testPayeeResponse(self): 33 | """Test PayeeResponse""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = ynab.models.payee_response.PayeeResponse() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_payee_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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import ynab 19 | from ynab.models.payee_wrapper import PayeeWrapper # noqa: E501 20 | from ynab.rest import ApiException 21 | 22 | 23 | class TestPayeeWrapper(unittest.TestCase): 24 | """PayeeWrapper unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testPayeeWrapper(self): 33 | """Test PayeeWrapper""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = ynab.models.payee_wrapper.PayeeWrapper() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import ynab 19 | from ynab.payees_api import PayeesApi # noqa: E501 20 | from ynab.rest import ApiException 21 | 22 | 23 | class TestPayeesApi(unittest.TestCase): 24 | """PayeesApi unit test stubs""" 25 | 26 | def setUp(self): 27 | self.api = ynab.payees_api.PayeesApi() # noqa: E501 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def test_get_payee_by_id(self): 33 | """Test case for get_payee_by_id 34 | 35 | Single payee # noqa: E501 36 | """ 37 | pass 38 | 39 | def test_get_payees(self): 40 | """Test case for get_payees 41 | 42 | List payees # noqa: E501 43 | """ 44 | pass 45 | 46 | 47 | if __name__ == '__main__': 48 | unittest.main() 49 | -------------------------------------------------------------------------------- /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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import ynab 19 | from ynab.models.payees_response import PayeesResponse # noqa: E501 20 | from ynab.rest import ApiException 21 | 22 | 23 | class TestPayeesResponse(unittest.TestCase): 24 | """PayeesResponse unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testPayeesResponse(self): 33 | """Test PayeesResponse""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = ynab.models.payees_response.PayeesResponse() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_payees_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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import ynab 19 | from ynab.models.payees_wrapper import PayeesWrapper # noqa: E501 20 | from ynab.rest import ApiException 21 | 22 | 23 | class TestPayeesWrapper(unittest.TestCase): 24 | """PayeesWrapper unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testPayeesWrapper(self): 33 | """Test PayeesWrapper""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = ynab.models.payees_wrapper.PayeesWrapper() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import ynab 19 | from ynab.models.save_transaction import SaveTransaction # noqa: E501 20 | from ynab.rest import ApiException 21 | 22 | 23 | class TestSaveTransaction(unittest.TestCase): 24 | """SaveTransaction unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testSaveTransaction(self): 33 | """Test SaveTransaction""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = ynab.models.save_transaction.SaveTransaction() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import ynab 19 | from ynab.models.save_transaction_wrapper import SaveTransactionWrapper # noqa: E501 20 | from ynab.rest import ApiException 21 | 22 | 23 | class TestSaveTransactionWrapper(unittest.TestCase): 24 | """SaveTransactionWrapper unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testSaveTransactionWrapper(self): 33 | """Test SaveTransactionWrapper""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = ynab.models.save_transaction_wrapper.SaveTransactionWrapper() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import ynab 19 | from ynab.models.scheduled_sub_transaction import ScheduledSubTransaction # noqa: E501 20 | from ynab.rest import ApiException 21 | 22 | 23 | class TestScheduledSubTransaction(unittest.TestCase): 24 | """ScheduledSubTransaction unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testScheduledSubTransaction(self): 33 | """Test ScheduledSubTransaction""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = ynab.models.scheduled_sub_transaction.ScheduledSubTransaction() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import ynab 19 | from ynab.models.scheduled_transaction_detail import ScheduledTransactionDetail # noqa: E501 20 | from ynab.rest import ApiException 21 | 22 | 23 | class TestScheduledTransactionDetail(unittest.TestCase): 24 | """ScheduledTransactionDetail unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testScheduledTransactionDetail(self): 33 | """Test ScheduledTransactionDetail""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = ynab.models.scheduled_transaction_detail.ScheduledTransactionDetail() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import ynab 19 | from ynab.models.scheduled_transaction_response import ScheduledTransactionResponse # noqa: E501 20 | from ynab.rest import ApiException 21 | 22 | 23 | class TestScheduledTransactionResponse(unittest.TestCase): 24 | """ScheduledTransactionResponse unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testScheduledTransactionResponse(self): 33 | """Test ScheduledTransactionResponse""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = ynab.models.scheduled_transaction_response.ScheduledTransactionResponse() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import ynab 19 | from ynab.models.scheduled_transaction_summary import ScheduledTransactionSummary # noqa: E501 20 | from ynab.rest import ApiException 21 | 22 | 23 | class TestScheduledTransactionSummary(unittest.TestCase): 24 | """ScheduledTransactionSummary unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testScheduledTransactionSummary(self): 33 | """Test ScheduledTransactionSummary""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = ynab.models.scheduled_transaction_summary.ScheduledTransactionSummary() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_scheduled_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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import ynab 19 | from ynab.models.scheduled_transaction_wrapper import ScheduledTransactionWrapper # noqa: E501 20 | from ynab.rest import ApiException 21 | 22 | 23 | class TestScheduledTransactionWrapper(unittest.TestCase): 24 | """ScheduledTransactionWrapper unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testScheduledTransactionWrapper(self): 33 | """Test ScheduledTransactionWrapper""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = ynab.models.scheduled_transaction_wrapper.ScheduledTransactionWrapper() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import ynab 19 | from ynab.scheduled_transactions_api import ScheduledTransactionsApi # noqa: E501 20 | from ynab.rest import ApiException 21 | 22 | 23 | class TestScheduledTransactionsApi(unittest.TestCase): 24 | """ScheduledTransactionsApi unit test stubs""" 25 | 26 | def setUp(self): 27 | self.api = ynab.scheduled_transactions_api.ScheduledTransactionsApi() # noqa: E501 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def test_get_scheduled_transaction_by_id(self): 33 | """Test case for get_scheduled_transaction_by_id 34 | 35 | Single scheduled transaction # noqa: E501 36 | """ 37 | pass 38 | 39 | def test_get_scheduled_transactions(self): 40 | """Test case for get_scheduled_transactions 41 | 42 | List scheduled transactions # noqa: E501 43 | """ 44 | pass 45 | 46 | 47 | if __name__ == '__main__': 48 | unittest.main() 49 | -------------------------------------------------------------------------------- /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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import ynab 19 | from ynab.models.scheduled_transactions_response import ScheduledTransactionsResponse # noqa: E501 20 | from ynab.rest import ApiException 21 | 22 | 23 | class TestScheduledTransactionsResponse(unittest.TestCase): 24 | """ScheduledTransactionsResponse unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testScheduledTransactionsResponse(self): 33 | """Test ScheduledTransactionsResponse""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = ynab.models.scheduled_transactions_response.ScheduledTransactionsResponse() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_scheduled_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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import ynab 19 | from ynab.models.scheduled_transactions_wrapper import ScheduledTransactionsWrapper # noqa: E501 20 | from ynab.rest import ApiException 21 | 22 | 23 | class TestScheduledTransactionsWrapper(unittest.TestCase): 24 | """ScheduledTransactionsWrapper unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testScheduledTransactionsWrapper(self): 33 | """Test ScheduledTransactionsWrapper""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = ynab.models.scheduled_transactions_wrapper.ScheduledTransactionsWrapper() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import ynab 19 | from ynab.models.sub_transaction import SubTransaction # noqa: E501 20 | from ynab.rest import ApiException 21 | 22 | 23 | class TestSubTransaction(unittest.TestCase): 24 | """SubTransaction unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testSubTransaction(self): 33 | """Test SubTransaction""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = ynab.models.sub_transaction.SubTransaction() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import ynab 19 | from ynab.models.transaction_detail import TransactionDetail # noqa: E501 20 | from ynab.rest import ApiException 21 | 22 | 23 | class TestTransactionDetail(unittest.TestCase): 24 | """TransactionDetail unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testTransactionDetail(self): 33 | """Test TransactionDetail""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = ynab.models.transaction_detail.TransactionDetail() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import ynab 19 | from ynab.models.transaction_response import TransactionResponse # noqa: E501 20 | from ynab.rest import ApiException 21 | 22 | 23 | class TestTransactionResponse(unittest.TestCase): 24 | """TransactionResponse unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testTransactionResponse(self): 33 | """Test TransactionResponse""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = ynab.models.transaction_response.TransactionResponse() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import ynab 19 | from ynab.models.transaction_summary import TransactionSummary # noqa: E501 20 | from ynab.rest import ApiException 21 | 22 | 23 | class TestTransactionSummary(unittest.TestCase): 24 | """TransactionSummary unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testTransactionSummary(self): 33 | """Test TransactionSummary""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = ynab.models.transaction_summary.TransactionSummary() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import ynab 19 | from ynab.models.transaction_wrapper import TransactionWrapper # noqa: E501 20 | from ynab.rest import ApiException 21 | 22 | 23 | class TestTransactionWrapper(unittest.TestCase): 24 | """TransactionWrapper unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testTransactionWrapper(self): 33 | """Test TransactionWrapper""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = ynab.models.transaction_wrapper.TransactionWrapper() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import ynab 19 | from ynab.transactions_api import TransactionsApi # noqa: E501 20 | from ynab.rest import ApiException 21 | 22 | 23 | class TestTransactionsApi(unittest.TestCase): 24 | """TransactionsApi unit test stubs""" 25 | 26 | def setUp(self): 27 | self.api = ynab.transactions_api.TransactionsApi() # noqa: E501 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def test_bulk_create_transactions(self): 33 | """Test case for bulk_create_transactions 34 | 35 | Bulk create transactions # noqa: E501 36 | """ 37 | pass 38 | 39 | def test_create_transaction(self): 40 | """Test case for create_transaction 41 | 42 | Create new transaction # noqa: E501 43 | """ 44 | pass 45 | 46 | def test_get_transactions(self): 47 | """Test case for get_transactions 48 | 49 | List transactions # noqa: E501 50 | """ 51 | pass 52 | 53 | def test_get_transactions_by_account(self): 54 | """Test case for get_transactions_by_account 55 | 56 | List account transactions # noqa: E501 57 | """ 58 | pass 59 | 60 | def test_get_transactions_by_category(self): 61 | """Test case for get_transactions_by_category 62 | 63 | List category transactions # noqa: E501 64 | """ 65 | pass 66 | 67 | def test_get_transactions_by_id(self): 68 | """Test case for get_transactions_by_id 69 | 70 | Single transaction # noqa: E501 71 | """ 72 | pass 73 | 74 | def test_get_transactions_by_payee(self): 75 | """Test case for get_transactions_by_payee 76 | 77 | List payee transactions # noqa: E501 78 | """ 79 | pass 80 | 81 | def test_update_transaction(self): 82 | """Test case for update_transaction 83 | 84 | Updates an existing transaction # noqa: E501 85 | """ 86 | pass 87 | 88 | 89 | if __name__ == '__main__': 90 | unittest.main() 91 | -------------------------------------------------------------------------------- /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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import ynab 19 | from ynab.models.transactions_response import TransactionsResponse # noqa: E501 20 | from ynab.rest import ApiException 21 | 22 | 23 | class TestTransactionsResponse(unittest.TestCase): 24 | """TransactionsResponse unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testTransactionsResponse(self): 33 | """Test TransactionsResponse""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = ynab.models.transactions_response.TransactionsResponse() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import ynab 19 | from ynab.models.transactions_wrapper import TransactionsWrapper # noqa: E501 20 | from ynab.rest import ApiException 21 | 22 | 23 | class TestTransactionsWrapper(unittest.TestCase): 24 | """TransactionsWrapper unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testTransactionsWrapper(self): 33 | """Test TransactionsWrapper""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = ynab.models.transactions_wrapper.TransactionsWrapper() # noqa: E501 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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import ynab 19 | from ynab.models.user import User # noqa: E501 20 | from ynab.rest import ApiException 21 | 22 | 23 | class TestUser(unittest.TestCase): 24 | """User unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testUser(self): 33 | """Test User""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = ynab.models.user.User() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import ynab 19 | from ynab.user_api import UserApi # noqa: E501 20 | from ynab.rest import ApiException 21 | 22 | 23 | class TestUserApi(unittest.TestCase): 24 | """UserApi unit test stubs""" 25 | 26 | def setUp(self): 27 | self.api = ynab.user_api.UserApi() # noqa: E501 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def test_get_user(self): 33 | """Test case for get_user 34 | 35 | User info # noqa: E501 36 | """ 37 | pass 38 | 39 | 40 | if __name__ == '__main__': 41 | unittest.main() 42 | -------------------------------------------------------------------------------- /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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import ynab 19 | from ynab.models.user_response import UserResponse # noqa: E501 20 | from ynab.rest import ApiException 21 | 22 | 23 | class TestUserResponse(unittest.TestCase): 24 | """UserResponse unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testUserResponse(self): 33 | """Test UserResponse""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = ynab.models.user_response.UserResponse() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_user_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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import ynab 19 | from ynab.models.user_wrapper import UserWrapper # noqa: E501 20 | from ynab.rest import ApiException 21 | 22 | 23 | class TestUserWrapper(unittest.TestCase): 24 | """UserWrapper unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testUserWrapper(self): 33 | """Test UserWrapper""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = ynab.models.user_wrapper.UserWrapper() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /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 | [] -------------------------------------------------------------------------------- /ynab/models/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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | import pprint 15 | import re # noqa: F401 16 | 17 | import six 18 | 19 | from ynab.models.account_wrapper import AccountWrapper # noqa: F401,E501 20 | 21 | 22 | class AccountResponse(object): 23 | """NOTE: This class is auto generated by the swagger code generator program. 24 | 25 | Do not edit the class manually. 26 | """ 27 | 28 | """ 29 | Attributes: 30 | swagger_types (dict): The key is attribute name 31 | and the value is attribute type. 32 | attribute_map (dict): The key is attribute name 33 | and the value is json key in definition. 34 | """ 35 | swagger_types = { 36 | 'data': 'AccountWrapper' 37 | } 38 | 39 | attribute_map = { 40 | 'data': 'data' 41 | } 42 | 43 | def __init__(self, data=None): # noqa: E501 44 | """AccountResponse - a model defined in Swagger""" # noqa: E501 45 | 46 | self._data = None 47 | self.discriminator = None 48 | 49 | self.data = data 50 | 51 | @property 52 | def data(self): 53 | """Gets the data of this AccountResponse. # noqa: E501 54 | 55 | 56 | :return: The data of this AccountResponse. # noqa: E501 57 | :rtype: AccountWrapper 58 | """ 59 | return self._data 60 | 61 | @data.setter 62 | def data(self, data): 63 | """Sets the data of this AccountResponse. 64 | 65 | 66 | :param data: The data of this AccountResponse. # noqa: E501 67 | :type: AccountWrapper 68 | """ 69 | if data is None: 70 | raise ValueError("Invalid value for `data`, must not be `None`") # noqa: E501 71 | 72 | self._data = data 73 | 74 | def to_dict(self): 75 | """Returns the model properties as a dict""" 76 | result = {} 77 | 78 | for attr, _ in six.iteritems(self.swagger_types): 79 | value = getattr(self, attr) 80 | if isinstance(value, list): 81 | result[attr] = list(map( 82 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 83 | value 84 | )) 85 | elif hasattr(value, "to_dict"): 86 | result[attr] = value.to_dict() 87 | elif isinstance(value, dict): 88 | result[attr] = dict(map( 89 | lambda item: (item[0], item[1].to_dict()) 90 | if hasattr(item[1], "to_dict") else item, 91 | value.items() 92 | )) 93 | else: 94 | result[attr] = value 95 | 96 | return result 97 | 98 | def to_str(self): 99 | """Returns the string representation of the model""" 100 | return pprint.pformat(self.to_dict()) 101 | 102 | def __repr__(self): 103 | """For `print` and `pprint`""" 104 | return self.to_str() 105 | 106 | def __eq__(self, other): 107 | """Returns true if both objects are equal""" 108 | if not isinstance(other, AccountResponse): 109 | return False 110 | 111 | return self.__dict__ == other.__dict__ 112 | 113 | def __ne__(self, other): 114 | """Returns true if both objects are not equal""" 115 | return not self == other 116 | -------------------------------------------------------------------------------- /ynab/models/account_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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | import pprint 15 | import re # noqa: F401 16 | 17 | import six 18 | 19 | from ynab.models.account import Account # noqa: F401,E501 20 | 21 | 22 | class AccountWrapper(object): 23 | """NOTE: This class is auto generated by the swagger code generator program. 24 | 25 | Do not edit the class manually. 26 | """ 27 | 28 | """ 29 | Attributes: 30 | swagger_types (dict): The key is attribute name 31 | and the value is attribute type. 32 | attribute_map (dict): The key is attribute name 33 | and the value is json key in definition. 34 | """ 35 | swagger_types = { 36 | 'account': 'Account' 37 | } 38 | 39 | attribute_map = { 40 | 'account': 'account' 41 | } 42 | 43 | def __init__(self, account=None): # noqa: E501 44 | """AccountWrapper - a model defined in Swagger""" # noqa: E501 45 | 46 | self._account = None 47 | self.discriminator = None 48 | 49 | self.account = account 50 | 51 | @property 52 | def account(self): 53 | """Gets the account of this AccountWrapper. # noqa: E501 54 | 55 | 56 | :return: The account of this AccountWrapper. # noqa: E501 57 | :rtype: Account 58 | """ 59 | return self._account 60 | 61 | @account.setter 62 | def account(self, account): 63 | """Sets the account of this AccountWrapper. 64 | 65 | 66 | :param account: The account of this AccountWrapper. # noqa: E501 67 | :type: Account 68 | """ 69 | if account is None: 70 | raise ValueError("Invalid value for `account`, must not be `None`") # noqa: E501 71 | 72 | self._account = account 73 | 74 | def to_dict(self): 75 | """Returns the model properties as a dict""" 76 | result = {} 77 | 78 | for attr, _ in six.iteritems(self.swagger_types): 79 | value = getattr(self, attr) 80 | if isinstance(value, list): 81 | result[attr] = list(map( 82 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 83 | value 84 | )) 85 | elif hasattr(value, "to_dict"): 86 | result[attr] = value.to_dict() 87 | elif isinstance(value, dict): 88 | result[attr] = dict(map( 89 | lambda item: (item[0], item[1].to_dict()) 90 | if hasattr(item[1], "to_dict") else item, 91 | value.items() 92 | )) 93 | else: 94 | result[attr] = value 95 | 96 | return result 97 | 98 | def to_str(self): 99 | """Returns the string representation of the model""" 100 | return pprint.pformat(self.to_dict()) 101 | 102 | def __repr__(self): 103 | """For `print` and `pprint`""" 104 | return self.to_str() 105 | 106 | def __eq__(self, other): 107 | """Returns true if both objects are equal""" 108 | if not isinstance(other, AccountWrapper): 109 | return False 110 | 111 | return self.__dict__ == other.__dict__ 112 | 113 | def __ne__(self, other): 114 | """Returns true if both objects are not equal""" 115 | return not self == other 116 | -------------------------------------------------------------------------------- /ynab/models/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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | import pprint 15 | import re # noqa: F401 16 | 17 | import six 18 | 19 | from ynab.models.accounts_wrapper import AccountsWrapper # noqa: F401,E501 20 | 21 | 22 | class AccountsResponse(object): 23 | """NOTE: This class is auto generated by the swagger code generator program. 24 | 25 | Do not edit the class manually. 26 | """ 27 | 28 | """ 29 | Attributes: 30 | swagger_types (dict): The key is attribute name 31 | and the value is attribute type. 32 | attribute_map (dict): The key is attribute name 33 | and the value is json key in definition. 34 | """ 35 | swagger_types = { 36 | 'data': 'AccountsWrapper' 37 | } 38 | 39 | attribute_map = { 40 | 'data': 'data' 41 | } 42 | 43 | def __init__(self, data=None): # noqa: E501 44 | """AccountsResponse - a model defined in Swagger""" # noqa: E501 45 | 46 | self._data = None 47 | self.discriminator = None 48 | 49 | self.data = data 50 | 51 | @property 52 | def data(self): 53 | """Gets the data of this AccountsResponse. # noqa: E501 54 | 55 | 56 | :return: The data of this AccountsResponse. # noqa: E501 57 | :rtype: AccountsWrapper 58 | """ 59 | return self._data 60 | 61 | @data.setter 62 | def data(self, data): 63 | """Sets the data of this AccountsResponse. 64 | 65 | 66 | :param data: The data of this AccountsResponse. # noqa: E501 67 | :type: AccountsWrapper 68 | """ 69 | if data is None: 70 | raise ValueError("Invalid value for `data`, must not be `None`") # noqa: E501 71 | 72 | self._data = data 73 | 74 | def to_dict(self): 75 | """Returns the model properties as a dict""" 76 | result = {} 77 | 78 | for attr, _ in six.iteritems(self.swagger_types): 79 | value = getattr(self, attr) 80 | if isinstance(value, list): 81 | result[attr] = list(map( 82 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 83 | value 84 | )) 85 | elif hasattr(value, "to_dict"): 86 | result[attr] = value.to_dict() 87 | elif isinstance(value, dict): 88 | result[attr] = dict(map( 89 | lambda item: (item[0], item[1].to_dict()) 90 | if hasattr(item[1], "to_dict") else item, 91 | value.items() 92 | )) 93 | else: 94 | result[attr] = value 95 | 96 | return result 97 | 98 | def to_str(self): 99 | """Returns the string representation of the model""" 100 | return pprint.pformat(self.to_dict()) 101 | 102 | def __repr__(self): 103 | """For `print` and `pprint`""" 104 | return self.to_str() 105 | 106 | def __eq__(self, other): 107 | """Returns true if both objects are equal""" 108 | if not isinstance(other, AccountsResponse): 109 | return False 110 | 111 | return self.__dict__ == other.__dict__ 112 | 113 | def __ne__(self, other): 114 | """Returns true if both objects are not equal""" 115 | return not self == other 116 | -------------------------------------------------------------------------------- /ynab/models/bulk_id_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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | import pprint 15 | import re # noqa: F401 16 | 17 | import six 18 | 19 | from ynab.models.bulk_ids import BulkIds # noqa: F401,E501 20 | 21 | 22 | class BulkIdWrapper(object): 23 | """NOTE: This class is auto generated by the swagger code generator program. 24 | 25 | Do not edit the class manually. 26 | """ 27 | 28 | """ 29 | Attributes: 30 | swagger_types (dict): The key is attribute name 31 | and the value is attribute type. 32 | attribute_map (dict): The key is attribute name 33 | and the value is json key in definition. 34 | """ 35 | swagger_types = { 36 | 'bulk': 'BulkIds' 37 | } 38 | 39 | attribute_map = { 40 | 'bulk': 'bulk' 41 | } 42 | 43 | def __init__(self, bulk=None): # noqa: E501 44 | """BulkIdWrapper - a model defined in Swagger""" # noqa: E501 45 | 46 | self._bulk = None 47 | self.discriminator = None 48 | 49 | self.bulk = bulk 50 | 51 | @property 52 | def bulk(self): 53 | """Gets the bulk of this BulkIdWrapper. # noqa: E501 54 | 55 | 56 | :return: The bulk of this BulkIdWrapper. # noqa: E501 57 | :rtype: BulkIds 58 | """ 59 | return self._bulk 60 | 61 | @bulk.setter 62 | def bulk(self, bulk): 63 | """Sets the bulk of this BulkIdWrapper. 64 | 65 | 66 | :param bulk: The bulk of this BulkIdWrapper. # noqa: E501 67 | :type: BulkIds 68 | """ 69 | if bulk is None: 70 | raise ValueError("Invalid value for `bulk`, must not be `None`") # noqa: E501 71 | 72 | self._bulk = bulk 73 | 74 | def to_dict(self): 75 | """Returns the model properties as a dict""" 76 | result = {} 77 | 78 | for attr, _ in six.iteritems(self.swagger_types): 79 | value = getattr(self, attr) 80 | if isinstance(value, list): 81 | result[attr] = list(map( 82 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 83 | value 84 | )) 85 | elif hasattr(value, "to_dict"): 86 | result[attr] = value.to_dict() 87 | elif isinstance(value, dict): 88 | result[attr] = dict(map( 89 | lambda item: (item[0], item[1].to_dict()) 90 | if hasattr(item[1], "to_dict") else item, 91 | value.items() 92 | )) 93 | else: 94 | result[attr] = value 95 | 96 | return result 97 | 98 | def to_str(self): 99 | """Returns the string representation of the model""" 100 | return pprint.pformat(self.to_dict()) 101 | 102 | def __repr__(self): 103 | """For `print` and `pprint`""" 104 | return self.to_str() 105 | 106 | def __eq__(self, other): 107 | """Returns true if both objects are equal""" 108 | if not isinstance(other, BulkIdWrapper): 109 | return False 110 | 111 | return self.__dict__ == other.__dict__ 112 | 113 | def __ne__(self, other): 114 | """Returns true if both objects are not equal""" 115 | return not self == other 116 | -------------------------------------------------------------------------------- /ynab/models/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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | import pprint 15 | import re # noqa: F401 16 | 17 | import six 18 | 19 | from ynab.models.bulk_id_wrapper import BulkIdWrapper # noqa: F401,E501 20 | 21 | 22 | class BulkResponse(object): 23 | """NOTE: This class is auto generated by the swagger code generator program. 24 | 25 | Do not edit the class manually. 26 | """ 27 | 28 | """ 29 | Attributes: 30 | swagger_types (dict): The key is attribute name 31 | and the value is attribute type. 32 | attribute_map (dict): The key is attribute name 33 | and the value is json key in definition. 34 | """ 35 | swagger_types = { 36 | 'data': 'BulkIdWrapper' 37 | } 38 | 39 | attribute_map = { 40 | 'data': 'data' 41 | } 42 | 43 | def __init__(self, data=None): # noqa: E501 44 | """BulkResponse - a model defined in Swagger""" # noqa: E501 45 | 46 | self._data = None 47 | self.discriminator = None 48 | 49 | self.data = data 50 | 51 | @property 52 | def data(self): 53 | """Gets the data of this BulkResponse. # noqa: E501 54 | 55 | 56 | :return: The data of this BulkResponse. # noqa: E501 57 | :rtype: BulkIdWrapper 58 | """ 59 | return self._data 60 | 61 | @data.setter 62 | def data(self, data): 63 | """Sets the data of this BulkResponse. 64 | 65 | 66 | :param data: The data of this BulkResponse. # noqa: E501 67 | :type: BulkIdWrapper 68 | """ 69 | if data is None: 70 | raise ValueError("Invalid value for `data`, must not be `None`") # noqa: E501 71 | 72 | self._data = data 73 | 74 | def to_dict(self): 75 | """Returns the model properties as a dict""" 76 | result = {} 77 | 78 | for attr, _ in six.iteritems(self.swagger_types): 79 | value = getattr(self, attr) 80 | if isinstance(value, list): 81 | result[attr] = list(map( 82 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 83 | value 84 | )) 85 | elif hasattr(value, "to_dict"): 86 | result[attr] = value.to_dict() 87 | elif isinstance(value, dict): 88 | result[attr] = dict(map( 89 | lambda item: (item[0], item[1].to_dict()) 90 | if hasattr(item[1], "to_dict") else item, 91 | value.items() 92 | )) 93 | else: 94 | result[attr] = value 95 | 96 | return result 97 | 98 | def to_str(self): 99 | """Returns the string representation of the model""" 100 | return pprint.pformat(self.to_dict()) 101 | 102 | def __repr__(self): 103 | """For `print` and `pprint`""" 104 | return self.to_str() 105 | 106 | def __eq__(self, other): 107 | """Returns true if both objects are equal""" 108 | if not isinstance(other, BulkResponse): 109 | return False 110 | 111 | return self.__dict__ == other.__dict__ 112 | 113 | def __ne__(self, other): 114 | """Returns true if both objects are not equal""" 115 | return not self == other 116 | -------------------------------------------------------------------------------- /ynab/models/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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | import pprint 15 | import re # noqa: F401 16 | 17 | import six 18 | 19 | from ynab.models.category_wrapper import CategoryWrapper # noqa: F401,E501 20 | 21 | 22 | class CategoryResponse(object): 23 | """NOTE: This class is auto generated by the swagger code generator program. 24 | 25 | Do not edit the class manually. 26 | """ 27 | 28 | """ 29 | Attributes: 30 | swagger_types (dict): The key is attribute name 31 | and the value is attribute type. 32 | attribute_map (dict): The key is attribute name 33 | and the value is json key in definition. 34 | """ 35 | swagger_types = { 36 | 'data': 'CategoryWrapper' 37 | } 38 | 39 | attribute_map = { 40 | 'data': 'data' 41 | } 42 | 43 | def __init__(self, data=None): # noqa: E501 44 | """CategoryResponse - a model defined in Swagger""" # noqa: E501 45 | 46 | self._data = None 47 | self.discriminator = None 48 | 49 | self.data = data 50 | 51 | @property 52 | def data(self): 53 | """Gets the data of this CategoryResponse. # noqa: E501 54 | 55 | 56 | :return: The data of this CategoryResponse. # noqa: E501 57 | :rtype: CategoryWrapper 58 | """ 59 | return self._data 60 | 61 | @data.setter 62 | def data(self, data): 63 | """Sets the data of this CategoryResponse. 64 | 65 | 66 | :param data: The data of this CategoryResponse. # noqa: E501 67 | :type: CategoryWrapper 68 | """ 69 | if data is None: 70 | raise ValueError("Invalid value for `data`, must not be `None`") # noqa: E501 71 | 72 | self._data = data 73 | 74 | def to_dict(self): 75 | """Returns the model properties as a dict""" 76 | result = {} 77 | 78 | for attr, _ in six.iteritems(self.swagger_types): 79 | value = getattr(self, attr) 80 | if isinstance(value, list): 81 | result[attr] = list(map( 82 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 83 | value 84 | )) 85 | elif hasattr(value, "to_dict"): 86 | result[attr] = value.to_dict() 87 | elif isinstance(value, dict): 88 | result[attr] = dict(map( 89 | lambda item: (item[0], item[1].to_dict()) 90 | if hasattr(item[1], "to_dict") else item, 91 | value.items() 92 | )) 93 | else: 94 | result[attr] = value 95 | 96 | return result 97 | 98 | def to_str(self): 99 | """Returns the string representation of the model""" 100 | return pprint.pformat(self.to_dict()) 101 | 102 | def __repr__(self): 103 | """For `print` and `pprint`""" 104 | return self.to_str() 105 | 106 | def __eq__(self, other): 107 | """Returns true if both objects are equal""" 108 | if not isinstance(other, CategoryResponse): 109 | return False 110 | 111 | return self.__dict__ == other.__dict__ 112 | 113 | def __ne__(self, other): 114 | """Returns true if both objects are not equal""" 115 | return not self == other 116 | -------------------------------------------------------------------------------- /ynab/models/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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | import pprint 15 | import re # noqa: F401 16 | 17 | import six 18 | 19 | from ynab.models.category import Category # noqa: F401,E501 20 | 21 | 22 | class CategoryWrapper(object): 23 | """NOTE: This class is auto generated by the swagger code generator program. 24 | 25 | Do not edit the class manually. 26 | """ 27 | 28 | """ 29 | Attributes: 30 | swagger_types (dict): The key is attribute name 31 | and the value is attribute type. 32 | attribute_map (dict): The key is attribute name 33 | and the value is json key in definition. 34 | """ 35 | swagger_types = { 36 | 'category': 'Category' 37 | } 38 | 39 | attribute_map = { 40 | 'category': 'category' 41 | } 42 | 43 | def __init__(self, category=None): # noqa: E501 44 | """CategoryWrapper - a model defined in Swagger""" # noqa: E501 45 | 46 | self._category = None 47 | self.discriminator = None 48 | 49 | self.category = category 50 | 51 | @property 52 | def category(self): 53 | """Gets the category of this CategoryWrapper. # noqa: E501 54 | 55 | 56 | :return: The category of this CategoryWrapper. # noqa: E501 57 | :rtype: Category 58 | """ 59 | return self._category 60 | 61 | @category.setter 62 | def category(self, category): 63 | """Sets the category of this CategoryWrapper. 64 | 65 | 66 | :param category: The category of this CategoryWrapper. # noqa: E501 67 | :type: Category 68 | """ 69 | if category is None: 70 | raise ValueError("Invalid value for `category`, must not be `None`") # noqa: E501 71 | 72 | self._category = category 73 | 74 | def to_dict(self): 75 | """Returns the model properties as a dict""" 76 | result = {} 77 | 78 | for attr, _ in six.iteritems(self.swagger_types): 79 | value = getattr(self, attr) 80 | if isinstance(value, list): 81 | result[attr] = list(map( 82 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 83 | value 84 | )) 85 | elif hasattr(value, "to_dict"): 86 | result[attr] = value.to_dict() 87 | elif isinstance(value, dict): 88 | result[attr] = dict(map( 89 | lambda item: (item[0], item[1].to_dict()) 90 | if hasattr(item[1], "to_dict") else item, 91 | value.items() 92 | )) 93 | else: 94 | result[attr] = value 95 | 96 | return result 97 | 98 | def to_str(self): 99 | """Returns the string representation of the model""" 100 | return pprint.pformat(self.to_dict()) 101 | 102 | def __repr__(self): 103 | """For `print` and `pprint`""" 104 | return self.to_str() 105 | 106 | def __eq__(self, other): 107 | """Returns true if both objects are equal""" 108 | if not isinstance(other, CategoryWrapper): 109 | return False 110 | 111 | return self.__dict__ == other.__dict__ 112 | 113 | def __ne__(self, other): 114 | """Returns true if both objects are not equal""" 115 | return not self == other 116 | -------------------------------------------------------------------------------- /ynab/models/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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | import pprint 15 | import re # noqa: F401 16 | 17 | import six 18 | 19 | 20 | class DateFormat(object): 21 | """NOTE: This class is auto generated by the swagger code generator program. 22 | 23 | Do not edit the class manually. 24 | """ 25 | 26 | """ 27 | Attributes: 28 | swagger_types (dict): The key is attribute name 29 | and the value is attribute type. 30 | attribute_map (dict): The key is attribute name 31 | and the value is json key in definition. 32 | """ 33 | swagger_types = { 34 | 'format': 'str' 35 | } 36 | 37 | attribute_map = { 38 | 'format': 'format' 39 | } 40 | 41 | def __init__(self, format=None): # noqa: E501 42 | """DateFormat - a model defined in Swagger""" # noqa: E501 43 | 44 | self._format = None 45 | self.discriminator = None 46 | 47 | self.format = format 48 | 49 | @property 50 | def format(self): 51 | """Gets the format of this DateFormat. # noqa: E501 52 | 53 | 54 | :return: The format of this DateFormat. # noqa: E501 55 | :rtype: str 56 | """ 57 | return self._format 58 | 59 | @format.setter 60 | def format(self, format): 61 | """Sets the format of this DateFormat. 62 | 63 | 64 | :param format: The format of this DateFormat. # noqa: E501 65 | :type: str 66 | """ 67 | if format is None: 68 | raise ValueError("Invalid value for `format`, must not be `None`") # noqa: E501 69 | 70 | self._format = format 71 | 72 | def to_dict(self): 73 | """Returns the model properties as a dict""" 74 | result = {} 75 | 76 | for attr, _ in six.iteritems(self.swagger_types): 77 | value = getattr(self, attr) 78 | if isinstance(value, list): 79 | result[attr] = list(map( 80 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 81 | value 82 | )) 83 | elif hasattr(value, "to_dict"): 84 | result[attr] = value.to_dict() 85 | elif isinstance(value, dict): 86 | result[attr] = dict(map( 87 | lambda item: (item[0], item[1].to_dict()) 88 | if hasattr(item[1], "to_dict") else item, 89 | value.items() 90 | )) 91 | else: 92 | result[attr] = value 93 | 94 | return result 95 | 96 | def to_str(self): 97 | """Returns the string representation of the model""" 98 | return pprint.pformat(self.to_dict()) 99 | 100 | def __repr__(self): 101 | """For `print` and `pprint`""" 102 | return self.to_str() 103 | 104 | def __eq__(self, other): 105 | """Returns true if both objects are equal""" 106 | if not isinstance(other, DateFormat): 107 | return False 108 | 109 | return self.__dict__ == other.__dict__ 110 | 111 | def __ne__(self, other): 112 | """Returns true if both objects are not equal""" 113 | return not self == other 114 | -------------------------------------------------------------------------------- /ynab/models/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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | import pprint 15 | import re # noqa: F401 16 | 17 | import six 18 | 19 | from ynab.models.error_detail import ErrorDetail # noqa: F401,E501 20 | 21 | 22 | class ErrorResponse(object): 23 | """NOTE: This class is auto generated by the swagger code generator program. 24 | 25 | Do not edit the class manually. 26 | """ 27 | 28 | """ 29 | Attributes: 30 | swagger_types (dict): The key is attribute name 31 | and the value is attribute type. 32 | attribute_map (dict): The key is attribute name 33 | and the value is json key in definition. 34 | """ 35 | swagger_types = { 36 | 'error': 'ErrorDetail' 37 | } 38 | 39 | attribute_map = { 40 | 'error': 'error' 41 | } 42 | 43 | def __init__(self, error=None): # noqa: E501 44 | """ErrorResponse - a model defined in Swagger""" # noqa: E501 45 | 46 | self._error = None 47 | self.discriminator = None 48 | 49 | self.error = error 50 | 51 | @property 52 | def error(self): 53 | """Gets the error of this ErrorResponse. # noqa: E501 54 | 55 | 56 | :return: The error of this ErrorResponse. # noqa: E501 57 | :rtype: ErrorDetail 58 | """ 59 | return self._error 60 | 61 | @error.setter 62 | def error(self, error): 63 | """Sets the error of this ErrorResponse. 64 | 65 | 66 | :param error: The error of this ErrorResponse. # noqa: E501 67 | :type: ErrorDetail 68 | """ 69 | if error is None: 70 | raise ValueError("Invalid value for `error`, must not be `None`") # noqa: E501 71 | 72 | self._error = error 73 | 74 | def to_dict(self): 75 | """Returns the model properties as a dict""" 76 | result = {} 77 | 78 | for attr, _ in six.iteritems(self.swagger_types): 79 | value = getattr(self, attr) 80 | if isinstance(value, list): 81 | result[attr] = list(map( 82 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 83 | value 84 | )) 85 | elif hasattr(value, "to_dict"): 86 | result[attr] = value.to_dict() 87 | elif isinstance(value, dict): 88 | result[attr] = dict(map( 89 | lambda item: (item[0], item[1].to_dict()) 90 | if hasattr(item[1], "to_dict") else item, 91 | value.items() 92 | )) 93 | else: 94 | result[attr] = value 95 | 96 | return result 97 | 98 | def to_str(self): 99 | """Returns the string representation of the model""" 100 | return pprint.pformat(self.to_dict()) 101 | 102 | def __repr__(self): 103 | """For `print` and `pprint`""" 104 | return self.to_str() 105 | 106 | def __eq__(self, other): 107 | """Returns true if both objects are equal""" 108 | if not isinstance(other, ErrorResponse): 109 | return False 110 | 111 | return self.__dict__ == other.__dict__ 112 | 113 | def __ne__(self, other): 114 | """Returns true if both objects are not equal""" 115 | return not self == other 116 | -------------------------------------------------------------------------------- /ynab/models/month_detail_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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | import pprint 15 | import re # noqa: F401 16 | 17 | import six 18 | 19 | from ynab.models.month_detail import MonthDetail # noqa: F401,E501 20 | 21 | 22 | class MonthDetailWrapper(object): 23 | """NOTE: This class is auto generated by the swagger code generator program. 24 | 25 | Do not edit the class manually. 26 | """ 27 | 28 | """ 29 | Attributes: 30 | swagger_types (dict): The key is attribute name 31 | and the value is attribute type. 32 | attribute_map (dict): The key is attribute name 33 | and the value is json key in definition. 34 | """ 35 | swagger_types = { 36 | 'month': 'MonthDetail' 37 | } 38 | 39 | attribute_map = { 40 | 'month': 'month' 41 | } 42 | 43 | def __init__(self, month=None): # noqa: E501 44 | """MonthDetailWrapper - a model defined in Swagger""" # noqa: E501 45 | 46 | self._month = None 47 | self.discriminator = None 48 | 49 | self.month = month 50 | 51 | @property 52 | def month(self): 53 | """Gets the month of this MonthDetailWrapper. # noqa: E501 54 | 55 | 56 | :return: The month of this MonthDetailWrapper. # noqa: E501 57 | :rtype: MonthDetail 58 | """ 59 | return self._month 60 | 61 | @month.setter 62 | def month(self, month): 63 | """Sets the month of this MonthDetailWrapper. 64 | 65 | 66 | :param month: The month of this MonthDetailWrapper. # noqa: E501 67 | :type: MonthDetail 68 | """ 69 | if month is None: 70 | raise ValueError("Invalid value for `month`, must not be `None`") # noqa: E501 71 | 72 | self._month = month 73 | 74 | def to_dict(self): 75 | """Returns the model properties as a dict""" 76 | result = {} 77 | 78 | for attr, _ in six.iteritems(self.swagger_types): 79 | value = getattr(self, attr) 80 | if isinstance(value, list): 81 | result[attr] = list(map( 82 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 83 | value 84 | )) 85 | elif hasattr(value, "to_dict"): 86 | result[attr] = value.to_dict() 87 | elif isinstance(value, dict): 88 | result[attr] = dict(map( 89 | lambda item: (item[0], item[1].to_dict()) 90 | if hasattr(item[1], "to_dict") else item, 91 | value.items() 92 | )) 93 | else: 94 | result[attr] = value 95 | 96 | return result 97 | 98 | def to_str(self): 99 | """Returns the string representation of the model""" 100 | return pprint.pformat(self.to_dict()) 101 | 102 | def __repr__(self): 103 | """For `print` and `pprint`""" 104 | return self.to_str() 105 | 106 | def __eq__(self, other): 107 | """Returns true if both objects are equal""" 108 | if not isinstance(other, MonthDetailWrapper): 109 | return False 110 | 111 | return self.__dict__ == other.__dict__ 112 | 113 | def __ne__(self, other): 114 | """Returns true if both objects are not equal""" 115 | return not self == other 116 | -------------------------------------------------------------------------------- /ynab/models/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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | import pprint 15 | import re # noqa: F401 16 | 17 | import six 18 | 19 | from ynab.models.payee_wrapper import PayeeWrapper # noqa: F401,E501 20 | 21 | 22 | class PayeeResponse(object): 23 | """NOTE: This class is auto generated by the swagger code generator program. 24 | 25 | Do not edit the class manually. 26 | """ 27 | 28 | """ 29 | Attributes: 30 | swagger_types (dict): The key is attribute name 31 | and the value is attribute type. 32 | attribute_map (dict): The key is attribute name 33 | and the value is json key in definition. 34 | """ 35 | swagger_types = { 36 | 'data': 'PayeeWrapper' 37 | } 38 | 39 | attribute_map = { 40 | 'data': 'data' 41 | } 42 | 43 | def __init__(self, data=None): # noqa: E501 44 | """PayeeResponse - a model defined in Swagger""" # noqa: E501 45 | 46 | self._data = None 47 | self.discriminator = None 48 | 49 | self.data = data 50 | 51 | @property 52 | def data(self): 53 | """Gets the data of this PayeeResponse. # noqa: E501 54 | 55 | 56 | :return: The data of this PayeeResponse. # noqa: E501 57 | :rtype: PayeeWrapper 58 | """ 59 | return self._data 60 | 61 | @data.setter 62 | def data(self, data): 63 | """Sets the data of this PayeeResponse. 64 | 65 | 66 | :param data: The data of this PayeeResponse. # noqa: E501 67 | :type: PayeeWrapper 68 | """ 69 | if data is None: 70 | raise ValueError("Invalid value for `data`, must not be `None`") # noqa: E501 71 | 72 | self._data = data 73 | 74 | def to_dict(self): 75 | """Returns the model properties as a dict""" 76 | result = {} 77 | 78 | for attr, _ in six.iteritems(self.swagger_types): 79 | value = getattr(self, attr) 80 | if isinstance(value, list): 81 | result[attr] = list(map( 82 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 83 | value 84 | )) 85 | elif hasattr(value, "to_dict"): 86 | result[attr] = value.to_dict() 87 | elif isinstance(value, dict): 88 | result[attr] = dict(map( 89 | lambda item: (item[0], item[1].to_dict()) 90 | if hasattr(item[1], "to_dict") else item, 91 | value.items() 92 | )) 93 | else: 94 | result[attr] = value 95 | 96 | return result 97 | 98 | def to_str(self): 99 | """Returns the string representation of the model""" 100 | return pprint.pformat(self.to_dict()) 101 | 102 | def __repr__(self): 103 | """For `print` and `pprint`""" 104 | return self.to_str() 105 | 106 | def __eq__(self, other): 107 | """Returns true if both objects are equal""" 108 | if not isinstance(other, PayeeResponse): 109 | return False 110 | 111 | return self.__dict__ == other.__dict__ 112 | 113 | def __ne__(self, other): 114 | """Returns true if both objects are not equal""" 115 | return not self == other 116 | -------------------------------------------------------------------------------- /ynab/models/payee_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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | import pprint 15 | import re # noqa: F401 16 | 17 | import six 18 | 19 | from ynab.models.payee import Payee # noqa: F401,E501 20 | 21 | 22 | class PayeeWrapper(object): 23 | """NOTE: This class is auto generated by the swagger code generator program. 24 | 25 | Do not edit the class manually. 26 | """ 27 | 28 | """ 29 | Attributes: 30 | swagger_types (dict): The key is attribute name 31 | and the value is attribute type. 32 | attribute_map (dict): The key is attribute name 33 | and the value is json key in definition. 34 | """ 35 | swagger_types = { 36 | 'payee': 'Payee' 37 | } 38 | 39 | attribute_map = { 40 | 'payee': 'payee' 41 | } 42 | 43 | def __init__(self, payee=None): # noqa: E501 44 | """PayeeWrapper - a model defined in Swagger""" # noqa: E501 45 | 46 | self._payee = None 47 | self.discriminator = None 48 | 49 | self.payee = payee 50 | 51 | @property 52 | def payee(self): 53 | """Gets the payee of this PayeeWrapper. # noqa: E501 54 | 55 | 56 | :return: The payee of this PayeeWrapper. # noqa: E501 57 | :rtype: Payee 58 | """ 59 | return self._payee 60 | 61 | @payee.setter 62 | def payee(self, payee): 63 | """Sets the payee of this PayeeWrapper. 64 | 65 | 66 | :param payee: The payee of this PayeeWrapper. # noqa: E501 67 | :type: Payee 68 | """ 69 | if payee is None: 70 | raise ValueError("Invalid value for `payee`, must not be `None`") # noqa: E501 71 | 72 | self._payee = payee 73 | 74 | def to_dict(self): 75 | """Returns the model properties as a dict""" 76 | result = {} 77 | 78 | for attr, _ in six.iteritems(self.swagger_types): 79 | value = getattr(self, attr) 80 | if isinstance(value, list): 81 | result[attr] = list(map( 82 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 83 | value 84 | )) 85 | elif hasattr(value, "to_dict"): 86 | result[attr] = value.to_dict() 87 | elif isinstance(value, dict): 88 | result[attr] = dict(map( 89 | lambda item: (item[0], item[1].to_dict()) 90 | if hasattr(item[1], "to_dict") else item, 91 | value.items() 92 | )) 93 | else: 94 | result[attr] = value 95 | 96 | return result 97 | 98 | def to_str(self): 99 | """Returns the string representation of the model""" 100 | return pprint.pformat(self.to_dict()) 101 | 102 | def __repr__(self): 103 | """For `print` and `pprint`""" 104 | return self.to_str() 105 | 106 | def __eq__(self, other): 107 | """Returns true if both objects are equal""" 108 | if not isinstance(other, PayeeWrapper): 109 | return False 110 | 111 | return self.__dict__ == other.__dict__ 112 | 113 | def __ne__(self, other): 114 | """Returns true if both objects are not equal""" 115 | return not self == other 116 | -------------------------------------------------------------------------------- /ynab/models/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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | import pprint 15 | import re # noqa: F401 16 | 17 | import six 18 | 19 | from ynab.models.payees_wrapper import PayeesWrapper # noqa: F401,E501 20 | 21 | 22 | class PayeesResponse(object): 23 | """NOTE: This class is auto generated by the swagger code generator program. 24 | 25 | Do not edit the class manually. 26 | """ 27 | 28 | """ 29 | Attributes: 30 | swagger_types (dict): The key is attribute name 31 | and the value is attribute type. 32 | attribute_map (dict): The key is attribute name 33 | and the value is json key in definition. 34 | """ 35 | swagger_types = { 36 | 'data': 'PayeesWrapper' 37 | } 38 | 39 | attribute_map = { 40 | 'data': 'data' 41 | } 42 | 43 | def __init__(self, data=None): # noqa: E501 44 | """PayeesResponse - a model defined in Swagger""" # noqa: E501 45 | 46 | self._data = None 47 | self.discriminator = None 48 | 49 | self.data = data 50 | 51 | @property 52 | def data(self): 53 | """Gets the data of this PayeesResponse. # noqa: E501 54 | 55 | 56 | :return: The data of this PayeesResponse. # noqa: E501 57 | :rtype: PayeesWrapper 58 | """ 59 | return self._data 60 | 61 | @data.setter 62 | def data(self, data): 63 | """Sets the data of this PayeesResponse. 64 | 65 | 66 | :param data: The data of this PayeesResponse. # noqa: E501 67 | :type: PayeesWrapper 68 | """ 69 | if data is None: 70 | raise ValueError("Invalid value for `data`, must not be `None`") # noqa: E501 71 | 72 | self._data = data 73 | 74 | def to_dict(self): 75 | """Returns the model properties as a dict""" 76 | result = {} 77 | 78 | for attr, _ in six.iteritems(self.swagger_types): 79 | value = getattr(self, attr) 80 | if isinstance(value, list): 81 | result[attr] = list(map( 82 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 83 | value 84 | )) 85 | elif hasattr(value, "to_dict"): 86 | result[attr] = value.to_dict() 87 | elif isinstance(value, dict): 88 | result[attr] = dict(map( 89 | lambda item: (item[0], item[1].to_dict()) 90 | if hasattr(item[1], "to_dict") else item, 91 | value.items() 92 | )) 93 | else: 94 | result[attr] = value 95 | 96 | return result 97 | 98 | def to_str(self): 99 | """Returns the string representation of the model""" 100 | return pprint.pformat(self.to_dict()) 101 | 102 | def __repr__(self): 103 | """For `print` and `pprint`""" 104 | return self.to_str() 105 | 106 | def __eq__(self, other): 107 | """Returns true if both objects are equal""" 108 | if not isinstance(other, PayeesResponse): 109 | return False 110 | 111 | return self.__dict__ == other.__dict__ 112 | 113 | def __ne__(self, other): 114 | """Returns true if both objects are not equal""" 115 | return not self == other 116 | -------------------------------------------------------------------------------- /ynab/models/payees_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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | import pprint 15 | import re # noqa: F401 16 | 17 | import six 18 | 19 | from ynab.models.payee import Payee # noqa: F401,E501 20 | 21 | 22 | class PayeesWrapper(object): 23 | """NOTE: This class is auto generated by the swagger code generator program. 24 | 25 | Do not edit the class manually. 26 | """ 27 | 28 | """ 29 | Attributes: 30 | swagger_types (dict): The key is attribute name 31 | and the value is attribute type. 32 | attribute_map (dict): The key is attribute name 33 | and the value is json key in definition. 34 | """ 35 | swagger_types = { 36 | 'payees': 'list[Payee]' 37 | } 38 | 39 | attribute_map = { 40 | 'payees': 'payees' 41 | } 42 | 43 | def __init__(self, payees=None): # noqa: E501 44 | """PayeesWrapper - a model defined in Swagger""" # noqa: E501 45 | 46 | self._payees = None 47 | self.discriminator = None 48 | 49 | self.payees = payees 50 | 51 | @property 52 | def payees(self): 53 | """Gets the payees of this PayeesWrapper. # noqa: E501 54 | 55 | 56 | :return: The payees of this PayeesWrapper. # noqa: E501 57 | :rtype: list[Payee] 58 | """ 59 | return self._payees 60 | 61 | @payees.setter 62 | def payees(self, payees): 63 | """Sets the payees of this PayeesWrapper. 64 | 65 | 66 | :param payees: The payees of this PayeesWrapper. # noqa: E501 67 | :type: list[Payee] 68 | """ 69 | if payees is None: 70 | raise ValueError("Invalid value for `payees`, must not be `None`") # noqa: E501 71 | 72 | self._payees = payees 73 | 74 | def to_dict(self): 75 | """Returns the model properties as a dict""" 76 | result = {} 77 | 78 | for attr, _ in six.iteritems(self.swagger_types): 79 | value = getattr(self, attr) 80 | if isinstance(value, list): 81 | result[attr] = list(map( 82 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 83 | value 84 | )) 85 | elif hasattr(value, "to_dict"): 86 | result[attr] = value.to_dict() 87 | elif isinstance(value, dict): 88 | result[attr] = dict(map( 89 | lambda item: (item[0], item[1].to_dict()) 90 | if hasattr(item[1], "to_dict") else item, 91 | value.items() 92 | )) 93 | else: 94 | result[attr] = value 95 | 96 | return result 97 | 98 | def to_str(self): 99 | """Returns the string representation of the model""" 100 | return pprint.pformat(self.to_dict()) 101 | 102 | def __repr__(self): 103 | """For `print` and `pprint`""" 104 | return self.to_str() 105 | 106 | def __eq__(self, other): 107 | """Returns true if both objects are equal""" 108 | if not isinstance(other, PayeesWrapper): 109 | return False 110 | 111 | return self.__dict__ == other.__dict__ 112 | 113 | def __ne__(self, other): 114 | """Returns true if both objects are not equal""" 115 | return not self == other 116 | -------------------------------------------------------------------------------- /ynab/models/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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | import pprint 15 | import re # noqa: F401 16 | 17 | import six 18 | 19 | from ynab.models.transaction_wrapper import TransactionWrapper # noqa: F401,E501 20 | 21 | 22 | class TransactionResponse(object): 23 | """NOTE: This class is auto generated by the swagger code generator program. 24 | 25 | Do not edit the class manually. 26 | """ 27 | 28 | """ 29 | Attributes: 30 | swagger_types (dict): The key is attribute name 31 | and the value is attribute type. 32 | attribute_map (dict): The key is attribute name 33 | and the value is json key in definition. 34 | """ 35 | swagger_types = { 36 | 'data': 'TransactionWrapper' 37 | } 38 | 39 | attribute_map = { 40 | 'data': 'data' 41 | } 42 | 43 | def __init__(self, data=None): # noqa: E501 44 | """TransactionResponse - a model defined in Swagger""" # noqa: E501 45 | 46 | self._data = None 47 | self.discriminator = None 48 | 49 | self.data = data 50 | 51 | @property 52 | def data(self): 53 | """Gets the data of this TransactionResponse. # noqa: E501 54 | 55 | 56 | :return: The data of this TransactionResponse. # noqa: E501 57 | :rtype: TransactionWrapper 58 | """ 59 | return self._data 60 | 61 | @data.setter 62 | def data(self, data): 63 | """Sets the data of this TransactionResponse. 64 | 65 | 66 | :param data: The data of this TransactionResponse. # noqa: E501 67 | :type: TransactionWrapper 68 | """ 69 | if data is None: 70 | raise ValueError("Invalid value for `data`, must not be `None`") # noqa: E501 71 | 72 | self._data = data 73 | 74 | def to_dict(self): 75 | """Returns the model properties as a dict""" 76 | result = {} 77 | 78 | for attr, _ in six.iteritems(self.swagger_types): 79 | value = getattr(self, attr) 80 | if isinstance(value, list): 81 | result[attr] = list(map( 82 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 83 | value 84 | )) 85 | elif hasattr(value, "to_dict"): 86 | result[attr] = value.to_dict() 87 | elif isinstance(value, dict): 88 | result[attr] = dict(map( 89 | lambda item: (item[0], item[1].to_dict()) 90 | if hasattr(item[1], "to_dict") else item, 91 | value.items() 92 | )) 93 | else: 94 | result[attr] = value 95 | 96 | return result 97 | 98 | def to_str(self): 99 | """Returns the string representation of the model""" 100 | return pprint.pformat(self.to_dict()) 101 | 102 | def __repr__(self): 103 | """For `print` and `pprint`""" 104 | return self.to_str() 105 | 106 | def __eq__(self, other): 107 | """Returns true if both objects are equal""" 108 | if not isinstance(other, TransactionResponse): 109 | return False 110 | 111 | return self.__dict__ == other.__dict__ 112 | 113 | def __ne__(self, other): 114 | """Returns true if both objects are not equal""" 115 | return not self == other 116 | -------------------------------------------------------------------------------- /ynab/models/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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | import pprint 15 | import re # noqa: F401 16 | 17 | import six 18 | 19 | 20 | class User(object): 21 | """NOTE: This class is auto generated by the swagger code generator program. 22 | 23 | Do not edit the class manually. 24 | """ 25 | 26 | """ 27 | Attributes: 28 | swagger_types (dict): The key is attribute name 29 | and the value is attribute type. 30 | attribute_map (dict): The key is attribute name 31 | and the value is json key in definition. 32 | """ 33 | swagger_types = { 34 | 'id': 'str' 35 | } 36 | 37 | attribute_map = { 38 | 'id': 'id' 39 | } 40 | 41 | def __init__(self, id=None): # noqa: E501 42 | """User - a model defined in Swagger""" # noqa: E501 43 | 44 | self._id = None 45 | self.discriminator = None 46 | 47 | self.id = id 48 | 49 | @property 50 | def id(self): 51 | """Gets the id of this User. # noqa: E501 52 | 53 | 54 | :return: The id of this User. # noqa: E501 55 | :rtype: str 56 | """ 57 | return self._id 58 | 59 | @id.setter 60 | def id(self, id): 61 | """Sets the id of this User. 62 | 63 | 64 | :param id: The id of this User. # noqa: E501 65 | :type: str 66 | """ 67 | if id is None: 68 | raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 69 | 70 | self._id = id 71 | 72 | def to_dict(self): 73 | """Returns the model properties as a dict""" 74 | result = {} 75 | 76 | for attr, _ in six.iteritems(self.swagger_types): 77 | value = getattr(self, attr) 78 | if isinstance(value, list): 79 | result[attr] = list(map( 80 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 81 | value 82 | )) 83 | elif hasattr(value, "to_dict"): 84 | result[attr] = value.to_dict() 85 | elif isinstance(value, dict): 86 | result[attr] = dict(map( 87 | lambda item: (item[0], item[1].to_dict()) 88 | if hasattr(item[1], "to_dict") else item, 89 | value.items() 90 | )) 91 | else: 92 | result[attr] = value 93 | 94 | return result 95 | 96 | def to_str(self): 97 | """Returns the string representation of the model""" 98 | return pprint.pformat(self.to_dict()) 99 | 100 | def __repr__(self): 101 | """For `print` and `pprint`""" 102 | return self.to_str() 103 | 104 | def __eq__(self, other): 105 | """Returns true if both objects are equal""" 106 | if not isinstance(other, User): 107 | return False 108 | 109 | return self.__dict__ == other.__dict__ 110 | 111 | def __ne__(self, other): 112 | """Returns true if both objects are not equal""" 113 | return not self == other 114 | -------------------------------------------------------------------------------- /ynab/models/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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | import pprint 15 | import re # noqa: F401 16 | 17 | import six 18 | 19 | from ynab.models.user_wrapper import UserWrapper # noqa: F401,E501 20 | 21 | 22 | class UserResponse(object): 23 | """NOTE: This class is auto generated by the swagger code generator program. 24 | 25 | Do not edit the class manually. 26 | """ 27 | 28 | """ 29 | Attributes: 30 | swagger_types (dict): The key is attribute name 31 | and the value is attribute type. 32 | attribute_map (dict): The key is attribute name 33 | and the value is json key in definition. 34 | """ 35 | swagger_types = { 36 | 'data': 'UserWrapper' 37 | } 38 | 39 | attribute_map = { 40 | 'data': 'data' 41 | } 42 | 43 | def __init__(self, data=None): # noqa: E501 44 | """UserResponse - a model defined in Swagger""" # noqa: E501 45 | 46 | self._data = None 47 | self.discriminator = None 48 | 49 | self.data = data 50 | 51 | @property 52 | def data(self): 53 | """Gets the data of this UserResponse. # noqa: E501 54 | 55 | 56 | :return: The data of this UserResponse. # noqa: E501 57 | :rtype: UserWrapper 58 | """ 59 | return self._data 60 | 61 | @data.setter 62 | def data(self, data): 63 | """Sets the data of this UserResponse. 64 | 65 | 66 | :param data: The data of this UserResponse. # noqa: E501 67 | :type: UserWrapper 68 | """ 69 | if data is None: 70 | raise ValueError("Invalid value for `data`, must not be `None`") # noqa: E501 71 | 72 | self._data = data 73 | 74 | def to_dict(self): 75 | """Returns the model properties as a dict""" 76 | result = {} 77 | 78 | for attr, _ in six.iteritems(self.swagger_types): 79 | value = getattr(self, attr) 80 | if isinstance(value, list): 81 | result[attr] = list(map( 82 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 83 | value 84 | )) 85 | elif hasattr(value, "to_dict"): 86 | result[attr] = value.to_dict() 87 | elif isinstance(value, dict): 88 | result[attr] = dict(map( 89 | lambda item: (item[0], item[1].to_dict()) 90 | if hasattr(item[1], "to_dict") else item, 91 | value.items() 92 | )) 93 | else: 94 | result[attr] = value 95 | 96 | return result 97 | 98 | def to_str(self): 99 | """Returns the string representation of the model""" 100 | return pprint.pformat(self.to_dict()) 101 | 102 | def __repr__(self): 103 | """For `print` and `pprint`""" 104 | return self.to_str() 105 | 106 | def __eq__(self, other): 107 | """Returns true if both objects are equal""" 108 | if not isinstance(other, UserResponse): 109 | return False 110 | 111 | return self.__dict__ == other.__dict__ 112 | 113 | def __ne__(self, other): 114 | """Returns true if both objects are not equal""" 115 | return not self == other 116 | -------------------------------------------------------------------------------- /ynab/models/user_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 | OpenAPI spec version: 1.0.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | import pprint 15 | import re # noqa: F401 16 | 17 | import six 18 | 19 | from ynab.models.user import User # noqa: F401,E501 20 | 21 | 22 | class UserWrapper(object): 23 | """NOTE: This class is auto generated by the swagger code generator program. 24 | 25 | Do not edit the class manually. 26 | """ 27 | 28 | """ 29 | Attributes: 30 | swagger_types (dict): The key is attribute name 31 | and the value is attribute type. 32 | attribute_map (dict): The key is attribute name 33 | and the value is json key in definition. 34 | """ 35 | swagger_types = { 36 | 'user': 'User' 37 | } 38 | 39 | attribute_map = { 40 | 'user': 'user' 41 | } 42 | 43 | def __init__(self, user=None): # noqa: E501 44 | """UserWrapper - a model defined in Swagger""" # noqa: E501 45 | 46 | self._user = None 47 | self.discriminator = None 48 | 49 | self.user = user 50 | 51 | @property 52 | def user(self): 53 | """Gets the user of this UserWrapper. # noqa: E501 54 | 55 | 56 | :return: The user of this UserWrapper. # noqa: E501 57 | :rtype: User 58 | """ 59 | return self._user 60 | 61 | @user.setter 62 | def user(self, user): 63 | """Sets the user of this UserWrapper. 64 | 65 | 66 | :param user: The user of this UserWrapper. # noqa: E501 67 | :type: User 68 | """ 69 | if user is None: 70 | raise ValueError("Invalid value for `user`, must not be `None`") # noqa: E501 71 | 72 | self._user = user 73 | 74 | def to_dict(self): 75 | """Returns the model properties as a dict""" 76 | result = {} 77 | 78 | for attr, _ in six.iteritems(self.swagger_types): 79 | value = getattr(self, attr) 80 | if isinstance(value, list): 81 | result[attr] = list(map( 82 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 83 | value 84 | )) 85 | elif hasattr(value, "to_dict"): 86 | result[attr] = value.to_dict() 87 | elif isinstance(value, dict): 88 | result[attr] = dict(map( 89 | lambda item: (item[0], item[1].to_dict()) 90 | if hasattr(item[1], "to_dict") else item, 91 | value.items() 92 | )) 93 | else: 94 | result[attr] = value 95 | 96 | return result 97 | 98 | def to_str(self): 99 | """Returns the string representation of the model""" 100 | return pprint.pformat(self.to_dict()) 101 | 102 | def __repr__(self): 103 | """For `print` and `pprint`""" 104 | return self.to_str() 105 | 106 | def __eq__(self, other): 107 | """Returns true if both objects are equal""" 108 | if not isinstance(other, UserWrapper): 109 | return False 110 | 111 | return self.__dict__ == other.__dict__ 112 | 113 | def __ne__(self, other): 114 | """Returns true if both objects are not equal""" 115 | return not self == other 116 | -------------------------------------------------------------------------------- /ynab/ynab/__init__.py: -------------------------------------------------------------------------------- 1 | from __future__ import absolute_import 2 | 3 | # flake8: noqa 4 | 5 | # import apis into api package 6 | from ynab.ynab.accounts_api import AccountsApi 7 | from ynab.ynab.budgets_api import BudgetsApi 8 | from ynab.ynab.categories_api import CategoriesApi 9 | from ynab.ynab.months_api import MonthsApi 10 | from ynab.ynab.payee_locations_api import PayeeLocationsApi 11 | from ynab.ynab.payees_api import PayeesApi 12 | from ynab.ynab.scheduled_transactions_api import ScheduledTransactionsApi 13 | from ynab.ynab.transactions_api import TransactionsApi 14 | from ynab.ynab.user_api import UserApi 15 | --------------------------------------------------------------------------------