pluggy-sdk 1.0.0.post8__py3-none-any.whl → 1.0.0.post10__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 +5 -1
- pluggy_sdk/api/payment_request_api.py +272 -0
- pluggy_sdk/api_client.py +1 -1
- pluggy_sdk/configuration.py +1 -1
- pluggy_sdk/models/__init__.py +4 -0
- pluggy_sdk/models/boleto.py +121 -0
- pluggy_sdk/models/boleto_payer.py +90 -0
- pluggy_sdk/models/boleto_recipient.py +90 -0
- pluggy_sdk/models/create_boleto_payment_request.py +98 -0
- pluggy_sdk/models/create_payment_intent.py +1 -1
- pluggy_sdk/models/create_payment_recipient.py +4 -2
- pluggy_sdk/models/create_payment_request.py +4 -2
- pluggy_sdk/models/payment_receipt.py +8 -2
- pluggy_sdk/models/payment_recipient.py +4 -2
- pluggy_sdk/models/payment_request.py +8 -2
- {pluggy_sdk-1.0.0.post8.dist-info → pluggy_sdk-1.0.0.post10.dist-info}/METADATA +8 -3
- {pluggy_sdk-1.0.0.post8.dist-info → pluggy_sdk-1.0.0.post10.dist-info}/RECORD +19 -15
- {pluggy_sdk-1.0.0.post8.dist-info → pluggy_sdk-1.0.0.post10.dist-info}/WHEEL +0 -0
- {pluggy_sdk-1.0.0.post8.dist-info → pluggy_sdk-1.0.0.post10.dist-info}/top_level.txt +0 -0
pluggy_sdk/__init__.py
CHANGED
@@ -15,7 +15,7 @@
|
|
15
15
|
""" # noqa: E501
|
16
16
|
|
17
17
|
|
18
|
-
__version__ = "1.0.0.
|
18
|
+
__version__ = "1.0.0.post10"
|
19
19
|
|
20
20
|
# import apis into sdk package
|
21
21
|
from pluggy_sdk.api.account_api import AccountApi
|
@@ -77,6 +77,9 @@ from pluggy_sdk.models.bank_data import BankData
|
|
77
77
|
from pluggy_sdk.models.bill import Bill
|
78
78
|
from pluggy_sdk.models.bill_finance_charge import BillFinanceCharge
|
79
79
|
from pluggy_sdk.models.bills_list200_response import BillsList200Response
|
80
|
+
from pluggy_sdk.models.boleto import Boleto
|
81
|
+
from pluggy_sdk.models.boleto_payer import BoletoPayer
|
82
|
+
from pluggy_sdk.models.boleto_recipient import BoletoRecipient
|
80
83
|
from pluggy_sdk.models.bulk_payment import BulkPayment
|
81
84
|
from pluggy_sdk.models.bulk_payments_list200_response import BulkPaymentsList200Response
|
82
85
|
from pluggy_sdk.models.category import Category
|
@@ -90,6 +93,7 @@ from pluggy_sdk.models.connector_health import ConnectorHealth
|
|
90
93
|
from pluggy_sdk.models.connector_health_details import ConnectorHealthDetails
|
91
94
|
from pluggy_sdk.models.connector_list_response import ConnectorListResponse
|
92
95
|
from pluggy_sdk.models.connector_user_action import ConnectorUserAction
|
96
|
+
from pluggy_sdk.models.create_boleto_payment_request import CreateBoletoPaymentRequest
|
93
97
|
from pluggy_sdk.models.create_bulk_payment import CreateBulkPayment
|
94
98
|
from pluggy_sdk.models.create_client_category_rule import CreateClientCategoryRule
|
95
99
|
from pluggy_sdk.models.create_item import CreateItem
|
@@ -19,6 +19,7 @@ from typing_extensions import Annotated
|
|
19
19
|
|
20
20
|
from pydantic import Field, StrictStr
|
21
21
|
from typing_extensions import Annotated
|
22
|
+
from pluggy_sdk.models.create_boleto_payment_request import CreateBoletoPaymentRequest
|
22
23
|
from pluggy_sdk.models.create_payment_request import CreatePaymentRequest
|
23
24
|
from pluggy_sdk.models.create_pix_qr_payment_request import CreatePixQrPaymentRequest
|
24
25
|
from pluggy_sdk.models.payment_receipt import PaymentReceipt
|
@@ -316,6 +317,277 @@ class PaymentRequestApi:
|
|
316
317
|
|
317
318
|
|
318
319
|
|
320
|
+
@validate_call
|
321
|
+
def payment_request_create_boleto(
|
322
|
+
self,
|
323
|
+
create_boleto_payment_request: CreateBoletoPaymentRequest,
|
324
|
+
_request_timeout: Union[
|
325
|
+
None,
|
326
|
+
Annotated[StrictFloat, Field(gt=0)],
|
327
|
+
Tuple[
|
328
|
+
Annotated[StrictFloat, Field(gt=0)],
|
329
|
+
Annotated[StrictFloat, Field(gt=0)]
|
330
|
+
]
|
331
|
+
] = None,
|
332
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
333
|
+
_content_type: Optional[StrictStr] = None,
|
334
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
335
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
336
|
+
) -> PaymentRequest:
|
337
|
+
"""Create boleto payment request
|
338
|
+
|
339
|
+
Creates the boleto payment request resource
|
340
|
+
|
341
|
+
:param create_boleto_payment_request: (required)
|
342
|
+
:type create_boleto_payment_request: CreateBoletoPaymentRequest
|
343
|
+
:param _request_timeout: timeout setting for this request. If one
|
344
|
+
number provided, it will be total request
|
345
|
+
timeout. It can also be a pair (tuple) of
|
346
|
+
(connection, read) timeouts.
|
347
|
+
:type _request_timeout: int, tuple(int, int), optional
|
348
|
+
:param _request_auth: set to override the auth_settings for an a single
|
349
|
+
request; this effectively ignores the
|
350
|
+
authentication in the spec for a single request.
|
351
|
+
:type _request_auth: dict, optional
|
352
|
+
:param _content_type: force content-type for the request.
|
353
|
+
:type _content_type: str, Optional
|
354
|
+
:param _headers: set to override the headers for a single
|
355
|
+
request; this effectively ignores the headers
|
356
|
+
in the spec for a single request.
|
357
|
+
:type _headers: dict, optional
|
358
|
+
:param _host_index: set to override the host_index for a single
|
359
|
+
request; this effectively ignores the host_index
|
360
|
+
in the spec for a single request.
|
361
|
+
:type _host_index: int, optional
|
362
|
+
:return: Returns the result object.
|
363
|
+
""" # noqa: E501
|
364
|
+
|
365
|
+
_param = self._payment_request_create_boleto_serialize(
|
366
|
+
create_boleto_payment_request=create_boleto_payment_request,
|
367
|
+
_request_auth=_request_auth,
|
368
|
+
_content_type=_content_type,
|
369
|
+
_headers=_headers,
|
370
|
+
_host_index=_host_index
|
371
|
+
)
|
372
|
+
|
373
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
374
|
+
'200': "PaymentRequest",
|
375
|
+
}
|
376
|
+
response_data = self.api_client.call_api(
|
377
|
+
*_param,
|
378
|
+
_request_timeout=_request_timeout
|
379
|
+
)
|
380
|
+
response_data.read()
|
381
|
+
return self.api_client.response_deserialize(
|
382
|
+
response_data=response_data,
|
383
|
+
response_types_map=_response_types_map,
|
384
|
+
).data
|
385
|
+
|
386
|
+
|
387
|
+
@validate_call
|
388
|
+
def payment_request_create_boleto_with_http_info(
|
389
|
+
self,
|
390
|
+
create_boleto_payment_request: CreateBoletoPaymentRequest,
|
391
|
+
_request_timeout: Union[
|
392
|
+
None,
|
393
|
+
Annotated[StrictFloat, Field(gt=0)],
|
394
|
+
Tuple[
|
395
|
+
Annotated[StrictFloat, Field(gt=0)],
|
396
|
+
Annotated[StrictFloat, Field(gt=0)]
|
397
|
+
]
|
398
|
+
] = None,
|
399
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
400
|
+
_content_type: Optional[StrictStr] = None,
|
401
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
402
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
403
|
+
) -> ApiResponse[PaymentRequest]:
|
404
|
+
"""Create boleto payment request
|
405
|
+
|
406
|
+
Creates the boleto payment request resource
|
407
|
+
|
408
|
+
:param create_boleto_payment_request: (required)
|
409
|
+
:type create_boleto_payment_request: CreateBoletoPaymentRequest
|
410
|
+
:param _request_timeout: timeout setting for this request. If one
|
411
|
+
number provided, it will be total request
|
412
|
+
timeout. It can also be a pair (tuple) of
|
413
|
+
(connection, read) timeouts.
|
414
|
+
:type _request_timeout: int, tuple(int, int), optional
|
415
|
+
:param _request_auth: set to override the auth_settings for an a single
|
416
|
+
request; this effectively ignores the
|
417
|
+
authentication in the spec for a single request.
|
418
|
+
:type _request_auth: dict, optional
|
419
|
+
:param _content_type: force content-type for the request.
|
420
|
+
:type _content_type: str, Optional
|
421
|
+
:param _headers: set to override the headers for a single
|
422
|
+
request; this effectively ignores the headers
|
423
|
+
in the spec for a single request.
|
424
|
+
:type _headers: dict, optional
|
425
|
+
:param _host_index: set to override the host_index for a single
|
426
|
+
request; this effectively ignores the host_index
|
427
|
+
in the spec for a single request.
|
428
|
+
:type _host_index: int, optional
|
429
|
+
:return: Returns the result object.
|
430
|
+
""" # noqa: E501
|
431
|
+
|
432
|
+
_param = self._payment_request_create_boleto_serialize(
|
433
|
+
create_boleto_payment_request=create_boleto_payment_request,
|
434
|
+
_request_auth=_request_auth,
|
435
|
+
_content_type=_content_type,
|
436
|
+
_headers=_headers,
|
437
|
+
_host_index=_host_index
|
438
|
+
)
|
439
|
+
|
440
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
441
|
+
'200': "PaymentRequest",
|
442
|
+
}
|
443
|
+
response_data = self.api_client.call_api(
|
444
|
+
*_param,
|
445
|
+
_request_timeout=_request_timeout
|
446
|
+
)
|
447
|
+
response_data.read()
|
448
|
+
return self.api_client.response_deserialize(
|
449
|
+
response_data=response_data,
|
450
|
+
response_types_map=_response_types_map,
|
451
|
+
)
|
452
|
+
|
453
|
+
|
454
|
+
@validate_call
|
455
|
+
def payment_request_create_boleto_without_preload_content(
|
456
|
+
self,
|
457
|
+
create_boleto_payment_request: CreateBoletoPaymentRequest,
|
458
|
+
_request_timeout: Union[
|
459
|
+
None,
|
460
|
+
Annotated[StrictFloat, Field(gt=0)],
|
461
|
+
Tuple[
|
462
|
+
Annotated[StrictFloat, Field(gt=0)],
|
463
|
+
Annotated[StrictFloat, Field(gt=0)]
|
464
|
+
]
|
465
|
+
] = None,
|
466
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
467
|
+
_content_type: Optional[StrictStr] = None,
|
468
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
469
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
470
|
+
) -> RESTResponseType:
|
471
|
+
"""Create boleto payment request
|
472
|
+
|
473
|
+
Creates the boleto payment request resource
|
474
|
+
|
475
|
+
:param create_boleto_payment_request: (required)
|
476
|
+
:type create_boleto_payment_request: CreateBoletoPaymentRequest
|
477
|
+
:param _request_timeout: timeout setting for this request. If one
|
478
|
+
number provided, it will be total request
|
479
|
+
timeout. It can also be a pair (tuple) of
|
480
|
+
(connection, read) timeouts.
|
481
|
+
:type _request_timeout: int, tuple(int, int), optional
|
482
|
+
:param _request_auth: set to override the auth_settings for an a single
|
483
|
+
request; this effectively ignores the
|
484
|
+
authentication in the spec for a single request.
|
485
|
+
:type _request_auth: dict, optional
|
486
|
+
:param _content_type: force content-type for the request.
|
487
|
+
:type _content_type: str, Optional
|
488
|
+
:param _headers: set to override the headers for a single
|
489
|
+
request; this effectively ignores the headers
|
490
|
+
in the spec for a single request.
|
491
|
+
:type _headers: dict, optional
|
492
|
+
:param _host_index: set to override the host_index for a single
|
493
|
+
request; this effectively ignores the host_index
|
494
|
+
in the spec for a single request.
|
495
|
+
:type _host_index: int, optional
|
496
|
+
:return: Returns the result object.
|
497
|
+
""" # noqa: E501
|
498
|
+
|
499
|
+
_param = self._payment_request_create_boleto_serialize(
|
500
|
+
create_boleto_payment_request=create_boleto_payment_request,
|
501
|
+
_request_auth=_request_auth,
|
502
|
+
_content_type=_content_type,
|
503
|
+
_headers=_headers,
|
504
|
+
_host_index=_host_index
|
505
|
+
)
|
506
|
+
|
507
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
508
|
+
'200': "PaymentRequest",
|
509
|
+
}
|
510
|
+
response_data = self.api_client.call_api(
|
511
|
+
*_param,
|
512
|
+
_request_timeout=_request_timeout
|
513
|
+
)
|
514
|
+
return response_data.response
|
515
|
+
|
516
|
+
|
517
|
+
def _payment_request_create_boleto_serialize(
|
518
|
+
self,
|
519
|
+
create_boleto_payment_request,
|
520
|
+
_request_auth,
|
521
|
+
_content_type,
|
522
|
+
_headers,
|
523
|
+
_host_index,
|
524
|
+
) -> RequestSerialized:
|
525
|
+
|
526
|
+
_host = None
|
527
|
+
|
528
|
+
_collection_formats: Dict[str, str] = {
|
529
|
+
}
|
530
|
+
|
531
|
+
_path_params: Dict[str, str] = {}
|
532
|
+
_query_params: List[Tuple[str, str]] = []
|
533
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
534
|
+
_form_params: List[Tuple[str, str]] = []
|
535
|
+
_files: Dict[str, Union[str, bytes]] = {}
|
536
|
+
_body_params: Optional[bytes] = None
|
537
|
+
|
538
|
+
# process the path parameters
|
539
|
+
# process the query parameters
|
540
|
+
# process the header parameters
|
541
|
+
# process the form parameters
|
542
|
+
# process the body parameter
|
543
|
+
if create_boleto_payment_request is not None:
|
544
|
+
_body_params = create_boleto_payment_request
|
545
|
+
|
546
|
+
|
547
|
+
# set the HTTP header `Accept`
|
548
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
549
|
+
[
|
550
|
+
'application/json'
|
551
|
+
]
|
552
|
+
)
|
553
|
+
|
554
|
+
# set the HTTP header `Content-Type`
|
555
|
+
if _content_type:
|
556
|
+
_header_params['Content-Type'] = _content_type
|
557
|
+
else:
|
558
|
+
_default_content_type = (
|
559
|
+
self.api_client.select_header_content_type(
|
560
|
+
[
|
561
|
+
'application/json'
|
562
|
+
]
|
563
|
+
)
|
564
|
+
)
|
565
|
+
if _default_content_type is not None:
|
566
|
+
_header_params['Content-Type'] = _default_content_type
|
567
|
+
|
568
|
+
# authentication setting
|
569
|
+
_auth_settings: List[str] = [
|
570
|
+
'default'
|
571
|
+
]
|
572
|
+
|
573
|
+
return self.api_client.param_serialize(
|
574
|
+
method='POST',
|
575
|
+
resource_path='/payments/requests/boleto',
|
576
|
+
path_params=_path_params,
|
577
|
+
query_params=_query_params,
|
578
|
+
header_params=_header_params,
|
579
|
+
body=_body_params,
|
580
|
+
post_params=_form_params,
|
581
|
+
files=_files,
|
582
|
+
auth_settings=_auth_settings,
|
583
|
+
collection_formats=_collection_formats,
|
584
|
+
_host=_host,
|
585
|
+
_request_auth=_request_auth
|
586
|
+
)
|
587
|
+
|
588
|
+
|
589
|
+
|
590
|
+
|
319
591
|
@validate_call
|
320
592
|
def payment_request_create_pix_qr(
|
321
593
|
self,
|
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.post10/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.post10".\
|
404
404
|
format(env=sys.platform, pyversion=sys.version)
|
405
405
|
|
406
406
|
def get_host_settings(self):
|
pluggy_sdk/models/__init__.py
CHANGED
@@ -39,6 +39,9 @@ from pluggy_sdk.models.bank_data import BankData
|
|
39
39
|
from pluggy_sdk.models.bill import Bill
|
40
40
|
from pluggy_sdk.models.bill_finance_charge import BillFinanceCharge
|
41
41
|
from pluggy_sdk.models.bills_list200_response import BillsList200Response
|
42
|
+
from pluggy_sdk.models.boleto import Boleto
|
43
|
+
from pluggy_sdk.models.boleto_payer import BoletoPayer
|
44
|
+
from pluggy_sdk.models.boleto_recipient import BoletoRecipient
|
42
45
|
from pluggy_sdk.models.bulk_payment import BulkPayment
|
43
46
|
from pluggy_sdk.models.bulk_payments_list200_response import BulkPaymentsList200Response
|
44
47
|
from pluggy_sdk.models.category import Category
|
@@ -52,6 +55,7 @@ from pluggy_sdk.models.connector_health import ConnectorHealth
|
|
52
55
|
from pluggy_sdk.models.connector_health_details import ConnectorHealthDetails
|
53
56
|
from pluggy_sdk.models.connector_list_response import ConnectorListResponse
|
54
57
|
from pluggy_sdk.models.connector_user_action import ConnectorUserAction
|
58
|
+
from pluggy_sdk.models.create_boleto_payment_request import CreateBoletoPaymentRequest
|
55
59
|
from pluggy_sdk.models.create_bulk_payment import CreateBulkPayment
|
56
60
|
from pluggy_sdk.models.create_client_category_rule import CreateClientCategoryRule
|
57
61
|
from pluggy_sdk.models.create_item import CreateItem
|
@@ -0,0 +1,121 @@
|
|
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 datetime import datetime
|
22
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr
|
23
|
+
from typing import Any, ClassVar, Dict, List, Optional, Union
|
24
|
+
from pluggy_sdk.models.boleto_payer import BoletoPayer
|
25
|
+
from pluggy_sdk.models.boleto_recipient import BoletoRecipient
|
26
|
+
from typing import Optional, Set
|
27
|
+
from typing_extensions import Self
|
28
|
+
|
29
|
+
class Boleto(BaseModel):
|
30
|
+
"""
|
31
|
+
Boleto data
|
32
|
+
""" # noqa: E501
|
33
|
+
digitable_line: StrictStr = Field(description="Boleto digitable line", alias="digitableLine")
|
34
|
+
barcode: StrictStr = Field(description="Boleto barcode")
|
35
|
+
payer: BoletoPayer
|
36
|
+
recipient: BoletoRecipient
|
37
|
+
var_date: datetime = Field(description="Boleto issue date", alias="date")
|
38
|
+
due_date: datetime = Field(description="Boleto due date", alias="dueDate")
|
39
|
+
expiration_date: datetime = Field(description="After this date, the boleto cannot be paid", alias="expirationDate")
|
40
|
+
base_amount: Union[StrictFloat, StrictInt] = Field(description="Boleto original amount, without interests, penalties and discounts", alias="baseAmount")
|
41
|
+
penalty_amount: Union[StrictFloat, StrictInt] = Field(description="Boleto penalty amount. If there is no penalty, it will be returned as zero", alias="penaltyAmount")
|
42
|
+
interest_amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Boleto interest amount. If there is no interest, it will be returned as zero", alias="interestAmount")
|
43
|
+
discount_amount: Union[StrictFloat, StrictInt] = Field(description="Boleto discount amount. If there is no discounts, it will be returned as zero", alias="discountAmount")
|
44
|
+
total_amount: Union[StrictFloat, StrictInt] = Field(description="Boleto final amount. It is equal to the base amount plus penalties and interests, minus discounts", alias="totalAmount")
|
45
|
+
updated_at: Optional[datetime] = Field(default=None, description="Date when the lastest information of this boleto has been retrieved", alias="updatedAt")
|
46
|
+
__properties: ClassVar[List[str]] = ["digitableLine", "barcode", "payer", "recipient", "date", "dueDate", "expirationDate", "baseAmount", "penaltyAmount", "interestAmount", "discountAmount", "totalAmount", "updatedAt"]
|
47
|
+
|
48
|
+
model_config = ConfigDict(
|
49
|
+
populate_by_name=True,
|
50
|
+
validate_assignment=True,
|
51
|
+
protected_namespaces=(),
|
52
|
+
)
|
53
|
+
|
54
|
+
|
55
|
+
def to_str(self) -> str:
|
56
|
+
"""Returns the string representation of the model using alias"""
|
57
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
58
|
+
|
59
|
+
def to_json(self) -> str:
|
60
|
+
"""Returns the JSON representation of the model using alias"""
|
61
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
62
|
+
return json.dumps(self.to_dict())
|
63
|
+
|
64
|
+
@classmethod
|
65
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
66
|
+
"""Create an instance of Boleto from a JSON string"""
|
67
|
+
return cls.from_dict(json.loads(json_str))
|
68
|
+
|
69
|
+
def to_dict(self) -> Dict[str, Any]:
|
70
|
+
"""Return the dictionary representation of the model using alias.
|
71
|
+
|
72
|
+
This has the following differences from calling pydantic's
|
73
|
+
`self.model_dump(by_alias=True)`:
|
74
|
+
|
75
|
+
* `None` is only added to the output dict for nullable fields that
|
76
|
+
were set at model initialization. Other fields with value `None`
|
77
|
+
are ignored.
|
78
|
+
"""
|
79
|
+
excluded_fields: Set[str] = set([
|
80
|
+
])
|
81
|
+
|
82
|
+
_dict = self.model_dump(
|
83
|
+
by_alias=True,
|
84
|
+
exclude=excluded_fields,
|
85
|
+
exclude_none=True,
|
86
|
+
)
|
87
|
+
# override the default output from pydantic by calling `to_dict()` of payer
|
88
|
+
if self.payer:
|
89
|
+
_dict['payer'] = self.payer.to_dict()
|
90
|
+
# override the default output from pydantic by calling `to_dict()` of recipient
|
91
|
+
if self.recipient:
|
92
|
+
_dict['recipient'] = self.recipient.to_dict()
|
93
|
+
return _dict
|
94
|
+
|
95
|
+
@classmethod
|
96
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
97
|
+
"""Create an instance of Boleto from a dict"""
|
98
|
+
if obj is None:
|
99
|
+
return None
|
100
|
+
|
101
|
+
if not isinstance(obj, dict):
|
102
|
+
return cls.model_validate(obj)
|
103
|
+
|
104
|
+
_obj = cls.model_validate({
|
105
|
+
"digitableLine": obj.get("digitableLine"),
|
106
|
+
"barcode": obj.get("barcode"),
|
107
|
+
"payer": BoletoPayer.from_dict(obj["payer"]) if obj.get("payer") is not None else None,
|
108
|
+
"recipient": BoletoRecipient.from_dict(obj["recipient"]) if obj.get("recipient") is not None else None,
|
109
|
+
"date": obj.get("date"),
|
110
|
+
"dueDate": obj.get("dueDate"),
|
111
|
+
"expirationDate": obj.get("expirationDate"),
|
112
|
+
"baseAmount": obj.get("baseAmount"),
|
113
|
+
"penaltyAmount": obj.get("penaltyAmount"),
|
114
|
+
"interestAmount": obj.get("interestAmount"),
|
115
|
+
"discountAmount": obj.get("discountAmount"),
|
116
|
+
"totalAmount": obj.get("totalAmount"),
|
117
|
+
"updatedAt": obj.get("updatedAt")
|
118
|
+
})
|
119
|
+
return _obj
|
120
|
+
|
121
|
+
|
@@ -0,0 +1,90 @@
|
|
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 BoletoPayer(BaseModel):
|
27
|
+
"""
|
28
|
+
Boleto payer information
|
29
|
+
""" # noqa: E501
|
30
|
+
tax_number: StrictStr = Field(description="Payer CPF or CNPJ", alias="taxNumber")
|
31
|
+
name: StrictStr = Field(description="Payer name")
|
32
|
+
__properties: ClassVar[List[str]] = ["taxNumber", "name"]
|
33
|
+
|
34
|
+
model_config = ConfigDict(
|
35
|
+
populate_by_name=True,
|
36
|
+
validate_assignment=True,
|
37
|
+
protected_namespaces=(),
|
38
|
+
)
|
39
|
+
|
40
|
+
|
41
|
+
def to_str(self) -> str:
|
42
|
+
"""Returns the string representation of the model using alias"""
|
43
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
44
|
+
|
45
|
+
def to_json(self) -> str:
|
46
|
+
"""Returns the JSON representation of the model using alias"""
|
47
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
48
|
+
return json.dumps(self.to_dict())
|
49
|
+
|
50
|
+
@classmethod
|
51
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
52
|
+
"""Create an instance of BoletoPayer from a JSON string"""
|
53
|
+
return cls.from_dict(json.loads(json_str))
|
54
|
+
|
55
|
+
def to_dict(self) -> Dict[str, Any]:
|
56
|
+
"""Return the dictionary representation of the model using alias.
|
57
|
+
|
58
|
+
This has the following differences from calling pydantic's
|
59
|
+
`self.model_dump(by_alias=True)`:
|
60
|
+
|
61
|
+
* `None` is only added to the output dict for nullable fields that
|
62
|
+
were set at model initialization. Other fields with value `None`
|
63
|
+
are ignored.
|
64
|
+
"""
|
65
|
+
excluded_fields: Set[str] = set([
|
66
|
+
])
|
67
|
+
|
68
|
+
_dict = self.model_dump(
|
69
|
+
by_alias=True,
|
70
|
+
exclude=excluded_fields,
|
71
|
+
exclude_none=True,
|
72
|
+
)
|
73
|
+
return _dict
|
74
|
+
|
75
|
+
@classmethod
|
76
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
77
|
+
"""Create an instance of BoletoPayer from a dict"""
|
78
|
+
if obj is None:
|
79
|
+
return None
|
80
|
+
|
81
|
+
if not isinstance(obj, dict):
|
82
|
+
return cls.model_validate(obj)
|
83
|
+
|
84
|
+
_obj = cls.model_validate({
|
85
|
+
"taxNumber": obj.get("taxNumber"),
|
86
|
+
"name": obj.get("name")
|
87
|
+
})
|
88
|
+
return _obj
|
89
|
+
|
90
|
+
|
@@ -0,0 +1,90 @@
|
|
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 BoletoRecipient(BaseModel):
|
27
|
+
"""
|
28
|
+
Boleto recipient information
|
29
|
+
""" # noqa: E501
|
30
|
+
tax_number: StrictStr = Field(description="Recipient CPF or CNPJ", alias="taxNumber")
|
31
|
+
name: StrictStr = Field(description="Recipient name")
|
32
|
+
__properties: ClassVar[List[str]] = ["taxNumber", "name"]
|
33
|
+
|
34
|
+
model_config = ConfigDict(
|
35
|
+
populate_by_name=True,
|
36
|
+
validate_assignment=True,
|
37
|
+
protected_namespaces=(),
|
38
|
+
)
|
39
|
+
|
40
|
+
|
41
|
+
def to_str(self) -> str:
|
42
|
+
"""Returns the string representation of the model using alias"""
|
43
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
44
|
+
|
45
|
+
def to_json(self) -> str:
|
46
|
+
"""Returns the JSON representation of the model using alias"""
|
47
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
48
|
+
return json.dumps(self.to_dict())
|
49
|
+
|
50
|
+
@classmethod
|
51
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
52
|
+
"""Create an instance of BoletoRecipient from a JSON string"""
|
53
|
+
return cls.from_dict(json.loads(json_str))
|
54
|
+
|
55
|
+
def to_dict(self) -> Dict[str, Any]:
|
56
|
+
"""Return the dictionary representation of the model using alias.
|
57
|
+
|
58
|
+
This has the following differences from calling pydantic's
|
59
|
+
`self.model_dump(by_alias=True)`:
|
60
|
+
|
61
|
+
* `None` is only added to the output dict for nullable fields that
|
62
|
+
were set at model initialization. Other fields with value `None`
|
63
|
+
are ignored.
|
64
|
+
"""
|
65
|
+
excluded_fields: Set[str] = set([
|
66
|
+
])
|
67
|
+
|
68
|
+
_dict = self.model_dump(
|
69
|
+
by_alias=True,
|
70
|
+
exclude=excluded_fields,
|
71
|
+
exclude_none=True,
|
72
|
+
)
|
73
|
+
return _dict
|
74
|
+
|
75
|
+
@classmethod
|
76
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
77
|
+
"""Create an instance of BoletoRecipient from a dict"""
|
78
|
+
if obj is None:
|
79
|
+
return None
|
80
|
+
|
81
|
+
if not isinstance(obj, dict):
|
82
|
+
return cls.model_validate(obj)
|
83
|
+
|
84
|
+
_obj = cls.model_validate({
|
85
|
+
"taxNumber": obj.get("taxNumber"),
|
86
|
+
"name": obj.get("name")
|
87
|
+
})
|
88
|
+
return _obj
|
89
|
+
|
90
|
+
|
@@ -0,0 +1,98 @@
|
|
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, Optional
|
23
|
+
from pluggy_sdk.models.payment_request_callback_urls import PaymentRequestCallbackUrls
|
24
|
+
from typing import Optional, Set
|
25
|
+
from typing_extensions import Self
|
26
|
+
|
27
|
+
class CreateBoletoPaymentRequest(BaseModel):
|
28
|
+
"""
|
29
|
+
Request with information to create a boleto payment request
|
30
|
+
""" # noqa: E501
|
31
|
+
description: Optional[StrictStr] = Field(default=None, description="Payment description")
|
32
|
+
digitable_line: StrictStr = Field(description="Boleto digitable line", alias="digitableLine")
|
33
|
+
callback_urls: Optional[PaymentRequestCallbackUrls] = Field(default=None, alias="callbackUrls")
|
34
|
+
customer_id: Optional[StrictStr] = Field(default=None, description="Customer identifier associated to the payment", alias="customerId")
|
35
|
+
__properties: ClassVar[List[str]] = ["description", "digitableLine", "callbackUrls", "customerId"]
|
36
|
+
|
37
|
+
model_config = ConfigDict(
|
38
|
+
populate_by_name=True,
|
39
|
+
validate_assignment=True,
|
40
|
+
protected_namespaces=(),
|
41
|
+
)
|
42
|
+
|
43
|
+
|
44
|
+
def to_str(self) -> str:
|
45
|
+
"""Returns the string representation of the model using alias"""
|
46
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
47
|
+
|
48
|
+
def to_json(self) -> str:
|
49
|
+
"""Returns the JSON representation of the model using alias"""
|
50
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
51
|
+
return json.dumps(self.to_dict())
|
52
|
+
|
53
|
+
@classmethod
|
54
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
55
|
+
"""Create an instance of CreateBoletoPaymentRequest from a JSON string"""
|
56
|
+
return cls.from_dict(json.loads(json_str))
|
57
|
+
|
58
|
+
def to_dict(self) -> Dict[str, Any]:
|
59
|
+
"""Return the dictionary representation of the model using alias.
|
60
|
+
|
61
|
+
This has the following differences from calling pydantic's
|
62
|
+
`self.model_dump(by_alias=True)`:
|
63
|
+
|
64
|
+
* `None` is only added to the output dict for nullable fields that
|
65
|
+
were set at model initialization. Other fields with value `None`
|
66
|
+
are ignored.
|
67
|
+
"""
|
68
|
+
excluded_fields: Set[str] = set([
|
69
|
+
])
|
70
|
+
|
71
|
+
_dict = self.model_dump(
|
72
|
+
by_alias=True,
|
73
|
+
exclude=excluded_fields,
|
74
|
+
exclude_none=True,
|
75
|
+
)
|
76
|
+
# override the default output from pydantic by calling `to_dict()` of callback_urls
|
77
|
+
if self.callback_urls:
|
78
|
+
_dict['callbackUrls'] = self.callback_urls.to_dict()
|
79
|
+
return _dict
|
80
|
+
|
81
|
+
@classmethod
|
82
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
83
|
+
"""Create an instance of CreateBoletoPaymentRequest from a dict"""
|
84
|
+
if obj is None:
|
85
|
+
return None
|
86
|
+
|
87
|
+
if not isinstance(obj, dict):
|
88
|
+
return cls.model_validate(obj)
|
89
|
+
|
90
|
+
_obj = cls.model_validate({
|
91
|
+
"description": obj.get("description"),
|
92
|
+
"digitableLine": obj.get("digitableLine"),
|
93
|
+
"callbackUrls": PaymentRequestCallbackUrls.from_dict(obj["callbackUrls"]) if obj.get("callbackUrls") is not None else None,
|
94
|
+
"customerId": obj.get("customerId")
|
95
|
+
})
|
96
|
+
return _obj
|
97
|
+
|
98
|
+
|
@@ -32,7 +32,7 @@ class CreatePaymentIntent(BaseModel):
|
|
32
32
|
bulk_payment_id: Optional[StrictStr] = Field(default=None, description="Primary identifier of the bulk payment associated to the payment intent", alias="bulkPaymentId")
|
33
33
|
parameters: Optional[PaymentIntentParameter] = None
|
34
34
|
connector_id: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Primary identifier of the connector associated to the payment intent", alias="connectorId")
|
35
|
-
payment_method: Optional[StrictStr] = Field(default=None, description="Payment method can be PIS (Payment Initiation) or PIX (PIX QR flow), if PIX selected
|
35
|
+
payment_method: Optional[StrictStr] = Field(default=None, description="Payment method can be PIS (Payment Initiation) or PIX (PIX QR flow), if PIX selected `bulkPaymentId` or a `paymentRequest` with smartAccountId attached will be accepted", alias="paymentMethod")
|
36
36
|
__properties: ClassVar[List[str]] = ["paymentRequestId", "bulkPaymentId", "parameters", "connectorId", "paymentMethod"]
|
37
37
|
|
38
38
|
@field_validator('payment_method')
|
@@ -34,7 +34,8 @@ class CreatePaymentRecipient(BaseModel):
|
|
34
34
|
account: Optional[PaymentRecipientAccount] = Field(default=None, description="Recipient's bank account destination. Send only if the pixKey is not sent.")
|
35
35
|
is_default: Optional[StrictBool] = Field(default=None, description="Indicates if the recipient is the default one", alias="isDefault")
|
36
36
|
pix_key: Optional[StrictStr] = Field(default=None, description="Pix key associated with the payment recipient", alias="pixKey")
|
37
|
-
|
37
|
+
smart_account_id: Optional[StrictStr] = Field(default=None, description="Smart account identifier associated to the payment recipient, used to be able to use PIX Qr method", alias="smartAccountId")
|
38
|
+
__properties: ClassVar[List[str]] = ["taxNumber", "name", "paymentInstitutionId", "account", "isDefault", "pixKey", "smartAccountId"]
|
38
39
|
|
39
40
|
model_config = ConfigDict(
|
40
41
|
populate_by_name=True,
|
@@ -95,7 +96,8 @@ class CreatePaymentRecipient(BaseModel):
|
|
95
96
|
"paymentInstitutionId": obj.get("paymentInstitutionId"),
|
96
97
|
"account": PaymentRecipientAccount.from_dict(obj["account"]) if obj.get("account") is not None else None,
|
97
98
|
"isDefault": obj.get("isDefault"),
|
98
|
-
"pixKey": obj.get("pixKey")
|
99
|
+
"pixKey": obj.get("pixKey"),
|
100
|
+
"smartAccountId": obj.get("smartAccountId")
|
99
101
|
})
|
100
102
|
return _obj
|
101
103
|
|
@@ -34,7 +34,8 @@ class CreatePaymentRequest(BaseModel):
|
|
34
34
|
recipient_id: Optional[StrictStr] = Field(default=None, description="Payment receiver identifier", alias="recipientId")
|
35
35
|
customer_id: Optional[StrictStr] = Field(default=None, description="Customer identifier associated to the payment", alias="customerId")
|
36
36
|
client_payment_id: Optional[StrictStr] = Field(default=None, description="Your payment identifier", alias="clientPaymentId")
|
37
|
-
|
37
|
+
smart_account_id: Optional[StrictStr] = Field(default=None, description="Smart account identifier associated to the payment, used to be able to use PIX Qr method", alias="smartAccountId")
|
38
|
+
__properties: ClassVar[List[str]] = ["amount", "description", "callbackUrls", "recipientId", "customerId", "clientPaymentId", "smartAccountId"]
|
38
39
|
|
39
40
|
model_config = ConfigDict(
|
40
41
|
populate_by_name=True,
|
@@ -95,7 +96,8 @@ class CreatePaymentRequest(BaseModel):
|
|
95
96
|
"callbackUrls": PaymentRequestCallbackUrls.from_dict(obj["callbackUrls"]) if obj.get("callbackUrls") is not None else None,
|
96
97
|
"recipientId": obj.get("recipientId"),
|
97
98
|
"customerId": obj.get("customerId"),
|
98
|
-
"clientPaymentId": obj.get("clientPaymentId")
|
99
|
+
"clientPaymentId": obj.get("clientPaymentId"),
|
100
|
+
"smartAccountId": obj.get("smartAccountId")
|
99
101
|
})
|
100
102
|
return _obj
|
101
103
|
|
@@ -21,6 +21,7 @@ import json
|
|
21
21
|
from datetime import datetime
|
22
22
|
from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr
|
23
23
|
from typing import Any, ClassVar, Dict, List, Optional, Union
|
24
|
+
from pluggy_sdk.models.boleto import Boleto
|
24
25
|
from pluggy_sdk.models.payment_receipt_person import PaymentReceiptPerson
|
25
26
|
from typing import Optional, Set
|
26
27
|
from typing_extensions import Self
|
@@ -39,7 +40,8 @@ class PaymentReceipt(BaseModel):
|
|
39
40
|
description: Optional[StrictStr] = Field(default=None, description="Payment description")
|
40
41
|
reference_id: StrictStr = Field(description="Payment reference identifier", alias="referenceId")
|
41
42
|
var_date: Optional[datetime] = Field(default=None, description="Date when the payment was made", alias="date")
|
42
|
-
|
43
|
+
boleto: Optional[Boleto] = None
|
44
|
+
__properties: ClassVar[List[str]] = ["id", "paymentRequestId", "expiresAt", "receiptUrl", "creditor", "debtor", "amount", "description", "referenceId", "date", "boleto"]
|
43
45
|
|
44
46
|
model_config = ConfigDict(
|
45
47
|
populate_by_name=True,
|
@@ -86,6 +88,9 @@ class PaymentReceipt(BaseModel):
|
|
86
88
|
# override the default output from pydantic by calling `to_dict()` of debtor
|
87
89
|
if self.debtor:
|
88
90
|
_dict['debtor'] = self.debtor.to_dict()
|
91
|
+
# override the default output from pydantic by calling `to_dict()` of boleto
|
92
|
+
if self.boleto:
|
93
|
+
_dict['boleto'] = self.boleto.to_dict()
|
89
94
|
return _dict
|
90
95
|
|
91
96
|
@classmethod
|
@@ -107,7 +112,8 @@ class PaymentReceipt(BaseModel):
|
|
107
112
|
"amount": obj.get("amount"),
|
108
113
|
"description": obj.get("description"),
|
109
114
|
"referenceId": obj.get("referenceId"),
|
110
|
-
"date": obj.get("date")
|
115
|
+
"date": obj.get("date"),
|
116
|
+
"boleto": Boleto.from_dict(obj["boleto"]) if obj.get("boleto") is not None else None
|
111
117
|
})
|
112
118
|
return _obj
|
113
119
|
|
@@ -36,7 +36,8 @@ class PaymentRecipient(BaseModel):
|
|
36
36
|
is_default: StrictBool = Field(description="Indicates if the recipient is the default one", alias="isDefault")
|
37
37
|
account: PaymentRecipientAccount
|
38
38
|
pix_key: Optional[StrictStr] = Field(default=None, description="Pix key associated with the payment recipient", alias="pixKey")
|
39
|
-
|
39
|
+
smart_account_id: Optional[StrictStr] = Field(default=None, description="Smart account that will receive the money, if you are using a Smart Account to pay and it's the same one, the smart account will keep the money", alias="smartAccountId")
|
40
|
+
__properties: ClassVar[List[str]] = ["id", "taxNumber", "name", "paymentInstitution", "isDefault", "account", "pixKey", "smartAccountId"]
|
40
41
|
|
41
42
|
model_config = ConfigDict(
|
42
43
|
populate_by_name=True,
|
@@ -101,7 +102,8 @@ class PaymentRecipient(BaseModel):
|
|
101
102
|
"paymentInstitution": PaymentInstitution.from_dict(obj["paymentInstitution"]) if obj.get("paymentInstitution") is not None else None,
|
102
103
|
"isDefault": obj.get("isDefault"),
|
103
104
|
"account": PaymentRecipientAccount.from_dict(obj["account"]) if obj.get("account") is not None else None,
|
104
|
-
"pixKey": obj.get("pixKey")
|
105
|
+
"pixKey": obj.get("pixKey"),
|
106
|
+
"smartAccountId": obj.get("smartAccountId")
|
105
107
|
})
|
106
108
|
return _obj
|
107
109
|
|
@@ -21,6 +21,7 @@ import json
|
|
21
21
|
from datetime import datetime
|
22
22
|
from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr, field_validator
|
23
23
|
from typing import Any, ClassVar, Dict, List, Optional, Union
|
24
|
+
from pluggy_sdk.models.boleto import Boleto
|
24
25
|
from pluggy_sdk.models.payment_request_callback_urls import PaymentRequestCallbackUrls
|
25
26
|
from typing import Optional, Set
|
26
27
|
from typing_extensions import Self
|
@@ -40,7 +41,8 @@ class PaymentRequest(BaseModel):
|
|
40
41
|
recipient_id: Optional[StrictStr] = Field(default=None, description="Payment receiver identifier", alias="recipientId")
|
41
42
|
payment_url: StrictStr = Field(description="URL to begin the payment intent creation flow for this payment request", alias="paymentUrl")
|
42
43
|
pix_qr_code: Optional[StrictStr] = Field(default=None, description="Pix QR code generated by the payment receiver", alias="pixQrCode")
|
43
|
-
|
44
|
+
boleto: Optional[Boleto] = None
|
45
|
+
__properties: ClassVar[List[str]] = ["id", "amount", "description", "status", "clientPaymentId", "createdAt", "updatedAt", "callbackUrls", "recipientId", "paymentUrl", "pixQrCode", "boleto"]
|
44
46
|
|
45
47
|
@field_validator('status')
|
46
48
|
def status_validate_enum(cls, value):
|
@@ -91,6 +93,9 @@ class PaymentRequest(BaseModel):
|
|
91
93
|
# override the default output from pydantic by calling `to_dict()` of callback_urls
|
92
94
|
if self.callback_urls:
|
93
95
|
_dict['callbackUrls'] = self.callback_urls.to_dict()
|
96
|
+
# override the default output from pydantic by calling `to_dict()` of boleto
|
97
|
+
if self.boleto:
|
98
|
+
_dict['boleto'] = self.boleto.to_dict()
|
94
99
|
return _dict
|
95
100
|
|
96
101
|
@classmethod
|
@@ -113,7 +118,8 @@ class PaymentRequest(BaseModel):
|
|
113
118
|
"callbackUrls": PaymentRequestCallbackUrls.from_dict(obj["callbackUrls"]) if obj.get("callbackUrls") is not None else None,
|
114
119
|
"recipientId": obj.get("recipientId"),
|
115
120
|
"paymentUrl": obj.get("paymentUrl"),
|
116
|
-
"pixQrCode": obj.get("pixQrCode")
|
121
|
+
"pixQrCode": obj.get("pixQrCode"),
|
122
|
+
"boleto": Boleto.from_dict(obj["boleto"]) if obj.get("boleto") is not None else None
|
117
123
|
})
|
118
124
|
return _obj
|
119
125
|
|
@@ -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.post10
|
4
4
|
Summary: Pluggy API
|
5
5
|
Home-page: https://github.com/diraol/pluggy-python
|
6
6
|
Author: Pluggy
|
@@ -19,8 +19,8 @@ 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.
|
23
|
-
- Generator version: 7.
|
22
|
+
- Package version: 1.0.0.post10
|
23
|
+
- Generator version: 7.7.0-SNAPSHOT
|
24
24
|
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
25
25
|
For more information, please visit [https://pluggy.ai](https://pluggy.ai)
|
26
26
|
|
@@ -163,6 +163,7 @@ Class | Method | HTTP request | Description
|
|
163
163
|
*PaymentRecipientApi* | [**payment_recipients_institution_list**](docs/PaymentRecipientApi.md#payment_recipients_institution_list) | **GET** /payments/recipients/institutions | List Institutions
|
164
164
|
*PaymentRecipientApi* | [**payment_recipients_list**](docs/PaymentRecipientApi.md#payment_recipients_list) | **GET** /payments/recipients | List
|
165
165
|
*PaymentRequestApi* | [**payment_request_create**](docs/PaymentRequestApi.md#payment_request_create) | **POST** /payments/requests | Create
|
166
|
+
*PaymentRequestApi* | [**payment_request_create_boleto**](docs/PaymentRequestApi.md#payment_request_create_boleto) | **POST** /payments/requests/boleto | Create boleto payment request
|
166
167
|
*PaymentRequestApi* | [**payment_request_create_pix_qr**](docs/PaymentRequestApi.md#payment_request_create_pix_qr) | **POST** /payments/requests/pix-qr | Create PIX QR payment request
|
167
168
|
*PaymentRequestApi* | [**payment_request_delete**](docs/PaymentRequestApi.md#payment_request_delete) | **DELETE** /payments/requests/{id} | Delete
|
168
169
|
*PaymentRequestApi* | [**payment_request_receipt_create**](docs/PaymentRequestApi.md#payment_request_receipt_create) | **POST** /payments/requests/{id}/receipts | Create
|
@@ -213,6 +214,9 @@ Class | Method | HTTP request | Description
|
|
213
214
|
- [Bill](docs/Bill.md)
|
214
215
|
- [BillFinanceCharge](docs/BillFinanceCharge.md)
|
215
216
|
- [BillsList200Response](docs/BillsList200Response.md)
|
217
|
+
- [Boleto](docs/Boleto.md)
|
218
|
+
- [BoletoPayer](docs/BoletoPayer.md)
|
219
|
+
- [BoletoRecipient](docs/BoletoRecipient.md)
|
216
220
|
- [BulkPayment](docs/BulkPayment.md)
|
217
221
|
- [BulkPaymentsList200Response](docs/BulkPaymentsList200Response.md)
|
218
222
|
- [Category](docs/Category.md)
|
@@ -226,6 +230,7 @@ Class | Method | HTTP request | Description
|
|
226
230
|
- [ConnectorHealthDetails](docs/ConnectorHealthDetails.md)
|
227
231
|
- [ConnectorListResponse](docs/ConnectorListResponse.md)
|
228
232
|
- [ConnectorUserAction](docs/ConnectorUserAction.md)
|
233
|
+
- [CreateBoletoPaymentRequest](docs/CreateBoletoPaymentRequest.md)
|
229
234
|
- [CreateBulkPayment](docs/CreateBulkPayment.md)
|
230
235
|
- [CreateClientCategoryRule](docs/CreateClientCategoryRule.md)
|
231
236
|
- [CreateItem](docs/CreateItem.md)
|
@@ -1,7 +1,7 @@
|
|
1
|
-
pluggy_sdk/__init__.py,sha256=
|
2
|
-
pluggy_sdk/api_client.py,sha256=
|
1
|
+
pluggy_sdk/__init__.py,sha256=aAPSY1NBk7nQ2-EpSvljEgUfuT84Kfr0hjNyPxhHOK4,12050
|
2
|
+
pluggy_sdk/api_client.py,sha256=K8DiHRHKTub3hVx7mXeyLUUPtSj_fNaM9HIY18_3x14,26306
|
3
3
|
pluggy_sdk/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
|
4
|
-
pluggy_sdk/configuration.py,sha256=
|
4
|
+
pluggy_sdk/configuration.py,sha256=Q0_vfWF5O0PqvjW1vyQlZRvU2ESxEvWxghnuaBc0eys,15331
|
5
5
|
pluggy_sdk/exceptions.py,sha256=nnh92yDlGdY1-zRsb0vQLebe4oyhrO63RXCYBhbrhoU,5953
|
6
6
|
pluggy_sdk/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
7
7
|
pluggy_sdk/rest.py,sha256=bul9ovAN4BXJwh9yRpC8xb9pZva6xIKmUD72sIQa2yM,9385
|
@@ -23,12 +23,12 @@ pluggy_sdk/api/loan_api.py,sha256=-SD37ZzfB9S2SaqyUl0Gg3Plko7olxmu04jcB2mA7Vg,20
|
|
23
23
|
pluggy_sdk/api/payment_customer_api.py,sha256=qUiuhizeTkXMuISJTiaAVaTMycn_d1zNvAmc0uv2Vew,54784
|
24
24
|
pluggy_sdk/api/payment_intent_api.py,sha256=jcf5dDrmMjSz90cQ9H-u1NaIHW0aATLs6nQyyRID1tc,32020
|
25
25
|
pluggy_sdk/api/payment_recipient_api.py,sha256=icivhir7nkhkcnR-LLKsuJJGRydeGSEiDSeP-eX8LnU,77933
|
26
|
-
pluggy_sdk/api/payment_request_api.py,sha256=
|
26
|
+
pluggy_sdk/api/payment_request_api.py,sha256=VtIZ15EcTHyAL4TbIq_CvIT_kHRe2WTEuwJnGHqXQpc,105085
|
27
27
|
pluggy_sdk/api/portfolio_yield_api.py,sha256=R_Cz-1G0s7qOUltG-VOXi8GSCNceM1j4lmu9V7zM0jM,22320
|
28
28
|
pluggy_sdk/api/smart_account_api.py,sha256=CNu4T-0xcPwMckHzrFgYLVqWU9kFMB7FnJpDah4ryZk,43323
|
29
29
|
pluggy_sdk/api/transaction_api.py,sha256=EOqLMWbyLTz93FlzhvHF68DcJ4BAgJ6_81K1mmy4Qr0,37553
|
30
30
|
pluggy_sdk/api/webhook_api.py,sha256=IRqHT_F6VVrMxE3JkXeXidNQnjORmC89xZLTzgpwZNQ,55525
|
31
|
-
pluggy_sdk/models/__init__.py,sha256=
|
31
|
+
pluggy_sdk/models/__init__.py,sha256=GKC0Nhd22GP0fBmxfdC-I9K1T-rPfAg9f3zQqiCPv5c,10264
|
32
32
|
pluggy_sdk/models/account.py,sha256=olFI5wpLnLLE7OO22B4zlNzSAf5TP8kGPVmYar_VUdg,5536
|
33
33
|
pluggy_sdk/models/accounts_list200_response.py,sha256=P-3r6PIEv0uV5gkeOVD5pcQOu2M-c2wi2zkMLN9hxdI,3417
|
34
34
|
pluggy_sdk/models/acquirer_anticipation.py,sha256=_z-lkqKpAML1Tr60J8MoGnc3sN0AOXYPJaTk_DVmYNg,4617
|
@@ -53,6 +53,9 @@ pluggy_sdk/models/bank_data.py,sha256=mfNQfxIA0i2swgd3ODsaIgtMhBG_imQCNXEucaPewZ
|
|
53
53
|
pluggy_sdk/models/bill.py,sha256=Y8OyTNUp7oBeEHG-xH0lq7PLA_NlnCw9kx5runjMjyk,4428
|
54
54
|
pluggy_sdk/models/bill_finance_charge.py,sha256=HzAfznWSmKYuDWt7kHzTMlCXDN_kYZzD5uEMH2qRsUE,3776
|
55
55
|
pluggy_sdk/models/bills_list200_response.py,sha256=PkG522y0madvJU4vmp7RZJxlrXmGWtwBXcHyeZACe5s,3392
|
56
|
+
pluggy_sdk/models/boleto.py,sha256=tD6vJcN_wJC4cKAiEPsvlltmh_jN3BWPTlkAY8ab6ak,5378
|
57
|
+
pluggy_sdk/models/boleto_payer.py,sha256=0zVxArLdsn9lQ68WcabB0oT4tD1QzTyKblN8aZxbjpo,2641
|
58
|
+
pluggy_sdk/models/boleto_recipient.py,sha256=O89GyVOLrJVrTg9_0CHZjmjdlp9blpsMl5QlioE-Z_U,2665
|
56
59
|
pluggy_sdk/models/bulk_payment.py,sha256=7O3FzQwA9BWwClAUgJPcP5w0Mne82UQpSBKnvEuGMog,5666
|
57
60
|
pluggy_sdk/models/bulk_payments_list200_response.py,sha256=bPR8YYGBL1p5vcPpa4co2lSPeRyJeRebthD_mI0NCbA,3445
|
58
61
|
pluggy_sdk/models/category.py,sha256=oFSunhtg1GY2iJKhbio0ZtPeiFAwvOY-mknLELuQkYw,3297
|
@@ -66,15 +69,16 @@ pluggy_sdk/models/connector_health.py,sha256=ZiWpsIT9dufUUL2EW1mc7XgR8wXGXV76zgv
|
|
66
69
|
pluggy_sdk/models/connector_health_details.py,sha256=PhFQAkfS-R95jkKqvAGy_PQJ3NqzPyKPQmYTi5R1Cxo,3578
|
67
70
|
pluggy_sdk/models/connector_list_response.py,sha256=PZp1tbF4gBZpSKjs2Tfb7Cq3FlCqUIOqlrn88Y-Ne8M,3362
|
68
71
|
pluggy_sdk/models/connector_user_action.py,sha256=k1Y8DHn5zEVFRmTEVL7Z8J8js3i7G-aRf1zoCF-Vftw,3065
|
72
|
+
pluggy_sdk/models/create_boleto_payment_request.py,sha256=E2s1JErSVK9gUbf7e2F-4MgtHBIr2qS7ft3vg4YESLk,3546
|
69
73
|
pluggy_sdk/models/create_bulk_payment.py,sha256=g5S2C_vtgvuTY9om2RvOZSebTXosp5WrzwdS4IbQMMs,3438
|
70
74
|
pluggy_sdk/models/create_client_category_rule.py,sha256=w9dcSd3sLAAbCLoL-FUXHd_0hkclcfFD5fHwMpuITAY,2899
|
71
75
|
pluggy_sdk/models/create_item.py,sha256=6CAefEt0OufD63Lz_I-rE8NKcTGwawkng-OU2Nc3EXA,4344
|
72
76
|
pluggy_sdk/models/create_item_parameters.py,sha256=ZAT3HYQRIJMCTO6XRJtBFWLix2LrKrZTWnLtuYMw11k,5380
|
73
77
|
pluggy_sdk/models/create_or_update_payment_customer.py,sha256=ZvN-Pa9LGAR33L5G4XFSbIUPP3RaUsOeD45K5oOKZ-U,3455
|
74
78
|
pluggy_sdk/models/create_payment_customer_request_body.py,sha256=YvSSzXEW2yI7M9alWr4fHbPRqNvV4sxTUVp3FkMQSyU,3365
|
75
|
-
pluggy_sdk/models/create_payment_intent.py,sha256=
|
76
|
-
pluggy_sdk/models/create_payment_recipient.py,sha256=
|
77
|
-
pluggy_sdk/models/create_payment_request.py,sha256=
|
79
|
+
pluggy_sdk/models/create_payment_intent.py,sha256=MCBRy8n1xXnajR3Q4gksZ07Qk_VvtrCPaldTvkBEfUw,4371
|
80
|
+
pluggy_sdk/models/create_payment_recipient.py,sha256=B4vmHZB0uhOBPl9GPcvkno02fpIHIKFTM3EQvMoBoS8,4554
|
81
|
+
pluggy_sdk/models/create_payment_request.py,sha256=06Z_wx2Lb4SjgdRuj5n51MJUMC8kc6EStmqr0RcsEDE,4179
|
78
82
|
pluggy_sdk/models/create_pix_qr_payment_request.py,sha256=gyRV61yUjf_K4WeihOoBSQySS2NODl2sl4STITpMuIA,3354
|
79
83
|
pluggy_sdk/models/create_smart_account_request.py,sha256=ZxfVt_baOOkWDaVB9ndDnmVMx3zwkVnbSRL9iCMfMSQ,3612
|
80
84
|
pluggy_sdk/models/create_webhook.py,sha256=WmTF6jyUKisYewt2smFPoN6Di4zR5iZNX1_sjO4Lbfs,3632
|
@@ -132,14 +136,14 @@ pluggy_sdk/models/payment_institution.py,sha256=hpnfHLCvdsiwxznKYOtig1sfjYjnb6r0
|
|
132
136
|
pluggy_sdk/models/payment_intent.py,sha256=wSEOFlU1bvqe-g4ir7XsRBfgjksbqIxWAS54vCgI2VM,6981
|
133
137
|
pluggy_sdk/models/payment_intent_parameter.py,sha256=WNkeR3mCL9oLeriu5wopL5DAhcsnUsMb_EV8ZZJaXDA,2694
|
134
138
|
pluggy_sdk/models/payment_intents_list200_response.py,sha256=jcMQcYmIdwGLhct3dkgvwbhqhb9-5Fe9dsnIZpPGM3c,3463
|
135
|
-
pluggy_sdk/models/payment_receipt.py,sha256=
|
139
|
+
pluggy_sdk/models/payment_receipt.py,sha256=sVfVy75EBqzbrTzc2wFTStUIjIvDf8NbTHEOLfUNzRI,4933
|
136
140
|
pluggy_sdk/models/payment_receipt_bank_account.py,sha256=eCDX7EPFmNErKl8x8LAZSGnlT8Ii7kHL4th6pVaU_9E,2881
|
137
141
|
pluggy_sdk/models/payment_receipt_person.py,sha256=9eHiWC33eisDSZJgHW6ho_xD2ekaMuzq8AdvVEt5dUE,3246
|
138
|
-
pluggy_sdk/models/payment_recipient.py,sha256=
|
142
|
+
pluggy_sdk/models/payment_recipient.py,sha256=XGpf7503LIg9YADhESE-VGjaFSVWVq0_Dlgb6MUoeDw,4534
|
139
143
|
pluggy_sdk/models/payment_recipient_account.py,sha256=eSnsoBv382LhyjMu172GXsZsBb1M1Ig0iim1dmAPCX0,3177
|
140
144
|
pluggy_sdk/models/payment_recipients_institution_list200_response.py,sha256=a-gty_usP5fMRajNCL7zIPBO1WqWa1zwIhJgCDXMTF0,3544
|
141
145
|
pluggy_sdk/models/payment_recipients_list200_response.py,sha256=9r8qMLzGDumoGG0HWfmQbhNC4kGjzBLZPz_6-YNzb08,3490
|
142
|
-
pluggy_sdk/models/payment_request.py,sha256=
|
146
|
+
pluggy_sdk/models/payment_request.py,sha256=O9c_N_8sJ4Y5xp5vSsL4SfANQ1tIv0qtVsuFZ26RtGo,5365
|
143
147
|
pluggy_sdk/models/payment_request_callback_urls.py,sha256=EneGXM6_0zH4TehYNf9-OsmbEEMwsh8RLvGKEqjCvJE,3085
|
144
148
|
pluggy_sdk/models/payment_request_receipt_list200_response.py,sha256=SCi20HZ0moUygGcGOHomevunrWJfQb3D6wTg_YjB6pI,3496
|
145
149
|
pluggy_sdk/models/payment_requests_list200_response.py,sha256=0lAdZH19ZAeWYPdsQ-E0bREOZ0iDon7h96kI8xUTmYc,3472
|
@@ -162,7 +166,7 @@ pluggy_sdk/models/update_transaction.py,sha256=979zai0z2scYygWA7STBzZBjnWg6zoQFj
|
|
162
166
|
pluggy_sdk/models/webhook.py,sha256=2KV31zqFfHMzYzdrfVW7Sam6BsKigdQnPOKjsRiFYqI,3827
|
163
167
|
pluggy_sdk/models/webhook_creation_error_response.py,sha256=SMvNMvJANk1NTn9BEugfwRtnEsJuoMsFo8tVvci3ayw,2681
|
164
168
|
pluggy_sdk/models/webhooks_list200_response.py,sha256=DITv0Fg0S1Jl8k9sSdKKwhWmzp0TmMmrJjQqgo36yL0,3360
|
165
|
-
pluggy_sdk-1.0.0.
|
166
|
-
pluggy_sdk-1.0.0.
|
167
|
-
pluggy_sdk-1.0.0.
|
168
|
-
pluggy_sdk-1.0.0.
|
169
|
+
pluggy_sdk-1.0.0.post10.dist-info/METADATA,sha256=9Q8H-08uhqHOX-af7p2GFEYvQivKy9aoXhOQFm-NM5Y,21251
|
170
|
+
pluggy_sdk-1.0.0.post10.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
171
|
+
pluggy_sdk-1.0.0.post10.dist-info/top_level.txt,sha256=4RLkSSAcNiYLnk0_CN2vRQoezuSTIa7VPuNnaVutZP0,11
|
172
|
+
pluggy_sdk-1.0.0.post10.dist-info/RECORD,,
|
File without changes
|
File without changes
|