cloudbeds-fiscal-document 1.7.1__py3-none-any.whl → 1.9.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- cloudbeds_fiscal_document/__init__.py +3 -1
- cloudbeds_fiscal_document/api/fiscal_documents_api.py +4 -21
- cloudbeds_fiscal_document/api_client.py +1 -1
- cloudbeds_fiscal_document/configuration.py +1 -1
- cloudbeds_fiscal_document/models/__init__.py +2 -0
- cloudbeds_fiscal_document/models/configs_response.py +3 -1
- cloudbeds_fiscal_document/models/configs_update_request.py +27 -12
- cloudbeds_fiscal_document/models/create_credit_note_request.py +1 -1
- cloudbeds_fiscal_document/models/create_invoice_request.py +1 -1
- cloudbeds_fiscal_document/models/create_receipt_request.py +5 -3
- cloudbeds_fiscal_document/models/document_trigger_event.py +39 -0
- cloudbeds_fiscal_document/models/fiscal_document_detailed_response.py +4 -1
- cloudbeds_fiscal_document/models/fiscal_document_kind.py +1 -0
- cloudbeds_fiscal_document/models/fiscal_document_recipient.py +7 -1
- cloudbeds_fiscal_document/models/fiscal_document_transaction_response.py +12 -1
- cloudbeds_fiscal_document/models/get_credit_note_preview_request.py +1 -1
- cloudbeds_fiscal_document/models/get_invoice_preview_request.py +1 -1
- cloudbeds_fiscal_document/models/get_rectify_invoice_note_preview_request.py +1 -1
- cloudbeds_fiscal_document/models/government_integration.py +5 -3
- cloudbeds_fiscal_document/models/pro_forma_invoice_preview_request.py +1 -1
- cloudbeds_fiscal_document/models/pro_forma_invoice_request.py +1 -1
- cloudbeds_fiscal_document/models/recipient_company.py +103 -0
- cloudbeds_fiscal_document/models/rectify_invoice_note_request.py +1 -1
- cloudbeds_fiscal_document/test/test_document_trigger_event.py +33 -0
- cloudbeds_fiscal_document/test/test_recipient_company.py +59 -0
- {cloudbeds_fiscal_document-1.7.1.dist-info → cloudbeds_fiscal_document-1.9.0.dist-info}/METADATA +4 -2
- {cloudbeds_fiscal_document-1.7.1.dist-info → cloudbeds_fiscal_document-1.9.0.dist-info}/RECORD +30 -26
- {cloudbeds_fiscal_document-1.7.1.dist-info → cloudbeds_fiscal_document-1.9.0.dist-info}/WHEEL +0 -0
- {cloudbeds_fiscal_document-1.7.1.dist-info → cloudbeds_fiscal_document-1.9.0.dist-info}/licenses/LICENSE +0 -0
- {cloudbeds_fiscal_document-1.7.1.dist-info → cloudbeds_fiscal_document-1.9.0.dist-info}/top_level.txt +0 -0
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
""" # noqa: E501
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
__version__ = "1.
|
|
17
|
+
__version__ = "1.9.0"
|
|
18
18
|
|
|
19
19
|
# import apis into sdk package
|
|
20
20
|
from cloudbeds_fiscal_document.api.configs_api import ConfigsApi
|
|
@@ -45,6 +45,7 @@ from cloudbeds_fiscal_document.models.create_receipt_request import CreateReceip
|
|
|
45
45
|
from cloudbeds_fiscal_document.models.create_simple_receipt_request import CreateSimpleReceiptRequest
|
|
46
46
|
from cloudbeds_fiscal_document.models.creation_method import CreationMethod
|
|
47
47
|
from cloudbeds_fiscal_document.models.document_action import DocumentAction
|
|
48
|
+
from cloudbeds_fiscal_document.models.document_trigger_event import DocumentTriggerEvent
|
|
48
49
|
from cloudbeds_fiscal_document.models.fiscal_document_detailed_response import FiscalDocumentDetailedResponse
|
|
49
50
|
from cloudbeds_fiscal_document.models.fiscal_document_email_request import FiscalDocumentEmailRequest
|
|
50
51
|
from cloudbeds_fiscal_document.models.fiscal_document_filters import FiscalDocumentFilters
|
|
@@ -71,6 +72,7 @@ from cloudbeds_fiscal_document.models.pro_forma_invoice_request import ProFormaI
|
|
|
71
72
|
from cloudbeds_fiscal_document.models.pro_forma_status_update_request import ProFormaStatusUpdateRequest
|
|
72
73
|
from cloudbeds_fiscal_document.models.receipt_transaction_allocation import ReceiptTransactionAllocation
|
|
73
74
|
from cloudbeds_fiscal_document.models.recipient_address import RecipientAddress
|
|
75
|
+
from cloudbeds_fiscal_document.models.recipient_company import RecipientCompany
|
|
74
76
|
from cloudbeds_fiscal_document.models.recipient_contact_details import RecipientContactDetails
|
|
75
77
|
from cloudbeds_fiscal_document.models.recipient_details import RecipientDetails
|
|
76
78
|
from cloudbeds_fiscal_document.models.recipient_document import RecipientDocument
|
|
@@ -5301,24 +5301,7 @@ class FiscalDocumentsApi:
|
|
|
5301
5301
|
|
|
5302
5302
|
if filters is not None:
|
|
5303
5303
|
|
|
5304
|
-
|
|
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))
|
|
5322
5305
|
|
|
5323
5306
|
# process the header parameters
|
|
5324
5307
|
if x_property_id is not None:
|
|
@@ -6634,7 +6617,7 @@ class FiscalDocumentsApi:
|
|
|
6634
6617
|
) -> FiscalDocumentSummaryResponse:
|
|
6635
6618
|
"""Update a fiscal document by id
|
|
6636
6619
|
|
|
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)
|
|
6638
6621
|
|
|
6639
6622
|
:param id: Unique ID of the fiscal document to download. (required)
|
|
6640
6623
|
:type id: int
|
|
@@ -6709,7 +6692,7 @@ class FiscalDocumentsApi:
|
|
|
6709
6692
|
) -> ApiResponse[FiscalDocumentSummaryResponse]:
|
|
6710
6693
|
"""Update a fiscal document by id
|
|
6711
6694
|
|
|
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)
|
|
6713
6696
|
|
|
6714
6697
|
:param id: Unique ID of the fiscal document to download. (required)
|
|
6715
6698
|
:type id: int
|
|
@@ -6784,7 +6767,7 @@ class FiscalDocumentsApi:
|
|
|
6784
6767
|
) -> RESTResponseType:
|
|
6785
6768
|
"""Update a fiscal document by id
|
|
6786
6769
|
|
|
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)
|
|
6788
6771
|
|
|
6789
6772
|
:param id: Unique ID of the fiscal document to download. (required)
|
|
6790
6773
|
:type id: int
|
|
@@ -90,7 +90,7 @@ class ApiClient:
|
|
|
90
90
|
self.default_headers[header_name] = header_value
|
|
91
91
|
self.cookie = cookie
|
|
92
92
|
# Set default User-Agent.
|
|
93
|
-
self.user_agent = 'OpenAPI-Generator/1.
|
|
93
|
+
self.user_agent = 'OpenAPI-Generator/1.9.0/python'
|
|
94
94
|
self.client_side_validation = configuration.client_side_validation
|
|
95
95
|
|
|
96
96
|
def __enter__(self):
|
|
@@ -504,7 +504,7 @@ class Configuration:
|
|
|
504
504
|
"OS: {env}\n"\
|
|
505
505
|
"Python Version: {pyversion}\n"\
|
|
506
506
|
"Version of the API: v1\n"\
|
|
507
|
-
"SDK Package Version: 1.
|
|
507
|
+
"SDK Package Version: 1.9.0".\
|
|
508
508
|
format(env=sys.platform, pyversion=sys.version)
|
|
509
509
|
|
|
510
510
|
def get_host_settings(self) -> List[HostSetting]:
|
|
@@ -26,6 +26,7 @@ from cloudbeds_fiscal_document.models.create_receipt_request import CreateReceip
|
|
|
26
26
|
from cloudbeds_fiscal_document.models.create_simple_receipt_request import CreateSimpleReceiptRequest
|
|
27
27
|
from cloudbeds_fiscal_document.models.creation_method import CreationMethod
|
|
28
28
|
from cloudbeds_fiscal_document.models.document_action import DocumentAction
|
|
29
|
+
from cloudbeds_fiscal_document.models.document_trigger_event import DocumentTriggerEvent
|
|
29
30
|
from cloudbeds_fiscal_document.models.fiscal_document_detailed_response import FiscalDocumentDetailedResponse
|
|
30
31
|
from cloudbeds_fiscal_document.models.fiscal_document_email_request import FiscalDocumentEmailRequest
|
|
31
32
|
from cloudbeds_fiscal_document.models.fiscal_document_filters import FiscalDocumentFilters
|
|
@@ -52,6 +53,7 @@ from cloudbeds_fiscal_document.models.pro_forma_invoice_request import ProFormaI
|
|
|
52
53
|
from cloudbeds_fiscal_document.models.pro_forma_status_update_request import ProFormaStatusUpdateRequest
|
|
53
54
|
from cloudbeds_fiscal_document.models.receipt_transaction_allocation import ReceiptTransactionAllocation
|
|
54
55
|
from cloudbeds_fiscal_document.models.recipient_address import RecipientAddress
|
|
56
|
+
from cloudbeds_fiscal_document.models.recipient_company import RecipientCompany
|
|
55
57
|
from cloudbeds_fiscal_document.models.recipient_contact_details import RecipientContactDetails
|
|
56
58
|
from cloudbeds_fiscal_document.models.recipient_details import RecipientDetails
|
|
57
59
|
from cloudbeds_fiscal_document.models.recipient_document import RecipientDocument
|
|
@@ -30,6 +30,7 @@ class ConfigsResponse(BaseModel):
|
|
|
30
30
|
property_id: Optional[StrictStr] = Field(default=None, alias="propertyId")
|
|
31
31
|
document_kind: Optional[FiscalDocumentKind] = Field(default=None, alias="documentKind")
|
|
32
32
|
show_detailed_tax_fee: Optional[StrictBool] = Field(default=None, alias="showDetailedTaxFee")
|
|
33
|
+
show_credit_notes_and_receipts: Optional[StrictBool] = Field(default=None, alias="showCreditNotesAndReceipts")
|
|
33
34
|
charge_breakdown: Optional[StrictBool] = Field(default=None, alias="chargeBreakdown")
|
|
34
35
|
use_guest_lang: Optional[StrictBool] = Field(default=None, alias="useGuestLang")
|
|
35
36
|
due_days: Optional[StrictInt] = Field(default=None, alias="dueDays")
|
|
@@ -46,7 +47,7 @@ class ConfigsResponse(BaseModel):
|
|
|
46
47
|
tax_id2: Optional[StrictStr] = Field(default=None, alias="taxId2")
|
|
47
48
|
cpf: Optional[StrictStr] = None
|
|
48
49
|
custom_text: Optional[Dict[str, StrictStr]] = Field(default=None, alias="customText")
|
|
49
|
-
__properties: ClassVar[List[str]] = ["propertyId", "documentKind", "showDetailedTaxFee", "chargeBreakdown", "useGuestLang", "dueDays", "lang", "prefix", "suffix", "legalCompanyName", "title", "showLegalCompanyName", "includeRoomNumber", "useDocumentNumber", "isCompact", "taxId1", "taxId2", "cpf", "customText"]
|
|
50
|
+
__properties: ClassVar[List[str]] = ["propertyId", "documentKind", "showDetailedTaxFee", "showCreditNotesAndReceipts", "chargeBreakdown", "useGuestLang", "dueDays", "lang", "prefix", "suffix", "legalCompanyName", "title", "showLegalCompanyName", "includeRoomNumber", "useDocumentNumber", "isCompact", "taxId1", "taxId2", "cpf", "customText"]
|
|
50
51
|
|
|
51
52
|
model_config = ConfigDict(
|
|
52
53
|
populate_by_name=True,
|
|
@@ -102,6 +103,7 @@ class ConfigsResponse(BaseModel):
|
|
|
102
103
|
"propertyId": obj.get("propertyId"),
|
|
103
104
|
"documentKind": obj.get("documentKind"),
|
|
104
105
|
"showDetailedTaxFee": obj.get("showDetailedTaxFee"),
|
|
106
|
+
"showCreditNotesAndReceipts": obj.get("showCreditNotesAndReceipts"),
|
|
105
107
|
"chargeBreakdown": obj.get("chargeBreakdown"),
|
|
106
108
|
"useGuestLang": obj.get("useGuestLang"),
|
|
107
109
|
"dueDays": obj.get("dueDays"),
|
|
@@ -19,6 +19,7 @@ import json
|
|
|
19
19
|
|
|
20
20
|
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr
|
|
21
21
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
+
from cloudbeds_fiscal_document.models.document_trigger_event import DocumentTriggerEvent
|
|
22
23
|
from typing import Optional, Set
|
|
23
24
|
from typing_extensions import Self
|
|
24
25
|
|
|
@@ -26,10 +27,12 @@ class ConfigsUpdateRequest(BaseModel):
|
|
|
26
27
|
"""
|
|
27
28
|
ConfigsUpdateRequest
|
|
28
29
|
""" # noqa: E501
|
|
30
|
+
trigger_events: Optional[List[DocumentTriggerEvent]] = Field(default=None, alias="triggerEvents")
|
|
29
31
|
show_detailed_tax_fee: StrictBool = Field(alias="showDetailedTaxFee")
|
|
30
32
|
charge_breakdown: StrictBool = Field(alias="chargeBreakdown")
|
|
31
33
|
use_guest_lang: StrictBool = Field(alias="useGuestLang")
|
|
32
|
-
due_days: Optional[StrictInt] = Field(default=
|
|
34
|
+
due_days: Optional[StrictInt] = Field(default=0, alias="dueDays")
|
|
35
|
+
sequence_start_number: Optional[StrictInt] = Field(default=0, alias="sequenceStartNumber")
|
|
33
36
|
lang: Optional[StrictStr] = None
|
|
34
37
|
prefix: Optional[StrictStr] = None
|
|
35
38
|
suffix: Optional[StrictStr] = None
|
|
@@ -38,12 +41,17 @@ class ConfigsUpdateRequest(BaseModel):
|
|
|
38
41
|
show_legal_company_name: StrictBool = Field(alias="showLegalCompanyName")
|
|
39
42
|
include_room_number: StrictBool = Field(alias="includeRoomNumber")
|
|
40
43
|
use_document_number: StrictBool = Field(alias="useDocumentNumber")
|
|
44
|
+
create_invoice_on_allocation: Optional[StrictBool] = Field(default=False, alias="createInvoiceOnAllocation")
|
|
41
45
|
is_compact: StrictBool = Field(alias="isCompact")
|
|
46
|
+
use_invoice_title_and_numbering: Optional[StrictBool] = Field(default=False, description="Flag to determine if invoice title, sequenceStartNumber, prefix and suffix should be used.", alias="useInvoiceTitleAndNumbering")
|
|
47
|
+
use_invoice_document_settings: Optional[StrictBool] = Field(default=False, description="Flag to determine if invoice document settings should be used.", alias="useInvoiceDocumentSettings")
|
|
48
|
+
show_credit_notes_and_receipts: Optional[StrictBool] = Field(default=False, description="Flag to determine if linked credit notes and receipts should be rendered in Invoice.", alias="showCreditNotesAndReceipts")
|
|
42
49
|
tax_id1: Optional[StrictStr] = Field(default=None, alias="taxId1")
|
|
43
50
|
tax_id2: Optional[StrictStr] = Field(default=None, alias="taxId2")
|
|
44
51
|
cpf: Optional[StrictStr] = None
|
|
45
52
|
custom_text: Optional[Dict[str, StrictStr]] = Field(default=None, alias="customText")
|
|
46
|
-
|
|
53
|
+
logo_id: Optional[StrictInt] = Field(default=None, alias="logoId")
|
|
54
|
+
__properties: ClassVar[List[str]] = ["triggerEvents", "showDetailedTaxFee", "chargeBreakdown", "useGuestLang", "dueDays", "sequenceStartNumber", "lang", "prefix", "suffix", "legalCompanyName", "title", "showLegalCompanyName", "includeRoomNumber", "useDocumentNumber", "createInvoiceOnAllocation", "isCompact", "useInvoiceTitleAndNumbering", "useInvoiceDocumentSettings", "showCreditNotesAndReceipts", "taxId1", "taxId2", "cpf", "customText", "logoId"]
|
|
47
55
|
|
|
48
56
|
model_config = ConfigDict(
|
|
49
57
|
populate_by_name=True,
|
|
@@ -84,11 +92,6 @@ class ConfigsUpdateRequest(BaseModel):
|
|
|
84
92
|
exclude=excluded_fields,
|
|
85
93
|
exclude_none=True,
|
|
86
94
|
)
|
|
87
|
-
# set to None if due_days (nullable) is None
|
|
88
|
-
# and model_fields_set contains the field
|
|
89
|
-
if self.due_days is None and "due_days" in self.model_fields_set:
|
|
90
|
-
_dict['dueDays'] = None
|
|
91
|
-
|
|
92
95
|
# set to None if lang (nullable) is None
|
|
93
96
|
# and model_fields_set contains the field
|
|
94
97
|
if self.lang is None and "lang" in self.model_fields_set:
|
|
@@ -134,6 +137,11 @@ class ConfigsUpdateRequest(BaseModel):
|
|
|
134
137
|
if self.custom_text is None and "custom_text" in self.model_fields_set:
|
|
135
138
|
_dict['customText'] = None
|
|
136
139
|
|
|
140
|
+
# set to None if logo_id (nullable) is None
|
|
141
|
+
# and model_fields_set contains the field
|
|
142
|
+
if self.logo_id is None and "logo_id" in self.model_fields_set:
|
|
143
|
+
_dict['logoId'] = None
|
|
144
|
+
|
|
137
145
|
return _dict
|
|
138
146
|
|
|
139
147
|
@classmethod
|
|
@@ -146,23 +154,30 @@ class ConfigsUpdateRequest(BaseModel):
|
|
|
146
154
|
return cls.model_validate(obj)
|
|
147
155
|
|
|
148
156
|
_obj = cls.model_validate({
|
|
157
|
+
"triggerEvents": obj.get("triggerEvents"),
|
|
149
158
|
"showDetailedTaxFee": obj.get("showDetailedTaxFee"),
|
|
150
159
|
"chargeBreakdown": obj.get("chargeBreakdown"),
|
|
151
160
|
"useGuestLang": obj.get("useGuestLang"),
|
|
152
|
-
"dueDays": obj.get("dueDays"),
|
|
161
|
+
"dueDays": obj.get("dueDays") if obj.get("dueDays") is not None else 0,
|
|
162
|
+
"sequenceStartNumber": obj.get("sequenceStartNumber") if obj.get("sequenceStartNumber") is not None else 0,
|
|
153
163
|
"lang": obj.get("lang"),
|
|
154
164
|
"prefix": obj.get("prefix"),
|
|
155
165
|
"suffix": obj.get("suffix"),
|
|
156
166
|
"legalCompanyName": obj.get("legalCompanyName"),
|
|
157
167
|
"title": obj.get("title"),
|
|
158
|
-
"showLegalCompanyName": obj.get("showLegalCompanyName"),
|
|
159
|
-
"includeRoomNumber": obj.get("includeRoomNumber"),
|
|
168
|
+
"showLegalCompanyName": obj.get("showLegalCompanyName") if obj.get("showLegalCompanyName") is not None else False,
|
|
169
|
+
"includeRoomNumber": obj.get("includeRoomNumber") if obj.get("includeRoomNumber") is not None else False,
|
|
160
170
|
"useDocumentNumber": obj.get("useDocumentNumber"),
|
|
161
|
-
"
|
|
171
|
+
"createInvoiceOnAllocation": obj.get("createInvoiceOnAllocation") if obj.get("createInvoiceOnAllocation") is not None else False,
|
|
172
|
+
"isCompact": obj.get("isCompact") if obj.get("isCompact") is not None else False,
|
|
173
|
+
"useInvoiceTitleAndNumbering": obj.get("useInvoiceTitleAndNumbering") if obj.get("useInvoiceTitleAndNumbering") is not None else False,
|
|
174
|
+
"useInvoiceDocumentSettings": obj.get("useInvoiceDocumentSettings") if obj.get("useInvoiceDocumentSettings") is not None else False,
|
|
175
|
+
"showCreditNotesAndReceipts": obj.get("showCreditNotesAndReceipts") if obj.get("showCreditNotesAndReceipts") is not None else False,
|
|
162
176
|
"taxId1": obj.get("taxId1"),
|
|
163
177
|
"taxId2": obj.get("taxId2"),
|
|
164
178
|
"cpf": obj.get("cpf"),
|
|
165
|
-
"customText": obj.get("customText")
|
|
179
|
+
"customText": obj.get("customText"),
|
|
180
|
+
"logoId": obj.get("logoId")
|
|
166
181
|
})
|
|
167
182
|
return _obj
|
|
168
183
|
|
|
@@ -35,7 +35,7 @@ class CreateCreditNoteRequest(BaseModel):
|
|
|
35
35
|
method: CreationMethod
|
|
36
36
|
transaction_ids: Optional[List[StrictInt]] = Field(default=None, description="Include transactions with the specified IDs (deprecated, use `includeTransactionIds` instead)", alias="transactionIds")
|
|
37
37
|
folio_ids: Optional[List[StrictInt]] = Field(default=None, description="Include all transactions from the specified folio IDs", alias="folioIds")
|
|
38
|
-
exclude_transaction_ids: Optional[List[StrictInt]] = Field(default=None, description="Exclude transactions with the specified IDs
|
|
38
|
+
exclude_transaction_ids: Optional[List[StrictInt]] = Field(default=None, description="Exclude transactions with the specified IDs", alias="excludeTransactionIds")
|
|
39
39
|
include_transaction_ids: Optional[List[StrictInt]] = Field(default=None, description="Include transactions with the specified IDs", alias="includeTransactionIds")
|
|
40
40
|
__properties: ClassVar[List[str]] = ["sequenceId", "invoiceId", "reason", "userId", "method", "transactionIds", "folioIds", "excludeTransactionIds", "includeTransactionIds"]
|
|
41
41
|
|
|
@@ -36,7 +36,7 @@ class CreateInvoiceRequest(BaseModel):
|
|
|
36
36
|
user_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="userId")
|
|
37
37
|
recipient: RecipientRequest
|
|
38
38
|
folio_ids: Optional[List[Annotated[int, Field(strict=True, ge=1)]]] = Field(default=None, description="Include all transactions from the specified folio IDs", alias="folioIds")
|
|
39
|
-
exclude_transaction_ids: Optional[List[Annotated[int, Field(strict=True, ge=1)]]] = Field(default=None, description="Exclude transactions with the specified IDs
|
|
39
|
+
exclude_transaction_ids: Optional[List[Annotated[int, Field(strict=True, ge=1)]]] = Field(default=None, description="Exclude transactions with the specified IDs", alias="excludeTransactionIds")
|
|
40
40
|
include_transaction_ids: Optional[List[Annotated[int, Field(strict=True, ge=1)]]] = Field(default=None, description="Include transactions with the specified IDs", alias="includeTransactionIds")
|
|
41
41
|
__properties: ClassVar[List[str]] = ["transactionIds", "sourceId", "sequenceId", "sourceKind", "userId", "recipient", "folioIds", "excludeTransactionIds", "includeTransactionIds"]
|
|
42
42
|
|
|
@@ -17,7 +17,7 @@ import pprint
|
|
|
17
17
|
import re # noqa: F401
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
|
-
from pydantic import BaseModel, ConfigDict, Field, StrictInt
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt
|
|
21
21
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
22
|
from typing_extensions import Annotated
|
|
23
23
|
from cloudbeds_fiscal_document.models.receipt_transaction_allocation import ReceiptTransactionAllocation
|
|
@@ -38,7 +38,8 @@ class CreateReceiptRequest(BaseModel):
|
|
|
38
38
|
source_id: Annotated[int, Field(strict=True, ge=1)] = Field(alias="sourceId")
|
|
39
39
|
source_kind: SourceKind = Field(alias="sourceKind")
|
|
40
40
|
recipient: RecipientRequest
|
|
41
|
-
|
|
41
|
+
generate_receipt: Optional[StrictBool] = Field(default=True, description="Whether to generate and print receipt (Italy only). Defaults to true. When false, receipt will not be sent to fiscal printer. ", alias="generateReceipt")
|
|
42
|
+
__properties: ClassVar[List[str]] = ["allocations", "transactionId", "paymentId", "sequenceId", "userId", "sourceId", "sourceKind", "recipient", "generateReceipt"]
|
|
42
43
|
|
|
43
44
|
model_config = ConfigDict(
|
|
44
45
|
populate_by_name=True,
|
|
@@ -128,7 +129,8 @@ class CreateReceiptRequest(BaseModel):
|
|
|
128
129
|
"userId": obj.get("userId"),
|
|
129
130
|
"sourceId": obj.get("sourceId"),
|
|
130
131
|
"sourceKind": obj.get("sourceKind"),
|
|
131
|
-
"recipient": RecipientRequest.from_dict(obj["recipient"]) if obj.get("recipient") is not None else None
|
|
132
|
+
"recipient": RecipientRequest.from_dict(obj["recipient"]) if obj.get("recipient") is not None else None,
|
|
133
|
+
"generateReceipt": obj.get("generateReceipt") if obj.get("generateReceipt") is not None else True
|
|
132
134
|
})
|
|
133
135
|
return _obj
|
|
134
136
|
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Fiscal document service API
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: v1
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import json
|
|
17
|
+
from enum import Enum
|
|
18
|
+
from typing_extensions import Self
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class DocumentTriggerEvent(str, Enum):
|
|
22
|
+
"""
|
|
23
|
+
DocumentTriggerEvent
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
"""
|
|
27
|
+
allowed enum values
|
|
28
|
+
"""
|
|
29
|
+
MANUAL = 'manual'
|
|
30
|
+
AT_CHECK_OUT = 'at_check_out'
|
|
31
|
+
ON_RESERVATION_CREATED = 'on_reservation_created'
|
|
32
|
+
ON_PAYMENT_CREATION = 'on_payment_creation'
|
|
33
|
+
|
|
34
|
+
@classmethod
|
|
35
|
+
def from_json(cls, json_str: str) -> Self:
|
|
36
|
+
"""Create an instance of DocumentTriggerEvent from a JSON string"""
|
|
37
|
+
return cls(json.loads(json_str))
|
|
38
|
+
|
|
39
|
+
|
|
@@ -21,6 +21,7 @@ from datetime import date, datetime
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr
|
|
22
22
|
from typing import Any, ClassVar, Dict, List, Optional, Union
|
|
23
23
|
from cloudbeds_fiscal_document.models.action import Action
|
|
24
|
+
from cloudbeds_fiscal_document.models.creation_method import CreationMethod
|
|
24
25
|
from cloudbeds_fiscal_document.models.fiscal_document_kind import FiscalDocumentKind
|
|
25
26
|
from cloudbeds_fiscal_document.models.fiscal_document_status import FiscalDocumentStatus
|
|
26
27
|
from cloudbeds_fiscal_document.models.government_integration import GovernmentIntegration
|
|
@@ -56,6 +57,7 @@ class FiscalDocumentDetailedResponse(BaseModel):
|
|
|
56
57
|
origin: Optional[StrictStr] = None
|
|
57
58
|
external_id: Optional[StrictStr] = Field(default=None, alias="externalId")
|
|
58
59
|
fail_reason: Optional[StrictStr] = Field(default=None, alias="failReason")
|
|
60
|
+
method: Optional[CreationMethod] = None
|
|
59
61
|
created_at: Optional[datetime] = Field(default=None, alias="createdAt")
|
|
60
62
|
parent_id: Optional[StrictStr] = Field(default=None, alias="parentId")
|
|
61
63
|
updated_at: Optional[datetime] = Field(default=None, alias="updatedAt")
|
|
@@ -64,7 +66,7 @@ class FiscalDocumentDetailedResponse(BaseModel):
|
|
|
64
66
|
linked_documents: Optional[List[LinkedDocument]] = Field(default=None, description="List of documents linked to this fiscal document (both parent and child relationships)", alias="linkedDocuments")
|
|
65
67
|
actions: Optional[List[Action]] = Field(default=None, description="Returns the list of actions available for the transaction")
|
|
66
68
|
source_identifier: Optional[StrictStr] = Field(default=None, description="Reservation Identifier or a group code", alias="sourceIdentifier")
|
|
67
|
-
__properties: ClassVar[List[str]] = ["id", "number", "propertyId", "userId", "userFullName", "sourceName", "sourceId", "sourceKind", "kind", "invoiceDate", "invoiceDatePropertyTimezone", "fileName", "amount", "balance", "dueDate", "dueDatePropertyTimezone", "recipients", "status", "origin", "externalId", "failReason", "createdAt", "parentId", "updatedAt", "governmentIntegration", "latestLinkedDocument", "linkedDocuments", "actions", "sourceIdentifier"]
|
|
69
|
+
__properties: ClassVar[List[str]] = ["id", "number", "propertyId", "userId", "userFullName", "sourceName", "sourceId", "sourceKind", "kind", "invoiceDate", "invoiceDatePropertyTimezone", "fileName", "amount", "balance", "dueDate", "dueDatePropertyTimezone", "recipients", "status", "origin", "externalId", "failReason", "method", "createdAt", "parentId", "updatedAt", "governmentIntegration", "latestLinkedDocument", "linkedDocuments", "actions", "sourceIdentifier"]
|
|
68
70
|
|
|
69
71
|
model_config = ConfigDict(
|
|
70
72
|
populate_by_name=True,
|
|
@@ -165,6 +167,7 @@ class FiscalDocumentDetailedResponse(BaseModel):
|
|
|
165
167
|
"origin": obj.get("origin"),
|
|
166
168
|
"externalId": obj.get("externalId"),
|
|
167
169
|
"failReason": obj.get("failReason"),
|
|
170
|
+
"method": obj.get("method"),
|
|
168
171
|
"createdAt": obj.get("createdAt"),
|
|
169
172
|
"parentId": obj.get("parentId"),
|
|
170
173
|
"updatedAt": obj.get("updatedAt"),
|
|
@@ -21,6 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
|
21
21
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
22
|
from typing_extensions import Annotated
|
|
23
23
|
from cloudbeds_fiscal_document.models.recipient_address import RecipientAddress
|
|
24
|
+
from cloudbeds_fiscal_document.models.recipient_company import RecipientCompany
|
|
24
25
|
from cloudbeds_fiscal_document.models.recipient_contact_details import RecipientContactDetails
|
|
25
26
|
from cloudbeds_fiscal_document.models.recipient_document import RecipientDocument
|
|
26
27
|
from cloudbeds_fiscal_document.models.recipient_tax_info import RecipientTaxInfo
|
|
@@ -38,11 +39,12 @@ class FiscalDocumentRecipient(BaseModel):
|
|
|
38
39
|
email: Optional[StrictStr] = None
|
|
39
40
|
type: Optional[RecipientType] = None
|
|
40
41
|
address: Optional[RecipientAddress] = None
|
|
42
|
+
company: Optional[RecipientCompany] = None
|
|
41
43
|
tax: Optional[RecipientTaxInfo] = None
|
|
42
44
|
contact_details: Optional[RecipientContactDetails] = Field(default=None, alias="contactDetails")
|
|
43
45
|
document: Optional[RecipientDocument] = None
|
|
44
46
|
country_data: Optional[Dict[str, Any]] = Field(default=None, description="Arbitrary country-specific fields from guest requirements. ", alias="countryData")
|
|
45
|
-
__properties: ClassVar[List[str]] = ["id", "firstName", "lastName", "email", "type", "address", "tax", "contactDetails", "document", "countryData"]
|
|
47
|
+
__properties: ClassVar[List[str]] = ["id", "firstName", "lastName", "email", "type", "address", "company", "tax", "contactDetails", "document", "countryData"]
|
|
46
48
|
|
|
47
49
|
model_config = ConfigDict(
|
|
48
50
|
populate_by_name=True,
|
|
@@ -86,6 +88,9 @@ class FiscalDocumentRecipient(BaseModel):
|
|
|
86
88
|
# override the default output from pydantic by calling `to_dict()` of address
|
|
87
89
|
if self.address:
|
|
88
90
|
_dict['address'] = self.address.to_dict()
|
|
91
|
+
# override the default output from pydantic by calling `to_dict()` of company
|
|
92
|
+
if self.company:
|
|
93
|
+
_dict['company'] = self.company.to_dict()
|
|
89
94
|
# override the default output from pydantic by calling `to_dict()` of tax
|
|
90
95
|
if self.tax:
|
|
91
96
|
_dict['tax'] = self.tax.to_dict()
|
|
@@ -113,6 +118,7 @@ class FiscalDocumentRecipient(BaseModel):
|
|
|
113
118
|
"email": obj.get("email"),
|
|
114
119
|
"type": obj.get("type"),
|
|
115
120
|
"address": RecipientAddress.from_dict(obj["address"]) if obj.get("address") is not None else None,
|
|
121
|
+
"company": RecipientCompany.from_dict(obj["company"]) if obj.get("company") is not None else None,
|
|
116
122
|
"tax": RecipientTaxInfo.from_dict(obj["tax"]) if obj.get("tax") is not None else None,
|
|
117
123
|
"contactDetails": RecipientContactDetails.from_dict(obj["contactDetails"]) if obj.get("contactDetails") is not None else None,
|
|
118
124
|
"document": RecipientDocument.from_dict(obj["document"]) if obj.get("document") is not None else None,
|
|
@@ -32,6 +32,7 @@ class FiscalDocumentTransactionResponse(BaseModel):
|
|
|
32
32
|
property_id: Optional[StrictStr] = Field(default=None, alias="propertyId")
|
|
33
33
|
source_id: Optional[StrictStr] = Field(default=None, alias="sourceId")
|
|
34
34
|
source_kind: Optional[SourceKind] = Field(default=None, alias="sourceKind")
|
|
35
|
+
allocated_payment_transactions: Optional[List[FiscalDocumentTransactionResponse]] = Field(default=None, alias="allocatedPaymentTransactions")
|
|
35
36
|
transaction_date: Optional[datetime] = Field(default=None, alias="transactionDate")
|
|
36
37
|
guest_name: Optional[StrictStr] = Field(default=None, alias="guestName")
|
|
37
38
|
description: Optional[StrictStr] = None
|
|
@@ -39,7 +40,7 @@ class FiscalDocumentTransactionResponse(BaseModel):
|
|
|
39
40
|
amount: Optional[Union[StrictFloat, StrictInt]] = None
|
|
40
41
|
folio_id: Optional[StrictStr] = Field(default=None, alias="folioId")
|
|
41
42
|
status: Optional[StrictStr] = Field(default=None, description="Status of the transaction - PENDING for unpaid transactions, POSTED for paid transactions")
|
|
42
|
-
__properties: ClassVar[List[str]] = ["id", "propertyId", "sourceId", "sourceKind", "transactionDate", "guestName", "description", "internalCode", "amount", "folioId", "status"]
|
|
43
|
+
__properties: ClassVar[List[str]] = ["id", "propertyId", "sourceId", "sourceKind", "allocatedPaymentTransactions", "transactionDate", "guestName", "description", "internalCode", "amount", "folioId", "status"]
|
|
43
44
|
|
|
44
45
|
@field_validator('status')
|
|
45
46
|
def status_validate_enum(cls, value):
|
|
@@ -90,6 +91,13 @@ class FiscalDocumentTransactionResponse(BaseModel):
|
|
|
90
91
|
exclude=excluded_fields,
|
|
91
92
|
exclude_none=True,
|
|
92
93
|
)
|
|
94
|
+
# override the default output from pydantic by calling `to_dict()` of each item in allocated_payment_transactions (list)
|
|
95
|
+
_items = []
|
|
96
|
+
if self.allocated_payment_transactions:
|
|
97
|
+
for _item_allocated_payment_transactions in self.allocated_payment_transactions:
|
|
98
|
+
if _item_allocated_payment_transactions:
|
|
99
|
+
_items.append(_item_allocated_payment_transactions.to_dict())
|
|
100
|
+
_dict['allocatedPaymentTransactions'] = _items
|
|
93
101
|
return _dict
|
|
94
102
|
|
|
95
103
|
@classmethod
|
|
@@ -106,6 +114,7 @@ class FiscalDocumentTransactionResponse(BaseModel):
|
|
|
106
114
|
"propertyId": obj.get("propertyId"),
|
|
107
115
|
"sourceId": obj.get("sourceId"),
|
|
108
116
|
"sourceKind": obj.get("sourceKind"),
|
|
117
|
+
"allocatedPaymentTransactions": [FiscalDocumentTransactionResponse.from_dict(_item) for _item in obj["allocatedPaymentTransactions"]] if obj.get("allocatedPaymentTransactions") is not None else None,
|
|
109
118
|
"transactionDate": obj.get("transactionDate"),
|
|
110
119
|
"guestName": obj.get("guestName"),
|
|
111
120
|
"description": obj.get("description"),
|
|
@@ -116,4 +125,6 @@ class FiscalDocumentTransactionResponse(BaseModel):
|
|
|
116
125
|
})
|
|
117
126
|
return _obj
|
|
118
127
|
|
|
128
|
+
# TODO: Rewrite to not use raise_errors
|
|
129
|
+
FiscalDocumentTransactionResponse.model_rebuild(raise_errors=False)
|
|
119
130
|
|
|
@@ -35,7 +35,7 @@ class GetCreditNotePreviewRequest(BaseModel):
|
|
|
35
35
|
method: CreationMethod
|
|
36
36
|
transaction_ids: Optional[List[StrictInt]] = Field(default=None, description="Include transactions with the specified IDs (deprecated, use `includeTransactionIds` instead)", alias="transactionIds")
|
|
37
37
|
folio_ids: Optional[List[StrictInt]] = Field(default=None, description="Include all transactions from the specified folio IDs", alias="folioIds")
|
|
38
|
-
exclude_transaction_ids: Optional[List[StrictInt]] = Field(default=None, description="Exclude transactions with the specified IDs
|
|
38
|
+
exclude_transaction_ids: Optional[List[StrictInt]] = Field(default=None, description="Exclude transactions with the specified IDs", alias="excludeTransactionIds")
|
|
39
39
|
include_transaction_ids: Optional[List[StrictInt]] = Field(default=None, description="Include transactions with the specified IDs", alias="includeTransactionIds")
|
|
40
40
|
__properties: ClassVar[List[str]] = ["sequenceId", "invoiceId", "reason", "userId", "method", "transactionIds", "folioIds", "excludeTransactionIds", "includeTransactionIds"]
|
|
41
41
|
|
|
@@ -36,7 +36,7 @@ class GetInvoicePreviewRequest(BaseModel):
|
|
|
36
36
|
user_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="userId")
|
|
37
37
|
recipient: RecipientRequest
|
|
38
38
|
folio_ids: Optional[List[Annotated[int, Field(strict=True, ge=1)]]] = Field(default=None, description="Include all transactions from the specified folio IDs", alias="folioIds")
|
|
39
|
-
exclude_transaction_ids: Optional[List[Annotated[int, Field(strict=True, ge=1)]]] = Field(default=None, description="Exclude transactions with the specified IDs
|
|
39
|
+
exclude_transaction_ids: Optional[List[Annotated[int, Field(strict=True, ge=1)]]] = Field(default=None, description="Exclude transactions with the specified IDs", alias="excludeTransactionIds")
|
|
40
40
|
include_transaction_ids: Optional[List[Annotated[int, Field(strict=True, ge=1)]]] = Field(default=None, description="Include transactions with the specified IDs", alias="includeTransactionIds")
|
|
41
41
|
__properties: ClassVar[List[str]] = ["transactionIds", "sourceId", "sequenceId", "sourceKind", "userId", "recipient", "folioIds", "excludeTransactionIds", "includeTransactionIds"]
|
|
42
42
|
|
|
@@ -34,7 +34,7 @@ class GetRectifyInvoiceNotePreviewRequest(BaseModel):
|
|
|
34
34
|
method: CreationMethod
|
|
35
35
|
transaction_ids: Optional[List[Annotated[int, Field(strict=True, ge=1)]]] = Field(default=None, description="Include transactions with the specified IDs (deprecated, use `includeTransactionIds` instead)", alias="transactionIds")
|
|
36
36
|
folio_ids: Optional[List[Annotated[int, Field(strict=True, ge=1)]]] = Field(default=None, description="Include all transactions from the specified folio IDs", alias="folioIds")
|
|
37
|
-
exclude_transaction_ids: Optional[List[Annotated[int, Field(strict=True, ge=1)]]] = Field(default=None, description="Exclude transactions with the specified IDs
|
|
37
|
+
exclude_transaction_ids: Optional[List[Annotated[int, Field(strict=True, ge=1)]]] = Field(default=None, description="Exclude transactions with the specified IDs", alias="excludeTransactionIds")
|
|
38
38
|
include_transaction_ids: Optional[List[Annotated[int, Field(strict=True, ge=1)]]] = Field(default=None, description="Include transactions with the specified IDs", alias="includeTransactionIds")
|
|
39
39
|
__properties: ClassVar[List[str]] = ["invoiceId", "reason", "userId", "method", "transactionIds", "folioIds", "excludeTransactionIds", "includeTransactionIds"]
|
|
40
40
|
|
|
@@ -17,7 +17,7 @@ import pprint
|
|
|
17
17
|
import re # noqa: F401
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
|
-
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
|
|
21
21
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
22
|
from cloudbeds_fiscal_document.models.fiscal_document_status import FiscalDocumentStatus
|
|
23
23
|
from cloudbeds_fiscal_document.models.government_integration_qr import GovernmentIntegrationQr
|
|
@@ -37,7 +37,8 @@ class GovernmentIntegration(BaseModel):
|
|
|
37
37
|
external_id: Optional[StrictStr] = Field(default=None, alias="externalId")
|
|
38
38
|
rectifying_invoice_type: Optional[StrictStr] = Field(default=None, alias="rectifyingInvoiceType")
|
|
39
39
|
cancellation_failed_fallback_status: Optional[FiscalDocumentStatus] = Field(default=None, alias="cancellationFailedFallbackStatus")
|
|
40
|
-
|
|
40
|
+
generate_receipt: Optional[StrictBool] = Field(default=None, description="Indicates if the receipt was generated/sent to fiscal printer", alias="generateReceipt")
|
|
41
|
+
__properties: ClassVar[List[str]] = ["number", "series", "status", "qr", "url", "officialId", "externalId", "rectifyingInvoiceType", "cancellationFailedFallbackStatus", "generateReceipt"]
|
|
41
42
|
|
|
42
43
|
model_config = ConfigDict(
|
|
43
44
|
populate_by_name=True,
|
|
@@ -101,7 +102,8 @@ class GovernmentIntegration(BaseModel):
|
|
|
101
102
|
"officialId": obj.get("officialId"),
|
|
102
103
|
"externalId": obj.get("externalId"),
|
|
103
104
|
"rectifyingInvoiceType": obj.get("rectifyingInvoiceType"),
|
|
104
|
-
"cancellationFailedFallbackStatus": obj.get("cancellationFailedFallbackStatus")
|
|
105
|
+
"cancellationFailedFallbackStatus": obj.get("cancellationFailedFallbackStatus"),
|
|
106
|
+
"generateReceipt": obj.get("generateReceipt")
|
|
105
107
|
})
|
|
106
108
|
return _obj
|
|
107
109
|
|
|
@@ -39,7 +39,7 @@ class ProFormaInvoicePreviewRequest(BaseModel):
|
|
|
39
39
|
recipient: RecipientRequest
|
|
40
40
|
invoice_date: Optional[date] = Field(default=None, description="Date for the pro forma invoice (defaults to current date if not provided)", alias="invoiceDate")
|
|
41
41
|
folio_ids: Optional[List[Annotated[int, Field(strict=True, ge=1)]]] = Field(default=None, description="Include all transactions from the specified folio IDs", alias="folioIds")
|
|
42
|
-
exclude_transaction_ids: Optional[List[Annotated[int, Field(strict=True, ge=1)]]] = Field(default=None, description="Exclude transactions with the specified IDs
|
|
42
|
+
exclude_transaction_ids: Optional[List[Annotated[int, Field(strict=True, ge=1)]]] = Field(default=None, description="Exclude transactions with the specified IDs", alias="excludeTransactionIds")
|
|
43
43
|
include_transaction_ids: Optional[List[Annotated[int, Field(strict=True, ge=1)]]] = Field(default=None, description="Include transactions with the specified IDs", alias="includeTransactionIds")
|
|
44
44
|
__properties: ClassVar[List[str]] = ["transactionIds", "paymentIds", "sourceId", "sequenceId", "sourceKind", "userId", "recipient", "invoiceDate", "folioIds", "excludeTransactionIds", "includeTransactionIds"]
|
|
45
45
|
|
|
@@ -39,7 +39,7 @@ class ProFormaInvoiceRequest(BaseModel):
|
|
|
39
39
|
recipient: RecipientRequest
|
|
40
40
|
invoice_date: Optional[date] = Field(default=None, description="Date for the pro forma invoice (defaults to current date if not provided)", alias="invoiceDate")
|
|
41
41
|
folio_ids: Optional[List[Annotated[int, Field(strict=True, ge=1)]]] = Field(default=None, description="Include all transactions from the specified folio IDs", alias="folioIds")
|
|
42
|
-
exclude_transaction_ids: Optional[List[Annotated[int, Field(strict=True, ge=1)]]] = Field(default=None, description="Exclude transactions with the specified IDs
|
|
42
|
+
exclude_transaction_ids: Optional[List[Annotated[int, Field(strict=True, ge=1)]]] = Field(default=None, description="Exclude transactions with the specified IDs", alias="excludeTransactionIds")
|
|
43
43
|
include_transaction_ids: Optional[List[Annotated[int, Field(strict=True, ge=1)]]] = Field(default=None, description="Include transactions with the specified IDs", alias="includeTransactionIds")
|
|
44
44
|
__properties: ClassVar[List[str]] = ["transactionIds", "paymentIds", "sourceId", "sequenceId", "sourceKind", "userId", "recipient", "invoiceDate", "folioIds", "excludeTransactionIds", "includeTransactionIds"]
|
|
45
45
|
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Fiscal document service API
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: v1
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
+
from typing import Optional, Set
|
|
23
|
+
from typing_extensions import Self
|
|
24
|
+
|
|
25
|
+
class RecipientCompany(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
RecipientCompany
|
|
28
|
+
""" # noqa: E501
|
|
29
|
+
name: Optional[StrictStr] = None
|
|
30
|
+
tax_id: Optional[StrictStr] = Field(default=None, alias="taxId")
|
|
31
|
+
tax_id_type: Optional[StrictStr] = Field(default=None, alias="taxIdType")
|
|
32
|
+
address1: Optional[StrictStr] = None
|
|
33
|
+
address2: Optional[StrictStr] = None
|
|
34
|
+
city: Optional[StrictStr] = None
|
|
35
|
+
state: Optional[StrictStr] = None
|
|
36
|
+
zip_code: Optional[StrictStr] = Field(default=None, alias="zipCode")
|
|
37
|
+
country: Optional[StrictStr] = None
|
|
38
|
+
__properties: ClassVar[List[str]] = ["name", "taxId", "taxIdType", "address1", "address2", "city", "state", "zipCode", "country"]
|
|
39
|
+
|
|
40
|
+
model_config = ConfigDict(
|
|
41
|
+
populate_by_name=True,
|
|
42
|
+
validate_assignment=True,
|
|
43
|
+
protected_namespaces=(),
|
|
44
|
+
)
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
def to_str(self) -> str:
|
|
48
|
+
"""Returns the string representation of the model using alias"""
|
|
49
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
50
|
+
|
|
51
|
+
def to_json(self) -> str:
|
|
52
|
+
"""Returns the JSON representation of the model using alias"""
|
|
53
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
54
|
+
return json.dumps(self.to_dict())
|
|
55
|
+
|
|
56
|
+
@classmethod
|
|
57
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
58
|
+
"""Create an instance of RecipientCompany from a JSON string"""
|
|
59
|
+
return cls.from_dict(json.loads(json_str))
|
|
60
|
+
|
|
61
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
62
|
+
"""Return the dictionary representation of the model using alias.
|
|
63
|
+
|
|
64
|
+
This has the following differences from calling pydantic's
|
|
65
|
+
`self.model_dump(by_alias=True)`:
|
|
66
|
+
|
|
67
|
+
* `None` is only added to the output dict for nullable fields that
|
|
68
|
+
were set at model initialization. Other fields with value `None`
|
|
69
|
+
are ignored.
|
|
70
|
+
"""
|
|
71
|
+
excluded_fields: Set[str] = set([
|
|
72
|
+
])
|
|
73
|
+
|
|
74
|
+
_dict = self.model_dump(
|
|
75
|
+
by_alias=True,
|
|
76
|
+
exclude=excluded_fields,
|
|
77
|
+
exclude_none=True,
|
|
78
|
+
)
|
|
79
|
+
return _dict
|
|
80
|
+
|
|
81
|
+
@classmethod
|
|
82
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
83
|
+
"""Create an instance of RecipientCompany from a dict"""
|
|
84
|
+
if obj is None:
|
|
85
|
+
return None
|
|
86
|
+
|
|
87
|
+
if not isinstance(obj, dict):
|
|
88
|
+
return cls.model_validate(obj)
|
|
89
|
+
|
|
90
|
+
_obj = cls.model_validate({
|
|
91
|
+
"name": obj.get("name"),
|
|
92
|
+
"taxId": obj.get("taxId"),
|
|
93
|
+
"taxIdType": obj.get("taxIdType"),
|
|
94
|
+
"address1": obj.get("address1"),
|
|
95
|
+
"address2": obj.get("address2"),
|
|
96
|
+
"city": obj.get("city"),
|
|
97
|
+
"state": obj.get("state"),
|
|
98
|
+
"zipCode": obj.get("zipCode"),
|
|
99
|
+
"country": obj.get("country")
|
|
100
|
+
})
|
|
101
|
+
return _obj
|
|
102
|
+
|
|
103
|
+
|
|
@@ -34,7 +34,7 @@ class RectifyInvoiceNoteRequest(BaseModel):
|
|
|
34
34
|
method: CreationMethod
|
|
35
35
|
transaction_ids: Optional[List[Annotated[int, Field(strict=True, ge=1)]]] = Field(default=None, description="Include transactions with the specified IDs (deprecated, use `includeTransactionIds` instead)", alias="transactionIds")
|
|
36
36
|
folio_ids: Optional[List[Annotated[int, Field(strict=True, ge=1)]]] = Field(default=None, description="Include all transactions from the specified folio IDs", alias="folioIds")
|
|
37
|
-
exclude_transaction_ids: Optional[List[Annotated[int, Field(strict=True, ge=1)]]] = Field(default=None, description="Exclude transactions with the specified IDs
|
|
37
|
+
exclude_transaction_ids: Optional[List[Annotated[int, Field(strict=True, ge=1)]]] = Field(default=None, description="Exclude transactions with the specified IDs", alias="excludeTransactionIds")
|
|
38
38
|
include_transaction_ids: Optional[List[Annotated[int, Field(strict=True, ge=1)]]] = Field(default=None, description="Include transactions with the specified IDs", alias="includeTransactionIds")
|
|
39
39
|
__properties: ClassVar[List[str]] = ["invoiceId", "reason", "userId", "method", "transactionIds", "folioIds", "excludeTransactionIds", "includeTransactionIds"]
|
|
40
40
|
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Fiscal document service API
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: v1
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
import unittest
|
|
16
|
+
|
|
17
|
+
from cloudbeds_fiscal_document.models.document_trigger_event import DocumentTriggerEvent
|
|
18
|
+
|
|
19
|
+
class TestDocumentTriggerEvent(unittest.TestCase):
|
|
20
|
+
"""DocumentTriggerEvent unit test stubs"""
|
|
21
|
+
|
|
22
|
+
def setUp(self):
|
|
23
|
+
pass
|
|
24
|
+
|
|
25
|
+
def tearDown(self):
|
|
26
|
+
pass
|
|
27
|
+
|
|
28
|
+
def testDocumentTriggerEvent(self):
|
|
29
|
+
"""Test DocumentTriggerEvent"""
|
|
30
|
+
# inst = DocumentTriggerEvent()
|
|
31
|
+
|
|
32
|
+
if __name__ == '__main__':
|
|
33
|
+
unittest.main()
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Fiscal document service API
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: v1
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
import unittest
|
|
16
|
+
|
|
17
|
+
from cloudbeds_fiscal_document.models.recipient_company import RecipientCompany
|
|
18
|
+
|
|
19
|
+
class TestRecipientCompany(unittest.TestCase):
|
|
20
|
+
"""RecipientCompany unit test stubs"""
|
|
21
|
+
|
|
22
|
+
def setUp(self):
|
|
23
|
+
pass
|
|
24
|
+
|
|
25
|
+
def tearDown(self):
|
|
26
|
+
pass
|
|
27
|
+
|
|
28
|
+
def make_instance(self, include_optional) -> RecipientCompany:
|
|
29
|
+
"""Test RecipientCompany
|
|
30
|
+
include_optional is a boolean, when False only required
|
|
31
|
+
params are included, when True both required and
|
|
32
|
+
optional params are included """
|
|
33
|
+
# uncomment below to create an instance of `RecipientCompany`
|
|
34
|
+
"""
|
|
35
|
+
model = RecipientCompany()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return RecipientCompany(
|
|
38
|
+
name = '',
|
|
39
|
+
tax_id = '',
|
|
40
|
+
tax_id_type = '',
|
|
41
|
+
address1 = '',
|
|
42
|
+
address2 = '',
|
|
43
|
+
city = '',
|
|
44
|
+
state = '',
|
|
45
|
+
zip_code = '',
|
|
46
|
+
country = ''
|
|
47
|
+
)
|
|
48
|
+
else:
|
|
49
|
+
return RecipientCompany(
|
|
50
|
+
)
|
|
51
|
+
"""
|
|
52
|
+
|
|
53
|
+
def testRecipientCompany(self):
|
|
54
|
+
"""Test RecipientCompany"""
|
|
55
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
56
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
57
|
+
|
|
58
|
+
if __name__ == '__main__':
|
|
59
|
+
unittest.main()
|
{cloudbeds_fiscal_document-1.7.1.dist-info → cloudbeds_fiscal_document-1.9.0.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: cloudbeds_fiscal_document
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.9.0
|
|
4
4
|
Summary: OpenAPI client for Cloudbeds Fiscal Document API.
|
|
5
5
|
Author: Cloudbeds
|
|
6
6
|
License: The MIT License
|
|
@@ -57,7 +57,7 @@ No description provided (generated by Openapi Generator https://github.com/opena
|
|
|
57
57
|
The `cloudbeds_fiscal_document` package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
58
58
|
|
|
59
59
|
- API version: v1
|
|
60
|
-
- Package version: 1.
|
|
60
|
+
- Package version: 1.9.0
|
|
61
61
|
- Generator version: 7.11.0
|
|
62
62
|
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
|
63
63
|
|
|
@@ -169,6 +169,7 @@ Class | Method | HTTP request | Description
|
|
|
169
169
|
- [CreateSimpleReceiptRequest](cloudbeds_fiscal_document/docs/CreateSimpleReceiptRequest.md)
|
|
170
170
|
- [CreationMethod](cloudbeds_fiscal_document/docs/CreationMethod.md)
|
|
171
171
|
- [DocumentAction](cloudbeds_fiscal_document/docs/DocumentAction.md)
|
|
172
|
+
- [DocumentTriggerEvent](cloudbeds_fiscal_document/docs/DocumentTriggerEvent.md)
|
|
172
173
|
- [FiscalDocumentDetailedResponse](cloudbeds_fiscal_document/docs/FiscalDocumentDetailedResponse.md)
|
|
173
174
|
- [FiscalDocumentEmailRequest](cloudbeds_fiscal_document/docs/FiscalDocumentEmailRequest.md)
|
|
174
175
|
- [FiscalDocumentFilters](cloudbeds_fiscal_document/docs/FiscalDocumentFilters.md)
|
|
@@ -195,6 +196,7 @@ Class | Method | HTTP request | Description
|
|
|
195
196
|
- [ProFormaStatusUpdateRequest](cloudbeds_fiscal_document/docs/ProFormaStatusUpdateRequest.md)
|
|
196
197
|
- [ReceiptTransactionAllocation](cloudbeds_fiscal_document/docs/ReceiptTransactionAllocation.md)
|
|
197
198
|
- [RecipientAddress](cloudbeds_fiscal_document/docs/RecipientAddress.md)
|
|
199
|
+
- [RecipientCompany](cloudbeds_fiscal_document/docs/RecipientCompany.md)
|
|
198
200
|
- [RecipientContactDetails](cloudbeds_fiscal_document/docs/RecipientContactDetails.md)
|
|
199
201
|
- [RecipientDetails](cloudbeds_fiscal_document/docs/RecipientDetails.md)
|
|
200
202
|
- [RecipientDocument](cloudbeds_fiscal_document/docs/RecipientDocument.md)
|
{cloudbeds_fiscal_document-1.7.1.dist-info → cloudbeds_fiscal_document-1.9.0.dist-info}/RECORD
RENAMED
|
@@ -1,60 +1,62 @@
|
|
|
1
|
-
cloudbeds_fiscal_document/__init__.py,sha256=
|
|
2
|
-
cloudbeds_fiscal_document/api_client.py,sha256=
|
|
1
|
+
cloudbeds_fiscal_document/__init__.py,sha256=Adp8Ie16BpW07y-wgBVRSyG4i7zFoZ8I98H_c8NnFmo,5878
|
|
2
|
+
cloudbeds_fiscal_document/api_client.py,sha256=1NjhwGity2ikIYz1O5xR_y90dzVrnJr6bwFB8IXKkoc,27557
|
|
3
3
|
cloudbeds_fiscal_document/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
|
|
4
|
-
cloudbeds_fiscal_document/configuration.py,sha256=
|
|
4
|
+
cloudbeds_fiscal_document/configuration.py,sha256=hn7nJ3HzUCl9x1WsMnS4_Qs86QhlxwWbqj4NCTPMDYc,19338
|
|
5
5
|
cloudbeds_fiscal_document/exceptions.py,sha256=oEYMmCX9U9BE8E32jNQfoh1N1TKYTWLtLRDTaWXkr-Q,6488
|
|
6
6
|
cloudbeds_fiscal_document/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
7
|
cloudbeds_fiscal_document/rest.py,sha256=2KoCf_WOxpyTU8HalDgwquQdIqjXmhFqU3_NpWsmdn8,9440
|
|
8
8
|
cloudbeds_fiscal_document/api/__init__.py,sha256=Wwz734y2sXXISY2DrXD6haW-RUAG5dfXVXhNy9OwoY0,262
|
|
9
9
|
cloudbeds_fiscal_document/api/configs_api.py,sha256=wzekLqTa7bDoNJtxLfU9hEvqketW8yTzDsUazuwW-Hk,34099
|
|
10
10
|
cloudbeds_fiscal_document/api/features_api.py,sha256=u_OO8wEoAcNxd18dN-PaLxrNEhB94Wv4M6DnLgGGWaM,11623
|
|
11
|
-
cloudbeds_fiscal_document/api/fiscal_documents_api.py,sha256=
|
|
12
|
-
cloudbeds_fiscal_document/models/__init__.py,sha256=
|
|
11
|
+
cloudbeds_fiscal_document/api/fiscal_documents_api.py,sha256=etp_S-96XSAgJ7MxnN3tyvxoP2Yitr75sRV5oae_y6w,315026
|
|
12
|
+
cloudbeds_fiscal_document/models/__init__.py,sha256=rhxsTdosVrQGNnb2fZqx9cRaTmJK5QVFxE5xZJhe-oY,5021
|
|
13
13
|
cloudbeds_fiscal_document/models/action.py,sha256=_56GB3RiA9LOB2v3g433XOYfzq8Va3SoS4PqN1Hi0GU,2554
|
|
14
14
|
cloudbeds_fiscal_document/models/allocate_receipt_payment_request.py,sha256=49955YQ2-Y7dckSNYEMx2KdXLduJNdi3H_NYDBnL5so,3396
|
|
15
15
|
cloudbeds_fiscal_document/models/allocations_summary.py,sha256=O5y-LaC117ixAdOy99FcuEvXgTZA2YPegY97RKxoN0w,2826
|
|
16
16
|
cloudbeds_fiscal_document/models/api_error.py,sha256=pU4rS-VJvFb-iyYEiCT1UxyjY5_VWINExfRpSrJX8aQ,2911
|
|
17
|
-
cloudbeds_fiscal_document/models/configs_response.py,sha256=
|
|
18
|
-
cloudbeds_fiscal_document/models/configs_update_request.py,sha256=
|
|
19
|
-
cloudbeds_fiscal_document/models/create_credit_note_request.py,sha256=
|
|
20
|
-
cloudbeds_fiscal_document/models/create_invoice_request.py,sha256=
|
|
21
|
-
cloudbeds_fiscal_document/models/create_receipt_request.py,sha256=
|
|
17
|
+
cloudbeds_fiscal_document/models/configs_response.py,sha256=xccbmQ2IPvehTkHNbaiRwYFb0RagpFbnnFuAaaHtSz8,5414
|
|
18
|
+
cloudbeds_fiscal_document/models/configs_update_request.py,sha256=80zX4D0luaGdn99TsDmb1W12VqEYAcwkFlzCBKINSjM,9039
|
|
19
|
+
cloudbeds_fiscal_document/models/create_credit_note_request.py,sha256=MUi-gNI7w-elxviSz9uFVUJxb1xuLQlfl-99MUfBeIE,4895
|
|
20
|
+
cloudbeds_fiscal_document/models/create_invoice_request.py,sha256=V_rbE38AeNaFN01V8i-lSQdUin8S_eaWIXvCv2D-uvo,5107
|
|
21
|
+
cloudbeds_fiscal_document/models/create_receipt_request.py,sha256=LCP-YGA6JSgQDmd07edVH-SrNEojhpuZWbwHK2Prr_E,6014
|
|
22
22
|
cloudbeds_fiscal_document/models/create_simple_receipt_request.py,sha256=FpsSZ_EExF8vs0euBmf9EjGKpCDEg5hKSjaX0uz-sdM,3967
|
|
23
23
|
cloudbeds_fiscal_document/models/creation_method.py,sha256=vZD9e9cnodeE8MXhudSC_GxRUSnLVle4QjoYw_aHPyE,776
|
|
24
24
|
cloudbeds_fiscal_document/models/document_action.py,sha256=dN-YXEQWrSIiDww9s3WHKeiDhf7Zw2S9Qml95LLEj-A,917
|
|
25
|
-
cloudbeds_fiscal_document/models/
|
|
25
|
+
cloudbeds_fiscal_document/models/document_trigger_event.py,sha256=PzPMkjIRaERZpq13rh3Ua0PUaitcS8RGxgalMqm4MLk,904
|
|
26
|
+
cloudbeds_fiscal_document/models/fiscal_document_detailed_response.py,sha256=3SkHurYIxzOg_T5YFxwqtHcT6FebZ3dEPZteKghNFFQ,9573
|
|
26
27
|
cloudbeds_fiscal_document/models/fiscal_document_email_request.py,sha256=ytVW_0v_7II2SbX7ZypkcLc6M6xUtArpDutwnRUspkM,2645
|
|
27
28
|
cloudbeds_fiscal_document/models/fiscal_document_filters.py,sha256=6pMIeIWJ5jXWjRe21dkuMgbpYjUTT2fZi2c72LqVC6o,7255
|
|
28
|
-
cloudbeds_fiscal_document/models/fiscal_document_kind.py,sha256=
|
|
29
|
+
cloudbeds_fiscal_document/models/fiscal_document_kind.py,sha256=2-MVbDJWyoSFab8em8YYwVnzwxECqxWY9w430Sr6QLw,955
|
|
29
30
|
cloudbeds_fiscal_document/models/fiscal_document_paginated.py,sha256=I-K13zc33S1m0sI5A1u9_6Ojd2k1Oq5G2gjh0eihAgo,3500
|
|
30
31
|
cloudbeds_fiscal_document/models/fiscal_document_patch_request.py,sha256=HVM8jUUR9-StJoJJDeBbs8R1rY3N7QFUFQMS5RsZgSk,3431
|
|
31
|
-
cloudbeds_fiscal_document/models/fiscal_document_recipient.py,sha256=
|
|
32
|
+
cloudbeds_fiscal_document/models/fiscal_document_recipient.py,sha256=beNutHuZnKJtQtSJf0YDgSjbTbZ2418MoMBl-PErp2A,5555
|
|
32
33
|
cloudbeds_fiscal_document/models/fiscal_document_status.py,sha256=tIRy-16mlMSGRR1_nIedU_xtu_bkaseXjUJF8ywNhqA,1373
|
|
33
34
|
cloudbeds_fiscal_document/models/fiscal_document_summary_response.py,sha256=hI-UMNN_tSAMAhqXHzDjkMb1xAF-dy3a3jtSOFM7NIs,3683
|
|
34
|
-
cloudbeds_fiscal_document/models/fiscal_document_transaction_response.py,sha256=
|
|
35
|
+
cloudbeds_fiscal_document/models/fiscal_document_transaction_response.py,sha256=8szpxMvB80IQgnv08kk9_9aipWW7muUXvoPgLZfLZ-8,5465
|
|
35
36
|
cloudbeds_fiscal_document/models/fiscal_document_transactions_for_allocation_paginated.py,sha256=E_UWdxrwpHorIx1eINyE4v1RcYhNI8ABs_3u9eqBXbI,3525
|
|
36
37
|
cloudbeds_fiscal_document/models/fiscal_document_transactions_paginated.py,sha256=tyumvukW0nI7tgKBYxXu_1wP4NMFTwd-AuRZkIGRgq0,3477
|
|
37
38
|
cloudbeds_fiscal_document/models/fiscal_document_transactions_summary.py,sha256=kzncs_ojUBQ_cEQKM0ul7As7-giYUHC5ET4tiJsBOJM,3674
|
|
38
39
|
cloudbeds_fiscal_document/models/fiscal_document_transactions_summary_taxes_inner.py,sha256=UjIh1wktBhH9TCRvGRR4ekBTA4C2Xo9YkUU-166q5bM,2722
|
|
39
|
-
cloudbeds_fiscal_document/models/get_credit_note_preview_request.py,sha256=
|
|
40
|
-
cloudbeds_fiscal_document/models/get_invoice_preview_request.py,sha256=
|
|
41
|
-
cloudbeds_fiscal_document/models/get_rectify_invoice_note_preview_request.py,sha256=
|
|
42
|
-
cloudbeds_fiscal_document/models/government_integration.py,sha256=
|
|
40
|
+
cloudbeds_fiscal_document/models/get_credit_note_preview_request.py,sha256=nAZxAzgB8VDCc_U05ZL2NMdHzMIPh_jRZ8QD8Rsqr9A,4911
|
|
41
|
+
cloudbeds_fiscal_document/models/get_invoice_preview_request.py,sha256=h_PY1xhAU7P9GvVhhraQN3ppyGWahdgDv1Wn6ViBKNs,5123
|
|
42
|
+
cloudbeds_fiscal_document/models/get_rectify_invoice_note_preview_request.py,sha256=NGq70CB3fsaW_hNiRas3r62crcfGA-l4WR4gip15PlA,5704
|
|
43
|
+
cloudbeds_fiscal_document/models/government_integration.py,sha256=AcaY2ulUlz9LxQNACllN_U05wkF5aM9fBn13QWgDXEo,4308
|
|
43
44
|
cloudbeds_fiscal_document/models/government_integration_qr.py,sha256=GBgifWUH3KjcF--7d-WcOWjOedAauLJbbuGDdlnSPGk,2638
|
|
44
45
|
cloudbeds_fiscal_document/models/latest_linked_document.py,sha256=alMqlYHkrAVOSapwUtGZ7_ypuoxvYKaIA5nBNd-xUSw,3392
|
|
45
46
|
cloudbeds_fiscal_document/models/linked_document.py,sha256=XnJA3aUm7TT6g-lXv_lmKes1ZOh_fWRR07vH1zGKXYo,4269
|
|
46
|
-
cloudbeds_fiscal_document/models/pro_forma_invoice_preview_request.py,sha256=
|
|
47
|
-
cloudbeds_fiscal_document/models/pro_forma_invoice_request.py,sha256=
|
|
47
|
+
cloudbeds_fiscal_document/models/pro_forma_invoice_preview_request.py,sha256=NAQUvmDSvluIe8bOD5zSSLf58aMn13LArmSJOeBcYxU,5679
|
|
48
|
+
cloudbeds_fiscal_document/models/pro_forma_invoice_request.py,sha256=CgkNUoDpA64TwSP-4SMLw5kXN8IQTQpOd9imO0pnQJ0,5651
|
|
48
49
|
cloudbeds_fiscal_document/models/pro_forma_status_update_request.py,sha256=POhhENdYGJiFy8-yFXmEgag4zRn6BQ1KJHDwZFzYXEM,2924
|
|
49
50
|
cloudbeds_fiscal_document/models/receipt_transaction_allocation.py,sha256=6-0sVsKjGigFBRwKQvTCICxszOMZ4iiUC5xmukassk8,2733
|
|
50
51
|
cloudbeds_fiscal_document/models/recipient_address.py,sha256=BP7Y8uioaVJeN2JpSFb7T-glDXxdtjIv-UfyDHQEm0s,3034
|
|
52
|
+
cloudbeds_fiscal_document/models/recipient_company.py,sha256=Zp9P7fyAjyrdjEDozspUq30j3Ga9E1S6U2jCn5A7Ids,3371
|
|
51
53
|
cloudbeds_fiscal_document/models/recipient_contact_details.py,sha256=__wf3yyHf7LacpXtO_xQutlHTXtI8fJtqWAgL9lNyLQ,2917
|
|
52
54
|
cloudbeds_fiscal_document/models/recipient_details.py,sha256=1tU8uihhoGB93gL38f6TxfZk4pn2Sc65jzxcs5NtK-4,3264
|
|
53
55
|
cloudbeds_fiscal_document/models/recipient_document.py,sha256=BNyN2z3WGguS_BrR5yB6jO0vS6lrzn5WvgO4ugcTZVg,3114
|
|
54
56
|
cloudbeds_fiscal_document/models/recipient_request.py,sha256=CCQgRCwgHHW8hiHtfYybAcz7f-5UjmUR4roKxomFwd8,3098
|
|
55
57
|
cloudbeds_fiscal_document/models/recipient_tax_info.py,sha256=iqc90nHy2mH-YN9XxzlOUq0h2Ra1VR6OAF-vp6w_CN4,2670
|
|
56
58
|
cloudbeds_fiscal_document/models/recipient_type.py,sha256=L-LIQwW_vD3zTJZV-DrKATcJ_gbJrZz4kH4mb3M--xM,771
|
|
57
|
-
cloudbeds_fiscal_document/models/rectify_invoice_note_request.py,sha256=
|
|
59
|
+
cloudbeds_fiscal_document/models/rectify_invoice_note_request.py,sha256=VeUr0togZ1o_LjqB5YQnyESJQpTQ7trQjgu2Cm5Ol74,5674
|
|
58
60
|
cloudbeds_fiscal_document/models/source_kind.py,sha256=nizJ67cMNlS0pXxQtmhHkWalHBwR3U9goU9ebsnSgJA,897
|
|
59
61
|
cloudbeds_fiscal_document/models/transaction_for_allocation_response.py,sha256=22HwK8WhTCFSeIyaJwTQ6XL9JjCPhBiHRMYWq3SvU0c,4498
|
|
60
62
|
cloudbeds_fiscal_document/test/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -71,6 +73,7 @@ cloudbeds_fiscal_document/test/test_create_receipt_request.py,sha256=pyH0x2BVYaA
|
|
|
71
73
|
cloudbeds_fiscal_document/test/test_create_simple_receipt_request.py,sha256=6J8ToKWeqXLNXWfGA8qzHYCqjrquXqQEgBWrvujQGzY,2272
|
|
72
74
|
cloudbeds_fiscal_document/test/test_creation_method.py,sha256=QsvJTAVO42HJGxwZXbG_92mIW-Qh5WeHD6OH1bPOMjI,739
|
|
73
75
|
cloudbeds_fiscal_document/test/test_document_action.py,sha256=PdLHn8nFOCNyUmVzLxTHPz77X5oyv6fwdUf4LHT0ZNw,739
|
|
76
|
+
cloudbeds_fiscal_document/test/test_document_trigger_event.py,sha256=ffmC02-VfHl_KYLuF2zk5tMCWEaSfWfclWQnAriRCos,782
|
|
74
77
|
cloudbeds_fiscal_document/test/test_features_api.py,sha256=pS-DtRaMJ5DoTgySMys6PP95oA-4Y0PV-ruTcnWOsBU,846
|
|
75
78
|
cloudbeds_fiscal_document/test/test_fiscal_document_detailed_response.py,sha256=sds3mM9KOkbwonucwWTUN6m553_mWoVtpGv2pmKSX1w,3475
|
|
76
79
|
cloudbeds_fiscal_document/test/test_fiscal_document_email_request.py,sha256=_-jeMSFaxkoz0J_NqAGkLzJIYachmQ7gSujdd2aicWA,1674
|
|
@@ -99,6 +102,7 @@ cloudbeds_fiscal_document/test/test_pro_forma_invoice_request.py,sha256=vWjzUDnI
|
|
|
99
102
|
cloudbeds_fiscal_document/test/test_pro_forma_status_update_request.py,sha256=dq6QghHBjN1OSlQLFDA0jXlHpyA48C4A15_1dpHJI_Q,1615
|
|
100
103
|
cloudbeds_fiscal_document/test/test_receipt_transaction_allocation.py,sha256=nCIA7H7rWTiYwvsALbT9RFToaWnUK9I5T-3UtKkTxxU,1689
|
|
101
104
|
cloudbeds_fiscal_document/test/test_recipient_address.py,sha256=l_uRjcBO8zmmw1Ie9kFqMgLhfQa12vrHINBTrOIsUv8,1584
|
|
105
|
+
cloudbeds_fiscal_document/test/test_recipient_company.py,sha256=TVfDlHW7SVvyfwuQLZQ6o0Jn09WjuBVqYA6IW8mbqP8,1674
|
|
102
106
|
cloudbeds_fiscal_document/test/test_recipient_contact_details.py,sha256=gdyM8mTtIILq_aAR9s8_HM-oeqSIR5WYtldzGtlWyWk,1686
|
|
103
107
|
cloudbeds_fiscal_document/test/test_recipient_details.py,sha256=pqRRiYHrBxflODhlSyH4Cuf1H4on0dm57WZDZ106z9A,1524
|
|
104
108
|
cloudbeds_fiscal_document/test/test_recipient_document.py,sha256=4gmEd1juh8RFeBYgnee7J81ZD8mRFU_QcJ-c2NmxWts,1731
|
|
@@ -108,8 +112,8 @@ cloudbeds_fiscal_document/test/test_recipient_type.py,sha256=SxhGt0jOU_ZCZanauuY
|
|
|
108
112
|
cloudbeds_fiscal_document/test/test_rectify_invoice_note_request.py,sha256=otxuP5tiGrS4b7PzAwUujh8XmKDZxIKIpYX4aJ08ztw,1788
|
|
109
113
|
cloudbeds_fiscal_document/test/test_source_kind.py,sha256=Om-4SlTOpzbQNLcHIU6B0OwZ9vmVbRoRRd0KJUKUccY,711
|
|
110
114
|
cloudbeds_fiscal_document/test/test_transaction_for_allocation_response.py,sha256=8YWz4HEPCpe5LmxBb1rd9vVrxOdvaH0AzpAjpj3WazM,2644
|
|
111
|
-
cloudbeds_fiscal_document-1.
|
|
112
|
-
cloudbeds_fiscal_document-1.
|
|
113
|
-
cloudbeds_fiscal_document-1.
|
|
114
|
-
cloudbeds_fiscal_document-1.
|
|
115
|
-
cloudbeds_fiscal_document-1.
|
|
115
|
+
cloudbeds_fiscal_document-1.9.0.dist-info/licenses/LICENSE,sha256=noTWyG8XyfILgKHVxo6Z6mWjsXnUZ6AsqRY4pNTdBmg,1093
|
|
116
|
+
cloudbeds_fiscal_document-1.9.0.dist-info/METADATA,sha256=Y9BgfTl5umfnnTCRj63qZ6aCsU_cFXjJ5aJyms5aV6Y,16030
|
|
117
|
+
cloudbeds_fiscal_document-1.9.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
118
|
+
cloudbeds_fiscal_document-1.9.0.dist-info/top_level.txt,sha256=xDhbzDUymHSRPf7_v5yTWqDdIimGk-7zkWu1zHiL7kc,26
|
|
119
|
+
cloudbeds_fiscal_document-1.9.0.dist-info/RECORD,,
|
{cloudbeds_fiscal_document-1.7.1.dist-info → cloudbeds_fiscal_document-1.9.0.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|