pluggy-sdk 1.0.0.post44__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 +21 -1
- 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 -1
- pluggy_sdk/api_client.py +1 -1
- pluggy_sdk/configuration.py +1 -1
- pluggy_sdk/models/__init__.py +9 -0
- 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/update_payment_recipient.py +4 -4
- {pluggy_sdk-1.0.0.post44.dist-info → pluggy_sdk-1.0.0.post48.dist-info}/METADATA +24 -13
- {pluggy_sdk-1.0.0.post44.dist-info → pluggy_sdk-1.0.0.post48.dist-info}/RECORD +28 -18
- {pluggy_sdk-1.0.0.post44.dist-info → pluggy_sdk-1.0.0.post48.dist-info}/WHEEL +1 -1
- {pluggy_sdk-1.0.0.post44.dist-info → pluggy_sdk-1.0.0.post48.dist-info}/top_level.txt +0 -0
@@ -1139,6 +1139,10 @@ class PaymentCustomerApi:
|
|
1139
1139
|
self,
|
1140
1140
|
page_size: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Page size for the paging request, default: 20")] = None,
|
1141
1141
|
page: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Page number for the paging request, default: 1")] = None,
|
1142
|
+
name: Annotated[Optional[StrictStr], Field(description="Filter payment customers by name")] = None,
|
1143
|
+
email: Annotated[Optional[StrictStr], Field(description="Filter payment customers by email")] = None,
|
1144
|
+
cpf: Annotated[Optional[StrictStr], Field(description="Filter payment customers by CPF")] = None,
|
1145
|
+
cnpj: Annotated[Optional[StrictStr], Field(description="Filter payment customers by CNPJ")] = None,
|
1142
1146
|
_request_timeout: Union[
|
1143
1147
|
None,
|
1144
1148
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -1160,6 +1164,14 @@ class PaymentCustomerApi:
|
|
1160
1164
|
:type page_size: float
|
1161
1165
|
:param page: Page number for the paging request, default: 1
|
1162
1166
|
:type page: float
|
1167
|
+
:param name: Filter payment customers by name
|
1168
|
+
:type name: str
|
1169
|
+
:param email: Filter payment customers by email
|
1170
|
+
:type email: str
|
1171
|
+
:param cpf: Filter payment customers by CPF
|
1172
|
+
:type cpf: str
|
1173
|
+
:param cnpj: Filter payment customers by CNPJ
|
1174
|
+
:type cnpj: str
|
1163
1175
|
:param _request_timeout: timeout setting for this request. If one
|
1164
1176
|
number provided, it will be total request
|
1165
1177
|
timeout. It can also be a pair (tuple) of
|
@@ -1185,6 +1197,10 @@ class PaymentCustomerApi:
|
|
1185
1197
|
_param = self._payment_customers_list_serialize(
|
1186
1198
|
page_size=page_size,
|
1187
1199
|
page=page,
|
1200
|
+
name=name,
|
1201
|
+
email=email,
|
1202
|
+
cpf=cpf,
|
1203
|
+
cnpj=cnpj,
|
1188
1204
|
_request_auth=_request_auth,
|
1189
1205
|
_content_type=_content_type,
|
1190
1206
|
_headers=_headers,
|
@@ -1210,6 +1226,10 @@ class PaymentCustomerApi:
|
|
1210
1226
|
self,
|
1211
1227
|
page_size: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Page size for the paging request, default: 20")] = None,
|
1212
1228
|
page: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Page number for the paging request, default: 1")] = None,
|
1229
|
+
name: Annotated[Optional[StrictStr], Field(description="Filter payment customers by name")] = None,
|
1230
|
+
email: Annotated[Optional[StrictStr], Field(description="Filter payment customers by email")] = None,
|
1231
|
+
cpf: Annotated[Optional[StrictStr], Field(description="Filter payment customers by CPF")] = None,
|
1232
|
+
cnpj: Annotated[Optional[StrictStr], Field(description="Filter payment customers by CNPJ")] = None,
|
1213
1233
|
_request_timeout: Union[
|
1214
1234
|
None,
|
1215
1235
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -1231,6 +1251,14 @@ class PaymentCustomerApi:
|
|
1231
1251
|
:type page_size: float
|
1232
1252
|
:param page: Page number for the paging request, default: 1
|
1233
1253
|
:type page: float
|
1254
|
+
:param name: Filter payment customers by name
|
1255
|
+
:type name: str
|
1256
|
+
:param email: Filter payment customers by email
|
1257
|
+
:type email: str
|
1258
|
+
:param cpf: Filter payment customers by CPF
|
1259
|
+
:type cpf: str
|
1260
|
+
:param cnpj: Filter payment customers by CNPJ
|
1261
|
+
:type cnpj: str
|
1234
1262
|
:param _request_timeout: timeout setting for this request. If one
|
1235
1263
|
number provided, it will be total request
|
1236
1264
|
timeout. It can also be a pair (tuple) of
|
@@ -1256,6 +1284,10 @@ class PaymentCustomerApi:
|
|
1256
1284
|
_param = self._payment_customers_list_serialize(
|
1257
1285
|
page_size=page_size,
|
1258
1286
|
page=page,
|
1287
|
+
name=name,
|
1288
|
+
email=email,
|
1289
|
+
cpf=cpf,
|
1290
|
+
cnpj=cnpj,
|
1259
1291
|
_request_auth=_request_auth,
|
1260
1292
|
_content_type=_content_type,
|
1261
1293
|
_headers=_headers,
|
@@ -1281,6 +1313,10 @@ class PaymentCustomerApi:
|
|
1281
1313
|
self,
|
1282
1314
|
page_size: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Page size for the paging request, default: 20")] = None,
|
1283
1315
|
page: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Page number for the paging request, default: 1")] = None,
|
1316
|
+
name: Annotated[Optional[StrictStr], Field(description="Filter payment customers by name")] = None,
|
1317
|
+
email: Annotated[Optional[StrictStr], Field(description="Filter payment customers by email")] = None,
|
1318
|
+
cpf: Annotated[Optional[StrictStr], Field(description="Filter payment customers by CPF")] = None,
|
1319
|
+
cnpj: Annotated[Optional[StrictStr], Field(description="Filter payment customers by CNPJ")] = None,
|
1284
1320
|
_request_timeout: Union[
|
1285
1321
|
None,
|
1286
1322
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -1302,6 +1338,14 @@ class PaymentCustomerApi:
|
|
1302
1338
|
:type page_size: float
|
1303
1339
|
:param page: Page number for the paging request, default: 1
|
1304
1340
|
:type page: float
|
1341
|
+
:param name: Filter payment customers by name
|
1342
|
+
:type name: str
|
1343
|
+
:param email: Filter payment customers by email
|
1344
|
+
:type email: str
|
1345
|
+
:param cpf: Filter payment customers by CPF
|
1346
|
+
:type cpf: str
|
1347
|
+
:param cnpj: Filter payment customers by CNPJ
|
1348
|
+
:type cnpj: str
|
1305
1349
|
:param _request_timeout: timeout setting for this request. If one
|
1306
1350
|
number provided, it will be total request
|
1307
1351
|
timeout. It can also be a pair (tuple) of
|
@@ -1327,6 +1371,10 @@ class PaymentCustomerApi:
|
|
1327
1371
|
_param = self._payment_customers_list_serialize(
|
1328
1372
|
page_size=page_size,
|
1329
1373
|
page=page,
|
1374
|
+
name=name,
|
1375
|
+
email=email,
|
1376
|
+
cpf=cpf,
|
1377
|
+
cnpj=cnpj,
|
1330
1378
|
_request_auth=_request_auth,
|
1331
1379
|
_content_type=_content_type,
|
1332
1380
|
_headers=_headers,
|
@@ -1347,6 +1395,10 @@ class PaymentCustomerApi:
|
|
1347
1395
|
self,
|
1348
1396
|
page_size,
|
1349
1397
|
page,
|
1398
|
+
name,
|
1399
|
+
email,
|
1400
|
+
cpf,
|
1401
|
+
cnpj,
|
1350
1402
|
_request_auth,
|
1351
1403
|
_content_type,
|
1352
1404
|
_headers,
|
@@ -1377,6 +1429,22 @@ class PaymentCustomerApi:
|
|
1377
1429
|
|
1378
1430
|
_query_params.append(('page', page))
|
1379
1431
|
|
1432
|
+
if name is not None:
|
1433
|
+
|
1434
|
+
_query_params.append(('name', name))
|
1435
|
+
|
1436
|
+
if email is not None:
|
1437
|
+
|
1438
|
+
_query_params.append(('email', email))
|
1439
|
+
|
1440
|
+
if cpf is not None:
|
1441
|
+
|
1442
|
+
_query_params.append(('cpf', cpf))
|
1443
|
+
|
1444
|
+
if cnpj is not None:
|
1445
|
+
|
1446
|
+
_query_params.append(('cnpj', cnpj))
|
1447
|
+
|
1380
1448
|
# process the header parameters
|
1381
1449
|
# process the form parameters
|
1382
1450
|
# process the body parameter
|
@@ -17,7 +17,7 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
17
17
|
from typing import Any, Dict, List, Optional, Tuple, Union
|
18
18
|
from typing_extensions import Annotated
|
19
19
|
|
20
|
-
from pydantic import Field, StrictFloat, StrictInt, StrictStr
|
20
|
+
from pydantic import Field, StrictBool, StrictFloat, StrictInt, StrictStr
|
21
21
|
from typing import Optional, Union
|
22
22
|
from typing_extensions import Annotated
|
23
23
|
from pluggy_sdk.models.create_payment_recipient import CreatePaymentRecipient
|
@@ -1705,6 +1705,9 @@ class PaymentRecipientApi:
|
|
1705
1705
|
self,
|
1706
1706
|
page_size: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Page size for the paging request, default: 20")] = None,
|
1707
1707
|
page: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Page number for the paging request, default: 1")] = None,
|
1708
|
+
is_default: Annotated[Optional[StrictBool], Field(description="Filter connectors by the `isDefault` attribute. If not sent, it won't filter.")] = None,
|
1709
|
+
pix_key: Annotated[Optional[StrictStr], Field(description="Filter payment recipient by Pix key")] = None,
|
1710
|
+
name: Annotated[Optional[StrictStr], Field(description="Filter payment recipient by name")] = None,
|
1708
1711
|
_request_timeout: Union[
|
1709
1712
|
None,
|
1710
1713
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -1726,6 +1729,12 @@ class PaymentRecipientApi:
|
|
1726
1729
|
:type page_size: float
|
1727
1730
|
:param page: Page number for the paging request, default: 1
|
1728
1731
|
:type page: float
|
1732
|
+
:param is_default: Filter connectors by the `isDefault` attribute. If not sent, it won't filter.
|
1733
|
+
:type is_default: bool
|
1734
|
+
:param pix_key: Filter payment recipient by Pix key
|
1735
|
+
:type pix_key: str
|
1736
|
+
:param name: Filter payment recipient by name
|
1737
|
+
:type name: str
|
1729
1738
|
:param _request_timeout: timeout setting for this request. If one
|
1730
1739
|
number provided, it will be total request
|
1731
1740
|
timeout. It can also be a pair (tuple) of
|
@@ -1751,6 +1760,9 @@ class PaymentRecipientApi:
|
|
1751
1760
|
_param = self._payment_recipients_list_serialize(
|
1752
1761
|
page_size=page_size,
|
1753
1762
|
page=page,
|
1763
|
+
is_default=is_default,
|
1764
|
+
pix_key=pix_key,
|
1765
|
+
name=name,
|
1754
1766
|
_request_auth=_request_auth,
|
1755
1767
|
_content_type=_content_type,
|
1756
1768
|
_headers=_headers,
|
@@ -1776,6 +1788,9 @@ class PaymentRecipientApi:
|
|
1776
1788
|
self,
|
1777
1789
|
page_size: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Page size for the paging request, default: 20")] = None,
|
1778
1790
|
page: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Page number for the paging request, default: 1")] = None,
|
1791
|
+
is_default: Annotated[Optional[StrictBool], Field(description="Filter connectors by the `isDefault` attribute. If not sent, it won't filter.")] = None,
|
1792
|
+
pix_key: Annotated[Optional[StrictStr], Field(description="Filter payment recipient by Pix key")] = None,
|
1793
|
+
name: Annotated[Optional[StrictStr], Field(description="Filter payment recipient by name")] = None,
|
1779
1794
|
_request_timeout: Union[
|
1780
1795
|
None,
|
1781
1796
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -1797,6 +1812,12 @@ class PaymentRecipientApi:
|
|
1797
1812
|
:type page_size: float
|
1798
1813
|
:param page: Page number for the paging request, default: 1
|
1799
1814
|
:type page: float
|
1815
|
+
:param is_default: Filter connectors by the `isDefault` attribute. If not sent, it won't filter.
|
1816
|
+
:type is_default: bool
|
1817
|
+
:param pix_key: Filter payment recipient by Pix key
|
1818
|
+
:type pix_key: str
|
1819
|
+
:param name: Filter payment recipient by name
|
1820
|
+
:type name: str
|
1800
1821
|
:param _request_timeout: timeout setting for this request. If one
|
1801
1822
|
number provided, it will be total request
|
1802
1823
|
timeout. It can also be a pair (tuple) of
|
@@ -1822,6 +1843,9 @@ class PaymentRecipientApi:
|
|
1822
1843
|
_param = self._payment_recipients_list_serialize(
|
1823
1844
|
page_size=page_size,
|
1824
1845
|
page=page,
|
1846
|
+
is_default=is_default,
|
1847
|
+
pix_key=pix_key,
|
1848
|
+
name=name,
|
1825
1849
|
_request_auth=_request_auth,
|
1826
1850
|
_content_type=_content_type,
|
1827
1851
|
_headers=_headers,
|
@@ -1847,6 +1871,9 @@ class PaymentRecipientApi:
|
|
1847
1871
|
self,
|
1848
1872
|
page_size: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Page size for the paging request, default: 20")] = None,
|
1849
1873
|
page: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Page number for the paging request, default: 1")] = None,
|
1874
|
+
is_default: Annotated[Optional[StrictBool], Field(description="Filter connectors by the `isDefault` attribute. If not sent, it won't filter.")] = None,
|
1875
|
+
pix_key: Annotated[Optional[StrictStr], Field(description="Filter payment recipient by Pix key")] = None,
|
1876
|
+
name: Annotated[Optional[StrictStr], Field(description="Filter payment recipient by name")] = None,
|
1850
1877
|
_request_timeout: Union[
|
1851
1878
|
None,
|
1852
1879
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -1868,6 +1895,12 @@ class PaymentRecipientApi:
|
|
1868
1895
|
:type page_size: float
|
1869
1896
|
:param page: Page number for the paging request, default: 1
|
1870
1897
|
:type page: float
|
1898
|
+
:param is_default: Filter connectors by the `isDefault` attribute. If not sent, it won't filter.
|
1899
|
+
:type is_default: bool
|
1900
|
+
:param pix_key: Filter payment recipient by Pix key
|
1901
|
+
:type pix_key: str
|
1902
|
+
:param name: Filter payment recipient by name
|
1903
|
+
:type name: str
|
1871
1904
|
:param _request_timeout: timeout setting for this request. If one
|
1872
1905
|
number provided, it will be total request
|
1873
1906
|
timeout. It can also be a pair (tuple) of
|
@@ -1893,6 +1926,9 @@ class PaymentRecipientApi:
|
|
1893
1926
|
_param = self._payment_recipients_list_serialize(
|
1894
1927
|
page_size=page_size,
|
1895
1928
|
page=page,
|
1929
|
+
is_default=is_default,
|
1930
|
+
pix_key=pix_key,
|
1931
|
+
name=name,
|
1896
1932
|
_request_auth=_request_auth,
|
1897
1933
|
_content_type=_content_type,
|
1898
1934
|
_headers=_headers,
|
@@ -1913,6 +1949,9 @@ class PaymentRecipientApi:
|
|
1913
1949
|
self,
|
1914
1950
|
page_size,
|
1915
1951
|
page,
|
1952
|
+
is_default,
|
1953
|
+
pix_key,
|
1954
|
+
name,
|
1916
1955
|
_request_auth,
|
1917
1956
|
_content_type,
|
1918
1957
|
_headers,
|
@@ -1943,6 +1982,18 @@ class PaymentRecipientApi:
|
|
1943
1982
|
|
1944
1983
|
_query_params.append(('page', page))
|
1945
1984
|
|
1985
|
+
if is_default is not None:
|
1986
|
+
|
1987
|
+
_query_params.append(('isDefault', is_default))
|
1988
|
+
|
1989
|
+
if pix_key is not None:
|
1990
|
+
|
1991
|
+
_query_params.append(('pixKey', pix_key))
|
1992
|
+
|
1993
|
+
if name is not None:
|
1994
|
+
|
1995
|
+
_query_params.append(('name', name))
|
1996
|
+
|
1946
1997
|
# process the header parameters
|
1947
1998
|
# process the form parameters
|
1948
1999
|
# process the body parameter
|
@@ -17,7 +17,9 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
17
17
|
from typing import Any, Dict, List, Optional, Tuple, Union
|
18
18
|
from typing_extensions import Annotated
|
19
19
|
|
20
|
-
from
|
20
|
+
from datetime import date
|
21
|
+
from pydantic import Field, StrictFloat, StrictInt, StrictStr
|
22
|
+
from typing import Optional, Union
|
21
23
|
from typing_extensions import Annotated
|
22
24
|
from pluggy_sdk.models.create_payment_request import CreatePaymentRequest
|
23
25
|
from pluggy_sdk.models.create_pix_qr_payment_request import CreatePixQrPaymentRequest
|
@@ -1411,6 +1413,12 @@ class PaymentRequestApi:
|
|
1411
1413
|
@validate_call
|
1412
1414
|
def payment_requests_list(
|
1413
1415
|
self,
|
1416
|
+
page_size: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Page size for the paging request, default: 20")] = None,
|
1417
|
+
page: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Page number for the paging request, default: 1")] = None,
|
1418
|
+
var_from: Annotated[Optional[date], Field(description="Filter payment requests by start date. Returns only requests created **on or after** this date.")] = None,
|
1419
|
+
to: Annotated[Optional[date], Field(description="Filter payment requests by end date. Returns only requests created **on or before** this date.")] = None,
|
1420
|
+
customer: Annotated[Optional[StrictStr], Field(description="Filter payment requests with one customer attribute (name, email, CPF or CNPJ)")] = None,
|
1421
|
+
pix_key: Annotated[Optional[StrictStr], Field(description="Filter payment requests by Pix Key")] = None,
|
1414
1422
|
_request_timeout: Union[
|
1415
1423
|
None,
|
1416
1424
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -1428,6 +1436,18 @@ class PaymentRequestApi:
|
|
1428
1436
|
|
1429
1437
|
Recovers all created payment requests
|
1430
1438
|
|
1439
|
+
:param page_size: Page size for the paging request, default: 20
|
1440
|
+
:type page_size: float
|
1441
|
+
:param page: Page number for the paging request, default: 1
|
1442
|
+
:type page: float
|
1443
|
+
:param var_from: Filter payment requests by start date. Returns only requests created **on or after** this date.
|
1444
|
+
:type var_from: date
|
1445
|
+
:param to: Filter payment requests by end date. Returns only requests created **on or before** this date.
|
1446
|
+
:type to: date
|
1447
|
+
:param customer: Filter payment requests with one customer attribute (name, email, CPF or CNPJ)
|
1448
|
+
:type customer: str
|
1449
|
+
:param pix_key: Filter payment requests by Pix Key
|
1450
|
+
:type pix_key: str
|
1431
1451
|
:param _request_timeout: timeout setting for this request. If one
|
1432
1452
|
number provided, it will be total request
|
1433
1453
|
timeout. It can also be a pair (tuple) of
|
@@ -1451,6 +1471,12 @@ class PaymentRequestApi:
|
|
1451
1471
|
""" # noqa: E501
|
1452
1472
|
|
1453
1473
|
_param = self._payment_requests_list_serialize(
|
1474
|
+
page_size=page_size,
|
1475
|
+
page=page,
|
1476
|
+
var_from=var_from,
|
1477
|
+
to=to,
|
1478
|
+
customer=customer,
|
1479
|
+
pix_key=pix_key,
|
1454
1480
|
_request_auth=_request_auth,
|
1455
1481
|
_content_type=_content_type,
|
1456
1482
|
_headers=_headers,
|
@@ -1474,6 +1500,12 @@ class PaymentRequestApi:
|
|
1474
1500
|
@validate_call
|
1475
1501
|
def payment_requests_list_with_http_info(
|
1476
1502
|
self,
|
1503
|
+
page_size: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Page size for the paging request, default: 20")] = None,
|
1504
|
+
page: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Page number for the paging request, default: 1")] = None,
|
1505
|
+
var_from: Annotated[Optional[date], Field(description="Filter payment requests by start date. Returns only requests created **on or after** this date.")] = None,
|
1506
|
+
to: Annotated[Optional[date], Field(description="Filter payment requests by end date. Returns only requests created **on or before** this date.")] = None,
|
1507
|
+
customer: Annotated[Optional[StrictStr], Field(description="Filter payment requests with one customer attribute (name, email, CPF or CNPJ)")] = None,
|
1508
|
+
pix_key: Annotated[Optional[StrictStr], Field(description="Filter payment requests by Pix Key")] = None,
|
1477
1509
|
_request_timeout: Union[
|
1478
1510
|
None,
|
1479
1511
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -1491,6 +1523,18 @@ class PaymentRequestApi:
|
|
1491
1523
|
|
1492
1524
|
Recovers all created payment requests
|
1493
1525
|
|
1526
|
+
:param page_size: Page size for the paging request, default: 20
|
1527
|
+
:type page_size: float
|
1528
|
+
:param page: Page number for the paging request, default: 1
|
1529
|
+
:type page: float
|
1530
|
+
:param var_from: Filter payment requests by start date. Returns only requests created **on or after** this date.
|
1531
|
+
:type var_from: date
|
1532
|
+
:param to: Filter payment requests by end date. Returns only requests created **on or before** this date.
|
1533
|
+
:type to: date
|
1534
|
+
:param customer: Filter payment requests with one customer attribute (name, email, CPF or CNPJ)
|
1535
|
+
:type customer: str
|
1536
|
+
:param pix_key: Filter payment requests by Pix Key
|
1537
|
+
:type pix_key: str
|
1494
1538
|
:param _request_timeout: timeout setting for this request. If one
|
1495
1539
|
number provided, it will be total request
|
1496
1540
|
timeout. It can also be a pair (tuple) of
|
@@ -1514,6 +1558,12 @@ class PaymentRequestApi:
|
|
1514
1558
|
""" # noqa: E501
|
1515
1559
|
|
1516
1560
|
_param = self._payment_requests_list_serialize(
|
1561
|
+
page_size=page_size,
|
1562
|
+
page=page,
|
1563
|
+
var_from=var_from,
|
1564
|
+
to=to,
|
1565
|
+
customer=customer,
|
1566
|
+
pix_key=pix_key,
|
1517
1567
|
_request_auth=_request_auth,
|
1518
1568
|
_content_type=_content_type,
|
1519
1569
|
_headers=_headers,
|
@@ -1537,6 +1587,12 @@ class PaymentRequestApi:
|
|
1537
1587
|
@validate_call
|
1538
1588
|
def payment_requests_list_without_preload_content(
|
1539
1589
|
self,
|
1590
|
+
page_size: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Page size for the paging request, default: 20")] = None,
|
1591
|
+
page: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Page number for the paging request, default: 1")] = None,
|
1592
|
+
var_from: Annotated[Optional[date], Field(description="Filter payment requests by start date. Returns only requests created **on or after** this date.")] = None,
|
1593
|
+
to: Annotated[Optional[date], Field(description="Filter payment requests by end date. Returns only requests created **on or before** this date.")] = None,
|
1594
|
+
customer: Annotated[Optional[StrictStr], Field(description="Filter payment requests with one customer attribute (name, email, CPF or CNPJ)")] = None,
|
1595
|
+
pix_key: Annotated[Optional[StrictStr], Field(description="Filter payment requests by Pix Key")] = None,
|
1540
1596
|
_request_timeout: Union[
|
1541
1597
|
None,
|
1542
1598
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -1554,6 +1610,18 @@ class PaymentRequestApi:
|
|
1554
1610
|
|
1555
1611
|
Recovers all created payment requests
|
1556
1612
|
|
1613
|
+
:param page_size: Page size for the paging request, default: 20
|
1614
|
+
:type page_size: float
|
1615
|
+
:param page: Page number for the paging request, default: 1
|
1616
|
+
:type page: float
|
1617
|
+
:param var_from: Filter payment requests by start date. Returns only requests created **on or after** this date.
|
1618
|
+
:type var_from: date
|
1619
|
+
:param to: Filter payment requests by end date. Returns only requests created **on or before** this date.
|
1620
|
+
:type to: date
|
1621
|
+
:param customer: Filter payment requests with one customer attribute (name, email, CPF or CNPJ)
|
1622
|
+
:type customer: str
|
1623
|
+
:param pix_key: Filter payment requests by Pix Key
|
1624
|
+
:type pix_key: str
|
1557
1625
|
:param _request_timeout: timeout setting for this request. If one
|
1558
1626
|
number provided, it will be total request
|
1559
1627
|
timeout. It can also be a pair (tuple) of
|
@@ -1577,6 +1645,12 @@ class PaymentRequestApi:
|
|
1577
1645
|
""" # noqa: E501
|
1578
1646
|
|
1579
1647
|
_param = self._payment_requests_list_serialize(
|
1648
|
+
page_size=page_size,
|
1649
|
+
page=page,
|
1650
|
+
var_from=var_from,
|
1651
|
+
to=to,
|
1652
|
+
customer=customer,
|
1653
|
+
pix_key=pix_key,
|
1580
1654
|
_request_auth=_request_auth,
|
1581
1655
|
_content_type=_content_type,
|
1582
1656
|
_headers=_headers,
|
@@ -1595,6 +1669,12 @@ class PaymentRequestApi:
|
|
1595
1669
|
|
1596
1670
|
def _payment_requests_list_serialize(
|
1597
1671
|
self,
|
1672
|
+
page_size,
|
1673
|
+
page,
|
1674
|
+
var_from,
|
1675
|
+
to,
|
1676
|
+
customer,
|
1677
|
+
pix_key,
|
1598
1678
|
_request_auth,
|
1599
1679
|
_content_type,
|
1600
1680
|
_headers,
|
@@ -1617,6 +1697,48 @@ class PaymentRequestApi:
|
|
1617
1697
|
|
1618
1698
|
# process the path parameters
|
1619
1699
|
# process the query parameters
|
1700
|
+
if page_size is not None:
|
1701
|
+
|
1702
|
+
_query_params.append(('pageSize', page_size))
|
1703
|
+
|
1704
|
+
if page is not None:
|
1705
|
+
|
1706
|
+
_query_params.append(('page', page))
|
1707
|
+
|
1708
|
+
if var_from is not None:
|
1709
|
+
if isinstance(var_from, date):
|
1710
|
+
_query_params.append(
|
1711
|
+
(
|
1712
|
+
'from',
|
1713
|
+
var_from.strftime(
|
1714
|
+
self.api_client.configuration.date_format
|
1715
|
+
)
|
1716
|
+
)
|
1717
|
+
)
|
1718
|
+
else:
|
1719
|
+
_query_params.append(('from', var_from))
|
1720
|
+
|
1721
|
+
if to is not None:
|
1722
|
+
if isinstance(to, date):
|
1723
|
+
_query_params.append(
|
1724
|
+
(
|
1725
|
+
'to',
|
1726
|
+
to.strftime(
|
1727
|
+
self.api_client.configuration.date_format
|
1728
|
+
)
|
1729
|
+
)
|
1730
|
+
)
|
1731
|
+
else:
|
1732
|
+
_query_params.append(('to', to))
|
1733
|
+
|
1734
|
+
if customer is not None:
|
1735
|
+
|
1736
|
+
_query_params.append(('customer', customer))
|
1737
|
+
|
1738
|
+
if pix_key is not None:
|
1739
|
+
|
1740
|
+
_query_params.append(('pixKey', pix_key))
|
1741
|
+
|
1620
1742
|
# process the header parameters
|
1621
1743
|
# process the form parameters
|
1622
1744
|
# process the body parameter
|
pluggy_sdk/api_client.py
CHANGED
@@ -91,7 +91,7 @@ class ApiClient:
|
|
91
91
|
self.default_headers[header_name] = header_value
|
92
92
|
self.cookie = cookie
|
93
93
|
# Set default User-Agent.
|
94
|
-
self.user_agent = 'OpenAPI-Generator/1.0.0.
|
94
|
+
self.user_agent = 'OpenAPI-Generator/1.0.0.post48/python'
|
95
95
|
self.client_side_validation = configuration.client_side_validation
|
96
96
|
|
97
97
|
def __enter__(self):
|
pluggy_sdk/configuration.py
CHANGED
@@ -532,7 +532,7 @@ conf = pluggy_sdk.Configuration(
|
|
532
532
|
"OS: {env}\n"\
|
533
533
|
"Python Version: {pyversion}\n"\
|
534
534
|
"Version of the API: 1.0.0\n"\
|
535
|
-
"SDK Package Version: 1.0.0.
|
535
|
+
"SDK Package Version: 1.0.0.post48".\
|
536
536
|
format(env=sys.platform, pyversion=sys.version)
|
537
537
|
|
538
538
|
def get_host_settings(self) -> List[HostSetting]:
|
pluggy_sdk/models/__init__.py
CHANGED
@@ -17,9 +17,12 @@
|
|
17
17
|
# import models into model package
|
18
18
|
from pluggy_sdk.models.account import Account
|
19
19
|
from pluggy_sdk.models.accounts_list200_response import AccountsList200Response
|
20
|
+
from pluggy_sdk.models.additional_card import AdditionalCard
|
20
21
|
from pluggy_sdk.models.address import Address
|
21
22
|
from pluggy_sdk.models.auth_request import AuthRequest
|
22
23
|
from pluggy_sdk.models.auth_response import AuthResponse
|
24
|
+
from pluggy_sdk.models.automatic_pix_first_payment import AutomaticPixFirstPayment
|
25
|
+
from pluggy_sdk.models.automatic_pix_payment import AutomaticPixPayment
|
23
26
|
from pluggy_sdk.models.bank_data import BankData
|
24
27
|
from pluggy_sdk.models.bill import Bill
|
25
28
|
from pluggy_sdk.models.bill_finance_charge import BillFinanceCharge
|
@@ -41,6 +44,7 @@ from pluggy_sdk.models.connector_health_details import ConnectorHealthDetails
|
|
41
44
|
from pluggy_sdk.models.connector_list_response import ConnectorListResponse
|
42
45
|
from pluggy_sdk.models.connector_user_action import ConnectorUserAction
|
43
46
|
from pluggy_sdk.models.consent import Consent
|
47
|
+
from pluggy_sdk.models.create_automatic_pix_payment_request import CreateAutomaticPixPaymentRequest
|
44
48
|
from pluggy_sdk.models.create_boleto import CreateBoleto
|
45
49
|
from pluggy_sdk.models.create_boleto_boleto import CreateBoletoBoleto
|
46
50
|
from pluggy_sdk.models.create_boleto_boleto_fine import CreateBoletoBoletoFine
|
@@ -65,6 +69,7 @@ from pluggy_sdk.models.credential_select_option import CredentialSelectOption
|
|
65
69
|
from pluggy_sdk.models.credit_card_metadata import CreditCardMetadata
|
66
70
|
from pluggy_sdk.models.credit_data import CreditData
|
67
71
|
from pluggy_sdk.models.daily import DAILY
|
72
|
+
from pluggy_sdk.models.disaggregated_credit_limit import DisaggregatedCreditLimit
|
68
73
|
from pluggy_sdk.models.document import Document
|
69
74
|
from pluggy_sdk.models.email import Email
|
70
75
|
from pluggy_sdk.models.global_error_response import GlobalErrorResponse
|
@@ -120,6 +125,7 @@ from pluggy_sdk.models.payment_data_boleto_metadata import PaymentDataBoletoMeta
|
|
120
125
|
from pluggy_sdk.models.payment_data_participant import PaymentDataParticipant
|
121
126
|
from pluggy_sdk.models.payment_institution import PaymentInstitution
|
122
127
|
from pluggy_sdk.models.payment_intent import PaymentIntent
|
128
|
+
from pluggy_sdk.models.payment_intent_automatic_pix import PaymentIntentAutomaticPix
|
123
129
|
from pluggy_sdk.models.payment_intent_error_detail import PaymentIntentErrorDetail
|
124
130
|
from pluggy_sdk.models.payment_intent_parameter import PaymentIntentParameter
|
125
131
|
from pluggy_sdk.models.payment_intents_list200_response import PaymentIntentsList200Response
|
@@ -130,12 +136,15 @@ from pluggy_sdk.models.payment_recipients_list200_response import PaymentRecipie
|
|
130
136
|
from pluggy_sdk.models.payment_request import PaymentRequest
|
131
137
|
from pluggy_sdk.models.payment_request_callback_urls import PaymentRequestCallbackUrls
|
132
138
|
from pluggy_sdk.models.payment_request_error_detail import PaymentRequestErrorDetail
|
139
|
+
from pluggy_sdk.models.payment_request_get_automatic_pix_schedules200_response import PaymentRequestGetAutomaticPixSchedules200Response
|
133
140
|
from pluggy_sdk.models.payment_request_schedule import PaymentRequestSchedule
|
134
141
|
from pluggy_sdk.models.payment_requests_list200_response import PaymentRequestsList200Response
|
135
142
|
from pluggy_sdk.models.payment_schedules_list200_response import PaymentSchedulesList200Response
|
136
143
|
from pluggy_sdk.models.phone_number import PhoneNumber
|
137
144
|
from pluggy_sdk.models.pix_data import PixData
|
145
|
+
from pluggy_sdk.models.retry_automatic_pix_payment_request import RetryAutomaticPixPaymentRequest
|
138
146
|
from pluggy_sdk.models.single import SINGLE
|
147
|
+
from pluggy_sdk.models.schedule_automatic_pix_payment_request import ScheduleAutomaticPixPaymentRequest
|
139
148
|
from pluggy_sdk.models.schedule_payment import SchedulePayment
|
140
149
|
from pluggy_sdk.models.schedule_payment_error_detail import SchedulePaymentErrorDetail
|
141
150
|
from pluggy_sdk.models.smart_tranfers_preauthorizations_list200_response import SmartTranfersPreauthorizationsList200Response
|
@@ -0,0 +1,88 @@
|
|
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
|
+
|
16
|
+
from __future__ import annotations
|
17
|
+
import pprint
|
18
|
+
import re # noqa: F401
|
19
|
+
import json
|
20
|
+
|
21
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
22
|
+
from typing import Any, ClassVar, Dict, List
|
23
|
+
from typing import Optional, Set
|
24
|
+
from typing_extensions import Self
|
25
|
+
|
26
|
+
class AdditionalCard(BaseModel):
|
27
|
+
"""
|
28
|
+
Additional credit card data
|
29
|
+
""" # noqa: E501
|
30
|
+
number: StrictStr = Field(description="Number of the additional credit card")
|
31
|
+
__properties: ClassVar[List[str]] = ["number"]
|
32
|
+
|
33
|
+
model_config = ConfigDict(
|
34
|
+
populate_by_name=True,
|
35
|
+
validate_assignment=True,
|
36
|
+
protected_namespaces=(),
|
37
|
+
)
|
38
|
+
|
39
|
+
|
40
|
+
def to_str(self) -> str:
|
41
|
+
"""Returns the string representation of the model using alias"""
|
42
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
43
|
+
|
44
|
+
def to_json(self) -> str:
|
45
|
+
"""Returns the JSON representation of the model using alias"""
|
46
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
47
|
+
return json.dumps(self.to_dict())
|
48
|
+
|
49
|
+
@classmethod
|
50
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
51
|
+
"""Create an instance of AdditionalCard from a JSON string"""
|
52
|
+
return cls.from_dict(json.loads(json_str))
|
53
|
+
|
54
|
+
def to_dict(self) -> Dict[str, Any]:
|
55
|
+
"""Return the dictionary representation of the model using alias.
|
56
|
+
|
57
|
+
This has the following differences from calling pydantic's
|
58
|
+
`self.model_dump(by_alias=True)`:
|
59
|
+
|
60
|
+
* `None` is only added to the output dict for nullable fields that
|
61
|
+
were set at model initialization. Other fields with value `None`
|
62
|
+
are ignored.
|
63
|
+
"""
|
64
|
+
excluded_fields: Set[str] = set([
|
65
|
+
])
|
66
|
+
|
67
|
+
_dict = self.model_dump(
|
68
|
+
by_alias=True,
|
69
|
+
exclude=excluded_fields,
|
70
|
+
exclude_none=True,
|
71
|
+
)
|
72
|
+
return _dict
|
73
|
+
|
74
|
+
@classmethod
|
75
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
76
|
+
"""Create an instance of AdditionalCard from a dict"""
|
77
|
+
if obj is None:
|
78
|
+
return None
|
79
|
+
|
80
|
+
if not isinstance(obj, dict):
|
81
|
+
return cls.model_validate(obj)
|
82
|
+
|
83
|
+
_obj = cls.model_validate({
|
84
|
+
"number": obj.get("number")
|
85
|
+
})
|
86
|
+
return _obj
|
87
|
+
|
88
|
+
|