pluggy-sdk 1.0.0.post4__py3-none-any.whl → 1.0.0.post6__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/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.post4/python'
92
+ self.user_agent = 'OpenAPI-Generator/1.0.0.post6/python'
93
93
  self.client_side_validation = configuration.client_side_validation
94
94
 
95
95
  def __enter__(self):
@@ -351,6 +351,8 @@ class ApiClient:
351
351
  """
352
352
  if obj is None:
353
353
  return None
354
+ elif isinstance(obj, Enum):
355
+ return obj.value
354
356
  elif isinstance(obj, SecretStr):
355
357
  return obj.get_secret_value()
356
358
  elif isinstance(obj, self.PRIMITIVE_TYPES):
@@ -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.post4".\
403
+ "SDK Package Version: 1.0.0.post6".\
404
404
  format(env=sys.platform, pyversion=sys.version)
405
405
 
406
406
  def get_host_settings(self):
@@ -117,12 +117,16 @@ from pluggy_sdk.models.payment_data_participant import PaymentDataParticipant
117
117
  from pluggy_sdk.models.payment_institution import PaymentInstitution
118
118
  from pluggy_sdk.models.payment_intent import PaymentIntent
119
119
  from pluggy_sdk.models.payment_intents_list200_response import PaymentIntentsList200Response
120
+ from pluggy_sdk.models.payment_receipt import PaymentReceipt
121
+ from pluggy_sdk.models.payment_receipt_bank_account import PaymentReceiptBankAccount
122
+ from pluggy_sdk.models.payment_receipt_person import PaymentReceiptPerson
120
123
  from pluggy_sdk.models.payment_recipient import PaymentRecipient
121
124
  from pluggy_sdk.models.payment_recipient_account import PaymentRecipientAccount
122
125
  from pluggy_sdk.models.payment_recipients_institution_list200_response import PaymentRecipientsInstitutionList200Response
123
126
  from pluggy_sdk.models.payment_recipients_list200_response import PaymentRecipientsList200Response
124
127
  from pluggy_sdk.models.payment_request import PaymentRequest
125
128
  from pluggy_sdk.models.payment_request_callback_urls import PaymentRequestCallbackUrls
129
+ from pluggy_sdk.models.payment_request_receipt_list200_response import PaymentRequestReceiptList200Response
126
130
  from pluggy_sdk.models.payment_requests_list200_response import PaymentRequestsList200Response
127
131
  from pluggy_sdk.models.percentage_over_index import PercentageOverIndex
128
132
  from pluggy_sdk.models.phone_number import PhoneNumber
@@ -28,12 +28,13 @@ class CreatePaymentRecipient(BaseModel):
28
28
  """
29
29
  Request with information to create a payment recipient
