pluggy-sdk 1.0.0.post43__py3-none-any.whl → 1.0.0.post48__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.
- pluggy_sdk/__init__.py +190 -172
- pluggy_sdk/api/__init__.py +1 -0
- pluggy_sdk/api/automatic_pix_api.py +1965 -0
- pluggy_sdk/api/payment_customer_api.py +68 -0
- pluggy_sdk/api/payment_recipient_api.py +52 -1
- pluggy_sdk/api/payment_request_api.py +123 -276
- pluggy_sdk/api/payment_schedule_api.py +3 -3
- pluggy_sdk/api_client.py +5 -1
- pluggy_sdk/configuration.py +1 -1
- pluggy_sdk/models/__init__.py +9 -1
- pluggy_sdk/models/additional_card.py +88 -0
- pluggy_sdk/models/automatic_pix_first_payment.py +93 -0
- pluggy_sdk/models/automatic_pix_payment.py +112 -0
- pluggy_sdk/models/create_automatic_pix_payment_request.py +128 -0
- pluggy_sdk/models/create_payment_recipient.py +4 -4
- pluggy_sdk/models/credit_data.py +22 -2
- pluggy_sdk/models/disaggregated_credit_limit.py +110 -0
- pluggy_sdk/models/payment_intent.py +2 -2
- pluggy_sdk/models/payment_intent_automatic_pix.py +114 -0
- pluggy_sdk/models/payment_intent_parameter.py +4 -2
- pluggy_sdk/models/payment_request.py +10 -4
- pluggy_sdk/models/payment_request_get_automatic_pix_schedules200_response.py +102 -0
- pluggy_sdk/models/retry_automatic_pix_payment_request.py +89 -0
- pluggy_sdk/models/schedule_automatic_pix_payment_request.py +93 -0
- pluggy_sdk/models/schedule_payment.py +3 -1
- pluggy_sdk/models/update_payment_recipient.py +4 -4
- {pluggy_sdk-1.0.0.post43.dist-info → pluggy_sdk-1.0.0.post48.dist-info}/METADATA +25 -16
- {pluggy_sdk-1.0.0.post43.dist-info → pluggy_sdk-1.0.0.post48.dist-info}/RECORD +30 -20
- {pluggy_sdk-1.0.0.post43.dist-info → pluggy_sdk-1.0.0.post48.dist-info}/WHEEL +1 -1
- {pluggy_sdk-1.0.0.post43.dist-info → pluggy_sdk-1.0.0.post48.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,1965 @@
|
|
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 import Any, Dict
|
22
|
+
from typing_extensions import Annotated
|
23
|
+
from pluggy_sdk.models.automatic_pix_payment import AutomaticPixPayment
|
24
|
+
from pluggy_sdk.models.create_automatic_pix_payment_request import CreateAutomaticPixPaymentRequest
|
25
|
+
from pluggy_sdk.models.payment_request import PaymentRequest
|
26
|
+
from pluggy_sdk.models.payment_request_get_automatic_pix_schedules200_response import PaymentRequestGetAutomaticPixSchedules200Response
|
27
|
+
from pluggy_sdk.models.retry_automatic_pix_payment_request import RetryAutomaticPixPaymentRequest
|
28
|
+
from pluggy_sdk.models.schedule_automatic_pix_payment_request import ScheduleAutomaticPixPaymentRequest
|
29
|
+
|
30
|
+
from pluggy_sdk.api_client import ApiClient, RequestSerialized
|
31
|
+
from pluggy_sdk.api_response import ApiResponse
|
32
|
+
from pluggy_sdk.rest import RESTResponseType
|
33
|
+
|
34
|
+
|
35
|
+
class AutomaticPIXApi:
|
36
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
37
|
+
Ref: https://openapi-generator.tech
|
38
|
+
|
39
|
+
Do not edit the class manually.
|
40
|
+
"""
|
41
|
+
|
42
|
+
def __init__(self, api_client=None) -> None:
|
43
|
+
if api_client is None:
|
44
|
+
api_client = ApiClient.get_default()
|
45
|
+
self.api_client = api_client
|
46
|
+
|
47
|
+
|
48
|
+
@validate_call
|
49
|
+
def cancel_automatic_pix_schedule(
|
50
|
+
self,
|
51
|
+
id: Annotated[StrictStr, Field(description="Payment request primary identifier")],
|
52
|
+
schedule_id: Annotated[StrictStr, Field(description="Automatic PIX schedule primary identifier")],
|
53
|
+
_request_timeout: Union[
|
54
|
+
None,
|
55
|
+
Annotated[StrictFloat, Field(gt=0)],
|
56
|
+
Tuple[
|
57
|
+
Annotated[StrictFloat, Field(gt=0)],
|
58
|
+
Annotated[StrictFloat, Field(gt=0)]
|
59
|
+
]
|
60
|
+
] = None,
|
61
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
62
|
+
_content_type: Optional[StrictStr] = None,
|
63
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
64
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
65
|
+
) -> None:
|
66
|
+
"""Cancel an Automatic PIX schedule
|
67
|
+
|
68
|
+
Cancels an Automatic PIX schedule.
|
69
|
+
|
70
|
+
:param id: Payment request primary identifier (required)
|
71
|
+
:type id: str
|
72
|
+
:param schedule_id: Automatic PIX schedule primary identifier (required)
|
73
|
+
:type schedule_id: str
|
74
|
+
:param _request_timeout: timeout setting for this request. If one
|
75
|
+
number provided, it will be total request
|
76
|
+
timeout. It can also be a pair (tuple) of
|
77
|
+
(connection, read) timeouts.
|
78
|
+
:type _request_timeout: int, tuple(int, int), optional
|
79
|
+
:param _request_auth: set to override the auth_settings for an a single
|
80
|
+
request; this effectively ignores the
|
81
|
+
authentication in the spec for a single request.
|
82
|
+
:type _request_auth: dict, optional
|
83
|
+
:param _content_type: force content-type for the request.
|
84
|
+
:type _content_type: str, Optional
|
85
|
+
:param _headers: set to override the headers for a single
|
86
|
+
request; this effectively ignores the headers
|
87
|
+
in the spec for a single request.
|
88
|
+
:type _headers: dict, optional
|
89
|
+
:param _host_index: set to override the host_index for a single
|
90
|
+
request; this effectively ignores the host_index
|
91
|
+
in the spec for a single request.
|
92
|
+
:type _host_index: int, optional
|
93
|
+
:return: Returns the result object.
|
94
|
+
""" # noqa: E501
|
95
|
+
|
96
|
+
_param = self._cancel_automatic_pix_schedule_serialize(
|
97
|
+
id=id,
|
98
|
+
schedule_id=schedule_id,
|
99
|
+
_request_auth=_request_auth,
|
100
|
+
_content_type=_content_type,
|
101
|
+
_headers=_headers,
|
102
|
+
_host_index=_host_index
|
103
|
+
)
|
104
|
+
|
105
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
106
|
+
'204': None,
|
107
|
+
}
|
108
|
+
response_data = self.api_client.call_api(
|
109
|
+
*_param,
|
110
|
+
_request_timeout=_request_timeout
|
111
|
+
)
|
112
|
+
response_data.read()
|
113
|
+
return self.api_client.response_deserialize(
|
114
|
+
response_data=response_data,
|
115
|
+
response_types_map=_response_types_map,
|
116
|
+
).data
|
117
|
+
|
118
|
+
|
119
|
+
@validate_call
|
120
|
+
def cancel_automatic_pix_schedule_with_http_info(
|
121
|
+
self,
|
122
|
+
id: Annotated[StrictStr, Field(description="Payment request primary identifier")],
|
123
|
+
schedule_id: Annotated[StrictStr, Field(description="Automatic PIX schedule primary identifier")],
|
124
|
+
_request_timeout: Union[
|
125
|
+
None,
|
126
|
+
Annotated[StrictFloat, Field(gt=0)],
|
127
|
+
Tuple[
|
128
|
+
Annotated[StrictFloat, Field(gt=0)],
|
129
|
+
Annotated[StrictFloat, Field(gt=0)]
|
130
|
+
]
|
131
|
+
] = None,
|
132
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
133
|
+
_content_type: Optional[StrictStr] = None,
|
134
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
135
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
136
|
+
) -> ApiResponse[None]:
|
137
|
+
"""Cancel an Automatic PIX schedule
|
138
|
+
|
139
|
+
Cancels an Automatic PIX schedule.
|
140
|
+
|
141
|
+
:param id: Payment request primary identifier (required)
|
142
|
+
:type id: str
|
143
|
+
:param schedule_id: Automatic PIX schedule primary identifier (required)
|
144
|
+
:type schedule_id: str
|
145
|
+
:param _request_timeout: timeout setting for this request. If one
|
146
|
+
number provided, it will be total request
|
147
|
+
timeout. It can also be a pair (tuple) of
|
148
|
+
(connection, read) timeouts.
|
149
|
+
:type _request_timeout: int, tuple(int, int), optional
|
150
|
+
:param _request_auth: set to override the auth_settings for an a single
|
151
|
+
request; this effectively ignores the
|
152
|
+
authentication in the spec for a single request.
|
153
|
+
:type _request_auth: dict, optional
|
154
|
+
:param _content_type: force content-type for the request.
|
155
|
+
:type _content_type: str, Optional
|
156
|
+
:param _headers: set to override the headers for a single
|
157
|
+
request; this effectively ignores the headers
|
158
|
+
in the spec for a single request.
|
159
|
+
:type _headers: dict, optional
|
160
|
+
:param _host_index: set to override the host_index for a single
|
161
|
+
request; this effectively ignores the host_index
|
162
|
+
in the spec for a single request.
|
163
|
+
:type _host_index: int, optional
|
164
|
+
:return: Returns the result object.
|
165
|
+
""" # noqa: E501
|
166
|
+
|
167
|
+
_param = self._cancel_automatic_pix_schedule_serialize(
|
168
|
+
id=id,
|
169
|
+
schedule_id=schedule_id,
|
170
|
+
_request_auth=_request_auth,
|
171
|
+
_content_type=_content_type,
|
172
|
+
_headers=_headers,
|
173
|
+
_host_index=_host_index
|
174
|
+
)
|
175
|
+
|
176
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
177
|
+
'204': None,
|
178
|
+
}
|
179
|
+
response_data = self.api_client.call_api(
|
180
|
+
*_param,
|
181
|
+
_request_timeout=_request_timeout
|
182
|
+
)
|
183
|
+
response_data.read()
|
184
|
+
return self.api_client.response_deserialize(
|
185
|
+
response_data=response_data,
|
186
|
+
response_types_map=_response_types_map,
|
187
|
+
)
|
188
|
+
|
189
|
+
|
190
|
+
@validate_call
|
191
|
+
def cancel_automatic_pix_schedule_without_preload_content(
|
192
|
+
self,
|
193
|
+
id: Annotated[StrictStr, Field(description="Payment request primary identifier")],
|
194
|
+
schedule_id: Annotated[StrictStr, Field(description="Automatic PIX schedule primary identifier")],
|
195
|
+
_request_timeout: Union[
|
196
|
+
None,
|
197
|
+
Annotated[StrictFloat, Field(gt=0)],
|
198
|
+
Tuple[
|
199
|
+
Annotated[StrictFloat, Field(gt=0)],
|
200
|
+
Annotated[StrictFloat, Field(gt=0)]
|
201
|
+
]
|
202
|
+
] = None,
|
203
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
204
|
+
_content_type: Optional[StrictStr] = None,
|
205
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
206
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
207
|
+
) -> RESTResponseType:
|
208
|
+
"""Cancel an Automatic PIX schedule
|
209
|
+
|
210
|
+
Cancels an Automatic PIX schedule.
|
211
|
+
|
212
|
+
:param id: Payment request primary identifier (required)
|
213
|
+
:type id: str
|
214
|
+
:param schedule_id: Automatic PIX schedule primary identifier (required)
|
215
|
+
:type schedule_id: str
|
216
|
+
:param _request_timeout: timeout setting for this request. If one
|
217
|
+
number provided, it will be total request
|
218
|
+
timeout. It can also be a pair (tuple) of
|
219
|
+
(connection, read) timeouts.
|
220
|
+
:type _request_timeout: int, tuple(int, int), optional
|
221
|
+
:param _request_auth: set to override the auth_settings for an a single
|
222
|
+
request; this effectively ignores the
|
223
|
+
authentication in the spec for a single request.
|
224
|
+
:type _request_auth: dict, optional
|
225
|
+
:param _content_type: force content-type for the request.
|
226
|
+
:type _content_type: str, Optional
|
227
|
+
:param _headers: set to override the headers for a single
|
228
|
+
request; this effectively ignores the headers
|
229
|
+
in the spec for a single request.
|
230
|
+
:type _headers: dict, optional
|
231
|
+
:param _host_index: set to override the host_index for a single
|
232
|
+
request; this effectively ignores the host_index
|
233
|
+
in the spec for a single request.
|
234
|
+
:type _host_index: int, optional
|
235
|
+
:return: Returns the result object.
|
236
|
+
""" # noqa: E501
|
237
|
+
|
238
|
+
_param = self._cancel_automatic_pix_schedule_serialize(
|
239
|
+
id=id,
|
240
|
+
schedule_id=schedule_id,
|
241
|
+
_request_auth=_request_auth,
|
242
|
+
_content_type=_content_type,
|
243
|
+
_headers=_headers,
|
244
|
+
_host_index=_host_index
|
245
|
+
)
|
246
|
+
|
247
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
248
|
+
'204': None,
|
249
|
+
}
|
250
|
+
response_data = self.api_client.call_api(
|
251
|
+
*_param,
|
252
|
+
_request_timeout=_request_timeout
|
253
|
+
)
|
254
|
+
return response_data.response
|
255
|
+
|
256
|
+
|
257
|
+
def _cancel_automatic_pix_schedule_serialize(
|
258
|
+
self,
|
259
|
+
id,
|
260
|
+
schedule_id,
|
261
|
+
_request_auth,
|
262
|
+
_content_type,
|
263
|
+
_headers,
|
264
|
+
_host_index,
|
265
|
+
) -> RequestSerialized:
|
266
|
+
|
267
|
+
_host = None
|
268
|
+
|
269
|
+
_collection_formats: Dict[str, str] = {
|
270
|
+
}
|
271
|
+
|
272
|
+
_path_params: Dict[str, str] = {}
|
273
|
+
_query_params: List[Tuple[str, str]] = []
|
274
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
275
|
+
_form_params: List[Tuple[str, str]] = []
|
276
|
+
_files: Dict[
|
277
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
278
|
+
] = {}
|
279
|
+
_body_params: Optional[bytes] = None
|
280
|
+
|
281
|
+
# process the path parameters
|
282
|
+
if id is not None:
|
283
|
+
_path_params['id'] = id
|
284
|
+
if schedule_id is not None:
|
285
|
+
_path_params['scheduleId'] = schedule_id
|
286
|
+
# process the query parameters
|
287
|
+
# process the header parameters
|
288
|
+
# process the form parameters
|
289
|
+
# process the body parameter
|
290
|
+
|
291
|
+
|
292
|
+
|
293
|
+
|
294
|
+
# authentication setting
|
295
|
+
_auth_settings: List[str] = [
|
296
|
+
'default'
|
297
|
+
]
|
298
|
+
|
299
|
+
return self.api_client.param_serialize(
|
300
|
+
method='POST',
|
301
|
+
resource_path='/payments/requests/{id}/automatic-pix/schedules/{scheduleId}/cancel',
|
302
|
+
path_params=_path_params,
|
303
|
+
query_params=_query_params,
|
304
|
+
header_params=_header_params,
|
305
|
+
body=_body_params,
|
306
|
+
post_params=_form_params,
|
307
|
+
files=_files,
|
308
|
+
auth_settings=_auth_settings,
|
309
|
+
collection_formats=_collection_formats,
|
310
|
+
_host=_host,
|
311
|
+
_request_auth=_request_auth
|
312
|
+
)
|
313
|
+
|
314
|
+
|
315
|
+
|
316
|
+
|
317
|
+
@validate_call
|
318
|
+
def payment_request_cancel_automatic_pix_consent(
|
319
|
+
self,
|
320
|
+
id: Annotated[StrictStr, Field(description="Payment request primary identifier")],
|
321
|
+
_request_timeout: Union[
|
322
|
+
None,
|
323
|
+
Annotated[StrictFloat, Field(gt=0)],
|
324
|
+
Tuple[
|
325
|
+
Annotated[StrictFloat, Field(gt=0)],
|
326
|
+
Annotated[StrictFloat, Field(gt=0)]
|
327
|
+
]
|
328
|
+
] = None,
|
329
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
330
|
+
_content_type: Optional[StrictStr] = None,
|
331
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
332
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
333
|
+
) -> None:
|
334
|
+
"""Cancel an automatic PIX consent
|
335
|
+
|
336
|
+
Cancels an automatic PIX consent
|
337
|
+
|
338
|
+
:param id: Payment request primary identifier (required)
|
339
|
+
:type id: str
|
340
|
+
:param _request_timeout: timeout setting for this request. If one
|
341
|
+
number provided, it will be total request
|
342
|
+
timeout. It can also be a pair (tuple) of
|
343
|
+
(connection, read) timeouts.
|
344
|
+
:type _request_timeout: int, tuple(int, int), optional
|
345
|
+
:param _request_auth: set to override the auth_settings for an a single
|
346
|
+
request; this effectively ignores the
|
347
|
+
authentication in the spec for a single request.
|
348
|
+
:type _request_auth: dict, optional
|
349
|
+
:param _content_type: force content-type for the request.
|
350
|
+
:type _content_type: str, Optional
|
351
|
+
:param _headers: set to override the headers for a single
|
352
|
+
request; this effectively ignores the headers
|
353
|
+
in the spec for a single request.
|
354
|
+
:type _headers: dict, optional
|
355
|
+
:param _host_index: set to override the host_index for a single
|
356
|
+
request; this effectively ignores the host_index
|
357
|
+
in the spec for a single request.
|
358
|
+
:type _host_index: int, optional
|
359
|
+
:return: Returns the result object.
|
360
|
+
""" # noqa: E501
|
361
|
+
|
362
|
+
_param = self._payment_request_cancel_automatic_pix_consent_serialize(
|
363
|
+
id=id,
|
364
|
+
_request_auth=_request_auth,
|
365
|
+
_content_type=_content_type,
|
366
|
+
_headers=_headers,
|
367
|
+
_host_index=_host_index
|
368
|
+
)
|
369
|
+
|
370
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
371
|
+
'204': None,
|
372
|
+
}
|
373
|
+
response_data = self.api_client.call_api(
|
374
|
+
*_param,
|
375
|
+
_request_timeout=_request_timeout
|
376
|
+
)
|
377
|
+
response_data.read()
|
378
|
+
return self.api_client.response_deserialize(
|
379
|
+
response_data=response_data,
|
380
|
+
response_types_map=_response_types_map,
|
381
|
+
).data
|
382
|
+
|
383
|
+
|
384
|
+
@validate_call
|
385
|
+
def payment_request_cancel_automatic_pix_consent_with_http_info(
|
386
|
+
self,
|
387
|
+
id: Annotated[StrictStr, Field(description="Payment request primary identifier")],
|
388
|
+
_request_timeout: Union[
|
389
|
+
None,
|
390
|
+
Annotated[StrictFloat, Field(gt=0)],
|
391
|
+
Tuple[
|
392
|
+
Annotated[StrictFloat, Field(gt=0)],
|
393
|
+
Annotated[StrictFloat, Field(gt=0)]
|
394
|
+
]
|
395
|
+
] = None,
|
396
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
397
|
+
_content_type: Optional[StrictStr] = None,
|
398
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
399
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
400
|
+
) -> ApiResponse[None]:
|
401
|
+
"""Cancel an automatic PIX consent
|
402
|
+
|
403
|
+
Cancels an automatic PIX consent
|
404
|
+
|
405
|
+
:param id: Payment request primary identifier (required)
|
406
|
+
:type id: str
|
407
|
+
:param _request_timeout: timeout setting for this request. If one
|
408
|
+
number provided, it will be total request
|
409
|
+
timeout. It can also be a pair (tuple) of
|
410
|
+
(connection, read) timeouts.
|
411
|
+
:type _request_timeout: int, tuple(int, int), optional
|
412
|
+
:param _request_auth: set to override the auth_settings for an a single
|
413
|
+
request; this effectively ignores the
|
414
|
+
authentication in the spec for a single request.
|
415
|
+
:type _request_auth: dict, optional
|
416
|
+
:param _content_type: force content-type for the request.
|
417
|
+
:type _content_type: str, Optional
|
418
|
+
:param _headers: set to override the headers for a single
|
419
|
+
request; this effectively ignores the headers
|
420
|
+
in the spec for a single request.
|
421
|
+
:type _headers: dict, optional
|
422
|
+
:param _host_index: set to override the host_index for a single
|
423
|
+
request; this effectively ignores the host_index
|
424
|
+
in the spec for a single request.
|
425
|
+
:type _host_index: int, optional
|
426
|
+
:return: Returns the result object.
|
427
|
+
""" # noqa: E501
|
428
|
+
|
429
|
+
_param = self._payment_request_cancel_automatic_pix_consent_serialize(
|
430
|
+
id=id,
|
431
|
+
_request_auth=_request_auth,
|
432
|
+
_content_type=_content_type,
|
433
|
+
_headers=_headers,
|
434
|
+
_host_index=_host_index
|
435
|
+
)
|
436
|
+
|
437
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
438
|
+
'204': None,
|
439
|
+
}
|
440
|
+
response_data = self.api_client.call_api(
|
441
|
+
*_param,
|
442
|
+
_request_timeout=_request_timeout
|
443
|
+
)
|
444
|
+
response_data.read()
|
445
|
+
return self.api_client.response_deserialize(
|
446
|
+
response_data=response_data,
|
447
|
+
response_types_map=_response_types_map,
|
448
|
+
)
|
449
|
+
|
450
|
+
|
451
|
+
@validate_call
|
452
|
+
def payment_request_cancel_automatic_pix_consent_without_preload_content(
|
453
|
+
self,
|
454
|
+
id: Annotated[StrictStr, Field(description="Payment request primary identifier")],
|
455
|
+
_request_timeout: Union[
|
456
|
+
None,
|
457
|
+
Annotated[StrictFloat, Field(gt=0)],
|
458
|
+
Tuple[
|
459
|
+
Annotated[StrictFloat, Field(gt=0)],
|
460
|
+
Annotated[StrictFloat, Field(gt=0)]
|
461
|
+
]
|
462
|
+
] = None,
|
463
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
464
|
+
_content_type: Optional[StrictStr] = None,
|
465
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
466
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
467
|
+
) -> RESTResponseType:
|
468
|
+
"""Cancel an automatic PIX consent
|
469
|
+
|
470
|
+
Cancels an automatic PIX consent
|
471
|
+
|
472
|
+
:param id: Payment request primary identifier (required)
|
473
|
+
:type id: str
|
474
|
+
:param _request_timeout: timeout setting for this request. If one
|
475
|
+
number provided, it will be total request
|
476
|
+
timeout. It can also be a pair (tuple) of
|
477
|
+
(connection, read) timeouts.
|
478
|
+
:type _request_timeout: int, tuple(int, int), optional
|
479
|
+
:param _request_auth: set to override the auth_settings for an a single
|
480
|
+
request; this effectively ignores the
|
481
|
+
authentication in the spec for a single request.
|
482
|
+
:type _request_auth: dict, optional
|
483
|
+
:param _content_type: force content-type for the request.
|
484
|
+
:type _content_type: str, Optional
|
485
|
+
:param _headers: set to override the headers for a single
|
486
|
+
request; this effectively ignores the headers
|
487
|
+
in the spec for a single request.
|
488
|
+
:type _headers: dict, optional
|
489
|
+
:param _host_index: set to override the host_index for a single
|
490
|
+
request; this effectively ignores the host_index
|
491
|
+
in the spec for a single request.
|
492
|
+
:type _host_index: int, optional
|
493
|
+
:return: Returns the result object.
|
494
|
+
""" # noqa: E501
|
495
|
+
|
496
|
+
_param = self._payment_request_cancel_automatic_pix_consent_serialize(
|
497
|
+
id=id,
|
498
|
+
_request_auth=_request_auth,
|
499
|
+
_content_type=_content_type,
|
500
|
+
_headers=_headers,
|
501
|
+
_host_index=_host_index
|
502
|
+
)
|
503
|
+
|
504
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
505
|
+
'204': None,
|
506
|
+
}
|
507
|
+
response_data = self.api_client.call_api(
|
508
|
+
*_param,
|
509
|
+
_request_timeout=_request_timeout
|
510
|
+
)
|
511
|
+
return response_data.response
|
512
|
+
|
513
|
+
|
514
|
+
def _payment_request_cancel_automatic_pix_consent_serialize(
|
515
|
+
self,
|
516
|
+
id,
|
517
|
+
_request_auth,
|
518
|
+
_content_type,
|
519
|
+
_headers,
|
520
|
+
_host_index,
|
521
|
+
) -> RequestSerialized:
|
522
|
+
|
523
|
+
_host = None
|
524
|
+
|
525
|
+
_collection_formats: Dict[str, str] = {
|
526
|
+
}
|
527
|
+
|
528
|
+
_path_params: Dict[str, str] = {}
|
529
|
+
_query_params: List[Tuple[str, str]] = []
|
530
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
531
|
+
_form_params: List[Tuple[str, str]] = []
|
532
|
+
_files: Dict[
|
533
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
534
|
+
] = {}
|
535
|
+
_body_params: Optional[bytes] = None
|
536
|
+
|
537
|
+
# process the path parameters
|
538
|
+
if id is not None:
|
539
|
+
_path_params['id'] = id
|
540
|
+
# process the query parameters
|
541
|
+
# process the header parameters
|
542
|
+
# process the form parameters
|
543
|
+
# process the body parameter
|
544
|
+
|
545
|
+
|
546
|
+
|
547
|
+
|
548
|
+
# authentication setting
|
549
|
+
_auth_settings: List[str] = [
|
550
|
+
'default'
|
551
|
+
]
|
552
|
+
|
553
|
+
return self.api_client.param_serialize(
|
554
|
+
method='POST',
|
555
|
+
resource_path='/payments/requests/{id}/automatic-pix/cancel',
|
556
|
+
path_params=_path_params,
|
557
|
+
query_params=_query_params,
|
558
|
+
header_params=_header_params,
|
559
|
+
body=_body_params,
|
560
|
+
post_params=_form_params,
|
561
|
+
files=_files,
|
562
|
+
auth_settings=_auth_settings,
|
563
|
+
collection_formats=_collection_formats,
|
564
|
+
_host=_host,
|
565
|
+
_request_auth=_request_auth
|
566
|
+
)
|
567
|
+
|
568
|
+
|
569
|
+
|
570
|
+
|
571
|
+
@validate_call
|
572
|
+
def payment_request_create_automatic_pix(
|
573
|
+
self,
|
574
|
+
create_automatic_pix_payment_request: CreateAutomaticPixPaymentRequest,
|
575
|
+
_request_timeout: Union[
|
576
|
+
None,
|
577
|
+
Annotated[StrictFloat, Field(gt=0)],
|
578
|
+
Tuple[
|
579
|
+
Annotated[StrictFloat, Field(gt=0)],
|
580
|
+
Annotated[StrictFloat, Field(gt=0)]
|
581
|
+
]
|
582
|
+
] = None,
|
583
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
584
|
+
_content_type: Optional[StrictStr] = None,
|
585
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
586
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
587
|
+
) -> PaymentRequest:
|
588
|
+
"""Create Automatic PIX payment request
|
589
|
+
|
590
|
+
Creates a payment request where the payment is made using automatic PIX. Once consent is granted by the user, payments can be scheduled according to the rules defined in the request.
|
591
|
+
|
592
|
+
:param create_automatic_pix_payment_request: (required)
|
593
|
+
:type create_automatic_pix_payment_request: CreateAutomaticPixPaymentRequest
|
594
|
+
:param _request_timeout: timeout setting for this request. If one
|
595
|
+
number provided, it will be total request
|
596
|
+
timeout. It can also be a pair (tuple) of
|
597
|
+
(connection, read) timeouts.
|
598
|
+
:type _request_timeout: int, tuple(int, int), optional
|
599
|
+
:param _request_auth: set to override the auth_settings for an a single
|
600
|
+
request; this effectively ignores the
|
601
|
+
authentication in the spec for a single request.
|
602
|
+
:type _request_auth: dict, optional
|
603
|
+
:param _content_type: force content-type for the request.
|
604
|
+
:type _content_type: str, Optional
|
605
|
+
:param _headers: set to override the headers for a single
|
606
|
+
request; this effectively ignores the headers
|
607
|
+
in the spec for a single request.
|
608
|
+
:type _headers: dict, optional
|
609
|
+
:param _host_index: set to override the host_index for a single
|
610
|
+
request; this effectively ignores the host_index
|
611
|
+
in the spec for a single request.
|
612
|
+
:type _host_index: int, optional
|
613
|
+
:return: Returns the result object.
|
614
|
+
""" # noqa: E501
|
615
|
+
|
616
|
+
_param = self._payment_request_create_automatic_pix_serialize(
|
617
|
+
create_automatic_pix_payment_request=create_automatic_pix_payment_request,
|
618
|
+
_request_auth=_request_auth,
|
619
|
+
_content_type=_content_type,
|
620
|
+
_headers=_headers,
|
621
|
+
_host_index=_host_index
|
622
|
+
)
|
623
|
+
|
624
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
625
|
+
'200': "PaymentRequest",
|
626
|
+
}
|
627
|
+
response_data = self.api_client.call_api(
|
628
|
+
*_param,
|
629
|
+
_request_timeout=_request_timeout
|
630
|
+
)
|
631
|
+
response_data.read()
|
632
|
+
return self.api_client.response_deserialize(
|
633
|
+
response_data=response_data,
|
634
|
+
response_types_map=_response_types_map,
|
635
|
+
).data
|
636
|
+
|
637
|
+
|
638
|
+
@validate_call
|
639
|
+
def payment_request_create_automatic_pix_with_http_info(
|
640
|
+
self,
|
641
|
+
create_automatic_pix_payment_request: CreateAutomaticPixPaymentRequest,
|
642
|
+
_request_timeout: Union[
|
643
|
+
None,
|
644
|
+
Annotated[StrictFloat, Field(gt=0)],
|
645
|
+
Tuple[
|
646
|
+
Annotated[StrictFloat, Field(gt=0)],
|
647
|
+
Annotated[StrictFloat, Field(gt=0)]
|
648
|
+
]
|
649
|
+
] = None,
|
650
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
651
|
+
_content_type: Optional[StrictStr] = None,
|
652
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
653
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
654
|
+
) -> ApiResponse[PaymentRequest]:
|
655
|
+
"""Create Automatic PIX payment request
|
656
|
+
|
657
|
+
Creates a payment request where the payment is made using automatic PIX. Once consent is granted by the user, payments can be scheduled according to the rules defined in the request.
|
658
|
+
|
659
|
+
:param create_automatic_pix_payment_request: (required)
|
660
|
+
:type create_automatic_pix_payment_request: CreateAutomaticPixPaymentRequest
|
661
|
+
:param _request_timeout: timeout setting for this request. If one
|
662
|
+
number provided, it will be total request
|
663
|
+
timeout. It can also be a pair (tuple) of
|
664
|
+
(connection, read) timeouts.
|
665
|
+
:type _request_timeout: int, tuple(int, int), optional
|
666
|
+
:param _request_auth: set to override the auth_settings for an a single
|
667
|
+
request; this effectively ignores the
|
668
|
+
authentication in the spec for a single request.
|
669
|
+
:type _request_auth: dict, optional
|
670
|
+
:param _content_type: force content-type for the request.
|
671
|
+
:type _content_type: str, Optional
|
672
|
+
:param _headers: set to override the headers for a single
|
673
|
+
request; this effectively ignores the headers
|
674
|
+
in the spec for a single request.
|
675
|
+
:type _headers: dict, optional
|
676
|
+
:param _host_index: set to override the host_index for a single
|
677
|
+
request; this effectively ignores the host_index
|
678
|
+
in the spec for a single request.
|
679
|
+
:type _host_index: int, optional
|
680
|
+
:return: Returns the result object.
|
681
|
+
""" # noqa: E501
|
682
|
+
|
683
|
+
_param = self._payment_request_create_automatic_pix_serialize(
|
684
|
+
create_automatic_pix_payment_request=create_automatic_pix_payment_request,
|
685
|
+
_request_auth=_request_auth,
|
686
|
+
_content_type=_content_type,
|
687
|
+
_headers=_headers,
|
688
|
+
_host_index=_host_index
|
689
|
+
)
|
690
|
+
|
691
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
692
|
+
'200': "PaymentRequest",
|
693
|
+
}
|
694
|
+
response_data = self.api_client.call_api(
|
695
|
+
*_param,
|
696
|
+
_request_timeout=_request_timeout
|
697
|
+
)
|
698
|
+
response_data.read()
|
699
|
+
return self.api_client.response_deserialize(
|
700
|
+
response_data=response_data,
|
701
|
+
response_types_map=_response_types_map,
|
702
|
+
)
|
703
|
+
|
704
|
+
|
705
|
+
@validate_call
|
706
|
+
def payment_request_create_automatic_pix_without_preload_content(
|
707
|
+
self,
|
708
|
+
create_automatic_pix_payment_request: CreateAutomaticPixPaymentRequest,
|
709
|
+
_request_timeout: Union[
|
710
|
+
None,
|
711
|
+
Annotated[StrictFloat, Field(gt=0)],
|
712
|
+
Tuple[
|
713
|
+
Annotated[StrictFloat, Field(gt=0)],
|
714
|
+
Annotated[StrictFloat, Field(gt=0)]
|
715
|
+
]
|
716
|
+
] = None,
|
717
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
718
|
+
_content_type: Optional[StrictStr] = None,
|
719
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
720
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
721
|
+
) -> RESTResponseType:
|
722
|
+
"""Create Automatic PIX payment request
|
723
|
+
|
724
|
+
Creates a payment request where the payment is made using automatic PIX. Once consent is granted by the user, payments can be scheduled according to the rules defined in the request.
|
725
|
+
|
726
|
+
:param create_automatic_pix_payment_request: (required)
|
727
|
+
:type create_automatic_pix_payment_request: CreateAutomaticPixPaymentRequest
|
728
|
+
:param _request_timeout: timeout setting for this request. If one
|
729
|
+
number provided, it will be total request
|
730
|
+
timeout. It can also be a pair (tuple) of
|
731
|
+
(connection, read) timeouts.
|
732
|
+
:type _request_timeout: int, tuple(int, int), optional
|
733
|
+
:param _request_auth: set to override the auth_settings for an a single
|
734
|
+
request; this effectively ignores the
|
735
|
+
authentication in the spec for a single request.
|
736
|
+
:type _request_auth: dict, optional
|
737
|
+
:param _content_type: force content-type for the request.
|
738
|
+
:type _content_type: str, Optional
|
739
|
+
:param _headers: set to override the headers for a single
|
740
|
+
request; this effectively ignores the headers
|
741
|
+
in the spec for a single request.
|
742
|
+
:type _headers: dict, optional
|
743
|
+
:param _host_index: set to override the host_index for a single
|
744
|
+
request; this effectively ignores the host_index
|
745
|
+
in the spec for a single request.
|
746
|
+
:type _host_index: int, optional
|
747
|
+
:return: Returns the result object.
|
748
|
+
""" # noqa: E501
|
749
|
+
|
750
|
+
_param = self._payment_request_create_automatic_pix_serialize(
|
751
|
+
create_automatic_pix_payment_request=create_automatic_pix_payment_request,
|
752
|
+
_request_auth=_request_auth,
|
753
|
+
_content_type=_content_type,
|
754
|
+
_headers=_headers,
|
755
|
+
_host_index=_host_index
|
756
|
+
)
|
757
|
+
|
758
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
759
|
+
'200': "PaymentRequest",
|
760
|
+
}
|
761
|
+
response_data = self.api_client.call_api(
|
762
|
+
*_param,
|
763
|
+
_request_timeout=_request_timeout
|
764
|
+
)
|
765
|
+
return response_data.response
|
766
|
+
|
767
|
+
|
768
|
+
def _payment_request_create_automatic_pix_serialize(
|
769
|
+
self,
|
770
|
+
create_automatic_pix_payment_request,
|
771
|
+
_request_auth,
|
772
|
+
_content_type,
|
773
|
+
_headers,
|
774
|
+
_host_index,
|
775
|
+
) -> RequestSerialized:
|
776
|
+
|
777
|
+
_host = None
|
778
|
+
|
779
|
+
_collection_formats: Dict[str, str] = {
|
780
|
+
}
|
781
|
+
|
782
|
+
_path_params: Dict[str, str] = {}
|
783
|
+
_query_params: List[Tuple[str, str]] = []
|
784
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
785
|
+
_form_params: List[Tuple[str, str]] = []
|
786
|
+
_files: Dict[
|
787
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
788
|
+
] = {}
|
789
|
+
_body_params: Optional[bytes] = None
|
790
|
+
|
791
|
+
# process the path parameters
|
792
|
+
# process the query parameters
|
793
|
+
# process the header parameters
|
794
|
+
# process the form parameters
|
795
|
+
# process the body parameter
|
796
|
+
if create_automatic_pix_payment_request is not None:
|
797
|
+
_body_params = create_automatic_pix_payment_request
|
798
|
+
|
799
|
+
|
800
|
+
# set the HTTP header `Accept`
|
801
|
+
if 'Accept' not in _header_params:
|
802
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
803
|
+
[
|
804
|
+
'application/json'
|
805
|
+
]
|
806
|
+
)
|
807
|
+
|
808
|
+
# set the HTTP header `Content-Type`
|
809
|
+
if _content_type:
|
810
|
+
_header_params['Content-Type'] = _content_type
|
811
|
+
else:
|
812
|
+
_default_content_type = (
|
813
|
+
self.api_client.select_header_content_type(
|
814
|
+
[
|
815
|
+
'application/json'
|
816
|
+
]
|
817
|
+
)
|
818
|
+
)
|
819
|
+
if _default_content_type is not None:
|
820
|
+
_header_params['Content-Type'] = _default_content_type
|
821
|
+
|
822
|
+
# authentication setting
|
823
|
+
_auth_settings: List[str] = [
|
824
|
+
'default'
|
825
|
+
]
|
826
|
+
|
827
|
+
return self.api_client.param_serialize(
|
828
|
+
method='POST',
|
829
|
+
resource_path='/payments/requests/automatic-pix',
|
830
|
+
path_params=_path_params,
|
831
|
+
query_params=_query_params,
|
832
|
+
header_params=_header_params,
|
833
|
+
body=_body_params,
|
834
|
+
post_params=_form_params,
|
835
|
+
files=_files,
|
836
|
+
auth_settings=_auth_settings,
|
837
|
+
collection_formats=_collection_formats,
|
838
|
+
_host=_host,
|
839
|
+
_request_auth=_request_auth
|
840
|
+
)
|
841
|
+
|
842
|
+
|
843
|
+
|
844
|
+
|
845
|
+
@validate_call
|
846
|
+
def payment_request_create_automatic_pix_schedule(
|
847
|
+
self,
|
848
|
+
id: Annotated[StrictStr, Field(description="Payment request primary identifier")],
|
849
|
+
schedule_automatic_pix_payment_request: ScheduleAutomaticPixPaymentRequest,
|
850
|
+
_request_timeout: Union[
|
851
|
+
None,
|
852
|
+
Annotated[StrictFloat, Field(gt=0)],
|
853
|
+
Tuple[
|
854
|
+
Annotated[StrictFloat, Field(gt=0)],
|
855
|
+
Annotated[StrictFloat, Field(gt=0)]
|
856
|
+
]
|
857
|
+
] = None,
|
858
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
859
|
+
_content_type: Optional[StrictStr] = None,
|
860
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
861
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
862
|
+
) -> AutomaticPixPayment:
|
863
|
+
"""Schedule Automatic PIX payment
|
864
|
+
|
865
|
+
Schedules an Automatic PIX payment
|
866
|
+
|
867
|
+
:param id: Payment request primary identifier (required)
|
868
|
+
:type id: str
|
869
|
+
:param schedule_automatic_pix_payment_request: (required)
|
870
|
+
:type schedule_automatic_pix_payment_request: ScheduleAutomaticPixPaymentRequest
|
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._payment_request_create_automatic_pix_schedule_serialize(
|
894
|
+
id=id,
|
895
|
+
schedule_automatic_pix_payment_request=schedule_automatic_pix_payment_request,
|
896
|
+
_request_auth=_request_auth,
|
897
|
+
_content_type=_content_type,
|
898
|
+
_headers=_headers,
|
899
|
+
_host_index=_host_index
|
900
|
+
)
|
901
|
+
|
902
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
903
|
+
'200': "AutomaticPixPayment",
|
904
|
+
}
|
905
|
+
response_data = self.api_client.call_api(
|
906
|
+
*_param,
|
907
|
+
_request_timeout=_request_timeout
|
908
|
+
)
|
909
|
+
response_data.read()
|
910
|
+
return self.api_client.response_deserialize(
|
911
|
+
response_data=response_data,
|
912
|
+
response_types_map=_response_types_map,
|
913
|
+
).data
|
914
|
+
|
915
|
+
|
916
|
+
@validate_call
|
917
|
+
def payment_request_create_automatic_pix_schedule_with_http_info(
|
918
|
+
self,
|
919
|
+
id: Annotated[StrictStr, Field(description="Payment request primary identifier")],
|
920
|
+
schedule_automatic_pix_payment_request: ScheduleAutomaticPixPaymentRequest,
|
921
|
+
_request_timeout: Union[
|
922
|
+
None,
|
923
|
+
Annotated[StrictFloat, Field(gt=0)],
|
924
|
+
Tuple[
|
925
|
+
Annotated[StrictFloat, Field(gt=0)],
|
926
|
+
Annotated[StrictFloat, Field(gt=0)]
|
927
|
+
]
|
928
|
+
] = None,
|
929
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
930
|
+
_content_type: Optional[StrictStr] = None,
|
931
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
932
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
933
|
+
) -> ApiResponse[AutomaticPixPayment]:
|
934
|
+
"""Schedule Automatic PIX payment
|
935
|
+
|
936
|
+
Schedules an Automatic PIX payment
|
937
|
+
|
938
|
+
:param id: Payment request primary identifier (required)
|
939
|
+
:type id: str
|
940
|
+
:param schedule_automatic_pix_payment_request: (required)
|
941
|
+
:type schedule_automatic_pix_payment_request: ScheduleAutomaticPixPaymentRequest
|
942
|
+
:param _request_timeout: timeout setting for this request. If one
|
943
|
+
number provided, it will be total request
|
944
|
+
timeout. It can also be a pair (tuple) of
|
945
|
+
(connection, read) timeouts.
|
946
|
+
:type _request_timeout: int, tuple(int, int), optional
|
947
|
+
:param _request_auth: set to override the auth_settings for an a single
|
948
|
+
request; this effectively ignores the
|
949
|
+
authentication in the spec for a single request.
|
950
|
+
:type _request_auth: dict, optional
|
951
|
+
:param _content_type: force content-type for the request.
|
952
|
+
:type _content_type: str, Optional
|
953
|
+
:param _headers: set to override the headers for a single
|
954
|
+
request; this effectively ignores the headers
|
955
|
+
in the spec for a single request.
|
956
|
+
:type _headers: dict, optional
|
957
|
+
:param _host_index: set to override the host_index for a single
|
958
|
+
request; this effectively ignores the host_index
|
959
|
+
in the spec for a single request.
|
960
|
+
:type _host_index: int, optional
|
961
|
+
:return: Returns the result object.
|
962
|
+
""" # noqa: E501
|
963
|
+
|
964
|
+
_param = self._payment_request_create_automatic_pix_schedule_serialize(
|
965
|
+
id=id,
|
966
|
+
schedule_automatic_pix_payment_request=schedule_automatic_pix_payment_request,
|
967
|
+
_request_auth=_request_auth,
|
968
|
+
_content_type=_content_type,
|
969
|
+
_headers=_headers,
|
970
|
+
_host_index=_host_index
|
971
|
+
)
|
972
|
+
|
973
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
974
|
+
'200': "AutomaticPixPayment",
|
975
|
+
}
|
976
|
+
response_data = self.api_client.call_api(
|
977
|
+
*_param,
|
978
|
+
_request_timeout=_request_timeout
|
979
|
+
)
|
980
|
+
response_data.read()
|
981
|
+
return self.api_client.response_deserialize(
|
982
|
+
response_data=response_data,
|
983
|
+
response_types_map=_response_types_map,
|
984
|
+
)
|
985
|
+
|
986
|
+
|
987
|
+
@validate_call
|
988
|
+
def payment_request_create_automatic_pix_schedule_without_preload_content(
|
989
|
+
self,
|
990
|
+
id: Annotated[StrictStr, Field(description="Payment request primary identifier")],
|
991
|
+
schedule_automatic_pix_payment_request: ScheduleAutomaticPixPaymentRequest,
|
992
|
+
_request_timeout: Union[
|
993
|
+
None,
|
994
|
+
Annotated[StrictFloat, Field(gt=0)],
|
995
|
+
Tuple[
|
996
|
+
Annotated[StrictFloat, Field(gt=0)],
|
997
|
+
Annotated[StrictFloat, Field(gt=0)]
|
998
|
+
]
|
999
|
+
] = None,
|
1000
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1001
|
+
_content_type: Optional[StrictStr] = None,
|
1002
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1003
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1004
|
+
) -> RESTResponseType:
|
1005
|
+
"""Schedule Automatic PIX payment
|
1006
|
+
|
1007
|
+
Schedules an Automatic PIX payment
|
1008
|
+
|
1009
|
+
:param id: Payment request primary identifier (required)
|
1010
|
+
:type id: str
|
1011
|
+
:param schedule_automatic_pix_payment_request: (required)
|
1012
|
+
:type schedule_automatic_pix_payment_request: ScheduleAutomaticPixPaymentRequest
|
1013
|
+
:param _request_timeout: timeout setting for this request. If one
|
1014
|
+
number provided, it will be total request
|
1015
|
+
timeout. It can also be a pair (tuple) of
|
1016
|
+
(connection, read) timeouts.
|
1017
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1018
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1019
|
+
request; this effectively ignores the
|
1020
|
+
authentication in the spec for a single request.
|
1021
|
+
:type _request_auth: dict, optional
|
1022
|
+
:param _content_type: force content-type for the request.
|
1023
|
+
:type _content_type: str, Optional
|
1024
|
+
:param _headers: set to override the headers for a single
|
1025
|
+
request; this effectively ignores the headers
|
1026
|
+
in the spec for a single request.
|
1027
|
+
:type _headers: dict, optional
|
1028
|
+
:param _host_index: set to override the host_index for a single
|
1029
|
+
request; this effectively ignores the host_index
|
1030
|
+
in the spec for a single request.
|
1031
|
+
:type _host_index: int, optional
|
1032
|
+
:return: Returns the result object.
|
1033
|
+
""" # noqa: E501
|
1034
|
+
|
1035
|
+
_param = self._payment_request_create_automatic_pix_schedule_serialize(
|
1036
|
+
id=id,
|
1037
|
+
schedule_automatic_pix_payment_request=schedule_automatic_pix_payment_request,
|
1038
|
+
_request_auth=_request_auth,
|
1039
|
+
_content_type=_content_type,
|
1040
|
+
_headers=_headers,
|
1041
|
+
_host_index=_host_index
|
1042
|
+
)
|
1043
|
+
|
1044
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1045
|
+
'200': "AutomaticPixPayment",
|
1046
|
+
}
|
1047
|
+
response_data = self.api_client.call_api(
|
1048
|
+
*_param,
|
1049
|
+
_request_timeout=_request_timeout
|
1050
|
+
)
|
1051
|
+
return response_data.response
|
1052
|
+
|
1053
|
+
|
1054
|
+
def _payment_request_create_automatic_pix_schedule_serialize(
|
1055
|
+
self,
|
1056
|
+
id,
|
1057
|
+
schedule_automatic_pix_payment_request,
|
1058
|
+
_request_auth,
|
1059
|
+
_content_type,
|
1060
|
+
_headers,
|
1061
|
+
_host_index,
|
1062
|
+
) -> RequestSerialized:
|
1063
|
+
|
1064
|
+
_host = None
|
1065
|
+
|
1066
|
+
_collection_formats: Dict[str, str] = {
|
1067
|
+
}
|
1068
|
+
|
1069
|
+
_path_params: Dict[str, str] = {}
|
1070
|
+
_query_params: List[Tuple[str, str]] = []
|
1071
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
1072
|
+
_form_params: List[Tuple[str, str]] = []
|
1073
|
+
_files: Dict[
|
1074
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
1075
|
+
] = {}
|
1076
|
+
_body_params: Optional[bytes] = None
|
1077
|
+
|
1078
|
+
# process the path parameters
|
1079
|
+
if id is not None:
|
1080
|
+
_path_params['id'] = id
|
1081
|
+
# process the query parameters
|
1082
|
+
# process the header parameters
|
1083
|
+
# process the form parameters
|
1084
|
+
# process the body parameter
|
1085
|
+
if schedule_automatic_pix_payment_request is not None:
|
1086
|
+
_body_params = schedule_automatic_pix_payment_request
|
1087
|
+
|
1088
|
+
|
1089
|
+
# set the HTTP header `Accept`
|
1090
|
+
if 'Accept' not in _header_params:
|
1091
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1092
|
+
[
|
1093
|
+
'application/json'
|
1094
|
+
]
|
1095
|
+
)
|
1096
|
+
|
1097
|
+
# set the HTTP header `Content-Type`
|
1098
|
+
if _content_type:
|
1099
|
+
_header_params['Content-Type'] = _content_type
|
1100
|
+
else:
|
1101
|
+
_default_content_type = (
|
1102
|
+
self.api_client.select_header_content_type(
|
1103
|
+
[
|
1104
|
+
'application/json'
|
1105
|
+
]
|
1106
|
+
)
|
1107
|
+
)
|
1108
|
+
if _default_content_type is not None:
|
1109
|
+
_header_params['Content-Type'] = _default_content_type
|
1110
|
+
|
1111
|
+
# authentication setting
|
1112
|
+
_auth_settings: List[str] = [
|
1113
|
+
'default'
|
1114
|
+
]
|
1115
|
+
|
1116
|
+
return self.api_client.param_serialize(
|
1117
|
+
method='POST',
|
1118
|
+
resource_path='/payments/requests/{id}/automatic-pix/schedule',
|
1119
|
+
path_params=_path_params,
|
1120
|
+
query_params=_query_params,
|
1121
|
+
header_params=_header_params,
|
1122
|
+
body=_body_params,
|
1123
|
+
post_params=_form_params,
|
1124
|
+
files=_files,
|
1125
|
+
auth_settings=_auth_settings,
|
1126
|
+
collection_formats=_collection_formats,
|
1127
|
+
_host=_host,
|
1128
|
+
_request_auth=_request_auth
|
1129
|
+
)
|
1130
|
+
|
1131
|
+
|
1132
|
+
|
1133
|
+
|
1134
|
+
@validate_call
|
1135
|
+
def payment_request_get_automatic_pix_schedule(
|
1136
|
+
self,
|
1137
|
+
request_id: Annotated[StrictStr, Field(description="Payment request primary identifier")],
|
1138
|
+
payment_id: Annotated[StrictStr, Field(description="Automatic PIX scheduled payment primary identifier")],
|
1139
|
+
_request_timeout: Union[
|
1140
|
+
None,
|
1141
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1142
|
+
Tuple[
|
1143
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1144
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1145
|
+
]
|
1146
|
+
] = None,
|
1147
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1148
|
+
_content_type: Optional[StrictStr] = None,
|
1149
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1150
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1151
|
+
) -> AutomaticPixPayment:
|
1152
|
+
"""Get an automatic PIX scheduled payment
|
1153
|
+
|
1154
|
+
Recovers an automatic PIX scheduled payment by id
|
1155
|
+
|
1156
|
+
:param request_id: Payment request primary identifier (required)
|
1157
|
+
:type request_id: str
|
1158
|
+
:param payment_id: Automatic PIX scheduled payment primary identifier (required)
|
1159
|
+
:type payment_id: str
|
1160
|
+
:param _request_timeout: timeout setting for this request. If one
|
1161
|
+
number provided, it will be total request
|
1162
|
+
timeout. It can also be a pair (tuple) of
|
1163
|
+
(connection, read) timeouts.
|
1164
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1165
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1166
|
+
request; this effectively ignores the
|
1167
|
+
authentication in the spec for a single request.
|
1168
|
+
:type _request_auth: dict, optional
|
1169
|
+
:param _content_type: force content-type for the request.
|
1170
|
+
:type _content_type: str, Optional
|
1171
|
+
:param _headers: set to override the headers for a single
|
1172
|
+
request; this effectively ignores the headers
|
1173
|
+
in the spec for a single request.
|
1174
|
+
:type _headers: dict, optional
|
1175
|
+
:param _host_index: set to override the host_index for a single
|
1176
|
+
request; this effectively ignores the host_index
|
1177
|
+
in the spec for a single request.
|
1178
|
+
:type _host_index: int, optional
|
1179
|
+
:return: Returns the result object.
|
1180
|
+
""" # noqa: E501
|
1181
|
+
|
1182
|
+
_param = self._payment_request_get_automatic_pix_schedule_serialize(
|
1183
|
+
request_id=request_id,
|
1184
|
+
payment_id=payment_id,
|
1185
|
+
_request_auth=_request_auth,
|
1186
|
+
_content_type=_content_type,
|
1187
|
+
_headers=_headers,
|
1188
|
+
_host_index=_host_index
|
1189
|
+
)
|
1190
|
+
|
1191
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1192
|
+
'200': "AutomaticPixPayment",
|
1193
|
+
}
|
1194
|
+
response_data = self.api_client.call_api(
|
1195
|
+
*_param,
|
1196
|
+
_request_timeout=_request_timeout
|
1197
|
+
)
|
1198
|
+
response_data.read()
|
1199
|
+
return self.api_client.response_deserialize(
|
1200
|
+
response_data=response_data,
|
1201
|
+
response_types_map=_response_types_map,
|
1202
|
+
).data
|
1203
|
+
|
1204
|
+
|
1205
|
+
@validate_call
|
1206
|
+
def payment_request_get_automatic_pix_schedule_with_http_info(
|
1207
|
+
self,
|
1208
|
+
request_id: Annotated[StrictStr, Field(description="Payment request primary identifier")],
|
1209
|
+
payment_id: Annotated[StrictStr, Field(description="Automatic PIX scheduled payment primary identifier")],
|
1210
|
+
_request_timeout: Union[
|
1211
|
+
None,
|
1212
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1213
|
+
Tuple[
|
1214
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1215
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1216
|
+
]
|
1217
|
+
] = None,
|
1218
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1219
|
+
_content_type: Optional[StrictStr] = None,
|
1220
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1221
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1222
|
+
) -> ApiResponse[AutomaticPixPayment]:
|
1223
|
+
"""Get an automatic PIX scheduled payment
|
1224
|
+
|
1225
|
+
Recovers an automatic PIX scheduled payment by id
|
1226
|
+
|
1227
|
+
:param request_id: Payment request primary identifier (required)
|
1228
|
+
:type request_id: str
|
1229
|
+
:param payment_id: Automatic PIX scheduled payment primary identifier (required)
|
1230
|
+
:type payment_id: str
|
1231
|
+
:param _request_timeout: timeout setting for this request. If one
|
1232
|
+
number provided, it will be total request
|
1233
|
+
timeout. It can also be a pair (tuple) of
|
1234
|
+
(connection, read) timeouts.
|
1235
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1236
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1237
|
+
request; this effectively ignores the
|
1238
|
+
authentication in the spec for a single request.
|
1239
|
+
:type _request_auth: dict, optional
|
1240
|
+
:param _content_type: force content-type for the request.
|
1241
|
+
:type _content_type: str, Optional
|
1242
|
+
:param _headers: set to override the headers for a single
|
1243
|
+
request; this effectively ignores the headers
|
1244
|
+
in the spec for a single request.
|
1245
|
+
:type _headers: dict, optional
|
1246
|
+
:param _host_index: set to override the host_index for a single
|
1247
|
+
request; this effectively ignores the host_index
|
1248
|
+
in the spec for a single request.
|
1249
|
+
:type _host_index: int, optional
|
1250
|
+
:return: Returns the result object.
|
1251
|
+
""" # noqa: E501
|
1252
|
+
|
1253
|
+
_param = self._payment_request_get_automatic_pix_schedule_serialize(
|
1254
|
+
request_id=request_id,
|
1255
|
+
payment_id=payment_id,
|
1256
|
+
_request_auth=_request_auth,
|
1257
|
+
_content_type=_content_type,
|
1258
|
+
_headers=_headers,
|
1259
|
+
_host_index=_host_index
|
1260
|
+
)
|
1261
|
+
|
1262
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1263
|
+
'200': "AutomaticPixPayment",
|
1264
|
+
}
|
1265
|
+
response_data = self.api_client.call_api(
|
1266
|
+
*_param,
|
1267
|
+
_request_timeout=_request_timeout
|
1268
|
+
)
|
1269
|
+
response_data.read()
|
1270
|
+
return self.api_client.response_deserialize(
|
1271
|
+
response_data=response_data,
|
1272
|
+
response_types_map=_response_types_map,
|
1273
|
+
)
|
1274
|
+
|
1275
|
+
|
1276
|
+
@validate_call
|
1277
|
+
def payment_request_get_automatic_pix_schedule_without_preload_content(
|
1278
|
+
self,
|
1279
|
+
request_id: Annotated[StrictStr, Field(description="Payment request primary identifier")],
|
1280
|
+
payment_id: Annotated[StrictStr, Field(description="Automatic PIX scheduled payment primary identifier")],
|
1281
|
+
_request_timeout: Union[
|
1282
|
+
None,
|
1283
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1284
|
+
Tuple[
|
1285
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1286
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1287
|
+
]
|
1288
|
+
] = None,
|
1289
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1290
|
+
_content_type: Optional[StrictStr] = None,
|
1291
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1292
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1293
|
+
) -> RESTResponseType:
|
1294
|
+
"""Get an automatic PIX scheduled payment
|
1295
|
+
|
1296
|
+
Recovers an automatic PIX scheduled payment by id
|
1297
|
+
|
1298
|
+
:param request_id: Payment request primary identifier (required)
|
1299
|
+
:type request_id: str
|
1300
|
+
:param payment_id: Automatic PIX scheduled payment primary identifier (required)
|
1301
|
+
:type payment_id: str
|
1302
|
+
:param _request_timeout: timeout setting for this request. If one
|
1303
|
+
number provided, it will be total request
|
1304
|
+
timeout. It can also be a pair (tuple) of
|
1305
|
+
(connection, read) timeouts.
|
1306
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1307
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1308
|
+
request; this effectively ignores the
|
1309
|
+
authentication in the spec for a single request.
|
1310
|
+
:type _request_auth: dict, optional
|
1311
|
+
:param _content_type: force content-type for the request.
|
1312
|
+
:type _content_type: str, Optional
|
1313
|
+
:param _headers: set to override the headers for a single
|
1314
|
+
request; this effectively ignores the headers
|
1315
|
+
in the spec for a single request.
|
1316
|
+
:type _headers: dict, optional
|
1317
|
+
:param _host_index: set to override the host_index for a single
|
1318
|
+
request; this effectively ignores the host_index
|
1319
|
+
in the spec for a single request.
|
1320
|
+
:type _host_index: int, optional
|
1321
|
+
:return: Returns the result object.
|
1322
|
+
""" # noqa: E501
|
1323
|
+
|
1324
|
+
_param = self._payment_request_get_automatic_pix_schedule_serialize(
|
1325
|
+
request_id=request_id,
|
1326
|
+
payment_id=payment_id,
|
1327
|
+
_request_auth=_request_auth,
|
1328
|
+
_content_type=_content_type,
|
1329
|
+
_headers=_headers,
|
1330
|
+
_host_index=_host_index
|
1331
|
+
)
|
1332
|
+
|
1333
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1334
|
+
'200': "AutomaticPixPayment",
|
1335
|
+
}
|
1336
|
+
response_data = self.api_client.call_api(
|
1337
|
+
*_param,
|
1338
|
+
_request_timeout=_request_timeout
|
1339
|
+
)
|
1340
|
+
return response_data.response
|
1341
|
+
|
1342
|
+
|
1343
|
+
def _payment_request_get_automatic_pix_schedule_serialize(
|
1344
|
+
self,
|
1345
|
+
request_id,
|
1346
|
+
payment_id,
|
1347
|
+
_request_auth,
|
1348
|
+
_content_type,
|
1349
|
+
_headers,
|
1350
|
+
_host_index,
|
1351
|
+
) -> RequestSerialized:
|
1352
|
+
|
1353
|
+
_host = None
|
1354
|
+
|
1355
|
+
_collection_formats: Dict[str, str] = {
|
1356
|
+
}
|
1357
|
+
|
1358
|
+
_path_params: Dict[str, str] = {}
|
1359
|
+
_query_params: List[Tuple[str, str]] = []
|
1360
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
1361
|
+
_form_params: List[Tuple[str, str]] = []
|
1362
|
+
_files: Dict[
|
1363
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
1364
|
+
] = {}
|
1365
|
+
_body_params: Optional[bytes] = None
|
1366
|
+
|
1367
|
+
# process the path parameters
|
1368
|
+
if request_id is not None:
|
1369
|
+
_path_params['requestId'] = request_id
|
1370
|
+
if payment_id is not None:
|
1371
|
+
_path_params['paymentId'] = payment_id
|
1372
|
+
# process the query parameters
|
1373
|
+
# process the header parameters
|
1374
|
+
# process the form parameters
|
1375
|
+
# process the body parameter
|
1376
|
+
|
1377
|
+
|
1378
|
+
# set the HTTP header `Accept`
|
1379
|
+
if 'Accept' not in _header_params:
|
1380
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1381
|
+
[
|
1382
|
+
'application/json'
|
1383
|
+
]
|
1384
|
+
)
|
1385
|
+
|
1386
|
+
|
1387
|
+
# authentication setting
|
1388
|
+
_auth_settings: List[str] = [
|
1389
|
+
'default'
|
1390
|
+
]
|
1391
|
+
|
1392
|
+
return self.api_client.param_serialize(
|
1393
|
+
method='GET',
|
1394
|
+
resource_path='/payments/requests/{requestId}/automatic-pix/schedules/{paymentId}',
|
1395
|
+
path_params=_path_params,
|
1396
|
+
query_params=_query_params,
|
1397
|
+
header_params=_header_params,
|
1398
|
+
body=_body_params,
|
1399
|
+
post_params=_form_params,
|
1400
|
+
files=_files,
|
1401
|
+
auth_settings=_auth_settings,
|
1402
|
+
collection_formats=_collection_formats,
|
1403
|
+
_host=_host,
|
1404
|
+
_request_auth=_request_auth
|
1405
|
+
)
|
1406
|
+
|
1407
|
+
|
1408
|
+
|
1409
|
+
|
1410
|
+
@validate_call
|
1411
|
+
def payment_request_get_automatic_pix_schedules(
|
1412
|
+
self,
|
1413
|
+
id: Annotated[StrictStr, Field(description="Payment request primary identifier")],
|
1414
|
+
_request_timeout: Union[
|
1415
|
+
None,
|
1416
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1417
|
+
Tuple[
|
1418
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1419
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1420
|
+
]
|
1421
|
+
] = None,
|
1422
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1423
|
+
_content_type: Optional[StrictStr] = None,
|
1424
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1425
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1426
|
+
) -> PaymentRequestGetAutomaticPixSchedules200Response:
|
1427
|
+
"""List Automatic PIX scheduled payments
|
1428
|
+
|
1429
|
+
Lists all Automatic PIX payments from a payment request
|
1430
|
+
|
1431
|
+
:param id: Payment request primary identifier (required)
|
1432
|
+
:type id: str
|
1433
|
+
:param _request_timeout: timeout setting for this request. If one
|
1434
|
+
number provided, it will be total request
|
1435
|
+
timeout. It can also be a pair (tuple) of
|
1436
|
+
(connection, read) timeouts.
|
1437
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1438
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1439
|
+
request; this effectively ignores the
|
1440
|
+
authentication in the spec for a single request.
|
1441
|
+
:type _request_auth: dict, optional
|
1442
|
+
:param _content_type: force content-type for the request.
|
1443
|
+
:type _content_type: str, Optional
|
1444
|
+
:param _headers: set to override the headers for a single
|
1445
|
+
request; this effectively ignores the headers
|
1446
|
+
in the spec for a single request.
|
1447
|
+
:type _headers: dict, optional
|
1448
|
+
:param _host_index: set to override the host_index for a single
|
1449
|
+
request; this effectively ignores the host_index
|
1450
|
+
in the spec for a single request.
|
1451
|
+
:type _host_index: int, optional
|
1452
|
+
:return: Returns the result object.
|
1453
|
+
""" # noqa: E501
|
1454
|
+
|
1455
|
+
_param = self._payment_request_get_automatic_pix_schedules_serialize(
|
1456
|
+
id=id,
|
1457
|
+
_request_auth=_request_auth,
|
1458
|
+
_content_type=_content_type,
|
1459
|
+
_headers=_headers,
|
1460
|
+
_host_index=_host_index
|
1461
|
+
)
|
1462
|
+
|
1463
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1464
|
+
'200': "PaymentRequestGetAutomaticPixSchedules200Response",
|
1465
|
+
}
|
1466
|
+
response_data = self.api_client.call_api(
|
1467
|
+
*_param,
|
1468
|
+
_request_timeout=_request_timeout
|
1469
|
+
)
|
1470
|
+
response_data.read()
|
1471
|
+
return self.api_client.response_deserialize(
|
1472
|
+
response_data=response_data,
|
1473
|
+
response_types_map=_response_types_map,
|
1474
|
+
).data
|
1475
|
+
|
1476
|
+
|
1477
|
+
@validate_call
|
1478
|
+
def payment_request_get_automatic_pix_schedules_with_http_info(
|
1479
|
+
self,
|
1480
|
+
id: Annotated[StrictStr, Field(description="Payment request primary identifier")],
|
1481
|
+
_request_timeout: Union[
|
1482
|
+
None,
|
1483
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1484
|
+
Tuple[
|
1485
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1486
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1487
|
+
]
|
1488
|
+
] = None,
|
1489
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1490
|
+
_content_type: Optional[StrictStr] = None,
|
1491
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1492
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1493
|
+
) -> ApiResponse[PaymentRequestGetAutomaticPixSchedules200Response]:
|
1494
|
+
"""List Automatic PIX scheduled payments
|
1495
|
+
|
1496
|
+
Lists all Automatic PIX payments from a payment request
|
1497
|
+
|
1498
|
+
:param id: Payment request primary identifier (required)
|
1499
|
+
:type id: str
|
1500
|
+
:param _request_timeout: timeout setting for this request. If one
|
1501
|
+
number provided, it will be total request
|
1502
|
+
timeout. It can also be a pair (tuple) of
|
1503
|
+
(connection, read) timeouts.
|
1504
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1505
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1506
|
+
request; this effectively ignores the
|
1507
|
+
authentication in the spec for a single request.
|
1508
|
+
:type _request_auth: dict, optional
|
1509
|
+
:param _content_type: force content-type for the request.
|
1510
|
+
:type _content_type: str, Optional
|
1511
|
+
:param _headers: set to override the headers for a single
|
1512
|
+
request; this effectively ignores the headers
|
1513
|
+
in the spec for a single request.
|
1514
|
+
:type _headers: dict, optional
|
1515
|
+
:param _host_index: set to override the host_index for a single
|
1516
|
+
request; this effectively ignores the host_index
|
1517
|
+
in the spec for a single request.
|
1518
|
+
:type _host_index: int, optional
|
1519
|
+
:return: Returns the result object.
|
1520
|
+
""" # noqa: E501
|
1521
|
+
|
1522
|
+
_param = self._payment_request_get_automatic_pix_schedules_serialize(
|
1523
|
+
id=id,
|
1524
|
+
_request_auth=_request_auth,
|
1525
|
+
_content_type=_content_type,
|
1526
|
+
_headers=_headers,
|
1527
|
+
_host_index=_host_index
|
1528
|
+
)
|
1529
|
+
|
1530
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1531
|
+
'200': "PaymentRequestGetAutomaticPixSchedules200Response",
|
1532
|
+
}
|
1533
|
+
response_data = self.api_client.call_api(
|
1534
|
+
*_param,
|
1535
|
+
_request_timeout=_request_timeout
|
1536
|
+
)
|
1537
|
+
response_data.read()
|
1538
|
+
return self.api_client.response_deserialize(
|
1539
|
+
response_data=response_data,
|
1540
|
+
response_types_map=_response_types_map,
|
1541
|
+
)
|
1542
|
+
|
1543
|
+
|
1544
|
+
@validate_call
|
1545
|
+
def payment_request_get_automatic_pix_schedules_without_preload_content(
|
1546
|
+
self,
|
1547
|
+
id: Annotated[StrictStr, Field(description="Payment request primary identifier")],
|
1548
|
+
_request_timeout: Union[
|
1549
|
+
None,
|
1550
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1551
|
+
Tuple[
|
1552
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1553
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1554
|
+
]
|
1555
|
+
] = None,
|
1556
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1557
|
+
_content_type: Optional[StrictStr] = None,
|
1558
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1559
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1560
|
+
) -> RESTResponseType:
|
1561
|
+
"""List Automatic PIX scheduled payments
|
1562
|
+
|
1563
|
+
Lists all Automatic PIX payments from a payment request
|
1564
|
+
|
1565
|
+
:param id: Payment request primary identifier (required)
|
1566
|
+
:type id: str
|
1567
|
+
:param _request_timeout: timeout setting for this request. If one
|
1568
|
+
number provided, it will be total request
|
1569
|
+
timeout. It can also be a pair (tuple) of
|
1570
|
+
(connection, read) timeouts.
|
1571
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1572
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1573
|
+
request; this effectively ignores the
|
1574
|
+
authentication in the spec for a single request.
|
1575
|
+
:type _request_auth: dict, optional
|
1576
|
+
:param _content_type: force content-type for the request.
|
1577
|
+
:type _content_type: str, Optional
|
1578
|
+
:param _headers: set to override the headers for a single
|
1579
|
+
request; this effectively ignores the headers
|
1580
|
+
in the spec for a single request.
|
1581
|
+
:type _headers: dict, optional
|
1582
|
+
:param _host_index: set to override the host_index for a single
|
1583
|
+
request; this effectively ignores the host_index
|
1584
|
+
in the spec for a single request.
|
1585
|
+
:type _host_index: int, optional
|
1586
|
+
:return: Returns the result object.
|
1587
|
+
""" # noqa: E501
|
1588
|
+
|
1589
|
+
_param = self._payment_request_get_automatic_pix_schedules_serialize(
|
1590
|
+
id=id,
|
1591
|
+
_request_auth=_request_auth,
|
1592
|
+
_content_type=_content_type,
|
1593
|
+
_headers=_headers,
|
1594
|
+
_host_index=_host_index
|
1595
|
+
)
|
1596
|
+
|
1597
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1598
|
+
'200': "PaymentRequestGetAutomaticPixSchedules200Response",
|
1599
|
+
}
|
1600
|
+
response_data = self.api_client.call_api(
|
1601
|
+
*_param,
|
1602
|
+
_request_timeout=_request_timeout
|
1603
|
+
)
|
1604
|
+
return response_data.response
|
1605
|
+
|
1606
|
+
|
1607
|
+
def _payment_request_get_automatic_pix_schedules_serialize(
|
1608
|
+
self,
|
1609
|
+
id,
|
1610
|
+
_request_auth,
|
1611
|
+
_content_type,
|
1612
|
+
_headers,
|
1613
|
+
_host_index,
|
1614
|
+
) -> RequestSerialized:
|
1615
|
+
|
1616
|
+
_host = None
|
1617
|
+
|
1618
|
+
_collection_formats: Dict[str, str] = {
|
1619
|
+
}
|
1620
|
+
|
1621
|
+
_path_params: Dict[str, str] = {}
|
1622
|
+
_query_params: List[Tuple[str, str]] = []
|
1623
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
1624
|
+
_form_params: List[Tuple[str, str]] = []
|
1625
|
+
_files: Dict[
|
1626
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
1627
|
+
] = {}
|
1628
|
+
_body_params: Optional[bytes] = None
|
1629
|
+
|
1630
|
+
# process the path parameters
|
1631
|
+
if id is not None:
|
1632
|
+
_path_params['id'] = id
|
1633
|
+
# process the query parameters
|
1634
|
+
# process the header parameters
|
1635
|
+
# process the form parameters
|
1636
|
+
# process the body parameter
|
1637
|
+
|
1638
|
+
|
1639
|
+
# set the HTTP header `Accept`
|
1640
|
+
if 'Accept' not in _header_params:
|
1641
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1642
|
+
[
|
1643
|
+
'application/json'
|
1644
|
+
]
|
1645
|
+
)
|
1646
|
+
|
1647
|
+
|
1648
|
+
# authentication setting
|
1649
|
+
_auth_settings: List[str] = [
|
1650
|
+
'default'
|
1651
|
+
]
|
1652
|
+
|
1653
|
+
return self.api_client.param_serialize(
|
1654
|
+
method='GET',
|
1655
|
+
resource_path='/payments/requests/{id}/automatic-pix/schedules',
|
1656
|
+
path_params=_path_params,
|
1657
|
+
query_params=_query_params,
|
1658
|
+
header_params=_header_params,
|
1659
|
+
body=_body_params,
|
1660
|
+
post_params=_form_params,
|
1661
|
+
files=_files,
|
1662
|
+
auth_settings=_auth_settings,
|
1663
|
+
collection_formats=_collection_formats,
|
1664
|
+
_host=_host,
|
1665
|
+
_request_auth=_request_auth
|
1666
|
+
)
|
1667
|
+
|
1668
|
+
|
1669
|
+
|
1670
|
+
|
1671
|
+
@validate_call
|
1672
|
+
def retry_automatic_pix_schedule(
|
1673
|
+
self,
|
1674
|
+
id: Annotated[StrictStr, Field(description="Payment request primary identifier")],
|
1675
|
+
schedule_id: Annotated[StrictStr, Field(description="Automatic PIX schedule primary identifier")],
|
1676
|
+
retry_automatic_pix_payment_request: RetryAutomaticPixPaymentRequest,
|
1677
|
+
_request_timeout: Union[
|
1678
|
+
None,
|
1679
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1680
|
+
Tuple[
|
1681
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1682
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1683
|
+
]
|
1684
|
+
] = None,
|
1685
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1686
|
+
_content_type: Optional[StrictStr] = None,
|
1687
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1688
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1689
|
+
) -> None:
|
1690
|
+
"""Retry an Automatic PIX schedule
|
1691
|
+
|
1692
|
+
Retries an Automatic PIX schedule, only if the authorization accepts retries. The system allows up to 3 retry attempts. Requests must be submitted by 10pm on the day before the scheduled payment date.
|
1693
|
+
|
1694
|
+
:param id: Payment request primary identifier (required)
|
1695
|
+
:type id: str
|
1696
|
+
:param schedule_id: Automatic PIX schedule primary identifier (required)
|
1697
|
+
:type schedule_id: str
|
1698
|
+
:param retry_automatic_pix_payment_request: (required)
|
1699
|
+
:type retry_automatic_pix_payment_request: RetryAutomaticPixPaymentRequest
|
1700
|
+
:param _request_timeout: timeout setting for this request. If one
|
1701
|
+
number provided, it will be total request
|
1702
|
+
timeout. It can also be a pair (tuple) of
|
1703
|
+
(connection, read) timeouts.
|
1704
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1705
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1706
|
+
request; this effectively ignores the
|
1707
|
+
authentication in the spec for a single request.
|
1708
|
+
:type _request_auth: dict, optional
|
1709
|
+
:param _content_type: force content-type for the request.
|
1710
|
+
:type _content_type: str, Optional
|
1711
|
+
:param _headers: set to override the headers for a single
|
1712
|
+
request; this effectively ignores the headers
|
1713
|
+
in the spec for a single request.
|
1714
|
+
:type _headers: dict, optional
|
1715
|
+
:param _host_index: set to override the host_index for a single
|
1716
|
+
request; this effectively ignores the host_index
|
1717
|
+
in the spec for a single request.
|
1718
|
+
:type _host_index: int, optional
|
1719
|
+
:return: Returns the result object.
|
1720
|
+
""" # noqa: E501
|
1721
|
+
|
1722
|
+
_param = self._retry_automatic_pix_schedule_serialize(
|
1723
|
+
id=id,
|
1724
|
+
schedule_id=schedule_id,
|
1725
|
+
retry_automatic_pix_payment_request=retry_automatic_pix_payment_request,
|
1726
|
+
_request_auth=_request_auth,
|
1727
|
+
_content_type=_content_type,
|
1728
|
+
_headers=_headers,
|
1729
|
+
_host_index=_host_index
|
1730
|
+
)
|
1731
|
+
|
1732
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1733
|
+
'204': None,
|
1734
|
+
}
|
1735
|
+
response_data = self.api_client.call_api(
|
1736
|
+
*_param,
|
1737
|
+
_request_timeout=_request_timeout
|
1738
|
+
)
|
1739
|
+
response_data.read()
|
1740
|
+
return self.api_client.response_deserialize(
|
1741
|
+
response_data=response_data,
|
1742
|
+
response_types_map=_response_types_map,
|
1743
|
+
).data
|
1744
|
+
|
1745
|
+
|
1746
|
+
@validate_call
|
1747
|
+
def retry_automatic_pix_schedule_with_http_info(
|
1748
|
+
self,
|
1749
|
+
id: Annotated[StrictStr, Field(description="Payment request primary identifier")],
|
1750
|
+
schedule_id: Annotated[StrictStr, Field(description="Automatic PIX schedule primary identifier")],
|
1751
|
+
retry_automatic_pix_payment_request: RetryAutomaticPixPaymentRequest,
|
1752
|
+
_request_timeout: Union[
|
1753
|
+
None,
|
1754
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1755
|
+
Tuple[
|
1756
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1757
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1758
|
+
]
|
1759
|
+
] = None,
|
1760
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1761
|
+
_content_type: Optional[StrictStr] = None,
|
1762
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1763
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1764
|
+
) -> ApiResponse[None]:
|
1765
|
+
"""Retry an Automatic PIX schedule
|
1766
|
+
|
1767
|
+
Retries an Automatic PIX schedule, only if the authorization accepts retries. The system allows up to 3 retry attempts. Requests must be submitted by 10pm on the day before the scheduled payment date.
|
1768
|
+
|
1769
|
+
:param id: Payment request primary identifier (required)
|
1770
|
+
:type id: str
|
1771
|
+
:param schedule_id: Automatic PIX schedule primary identifier (required)
|
1772
|
+
:type schedule_id: str
|
1773
|
+
:param retry_automatic_pix_payment_request: (required)
|
1774
|
+
:type retry_automatic_pix_payment_request: RetryAutomaticPixPaymentRequest
|
1775
|
+
:param _request_timeout: timeout setting for this request. If one
|
1776
|
+
number provided, it will be total request
|
1777
|
+
timeout. It can also be a pair (tuple) of
|
1778
|
+
(connection, read) timeouts.
|
1779
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1780
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1781
|
+
request; this effectively ignores the
|
1782
|
+
authentication in the spec for a single request.
|
1783
|
+
:type _request_auth: dict, optional
|
1784
|
+
:param _content_type: force content-type for the request.
|
1785
|
+
:type _content_type: str, Optional
|
1786
|
+
:param _headers: set to override the headers for a single
|
1787
|
+
request; this effectively ignores the headers
|
1788
|
+
in the spec for a single request.
|
1789
|
+
:type _headers: dict, optional
|
1790
|
+
:param _host_index: set to override the host_index for a single
|
1791
|
+
request; this effectively ignores the host_index
|
1792
|
+
in the spec for a single request.
|
1793
|
+
:type _host_index: int, optional
|
1794
|
+
:return: Returns the result object.
|
1795
|
+
""" # noqa: E501
|
1796
|
+
|
1797
|
+
_param = self._retry_automatic_pix_schedule_serialize(
|
1798
|
+
id=id,
|
1799
|
+
schedule_id=schedule_id,
|
1800
|
+
retry_automatic_pix_payment_request=retry_automatic_pix_payment_request,
|
1801
|
+
_request_auth=_request_auth,
|
1802
|
+
_content_type=_content_type,
|
1803
|
+
_headers=_headers,
|
1804
|
+
_host_index=_host_index
|
1805
|
+
)
|
1806
|
+
|
1807
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1808
|
+
'204': None,
|
1809
|
+
}
|
1810
|
+
response_data = self.api_client.call_api(
|
1811
|
+
*_param,
|
1812
|
+
_request_timeout=_request_timeout
|
1813
|
+
)
|
1814
|
+
response_data.read()
|
1815
|
+
return self.api_client.response_deserialize(
|
1816
|
+
response_data=response_data,
|
1817
|
+
response_types_map=_response_types_map,
|
1818
|
+
)
|
1819
|
+
|
1820
|
+
|
1821
|
+
@validate_call
|
1822
|
+
def retry_automatic_pix_schedule_without_preload_content(
|
1823
|
+
self,
|
1824
|
+
id: Annotated[StrictStr, Field(description="Payment request primary identifier")],
|
1825
|
+
schedule_id: Annotated[StrictStr, Field(description="Automatic PIX schedule primary identifier")],
|
1826
|
+
retry_automatic_pix_payment_request: RetryAutomaticPixPaymentRequest,
|
1827
|
+
_request_timeout: Union[
|
1828
|
+
None,
|
1829
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1830
|
+
Tuple[
|
1831
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1832
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1833
|
+
]
|
1834
|
+
] = None,
|
1835
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1836
|
+
_content_type: Optional[StrictStr] = None,
|
1837
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1838
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1839
|
+
) -> RESTResponseType:
|
1840
|
+
"""Retry an Automatic PIX schedule
|
1841
|
+
|
1842
|
+
Retries an Automatic PIX schedule, only if the authorization accepts retries. The system allows up to 3 retry attempts. Requests must be submitted by 10pm on the day before the scheduled payment date.
|
1843
|
+
|
1844
|
+
:param id: Payment request primary identifier (required)
|
1845
|
+
:type id: str
|
1846
|
+
:param schedule_id: Automatic PIX schedule primary identifier (required)
|
1847
|
+
:type schedule_id: str
|
1848
|
+
:param retry_automatic_pix_payment_request: (required)
|
1849
|
+
:type retry_automatic_pix_payment_request: RetryAutomaticPixPaymentRequest
|
1850
|
+
:param _request_timeout: timeout setting for this request. If one
|
1851
|
+
number provided, it will be total request
|
1852
|
+
timeout. It can also be a pair (tuple) of
|
1853
|
+
(connection, read) timeouts.
|
1854
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1855
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1856
|
+
request; this effectively ignores the
|
1857
|
+
authentication in the spec for a single request.
|
1858
|
+
:type _request_auth: dict, optional
|
1859
|
+
:param _content_type: force content-type for the request.
|
1860
|
+
:type _content_type: str, Optional
|
1861
|
+
:param _headers: set to override the headers for a single
|
1862
|
+
request; this effectively ignores the headers
|
1863
|
+
in the spec for a single request.
|
1864
|
+
:type _headers: dict, optional
|
1865
|
+
:param _host_index: set to override the host_index for a single
|
1866
|
+
request; this effectively ignores the host_index
|
1867
|
+
in the spec for a single request.
|
1868
|
+
:type _host_index: int, optional
|
1869
|
+
:return: Returns the result object.
|
1870
|
+
""" # noqa: E501
|
1871
|
+
|
1872
|
+
_param = self._retry_automatic_pix_schedule_serialize(
|
1873
|
+
id=id,
|
1874
|
+
schedule_id=schedule_id,
|
1875
|
+
retry_automatic_pix_payment_request=retry_automatic_pix_payment_request,
|
1876
|
+
_request_auth=_request_auth,
|
1877
|
+
_content_type=_content_type,
|
1878
|
+
_headers=_headers,
|
1879
|
+
_host_index=_host_index
|
1880
|
+
)
|
1881
|
+
|
1882
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1883
|
+
'204': None,
|
1884
|
+
}
|
1885
|
+
response_data = self.api_client.call_api(
|
1886
|
+
*_param,
|
1887
|
+
_request_timeout=_request_timeout
|
1888
|
+
)
|
1889
|
+
return response_data.response
|
1890
|
+
|
1891
|
+
|
1892
|
+
def _retry_automatic_pix_schedule_serialize(
|
1893
|
+
self,
|
1894
|
+
id,
|
1895
|
+
schedule_id,
|
1896
|
+
retry_automatic_pix_payment_request,
|
1897
|
+
_request_auth,
|
1898
|
+
_content_type,
|
1899
|
+
_headers,
|
1900
|
+
_host_index,
|
1901
|
+
) -> RequestSerialized:
|
1902
|
+
|
1903
|
+
_host = None
|
1904
|
+
|
1905
|
+
_collection_formats: Dict[str, str] = {
|
1906
|
+
}
|
1907
|
+
|
1908
|
+
_path_params: Dict[str, str] = {}
|
1909
|
+
_query_params: List[Tuple[str, str]] = []
|
1910
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
1911
|
+
_form_params: List[Tuple[str, str]] = []
|
1912
|
+
_files: Dict[
|
1913
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
1914
|
+
] = {}
|
1915
|
+
_body_params: Optional[bytes] = None
|
1916
|
+
|
1917
|
+
# process the path parameters
|
1918
|
+
if id is not None:
|
1919
|
+
_path_params['id'] = id
|
1920
|
+
if schedule_id is not None:
|
1921
|
+
_path_params['scheduleId'] = schedule_id
|
1922
|
+
# process the query parameters
|
1923
|
+
# process the header parameters
|
1924
|
+
# process the form parameters
|
1925
|
+
# process the body parameter
|
1926
|
+
if retry_automatic_pix_payment_request is not None:
|
1927
|
+
_body_params = retry_automatic_pix_payment_request
|
1928
|
+
|
1929
|
+
|
1930
|
+
|
1931
|
+
# set the HTTP header `Content-Type`
|
1932
|
+
if _content_type:
|
1933
|
+
_header_params['Content-Type'] = _content_type
|
1934
|
+
else:
|
1935
|
+
_default_content_type = (
|
1936
|
+
self.api_client.select_header_content_type(
|
1937
|
+
[
|
1938
|
+
'application/json'
|
1939
|
+
]
|
1940
|
+
)
|
1941
|
+
)
|
1942
|
+
if _default_content_type is not None:
|
1943
|
+
_header_params['Content-Type'] = _default_content_type
|
1944
|
+
|
1945
|
+
# authentication setting
|
1946
|
+
_auth_settings: List[str] = [
|
1947
|
+
'default'
|
1948
|
+
]
|
1949
|
+
|
1950
|
+
return self.api_client.param_serialize(
|
1951
|
+
method='POST',
|
1952
|
+
resource_path='/payments/requests/{id}/automatic-pix/schedules/{scheduleId}/retry',
|
1953
|
+
path_params=_path_params,
|
1954
|
+
query_params=_query_params,
|
1955
|
+
header_params=_header_params,
|
1956
|
+
body=_body_params,
|
1957
|
+
post_params=_form_params,
|
1958
|
+
files=_files,
|
1959
|
+
auth_settings=_auth_settings,
|
1960
|
+
collection_formats=_collection_formats,
|
1961
|
+
_host=_host,
|
1962
|
+
_request_auth=_request_auth
|
1963
|
+
)
|
1964
|
+
|
1965
|
+
|