pluggy-sdk 1.0.0.post34__py3-none-any.whl → 1.0.0.post36__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 CHANGED
@@ -15,7 +15,7 @@
15
15
  """ # noqa: E501
16
16
 
17
17
 
18
- __version__ = "1.0.0.post34"
18
+ __version__ = "1.0.0.post36"
19
19
 
20
20
  # import apis into sdk package
21
21
  from pluggy_sdk.api.account_api import AccountApi
@@ -1940,6 +1940,270 @@ class PaymentRequestApi:
1940
1940
 
1941
1941
 
1942
1942
 
1943
+ @validate_call
1944
+ def payment_request_refund(
1945
+ self,
1946
+ id: Annotated[StrictStr, Field(description="Payment request primary identifier")],
1947
+ _request_timeout: Union[
1948
+ None,
1949
+ Annotated[StrictFloat, Field(gt=0)],
1950
+ Tuple[
1951
+ Annotated[StrictFloat, Field(gt=0)],
1952
+ Annotated[StrictFloat, Field(gt=0)]
1953
+ ]
1954
+ ] = None,
1955
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1956
+ _content_type: Optional[StrictStr] = None,
1957
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1958
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1959
+ ) -> None:
1960
+ """Refund Payment Request
1961
+
1962
+ Refund a COMPLETED payment request payed using payment method PIX. Not available for Payment Initiation (PIS)
1963
+
1964
+ :param id: Payment request primary identifier (required)
1965
+ :type id: str
1966
+ :param _request_timeout: timeout setting for this request. If one
1967
+ number provided, it will be total request
1968
+ timeout. It can also be a pair (tuple) of
1969
+ (connection, read) timeouts.
1970
+ :type _request_timeout: int, tuple(int, int), optional
1971
+ :param _request_auth: set to override the auth_settings for an a single
1972
+ request; this effectively ignores the
1973
+ authentication in the spec for a single request.
1974
+ :type _request_auth: dict, optional
1975
+ :param _content_type: force content-type for the request.
1976
+ :type _content_type: str, Optional
1977
+ :param _headers: set to override the headers for a single
1978
+ request; this effectively ignores the headers
1979
+ in the spec for a single request.
1980
+ :type _headers: dict, optional
1981
+ :param _host_index: set to override the host_index for a single
1982
+ request; this effectively ignores the host_index
1983
+ in the spec for a single request.
1984
+ :type _host_index: int, optional
1985
+ :return: Returns the result object.
1986
+ """ # noqa: E501
1987
+
1988
+ _param = self._payment_request_refund_serialize(
1989
+ id=id,
1990
+ _request_auth=_request_auth,
1991
+ _content_type=_content_type,
1992
+ _headers=_headers,
1993
+ _host_index=_host_index
1994
+ )
1995
+
1996
+ _response_types_map: Dict[str, Optional[str]] = {
1997
+ '200': None,
1998
+ '404': "GlobalErrorResponse",
1999
+ }
2000
+ response_data = self.api_client.call_api(
2001
+ *_param,
2002
+ _request_timeout=_request_timeout
2003
+ )
2004
+ response_data.read()
2005
+ return self.api_client.response_deserialize(
2006
+ response_data=response_data,
2007
+ response_types_map=_response_types_map,
2008
+ ).data
2009
+
2010
+
2011
+ @validate_call
2012
+ def payment_request_refund_with_http_info(
2013
+ self,
2014
+ id: Annotated[StrictStr, Field(description="Payment request primary identifier")],
2015
+ _request_timeout: Union[
2016
+ None,
2017
+ Annotated[StrictFloat, Field(gt=0)],
2018
+ Tuple[
2019
+ Annotated[StrictFloat, Field(gt=0)],
2020
+ Annotated[StrictFloat, Field(gt=0)]
2021
+ ]
2022
+ ] = None,
2023
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2024
+ _content_type: Optional[StrictStr] = None,
2025
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2026
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2027
+ ) -> ApiResponse[None]:
2028
+ """Refund Payment Request
2029
+
2030
+ Refund a COMPLETED payment request payed using payment method PIX. Not available for Payment Initiation (PIS)
2031
+
2032
+ :param id: Payment request primary identifier (required)
2033
+ :type id: str
2034
+ :param _request_timeout: timeout setting for this request. If one
2035
+ number provided, it will be total request
2036
+ timeout. It can also be a pair (tuple) of
2037
+ (connection, read) timeouts.
2038
+ :type _request_timeout: int, tuple(int, int), optional
2039
+ :param _request_auth: set to override the auth_settings for an a single
2040
+ request; this effectively ignores the
2041
+ authentication in the spec for a single request.
2042
+ :type _request_auth: dict, optional
2043
+ :param _content_type: force content-type for the request.
2044
+ :type _content_type: str, Optional
2045
+ :param _headers: set to override the headers for a single
2046
+ request; this effectively ignores the headers
2047
+ in the spec for a single request.
2048
+ :type _headers: dict, optional
2049
+ :param _host_index: set to override the host_index for a single
2050
+ request; this effectively ignores the host_index
2051
+ in the spec for a single request.
2052
+ :type _host_index: int, optional
2053
+ :return: Returns the result object.
2054
+ """ # noqa: E501
2055
+
2056
+ _param = self._payment_request_refund_serialize(
2057
+ id=id,
2058
+ _request_auth=_request_auth,
2059
+ _content_type=_content_type,
2060
+ _headers=_headers,
2061
+ _host_index=_host_index
2062
+ )
2063
+
2064
+ _response_types_map: Dict[str, Optional[str]] = {
2065
+ '200': None,
2066
+ '404': "GlobalErrorResponse",
2067
+ }
2068
+ response_data = self.api_client.call_api(
2069
+ *_param,
2070
+ _request_timeout=_request_timeout
2071
+ )
2072
+ response_data.read()
2073
+ return self.api_client.response_deserialize(
2074
+ response_data=response_data,
2075
+ response_types_map=_response_types_map,
2076
+ )
2077
+
2078
+
2079
+ @validate_call
2080
+ def payment_request_refund_without_preload_content(
2081
+ self,
2082
+ id: Annotated[StrictStr, Field(description="Payment request primary identifier")],
2083
+ _request_timeout: Union[
2084
+ None,
2085
+ Annotated[StrictFloat, Field(gt=0)],
2086
+ Tuple[
2087
+ Annotated[StrictFloat, Field(gt=0)],
2088
+ Annotated[StrictFloat, Field(gt=0)]
2089
+ ]
2090
+ ] = None,
2091
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2092
+ _content_type: Optional[StrictStr] = None,
2093
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2094
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2095
+ ) -> RESTResponseType:
2096
+ """Refund Payment Request
2097
+
2098
+ Refund a COMPLETED payment request payed using payment method PIX. Not available for Payment Initiation (PIS)
2099
+
2100
+ :param id: Payment request primary identifier (required)
2101
+ :type id: str
2102
+ :param _request_timeout: timeout setting for this request. If one
2103
+ number provided, it will be total request
2104
+ timeout. It can also be a pair (tuple) of
2105
+ (connection, read) timeouts.
2106
+ :type _request_timeout: int, tuple(int, int), optional
2107
+ :param _request_auth: set to override the auth_settings for an a single
2108
+ request; this effectively ignores the
2109
+ authentication in the spec for a single request.
2110
+ :type _request_auth: dict, optional
2111
+ :param _content_type: force content-type for the request.
2112
+ :type _content_type: str, Optional
2113
+ :param _headers: set to override the headers for a single
2114
+ request; this effectively ignores the headers
2115
+ in the spec for a single request.
2116
+ :type _headers: dict, optional
2117
+ :param _host_index: set to override the host_index for a single
2118
+ request; this effectively ignores the host_index
2119
+ in the spec for a single request.
2120
+ :type _host_index: int, optional
2121
+ :return: Returns the result object.
2122
+ """ # noqa: E501
2123
+
2124
+ _param = self._payment_request_refund_serialize(
2125
+ id=id,
2126
+ _request_auth=_request_auth,
2127
+ _content_type=_content_type,
2128
+ _headers=_headers,
2129
+ _host_index=_host_index
2130
+ )
2131
+
2132
+ _response_types_map: Dict[str, Optional[str]] = {
2133
+ '200': None,
2134
+ '404': "GlobalErrorResponse",
2135
+ }
2136
+ response_data = self.api_client.call_api(
2137
+ *_param,
2138
+ _request_timeout=_request_timeout
2139
+ )
2140
+ return response_data.response
2141
+
2142
+
2143
+ def _payment_request_refund_serialize(
2144
+ self,
2145
+ id,
2146
+ _request_auth,
2147
+ _content_type,
2148
+ _headers,
2149
+ _host_index,
2150
+ ) -> RequestSerialized:
2151
+
2152
+ _host = None
2153
+
2154
+ _collection_formats: Dict[str, str] = {
2155
+ }
2156
+
2157
+ _path_params: Dict[str, str] = {}
2158
+ _query_params: List[Tuple[str, str]] = []
2159
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2160
+ _form_params: List[Tuple[str, str]] = []
2161
+ _files: Dict[
2162
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2163
+ ] = {}
2164
+ _body_params: Optional[bytes] = None
2165
+
2166
+ # process the path parameters
2167
+ if id is not None:
2168
+ _path_params['id'] = id
2169
+ # process the query parameters
2170
+ # process the header parameters
2171
+ # process the form parameters
2172
+ # process the body parameter
2173
+
2174
+
2175
+ # set the HTTP header `Accept`
2176
+ if 'Accept' not in _header_params:
2177
+ _header_params['Accept'] = self.api_client.select_header_accept(
2178
+ [
2179
+ 'application/json'
2180
+ ]
2181
+ )
2182
+
2183
+
2184
+ # authentication setting
2185
+ _auth_settings: List[str] = [
2186
+ 'default'
2187
+ ]
2188
+
2189
+ return self.api_client.param_serialize(
2190
+ method='POST',
2191
+ resource_path='/payments/requests/{id}/refund',
2192
+ path_params=_path_params,
2193
+ query_params=_query_params,
2194
+ header_params=_header_params,
2195
+ body=_body_params,
2196
+ post_params=_form_params,
2197
+ files=_files,
2198
+ auth_settings=_auth_settings,
2199
+ collection_formats=_collection_formats,
2200
+ _host=_host,
2201
+ _request_auth=_request_auth
2202
+ )
2203
+
2204
+
2205
+
2206
+
1943
2207
  @validate_call
1944
2208
  def payment_request_retrieve(
1945
2209
  self,
@@ -19,7 +19,7 @@ from typing_extensions import Annotated
19
19
 
20
20
  from datetime import datetime
21
21
  from pydantic import Field, StrictFloat, StrictInt, StrictStr
22
- from typing import Optional, Union
22
+ from typing import List, Optional, Union
23
23
  from typing_extensions import Annotated
24
24
  from pluggy_sdk.models.page_response_transactions import PageResponseTransactions
25
25
  from pluggy_sdk.models.transaction import Transaction
@@ -47,6 +47,7 @@ class TransactionApi:
47
47
  def transactions_list(
48
48
  self,
49
49
  account_id: Annotated[StrictStr, Field(description="Account primary identifier")],
50
+ ids: Annotated[Optional[List[StrictStr]], Field(description="Array of transaction identifiers. If defined, 'from' and 'to' parameters will be discarded")] = None,
50
51
  var_from: Annotated[Optional[datetime], Field(description="Filter greater than date. Format (yyyy-mm-dd)")] = None,
51
52
  to: Annotated[Optional[datetime], Field(description="Filter lower than date. Format (yyyy-mm-dd)")] = None,
52
53
  page_size: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Page size for the paging request, default: 20")] = None,
@@ -70,6 +71,8 @@ class TransactionApi:
70
71
 
71
72
  :param account_id: Account primary identifier (required)
72
73
  :type account_id: str
74
+ :param ids: Array of transaction identifiers. If defined, 'from' and 'to' parameters will be discarded
75
+ :type ids: List[str]
73
76
  :param var_from: Filter greater than date. Format (yyyy-mm-dd)
74
77
  :type var_from: datetime
75
78
  :param to: Filter lower than date. Format (yyyy-mm-dd)
@@ -102,6 +105,7 @@ class TransactionApi:
102
105
 
103
106
  _param = self._transactions_list_serialize(
104
107
  account_id=account_id,
108
+ ids=ids,
105
109
  var_from=var_from,
106
110
  to=to,
107
111
  page_size=page_size,
@@ -132,6 +136,7 @@ class TransactionApi:
132
136
  def transactions_list_with_http_info(
133
137
  self,
134
138
  account_id: Annotated[StrictStr, Field(description="Account primary identifier")],
139
+ ids: Annotated[Optional[List[StrictStr]], Field(description="Array of transaction identifiers. If defined, 'from' and 'to' parameters will be discarded")] = None,
135
140
  var_from: Annotated[Optional[datetime], Field(description="Filter greater than date. Format (yyyy-mm-dd)")] = None,
136
141
  to: Annotated[Optional[datetime], Field(description="Filter lower than date. Format (yyyy-mm-dd)")] = None,
137
142
  page_size: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Page size for the paging request, default: 20")] = None,
@@ -155,6 +160,8 @@ class TransactionApi:
155
160
 
156
161
  :param account_id: Account primary identifier (required)
157
162
  :type account_id: str
163
+ :param ids: Array of transaction identifiers. If defined, 'from' and 'to' parameters will be discarded
164
+ :type ids: List[str]
158
165
  :param var_from: Filter greater than date. Format (yyyy-mm-dd)
159
166
  :type var_from: datetime
160
167
  :param to: Filter lower than date. Format (yyyy-mm-dd)
@@ -187,6 +194,7 @@ class TransactionApi:
187
194
 
188
195
  _param = self._transactions_list_serialize(
189
196
  account_id=account_id,
197
+ ids=ids,
190
198
  var_from=var_from,
191
199
  to=to,
192
200
  page_size=page_size,
@@ -217,6 +225,7 @@ class TransactionApi:
217
225
  def transactions_list_without_preload_content(
218
226
  self,
219
227
  account_id: Annotated[StrictStr, Field(description="Account primary identifier")],
228
+ ids: Annotated[Optional[List[StrictStr]], Field(description="Array of transaction identifiers. If defined, 'from' and 'to' parameters will be discarded")] = None,
220
229
  var_from: Annotated[Optional[datetime], Field(description="Filter greater than date. Format (yyyy-mm-dd)")] = None,
221
230
  to: Annotated[Optional[datetime], Field(description="Filter lower than date. Format (yyyy-mm-dd)")] = None,
222
231
  page_size: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Page size for the paging request, default: 20")] = None,
@@ -240,6 +249,8 @@ class TransactionApi:
240
249
 
241
250
  :param account_id: Account primary identifier (required)
242
251
  :type account_id: str
252
+ :param ids: Array of transaction identifiers. If defined, 'from' and 'to' parameters will be discarded
253
+ :type ids: List[str]
243
254
  :param var_from: Filter greater than date. Format (yyyy-mm-dd)
244
255
  :type var_from: datetime
245
256
  :param to: Filter lower than date. Format (yyyy-mm-dd)
@@ -272,6 +283,7 @@ class TransactionApi:
272
283
 
273
284
  _param = self._transactions_list_serialize(
274
285
  account_id=account_id,
286
+ ids=ids,
275
287
  var_from=var_from,
276
288
  to=to,
277
289
  page_size=page_size,
@@ -297,6 +309,7 @@ class TransactionApi:
297
309
  def _transactions_list_serialize(
298
310
  self,
299
311
  account_id,
312
+ ids,
300
313
  var_from,
301
314
  to,
302
315
  page_size,
@@ -310,6 +323,7 @@ class TransactionApi:
310
323
  _host = None
311
324
 
312
325
  _collection_formats: Dict[str, str] = {
326
+ 'ids': 'multi',
313
327
  }
314
328
 
315
329
  _path_params: Dict[str, str] = {}
@@ -327,6 +341,10 @@ class TransactionApi:
327
341
 
328
342
  _query_params.append(('accountId', account_id))
329
343
 
344
+ if ids is not None:
345
+
346
+ _query_params.append(('ids', ids))
347
+
330
348
  if var_from is not None:
331
349
  if isinstance(var_from, datetime):
332
350
  _query_params.append(
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.post34/python'
94
+ self.user_agent = 'OpenAPI-Generator/1.0.0.post36/python'
95
95
  self.client_side_validation = configuration.client_side_validation
96
96
 
97
97
  def __enter__(self):
@@ -525,7 +525,7 @@ conf = pluggy_sdk.Configuration(
525
525
  "OS: {env}\n"\
526
526
  "Python Version: {pyversion}\n"\
527
527
  "Version of the API: 1.0.0\n"\
528
- "SDK Package Version: 1.0.0.post34".\
528
+ "SDK Package Version: 1.0.0.post36".\
529
529
  format(env=sys.platform, pyversion=sys.version)
530
530
 
531
531
  def get_host_settings(self) -> List[HostSetting]:
@@ -34,9 +34,9 @@ class Boleto(BaseModel):
34
34
  barcode: StrictStr = Field(description="Boleto barcode")
35
35
  payer: BoletoPayer
36
36
  recipient: BoletoRecipient
37
- var_date: datetime = Field(description="Boleto issue date", alias="date")
38
- due_date: Optional[datetime] = Field(default=None, description="Boleto due date", alias="dueDate")
39
- expiration_date: datetime = Field(description="After this date, the boleto cannot be paid", alias="expirationDate")
37
+ var_date: Optional[datetime] = Field(default=None, description="Boleto issue date", alias="date")
38
+ due_date: datetime = Field(description="Boleto due date", alias="dueDate")
39
+ expiration_date: Optional[datetime] = Field(default=None, description="After this date, the boleto cannot be paid", alias="expirationDate")
40
40
  base_amount: Union[StrictFloat, StrictInt] = Field(description="Boleto original amount, without interests, penalties and discounts", alias="baseAmount")
41
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
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")
@@ -18,7 +18,7 @@ import pprint
18
18
  import re # noqa: F401
19
19
  import json
20
20
 
21
- from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr, field_validator
21
+ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator
22
22
  from typing import Any, ClassVar, Dict, List, Optional, Union
23
23
  from pluggy_sdk.models.payment_intent_parameter import PaymentIntentParameter
24
24
  from typing import Optional, Set
@@ -33,7 +33,8 @@ class CreatePaymentIntent(BaseModel):
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
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
- __properties: ClassVar[List[str]] = ["paymentRequestId", "bulkPaymentId", "parameters", "connectorId", "paymentMethod"]
36
+ is_dynamic_pix: Optional[StrictBool] = Field(default=None, description="Only for PIX paymentMethod. If true, the generated PIX QR code is dynamic and one-use. This requires the customerId to be present, and the customer must have CPF/CNPJ", alias="isDynamicPix")
37
+ __properties: ClassVar[List[str]] = ["paymentRequestId", "bulkPaymentId", "parameters", "connectorId", "paymentMethod", "isDynamicPix"]
37
38
 
38
39
  @field_validator('payment_method')
39
40
  def payment_method_validate_enum(cls, value):
@@ -103,7 +104,8 @@ class CreatePaymentIntent(BaseModel):
103
104
  "bulkPaymentId": obj.get("bulkPaymentId"),
104
105
  "parameters": PaymentIntentParameter.from_dict(obj["parameters"]) if obj.get("parameters") is not None else None,
105
106
  "connectorId": obj.get("connectorId"),
106
- "paymentMethod": obj.get("paymentMethod")
107
+ "paymentMethod": obj.get("paymentMethod"),
108
+ "isDynamicPix": obj.get("isDynamicPix")
107
109
  })
108
110
  return _obj
109
111
 
@@ -35,8 +35,8 @@ class CreateWebhook(BaseModel):
35
35
  @field_validator('event')
36
36
  def event_validate_enum(cls, value):
37
37
  """Validates the enum"""
38
- if value not in set(['all', 'item/created', 'item/updated', 'item/error', 'item/deleted', 'item/waiting_user_input', 'item/waiting_user_action', 'item/login_succeeded', 'connector/status_updated', 'transactions/updated', 'transactions/deleted', 'payment_intent/created', 'payment_intent/completed', 'payment_intent/waiting_payer_authorization', 'payment_intent/error', 'scheduled_payment/created', 'scheduled_payment/completed', 'scheduled_payment/error', 'scheduled_payment/canceled', 'scheduled_payment/all_completed']):
39
- raise ValueError("must be one of enum values ('all', 'item/created', 'item/updated', 'item/error', 'item/deleted', 'item/waiting_user_input', 'item/waiting_user_action', 'item/login_succeeded', 'connector/status_updated', 'transactions/updated', 'transactions/deleted', 'payment_intent/created', 'payment_intent/completed', 'payment_intent/waiting_payer_authorization', 'payment_intent/error', 'scheduled_payment/created', 'scheduled_payment/completed', 'scheduled_payment/error', 'scheduled_payment/canceled', 'scheduled_payment/all_completed')")
38
+ if value not in set(['all', 'item/created', 'item/updated', 'item/error', 'item/deleted', 'item/waiting_user_input', 'item/waiting_user_action', 'item/login_succeeded', 'connector/status_updated', 'transactions/updated', 'transactions/deleted', 'payment_intent/created', 'payment_intent/completed', 'payment_intent/waiting_payer_authorization', 'payment_intent/error', 'scheduled_payment/created', 'scheduled_payment/completed', 'scheduled_payment/error', 'scheduled_payment/canceled', 'scheduled_payment/all_completed', 'payment_refund/completed', 'payment_refund/error']):
39
+ raise ValueError("must be one of enum values ('all', 'item/created', 'item/updated', 'item/error', 'item/deleted', 'item/waiting_user_input', 'item/waiting_user_action', 'item/login_succeeded', 'connector/status_updated', 'transactions/updated', 'transactions/deleted', 'payment_intent/created', 'payment_intent/completed', 'payment_intent/waiting_payer_authorization', 'payment_intent/error', 'scheduled_payment/created', 'scheduled_payment/completed', 'scheduled_payment/error', 'scheduled_payment/canceled', 'scheduled_payment/all_completed', 'payment_refund/completed', 'payment_refund/error')")
40
40
  return value
41
41
 
42
42
  model_config = ConfigDict(
@@ -34,10 +34,11 @@ class InvestmentTransaction(BaseModel):
34
34
  quantity: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Quantity of the transaction")
35
35
  value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Value on the transaction's Date")
36
36
  amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Gross amount of the operation. May be null only if type is TRANSFER")
37
+ agreed_rate: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Agreed rate for treasury applications", alias="agreedRate")
37
38
  var_date: datetime = Field(description="Date when the transaction was made", alias="date")
38
39
  trade_date: Optional[datetime] = Field(default=None, description="Date when the transaction was confirmed", alias="tradeDate")
39
40
  expenses: Optional[InvestmentExpenses] = None
40
- __properties: ClassVar[List[str]] = ["type", "movementType", "quantity", "value", "amount", "date", "tradeDate", "expenses"]
41
+ __properties: ClassVar[List[str]] = ["type", "movementType", "quantity", "value", "amount", "agreedRate", "date", "tradeDate", "expenses"]
41
42
 
42
43
  @field_validator('type')
43
44
  def type_validate_enum(cls, value):
@@ -115,6 +116,7 @@ class InvestmentTransaction(BaseModel):
115
116
  "quantity": obj.get("quantity"),
116
117
  "value": obj.get("value"),
117
118
  "amount": obj.get("amount"),
119
+ "agreedRate": obj.get("agreedRate"),
118
120
  "date": obj.get("date"),
119
121
  "tradeDate": obj.get("tradeDate"),
120
122
  "expenses": InvestmentExpenses.from_dict(obj["expenses"]) if obj.get("expenses") is not None else None
@@ -30,7 +30,7 @@ class PaymentCustomer(BaseModel):
30
30
  id: StrictStr = Field(description="Primary identifier")
31
31
  type: StrictStr = Field(description="Customer type")
32
32
  name: StrictStr = Field(description="Customer name")
33
- email: StrictStr = Field(description="Customer email")
33
+ email: Optional[StrictStr] = Field(default=None, description="Customer email")
34
34
  cpf: Optional[StrictStr] = Field(default=None, description="Customer CPF")
35
35
  cnpj: Optional[StrictStr] = Field(default=None, description="Customer CNPJ, if type is `BUSINESS`")
36
36
  __properties: ClassVar[List[str]] = ["id", "type", "name", "email", "cpf", "cnpj"]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: pluggy-sdk
3
- Version: 1.0.0.post34
3
+ Version: 1.0.0.post36
4
4
  Summary: Pluggy API
5
5
  Home-page: https://github.com/diraol/pluggy-python
6
6
  Author: Pluggy
@@ -28,8 +28,8 @@ Pluggy's main API to review data and execute connectors
28
28
  This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
29
29
 
30
30
  - API version: 1.0.0
31
- - Package version: 1.0.0.post34
32
- - Generator version: 7.11.0-SNAPSHOT
31
+ - Package version: 1.0.0.post36
32
+ - Generator version: 7.12.0-SNAPSHOT
33
33
  - Build package: org.openapitools.codegen.languages.PythonClientCodegen
34
34
  For more information, please visit [https://pluggy.ai](https://pluggy.ai)
35
35
 
@@ -176,6 +176,7 @@ Class | Method | HTTP request | Description
176
176
  *PaymentRequestApi* | [**payment_request_receipt_create**](docs/PaymentRequestApi.md#payment_request_receipt_create) | **POST** /payments/requests/{id}/receipts | Create Payment Receipt
177
177
  *PaymentRequestApi* | [**payment_request_receipt_list**](docs/PaymentRequestApi.md#payment_request_receipt_list) | **GET** /payments/requests/{id}/receipts | List Payment Receipts
178
178
  *PaymentRequestApi* | [**payment_request_receipt_retrieve**](docs/PaymentRequestApi.md#payment_request_receipt_retrieve) | **GET** /payments/requests/{payment-request-id}/receipts/{payment-receipt-id} | Retrieve Payment Receipt
179
+ *PaymentRequestApi* | [**payment_request_refund**](docs/PaymentRequestApi.md#payment_request_refund) | **POST** /payments/requests/{id}/refund | Refund Payment Request
179
180
  *PaymentRequestApi* | [**payment_request_retrieve**](docs/PaymentRequestApi.md#payment_request_retrieve) | **GET** /payments/requests/{id} | Retrieve
180
181
  *PaymentRequestApi* | [**payment_request_update**](docs/PaymentRequestApi.md#payment_request_update) | **PATCH** /payments/requests/{id} | Update
181
182
  *PaymentRequestApi* | [**payment_requests_list**](docs/PaymentRequestApi.md#payment_requests_list) | **GET** /payments/requests | List
@@ -1,7 +1,7 @@
1
- pluggy_sdk/__init__.py,sha256=zwTWR3VRyOAWCoSy1tYsTgrdltk43cG0ja3zIM_bA-M,12844
2
- pluggy_sdk/api_client.py,sha256=pESvp1zgjRdH7IAjd3ScgTvXVNqgoH36hReVGCjK3rs,27438
1
+ pluggy_sdk/__init__.py,sha256=ztHH61-h0uFimlEaDSbw_GG_wyE5ClrcIJ3LH7pv1S0,12844
2
+ pluggy_sdk/api_client.py,sha256=6bR6gcGPmHq-a5g8H1K0Jin-1VyjW8GWmxrfXPWcNtQ,27438
3
3
  pluggy_sdk/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
4
- pluggy_sdk/configuration.py,sha256=SOQyk3VEKMY4ASY8DW0EfEtYGucykH3aF2oLf5Kqoe0,18485
4
+ pluggy_sdk/configuration.py,sha256=42QDzvwy2LCkx4T-O1MJjuSM_pzlS3A7l7zw9W6uQ3U,18485
5
5
  pluggy_sdk/exceptions.py,sha256=i3cDTqzBiyuMq9VdCqE6CVVf09vq_TDYL9uOVvFoZis,6452
6
6
  pluggy_sdk/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
7
  pluggy_sdk/rest.py,sha256=vVdVX3R4AbYt0r6TChhsMVAnyL1nf0RA6eZYjkaaBzY,9389
@@ -26,14 +26,14 @@ pluggy_sdk/api/payment_customer_api.py,sha256=2oxLDZt8BvDhg1P942AQaQUNsGBgvFL9Bp
26
26
  pluggy_sdk/api/payment_intent_api.py,sha256=xb5TAryR7WH6uMFH8-M1jeQonnnYxJ1TPkw2lZ3P_E0,32422
27
27
  pluggy_sdk/api/payment_receipts_api.py,sha256=kIf-vRlUK9yr6Udt8Xfvv3_8kL9c1_w8J8fyrWt3ylU,32644
28
28
  pluggy_sdk/api/payment_recipient_api.py,sha256=nvV5zoyTMMr3geRBD0ztaSrBe9tkusS9rJSdvG-mq2g,78871
29
- pluggy_sdk/api/payment_request_api.py,sha256=KoxSrmt2hXxISTXve_ur8LjAmk4WLlhxI0apRJD4eQo,106572
29
+ pluggy_sdk/api/payment_request_api.py,sha256=Pg1Wv0Jz0-tNyxpd8-0NRbWXgMvu7tnnOgjgFlL2EhQ,116891
30
30
  pluggy_sdk/api/payment_schedule_api.py,sha256=YUmE5fJktDrFHHm-SPphqQJmW-2CaBOlfX7QqZdQCk4,31605
31
31
  pluggy_sdk/api/payroll_loan_api.py,sha256=UqHuWdWa6PYAFBLdeRQTw0tMhv-yuhdN8Jk1qd7h8SQ,21180
32
32
  pluggy_sdk/api/portfolio_yield_api.py,sha256=MuqWrp6say2ZrwnucEszvH0dvpYZeB_IJDoCgwRGAOg,22588
33
33
  pluggy_sdk/api/smart_account_api.py,sha256=jH2o0d7KgTGGf0R-DsEYDlEjxqhpiN1g_LNumXvAIMk,66997
34
34
  pluggy_sdk/api/smart_account_transfer_api.py,sha256=H-uScNzIIlUzymh8GHKLoypler5ThLOuMezqLMksh1Y,24070
35
35
  pluggy_sdk/api/smart_transfer_api.py,sha256=txy3I7VsD8wlmzPAmKgva7szkTi_2ne3RDMo6zrcj-0,56198
36
- pluggy_sdk/api/transaction_api.py,sha256=P3uIVt77rC4f9ITPJjT9oi8-pFrM6RmpgXP55_unCME,37955
36
+ pluggy_sdk/api/transaction_api.py,sha256=sVpiNZJst5REdvRHv7wW4iwOkRM070gn1asN7kibrzI,39099
37
37
  pluggy_sdk/api/webhook_api.py,sha256=PmwRiQPIvl5vdDqNFdVKJLdBMGMyoccEHYmrxf7A4G4,56195
38
38
  pluggy_sdk/models/__init__.py,sha256=NnMQ8oqM--bIoFcZvafaNTFJpDNf99PNlZ0kha8LoEU,11165
39
39
  pluggy_sdk/models/account.py,sha256=olFI5wpLnLLE7OO22B4zlNzSAf5TP8kGPVmYar_VUdg,5536
@@ -65,7 +65,7 @@ pluggy_sdk/models/benefits_list200_response.py,sha256=2nvqxafhuuXbl2rq9lXOLcVtBY
65
65
  pluggy_sdk/models/bill.py,sha256=e2tOe1aFBZs9VJMxV9pwsT-d4I8A66M7USGP9mWijbI,4476
66
66
  pluggy_sdk/models/bill_finance_charge.py,sha256=HzAfznWSmKYuDWt7kHzTMlCXDN_kYZzD5uEMH2qRsUE,3776
67
67
  pluggy_sdk/models/bills_list200_response.py,sha256=iGWpb0feuyvZt_9OjJxsrO8bUycaq0n-guzr6yqMNlU,3416
68
- pluggy_sdk/models/boleto.py,sha256=AXgr-nAs1EBqPVVRfuXdTDDnBbj0sLhOII2JlumeNpE,5402
68
+ pluggy_sdk/models/boleto.py,sha256=yMgFfXUGIa22GJwkuVFozC9Vwl_YYhvJk1Wk_93goRM,5426
69
69
  pluggy_sdk/models/boleto_payer.py,sha256=0zVxArLdsn9lQ68WcabB0oT4tD1QzTyKblN8aZxbjpo,2641
70
70
  pluggy_sdk/models/boleto_recipient.py,sha256=O89GyVOLrJVrTg9_0CHZjmjdlp9blpsMl5QlioE-Z_U,2665
71
71
  pluggy_sdk/models/bulk_payment.py,sha256=_EiKF2iM38AktGvOHGey0FG9_usnL6YPUM7gtTWPeJg,5717
@@ -89,7 +89,7 @@ pluggy_sdk/models/create_item.py,sha256=5fN_PTXFXAGiTXhQad_a8Oq9A_TPt4YSWyT13S4-
89
89
  pluggy_sdk/models/create_item_parameters.py,sha256=ZAT3HYQRIJMCTO6XRJtBFWLix2LrKrZTWnLtuYMw11k,5380
90
90
  pluggy_sdk/models/create_or_update_payment_customer.py,sha256=ZvN-Pa9LGAR33L5G4XFSbIUPP3RaUsOeD45K5oOKZ-U,3455
91
91
  pluggy_sdk/models/create_payment_customer_request_body.py,sha256=YvSSzXEW2yI7M9alWr4fHbPRqNvV4sxTUVp3FkMQSyU,3365
92
- pluggy_sdk/models/create_payment_intent.py,sha256=MCBRy8n1xXnajR3Q4gksZ07Qk_VvtrCPaldTvkBEfUw,4371
92
+ pluggy_sdk/models/create_payment_intent.py,sha256=fa-y9mIq6ubcFtAJMTTSSpKmjUstF2mmO3GvdaMymW4,4719
93
93
  pluggy_sdk/models/create_payment_recipient.py,sha256=B4vmHZB0uhOBPl9GPcvkno02fpIHIKFTM3EQvMoBoS8,4554
94
94
  pluggy_sdk/models/create_payment_request.py,sha256=H2SU4y28MxacJLrypgknHzIpPTp5m6z9VJEBoGcsazU,4852
95
95
  pluggy_sdk/models/create_payment_request_schedule.py,sha256=Aj70mok-7IYtwhCRFg6_FeawrEiIl34mwcGb0yX6PcY,7159
@@ -98,7 +98,7 @@ pluggy_sdk/models/create_smart_account_request.py,sha256=Z0fL0SDXZHhP1zONXhHLxIQ
98
98
  pluggy_sdk/models/create_smart_account_transfer_request.py,sha256=cqYBbTfssI6jbZ4bxulvBsofin6d3k0qYcamSSIqzVE,3122
99
99
  pluggy_sdk/models/create_smart_transfer_payment.py,sha256=YqZQ7gg7oPFIlTwDCVH9wglNGETeOkxbiAeZT38e5nk,3397
100
100
  pluggy_sdk/models/create_smart_transfer_preauthorization.py,sha256=aSaFeY_pe-TX2kMyPA_sH89SshgqsJ7JJ4trwMP2zwQ,4149
101
- pluggy_sdk/models/create_webhook.py,sha256=-u-_3zkLodjKzeXKTVFU_SfOINS6R5DyiKB_RwF_z5M,3984
101
+ pluggy_sdk/models/create_webhook.py,sha256=rR3NrmQCqfIvumC7yKQH-2KEu1RRDBZ3DKtLv9ukT9Y,4088
102
102
  pluggy_sdk/models/credential_select_option.py,sha256=aniQKmQU7mGKMqJj78dGmS_ZxTw19mIaB6HX3CdyxOI,2676
103
103
  pluggy_sdk/models/credit_card_metadata.py,sha256=EpVcejr4hL5oJpvvqLRFUNBv5kcAR36FkQKbrONJ3XU,4102
104
104
  pluggy_sdk/models/credit_data.py,sha256=LcdJCDgQEmdm60NPzx-hcq_cRHYic8OCr_zVBVuNcpE,5142
@@ -121,7 +121,7 @@ pluggy_sdk/models/income_reports_response.py,sha256=cXTY6QSoXZ5gSzJD2rz992dQRHk0
121
121
  pluggy_sdk/models/investment.py,sha256=Wgrcn1BupoR-_2GRYHI5w_r7iuJJhQ-hNFPxaypXu7E,11148
122
122
  pluggy_sdk/models/investment_expenses.py,sha256=Tggx0ZhQV-EF1amRK5Qc-qTGMjw1bUkM4bo3re18OCk,5224
123
123
  pluggy_sdk/models/investment_metadata.py,sha256=iPjyP8eP7IM6Yp2angdHGN9ZrRlbIa4m9eO8XDxYQU8,3696
124
- pluggy_sdk/models/investment_transaction.py,sha256=1A3Ak7W5jcXzZycd05eLDYHsAikgJQXe73cp_a11NeA,4789
124
+ pluggy_sdk/models/investment_transaction.py,sha256=0NMEFh-yV0zTw1cstAz8x8kq8_oVLIPCh9kjXkxc1Ks,5004
125
125
  pluggy_sdk/models/investments_list200_response.py,sha256=JqUTarakPV6yzY162pLugeFudbwj6pHeCJYGdKVz8Js,3458
126
126
  pluggy_sdk/models/item.py,sha256=z__AH74riALcam8VE0U_GPCZPH7JrQydR1QeEHvlQRg,7295
127
127
  pluggy_sdk/models/item_creation_error_response.py,sha256=_zdN0Go6iU2deVKxRrexeYlDxWxYfWhjyrxisyQbjUI,3607
@@ -155,7 +155,7 @@ pluggy_sdk/models/page_response_investment_transactions.py,sha256=1tmgkQZST-uBq4
155
155
  pluggy_sdk/models/page_response_transactions.py,sha256=uVDrbsOwMG0IhlyU9Ri4OS5kkiOL6jT02eGA9_rdOPc,3295
156
156
  pluggy_sdk/models/parameter_validation_error.py,sha256=LHjLtSC2E0jlaDeljJONx2ljhUFDk3-sUgrZ_sGCHDs,2631
157
157
  pluggy_sdk/models/parameter_validation_response.py,sha256=oy9I3j23NItavWkK1GxNJ8qu8snAeH0WygExjXQeLn4,3273
158
- pluggy_sdk/models/payment_customer.py,sha256=ex6-H5-hXd04Q39gJVPIYvnAVXp8bhQjg3-9fi2HBaY,3413
158
+ pluggy_sdk/models/payment_customer.py,sha256=Xd-d1R34-q7i2jxBAOgWY7byphNLx8chGtMfYW0-bSc,3437
159
159
  pluggy_sdk/models/payment_customers_list200_response.py,sha256=X4IXDtLhs4g-ts7unv4sX50wtECDa6YH0rFXsuyyf60,3505
160
160
  pluggy_sdk/models/payment_data.py,sha256=xT9rS82U9wioBqQ3xB-JReHETlXlH2S5iCrUrnYW2eE,4638
161
161
  pluggy_sdk/models/payment_data_boleto_metadata.py,sha256=sH38_U3Sz5--5nCekrRU-4lXWtLcQixJZ-TE64ntFMA,3752
@@ -215,7 +215,7 @@ pluggy_sdk/models/webhook.py,sha256=2KV31zqFfHMzYzdrfVW7Sam6BsKigdQnPOKjsRiFYqI,
215
215
  pluggy_sdk/models/webhook_creation_error_response.py,sha256=SMvNMvJANk1NTn9BEugfwRtnEsJuoMsFo8tVvci3ayw,2681
216
216
  pluggy_sdk/models/webhooks_list200_response.py,sha256=_C8cwBIpZZrODNt-BS_pwAyBjZPxls6ffsy8vqYA6RU,3384
217
217
  pluggy_sdk/models/weekly.py,sha256=rEjJdwn52bBC5sNRUoWsMQ2uoaX7tDz68R5OOgBF1uw,4096
218
- pluggy_sdk-1.0.0.post34.dist-info/METADATA,sha256=kvTxndqPFG4IyQ0__Moq2g0bvpMZNUVmwFAMaH8MvxQ,23207
219
- pluggy_sdk-1.0.0.post34.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
220
- pluggy_sdk-1.0.0.post34.dist-info/top_level.txt,sha256=4RLkSSAcNiYLnk0_CN2vRQoezuSTIa7VPuNnaVutZP0,11
221
- pluggy_sdk-1.0.0.post34.dist-info/RECORD,,
218
+ pluggy_sdk-1.0.0.post36.dist-info/METADATA,sha256=aU0cz6YslIRcnHUZDxMkDBjApAP-Xf2iJMj7--FeD0I,23375
219
+ pluggy_sdk-1.0.0.post36.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
220
+ pluggy_sdk-1.0.0.post36.dist-info/top_level.txt,sha256=4RLkSSAcNiYLnk0_CN2vRQoezuSTIa7VPuNnaVutZP0,11
221
+ pluggy_sdk-1.0.0.post36.dist-info/RECORD,,