cloudbeds-fiscal-document 1.9.1__py3-none-any.whl → 1.9.2__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 +4 -1
- cloudbeds_fiscal_document/api/fiscal_documents_api.py +338 -5
- cloudbeds_fiscal_document/api_client.py +1 -1
- cloudbeds_fiscal_document/configuration.py +1 -1
- cloudbeds_fiscal_document/models/__init__.py +3 -0
- cloudbeds_fiscal_document/models/allocations_data.py +104 -0
- cloudbeds_fiscal_document/models/configs_update_request.py +3 -1
- cloudbeds_fiscal_document/models/document_action.py +1 -0
- cloudbeds_fiscal_document/models/fiscal_document_transaction_allocation.py +87 -0
- cloudbeds_fiscal_document/models/fiscal_document_transaction_response.py +13 -12
- cloudbeds_fiscal_document/models/single_allocation.py +89 -0
- cloudbeds_fiscal_document/test/test_allocations_data.py +59 -0
- cloudbeds_fiscal_document/test/test_fiscal_document_transaction_allocation.py +51 -0
- cloudbeds_fiscal_document/test/test_single_allocation.py +52 -0
- {cloudbeds_fiscal_document-1.9.1.dist-info → cloudbeds_fiscal_document-1.9.2.dist-info}/METADATA +6 -2
- {cloudbeds_fiscal_document-1.9.1.dist-info → cloudbeds_fiscal_document-1.9.2.dist-info}/RECORD +19 -13
- {cloudbeds_fiscal_document-1.9.1.dist-info → cloudbeds_fiscal_document-1.9.2.dist-info}/WHEEL +0 -0
- {cloudbeds_fiscal_document-1.9.1.dist-info → cloudbeds_fiscal_document-1.9.2.dist-info}/licenses/LICENSE +0 -0
- {cloudbeds_fiscal_document-1.9.1.dist-info → cloudbeds_fiscal_document-1.9.2.dist-info}/top_level.txt +0 -0
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
""" # noqa: E501
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
__version__ = "1.9.
|
|
17
|
+
__version__ = "1.9.2"
|
|
18
18
|
|
|
19
19
|
# import apis into sdk package
|
|
20
20
|
from cloudbeds_fiscal_document.api.configs_api import ConfigsApi
|
|
@@ -35,6 +35,7 @@ from cloudbeds_fiscal_document.exceptions import ApiException
|
|
|
35
35
|
# import models into sdk package
|
|
36
36
|
from cloudbeds_fiscal_document.models.action import Action
|
|
37
37
|
from cloudbeds_fiscal_document.models.allocate_receipt_payment_request import AllocateReceiptPaymentRequest
|
|
38
|
+
from cloudbeds_fiscal_document.models.allocations_data import AllocationsData
|
|
38
39
|
from cloudbeds_fiscal_document.models.allocations_summary import AllocationsSummary
|
|
39
40
|
from cloudbeds_fiscal_document.models.api_error import ApiError
|
|
40
41
|
from cloudbeds_fiscal_document.models.configs_response import ConfigsResponse
|
|
@@ -55,6 +56,7 @@ from cloudbeds_fiscal_document.models.fiscal_document_patch_request import Fisca
|
|
|
55
56
|
from cloudbeds_fiscal_document.models.fiscal_document_recipient import FiscalDocumentRecipient
|
|
56
57
|
from cloudbeds_fiscal_document.models.fiscal_document_status import FiscalDocumentStatus
|
|
57
58
|
from cloudbeds_fiscal_document.models.fiscal_document_summary_response import FiscalDocumentSummaryResponse
|
|
59
|
+
from cloudbeds_fiscal_document.models.fiscal_document_transaction_allocation import FiscalDocumentTransactionAllocation
|
|
58
60
|
from cloudbeds_fiscal_document.models.fiscal_document_transaction_response import FiscalDocumentTransactionResponse
|
|
59
61
|
from cloudbeds_fiscal_document.models.fiscal_document_transactions_for_allocation_paginated import FiscalDocumentTransactionsForAllocationPaginated
|
|
60
62
|
from cloudbeds_fiscal_document.models.fiscal_document_transactions_paginated import FiscalDocumentTransactionsPaginated
|
|
@@ -80,5 +82,6 @@ from cloudbeds_fiscal_document.models.recipient_request import RecipientRequest
|
|
|
80
82
|
from cloudbeds_fiscal_document.models.recipient_tax_info import RecipientTaxInfo
|
|
81
83
|
from cloudbeds_fiscal_document.models.recipient_type import RecipientType
|
|
82
84
|
from cloudbeds_fiscal_document.models.rectify_invoice_note_request import RectifyInvoiceNoteRequest
|
|
85
|
+
from cloudbeds_fiscal_document.models.single_allocation import SingleAllocation
|
|
83
86
|
from cloudbeds_fiscal_document.models.source_kind import SourceKind
|
|
84
87
|
from cloudbeds_fiscal_document.models.transaction_for_allocation_response import TransactionForAllocationResponse
|
|
@@ -20,6 +20,7 @@ from pydantic import Field, StrictBool, StrictBytes, StrictInt, StrictStr
|
|
|
20
20
|
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
21
21
|
from typing_extensions import Annotated
|
|
22
22
|
from cloudbeds_fiscal_document.models.allocate_receipt_payment_request import AllocateReceiptPaymentRequest
|
|
23
|
+
from cloudbeds_fiscal_document.models.allocations_data import AllocationsData
|
|
23
24
|
from cloudbeds_fiscal_document.models.allocations_summary import AllocationsSummary
|
|
24
25
|
from cloudbeds_fiscal_document.models.create_credit_note_request import CreateCreditNoteRequest
|
|
25
26
|
from cloudbeds_fiscal_document.models.create_invoice_request import CreateInvoiceRequest
|
|
@@ -79,7 +80,7 @@ class FiscalDocumentsApi:
|
|
|
79
80
|
_content_type: Optional[StrictStr] = None,
|
|
80
81
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
81
82
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
82
|
-
) ->
|
|
83
|
+
) -> FiscalDocumentSummaryResponse:
|
|
83
84
|
"""Allocate payment associated with receipt to charge transactions.
|
|
84
85
|
|
|
85
86
|
Allocate payment associated with receipt to charge transactions. The amounts of all allocations must be equal to the payment amount. The transactions should not be fully allocated already and the amount allocated should not be more than the remaining balance on the transaction. All transactions not part of an invoice will be added to newly created invoice.
|
|
@@ -120,7 +121,7 @@ class FiscalDocumentsApi:
|
|
|
120
121
|
)
|
|
121
122
|
|
|
122
123
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
123
|
-
'200':
|
|
124
|
+
'200': "FiscalDocumentSummaryResponse",
|
|
124
125
|
'400': "ApiError",
|
|
125
126
|
'404': None,
|
|
126
127
|
}
|
|
@@ -152,7 +153,7 @@ class FiscalDocumentsApi:
|
|
|
152
153
|
_content_type: Optional[StrictStr] = None,
|
|
153
154
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
154
155
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
155
|
-
) -> ApiResponse[
|
|
156
|
+
) -> ApiResponse[FiscalDocumentSummaryResponse]:
|
|
156
157
|
"""Allocate payment associated with receipt to charge transactions.
|
|
157
158
|
|
|
158
159
|
Allocate payment associated with receipt to charge transactions. The amounts of all allocations must be equal to the payment amount. The transactions should not be fully allocated already and the amount allocated should not be more than the remaining balance on the transaction. All transactions not part of an invoice will be added to newly created invoice.
|
|
@@ -193,7 +194,7 @@ class FiscalDocumentsApi:
|
|
|
193
194
|
)
|
|
194
195
|
|
|
195
196
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
196
|
-
'200':
|
|
197
|
+
'200': "FiscalDocumentSummaryResponse",
|
|
197
198
|
'400': "ApiError",
|
|
198
199
|
'404': None,
|
|
199
200
|
}
|
|
@@ -266,7 +267,7 @@ class FiscalDocumentsApi:
|
|
|
266
267
|
)
|
|
267
268
|
|
|
268
269
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
269
|
-
'200':
|
|
270
|
+
'200': "FiscalDocumentSummaryResponse",
|
|
270
271
|
'400': "ApiError",
|
|
271
272
|
'404': None,
|
|
272
273
|
}
|
|
@@ -2686,6 +2687,338 @@ class FiscalDocumentsApi:
|
|
|
2686
2687
|
|
|
2687
2688
|
|
|
2688
2689
|
|
|
2690
|
+
@validate_call
|
|
2691
|
+
def get_allocations(
|
|
2692
|
+
self,
|
|
2693
|
+
x_property_id: Annotated[int, Field(strict=True, ge=1, description="Property id")],
|
|
2694
|
+
source_ids: Annotated[Optional[List[StrictInt]], Field(description="source IDs.")] = None,
|
|
2695
|
+
source_identifiers: Annotated[Optional[List[StrictStr]], Field(description="source Identifiers.")] = None,
|
|
2696
|
+
source_kind: Annotated[Optional[SourceKind], Field(description="Filter by source kind.")] = None,
|
|
2697
|
+
receipt_ids: Annotated[Optional[List[StrictInt]], Field(description="document IDs.")] = None,
|
|
2698
|
+
_request_timeout: Union[
|
|
2699
|
+
None,
|
|
2700
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2701
|
+
Tuple[
|
|
2702
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2703
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2704
|
+
]
|
|
2705
|
+
] = None,
|
|
2706
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2707
|
+
_content_type: Optional[StrictStr] = None,
|
|
2708
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2709
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2710
|
+
) -> List[AllocationsData]:
|
|
2711
|
+
"""Get payment allocation transactions
|
|
2712
|
+
|
|
2713
|
+
Retrieves payment allocations.
|
|
2714
|
+
|
|
2715
|
+
:param x_property_id: Property id (required)
|
|
2716
|
+
:type x_property_id: int
|
|
2717
|
+
:param source_ids: source IDs.
|
|
2718
|
+
:type source_ids: List[int]
|
|
2719
|
+
:param source_identifiers: source Identifiers.
|
|
2720
|
+
:type source_identifiers: List[str]
|
|
2721
|
+
:param source_kind: Filter by source kind.
|
|
2722
|
+
:type source_kind: SourceKind
|
|
2723
|
+
:param receipt_ids: document IDs.
|
|
2724
|
+
:type receipt_ids: List[int]
|
|
2725
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2726
|
+
number provided, it will be total request
|
|
2727
|
+
timeout. It can also be a pair (tuple) of
|
|
2728
|
+
(connection, read) timeouts.
|
|
2729
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2730
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2731
|
+
request; this effectively ignores the
|
|
2732
|
+
authentication in the spec for a single request.
|
|
2733
|
+
:type _request_auth: dict, optional
|
|
2734
|
+
:param _content_type: force content-type for the request.
|
|
2735
|
+
:type _content_type: str, Optional
|
|
2736
|
+
:param _headers: set to override the headers for a single
|
|
2737
|
+
request; this effectively ignores the headers
|
|
2738
|
+
in the spec for a single request.
|
|
2739
|
+
:type _headers: dict, optional
|
|
2740
|
+
:param _host_index: set to override the host_index for a single
|
|
2741
|
+
request; this effectively ignores the host_index
|
|
2742
|
+
in the spec for a single request.
|
|
2743
|
+
:type _host_index: int, optional
|
|
2744
|
+
:return: Returns the result object.
|
|
2745
|
+
""" # noqa: E501
|
|
2746
|
+
|
|
2747
|
+
_param = self._get_allocations_serialize(
|
|
2748
|
+
x_property_id=x_property_id,
|
|
2749
|
+
source_ids=source_ids,
|
|
2750
|
+
source_identifiers=source_identifiers,
|
|
2751
|
+
source_kind=source_kind,
|
|
2752
|
+
receipt_ids=receipt_ids,
|
|
2753
|
+
_request_auth=_request_auth,
|
|
2754
|
+
_content_type=_content_type,
|
|
2755
|
+
_headers=_headers,
|
|
2756
|
+
_host_index=_host_index
|
|
2757
|
+
)
|
|
2758
|
+
|
|
2759
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2760
|
+
'200': "List[AllocationsData]",
|
|
2761
|
+
}
|
|
2762
|
+
response_data = self.api_client.call_api(
|
|
2763
|
+
*_param,
|
|
2764
|
+
_request_timeout=_request_timeout
|
|
2765
|
+
)
|
|
2766
|
+
response_data.read()
|
|
2767
|
+
return self.api_client.response_deserialize(
|
|
2768
|
+
response_data=response_data,
|
|
2769
|
+
response_types_map=_response_types_map,
|
|
2770
|
+
).data
|
|
2771
|
+
|
|
2772
|
+
|
|
2773
|
+
@validate_call
|
|
2774
|
+
def get_allocations_with_http_info(
|
|
2775
|
+
self,
|
|
2776
|
+
x_property_id: Annotated[int, Field(strict=True, ge=1, description="Property id")],
|
|
2777
|
+
source_ids: Annotated[Optional[List[StrictInt]], Field(description="source IDs.")] = None,
|
|
2778
|
+
source_identifiers: Annotated[Optional[List[StrictStr]], Field(description="source Identifiers.")] = None,
|
|
2779
|
+
source_kind: Annotated[Optional[SourceKind], Field(description="Filter by source kind.")] = None,
|
|
2780
|
+
receipt_ids: Annotated[Optional[List[StrictInt]], Field(description="document IDs.")] = None,
|
|
2781
|
+
_request_timeout: Union[
|
|
2782
|
+
None,
|
|
2783
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2784
|
+
Tuple[
|
|
2785
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2786
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2787
|
+
]
|
|
2788
|
+
] = None,
|
|
2789
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2790
|
+
_content_type: Optional[StrictStr] = None,
|
|
2791
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2792
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2793
|
+
) -> ApiResponse[List[AllocationsData]]:
|
|
2794
|
+
"""Get payment allocation transactions
|
|
2795
|
+
|
|
2796
|
+
Retrieves payment allocations.
|
|
2797
|
+
|
|
2798
|
+
:param x_property_id: Property id (required)
|
|
2799
|
+
:type x_property_id: int
|
|
2800
|
+
:param source_ids: source IDs.
|
|
2801
|
+
:type source_ids: List[int]
|
|
2802
|
+
:param source_identifiers: source Identifiers.
|
|
2803
|
+
:type source_identifiers: List[str]
|
|
2804
|
+
:param source_kind: Filter by source kind.
|
|
2805
|
+
:type source_kind: SourceKind
|
|
2806
|
+
:param receipt_ids: document IDs.
|
|
2807
|
+
:type receipt_ids: List[int]
|
|
2808
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2809
|
+
number provided, it will be total request
|
|
2810
|
+
timeout. It can also be a pair (tuple) of
|
|
2811
|
+
(connection, read) timeouts.
|
|
2812
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2813
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2814
|
+
request; this effectively ignores the
|
|
2815
|
+
authentication in the spec for a single request.
|
|
2816
|
+
:type _request_auth: dict, optional
|
|
2817
|
+
:param _content_type: force content-type for the request.
|
|
2818
|
+
:type _content_type: str, Optional
|
|
2819
|
+
:param _headers: set to override the headers for a single
|
|
2820
|
+
request; this effectively ignores the headers
|
|
2821
|
+
in the spec for a single request.
|
|
2822
|
+
:type _headers: dict, optional
|
|
2823
|
+
:param _host_index: set to override the host_index for a single
|
|
2824
|
+
request; this effectively ignores the host_index
|
|
2825
|
+
in the spec for a single request.
|
|
2826
|
+
:type _host_index: int, optional
|
|
2827
|
+
:return: Returns the result object.
|
|
2828
|
+
""" # noqa: E501
|
|
2829
|
+
|
|
2830
|
+
_param = self._get_allocations_serialize(
|
|
2831
|
+
x_property_id=x_property_id,
|
|
2832
|
+
source_ids=source_ids,
|
|
2833
|
+
source_identifiers=source_identifiers,
|
|
2834
|
+
source_kind=source_kind,
|
|
2835
|
+
receipt_ids=receipt_ids,
|
|
2836
|
+
_request_auth=_request_auth,
|
|
2837
|
+
_content_type=_content_type,
|
|
2838
|
+
_headers=_headers,
|
|
2839
|
+
_host_index=_host_index
|
|
2840
|
+
)
|
|
2841
|
+
|
|
2842
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2843
|
+
'200': "List[AllocationsData]",
|
|
2844
|
+
}
|
|
2845
|
+
response_data = self.api_client.call_api(
|
|
2846
|
+
*_param,
|
|
2847
|
+
_request_timeout=_request_timeout
|
|
2848
|
+
)
|
|
2849
|
+
response_data.read()
|
|
2850
|
+
return self.api_client.response_deserialize(
|
|
2851
|
+
response_data=response_data,
|
|
2852
|
+
response_types_map=_response_types_map,
|
|
2853
|
+
)
|
|
2854
|
+
|
|
2855
|
+
|
|
2856
|
+
@validate_call
|
|
2857
|
+
def get_allocations_without_preload_content(
|
|
2858
|
+
self,
|
|
2859
|
+
x_property_id: Annotated[int, Field(strict=True, ge=1, description="Property id")],
|
|
2860
|
+
source_ids: Annotated[Optional[List[StrictInt]], Field(description="source IDs.")] = None,
|
|
2861
|
+
source_identifiers: Annotated[Optional[List[StrictStr]], Field(description="source Identifiers.")] = None,
|
|
2862
|
+
source_kind: Annotated[Optional[SourceKind], Field(description="Filter by source kind.")] = None,
|
|
2863
|
+
receipt_ids: Annotated[Optional[List[StrictInt]], Field(description="document IDs.")] = None,
|
|
2864
|
+
_request_timeout: Union[
|
|
2865
|
+
None,
|
|
2866
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2867
|
+
Tuple[
|
|
2868
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2869
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2870
|
+
]
|
|
2871
|
+
] = None,
|
|
2872
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2873
|
+
_content_type: Optional[StrictStr] = None,
|
|
2874
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2875
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2876
|
+
) -> RESTResponseType:
|
|
2877
|
+
"""Get payment allocation transactions
|
|
2878
|
+
|
|
2879
|
+
Retrieves payment allocations.
|
|
2880
|
+
|
|
2881
|
+
:param x_property_id: Property id (required)
|
|
2882
|
+
:type x_property_id: int
|
|
2883
|
+
:param source_ids: source IDs.
|
|
2884
|
+
:type source_ids: List[int]
|
|
2885
|
+
:param source_identifiers: source Identifiers.
|
|
2886
|
+
:type source_identifiers: List[str]
|
|
2887
|
+
:param source_kind: Filter by source kind.
|
|
2888
|
+
:type source_kind: SourceKind
|
|
2889
|
+
:param receipt_ids: document IDs.
|
|
2890
|
+
:type receipt_ids: List[int]
|
|
2891
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2892
|
+
number provided, it will be total request
|
|
2893
|
+
timeout. It can also be a pair (tuple) of
|
|
2894
|
+
(connection, read) timeouts.
|
|
2895
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2896
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2897
|
+
request; this effectively ignores the
|
|
2898
|
+
authentication in the spec for a single request.
|
|
2899
|
+
:type _request_auth: dict, optional
|
|
2900
|
+
:param _content_type: force content-type for the request.
|
|
2901
|
+
:type _content_type: str, Optional
|
|
2902
|
+
:param _headers: set to override the headers for a single
|
|
2903
|
+
request; this effectively ignores the headers
|
|
2904
|
+
in the spec for a single request.
|
|
2905
|
+
:type _headers: dict, optional
|
|
2906
|
+
:param _host_index: set to override the host_index for a single
|
|
2907
|
+
request; this effectively ignores the host_index
|
|
2908
|
+
in the spec for a single request.
|
|
2909
|
+
:type _host_index: int, optional
|
|
2910
|
+
:return: Returns the result object.
|
|
2911
|
+
""" # noqa: E501
|
|
2912
|
+
|
|
2913
|
+
_param = self._get_allocations_serialize(
|
|
2914
|
+
x_property_id=x_property_id,
|
|
2915
|
+
source_ids=source_ids,
|
|
2916
|
+
source_identifiers=source_identifiers,
|
|
2917
|
+
source_kind=source_kind,
|
|
2918
|
+
receipt_ids=receipt_ids,
|
|
2919
|
+
_request_auth=_request_auth,
|
|
2920
|
+
_content_type=_content_type,
|
|
2921
|
+
_headers=_headers,
|
|
2922
|
+
_host_index=_host_index
|
|
2923
|
+
)
|
|
2924
|
+
|
|
2925
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2926
|
+
'200': "List[AllocationsData]",
|
|
2927
|
+
}
|
|
2928
|
+
response_data = self.api_client.call_api(
|
|
2929
|
+
*_param,
|
|
2930
|
+
_request_timeout=_request_timeout
|
|
2931
|
+
)
|
|
2932
|
+
return response_data.response
|
|
2933
|
+
|
|
2934
|
+
|
|
2935
|
+
def _get_allocations_serialize(
|
|
2936
|
+
self,
|
|
2937
|
+
x_property_id,
|
|
2938
|
+
source_ids,
|
|
2939
|
+
source_identifiers,
|
|
2940
|
+
source_kind,
|
|
2941
|
+
receipt_ids,
|
|
2942
|
+
_request_auth,
|
|
2943
|
+
_content_type,
|
|
2944
|
+
_headers,
|
|
2945
|
+
_host_index,
|
|
2946
|
+
) -> RequestSerialized:
|
|
2947
|
+
|
|
2948
|
+
_host = None
|
|
2949
|
+
|
|
2950
|
+
_collection_formats: Dict[str, str] = {
|
|
2951
|
+
'sourceIds': 'multi',
|
|
2952
|
+
'sourceIdentifiers': 'multi',
|
|
2953
|
+
'receiptIds': 'multi',
|
|
2954
|
+
}
|
|
2955
|
+
|
|
2956
|
+
_path_params: Dict[str, str] = {}
|
|
2957
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2958
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2959
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2960
|
+
_files: Dict[
|
|
2961
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2962
|
+
] = {}
|
|
2963
|
+
_body_params: Optional[bytes] = None
|
|
2964
|
+
|
|
2965
|
+
# process the path parameters
|
|
2966
|
+
# process the query parameters
|
|
2967
|
+
if source_ids is not None:
|
|
2968
|
+
|
|
2969
|
+
_query_params.append(('sourceIds', source_ids))
|
|
2970
|
+
|
|
2971
|
+
if source_identifiers is not None:
|
|
2972
|
+
|
|
2973
|
+
_query_params.append(('sourceIdentifiers', source_identifiers))
|
|
2974
|
+
|
|
2975
|
+
if source_kind is not None:
|
|
2976
|
+
|
|
2977
|
+
_query_params.append(('sourceKind', source_kind.value))
|
|
2978
|
+
|
|
2979
|
+
if receipt_ids is not None:
|
|
2980
|
+
|
|
2981
|
+
_query_params.append(('receiptIds', receipt_ids))
|
|
2982
|
+
|
|
2983
|
+
# process the header parameters
|
|
2984
|
+
if x_property_id is not None:
|
|
2985
|
+
_header_params['X-Property-ID'] = x_property_id
|
|
2986
|
+
# process the form parameters
|
|
2987
|
+
# process the body parameter
|
|
2988
|
+
|
|
2989
|
+
|
|
2990
|
+
# set the HTTP header `Accept`
|
|
2991
|
+
if 'Accept' not in _header_params:
|
|
2992
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2993
|
+
[
|
|
2994
|
+
'application/json'
|
|
2995
|
+
]
|
|
2996
|
+
)
|
|
2997
|
+
|
|
2998
|
+
|
|
2999
|
+
# authentication setting
|
|
3000
|
+
_auth_settings: List[str] = [
|
|
3001
|
+
'bearerAuth'
|
|
3002
|
+
]
|
|
3003
|
+
|
|
3004
|
+
return self.api_client.param_serialize(
|
|
3005
|
+
method='GET',
|
|
3006
|
+
resource_path='/fiscal-document/v1/fiscal-documents/allocations',
|
|
3007
|
+
path_params=_path_params,
|
|
3008
|
+
query_params=_query_params,
|
|
3009
|
+
header_params=_header_params,
|
|
3010
|
+
body=_body_params,
|
|
3011
|
+
post_params=_form_params,
|
|
3012
|
+
files=_files,
|
|
3013
|
+
auth_settings=_auth_settings,
|
|
3014
|
+
collection_formats=_collection_formats,
|
|
3015
|
+
_host=_host,
|
|
3016
|
+
_request_auth=_request_auth
|
|
3017
|
+
)
|
|
3018
|
+
|
|
3019
|
+
|
|
3020
|
+
|
|
3021
|
+
|
|
2689
3022
|
@validate_call
|
|
2690
3023
|
def get_allocations_summary(
|
|
2691
3024
|
self,
|
|
@@ -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.9.
|
|
93
|
+
self.user_agent = 'OpenAPI-Generator/1.9.2/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.9.
|
|
507
|
+
"SDK Package Version: 1.9.2".\
|
|
508
508
|
format(env=sys.platform, pyversion=sys.version)
|
|
509
509
|
|
|
510
510
|
def get_host_settings(self) -> List[HostSetting]:
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
# import models into model package
|
|
17
17
|
from cloudbeds_fiscal_document.models.action import Action
|
|
18
18
|
from cloudbeds_fiscal_document.models.allocate_receipt_payment_request import AllocateReceiptPaymentRequest
|
|
19
|
+
from cloudbeds_fiscal_document.models.allocations_data import AllocationsData
|
|
19
20
|
from cloudbeds_fiscal_document.models.allocations_summary import AllocationsSummary
|
|
20
21
|
from cloudbeds_fiscal_document.models.api_error import ApiError
|
|
21
22
|
from cloudbeds_fiscal_document.models.configs_response import ConfigsResponse
|
|
@@ -36,6 +37,7 @@ from cloudbeds_fiscal_document.models.fiscal_document_patch_request import Fisca
|
|
|
36
37
|
from cloudbeds_fiscal_document.models.fiscal_document_recipient import FiscalDocumentRecipient
|
|
37
38
|
from cloudbeds_fiscal_document.models.fiscal_document_status import FiscalDocumentStatus
|
|
38
39
|
from cloudbeds_fiscal_document.models.fiscal_document_summary_response import FiscalDocumentSummaryResponse
|
|
40
|
+
from cloudbeds_fiscal_document.models.fiscal_document_transaction_allocation import FiscalDocumentTransactionAllocation
|
|
39
41
|
from cloudbeds_fiscal_document.models.fiscal_document_transaction_response import FiscalDocumentTransactionResponse
|
|
40
42
|
from cloudbeds_fiscal_document.models.fiscal_document_transactions_for_allocation_paginated import FiscalDocumentTransactionsForAllocationPaginated
|
|
41
43
|
from cloudbeds_fiscal_document.models.fiscal_document_transactions_paginated import FiscalDocumentTransactionsPaginated
|
|
@@ -61,5 +63,6 @@ from cloudbeds_fiscal_document.models.recipient_request import RecipientRequest
|
|
|
61
63
|
from cloudbeds_fiscal_document.models.recipient_tax_info import RecipientTaxInfo
|
|
62
64
|
from cloudbeds_fiscal_document.models.recipient_type import RecipientType
|
|
63
65
|
from cloudbeds_fiscal_document.models.rectify_invoice_note_request import RectifyInvoiceNoteRequest
|
|
66
|
+
from cloudbeds_fiscal_document.models.single_allocation import SingleAllocation
|
|
64
67
|
from cloudbeds_fiscal_document.models.source_kind import SourceKind
|
|
65
68
|
from cloudbeds_fiscal_document.models.transaction_for_allocation_response import TransactionForAllocationResponse
|
|
@@ -0,0 +1,104 @@
|
|
|
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, StrictInt, StrictStr
|
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
+
from cloudbeds_fiscal_document.models.single_allocation import SingleAllocation
|
|
23
|
+
from cloudbeds_fiscal_document.models.source_kind import SourceKind
|
|
24
|
+
from typing import Optional, Set
|
|
25
|
+
from typing_extensions import Self
|
|
26
|
+
|
|
27
|
+
class AllocationsData(BaseModel):
|
|
28
|
+
"""
|
|
29
|
+
AllocationsData
|
|
30
|
+
""" # noqa: E501
|
|
31
|
+
receipt_id: Optional[StrictInt] = None
|
|
32
|
+
source_id: Optional[StrictInt] = None
|
|
33
|
+
source_identifier: Optional[StrictStr] = None
|
|
34
|
+
source_kind: Optional[SourceKind] = None
|
|
35
|
+
allocations: Optional[List[SingleAllocation]] = None
|
|
36
|
+
__properties: ClassVar[List[str]] = ["receipt_id", "source_id", "source_identifier", "source_kind", "allocations"]
|
|
37
|
+
|
|
38
|
+
model_config = ConfigDict(
|
|
39
|
+
populate_by_name=True,
|
|
40
|
+
validate_assignment=True,
|
|
41
|
+
protected_namespaces=(),
|
|
42
|
+
)
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
def to_str(self) -> str:
|
|
46
|
+
"""Returns the string representation of the model using alias"""
|
|
47
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
48
|
+
|
|
49
|
+
def to_json(self) -> str:
|
|
50
|
+
"""Returns the JSON representation of the model using alias"""
|
|
51
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
52
|
+
return json.dumps(self.to_dict())
|
|
53
|
+
|
|
54
|
+
@classmethod
|
|
55
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
56
|
+
"""Create an instance of AllocationsData from a JSON string"""
|
|
57
|
+
return cls.from_dict(json.loads(json_str))
|
|
58
|
+
|
|
59
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
60
|
+
"""Return the dictionary representation of the model using alias.
|
|
61
|
+
|
|
62
|
+
This has the following differences from calling pydantic's
|
|
63
|
+
`self.model_dump(by_alias=True)`:
|
|
64
|
+
|
|
65
|
+
* `None` is only added to the output dict for nullable fields that
|
|
66
|
+
were set at model initialization. Other fields with value `None`
|
|
67
|
+
are ignored.
|
|
68
|
+
"""
|
|
69
|
+
excluded_fields: Set[str] = set([
|
|
70
|
+
])
|
|
71
|
+
|
|
72
|
+
_dict = self.model_dump(
|
|
73
|
+
by_alias=True,
|
|
74
|
+
exclude=excluded_fields,
|
|
75
|
+
exclude_none=True,
|
|
76
|
+
)
|
|
77
|
+
# override the default output from pydantic by calling `to_dict()` of each item in allocations (list)
|
|
78
|
+
_items = []
|
|
79
|
+
if self.allocations:
|
|
80
|
+
for _item_allocations in self.allocations:
|
|
81
|
+
if _item_allocations:
|
|
82
|
+
_items.append(_item_allocations.to_dict())
|
|
83
|
+
_dict['allocations'] = _items
|
|
84
|
+
return _dict
|
|
85
|
+
|
|
86
|
+
@classmethod
|
|
87
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
88
|
+
"""Create an instance of AllocationsData from a dict"""
|
|
89
|
+
if obj is None:
|
|
90
|
+
return None
|
|
91
|
+
|
|
92
|
+
if not isinstance(obj, dict):
|
|
93
|
+
return cls.model_validate(obj)
|
|
94
|
+
|
|
95
|
+
_obj = cls.model_validate({
|
|
96
|
+
"receipt_id": obj.get("receipt_id"),
|
|
97
|
+
"source_id": obj.get("source_id"),
|
|
98
|
+
"source_identifier": obj.get("source_identifier"),
|
|
99
|
+
"source_kind": obj.get("source_kind"),
|
|
100
|
+
"allocations": [SingleAllocation.from_dict(_item) for _item in obj["allocations"]] if obj.get("allocations") is not None else None
|
|
101
|
+
})
|
|
102
|
+
return _obj
|
|
103
|
+
|
|
104
|
+
|
|
@@ -42,6 +42,7 @@ class ConfigsUpdateRequest(BaseModel):
|
|
|
42
42
|
include_room_number: StrictBool = Field(alias="includeRoomNumber")
|
|
43
43
|
use_document_number: StrictBool = Field(alias="useDocumentNumber")
|
|
44
44
|
create_invoice_on_allocation: Optional[StrictBool] = Field(default=False, alias="createInvoiceOnAllocation")
|
|
45
|
+
update_invoice_on_link_document: Optional[StrictBool] = Field(default=False, alias="updateInvoiceOnLinkDocument")
|
|
45
46
|
is_compact: StrictBool = Field(alias="isCompact")
|
|
46
47
|
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
48
|
use_invoice_document_settings: Optional[StrictBool] = Field(default=False, description="Flag to determine if invoice document settings should be used.", alias="useInvoiceDocumentSettings")
|
|
@@ -51,7 +52,7 @@ class ConfigsUpdateRequest(BaseModel):
|
|
|
51
52
|
cpf: Optional[StrictStr] = None
|
|
52
53
|
custom_text: Optional[Dict[str, StrictStr]] = Field(default=None, alias="customText")
|
|
53
54
|
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"]
|
|
55
|
+
__properties: ClassVar[List[str]] = ["triggerEvents", "showDetailedTaxFee", "chargeBreakdown", "useGuestLang", "dueDays", "sequenceStartNumber", "lang", "prefix", "suffix", "legalCompanyName", "title", "showLegalCompanyName", "includeRoomNumber", "useDocumentNumber", "createInvoiceOnAllocation", "updateInvoiceOnLinkDocument", "isCompact", "useInvoiceTitleAndNumbering", "useInvoiceDocumentSettings", "showCreditNotesAndReceipts", "taxId1", "taxId2", "cpf", "customText", "logoId"]
|
|
55
56
|
|
|
56
57
|
model_config = ConfigDict(
|
|
57
58
|
populate_by_name=True,
|
|
@@ -169,6 +170,7 @@ class ConfigsUpdateRequest(BaseModel):
|
|
|
169
170
|
"includeRoomNumber": obj.get("includeRoomNumber") if obj.get("includeRoomNumber") is not None else False,
|
|
170
171
|
"useDocumentNumber": obj.get("useDocumentNumber"),
|
|
171
172
|
"createInvoiceOnAllocation": obj.get("createInvoiceOnAllocation") if obj.get("createInvoiceOnAllocation") is not None else False,
|
|
173
|
+
"updateInvoiceOnLinkDocument": obj.get("updateInvoiceOnLinkDocument") if obj.get("updateInvoiceOnLinkDocument") is not None else False,
|
|
172
174
|
"isCompact": obj.get("isCompact") if obj.get("isCompact") is not None else False,
|
|
173
175
|
"useInvoiceTitleAndNumbering": obj.get("useInvoiceTitleAndNumbering") if obj.get("useInvoiceTitleAndNumbering") is not None else False,
|
|
174
176
|
"useInvoiceDocumentSettings": obj.get("useInvoiceDocumentSettings") if obj.get("useInvoiceDocumentSettings") is not None else False,
|
|
@@ -0,0 +1,87 @@
|
|
|
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 FiscalDocumentTransactionAllocation(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
FiscalDocumentTransactionAllocation
|
|
28
|
+
""" # noqa: E501
|
|
29
|
+
receipt_number: Optional[StrictStr] = Field(default=None, alias="receiptNumber")
|
|
30
|
+
__properties: ClassVar[List[str]] = ["receiptNumber"]
|
|
31
|
+
|
|
32
|
+
model_config = ConfigDict(
|
|
33
|
+
populate_by_name=True,
|
|
34
|
+
validate_assignment=True,
|
|
35
|
+
protected_namespaces=(),
|
|
36
|
+
)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
def to_str(self) -> str:
|
|
40
|
+
"""Returns the string representation of the model using alias"""
|
|
41
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
42
|
+
|
|
43
|
+
def to_json(self) -> str:
|
|
44
|
+
"""Returns the JSON representation of the model using alias"""
|
|
45
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
46
|
+
return json.dumps(self.to_dict())
|
|
47
|
+
|
|
48
|
+
@classmethod
|
|
49
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
50
|
+
"""Create an instance of FiscalDocumentTransactionAllocation from a JSON string"""
|
|
51
|
+
return cls.from_dict(json.loads(json_str))
|
|
52
|
+
|
|
53
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
54
|
+
"""Return the dictionary representation of the model using alias.
|
|
55
|
+
|
|
56
|
+
This has the following differences from calling pydantic's
|
|
57
|
+
`self.model_dump(by_alias=True)`:
|
|
58
|
+
|
|
59
|
+
* `None` is only added to the output dict for nullable fields that
|
|
60
|
+
were set at model initialization. Other fields with value `None`
|
|
61
|
+
are ignored.
|
|
62
|
+
"""
|
|
63
|
+
excluded_fields: Set[str] = set([
|
|
64
|
+
])
|
|
65
|
+
|
|
66
|
+
_dict = self.model_dump(
|
|
67
|
+
by_alias=True,
|
|
68
|
+
exclude=excluded_fields,
|
|
69
|
+
exclude_none=True,
|
|
70
|
+
)
|
|
71
|
+
return _dict
|
|
72
|
+
|
|
73
|
+
@classmethod
|
|
74
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
75
|
+
"""Create an instance of FiscalDocumentTransactionAllocation from a dict"""
|
|
76
|
+
if obj is None:
|
|
77
|
+
return None
|
|
78
|
+
|
|
79
|
+
if not isinstance(obj, dict):
|
|
80
|
+
return cls.model_validate(obj)
|
|
81
|
+
|
|
82
|
+
_obj = cls.model_validate({
|
|
83
|
+
"receiptNumber": obj.get("receiptNumber")
|
|
84
|
+
})
|
|
85
|
+
return _obj
|
|
86
|
+
|
|
87
|
+
|
|
@@ -20,6 +20,7 @@ import json
|
|
|
20
20
|
from datetime import datetime
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr, field_validator
|
|
22
22
|
from typing import Any, ClassVar, Dict, List, Optional, Union
|
|
23
|
+
from cloudbeds_fiscal_document.models.fiscal_document_transaction_allocation import FiscalDocumentTransactionAllocation
|
|
23
24
|
from cloudbeds_fiscal_document.models.source_kind import SourceKind
|
|
24
25
|
from typing import Optional, Set
|
|
25
26
|
from typing_extensions import Self
|
|
@@ -32,7 +33,6 @@ class FiscalDocumentTransactionResponse(BaseModel):
|
|
|
32
33
|
property_id: Optional[StrictStr] = Field(default=None, alias="propertyId")
|
|
33
34
|
source_id: Optional[StrictStr] = Field(default=None, alias="sourceId")
|
|
34
35
|
source_kind: Optional[SourceKind] = Field(default=None, alias="sourceKind")
|
|
35
|
-
allocated_payment_transactions: Optional[List[FiscalDocumentTransactionResponse]] = Field(default=None, alias="allocatedPaymentTransactions")
|
|
36
36
|
transaction_date: Optional[datetime] = Field(default=None, alias="transactionDate")
|
|
37
37
|
guest_name: Optional[StrictStr] = Field(default=None, alias="guestName")
|
|
38
38
|
description: Optional[StrictStr] = None
|
|
@@ -40,7 +40,9 @@ class FiscalDocumentTransactionResponse(BaseModel):
|
|
|
40
40
|
amount: Optional[Union[StrictFloat, StrictInt]] = None
|
|
41
41
|
folio_id: Optional[StrictStr] = Field(default=None, alias="folioId")
|
|
42
42
|
status: Optional[StrictStr] = Field(default=None, description="Status of the transaction - PENDING for unpaid transactions, POSTED for paid transactions")
|
|
43
|
-
|
|
43
|
+
paid_amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="paidAmount")
|
|
44
|
+
allocations: Optional[List[FiscalDocumentTransactionAllocation]] = None
|
|
45
|
+
__properties: ClassVar[List[str]] = ["id", "propertyId", "sourceId", "sourceKind", "transactionDate", "guestName", "description", "internalCode", "amount", "folioId", "status", "paidAmount", "allocations"]
|
|
44
46
|
|
|
45
47
|
@field_validator('status')
|
|
46
48
|
def status_validate_enum(cls, value):
|
|
@@ -91,13 +93,13 @@ class FiscalDocumentTransactionResponse(BaseModel):
|
|
|
91
93
|
exclude=excluded_fields,
|
|
92
94
|
exclude_none=True,
|
|
93
95
|
)
|
|
94
|
-
# override the default output from pydantic by calling `to_dict()` of each item in
|
|
96
|
+
# override the default output from pydantic by calling `to_dict()` of each item in allocations (list)
|
|
95
97
|
_items = []
|
|
96
|
-
if self.
|
|
97
|
-
for
|
|
98
|
-
if
|
|
99
|
-
_items.append(
|
|
100
|
-
_dict['
|
|
98
|
+
if self.allocations:
|
|
99
|
+
for _item_allocations in self.allocations:
|
|
100
|
+
if _item_allocations:
|
|
101
|
+
_items.append(_item_allocations.to_dict())
|
|
102
|
+
_dict['allocations'] = _items
|
|
101
103
|
return _dict
|
|
102
104
|
|
|
103
105
|
@classmethod
|
|
@@ -114,17 +116,16 @@ class FiscalDocumentTransactionResponse(BaseModel):
|
|
|
114
116
|
"propertyId": obj.get("propertyId"),
|
|
115
117
|
"sourceId": obj.get("sourceId"),
|
|
116
118
|
"sourceKind": obj.get("sourceKind"),
|
|
117
|
-
"allocatedPaymentTransactions": [FiscalDocumentTransactionResponse.from_dict(_item) for _item in obj["allocatedPaymentTransactions"]] if obj.get("allocatedPaymentTransactions") is not None else None,
|
|
118
119
|
"transactionDate": obj.get("transactionDate"),
|
|
119
120
|
"guestName": obj.get("guestName"),
|
|
120
121
|
"description": obj.get("description"),
|
|
121
122
|
"internalCode": obj.get("internalCode"),
|
|
122
123
|
"amount": obj.get("amount"),
|
|
123
124
|
"folioId": obj.get("folioId"),
|
|
124
|
-
"status": obj.get("status")
|
|
125
|
+
"status": obj.get("status"),
|
|
126
|
+
"paidAmount": obj.get("paidAmount"),
|
|
127
|
+
"allocations": [FiscalDocumentTransactionAllocation.from_dict(_item) for _item in obj["allocations"]] if obj.get("allocations") is not None else None
|
|
125
128
|
})
|
|
126
129
|
return _obj
|
|
127
130
|
|
|
128
|
-
# TODO: Rewrite to not use raise_errors
|
|
129
|
-
FiscalDocumentTransactionResponse.model_rebuild(raise_errors=False)
|
|
130
131
|
|
|
@@ -0,0 +1,89 @@
|
|
|
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, StrictFloat, StrictInt
|
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional, Union
|
|
22
|
+
from typing import Optional, Set
|
|
23
|
+
from typing_extensions import Self
|
|
24
|
+
|
|
25
|
+
class SingleAllocation(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
SingleAllocation
|
|
28
|
+
""" # noqa: E501
|
|
29
|
+
transaction_id: Optional[StrictInt] = None
|
|
30
|
+
allocated_amount: Optional[Union[StrictFloat, StrictInt]] = None
|
|
31
|
+
__properties: ClassVar[List[str]] = ["transaction_id", "allocated_amount"]
|
|
32
|
+
|
|
33
|
+
model_config = ConfigDict(
|
|
34
|
+
populate_by_name=True,
|
|
35
|
+
validate_assignment=True,
|
|
36
|
+
protected_namespaces=(),
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
def to_str(self) -> str:
|
|
41
|
+
"""Returns the string representation of the model using alias"""
|
|
42
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
43
|
+
|
|
44
|
+
def to_json(self) -> str:
|
|
45
|
+
"""Returns the JSON representation of the model using alias"""
|
|
46
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
47
|
+
return json.dumps(self.to_dict())
|
|
48
|
+
|
|
49
|
+
@classmethod
|
|
50
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
51
|
+
"""Create an instance of SingleAllocation from a JSON string"""
|
|
52
|
+
return cls.from_dict(json.loads(json_str))
|
|
53
|
+
|
|
54
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
55
|
+
"""Return the dictionary representation of the model using alias.
|
|
56
|
+
|
|
57
|
+
This has the following differences from calling pydantic's
|
|
58
|
+
`self.model_dump(by_alias=True)`:
|
|
59
|
+
|
|
60
|
+
* `None` is only added to the output dict for nullable fields that
|
|
61
|
+
were set at model initialization. Other fields with value `None`
|
|
62
|
+
are ignored.
|
|
63
|
+
"""
|
|
64
|
+
excluded_fields: Set[str] = set([
|
|
65
|
+
])
|
|
66
|
+
|
|
67
|
+
_dict = self.model_dump(
|
|
68
|
+
by_alias=True,
|
|
69
|
+
exclude=excluded_fields,
|
|
70
|
+
exclude_none=True,
|
|
71
|
+
)
|
|
72
|
+
return _dict
|
|
73
|
+
|
|
74
|
+
@classmethod
|
|
75
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
76
|
+
"""Create an instance of SingleAllocation from a dict"""
|
|
77
|
+
if obj is None:
|
|
78
|
+
return None
|
|
79
|
+
|
|
80
|
+
if not isinstance(obj, dict):
|
|
81
|
+
return cls.model_validate(obj)
|
|
82
|
+
|
|
83
|
+
_obj = cls.model_validate({
|
|
84
|
+
"transaction_id": obj.get("transaction_id"),
|
|
85
|
+
"allocated_amount": obj.get("allocated_amount")
|
|
86
|
+
})
|
|
87
|
+
return _obj
|
|
88
|
+
|
|
89
|
+
|
|
@@ -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.allocations_data import AllocationsData
|
|
18
|
+
|
|
19
|
+
class TestAllocationsData(unittest.TestCase):
|
|
20
|
+
"""AllocationsData 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) -> AllocationsData:
|
|
29
|
+
"""Test AllocationsData
|
|
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 `AllocationsData`
|
|
34
|
+
"""
|
|
35
|
+
model = AllocationsData()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return AllocationsData(
|
|
38
|
+
receipt_id = 8878321883381,
|
|
39
|
+
source_id = 8878321883383,
|
|
40
|
+
source_identifier = 'HGJXJF',
|
|
41
|
+
source_kind = 'GROUP_PROFILE',
|
|
42
|
+
allocations = [
|
|
43
|
+
cloudbeds_fiscal_document.models.single_allocation.SingleAllocation(
|
|
44
|
+
transaction_id = 8878321883388,
|
|
45
|
+
allocated_amount = 3.68, )
|
|
46
|
+
]
|
|
47
|
+
)
|
|
48
|
+
else:
|
|
49
|
+
return AllocationsData(
|
|
50
|
+
)
|
|
51
|
+
"""
|
|
52
|
+
|
|
53
|
+
def testAllocationsData(self):
|
|
54
|
+
"""Test AllocationsData"""
|
|
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()
|
|
@@ -0,0 +1,51 @@
|
|
|
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.fiscal_document_transaction_allocation import FiscalDocumentTransactionAllocation
|
|
18
|
+
|
|
19
|
+
class TestFiscalDocumentTransactionAllocation(unittest.TestCase):
|
|
20
|
+
"""FiscalDocumentTransactionAllocation 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) -> FiscalDocumentTransactionAllocation:
|
|
29
|
+
"""Test FiscalDocumentTransactionAllocation
|
|
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 `FiscalDocumentTransactionAllocation`
|
|
34
|
+
"""
|
|
35
|
+
model = FiscalDocumentTransactionAllocation()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return FiscalDocumentTransactionAllocation(
|
|
38
|
+
receipt_number = ''
|
|
39
|
+
)
|
|
40
|
+
else:
|
|
41
|
+
return FiscalDocumentTransactionAllocation(
|
|
42
|
+
)
|
|
43
|
+
"""
|
|
44
|
+
|
|
45
|
+
def testFiscalDocumentTransactionAllocation(self):
|
|
46
|
+
"""Test FiscalDocumentTransactionAllocation"""
|
|
47
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
48
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
49
|
+
|
|
50
|
+
if __name__ == '__main__':
|
|
51
|
+
unittest.main()
|
|
@@ -0,0 +1,52 @@
|
|
|
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.single_allocation import SingleAllocation
|
|
18
|
+
|
|
19
|
+
class TestSingleAllocation(unittest.TestCase):
|
|
20
|
+
"""SingleAllocation 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) -> SingleAllocation:
|
|
29
|
+
"""Test SingleAllocation
|
|
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 `SingleAllocation`
|
|
34
|
+
"""
|
|
35
|
+
model = SingleAllocation()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return SingleAllocation(
|
|
38
|
+
transaction_id = 8878321883388,
|
|
39
|
+
allocated_amount = 3.68
|
|
40
|
+
)
|
|
41
|
+
else:
|
|
42
|
+
return SingleAllocation(
|
|
43
|
+
)
|
|
44
|
+
"""
|
|
45
|
+
|
|
46
|
+
def testSingleAllocation(self):
|
|
47
|
+
"""Test SingleAllocation"""
|
|
48
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
49
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
50
|
+
|
|
51
|
+
if __name__ == '__main__':
|
|
52
|
+
unittest.main()
|
{cloudbeds_fiscal_document-1.9.1.dist-info → cloudbeds_fiscal_document-1.9.2.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: cloudbeds_fiscal_document
|
|
3
|
-
Version: 1.9.
|
|
3
|
+
Version: 1.9.2
|
|
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.9.
|
|
60
|
+
- Package version: 1.9.2
|
|
61
61
|
- Generator version: 7.11.0
|
|
62
62
|
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
|
63
63
|
|
|
@@ -139,6 +139,7 @@ Class | Method | HTTP request | Description
|
|
|
139
139
|
*FiscalDocumentsApi* | [**create_simple_receipt**](cloudbeds_fiscal_document/docs/FiscalDocumentsApi.md#create_simple_receipt) | **POST** /fiscal-document/v1/fiscal-documents/simple-receipt | Create simple receipts.
|
|
140
140
|
*FiscalDocumentsApi* | [**download_fiscal_document**](cloudbeds_fiscal_document/docs/FiscalDocumentsApi.md#download_fiscal_document) | **GET** /fiscal-document/v1/fiscal-documents/{id}/download | Download fiscal document
|
|
141
141
|
*FiscalDocumentsApi* | [**email_fiscal_document**](cloudbeds_fiscal_document/docs/FiscalDocumentsApi.md#email_fiscal_document) | **POST** /fiscal-document/v1/fiscal-documents/{id}/email | Email a fiscal document
|
|
142
|
+
*FiscalDocumentsApi* | [**get_allocations**](cloudbeds_fiscal_document/docs/FiscalDocumentsApi.md#get_allocations) | **GET** /fiscal-document/v1/fiscal-documents/allocations | Get payment allocation transactions
|
|
142
143
|
*FiscalDocumentsApi* | [**get_allocations_summary**](cloudbeds_fiscal_document/docs/FiscalDocumentsApi.md#get_allocations_summary) | **GET** /fiscal-document/v1/fiscal-documents/allocations/summary | Get allocations summary
|
|
143
144
|
*FiscalDocumentsApi* | [**get_credit_note_preview**](cloudbeds_fiscal_document/docs/FiscalDocumentsApi.md#get_credit_note_preview) | **POST** /fiscal-document/v1/fiscal-documents/credit-note/preview | Get fiscal document preview of the type credit note
|
|
144
145
|
*FiscalDocumentsApi* | [**get_document_preview**](cloudbeds_fiscal_document/docs/FiscalDocumentsApi.md#get_document_preview) | **POST** /fiscal-document/v1/fiscal-documents/invoice/preview | Get fiscal document preview of the type invoice
|
|
@@ -159,6 +160,7 @@ Class | Method | HTTP request | Description
|
|
|
159
160
|
|
|
160
161
|
- [Action](cloudbeds_fiscal_document/docs/Action.md)
|
|
161
162
|
- [AllocateReceiptPaymentRequest](cloudbeds_fiscal_document/docs/AllocateReceiptPaymentRequest.md)
|
|
163
|
+
- [AllocationsData](cloudbeds_fiscal_document/docs/AllocationsData.md)
|
|
162
164
|
- [AllocationsSummary](cloudbeds_fiscal_document/docs/AllocationsSummary.md)
|
|
163
165
|
- [ApiError](cloudbeds_fiscal_document/docs/ApiError.md)
|
|
164
166
|
- [ConfigsResponse](cloudbeds_fiscal_document/docs/ConfigsResponse.md)
|
|
@@ -179,6 +181,7 @@ Class | Method | HTTP request | Description
|
|
|
179
181
|
- [FiscalDocumentRecipient](cloudbeds_fiscal_document/docs/FiscalDocumentRecipient.md)
|
|
180
182
|
- [FiscalDocumentStatus](cloudbeds_fiscal_document/docs/FiscalDocumentStatus.md)
|
|
181
183
|
- [FiscalDocumentSummaryResponse](cloudbeds_fiscal_document/docs/FiscalDocumentSummaryResponse.md)
|
|
184
|
+
- [FiscalDocumentTransactionAllocation](cloudbeds_fiscal_document/docs/FiscalDocumentTransactionAllocation.md)
|
|
182
185
|
- [FiscalDocumentTransactionResponse](cloudbeds_fiscal_document/docs/FiscalDocumentTransactionResponse.md)
|
|
183
186
|
- [FiscalDocumentTransactionsForAllocationPaginated](cloudbeds_fiscal_document/docs/FiscalDocumentTransactionsForAllocationPaginated.md)
|
|
184
187
|
- [FiscalDocumentTransactionsPaginated](cloudbeds_fiscal_document/docs/FiscalDocumentTransactionsPaginated.md)
|
|
@@ -204,6 +207,7 @@ Class | Method | HTTP request | Description
|
|
|
204
207
|
- [RecipientTaxInfo](cloudbeds_fiscal_document/docs/RecipientTaxInfo.md)
|
|
205
208
|
- [RecipientType](cloudbeds_fiscal_document/docs/RecipientType.md)
|
|
206
209
|
- [RectifyInvoiceNoteRequest](cloudbeds_fiscal_document/docs/RectifyInvoiceNoteRequest.md)
|
|
210
|
+
- [SingleAllocation](cloudbeds_fiscal_document/docs/SingleAllocation.md)
|
|
207
211
|
- [SourceKind](cloudbeds_fiscal_document/docs/SourceKind.md)
|
|
208
212
|
- [TransactionForAllocationResponse](cloudbeds_fiscal_document/docs/TransactionForAllocationResponse.md)
|
|
209
213
|
|
{cloudbeds_fiscal_document-1.9.1.dist-info → cloudbeds_fiscal_document-1.9.2.dist-info}/RECORD
RENAMED
|
@@ -1,27 +1,28 @@
|
|
|
1
|
-
cloudbeds_fiscal_document/__init__.py,sha256=
|
|
2
|
-
cloudbeds_fiscal_document/api_client.py,sha256=
|
|
1
|
+
cloudbeds_fiscal_document/__init__.py,sha256=0VGgPzsbHX6IrNEopygbYK8N1aBoYU_IOwMbGMd3O28,6156
|
|
2
|
+
cloudbeds_fiscal_document/api_client.py,sha256=HnppFsd0kdkR5Pm-bPgP69tRxeNu179rJkZpFYeEGkU,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=o0sMfTj18UjLK4q-rj1Fy6Iexh_KrF4I9WuGAfqwDwE,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=3wQG1NUgAS7HqGCtYrT8jHzUxe5m2nG_zeYyzAGb_pQ,329799
|
|
12
|
+
cloudbeds_fiscal_document/models/__init__.py,sha256=wS8mjK-MhNM577jpyD_bbf71YllW_fOymszO9QNTZBU,5299
|
|
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
|
+
cloudbeds_fiscal_document/models/allocations_data.py,sha256=SrXu1LA3xeCpEhz83mw1dmxd7b6EZ7Oplw-tFZTk1yA,3623
|
|
15
16
|
cloudbeds_fiscal_document/models/allocations_summary.py,sha256=O5y-LaC117ixAdOy99FcuEvXgTZA2YPegY97RKxoN0w,2826
|
|
16
17
|
cloudbeds_fiscal_document/models/api_error.py,sha256=pU4rS-VJvFb-iyYEiCT1UxyjY5_VWINExfRpSrJX8aQ,2911
|
|
17
18
|
cloudbeds_fiscal_document/models/configs_response.py,sha256=xccbmQ2IPvehTkHNbaiRwYFb0RagpFbnnFuAaaHtSz8,5414
|
|
18
|
-
cloudbeds_fiscal_document/models/configs_update_request.py,sha256=
|
|
19
|
+
cloudbeds_fiscal_document/models/configs_update_request.py,sha256=XhOFw8XfL9z1gIfJF6MjPj1O4aqkZN-XO2107GauB1M,9336
|
|
19
20
|
cloudbeds_fiscal_document/models/create_credit_note_request.py,sha256=MUi-gNI7w-elxviSz9uFVUJxb1xuLQlfl-99MUfBeIE,4895
|
|
20
21
|
cloudbeds_fiscal_document/models/create_invoice_request.py,sha256=V_rbE38AeNaFN01V8i-lSQdUin8S_eaWIXvCv2D-uvo,5107
|
|
21
22
|
cloudbeds_fiscal_document/models/create_receipt_request.py,sha256=LCP-YGA6JSgQDmd07edVH-SrNEojhpuZWbwHK2Prr_E,6014
|
|
22
23
|
cloudbeds_fiscal_document/models/create_simple_receipt_request.py,sha256=FpsSZ_EExF8vs0euBmf9EjGKpCDEg5hKSjaX0uz-sdM,3967
|
|
23
24
|
cloudbeds_fiscal_document/models/creation_method.py,sha256=vZD9e9cnodeE8MXhudSC_GxRUSnLVle4QjoYw_aHPyE,776
|
|
24
|
-
cloudbeds_fiscal_document/models/document_action.py,sha256=
|
|
25
|
+
cloudbeds_fiscal_document/models/document_action.py,sha256=gRXoEjsAd6HVWaFhJUDqwJRlu7LDyeFVlT9IrKJHeq0,959
|
|
25
26
|
cloudbeds_fiscal_document/models/document_trigger_event.py,sha256=PzPMkjIRaERZpq13rh3Ua0PUaitcS8RGxgalMqm4MLk,904
|
|
26
27
|
cloudbeds_fiscal_document/models/fiscal_document_detailed_response.py,sha256=3SkHurYIxzOg_T5YFxwqtHcT6FebZ3dEPZteKghNFFQ,9573
|
|
27
28
|
cloudbeds_fiscal_document/models/fiscal_document_email_request.py,sha256=ytVW_0v_7II2SbX7ZypkcLc6M6xUtArpDutwnRUspkM,2645
|
|
@@ -32,7 +33,8 @@ cloudbeds_fiscal_document/models/fiscal_document_patch_request.py,sha256=HVM8jUU
|
|
|
32
33
|
cloudbeds_fiscal_document/models/fiscal_document_recipient.py,sha256=beNutHuZnKJtQtSJf0YDgSjbTbZ2418MoMBl-PErp2A,5555
|
|
33
34
|
cloudbeds_fiscal_document/models/fiscal_document_status.py,sha256=tIRy-16mlMSGRR1_nIedU_xtu_bkaseXjUJF8ywNhqA,1373
|
|
34
35
|
cloudbeds_fiscal_document/models/fiscal_document_summary_response.py,sha256=hI-UMNN_tSAMAhqXHzDjkMb1xAF-dy3a3jtSOFM7NIs,3683
|
|
35
|
-
cloudbeds_fiscal_document/models/
|
|
36
|
+
cloudbeds_fiscal_document/models/fiscal_document_transaction_allocation.py,sha256=PJgrP5Pp0LL9hfvKbbSXFeTMQwkA3lk4PVewy3HC1es,2682
|
|
37
|
+
cloudbeds_fiscal_document/models/fiscal_document_transaction_response.py,sha256=yaREMOQZcPIPFdFCficWbPGNKabZwvnjbuqUBqCvCNM,5372
|
|
36
38
|
cloudbeds_fiscal_document/models/fiscal_document_transactions_for_allocation_paginated.py,sha256=E_UWdxrwpHorIx1eINyE4v1RcYhNI8ABs_3u9eqBXbI,3525
|
|
37
39
|
cloudbeds_fiscal_document/models/fiscal_document_transactions_paginated.py,sha256=tyumvukW0nI7tgKBYxXu_1wP4NMFTwd-AuRZkIGRgq0,3477
|
|
38
40
|
cloudbeds_fiscal_document/models/fiscal_document_transactions_summary.py,sha256=kzncs_ojUBQ_cEQKM0ul7As7-giYUHC5ET4tiJsBOJM,3674
|
|
@@ -57,11 +59,13 @@ cloudbeds_fiscal_document/models/recipient_request.py,sha256=CCQgRCwgHHW8hiHtfYy
|
|
|
57
59
|
cloudbeds_fiscal_document/models/recipient_tax_info.py,sha256=iqc90nHy2mH-YN9XxzlOUq0h2Ra1VR6OAF-vp6w_CN4,2670
|
|
58
60
|
cloudbeds_fiscal_document/models/recipient_type.py,sha256=L-LIQwW_vD3zTJZV-DrKATcJ_gbJrZz4kH4mb3M--xM,771
|
|
59
61
|
cloudbeds_fiscal_document/models/rectify_invoice_note_request.py,sha256=VeUr0togZ1o_LjqB5YQnyESJQpTQ7trQjgu2Cm5Ol74,5674
|
|
62
|
+
cloudbeds_fiscal_document/models/single_allocation.py,sha256=0PocG0xMX5l02PmoCd1yqT1va3rKLOQJGMhmPwKDf8o,2734
|
|
60
63
|
cloudbeds_fiscal_document/models/source_kind.py,sha256=nizJ67cMNlS0pXxQtmhHkWalHBwR3U9goU9ebsnSgJA,897
|
|
61
64
|
cloudbeds_fiscal_document/models/transaction_for_allocation_response.py,sha256=22HwK8WhTCFSeIyaJwTQ6XL9JjCPhBiHRMYWq3SvU0c,4498
|
|
62
65
|
cloudbeds_fiscal_document/test/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
63
66
|
cloudbeds_fiscal_document/test/test_action.py,sha256=LHNxQwu-6zA7PfrF7_cskWfXeZRws3N58wKh1LJ6Rzk,1318
|
|
64
67
|
cloudbeds_fiscal_document/test/test_allocate_receipt_payment_request.py,sha256=UmHw55BA4Nn2J6DXBcgg8l8fFwtM7BiyPt7GY1kK1fE,2144
|
|
68
|
+
cloudbeds_fiscal_document/test/test_allocations_data.py,sha256=vHfdXunoHkM12Td1ah7WxtQcEqAgQ9UkjBlBu9iRJog,1826
|
|
65
69
|
cloudbeds_fiscal_document/test/test_allocations_summary.py,sha256=GI0bFzdbXdR7h1A_J00fHG7qDON2w0KsS3c9VX8g39I,1509
|
|
66
70
|
cloudbeds_fiscal_document/test/test_api_error.py,sha256=9sOehEiYyuaR2KZ-WAyvV5a6nIsAhrE5-qWyUCInDQs,1510
|
|
67
71
|
cloudbeds_fiscal_document/test/test_configs_api.py,sha256=K4mVkJm49YhLlbNDentvWXt-9m_p-zQNEX4zi-POymE,957
|
|
@@ -84,6 +88,7 @@ cloudbeds_fiscal_document/test/test_fiscal_document_patch_request.py,sha256=zrHl
|
|
|
84
88
|
cloudbeds_fiscal_document/test/test_fiscal_document_recipient.py,sha256=FMaKUWRJobSBfHQq1XW7gR0V6tXIwi3U4NLmmGQclb8,2161
|
|
85
89
|
cloudbeds_fiscal_document/test/test_fiscal_document_status.py,sha256=58sLMnQ2aPXAH7VecAIWqEs6m0RJd7WbSICEprOR0wA,782
|
|
86
90
|
cloudbeds_fiscal_document/test/test_fiscal_document_summary_response.py,sha256=H0-bppX1h8slLpMbmIh5jGDqNp-iGIs7yG947ZuLL28,2263
|
|
91
|
+
cloudbeds_fiscal_document/test/test_fiscal_document_transaction_allocation.py,sha256=2afwMmb78D61T7xpba7RsH2hx47ntud1eBrSIxbi6nc,1673
|
|
87
92
|
cloudbeds_fiscal_document/test/test_fiscal_document_transaction_response.py,sha256=Be2UUaQfFkKL73z1kSU1lIWVTS8K_05pR2TZ_1XJMTM,2029
|
|
88
93
|
cloudbeds_fiscal_document/test/test_fiscal_document_transactions_for_allocation_paginated.py,sha256=zFHayt46uAPAL07Yv9dnlLluGjnzHa5PSHM54v83XFA,3170
|
|
89
94
|
cloudbeds_fiscal_document/test/test_fiscal_document_transactions_paginated.py,sha256=8SH1YS8lz2uSy7MYTvy0s923cKa-brw9D9N438OPe5c,2363
|
|
@@ -110,10 +115,11 @@ cloudbeds_fiscal_document/test/test_recipient_request.py,sha256=r633H7TUyZlfm4Vl
|
|
|
110
115
|
cloudbeds_fiscal_document/test/test_recipient_tax_info.py,sha256=taTaups6r0Z7RwiLHVbavUWF8ylVhTw0p1Nx_npQLi4,1432
|
|
111
116
|
cloudbeds_fiscal_document/test/test_recipient_type.py,sha256=SxhGt0jOU_ZCZanauuYIK4r8RRlXXKx732oJuKWSA4U,732
|
|
112
117
|
cloudbeds_fiscal_document/test/test_rectify_invoice_note_request.py,sha256=otxuP5tiGrS4b7PzAwUujh8XmKDZxIKIpYX4aJ08ztw,1788
|
|
118
|
+
cloudbeds_fiscal_document/test/test_single_allocation.py,sha256=Rt_83Z9sOzX021xEghaDmuLjg2dTiUP9Oe5RcA_Gnjg,1495
|
|
113
119
|
cloudbeds_fiscal_document/test/test_source_kind.py,sha256=Om-4SlTOpzbQNLcHIU6B0OwZ9vmVbRoRRd0KJUKUccY,711
|
|
114
120
|
cloudbeds_fiscal_document/test/test_transaction_for_allocation_response.py,sha256=8YWz4HEPCpe5LmxBb1rd9vVrxOdvaH0AzpAjpj3WazM,2644
|
|
115
|
-
cloudbeds_fiscal_document-1.9.
|
|
116
|
-
cloudbeds_fiscal_document-1.9.
|
|
117
|
-
cloudbeds_fiscal_document-1.9.
|
|
118
|
-
cloudbeds_fiscal_document-1.9.
|
|
119
|
-
cloudbeds_fiscal_document-1.9.
|
|
121
|
+
cloudbeds_fiscal_document-1.9.2.dist-info/licenses/LICENSE,sha256=noTWyG8XyfILgKHVxo6Z6mWjsXnUZ6AsqRY4pNTdBmg,1093
|
|
122
|
+
cloudbeds_fiscal_document-1.9.2.dist-info/METADATA,sha256=pzNQ6JGRto8BxVqOwILWTSU2wN8hyIyPtUAhC-iNQB8,16500
|
|
123
|
+
cloudbeds_fiscal_document-1.9.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
124
|
+
cloudbeds_fiscal_document-1.9.2.dist-info/top_level.txt,sha256=xDhbzDUymHSRPf7_v5yTWqDdIimGk-7zkWu1zHiL7kc,26
|
|
125
|
+
cloudbeds_fiscal_document-1.9.2.dist-info/RECORD,,
|
{cloudbeds_fiscal_document-1.9.1.dist-info → cloudbeds_fiscal_document-1.9.2.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|