cloudbeds-fiscal-document 1.9.2__py3-none-any.whl → 1.11.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 +5 -1
- cloudbeds_fiscal_document/api/configs_api.py +941 -92
- cloudbeds_fiscal_document/api/fiscal_documents_api.py +304 -3
- cloudbeds_fiscal_document/api_client.py +1 -1
- cloudbeds_fiscal_document/configuration.py +1 -1
- cloudbeds_fiscal_document/models/__init__.py +4 -0
- cloudbeds_fiscal_document/models/configs_response.py +13 -2
- cloudbeds_fiscal_document/models/configs_update_request.py +8 -2
- cloudbeds_fiscal_document/models/create_invoice_request.py +5 -3
- cloudbeds_fiscal_document/models/create_receipt_request.py +3 -5
- cloudbeds_fiscal_document/models/document_action.py +1 -0
- cloudbeds_fiscal_document/models/fiscal_document_detailed_response.py +5 -3
- cloudbeds_fiscal_document/models/fiscal_document_kind.py +1 -1
- cloudbeds_fiscal_document/models/get_invoice_preview_request.py +5 -3
- cloudbeds_fiscal_document/models/get_logo_response.py +87 -0
- cloudbeds_fiscal_document/models/government_integration.py +3 -5
- cloudbeds_fiscal_document/models/preview_request.py +102 -0
- cloudbeds_fiscal_document/models/property_configs_response.py +100 -0
- cloudbeds_fiscal_document/models/transaction_for_allocation_response.py +4 -1
- cloudbeds_fiscal_document/models/transaction_status.py +37 -0
- cloudbeds_fiscal_document/test/test_configs_api.py +28 -0
- cloudbeds_fiscal_document/test/test_configs_response.py +9 -1
- cloudbeds_fiscal_document/test/test_configs_update_request.py +12 -4
- cloudbeds_fiscal_document/test/test_create_credit_note_request.py +13 -6
- cloudbeds_fiscal_document/test/test_create_invoice_request.py +22 -8
- cloudbeds_fiscal_document/test/test_fiscal_document_detailed_response.py +32 -5
- cloudbeds_fiscal_document/test/test_fiscal_document_paginated.py +29 -7
- cloudbeds_fiscal_document/test/test_fiscal_document_patch_request.py +3 -1
- cloudbeds_fiscal_document/test/test_fiscal_document_recipient.py +25 -3
- cloudbeds_fiscal_document/test/test_fiscal_document_summary_response.py +2 -1
- cloudbeds_fiscal_document/test/test_fiscal_document_transaction_response.py +7 -1
- cloudbeds_fiscal_document/test/test_fiscal_document_transactions_for_allocation_paginated.py +1 -0
- cloudbeds_fiscal_document/test/test_fiscal_document_transactions_paginated.py +7 -1
- cloudbeds_fiscal_document/test/test_fiscal_documents_api.py +113 -1
- cloudbeds_fiscal_document/test/test_get_invoice_preview_request.py +2 -1
- cloudbeds_fiscal_document/test/test_get_logo_response.py +51 -0
- cloudbeds_fiscal_document/test/test_government_integration.py +2 -1
- cloudbeds_fiscal_document/test/test_preview_request.py +57 -0
- cloudbeds_fiscal_document/test/test_property_configs_response.py +84 -0
- cloudbeds_fiscal_document/test/test_recipient_details.py +4 -2
- cloudbeds_fiscal_document/test/test_recipient_tax_info.py +2 -1
- cloudbeds_fiscal_document/test/test_rectify_invoice_note_request.py +9 -0
- cloudbeds_fiscal_document/test/test_transaction_for_allocation_response.py +3 -1
- cloudbeds_fiscal_document/test/test_transaction_status.py +33 -0
- {cloudbeds_fiscal_document-1.9.2.dist-info → cloudbeds_fiscal_document-1.11.0.dist-info}/METADATA +13 -7
- {cloudbeds_fiscal_document-1.9.2.dist-info → cloudbeds_fiscal_document-1.11.0.dist-info}/RECORD +49 -41
- {cloudbeds_fiscal_document-1.9.2.dist-info → cloudbeds_fiscal_document-1.11.0.dist-info}/WHEEL +0 -0
- {cloudbeds_fiscal_document-1.9.2.dist-info → cloudbeds_fiscal_document-1.11.0.dist-info}/licenses/LICENSE +0 -0
- {cloudbeds_fiscal_document-1.9.2.dist-info → cloudbeds_fiscal_document-1.11.0.dist-info}/top_level.txt +0 -0
|
@@ -17,11 +17,14 @@ from typing import Any, Dict, List, Optional, Tuple, Union
|
|
|
17
17
|
from typing_extensions import Annotated
|
|
18
18
|
|
|
19
19
|
from pydantic import Field, StrictBytes, StrictStr
|
|
20
|
-
from typing import
|
|
20
|
+
from typing import Optional, Tuple, Union
|
|
21
21
|
from typing_extensions import Annotated
|
|
22
22
|
from cloudbeds_fiscal_document.models.configs_response import ConfigsResponse
|
|
23
23
|
from cloudbeds_fiscal_document.models.configs_update_request import ConfigsUpdateRequest
|
|
24
24
|
from cloudbeds_fiscal_document.models.fiscal_document_kind import FiscalDocumentKind
|
|
25
|
+
from cloudbeds_fiscal_document.models.get_logo_response import GetLogoResponse
|
|
26
|
+
from cloudbeds_fiscal_document.models.preview_request import PreviewRequest
|
|
27
|
+
from cloudbeds_fiscal_document.models.property_configs_response import PropertyConfigsResponse
|
|
25
28
|
|
|
26
29
|
from cloudbeds_fiscal_document.api_client import ApiClient, RequestSerialized
|
|
27
30
|
from cloudbeds_fiscal_document.api_response import ApiResponse
|
|
@@ -41,6 +44,273 @@ class ConfigsApi:
|
|
|
41
44
|
self.api_client = api_client
|
|
42
45
|
|
|
43
46
|
|
|
47
|
+
@validate_call
|
|
48
|
+
def delete_logo(
|
|
49
|
+
self,
|
|
50
|
+
x_property_id: Annotated[int, Field(strict=True, ge=1, description="Property id")],
|
|
51
|
+
_request_timeout: Union[
|
|
52
|
+
None,
|
|
53
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
54
|
+
Tuple[
|
|
55
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
56
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
57
|
+
]
|
|
58
|
+
] = None,
|
|
59
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
60
|
+
_content_type: Optional[StrictStr] = None,
|
|
61
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
62
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
63
|
+
) -> None:
|
|
64
|
+
"""Delete logo image for fiscal documents
|
|
65
|
+
|
|
66
|
+
Delete the logo image used in fiscal document templates.
|
|
67
|
+
|
|
68
|
+
:param x_property_id: Property id (required)
|
|
69
|
+
:type x_property_id: int
|
|
70
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
71
|
+
number provided, it will be total request
|
|
72
|
+
timeout. It can also be a pair (tuple) of
|
|
73
|
+
(connection, read) timeouts.
|
|
74
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
75
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
76
|
+
request; this effectively ignores the
|
|
77
|
+
authentication in the spec for a single request.
|
|
78
|
+
:type _request_auth: dict, optional
|
|
79
|
+
:param _content_type: force content-type for the request.
|
|
80
|
+
:type _content_type: str, Optional
|
|
81
|
+
:param _headers: set to override the headers for a single
|
|
82
|
+
request; this effectively ignores the headers
|
|
83
|
+
in the spec for a single request.
|
|
84
|
+
:type _headers: dict, optional
|
|
85
|
+
:param _host_index: set to override the host_index for a single
|
|
86
|
+
request; this effectively ignores the host_index
|
|
87
|
+
in the spec for a single request.
|
|
88
|
+
:type _host_index: int, optional
|
|
89
|
+
:return: Returns the result object.
|
|
90
|
+
""" # noqa: E501
|
|
91
|
+
|
|
92
|
+
_param = self._delete_logo_serialize(
|
|
93
|
+
x_property_id=x_property_id,
|
|
94
|
+
_request_auth=_request_auth,
|
|
95
|
+
_content_type=_content_type,
|
|
96
|
+
_headers=_headers,
|
|
97
|
+
_host_index=_host_index
|
|
98
|
+
)
|
|
99
|
+
|
|
100
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
101
|
+
'200': None,
|
|
102
|
+
'404': "ApiError",
|
|
103
|
+
'403': "ApiError",
|
|
104
|
+
}
|
|
105
|
+
response_data = self.api_client.call_api(
|
|
106
|
+
*_param,
|
|
107
|
+
_request_timeout=_request_timeout
|
|
108
|
+
)
|
|
109
|
+
response_data.read()
|
|
110
|
+
return self.api_client.response_deserialize(
|
|
111
|
+
response_data=response_data,
|
|
112
|
+
response_types_map=_response_types_map,
|
|
113
|
+
).data
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
@validate_call
|
|
117
|
+
def delete_logo_with_http_info(
|
|
118
|
+
self,
|
|
119
|
+
x_property_id: Annotated[int, Field(strict=True, ge=1, description="Property id")],
|
|
120
|
+
_request_timeout: Union[
|
|
121
|
+
None,
|
|
122
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
123
|
+
Tuple[
|
|
124
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
125
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
126
|
+
]
|
|
127
|
+
] = None,
|
|
128
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
129
|
+
_content_type: Optional[StrictStr] = None,
|
|
130
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
131
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
132
|
+
) -> ApiResponse[None]:
|
|
133
|
+
"""Delete logo image for fiscal documents
|
|
134
|
+
|
|
135
|
+
Delete the logo image used in fiscal document templates.
|
|
136
|
+
|
|
137
|
+
:param x_property_id: Property id (required)
|
|
138
|
+
:type x_property_id: int
|
|
139
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
140
|
+
number provided, it will be total request
|
|
141
|
+
timeout. It can also be a pair (tuple) of
|
|
142
|
+
(connection, read) timeouts.
|
|
143
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
144
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
145
|
+
request; this effectively ignores the
|
|
146
|
+
authentication in the spec for a single request.
|
|
147
|
+
:type _request_auth: dict, optional
|
|
148
|
+
:param _content_type: force content-type for the request.
|
|
149
|
+
:type _content_type: str, Optional
|
|
150
|
+
:param _headers: set to override the headers for a single
|
|
151
|
+
request; this effectively ignores the headers
|
|
152
|
+
in the spec for a single request.
|
|
153
|
+
:type _headers: dict, optional
|
|
154
|
+
:param _host_index: set to override the host_index for a single
|
|
155
|
+
request; this effectively ignores the host_index
|
|
156
|
+
in the spec for a single request.
|
|
157
|
+
:type _host_index: int, optional
|
|
158
|
+
:return: Returns the result object.
|
|
159
|
+
""" # noqa: E501
|
|
160
|
+
|
|
161
|
+
_param = self._delete_logo_serialize(
|
|
162
|
+
x_property_id=x_property_id,
|
|
163
|
+
_request_auth=_request_auth,
|
|
164
|
+
_content_type=_content_type,
|
|
165
|
+
_headers=_headers,
|
|
166
|
+
_host_index=_host_index
|
|
167
|
+
)
|
|
168
|
+
|
|
169
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
170
|
+
'200': None,
|
|
171
|
+
'404': "ApiError",
|
|
172
|
+
'403': "ApiError",
|
|
173
|
+
}
|
|
174
|
+
response_data = self.api_client.call_api(
|
|
175
|
+
*_param,
|
|
176
|
+
_request_timeout=_request_timeout
|
|
177
|
+
)
|
|
178
|
+
response_data.read()
|
|
179
|
+
return self.api_client.response_deserialize(
|
|
180
|
+
response_data=response_data,
|
|
181
|
+
response_types_map=_response_types_map,
|
|
182
|
+
)
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
@validate_call
|
|
186
|
+
def delete_logo_without_preload_content(
|
|
187
|
+
self,
|
|
188
|
+
x_property_id: Annotated[int, Field(strict=True, ge=1, description="Property id")],
|
|
189
|
+
_request_timeout: Union[
|
|
190
|
+
None,
|
|
191
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
192
|
+
Tuple[
|
|
193
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
194
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
195
|
+
]
|
|
196
|
+
] = None,
|
|
197
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
198
|
+
_content_type: Optional[StrictStr] = None,
|
|
199
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
200
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
201
|
+
) -> RESTResponseType:
|
|
202
|
+
"""Delete logo image for fiscal documents
|
|
203
|
+
|
|
204
|
+
Delete the logo image used in fiscal document templates.
|
|
205
|
+
|
|
206
|
+
:param x_property_id: Property id (required)
|
|
207
|
+
:type x_property_id: int
|
|
208
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
209
|
+
number provided, it will be total request
|
|
210
|
+
timeout. It can also be a pair (tuple) of
|
|
211
|
+
(connection, read) timeouts.
|
|
212
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
213
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
214
|
+
request; this effectively ignores the
|
|
215
|
+
authentication in the spec for a single request.
|
|
216
|
+
:type _request_auth: dict, optional
|
|
217
|
+
:param _content_type: force content-type for the request.
|
|
218
|
+
:type _content_type: str, Optional
|
|
219
|
+
:param _headers: set to override the headers for a single
|
|
220
|
+
request; this effectively ignores the headers
|
|
221
|
+
in the spec for a single request.
|
|
222
|
+
:type _headers: dict, optional
|
|
223
|
+
:param _host_index: set to override the host_index for a single
|
|
224
|
+
request; this effectively ignores the host_index
|
|
225
|
+
in the spec for a single request.
|
|
226
|
+
:type _host_index: int, optional
|
|
227
|
+
:return: Returns the result object.
|
|
228
|
+
""" # noqa: E501
|
|
229
|
+
|
|
230
|
+
_param = self._delete_logo_serialize(
|
|
231
|
+
x_property_id=x_property_id,
|
|
232
|
+
_request_auth=_request_auth,
|
|
233
|
+
_content_type=_content_type,
|
|
234
|
+
_headers=_headers,
|
|
235
|
+
_host_index=_host_index
|
|
236
|
+
)
|
|
237
|
+
|
|
238
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
239
|
+
'200': None,
|
|
240
|
+
'404': "ApiError",
|
|
241
|
+
'403': "ApiError",
|
|
242
|
+
}
|
|
243
|
+
response_data = self.api_client.call_api(
|
|
244
|
+
*_param,
|
|
245
|
+
_request_timeout=_request_timeout
|
|
246
|
+
)
|
|
247
|
+
return response_data.response
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
def _delete_logo_serialize(
|
|
251
|
+
self,
|
|
252
|
+
x_property_id,
|
|
253
|
+
_request_auth,
|
|
254
|
+
_content_type,
|
|
255
|
+
_headers,
|
|
256
|
+
_host_index,
|
|
257
|
+
) -> RequestSerialized:
|
|
258
|
+
|
|
259
|
+
_host = None
|
|
260
|
+
|
|
261
|
+
_collection_formats: Dict[str, str] = {
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
_path_params: Dict[str, str] = {}
|
|
265
|
+
_query_params: List[Tuple[str, str]] = []
|
|
266
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
267
|
+
_form_params: List[Tuple[str, str]] = []
|
|
268
|
+
_files: Dict[
|
|
269
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
270
|
+
] = {}
|
|
271
|
+
_body_params: Optional[bytes] = None
|
|
272
|
+
|
|
273
|
+
# process the path parameters
|
|
274
|
+
# process the query parameters
|
|
275
|
+
# process the header parameters
|
|
276
|
+
if x_property_id is not None:
|
|
277
|
+
_header_params['X-Property-ID'] = x_property_id
|
|
278
|
+
# process the form parameters
|
|
279
|
+
# process the body parameter
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
# set the HTTP header `Accept`
|
|
283
|
+
if 'Accept' not in _header_params:
|
|
284
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
285
|
+
[
|
|
286
|
+
'application/json'
|
|
287
|
+
]
|
|
288
|
+
)
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
# authentication setting
|
|
292
|
+
_auth_settings: List[str] = [
|
|
293
|
+
'bearerAuth'
|
|
294
|
+
]
|
|
295
|
+
|
|
296
|
+
return self.api_client.param_serialize(
|
|
297
|
+
method='DELETE',
|
|
298
|
+
resource_path='/fiscal-document/v1/configs/logo',
|
|
299
|
+
path_params=_path_params,
|
|
300
|
+
query_params=_query_params,
|
|
301
|
+
header_params=_header_params,
|
|
302
|
+
body=_body_params,
|
|
303
|
+
post_params=_form_params,
|
|
304
|
+
files=_files,
|
|
305
|
+
auth_settings=_auth_settings,
|
|
306
|
+
collection_formats=_collection_formats,
|
|
307
|
+
_host=_host,
|
|
308
|
+
_request_auth=_request_auth
|
|
309
|
+
)
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
|
|
44
314
|
@validate_call
|
|
45
315
|
def get_configs(
|
|
46
316
|
self,
|
|
@@ -57,13 +327,544 @@ class ConfigsApi:
|
|
|
57
327
|
_content_type: Optional[StrictStr] = None,
|
|
58
328
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
59
329
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
60
|
-
) ->
|
|
61
|
-
"""Get list of fiscal documents configs
|
|
330
|
+
) -> PropertyConfigsResponse:
|
|
331
|
+
"""Get list of fiscal documents configs
|
|
332
|
+
|
|
333
|
+
Retrieves a paginated list of fiscal documents filtered by optional criteria.
|
|
334
|
+
|
|
335
|
+
:param x_property_id: Property id (required)
|
|
336
|
+
:type x_property_id: int
|
|
337
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
338
|
+
number provided, it will be total request
|
|
339
|
+
timeout. It can also be a pair (tuple) of
|
|
340
|
+
(connection, read) timeouts.
|
|
341
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
342
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
343
|
+
request; this effectively ignores the
|
|
344
|
+
authentication in the spec for a single request.
|
|
345
|
+
:type _request_auth: dict, optional
|
|
346
|
+
:param _content_type: force content-type for the request.
|
|
347
|
+
:type _content_type: str, Optional
|
|
348
|
+
:param _headers: set to override the headers for a single
|
|
349
|
+
request; this effectively ignores the headers
|
|
350
|
+
in the spec for a single request.
|
|
351
|
+
:type _headers: dict, optional
|
|
352
|
+
:param _host_index: set to override the host_index for a single
|
|
353
|
+
request; this effectively ignores the host_index
|
|
354
|
+
in the spec for a single request.
|
|
355
|
+
:type _host_index: int, optional
|
|
356
|
+
:return: Returns the result object.
|
|
357
|
+
""" # noqa: E501
|
|
358
|
+
|
|
359
|
+
_param = self._get_configs_serialize(
|
|
360
|
+
x_property_id=x_property_id,
|
|
361
|
+
_request_auth=_request_auth,
|
|
362
|
+
_content_type=_content_type,
|
|
363
|
+
_headers=_headers,
|
|
364
|
+
_host_index=_host_index
|
|
365
|
+
)
|
|
366
|
+
|
|
367
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
368
|
+
'200': "PropertyConfigsResponse",
|
|
369
|
+
}
|
|
370
|
+
response_data = self.api_client.call_api(
|
|
371
|
+
*_param,
|
|
372
|
+
_request_timeout=_request_timeout
|
|
373
|
+
)
|
|
374
|
+
response_data.read()
|
|
375
|
+
return self.api_client.response_deserialize(
|
|
376
|
+
response_data=response_data,
|
|
377
|
+
response_types_map=_response_types_map,
|
|
378
|
+
).data
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
@validate_call
|
|
382
|
+
def get_configs_with_http_info(
|
|
383
|
+
self,
|
|
384
|
+
x_property_id: Annotated[int, Field(strict=True, ge=1, description="Property id")],
|
|
385
|
+
_request_timeout: Union[
|
|
386
|
+
None,
|
|
387
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
388
|
+
Tuple[
|
|
389
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
390
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
391
|
+
]
|
|
392
|
+
] = None,
|
|
393
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
394
|
+
_content_type: Optional[StrictStr] = None,
|
|
395
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
396
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
397
|
+
) -> ApiResponse[PropertyConfigsResponse]:
|
|
398
|
+
"""Get list of fiscal documents configs
|
|
399
|
+
|
|
400
|
+
Retrieves a paginated list of fiscal documents filtered by optional criteria.
|
|
401
|
+
|
|
402
|
+
:param x_property_id: Property id (required)
|
|
403
|
+
:type x_property_id: int
|
|
404
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
405
|
+
number provided, it will be total request
|
|
406
|
+
timeout. It can also be a pair (tuple) of
|
|
407
|
+
(connection, read) timeouts.
|
|
408
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
409
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
410
|
+
request; this effectively ignores the
|
|
411
|
+
authentication in the spec for a single request.
|
|
412
|
+
:type _request_auth: dict, optional
|
|
413
|
+
:param _content_type: force content-type for the request.
|
|
414
|
+
:type _content_type: str, Optional
|
|
415
|
+
:param _headers: set to override the headers for a single
|
|
416
|
+
request; this effectively ignores the headers
|
|
417
|
+
in the spec for a single request.
|
|
418
|
+
:type _headers: dict, optional
|
|
419
|
+
:param _host_index: set to override the host_index for a single
|
|
420
|
+
request; this effectively ignores the host_index
|
|
421
|
+
in the spec for a single request.
|
|
422
|
+
:type _host_index: int, optional
|
|
423
|
+
:return: Returns the result object.
|
|
424
|
+
""" # noqa: E501
|
|
425
|
+
|
|
426
|
+
_param = self._get_configs_serialize(
|
|
427
|
+
x_property_id=x_property_id,
|
|
428
|
+
_request_auth=_request_auth,
|
|
429
|
+
_content_type=_content_type,
|
|
430
|
+
_headers=_headers,
|
|
431
|
+
_host_index=_host_index
|
|
432
|
+
)
|
|
433
|
+
|
|
434
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
435
|
+
'200': "PropertyConfigsResponse",
|
|
436
|
+
}
|
|
437
|
+
response_data = self.api_client.call_api(
|
|
438
|
+
*_param,
|
|
439
|
+
_request_timeout=_request_timeout
|
|
440
|
+
)
|
|
441
|
+
response_data.read()
|
|
442
|
+
return self.api_client.response_deserialize(
|
|
443
|
+
response_data=response_data,
|
|
444
|
+
response_types_map=_response_types_map,
|
|
445
|
+
)
|
|
446
|
+
|
|
447
|
+
|
|
448
|
+
@validate_call
|
|
449
|
+
def get_configs_without_preload_content(
|
|
450
|
+
self,
|
|
451
|
+
x_property_id: Annotated[int, Field(strict=True, ge=1, description="Property id")],
|
|
452
|
+
_request_timeout: Union[
|
|
453
|
+
None,
|
|
454
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
455
|
+
Tuple[
|
|
456
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
457
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
458
|
+
]
|
|
459
|
+
] = None,
|
|
460
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
461
|
+
_content_type: Optional[StrictStr] = None,
|
|
462
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
463
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
464
|
+
) -> RESTResponseType:
|
|
465
|
+
"""Get list of fiscal documents configs
|
|
466
|
+
|
|
467
|
+
Retrieves a paginated list of fiscal documents filtered by optional criteria.
|
|
468
|
+
|
|
469
|
+
:param x_property_id: Property id (required)
|
|
470
|
+
:type x_property_id: int
|
|
471
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
472
|
+
number provided, it will be total request
|
|
473
|
+
timeout. It can also be a pair (tuple) of
|
|
474
|
+
(connection, read) timeouts.
|
|
475
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
476
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
477
|
+
request; this effectively ignores the
|
|
478
|
+
authentication in the spec for a single request.
|
|
479
|
+
:type _request_auth: dict, optional
|
|
480
|
+
:param _content_type: force content-type for the request.
|
|
481
|
+
:type _content_type: str, Optional
|
|
482
|
+
:param _headers: set to override the headers for a single
|
|
483
|
+
request; this effectively ignores the headers
|
|
484
|
+
in the spec for a single request.
|
|
485
|
+
:type _headers: dict, optional
|
|
486
|
+
:param _host_index: set to override the host_index for a single
|
|
487
|
+
request; this effectively ignores the host_index
|
|
488
|
+
in the spec for a single request.
|
|
489
|
+
:type _host_index: int, optional
|
|
490
|
+
:return: Returns the result object.
|
|
491
|
+
""" # noqa: E501
|
|
492
|
+
|
|
493
|
+
_param = self._get_configs_serialize(
|
|
494
|
+
x_property_id=x_property_id,
|
|
495
|
+
_request_auth=_request_auth,
|
|
496
|
+
_content_type=_content_type,
|
|
497
|
+
_headers=_headers,
|
|
498
|
+
_host_index=_host_index
|
|
499
|
+
)
|
|
500
|
+
|
|
501
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
502
|
+
'200': "PropertyConfigsResponse",
|
|
503
|
+
}
|
|
504
|
+
response_data = self.api_client.call_api(
|
|
505
|
+
*_param,
|
|
506
|
+
_request_timeout=_request_timeout
|
|
507
|
+
)
|
|
508
|
+
return response_data.response
|
|
509
|
+
|
|
510
|
+
|
|
511
|
+
def _get_configs_serialize(
|
|
512
|
+
self,
|
|
513
|
+
x_property_id,
|
|
514
|
+
_request_auth,
|
|
515
|
+
_content_type,
|
|
516
|
+
_headers,
|
|
517
|
+
_host_index,
|
|
518
|
+
) -> RequestSerialized:
|
|
519
|
+
|
|
520
|
+
_host = None
|
|
521
|
+
|
|
522
|
+
_collection_formats: Dict[str, str] = {
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
_path_params: Dict[str, str] = {}
|
|
526
|
+
_query_params: List[Tuple[str, str]] = []
|
|
527
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
528
|
+
_form_params: List[Tuple[str, str]] = []
|
|
529
|
+
_files: Dict[
|
|
530
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
531
|
+
] = {}
|
|
532
|
+
_body_params: Optional[bytes] = None
|
|
533
|
+
|
|
534
|
+
# process the path parameters
|
|
535
|
+
# process the query parameters
|
|
536
|
+
# process the header parameters
|
|
537
|
+
if x_property_id is not None:
|
|
538
|
+
_header_params['X-Property-ID'] = x_property_id
|
|
539
|
+
# process the form parameters
|
|
540
|
+
# process the body parameter
|
|
541
|
+
|
|
542
|
+
|
|
543
|
+
# set the HTTP header `Accept`
|
|
544
|
+
if 'Accept' not in _header_params:
|
|
545
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
546
|
+
[
|
|
547
|
+
'application/json'
|
|
548
|
+
]
|
|
549
|
+
)
|
|
550
|
+
|
|
551
|
+
|
|
552
|
+
# authentication setting
|
|
553
|
+
_auth_settings: List[str] = [
|
|
554
|
+
'bearerAuth'
|
|
555
|
+
]
|
|
556
|
+
|
|
557
|
+
return self.api_client.param_serialize(
|
|
558
|
+
method='GET',
|
|
559
|
+
resource_path='/fiscal-document/v1/configs',
|
|
560
|
+
path_params=_path_params,
|
|
561
|
+
query_params=_query_params,
|
|
562
|
+
header_params=_header_params,
|
|
563
|
+
body=_body_params,
|
|
564
|
+
post_params=_form_params,
|
|
565
|
+
files=_files,
|
|
566
|
+
auth_settings=_auth_settings,
|
|
567
|
+
collection_formats=_collection_formats,
|
|
568
|
+
_host=_host,
|
|
569
|
+
_request_auth=_request_auth
|
|
570
|
+
)
|
|
571
|
+
|
|
572
|
+
|
|
573
|
+
|
|
574
|
+
|
|
575
|
+
@validate_call
|
|
576
|
+
def get_logo(
|
|
577
|
+
self,
|
|
578
|
+
x_property_id: Annotated[int, Field(strict=True, ge=1, description="Property id")],
|
|
579
|
+
_request_timeout: Union[
|
|
580
|
+
None,
|
|
581
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
582
|
+
Tuple[
|
|
583
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
584
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
585
|
+
]
|
|
586
|
+
] = None,
|
|
587
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
588
|
+
_content_type: Optional[StrictStr] = None,
|
|
589
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
590
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
591
|
+
) -> GetLogoResponse:
|
|
592
|
+
"""Get logo image for fiscal documents
|
|
593
|
+
|
|
594
|
+
Retrieve the logo image used in fiscal document templates as a presigned URL.
|
|
595
|
+
|
|
596
|
+
:param x_property_id: Property id (required)
|
|
597
|
+
:type x_property_id: int
|
|
598
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
599
|
+
number provided, it will be total request
|
|
600
|
+
timeout. It can also be a pair (tuple) of
|
|
601
|
+
(connection, read) timeouts.
|
|
602
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
603
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
604
|
+
request; this effectively ignores the
|
|
605
|
+
authentication in the spec for a single request.
|
|
606
|
+
:type _request_auth: dict, optional
|
|
607
|
+
:param _content_type: force content-type for the request.
|
|
608
|
+
:type _content_type: str, Optional
|
|
609
|
+
:param _headers: set to override the headers for a single
|
|
610
|
+
request; this effectively ignores the headers
|
|
611
|
+
in the spec for a single request.
|
|
612
|
+
:type _headers: dict, optional
|
|
613
|
+
:param _host_index: set to override the host_index for a single
|
|
614
|
+
request; this effectively ignores the host_index
|
|
615
|
+
in the spec for a single request.
|
|
616
|
+
:type _host_index: int, optional
|
|
617
|
+
:return: Returns the result object.
|
|
618
|
+
""" # noqa: E501
|
|
619
|
+
|
|
620
|
+
_param = self._get_logo_serialize(
|
|
621
|
+
x_property_id=x_property_id,
|
|
622
|
+
_request_auth=_request_auth,
|
|
623
|
+
_content_type=_content_type,
|
|
624
|
+
_headers=_headers,
|
|
625
|
+
_host_index=_host_index
|
|
626
|
+
)
|
|
627
|
+
|
|
628
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
629
|
+
'200': "GetLogoResponse",
|
|
630
|
+
'404': "ApiError",
|
|
631
|
+
'403': "ApiError",
|
|
632
|
+
}
|
|
633
|
+
response_data = self.api_client.call_api(
|
|
634
|
+
*_param,
|
|
635
|
+
_request_timeout=_request_timeout
|
|
636
|
+
)
|
|
637
|
+
response_data.read()
|
|
638
|
+
return self.api_client.response_deserialize(
|
|
639
|
+
response_data=response_data,
|
|
640
|
+
response_types_map=_response_types_map,
|
|
641
|
+
).data
|
|
642
|
+
|
|
643
|
+
|
|
644
|
+
@validate_call
|
|
645
|
+
def get_logo_with_http_info(
|
|
646
|
+
self,
|
|
647
|
+
x_property_id: Annotated[int, Field(strict=True, ge=1, description="Property id")],
|
|
648
|
+
_request_timeout: Union[
|
|
649
|
+
None,
|
|
650
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
651
|
+
Tuple[
|
|
652
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
653
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
654
|
+
]
|
|
655
|
+
] = None,
|
|
656
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
657
|
+
_content_type: Optional[StrictStr] = None,
|
|
658
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
659
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
660
|
+
) -> ApiResponse[GetLogoResponse]:
|
|
661
|
+
"""Get logo image for fiscal documents
|
|
662
|
+
|
|
663
|
+
Retrieve the logo image used in fiscal document templates as a presigned URL.
|
|
664
|
+
|
|
665
|
+
:param x_property_id: Property id (required)
|
|
666
|
+
:type x_property_id: int
|
|
667
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
668
|
+
number provided, it will be total request
|
|
669
|
+
timeout. It can also be a pair (tuple) of
|
|
670
|
+
(connection, read) timeouts.
|
|
671
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
672
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
673
|
+
request; this effectively ignores the
|
|
674
|
+
authentication in the spec for a single request.
|
|
675
|
+
:type _request_auth: dict, optional
|
|
676
|
+
:param _content_type: force content-type for the request.
|
|
677
|
+
:type _content_type: str, Optional
|
|
678
|
+
:param _headers: set to override the headers for a single
|
|
679
|
+
request; this effectively ignores the headers
|
|
680
|
+
in the spec for a single request.
|
|
681
|
+
:type _headers: dict, optional
|
|
682
|
+
:param _host_index: set to override the host_index for a single
|
|
683
|
+
request; this effectively ignores the host_index
|
|
684
|
+
in the spec for a single request.
|
|
685
|
+
:type _host_index: int, optional
|
|
686
|
+
:return: Returns the result object.
|
|
687
|
+
""" # noqa: E501
|
|
688
|
+
|
|
689
|
+
_param = self._get_logo_serialize(
|
|
690
|
+
x_property_id=x_property_id,
|
|
691
|
+
_request_auth=_request_auth,
|
|
692
|
+
_content_type=_content_type,
|
|
693
|
+
_headers=_headers,
|
|
694
|
+
_host_index=_host_index
|
|
695
|
+
)
|
|
696
|
+
|
|
697
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
698
|
+
'200': "GetLogoResponse",
|
|
699
|
+
'404': "ApiError",
|
|
700
|
+
'403': "ApiError",
|
|
701
|
+
}
|
|
702
|
+
response_data = self.api_client.call_api(
|
|
703
|
+
*_param,
|
|
704
|
+
_request_timeout=_request_timeout
|
|
705
|
+
)
|
|
706
|
+
response_data.read()
|
|
707
|
+
return self.api_client.response_deserialize(
|
|
708
|
+
response_data=response_data,
|
|
709
|
+
response_types_map=_response_types_map,
|
|
710
|
+
)
|
|
711
|
+
|
|
712
|
+
|
|
713
|
+
@validate_call
|
|
714
|
+
def get_logo_without_preload_content(
|
|
715
|
+
self,
|
|
716
|
+
x_property_id: Annotated[int, Field(strict=True, ge=1, description="Property id")],
|
|
717
|
+
_request_timeout: Union[
|
|
718
|
+
None,
|
|
719
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
720
|
+
Tuple[
|
|
721
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
722
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
723
|
+
]
|
|
724
|
+
] = None,
|
|
725
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
726
|
+
_content_type: Optional[StrictStr] = None,
|
|
727
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
728
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
729
|
+
) -> RESTResponseType:
|
|
730
|
+
"""Get logo image for fiscal documents
|
|
731
|
+
|
|
732
|
+
Retrieve the logo image used in fiscal document templates as a presigned URL.
|
|
733
|
+
|
|
734
|
+
:param x_property_id: Property id (required)
|
|
735
|
+
:type x_property_id: int
|
|
736
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
737
|
+
number provided, it will be total request
|
|
738
|
+
timeout. It can also be a pair (tuple) of
|
|
739
|
+
(connection, read) timeouts.
|
|
740
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
741
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
742
|
+
request; this effectively ignores the
|
|
743
|
+
authentication in the spec for a single request.
|
|
744
|
+
:type _request_auth: dict, optional
|
|
745
|
+
:param _content_type: force content-type for the request.
|
|
746
|
+
:type _content_type: str, Optional
|
|
747
|
+
:param _headers: set to override the headers for a single
|
|
748
|
+
request; this effectively ignores the headers
|
|
749
|
+
in the spec for a single request.
|
|
750
|
+
:type _headers: dict, optional
|
|
751
|
+
:param _host_index: set to override the host_index for a single
|
|
752
|
+
request; this effectively ignores the host_index
|
|
753
|
+
in the spec for a single request.
|
|
754
|
+
:type _host_index: int, optional
|
|
755
|
+
:return: Returns the result object.
|
|
756
|
+
""" # noqa: E501
|
|
757
|
+
|
|
758
|
+
_param = self._get_logo_serialize(
|
|
759
|
+
x_property_id=x_property_id,
|
|
760
|
+
_request_auth=_request_auth,
|
|
761
|
+
_content_type=_content_type,
|
|
762
|
+
_headers=_headers,
|
|
763
|
+
_host_index=_host_index
|
|
764
|
+
)
|
|
765
|
+
|
|
766
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
767
|
+
'200': "GetLogoResponse",
|
|
768
|
+
'404': "ApiError",
|
|
769
|
+
'403': "ApiError",
|
|
770
|
+
}
|
|
771
|
+
response_data = self.api_client.call_api(
|
|
772
|
+
*_param,
|
|
773
|
+
_request_timeout=_request_timeout
|
|
774
|
+
)
|
|
775
|
+
return response_data.response
|
|
776
|
+
|
|
777
|
+
|
|
778
|
+
def _get_logo_serialize(
|
|
779
|
+
self,
|
|
780
|
+
x_property_id,
|
|
781
|
+
_request_auth,
|
|
782
|
+
_content_type,
|
|
783
|
+
_headers,
|
|
784
|
+
_host_index,
|
|
785
|
+
) -> RequestSerialized:
|
|
786
|
+
|
|
787
|
+
_host = None
|
|
788
|
+
|
|
789
|
+
_collection_formats: Dict[str, str] = {
|
|
790
|
+
}
|
|
791
|
+
|
|
792
|
+
_path_params: Dict[str, str] = {}
|
|
793
|
+
_query_params: List[Tuple[str, str]] = []
|
|
794
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
795
|
+
_form_params: List[Tuple[str, str]] = []
|
|
796
|
+
_files: Dict[
|
|
797
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
798
|
+
] = {}
|
|
799
|
+
_body_params: Optional[bytes] = None
|
|
800
|
+
|
|
801
|
+
# process the path parameters
|
|
802
|
+
# process the query parameters
|
|
803
|
+
# process the header parameters
|
|
804
|
+
if x_property_id is not None:
|
|
805
|
+
_header_params['X-Property-ID'] = x_property_id
|
|
806
|
+
# process the form parameters
|
|
807
|
+
# process the body parameter
|
|
808
|
+
|
|
809
|
+
|
|
810
|
+
# set the HTTP header `Accept`
|
|
811
|
+
if 'Accept' not in _header_params:
|
|
812
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
813
|
+
[
|
|
814
|
+
'application/json'
|
|
815
|
+
]
|
|
816
|
+
)
|
|
817
|
+
|
|
818
|
+
|
|
819
|
+
# authentication setting
|
|
820
|
+
_auth_settings: List[str] = [
|
|
821
|
+
'bearerAuth'
|
|
822
|
+
]
|
|
823
|
+
|
|
824
|
+
return self.api_client.param_serialize(
|
|
825
|
+
method='GET',
|
|
826
|
+
resource_path='/fiscal-document/v1/configs/logo',
|
|
827
|
+
path_params=_path_params,
|
|
828
|
+
query_params=_query_params,
|
|
829
|
+
header_params=_header_params,
|
|
830
|
+
body=_body_params,
|
|
831
|
+
post_params=_form_params,
|
|
832
|
+
files=_files,
|
|
833
|
+
auth_settings=_auth_settings,
|
|
834
|
+
collection_formats=_collection_formats,
|
|
835
|
+
_host=_host,
|
|
836
|
+
_request_auth=_request_auth
|
|
837
|
+
)
|
|
838
|
+
|
|
839
|
+
|
|
840
|
+
|
|
841
|
+
|
|
842
|
+
@validate_call
|
|
843
|
+
def get_pdf_preview(
|
|
844
|
+
self,
|
|
845
|
+
x_property_id: Annotated[int, Field(strict=True, ge=1, description="Property id")],
|
|
846
|
+
preview_request: Optional[PreviewRequest] = None,
|
|
847
|
+
_request_timeout: Union[
|
|
848
|
+
None,
|
|
849
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
850
|
+
Tuple[
|
|
851
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
852
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
853
|
+
]
|
|
854
|
+
] = None,
|
|
855
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
856
|
+
_content_type: Optional[StrictStr] = None,
|
|
857
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
858
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
859
|
+
) -> bytearray:
|
|
860
|
+
"""Get PDF document preview
|
|
62
861
|
|
|
63
|
-
|
|
862
|
+
Build and return PDF document
|
|
64
863
|
|
|
65
864
|
:param x_property_id: Property id (required)
|
|
66
865
|
:type x_property_id: int
|
|
866
|
+
:param preview_request:
|
|
867
|
+
:type preview_request: PreviewRequest
|
|
67
868
|
:param _request_timeout: timeout setting for this request. If one
|
|
68
869
|
number provided, it will be total request
|
|
69
870
|
timeout. It can also be a pair (tuple) of
|
|
@@ -86,8 +887,9 @@ class ConfigsApi:
|
|
|
86
887
|
:return: Returns the result object.
|
|
87
888
|
""" # noqa: E501
|
|
88
889
|
|
|
89
|
-
_param = self.
|
|
890
|
+
_param = self._get_pdf_preview_serialize(
|
|
90
891
|
x_property_id=x_property_id,
|
|
892
|
+
preview_request=preview_request,
|
|
91
893
|
_request_auth=_request_auth,
|
|
92
894
|
_content_type=_content_type,
|
|
93
895
|
_headers=_headers,
|
|
@@ -95,7 +897,7 @@ class ConfigsApi:
|
|
|
95
897
|
)
|
|
96
898
|
|
|
97
899
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
98
|
-
'200': "
|
|
900
|
+
'200': "bytearray",
|
|
99
901
|
}
|
|
100
902
|
response_data = self.api_client.call_api(
|
|
101
903
|
*_param,
|
|
@@ -109,9 +911,10 @@ class ConfigsApi:
|
|
|
109
911
|
|
|
110
912
|
|
|
111
913
|
@validate_call
|
|
112
|
-
def
|
|
914
|
+
def get_pdf_preview_with_http_info(
|
|
113
915
|
self,
|
|
114
916
|
x_property_id: Annotated[int, Field(strict=True, ge=1, description="Property id")],
|
|
917
|
+
preview_request: Optional[PreviewRequest] = None,
|
|
115
918
|
_request_timeout: Union[
|
|
116
919
|
None,
|
|
117
920
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -124,13 +927,15 @@ class ConfigsApi:
|
|
|
124
927
|
_content_type: Optional[StrictStr] = None,
|
|
125
928
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
126
929
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
127
|
-
) -> ApiResponse[
|
|
128
|
-
"""Get
|
|
930
|
+
) -> ApiResponse[bytearray]:
|
|
931
|
+
"""Get PDF document preview
|
|
129
932
|
|
|
130
|
-
|
|
933
|
+
Build and return PDF document
|
|
131
934
|
|
|
132
935
|
:param x_property_id: Property id (required)
|
|
133
936
|
:type x_property_id: int
|
|
937
|
+
:param preview_request:
|
|
938
|
+
:type preview_request: PreviewRequest
|
|
134
939
|
:param _request_timeout: timeout setting for this request. If one
|
|
135
940
|
number provided, it will be total request
|
|
136
941
|
timeout. It can also be a pair (tuple) of
|
|
@@ -153,8 +958,9 @@ class ConfigsApi:
|
|
|
153
958
|
:return: Returns the result object.
|
|
154
959
|
""" # noqa: E501
|
|
155
960
|
|
|
156
|
-
_param = self.
|
|
961
|
+
_param = self._get_pdf_preview_serialize(
|
|
157
962
|
x_property_id=x_property_id,
|
|
963
|
+
preview_request=preview_request,
|
|
158
964
|
_request_auth=_request_auth,
|
|
159
965
|
_content_type=_content_type,
|
|
160
966
|
_headers=_headers,
|
|
@@ -162,7 +968,7 @@ class ConfigsApi:
|
|
|
162
968
|
)
|
|
163
969
|
|
|
164
970
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
165
|
-
'200': "
|
|
971
|
+
'200': "bytearray",
|
|
166
972
|
}
|
|
167
973
|
response_data = self.api_client.call_api(
|
|
168
974
|
*_param,
|
|
@@ -176,9 +982,10 @@ class ConfigsApi:
|
|
|
176
982
|
|
|
177
983
|
|
|
178
984
|
@validate_call
|
|
179
|
-
def
|
|
985
|
+
def get_pdf_preview_without_preload_content(
|
|
180
986
|
self,
|
|
181
987
|
x_property_id: Annotated[int, Field(strict=True, ge=1, description="Property id")],
|
|
988
|
+
preview_request: Optional[PreviewRequest] = None,
|
|
182
989
|
_request_timeout: Union[
|
|
183
990
|
None,
|
|
184
991
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -192,12 +999,14 @@ class ConfigsApi:
|
|
|
192
999
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
193
1000
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
194
1001
|
) -> RESTResponseType:
|
|
195
|
-
"""Get
|
|
1002
|
+
"""Get PDF document preview
|
|
196
1003
|
|
|
197
|
-
|
|
1004
|
+
Build and return PDF document
|
|
198
1005
|
|
|
199
1006
|
:param x_property_id: Property id (required)
|
|
200
1007
|
:type x_property_id: int
|
|
1008
|
+
:param preview_request:
|
|
1009
|
+
:type preview_request: PreviewRequest
|
|
201
1010
|
:param _request_timeout: timeout setting for this request. If one
|
|
202
1011
|
number provided, it will be total request
|
|
203
1012
|
timeout. It can also be a pair (tuple) of
|
|
@@ -220,8 +1029,9 @@ class ConfigsApi:
|
|
|
220
1029
|
:return: Returns the result object.
|
|
221
1030
|
""" # noqa: E501
|
|
222
1031
|
|
|
223
|
-
_param = self.
|
|
1032
|
+
_param = self._get_pdf_preview_serialize(
|
|
224
1033
|
x_property_id=x_property_id,
|
|
1034
|
+
preview_request=preview_request,
|
|
225
1035
|
_request_auth=_request_auth,
|
|
226
1036
|
_content_type=_content_type,
|
|
227
1037
|
_headers=_headers,
|
|
@@ -229,7 +1039,7 @@ class ConfigsApi:
|
|
|
229
1039
|
)
|
|
230
1040
|
|
|
231
1041
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
232
|
-
'200': "
|
|
1042
|
+
'200': "bytearray",
|
|
233
1043
|
}
|
|
234
1044
|
response_data = self.api_client.call_api(
|
|
235
1045
|
*_param,
|
|
@@ -238,9 +1048,10 @@ class ConfigsApi:
|
|
|
238
1048
|
return response_data.response
|
|
239
1049
|
|
|
240
1050
|
|
|
241
|
-
def
|
|
1051
|
+
def _get_pdf_preview_serialize(
|
|
242
1052
|
self,
|
|
243
1053
|
x_property_id,
|
|
1054
|
+
preview_request,
|
|
244
1055
|
_request_auth,
|
|
245
1056
|
_content_type,
|
|
246
1057
|
_headers,
|
|
@@ -263,6 +1074,10 @@ class ConfigsApi:
|
|
|
263
1074
|
|
|
264
1075
|
# process the path parameters
|
|
265
1076
|
# process the query parameters
|
|
1077
|
+
if preview_request is not None:
|
|
1078
|
+
|
|
1079
|
+
_query_params.append(('previewRequest', preview_request))
|
|
1080
|
+
|
|
266
1081
|
# process the header parameters
|
|
267
1082
|
if x_property_id is not None:
|
|
268
1083
|
_header_params['X-Property-ID'] = x_property_id
|
|
@@ -274,7 +1089,7 @@ class ConfigsApi:
|
|
|
274
1089
|
if 'Accept' not in _header_params:
|
|
275
1090
|
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
276
1091
|
[
|
|
277
|
-
'application/
|
|
1092
|
+
'application/octet-stream'
|
|
278
1093
|
]
|
|
279
1094
|
)
|
|
280
1095
|
|
|
@@ -286,7 +1101,7 @@ class ConfigsApi:
|
|
|
286
1101
|
|
|
287
1102
|
return self.api_client.param_serialize(
|
|
288
1103
|
method='GET',
|
|
289
|
-
resource_path='/fiscal-document/v1/configs',
|
|
1104
|
+
resource_path='/fiscal-document/v1/configs/preview',
|
|
290
1105
|
path_params=_path_params,
|
|
291
1106
|
query_params=_query_params,
|
|
292
1107
|
header_params=_header_params,
|
|
@@ -303,9 +1118,11 @@ class ConfigsApi:
|
|
|
303
1118
|
|
|
304
1119
|
|
|
305
1120
|
@validate_call
|
|
306
|
-
def
|
|
1121
|
+
def update_configs(
|
|
307
1122
|
self,
|
|
308
1123
|
x_property_id: Annotated[int, Field(strict=True, ge=1, description="Property id")],
|
|
1124
|
+
document_kind: Annotated[FiscalDocumentKind, Field(description="The kind of the fiscal document.")],
|
|
1125
|
+
configs_update_request: ConfigsUpdateRequest,
|
|
309
1126
|
_request_timeout: Union[
|
|
310
1127
|
None,
|
|
311
1128
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -318,13 +1135,17 @@ class ConfigsApi:
|
|
|
318
1135
|
_content_type: Optional[StrictStr] = None,
|
|
319
1136
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
320
1137
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
321
|
-
) ->
|
|
322
|
-
"""
|
|
1138
|
+
) -> ConfigsResponse:
|
|
1139
|
+
"""Updates a config of a specific kind
|
|
323
1140
|
|
|
324
|
-
|
|
1141
|
+
Update document config.
|
|
325
1142
|
|
|
326
1143
|
:param x_property_id: Property id (required)
|
|
327
1144
|
:type x_property_id: int
|
|
1145
|
+
:param document_kind: The kind of the fiscal document. (required)
|
|
1146
|
+
:type document_kind: FiscalDocumentKind
|
|
1147
|
+
:param configs_update_request: (required)
|
|
1148
|
+
:type configs_update_request: ConfigsUpdateRequest
|
|
328
1149
|
:param _request_timeout: timeout setting for this request. If one
|
|
329
1150
|
number provided, it will be total request
|
|
330
1151
|
timeout. It can also be a pair (tuple) of
|
|
@@ -347,8 +1168,10 @@ class ConfigsApi:
|
|
|
347
1168
|
:return: Returns the result object.
|
|
348
1169
|
""" # noqa: E501
|
|
349
1170
|
|
|
350
|
-
_param = self.
|
|
1171
|
+
_param = self._update_configs_serialize(
|
|
351
1172
|
x_property_id=x_property_id,
|
|
1173
|
+
document_kind=document_kind,
|
|
1174
|
+
configs_update_request=configs_update_request,
|
|
352
1175
|
_request_auth=_request_auth,
|
|
353
1176
|
_content_type=_content_type,
|
|
354
1177
|
_headers=_headers,
|
|
@@ -356,7 +1179,7 @@ class ConfigsApi:
|
|
|
356
1179
|
)
|
|
357
1180
|
|
|
358
1181
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
359
|
-
'200': "
|
|
1182
|
+
'200': "ConfigsResponse",
|
|
360
1183
|
}
|
|
361
1184
|
response_data = self.api_client.call_api(
|
|
362
1185
|
*_param,
|
|
@@ -370,9 +1193,11 @@ class ConfigsApi:
|
|
|
370
1193
|
|
|
371
1194
|
|
|
372
1195
|
@validate_call
|
|
373
|
-
def
|
|
1196
|
+
def update_configs_with_http_info(
|
|
374
1197
|
self,
|
|
375
1198
|
x_property_id: Annotated[int, Field(strict=True, ge=1, description="Property id")],
|
|
1199
|
+
document_kind: Annotated[FiscalDocumentKind, Field(description="The kind of the fiscal document.")],
|
|
1200
|
+
configs_update_request: ConfigsUpdateRequest,
|
|
376
1201
|
_request_timeout: Union[
|
|
377
1202
|
None,
|
|
378
1203
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -385,13 +1210,17 @@ class ConfigsApi:
|
|
|
385
1210
|
_content_type: Optional[StrictStr] = None,
|
|
386
1211
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
387
1212
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
388
|
-
) -> ApiResponse[
|
|
389
|
-
"""
|
|
1213
|
+
) -> ApiResponse[ConfigsResponse]:
|
|
1214
|
+
"""Updates a config of a specific kind
|
|
390
1215
|
|
|
391
|
-
|
|
1216
|
+
Update document config.
|
|
392
1217
|
|
|
393
1218
|
:param x_property_id: Property id (required)
|
|
394
1219
|
:type x_property_id: int
|
|
1220
|
+
:param document_kind: The kind of the fiscal document. (required)
|
|
1221
|
+
:type document_kind: FiscalDocumentKind
|
|
1222
|
+
:param configs_update_request: (required)
|
|
1223
|
+
:type configs_update_request: ConfigsUpdateRequest
|
|
395
1224
|
:param _request_timeout: timeout setting for this request. If one
|
|
396
1225
|
number provided, it will be total request
|
|
397
1226
|
timeout. It can also be a pair (tuple) of
|
|
@@ -414,8 +1243,10 @@ class ConfigsApi:
|
|
|
414
1243
|
:return: Returns the result object.
|
|
415
1244
|
""" # noqa: E501
|
|
416
1245
|
|
|
417
|
-
_param = self.
|
|
1246
|
+
_param = self._update_configs_serialize(
|
|
418
1247
|
x_property_id=x_property_id,
|
|
1248
|
+
document_kind=document_kind,
|
|
1249
|
+
configs_update_request=configs_update_request,
|
|
419
1250
|
_request_auth=_request_auth,
|
|
420
1251
|
_content_type=_content_type,
|
|
421
1252
|
_headers=_headers,
|
|
@@ -423,7 +1254,7 @@ class ConfigsApi:
|
|
|
423
1254
|
)
|
|
424
1255
|
|
|
425
1256
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
426
|
-
'200': "
|
|
1257
|
+
'200': "ConfigsResponse",
|
|
427
1258
|
}
|
|
428
1259
|
response_data = self.api_client.call_api(
|
|
429
1260
|
*_param,
|
|
@@ -437,9 +1268,11 @@ class ConfigsApi:
|
|
|
437
1268
|
|
|
438
1269
|
|
|
439
1270
|
@validate_call
|
|
440
|
-
def
|
|
1271
|
+
def update_configs_without_preload_content(
|
|
441
1272
|
self,
|
|
442
1273
|
x_property_id: Annotated[int, Field(strict=True, ge=1, description="Property id")],
|
|
1274
|
+
document_kind: Annotated[FiscalDocumentKind, Field(description="The kind of the fiscal document.")],
|
|
1275
|
+
configs_update_request: ConfigsUpdateRequest,
|
|
443
1276
|
_request_timeout: Union[
|
|
444
1277
|
None,
|
|
445
1278
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -453,12 +1286,16 @@ class ConfigsApi:
|
|
|
453
1286
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
454
1287
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
455
1288
|
) -> RESTResponseType:
|
|
456
|
-
"""
|
|
1289
|
+
"""Updates a config of a specific kind
|
|
457
1290
|
|
|
458
|
-
|
|
1291
|
+
Update document config.
|
|
459
1292
|
|
|
460
1293
|
:param x_property_id: Property id (required)
|
|
461
1294
|
:type x_property_id: int
|
|
1295
|
+
:param document_kind: The kind of the fiscal document. (required)
|
|
1296
|
+
:type document_kind: FiscalDocumentKind
|
|
1297
|
+
:param configs_update_request: (required)
|
|
1298
|
+
:type configs_update_request: ConfigsUpdateRequest
|
|
462
1299
|
:param _request_timeout: timeout setting for this request. If one
|
|
463
1300
|
number provided, it will be total request
|
|
464
1301
|
timeout. It can also be a pair (tuple) of
|
|
@@ -481,8 +1318,10 @@ class ConfigsApi:
|
|
|
481
1318
|
:return: Returns the result object.
|
|
482
1319
|
""" # noqa: E501
|
|
483
1320
|
|
|
484
|
-
_param = self.
|
|
1321
|
+
_param = self._update_configs_serialize(
|
|
485
1322
|
x_property_id=x_property_id,
|
|
1323
|
+
document_kind=document_kind,
|
|
1324
|
+
configs_update_request=configs_update_request,
|
|
486
1325
|
_request_auth=_request_auth,
|
|
487
1326
|
_content_type=_content_type,
|
|
488
1327
|
_headers=_headers,
|
|
@@ -490,7 +1329,7 @@ class ConfigsApi:
|
|
|
490
1329
|
)
|
|
491
1330
|
|
|
492
1331
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
493
|
-
'200': "
|
|
1332
|
+
'200': "ConfigsResponse",
|
|
494
1333
|
}
|
|
495
1334
|
response_data = self.api_client.call_api(
|
|
496
1335
|
*_param,
|
|
@@ -499,9 +1338,11 @@ class ConfigsApi:
|
|
|
499
1338
|
return response_data.response
|
|
500
1339
|
|
|
501
1340
|
|
|
502
|
-
def
|
|
1341
|
+
def _update_configs_serialize(
|
|
503
1342
|
self,
|
|
504
1343
|
x_property_id,
|
|
1344
|
+
document_kind,
|
|
1345
|
+
configs_update_request,
|
|
505
1346
|
_request_auth,
|
|
506
1347
|
_content_type,
|
|
507
1348
|
_headers,
|
|
@@ -523,22 +1364,39 @@ class ConfigsApi:
|
|
|
523
1364
|
_body_params: Optional[bytes] = None
|
|
524
1365
|
|
|
525
1366
|
# process the path parameters
|
|
1367
|
+
if document_kind is not None:
|
|
1368
|
+
_path_params['documentKind'] = document_kind.value
|
|
526
1369
|
# process the query parameters
|
|
527
1370
|
# process the header parameters
|
|
528
1371
|
if x_property_id is not None:
|
|
529
1372
|
_header_params['X-Property-ID'] = x_property_id
|
|
530
1373
|
# process the form parameters
|
|
531
1374
|
# process the body parameter
|
|
1375
|
+
if configs_update_request is not None:
|
|
1376
|
+
_body_params = configs_update_request
|
|
532
1377
|
|
|
533
1378
|
|
|
534
1379
|
# set the HTTP header `Accept`
|
|
535
1380
|
if 'Accept' not in _header_params:
|
|
536
1381
|
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
537
1382
|
[
|
|
538
|
-
'application/
|
|
1383
|
+
'application/json'
|
|
539
1384
|
]
|
|
540
1385
|
)
|
|
541
1386
|
|
|
1387
|
+
# set the HTTP header `Content-Type`
|
|
1388
|
+
if _content_type:
|
|
1389
|
+
_header_params['Content-Type'] = _content_type
|
|
1390
|
+
else:
|
|
1391
|
+
_default_content_type = (
|
|
1392
|
+
self.api_client.select_header_content_type(
|
|
1393
|
+
[
|
|
1394
|
+
'application/json'
|
|
1395
|
+
]
|
|
1396
|
+
)
|
|
1397
|
+
)
|
|
1398
|
+
if _default_content_type is not None:
|
|
1399
|
+
_header_params['Content-Type'] = _default_content_type
|
|
542
1400
|
|
|
543
1401
|
# authentication setting
|
|
544
1402
|
_auth_settings: List[str] = [
|
|
@@ -546,8 +1404,8 @@ class ConfigsApi:
|
|
|
546
1404
|
]
|
|
547
1405
|
|
|
548
1406
|
return self.api_client.param_serialize(
|
|
549
|
-
method='
|
|
550
|
-
resource_path='/fiscal-document/v1/configs/
|
|
1407
|
+
method='PUT',
|
|
1408
|
+
resource_path='/fiscal-document/v1/configs/{documentKind}',
|
|
551
1409
|
path_params=_path_params,
|
|
552
1410
|
query_params=_query_params,
|
|
553
1411
|
header_params=_header_params,
|
|
@@ -564,11 +1422,10 @@ class ConfigsApi:
|
|
|
564
1422
|
|
|
565
1423
|
|
|
566
1424
|
@validate_call
|
|
567
|
-
def
|
|
1425
|
+
def upload_logo(
|
|
568
1426
|
self,
|
|
569
1427
|
x_property_id: Annotated[int, Field(strict=True, ge=1, description="Property id")],
|
|
570
|
-
|
|
571
|
-
configs_update_request: ConfigsUpdateRequest,
|
|
1428
|
+
file: Annotated[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]], Field(description="Logo image file")],
|
|
572
1429
|
_request_timeout: Union[
|
|
573
1430
|
None,
|
|
574
1431
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -581,17 +1438,15 @@ class ConfigsApi:
|
|
|
581
1438
|
_content_type: Optional[StrictStr] = None,
|
|
582
1439
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
583
1440
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
584
|
-
) ->
|
|
585
|
-
"""
|
|
1441
|
+
) -> None:
|
|
1442
|
+
"""Upload logo image for fiscal documents
|
|
586
1443
|
|
|
587
|
-
|
|
1444
|
+
Upload a logo image to be used in fiscal document templates.
|
|
588
1445
|
|
|
589
1446
|
:param x_property_id: Property id (required)
|
|
590
1447
|
:type x_property_id: int
|
|
591
|
-
:param
|
|
592
|
-
:type
|
|
593
|
-
:param configs_update_request: (required)
|
|
594
|
-
:type configs_update_request: ConfigsUpdateRequest
|
|
1448
|
+
:param file: Logo image file (required)
|
|
1449
|
+
:type file: bytearray
|
|
595
1450
|
:param _request_timeout: timeout setting for this request. If one
|
|
596
1451
|
number provided, it will be total request
|
|
597
1452
|
timeout. It can also be a pair (tuple) of
|
|
@@ -614,10 +1469,9 @@ class ConfigsApi:
|
|
|
614
1469
|
:return: Returns the result object.
|
|
615
1470
|
""" # noqa: E501
|
|
616
1471
|
|
|
617
|
-
_param = self.
|
|
1472
|
+
_param = self._upload_logo_serialize(
|
|
618
1473
|
x_property_id=x_property_id,
|
|
619
|
-
|
|
620
|
-
configs_update_request=configs_update_request,
|
|
1474
|
+
file=file,
|
|
621
1475
|
_request_auth=_request_auth,
|
|
622
1476
|
_content_type=_content_type,
|
|
623
1477
|
_headers=_headers,
|
|
@@ -625,7 +1479,9 @@ class ConfigsApi:
|
|
|
625
1479
|
)
|
|
626
1480
|
|
|
627
1481
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
628
|
-
'200':
|
|
1482
|
+
'200': None,
|
|
1483
|
+
'400': "ApiError",
|
|
1484
|
+
'403': "ApiError",
|
|
629
1485
|
}
|
|
630
1486
|
response_data = self.api_client.call_api(
|
|
631
1487
|
*_param,
|
|
@@ -639,11 +1495,10 @@ class ConfigsApi:
|
|
|
639
1495
|
|
|
640
1496
|
|
|
641
1497
|
@validate_call
|
|
642
|
-
def
|
|
1498
|
+
def upload_logo_with_http_info(
|
|
643
1499
|
self,
|
|
644
1500
|
x_property_id: Annotated[int, Field(strict=True, ge=1, description="Property id")],
|
|
645
|
-
|
|
646
|
-
configs_update_request: ConfigsUpdateRequest,
|
|
1501
|
+
file: Annotated[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]], Field(description="Logo image file")],
|
|
647
1502
|
_request_timeout: Union[
|
|
648
1503
|
None,
|
|
649
1504
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -656,17 +1511,15 @@ class ConfigsApi:
|
|
|
656
1511
|
_content_type: Optional[StrictStr] = None,
|
|
657
1512
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
658
1513
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
659
|
-
) -> ApiResponse[
|
|
660
|
-
"""
|
|
1514
|
+
) -> ApiResponse[None]:
|
|
1515
|
+
"""Upload logo image for fiscal documents
|
|
661
1516
|
|
|
662
|
-
|
|
1517
|
+
Upload a logo image to be used in fiscal document templates.
|
|
663
1518
|
|
|
664
1519
|
:param x_property_id: Property id (required)
|
|
665
1520
|
:type x_property_id: int
|
|
666
|
-
:param
|
|
667
|
-
:type
|
|
668
|
-
:param configs_update_request: (required)
|
|
669
|
-
:type configs_update_request: ConfigsUpdateRequest
|
|
1521
|
+
:param file: Logo image file (required)
|
|
1522
|
+
:type file: bytearray
|
|
670
1523
|
:param _request_timeout: timeout setting for this request. If one
|
|
671
1524
|
number provided, it will be total request
|
|
672
1525
|
timeout. It can also be a pair (tuple) of
|
|
@@ -689,10 +1542,9 @@ class ConfigsApi:
|
|
|
689
1542
|
:return: Returns the result object.
|
|
690
1543
|
""" # noqa: E501
|
|
691
1544
|
|
|
692
|
-
_param = self.
|
|
1545
|
+
_param = self._upload_logo_serialize(
|
|
693
1546
|
x_property_id=x_property_id,
|
|
694
|
-
|
|
695
|
-
configs_update_request=configs_update_request,
|
|
1547
|
+
file=file,
|
|
696
1548
|
_request_auth=_request_auth,
|
|
697
1549
|
_content_type=_content_type,
|
|
698
1550
|
_headers=_headers,
|
|
@@ -700,7 +1552,9 @@ class ConfigsApi:
|
|
|
700
1552
|
)
|
|
701
1553
|
|
|
702
1554
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
703
|
-
'200':
|
|
1555
|
+
'200': None,
|
|
1556
|
+
'400': "ApiError",
|
|
1557
|
+
'403': "ApiError",
|
|
704
1558
|
}
|
|
705
1559
|
response_data = self.api_client.call_api(
|
|
706
1560
|
*_param,
|
|
@@ -714,11 +1568,10 @@ class ConfigsApi:
|
|
|
714
1568
|
|
|
715
1569
|
|
|
716
1570
|
@validate_call
|
|
717
|
-
def
|
|
1571
|
+
def upload_logo_without_preload_content(
|
|
718
1572
|
self,
|
|
719
1573
|
x_property_id: Annotated[int, Field(strict=True, ge=1, description="Property id")],
|
|
720
|
-
|
|
721
|
-
configs_update_request: ConfigsUpdateRequest,
|
|
1574
|
+
file: Annotated[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]], Field(description="Logo image file")],
|
|
722
1575
|
_request_timeout: Union[
|
|
723
1576
|
None,
|
|
724
1577
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -732,16 +1585,14 @@ class ConfigsApi:
|
|
|
732
1585
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
733
1586
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
734
1587
|
) -> RESTResponseType:
|
|
735
|
-
"""
|
|
1588
|
+
"""Upload logo image for fiscal documents
|
|
736
1589
|
|
|
737
|
-
|
|
1590
|
+
Upload a logo image to be used in fiscal document templates.
|
|
738
1591
|
|
|
739
1592
|
:param x_property_id: Property id (required)
|
|
740
1593
|
:type x_property_id: int
|
|
741
|
-
:param
|
|
742
|
-
:type
|
|
743
|
-
:param configs_update_request: (required)
|
|
744
|
-
:type configs_update_request: ConfigsUpdateRequest
|
|
1594
|
+
:param file: Logo image file (required)
|
|
1595
|
+
:type file: bytearray
|
|
745
1596
|
:param _request_timeout: timeout setting for this request. If one
|
|
746
1597
|
number provided, it will be total request
|
|
747
1598
|
timeout. It can also be a pair (tuple) of
|
|
@@ -764,10 +1615,9 @@ class ConfigsApi:
|
|
|
764
1615
|
:return: Returns the result object.
|
|
765
1616
|
""" # noqa: E501
|
|
766
1617
|
|
|
767
|
-
_param = self.
|
|
1618
|
+
_param = self._upload_logo_serialize(
|
|
768
1619
|
x_property_id=x_property_id,
|
|
769
|
-
|
|
770
|
-
configs_update_request=configs_update_request,
|
|
1620
|
+
file=file,
|
|
771
1621
|
_request_auth=_request_auth,
|
|
772
1622
|
_content_type=_content_type,
|
|
773
1623
|
_headers=_headers,
|
|
@@ -775,7 +1625,9 @@ class ConfigsApi:
|
|
|
775
1625
|
)
|
|
776
1626
|
|
|
777
1627
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
778
|
-
'200':
|
|
1628
|
+
'200': None,
|
|
1629
|
+
'400': "ApiError",
|
|
1630
|
+
'403': "ApiError",
|
|
779
1631
|
}
|
|
780
1632
|
response_data = self.api_client.call_api(
|
|
781
1633
|
*_param,
|
|
@@ -784,11 +1636,10 @@ class ConfigsApi:
|
|
|
784
1636
|
return response_data.response
|
|
785
1637
|
|
|
786
1638
|
|
|
787
|
-
def
|
|
1639
|
+
def _upload_logo_serialize(
|
|
788
1640
|
self,
|
|
789
1641
|
x_property_id,
|
|
790
|
-
|
|
791
|
-
configs_update_request,
|
|
1642
|
+
file,
|
|
792
1643
|
_request_auth,
|
|
793
1644
|
_content_type,
|
|
794
1645
|
_headers,
|
|
@@ -810,16 +1661,14 @@ class ConfigsApi:
|
|
|
810
1661
|
_body_params: Optional[bytes] = None
|
|
811
1662
|
|
|
812
1663
|
# process the path parameters
|
|
813
|
-
if document_kind is not None:
|
|
814
|
-
_path_params['documentKind'] = document_kind.value
|
|
815
1664
|
# process the query parameters
|
|
816
1665
|
# process the header parameters
|
|
817
1666
|
if x_property_id is not None:
|
|
818
1667
|
_header_params['X-Property-ID'] = x_property_id
|
|
819
1668
|
# process the form parameters
|
|
1669
|
+
if file is not None:
|
|
1670
|
+
_files['file'] = file
|
|
820
1671
|
# process the body parameter
|
|
821
|
-
if configs_update_request is not None:
|
|
822
|
-
_body_params = configs_update_request
|
|
823
1672
|
|
|
824
1673
|
|
|
825
1674
|
# set the HTTP header `Accept`
|
|
@@ -837,7 +1686,7 @@ class ConfigsApi:
|
|
|
837
1686
|
_default_content_type = (
|
|
838
1687
|
self.api_client.select_header_content_type(
|
|
839
1688
|
[
|
|
840
|
-
'
|
|
1689
|
+
'multipart/form-data'
|
|
841
1690
|
]
|
|
842
1691
|
)
|
|
843
1692
|
)
|
|
@@ -850,8 +1699,8 @@ class ConfigsApi:
|
|
|
850
1699
|
]
|
|
851
1700
|
|
|
852
1701
|
return self.api_client.param_serialize(
|
|
853
|
-
method='
|
|
854
|
-
resource_path='/fiscal-document/v1/configs/
|
|
1702
|
+
method='POST',
|
|
1703
|
+
resource_path='/fiscal-document/v1/configs/logo',
|
|
855
1704
|
path_params=_path_params,
|
|
856
1705
|
query_params=_query_params,
|
|
857
1706
|
header_params=_header_params,
|