Skip to content

Commit f3517a4

Browse files
authored
Merge pull request #13 from cloudbeds/feat/v1.8.0
feat: v1.8.0
2 parents c7f81fd + 5161fd7 commit f3517a4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+191
-68
lines changed

.openapi-generator/FILES

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ cloudbeds_fiscal_document/docs/CreateReceiptRequest.md
2020
cloudbeds_fiscal_document/docs/CreateSimpleReceiptRequest.md
2121
cloudbeds_fiscal_document/docs/CreationMethod.md
2222
cloudbeds_fiscal_document/docs/DocumentAction.md
23+
cloudbeds_fiscal_document/docs/DocumentTriggerEvent.md
2324
cloudbeds_fiscal_document/docs/FeaturesApi.md
2425
cloudbeds_fiscal_document/docs/FiscalDocumentDetailedResponse.md
2526
cloudbeds_fiscal_document/docs/FiscalDocumentEmailRequest.md
@@ -71,6 +72,7 @@ cloudbeds_fiscal_document/models/create_receipt_request.py
7172
cloudbeds_fiscal_document/models/create_simple_receipt_request.py
7273
cloudbeds_fiscal_document/models/creation_method.py
7374
cloudbeds_fiscal_document/models/document_action.py
75+
cloudbeds_fiscal_document/models/document_trigger_event.py
7476
cloudbeds_fiscal_document/models/fiscal_document_detailed_response.py
7577
cloudbeds_fiscal_document/models/fiscal_document_email_request.py
7678
cloudbeds_fiscal_document/models/fiscal_document_filters.py
@@ -108,3 +110,4 @@ cloudbeds_fiscal_document/models/source_kind.py
108110
cloudbeds_fiscal_document/models/transaction_for_allocation_response.py
109111
cloudbeds_fiscal_document/rest.py
110112
cloudbeds_fiscal_document/test/__init__.py
113+
cloudbeds_fiscal_document/test/test_document_trigger_event.py

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ No description provided (generated by Openapi Generator https://github.com/opena
44
The `cloudbeds_fiscal_document` package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
55

66
- API version: v1
7-
- Package version: 1.7.1
7+
- Package version: 1.8.0
88
- Generator version: 7.11.0
99
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
1010

@@ -116,6 +116,7 @@ Class | Method | HTTP request | Description
116116
- [CreateSimpleReceiptRequest](cloudbeds_fiscal_document/docs/CreateSimpleReceiptRequest.md)
117117
- [CreationMethod](cloudbeds_fiscal_document/docs/CreationMethod.md)
118118
- [DocumentAction](cloudbeds_fiscal_document/docs/DocumentAction.md)
119+
- [DocumentTriggerEvent](cloudbeds_fiscal_document/docs/DocumentTriggerEvent.md)
119120
- [FiscalDocumentDetailedResponse](cloudbeds_fiscal_document/docs/FiscalDocumentDetailedResponse.md)
120121
- [FiscalDocumentEmailRequest](cloudbeds_fiscal_document/docs/FiscalDocumentEmailRequest.md)
121122
- [FiscalDocumentFilters](cloudbeds_fiscal_document/docs/FiscalDocumentFilters.md)

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.7.1
1+
1.8.0

cloudbeds_fiscal_document/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
""" # noqa: E501
1515

1616

17-
__version__ = "1.7.1"
17+
__version__ = "1.8.0"
1818

1919
# import apis into sdk package
2020
from cloudbeds_fiscal_document.api.configs_api import ConfigsApi
@@ -45,6 +45,7 @@
4545
from cloudbeds_fiscal_document.models.create_simple_receipt_request import CreateSimpleReceiptRequest
4646
from cloudbeds_fiscal_document.models.creation_method import CreationMethod
4747
from cloudbeds_fiscal_document.models.document_action import DocumentAction
48+
from cloudbeds_fiscal_document.models.document_trigger_event import DocumentTriggerEvent
4849
from cloudbeds_fiscal_document.models.fiscal_document_detailed_response import FiscalDocumentDetailedResponse
4950
from cloudbeds_fiscal_document.models.fiscal_document_email_request import FiscalDocumentEmailRequest
5051
from cloudbeds_fiscal_document.models.fiscal_document_filters import FiscalDocumentFilters

cloudbeds_fiscal_document/api/fiscal_documents_api.py

Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5301,24 +5301,7 @@ def _get_fiscal_documents_serialize(
53015301

53025302
if filters is not None:
53035303

5304-
# Custom form serialization for filters
5305-
if hasattr(filters, 'to_dict'):
5306-
filters_dict = filters.to_dict()
5307-
for key, value in filters_dict.items():
5308-
if value is not None:
5309-
if isinstance(value, list):
5310-
for item in value:
5311-
if hasattr(item, 'value'): # Handle enums
5312-
_query_params.append((key, item.value))
5313-
else:
5314-
_query_params.append((key, item))
5315-
else:
5316-
if hasattr(value, 'value'): # Handle enums
5317-
_query_params.append((key, value.value))
5318-
else:
5319-
_query_params.append((key, value))
5320-
else:
5321-
_query_params.append(('filters', filters))
5304+
_query_params.append(('filters', filters))
53225305

53235306
# process the header parameters
53245307
if x_property_id is not None:
@@ -6634,7 +6617,7 @@ def put_fiscal_document(
66346617
) -> FiscalDocumentSummaryResponse:
66356618
"""Update a fiscal document by id
66366619
6637-
Update a fiscal document status, government integration details, or failure reason. Used by integration partners to update document lifecycle and government processing status. **Common Updates:** - Update status (PENDING_INTEGRATION, COMPLETED_INTEGRATION, FAILED, etc.) - Set government integration details (series, number, external ID, QR codes) - Record failure reasons for failed integrations **Invoice Cancellation (Spanish Properties Only):** - Set status to CANCEL_REQUESTED to cancel invoices - Only invoices in OPEN or CORRECTION_NEEDED status can be canceled - Invoices with rectifying documents cannot be canceled - Integration partners must handle CANCEL_REQUESTED and update to CANCELED (success) or revert to previous status (failure)
6620+
Update a fiscal document status, government integration details, or failure reason. Used by integration partners to update document lifecycle and government processing status. **Common Updates:** - Update status (PENDING_INTEGRATION, COMPLETED_INTEGRATION, FAILED, etc.) - Set government integration details (series, number, external ID, QR codes) - Record failure reasons for failed integrations **Invoice Cancellation (Spanish Properties Only):** - Set status to CANCEL_REQUESTED to cancel invoices - Only invoices in OPEN, PAID, PARTIALLY_PAID or CORRECTION_NEEDED status can be canceled - Invoices with rectifying documents cannot be canceled - Integration partners must handle CANCEL_REQUESTED and update to CANCELED (success) or revert to previous status (failure)
66386621
66396622
:param id: Unique ID of the fiscal document to download. (required)
66406623
:type id: int
@@ -6709,7 +6692,7 @@ def put_fiscal_document_with_http_info(
67096692
) -> ApiResponse[FiscalDocumentSummaryResponse]:
67106693
"""Update a fiscal document by id
67116694
6712-
Update a fiscal document status, government integration details, or failure reason. Used by integration partners to update document lifecycle and government processing status. **Common Updates:** - Update status (PENDING_INTEGRATION, COMPLETED_INTEGRATION, FAILED, etc.) - Set government integration details (series, number, external ID, QR codes) - Record failure reasons for failed integrations **Invoice Cancellation (Spanish Properties Only):** - Set status to CANCEL_REQUESTED to cancel invoices - Only invoices in OPEN or CORRECTION_NEEDED status can be canceled - Invoices with rectifying documents cannot be canceled - Integration partners must handle CANCEL_REQUESTED and update to CANCELED (success) or revert to previous status (failure)
6695+
Update a fiscal document status, government integration details, or failure reason. Used by integration partners to update document lifecycle and government processing status. **Common Updates:** - Update status (PENDING_INTEGRATION, COMPLETED_INTEGRATION, FAILED, etc.) - Set government integration details (series, number, external ID, QR codes) - Record failure reasons for failed integrations **Invoice Cancellation (Spanish Properties Only):** - Set status to CANCEL_REQUESTED to cancel invoices - Only invoices in OPEN, PAID, PARTIALLY_PAID or CORRECTION_NEEDED status can be canceled - Invoices with rectifying documents cannot be canceled - Integration partners must handle CANCEL_REQUESTED and update to CANCELED (success) or revert to previous status (failure)
67136696
67146697
:param id: Unique ID of the fiscal document to download. (required)
67156698
:type id: int
@@ -6784,7 +6767,7 @@ def put_fiscal_document_without_preload_content(
67846767
) -> RESTResponseType:
67856768
"""Update a fiscal document by id
67866769
6787-
Update a fiscal document status, government integration details, or failure reason. Used by integration partners to update document lifecycle and government processing status. **Common Updates:** - Update status (PENDING_INTEGRATION, COMPLETED_INTEGRATION, FAILED, etc.) - Set government integration details (series, number, external ID, QR codes) - Record failure reasons for failed integrations **Invoice Cancellation (Spanish Properties Only):** - Set status to CANCEL_REQUESTED to cancel invoices - Only invoices in OPEN or CORRECTION_NEEDED status can be canceled - Invoices with rectifying documents cannot be canceled - Integration partners must handle CANCEL_REQUESTED and update to CANCELED (success) or revert to previous status (failure)
6770+
Update a fiscal document status, government integration details, or failure reason. Used by integration partners to update document lifecycle and government processing status. **Common Updates:** - Update status (PENDING_INTEGRATION, COMPLETED_INTEGRATION, FAILED, etc.) - Set government integration details (series, number, external ID, QR codes) - Record failure reasons for failed integrations **Invoice Cancellation (Spanish Properties Only):** - Set status to CANCEL_REQUESTED to cancel invoices - Only invoices in OPEN, PAID, PARTIALLY_PAID or CORRECTION_NEEDED status can be canceled - Invoices with rectifying documents cannot be canceled - Integration partners must handle CANCEL_REQUESTED and update to CANCELED (success) or revert to previous status (failure)
67886771
67896772
:param id: Unique ID of the fiscal document to download. (required)
67906773
:type id: int

cloudbeds_fiscal_document/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def __init__(
9090
self.default_headers[header_name] = header_value
9191
self.cookie = cookie
9292
# Set default User-Agent.
93-
self.user_agent = 'OpenAPI-Generator/1.7.1/python'
93+
self.user_agent = 'OpenAPI-Generator/1.8.0/python'
9494
self.client_side_validation = configuration.client_side_validation
9595

9696
def __enter__(self):

cloudbeds_fiscal_document/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ def to_debug_report(self) -> str:
504504
"OS: {env}\n"\
505505
"Python Version: {pyversion}\n"\
506506
"Version of the API: v1\n"\
507-
"SDK Package Version: 1.7.1".\
507+
"SDK Package Version: 1.8.0".\
508508
format(env=sys.platform, pyversion=sys.version)
509509

510510
def get_host_settings(self) -> List[HostSetting]:

cloudbeds_fiscal_document/docs/ConfigsResponse.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
88
**property_id** | **str** | | [optional]
99
**document_kind** | [**FiscalDocumentKind**](FiscalDocumentKind.md) | | [optional]
1010
**show_detailed_tax_fee** | **bool** | | [optional]
11+
**show_credit_notes_and_receipts** | **bool** | | [optional]
1112
**charge_breakdown** | **bool** | | [optional]
1213
**use_guest_lang** | **bool** | | [optional]
1314
**due_days** | **int** | | [optional]

cloudbeds_fiscal_document/docs/ConfigsUpdateRequest.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,30 @@
55

66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
8+
**trigger_events** | [**List[DocumentTriggerEvent]**](DocumentTriggerEvent.md) | | [optional]
89
**show_detailed_tax_fee** | **bool** | |
910
**charge_breakdown** | **bool** | |
1011
**use_guest_lang** | **bool** | |
11-
**due_days** | **int** | | [optional]
12+
**due_days** | **int** | | [optional] [default to 0]
13+
**sequence_start_number** | **int** | | [optional] [default to 0]
1214
**lang** | **str** | | [optional]
1315
**prefix** | **str** | | [optional]
1416
**suffix** | **str** | | [optional]
1517
**legal_company_name** | **str** | | [optional]
1618
**title** | **Dict[str, str]** | | [optional]
17-
**show_legal_company_name** | **bool** | |
18-
**include_room_number** | **bool** | |
19+
**show_legal_company_name** | **bool** | | [default to False]
20+
**include_room_number** | **bool** | | [default to False]
1921
**use_document_number** | **bool** | |
20-
**is_compact** | **bool** | |
22+
**create_invoice_on_allocation** | **bool** | | [optional] [default to False]
23+
**is_compact** | **bool** | | [default to False]
24+
**use_invoice_title_and_numbering** | **bool** | Flag to determine if invoice title, sequenceStartNumber, prefix and suffix should be used. | [optional] [default to False]
25+
**use_invoice_document_settings** | **bool** | Flag to determine if invoice document settings should be used. | [optional] [default to False]
26+
**show_credit_notes_and_receipts** | **bool** | Flag to determine if linked credit notes and receipts should be rendered in Invoice. | [optional] [default to False]
2127
**tax_id1** | **str** | | [optional]
2228
**tax_id2** | **str** | | [optional]
2329
**cpf** | **str** | | [optional]
2430
**custom_text** | **Dict[str, str]** | | [optional]
31+
**logo_id** | **int** | | [optional]
2532

2633
## Example
2734

cloudbeds_fiscal_document/docs/CreateCreditNoteRequest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
1212
**method** | [**CreationMethod**](CreationMethod.md) | |
1313
**transaction_ids** | **List[int]** | Include transactions with the specified IDs (deprecated, use `includeTransactionIds` instead) | [optional]
1414
**folio_ids** | **List[int]** | Include all transactions from the specified folio IDs | [optional]
15-
**exclude_transaction_ids** | **List[int]** | Exclude transactions with the specified IDs associated with selected folio IDs | [optional]
15+
**exclude_transaction_ids** | **List[int]** | Exclude transactions with the specified IDs | [optional]
1616
**include_transaction_ids** | **List[int]** | Include transactions with the specified IDs | [optional]
1717

1818
## Example

0 commit comments

Comments
 (0)