pluggy-sdk 1.0.0.post2__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.
Files changed (163) hide show
  1. pluggy_sdk/__init__.py +183 -0
  2. pluggy_sdk/api/__init__.py +26 -0
  3. pluggy_sdk/api/account_api.py +582 -0
  4. pluggy_sdk/api/acquirer_anticipation_api.py +658 -0
  5. pluggy_sdk/api/acquirer_receivable_api.py +658 -0
  6. pluggy_sdk/api/acquirer_sale_api.py +658 -0
  7. pluggy_sdk/api/auth_api.py +599 -0
  8. pluggy_sdk/api/bill_api.py +561 -0
  9. pluggy_sdk/api/bulk_payment_api.py +854 -0
  10. pluggy_sdk/api/category_api.py +1084 -0
  11. pluggy_sdk/api/connector_api.py +970 -0
  12. pluggy_sdk/api/identity_api.py +575 -0
  13. pluggy_sdk/api/income_report_api.py +308 -0
  14. pluggy_sdk/api/investment_api.py +909 -0
  15. pluggy_sdk/api/items_api.py +1441 -0
  16. pluggy_sdk/api/loan_api.py +561 -0
  17. pluggy_sdk/api/payment_customer_api.py +1399 -0
  18. pluggy_sdk/api/payment_intent_api.py +833 -0
  19. pluggy_sdk/api/payment_recipient_api.py +1976 -0
  20. pluggy_sdk/api/payment_request_api.py +1636 -0
  21. pluggy_sdk/api/portfolio_yield_api.py +574 -0
  22. pluggy_sdk/api/smart_account_api.py +1116 -0
  23. pluggy_sdk/api/transaction_api.py +954 -0
  24. pluggy_sdk/api/webhook_api.py +1391 -0
  25. pluggy_sdk/api_client.py +769 -0
  26. pluggy_sdk/api_response.py +21 -0
  27. pluggy_sdk/configuration.py +466 -0
  28. pluggy_sdk/exceptions.py +200 -0
  29. pluggy_sdk/models/__init__.py +145 -0
  30. pluggy_sdk/models/account.py +134 -0
  31. pluggy_sdk/models/accounts_list200_response.py +102 -0
  32. pluggy_sdk/models/acquirer_anticipation.py +117 -0
  33. pluggy_sdk/models/acquirer_anticipation_data.py +101 -0
  34. pluggy_sdk/models/acquirer_data.py +113 -0
  35. pluggy_sdk/models/acquirer_receivable.py +143 -0
  36. pluggy_sdk/models/acquirer_receivable_data.py +108 -0
  37. pluggy_sdk/models/acquirer_receivable_data_establishment.py +96 -0
  38. pluggy_sdk/models/acquirer_receivable_destination_account.py +92 -0
  39. pluggy_sdk/models/acquirer_receivable_related_sale.py +99 -0
  40. pluggy_sdk/models/acquirer_sale.py +171 -0
  41. pluggy_sdk/models/acquirer_sale_data.py +150 -0
  42. pluggy_sdk/models/acquirer_sale_installment.py +93 -0
  43. pluggy_sdk/models/acquirer_sale_installment_data.py +95 -0
  44. pluggy_sdk/models/address.py +110 -0
  45. pluggy_sdk/models/aggregated_portfolio.py +120 -0
  46. pluggy_sdk/models/aggregated_portfolio_response.py +102 -0
  47. pluggy_sdk/models/asset_distribution.py +88 -0
  48. pluggy_sdk/models/auth_request.py +90 -0
  49. pluggy_sdk/models/auth_response.py +88 -0
  50. pluggy_sdk/models/bank_data.py +92 -0
  51. pluggy_sdk/models/bill.py +109 -0
  52. pluggy_sdk/models/bill_finance_charge.py +103 -0
  53. pluggy_sdk/models/bills_list200_response.py +102 -0
  54. pluggy_sdk/models/bulk_payment.py +128 -0
  55. pluggy_sdk/models/bulk_payments_list200_response.py +102 -0
  56. pluggy_sdk/models/category.py +96 -0
  57. pluggy_sdk/models/client_category_rule.py +94 -0
  58. pluggy_sdk/models/company.py +90 -0
  59. pluggy_sdk/models/connect_token_request.py +94 -0
  60. pluggy_sdk/models/connect_token_response.py +88 -0
  61. pluggy_sdk/models/connector.py +141 -0
  62. pluggy_sdk/models/connector_credential.py +121 -0
  63. pluggy_sdk/models/connector_health.py +96 -0
  64. pluggy_sdk/models/connector_health_details.py +90 -0
  65. pluggy_sdk/models/connector_list_response.py +102 -0
  66. pluggy_sdk/models/connector_user_action.py +93 -0
  67. pluggy_sdk/models/create_bulk_payment.py +96 -0
  68. pluggy_sdk/models/create_client_category_rule.py +92 -0
  69. pluggy_sdk/models/create_item.py +111 -0
  70. pluggy_sdk/models/create_item_parameters.py +144 -0
  71. pluggy_sdk/models/create_or_update_payment_customer.py +105 -0
  72. pluggy_sdk/models/create_payment_customer_request_body.py +103 -0
  73. pluggy_sdk/models/create_payment_intent.py +94 -0
  74. pluggy_sdk/models/create_payment_recipient.py +100 -0
  75. pluggy_sdk/models/create_payment_request.py +102 -0
  76. pluggy_sdk/models/create_pix_qr_payment_request.py +96 -0
  77. pluggy_sdk/models/create_smart_account_request.py +102 -0
  78. pluggy_sdk/models/create_webhook.py +99 -0
  79. pluggy_sdk/models/credential_select_option.py +90 -0
  80. pluggy_sdk/models/credit_card_metadata.py +101 -0
  81. pluggy_sdk/models/credit_data.py +127 -0
  82. pluggy_sdk/models/document.py +100 -0
  83. pluggy_sdk/models/email.py +100 -0
  84. pluggy_sdk/models/global_error_response.py +94 -0
  85. pluggy_sdk/models/i_count_response.py +88 -0
  86. pluggy_sdk/models/identity_relation.py +102 -0
  87. pluggy_sdk/models/identity_response.py +149 -0
  88. pluggy_sdk/models/income_report.py +90 -0
  89. pluggy_sdk/models/income_reports_response.py +102 -0
  90. pluggy_sdk/models/investment.py +192 -0
  91. pluggy_sdk/models/investment_expenses.py +108 -0
  92. pluggy_sdk/models/investment_metadata.py +99 -0
  93. pluggy_sdk/models/investment_transaction.py +124 -0
  94. pluggy_sdk/models/investments_list200_response.py +102 -0
  95. pluggy_sdk/models/item.py +148 -0
  96. pluggy_sdk/models/item_creation_error_response.py +102 -0
  97. pluggy_sdk/models/item_error.py +94 -0
  98. pluggy_sdk/models/item_options.py +90 -0
  99. pluggy_sdk/models/loan.py +199 -0
  100. pluggy_sdk/models/loan_contracted_fee.py +118 -0
  101. pluggy_sdk/models/loan_contracted_finance_charge.py +92 -0
  102. pluggy_sdk/models/loan_installment_balloon_payment.py +95 -0
  103. pluggy_sdk/models/loan_installment_balloon_payment_amount.py +90 -0
  104. pluggy_sdk/models/loan_installments.py +130 -0
  105. pluggy_sdk/models/loan_interest_rate.py +136 -0
  106. pluggy_sdk/models/loan_payment_release.py +103 -0
  107. pluggy_sdk/models/loan_payment_release_over_parcel.py +106 -0
  108. pluggy_sdk/models/loan_payment_release_over_parcel_charge.py +92 -0
  109. pluggy_sdk/models/loan_payment_release_over_parcel_fee.py +92 -0
  110. pluggy_sdk/models/loan_payments.py +98 -0
  111. pluggy_sdk/models/loan_warranty.py +94 -0
  112. pluggy_sdk/models/loans_list200_response.py +102 -0
  113. pluggy_sdk/models/merchant.py +96 -0
  114. pluggy_sdk/models/monthly_portfolio.py +100 -0
  115. pluggy_sdk/models/monthly_portfolio_response.py +102 -0
  116. pluggy_sdk/models/not_authenticated_response.py +90 -0
  117. pluggy_sdk/models/page_response_acquirer_anticipations.py +102 -0
  118. pluggy_sdk/models/page_response_acquirer_receivables.py +102 -0
  119. pluggy_sdk/models/page_response_acquirer_sales.py +102 -0
  120. pluggy_sdk/models/page_response_category_rules.py +102 -0
  121. pluggy_sdk/models/page_response_investment_transactions.py +102 -0
  122. pluggy_sdk/models/page_response_transactions.py +102 -0
  123. pluggy_sdk/models/parameter_validation_error.py +92 -0
  124. pluggy_sdk/models/parameter_validation_response.py +98 -0
  125. pluggy_sdk/models/payment_customer.py +105 -0
  126. pluggy_sdk/models/payment_customers_list200_response.py +102 -0
  127. pluggy_sdk/models/payment_data.py +105 -0
  128. pluggy_sdk/models/payment_data_participant.py +101 -0
  129. pluggy_sdk/models/payment_institution.py +101 -0
  130. pluggy_sdk/models/payment_intent.py +145 -0
  131. pluggy_sdk/models/payment_intents_list200_response.py +102 -0
  132. pluggy_sdk/models/payment_recipient.py +106 -0
  133. pluggy_sdk/models/payment_recipient_account.py +99 -0
  134. pluggy_sdk/models/payment_recipients_institution_list200_response.py +102 -0
  135. pluggy_sdk/models/payment_recipients_list200_response.py +102 -0
  136. pluggy_sdk/models/payment_request.py +118 -0
  137. pluggy_sdk/models/payment_request_callback_urls.py +92 -0
  138. pluggy_sdk/models/payment_requests_list200_response.py +102 -0
  139. pluggy_sdk/models/percentage_over_index.py +90 -0
  140. pluggy_sdk/models/phone_number.py +100 -0
  141. pluggy_sdk/models/pix_data.py +90 -0
  142. pluggy_sdk/models/smart_account.py +107 -0
  143. pluggy_sdk/models/smart_account_address.py +112 -0
  144. pluggy_sdk/models/smart_account_balance.py +95 -0
  145. pluggy_sdk/models/smart_accounts_list200_response.py +102 -0
  146. pluggy_sdk/models/status_detail.py +142 -0
  147. pluggy_sdk/models/status_detail_product.py +101 -0
  148. pluggy_sdk/models/status_detail_product_warning.py +92 -0
  149. pluggy_sdk/models/transaction.py +145 -0
  150. pluggy_sdk/models/update_item.py +109 -0
  151. pluggy_sdk/models/update_item_parameters.py +144 -0
  152. pluggy_sdk/models/update_payment_recipient.py +100 -0
  153. pluggy_sdk/models/update_payment_request.py +102 -0
  154. pluggy_sdk/models/update_transaction.py +88 -0
  155. pluggy_sdk/models/webhook.py +106 -0
  156. pluggy_sdk/models/webhook_creation_error_response.py +90 -0
  157. pluggy_sdk/models/webhooks_list200_response.py +102 -0
  158. pluggy_sdk/py.typed +0 -0
  159. pluggy_sdk/rest.py +258 -0
  160. pluggy_sdk-1.0.0.post2.dist-info/METADATA +336 -0
  161. pluggy_sdk-1.0.0.post2.dist-info/RECORD +163 -0
  162. pluggy_sdk-1.0.0.post2.dist-info/WHEEL +5 -0
  163. pluggy_sdk-1.0.0.post2.dist-info/top_level.txt +1 -0