30
30
  """ # noqa: E501
31
- tax_number: StrictStr = Field(description="Account owner tax number. Can be CPF or CNPJ (only numbers)", alias="taxNumber")
32
- name: StrictStr = Field(description="Account owner name")
33
- payment_institution_id: StrictStr = Field(description="Primary identifier of the institution associated to the payment recipient", alias="paymentInstitutionId")
31
+ tax_number: StrictStr = Field(description="Account owner tax number. Can be CPF or CNPJ (only numbers). Send only when the pixKey is not sent.", alias="taxNumber")
32
+ name: StrictStr = Field(description="Account owner name. Send only this when the pixKey is not sent.")
33
+ payment_institution_id: StrictStr = Field(description="Primary identifier of the institution associated to the payment recipient. Send only when the pixKey is not sent.", alias="paymentInstitutionId")
34
34
  account: PaymentRecipientAccount
35
35
  is_default: Optional[StrictBool] = Field(default=None, description="Indicates if the recipient is the default one", alias="isDefault")
36
- __properties: ClassVar[List[str]] = ["taxNumber", "name", "paymentInstitutionId", "account", "isDefault"]
36
+ pix_key: Optional[StrictStr] = Field(default=None, description="Pix key associated with the payment recipient", alias="pixKey")
37
+ __properties: ClassVar[List[str]] = ["taxNumber", "name", "paymentInstitutionId", "account", "isDefault", "pixKey"]
37
38
 
38
39
  model_config = ConfigDict(
39
40
  populate_by_name=True,
@@ -93,7 +94,8 @@ class CreatePaymentRecipient(BaseModel):
93
94
  "name": obj.get("name"),
94
95
  "paymentInstitutionId": obj.get("paymentInstitutionId"),
95
96
  "account": PaymentRecipientAccount.from_dict(obj["account"]) if obj.get("account") is not None else None,
96
- "isDefault": obj.get("isDefault")
97
+ "isDefault": obj.get("isDefault"),
98
+ "pixKey": obj.get("pixKey")
97
99
  })
98
100
  return _obj
99
101
 
@@ -0,0 +1,114 @@
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.payment_receipt_person import PaymentReceiptPerson
25
+ from typing import Optional, Set
26
+ from typing_extensions import Self
27
+
28
+ class PaymentReceipt(BaseModel):
29
+ """
30
+ Response with information related to a payment receipt
31
+ """ # noqa: E501
32
+ id: StrictStr = Field(description="Primary identifier")
33
+ payment_request_id: StrictStr = Field(description="Payment request identifier", alias="paymentRequestId")
34
+ expires_at: datetime = Field(description="Date when the payment receipt expires", alias="expiresAt")
35
+ receipt_url: StrictStr = Field(description="URL to download the payment receipt", alias="receiptUrl")
36
+ creditor: PaymentReceiptPerson
37
+ debtor: PaymentReceiptPerson
38
+ amount: Union[StrictFloat, StrictInt] = Field(description="Payment amount")
39
+ description: Optional[StrictStr] = Field(default=None, description="Payment description")
40
+ reference_id: StrictStr = Field(description="Payment reference identifier", alias="referenceId")
41
+ var_date: Optional[datetime] = Field(default=None, description="Date when the payment was made", alias="date")
42
+ __properties: ClassVar[List[str]] = ["id", "paymentRequestId", "expiresAt", "receiptUrl", "creditor", "debtor", "amount", "description", "referenceId", "date"]
43
+
44
+ model_config = ConfigDict(
45
+ populate_by_name=True,
46
+ validate_assignment=True,
47
+ protected_namespaces=(),
48
+ )
49
+
50
+
51
+ def to_str(self) -> str:
52
+ """Returns the string representation of the model using alias"""
53
+ return pprint.pformat(self.model_dump(by_alias=True))
54
+
55
+ def to_json(self) -> str:
56
+ """Returns the JSON representation of the model using alias"""
57
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
58
+ return json.dumps(self.to_dict())
59
+
60
+ @classmethod
61
+ def from_json(cls, json_str: str) -> Optional[Self]:
62
+ """Create an instance of PaymentReceipt from a JSON string"""
63
+ return cls.from_dict(json.loads(json_str))
64
+
65
+ def to_dict(self) -> Dict[str, Any]:
66
+ """Return the dictionary representation of the model using alias.
67
+
68
+ This has the following differences from calling pydantic's
69
+ `self.model_dump(by_alias=True)`:
70
+
71
+ * `None` is only added to the output dict for nullable fields that
72
+ were set at model initialization. Other fields with value `None`
73
+ are ignored.
74
+ """
75
+ excluded_fields: Set[str] = set([
76
+ ])
77
+
78
+ _dict = self.model_dump(
79
+ by_alias=True,
80
+ exclude=excluded_fields,
81
+ exclude_none=True,
82
+ )
83
+ # override the default output from pydantic by calling `to_dict()` of creditor
84
+ if self.creditor:
85
+ _dict['creditor'] = self.creditor.to_dict()
86
+ # override the default output from pydantic by calling `to_dict()` of debtor
87
+ if self.debtor:
88
+ _dict['debtor'] = self.debtor.to_dict()
89
+ return _dict
90
+
91
+ @classmethod
92
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
93
+ """Create an instance of PaymentReceipt from a dict"""
94
+ if obj is None:
95
+ return None
96
+
97
+ if not isinstance(obj, dict):
98
+ return cls.model_validate(obj)
99
+
100
+ _obj = cls.model_validate({
101
+ "id": obj.get("id"),
102
+ "paymentRequestId": obj.get("paymentRequestId"),
103
+ "expiresAt": obj.get("expiresAt"),
104
+ "receiptUrl": obj.get("receiptUrl"),
105
+ "creditor": PaymentReceiptPerson.from_dict(obj["creditor"]) if obj.get("creditor") is not None else None,
106
+ "debtor": PaymentReceiptPerson.from_dict(obj["debtor"]) if obj.get("debtor") is not None else None,
107
+ "amount": obj.get("amount"),
108
+ "description": obj.get("description"),
109
+ "referenceId": obj.get("referenceId"),
110
+ "date": obj.get("date")
111
+ })
112
+ return _obj
113
+
114
+
@@ -0,0 +1,92 @@
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 typing import Optional, Set
24
+ from typing_extensions import Self
25
+
26
+ class PaymentReceiptBankAccount(BaseModel):
27
+ """
28
+ Payment bank account information
29
+ """ # noqa: E501
30
+ agency: Optional[StrictStr] = Field(default=None, description="Bank account branch (agency)")
31
+ name: Optional[StrictStr] = Field(default=None, description="Bank account number")
32
+ account: Optional[StrictStr] = Field(default=None, description="Bank account number")
33
+ __properties: ClassVar[List[str]] = ["agency", "name", "account"]
34
+
35
+ model_config = ConfigDict(
36
+ populate_by_name=True,
37
+ validate_assignment=True,
38
+ protected_namespaces=(),
39
+ )
40
+
41
+
42
+ def to_str(self) -> str:
43
+ """Returns the string representation of the model using alias"""
44
+ return pprint.pformat(self.model_dump(by_alias=True))
45
+
46
+ def to_json(self) -> str:
47
+ """Returns the JSON representation of the model using alias"""
48
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
49
+ return json.dumps(self.to_dict())
50
+
51
+ @classmethod
52
+ def from_json(cls, json_str: str) -> Optional[Self]:
53
+ """Create an instance of PaymentReceiptBankAccount from a JSON string"""
54
+ return cls.from_dict(json.loads(json_str))
55
+
56
+ def to_dict(self) -> Dict[str, Any]:
57
+ """Return the dictionary representation of the model using alias.
58
+
59
+ This has the following differences from calling pydantic's
60
+ `self.model_dump(by_alias=True)`:
61
+
62
+ * `None` is only added to the output dict for nullable fields that
63
+ were set at model initialization. Other fields with value `None`
64
+ are ignored.
65
+ """
66
+ excluded_fields: Set[str] = set([
67
+ ])
68
+
69
+ _dict = self.model_dump(
70
+ by_alias=True,
71
+ exclude=excluded_fields,
72
+ exclude_none=True,
73
+ )
74
+ return _dict
75
+
76
+ @classmethod
77
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
78
+ """Create an instance of PaymentReceiptBankAccount from a dict"""
79
+ if obj is None:
80
+ return None
81
+
82
+ if not isinstance(obj, dict):
83
+ return cls.model_validate(obj)
84
+
85
+ _obj = cls.model_validate({
86
+ "agency": obj.get("agency"),
87
+ "name": obj.get("name"),
88
+ "account": obj.get("account")
89
+ })
90
+ return _obj
91
+
92
+
@@ -0,0 +1,96 @@
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_receipt_bank_account import PaymentReceiptBankAccount
24
+ from typing import Optional, Set
25
+ from typing_extensions import Self
26
+
27
+ class PaymentReceiptPerson(BaseModel):
28
+ """
29
+ Debtor or creditor information
30
+ """ # noqa: E501
31
+ name: Optional[StrictStr] = Field(default=None, description="Person name")
32
+ tax_number: Optional[StrictStr] = Field(default=None, description="Person tax number", alias="taxNumber")
33
+ bank_account: Optional[PaymentReceiptBankAccount] = Field(default=None, alias="bankAccount")
34
+ __properties: ClassVar[List[str]] = ["name", "taxNumber", "bankAccount"]
35
+
36
+ model_config = ConfigDict(
37
+ populate_by_name=True,
38
+ validate_assignment=True,
39
+ protected_namespaces=(),
40
+ )
41
+
42
+
43
+ def to_str(self) -> str:
44
+ """Returns the string representation of the model using alias"""
45
+ return pprint.pformat(self.model_dump(by_alias=True))
46
+
47
+ def to_json(self) -> str:
48
+ """Returns the JSON representation of the model using alias"""
49
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
50
+ return json.dumps(self.to_dict())
51
+
52
+ @classmethod
53
+ def from_json(cls, json_str: str) -> Optional[Self]:
54
+ """Create an instance of PaymentReceiptPerson from a JSON string"""
55
+ return cls.from_dict(json.loads(json_str))
56
+
57
+ def to_dict(self) -> Dict[str, Any]:
58
+ """Return the dictionary representation of the model using alias.
59
+
60
+ This has the following differences from calling pydantic's
61
+ `self.model_dump(by_alias=True)`:
62
+
63
+ * `None` is only added to the output dict for nullable fields that
64
+ were set at model initialization. Other fields with value `None`
65
+ are ignored.
66
+ """
67
+ excluded_fields: Set[str] = set([
68
+ ])
69
+
70
+ _dict = self.model_dump(
71
+ by_alias=True,
72
+ exclude=excluded_fields,
73
+ exclude_none=True,
74
+ )
75
+ # override the default output from pydantic by calling `to_dict()` of bank_account
76
+ if self.bank_account:
77
+ _dict['bankAccount'] = self.bank_account.to_dict()
78
+ return _dict
79
+
80
+ @classmethod
81
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
82
+ """Create an instance of PaymentReceiptPerson from a dict"""
83
+ if obj is None:
84
+ return None
85
+
86
+ if not isinstance(obj, dict):
87
+ return cls.model_validate(obj)
88
+
89
+ _obj = cls.model_validate({
90
+ "name": obj.get("name"),
91
+ "taxNumber": obj.get("taxNumber"),
92
+ "bankAccount": PaymentReceiptBankAccount.from_dict(obj["bankAccount"]) if obj.get("bankAccount") is not None else None
93
+ })
94
+ return _obj
95
+
96
+
@@ -30,12 +30,13 @@ class PaymentRecipient(BaseModel):
30
30
  Response with information related to a payment recipient
31
31
  """ # noqa: E501
