pluggy-sdk 1.0.0.post11__py3-none-any.whl → 1.0.0.post12__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 +15 -1
- pluggy_sdk/api/__init__.py +1 -0
- pluggy_sdk/api/payment_request_api.py +259 -0
- pluggy_sdk/api/payroll_loan_api.py +561 -0
- pluggy_sdk/api_client.py +1 -1
- pluggy_sdk/configuration.py +1 -1
- pluggy_sdk/models/__init__.py +13 -0
- pluggy_sdk/models/consent.py +120 -0
- pluggy_sdk/models/create_payment_request.py +8 -2
- pluggy_sdk/models/page_response_consents.py +102 -0
- pluggy_sdk/models/payment_recipient_account.py +2 -9
- pluggy_sdk/models/payment_request.py +8 -2
- pluggy_sdk/models/payment_request_schedule.py +183 -0
- pluggy_sdk/models/payment_schedules_list200_response.py +102 -0
- pluggy_sdk/models/payroll_loan_response.py +125 -0
- pluggy_sdk/models/payroll_loan_response_client.py +102 -0
- pluggy_sdk/models/payroll_loans_list200_response.py +102 -0
- pluggy_sdk/models/schedule_payment.py +102 -0
- pluggy_sdk/models/schedule_type_custom.py +100 -0
- pluggy_sdk/models/schedule_type_daily.py +101 -0
- pluggy_sdk/models/schedule_type_monthly.py +103 -0
- pluggy_sdk/models/schedule_type_single.py +98 -0
- pluggy_sdk/models/schedule_type_weekly.py +110 -0
- {pluggy_sdk-1.0.0.post11.dist-info → pluggy_sdk-1.0.0.post12.dist-info}/METADATA +18 -2
- {pluggy_sdk-1.0.0.post11.dist-info → pluggy_sdk-1.0.0.post12.dist-info}/RECORD +27 -13
- {pluggy_sdk-1.0.0.post11.dist-info → pluggy_sdk-1.0.0.post12.dist-info}/WHEEL +0 -0
- {pluggy_sdk-1.0.0.post11.dist-info → pluggy_sdk-1.0.0.post12.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,561 @@
|
|
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.payroll_loan_response import PayrollLoanResponse
|
23
|
+
from pluggy_sdk.models.payroll_loans_list200_response import PayrollLoansList200Response
|
24
|
+
|
25
|
+
from pluggy_sdk.api_client import ApiClient, RequestSerialized
|
26
|
+
from pluggy_sdk.api_response import ApiResponse
|
27
|
+
from pluggy_sdk.rest import RESTResponseType
|
28
|
+
|
29
|
+
|
30
|
+
class PayrollLoanApi:
|
31
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
32
|
+
Ref: https://openapi-generator.tech
|
33
|
+
|
34
|
+
Do not edit the class manually.
|
35
|
+
"""
|
36
|
+
|
37
|
+
def __init__(self, api_client=None) -> None:
|
38
|
+
if api_client is None:
|
39
|
+
api_client = ApiClient.get_default()
|
40
|
+
self.api_client = api_client
|
41
|
+
|
42
|
+
|
43
|
+
@validate_call
|
44
|
+
def payroll_loans_list(
|
45
|
+
self,
|
46
|
+
item_id: Annotated[StrictStr, Field(description="Item's primary identifier")],
|
47
|
+
_request_timeout: Union[
|
48
|
+
None,
|
49
|
+
Annotated[StrictFloat, Field(gt=0)],
|
50
|
+
Tuple[
|
51
|
+
Annotated[StrictFloat, Field(gt=0)],
|
52
|
+
Annotated[StrictFloat, Field(gt=0)]
|
53
|
+
]
|
54
|
+
] = None,
|
55
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
56
|
+
_content_type: Optional[StrictStr] = None,
|
57
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
58
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
59
|
+
) -> PayrollLoansList200Response:
|
60
|
+
"""List
|
61
|
+
|
62
|
+
Recovers all payroll loans collected for the item provided
|
63
|
+
|
64
|
+
:param item_id: Item's primary identifier (required)
|
65
|
+
:type item_id: str
|
66
|
+
:param _request_timeout: timeout setting for this request. If one
|
67
|
+
number provided, it will be total request
|
68
|
+
timeout. It can also be a pair (tuple) of
|
69
|
+
(connection, read) timeouts.
|
70
|
+
:type _request_timeout: int, tuple(int, int), optional
|
71
|
+
:param _request_auth: set to override the auth_settings for an a single
|
72
|
+
request; this effectively ignores the
|
73
|
+
authentication in the spec for a single request.
|
74
|
+
:type _request_auth: dict, optional
|
75
|
+
:param _content_type: force content-type for the request.
|
76
|
+
:type _content_type: str, Optional
|
77
|
+
:param _headers: set to override the headers for a single
|
78
|
+
request; this effectively ignores the headers
|
79
|
+
in the spec for a single request.
|
80
|
+
:type _headers: dict, optional
|
81
|
+
:param _host_index: set to override the host_index for a single
|
82
|
+
request; this effectively ignores the host_index
|
83
|
+
in the spec for a single request.
|
84
|
+
:type _host_index: int, optional
|
85
|
+
:return: Returns the result object.
|
86
|
+
""" # noqa: E501
|
87
|
+
|
88
|
+
_param = self._payroll_loans_list_serialize(
|
89
|
+
item_id=item_id,
|
90
|
+
_request_auth=_request_auth,
|
91
|
+
_content_type=_content_type,
|
92
|
+
_headers=_headers,
|
93
|
+
_host_index=_host_index
|
94
|
+
)
|
95
|
+
|
96
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
97
|
+
'200': "PayrollLoansList200Response",
|
98
|
+
}
|
99
|
+
response_data = self.api_client.call_api(
|
100
|
+
*_param,
|
101
|
+
_request_timeout=_request_timeout
|
102
|
+
)
|
103
|
+
response_data.read()
|
104
|
+
return self.api_client.response_deserialize(
|
105
|
+
response_data=response_data,
|
106
|
+
response_types_map=_response_types_map,
|
107
|
+
).data
|
108
|
+
|
109
|
+
|
110
|
+
@validate_call
|
111
|
+
def payroll_loans_list_with_http_info(
|
112
|
+
self,
|
113
|
+
item_id: Annotated[StrictStr, Field(description="Item's primary identifier")],
|
114
|
+
_request_timeout: Union[
|
115
|
+
None,
|
116
|
+
Annotated[StrictFloat, Field(gt=0)],
|
117
|
+
Tuple[
|
118
|
+
Annotated[StrictFloat, Field(gt=0)],
|
119
|
+
Annotated[StrictFloat, Field(gt=0)]
|
120
|
+
]
|
121
|
+
] = None,
|
122
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
123
|
+
_content_type: Optional[StrictStr] = None,
|
124
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
125
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
126
|
+
) -> ApiResponse[PayrollLoansList200Response]:
|
127
|
+
"""List
|
128
|
+
|
129
|
+
Recovers all payroll loans collected for the item provided
|
130
|
+
|
131
|
+
:param item_id: Item's primary identifier (required)
|
132
|
+
:type item_id: str
|
133
|
+
:param _request_timeout: timeout setting for this request. If one
|
134
|
+
number provided, it will be total request
|
135
|
+
timeout. It can also be a pair (tuple) of
|
136
|
+
(connection, read) timeouts.
|
137
|
+
:type _request_timeout: int, tuple(int, int), optional
|
138
|
+
:param _request_auth: set to override the auth_settings for an a single
|
139
|
+
request; this effectively ignores the
|
140
|
+
authentication in the spec for a single request.
|
141
|
+
:type _request_auth: dict, optional
|
142
|
+
:param _content_type: force content-type for the request.
|
143
|
+
:type _content_type: str, Optional
|
144
|
+
:param _headers: set to override the headers for a single
|
145
|
+
request; this effectively ignores the headers
|
146
|
+
in the spec for a single request.
|
147
|
+
:type _headers: dict, optional
|
148
|
+
:param _host_index: set to override the host_index for a single
|
149
|
+
request; this effectively ignores the host_index
|
150
|
+
in the spec for a single request.
|
151
|
+
:type _host_index: int, optional
|
152
|
+
:return: Returns the result object.
|
153
|
+
""" # noqa: E501
|
154
|
+
|
155
|
+
_param = self._payroll_loans_list_serialize(
|
156
|
+
item_id=item_id,
|
157
|
+
_request_auth=_request_auth,
|
158
|
+
_content_type=_content_type,
|
159
|
+
_headers=_headers,
|
160
|
+
_host_index=_host_index
|
161
|
+
)
|
162
|
+
|
163
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
164
|
+
'200': "PayrollLoansList200Response",
|
165
|
+
}
|
166
|
+
response_data = self.api_client.call_api(
|
167
|
+
*_param,
|
168
|
+
_request_timeout=_request_timeout
|
169
|
+
)
|
170
|
+
response_data.read()
|
171
|
+
return self.api_client.response_deserialize(
|
172
|
+
response_data=response_data,
|
173
|
+
response_types_map=_response_types_map,
|
174
|
+
)
|
175
|
+
|
176
|
+
|
177
|
+
@validate_call
|
178
|
+
def payroll_loans_list_without_preload_content(
|
179
|
+
self,
|
180
|
+
item_id: Annotated[StrictStr, Field(description="Item's primary identifier")],
|
181
|
+
_request_timeout: Union[
|
182
|
+
None,
|
183
|
+
Annotated[StrictFloat, Field(gt=0)],
|
184
|
+
Tuple[
|
185
|
+
Annotated[StrictFloat, Field(gt=0)],
|
186
|
+
Annotated[StrictFloat, Field(gt=0)]
|
187
|
+
]
|
188
|
+
] = None,
|
189
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
190
|
+
_content_type: Optional[StrictStr] = None,
|
191
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
192
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
193
|
+
) -> RESTResponseType:
|
194
|
+
"""List
|
195
|
+
|
196
|
+
Recovers all payroll loans collected for the item provided
|
197
|
+
|
198
|
+
:param item_id: Item's primary identifier (required)
|
199
|
+
:type item_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._payroll_loans_list_serialize(
|
223
|
+
item_id=item_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': "PayrollLoansList200Response",
|
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 _payroll_loans_list_serialize(
|
241
|
+
self,
|
242
|
+
item_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[str, Union[str, bytes]] = {}
|
259
|
+
_body_params: Optional[bytes] = None
|
260
|
+
|
261
|
+
# process the path parameters
|
262
|
+
# process the query parameters
|
263
|
+
if item_id is not None:
|
264
|
+
|
265
|
+
_query_params.append(('itemId', item_id))
|
266
|
+
|
267
|
+
# process the header parameters
|
268
|
+
# process the form parameters
|
269
|
+
# process the body parameter
|
270
|
+
|
271
|
+
|
272
|
+
# set the HTTP header `Accept`
|
273
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
274
|
+
[
|
275
|
+
'application/json'
|
276
|
+
]
|
277
|
+
)
|
278
|
+
|
279
|
+
|
280
|
+
# authentication setting
|
281
|
+
_auth_settings: List[str] = [
|
282
|
+
'default'
|
283
|
+
]
|
284
|
+
|
285
|
+
return self.api_client.param_serialize(
|
286
|
+
method='GET',
|
287
|
+
resource_path='/payroll-loans',
|
288
|
+
path_params=_path_params,
|
289
|
+
query_params=_query_params,
|
290
|
+
header_params=_header_params,
|
291
|
+
body=_body_params,
|
292
|
+
post_params=_form_params,
|
293
|
+
files=_files,
|
294
|
+
auth_settings=_auth_settings,
|
295
|
+
collection_formats=_collection_formats,
|
296
|
+
_host=_host,
|
297
|
+
_request_auth=_request_auth
|
298
|
+
)
|
299
|
+
|
300
|
+
|
301
|
+
|
302
|
+
|
303
|
+
@validate_call
|
304
|
+
def payroll_loans_retrieve(
|
305
|
+
self,
|
306
|
+
id: Annotated[StrictStr, Field(description="loan primary identifier")],
|
307
|
+
_request_timeout: Union[
|
308
|
+
None,
|
309
|
+
Annotated[StrictFloat, Field(gt=0)],
|
310
|
+
Tuple[
|
311
|
+
Annotated[StrictFloat, Field(gt=0)],
|
312
|
+
Annotated[StrictFloat, Field(gt=0)]
|
313
|
+
]
|
314
|
+
] = None,
|
315
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
316
|
+
_content_type: Optional[StrictStr] = None,
|
317
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
318
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
319
|
+
) -> PayrollLoanResponse:
|
320
|
+
"""Retrieve
|
321
|
+
|
322
|
+
Recovers the payroll loan resource by its id
|
323
|
+
|
324
|
+
:param id: loan primary identifier (required)
|
325
|
+
:type id: str
|
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._payroll_loans_retrieve_serialize(
|
349
|
+
id=id,
|
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': "PayrollLoanResponse",
|
358
|
+
'404': "GlobalErrorResponse",
|
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 payroll_loans_retrieve_with_http_info(
|
373
|
+
self,
|
374
|
+
id: Annotated[StrictStr, Field(description="loan primary identifier")],
|
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[PayrollLoanResponse]:
|
388
|
+
"""Retrieve
|
389
|
+
|
390
|
+
Recovers the payroll loan resource by its id
|
391
|
+
|
392
|
+
:param id: loan primary identifier (required)
|
393
|
+
:type id: str
|
394
|
+
:param _request_timeout: timeout setting for this request. If one
|
395
|
+
number provided, it will be total request
|
396
|
+
timeout. It can also be a pair (tuple) of
|
397
|
+
(connection, read) timeouts.
|
398
|
+
:type _request_timeout: int, tuple(int, int), optional
|
399
|
+
:param _request_auth: set to override the auth_settings for an a single
|
400
|
+
request; this effectively ignores the
|
401
|
+
authentication in the spec for a single request.
|
402
|
+
:type _request_auth: dict, optional
|
403
|
+
:param _content_type: force content-type for the request.
|
404
|
+
:type _content_type: str, Optional
|
405
|
+
:param _headers: set to override the headers for a single
|
406
|
+
request; this effectively ignores the headers
|
407
|
+
in the spec for a single request.
|
408
|
+
:type _headers: dict, optional
|
409
|
+
:param _host_index: set to override the host_index for a single
|
410
|
+
request; this effectively ignores the host_index
|
411
|
+
in the spec for a single request.
|
412
|
+
:type _host_index: int, optional
|
413
|
+
:return: Returns the result object.
|
414
|
+
""" # noqa: E501
|
415
|
+
|
416
|
+
_param = self._payroll_loans_retrieve_serialize(
|
417
|
+
id=id,
|
418
|
+
_request_auth=_request_auth,
|
419
|
+
_content_type=_content_type,
|
420
|
+
_headers=_headers,
|
421
|
+
_host_index=_host_index
|
422
|
+
)
|
423
|
+
|
424
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
425
|
+
'200': "PayrollLoanResponse",
|
426
|
+
'404': "GlobalErrorResponse",
|
427
|
+
}
|
428
|
+
response_data = self.api_client.call_api(
|
429
|
+
*_param,
|
430
|
+
_request_timeout=_request_timeout
|
431
|
+
)
|
432
|
+
response_data.read()
|
433
|
+
return self.api_client.response_deserialize(
|
434
|
+
response_data=response_data,
|
435
|
+
response_types_map=_response_types_map,
|
436
|
+
)
|
437
|
+
|
438
|
+
|
439
|
+
@validate_call
|
440
|
+
def payroll_loans_retrieve_without_preload_content(
|
441
|
+
self,
|
442
|
+
id: Annotated[StrictStr, Field(description="loan primary identifier")],
|
443
|
+
_request_timeout: Union[
|
444
|
+
None,
|
445
|
+
Annotated[StrictFloat, Field(gt=0)],
|
446
|
+
Tuple[
|
447
|
+
Annotated[StrictFloat, Field(gt=0)],
|
448
|
+
Annotated[StrictFloat, Field(gt=0)]
|
449
|
+
]
|
450
|
+
] = None,
|
451
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
452
|
+
_content_type: Optional[StrictStr] = None,
|
453
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
454
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
455
|
+
) -> RESTResponseType:
|
456
|
+
"""Retrieve
|
457
|
+
|
458
|
+
Recovers the payroll loan resource by its id
|
459
|
+
|
460
|
+
:param id: loan primary identifier (required)
|
461
|
+
:type id: str
|
462
|
+
:param _request_timeout: timeout setting for this request. If one
|
463
|
+
number provided, it will be total request
|
464
|
+
timeout. It can also be a pair (tuple) of
|
465
|
+
(connection, read) timeouts.
|
466
|
+
:type _request_timeout: int, tuple(int, int), optional
|
467
|
+
:param _request_auth: set to override the auth_settings for an a single
|
468
|
+
request; this effectively ignores the
|
469
|
+
authentication in the spec for a single request.
|
470
|
+
:type _request_auth: dict, optional
|
471
|
+
:param _content_type: force content-type for the request.
|
472
|
+
:type _content_type: str, Optional
|
473
|
+
:param _headers: set to override the headers for a single
|
474
|
+
request; this effectively ignores the headers
|
475
|
+
in the spec for a single request.
|
476
|
+
:type _headers: dict, optional
|
477
|
+
:param _host_index: set to override the host_index for a single
|
478
|
+
request; this effectively ignores the host_index
|
479
|
+
in the spec for a single request.
|
480
|
+
:type _host_index: int, optional
|
481
|
+
:return: Returns the result object.
|
482
|
+
""" # noqa: E501
|
483
|
+
|
484
|
+
_param = self._payroll_loans_retrieve_serialize(
|
485
|
+
id=id,
|
486
|
+
_request_auth=_request_auth,
|
487
|
+
_content_type=_content_type,
|
488
|
+
_headers=_headers,
|
489
|
+
_host_index=_host_index
|
490
|
+
)
|
491
|
+
|
492
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
493
|
+
'200': "PayrollLoanResponse",
|
494
|
+
'404': "GlobalErrorResponse",
|
495
|
+
}
|
496
|
+
response_data = self.api_client.call_api(
|
497
|
+
*_param,
|
498
|
+
_request_timeout=_request_timeout
|
499
|
+
)
|
500
|
+
return response_data.response
|
501
|
+
|
502
|
+
|
503
|
+
def _payroll_loans_retrieve_serialize(
|
504
|
+
self,
|
505
|
+
id,
|
506
|
+
_request_auth,
|
507
|
+
_content_type,
|
508
|
+
_headers,
|
509
|
+
_host_index,
|
510
|
+
) -> RequestSerialized:
|
511
|
+
|
512
|
+
_host = None
|
513
|
+
|
514
|
+
_collection_formats: Dict[str, str] = {
|
515
|
+
}
|
516
|
+
|
517
|
+
_path_params: Dict[str, str] = {}
|
518
|
+
_query_params: List[Tuple[str, str]] = []
|
519
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
520
|
+
_form_params: List[Tuple[str, str]] = []
|
521
|
+
_files: Dict[str, Union[str, bytes]] = {}
|
522
|
+
_body_params: Optional[bytes] = None
|
523
|
+
|
524
|
+
# process the path parameters
|
525
|
+
if id is not None:
|
526
|
+
_path_params['id'] = id
|
527
|
+
# process the query parameters
|
528
|
+
# process the header parameters
|
529
|
+
# process the form parameters
|
530
|
+
# process the body parameter
|
531
|
+
|
532
|
+
|
533
|
+
# set the HTTP header `Accept`
|
534
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
535
|
+
[
|
536
|
+
'application/json'
|
537
|
+
]
|
538
|
+
)
|
539
|
+
|
540
|
+
|
541
|
+
# authentication setting
|
542
|
+
_auth_settings: List[str] = [
|
543
|
+
'default'
|
544
|
+
]
|
545
|
+
|
546
|
+
return self.api_client.param_serialize(
|
547
|
+
method='GET',
|
548
|
+
resource_path='/payroll-loans/{id}',
|
549
|
+
path_params=_path_params,
|
550
|
+
query_params=_query_params,
|
551
|
+
header_params=_header_params,
|
552
|
+
body=_body_params,
|
553
|
+
post_params=_form_params,
|
554
|
+
files=_files,
|
555
|
+
auth_settings=_auth_settings,
|
556
|
+
collection_formats=_collection_formats,
|
557
|
+
_host=_host,
|
558
|
+
_request_auth=_request_auth
|
559
|
+
)
|
560
|
+
|
561
|
+
|
pluggy_sdk/api_client.py
CHANGED
@@ -89,7 +89,7 @@ class ApiClient:
|
|
89
89
|
self.default_headers[header_name] = header_value
|
90
90
|
self.cookie = cookie
|
91
91
|
# Set default User-Agent.
|
92
|
-
self.user_agent = 'OpenAPI-Generator/1.0.0.
|
92
|
+
self.user_agent = 'OpenAPI-Generator/1.0.0.post12/python'
|
93
93
|
self.client_side_validation = configuration.client_side_validation
|
94
94
|
|
95
95
|
def __enter__(self):
|
pluggy_sdk/configuration.py
CHANGED
@@ -400,7 +400,7 @@ conf = pluggy_sdk.Configuration(
|
|
400
400
|
"OS: {env}\n"\
|
401
401
|
"Python Version: {pyversion}\n"\
|
402
402
|
"Version of the API: 1.0.0\n"\
|
403
|
-
"SDK Package Version: 1.0.0.
|
403
|
+
"SDK Package Version: 1.0.0.post12".\
|
404
404
|
format(env=sys.platform, pyversion=sys.version)
|
405
405
|
|
406
406
|
def get_host_settings(self):
|
pluggy_sdk/models/__init__.py
CHANGED
@@ -55,6 +55,7 @@ from pluggy_sdk.models.connector_health import ConnectorHealth
|
|
55
55
|
from pluggy_sdk.models.connector_health_details import ConnectorHealthDetails
|
56
56
|
from pluggy_sdk.models.connector_list_response import ConnectorListResponse
|
57
57
|
from pluggy_sdk.models.connector_user_action import ConnectorUserAction
|
58
|
+
from pluggy_sdk.models.consent import Consent
|
58
59
|
from pluggy_sdk.models.create_boleto_payment_request import CreateBoletoPaymentRequest
|
59
60
|
from pluggy_sdk.models.create_bulk_payment import CreateBulkPayment
|
60
61
|
from pluggy_sdk.models.create_client_category_rule import CreateClientCategoryRule
|
@@ -111,6 +112,7 @@ from pluggy_sdk.models.page_response_acquirer_anticipations import PageResponseA
|
|
111
112
|
from pluggy_sdk.models.page_response_acquirer_receivables import PageResponseAcquirerReceivables
|
112
113
|
from pluggy_sdk.models.page_response_acquirer_sales import PageResponseAcquirerSales
|
113
114
|
from pluggy_sdk.models.page_response_category_rules import PageResponseCategoryRules
|
115
|
+
from pluggy_sdk.models.page_response_consents import PageResponseConsents
|
114
116
|
from pluggy_sdk.models.page_response_investment_transactions import PageResponseInvestmentTransactions
|
115
117
|
from pluggy_sdk.models.page_response_transactions import PageResponseTransactions
|
116
118
|
from pluggy_sdk.models.parameter_validation_error import ParameterValidationError
|
@@ -133,10 +135,21 @@ from pluggy_sdk.models.payment_recipients_list200_response import PaymentRecipie
|
|
133
135
|
from pluggy_sdk.models.payment_request import PaymentRequest
|
134
136
|
from pluggy_sdk.models.payment_request_callback_urls import PaymentRequestCallbackUrls
|
135
137
|
from pluggy_sdk.models.payment_request_receipt_list200_response import PaymentRequestReceiptList200Response
|
138
|
+
from pluggy_sdk.models.payment_request_schedule import PaymentRequestSchedule
|
136
139
|
from pluggy_sdk.models.payment_requests_list200_response import PaymentRequestsList200Response
|
140
|
+
from pluggy_sdk.models.payment_schedules_list200_response import PaymentSchedulesList200Response
|
141
|
+
from pluggy_sdk.models.payroll_loan_response import PayrollLoanResponse
|
142
|
+
from pluggy_sdk.models.payroll_loan_response_client import PayrollLoanResponseClient
|
143
|
+
from pluggy_sdk.models.payroll_loans_list200_response import PayrollLoansList200Response
|
137
144
|
from pluggy_sdk.models.percentage_over_index import PercentageOverIndex
|
138
145
|
from pluggy_sdk.models.phone_number import PhoneNumber
|
139
146
|
from pluggy_sdk.models.pix_data import PixData
|
147
|
+
from pluggy_sdk.models.schedule_payment import SchedulePayment
|
148
|
+
from pluggy_sdk.models.schedule_type_custom import ScheduleTypeCustom
|
149
|
+
from pluggy_sdk.models.schedule_type_daily import ScheduleTypeDaily
|
150
|
+
from pluggy_sdk.models.schedule_type_monthly import ScheduleTypeMonthly
|
151
|
+
from pluggy_sdk.models.schedule_type_single import ScheduleTypeSingle
|
152
|
+
from pluggy_sdk.models.schedule_type_weekly import ScheduleTypeWeekly
|
140
153
|
from pluggy_sdk.models.smart_account import SmartAccount
|
141
154
|
from pluggy_sdk.models.smart_account_address import SmartAccountAddress
|
142
155
|
from pluggy_sdk.models.smart_account_balance import SmartAccountBalance
|