1616from typing import Any , Dict , List , Optional , Tuple , Union
1717from typing_extensions import Annotated
1818
19- from pydantic import Field , StrictBytes , StrictStr
19+ from pydantic import Field , StrictBool , StrictBytes , StrictStr
2020from typing import Any , Dict , List , Optional , Tuple , Union
2121from typing_extensions import Annotated
2222from cloudbeds_fiscal_document .models .create_credit_note_request import CreateCreditNoteRequest
@@ -2125,6 +2125,7 @@ def get_fiscal_document_transactions_by_id(
21252125 id : Annotated [str , Field (min_length = 1 , strict = True , description = "Unique ID of the fiscal document to download." )],
21262126 x_property_id : Annotated [int , Field (strict = True , ge = 1 , description = "Property id" )],
21272127 page_token : Annotated [Optional [StrictStr ], Field (description = "Token for fetching the next page, as per cursor-based pagination." )] = None ,
2128+ include_linked_document_transactions : Annotated [Optional [StrictBool ], Field (description = "Include transactions from linked documents." )] = None ,
21282129 limit : Annotated [Optional [Annotated [int , Field (le = 100 , strict = True , ge = 1 )]], Field (description = "Number of results to return per page." )] = None ,
21292130 _request_timeout : Union [
21302131 None ,
@@ -2149,6 +2150,8 @@ def get_fiscal_document_transactions_by_id(
21492150 :type x_property_id: int
21502151 :param page_token: Token for fetching the next page, as per cursor-based pagination.
21512152 :type page_token: str
2153+ :param include_linked_document_transactions: Include transactions from linked documents.
2154+ :type include_linked_document_transactions: bool
21522155 :param limit: Number of results to return per page.
21532156 :type limit: int
21542157 :param _request_timeout: timeout setting for this request. If one
@@ -2177,6 +2180,7 @@ def get_fiscal_document_transactions_by_id(
21772180 id = id ,
21782181 x_property_id = x_property_id ,
21792182 page_token = page_token ,
2183+ include_linked_document_transactions = include_linked_document_transactions ,
21802184 limit = limit ,
21812185 _request_auth = _request_auth ,
21822186 _content_type = _content_type ,
@@ -2204,6 +2208,7 @@ def get_fiscal_document_transactions_by_id_with_http_info(
22042208 id : Annotated [str , Field (min_length = 1 , strict = True , description = "Unique ID of the fiscal document to download." )],
22052209 x_property_id : Annotated [int , Field (strict = True , ge = 1 , description = "Property id" )],
22062210 page_token : Annotated [Optional [StrictStr ], Field (description = "Token for fetching the next page, as per cursor-based pagination." )] = None ,
2211+ include_linked_document_transactions : Annotated [Optional [StrictBool ], Field (description = "Include transactions from linked documents." )] = None ,
22072212 limit : Annotated [Optional [Annotated [int , Field (le = 100 , strict = True , ge = 1 )]], Field (description = "Number of results to return per page." )] = None ,
22082213 _request_timeout : Union [
22092214 None ,
@@ -2228,6 +2233,8 @@ def get_fiscal_document_transactions_by_id_with_http_info(
22282233 :type x_property_id: int
22292234 :param page_token: Token for fetching the next page, as per cursor-based pagination.
22302235 :type page_token: str
2236+ :param include_linked_document_transactions: Include transactions from linked documents.
2237+ :type include_linked_document_transactions: bool
22312238 :param limit: Number of results to return per page.
22322239 :type limit: int
22332240 :param _request_timeout: timeout setting for this request. If one
@@ -2256,6 +2263,7 @@ def get_fiscal_document_transactions_by_id_with_http_info(
22562263 id = id ,
22572264 x_property_id = x_property_id ,
22582265 page_token = page_token ,
2266+ include_linked_document_transactions = include_linked_document_transactions ,
22592267 limit = limit ,
22602268 _request_auth = _request_auth ,
22612269 _content_type = _content_type ,
@@ -2283,6 +2291,7 @@ def get_fiscal_document_transactions_by_id_without_preload_content(
22832291 id : Annotated [str , Field (min_length = 1 , strict = True , description = "Unique ID of the fiscal document to download." )],
22842292 x_property_id : Annotated [int , Field (strict = True , ge = 1 , description = "Property id" )],
22852293 page_token : Annotated [Optional [StrictStr ], Field (description = "Token for fetching the next page, as per cursor-based pagination." )] = None ,
2294+ include_linked_document_transactions : Annotated [Optional [StrictBool ], Field (description = "Include transactions from linked documents." )] = None ,
22862295 limit : Annotated [Optional [Annotated [int , Field (le = 100 , strict = True , ge = 1 )]], Field (description = "Number of results to return per page." )] = None ,
22872296 _request_timeout : Union [
22882297 None ,
@@ -2307,6 +2316,8 @@ def get_fiscal_document_transactions_by_id_without_preload_content(
23072316 :type x_property_id: int
23082317 :param page_token: Token for fetching the next page, as per cursor-based pagination.
23092318 :type page_token: str
2319+ :param include_linked_document_transactions: Include transactions from linked documents.
2320+ :type include_linked_document_transactions: bool
23102321 :param limit: Number of results to return per page.
23112322 :type limit: int
23122323 :param _request_timeout: timeout setting for this request. If one
@@ -2335,6 +2346,7 @@ def get_fiscal_document_transactions_by_id_without_preload_content(
23352346 id = id ,
23362347 x_property_id = x_property_id ,
23372348 page_token = page_token ,
2349+ include_linked_document_transactions = include_linked_document_transactions ,
23382350 limit = limit ,
23392351 _request_auth = _request_auth ,
23402352 _content_type = _content_type ,
@@ -2357,6 +2369,7 @@ def _get_fiscal_document_transactions_by_id_serialize(
23572369 id ,
23582370 x_property_id ,
23592371 page_token ,
2372+ include_linked_document_transactions ,
23602373 limit ,
23612374 _request_auth ,
23622375 _content_type ,
@@ -2386,6 +2399,10 @@ def _get_fiscal_document_transactions_by_id_serialize(
23862399
23872400 _query_params .append (('pageToken' , page_token ))
23882401
2402+ if include_linked_document_transactions is not None :
2403+
2404+ _query_params .append (('includeLinkedDocumentTransactions' , include_linked_document_transactions ))
2405+
23892406 if limit is not None :
23902407
23912408 _query_params .append (('limit' , limit ))
@@ -2440,6 +2457,7 @@ def get_fiscal_documents(
24402457 source_ids : Annotated [Optional [List [StrictStr ]], Field (description = "Comma-separated list of source IDs." )] = None ,
24412458 source_identifiers : Annotated [Optional [List [StrictStr ]], Field (description = "Comma-separated list of source-specific identifiers." )] = None ,
24422459 source_kind : Annotated [Optional [SourceKind ], Field (description = "Filter by source kind." )] = None ,
2460+ number_contains : Annotated [Optional [StrictStr ], Field (description = "Filter by document number partial match." )] = None ,
24432461 statuses : Annotated [Optional [List [FiscalDocumentStatus ]], Field (description = "Comma-separated list of fiscal document statuses." )] = None ,
24442462 kinds : Annotated [Optional [List [FiscalDocumentKind ]], Field (description = "Comma-separated list of fiscal document kinds." )] = None ,
24452463 _request_timeout : Union [
@@ -2475,6 +2493,8 @@ def get_fiscal_documents(
24752493 :type source_identifiers: List[str]
24762494 :param source_kind: Filter by source kind.
24772495 :type source_kind: SourceKind
2496+ :param number_contains: Filter by document number partial match.
2497+ :type number_contains: str
24782498 :param statuses: Comma-separated list of fiscal document statuses.
24792499 :type statuses: List[FiscalDocumentStatus]
24802500 :param kinds: Comma-separated list of fiscal document kinds.
@@ -2510,6 +2530,7 @@ def get_fiscal_documents(
25102530 source_ids = source_ids ,
25112531 source_identifiers = source_identifiers ,
25122532 source_kind = source_kind ,
2533+ number_contains = number_contains ,
25132534 statuses = statuses ,
25142535 kinds = kinds ,
25152536 _request_auth = _request_auth ,
@@ -2543,6 +2564,7 @@ def get_fiscal_documents_with_http_info(
25432564 source_ids : Annotated [Optional [List [StrictStr ]], Field (description = "Comma-separated list of source IDs." )] = None ,
25442565 source_identifiers : Annotated [Optional [List [StrictStr ]], Field (description = "Comma-separated list of source-specific identifiers." )] = None ,
25452566 source_kind : Annotated [Optional [SourceKind ], Field (description = "Filter by source kind." )] = None ,
2567+ number_contains : Annotated [Optional [StrictStr ], Field (description = "Filter by document number partial match." )] = None ,
25462568 statuses : Annotated [Optional [List [FiscalDocumentStatus ]], Field (description = "Comma-separated list of fiscal document statuses." )] = None ,
25472569 kinds : Annotated [Optional [List [FiscalDocumentKind ]], Field (description = "Comma-separated list of fiscal document kinds." )] = None ,
25482570 _request_timeout : Union [
@@ -2578,6 +2600,8 @@ def get_fiscal_documents_with_http_info(
25782600 :type source_identifiers: List[str]
25792601 :param source_kind: Filter by source kind.
25802602 :type source_kind: SourceKind
2603+ :param number_contains: Filter by document number partial match.
2604+ :type number_contains: str
25812605 :param statuses: Comma-separated list of fiscal document statuses.
25822606 :type statuses: List[FiscalDocumentStatus]
25832607 :param kinds: Comma-separated list of fiscal document kinds.
@@ -2613,6 +2637,7 @@ def get_fiscal_documents_with_http_info(
26132637 source_ids = source_ids ,
26142638 source_identifiers = source_identifiers ,
26152639 source_kind = source_kind ,
2640+ number_contains = number_contains ,
26162641 statuses = statuses ,
26172642 kinds = kinds ,
26182643 _request_auth = _request_auth ,
@@ -2646,6 +2671,7 @@ def get_fiscal_documents_without_preload_content(
26462671 source_ids : Annotated [Optional [List [StrictStr ]], Field (description = "Comma-separated list of source IDs." )] = None ,
26472672 source_identifiers : Annotated [Optional [List [StrictStr ]], Field (description = "Comma-separated list of source-specific identifiers." )] = None ,
26482673 source_kind : Annotated [Optional [SourceKind ], Field (description = "Filter by source kind." )] = None ,
2674+ number_contains : Annotated [Optional [StrictStr ], Field (description = "Filter by document number partial match." )] = None ,
26492675 statuses : Annotated [Optional [List [FiscalDocumentStatus ]], Field (description = "Comma-separated list of fiscal document statuses." )] = None ,
26502676 kinds : Annotated [Optional [List [FiscalDocumentKind ]], Field (description = "Comma-separated list of fiscal document kinds." )] = None ,
26512677 _request_timeout : Union [
@@ -2681,6 +2707,8 @@ def get_fiscal_documents_without_preload_content(
26812707 :type source_identifiers: List[str]
26822708 :param source_kind: Filter by source kind.
26832709 :type source_kind: SourceKind
2710+ :param number_contains: Filter by document number partial match.
2711+ :type number_contains: str
26842712 :param statuses: Comma-separated list of fiscal document statuses.
26852713 :type statuses: List[FiscalDocumentStatus]
26862714 :param kinds: Comma-separated list of fiscal document kinds.
@@ -2716,6 +2744,7 @@ def get_fiscal_documents_without_preload_content(
27162744 source_ids = source_ids ,
27172745 source_identifiers = source_identifiers ,
27182746 source_kind = source_kind ,
2747+ number_contains = number_contains ,
27192748 statuses = statuses ,
27202749 kinds = kinds ,
27212750 _request_auth = _request_auth ,
@@ -2744,6 +2773,7 @@ def _get_fiscal_documents_serialize(
27442773 source_ids ,
27452774 source_identifiers ,
27462775 source_kind ,
2776+ number_contains ,
27472777 statuses ,
27482778 kinds ,
27492779 _request_auth ,
@@ -2801,6 +2831,10 @@ def _get_fiscal_documents_serialize(
28012831
28022832 _query_params .append (('sourceKind' , source_kind .value ))
28032833
2834+ if number_contains is not None :
2835+
2836+ _query_params .append (('numberContains' , number_contains ))
2837+
28042838 if statuses is not None :
28052839
28062840 _query_params .append (('statuses' , statuses ))
0 commit comments