Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.12.0
7.14.0
1 change: 1 addition & 0 deletions docs/TransactionResponseData.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**transaction** | [**TransactionDetail**](TransactionDetail.md) | |
**server_knowledge** | **int** | The knowledge of the server |

## Example

Expand Down
7 changes: 6 additions & 1 deletion open_api_spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.74.0
version: 1.75.0
servers:
- url: https://api.ynab.com/v1
security:
Expand Down Expand Up @@ -2715,10 +2715,15 @@ components:
data:
required:
- transaction
- server_knowledge
type: object
properties:
transaction:
$ref: "#/components/schemas/TransactionDetail"
server_knowledge:
type: integer
description: The knowledge of the server
format: int64
TransactionSummary:
required:
- account_id
Expand Down
2 changes: 1 addition & 1 deletion openapi-generator-config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
packageName: ynab
packageVersion: 1.4.0
packageVersion: 1.5.0
packageDescription: Official Python client for the YNAB API. API documentation available at https://api.ynab.com.
licenseInfo:
name: Apache-2.0
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tool.poetry]
name = "ynab"
version = "1.4.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"
version = "1.5.0"
description = "Official Python client for the YNAB API. API documentation available at https://api.ynab.com. Generated from server specification version 1.75.0"
authors = ["YNAB"]
license = "Apache-2.0"
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
urllib3 >= 1.25.3, < 3.0.0
urllib3 >= 2.1.0, < 3.0.0
python_dateutil >= 2.8.2
pydantic >= 2
typing-extensions >= 4.7.1
350 changes: 234 additions & 116 deletions ynab/__init__.py

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion ynab/api/accounts_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.74.0
The version of the OpenAPI document: 1.75.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion ynab/api/budgets_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.74.0
The version of the OpenAPI document: 1.75.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion ynab/api/categories_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.74.0
The version of the OpenAPI document: 1.75.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion ynab/api/months_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.74.0
The version of the OpenAPI document: 1.75.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion ynab/api/payee_locations_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.74.0
The version of the OpenAPI document: 1.75.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion ynab/api/payees_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.74.0
The version of the OpenAPI document: 1.75.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion ynab/api/scheduled_transactions_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.74.0
The version of the OpenAPI document: 1.75.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion ynab/api/transactions_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.74.0
The version of the OpenAPI document: 1.75.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion ynab/api/user_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.74.0
The version of the OpenAPI document: 1.75.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
8 changes: 6 additions & 2 deletions ynab/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.74.0
The version of the OpenAPI document: 1.75.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down Expand Up @@ -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.4.0/python'
self.user_agent = 'OpenAPI-Generator/1.5.0/python'
self.client_side_validation = configuration.client_side_validation

def __enter__(self):
Expand Down Expand Up @@ -382,6 +382,10 @@ def sanitize_for_serialization(self, obj):
else:
obj_dict = obj.__dict__

if isinstance(obj_dict, list):
# here we handle instances that can either be a list or something else, and only became a real list by calling to_dict()
return self.sanitize_for_serialization(obj_dict)

return {
key: self.sanitize_for_serialization(val)
for key, val in obj_dict.items()
Expand Down
6 changes: 3 additions & 3 deletions ynab/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.74.0
The version of the OpenAPI document: 1.75.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down Expand Up @@ -504,8 +504,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.74.0\n"\
"SDK Package Version: 1.4.0".\
"Version of the API: 1.75.0\n"\
"SDK Package Version: 1.5.0".\
format(env=sys.platform, pyversion=sys.version)

def get_host_settings(self) -> List[HostSetting]:
Expand Down
2 changes: 1 addition & 1 deletion ynab/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.74.0
The version of the OpenAPI document: 1.75.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion ynab/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.74.0
The version of the OpenAPI document: 1.75.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion ynab/models/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.74.0
The version of the OpenAPI document: 1.75.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion ynab/models/account_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.74.0
The version of the OpenAPI document: 1.75.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion ynab/models/account_response_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.74.0
The version of the OpenAPI document: 1.75.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion ynab/models/account_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.74.0
The version of the OpenAPI document: 1.75.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion ynab/models/accounts_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.74.0
The version of the OpenAPI document: 1.75.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion ynab/models/accounts_response_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.74.0
The version of the OpenAPI document: 1.75.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion ynab/models/budget_detail.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.74.0
The version of the OpenAPI document: 1.75.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion ynab/models/budget_detail_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.74.0
The version of the OpenAPI document: 1.75.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion ynab/models/budget_detail_response_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.74.0
The version of the OpenAPI document: 1.75.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion ynab/models/budget_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.74.0
The version of the OpenAPI document: 1.75.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion ynab/models/budget_settings_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.74.0
The version of the OpenAPI document: 1.75.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion ynab/models/budget_settings_response_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.74.0
The version of the OpenAPI document: 1.75.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion ynab/models/budget_summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.74.0
The version of the OpenAPI document: 1.75.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion ynab/models/budget_summary_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.74.0
The version of the OpenAPI document: 1.75.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion ynab/models/budget_summary_response_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.74.0
The version of the OpenAPI document: 1.75.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion ynab/models/bulk_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.74.0
The version of the OpenAPI document: 1.75.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion ynab/models/bulk_response_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.74.0
The version of the OpenAPI document: 1.75.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion ynab/models/bulk_response_data_bulk.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.74.0
The version of the OpenAPI document: 1.75.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion ynab/models/bulk_transactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.74.0
The version of the OpenAPI document: 1.75.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion ynab/models/categories_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.74.0
The version of the OpenAPI document: 1.75.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion ynab/models/categories_response_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.74.0
The version of the OpenAPI document: 1.75.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
Loading