32
32
  id: StrictStr = Field(description="Primary identifier")
33
- tax_number: StrictStr = Field(description="Account owner tax number. Can be CPF or CNPJ (only numbers)", alias="taxNumber")
34
- name: StrictStr = Field(description="Account owner name")
35
- payment_institution: Optional[PaymentInstitution] = Field(default=None, alias="paymentInstitution")
36
- is_default: Optional[StrictBool] = Field(default=None, description="Indicates if the recipient is the default one", alias="isDefault")
33
+ tax_number: StrictStr = Field(description="Account owner tax number. Can be CPF or CNPJ (only numbers).", alias="taxNumber")
34
+ name: StrictStr = Field(description="Account owner name.")
35
+ payment_institution: PaymentInstitution = Field(alias="paymentInstitution")
36
+ is_default: StrictBool = Field(description="Indicates if the recipient is the default one", alias="isDefault")
37
37
  account: PaymentRecipientAccount
38
- __properties: ClassVar[List[str]] = ["id", "taxNumber", "name", "paymentInstitution", "isDefault", "account"]
38
+ pix_key: Optional[StrictStr] = Field(default=None, description="Pix key associated with the payment recipient", alias="pixKey")
39
+ __properties: ClassVar[List[str]] = ["id", "taxNumber", "name", "paymentInstitution", "isDefault", "account", "pixKey"]
39
40
 
