From 0feb10093ab80e9634c37f8b9172209656fc9d10 Mon Sep 17 00:00:00 2001 From: Brady Holt Date: Tue, 5 Aug 2025 17:29:25 -0500 Subject: [PATCH] Fix return model type for /months/{month}/transactions HybridTransactionsResponse > TransactionsResponse --- docs/TransactionsApi.md | 6 +++--- open_api_spec.yaml | 2 +- ynab/api/transactions_api.py | 10 +++++----- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/TransactionsApi.md b/docs/TransactionsApi.md index d18cf5d..2d971af 100644 --- a/docs/TransactionsApi.md +++ b/docs/TransactionsApi.md @@ -526,7 +526,7 @@ 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) # **get_transactions_by_month** -> HybridTransactionsResponse get_transactions_by_month(budget_id, month, since_date=since_date, type=type, last_knowledge_of_server=last_knowledge_of_server) +> TransactionsResponse get_transactions_by_month(budget_id, month, since_date=since_date, type=type, last_knowledge_of_server=last_knowledge_of_server) List transactions in month, excluding any pending transactions @@ -538,7 +538,7 @@ Returns all transactions for a specified month ```python import ynab -from ynab.models.hybrid_transactions_response import HybridTransactionsResponse +from ynab.models.transactions_response import TransactionsResponse from ynab.rest import ApiException from pprint import pprint @@ -592,7 +592,7 @@ Name | Type | Description | Notes ### Return type -[**HybridTransactionsResponse**](HybridTransactionsResponse.md) +[**TransactionsResponse**](TransactionsResponse.md) ### Authorization diff --git a/open_api_spec.yaml b/open_api_spec.yaml index ac623a7..698263c 100644 --- a/open_api_spec.yaml +++ b/open_api_spec.yaml @@ -1482,7 +1482,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/HybridTransactionsResponse" + $ref: "#/components/schemas/TransactionsResponse" "404": description: No transactions were found content: diff --git a/ynab/api/transactions_api.py b/ynab/api/transactions_api.py index bab3c45..10e7532 100644 --- a/ynab/api/transactions_api.py +++ b/ynab/api/transactions_api.py @@ -1925,7 +1925,7 @@ def get_transactions_by_month( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> HybridTransactionsResponse: + ) -> TransactionsResponse: """List transactions in month, excluding any pending transactions Returns all transactions for a specified month @@ -1975,7 +1975,7 @@ def get_transactions_by_month( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "HybridTransactionsResponse", + '200': "TransactionsResponse", '404': "ErrorResponse", } response_data = self.api_client.call_api( @@ -2009,7 +2009,7 @@ def get_transactions_by_month_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[HybridTransactionsResponse]: + ) -> ApiResponse[TransactionsResponse]: """List transactions in month, excluding any pending transactions Returns all transactions for a specified month @@ -2059,7 +2059,7 @@ def get_transactions_by_month_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "HybridTransactionsResponse", + '200': "TransactionsResponse", '404': "ErrorResponse", } response_data = self.api_client.call_api( @@ -2143,7 +2143,7 @@ def get_transactions_by_month_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "HybridTransactionsResponse", + '200': "TransactionsResponse", '404': "ErrorResponse", } response_data = self.api_client.call_api(