diff --git a/.gemini/config.yaml b/.gemini/config.yaml new file mode 100644 index 0000000..fc94b38 --- /dev/null +++ b/.gemini/config.yaml @@ -0,0 +1,3 @@ +have_fun: false +code_review: + disable: true diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 08b5ce1..12c9c5e 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -63,6 +63,7 @@ docs/PayeesResponseData.md docs/PostAccountWrapper.md docs/PostScheduledTransactionWrapper.md docs/PostTransactionsWrapper.md +docs/PutScheduledTransactionWrapper.md docs/PutTransactionWrapper.md docs/SaveAccount.md docs/SaveCategory.md @@ -105,9 +106,9 @@ docs/UserResponse.md docs/UserResponseData.md pyproject.toml requirements.txt -setup.cfg test-requirements.txt test/__init__.py +test/test_put_scheduled_transaction_wrapper.py tox.ini ynab/__init__.py ynab/api/__init__.py @@ -183,6 +184,7 @@ ynab/models/payees_response_data.py ynab/models/post_account_wrapper.py ynab/models/post_scheduled_transaction_wrapper.py ynab/models/post_transactions_wrapper.py +ynab/models/put_scheduled_transaction_wrapper.py ynab/models/put_transaction_wrapper.py ynab/models/save_account.py ynab/models/save_category.py diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION index 758bb9c..5f84a81 100644 --- a/.openapi-generator/VERSION +++ b/.openapi-generator/VERSION @@ -1 +1 @@ -7.10.0 +7.12.0 diff --git a/README.md b/README.md index 0045dec..cd50fd5 100644 --- a/README.md +++ b/README.md @@ -76,6 +76,8 @@ Class | Method | Description **ScheduledTransactionsApi** | [**create_scheduled_transaction**](docs/ScheduledTransactionsApi.md#create_scheduled_transaction) | Create a single scheduled transaction   | [**get_scheduled_transaction_by_id**](docs/ScheduledTransactionsApi.md#get_scheduled_transaction_by_id) | Single scheduled transaction   | [**get_scheduled_transactions**](docs/ScheduledTransactionsApi.md#get_scheduled_transactions) | List scheduled transactions +  | [**update_scheduled_transaction**](docs/ScheduledTransactionsApi.md#update_scheduled_transaction) | Update an existing scheduled transactions +  | [**delete_scheduled_transaction**](docs/ScheduledTransactionsApi.md#delete_scheduled_transaction) | Delete an existing scheduled transaction **TransactionsApi** | [**create_transaction**](docs/TransactionsApi.md#create_transaction) | Create a single transaction or multiple transactions   | [**delete_transaction**](docs/TransactionsApi.md#delete_transaction) | Deletes an existing transaction   | [**get_transaction_by_id**](docs/TransactionsApi.md#get_transaction_by_id) | Single transaction diff --git a/docs/PutScheduledTransactionWrapper.md b/docs/PutScheduledTransactionWrapper.md new file mode 100644 index 0000000..3d9acd4 --- /dev/null +++ b/docs/PutScheduledTransactionWrapper.md @@ -0,0 +1,29 @@ +# PutScheduledTransactionWrapper + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**scheduled_transaction** | [**SaveScheduledTransaction**](SaveScheduledTransaction.md) | | + +## Example + +```python +from ynab.models.put_scheduled_transaction_wrapper import PutScheduledTransactionWrapper + +# TODO update the JSON string below +json = "{}" +# create an instance of PutScheduledTransactionWrapper from a JSON string +put_scheduled_transaction_wrapper_instance = PutScheduledTransactionWrapper.from_json(json) +# print the JSON string representation of the object +print(PutScheduledTransactionWrapper.to_json()) + +# convert the object into a dict +put_scheduled_transaction_wrapper_dict = put_scheduled_transaction_wrapper_instance.to_dict() +# create an instance of PutScheduledTransactionWrapper from a dict +put_scheduled_transaction_wrapper_from_dict = PutScheduledTransactionWrapper.from_dict(put_scheduled_transaction_wrapper_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SaveCategory.md b/docs/SaveCategory.md index 0644891..9861ff0 100644 --- a/docs/SaveCategory.md +++ b/docs/SaveCategory.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **name** | **str** | | [optional] **note** | **str** | | [optional] **category_group_id** | **str** | | [optional] +**goal_target** | **int** | The goal target amount in milliunits format. This amount can only be changed if the category already has a configured goal (goal_type != null). | [optional] ## Example diff --git a/docs/ScheduledSubTransaction.md b/docs/ScheduledSubTransaction.md index cf38df1..ae981e0 100644 --- a/docs/ScheduledSubTransaction.md +++ b/docs/ScheduledSubTransaction.md @@ -10,7 +10,9 @@ Name | Type | Description | Notes **amount** | **int** | The scheduled subtransaction amount in milliunits format | **memo** | **str** | | [optional] **payee_id** | **str** | | [optional] +**payee_name** | **str** | | [optional] **category_id** | **str** | | [optional] +**category_name** | **str** | | [optional] **transfer_account_id** | **str** | If a transfer, the account_id which the scheduled subtransaction transfers to | [optional] **deleted** | **bool** | Whether or not the scheduled subtransaction has been deleted. Deleted scheduled subtransactions will only be included in delta requests. | diff --git a/docs/ScheduledTransactionsApi.md b/docs/ScheduledTransactionsApi.md index 5ebb219..79e0e7b 100644 --- a/docs/ScheduledTransactionsApi.md +++ b/docs/ScheduledTransactionsApi.md @@ -5,8 +5,10 @@ All URIs are relative to *https://api.ynab.com/v1* Method | HTTP request | Description ------------- | ------------- | ------------- [**create_scheduled_transaction**](ScheduledTransactionsApi.md#create_scheduled_transaction) | **POST** /budgets/{budget_id}/scheduled_transactions | Create a single scheduled transaction +[**delete_scheduled_transaction**](ScheduledTransactionsApi.md#delete_scheduled_transaction) | **DELETE** /budgets/{budget_id}/scheduled_transactions | Deletes an existing scheduled transaction [**get_scheduled_transaction_by_id**](ScheduledTransactionsApi.md#get_scheduled_transaction_by_id) | **GET** /budgets/{budget_id}/scheduled_transactions/{scheduled_transaction_id} | Single scheduled transaction [**get_scheduled_transactions**](ScheduledTransactionsApi.md#get_scheduled_transactions) | **GET** /budgets/{budget_id}/scheduled_transactions | List scheduled transactions +[**update_scheduled_transaction**](ScheduledTransactionsApi.md#update_scheduled_transaction) | **PUT** /budgets/{budget_id}/scheduled_transactions | Updates an existing scheduled transaction # **create_scheduled_transaction** @@ -91,6 +93,87 @@ Name | Type | Description | Notes [[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) +# **delete_scheduled_transaction** +> ScheduledTransactionResponse delete_scheduled_transaction(budget_id, scheduled_transaction_id) + +Deletes an existing scheduled transaction + +Deletes a scheduled transaction + +### Example + +* Bearer Authentication (bearer): + +```python +import ynab +from ynab.models.scheduled_transaction_response import ScheduledTransactionResponse +from ynab.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.ynab.com/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = ynab.Configuration( + host = "https://api.ynab.com/v1" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: bearer +configuration = ynab.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with ynab.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = ynab.ScheduledTransactionsApi(api_client) + budget_id = 'budget_id_example' # str | The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.ynab.com/#oauth-default-budget). + scheduled_transaction_id = 'scheduled_transaction_id_example' # str | The id of the scheduled transaction + + try: + # Deletes an existing scheduled transaction + api_response = api_instance.delete_scheduled_transaction(budget_id, scheduled_transaction_id) + print("The response of ScheduledTransactionsApi->delete_scheduled_transaction:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ScheduledTransactionsApi->delete_scheduled_transaction: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **budget_id** | **str**| The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.ynab.com/#oauth-default-budget). | + **scheduled_transaction_id** | **str**| The id of the scheduled transaction | + +### Return type + +[**ScheduledTransactionResponse**](ScheduledTransactionResponse.md) + +### Authorization + +[bearer](../README.md#bearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | The scheduled transaction was successfully deleted | - | +**404** | The scheduled transaction was not found | - | + +[[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) + # **get_scheduled_transaction_by_id** > ScheduledTransactionResponse get_scheduled_transaction_by_id(budget_id, scheduled_transaction_id) @@ -255,3 +338,87 @@ Name | Type | Description | Notes [[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) +# **update_scheduled_transaction** +> ScheduledTransactionResponse update_scheduled_transaction(budget_id, scheduled_transaction_id, put_scheduled_transaction_wrapper) + +Updates an existing scheduled transaction + +Updates a single scheduled transaction + +### Example + +* Bearer Authentication (bearer): + +```python +import ynab +from ynab.models.put_scheduled_transaction_wrapper import PutScheduledTransactionWrapper +from ynab.models.scheduled_transaction_response import ScheduledTransactionResponse +from ynab.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.ynab.com/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = ynab.Configuration( + host = "https://api.ynab.com/v1" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: bearer +configuration = ynab.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with ynab.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = ynab.ScheduledTransactionsApi(api_client) + budget_id = 'budget_id_example' # str | The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.ynab.com/#oauth-default-budget). + scheduled_transaction_id = 'scheduled_transaction_id_example' # str | The id of the scheduled transaction + put_scheduled_transaction_wrapper = ynab.PutScheduledTransactionWrapper() # PutScheduledTransactionWrapper | The scheduled transaction to update + + try: + # Updates an existing scheduled transaction + api_response = api_instance.update_scheduled_transaction(budget_id, scheduled_transaction_id, put_scheduled_transaction_wrapper) + print("The response of ScheduledTransactionsApi->update_scheduled_transaction:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ScheduledTransactionsApi->update_scheduled_transaction: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **budget_id** | **str**| The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.ynab.com/#oauth-default-budget). | + **scheduled_transaction_id** | **str**| The id of the scheduled transaction | + **put_scheduled_transaction_wrapper** | [**PutScheduledTransactionWrapper**](PutScheduledTransactionWrapper.md)| The scheduled transaction to update | + +### Return type + +[**ScheduledTransactionResponse**](ScheduledTransactionResponse.md) + +### Authorization + +[bearer](../README.md#bearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | The scheduled transaction was successfully updated | - | +**400** | The request could not be understood due to malformed syntax or validation error(s) | - | + +[[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) + diff --git a/docs/TransactionsApi.md b/docs/TransactionsApi.md index 3aac892..d18cf5d 100644 --- a/docs/TransactionsApi.md +++ b/docs/TransactionsApi.md @@ -706,7 +706,7 @@ Name | Type | Description | Notes Import transactions -Imports available transactions on all linked accounts for the given budget. Linked accounts allow transactions to be imported directly from a specified financial institution and this endpoint initiates that import. Sending a request to this endpoint is the equivalent of clicking \"Import\" on each account in the web application or tapping the \"New Transactions\" banner in the mobile applications. The response for this endpoint contains the transaction ids that have been imported. +Imports available transactions on all linked accounts for the given budget. Linked accounts allow transactions to be imported directly from a specified financial institution and this endpoint initiates that import. Sending a request to this endpoint is the equivalent of clicking "Import" on each account in the web application or tapping the "New Transactions" banner in the mobile applications. The response for this endpoint contains the transaction ids that have been imported. ### Example diff --git a/open_api_spec.yaml b/open_api_spec.yaml index e555b3b..8e990c3 100644 --- a/open_api_spec.yaml +++ b/open_api_spec.yaml @@ -6,7 +6,7 @@ info: upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - version: 1.72.1 + version: 1.74.0 servers: - url: https://api.ynab.com/v1 security: @@ -1580,6 +1580,85 @@ paths: schema: $ref: "#/components/schemas/ErrorResponse" x-codegen-request-body-name: data + put: + tags: + - Scheduled Transactions + summary: Updates an existing scheduled transaction + description: Updates a single scheduled transaction + operationId: updateScheduledTransaction + parameters: + - name: budget_id + in: path + description: >- + The id of the budget. "last-used" can be used to specify the last + used budget and "default" can be used if default budget selection is + enabled (see: https://api.ynab.com/#oauth-default-budget). + required: true + schema: + type: string + - name: scheduled_transaction_id + in: path + description: The id of the scheduled transaction + required: true + schema: + type: string + requestBody: + description: The scheduled transaction to update + content: + "application/json": + schema: + $ref: "#/components/schemas/PutScheduledTransactionWrapper" + required: true + responses: + "200": + description: The scheduled transaction was successfully updated + content: + application/json: + schema: + $ref: "#/components/schemas/ScheduledTransactionResponse" + "400": + description: >- + The request could not be understood due to malformed syntax or + validation error(s) + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + delete: + tags: + - Scheduled Transactions + summary: Deletes an existing scheduled transaction + description: Deletes a scheduled transaction + operationId: deleteScheduledTransaction + parameters: + - name: budget_id + in: path + description: >- + The id of the budget. "last-used" can be used to specify the last + used budget and "default" can be used if default budget selection is + enabled (see: https://api.ynab.com/#oauth-default-budget). + required: true + schema: + type: string + - name: scheduled_transaction_id + in: path + description: The id of the scheduled transaction + required: true + schema: + type: string + responses: + "200": + description: The scheduled transaction was successfully deleted + content: + application/json: + schema: + $ref: "#/components/schemas/ScheduledTransactionResponse" + "404": + description: The scheduled transaction was not found + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" /budgets/{budget_id}/scheduled_transactions/{scheduled_transaction_id}: get: tags: @@ -2836,6 +2915,11 @@ components: category_group_id: type: string format: uuid + goal_target: + type: integer + description: The goal target amount in milliunits format. This amount can only be changed if the category already has a configured goal (goal_type != null). + format: int64 + nullable: true PatchMonthCategoryWrapper: required: - category @@ -2986,6 +3070,13 @@ components: properties: scheduled_transaction: $ref: "#/components/schemas/ScheduledTransactionDetail" + PutScheduledTransactionWrapper: + required: + - scheduled_transaction + type: object + properties: + scheduled_transaction: + $ref: "#/components/schemas/SaveScheduledTransaction" PostScheduledTransactionWrapper: required: - scheduled_transaction @@ -3165,10 +3256,16 @@ components: type: string nullable: true format: uuid + payee_name: + type: string + nullable: true category_id: type: string nullable: true format: uuid + category_name: + type: string + nullable: true transfer_account_id: type: string nullable: true diff --git a/openapi-generator-config.yaml b/openapi-generator-config.yaml index 806d310..82071b6 100644 --- a/openapi-generator-config.yaml +++ b/openapi-generator-config.yaml @@ -1,5 +1,5 @@ packageName: ynab -packageVersion: 1.0.1 +packageVersion: 1.2.0 packageDescription: Official Python client for the YNAB API. API documentation available at https://api.ynab.com. licenseInfo: name: Apache-2.0 diff --git a/pyproject.toml b/pyproject.toml index 1a4ea99..ee171e9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,12 +1,12 @@ [tool.poetry] name = "ynab" -version = "1.0.1" -description = "Official Python client for the YNAB API. API documentation available at https://api.ynab.com. Generated from server specification version 1.72.1" +version = "1.2.0" +description = "Official Python client for the YNAB API. API documentation available at https://api.ynab.com. Generated from server specification version 1.74.0" authors = ["YNAB"] license = "Apache-2.0" readme = "README.md" repository = "https://github.com/ynab/ynab-sdk-python" -keywords = ["YNAB API Endpoints", "finance", "ynab", "budgeting", "api"] +keywords = ["finance", "ynab", "budgeting", "api"] include = ["ynab/py.typed"] [tool.poetry.dependencies] diff --git a/test/test_put_scheduled_transaction_wrapper.py b/test/test_put_scheduled_transaction_wrapper.py new file mode 100644 index 0000000..82d6499 --- /dev/null +++ b/test/test_put_scheduled_transaction_wrapper.py @@ -0,0 +1,70 @@ +# coding: utf-8 + +""" + YNAB API Endpoints + + Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com + + The version of the OpenAPI document: 1.74.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from ynab.models.put_scheduled_transaction_wrapper import PutScheduledTransactionWrapper + +class TestPutScheduledTransactionWrapper(unittest.TestCase): + """PutScheduledTransactionWrapper unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PutScheduledTransactionWrapper: + """Test PutScheduledTransactionWrapper + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PutScheduledTransactionWrapper` + """ + model = PutScheduledTransactionWrapper() + if include_optional: + return PutScheduledTransactionWrapper( + scheduled_transaction = ynab.models.save_scheduled_transaction.SaveScheduledTransaction( + account_id = '', + date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + amount = 56, + payee_id = '', + payee_name = '', + category_id = '', + memo = '', + flag_color = 'red', + frequency = 'never', ) + ) + else: + return PutScheduledTransactionWrapper( + scheduled_transaction = ynab.models.save_scheduled_transaction.SaveScheduledTransaction( + account_id = '', + date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + amount = 56, + payee_id = '', + payee_name = '', + category_id = '', + memo = '', + flag_color = 'red', + frequency = 'never', ), + ) + """ + + def testPutScheduledTransactionWrapper(self): + """Test PutScheduledTransactionWrapper""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/ynab/__init__.py b/ynab/__init__.py index f7476df..e33aea5 100644 --- a/ynab/__init__.py +++ b/ynab/__init__.py @@ -7,14 +7,14 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 -__version__ = "1.0.1" +__version__ = "1.2.0" # import apis into sdk package from ynab.api.accounts_api import AccountsApi @@ -97,6 +97,7 @@ from ynab.models.post_account_wrapper import PostAccountWrapper from ynab.models.post_scheduled_transaction_wrapper import PostScheduledTransactionWrapper from ynab.models.post_transactions_wrapper import PostTransactionsWrapper +from ynab.models.put_scheduled_transaction_wrapper import PutScheduledTransactionWrapper from ynab.models.put_transaction_wrapper import PutTransactionWrapper from ynab.models.save_account import SaveAccount from ynab.models.save_category import SaveCategory diff --git a/ynab/api/accounts_api.py b/ynab/api/accounts_api.py index 846c0d4..76354a1 100644 --- a/ynab/api/accounts_api.py +++ b/ynab/api/accounts_api.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/api/budgets_api.py b/ynab/api/budgets_api.py index 54565f2..64bee63 100644 --- a/ynab/api/budgets_api.py +++ b/ynab/api/budgets_api.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/api/categories_api.py b/ynab/api/categories_api.py index 1f750de..fd6cd81 100644 --- a/ynab/api/categories_api.py +++ b/ynab/api/categories_api.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/api/months_api.py b/ynab/api/months_api.py index cf7a52b..52b8a4d 100644 --- a/ynab/api/months_api.py +++ b/ynab/api/months_api.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/api/payee_locations_api.py b/ynab/api/payee_locations_api.py index fecdf3b..3f2625d 100644 --- a/ynab/api/payee_locations_api.py +++ b/ynab/api/payee_locations_api.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/api/payees_api.py b/ynab/api/payees_api.py index b442329..5cff1cd 100644 --- a/ynab/api/payees_api.py +++ b/ynab/api/payees_api.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/api/scheduled_transactions_api.py b/ynab/api/scheduled_transactions_api.py index 7ce7a76..bc549e4 100644 --- a/ynab/api/scheduled_transactions_api.py +++ b/ynab/api/scheduled_transactions_api.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -20,6 +20,7 @@ from typing import Optional from typing_extensions import Annotated from ynab.models.post_scheduled_transaction_wrapper import PostScheduledTransactionWrapper +from ynab.models.put_scheduled_transaction_wrapper import PutScheduledTransactionWrapper from ynab.models.scheduled_transaction_response import ScheduledTransactionResponse from ynab.models.scheduled_transactions_response import ScheduledTransactionsResponse @@ -334,7 +335,7 @@ def _create_scheduled_transaction_serialize( @validate_call - def get_scheduled_transaction_by_id( + def delete_scheduled_transaction( self, budget_id: Annotated[StrictStr, Field(description="The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.ynab.com/#oauth-default-budget).")], scheduled_transaction_id: Annotated[StrictStr, Field(description="The id of the scheduled transaction")], @@ -351,9 +352,9 @@ def get_scheduled_transaction_by_id( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ScheduledTransactionResponse: - """Single scheduled transaction + """Deletes an existing scheduled transaction - Returns a single scheduled transaction + Deletes a scheduled transaction :param budget_id: The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.ynab.com/#oauth-default-budget). (required) :type budget_id: str @@ -381,7 +382,7 @@ def get_scheduled_transaction_by_id( :return: Returns the result object. """ # noqa: E501 - _param = self._get_scheduled_transaction_by_id_serialize( + _param = self._delete_scheduled_transaction_serialize( budget_id=budget_id, scheduled_transaction_id=scheduled_transaction_id, _request_auth=_request_auth, @@ -406,7 +407,7 @@ def get_scheduled_transaction_by_id( @validate_call - def get_scheduled_transaction_by_id_with_http_info( + def delete_scheduled_transaction_with_http_info( self, budget_id: Annotated[StrictStr, Field(description="The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.ynab.com/#oauth-default-budget).")], scheduled_transaction_id: Annotated[StrictStr, Field(description="The id of the scheduled transaction")], @@ -423,9 +424,9 @@ def get_scheduled_transaction_by_id_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[ScheduledTransactionResponse]: - """Single scheduled transaction + """Deletes an existing scheduled transaction - Returns a single scheduled transaction + Deletes a scheduled transaction :param budget_id: The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.ynab.com/#oauth-default-budget). (required) :type budget_id: str @@ -453,7 +454,7 @@ def get_scheduled_transaction_by_id_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_scheduled_transaction_by_id_serialize( + _param = self._delete_scheduled_transaction_serialize( budget_id=budget_id, scheduled_transaction_id=scheduled_transaction_id, _request_auth=_request_auth, @@ -478,7 +479,7 @@ def get_scheduled_transaction_by_id_with_http_info( @validate_call - def get_scheduled_transaction_by_id_without_preload_content( + def delete_scheduled_transaction_without_preload_content( self, budget_id: Annotated[StrictStr, Field(description="The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.ynab.com/#oauth-default-budget).")], scheduled_transaction_id: Annotated[StrictStr, Field(description="The id of the scheduled transaction")], @@ -495,9 +496,9 @@ def get_scheduled_transaction_by_id_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Single scheduled transaction + """Deletes an existing scheduled transaction - Returns a single scheduled transaction + Deletes a scheduled transaction :param budget_id: The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.ynab.com/#oauth-default-budget). (required) :type budget_id: str @@ -525,7 +526,7 @@ def get_scheduled_transaction_by_id_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_scheduled_transaction_by_id_serialize( + _param = self._delete_scheduled_transaction_serialize( budget_id=budget_id, scheduled_transaction_id=scheduled_transaction_id, _request_auth=_request_auth, @@ -545,7 +546,7 @@ def get_scheduled_transaction_by_id_without_preload_content( return response_data.response - def _get_scheduled_transaction_by_id_serialize( + def _delete_scheduled_transaction_serialize( self, budget_id, scheduled_transaction_id, @@ -595,8 +596,8 @@ def _get_scheduled_transaction_by_id_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/budgets/{budget_id}/scheduled_transactions/{scheduled_transaction_id}', + method='DELETE', + resource_path='/budgets/{budget_id}/scheduled_transactions', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -613,10 +614,10 @@ def _get_scheduled_transaction_by_id_serialize( @validate_call - def get_scheduled_transactions( + def get_scheduled_transaction_by_id( self, budget_id: Annotated[StrictStr, Field(description="The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.ynab.com/#oauth-default-budget).")], - last_knowledge_of_server: Annotated[Optional[StrictInt], Field(description="The starting server knowledge. If provided, only entities that have changed since `last_knowledge_of_server` will be included.")] = None, + scheduled_transaction_id: Annotated[StrictStr, Field(description="The id of the scheduled transaction")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -629,15 +630,15 @@ def get_scheduled_transactions( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ScheduledTransactionsResponse: - """List scheduled transactions + ) -> ScheduledTransactionResponse: + """Single scheduled transaction - Returns all scheduled transactions + Returns a single scheduled transaction :param budget_id: The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.ynab.com/#oauth-default-budget). (required) :type budget_id: str - :param last_knowledge_of_server: The starting server knowledge. If provided, only entities that have changed since `last_knowledge_of_server` will be included. - :type last_knowledge_of_server: int + :param scheduled_transaction_id: The id of the scheduled transaction (required) + :type scheduled_transaction_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -660,9 +661,9 @@ def get_scheduled_transactions( :return: Returns the result object. """ # noqa: E501 - _param = self._get_scheduled_transactions_serialize( + _param = self._get_scheduled_transaction_by_id_serialize( budget_id=budget_id, - last_knowledge_of_server=last_knowledge_of_server, + scheduled_transaction_id=scheduled_transaction_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -670,7 +671,7 @@ def get_scheduled_transactions( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ScheduledTransactionsResponse", + '200': "ScheduledTransactionResponse", '404': "ErrorResponse", } response_data = self.api_client.call_api( @@ -685,10 +686,10 @@ def get_scheduled_transactions( @validate_call - def get_scheduled_transactions_with_http_info( + def get_scheduled_transaction_by_id_with_http_info( self, budget_id: Annotated[StrictStr, Field(description="The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.ynab.com/#oauth-default-budget).")], - last_knowledge_of_server: Annotated[Optional[StrictInt], Field(description="The starting server knowledge. If provided, only entities that have changed since `last_knowledge_of_server` will be included.")] = None, + scheduled_transaction_id: Annotated[StrictStr, Field(description="The id of the scheduled transaction")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -701,15 +702,15 @@ def get_scheduled_transactions_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ScheduledTransactionsResponse]: - """List scheduled transactions + ) -> ApiResponse[ScheduledTransactionResponse]: + """Single scheduled transaction - Returns all scheduled transactions + Returns a single scheduled transaction :param budget_id: The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.ynab.com/#oauth-default-budget). (required) :type budget_id: str - :param last_knowledge_of_server: The starting server knowledge. If provided, only entities that have changed since `last_knowledge_of_server` will be included. - :type last_knowledge_of_server: int + :param scheduled_transaction_id: The id of the scheduled transaction (required) + :type scheduled_transaction_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -732,9 +733,9 @@ def get_scheduled_transactions_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_scheduled_transactions_serialize( + _param = self._get_scheduled_transaction_by_id_serialize( budget_id=budget_id, - last_knowledge_of_server=last_knowledge_of_server, + scheduled_transaction_id=scheduled_transaction_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -742,7 +743,7 @@ def get_scheduled_transactions_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ScheduledTransactionsResponse", + '200': "ScheduledTransactionResponse", '404': "ErrorResponse", } response_data = self.api_client.call_api( @@ -757,10 +758,10 @@ def get_scheduled_transactions_with_http_info( @validate_call - def get_scheduled_transactions_without_preload_content( + def get_scheduled_transaction_by_id_without_preload_content( self, budget_id: Annotated[StrictStr, Field(description="The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.ynab.com/#oauth-default-budget).")], - last_knowledge_of_server: Annotated[Optional[StrictInt], Field(description="The starting server knowledge. If provided, only entities that have changed since `last_knowledge_of_server` will be included.")] = None, + scheduled_transaction_id: Annotated[StrictStr, Field(description="The id of the scheduled transaction")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -774,14 +775,14 @@ def get_scheduled_transactions_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """List scheduled transactions + """Single scheduled transaction - Returns all scheduled transactions + Returns a single scheduled transaction :param budget_id: The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.ynab.com/#oauth-default-budget). (required) :type budget_id: str - :param last_knowledge_of_server: The starting server knowledge. If provided, only entities that have changed since `last_knowledge_of_server` will be included. - :type last_knowledge_of_server: int + :param scheduled_transaction_id: The id of the scheduled transaction (required) + :type scheduled_transaction_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -804,9 +805,9 @@ def get_scheduled_transactions_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_scheduled_transactions_serialize( + _param = self._get_scheduled_transaction_by_id_serialize( budget_id=budget_id, - last_knowledge_of_server=last_knowledge_of_server, + scheduled_transaction_id=scheduled_transaction_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -814,7 +815,7 @@ def get_scheduled_transactions_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ScheduledTransactionsResponse", + '200': "ScheduledTransactionResponse", '404': "ErrorResponse", } response_data = self.api_client.call_api( @@ -824,10 +825,10 @@ def get_scheduled_transactions_without_preload_content( return response_data.response - def _get_scheduled_transactions_serialize( + def _get_scheduled_transaction_by_id_serialize( self, budget_id, - last_knowledge_of_server, + scheduled_transaction_id, _request_auth, _content_type, _headers, @@ -851,11 +852,9 @@ def _get_scheduled_transactions_serialize( # process the path parameters if budget_id is not None: _path_params['budget_id'] = budget_id + if scheduled_transaction_id is not None: + _path_params['scheduled_transaction_id'] = scheduled_transaction_id # process the query parameters - if last_knowledge_of_server is not None: - - _query_params.append(('last_knowledge_of_server', last_knowledge_of_server)) - # process the header parameters # process the form parameters # process the body parameter @@ -877,6 +876,594 @@ def _get_scheduled_transactions_serialize( return self.api_client.param_serialize( method='GET', + resource_path='/budgets/{budget_id}/scheduled_transactions/{scheduled_transaction_id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_scheduled_transactions( + self, + budget_id: Annotated[StrictStr, Field(description="The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.ynab.com/#oauth-default-budget).")], + last_knowledge_of_server: Annotated[Optional[StrictInt], Field(description="The starting server knowledge. If provided, only entities that have changed since `last_knowledge_of_server` will be included.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ScheduledTransactionsResponse: + """List scheduled transactions + + Returns all scheduled transactions + + :param budget_id: The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.ynab.com/#oauth-default-budget). (required) + :type budget_id: str + :param last_knowledge_of_server: The starting server knowledge. If provided, only entities that have changed since `last_knowledge_of_server` will be included. + :type last_knowledge_of_server: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_scheduled_transactions_serialize( + budget_id=budget_id, + last_knowledge_of_server=last_knowledge_of_server, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ScheduledTransactionsResponse", + '404': "ErrorResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_scheduled_transactions_with_http_info( + self, + budget_id: Annotated[StrictStr, Field(description="The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.ynab.com/#oauth-default-budget).")], + last_knowledge_of_server: Annotated[Optional[StrictInt], Field(description="The starting server knowledge. If provided, only entities that have changed since `last_knowledge_of_server` will be included.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ScheduledTransactionsResponse]: + """List scheduled transactions + + Returns all scheduled transactions + + :param budget_id: The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.ynab.com/#oauth-default-budget). (required) + :type budget_id: str + :param last_knowledge_of_server: The starting server knowledge. If provided, only entities that have changed since `last_knowledge_of_server` will be included. + :type last_knowledge_of_server: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_scheduled_transactions_serialize( + budget_id=budget_id, + last_knowledge_of_server=last_knowledge_of_server, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ScheduledTransactionsResponse", + '404': "ErrorResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_scheduled_transactions_without_preload_content( + self, + budget_id: Annotated[StrictStr, Field(description="The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.ynab.com/#oauth-default-budget).")], + last_knowledge_of_server: Annotated[Optional[StrictInt], Field(description="The starting server knowledge. If provided, only entities that have changed since `last_knowledge_of_server` will be included.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List scheduled transactions + + Returns all scheduled transactions + + :param budget_id: The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.ynab.com/#oauth-default-budget). (required) + :type budget_id: str + :param last_knowledge_of_server: The starting server knowledge. If provided, only entities that have changed since `last_knowledge_of_server` will be included. + :type last_knowledge_of_server: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_scheduled_transactions_serialize( + budget_id=budget_id, + last_knowledge_of_server=last_knowledge_of_server, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ScheduledTransactionsResponse", + '404': "ErrorResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_scheduled_transactions_serialize( + self, + budget_id, + last_knowledge_of_server, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if budget_id is not None: + _path_params['budget_id'] = budget_id + # process the query parameters + if last_knowledge_of_server is not None: + + _query_params.append(('last_knowledge_of_server', last_knowledge_of_server)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'bearer' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/budgets/{budget_id}/scheduled_transactions', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def update_scheduled_transaction( + self, + budget_id: Annotated[StrictStr, Field(description="The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.ynab.com/#oauth-default-budget).")], + scheduled_transaction_id: Annotated[StrictStr, Field(description="The id of the scheduled transaction")], + put_scheduled_transaction_wrapper: Annotated[PutScheduledTransactionWrapper, Field(description="The scheduled transaction to update")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ScheduledTransactionResponse: + """Updates an existing scheduled transaction + + Updates a single scheduled transaction + + :param budget_id: The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.ynab.com/#oauth-default-budget). (required) + :type budget_id: str + :param scheduled_transaction_id: The id of the scheduled transaction (required) + :type scheduled_transaction_id: str + :param put_scheduled_transaction_wrapper: The scheduled transaction to update (required) + :type put_scheduled_transaction_wrapper: PutScheduledTransactionWrapper + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_scheduled_transaction_serialize( + budget_id=budget_id, + scheduled_transaction_id=scheduled_transaction_id, + put_scheduled_transaction_wrapper=put_scheduled_transaction_wrapper, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ScheduledTransactionResponse", + '400': "ErrorResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def update_scheduled_transaction_with_http_info( + self, + budget_id: Annotated[StrictStr, Field(description="The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.ynab.com/#oauth-default-budget).")], + scheduled_transaction_id: Annotated[StrictStr, Field(description="The id of the scheduled transaction")], + put_scheduled_transaction_wrapper: Annotated[PutScheduledTransactionWrapper, Field(description="The scheduled transaction to update")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ScheduledTransactionResponse]: + """Updates an existing scheduled transaction + + Updates a single scheduled transaction + + :param budget_id: The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.ynab.com/#oauth-default-budget). (required) + :type budget_id: str + :param scheduled_transaction_id: The id of the scheduled transaction (required) + :type scheduled_transaction_id: str + :param put_scheduled_transaction_wrapper: The scheduled transaction to update (required) + :type put_scheduled_transaction_wrapper: PutScheduledTransactionWrapper + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_scheduled_transaction_serialize( + budget_id=budget_id, + scheduled_transaction_id=scheduled_transaction_id, + put_scheduled_transaction_wrapper=put_scheduled_transaction_wrapper, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ScheduledTransactionResponse", + '400': "ErrorResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def update_scheduled_transaction_without_preload_content( + self, + budget_id: Annotated[StrictStr, Field(description="The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.ynab.com/#oauth-default-budget).")], + scheduled_transaction_id: Annotated[StrictStr, Field(description="The id of the scheduled transaction")], + put_scheduled_transaction_wrapper: Annotated[PutScheduledTransactionWrapper, Field(description="The scheduled transaction to update")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Updates an existing scheduled transaction + + Updates a single scheduled transaction + + :param budget_id: The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.ynab.com/#oauth-default-budget). (required) + :type budget_id: str + :param scheduled_transaction_id: The id of the scheduled transaction (required) + :type scheduled_transaction_id: str + :param put_scheduled_transaction_wrapper: The scheduled transaction to update (required) + :type put_scheduled_transaction_wrapper: PutScheduledTransactionWrapper + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_scheduled_transaction_serialize( + budget_id=budget_id, + scheduled_transaction_id=scheduled_transaction_id, + put_scheduled_transaction_wrapper=put_scheduled_transaction_wrapper, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ScheduledTransactionResponse", + '400': "ErrorResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _update_scheduled_transaction_serialize( + self, + budget_id, + scheduled_transaction_id, + put_scheduled_transaction_wrapper, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if budget_id is not None: + _path_params['budget_id'] = budget_id + if scheduled_transaction_id is not None: + _path_params['scheduled_transaction_id'] = scheduled_transaction_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if put_scheduled_transaction_wrapper is not None: + _body_params = put_scheduled_transaction_wrapper + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'bearer' + ] + + return self.api_client.param_serialize( + method='PUT', resource_path='/budgets/{budget_id}/scheduled_transactions', path_params=_path_params, query_params=_query_params, diff --git a/ynab/api/transactions_api.py b/ynab/api/transactions_api.py index 91a26ef..b3281f7 100644 --- a/ynab/api/transactions_api.py +++ b/ynab/api/transactions_api.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/api/user_api.py b/ynab/api/user_api.py index 3b31c8e..4304b0a 100644 --- a/ynab/api/user_api.py +++ b/ynab/api/user_api.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/api_client.py b/ynab/api_client.py index cf82e16..9f00082 100644 --- a/ynab/api_client.py +++ b/ynab/api_client.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -90,7 +90,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/1.0.1/python' + self.user_agent = 'OpenAPI-Generator/1.2.0/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): @@ -517,7 +517,7 @@ def parameters_to_url_query(self, params, collection_formats): if k in collection_formats: collection_format = collection_formats[k] if collection_format == 'multi': - new_params.extend((k, str(value)) for value in v) + new_params.extend((k, quote(str(value))) for value in v) else: if collection_format == 'ssv': delimiter = ' ' diff --git a/ynab/configuration.py b/ynab/configuration.py index 33fbc27..026d197 100644 --- a/ynab/configuration.py +++ b/ynab/configuration.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -18,7 +18,7 @@ from logging import FileHandler import multiprocessing import sys -from typing import Any, ClassVar, Dict, List, Literal, Optional, TypedDict +from typing import Any, ClassVar, Dict, List, Literal, Optional, TypedDict, Union from typing_extensions import NotRequired, Self import urllib3 @@ -161,6 +161,8 @@ class Configuration: :param ssl_ca_cert: str - the path to a file of concatenated CA certificates in PEM format. :param retries: Number of retries for API requests. + :param ca_cert_data: verify the peer using concatenated CA certificate data + in PEM (str) or DER (bytes) format. :Example: """ @@ -175,13 +177,14 @@ def __init__( username: Optional[str]=None, password: Optional[str]=None, access_token: Optional[str]=None, - server_index: Optional[int]=None, + server_index: Optional[int]=None, server_variables: Optional[ServerVariablesT]=None, server_operation_index: Optional[Dict[int, int]]=None, server_operation_variables: Optional[Dict[int, ServerVariablesT]]=None, ignore_operation_servers: bool=False, ssl_ca_cert: Optional[str]=None, retries: Optional[int] = None, + ca_cert_data: Optional[Union[str, bytes]] = None, *, debug: Optional[bool] = None, ) -> None: @@ -259,6 +262,10 @@ def __init__( self.ssl_ca_cert = ssl_ca_cert """Set this to customize the certificate file to verify the peer. """ + self.ca_cert_data = ca_cert_data + """Set this to verify the peer using PEM (str) or DER (bytes) + certificate data. + """ self.cert_file = None """client certificate file """ @@ -502,8 +509,8 @@ def to_debug_report(self) -> str: return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: 1.72.1\n"\ - "SDK Package Version: 1.0.1".\ + "Version of the API: 1.74.0\n"\ + "SDK Package Version: 1.2.0".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self) -> List[HostSetting]: diff --git a/ynab/exceptions.py b/ynab/exceptions.py index 4d0eb73..733c0ed 100644 --- a/ynab/exceptions.py +++ b/ynab/exceptions.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -150,6 +150,13 @@ def from_response( if http_resp.status == 404: raise NotFoundException(http_resp=http_resp, body=body, data=data) + # Added new conditions for 409 and 422 + if http_resp.status == 409: + raise ConflictException(http_resp=http_resp, body=body, data=data) + + if http_resp.status == 422: + raise UnprocessableEntityException(http_resp=http_resp, body=body, data=data) + if 500 <= http_resp.status <= 599: raise ServiceException(http_resp=http_resp, body=body, data=data) raise ApiException(http_resp=http_resp, body=body, data=data) @@ -188,6 +195,16 @@ class ServiceException(ApiException): pass +class ConflictException(ApiException): + """Exception for HTTP 409 Conflict.""" + pass + + +class UnprocessableEntityException(ApiException): + """Exception for HTTP 422 Unprocessable Entity.""" + pass + + def render_path(path_to_item): """Returns a string representation of a path""" result = "" diff --git a/ynab/models/__init__.py b/ynab/models/__init__.py index 72a35e9..7e1c18c 100644 --- a/ynab/models/__init__.py +++ b/ynab/models/__init__.py @@ -6,7 +6,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -72,6 +72,7 @@ from ynab.models.post_account_wrapper import PostAccountWrapper from ynab.models.post_scheduled_transaction_wrapper import PostScheduledTransactionWrapper from ynab.models.post_transactions_wrapper import PostTransactionsWrapper +from ynab.models.put_scheduled_transaction_wrapper import PutScheduledTransactionWrapper from ynab.models.put_transaction_wrapper import PutTransactionWrapper from ynab.models.save_account import SaveAccount from ynab.models.save_category import SaveCategory diff --git a/ynab/models/account.py b/ynab/models/account.py index fa31e84..9f1982e 100644 --- a/ynab/models/account.py +++ b/ynab/models/account.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/account_response.py b/ynab/models/account_response.py index 6a0c232..c5e3bba 100644 --- a/ynab/models/account_response.py +++ b/ynab/models/account_response.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/account_response_data.py b/ynab/models/account_response_data.py index 1b45d5c..4c54300 100644 --- a/ynab/models/account_response_data.py +++ b/ynab/models/account_response_data.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/account_type.py b/ynab/models/account_type.py index efc8ab4..b3f6d0f 100644 --- a/ynab/models/account_type.py +++ b/ynab/models/account_type.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/accounts_response.py b/ynab/models/accounts_response.py index f86d444..01b06bc 100644 --- a/ynab/models/accounts_response.py +++ b/ynab/models/accounts_response.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/accounts_response_data.py b/ynab/models/accounts_response_data.py index 18dea12..9578976 100644 --- a/ynab/models/accounts_response_data.py +++ b/ynab/models/accounts_response_data.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/budget_detail.py b/ynab/models/budget_detail.py index 1af885a..7a67399 100644 --- a/ynab/models/budget_detail.py +++ b/ynab/models/budget_detail.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/budget_detail_response.py b/ynab/models/budget_detail_response.py index 20bc3cc..ecaad37 100644 --- a/ynab/models/budget_detail_response.py +++ b/ynab/models/budget_detail_response.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/budget_detail_response_data.py b/ynab/models/budget_detail_response_data.py index 7c126a3..6a72542 100644 --- a/ynab/models/budget_detail_response_data.py +++ b/ynab/models/budget_detail_response_data.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/budget_settings.py b/ynab/models/budget_settings.py index eca9c8a..89ee2a6 100644 --- a/ynab/models/budget_settings.py +++ b/ynab/models/budget_settings.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/budget_settings_response.py b/ynab/models/budget_settings_response.py index cfa301b..e9deddd 100644 --- a/ynab/models/budget_settings_response.py +++ b/ynab/models/budget_settings_response.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/budget_settings_response_data.py b/ynab/models/budget_settings_response_data.py index 7dfbe72..bc4eb41 100644 --- a/ynab/models/budget_settings_response_data.py +++ b/ynab/models/budget_settings_response_data.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/budget_summary.py b/ynab/models/budget_summary.py index 915dd45..e723af5 100644 --- a/ynab/models/budget_summary.py +++ b/ynab/models/budget_summary.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/budget_summary_response.py b/ynab/models/budget_summary_response.py index 19fd158..caab32f 100644 --- a/ynab/models/budget_summary_response.py +++ b/ynab/models/budget_summary_response.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/budget_summary_response_data.py b/ynab/models/budget_summary_response_data.py index 19bd0c2..47e20d6 100644 --- a/ynab/models/budget_summary_response_data.py +++ b/ynab/models/budget_summary_response_data.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/bulk_response.py b/ynab/models/bulk_response.py index cfc7dce..c74067c 100644 --- a/ynab/models/bulk_response.py +++ b/ynab/models/bulk_response.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/bulk_response_data.py b/ynab/models/bulk_response_data.py index 89c6202..850a807 100644 --- a/ynab/models/bulk_response_data.py +++ b/ynab/models/bulk_response_data.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/bulk_response_data_bulk.py b/ynab/models/bulk_response_data_bulk.py index 6ba6e52..df70dc3 100644 --- a/ynab/models/bulk_response_data_bulk.py +++ b/ynab/models/bulk_response_data_bulk.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/bulk_transactions.py b/ynab/models/bulk_transactions.py index b2c3308..afabf95 100644 --- a/ynab/models/bulk_transactions.py +++ b/ynab/models/bulk_transactions.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/categories_response.py b/ynab/models/categories_response.py index 30c7cc9..e8cdcdb 100644 --- a/ynab/models/categories_response.py +++ b/ynab/models/categories_response.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/categories_response_data.py b/ynab/models/categories_response_data.py index 998561d..78d414d 100644 --- a/ynab/models/categories_response_data.py +++ b/ynab/models/categories_response_data.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/category.py b/ynab/models/category.py index ccce4b1..5532b8a 100644 --- a/ynab/models/category.py +++ b/ynab/models/category.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/category_group.py b/ynab/models/category_group.py index aaad128..111b28d 100644 --- a/ynab/models/category_group.py +++ b/ynab/models/category_group.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/category_group_with_categories.py b/ynab/models/category_group_with_categories.py index a4346f6..33cddfa 100644 --- a/ynab/models/category_group_with_categories.py +++ b/ynab/models/category_group_with_categories.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/category_response.py b/ynab/models/category_response.py index 8ae1f2c..3862caa 100644 --- a/ynab/models/category_response.py +++ b/ynab/models/category_response.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/category_response_data.py b/ynab/models/category_response_data.py index fe1f300..3140e0a 100644 --- a/ynab/models/category_response_data.py +++ b/ynab/models/category_response_data.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/currency_format.py b/ynab/models/currency_format.py index 437146c..6d87083 100644 --- a/ynab/models/currency_format.py +++ b/ynab/models/currency_format.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/date_format.py b/ynab/models/date_format.py index 9604dee..6518679 100644 --- a/ynab/models/date_format.py +++ b/ynab/models/date_format.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/error_detail.py b/ynab/models/error_detail.py index 9251706..87a1f98 100644 --- a/ynab/models/error_detail.py +++ b/ynab/models/error_detail.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/error_response.py b/ynab/models/error_response.py index 5065e2f..8ae4b7b 100644 --- a/ynab/models/error_response.py +++ b/ynab/models/error_response.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/existing_transaction.py b/ynab/models/existing_transaction.py index 801b83e..bb37dcd 100644 --- a/ynab/models/existing_transaction.py +++ b/ynab/models/existing_transaction.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/hybrid_transaction.py b/ynab/models/hybrid_transaction.py index 31631eb..0d89050 100644 --- a/ynab/models/hybrid_transaction.py +++ b/ynab/models/hybrid_transaction.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/hybrid_transactions_response.py b/ynab/models/hybrid_transactions_response.py index 057ba9d..a3f0156 100644 --- a/ynab/models/hybrid_transactions_response.py +++ b/ynab/models/hybrid_transactions_response.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/hybrid_transactions_response_data.py b/ynab/models/hybrid_transactions_response_data.py index c16bbc3..c058354 100644 --- a/ynab/models/hybrid_transactions_response_data.py +++ b/ynab/models/hybrid_transactions_response_data.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/month_detail.py b/ynab/models/month_detail.py index 8e5a4ea..69270c1 100644 --- a/ynab/models/month_detail.py +++ b/ynab/models/month_detail.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/month_detail_response.py b/ynab/models/month_detail_response.py index 4df39a6..4ef7056 100644 --- a/ynab/models/month_detail_response.py +++ b/ynab/models/month_detail_response.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/month_detail_response_data.py b/ynab/models/month_detail_response_data.py index dcc0405..a275891 100644 --- a/ynab/models/month_detail_response_data.py +++ b/ynab/models/month_detail_response_data.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/month_summaries_response.py b/ynab/models/month_summaries_response.py index b9ff4ac..907cb0b 100644 --- a/ynab/models/month_summaries_response.py +++ b/ynab/models/month_summaries_response.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/month_summaries_response_data.py b/ynab/models/month_summaries_response_data.py index 3f76c63..b364203 100644 --- a/ynab/models/month_summaries_response_data.py +++ b/ynab/models/month_summaries_response_data.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/month_summary.py b/ynab/models/month_summary.py index 17c4697..127c4aa 100644 --- a/ynab/models/month_summary.py +++ b/ynab/models/month_summary.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/new_transaction.py b/ynab/models/new_transaction.py index bea37eb..46f743b 100644 --- a/ynab/models/new_transaction.py +++ b/ynab/models/new_transaction.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/patch_category_wrapper.py b/ynab/models/patch_category_wrapper.py index 3470f54..bc6f423 100644 --- a/ynab/models/patch_category_wrapper.py +++ b/ynab/models/patch_category_wrapper.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/patch_month_category_wrapper.py b/ynab/models/patch_month_category_wrapper.py index 5ade2f4..2548c32 100644 --- a/ynab/models/patch_month_category_wrapper.py +++ b/ynab/models/patch_month_category_wrapper.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/patch_payee_wrapper.py b/ynab/models/patch_payee_wrapper.py index 4fe16b2..d8df87d 100644 --- a/ynab/models/patch_payee_wrapper.py +++ b/ynab/models/patch_payee_wrapper.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/patch_transactions_wrapper.py b/ynab/models/patch_transactions_wrapper.py index cd2f93c..be4561b 100644 --- a/ynab/models/patch_transactions_wrapper.py +++ b/ynab/models/patch_transactions_wrapper.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/payee.py b/ynab/models/payee.py index a4d8316..308cadb 100644 --- a/ynab/models/payee.py +++ b/ynab/models/payee.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/payee_location.py b/ynab/models/payee_location.py index 816b60e..5f9a833 100644 --- a/ynab/models/payee_location.py +++ b/ynab/models/payee_location.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/payee_location_response.py b/ynab/models/payee_location_response.py index 8091bd8..a9a6e71 100644 --- a/ynab/models/payee_location_response.py +++ b/ynab/models/payee_location_response.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/payee_location_response_data.py b/ynab/models/payee_location_response_data.py index 214fdfc..b9c23d3 100644 --- a/ynab/models/payee_location_response_data.py +++ b/ynab/models/payee_location_response_data.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/payee_locations_response.py b/ynab/models/payee_locations_response.py index 3b49a1b..55293a0 100644 --- a/ynab/models/payee_locations_response.py +++ b/ynab/models/payee_locations_response.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/payee_locations_response_data.py b/ynab/models/payee_locations_response_data.py index b914c68..08c6b35 100644 --- a/ynab/models/payee_locations_response_data.py +++ b/ynab/models/payee_locations_response_data.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/payee_response.py b/ynab/models/payee_response.py index 74e815b..8f1c1de 100644 --- a/ynab/models/payee_response.py +++ b/ynab/models/payee_response.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/payee_response_data.py b/ynab/models/payee_response_data.py index 1a894fc..cc86c10 100644 --- a/ynab/models/payee_response_data.py +++ b/ynab/models/payee_response_data.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/payees_response.py b/ynab/models/payees_response.py index f1126bd..98d7ee6 100644 --- a/ynab/models/payees_response.py +++ b/ynab/models/payees_response.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/payees_response_data.py b/ynab/models/payees_response_data.py index edb15d1..fd294d0 100644 --- a/ynab/models/payees_response_data.py +++ b/ynab/models/payees_response_data.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/post_account_wrapper.py b/ynab/models/post_account_wrapper.py index 03cc325..46e2c45 100644 --- a/ynab/models/post_account_wrapper.py +++ b/ynab/models/post_account_wrapper.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/post_scheduled_transaction_wrapper.py b/ynab/models/post_scheduled_transaction_wrapper.py index d98d14d..a4cef99 100644 --- a/ynab/models/post_scheduled_transaction_wrapper.py +++ b/ynab/models/post_scheduled_transaction_wrapper.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/post_transactions_wrapper.py b/ynab/models/post_transactions_wrapper.py index c2ea6ff..c7485ab 100644 --- a/ynab/models/post_transactions_wrapper.py +++ b/ynab/models/post_transactions_wrapper.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/put_scheduled_transaction_wrapper.py b/ynab/models/put_scheduled_transaction_wrapper.py new file mode 100644 index 0000000..db41e6f --- /dev/null +++ b/ynab/models/put_scheduled_transaction_wrapper.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + YNAB API Endpoints + + Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com + + The version of the OpenAPI document: 1.74.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List +from ynab.models.save_scheduled_transaction import SaveScheduledTransaction +from typing import Optional, Set +from typing_extensions import Self + +class PutScheduledTransactionWrapper(BaseModel): + """ + PutScheduledTransactionWrapper + """ # noqa: E501 + scheduled_transaction: SaveScheduledTransaction + __properties: ClassVar[List[str]] = ["scheduled_transaction"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PutScheduledTransactionWrapper from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of scheduled_transaction + if self.scheduled_transaction: + _dict['scheduled_transaction'] = self.scheduled_transaction.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PutScheduledTransactionWrapper from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "scheduled_transaction": SaveScheduledTransaction.from_dict(obj["scheduled_transaction"]) if obj.get("scheduled_transaction") is not None else None + }) + return _obj + + diff --git a/ynab/models/put_transaction_wrapper.py b/ynab/models/put_transaction_wrapper.py index c131ce9..eb5f561 100644 --- a/ynab/models/put_transaction_wrapper.py +++ b/ynab/models/put_transaction_wrapper.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/save_account.py b/ynab/models/save_account.py index 99025cc..47413e7 100644 --- a/ynab/models/save_account.py +++ b/ynab/models/save_account.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/save_category.py b/ynab/models/save_category.py index 7fe9d15..5522b34 100644 --- a/ynab/models/save_category.py +++ b/ynab/models/save_category.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -29,7 +29,8 @@ class SaveCategory(BaseModel): name: Optional[StrictStr] = None note: Optional[StrictStr] = None category_group_id: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["name", "note", "category_group_id"] + goal_target: Optional[StrictInt] = Field(default=None, description="The goal target amount in milliunits format. This amount can only be changed if the category already has a configured goal (goal_type != null).") + __properties: ClassVar[List[str]] = ["name", "note", "category_group_id", "goal_target"] model_config = ConfigDict( populate_by_name=True, @@ -80,6 +81,11 @@ def to_dict(self) -> Dict[str, Any]: if self.note is None and "note" in self.model_fields_set: _dict['note'] = None + # set to None if goal_target (nullable) is None + # and model_fields_set contains the field + if self.goal_target is None and "goal_target" in self.model_fields_set: + _dict['goal_target'] = None + return _dict @classmethod @@ -94,7 +100,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), "note": obj.get("note"), - "category_group_id": obj.get("category_group_id") + "category_group_id": obj.get("category_group_id"), + "goal_target": obj.get("goal_target") }) return _obj diff --git a/ynab/models/save_category_response.py b/ynab/models/save_category_response.py index e4a2713..1d9ed3a 100644 --- a/ynab/models/save_category_response.py +++ b/ynab/models/save_category_response.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/save_category_response_data.py b/ynab/models/save_category_response_data.py index d66ec22..3ded338 100644 --- a/ynab/models/save_category_response_data.py +++ b/ynab/models/save_category_response_data.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/save_month_category.py b/ynab/models/save_month_category.py index 8ce6b25..3624456 100644 --- a/ynab/models/save_month_category.py +++ b/ynab/models/save_month_category.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/save_payee.py b/ynab/models/save_payee.py index 0fd214b..b9cf7b6 100644 --- a/ynab/models/save_payee.py +++ b/ynab/models/save_payee.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/save_payee_response.py b/ynab/models/save_payee_response.py index 196a41c..5153813 100644 --- a/ynab/models/save_payee_response.py +++ b/ynab/models/save_payee_response.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/save_payee_response_data.py b/ynab/models/save_payee_response_data.py index a8427ec..f99b5e4 100644 --- a/ynab/models/save_payee_response_data.py +++ b/ynab/models/save_payee_response_data.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/save_scheduled_transaction.py b/ynab/models/save_scheduled_transaction.py index 8ff129f..496843e 100644 --- a/ynab/models/save_scheduled_transaction.py +++ b/ynab/models/save_scheduled_transaction.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/save_sub_transaction.py b/ynab/models/save_sub_transaction.py index 9ee66a3..e3650fa 100644 --- a/ynab/models/save_sub_transaction.py +++ b/ynab/models/save_sub_transaction.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/save_transaction_with_id_or_import_id.py b/ynab/models/save_transaction_with_id_or_import_id.py index f2b6157..380e52f 100644 --- a/ynab/models/save_transaction_with_id_or_import_id.py +++ b/ynab/models/save_transaction_with_id_or_import_id.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/save_transaction_with_optional_fields.py b/ynab/models/save_transaction_with_optional_fields.py index 2949382..641c127 100644 --- a/ynab/models/save_transaction_with_optional_fields.py +++ b/ynab/models/save_transaction_with_optional_fields.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/save_transactions_response.py b/ynab/models/save_transactions_response.py index df9cf97..662fdcf 100644 --- a/ynab/models/save_transactions_response.py +++ b/ynab/models/save_transactions_response.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/save_transactions_response_data.py b/ynab/models/save_transactions_response_data.py index 12ba8ef..d65c523 100644 --- a/ynab/models/save_transactions_response_data.py +++ b/ynab/models/save_transactions_response_data.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/scheduled_sub_transaction.py b/ynab/models/scheduled_sub_transaction.py index 722892d..7050118 100644 --- a/ynab/models/scheduled_sub_transaction.py +++ b/ynab/models/scheduled_sub_transaction.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -31,10 +31,12 @@ class ScheduledSubTransaction(BaseModel): amount: StrictInt = Field(description="The scheduled subtransaction amount in milliunits format") memo: Optional[StrictStr] = None payee_id: Optional[StrictStr] = None + payee_name: Optional[StrictStr] = None category_id: Optional[StrictStr] = None + category_name: Optional[StrictStr] = None transfer_account_id: Optional[StrictStr] = Field(default=None, description="If a transfer, the account_id which the scheduled subtransaction transfers to") deleted: StrictBool = Field(description="Whether or not the scheduled subtransaction has been deleted. Deleted scheduled subtransactions will only be included in delta requests.") - __properties: ClassVar[List[str]] = ["id", "scheduled_transaction_id", "amount", "memo", "payee_id", "category_id", "transfer_account_id", "deleted"] + __properties: ClassVar[List[str]] = ["id", "scheduled_transaction_id", "amount", "memo", "payee_id", "payee_name", "category_id", "category_name", "transfer_account_id", "deleted"] model_config = ConfigDict( populate_by_name=True, @@ -85,11 +87,21 @@ def to_dict(self) -> Dict[str, Any]: if self.payee_id is None and "payee_id" in self.model_fields_set: _dict['payee_id'] = None + # set to None if payee_name (nullable) is None + # and model_fields_set contains the field + if self.payee_name is None and "payee_name" in self.model_fields_set: + _dict['payee_name'] = None + # set to None if category_id (nullable) is None # and model_fields_set contains the field if self.category_id is None and "category_id" in self.model_fields_set: _dict['category_id'] = None + # set to None if category_name (nullable) is None + # and model_fields_set contains the field + if self.category_name is None and "category_name" in self.model_fields_set: + _dict['category_name'] = None + # set to None if transfer_account_id (nullable) is None # and model_fields_set contains the field if self.transfer_account_id is None and "transfer_account_id" in self.model_fields_set: @@ -112,7 +124,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "amount": obj.get("amount"), "memo": obj.get("memo"), "payee_id": obj.get("payee_id"), + "payee_name": obj.get("payee_name"), "category_id": obj.get("category_id"), + "category_name": obj.get("category_name"), "transfer_account_id": obj.get("transfer_account_id"), "deleted": obj.get("deleted") }) diff --git a/ynab/models/scheduled_transaction_detail.py b/ynab/models/scheduled_transaction_detail.py index a5e3dc4..18c9e1e 100644 --- a/ynab/models/scheduled_transaction_detail.py +++ b/ynab/models/scheduled_transaction_detail.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/scheduled_transaction_frequency.py b/ynab/models/scheduled_transaction_frequency.py index 783e0c1..6057327 100644 --- a/ynab/models/scheduled_transaction_frequency.py +++ b/ynab/models/scheduled_transaction_frequency.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/scheduled_transaction_response.py b/ynab/models/scheduled_transaction_response.py index ae34332..5653400 100644 --- a/ynab/models/scheduled_transaction_response.py +++ b/ynab/models/scheduled_transaction_response.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/scheduled_transaction_response_data.py b/ynab/models/scheduled_transaction_response_data.py index b87e2b8..97d9078 100644 --- a/ynab/models/scheduled_transaction_response_data.py +++ b/ynab/models/scheduled_transaction_response_data.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/scheduled_transaction_summary.py b/ynab/models/scheduled_transaction_summary.py index ec3f591..f2d75e4 100644 --- a/ynab/models/scheduled_transaction_summary.py +++ b/ynab/models/scheduled_transaction_summary.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/scheduled_transactions_response.py b/ynab/models/scheduled_transactions_response.py index eed3026..4a35d06 100644 --- a/ynab/models/scheduled_transactions_response.py +++ b/ynab/models/scheduled_transactions_response.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/scheduled_transactions_response_data.py b/ynab/models/scheduled_transactions_response_data.py index 5e0e1f0..5652776 100644 --- a/ynab/models/scheduled_transactions_response_data.py +++ b/ynab/models/scheduled_transactions_response_data.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/sub_transaction.py b/ynab/models/sub_transaction.py index 4c2e19e..5f75c59 100644 --- a/ynab/models/sub_transaction.py +++ b/ynab/models/sub_transaction.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/transaction_cleared_status.py b/ynab/models/transaction_cleared_status.py index c264e65..10efcd1 100644 --- a/ynab/models/transaction_cleared_status.py +++ b/ynab/models/transaction_cleared_status.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/transaction_detail.py b/ynab/models/transaction_detail.py index e4564c5..49e8edf 100644 --- a/ynab/models/transaction_detail.py +++ b/ynab/models/transaction_detail.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/transaction_flag_color.py b/ynab/models/transaction_flag_color.py index b47d4f7..66f2752 100644 --- a/ynab/models/transaction_flag_color.py +++ b/ynab/models/transaction_flag_color.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/transaction_response.py b/ynab/models/transaction_response.py index 4dcd6a5..a07737a 100644 --- a/ynab/models/transaction_response.py +++ b/ynab/models/transaction_response.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/transaction_response_data.py b/ynab/models/transaction_response_data.py index c0524e3..14cb947 100644 --- a/ynab/models/transaction_response_data.py +++ b/ynab/models/transaction_response_data.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/transaction_summary.py b/ynab/models/transaction_summary.py index 36d4dbf..ae0b2d2 100644 --- a/ynab/models/transaction_summary.py +++ b/ynab/models/transaction_summary.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/transactions_import_response.py b/ynab/models/transactions_import_response.py index 1b13454..21b9897 100644 --- a/ynab/models/transactions_import_response.py +++ b/ynab/models/transactions_import_response.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/transactions_import_response_data.py b/ynab/models/transactions_import_response_data.py index 866696c..31bafdb 100644 --- a/ynab/models/transactions_import_response_data.py +++ b/ynab/models/transactions_import_response_data.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/transactions_response.py b/ynab/models/transactions_response.py index c231cd7..cba0a5d 100644 --- a/ynab/models/transactions_response.py +++ b/ynab/models/transactions_response.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/transactions_response_data.py b/ynab/models/transactions_response_data.py index 78d7669..07e0446 100644 --- a/ynab/models/transactions_response_data.py +++ b/ynab/models/transactions_response_data.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/user.py b/ynab/models/user.py index 9f11fef..c774777 100644 --- a/ynab/models/user.py +++ b/ynab/models/user.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/user_response.py b/ynab/models/user_response.py index f47efe0..dd18a6f 100644 --- a/ynab/models/user_response.py +++ b/ynab/models/user_response.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/models/user_response_data.py b/ynab/models/user_response_data.py index 7017f64..aa205d4 100644 --- a/ynab/models/user_response_data.py +++ b/ynab/models/user_response_data.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ynab/rest.py b/ynab/rest.py index 2e5b0ae..158c080 100644 --- a/ynab/rest.py +++ b/ynab/rest.py @@ -5,7 +5,7 @@ Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - The version of the OpenAPI document: 1.72.1 + The version of the OpenAPI document: 1.74.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -76,6 +76,7 @@ def __init__(self, configuration) -> None: "ca_certs": configuration.ssl_ca_cert, "cert_file": configuration.cert_file, "key_file": configuration.key_file, + "ca_cert_data": configuration.ca_cert_data, } if configuration.assert_hostname is not None: pool_args['assert_hostname'] = (