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