@@ -0,0 +1,1976 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Pluggy API
5
+
6
+ Pluggy's main API to review data and execute connectors
7
+
8
+ The version of the OpenAPI document: 1.0.0
9
+ Contact: hello@pluggy.ai
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
+
12
+ Do not edit the class manually.
13
+ """ # noqa: E501
14
+
15
+ import warnings
16
+ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
17
+ from typing import Any, Dict, List, Optional, Tuple, Union
18
+ from typing_extensions import Annotated
19
+
20
+ from pydantic import Field, StrictBool, StrictFloat, StrictInt, StrictStr
21
+ from typing import Optional, Union
22
+ from typing_extensions import Annotated
23
+ from pluggy_sdk.models.create_payment_recipient import CreatePaymentRecipient
24
+ from pluggy_sdk.models.payment_institution import PaymentInstitution
25
+ from pluggy_sdk.models.payment_recipient import PaymentRecipient
26
+ from pluggy_sdk.models.payment_recipients_institution_list200_response import PaymentRecipientsInstitutionList200Response
27
+ from pluggy_sdk.models.payment_recipients_list200_response import PaymentRecipientsList200Response
28
+ from pluggy_sdk.models.update_payment_recipient import UpdatePaymentRecipient
29
+
30
+ from pluggy_sdk.api_client import ApiClient, RequestSerialized
31
+ from pluggy_sdk.api_response import ApiResponse
32
+ from pluggy_sdk.rest import RESTResponseType
33
+
34
+
35
+ class PaymentRecipientApi:
36
+ """NOTE: This class is auto generated by OpenAPI Generator
37
+ Ref: https://openapi-generator.tech
38
+
39
+ Do not edit the class manually.
40
+ """
41
+
42
+ def __init__(self, api_client=None) -> None:
43
+ if api_client is None:
44
+ api_client = ApiClient.get_default()
45
+ self.api_client = api_client
46
+
47
+
48
+ @validate_call
49
+ def payment_recipient_create(
50
+ self,
51
+ create_payment_recipient: CreatePaymentRecipient,
52
+ _request_timeout: Union[
53
+ None,
54
+ Annotated[StrictFloat, Field(gt=0)],
55
+ Tuple[
56
+ Annotated[StrictFloat, Field(gt=0)],
57
+ Annotated[StrictFloat, Field(gt=0)]
58
+ ]
59
+ ] = None,
60
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
61
+ _content_type: Optional[StrictStr] = None,
62
+ _headers: Optional[Dict[StrictStr, Any]] = None,
63
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
64
+ ) -> PaymentRecipient:
65
+ """Create
66
+
67
+ Creates the payment recipient resource
68
+
69
+ :param create_payment_recipient: (required)
70
+ :type create_payment_recipient: CreatePaymentRecipient
71
+ :param _request_timeout: timeout setting for this request. If one
72
+ number provided, it will be total request
73
+ timeout. It can also be a pair (tuple) of
74
+ (connection, read) timeouts.
75
+ :type _request_timeout: int, tuple(int, int), optional
76
+ :param _request_auth: set to override the auth_settings for an a single
77
+ request; this effectively ignores the
78
+ authentication in the spec for a single request.
79
+ :type _request_auth: dict, optional
80
+ :param _content_type: force content-type for the request.
81
+ :type _content_type: str, Optional
82
+ :param _headers: set to override the headers for a single
83
+ request; this effectively ignores the headers
84
+ in the spec for a single request.
85
+ :type _headers: dict, optional
86
+ :param _host_index: set to override the host_index for a single
87
+ request; this effectively ignores the host_index
88
+ in the spec for a single request.
89
+ :type _host_index: int, optional
90
+ :return: Returns the result object.
91
+ """ # noqa: E501
92
+
93
+ _param = self._payment_recipient_create_serialize(
94
+ create_payment_recipient=create_payment_recipient,
95
+ _request_auth=_request_auth,
96
+ _content_type=_content_type,
97
+ _headers=_headers,
98
+ _host_index=_host_index
99
+ )
100
+
101
+ _response_types_map: Dict[str, Optional[str]] = {
102
+ '200': "PaymentRecipient",
103
+ '400': "GlobalErrorResponse",
104
+ }
105
+ response_data = self.api_client.call_api(
106
+ *_param,
107
+ _request_timeout=_request_timeout
108
+ )
109
+ response_data.read()
110
+ return self.api_client.response_deserialize(
111
+ response_data=response_data,
112
+ response_types_map=_response_types_map,
113
+ ).data
114
+
115
+
116
+ @validate_call
117
+ def payment_recipient_create_with_http_info(
118
+ self,
119
+ create_payment_recipient: CreatePaymentRecipient,
120
+ _request_timeout: Union[
121
+ None,
122
+ Annotated[StrictFloat, Field(gt=0)],
123
+ Tuple[
124
+ Annotated[StrictFloat, Field(gt=0)],
125
+ Annotated[StrictFloat, Field(gt=0)]
126
+ ]
127
+ ] = None,
128
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
129
+ _content_type: Optional[StrictStr] = None,
130
+ _headers: Optional[Dict[StrictStr, Any]] = None,
131
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
132
+ ) -> ApiResponse[PaymentRecipient]:
133
+ """Create
134
+
135
+ Creates the payment recipient resource
136
+
137
+ :param create_payment_recipient: (required)
138
+ :type create_payment_recipient: CreatePaymentRecipient
139
+ :param _request_timeout: timeout setting for this request. If one
140
+ number provided, it will be total request
141
+ timeout. It can also be a pair (tuple) of
142
+ (connection, read) timeouts.
143
+ :type _request_timeout: int, tuple(int, int), optional
144
+ :param _request_auth: set to override the auth_settings for an a single
145
+ request; this effectively ignores the
146
+ authentication in the spec for a single request.
147
+ :type _request_auth: dict, optional
148
+ :param _content_type: force content-type for the request.
149
+ :type _content_type: str, Optional
150
+ :param _headers: set to override the headers for a single
151
+ request; this effectively ignores the headers
152
+ in the spec for a single request.
153
+ :type _headers: dict, optional
154
+ :param _host_index: set to override the host_index for a single
155
+ request; this effectively ignores the host_index
156
+ in the spec for a single request.
157
+ :type _host_index: int, optional
158
+ :return: Returns the result object.
159
+ """ # noqa: E501
160
+
161
+ _param = self._payment_recipient_create_serialize(
162
+ create_payment_recipient=create_payment_recipient,
163
+ _request_auth=_request_auth,
164
+ _content_type=_content_type,
165
+ _headers=_headers,
166
+ _host_index=_host_index
167
+ )
168
+
169
+ _response_types_map: Dict[str, Optional[str]] = {
170
+ '200': "PaymentRecipient",
171
+ '400': "GlobalErrorResponse",
172
+ }
173
+ response_data = self.api_client.call_api(
174
+ *_param,
175
+ _request_timeout=_request_timeout
176
+ )
177
+ response_data.read()
178
+ return self.api_client.response_deserialize(
179
+ response_data=response_data,
180
+ response_types_map=_response_types_map,
181
+ )
182
+
183
+
184
+ @validate_call
185
+ def payment_recipient_create_without_preload_content(
186
+ self,
187
+ create_payment_recipient: CreatePaymentRecipient,
188
+ _request_timeout: Union[
189
+ None,
190
+ Annotated[StrictFloat, Field(gt=0)],
191
+ Tuple[
192
+ Annotated[StrictFloat, Field(gt=0)],
193
+ Annotated[StrictFloat, Field(gt=0)]
194
+ ]
195
+ ] = None,
196
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
197
+ _content_type: Optional[StrictStr] = None,
198
+ _headers: Optional[Dict[StrictStr, Any]] = None,
199
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
200
+ ) -> RESTResponseType:
201
+ """Create
202
+
203
+ Creates the payment recipient resource
204
+
205
+ :param create_payment_recipient: (required)
206
+ :type create_payment_recipient: CreatePaymentRecipient
207
+ :param _request_timeout: timeout setting for this request. If one
208
+ number provided, it will be total request
209
+ timeout. It can also be a pair (tuple) of
210
+ (connection, read) timeouts.
211
+ :type _request_timeout: int, tuple(int, int), optional
212
+ :param _request_auth: set to override the auth_settings for an a single
213
+ request; this effectively ignores the
214
+ authentication in the spec for a single request.
215
+ :type _request_auth: dict, optional
216
+ :param _content_type: force content-type for the request.
217
+ :type _content_type: str, Optional
218
+ :param _headers: set to override the headers for a single
219
+ request; this effectively ignores the headers
220
+ in the spec for a single request.
221
+ :type _headers: dict, optional
222
+ :param _host_index: set to override the host_index for a single
223
+ request; this effectively ignores the host_index
224
+ in the spec for a single request.
225
+ :type _host_index: int, optional
226
+ :return: Returns the result object.
227
+ """ # noqa: E501
228
+
229
+ _param = self._payment_recipient_create_serialize(
230
+ create_payment_recipient=create_payment_recipient,
231
+ _request_auth=_request_auth,
232
+ _content_type=_content_type,
233
+ _headers=_headers,
234
+ _host_index=_host_index
235
+ )
236
+
237
+ _response_types_map: Dict[str, Optional[str]] = {
238
+ '200': "PaymentRecipient",
239
+ '400': "GlobalErrorResponse",
240
+ }
241
+ response_data = self.api_client.call_api(
242
+ *_param,
243
+ _request_timeout=_request_timeout
244
+ )
245
+ return response_data.response
246
+
247
+
248
+ def _payment_recipient_create_serialize(
249
+ self,
250
+ create_payment_recipient,
251
+ _request_auth,
252
+ _content_type,
253
+ _headers,
254
+ _host_index,
255
+ ) -> RequestSerialized:
256
+
257
+ _host = None
258
+
259
+ _collection_formats: Dict[str, str] = {
260
+ }
261
+
262
+ _path_params: Dict[str, str] = {}
263
+ _query_params: List[Tuple[str, str]] = []
264
+ _header_params: Dict[str, Optional[str]] = _headers or {}
265
+ _form_params: List[Tuple[str, str]] = []
266
+ _files: Dict[str, Union[str, bytes]] = {}
267
+ _body_params: Optional[bytes] = None
268
+
269
+ # process the path parameters
270
+ # process the query parameters
271
+ # process the header parameters
272
+ # process the form parameters
273
+ # process the body parameter
274
+ if create_payment_recipient is not None:
275
+ _body_params = create_payment_recipient
276
+
277
+
278
+ # set the HTTP header `Accept`
279
+ _header_params['Accept'] = self.api_client.select_header_accept(
280
+ [
281
+ 'application/json'
282
+ ]
283
+ )
284
+
285
+ # set the HTTP header `Content-Type`
286
+ if _content_type:
287
+ _header_params['Content-Type'] = _content_type
288
+ else:
289
+ _default_content_type = (
290
+ self.api_client.select_header_content_type(
291
+ [
292
+ 'application/json'
293
+ ]
294
+ )
295
+ )
296
+ if _default_content_type is not None:
297
+ _header_params['Content-Type'] = _default_content_type
298
+
299
+ # authentication setting
300
+ _auth_settings: List[str] = [
301
+ 'default'
302
+ ]
303
+
304
+ return self.api_client.param_serialize(
305
+ method='POST',
306
+ resource_path='/payments/recipients',
307
+ path_params=_path_params,
308
+ query_params=_query_params,
309
+ header_params=_header_params,
310
+ body=_body_params,
311
+ post_params=_form_params,
312
+ files=_files,
313
+ auth_settings=_auth_settings,
314
+ collection_formats=_collection_formats,
315
+ _host=_host,
316
+ _request_auth=_request_auth
317
+ )
318
+
319
+
320
+
321
+
322
+ @validate_call
323
+ def payment_recipient_delete(
324
+ self,
325
+ id: Annotated[StrictStr, Field(description="Payment recipient primary identifier")],
326
+ _request_timeout: Union[
327
+ None,
328
+ Annotated[StrictFloat, Field(gt=0)],
329
+ Tuple[
330
+ Annotated[StrictFloat, Field(gt=0)],
331
+ Annotated[StrictFloat, Field(gt=0)]
332
+ ]
333
+ ] = None,
334
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
335
+ _content_type: Optional[StrictStr] = None,
336
+ _headers: Optional[Dict[StrictStr, Any]] = None,
337
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
338
+ ) -> None:
339
+ """Delete
340
+
341
+ Deletes the payment recipient resource by its id
342
+
343
+ :param id: Payment recipient primary identifier (required)
344
+ :type id: str
345
+ :param _request_timeout: timeout setting for this request. If one
346
+ number provided, it will be total request
347
+ timeout. It can also be a pair (tuple) of
348
+ (connection, read) timeouts.
349
+ :type _request_timeout: int, tuple(int, int), optional
350
+ :param _request_auth: set to override the auth_settings for an a single
351
+ request; this effectively ignores the
352
+ authentication in the spec for a single request.
353
+ :type _request_auth: dict, optional
354
+ :param _content_type: force content-type for the request.
355
+ :type _content_type: str, Optional
356
+ :param _headers: set to override the headers for a single
357
+ request; this effectively ignores the headers
358
+ in the spec for a single request.
359
+ :type _headers: dict, optional
360
+ :param _host_index: set to override the host_index for a single
361
+ request; this effectively ignores the host_index
362
+ in the spec for a single request.
363
+ :type _host_index: int, optional
364
+ :return: Returns the result object.
365
+ """ # noqa: E501
366
+
367
+ _param = self._payment_recipient_delete_serialize(
368
+ id=id,
369
+ _request_auth=_request_auth,
370
+ _content_type=_content_type,
371
+ _headers=_headers,
372
+ _host_index=_host_index
373
+ )
374
+
375
+ _response_types_map: Dict[str, Optional[str]] = {
376
+ '200': None,
377
+ '404': "GlobalErrorResponse",
378
+ }
379
+ response_data = self.api_client.call_api(
380
+ *_param,
381
+ _request_timeout=_request_timeout
382
+ )
383
+ response_data.read()
384
+ return self.api_client.response_deserialize(
385
+ response_data=response_data,
386
+ response_types_map=_response_types_map,
387
+ ).data
388
+
389
+
390
+ @validate_call
391
+ def payment_recipient_delete_with_http_info(
392
+ self,
393
+ id: Annotated[StrictStr, Field(description="Payment recipient primary identifier")],
394
+ _request_timeout: Union[
395
+ None,
396
+ Annotated[StrictFloat, Field(gt=0)],
397
+ Tuple[
398
+ Annotated[StrictFloat, Field(gt=0)],
399
+ Annotated[StrictFloat, Field(gt=0)]
400
+ ]
401
+ ] = None,
402
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
403
+ _content_type: Optional[StrictStr] = None,
404
+ _headers: Optional[Dict[StrictStr, Any]] = None,
405
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
406
+ ) -> ApiResponse[None]:
407
+ """Delete
408
+
409
+ Deletes the payment recipient resource by its id
410
+
411
+ :param id: Payment recipient primary identifier (required)
412
+ :type id: str
413
+ :param _request_timeout: timeout setting for this request. If one
414
+ number provided, it will be total request
415
+ timeout. It can also be a pair (tuple) of
416
+ (connection, read) timeouts.
417
+ :type _request_timeout: int, tuple(int, int), optional
418
+ :param _request_auth: set to override the auth_settings for an a single
419
+ request; this effectively ignores the
420
+ authentication in the spec for a single request.
421
+ :type _request_auth: dict, optional
422
+ :param _content_type: force content-type for the request.
423
+ :type _content_type: str, Optional
424
+ :param _headers: set to override the headers for a single
425
+ request; this effectively ignores the headers
426
+ in the spec for a single request.
427
+ :type _headers: dict, optional
428
+ :param _host_index: set to override the host_index for a single
429
+ request; this effectively ignores the host_index
430
+ in the spec for a single request.
431
+ :type _host_index: int, optional
432
+ :return: Returns the result object.
433
+ """ # noqa: E501
434
+
435
+ _param = self._payment_recipient_delete_serialize(
436
+ id=id,
437
+ _request_auth=_request_auth,
438
+ _content_type=_content_type,
439
+ _headers=_headers,
440
+ _host_index=_host_index
441
+ )
442
+
443
+ _response_types_map: Dict[str, Optional[str]] = {
444
+ '200': None,
445
+ '404': "GlobalErrorResponse",
446
+ }
447
+ response_data = self.api_client.call_api(
448
+ *_param,
449
+ _request_timeout=_request_timeout
450
+ )
451
+ response_data.read()
452
+ return self.api_client.response_deserialize(
453
+ response_data=response_data,
454
+ response_types_map=_response_types_map,
455
+ )
456
+
457
+
458
+ @validate_call
459
+ def payment_recipient_delete_without_preload_content(
460
+ self,
461
+ id: Annotated[StrictStr, Field(description="Payment recipient primary identifier")],
462
+ _request_timeout: Union[
463
+ None,
464
+ Annotated[StrictFloat, Field(gt=0)],
465
+ Tuple[
466
+ Annotated[StrictFloat, Field(gt=0)],
467
+ Annotated[StrictFloat, Field(gt=0)]
468
+ ]
469
+ ] = None,
470
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
471
+ _content_type: Optional[StrictStr] = None,
472
+ _headers: Optional[Dict[StrictStr, Any]] = None,
473
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
474
+ ) -> RESTResponseType:
475
+ """Delete
476
+
477
+ Deletes the payment recipient resource by its id
478
+
479
+ :param id: Payment recipient primary identifier (required)
480
+ :type id: str
481
+ :param _request_timeout: timeout setting for this request. If one
482
+ number provided, it will be total request
483
+ timeout. It can also be a pair (tuple) of
484
+ (connection, read) timeouts.
485
+ :type _request_timeout: int, tuple(int, int), optional
486
+ :param _request_auth: set to override the auth_settings for an a single
487
+ request; this effectively ignores the
488
+ authentication in the spec for a single request.
489
+ :type _request_auth: dict, optional
490
+ :param _content_type: force content-type for the request.
491
+ :type _content_type: str, Optional
492
+ :param _headers: set to override the headers for a single
493
+ request; this effectively ignores the headers
494
+ in the spec for a single request.
495
+ :type _headers: dict, optional
496
+ :param _host_index: set to override the host_index for a single
497
+ request; this effectively ignores the host_index
498
+ in the spec for a single request.
499
+ :type _host_index: int, optional
500
+ :return: Returns the result object.
501
+ """ # noqa: E501
502
+
503
+ _param = self._payment_recipient_delete_serialize(
504
+ id=id,
505
+ _request_auth=_request_auth,
506
+ _content_type=_content_type,
507
+ _headers=_headers,
508
+ _host_index=_host_index
509
+ )
510
+
511
+ _response_types_map: Dict[str, Optional[str]] = {
512
+ '200': None,
513
+ '404': "GlobalErrorResponse",
514
+ }
515
+ response_data = self.api_client.call_api(
516
+ *_param,
517
+ _request_timeout=_request_timeout
518
+ )
519
+ return response_data.response
520
+
521
+
522
+ def _payment_recipient_delete_serialize(
523
+ self,
524
+ id,
525
+ _request_auth,
526
+ _content_type,
527
+ _headers,
528
+ _host_index,
529
+ ) -> RequestSerialized:
530
+
531
+ _host = None
532
+
533
+ _collection_formats: Dict[str, str] = {
534
+ }
535
+
536
+ _path_params: Dict[str, str] = {}
537
+ _query_params: List[Tuple[str, str]] = []
538
+ _header_params: Dict[str, Optional[str]] = _headers or {}
539
+ _form_params: List[Tuple[str, str]] = []
540
+ _files: Dict[str, Union[str, bytes]] = {}
541
+ _body_params: Optional[bytes] = None
542
+
543
+ # process the path parameters
544
+ if id is not None:
545
+ _path_params['id'] = id
546
+ # process the query parameters
547
+ # process the header parameters
548
+ # process the form parameters
549
+ # process the body parameter
550
+
551
+
552
+ # set the HTTP header `Accept`
553
+ _header_params['Accept'] = self.api_client.select_header_accept(
554
+ [
555
+ 'application/json'
556
+ ]
557
+ )
558
+
559
+
560
+ # authentication setting
561
+ _auth_settings: List[str] = [
562
+ 'default'
563
+ ]
564
+
565
+ return self.api_client.param_serialize(
566
+ method='DELETE',
567
+ resource_path='/payments/recipients/{id}',
568
+ path_params=_path_params,
569
+ query_params=_query_params,
570
+ header_params=_header_params,
571
+ body=_body_params,
572
+ post_params=_form_params,
573
+ files=_files,
574
+ auth_settings=_auth_settings,
575
+ collection_formats=_collection_formats,
576
+ _host=_host,
577
+ _request_auth=_request_auth
578
+ )
579
+
580
+
581
+
582
+
583
+ @validate_call
584
+ def payment_recipient_institutions_retrieve(
585
+ self,
586
+ id: Annotated[StrictStr, Field(description="Payment institution primary identifier")],
587
+ _request_timeout: Union[
588
+ None,
589
+ Annotated[StrictFloat, Field(gt=0)],
590
+ Tuple[
591
+ Annotated[StrictFloat, Field(gt=0)],
592
+ Annotated[StrictFloat, Field(gt=0)]
593
+ ]
594
+ ] = None,
595
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
596
+ _content_type: Optional[StrictStr] = None,
597
+ _headers: Optional[Dict[StrictStr, Any]] = None,
598
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
599
+ ) -> PaymentInstitution:
600
+ """Retrieve Institution
601
+
602
+ Recovers the payment institution resource by its id
603
+
604
+ :param id: Payment institution primary identifier (required)
605
+ :type id: str
606
+ :param _request_timeout: timeout setting for this request. If one
607
+ number provided, it will be total request
608
+ timeout. It can also be a pair (tuple) of
609
+ (connection, read) timeouts.
610
+ :type _request_timeout: int, tuple(int, int), optional
611
+ :param _request_auth: set to override the auth_settings for an a single
612
+ request; this effectively ignores the
613
+ authentication in the spec for a single request.
614
+ :type _request_auth: dict, optional
615
+ :param _content_type: force content-type for the request.
616
+ :type _content_type: str, Optional
617
+ :param _headers: set to override the headers for a single
618
+ request; this effectively ignores the headers
619
+ in the spec for a single request.
620
+ :type _headers: dict, optional
621
+ :param _host_index: set to override the host_index for a single
622
+ request; this effectively ignores the host_index
623
+ in the spec for a single request.
624
+ :type _host_index: int, optional
625
+ :return: Returns the result object.
626
+ """ # noqa: E501
627
+
628
+ _param = self._payment_recipient_institutions_retrieve_serialize(
629
+ id=id,
630
+ _request_auth=_request_auth,
631
+ _content_type=_content_type,
632
+ _headers=_headers,
633
+ _host_index=_host_index
634
+ )
635
+
636
+ _response_types_map: Dict[str, Optional[str]] = {
637
+ '200': "PaymentInstitution",
638
+ '404': "GlobalErrorResponse",
639
+ }
640
+ response_data = self.api_client.call_api(
641
+ *_param,
642
+ _request_timeout=_request_timeout
643
+ )
644
+ response_data.read()
645
+ return self.api_client.response_deserialize(
646
+ response_data=response_data,
647
+ response_types_map=_response_types_map,
648
+ ).data
649
+
650
+
651
+ @validate_call
652
+ def payment_recipient_institutions_retrieve_with_http_info(
653
+ self,
654
+ id: Annotated[StrictStr, Field(description="Payment institution primary identifier")],
655
+ _request_timeout: Union[
656
+ None,
657
+ Annotated[StrictFloat, Field(gt=0)],
658
+ Tuple[
659
+ Annotated[StrictFloat, Field(gt=0)],
660
+ Annotated[StrictFloat, Field(gt=0)]
661
+ ]
662
+ ] = None,
663
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
664
+ _content_type: Optional[StrictStr] = None,
665
+ _headers: Optional[Dict[StrictStr, Any]] = None,
666
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
667
+ ) -> ApiResponse[PaymentInstitution]:
668
+ """Retrieve Institution
669
+
670
+ Recovers the payment institution resource by its id
671
+
672
+ :param id: Payment institution primary identifier (required)
673
+ :type id: str
674
+ :param _request_timeout: timeout setting for this request. If one
675
+ number provided, it will be total request
676
+ timeout. It can also be a pair (tuple) of
677
+ (connection, read) timeouts.
678
+ :type _request_timeout: int, tuple(int, int), optional
679
+ :param _request_auth: set to override the auth_settings for an a single
680
+ request; this effectively ignores the
681
+ authentication in the spec for a single request.
682
+ :type _request_auth: dict, optional
683
+ :param _content_type: force content-type for the request.
684
+ :type _content_type: str, Optional
685
+ :param _headers: set to override the headers for a single
686
+ request; this effectively ignores the headers
687
+ in the spec for a single request.
688
+ :type _headers: dict, optional
689
+ :param _host_index: set to override the host_index for a single
690
+ request; this effectively ignores the host_index
691
+ in the spec for a single request.
692
+ :type _host_index: int, optional
693
+ :return: Returns the result object.
694
+ """ # noqa: E501
695
+
696
+ _param = self._payment_recipient_institutions_retrieve_serialize(
697
+ id=id,
698
+ _request_auth=_request_auth,
699
+ _content_type=_content_type,
700
+ _headers=_headers,
701
+ _host_index=_host_index
702
+ )
703
+
704
+ _response_types_map: Dict[str, Optional[str]] = {
705
+ '200': "PaymentInstitution",
706
+ '404': "GlobalErrorResponse",
707
+ }
708
+ response_data = self.api_client.call_api(
709
+ *_param,
710
+ _request_timeout=_request_timeout
711
+ )
712
+ response_data.read()
713
+ return self.api_client.response_deserialize(
714
+ response_data=response_data,
715
+ response_types_map=_response_types_map,
716
+ )
717
+
718
+
719
+ @validate_call
720
+ def payment_recipient_institutions_retrieve_without_preload_content(
721
+ self,
722
+ id: Annotated[StrictStr, Field(description="Payment institution primary identifier")],
723
+ _request_timeout: Union[
724
+ None,
725
+ Annotated[StrictFloat, Field(gt=0)],
726
+ Tuple[
727
+ Annotated[StrictFloat, Field(gt=0)],
728
+ Annotated[StrictFloat, Field(gt=0)]
729
+ ]
730
+ ] = None,
731
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
732
+ _content_type: Optional[StrictStr] = None,
733
+ _headers: Optional[Dict[StrictStr, Any]] = None,
734
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
735
+ ) -> RESTResponseType:
736
+ """Retrieve Institution
737
+
738
+ Recovers the payment institution resource by its id
739
+
740
+ :param id: Payment institution primary identifier (required)
741
+ :type id: str
742
+ :param _request_timeout: timeout setting for this request. If one
743
+ number provided, it will be total request
744
+ timeout. It can also be a pair (tuple) of
745
+ (connection, read) timeouts.
746
+ :type _request_timeout: int, tuple(int, int), optional
747
+ :param _request_auth: set to override the auth_settings for an a single
748
+ request; this effectively ignores the
749
+ authentication in the spec for a single request.
750
+ :type _request_auth: dict, optional
751
+ :param _content_type: force content-type for the request.
752
+ :type _content_type: str, Optional
753
+ :param _headers: set to override the headers for a single
754
+ request; this effectively ignores the headers
755
+ in the spec for a single request.
756
+ :type _headers: dict, optional
757
+ :param _host_index: set to override the host_index for a single
758
+ request; this effectively ignores the host_index
759
+ in the spec for a single request.
760
+ :type _host_index: int, optional
761
+ :return: Returns the result object.
762
+ """ # noqa: E501
763
+
764
+ _param = self._payment_recipient_institutions_retrieve_serialize(
765
+ id=id,
766
+ _request_auth=_request_auth,
767
+ _content_type=_content_type,
768
+ _headers=_headers,
769
+ _host_index=_host_index
770
+ )
771
+
772
+ _response_types_map: Dict[str, Optional[str]] = {
773
+ '200': "PaymentInstitution",
774
+ '404': "GlobalErrorResponse",
775
+ }
776
+ response_data = self.api_client.call_api(
777
+ *_param,
778
+ _request_timeout=_request_timeout
779
+ )
780
+ return response_data.response
781
+
782
+
783
+ def _payment_recipient_institutions_retrieve_serialize(
784
+ self,
785
+ id,
786
+ _request_auth,
787
+ _content_type,
788
+ _headers,
789
+ _host_index,
790
+ ) -> RequestSerialized:
791
+
792
+ _host = None
793
+
794
+ _collection_formats: Dict[str, str] = {
795
+ }
796
+
797
+ _path_params: Dict[str, str] = {}
798
+ _query_params: List[Tuple[str, str]] = []
799
+ _header_params: Dict[str, Optional[str]] = _headers or {}
800
+ _form_params: List[Tuple[str, str]] = []
801
+ _files: Dict[str, Union[str, bytes]] = {}
802
+ _body_params: Optional[bytes] = None
803
+
804
+ # process the path parameters
805
+ if id is not None:
806
+ _path_params['id'] = id
807
+ # process the query parameters
808
+ # process the header parameters
809
+ # process the form parameters
810
+ # process the body parameter
811
+
812
+
813
+ # set the HTTP header `Accept`
814
+ _header_params['Accept'] = self.api_client.select_header_accept(
815
+ [
816
+ 'application/json'
817
+ ]
818
+ )
819
+
820
+
821
+ # authentication setting
822
+ _auth_settings: List[str] = [
823
+ 'default'
824
+ ]
825
+
826
+ return self.api_client.param_serialize(
827
+ method='GET',
828
+ resource_path='/payments/recipients/institutions/{id}',
829
+ path_params=_path_params,
830
+ query_params=_query_params,
831
+ header_params=_header_params,
832
+ body=_body_params,
833
+ post_params=_form_params,
834
+ files=_files,
835
+ auth_settings=_auth_settings,
836
+ collection_formats=_collection_formats,
837
+ _host=_host,
838
+ _request_auth=_request_auth
839
+ )
840
+
841
+
842
+
843
+
844
+ @validate_call
845
+ def payment_recipient_retrieve(
846
+ self,
847
+ id: Annotated[StrictStr, Field(description="Payment recipient primary identifier")],
848
+ _request_timeout: Union[
849
+ None,
850
+ Annotated[StrictFloat, Field(gt=0)],
851
+ Tuple[
852
+ Annotated[StrictFloat, Field(gt=0)],
853
+ Annotated[StrictFloat, Field(gt=0)]
854
+ ]
855
+ ] = None,
856
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
857
+ _content_type: Optional[StrictStr] = None,
858
+ _headers: Optional[Dict[StrictStr, Any]] = None,
859
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
860
+ ) -> PaymentRecipient:
861
+ """Retrieve
862
+
863
+ Recovers the payment recipient resource by its id
864
+
865
+ :param id: Payment recipient primary identifier (required)
866
+ :type id: str
867
+ :param _request_timeout: timeout setting for this request. If one
868
+ number provided, it will be total request
869
+ timeout. It can also be a pair (tuple) of
870
+ (connection, read) timeouts.
871
+ :type _request_timeout: int, tuple(int, int), optional
872
+ :param _request_auth: set to override the auth_settings for an a single
873
+ request; this effectively ignores the
874
+ authentication in the spec for a single request.
875
+ :type _request_auth: dict, optional
876
+ :param _content_type: force content-type for the request.
877
+ :type _content_type: str, Optional
878
+ :param _headers: set to override the headers for a single
879
+ request; this effectively ignores the headers
880
+ in the spec for a single request.
881
+ :type _headers: dict, optional
882
+ :param _host_index: set to override the host_index for a single
883
+ request; this effectively ignores the host_index
884
+ in the spec for a single request.
885
+ :type _host_index: int, optional
886
+ :return: Returns the result object.
887
+ """ # noqa: E501
888
+
889
+ _param = self._payment_recipient_retrieve_serialize(
890
+ id=id,
891
+ _request_auth=_request_auth,
892
+ _content_type=_content_type,
893
+ _headers=_headers,
894
+ _host_index=_host_index
895
+ )
896
+
897
+ _response_types_map: Dict[str, Optional[str]] = {
898
+ '200': "PaymentRecipient",
899
+ '404': "GlobalErrorResponse",
900
+ }
901
+ response_data = self.api_client.call_api(
902
+ *_param,
903
+ _request_timeout=_request_timeout
904
+ )
905
+ response_data.read()
906
+ return self.api_client.response_deserialize(
907
+ response_data=response_data,
908
+ response_types_map=_response_types_map,
909
+ ).data
910
+
911
+
912
+ @validate_call
913
+ def payment_recipient_retrieve_with_http_info(
914
+ self,
915
+ id: Annotated[StrictStr, Field(description="Payment recipient primary identifier")],
916
+ _request_timeout: Union[
917
+ None,
918
+ Annotated[StrictFloat, Field(gt=0)],
919
+ Tuple[
920
+ Annotated[StrictFloat, Field(gt=0)],
921
+ Annotated[StrictFloat, Field(gt=0)]
922
+ ]
923
+ ] = None,
924
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
925
+ _content_type: Optional[StrictStr] = None,
926
+ _headers: Optional[Dict[StrictStr, Any]] = None,
927
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
928
+ ) -> ApiResponse[PaymentRecipient]:
929
+ """Retrieve
930
+
931
+ Recovers the payment recipient resource by its id
932
+
933
+ :param id: Payment recipient primary identifier (required)
934
+ :type id: str
935
+ :param _request_timeout: timeout setting for this request. If one
936
+ number provided, it will be total request
937
+ timeout. It can also be a pair (tuple) of
938
+ (connection, read) timeouts.
939
+ :type _request_timeout: int, tuple(int, int), optional
940
+ :param _request_auth: set to override the auth_settings for an a single
941
+ request; this effectively ignores the
942
+ authentication in the spec for a single request.
943
+ :type _request_auth: dict, optional
944
+ :param _content_type: force content-type for the request.
945
+ :type _content_type: str, Optional
946
+ :param _headers: set to override the headers for a single
947
+ request; this effectively ignores the headers
948
+ in the spec for a single request.
949
+ :type _headers: dict, optional
950
+ :param _host_index: set to override the host_index for a single
951
+ request; this effectively ignores the host_index
952
+ in the spec for a single request.
953
+ :type _host_index: int, optional
954
+ :return: Returns the result object.
955
+ """ # noqa: E501
956
+
957
+ _param = self._payment_recipient_retrieve_serialize(
958
+ id=id,
959
+ _request_auth=_request_auth,
960
+ _content_type=_content_type,
961
+ _headers=_headers,
962
+ _host_index=_host_index
963
+ )
964
+
965
+ _response_types_map: Dict[str, Optional[str]] = {
966
+ '200': "PaymentRecipient",
967
+ '404': "GlobalErrorResponse",
968
+ }
969
+ response_data = self.api_client.call_api(
970
+ *_param,
971
+ _request_timeout=_request_timeout
972
+ )
973
+ response_data.read()
974
+ return self.api_client.response_deserialize(
975
+ response_data=response_data,
976
+ response_types_map=_response_types_map,
977
+ )
978
+
979
+
980
+ @validate_call
981
+ def payment_recipient_retrieve_without_preload_content(
982
+ self,
983
+ id: Annotated[StrictStr, Field(description="Payment recipient primary identifier")],
984
+ _request_timeout: Union[
985
+ None,
986
+ Annotated[StrictFloat, Field(gt=0)],
987
+ Tuple[
988
+ Annotated[StrictFloat, Field(gt=0)],
989
+ Annotated[StrictFloat, Field(gt=0)]
990
+ ]
991
+ ] = None,
992
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
993
+ _content_type: Optional[StrictStr] = None,
994
+ _headers: Optional[Dict[StrictStr, Any]] = None,
995
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
996
+ ) -> RESTResponseType:
997
+ """Retrieve
998
+
999
+ Recovers the payment recipient resource by its id
1000
+
1001
+ :param id: Payment recipient primary identifier (required)
1002
+ :type id: str
1003
+ :param _request_timeout: timeout setting for this request. If one
1004
+ number provided, it will be total request
1005
+ timeout. It can also be a pair (tuple) of
1006
+ (connection, read) timeouts.
1007
+ :type _request_timeout: int, tuple(int, int), optional
1008
+ :param _request_auth: set to override the auth_settings for an a single
1009
+ request; this effectively ignores the
1010
+ authentication in the spec for a single request.
1011
+ :type _request_auth: dict, optional
1012
+ :param _content_type: force content-type for the request.
1013
+ :type _content_type: str, Optional
1014
+ :param _headers: set to override the headers for a single
1015
+ request; this effectively ignores the headers
1016
+ in the spec for a single request.
1017
+ :type _headers: dict, optional
1018
+ :param _host_index: set to override the host_index for a single
1019
+ request; this effectively ignores the host_index
1020
+ in the spec for a single request.
1021
+ :type _host_index: int, optional
1022
+ :return: Returns the result object.
1023
+ """ # noqa: E501
1024
+
1025
+ _param = self._payment_recipient_retrieve_serialize(
1026
+ id=id,
1027
+ _request_auth=_request_auth,
1028
+ _content_type=_content_type,
1029
+ _headers=_headers,
1030
+ _host_index=_host_index
1031
+ )
1032
+
1033
+ _response_types_map: Dict[str, Optional[str]] = {
1034
+ '200': "PaymentRecipient",
1035
+ '404': "GlobalErrorResponse",
1036
+ }
1037
+ response_data = self.api_client.call_api(
1038
+ *_param,
1039
+ _request_timeout=_request_timeout
1040
+ )
1041
+ return response_data.response
1042
+
1043
+
1044
+ def _payment_recipient_retrieve_serialize(
1045
+ self,
1046
+ id,
1047
+ _request_auth,
1048
+ _content_type,
1049
+ _headers,
1050
+ _host_index,
1051
+ ) -> RequestSerialized:
1052
+
1053
+ _host = None
1054
+
1055
+ _collection_formats: Dict[str, str] = {
1056
+ }
1057
+
1058
+ _path_params: Dict[str, str] = {}
1059
+ _query_params: List[Tuple[str, str]] = []
1060
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1061
+ _form_params: List[Tuple[str, str]] = []
1062
+ _files: Dict[str, Union[str, bytes]] = {}
1063
+ _body_params: Optional[bytes] = None
1064
+
1065
+ # process the path parameters
1066
+ if id is not None:
1067
+ _path_params['id'] = id
1068
+ # process the query parameters
1069
+ # process the header parameters
1070
+ # process the form parameters
1071
+ # process the body parameter
1072
+
1073
+
1074
+ # set the HTTP header `Accept`
1075
+ _header_params['Accept'] = self.api_client.select_header_accept(
1076
+ [
1077
+ 'application/json'
1078
+ ]
1079
+ )
1080
+
1081
+
1082
+ # authentication setting
1083
+ _auth_settings: List[str] = [
1084
+ 'default'
1085
+ ]
1086
+
1087
+ return self.api_client.param_serialize(
1088
+ method='GET',
1089
+ resource_path='/payments/recipients/{id}',
1090
+ path_params=_path_params,
1091
+ query_params=_query_params,
1092
+ header_params=_header_params,
1093
+ body=_body_params,
1094
+ post_params=_form_params,
1095
+ files=_files,
1096
+ auth_settings=_auth_settings,
1097
+ collection_formats=_collection_formats,
1098
+ _host=_host,
1099
+ _request_auth=_request_auth
1100
+ )
1101
+
1102
+
1103
+
1104
+
1105
+ @validate_call
1106
+ def payment_recipient_update(
1107
+ self,
1108
+ id: Annotated[StrictStr, Field(description="Payment recipient primary identifier")],
1109
+ update_payment_recipient: UpdatePaymentRecipient,
1110
+ _request_timeout: Union[
1111
+ None,
1112
+ Annotated[StrictFloat, Field(gt=0)],
1113
+ Tuple[
1114
+ Annotated[StrictFloat, Field(gt=0)],
1115
+ Annotated[StrictFloat, Field(gt=0)]
1116
+ ]
1117
+ ] = None,
1118
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1119
+ _content_type: Optional[StrictStr] = None,
1120
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1121
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1122
+ ) -> PaymentRecipient:
1123
+ """Update
1124
+
1125
+ Updates the payment recipient resource
1126
+
1127
+ :param id: Payment recipient primary identifier (required)
1128
+ :type id: str
1129
+ :param update_payment_recipient: (required)
1130
+ :type update_payment_recipient: UpdatePaymentRecipient
1131
+ :param _request_timeout: timeout setting for this request. If one
1132
+ number provided, it will be total request
1133
+ timeout. It can also be a pair (tuple) of
1134
+ (connection, read) timeouts.
1135
+ :type _request_timeout: int, tuple(int, int), optional
1136
+ :param _request_auth: set to override the auth_settings for an a single
1137
+ request; this effectively ignores the
1138
+ authentication in the spec for a single request.
1139
+ :type _request_auth: dict, optional
1140
+ :param _content_type: force content-type for the request.
1141
+ :type _content_type: str, Optional
1142
+ :param _headers: set to override the headers for a single
1143
+ request; this effectively ignores the headers
1144
+ in the spec for a single request.
1145
+ :type _headers: dict, optional
1146
+ :param _host_index: set to override the host_index for a single
1147
+ request; this effectively ignores the host_index
1148
+ in the spec for a single request.
1149
+ :type _host_index: int, optional
1150
+ :return: Returns the result object.
1151
+ """ # noqa: E501
1152
+
1153
+ _param = self._payment_recipient_update_serialize(
1154
+ id=id,
1155
+ update_payment_recipient=update_payment_recipient,
1156
+ _request_auth=_request_auth,
1157
+ _content_type=_content_type,
1158
+ _headers=_headers,
1159
+ _host_index=_host_index
1160
+ )
1161
+
1162
+ _response_types_map: Dict[str, Optional[str]] = {
1163
+ '200': "PaymentRecipient",
1164
+ }
1165
+ response_data = self.api_client.call_api(
1166
+ *_param,
1167
+ _request_timeout=_request_timeout
1168
+ )
1169
+ response_data.read()
1170
+ return self.api_client.response_deserialize(
1171
+ response_data=response_data,
1172
+ response_types_map=_response_types_map,
1173
+ ).data
1174
+
1175
+
1176
+ @validate_call
1177
+ def payment_recipient_update_with_http_info(
1178
+ self,
1179
+ id: Annotated[StrictStr, Field(description="Payment recipient primary identifier")],
1180
+ update_payment_recipient: UpdatePaymentRecipient,
1181
+ _request_timeout: Union[
1182
+ None,
1183
+ Annotated[StrictFloat, Field(gt=0)],
1184
+ Tuple[
1185
+ Annotated[StrictFloat, Field(gt=0)],
1186
+ Annotated[StrictFloat, Field(gt=0)]
1187
+ ]
1188
+ ] = None,
1189
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1190
+ _content_type: Optional[StrictStr] = None,
1191
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1192
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1193
+ ) -> ApiResponse[PaymentRecipient]:
1194
+ """Update
1195
+
1196
+ Updates the payment recipient resource
1197
+
1198
+ :param id: Payment recipient primary identifier (required)
1199
+ :type id: str
1200
+ :param update_payment_recipient: (required)
1201
+ :type update_payment_recipient: UpdatePaymentRecipient
1202
+ :param _request_timeout: timeout setting for this request. If one
1203
+ number provided, it will be total request
1204
+ timeout. It can also be a pair (tuple) of
1205
+ (connection, read) timeouts.
1206
+ :type _request_timeout: int, tuple(int, int), optional
1207
+ :param _request_auth: set to override the auth_settings for an a single
1208
+ request; this effectively ignores the
1209
+ authentication in the spec for a single request.
1210
+ :type _request_auth: dict, optional
1211
+ :param _content_type: force content-type for the request.
1212
+ :type _content_type: str, Optional
1213
+ :param _headers: set to override the headers for a single
1214
+ request; this effectively ignores the headers
1215
+ in the spec for a single request.
1216
+ :type _headers: dict, optional
1217
+ :param _host_index: set to override the host_index for a single
1218
+ request; this effectively ignores the host_index
1219
+ in the spec for a single request.
1220
+ :type _host_index: int, optional
1221
+ :return: Returns the result object.
1222
+ """ # noqa: E501
1223
+
1224
+ _param = self._payment_recipient_update_serialize(
1225
+ id=id,
1226
+ update_payment_recipient=update_payment_recipient,
1227
+ _request_auth=_request_auth,
1228
+ _content_type=_content_type,
1229
+ _headers=_headers,
1230
+ _host_index=_host_index
1231
+ )
1232
+
1233
+ _response_types_map: Dict[str, Optional[str]] = {
1234
+ '200': "PaymentRecipient",
1235
+ }
1236
+ response_data = self.api_client.call_api(
1237
+ *_param,
1238
+ _request_timeout=_request_timeout
1239
+ )
1240
+ response_data.read()
1241
+ return self.api_client.response_deserialize(
1242
+ response_data=response_data,
1243
+ response_types_map=_response_types_map,
1244
+ )
1245
+
1246
+
1247
+ @validate_call
1248
+ def payment_recipient_update_without_preload_content(
1249
+ self,
1250
+ id: Annotated[StrictStr, Field(description="Payment recipient primary identifier")],
1251
+ update_payment_recipient: UpdatePaymentRecipient,
1252
+ _request_timeout: Union[
1253
+ None,
1254
+ Annotated[StrictFloat, Field(gt=0)],
1255
+ Tuple[
1256
+ Annotated[StrictFloat, Field(gt=0)],
1257
+ Annotated[StrictFloat, Field(gt=0)]
1258
+ ]
1259
+ ] = None,
1260
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1261
+ _content_type: Optional[StrictStr] = None,
1262
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1263
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1264
+ ) -> RESTResponseType:
1265
+ """Update
1266
+
1267
+ Updates the payment recipient resource
1268
+
1269
+ :param id: Payment recipient primary identifier (required)
1270
+ :type id: str
1271
+ :param update_payment_recipient: (required)
1272
+ :type update_payment_recipient: UpdatePaymentRecipient
1273
+ :param _request_timeout: timeout setting for this request. If one
1274
+ number provided, it will be total request
1275
+ timeout. It can also be a pair (tuple) of
1276
+ (connection, read) timeouts.
1277
+ :type _request_timeout: int, tuple(int, int), optional
1278
+ :param _request_auth: set to override the auth_settings for an a single
1279
+ request; this effectively ignores the
1280
+ authentication in the spec for a single request.
1281
+ :type _request_auth: dict, optional
1282
+ :param _content_type: force content-type for the request.
1283
+ :type _content_type: str, Optional
1284
+ :param _headers: set to override the headers for a single
1285
+ request; this effectively ignores the headers
1286
+ in the spec for a single request.
1287
+ :type _headers: dict, optional
1288
+ :param _host_index: set to override the host_index for a single
1289
+ request; this effectively ignores the host_index
1290
+ in the spec for a single request.
1291
+ :type _host_index: int, optional
1292
+ :return: Returns the result object.
1293
+ """ # noqa: E501
1294
+
1295
+ _param = self._payment_recipient_update_serialize(
1296
+ id=id,
1297
+ update_payment_recipient=update_payment_recipient,
1298
+ _request_auth=_request_auth,
1299
+ _content_type=_content_type,
1300
+ _headers=_headers,
1301
+ _host_index=_host_index
1302
+ )
1303
+
1304
+ _response_types_map: Dict[str, Optional[str]] = {
1305
+ '200': "PaymentRecipient",
1306
+ }
1307
+ response_data = self.api_client.call_api(
1308
+ *_param,
1309
+ _request_timeout=_request_timeout
1310
+ )
1311
+ return response_data.response
1312
+
1313
+
1314
+ def _payment_recipient_update_serialize(
1315
+ self,
1316
+ id,
1317
+ update_payment_recipient,
1318
+ _request_auth,
1319
+ _content_type,
1320
+ _headers,
1321
+ _host_index,
1322
+ ) -> RequestSerialized:
1323
+
1324
+ _host = None
1325
+
1326
+ _collection_formats: Dict[str, str] = {
1327
+ }
1328
+
1329
+ _path_params: Dict[str, str] = {}
1330
+ _query_params: List[Tuple[str, str]] = []
1331
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1332
+ _form_params: List[Tuple[str, str]] = []
1333
+ _files: Dict[str, Union[str, bytes]] = {}
1334
+ _body_params: Optional[bytes] = None
1335
+
1336
+ # process the path parameters
1337
+ if id is not None:
1338
+ _path_params['id'] = id
1339
+ # process the query parameters
1340
+ # process the header parameters
1341
+ # process the form parameters
1342
+ # process the body parameter
1343
+ if update_payment_recipient is not None:
1344
+ _body_params = update_payment_recipient
1345
+
1346
+
1347
+ # set the HTTP header `Accept`
1348
+ _header_params['Accept'] = self.api_client.select_header_accept(
1349
+ [
1350
+ 'application/json'
1351
+ ]
1352
+ )
1353
+
1354
+ # set the HTTP header `Content-Type`
1355
+ if _content_type:
1356
+ _header_params['Content-Type'] = _content_type
1357
+ else:
1358
+ _default_content_type = (
1359
+ self.api_client.select_header_content_type(
1360
+ [
1361
+ 'application/json'
1362
+ ]
1363
+ )
1364
+ )
1365
+ if _default_content_type is not None:
1366
+ _header_params['Content-Type'] = _default_content_type
1367
+
1368
+ # authentication setting
1369
+ _auth_settings: List[str] = [
1370
+ 'default'
1371
+ ]
1372
+
1373
+ return self.api_client.param_serialize(
1374
+ method='PATCH',
1375
+ resource_path='/payments/recipients/{id}',
1376
+ path_params=_path_params,
1377
+ query_params=_query_params,
1378
+ header_params=_header_params,
1379
+ body=_body_params,
1380
+ post_params=_form_params,
1381
+ files=_files,
1382
+ auth_settings=_auth_settings,
1383
+ collection_formats=_collection_formats,
1384
+ _host=_host,
1385
+ _request_auth=_request_auth
1386
+ )
1387
+
1388
+
1389
+
1390
+
1391
+ @validate_call
1392
+ def payment_recipients_institution_list(
1393
+ self,
1394
+ page_size: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Page size for the paging request, default: 20")] = None,
1395
+ page: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Page number for the paging request, default: 1")] = None,
1396
+ name: Annotated[Optional[StrictStr], Field(description="Filter institutions by name")] = None,
1397
+ _request_timeout: Union[
1398
+ None,
1399
+ Annotated[StrictFloat, Field(gt=0)],
1400
+ Tuple[
1401
+ Annotated[StrictFloat, Field(gt=0)],
1402
+ Annotated[StrictFloat, Field(gt=0)]
1403
+ ]
1404
+ ] = None,
1405
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1406
+ _content_type: Optional[StrictStr] = None,
1407
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1408
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1409
+ ) -> PaymentRecipientsInstitutionList200Response:
1410
+ """List Institutions
1411
+
1412
+ Recovers all created payment institutions
1413
+
1414
+ :param page_size: Page size for the paging request, default: 20
1415
+ :type page_size: float
1416
+ :param page: Page number for the paging request, default: 1
1417
+ :type page: float
1418
+ :param name: Filter institutions by name
1419
+ :type name: str
1420
+ :param _request_timeout: timeout setting for this request. If one
1421
+ number provided, it will be total request
1422
+ timeout. It can also be a pair (tuple) of
1423
+ (connection, read) timeouts.
1424
+ :type _request_timeout: int, tuple(int, int), optional
1425
+ :param _request_auth: set to override the auth_settings for an a single
1426
+ request; this effectively ignores the
1427
+ authentication in the spec for a single request.
1428
+ :type _request_auth: dict, optional
1429
+ :param _content_type: force content-type for the request.
1430
+ :type _content_type: str, Optional
1431
+ :param _headers: set to override the headers for a single
1432
+ request; this effectively ignores the headers
1433
+ in the spec for a single request.
1434
+ :type _headers: dict, optional
1435
+ :param _host_index: set to override the host_index for a single
1436
+ request; this effectively ignores the host_index
1437
+ in the spec for a single request.
1438
+ :type _host_index: int, optional
1439
+ :return: Returns the result object.
1440
+ """ # noqa: E501
1441
+
1442
+ _param = self._payment_recipients_institution_list_serialize(
1443
+ page_size=page_size,
1444
+ page=page,
1445
+ name=name,
1446
+ _request_auth=_request_auth,
1447
+ _content_type=_content_type,
1448
+ _headers=_headers,
1449
+ _host_index=_host_index
1450
+ )
1451
+
1452
+ _response_types_map: Dict[str, Optional[str]] = {
1453
+ '200': "PaymentRecipientsInstitutionList200Response",
1454
+ }
1455
+ response_data = self.api_client.call_api(
1456
+ *_param,
1457
+ _request_timeout=_request_timeout
1458
+ )
1459
+ response_data.read()
1460
+ return self.api_client.response_deserialize(
1461
+ response_data=response_data,
1462
+ response_types_map=_response_types_map,
1463
+ ).data
1464
+
1465
+
1466
+ @validate_call
1467
+ def payment_recipients_institution_list_with_http_info(
1468
+ self,
1469
+ page_size: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Page size for the paging request, default: 20")] = None,
1470
+ page: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Page number for the paging request, default: 1")] = None,
1471
+ name: Annotated[Optional[StrictStr], Field(description="Filter institutions by name")] = None,
1472
+ _request_timeout: Union[
1473
+ None,
1474
+ Annotated[StrictFloat, Field(gt=0)],
1475
+ Tuple[
1476
+ Annotated[StrictFloat, Field(gt=0)],
1477
+ Annotated[StrictFloat, Field(gt=0)]
1478
+ ]
1479
+ ] = None,
1480
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1481
+ _content_type: Optional[StrictStr] = None,
1482
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1483
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1484
+ ) -> ApiResponse[PaymentRecipientsInstitutionList200Response]:
1485
+ """List Institutions
1486
+
1487
+ Recovers all created payment institutions
1488
+
1489
+ :param page_size: Page size for the paging request, default: 20
1490
+ :type page_size: float
1491
+ :param page: Page number for the paging request, default: 1
1492
+ :type page: float
1493
+ :param name: Filter institutions by name
1494
+ :type name: str
1495
+ :param _request_timeout: timeout setting for this request. If one
1496
+ number provided, it will be total request
1497
+ timeout. It can also be a pair (tuple) of
1498
+ (connection, read) timeouts.
1499
+ :type _request_timeout: int, tuple(int, int), optional
1500
+ :param _request_auth: set to override the auth_settings for an a single
1501
+ request; this effectively ignores the
1502
+ authentication in the spec for a single request.
1503
+ :type _request_auth: dict, optional
1504
+ :param _content_type: force content-type for the request.
1505
+ :type _content_type: str, Optional
1506
+ :param _headers: set to override the headers for a single
1507
+ request; this effectively ignores the headers
1508
+ in the spec for a single request.
1509
+ :type _headers: dict, optional
1510
+ :param _host_index: set to override the host_index for a single
1511
+ request; this effectively ignores the host_index
1512
+ in the spec for a single request.
1513
+ :type _host_index: int, optional
1514
+ :return: Returns the result object.
1515
+ """ # noqa: E501
1516
+
1517
+ _param = self._payment_recipients_institution_list_serialize(
1518
+ page_size=page_size,
1519
+ page=page,
1520
+ name=name,
1521
+ _request_auth=_request_auth,
1522
+ _content_type=_content_type,
1523
+ _headers=_headers,
1524
+ _host_index=_host_index
1525
+ )
1526
+
1527
+ _response_types_map: Dict[str, Optional[str]] = {
1528
+ '200': "PaymentRecipientsInstitutionList200Response",
1529
+ }
1530
+ response_data = self.api_client.call_api(
1531
+ *_param,
1532
+ _request_timeout=_request_timeout
1533
+ )
1534
+ response_data.read()
1535
+ return self.api_client.response_deserialize(
1536
+ response_data=response_data,
1537
+ response_types_map=_response_types_map,
1538
+ )
1539
+
1540
+
1541
+ @validate_call
1542
+ def payment_recipients_institution_list_without_preload_content(
1543
+ self,
1544
+ page_size: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Page size for the paging request, default: 20")] = None,
1545
+ page: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Page number for the paging request, default: 1")] = None,
1546
+ name: Annotated[Optional[StrictStr], Field(description="Filter institutions by name")] = None,
1547
+ _request_timeout: Union[
1548
+ None,
1549
+ Annotated[StrictFloat, Field(gt=0)],
1550
+ Tuple[
1551
+ Annotated[StrictFloat, Field(gt=0)],
1552
+ Annotated[StrictFloat, Field(gt=0)]
1553
+ ]
1554
+ ] = None,
1555
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1556
+ _content_type: Optional[StrictStr] = None,
1557
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1558
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1559
+ ) -> RESTResponseType:
1560
+ """List Institutions
1561
+
1562
+ Recovers all created payment institutions
1563
+
1564
+ :param page_size: Page size for the paging request, default: 20
1565
+ :type page_size: float
1566
+ :param page: Page number for the paging request, default: 1
1567
+ :type page: float
1568
+ :param name: Filter institutions by name
1569
+ :type name: str
1570
+ :param _request_timeout: timeout setting for this request. If one
1571
+ number provided, it will be total request
1572
+ timeout. It can also be a pair (tuple) of
1573
+ (connection, read) timeouts.
1574
+ :type _request_timeout: int, tuple(int, int), optional
1575
+ :param _request_auth: set to override the auth_settings for an a single
1576
+ request; this effectively ignores the
1577
+ authentication in the spec for a single request.
1578
+ :type _request_auth: dict, optional
1579
+ :param _content_type: force content-type for the request.
1580
+ :type _content_type: str, Optional
1581
+ :param _headers: set to override the headers for a single
1582
+ request; this effectively ignores the headers
1583
+ in the spec for a single request.
1584
+ :type _headers: dict, optional
1585
+ :param _host_index: set to override the host_index for a single
1586
+ request; this effectively ignores the host_index
1587
+ in the spec for a single request.
1588
+ :type _host_index: int, optional
1589
+ :return: Returns the result object.
1590
+ """ # noqa: E501
1591
+
1592
+ _param = self._payment_recipients_institution_list_serialize(
1593
+ page_size=page_size,
1594
+ page=page,
1595
+ name=name,
1596
+ _request_auth=_request_auth,
1597
+ _content_type=_content_type,
1598
+ _headers=_headers,
1599
+ _host_index=_host_index
1600
+ )
1601
+
1602
+ _response_types_map: Dict[str, Optional[str]] = {
1603
+ '200': "PaymentRecipientsInstitutionList200Response",
1604
+ }
1605
+ response_data = self.api_client.call_api(
1606
+ *_param,
1607
+ _request_timeout=_request_timeout
1608
+ )
1609
+ return response_data.response
1610
+
1611
+
1612
+ def _payment_recipients_institution_list_serialize(
1613
+ self,
1614
+ page_size,
1615
+ page,
1616
+ name,
1617
+ _request_auth,
1618
+ _content_type,
1619
+ _headers,
1620
+ _host_index,
1621
+ ) -> RequestSerialized:
1622
+
1623
+ _host = None
1624
+
1625
+ _collection_formats: Dict[str, str] = {
1626
+ }
1627
+
1628
+ _path_params: Dict[str, str] = {}
1629
+ _query_params: List[Tuple[str, str]] = []
1630
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1631
+ _form_params: List[Tuple[str, str]] = []
1632
+ _files: Dict[str, Union[str, bytes]] = {}
1633
+ _body_params: Optional[bytes] = None
1634
+
1635
+ # process the path parameters
1636
+ # process the query parameters
1637
+ if page_size is not None:
1638
+
1639
+ _query_params.append(('pageSize', page_size))
1640
+
1641
+ if page is not None:
1642
+
1643
+ _query_params.append(('page', page))
1644
+
1645
+ if name is not None:
1646
+
1647
+ _query_params.append(('name', name))
1648
+
1649
+ # process the header parameters
1650
+ # process the form parameters
1651
+ # process the body parameter
1652
+
1653
+
1654
+ # set the HTTP header `Accept`
1655
+ _header_params['Accept'] = self.api_client.select_header_accept(
1656
+ [
1657
+ 'application/json'
1658
+ ]
1659
+ )
1660
+
1661
+
1662
+ # authentication setting
1663
+ _auth_settings: List[str] = [
1664
+ 'default'
1665
+ ]
1666
+
1667
+ return self.api_client.param_serialize(
1668
+ method='GET',
1669
+ resource_path='/payments/recipients/institutions',
1670
+ path_params=_path_params,
1671
+ query_params=_query_params,
1672
+ header_params=_header_params,
1673
+ body=_body_params,
1674
+ post_params=_form_params,
1675
+ files=_files,
1676
+ auth_settings=_auth_settings,
1677
+ collection_formats=_collection_formats,
1678
+ _host=_host,
1679
+ _request_auth=_request_auth
1680
+ )
1681
+
1682
+
1683
+
1684
+
1685
+ @validate_call
1686
+ def payment_recipients_list(
1687
+ self,
1688
+ is_default: Annotated[Optional[StrictBool], Field(description="Filter recipients only if its default or not")] = None,
1689
+ page_size: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Page size for the paging request, default: 20")] = None,
1690
+ page: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Page number for the paging request, default: 1")] = None,
1691
+ _request_timeout: Union[
1692
+ None,
1693
+ Annotated[StrictFloat, Field(gt=0)],
1694
+ Tuple[
1695
+ Annotated[StrictFloat, Field(gt=0)],
1696
+ Annotated[StrictFloat, Field(gt=0)]
1697
+ ]
1698
+ ] = None,
1699
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1700
+ _content_type: Optional[StrictStr] = None,
1701
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1702
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1703
+ ) -> PaymentRecipientsList200Response:
1704
+ """List
1705
+
1706
+ Recovers all created payment recipients
1707
+
1708
+ :param is_default: Filter recipients only if its default or not
1709
+ :type is_default: bool
1710
+ :param page_size: Page size for the paging request, default: 20
1711
+ :type page_size: float
1712
+ :param page: Page number for the paging request, default: 1
1713
+ :type page: float
1714
+ :param _request_timeout: timeout setting for this request. If one
1715
+ number provided, it will be total request
1716
+ timeout. It can also be a pair (tuple) of
1717
+ (connection, read) timeouts.
1718
+ :type _request_timeout: int, tuple(int, int), optional
1719
+ :param _request_auth: set to override the auth_settings for an a single
1720
+ request; this effectively ignores the
1721
+ authentication in the spec for a single request.
1722
+ :type _request_auth: dict, optional
1723
+ :param _content_type: force content-type for the request.
1724
+ :type _content_type: str, Optional
1725
+ :param _headers: set to override the headers for a single
1726
+ request; this effectively ignores the headers
1727
+ in the spec for a single request.
1728
+ :type _headers: dict, optional
1729
+ :param _host_index: set to override the host_index for a single
1730
+ request; this effectively ignores the host_index
1731
+ in the spec for a single request.
1732
+ :type _host_index: int, optional
1733
+ :return: Returns the result object.
1734
+ """ # noqa: E501
1735
+
1736
+ _param = self._payment_recipients_list_serialize(
1737
+ is_default=is_default,
1738
+ page_size=page_size,
1739
+ page=page,
1740
+ _request_auth=_request_auth,
1741
+ _content_type=_content_type,
1742
+ _headers=_headers,
1743
+ _host_index=_host_index
1744
+ )
1745
+
1746
+ _response_types_map: Dict[str, Optional[str]] = {
1747
+ '200': "PaymentRecipientsList200Response",
1748
+ }
1749
+ response_data = self.api_client.call_api(
1750
+ *_param,
1751
+ _request_timeout=_request_timeout
1752
+ )
1753
+ response_data.read()
1754
+ return self.api_client.response_deserialize(
1755
+ response_data=response_data,
1756
+ response_types_map=_response_types_map,
1757
+ ).data
1758
+
1759
+
1760
+ @validate_call
1761
+ def payment_recipients_list_with_http_info(
1762
+ self,
1763
+ is_default: Annotated[Optional[StrictBool], Field(description="Filter recipients only if its default or not")] = None,
1764
+ page_size: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Page size for the paging request, default: 20")] = None,
1765
+ page: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Page number for the paging request, default: 1")] = None,
1766
+ _request_timeout: Union[
1767
+ None,
1768
+ Annotated[StrictFloat, Field(gt=0)],
1769
+ Tuple[
1770
+ Annotated[StrictFloat, Field(gt=0)],
1771
+ Annotated[StrictFloat, Field(gt=0)]
1772
+ ]
1773
+ ] = None,
1774
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1775
+ _content_type: Optional[StrictStr] = None,
1776
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1777
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1778
+ ) -> ApiResponse[PaymentRecipientsList200Response]:
1779
+ """List
1780
+
1781
+ Recovers all created payment recipients
1782
+
1783
+ :param is_default: Filter recipients only if its default or not
1784
+ :type is_default: bool
1785
+ :param page_size: Page size for the paging request, default: 20
1786
+ :type page_size: float
1787
+ :param page: Page number for the paging request, default: 1
1788
+ :type page: float
1789
+ :param _request_timeout: timeout setting for this request. If one
1790
+ number provided, it will be total request
1791
+ timeout. It can also be a pair (tuple) of
1792
+ (connection, read) timeouts.
1793
+ :type _request_timeout: int, tuple(int, int), optional
1794
+ :param _request_auth: set to override the auth_settings for an a single
1795
+ request; this effectively ignores the
1796
+ authentication in the spec for a single request.
1797
+ :type _request_auth: dict, optional
1798
+ :param _content_type: force content-type for the request.
1799
+ :type _content_type: str, Optional
1800
+ :param _headers: set to override the headers for a single
1801
+ request; this effectively ignores the headers
1802
+ in the spec for a single request.
1803
+ :type _headers: dict, optional
1804
+ :param _host_index: set to override the host_index for a single
1805
+ request; this effectively ignores the host_index
1806
+ in the spec for a single request.
1807
+ :type _host_index: int, optional
1808
+ :return: Returns the result object.
1809
+ """ # noqa: E501
1810
+
1811
+ _param = self._payment_recipients_list_serialize(
1812
+ is_default=is_default,
1813
+ page_size=page_size,
1814
+ page=page,
1815
+ _request_auth=_request_auth,
1816
+ _content_type=_content_type,
1817
+ _headers=_headers,
1818
+ _host_index=_host_index
1819
+ )
1820
+
1821
+ _response_types_map: Dict[str, Optional[str]] = {
1822
+ '200': "PaymentRecipientsList200Response",
1823
+ }
1824
+ response_data = self.api_client.call_api(
1825
+ *_param,
1826
+ _request_timeout=_request_timeout
1827
+ )
1828
+ response_data.read()
1829
+ return self.api_client.response_deserialize(
1830
+ response_data=response_data,
1831
+ response_types_map=_response_types_map,
1832
+ )
1833
+
1834
+
1835
+ @validate_call
1836
+ def payment_recipients_list_without_preload_content(
1837
+ self,
1838
+ is_default: Annotated[Optional[StrictBool], Field(description="Filter recipients only if its default or not")] = None,
1839
+ page_size: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Page size for the paging request, default: 20")] = None,
1840
+ page: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Page number for the paging request, default: 1")] = None,
1841
+ _request_timeout: Union[
1842
+ None,
1843
+ Annotated[StrictFloat, Field(gt=0)],
1844
+ Tuple[
1845
+ Annotated[StrictFloat, Field(gt=0)],
1846
+ Annotated[StrictFloat, Field(gt=0)]
1847
+ ]
1848
+ ] = None,
1849
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1850
+ _content_type: Optional[StrictStr] = None,
1851
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1852
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1853
+ ) -> RESTResponseType:
1854
+ """List
1855
+
1856
+ Recovers all created payment recipients
1857
+
1858
+ :param is_default: Filter recipients only if its default or not
1859
+ :type is_default: bool
1860
+ :param page_size: Page size for the paging request, default: 20
1861
+ :type page_size: float
1862
+ :param page: Page number for the paging request, default: 1
1863
+ :type page: float
1864
+ :param _request_timeout: timeout setting for this request. If one
1865
+ number provided, it will be total request
1866
+ timeout. It can also be a pair (tuple) of
1867
+ (connection, read) timeouts.
1868
+ :type _request_timeout: int, tuple(int, int), optional
1869
+ :param _request_auth: set to override the auth_settings for an a single
1870
+ request; this effectively ignores the
1871
+ authentication in the spec for a single request.
1872
+ :type _request_auth: dict, optional
1873
+ :param _content_type: force content-type for the request.
1874
+ :type _content_type: str, Optional
1875
+ :param _headers: set to override the headers for a single
1876
+ request; this effectively ignores the headers
1877
+ in the spec for a single request.
1878
+ :type _headers: dict, optional
1879
+ :param _host_index: set to override the host_index for a single
1880
+ request; this effectively ignores the host_index
1881
+ in the spec for a single request.
1882
+ :type _host_index: int, optional
1883
+ :return: Returns the result object.
1884
+ """ # noqa: E501
1885
+
1886
+ _param = self._payment_recipients_list_serialize(
1887
+ is_default=is_default,
1888
+ page_size=page_size,
1889
+ page=page,
1890
+ _request_auth=_request_auth,
1891
+ _content_type=_content_type,
1892
+ _headers=_headers,
1893
+ _host_index=_host_index
1894
+ )
1895
+
1896
+ _response_types_map: Dict[str, Optional[str]] = {
1897
+ '200': "PaymentRecipientsList200Response",
1898
+ }
1899
+ response_data = self.api_client.call_api(
1900
+ *_param,
1901
+ _request_timeout=_request_timeout
1902
+ )
1903
+ return response_data.response
1904
+
1905
+
1906
+ def _payment_recipients_list_serialize(
1907
+ self,
1908
+ is_default,
1909
+ page_size,
1910
+ page,
1911
+ _request_auth,
1912
+ _content_type,
1913
+ _headers,
1914
+ _host_index,
1915
+ ) -> RequestSerialized:
1916
+
1917
+ _host = None
1918
+
1919
+ _collection_formats: Dict[str, str] = {
1920
+ }
1921
+
1922
+ _path_params: Dict[str, str] = {}
1923
+ _query_params: List[Tuple[str, str]] = []
1924
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1925
+ _form_params: List[Tuple[str, str]] = []
1926
+ _files: Dict[str, Union[str, bytes]] = {}
1927
+ _body_params: Optional[bytes] = None
1928
+
1929
+ # process the path parameters
1930
+ # process the query parameters
1931
+ if is_default is not None:
1932
+
1933
+ _query_params.append(('isDefault', is_default))
1934
+
1935
+ if page_size is not None:
1936
+
1937
+ _query_params.append(('pageSize', page_size))
1938
+
1939
+ if page is not None:
1940
+
1941
+ _query_params.append(('page', page))
1942
+
1943
+ # process the header parameters
1944
+ # process the form parameters
1945
+ # process the body parameter
1946
+
1947
+
1948
+ # set the HTTP header `Accept`
1949
+ _header_params['Accept'] = self.api_client.select_header_accept(
1950
+ [
1951
+ 'application/json'
1952
+ ]
1953
+ )
1954
+
1955
+
1956
+ # authentication setting
1957
+ _auth_settings: List[str] = [
1958
+ 'default'
1959
+ ]
1960
+
1961
+ return self.api_client.param_serialize(
1962
+ method='GET',
1963
+ resource_path='/payments/recipients',
1964
+ path_params=_path_params,
1965
+ query_params=_query_params,
1966
+ header_params=_header_params,
1967
+ body=_body_params,
1968
+ post_params=_form_params,
1969
+ files=_files,
1970
+ auth_settings=_auth_settings,
1971
+ collection_formats=_collection_formats,
1972
+ _host=_host,
1973
+ _request_auth=_request_auth
1974
+ )
1975
+
1976
+