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