40
41
  model_config = ConfigDict(
41
42
  populate_by_name=True,
@@ -99,7 +100,8 @@ class PaymentRecipient(BaseModel):
99
100
  "name": obj.get("name"),
100
101
  "paymentInstitution": PaymentInstitution.from_dict(obj["paymentInstitution"]) if obj.get("paymentInstitution") is not None else None,
101
102
  "isDefault": obj.get("isDefault"),
102
- "account": PaymentRecipientAccount.from_dict(obj["account"]) if obj.get("account") is not None else None
103
+ "account": PaymentRecipientAccount.from_dict(obj["account"]) if obj.get("account") is not None else None,
104
+ "pixKey": obj.get("pixKey")
103
105
  })
104
106
  return _obj
105
107
 
@@ -39,7 +39,8 @@ class PaymentRequest(BaseModel):
39
39
  callback_urls: Optional[PaymentRequestCallbackUrls] = Field(default=None, alias="callbackUrls")
40
40
  recipient_id: Optional[StrictStr] = Field(default=None, description="Payment receiver identifier", alias="recipientId")
41
41
  payment_url: StrictStr = Field(description="URL to begin the payment intent creation flow for this payment request", alias="paymentUrl")
42
- __properties: ClassVar[List[str]] = ["id", "amount", "description", "status", "clientPaymentId", "createdAt", "updatedAt", "callbackUrls", "recipientId", "paymentUrl"]
42
+ pix_qr_code: Optional[StrictStr] = Field(default=None, description="Pix QR code generated by the payment receiver", alias="pixQrCode")
43
+ __properties: ClassVar[List[str]] = ["id", "amount", "description", "status", "clientPaymentId", "createdAt", "updatedAt", "callbackUrls", "recipientId", "paymentUrl", "pixQrCode"]
43
44
 
