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,970 @@
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, field_validator
21
+ from typing import Dict, List, Optional, Union
22
+ from typing_extensions import Annotated
23
+ from pluggy_sdk.models.connector import Connector
24
+ from pluggy_sdk.models.connector_list_response import ConnectorListResponse
25
+ from pluggy_sdk.models.parameter_validation_response import ParameterValidationResponse
26
+
27
+ from pluggy_sdk.api_client import ApiClient, RequestSerialized
28
+ from pluggy_sdk.api_response import ApiResponse
29
+ from pluggy_sdk.rest import RESTResponseType
30
+
31
+
32
+ class ConnectorApi:
33
+ """NOTE: This class is auto generated by OpenAPI Generator
34
+ Ref: https://openapi-generator.tech
35
+
36
+ Do not edit the class manually.
37
+ """
38
+
39
+ def __init__(self, api_client=None) -> None:
40
+ if api_client is None:
41
+ api_client = ApiClient.get_default()
42
+ self.api_client = api_client
43
+
44
+
45
+ @validate_call
46
+ def connector_retrieve(
47
+ self,
48
+ id: Annotated[Union[StrictFloat, StrictInt], Field(description="Connector primary identifier")],
49
+ health_details: Annotated[Optional[StrictBool], Field(description="Include health details about latest connections and percentage of errors (connection rate)")] = None,
50
+ _request_timeout: Union[
51
+ None,
52
+ Annotated[StrictFloat, Field(gt=0)],
53
+ Tuple[
54
+ Annotated[StrictFloat, Field(gt=0)],
55
+ Annotated[StrictFloat, Field(gt=0)]
56
+ ]
57
+ ] = None,
58
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
59
+ _content_type: Optional[StrictStr] = None,
60
+ _headers: Optional[Dict[StrictStr, Any]] = None,
61
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
62
+ ) -> Connector:
63
+ """Retrieve
64
+
65
+ This endpoint retrieves a specific connector.
66
+
67
+ :param id: Connector primary identifier (required)
68
+ :type id: float
69
+ :param health_details: Include health details about latest connections and percentage of errors (connection rate)
70
+ :type health_details: bool
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._connector_retrieve_serialize(
94
+ id=id,
95
+ health_details=health_details,
96
+ _request_auth=_request_auth,
97
+ _content_type=_content_type,
98
+ _headers=_headers,
99
+ _host_index=_host_index
100
+ )
101
+
102
+ _response_types_map: Dict[str, Optional[str]] = {
103
+ '200': "Connector",
104
+ '404': "GlobalErrorResponse",
105
+ }
106
+ response_data = self.api_client.call_api(
107
+ *_param,
108
+ _request_timeout=_request_timeout
109
+ )
110
+ response_data.read()
111
+ return self.api_client.response_deserialize(
112
+ response_data=response_data,
113
+ response_types_map=_response_types_map,
114
+ ).data
115
+
116
+
117
+ @validate_call
118
+ def connector_retrieve_with_http_info(
119
+ self,
120
+ id: Annotated[Union[StrictFloat, StrictInt], Field(description="Connector primary identifier")],
121
+ health_details: Annotated[Optional[StrictBool], Field(description="Include health details about latest connections and percentage of errors (connection rate)")] = None,
122
+ _request_timeout: Union[
123
+ None,
124
+ Annotated[StrictFloat, Field(gt=0)],
125
+ Tuple[
126
+ Annotated[StrictFloat, Field(gt=0)],
127
+ Annotated[StrictFloat, Field(gt=0)]
128
+ ]
129
+ ] = None,
130
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
131
+ _content_type: Optional[StrictStr] = None,
132
+ _headers: Optional[Dict[StrictStr, Any]] = None,
133
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
134
+ ) -> ApiResponse[Connector]:
135
+ """Retrieve
136
+
137
+ This endpoint retrieves a specific connector.
138
+
139
+ :param id: Connector primary identifier (required)
140
+ :type id: float
141
+ :param health_details: Include health details about latest connections and percentage of errors (connection rate)
142
+ :type health_details: bool
143
+ :param _request_timeout: timeout setting for this request. If one
144
+ number provided, it will be total request
145
+ timeout. It can also be a pair (tuple) of
146
+ (connection, read) timeouts.
147
+ :type _request_timeout: int, tuple(int, int), optional
148
+ :param _request_auth: set to override the auth_settings for an a single
149
+ request; this effectively ignores the
150
+ authentication in the spec for a single request.
151
+ :type _request_auth: dict, optional
152
+ :param _content_type: force content-type for the request.
153
+ :type _content_type: str, Optional
154
+ :param _headers: set to override the headers for a single
155
+ request; this effectively ignores the headers
156
+ in the spec for a single request.
157
+ :type _headers: dict, optional
158
+ :param _host_index: set to override the host_index for a single
159
+ request; this effectively ignores the host_index
160
+ in the spec for a single request.
161
+ :type _host_index: int, optional
162
+ :return: Returns the result object.
163
+ """ # noqa: E501
164
+
165
+ _param = self._connector_retrieve_serialize(
166
+ id=id,
167
+ health_details=health_details,
168
+ _request_auth=_request_auth,
169
+ _content_type=_content_type,
170
+ _headers=_headers,
171
+ _host_index=_host_index
172
+ )
173
+
174
+ _response_types_map: Dict[str, Optional[str]] = {
175
+ '200': "Connector",
176
+ '404': "GlobalErrorResponse",
177
+ }
178
+ response_data = self.api_client.call_api(
179
+ *_param,
180
+ _request_timeout=_request_timeout
181
+ )
182
+ response_data.read()
183
+ return self.api_client.response_deserialize(
184
+ response_data=response_data,
185
+ response_types_map=_response_types_map,
186
+ )
187
+
188
+
189
+ @validate_call
190
+ def connector_retrieve_without_preload_content(
191
+ self,
192
+ id: Annotated[Union[StrictFloat, StrictInt], Field(description="Connector primary identifier")],
193
+ health_details: Annotated[Optional[StrictBool], Field(description="Include health details about latest connections and percentage of errors (connection rate)")] = None,
194
+ _request_timeout: Union[
195
+ None,
196
+ Annotated[StrictFloat, Field(gt=0)],
197
+ Tuple[
198
+ Annotated[StrictFloat, Field(gt=0)],
199
+ Annotated[StrictFloat, Field(gt=0)]
200
+ ]
201
+ ] = None,
202
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
203
+ _content_type: Optional[StrictStr] = None,
204
+ _headers: Optional[Dict[StrictStr, Any]] = None,
205
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
206
+ ) -> RESTResponseType:
207
+ """Retrieve
208
+
209
+ This endpoint retrieves a specific connector.
210
+
211
+ :param id: Connector primary identifier (required)
212
+ :type id: float
213
+ :param health_details: Include health details about latest connections and percentage of errors (connection rate)
214
+ :type health_details: bool
215
+ :param _request_timeout: timeout setting for this request. If one
216
+ number provided, it will be total request
217
+ timeout. It can also be a pair (tuple) of
218
+ (connection, read) timeouts.
219
+ :type _request_timeout: int, tuple(int, int), optional
220
+ :param _request_auth: set to override the auth_settings for an a single
221
+ request; this effectively ignores the
222
+ authentication in the spec for a single request.
223
+ :type _request_auth: dict, optional
224
+ :param _content_type: force content-type for the request.
225
+ :type _content_type: str, Optional
226
+ :param _headers: set to override the headers for a single
227
+ request; this effectively ignores the headers
228
+ in the spec for a single request.
229
+ :type _headers: dict, optional
230
+ :param _host_index: set to override the host_index for a single
231
+ request; this effectively ignores the host_index
232
+ in the spec for a single request.
233
+ :type _host_index: int, optional
234
+ :return: Returns the result object.
235
+ """ # noqa: E501
236
+
237
+ _param = self._connector_retrieve_serialize(
238
+ id=id,
239
+ health_details=health_details,
240
+ _request_auth=_request_auth,
241
+ _content_type=_content_type,
242
+ _headers=_headers,
243
+ _host_index=_host_index
244
+ )
245
+
246
+ _response_types_map: Dict[str, Optional[str]] = {
247
+ '200': "Connector",
248
+ '404': "GlobalErrorResponse",
249
+ }
250
+ response_data = self.api_client.call_api(
251
+ *_param,
252
+ _request_timeout=_request_timeout
253
+ )
254
+ return response_data.response
255
+
256
+
257
+ def _connector_retrieve_serialize(
258
+ self,
259
+ id,
260
+ health_details,
261
+ _request_auth,
262
+ _content_type,
263
+ _headers,
264
+ _host_index,
265
+ ) -> RequestSerialized:
266
+
267
+ _host = None
268
+
269
+ _collection_formats: Dict[str, str] = {
270
+ }
271
+
272
+ _path_params: Dict[str, str] = {}
273
+ _query_params: List[Tuple[str, str]] = []
274
+ _header_params: Dict[str, Optional[str]] = _headers or {}
275
+ _form_params: List[Tuple[str, str]] = []
276
+ _files: Dict[str, Union[str, bytes]] = {}
277
+ _body_params: Optional[bytes] = None
278
+
279
+ # process the path parameters
280
+ if id is not None:
281
+ _path_params['id'] = id
282
+ # process the query parameters
283
+ if health_details is not None:
284
+
285
+ _query_params.append(('healthDetails', health_details))
286
+
287
+ # process the header parameters
288
+ # process the form parameters
289
+ # process the body parameter
290
+
291
+
292
+ # set the HTTP header `Accept`
293
+ _header_params['Accept'] = self.api_client.select_header_accept(
294
+ [
295
+ 'application/json'
296
+ ]
297
+ )
298
+
299
+
300
+ # authentication setting
301
+ _auth_settings: List[str] = [
302
+ 'default'
303
+ ]
304
+
305
+ return self.api_client.param_serialize(
306
+ method='GET',
307
+ resource_path='/connectors/{id}',
308
+ path_params=_path_params,
309
+ query_params=_query_params,
310
+ header_params=_header_params,
311
+ body=_body_params,
312
+ post_params=_form_params,
313
+ files=_files,
314
+ auth_settings=_auth_settings,
315
+ collection_formats=_collection_formats,
316
+ _host=_host,
317
+ _request_auth=_request_auth
318
+ )
319
+
320
+
321
+
322
+
323
+ @validate_call
324
+ def connectors_list(
325
+ self,
326
+ countries: Annotated[Optional[List[StrictStr]], Field(description="A list of countries of connectors to filter.")] = None,
327
+ types: Annotated[Optional[List[StrictStr]], Field(description="A list of types of connectors to filter.")] = None,
328
+ name: Annotated[Optional[StrictStr], Field(description="Name alike look up of the connector")] = None,
329
+ sandbox: Annotated[Optional[StrictBool], Field(description="Include sandbox connectors if set to true (default: false).")] = None,
330
+ health_details: Annotated[Optional[StrictBool], Field(description="Include health details about latest connections and percentage of errors (connection rate)")] = None,
331
+ is_open_finance: Annotated[Optional[StrictBool], Field(description="Filter connectors by the `isOpenFinance` attribute. If not sent, it won't filter.")] = None,
332
+ supports_payment_initiation: Annotated[Optional[StrictBool], Field(description="Filter connectors by the `supportsPaymentInitiation` attribute. If not sent, it won't filter.")] = None,
333
+ _request_timeout: Union[
334
+ None,
335
+ Annotated[StrictFloat, Field(gt=0)],
336
+ Tuple[
337
+ Annotated[StrictFloat, Field(gt=0)],
338
+ Annotated[StrictFloat, Field(gt=0)]
339
+ ]
340
+ ] = None,
341
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
342
+ _content_type: Optional[StrictStr] = None,
343
+ _headers: Optional[Dict[StrictStr, Any]] = None,
344
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
345
+ ) -> ConnectorListResponse:
346
+ """List
347
+
348
+ This endpoint retrieves all available connectors.
349
+
350
+ :param countries: A list of countries of connectors to filter.
351
+ :type countries: List[str]
352
+ :param types: A list of types of connectors to filter.
353
+ :type types: List[str]
354
+ :param name: Name alike look up of the connector
355
+ :type name: str
356
+ :param sandbox: Include sandbox connectors if set to true (default: false).
357
+ :type sandbox: bool
358
+ :param health_details: Include health details about latest connections and percentage of errors (connection rate)
359
+ :type health_details: bool
360
+ :param is_open_finance: Filter connectors by the `isOpenFinance` attribute. If not sent, it won't filter.
361
+ :type is_open_finance: bool
362
+ :param supports_payment_initiation: Filter connectors by the `supportsPaymentInitiation` attribute. If not sent, it won't filter.
363
+ :type supports_payment_initiation: bool
364
+ :param _request_timeout: timeout setting for this request. If one
365
+ number provided, it will be total request
366
+ timeout. It can also be a pair (tuple) of
367
+ (connection, read) timeouts.
368
+ :type _request_timeout: int, tuple(int, int), optional
369
+ :param _request_auth: set to override the auth_settings for an a single
370
+ request; this effectively ignores the
371
+ authentication in the spec for a single request.
372
+ :type _request_auth: dict, optional
373
+ :param _content_type: force content-type for the request.
374
+ :type _content_type: str, Optional
375
+ :param _headers: set to override the headers for a single
376
+ request; this effectively ignores the headers
377
+ in the spec for a single request.
378
+ :type _headers: dict, optional
379
+ :param _host_index: set to override the host_index for a single
380
+ request; this effectively ignores the host_index
381
+ in the spec for a single request.
382
+ :type _host_index: int, optional
383
+ :return: Returns the result object.
384
+ """ # noqa: E501
385
+
386
+ _param = self._connectors_list_serialize(
387
+ countries=countries,
388
+ types=types,
389
+ name=name,
390
+ sandbox=sandbox,
391
+ health_details=health_details,
392
+ is_open_finance=is_open_finance,
393
+ supports_payment_initiation=supports_payment_initiation,
394
+ _request_auth=_request_auth,
395
+ _content_type=_content_type,
396
+ _headers=_headers,
397
+ _host_index=_host_index
398
+ )
399
+
400
+ _response_types_map: Dict[str, Optional[str]] = {
401
+ '200': "ConnectorListResponse",
402
+ }
403
+ response_data = self.api_client.call_api(
404
+ *_param,
405
+ _request_timeout=_request_timeout
406
+ )
407
+ response_data.read()
408
+ return self.api_client.response_deserialize(
409
+ response_data=response_data,
410
+ response_types_map=_response_types_map,
411
+ ).data
412
+
413
+
414
+ @validate_call
415
+ def connectors_list_with_http_info(
416
+ self,
417
+ countries: Annotated[Optional[List[StrictStr]], Field(description="A list of countries of connectors to filter.")] = None,
418
+ types: Annotated[Optional[List[StrictStr]], Field(description="A list of types of connectors to filter.")] = None,
419
+ name: Annotated[Optional[StrictStr], Field(description="Name alike look up of the connector")] = None,
420
+ sandbox: Annotated[Optional[StrictBool], Field(description="Include sandbox connectors if set to true (default: false).")] = None,
421
+ health_details: Annotated[Optional[StrictBool], Field(description="Include health details about latest connections and percentage of errors (connection rate)")] = None,
422
+ is_open_finance: Annotated[Optional[StrictBool], Field(description="Filter connectors by the `isOpenFinance` attribute. If not sent, it won't filter.")] = None,
423
+ supports_payment_initiation: Annotated[Optional[StrictBool], Field(description="Filter connectors by the `supportsPaymentInitiation` attribute. If not sent, it won't filter.")] = None,
424
+ _request_timeout: Union[
425
+ None,
426
+ Annotated[StrictFloat, Field(gt=0)],
427
+ Tuple[
428
+ Annotated[StrictFloat, Field(gt=0)],
429
+ Annotated[StrictFloat, Field(gt=0)]
430
+ ]
431
+ ] = None,
432
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
433
+ _content_type: Optional[StrictStr] = None,
434
+ _headers: Optional[Dict[StrictStr, Any]] = None,
435
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
436
+ ) -> ApiResponse[ConnectorListResponse]:
437
+ """List
438
+
439
+ This endpoint retrieves all available connectors.
440
+
441
+ :param countries: A list of countries of connectors to filter.
442
+ :type countries: List[str]
443
+ :param types: A list of types of connectors to filter.
444
+ :type types: List[str]
445
+ :param name: Name alike look up of the connector
446
+ :type name: str
447
+ :param sandbox: Include sandbox connectors if set to true (default: false).
448
+ :type sandbox: bool
449
+ :param health_details: Include health details about latest connections and percentage of errors (connection rate)
450
+ :type health_details: bool
451
+ :param is_open_finance: Filter connectors by the `isOpenFinance` attribute. If not sent, it won't filter.
452
+ :type is_open_finance: bool
453
+ :param supports_payment_initiation: Filter connectors by the `supportsPaymentInitiation` attribute. If not sent, it won't filter.
454
+ :type supports_payment_initiation: bool
455
+ :param _request_timeout: timeout setting for this request. If one
456
+ number provided, it will be total request
457
+ timeout. It can also be a pair (tuple) of
458
+ (connection, read) timeouts.
459
+ :type _request_timeout: int, tuple(int, int), optional
460
+ :param _request_auth: set to override the auth_settings for an a single
461
+ request; this effectively ignores the
462
+ authentication in the spec for a single request.
463
+ :type _request_auth: dict, optional
464
+ :param _content_type: force content-type for the request.
465
+ :type _content_type: str, Optional
466
+ :param _headers: set to override the headers for a single
467
+ request; this effectively ignores the headers
468
+ in the spec for a single request.
469
+ :type _headers: dict, optional
470
+ :param _host_index: set to override the host_index for a single
471
+ request; this effectively ignores the host_index
472
+ in the spec for a single request.
473
+ :type _host_index: int, optional
474
+ :return: Returns the result object.
475
+ """ # noqa: E501
476
+
477
+ _param = self._connectors_list_serialize(
478
+ countries=countries,
479
+ types=types,
480
+ name=name,
481
+ sandbox=sandbox,
482
+ health_details=health_details,
483
+ is_open_finance=is_open_finance,
484
+ supports_payment_initiation=supports_payment_initiation,
485
+ _request_auth=_request_auth,
486
+ _content_type=_content_type,
487
+ _headers=_headers,
488
+ _host_index=_host_index
489
+ )
490
+
491
+ _response_types_map: Dict[str, Optional[str]] = {
492
+ '200': "ConnectorListResponse",
493
+ }
494
+ response_data = self.api_client.call_api(
495
+ *_param,
496
+ _request_timeout=_request_timeout
497
+ )
498
+ response_data.read()
499
+ return self.api_client.response_deserialize(
500
+ response_data=response_data,
501
+ response_types_map=_response_types_map,
502
+ )
503
+
504
+
505
+ @validate_call
506
+ def connectors_list_without_preload_content(
507
+ self,
508
+ countries: Annotated[Optional[List[StrictStr]], Field(description="A list of countries of connectors to filter.")] = None,
509
+ types: Annotated[Optional[List[StrictStr]], Field(description="A list of types of connectors to filter.")] = None,
510
+ name: Annotated[Optional[StrictStr], Field(description="Name alike look up of the connector")] = None,
511
+ sandbox: Annotated[Optional[StrictBool], Field(description="Include sandbox connectors if set to true (default: false).")] = None,
512
+ health_details: Annotated[Optional[StrictBool], Field(description="Include health details about latest connections and percentage of errors (connection rate)")] = None,
513
+ is_open_finance: Annotated[Optional[StrictBool], Field(description="Filter connectors by the `isOpenFinance` attribute. If not sent, it won't filter.")] = None,
514
+ supports_payment_initiation: Annotated[Optional[StrictBool], Field(description="Filter connectors by the `supportsPaymentInitiation` attribute. If not sent, it won't filter.")] = None,
515
+ _request_timeout: Union[
516
+ None,
517
+ Annotated[StrictFloat, Field(gt=0)],
518
+ Tuple[
519
+ Annotated[StrictFloat, Field(gt=0)],
520
+ Annotated[StrictFloat, Field(gt=0)]
521
+ ]
522
+ ] = None,
523
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
524
+ _content_type: Optional[StrictStr] = None,
525
+ _headers: Optional[Dict[StrictStr, Any]] = None,
526
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
527
+ ) -> RESTResponseType:
528
+ """List
529
+
530
+ This endpoint retrieves all available connectors.
531
+
532
+ :param countries: A list of countries of connectors to filter.
533
+ :type countries: List[str]
534
+ :param types: A list of types of connectors to filter.
535
+ :type types: List[str]
536
+ :param name: Name alike look up of the connector
537
+ :type name: str
538
+ :param sandbox: Include sandbox connectors if set to true (default: false).
539
+ :type sandbox: bool
540
+ :param health_details: Include health details about latest connections and percentage of errors (connection rate)
541
+ :type health_details: bool
542
+ :param is_open_finance: Filter connectors by the `isOpenFinance` attribute. If not sent, it won't filter.
543
+ :type is_open_finance: bool
544
+ :param supports_payment_initiation: Filter connectors by the `supportsPaymentInitiation` attribute. If not sent, it won't filter.
545
+ :type supports_payment_initiation: bool
546
+ :param _request_timeout: timeout setting for this request. If one
547
+ number provided, it will be total request
548
+ timeout. It can also be a pair (tuple) of
549
+ (connection, read) timeouts.
550
+ :type _request_timeout: int, tuple(int, int), optional
551
+ :param _request_auth: set to override the auth_settings for an a single
552
+ request; this effectively ignores the
553
+ authentication in the spec for a single request.
554
+ :type _request_auth: dict, optional
555
+ :param _content_type: force content-type for the request.
556
+ :type _content_type: str, Optional
557
+ :param _headers: set to override the headers for a single
558
+ request; this effectively ignores the headers
559
+ in the spec for a single request.
560
+ :type _headers: dict, optional
561
+ :param _host_index: set to override the host_index for a single
562
+ request; this effectively ignores the host_index
563
+ in the spec for a single request.
564
+ :type _host_index: int, optional
565
+ :return: Returns the result object.
566
+ """ # noqa: E501
567
+
568
+ _param = self._connectors_list_serialize(
569
+ countries=countries,
570
+ types=types,
571
+ name=name,
572
+ sandbox=sandbox,
573
+ health_details=health_details,
574
+ is_open_finance=is_open_finance,
575
+ supports_payment_initiation=supports_payment_initiation,
576
+ _request_auth=_request_auth,
577
+ _content_type=_content_type,
578
+ _headers=_headers,
579
+ _host_index=_host_index
580
+ )
581
+
582
+ _response_types_map: Dict[str, Optional[str]] = {
583
+ '200': "ConnectorListResponse",
584
+ }
585
+ response_data = self.api_client.call_api(
586
+ *_param,
587
+ _request_timeout=_request_timeout
588
+ )
589
+ return response_data.response
590
+
591
+
592
+ def _connectors_list_serialize(
593
+ self,
594
+ countries,
595
+ types,
596
+ name,
597
+ sandbox,
598
+ health_details,
599
+ is_open_finance,
600
+ supports_payment_initiation,
601
+ _request_auth,
602
+ _content_type,
603
+ _headers,
604
+ _host_index,
605
+ ) -> RequestSerialized:
606
+
607
+ _host = None
608
+
609
+ _collection_formats: Dict[str, str] = {
610
+ 'countries': 'csv',
611
+ 'types': 'csv',
612
+ }
613
+
614
+ _path_params: Dict[str, str] = {}
615
+ _query_params: List[Tuple[str, str]] = []
616
+ _header_params: Dict[str, Optional[str]] = _headers or {}
617
+ _form_params: List[Tuple[str, str]] = []
618
+ _files: Dict[str, Union[str, bytes]] = {}
619
+ _body_params: Optional[bytes] = None
620
+
621
+ # process the path parameters
622
+ # process the query parameters
623
+ if countries is not None:
624
+
625
+ _query_params.append(('countries', countries))
626
+
627
+ if types is not None:
628
+
629
+ _query_params.append(('types', types))
630
+
631
+ if name is not None:
632
+
633
+ _query_params.append(('name', name))
634
+
635
+ if sandbox is not None:
636
+
637
+ _query_params.append(('sandbox', sandbox))
638
+
639
+ if health_details is not None:
640
+
641
+ _query_params.append(('healthDetails', health_details))
642
+
643
+ if is_open_finance is not None:
644
+
645
+ _query_params.append(('isOpenFinance', is_open_finance))
646
+
647
+ if supports_payment_initiation is not None:
648
+
649
+ _query_params.append(('supportsPaymentInitiation', supports_payment_initiation))
650
+
651
+ # process the header parameters
652
+ # process the form parameters
653
+ # process the body parameter
654
+
655
+
656
+ # set the HTTP header `Accept`
657
+ _header_params['Accept'] = self.api_client.select_header_accept(
658
+ [
659
+ 'application/json'
660
+ ]
661
+ )
662
+
663
+
664
+ # authentication setting
665
+ _auth_settings: List[str] = [
666
+ 'default'
667
+ ]
668
+
669
+ return self.api_client.param_serialize(
670
+ method='GET',
671
+ resource_path='/connectors',
672
+ path_params=_path_params,
673
+ query_params=_query_params,
674
+ header_params=_header_params,
675
+ body=_body_params,
676
+ post_params=_form_params,
677
+ files=_files,
678
+ auth_settings=_auth_settings,
679
+ collection_formats=_collection_formats,
680
+ _host=_host,
681
+ _request_auth=_request_auth
682
+ )
683
+
684
+
685
+
686
+
687
+ @validate_call
688
+ def connectors_validate(
689
+ self,
690
+ id: Annotated[Union[StrictFloat, StrictInt], Field(description="Connector's primary identifier")],
691
+ request_body: Annotated[Dict[str, StrictStr], Field(description="Connector's input credentials in a key-value object.")],
692
+ _request_timeout: Union[
693
+ None,
694
+ Annotated[StrictFloat, Field(gt=0)],
695
+ Tuple[
696
+ Annotated[StrictFloat, Field(gt=0)],
697
+ Annotated[StrictFloat, Field(gt=0)]
698
+ ]
699
+ ] = None,
700
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
701
+ _content_type: Optional[StrictStr] = None,
702
+ _headers: Optional[Dict[StrictStr, Any]] = None,
703
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
704
+ ) -> ParameterValidationResponse:
705
+ """Validate
706
+
707
+ Validates a connector parameters usign the connector validation
708
+
709
+ :param id: Connector's primary identifier (required)
710
+ :type id: float
711
+ :param request_body: Connector's input credentials in a key-value object. (required)
712
+ :type request_body: Dict[str, str]
713
+ :param _request_timeout: timeout setting for this request. If one
714
+ number provided, it will be total request
715
+ timeout. It can also be a pair (tuple) of
716
+ (connection, read) timeouts.
717
+ :type _request_timeout: int, tuple(int, int), optional
718
+ :param _request_auth: set to override the auth_settings for an a single
719
+ request; this effectively ignores the
720
+ authentication in the spec for a single request.
721
+ :type _request_auth: dict, optional
722
+ :param _content_type: force content-type for the request.
723
+ :type _content_type: str, Optional
724
+ :param _headers: set to override the headers for a single
725
+ request; this effectively ignores the headers
726
+ in the spec for a single request.
727
+ :type _headers: dict, optional
728
+ :param _host_index: set to override the host_index for a single
729
+ request; this effectively ignores the host_index
730
+ in the spec for a single request.
731
+ :type _host_index: int, optional
732
+ :return: Returns the result object.
733
+ """ # noqa: E501
734
+
735
+ _param = self._connectors_validate_serialize(
736
+ id=id,
737
+ request_body=request_body,
738
+ _request_auth=_request_auth,
739
+ _content_type=_content_type,
740
+ _headers=_headers,
741
+ _host_index=_host_index
742
+ )
743
+
744
+ _response_types_map: Dict[str, Optional[str]] = {
745
+ '200': "ParameterValidationResponse",
746
+ }
747
+ response_data = self.api_client.call_api(
748
+ *_param,
749
+ _request_timeout=_request_timeout
750
+ )
751
+ response_data.read()
752
+ return self.api_client.response_deserialize(
753
+ response_data=response_data,
754
+ response_types_map=_response_types_map,
755
+ ).data
756
+
757
+
758
+ @validate_call
759
+ def connectors_validate_with_http_info(
760
+ self,
761
+ id: Annotated[Union[StrictFloat, StrictInt], Field(description="Connector's primary identifier")],
762
+ request_body: Annotated[Dict[str, StrictStr], Field(description="Connector's input credentials in a key-value object.")],
763
+ _request_timeout: Union[
764
+ None,
765
+ Annotated[StrictFloat, Field(gt=0)],
766
+ Tuple[
767
+ Annotated[StrictFloat, Field(gt=0)],
768
+ Annotated[StrictFloat, Field(gt=0)]
769
+ ]
770
+ ] = None,
771
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
772
+ _content_type: Optional[StrictStr] = None,
773
+ _headers: Optional[Dict[StrictStr, Any]] = None,
774
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
775
+ ) -> ApiResponse[ParameterValidationResponse]:
776
+ """Validate
777
+
778
+ Validates a connector parameters usign the connector validation
779
+
780
+ :param id: Connector's primary identifier (required)
781
+ :type id: float
782
+ :param request_body: Connector's input credentials in a key-value object. (required)
783
+ :type request_body: Dict[str, str]
784
+ :param _request_timeout: timeout setting for this request. If one
785
+ number provided, it will be total request
786
+ timeout. It can also be a pair (tuple) of
787
+ (connection, read) timeouts.
788
+ :type _request_timeout: int, tuple(int, int), optional
789
+ :param _request_auth: set to override the auth_settings for an a single
790
+ request; this effectively ignores the
791
+ authentication in the spec for a single request.
792
+ :type _request_auth: dict, optional
793
+ :param _content_type: force content-type for the request.
794
+ :type _content_type: str, Optional
795
+ :param _headers: set to override the headers for a single
796
+ request; this effectively ignores the headers
797
+ in the spec for a single request.
798
+ :type _headers: dict, optional
799
+ :param _host_index: set to override the host_index for a single
800
+ request; this effectively ignores the host_index
801
+ in the spec for a single request.
802
+ :type _host_index: int, optional
803
+ :return: Returns the result object.
804
+ """ # noqa: E501
805
+
806
+ _param = self._connectors_validate_serialize(
807
+ id=id,
808
+ request_body=request_body,
809
+ _request_auth=_request_auth,
810
+ _content_type=_content_type,
811
+ _headers=_headers,
812
+ _host_index=_host_index
813
+ )
814
+
815
+ _response_types_map: Dict[str, Optional[str]] = {
816
+ '200': "ParameterValidationResponse",
817
+ }
818
+ response_data = self.api_client.call_api(
819
+ *_param,
820
+ _request_timeout=_request_timeout
821
+ )
822
+ response_data.read()
823
+ return self.api_client.response_deserialize(
824
+ response_data=response_data,
825
+ response_types_map=_response_types_map,
826
+ )
827
+
828
+
829
+ @validate_call
830
+ def connectors_validate_without_preload_content(
831
+ self,
832
+ id: Annotated[Union[StrictFloat, StrictInt], Field(description="Connector's primary identifier")],
833
+ request_body: Annotated[Dict[str, StrictStr], Field(description="Connector's input credentials in a key-value object.")],
834
+ _request_timeout: Union[
835
+ None,
836
+ Annotated[StrictFloat, Field(gt=0)],
837
+ Tuple[
838
+ Annotated[StrictFloat, Field(gt=0)],
839
+ Annotated[StrictFloat, Field(gt=0)]
840
+ ]
841
+ ] = None,
842
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
843
+ _content_type: Optional[StrictStr] = None,
844
+ _headers: Optional[Dict[StrictStr, Any]] = None,
845
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
846
+ ) -> RESTResponseType:
847
+ """Validate
848
+
849
+ Validates a connector parameters usign the connector validation
850
+
851
+ :param id: Connector's primary identifier (required)
852
+ :type id: float
853
+ :param request_body: Connector's input credentials in a key-value object. (required)
854
+ :type request_body: Dict[str, str]
855
+ :param _request_timeout: timeout setting for this request. If one
856
+ number provided, it will be total request
857
+ timeout. It can also be a pair (tuple) of
858
+ (connection, read) timeouts.
859
+ :type _request_timeout: int, tuple(int, int), optional
860
+ :param _request_auth: set to override the auth_settings for an a single
861
+ request; this effectively ignores the
862
+ authentication in the spec for a single request.
863
+ :type _request_auth: dict, optional
864
+ :param _content_type: force content-type for the request.
865
+ :type _content_type: str, Optional
866
+ :param _headers: set to override the headers for a single
867
+ request; this effectively ignores the headers
868
+ in the spec for a single request.
869
+ :type _headers: dict, optional
870
+ :param _host_index: set to override the host_index for a single
871
+ request; this effectively ignores the host_index
872
+ in the spec for a single request.
873
+ :type _host_index: int, optional
874
+ :return: Returns the result object.
875
+ """ # noqa: E501
876
+
877
+ _param = self._connectors_validate_serialize(
878
+ id=id,
879
+ request_body=request_body,
880
+ _request_auth=_request_auth,
881
+ _content_type=_content_type,
882
+ _headers=_headers,
883
+ _host_index=_host_index
884
+ )
885
+
886
+ _response_types_map: Dict[str, Optional[str]] = {
887
+ '200': "ParameterValidationResponse",
888
+ }
889
+ response_data = self.api_client.call_api(
890
+ *_param,
891
+ _request_timeout=_request_timeout
892
+ )
893
+ return response_data.response
894
+
895
+
896
+ def _connectors_validate_serialize(
897
+ self,
898
+ id,
899
+ request_body,
900
+ _request_auth,
901
+ _content_type,
902
+ _headers,
903
+ _host_index,
904
+ ) -> RequestSerialized:
905
+
906
+ _host = None
907
+
908
+ _collection_formats: Dict[str, str] = {
909
+ }
910
+
911
+ _path_params: Dict[str, str] = {}
912
+ _query_params: List[Tuple[str, str]] = []
913
+ _header_params: Dict[str, Optional[str]] = _headers or {}
914
+ _form_params: List[Tuple[str, str]] = []
915
+ _files: Dict[str, Union[str, bytes]] = {}
916
+ _body_params: Optional[bytes] = None
917
+
918
+ # process the path parameters
919
+ if id is not None:
920
+ _path_params['id'] = id
921
+ # process the query parameters
922
+ # process the header parameters
923
+ # process the form parameters
924
+ # process the body parameter
925
+ if request_body is not None:
926
+ _body_params = request_body
927
+
928
+
929
+ # set the HTTP header `Accept`
930
+ _header_params['Accept'] = self.api_client.select_header_accept(
931
+ [
932
+ 'application/json'
933
+ ]
934
+ )
935
+
936
+ # set the HTTP header `Content-Type`
937
+ if _content_type:
938
+ _header_params['Content-Type'] = _content_type
939
+ else:
940
+ _default_content_type = (
941
+ self.api_client.select_header_content_type(
942
+ [
943
+ 'application/json'
944
+ ]
945
+ )
946
+ )
947
+ if _default_content_type is not None:
948
+ _header_params['Content-Type'] = _default_content_type
949
+
950
+ # authentication setting
951
+ _auth_settings: List[str] = [
952
+ 'default'
953
+ ]
954
+
955
+ return self.api_client.param_serialize(
956
+ method='POST',
957
+ resource_path='/connectors/{id}/validate',
958
+ path_params=_path_params,
959
+ query_params=_query_params,
960
+ header_params=_header_params,
961
+ body=_body_params,
962
+ post_params=_form_params,
963
+ files=_files,
964
+ auth_settings=_auth_settings,
965
+ collection_formats=_collection_formats,
966
+ _host=_host,
967
+ _request_auth=_request_auth
968
+ )
969
+
970
+