pluggy-sdk 1.0.0.post15__py3-none-any.whl → 1.0.0.post17__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 +2 -1
- pluggy_sdk/api/__init__.py +1 -0
- pluggy_sdk/api/payment_receipts_api.py +842 -0
- pluggy_sdk/api/payment_request_api.py +0 -260
- pluggy_sdk/api/payment_schedule_api.py +817 -0
- pluggy_sdk/api/smart_account_transfer_api.py +610 -0
- pluggy_sdk/api_client.py +1 -1
- pluggy_sdk/configuration.py +1 -1
- pluggy_sdk/models/item.py +3 -1
- {pluggy_sdk-1.0.0.post15.dist-info → pluggy_sdk-1.0.0.post17.dist-info}/METADATA +5 -3
- {pluggy_sdk-1.0.0.post15.dist-info → pluggy_sdk-1.0.0.post17.dist-info}/RECORD +13 -10
- {pluggy_sdk-1.0.0.post15.dist-info → pluggy_sdk-1.0.0.post17.dist-info}/WHEEL +1 -1
- {pluggy_sdk-1.0.0.post15.dist-info → pluggy_sdk-1.0.0.post17.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,610 @@
|
|
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.create_smart_account_transfer_request import CreateSmartAccountTransferRequest
|
23
|
+
from pluggy_sdk.models.smart_account_transfer import SmartAccountTransfer
|
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 SmartAccountTransferApi:
|
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 smart_account_transfer(
|
45
|
+
self,
|
46
|
+
id: Annotated[StrictStr, Field(description="Smart account primary identifier")],
|
47
|
+
transfer_id: Annotated[StrictStr, Field(description="Transfer primary identifier")],
|
48
|
+
_request_timeout: Union[
|
49
|
+
None,
|
50
|
+
Annotated[StrictFloat, Field(gt=0)],
|
51
|
+
Tuple[
|
52
|
+
Annotated[StrictFloat, Field(gt=0)],
|
53
|
+
Annotated[StrictFloat, Field(gt=0)]
|
54
|
+
]
|
55
|
+
] = None,
|
56
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
57
|
+
_content_type: Optional[StrictStr] = None,
|
58
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
59
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
60
|
+
) -> SmartAccountTransfer:
|
61
|
+
"""Retrieve Transfer
|
62
|
+
|
63
|
+
Get a transfer from the smart account
|
64
|
+
|
65
|
+
:param id: Smart account primary identifier (required)
|
66
|
+
:type id: str
|
67
|
+
:param transfer_id: Transfer primary identifier (required)
|
68
|
+
:type transfer_id: str
|
69
|
+
:param _request_timeout: timeout setting for this request. If one
|
70
|
+
number provided, it will be total request
|
71
|
+
timeout. It can also be a pair (tuple) of
|
72
|
+
(connection, read) timeouts.
|
73
|
+
:type _request_timeout: int, tuple(int, int), optional
|
74
|
+
:param _request_auth: set to override the auth_settings for an a single
|
75
|
+
request; this effectively ignores the
|
76
|
+
authentication in the spec for a single request.
|
77
|
+
:type _request_auth: dict, optional
|
78
|
+
:param _content_type: force content-type for the request.
|
79
|
+
:type _content_type: str, Optional
|
80
|
+
:param _headers: set to override the headers for a single
|
81
|
+
request; this effectively ignores the headers
|
82
|
+
in the spec for a single request.
|
83
|
+
:type _headers: dict, optional
|
84
|
+
:param _host_index: set to override the host_index for a single
|
85
|
+
request; this effectively ignores the host_index
|
86
|
+
in the spec for a single request.
|
87
|
+
:type _host_index: int, optional
|
88
|
+
:return: Returns the result object.
|
89
|
+
""" # noqa: E501
|
90
|
+
|
91
|
+
_param = self._smart_account_transfer_serialize(
|
92
|
+
id=id,
|
93
|
+
transfer_id=transfer_id,
|
94
|
+
_request_auth=_request_auth,
|
95
|
+
_content_type=_content_type,
|
96
|
+
_headers=_headers,
|
97
|
+
_host_index=_host_index
|
98
|
+
)
|
99
|
+
|
100
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
101
|
+
'200': "SmartAccountTransfer",
|
102
|
+
'404': "GlobalErrorResponse",
|
103
|
+
'400': "GlobalErrorResponse",
|
104
|
+
}
|
105
|
+
response_data = self.api_client.call_api(
|
106
|
+
*_param,
|
107
|
+
_request_timeout=_request_timeout
|
108
|
+
)
|
109
|
+
response_data.read()
|
110
|
+
return self.api_client.response_deserialize(
|
111
|
+
response_data=response_data,
|
112
|
+
response_types_map=_response_types_map,
|
113
|
+
).data
|
114
|
+
|
115
|
+
|
116
|
+
@validate_call
|
117
|
+
def smart_account_transfer_with_http_info(
|
118
|
+
self,
|
119
|
+
id: Annotated[StrictStr, Field(description="Smart account primary identifier")],
|
120
|
+
transfer_id: Annotated[StrictStr, Field(description="Transfer primary identifier")],
|
121
|
+
_request_timeout: Union[
|
122
|
+
None,
|
123
|
+
Annotated[StrictFloat, Field(gt=0)],
|
124
|
+
Tuple[
|
125
|
+
Annotated[StrictFloat, Field(gt=0)],
|
126
|
+
Annotated[StrictFloat, Field(gt=0)]
|
127
|
+
]
|
128
|
+
] = None,
|
129
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
130
|
+
_content_type: Optional[StrictStr] = None,
|
131
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
132
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
133
|
+
) -> ApiResponse[SmartAccountTransfer]:
|
134
|
+
"""Retrieve Transfer
|
135
|
+
|
136
|
+
Get a transfer from the smart account
|
137
|
+
|
138
|
+
:param id: Smart account primary identifier (required)
|
139
|
+
:type id: str
|
140
|
+
:param transfer_id: Transfer primary identifier (required)
|
141
|
+
:type transfer_id: str
|
142
|
+
:param _request_timeout: timeout setting for this request. If one
|
143
|
+
number provided, it will be total request
|
144
|
+
timeout. It can also be a pair (tuple) of
|
145
|
+
(connection, read) timeouts.
|
146
|
+
:type _request_timeout: int, tuple(int, int), optional
|
147
|
+
:param _request_auth: set to override the auth_settings for an a single
|
148
|
+
request; this effectively ignores the
|
149
|
+
authentication in the spec for a single request.
|
150
|
+
:type _request_auth: dict, optional
|
151
|
+
:param _content_type: force content-type for the request.
|
152
|
+
:type _content_type: str, Optional
|
153
|
+
:param _headers: set to override the headers for a single
|
154
|
+
request; this effectively ignores the headers
|
155
|
+
in the spec for a single request.
|
156
|
+
:type _headers: dict, optional
|
157
|
+
:param _host_index: set to override the host_index for a single
|
158
|
+
request; this effectively ignores the host_index
|
159
|
+
in the spec for a single request.
|
160
|
+
:type _host_index: int, optional
|
161
|
+
:return: Returns the result object.
|
162
|
+
""" # noqa: E501
|
163
|
+
|
164
|
+
_param = self._smart_account_transfer_serialize(
|
165
|
+
id=id,
|
166
|
+
transfer_id=transfer_id,
|
167
|
+
_request_auth=_request_auth,
|
168
|
+
_content_type=_content_type,
|
169
|
+
_headers=_headers,
|
170
|
+
_host_index=_host_index
|
171
|
+
)
|
172
|
+
|
173
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
174
|
+
'200': "SmartAccountTransfer",
|
175
|
+
'404': "GlobalErrorResponse",
|
176
|
+
'400': "GlobalErrorResponse",
|
177
|
+
}
|
178
|
+
response_data = self.api_client.call_api(
|
179
|
+
*_param,
|
180
|
+
_request_timeout=_request_timeout
|
181
|
+
)
|
182
|
+
response_data.read()
|
183
|
+
return self.api_client.response_deserialize(
|
184
|
+
response_data=response_data,
|
185
|
+
response_types_map=_response_types_map,
|
186
|
+
)
|
187
|
+
|
188
|
+
|
189
|
+
@validate_call
|
190
|
+
def smart_account_transfer_without_preload_content(
|
191
|
+
self,
|
192
|
+
id: Annotated[StrictStr, Field(description="Smart account primary identifier")],
|
193
|
+
transfer_id: Annotated[StrictStr, Field(description="Transfer primary identifier")],
|
194
|
+
_request_timeout: Union[
|
195
|
+
None,
|
196
|
+
Annotated[StrictFloat, Field(gt=0)],
|
197
|
+
Tuple[
|
198
|
+
Annotated[StrictFloat, Field(gt=0)],
|
199
|
+
Annotated[StrictFloat, Field(gt=0)]
|
200
|
+
]
|
201
|
+
] = None,
|
202
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
203
|
+
_content_type: Optional[StrictStr] = None,
|
204
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
205
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
206
|
+
) -> RESTResponseType:
|
207
|
+
"""Retrieve Transfer
|
208
|
+
|
209
|
+
Get a transfer from the smart account
|
210
|
+
|
211
|
+
:param id: Smart account primary identifier (required)
|
212
|
+
:type id: str
|
213
|
+
:param transfer_id: Transfer primary identifier (required)
|
214
|
+
:type transfer_id: str
|
215
|
+
:param _request_timeout: timeout setting for this request. If one
|
216
|
+
number provided, it will be total request
|
217
|
+
timeout. It can also be a pair (tuple) of
|
218
|
+
(connection, read) timeouts.
|
219
|
+
:type _request_timeout: int, tuple(int, int), optional
|
220
|
+
:param _request_auth: set to override the auth_settings for an a single
|
221
|
+
request; this effectively ignores the
|
222
|
+
authentication in the spec for a single request.
|
223
|
+
:type _request_auth: dict, optional
|
224
|
+
:param _content_type: force content-type for the request.
|
225
|
+
:type _content_type: str, Optional
|
226
|
+
:param _headers: set to override the headers for a single
|
227
|
+
request; this effectively ignores the headers
|
228
|
+
in the spec for a single request.
|
229
|
+
:type _headers: dict, optional
|
230
|
+
:param _host_index: set to override the host_index for a single
|
231
|
+
request; this effectively ignores the host_index
|
232
|
+
in the spec for a single request.
|
233
|
+
:type _host_index: int, optional
|
234
|
+
:return: Returns the result object.
|
235
|
+
""" # noqa: E501
|
236
|
+
|
237
|
+
_param = self._smart_account_transfer_serialize(
|
238
|
+
id=id,
|
239
|
+
transfer_id=transfer_id,
|
240
|
+
_request_auth=_request_auth,
|
241
|
+
_content_type=_content_type,
|
242
|
+
_headers=_headers,
|
243
|
+
_host_index=_host_index
|
244
|
+
)
|
245
|
+
|
246
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
247
|
+
'200': "SmartAccountTransfer",
|
248
|
+
'404': "GlobalErrorResponse",
|
249
|
+
'400': "GlobalErrorResponse",
|
250
|
+
}
|
251
|
+
response_data = self.api_client.call_api(
|
252
|
+
*_param,
|
253
|
+
_request_timeout=_request_timeout
|
254
|
+
)
|
255
|
+
return response_data.response
|
256
|
+
|
257
|
+
|
258
|
+
def _smart_account_transfer_serialize(
|
259
|
+
self,
|
260
|
+
id,
|
261
|
+
transfer_id,
|
262
|
+
_request_auth,
|
263
|
+
_content_type,
|
264
|
+
_headers,
|
265
|
+
_host_index,
|
266
|
+
) -> RequestSerialized:
|
267
|
+
|
268
|
+
_host = None
|
269
|
+
|
270
|
+
_collection_formats: Dict[str, str] = {
|
271
|
+
}
|
272
|
+
|
273
|
+
_path_params: Dict[str, str] = {}
|
274
|
+
_query_params: List[Tuple[str, str]] = []
|
275
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
276
|
+
_form_params: List[Tuple[str, str]] = []
|
277
|
+
_files: Dict[str, Union[str, bytes]] = {}
|
278
|
+
_body_params: Optional[bytes] = None
|
279
|
+
|
280
|
+
# process the path parameters
|
281
|
+
if id is not None:
|
282
|
+
_path_params['id'] = id
|
283
|
+
if transfer_id is not None:
|
284
|
+
_path_params['transfer_id'] = transfer_id
|
285
|
+
# process the query parameters
|
286
|
+
# process the header parameters
|
287
|
+
# process the form parameters
|
288
|
+
# process the body parameter
|
289
|
+
|
290
|
+
|
291
|
+
# set the HTTP header `Accept`
|
292
|
+
if 'Accept' not in _header_params:
|
293
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
294
|
+
[
|
295
|
+
'application/json'
|
296
|
+
]
|
297
|
+
)
|
298
|
+
|
299
|
+
|
300
|
+
# authentication setting
|
301
|
+
_auth_settings: List[str] = [
|
302
|
+
'default'
|
303
|
+
]
|
304
|
+
|
305
|
+
return self.api_client.param_serialize(
|
306
|
+
method='GET',
|
307
|
+
resource_path='/payments/smart-accounts/{id}/transfers/{transfer_id}',
|
308
|
+
path_params=_path_params,
|
309
|
+
query_params=_query_params,
|
310
|
+
header_params=_header_params,
|
311
|
+
body=_body_params,
|
312
|
+
post_params=_form_params,
|
313
|
+
files=_files,
|
314
|
+
auth_settings=_auth_settings,
|
315
|
+
collection_formats=_collection_formats,
|
316
|
+
_host=_host,
|
317
|
+
_request_auth=_request_auth
|
318
|
+
)
|
319
|
+
|
320
|
+
|
321
|
+
|
322
|
+
|
323
|
+
@validate_call
|
324
|
+
def smart_account_transfer_create(
|
325
|
+
self,
|
326
|
+
id: Annotated[StrictStr, Field(description="Smart account primary identifier")],
|
327
|
+
create_smart_account_transfer_request: CreateSmartAccountTransferRequest,
|
328
|
+
_request_timeout: Union[
|
329
|
+
None,
|
330
|
+
Annotated[StrictFloat, Field(gt=0)],
|
331
|
+
Tuple[
|
332
|
+
Annotated[StrictFloat, Field(gt=0)],
|
333
|
+
Annotated[StrictFloat, Field(gt=0)]
|
334
|
+
]
|
335
|
+
] = None,
|
336
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
337
|
+
_content_type: Optional[StrictStr] = None,
|
338
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
339
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
340
|
+
) -> SmartAccountTransfer:
|
341
|
+
"""Create Transfer
|
342
|
+
|
343
|
+
Creates the smart account transfer resource
|
344
|
+
|
345
|
+
:param id: Smart account primary identifier (required)
|
346
|
+
:type id: str
|
347
|
+
:param create_smart_account_transfer_request: (required)
|
348
|
+
:type create_smart_account_transfer_request: CreateSmartAccountTransferRequest
|
349
|
+
:param _request_timeout: timeout setting for this request. If one
|
350
|
+
number provided, it will be total request
|
351
|
+
timeout. It can also be a pair (tuple) of
|
352
|
+
(connection, read) timeouts.
|
353
|
+
:type _request_timeout: int, tuple(int, int), optional
|
354
|
+
:param _request_auth: set to override the auth_settings for an a single
|
355
|
+
request; this effectively ignores the
|
356
|
+
authentication in the spec for a single request.
|
357
|
+
:type _request_auth: dict, optional
|
358
|
+
:param _content_type: force content-type for the request.
|
359
|
+
:type _content_type: str, Optional
|
360
|
+
:param _headers: set to override the headers for a single
|
361
|
+
request; this effectively ignores the headers
|
362
|
+
in the spec for a single request.
|
363
|
+
:type _headers: dict, optional
|
364
|
+
:param _host_index: set to override the host_index for a single
|
365
|
+
request; this effectively ignores the host_index
|
366
|
+
in the spec for a single request.
|
367
|
+
:type _host_index: int, optional
|
368
|
+
:return: Returns the result object.
|
369
|
+
""" # noqa: E501
|
370
|
+
|
371
|
+
_param = self._smart_account_transfer_create_serialize(
|
372
|
+
id=id,
|
373
|
+
create_smart_account_transfer_request=create_smart_account_transfer_request,
|
374
|
+
_request_auth=_request_auth,
|
375
|
+
_content_type=_content_type,
|
376
|
+
_headers=_headers,
|
377
|
+
_host_index=_host_index
|
378
|
+
)
|
379
|
+
|
380
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
381
|
+
'200': "SmartAccountTransfer",
|
382
|
+
'400': "GlobalErrorResponse",
|
383
|
+
}
|
384
|
+
response_data = self.api_client.call_api(
|
385
|
+
*_param,
|
386
|
+
_request_timeout=_request_timeout
|
387
|
+
)
|
388
|
+
response_data.read()
|
389
|
+
return self.api_client.response_deserialize(
|
390
|
+
response_data=response_data,
|
391
|
+
response_types_map=_response_types_map,
|
392
|
+
).data
|
393
|
+
|
394
|
+
|
395
|
+
@validate_call
|
396
|
+
def smart_account_transfer_create_with_http_info(
|
397
|
+
self,
|
398
|
+
id: Annotated[StrictStr, Field(description="Smart account primary identifier")],
|
399
|
+
create_smart_account_transfer_request: CreateSmartAccountTransferRequest,
|
400
|
+
_request_timeout: Union[
|
401
|
+
None,
|
402
|
+
Annotated[StrictFloat, Field(gt=0)],
|
403
|
+
Tuple[
|
404
|
+
Annotated[StrictFloat, Field(gt=0)],
|
405
|
+
Annotated[StrictFloat, Field(gt=0)]
|
406
|
+
]
|
407
|
+
] = None,
|
408
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
409
|
+
_content_type: Optional[StrictStr] = None,
|
410
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
411
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
412
|
+
) -> ApiResponse[SmartAccountTransfer]:
|
413
|
+
"""Create Transfer
|
414
|
+
|
415
|
+
Creates the smart account transfer resource
|
416
|
+
|
417
|
+
:param id: Smart account primary identifier (required)
|
418
|
+
:type id: str
|
419
|
+
:param create_smart_account_transfer_request: (required)
|
420
|
+
:type create_smart_account_transfer_request: CreateSmartAccountTransferRequest
|
421
|
+
:param _request_timeout: timeout setting for this request. If one
|
422
|
+
number provided, it will be total request
|
423
|
+
timeout. It can also be a pair (tuple) of
|
424
|
+
(connection, read) timeouts.
|
425
|
+
:type _request_timeout: int, tuple(int, int), optional
|
426
|
+
:param _request_auth: set to override the auth_settings for an a single
|
427
|
+
request; this effectively ignores the
|
428
|
+
authentication in the spec for a single request.
|
429
|
+
:type _request_auth: dict, optional
|
430
|
+
:param _content_type: force content-type for the request.
|
431
|
+
:type _content_type: str, Optional
|
432
|
+
:param _headers: set to override the headers for a single
|
433
|
+
request; this effectively ignores the headers
|
434
|
+
in the spec for a single request.
|
435
|
+
:type _headers: dict, optional
|
436
|
+
:param _host_index: set to override the host_index for a single
|
437
|
+
request; this effectively ignores the host_index
|
438
|
+
in the spec for a single request.
|
439
|
+
:type _host_index: int, optional
|
440
|
+
:return: Returns the result object.
|
441
|
+
""" # noqa: E501
|
442
|
+
|
443
|
+
_param = self._smart_account_transfer_create_serialize(
|
444
|
+
id=id,
|
445
|
+
create_smart_account_transfer_request=create_smart_account_transfer_request,
|
446
|
+
_request_auth=_request_auth,
|
447
|
+
_content_type=_content_type,
|
448
|
+
_headers=_headers,
|
449
|
+
_host_index=_host_index
|
450
|
+
)
|
451
|
+
|
452
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
453
|
+
'200': "SmartAccountTransfer",
|
454
|
+
'400': "GlobalErrorResponse",
|
455
|
+
}
|
456
|
+
response_data = self.api_client.call_api(
|
457
|
+
*_param,
|
458
|
+
_request_timeout=_request_timeout
|
459
|
+
)
|
460
|
+
response_data.read()
|
461
|
+
return self.api_client.response_deserialize(
|
462
|
+
response_data=response_data,
|
463
|
+
response_types_map=_response_types_map,
|
464
|
+
)
|
465
|
+
|
466
|
+
|
467
|
+
@validate_call
|
468
|
+
def smart_account_transfer_create_without_preload_content(
|
469
|
+
self,
|
470
|
+
id: Annotated[StrictStr, Field(description="Smart account primary identifier")],
|
471
|
+
create_smart_account_transfer_request: CreateSmartAccountTransferRequest,
|
472
|
+
_request_timeout: Union[
|
473
|
+
None,
|
474
|
+
Annotated[StrictFloat, Field(gt=0)],
|
475
|
+
Tuple[
|
476
|
+
Annotated[StrictFloat, Field(gt=0)],
|
477
|
+
Annotated[StrictFloat, Field(gt=0)]
|
478
|
+
]
|
479
|
+
] = None,
|
480
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
481
|
+
_content_type: Optional[StrictStr] = None,
|
482
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
483
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
484
|
+
) -> RESTResponseType:
|
485
|
+
"""Create Transfer
|
486
|
+
|
487
|
+
Creates the smart account transfer resource
|
488
|
+
|
489
|
+
:param id: Smart account primary identifier (required)
|
490
|
+
:type id: str
|
491
|
+
:param create_smart_account_transfer_request: (required)
|
492
|
+
:type create_smart_account_transfer_request: CreateSmartAccountTransferRequest
|
493
|
+
:param _request_timeout: timeout setting for this request. If one
|
494
|
+
number provided, it will be total request
|
495
|
+
timeout. It can also be a pair (tuple) of
|
496
|
+
(connection, read) timeouts.
|
497
|
+
:type _request_timeout: int, tuple(int, int), optional
|
498
|
+
:param _request_auth: set to override the auth_settings for an a single
|
499
|
+
request; this effectively ignores the
|
500
|
+
authentication in the spec for a single request.
|
501
|
+
:type _request_auth: dict, optional
|
502
|
+
:param _content_type: force content-type for the request.
|
503
|
+
:type _content_type: str, Optional
|
504
|
+
:param _headers: set to override the headers for a single
|
505
|
+
request; this effectively ignores the headers
|
506
|
+
in the spec for a single request.
|
507
|
+
:type _headers: dict, optional
|
508
|
+
:param _host_index: set to override the host_index for a single
|
509
|
+
request; this effectively ignores the host_index
|
510
|
+
in the spec for a single request.
|
511
|
+
:type _host_index: int, optional
|
512
|
+
:return: Returns the result object.
|
513
|
+
""" # noqa: E501
|
514
|
+
|
515
|
+
_param = self._smart_account_transfer_create_serialize(
|
516
|
+
id=id,
|
517
|
+
create_smart_account_transfer_request=create_smart_account_transfer_request,
|
518
|
+
_request_auth=_request_auth,
|
519
|
+
_content_type=_content_type,
|
520
|
+
_headers=_headers,
|
521
|
+
_host_index=_host_index
|
522
|
+
)
|
523
|
+
|
524
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
525
|
+
'200': "SmartAccountTransfer",
|
526
|
+
'400': "GlobalErrorResponse",
|
527
|
+
}
|
528
|
+
response_data = self.api_client.call_api(
|
529
|
+
*_param,
|
530
|
+
_request_timeout=_request_timeout
|
531
|
+
)
|
532
|
+
return response_data.response
|
533
|
+
|
534
|
+
|
535
|
+
def _smart_account_transfer_create_serialize(
|
536
|
+
self,
|
537
|
+
id,
|
538
|
+
create_smart_account_transfer_request,
|
539
|
+
_request_auth,
|
540
|
+
_content_type,
|
541
|
+
_headers,
|
542
|
+
_host_index,
|
543
|
+
) -> RequestSerialized:
|
544
|
+
|
545
|
+
_host = None
|
546
|
+
|
547
|
+
_collection_formats: Dict[str, str] = {
|
548
|
+
}
|
549
|
+
|
550
|
+
_path_params: Dict[str, str] = {}
|
551
|
+
_query_params: List[Tuple[str, str]] = []
|
552
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
553
|
+
_form_params: List[Tuple[str, str]] = []
|
554
|
+
_files: Dict[str, Union[str, bytes]] = {}
|
555
|
+
_body_params: Optional[bytes] = None
|
556
|
+
|
557
|
+
# process the path parameters
|
558
|
+
if id is not None:
|
559
|
+
_path_params['id'] = id
|
560
|
+
# process the query parameters
|
561
|
+
# process the header parameters
|
562
|
+
# process the form parameters
|
563
|
+
# process the body parameter
|
564
|
+
if create_smart_account_transfer_request is not None:
|
565
|
+
_body_params = create_smart_account_transfer_request
|
566
|
+
|
567
|
+
|
568
|
+
# set the HTTP header `Accept`
|
569
|
+
if 'Accept' not in _header_params:
|
570
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
571
|
+
[
|
572
|
+
'application/json'
|
573
|
+
]
|
574
|
+
)
|
575
|
+
|
576
|
+
# set the HTTP header `Content-Type`
|
577
|
+
if _content_type:
|
578
|
+
_header_params['Content-Type'] = _content_type
|
579
|
+
else:
|
580
|
+
_default_content_type = (
|
581
|
+
self.api_client.select_header_content_type(
|
582
|
+
[
|
583
|
+
'application/json'
|
584
|
+
]
|
585
|
+
)
|
586
|
+
)
|
587
|
+
if _default_content_type is not None:
|
588
|
+
_header_params['Content-Type'] = _default_content_type
|
589
|
+
|
590
|
+
# authentication setting
|
591
|
+
_auth_settings: List[str] = [
|
592
|
+
'default'
|
593
|
+
]
|
594
|
+
|
595
|
+
return self.api_client.param_serialize(
|
596
|
+
method='POST',
|
597
|
+
resource_path='/payments/smart-accounts/{id}/transfers',
|
598
|
+
path_params=_path_params,
|
599
|
+
query_params=_query_params,
|
600
|
+
header_params=_header_params,
|
601
|
+
body=_body_params,
|
602
|
+
post_params=_form_params,
|
603
|
+
files=_files,
|
604
|
+
auth_settings=_auth_settings,
|
605
|
+
collection_formats=_collection_formats,
|
606
|
+
_host=_host,
|
607
|
+
_request_auth=_request_auth
|
608
|
+
)
|
609
|
+
|
610
|
+
|
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.post17/python'
|
93
93
|
self.client_side_validation = configuration.client_side_validation
|
94
94
|
|
95
95
|
def __enter__(self):
|
pluggy_sdk/configuration.py
CHANGED
@@ -414,7 +414,7 @@ conf = pluggy_sdk.Configuration(
|
|
414
414
|
"OS: {env}\n"\
|
415
415
|
"Python Version: {pyversion}\n"\
|
416
416
|
"Version of the API: 1.0.0\n"\
|
417
|
-
"SDK Package Version: 1.0.0.
|
417
|
+
"SDK Package Version: 1.0.0.post17".\
|
418
418
|
format(env=sys.platform, pyversion=sys.version)
|
419
419
|
|
420
420
|
def get_host_settings(self):
|
pluggy_sdk/models/item.py
CHANGED
@@ -47,8 +47,9 @@ class Item(BaseModel):
|
|
47
47
|
status_detail: Optional[StatusDetail] = Field(default=None, alias="statusDetail")
|
48
48
|
next_auto_sync_at: Optional[datetime] = Field(default=None, description="Date of next auto-sync, or null if auto-sync is disabled for this Item", alias="nextAutoSyncAt")
|
49
49
|
consecutive_failed_login_attempts: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Consecutives execution that ends up with a LOGIN_ERROR status", alias="consecutiveFailedLoginAttempts")
|
50
|
+
consent_expires_at: Optional[datetime] = Field(default=None, description="Consent expiration date", alias="consentExpiresAt")
|
50
51
|
products: Optional[List[StrictStr]] = Field(default=None, description="Products collected by the item")
|
51
|
-
__properties: ClassVar[List[str]] = ["id", "connector", "status", "executionStatus", "error", "parameter", "userAction", "webhookUrl", "createdAt", "updatedAt", "lastUpdatedAt", "statusDetail", "nextAutoSyncAt", "consecutiveFailedLoginAttempts", "products"]
|
52
|
+
__properties: ClassVar[List[str]] = ["id", "connector", "status", "executionStatus", "error", "parameter", "userAction", "webhookUrl", "createdAt", "updatedAt", "lastUpdatedAt", "statusDetail", "nextAutoSyncAt", "consecutiveFailedLoginAttempts", "consentExpiresAt", "products"]
|
52
53
|
|
53
54
|
@field_validator('products')
|
54
55
|
def products_validate_enum(cls, value):
|
@@ -141,6 +142,7 @@ class Item(BaseModel):
|
|
141
142
|
"statusDetail": StatusDetail.from_dict(obj["statusDetail"]) if obj.get("statusDetail") is not None else None,
|
142
143
|
"nextAutoSyncAt": obj.get("nextAutoSyncAt"),
|
143
144
|
"consecutiveFailedLoginAttempts": obj.get("consecutiveFailedLoginAttempts"),
|
145
|
+
"consentExpiresAt": obj.get("consentExpiresAt"),
|
144
146
|
"products": obj.get("products")
|
145
147
|
})
|
146
148
|
return _obj
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: pluggy-sdk
|
3
|
-
Version: 1.0.0.
|
3
|
+
Version: 1.0.0.post17
|
4
4
|
Summary: Pluggy API
|
5
5
|
Home-page: https://github.com/diraol/pluggy-python
|
6
6
|
Author: Pluggy
|
@@ -19,7 +19,7 @@ Pluggy's main API to review data and execute connectors
|
|
19
19
|
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
20
20
|
|
21
21
|
- API version: 1.0.0
|
22
|
-
- Package version: 1.0.0.
|
22
|
+
- Package version: 1.0.0.post17
|
23
23
|
- Generator version: 7.8.0-SNAPSHOT
|
24
24
|
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
25
25
|
For more information, please visit [https://pluggy.ai](https://pluggy.ai)
|
@@ -176,7 +176,9 @@ Class | Method | HTTP request | Description
|
|
176
176
|
*PaymentRequestApi* | [**payment_request_retrieve**](docs/PaymentRequestApi.md#payment_request_retrieve) | **GET** /payments/requests/{id} | Retrieve
|
177
177
|
*PaymentRequestApi* | [**payment_request_update**](docs/PaymentRequestApi.md#payment_request_update) | **PATCH** /payments/requests/{id} | Update
|
178
178
|
*PaymentRequestApi* | [**payment_requests_list**](docs/PaymentRequestApi.md#payment_requests_list) | **GET** /payments/requests | List
|
179
|
-
*
|
179
|
+
*PaymentScheduleApi* | [**payment_schedules_cancel**](docs/PaymentScheduleApi.md#payment_schedules_cancel) | **POST** /payments/requests/{id}/schedules/cancel | Cancel Payment Schedule Authorization
|
180
|
+
*PaymentScheduleApi* | [**payment_schedules_cancel_specific**](docs/PaymentScheduleApi.md#payment_schedules_cancel_specific) | **POST** /payments/requests/{id}/schedules/{scheduleId}/cancel | Cancel Payment Schedule Authorization
|
181
|
+
*PaymentScheduleApi* | [**payment_schedules_list**](docs/PaymentScheduleApi.md#payment_schedules_list) | **GET** /payments/requests/{id}/schedules | List Schedules
|
180
182
|
*PortfolioYieldApi* | [**aggregated_portfolio_find_by_item**](docs/PortfolioYieldApi.md#aggregated_portfolio_find_by_item) | **GET** /portfolio/{itemId} | Find aggregated portfolio yield by item
|
181
183
|
*PortfolioYieldApi* | [**monthly_portfolio_find_by_item**](docs/PortfolioYieldApi.md#monthly_portfolio_find_by_item) | **GET** /portfolio/{itemId}/monthly | Find monthly portfolio yield by item
|
182
184
|
*SmartAccountApi* | [**smart_account_balance_retrieve**](docs/SmartAccountApi.md#smart_account_balance_retrieve) | **GET** /payments/smart-accounts/{id}/balance | Retrieve Balance
|