44
45
  @field_validator('status')
45
46
  def status_validate_enum(cls, value):
@@ -111,7 +112,8 @@ class PaymentRequest(BaseModel):
111
112
  "updatedAt": obj.get("updatedAt"),
112
113
  "callbackUrls": PaymentRequestCallbackUrls.from_dict(obj["callbackUrls"]) if obj.get("callbackUrls") is not None else None,
113
114
  "recipientId": obj.get("recipientId"),
114
- "paymentUrl": obj.get("paymentUrl")
115
+ "paymentUrl": obj.get("paymentUrl"),
116
+ "pixQrCode": obj.get("pixQrCode")
115
117
  })
116
118
  return _obj
117
119
 
@@ -0,0 +1,102 @@
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, StrictFloat, StrictInt
22
+ from typing import Any, ClassVar, Dict, List, Optional, Union
23
+ from pluggy_sdk.models.payment_receipt import PaymentReceipt
24
+ from typing import Optional, Set
25
+ from typing_extensions import Self
26
+
27
+ class PaymentRequestReceiptList200Response(BaseModel):
28
+ """
29
+ PaymentRequestReceiptList200Response
30
+ """ # noqa: E501
31
+ page: Optional[Union[StrictFloat, StrictInt]] = None
32
+ total: Optional[Union[StrictFloat, StrictInt]] = None
33
+ total_pages: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="totalPages")
34
+ results: Optional[List[PaymentReceipt]] = Field(default=None, description="List of payment receipts")
35
+ __properties: ClassVar[List[str]] = ["page", "total", "totalPages", "results"]
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 PaymentRequestReceiptList200Response 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 each item in results (list)
77
+ _items = []
78
+ if self.results:
79
+ for _item in self.results:
80
+ if _item:
81
+ _items.append(_item.to_dict())
82
+ _dict['results'] = _items
83
+ return _dict
84
+
85
+ @classmethod
86
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
87
+ """Create an instance of PaymentRequestReceiptList200Response from a dict"""
88
+ if obj is None:
89
+ return None
90
+
91
+ if not isinstance(obj, dict):
92
+ return cls.model_validate(obj)
93
+
94
+ _obj = cls.model_validate({
95
+ "page": obj.get("page"),
96
+ "total": obj.get("total"),
97
+ "totalPages": obj.get("totalPages"),
98
+ "results": [PaymentReceipt.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None
99
+ })
100
+ return _obj
101
+
102
+
@@ -28,12 +28,13 @@ class UpdatePaymentRecipient(BaseModel):
28
28
  """
29
29
  Request with information to update a payment recipient
30
30
  """ # noqa: E501
31
- tax_number: Optional[StrictStr] = Field(default=None, description="Account owner tax number. Can be CPF or CNPJ (only numbers)", alias="taxNumber")
32
- name: Optional[StrictStr] = Field(default=None, description="Account owner name")
33
- payment_institution_id: Optional[StrictStr] = Field(default=None, description="Primary identifier of the institution associated to the payment recipient", alias="paymentInstitutionId")
31
+ tax_number: Optional[StrictStr] = Field(default=None, description="Account owner tax number. Can be CPF or CNPJ (only numbers). Send only if the recipient doesn't have a pixKey.", alias="taxNumber")
32
+ name: Optional[StrictStr] = Field(default=None, description="Account owner name. Send only if the recipient doesn't have a pixKey.")
33
+ payment_institution_id: Optional[StrictStr] = Field(default=None, description="Primary identifier of the institution associated to the payment recipient. Send only if the recipient doesn't have a pixKey.", alias="paymentInstitutionId")
34
34
  account: Optional[PaymentRecipientAccount] = None
35
35
  is_default: Optional[StrictBool] = Field(default=None, description="Indicates if the recipient is the default one", alias="isDefault")
36
- __properties: ClassVar[List[str]] = ["taxNumber", "name", "paymentInstitutionId", "account", "isDefault"]
36
+ pix_key: Optional[StrictStr] = Field(default=None, description="Pix key associated with the payment recipient", alias="pixKey")
37
+ __properties: ClassVar[List[str]] = ["taxNumber", "name", "paymentInstitutionId", "account", "isDefault", "pixKey"]
37
38
 
38
39
  model_config = ConfigDict(
39
40
  populate_by_name=True,
@@ -93,7 +94,8 @@ class UpdatePaymentRecipient(BaseModel):
93
94
  "name": obj.get("name"),
94
95
  "paymentInstitutionId": obj.get("paymentInstitutionId"),
95
96
  "account": PaymentRecipientAccount.from_dict(obj["account"]) if obj.get("account") is not None else None,
96
- "isDefault": obj.get("isDefault")
97
+ "isDefault": obj.get("isDefault"),
98
+ "pixKey": obj.get("pixKey")
97
99
  })
