Skip to content

Commit 0feb100

Browse files
committed
Fix return model type for /months/{month}/transactions
HybridTransactionsResponse > TransactionsResponse
1 parent eaf10aa commit 0feb100

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

docs/TransactionsApi.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ Name | Type | Description | Notes
526526
[[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)
527527

528528
# **get_transactions_by_month**
529-
> HybridTransactionsResponse get_transactions_by_month(budget_id, month, since_date=since_date, type=type, last_knowledge_of_server=last_knowledge_of_server)
529+
> TransactionsResponse get_transactions_by_month(budget_id, month, since_date=since_date, type=type, last_knowledge_of_server=last_knowledge_of_server)
530530
531531
List transactions in month, excluding any pending transactions
532532

@@ -538,7 +538,7 @@ Returns all transactions for a specified month
538538

539539
```python
540540
import ynab
541-
from ynab.models.hybrid_transactions_response import HybridTransactionsResponse
541+
from ynab.models.transactions_response import TransactionsResponse
542542
from ynab.rest import ApiException
543543
from pprint import pprint
544544

@@ -592,7 +592,7 @@ Name | Type | Description | Notes
592592

593593
### Return type
594594

595-
[**HybridTransactionsResponse**](HybridTransactionsResponse.md)
595+
[**TransactionsResponse**](TransactionsResponse.md)
596596

597597
### Authorization
598598

open_api_spec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1482,7 +1482,7 @@ paths:
14821482
content:
14831483
application/json:
14841484
schema:
1485-
$ref: "#/components/schemas/HybridTransactionsResponse"
1485+
$ref: "#/components/schemas/TransactionsResponse"
14861486
"404":
14871487
description: No transactions were found
14881488
content:

ynab/api/transactions_api.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1925,7 +1925,7 @@ def get_transactions_by_month(
19251925
_content_type: Optional[StrictStr] = None,
19261926
_headers: Optional[Dict[StrictStr, Any]] = None,
19271927
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1928-
) -> HybridTransactionsResponse:
1928+
) -> TransactionsResponse:
19291929
"""List transactions in month, excluding any pending transactions
19301930
19311931
Returns all transactions for a specified month
@@ -1975,7 +1975,7 @@ def get_transactions_by_month(
19751975
)
19761976

19771977
_response_types_map: Dict[str, Optional[str]] = {
1978-
'200': "HybridTransactionsResponse",
1978+
'200': "TransactionsResponse",
19791979
'404': "ErrorResponse",
19801980
}
19811981
response_data = self.api_client.call_api(
@@ -2009,7 +2009,7 @@ def get_transactions_by_month_with_http_info(
20092009
_content_type: Optional[StrictStr] = None,
20102010
_headers: Optional[Dict[StrictStr, Any]] = None,
20112011
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2012-
) -> ApiResponse[HybridTransactionsResponse]:
2012+
) -> ApiResponse[TransactionsResponse]:
20132013
"""List transactions in month, excluding any pending transactions
20142014
20152015
Returns all transactions for a specified month
@@ -2059,7 +2059,7 @@ def get_transactions_by_month_with_http_info(
20592059
)
20602060

20612061
_response_types_map: Dict[str, Optional[str]] = {
2062-
'200': "HybridTransactionsResponse",
2062+
'200': "TransactionsResponse",
20632063
'404': "ErrorResponse",
20642064
}
20652065
response_data = self.api_client.call_api(
@@ -2143,7 +2143,7 @@ def get_transactions_by_month_without_preload_content(
21432143
)
21442144

21452145
_response_types_map: Dict[str, Optional[str]] = {
2146-
'200': "HybridTransactionsResponse",
2146+
'200': "TransactionsResponse",
21472147
'404': "ErrorResponse",
21482148
}
21492149
response_data = self.api_client.call_api(

0 commit comments

Comments
 (0)