pluggy-sdk 1.0.0.post36__py3-none-any.whl → 1.0.0.post38__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.
Files changed (33) hide show
  1. pluggy_sdk/__init__.py +12 -1
  2. pluggy_sdk/api/__init__.py +1 -0
  3. pluggy_sdk/api/boleto_management_api.py +1375 -0
  4. pluggy_sdk/api/payment_recipient_api.py +1 -18
  5. pluggy_sdk/api/transaction_api.py +46 -3
  6. pluggy_sdk/api_client.py +1 -1
  7. pluggy_sdk/configuration.py +1 -1
  8. pluggy_sdk/models/__init__.py +10 -0
  9. pluggy_sdk/models/boleto_connection.py +95 -0
  10. pluggy_sdk/models/create_boleto.py +94 -0
  11. pluggy_sdk/models/create_boleto_boleto.py +100 -0
  12. pluggy_sdk/models/create_boleto_boleto_payer.py +98 -0
  13. pluggy_sdk/models/create_boleto_connection.py +91 -0
  14. pluggy_sdk/models/create_boleto_connection_from_item.py +88 -0
  15. pluggy_sdk/models/create_item.py +1 -1
  16. pluggy_sdk/models/create_or_update_payment_customer.py +1 -1
  17. pluggy_sdk/models/create_payment_customer_request_body.py +1 -1
  18. pluggy_sdk/models/create_payment_recipient.py +2 -4
  19. pluggy_sdk/models/create_webhook.py +2 -2
  20. pluggy_sdk/models/investment.py +1 -11
  21. pluggy_sdk/models/issued_boleto.py +121 -0
  22. pluggy_sdk/models/issued_boleto_payer.py +126 -0
  23. pluggy_sdk/models/item_options.py +1 -1
  24. pluggy_sdk/models/payment_intent.py +8 -2
  25. pluggy_sdk/models/payment_intent_error_detail.py +94 -0
  26. pluggy_sdk/models/payment_request.py +8 -2
  27. pluggy_sdk/models/payment_request_error_detail.py +90 -0
  28. pluggy_sdk/models/update_item.py +1 -1
  29. pluggy_sdk/models/update_payment_recipient.py +2 -4
  30. {pluggy_sdk-1.0.0.post36.dist-info → pluggy_sdk-1.0.0.post38.dist-info}/METADATA +17 -2
  31. {pluggy_sdk-1.0.0.post36.dist-info → pluggy_sdk-1.0.0.post38.dist-info}/RECORD +33 -22
  32. {pluggy_sdk-1.0.0.post36.dist-info → pluggy_sdk-1.0.0.post38.dist-info}/WHEEL +0 -0
  33. {pluggy_sdk-1.0.0.post36.dist-info → pluggy_sdk-1.0.0.post38.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,1375 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Pluggy API
5
+
6
+ Pluggy's main API to review data and execute connectors
7
+
8
+ The version of the OpenAPI document: 1.0.0
9
+ Contact: hello@pluggy.ai
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
+
12
+ Do not edit the class manually.
13
+ """ # noqa: E501
14
+
15
+ import warnings
16
+ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
17
+ from typing import Any, Dict, List, Optional, Tuple, Union
18
+ from typing_extensions import Annotated
19
+
20
+ from pydantic import Field, StrictStr
21
+ from typing_extensions import Annotated
22
+ from pluggy_sdk.models.boleto_connection import BoletoConnection
23
+ from pluggy_sdk.models.create_boleto import CreateBoleto
24
+ from pluggy_sdk.models.create_boleto_connection import CreateBoletoConnection
25
+ from pluggy_sdk.models.create_boleto_connection_from_item import CreateBoletoConnectionFromItem
26
+ from pluggy_sdk.models.issued_boleto import IssuedBoleto
27
+
28
+ from pluggy_sdk.api_client import ApiClient, RequestSerialized
29
+ from pluggy_sdk.api_response import ApiResponse
30
+ from pluggy_sdk.rest import RESTResponseType
31
+
32
+
33
+ class BoletoManagementApi:
34
+ """NOTE: This class is auto generated by OpenAPI Generator
35
+ Ref: https://openapi-generator.tech
36
+
37
+ Do not edit the class manually.
38
+ """
39
+
40
+ def __init__(self, api_client=None) -> None:
41
+ if api_client is None:
42
+ api_client = ApiClient.get_default()
43
+ self.api_client = api_client
44
+
45
+
46
+ @validate_call
47
+ def boleto_cancel(
48
+ self,
49
+ id: Annotated[StrictStr, Field(description="Boleto primary identifier")],
50
+ _request_timeout: Union[
51
+ None,
52
+ Annotated[StrictFloat, Field(gt=0)],
53
+ Tuple[
54
+ Annotated[StrictFloat, Field(gt=0)],
55
+ Annotated[StrictFloat, Field(gt=0)]
56
+ ]
57
+ ] = None,
58
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
59
+ _content_type: Optional[StrictStr] = None,
60
+ _headers: Optional[Dict[StrictStr, Any]] = None,
61
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
62
+ ) -> IssuedBoleto:
63
+ """Cancel Boleto
64
+
65
+
66
+ :param id: Boleto primary identifier (required)
67
+ :type id: str
68
+ :param _request_timeout: timeout setting for this request. If one
69
+ number provided, it will be total request
70
+ timeout. It can also be a pair (tuple) of
71
+ (connection, read) timeouts.
72
+ :type _request_timeout: int, tuple(int, int), optional
73
+ :param _request_auth: set to override the auth_settings for an a single
74
+ request; this effectively ignores the
75
+ authentication in the spec for a single request.
76
+ :type _request_auth: dict, optional
77
+ :param _content_type: force content-type for the request.
78
+ :type _content_type: str, Optional
79
+ :param _headers: set to override the headers for a single
80
+ request; this effectively ignores the headers
81
+ in the spec for a single request.
82
+ :type _headers: dict, optional
83
+ :param _host_index: set to override the host_index for a single
84
+ request; this effectively ignores the host_index
85
+ in the spec for a single request.
86
+ :type _host_index: int, optional
87
+ :return: Returns the result object.
88
+ """ # noqa: E501
89
+
90
+ _param = self._boleto_cancel_serialize(
91
+ id=id,
92
+ _request_auth=_request_auth,
93
+ _content_type=_content_type,
94
+ _headers=_headers,
95
+ _host_index=_host_index
96
+ )
97
+
98
+ _response_types_map: Dict[str, Optional[str]] = {
99
+ '200': "IssuedBoleto",
100
+ }
101
+ response_data = self.api_client.call_api(
102
+ *_param,
103
+ _request_timeout=_request_timeout
104
+ )
105
+ response_data.read()
106
+ return self.api_client.response_deserialize(
107
+ response_data=response_data,
108
+ response_types_map=_response_types_map,
109
+ ).data
110
+
111
+
112
+ @validate_call
113
+ def boleto_cancel_with_http_info(
114
+ self,
115
+ id: Annotated[StrictStr, Field(description="Boleto primary identifier")],
116
+ _request_timeout: Union[
117
+ None,
118
+ Annotated[StrictFloat, Field(gt=0)],
119
+ Tuple[
120
+ Annotated[StrictFloat, Field(gt=0)],
121
+ Annotated[StrictFloat, Field(gt=0)]
122
+ ]
123
+ ] = None,
124
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
125
+ _content_type: Optional[StrictStr] = None,
126
+ _headers: Optional[Dict[StrictStr, Any]] = None,
127
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
128
+ ) -> ApiResponse[IssuedBoleto]:
129
+ """Cancel Boleto
130
+
131
+
132
+ :param id: Boleto primary identifier (required)
133
+ :type id: str
134
+ :param _request_timeout: timeout setting for this request. If one
135
+ number provided, it will be total request
136
+ timeout. It can also be a pair (tuple) of
137
+ (connection, read) timeouts.
138
+ :type _request_timeout: int, tuple(int, int), optional
139
+ :param _request_auth: set to override the auth_settings for an a single
140
+ request; this effectively ignores the
141
+ authentication in the spec for a single request.
142
+ :type _request_auth: dict, optional
143
+ :param _content_type: force content-type for the request.
144
+ :type _content_type: str, Optional
145
+ :param _headers: set to override the headers for a single
146
+ request; this effectively ignores the headers
147
+ in the spec for a single request.
148
+ :type _headers: dict, optional
149
+ :param _host_index: set to override the host_index for a single
150
+ request; this effectively ignores the host_index
151
+ in the spec for a single request.
152
+ :type _host_index: int, optional
153
+ :return: Returns the result object.
154
+ """ # noqa: E501
155
+
156
+ _param = self._boleto_cancel_serialize(
157
+ id=id,
158
+ _request_auth=_request_auth,
159
+ _content_type=_content_type,
160
+ _headers=_headers,
161
+ _host_index=_host_index
162
+ )
163
+
164
+ _response_types_map: Dict[str, Optional[str]] = {
165
+ '200': "IssuedBoleto",
166
+ }
167
+ response_data = self.api_client.call_api(
168
+ *_param,
169
+ _request_timeout=_request_timeout
170
+ )
171
+ response_data.read()
172
+ return self.api_client.response_deserialize(
173
+ response_data=response_data,
174
+ response_types_map=_response_types_map,
175
+ )
176
+
177
+
178
+ @validate_call
179
+ def boleto_cancel_without_preload_content(
180
+ self,
181
+ id: Annotated[StrictStr, Field(description="Boleto primary identifier")],
182
+ _request_timeout: Union[
183
+ None,
184
+ Annotated[StrictFloat, Field(gt=0)],
185
+ Tuple[
186
+ Annotated[StrictFloat, Field(gt=0)],
187
+ Annotated[StrictFloat, Field(gt=0)]
188
+ ]
189
+ ] = None,
190
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
191
+ _content_type: Optional[StrictStr] = None,
192
+ _headers: Optional[Dict[StrictStr, Any]] = None,
193
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
194
+ ) -> RESTResponseType:
195
+ """Cancel Boleto
196
+
197
+
198
+ :param id: Boleto primary identifier (required)
199
+ :type id: str
200
+ :param _request_timeout: timeout setting for this request. If one
201
+ number provided, it will be total request
202
+ timeout. It can also be a pair (tuple) of
203
+ (connection, read) timeouts.
204
+ :type _request_timeout: int, tuple(int, int), optional
205
+ :param _request_auth: set to override the auth_settings for an a single
206
+ request; this effectively ignores the
207
+ authentication in the spec for a single request.
208
+ :type _request_auth: dict, optional
209
+ :param _content_type: force content-type for the request.
210
+ :type _content_type: str, Optional
211
+ :param _headers: set to override the headers for a single
212
+ request; this effectively ignores the headers
213
+ in the spec for a single request.
214
+ :type _headers: dict, optional
215
+ :param _host_index: set to override the host_index for a single
216
+ request; this effectively ignores the host_index
217
+ in the spec for a single request.
218
+ :type _host_index: int, optional
219
+ :return: Returns the result object.
220
+ """ # noqa: E501
221
+
222
+ _param = self._boleto_cancel_serialize(
223
+ id=id,
224
+ _request_auth=_request_auth,
225
+ _content_type=_content_type,
226
+ _headers=_headers,
227
+ _host_index=_host_index
228
+ )
229
+
230
+ _response_types_map: Dict[str, Optional[str]] = {
231
+ '200': "IssuedBoleto",
232
+ }
233
+ response_data = self.api_client.call_api(
234
+ *_param,
235
+ _request_timeout=_request_timeout
236
+ )
237
+ return response_data.response
238
+
239
+
240
+ def _boleto_cancel_serialize(
241
+ self,
242
+ id,
243
+ _request_auth,
244
+ _content_type,
245
+ _headers,
246
+ _host_index,
247
+ ) -> RequestSerialized:
248
+
249
+ _host = None
250
+
251
+ _collection_formats: Dict[str, str] = {
252
+ }
253
+
254
+ _path_params: Dict[str, str] = {}
255
+ _query_params: List[Tuple[str, str]] = []
256
+ _header_params: Dict[str, Optional[str]] = _headers or {}
257
+ _form_params: List[Tuple[str, str]] = []
258
+ _files: Dict[
259
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
260
+ ] = {}
261
+ _body_params: Optional[bytes] = None
262
+
263
+ # process the path parameters
264
+ if id is not None:
265
+ _path_params['id'] = id
266
+ # process the query parameters
267
+ # process the header parameters
268
+ # process the form parameters
269
+ # process the body parameter
270
+
271
+
272
+ # set the HTTP header `Accept`
273
+ if 'Accept' not in _header_params:
274
+ _header_params['Accept'] = self.api_client.select_header_accept(
275
+ [
276
+ 'application/json'
277
+ ]
278
+ )
279
+
280
+
281
+ # authentication setting
282
+ _auth_settings: List[str] = [
283
+ 'default'
284
+ ]
285
+
286
+ return self.api_client.param_serialize(
287
+ method='POST',
288
+ resource_path='/boletos/{id}/cancel',
289
+ path_params=_path_params,
290
+ query_params=_query_params,
291
+ header_params=_header_params,
292
+ body=_body_params,
293
+ post_params=_form_params,
294
+ files=_files,
295
+ auth_settings=_auth_settings,
296
+ collection_formats=_collection_formats,
297
+ _host=_host,
298
+ _request_auth=_request_auth
299
+ )
300
+
301
+
302
+
303
+
304
+ @validate_call
305
+ def boleto_connection_create(
306
+ self,
307
+ create_boleto_connection: CreateBoletoConnection,
308
+ _request_timeout: Union[
309
+ None,
310
+ Annotated[StrictFloat, Field(gt=0)],
311
+ Tuple[
312
+ Annotated[StrictFloat, Field(gt=0)],
313
+ Annotated[StrictFloat, Field(gt=0)]
314
+ ]
315
+ ] = None,
316
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
317
+ _content_type: Optional[StrictStr] = None,
318
+ _headers: Optional[Dict[StrictStr, Any]] = None,
319
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
320
+ ) -> BoletoConnection:
321
+ """Connect boleto credentials
322
+
323
+
324
+ :param create_boleto_connection: (required)
325
+ :type create_boleto_connection: CreateBoletoConnection
326
+ :param _request_timeout: timeout setting for this request. If one
327
+ number provided, it will be total request
328
+ timeout. It can also be a pair (tuple) of
329
+ (connection, read) timeouts.
330
+ :type _request_timeout: int, tuple(int, int), optional
331
+ :param _request_auth: set to override the auth_settings for an a single
332
+ request; this effectively ignores the
333
+ authentication in the spec for a single request.
334
+ :type _request_auth: dict, optional
335
+ :param _content_type: force content-type for the request.
336
+ :type _content_type: str, Optional
337
+ :param _headers: set to override the headers for a single
338
+ request; this effectively ignores the headers
339
+ in the spec for a single request.
340
+ :type _headers: dict, optional
341
+ :param _host_index: set to override the host_index for a single
342
+ request; this effectively ignores the host_index
343
+ in the spec for a single request.
344
+ :type _host_index: int, optional
345
+ :return: Returns the result object.
346
+ """ # noqa: E501
347
+
348
+ _param = self._boleto_connection_create_serialize(
349
+ create_boleto_connection=create_boleto_connection,
350
+ _request_auth=_request_auth,
351
+ _content_type=_content_type,
352
+ _headers=_headers,
353
+ _host_index=_host_index
354
+ )
355
+
356
+ _response_types_map: Dict[str, Optional[str]] = {
357
+ '200': "BoletoConnection",
358
+ '400': None,
359
+ }
360
+ response_data = self.api_client.call_api(
361
+ *_param,
362
+ _request_timeout=_request_timeout
363
+ )
364
+ response_data.read()
365
+ return self.api_client.response_deserialize(
366
+ response_data=response_data,
367
+ response_types_map=_response_types_map,
368
+ ).data
369
+
370
+
371
+ @validate_call
372
+ def boleto_connection_create_with_http_info(
373
+ self,
374
+ create_boleto_connection: CreateBoletoConnection,
375
+ _request_timeout: Union[
376
+ None,
377
+ Annotated[StrictFloat, Field(gt=0)],
378
+ Tuple[
379
+ Annotated[StrictFloat, Field(gt=0)],
380
+ Annotated[StrictFloat, Field(gt=0)]
381
+ ]
382
+ ] = None,
383
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
384
+ _content_type: Optional[StrictStr] = None,
385
+ _headers: Optional[Dict[StrictStr, Any]] = None,
386
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
387
+ ) -> ApiResponse[BoletoConnection]:
388
+ """Connect boleto credentials
389
+
390
+
391
+ :param create_boleto_connection: (required)
392
+ :type create_boleto_connection: CreateBoletoConnection
393
+ :param _request_timeout: timeout setting for this request. If one
394
+ number provided, it will be total request
395
+ timeout. It can also be a pair (tuple) of
396
+ (connection, read) timeouts.
397
+ :type _request_timeout: int, tuple(int, int), optional
398
+ :param _request_auth: set to override the auth_settings for an a single
399
+ request; this effectively ignores the
400
+ authentication in the spec for a single request.
401
+ :type _request_auth: dict, optional
402
+ :param _content_type: force content-type for the request.
403
+ :type _content_type: str, Optional
404
+ :param _headers: set to override the headers for a single
405
+ request; this effectively ignores the headers
406
+ in the spec for a single request.
407
+ :type _headers: dict, optional
408
+ :param _host_index: set to override the host_index for a single
409
+ request; this effectively ignores the host_index
410
+ in the spec for a single request.
411
+ :type _host_index: int, optional
412
+ :return: Returns the result object.
413
+ """ # noqa: E501
414
+
415
+ _param = self._boleto_connection_create_serialize(
416
+ create_boleto_connection=create_boleto_connection,
417
+ _request_auth=_request_auth,
418
+ _content_type=_content_type,
419
+ _headers=_headers,
420
+ _host_index=_host_index
421
+ )
422
+
423
+ _response_types_map: Dict[str, Optional[str]] = {
424
+ '200': "BoletoConnection",
425
+ '400': None,
426
+ }
427
+ response_data = self.api_client.call_api(
428
+ *_param,
429
+ _request_timeout=_request_timeout
430
+ )
431
+ response_data.read()
432
+ return self.api_client.response_deserialize(
433
+ response_data=response_data,
434
+ response_types_map=_response_types_map,
435
+ )
436
+
437
+
438
+ @validate_call
439
+ def boleto_connection_create_without_preload_content(
440
+ self,
441
+ create_boleto_connection: CreateBoletoConnection,
442
+ _request_timeout: Union[
443
+ None,
444
+ Annotated[StrictFloat, Field(gt=0)],
445
+ Tuple[
446
+ Annotated[StrictFloat, Field(gt=0)],
447
+ Annotated[StrictFloat, Field(gt=0)]
448
+ ]
449
+ ] = None,
450
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
451
+ _content_type: Optional[StrictStr] = None,
452
+ _headers: Optional[Dict[StrictStr, Any]] = None,
453
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
454
+ ) -> RESTResponseType:
455
+ """Connect boleto credentials
456
+
457
+
458
+ :param create_boleto_connection: (required)
459
+ :type create_boleto_connection: CreateBoletoConnection
460
+ :param _request_timeout: timeout setting for this request. If one
461
+ number provided, it will be total request
462
+ timeout. It can also be a pair (tuple) of
463
+ (connection, read) timeouts.
464
+ :type _request_timeout: int, tuple(int, int), optional
465
+ :param _request_auth: set to override the auth_settings for an a single
466
+ request; this effectively ignores the
467
+ authentication in the spec for a single request.
468
+ :type _request_auth: dict, optional
469
+ :param _content_type: force content-type for the request.
470
+ :type _content_type: str, Optional
471
+ :param _headers: set to override the headers for a single
472
+ request; this effectively ignores the headers
473
+ in the spec for a single request.
474
+ :type _headers: dict, optional
475
+ :param _host_index: set to override the host_index for a single
476
+ request; this effectively ignores the host_index
477
+ in the spec for a single request.
478
+ :type _host_index: int, optional
479
+ :return: Returns the result object.
480
+ """ # noqa: E501
481
+
482
+ _param = self._boleto_connection_create_serialize(
483
+ create_boleto_connection=create_boleto_connection,
484
+ _request_auth=_request_auth,
485
+ _content_type=_content_type,
486
+ _headers=_headers,
487
+ _host_index=_host_index
488
+ )
489
+
490
+ _response_types_map: Dict[str, Optional[str]] = {
491
+ '200': "BoletoConnection",
492
+ '400': None,
493
+ }
494
+ response_data = self.api_client.call_api(
495
+ *_param,
496
+ _request_timeout=_request_timeout
497
+ )
498
+ return response_data.response
499
+
500
+
501
+ def _boleto_connection_create_serialize(
502
+ self,
503
+ create_boleto_connection,
504
+ _request_auth,
505
+ _content_type,
506
+ _headers,
507
+ _host_index,
508
+ ) -> RequestSerialized:
509
+
510
+ _host = None
511
+
512
+ _collection_formats: Dict[str, str] = {
513
+ }
514
+
515
+ _path_params: Dict[str, str] = {}
516
+ _query_params: List[Tuple[str, str]] = []
517
+ _header_params: Dict[str, Optional[str]] = _headers or {}
518
+ _form_params: List[Tuple[str, str]] = []
519
+ _files: Dict[
520
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
521
+ ] = {}
522
+ _body_params: Optional[bytes] = None
523
+
524
+ # process the path parameters
525
+ # process the query parameters
526
+ # process the header parameters
527
+ # process the form parameters
528
+ # process the body parameter
529
+ if create_boleto_connection is not None:
530
+ _body_params = create_boleto_connection
531
+
532
+
533
+ # set the HTTP header `Accept`
534
+ if 'Accept' not in _header_params:
535
+ _header_params['Accept'] = self.api_client.select_header_accept(
536
+ [
537
+ 'application/json'
538
+ ]
539
+ )
540
+
541
+ # set the HTTP header `Content-Type`
542
+ if _content_type:
543
+ _header_params['Content-Type'] = _content_type
544
+ else:
545
+ _default_content_type = (
546
+ self.api_client.select_header_content_type(
547
+ [
548
+ 'application/json'
549
+ ]
550
+ )
551
+ )
552
+ if _default_content_type is not None:
553
+ _header_params['Content-Type'] = _default_content_type
554
+
555
+ # authentication setting
556
+ _auth_settings: List[str] = [
557
+ 'default'
558
+ ]
559
+
560
+ return self.api_client.param_serialize(
561
+ method='POST',
562
+ resource_path='/boleto-connections',
563
+ path_params=_path_params,
564
+ query_params=_query_params,
565
+ header_params=_header_params,
566
+ body=_body_params,
567
+ post_params=_form_params,
568
+ files=_files,
569
+ auth_settings=_auth_settings,
570
+ collection_formats=_collection_formats,
571
+ _host=_host,
572
+ _request_auth=_request_auth
573
+ )
574
+
575
+
576
+
577
+
578
+ @validate_call
579
+ def boleto_connection_create_from_item(
580
+ self,
581
+ create_boleto_connection_from_item: CreateBoletoConnectionFromItem,
582
+ _request_timeout: Union[
583
+ None,
584
+ Annotated[StrictFloat, Field(gt=0)],
585
+ Tuple[
586
+ Annotated[StrictFloat, Field(gt=0)],
587
+ Annotated[StrictFloat, Field(gt=0)]
588
+ ]
589
+ ] = None,
590
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
591
+ _content_type: Optional[StrictStr] = None,
592
+ _headers: Optional[Dict[StrictStr, Any]] = None,
593
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
594
+ ) -> BoletoConnection:
595
+ """Create boleto connection from Item
596
+
597
+
598
+ :param create_boleto_connection_from_item: (required)
599
+ :type create_boleto_connection_from_item: CreateBoletoConnectionFromItem
600
+ :param _request_timeout: timeout setting for this request. If one
601
+ number provided, it will be total request
602
+ timeout. It can also be a pair (tuple) of
603
+ (connection, read) timeouts.
604
+ :type _request_timeout: int, tuple(int, int), optional
605
+ :param _request_auth: set to override the auth_settings for an a single
606
+ request; this effectively ignores the
607
+ authentication in the spec for a single request.
608
+ :type _request_auth: dict, optional
609
+ :param _content_type: force content-type for the request.
610
+ :type _content_type: str, Optional
611
+ :param _headers: set to override the headers for a single
612
+ request; this effectively ignores the headers
613
+ in the spec for a single request.
614
+ :type _headers: dict, optional
615
+ :param _host_index: set to override the host_index for a single
616
+ request; this effectively ignores the host_index
617
+ in the spec for a single request.
618
+ :type _host_index: int, optional
619
+ :return: Returns the result object.
620
+ """ # noqa: E501
621
+
622
+ _param = self._boleto_connection_create_from_item_serialize(
623
+ create_boleto_connection_from_item=create_boleto_connection_from_item,
624
+ _request_auth=_request_auth,
625
+ _content_type=_content_type,
626
+ _headers=_headers,
627
+ _host_index=_host_index
628
+ )
629
+
630
+ _response_types_map: Dict[str, Optional[str]] = {
631
+ '200': "BoletoConnection",
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 boleto_connection_create_from_item_with_http_info(
646
+ self,
647
+ create_boleto_connection_from_item: CreateBoletoConnectionFromItem,
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[BoletoConnection]:
661
+ """Create boleto connection from Item
662
+
663
+
664
+ :param create_boleto_connection_from_item: (required)
665
+ :type create_boleto_connection_from_item: CreateBoletoConnectionFromItem
666
+ :param _request_timeout: timeout setting for this request. If one
667
+ number provided, it will be total request
668
+ timeout. It can also be a pair (tuple) of
669
+ (connection, read) timeouts.
670
+ :type _request_timeout: int, tuple(int, int), optional
671
+ :param _request_auth: set to override the auth_settings for an a single
672
+ request; this effectively ignores the
673
+ authentication in the spec for a single request.
674
+ :type _request_auth: dict, optional
675
+ :param _content_type: force content-type for the request.
676
+ :type _content_type: str, Optional
677
+ :param _headers: set to override the headers for a single
678
+ request; this effectively ignores the headers
679
+ in the spec for a single request.
680
+ :type _headers: dict, optional
681
+ :param _host_index: set to override the host_index for a single
682
+ request; this effectively ignores the host_index
683
+ in the spec for a single request.
684
+ :type _host_index: int, optional
685
+ :return: Returns the result object.
686
+ """ # noqa: E501
687
+
688
+ _param = self._boleto_connection_create_from_item_serialize(
689
+ create_boleto_connection_from_item=create_boleto_connection_from_item,
690
+ _request_auth=_request_auth,
691
+ _content_type=_content_type,
692
+ _headers=_headers,
693
+ _host_index=_host_index
694
+ )
695
+
696
+ _response_types_map: Dict[str, Optional[str]] = {
697
+ '200': "BoletoConnection",
698
+ }
699
+ response_data = self.api_client.call_api(
700
+ *_param,
701
+ _request_timeout=_request_timeout
702
+ )
703
+ response_data.read()
704
+ return self.api_client.response_deserialize(
705
+ response_data=response_data,
706
+ response_types_map=_response_types_map,
707
+ )
708
+
709
+
710
+ @validate_call
711
+ def boleto_connection_create_from_item_without_preload_content(
712
+ self,
713
+ create_boleto_connection_from_item: CreateBoletoConnectionFromItem,
714
+ _request_timeout: Union[
715
+ None,
716
+ Annotated[StrictFloat, Field(gt=0)],
717
+ Tuple[
718
+ Annotated[StrictFloat, Field(gt=0)],
719
+ Annotated[StrictFloat, Field(gt=0)]
720
+ ]
721
+ ] = None,
722
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
723
+ _content_type: Optional[StrictStr] = None,
724
+ _headers: Optional[Dict[StrictStr, Any]] = None,
725
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
726
+ ) -> RESTResponseType:
727
+ """Create boleto connection from Item
728
+
729
+
730
+ :param create_boleto_connection_from_item: (required)
731
+ :type create_boleto_connection_from_item: CreateBoletoConnectionFromItem
732
+ :param _request_timeout: timeout setting for this request. If one
733
+ number provided, it will be total request
734
+ timeout. It can also be a pair (tuple) of
735
+ (connection, read) timeouts.
736
+ :type _request_timeout: int, tuple(int, int), optional
737
+ :param _request_auth: set to override the auth_settings for an a single
738
+ request; this effectively ignores the
739
+ authentication in the spec for a single request.
740
+ :type _request_auth: dict, optional
741
+ :param _content_type: force content-type for the request.
742
+ :type _content_type: str, Optional
743
+ :param _headers: set to override the headers for a single
744
+ request; this effectively ignores the headers
745
+ in the spec for a single request.
746
+ :type _headers: dict, optional
747
+ :param _host_index: set to override the host_index for a single
748
+ request; this effectively ignores the host_index
749
+ in the spec for a single request.
750
+ :type _host_index: int, optional
751
+ :return: Returns the result object.
752
+ """ # noqa: E501
753
+
754
+ _param = self._boleto_connection_create_from_item_serialize(
755
+ create_boleto_connection_from_item=create_boleto_connection_from_item,
756
+ _request_auth=_request_auth,
757
+ _content_type=_content_type,
758
+ _headers=_headers,
759
+ _host_index=_host_index
760
+ )
761
+
762
+ _response_types_map: Dict[str, Optional[str]] = {
763
+ '200': "BoletoConnection",
764
+ }
765
+ response_data = self.api_client.call_api(
766
+ *_param,
767
+ _request_timeout=_request_timeout
768
+ )
769
+ return response_data.response
770
+
771
+
772
+ def _boleto_connection_create_from_item_serialize(
773
+ self,
774
+ create_boleto_connection_from_item,
775
+ _request_auth,
776
+ _content_type,
777
+ _headers,
778
+ _host_index,
779
+ ) -> RequestSerialized:
780
+
781
+ _host = None
782
+
783
+ _collection_formats: Dict[str, str] = {
784
+ }
785
+
786
+ _path_params: Dict[str, str] = {}
787
+ _query_params: List[Tuple[str, str]] = []
788
+ _header_params: Dict[str, Optional[str]] = _headers or {}
789
+ _form_params: List[Tuple[str, str]] = []
790
+ _files: Dict[
791
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
792
+ ] = {}
793
+ _body_params: Optional[bytes] = None
794
+
795
+ # process the path parameters
796
+ # process the query parameters
797
+ # process the header parameters
798
+ # process the form parameters
799
+ # process the body parameter
800
+ if create_boleto_connection_from_item is not None:
801
+ _body_params = create_boleto_connection_from_item
802
+
803
+
804
+ # set the HTTP header `Accept`
805
+ if 'Accept' not in _header_params:
806
+ _header_params['Accept'] = self.api_client.select_header_accept(
807
+ [
808
+ 'application/json'
809
+ ]
810
+ )
811
+
812
+ # set the HTTP header `Content-Type`
813
+ if _content_type:
814
+ _header_params['Content-Type'] = _content_type
815
+ else:
816
+ _default_content_type = (
817
+ self.api_client.select_header_content_type(
818
+ [
819
+ 'application/json'
820
+ ]
821
+ )
822
+ )
823
+ if _default_content_type is not None:
824
+ _header_params['Content-Type'] = _default_content_type
825
+
826
+ # authentication setting
827
+ _auth_settings: List[str] = [
828
+ 'default'
829
+ ]
830
+
831
+ return self.api_client.param_serialize(
832
+ method='POST',
833
+ resource_path='/boleto-connections/from-item',
834
+ path_params=_path_params,
835
+ query_params=_query_params,
836
+ header_params=_header_params,
837
+ body=_body_params,
838
+ post_params=_form_params,
839
+ files=_files,
840
+ auth_settings=_auth_settings,
841
+ collection_formats=_collection_formats,
842
+ _host=_host,
843
+ _request_auth=_request_auth
844
+ )
845
+
846
+
847
+
848
+
849
+ @validate_call
850
+ def boleto_create(
851
+ self,
852
+ create_boleto: CreateBoleto,
853
+ _request_timeout: Union[
854
+ None,
855
+ Annotated[StrictFloat, Field(gt=0)],
856
+ Tuple[
857
+ Annotated[StrictFloat, Field(gt=0)],
858
+ Annotated[StrictFloat, Field(gt=0)]
859
+ ]
860
+ ] = None,
861
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
862
+ _content_type: Optional[StrictStr] = None,
863
+ _headers: Optional[Dict[StrictStr, Any]] = None,
864
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
865
+ ) -> IssuedBoleto:
866
+ """Issue Boleto
867
+
868
+
869
+ :param create_boleto: (required)
870
+ :type create_boleto: CreateBoleto
871
+ :param _request_timeout: timeout setting for this request. If one
872
+ number provided, it will be total request
873
+ timeout. It can also be a pair (tuple) of
874
+ (connection, read) timeouts.
875
+ :type _request_timeout: int, tuple(int, int), optional
876
+ :param _request_auth: set to override the auth_settings for an a single
877
+ request; this effectively ignores the
878
+ authentication in the spec for a single request.
879
+ :type _request_auth: dict, optional
880
+ :param _content_type: force content-type for the request.
881
+ :type _content_type: str, Optional
882
+ :param _headers: set to override the headers for a single
883
+ request; this effectively ignores the headers
884
+ in the spec for a single request.
885
+ :type _headers: dict, optional
886
+ :param _host_index: set to override the host_index for a single
887
+ request; this effectively ignores the host_index
888
+ in the spec for a single request.
889
+ :type _host_index: int, optional
890
+ :return: Returns the result object.
891
+ """ # noqa: E501
892
+
893
+ _param = self._boleto_create_serialize(
894
+ create_boleto=create_boleto,
895
+ _request_auth=_request_auth,
896
+ _content_type=_content_type,
897
+ _headers=_headers,
898
+ _host_index=_host_index
899
+ )
900
+
901
+ _response_types_map: Dict[str, Optional[str]] = {
902
+ '200': "IssuedBoleto",
903
+ }
904
+ response_data = self.api_client.call_api(
905
+ *_param,
906
+ _request_timeout=_request_timeout
907
+ )
908
+ response_data.read()
909
+ return self.api_client.response_deserialize(
910
+ response_data=response_data,
911
+ response_types_map=_response_types_map,
912
+ ).data
913
+
914
+
915
+ @validate_call
916
+ def boleto_create_with_http_info(
917
+ self,
918
+ create_boleto: CreateBoleto,
919
+ _request_timeout: Union[
920
+ None,
921
+ Annotated[StrictFloat, Field(gt=0)],
922
+ Tuple[
923
+ Annotated[StrictFloat, Field(gt=0)],
924
+ Annotated[StrictFloat, Field(gt=0)]
925
+ ]
926
+ ] = None,
927
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
928
+ _content_type: Optional[StrictStr] = None,
929
+ _headers: Optional[Dict[StrictStr, Any]] = None,
930
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
931
+ ) -> ApiResponse[IssuedBoleto]:
932
+ """Issue Boleto
933
+
934
+
935
+ :param create_boleto: (required)
936
+ :type create_boleto: CreateBoleto
937
+ :param _request_timeout: timeout setting for this request. If one
938
+ number provided, it will be total request
939
+ timeout. It can also be a pair (tuple) of
940
+ (connection, read) timeouts.
941
+ :type _request_timeout: int, tuple(int, int), optional
942
+ :param _request_auth: set to override the auth_settings for an a single
943
+ request; this effectively ignores the
944
+ authentication in the spec for a single request.
945
+ :type _request_auth: dict, optional
946
+ :param _content_type: force content-type for the request.
947
+ :type _content_type: str, Optional
948
+ :param _headers: set to override the headers for a single
949
+ request; this effectively ignores the headers
950
+ in the spec for a single request.
951
+ :type _headers: dict, optional
952
+ :param _host_index: set to override the host_index for a single
953
+ request; this effectively ignores the host_index
954
+ in the spec for a single request.
955
+ :type _host_index: int, optional
956
+ :return: Returns the result object.
957
+ """ # noqa: E501
958
+
959
+ _param = self._boleto_create_serialize(
960
+ create_boleto=create_boleto,
961
+ _request_auth=_request_auth,
962
+ _content_type=_content_type,
963
+ _headers=_headers,
964
+ _host_index=_host_index
965
+ )
966
+
967
+ _response_types_map: Dict[str, Optional[str]] = {
968
+ '200': "IssuedBoleto",
969
+ }
970
+ response_data = self.api_client.call_api(
971
+ *_param,
972
+ _request_timeout=_request_timeout
973
+ )
974
+ response_data.read()
975
+ return self.api_client.response_deserialize(
976
+ response_data=response_data,
977
+ response_types_map=_response_types_map,
978
+ )
979
+
980
+
981
+ @validate_call
982
+ def boleto_create_without_preload_content(
983
+ self,
984
+ create_boleto: CreateBoleto,
985
+ _request_timeout: Union[
986
+ None,
987
+ Annotated[StrictFloat, Field(gt=0)],
988
+ Tuple[
989
+ Annotated[StrictFloat, Field(gt=0)],
990
+ Annotated[StrictFloat, Field(gt=0)]
991
+ ]
992
+ ] = None,
993
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
994
+ _content_type: Optional[StrictStr] = None,
995
+ _headers: Optional[Dict[StrictStr, Any]] = None,
996
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
997
+ ) -> RESTResponseType:
998
+ """Issue Boleto
999
+
1000
+
1001
+ :param create_boleto: (required)
1002
+ :type create_boleto: CreateBoleto
1003
+ :param _request_timeout: timeout setting for this request. If one
1004
+ number provided, it will be total request
1005
+ timeout. It can also be a pair (tuple) of
1006
+ (connection, read) timeouts.
1007
+ :type _request_timeout: int, tuple(int, int), optional
1008
+ :param _request_auth: set to override the auth_settings for an a single
1009
+ request; this effectively ignores the
1010
+ authentication in the spec for a single request.
1011
+ :type _request_auth: dict, optional
1012
+ :param _content_type: force content-type for the request.
1013
+ :type _content_type: str, Optional
1014
+ :param _headers: set to override the headers for a single
1015
+ request; this effectively ignores the headers
1016
+ in the spec for a single request.
1017
+ :type _headers: dict, optional
1018
+ :param _host_index: set to override the host_index for a single
1019
+ request; this effectively ignores the host_index
1020
+ in the spec for a single request.
1021
+ :type _host_index: int, optional
1022
+ :return: Returns the result object.
1023
+ """ # noqa: E501
1024
+
1025
+ _param = self._boleto_create_serialize(
1026
+ create_boleto=create_boleto,
1027
+ _request_auth=_request_auth,
1028
+ _content_type=_content_type,
1029
+ _headers=_headers,
1030
+ _host_index=_host_index
1031
+ )
1032
+
1033
+ _response_types_map: Dict[str, Optional[str]] = {
1034
+ '200': "IssuedBoleto",
1035
+ }
1036
+ response_data = self.api_client.call_api(
1037
+ *_param,
1038
+ _request_timeout=_request_timeout
1039
+ )
1040
+ return response_data.response
1041
+
1042
+
1043
+ def _boleto_create_serialize(
1044
+ self,
1045
+ create_boleto,
1046
+ _request_auth,
1047
+ _content_type,
1048
+ _headers,
1049
+ _host_index,
1050
+ ) -> RequestSerialized:
1051
+
1052
+ _host = None
1053
+
1054
+ _collection_formats: Dict[str, str] = {
1055
+ }
1056
+
1057
+ _path_params: Dict[str, str] = {}
1058
+ _query_params: List[Tuple[str, str]] = []
1059
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1060
+ _form_params: List[Tuple[str, str]] = []
1061
+ _files: Dict[
1062
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1063
+ ] = {}
1064
+ _body_params: Optional[bytes] = None
1065
+
1066
+ # process the path parameters
1067
+ # process the query parameters
1068
+ # process the header parameters
1069
+ # process the form parameters
1070
+ # process the body parameter
1071
+ if create_boleto is not None:
1072
+ _body_params = create_boleto
1073
+
1074
+
1075
+ # set the HTTP header `Accept`
1076
+ if 'Accept' not in _header_params:
1077
+ _header_params['Accept'] = self.api_client.select_header_accept(
1078
+ [
1079
+ 'application/json'
1080
+ ]
1081
+ )
1082
+
1083
+ # set the HTTP header `Content-Type`
1084
+ if _content_type:
1085
+ _header_params['Content-Type'] = _content_type
1086
+ else:
1087
+ _default_content_type = (
1088
+ self.api_client.select_header_content_type(
1089
+ [
1090
+ 'application/json'
1091
+ ]
1092
+ )
1093
+ )
1094
+ if _default_content_type is not None:
1095
+ _header_params['Content-Type'] = _default_content_type
1096
+
1097
+ # authentication setting
1098
+ _auth_settings: List[str] = [
1099
+ 'default'
1100
+ ]
1101
+
1102
+ return self.api_client.param_serialize(
1103
+ method='POST',
1104
+ resource_path='/boletos',
1105
+ path_params=_path_params,
1106
+ query_params=_query_params,
1107
+ header_params=_header_params,
1108
+ body=_body_params,
1109
+ post_params=_form_params,
1110
+ files=_files,
1111
+ auth_settings=_auth_settings,
1112
+ collection_formats=_collection_formats,
1113
+ _host=_host,
1114
+ _request_auth=_request_auth
1115
+ )
1116
+
1117
+
1118
+
1119
+
1120
+ @validate_call
1121
+ def boleto_get(
1122
+ self,
1123
+ id: Annotated[StrictStr, Field(description="Boleto primary identifier")],
1124
+ _request_timeout: Union[
1125
+ None,
1126
+ Annotated[StrictFloat, Field(gt=0)],
1127
+ Tuple[
1128
+ Annotated[StrictFloat, Field(gt=0)],
1129
+ Annotated[StrictFloat, Field(gt=0)]
1130
+ ]
1131
+ ] = None,
1132
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1133
+ _content_type: Optional[StrictStr] = None,
1134
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1135
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1136
+ ) -> IssuedBoleto:
1137
+ """Get Boleto
1138
+
1139
+
1140
+ :param id: Boleto primary identifier (required)
1141
+ :type id: str
1142
+ :param _request_timeout: timeout setting for this request. If one
1143
+ number provided, it will be total request
1144
+ timeout. It can also be a pair (tuple) of
1145
+ (connection, read) timeouts.
1146
+ :type _request_timeout: int, tuple(int, int), optional
1147
+ :param _request_auth: set to override the auth_settings for an a single
1148
+ request; this effectively ignores the
1149
+ authentication in the spec for a single request.
1150
+ :type _request_auth: dict, optional
1151
+ :param _content_type: force content-type for the request.
1152
+ :type _content_type: str, Optional
1153
+ :param _headers: set to override the headers for a single
1154
+ request; this effectively ignores the headers
1155
+ in the spec for a single request.
1156
+ :type _headers: dict, optional
1157
+ :param _host_index: set to override the host_index for a single
1158
+ request; this effectively ignores the host_index
1159
+ in the spec for a single request.
1160
+ :type _host_index: int, optional
1161
+ :return: Returns the result object.
1162
+ """ # noqa: E501
1163
+
1164
+ _param = self._boleto_get_serialize(
1165
+ id=id,
1166
+ _request_auth=_request_auth,
1167
+ _content_type=_content_type,
1168
+ _headers=_headers,
1169
+ _host_index=_host_index
1170
+ )
1171
+
1172
+ _response_types_map: Dict[str, Optional[str]] = {
1173
+ '200': "IssuedBoleto",
1174
+ }
1175
+ response_data = self.api_client.call_api(
1176
+ *_param,
1177
+ _request_timeout=_request_timeout
1178
+ )
1179
+ response_data.read()
1180
+ return self.api_client.response_deserialize(
1181
+ response_data=response_data,
1182
+ response_types_map=_response_types_map,
1183
+ ).data
1184
+
1185
+
1186
+ @validate_call
1187
+ def boleto_get_with_http_info(
1188
+ self,
1189
+ id: Annotated[StrictStr, Field(description="Boleto primary identifier")],
1190
+ _request_timeout: Union[
1191
+ None,
1192
+ Annotated[StrictFloat, Field(gt=0)],
1193
+ Tuple[
1194
+ Annotated[StrictFloat, Field(gt=0)],
1195
+ Annotated[StrictFloat, Field(gt=0)]
1196
+ ]
1197
+ ] = None,
1198
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1199
+ _content_type: Optional[StrictStr] = None,
1200
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1201
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1202
+ ) -> ApiResponse[IssuedBoleto]:
1203
+ """Get Boleto
1204
+
1205
+
1206
+ :param id: Boleto primary identifier (required)
1207
+ :type id: str
1208
+ :param _request_timeout: timeout setting for this request. If one
1209
+ number provided, it will be total request
1210
+ timeout. It can also be a pair (tuple) of
1211
+ (connection, read) timeouts.
1212
+ :type _request_timeout: int, tuple(int, int), optional
1213
+ :param _request_auth: set to override the auth_settings for an a single
1214
+ request; this effectively ignores the
1215
+ authentication in the spec for a single request.
1216
+ :type _request_auth: dict, optional
1217
+ :param _content_type: force content-type for the request.
1218
+ :type _content_type: str, Optional
1219
+ :param _headers: set to override the headers for a single
1220
+ request; this effectively ignores the headers
1221
+ in the spec for a single request.
1222
+ :type _headers: dict, optional
1223
+ :param _host_index: set to override the host_index for a single
1224
+ request; this effectively ignores the host_index
1225
+ in the spec for a single request.
1226
+ :type _host_index: int, optional
1227
+ :return: Returns the result object.
1228
+ """ # noqa: E501
1229
+
1230
+ _param = self._boleto_get_serialize(
1231
+ id=id,
1232
+ _request_auth=_request_auth,
1233
+ _content_type=_content_type,
1234
+ _headers=_headers,
1235
+ _host_index=_host_index
1236
+ )
1237
+
1238
+ _response_types_map: Dict[str, Optional[str]] = {
1239
+ '200': "IssuedBoleto",
1240
+ }
1241
+ response_data = self.api_client.call_api(
1242
+ *_param,
1243
+ _request_timeout=_request_timeout
1244
+ )
1245
+ response_data.read()
1246
+ return self.api_client.response_deserialize(
1247
+ response_data=response_data,
1248
+ response_types_map=_response_types_map,
1249
+ )
1250
+
1251
+
1252
+ @validate_call
1253
+ def boleto_get_without_preload_content(
1254
+ self,
1255
+ id: Annotated[StrictStr, Field(description="Boleto primary identifier")],
1256
+ _request_timeout: Union[
1257
+ None,
1258
+ Annotated[StrictFloat, Field(gt=0)],
1259
+ Tuple[
1260
+ Annotated[StrictFloat, Field(gt=0)],
1261
+ Annotated[StrictFloat, Field(gt=0)]
1262
+ ]
1263
+ ] = None,
1264
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1265
+ _content_type: Optional[StrictStr] = None,
1266
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1267
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1268
+ ) -> RESTResponseType:
1269
+ """Get Boleto
1270
+
1271
+
1272
+ :param id: Boleto primary identifier (required)
1273
+ :type id: str
1274
+ :param _request_timeout: timeout setting for this request. If one
1275
+ number provided, it will be total request
1276
+ timeout. It can also be a pair (tuple) of
1277
+ (connection, read) timeouts.
1278
+ :type _request_timeout: int, tuple(int, int), optional
1279
+ :param _request_auth: set to override the auth_settings for an a single
1280
+ request; this effectively ignores the
1281
+ authentication in the spec for a single request.
1282
+ :type _request_auth: dict, optional
1283
+ :param _content_type: force content-type for the request.
1284
+ :type _content_type: str, Optional
1285
+ :param _headers: set to override the headers for a single
1286
+ request; this effectively ignores the headers
1287
+ in the spec for a single request.
1288
+ :type _headers: dict, optional
1289
+ :param _host_index: set to override the host_index for a single
1290
+ request; this effectively ignores the host_index
1291
+ in the spec for a single request.
1292
+ :type _host_index: int, optional
1293
+ :return: Returns the result object.
1294
+ """ # noqa: E501
1295
+
1296
+ _param = self._boleto_get_serialize(
1297
+ id=id,
1298
+ _request_auth=_request_auth,
1299
+ _content_type=_content_type,
1300
+ _headers=_headers,
1301
+ _host_index=_host_index
1302
+ )
1303
+
1304
+ _response_types_map: Dict[str, Optional[str]] = {
1305
+ '200': "IssuedBoleto",
1306
+ }
1307
+ response_data = self.api_client.call_api(
1308
+ *_param,
1309
+ _request_timeout=_request_timeout
1310
+ )
1311
+ return response_data.response
1312
+
1313
+
1314
+ def _boleto_get_serialize(
1315
+ self,
1316
+ id,
1317
+ _request_auth,
1318
+ _content_type,
1319
+ _headers,
1320
+ _host_index,
1321
+ ) -> RequestSerialized:
1322
+
1323
+ _host = None
1324
+
1325
+ _collection_formats: Dict[str, str] = {
1326
+ }
1327
+
1328
+ _path_params: Dict[str, str] = {}
1329
+ _query_params: List[Tuple[str, str]] = []
1330
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1331
+ _form_params: List[Tuple[str, str]] = []
1332
+ _files: Dict[
1333
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1334
+ ] = {}
1335
+ _body_params: Optional[bytes] = None
1336
+
1337
+ # process the path parameters
1338
+ if id is not None:
1339
+ _path_params['id'] = id
1340
+ # process the query parameters
1341
+ # process the header parameters
1342
+ # process the form parameters
1343
+ # process the body parameter
1344
+
1345
+
1346
+ # set the HTTP header `Accept`
1347
+ if 'Accept' not in _header_params:
1348
+ _header_params['Accept'] = self.api_client.select_header_accept(
1349
+ [
1350
+ 'application/json'
1351
+ ]
1352
+ )
1353
+
1354
+
1355
+ # authentication setting
1356
+ _auth_settings: List[str] = [
1357
+ 'default'
1358
+ ]
1359
+
1360
+ return self.api_client.param_serialize(
1361
+ method='GET',
1362
+ resource_path='/boletos/{id}',
1363
+ path_params=_path_params,
1364
+ query_params=_query_params,
1365
+ header_params=_header_params,
1366
+ body=_body_params,
1367
+ post_params=_form_params,
1368
+ files=_files,
1369
+ auth_settings=_auth_settings,
1370
+ collection_formats=_collection_formats,
1371
+ _host=_host,
1372
+ _request_auth=_request_auth
1373
+ )
1374
+
1375
+