98
100
  return _obj
99
101
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pluggy-sdk
3
- Version: 1.0.0.post4
3
+ Version: 1.0.0.post6
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.post4
23
- - Generator version: 7.5.0-SNAPSHOT
22
+ - Package version: 1.0.0.post6
23
+ - Generator version: 7.6.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
 
@@ -165,6 +165,9 @@ Class | Method | HTTP request | Description
165
165
  *PaymentRequestApi* | [**payment_request_create**](docs/PaymentRequestApi.md#payment_request_create) | **POST** /payments/requests | Create
166
166
  *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
167
  *PaymentRequestApi* | [**payment_request_delete**](docs/PaymentRequestApi.md#payment_request_delete) | **DELETE** /payments/requests/{id} | Delete
168
+ *PaymentRequestApi* | [**payment_request_receipt_create**](docs/PaymentRequestApi.md#payment_request_receipt_create) | **POST** /payments/requests/{id}/receipts | Create
169
+ *PaymentRequestApi* | [**payment_request_receipt_list**](docs/PaymentRequestApi.md#payment_request_receipt_list) | **GET** /payments/requests/{id}/receipts | List
170
+ *PaymentRequestApi* | [**payment_request_receipt_retrieve**](docs/PaymentRequestApi.md#payment_request_receipt_retrieve) | **GET** /payments/requests/{payment-request-id}/receipts/{payment-receipt-id} | Retrieve
168
171
  *PaymentRequestApi* | [**payment_request_retrieve**](docs/PaymentRequestApi.md#payment_request_retrieve) | **GET** /payments/requests/{id} | Retrieve
169
172
  *PaymentRequestApi* | [**payment_request_update**](docs/PaymentRequestApi.md#payment_request_update) | **PATCH** /payments/requests/{id} | Update
170
173
  *PaymentRequestApi* | [**payment_requests_list**](docs/PaymentRequestApi.md#payment_requests_list) | **GET** /payments/requests | List
@@ -288,12 +291,16 @@ Class | Method | HTTP request | Description
288
291
  - [PaymentInstitution](docs/PaymentInstitution.md)
289
292
  - [PaymentIntent](docs/PaymentIntent.md)
290
293
  - [PaymentIntentsList200Response](docs/PaymentIntentsList200Response.md)
294
+ - [PaymentReceipt](docs/PaymentReceipt.md)
295
+ - [PaymentReceiptBankAccount](docs/PaymentReceiptBankAccount.md)
296
+ - [PaymentReceiptPerson](docs/PaymentReceiptPerson.md)
291
297
  - [PaymentRecipient](docs/PaymentRecipient.md)
292
298
  - [PaymentRecipientAccount](docs/PaymentRecipientAccount.md)
293
299
  - [PaymentRecipientsInstitutionList200Response](docs/PaymentRecipientsInstitutionList200Response.md)
294
300
  - [PaymentRecipientsList200Response](docs/PaymentRecipientsList200Response.md)
295
301
  - [PaymentRequest](docs/PaymentRequest.md)
296
302
  - [PaymentRequestCallbackUrls](docs/PaymentRequestCallbackUrls.md)
303
+ - [PaymentRequestReceiptList200Response](docs/PaymentRequestReceiptList200Response.md)
297
304
  - [PaymentRequestsList200Response](docs/PaymentRequestsList200Response.md)
298
305
  - [PercentageOverIndex](docs/PercentageOverIndex.md)
299
306
  - [PhoneNumber](docs/PhoneNumber.md)