chainstream-sdk 0.1.0__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 (261) hide show
  1. chainstream/__init__.py +46 -0
  2. chainstream/client.py +104 -0
  3. chainstream/openapi_client/__init__.py +156 -0
  4. chainstream/openapi_client/api/__init__.py +20 -0
  5. chainstream/openapi_client/api/blockchain_api.py +549 -0
  6. chainstream/openapi_client/api/defi_sol_moonshot_api.py +590 -0
  7. chainstream/openapi_client/api/defi_sol_pumpfun_api.py +314 -0
  8. chainstream/openapi_client/api/dex_api.py +1576 -0
  9. chainstream/openapi_client/api/dex_pool_api.py +645 -0
  10. chainstream/openapi_client/api/endpoint_api.py +1934 -0
  11. chainstream/openapi_client/api/ipfs_api.py +283 -0
  12. chainstream/openapi_client/api/jobs_api.py +562 -0
  13. chainstream/openapi_client/api/kyt_api.py +3743 -0
  14. chainstream/openapi_client/api/ranking_api.py +2067 -0
  15. chainstream/openapi_client/api/red_packet_api.py +2444 -0
  16. chainstream/openapi_client/api/token_api.py +9211 -0
  17. chainstream/openapi_client/api/trade_api.py +1352 -0
  18. chainstream/openapi_client/api/transaction_api.py +882 -0
  19. chainstream/openapi_client/api/wallet_api.py +1608 -0
  20. chainstream/openapi_client/api/watchlist_api.py +316 -0
  21. chainstream/openapi_client/api_client.py +801 -0
  22. chainstream/openapi_client/api_response.py +21 -0
  23. chainstream/openapi_client/configuration.py +572 -0
  24. chainstream/openapi_client/exceptions.py +217 -0
  25. chainstream/openapi_client/models/__init__.py +122 -0
  26. chainstream/openapi_client/models/address_exposure.py +94 -0
  27. chainstream/openapi_client/models/address_risk_response_dto.py +112 -0
  28. chainstream/openapi_client/models/alert_detail.py +100 -0
  29. chainstream/openapi_client/models/alterya_identification.py +106 -0
  30. chainstream/openapi_client/models/balance_change_type.py +38 -0
  31. chainstream/openapi_client/models/balance_token_type.py +38 -0
  32. chainstream/openapi_client/models/balance_update_dto.py +130 -0
  33. chainstream/openapi_client/models/balance_update_page.py +104 -0
  34. chainstream/openapi_client/models/blockchain_dto.py +94 -0
  35. chainstream/openapi_client/models/blockchain_latest_block_dto.py +90 -0
  36. chainstream/openapi_client/models/boolean_result_dto.py +88 -0
  37. chainstream/openapi_client/models/calculate_pnl_input.py +88 -0
  38. chainstream/openapi_client/models/candle.py +101 -0
  39. chainstream/openapi_client/models/chain.py +39 -0
  40. chainstream/openapi_client/models/chain_symbol.py +39 -0
  41. chainstream/openapi_client/models/chainalysis_address_identification.py +92 -0
  42. chainstream/openapi_client/models/claim_red_packet_input.py +103 -0
  43. chainstream/openapi_client/models/create_endpoint_input.py +102 -0
  44. chainstream/openapi_client/models/create_red_packet_input.py +112 -0
  45. chainstream/openapi_client/models/create_red_packet_reply.py +90 -0
  46. chainstream/openapi_client/models/create_token_input.py +110 -0
  47. chainstream/openapi_client/models/create_token_reply.py +90 -0
  48. chainstream/openapi_client/models/dev_token_dto.py +106 -0
  49. chainstream/openapi_client/models/dex_dto.py +94 -0
  50. chainstream/openapi_client/models/dex_page.py +106 -0
  51. chainstream/openapi_client/models/dex_pool_dto.py +161 -0
  52. chainstream/openapi_client/models/dex_pool_snapshot_dto.py +111 -0
  53. chainstream/openapi_client/models/dex_pool_snapshot_page.py +104 -0
  54. chainstream/openapi_client/models/dex_pool_token_liquidity.py +100 -0
  55. chainstream/openapi_client/models/dex_pool_token_snapshot_dto.py +100 -0
  56. chainstream/openapi_client/models/dex_quote_response.py +98 -0
  57. chainstream/openapi_client/models/direct_exposure_detail.py +90 -0
  58. chainstream/openapi_client/models/endpoint_list_response.py +102 -0
  59. chainstream/openapi_client/models/endpoint_operation_response.py +88 -0
  60. chainstream/openapi_client/models/endpoint_response.py +108 -0
  61. chainstream/openapi_client/models/endpoint_secret_response.py +88 -0
  62. chainstream/openapi_client/models/estimate_gas_limit_input.py +94 -0
  63. chainstream/openapi_client/models/estimate_gas_limit_response.py +90 -0
  64. chainstream/openapi_client/models/filter_condition.py +102 -0
  65. chainstream/openapi_client/models/gas_price_response.py +90 -0
  66. chainstream/openapi_client/models/job_dto.py +90 -0
  67. chainstream/openapi_client/models/job_streaming_dto.py +90 -0
  68. chainstream/openapi_client/models/kyt_register_transfer_request.py +108 -0
  69. chainstream/openapi_client/models/kyt_register_withdrawal_request.py +111 -0
  70. chainstream/openapi_client/models/link.py +97 -0
  71. chainstream/openapi_client/models/moonshot_create_token_input.py +145 -0
  72. chainstream/openapi_client/models/moonshot_create_token_reply.py +90 -0
  73. chainstream/openapi_client/models/moonshot_submit_create_token200_response.py +90 -0
  74. chainstream/openapi_client/models/moonshot_submit_create_token_input.py +90 -0
  75. chainstream/openapi_client/models/network_identification_org.py +88 -0
  76. chainstream/openapi_client/models/on_chain_activity.py +88 -0
  77. chainstream/openapi_client/models/pump_create_token_input.py +155 -0
  78. chainstream/openapi_client/models/pump_create_token_reply.py +90 -0
  79. chainstream/openapi_client/models/red_packet_claim_dto.py +103 -0
  80. chainstream/openapi_client/models/red_packet_claims_page.py +104 -0
  81. chainstream/openapi_client/models/red_packet_dto.py +121 -0
  82. chainstream/openapi_client/models/red_packet_reply.py +88 -0
  83. chainstream/openapi_client/models/red_packet_send_tx_input.py +88 -0
  84. chainstream/openapi_client/models/red_packet_send_tx_response.py +88 -0
  85. chainstream/openapi_client/models/red_packets_page.py +104 -0
  86. chainstream/openapi_client/models/register_address_request.py +88 -0
  87. chainstream/openapi_client/models/register_address_response_dto.py +88 -0
  88. chainstream/openapi_client/models/resolution.py +46 -0
  89. chainstream/openapi_client/models/send_tx_input.py +102 -0
  90. chainstream/openapi_client/models/send_tx_response.py +92 -0
  91. chainstream/openapi_client/models/swap_input.py +119 -0
  92. chainstream/openapi_client/models/swap_reply.py +90 -0
  93. chainstream/openapi_client/models/swap_route_input.py +127 -0
  94. chainstream/openapi_client/models/swap_route_response.py +98 -0
  95. chainstream/openapi_client/models/token.py +158 -0
  96. chainstream/openapi_client/models/token_creation_dto.py +107 -0
  97. chainstream/openapi_client/models/token_creation_page.py +106 -0
  98. chainstream/openapi_client/models/token_creators_dto.py +92 -0
  99. chainstream/openapi_client/models/token_extra_dto.py +128 -0
  100. chainstream/openapi_client/models/token_holder.py +94 -0
  101. chainstream/openapi_client/models/token_holder_page.py +106 -0
  102. chainstream/openapi_client/models/token_liquidity_snapshot_dto.py +106 -0
  103. chainstream/openapi_client/models/token_liquidity_snapshot_page.py +104 -0
  104. chainstream/openapi_client/models/token_list_page.py +106 -0
  105. chainstream/openapi_client/models/token_market_data.py +174 -0
  106. chainstream/openapi_client/models/token_metadata.py +132 -0
  107. chainstream/openapi_client/models/token_page.py +108 -0
  108. chainstream/openapi_client/models/token_price_dto.py +94 -0
  109. chainstream/openapi_client/models/token_price_page.py +106 -0
  110. chainstream/openapi_client/models/token_social_medias_dto.py +112 -0
  111. chainstream/openapi_client/models/token_stat.py +340 -0
  112. chainstream/openapi_client/models/token_trader.py +113 -0
  113. chainstream/openapi_client/models/token_trader_tag.py +45 -0
  114. chainstream/openapi_client/models/top_traders_dto.py +110 -0
  115. chainstream/openapi_client/models/top_traders_page.py +106 -0
  116. chainstream/openapi_client/models/trade_detail_dto.py +136 -0
  117. chainstream/openapi_client/models/trade_event.py +113 -0
  118. chainstream/openapi_client/models/trade_page.py +106 -0
  119. chainstream/openapi_client/models/trade_type.py +38 -0
  120. chainstream/openapi_client/models/transfer_alerts_response_dto.py +96 -0
  121. chainstream/openapi_client/models/transfer_base_response_dto.py +112 -0
  122. chainstream/openapi_client/models/transfer_direct_exposure_response_dto.py +92 -0
  123. chainstream/openapi_client/models/transfer_network_identifications_response_dto.py +98 -0
  124. chainstream/openapi_client/models/update_endpoint_input.py +104 -0
  125. chainstream/openapi_client/models/wallet_balance_detail_dto.py +136 -0
  126. chainstream/openapi_client/models/wallet_balances_dto.py +100 -0
  127. chainstream/openapi_client/models/wallet_pnl_dto.py +132 -0
  128. chainstream/openapi_client/models/withdrawal_address_identifications_response_dto.py +98 -0
  129. chainstream/openapi_client/models/withdrawal_base_response_dto.py +106 -0
  130. chainstream/openapi_client/models/withdrawal_fraud_assessment_response_dto.py +96 -0
  131. chainstream/openapi_client/rest.py +213 -0
  132. chainstream/openapi_client/test/__init__.py +0 -0
  133. chainstream/openapi_client/test/test_address_exposure.py +59 -0
  134. chainstream/openapi_client/test/test_address_risk_response_dto.py +81 -0
  135. chainstream/openapi_client/test/test_alert_detail.py +65 -0
  136. chainstream/openapi_client/test/test_alterya_identification.py +69 -0
  137. chainstream/openapi_client/test/test_balance_change_type.py +34 -0
  138. chainstream/openapi_client/test/test_balance_token_type.py +34 -0
  139. chainstream/openapi_client/test/test_balance_update_dto.py +93 -0
  140. chainstream/openapi_client/test/test_balance_update_page.py +105 -0
  141. chainstream/openapi_client/test/test_blockchain_api.py +46 -0
  142. chainstream/openapi_client/test/test_blockchain_dto.py +59 -0
  143. chainstream/openapi_client/test/test_blockchain_latest_block_dto.py +55 -0
  144. chainstream/openapi_client/test/test_boolean_result_dto.py +53 -0
  145. chainstream/openapi_client/test/test_calculate_pnl_input.py +52 -0
  146. chainstream/openapi_client/test/test_candle.py +65 -0
  147. chainstream/openapi_client/test/test_chain.py +34 -0
  148. chainstream/openapi_client/test/test_chain_symbol.py +34 -0
  149. chainstream/openapi_client/test/test_chainalysis_address_identification.py +57 -0
  150. chainstream/openapi_client/test/test_claim_red_packet_input.py +58 -0
  151. chainstream/openapi_client/test/test_create_endpoint_input.py +63 -0
  152. chainstream/openapi_client/test/test_create_red_packet_input.py +64 -0
  153. chainstream/openapi_client/test/test_create_red_packet_reply.py +55 -0
  154. chainstream/openapi_client/test/test_create_token_input.py +63 -0
  155. chainstream/openapi_client/test/test_create_token_reply.py +55 -0
  156. chainstream/openapi_client/test/test_defi_sol_moonshot_api.py +46 -0
  157. chainstream/openapi_client/test/test_defi_sol_pumpfun_api.py +39 -0
  158. chainstream/openapi_client/test/test_dev_token_dto.py +441 -0
  159. chainstream/openapi_client/test/test_dex_api.py +67 -0
  160. chainstream/openapi_client/test/test_dex_dto.py +56 -0
  161. chainstream/openapi_client/test/test_dex_page.py +70 -0
  162. chainstream/openapi_client/test/test_dex_pool_api.py +46 -0
  163. chainstream/openapi_client/test/test_dex_pool_dto.py +88 -0
  164. chainstream/openapi_client/test/test_dex_pool_snapshot_dto.py +96 -0
  165. chainstream/openapi_client/test/test_dex_pool_snapshot_page.py +81 -0
  166. chainstream/openapi_client/test/test_dex_pool_token_liquidity.py +65 -0
  167. chainstream/openapi_client/test/test_dex_pool_token_snapshot_dto.py +65 -0
  168. chainstream/openapi_client/test/test_dex_quote_response.py +57 -0
  169. chainstream/openapi_client/test/test_direct_exposure_detail.py +55 -0
  170. chainstream/openapi_client/test/test_endpoint_api.py +81 -0
  171. chainstream/openapi_client/test/test_endpoint_list_response.py +72 -0
  172. chainstream/openapi_client/test/test_endpoint_operation_response.py +52 -0
  173. chainstream/openapi_client/test/test_endpoint_response.py +66 -0
  174. chainstream/openapi_client/test/test_endpoint_secret_response.py +52 -0
  175. chainstream/openapi_client/test/test_estimate_gas_limit_input.py +58 -0
  176. chainstream/openapi_client/test/test_estimate_gas_limit_response.py +55 -0
  177. chainstream/openapi_client/test/test_filter_condition.py +54 -0
  178. chainstream/openapi_client/test/test_gas_price_response.py +55 -0
  179. chainstream/openapi_client/test/test_ipfs_api.py +39 -0
  180. chainstream/openapi_client/test/test_job_dto.py +55 -0
  181. chainstream/openapi_client/test/test_job_streaming_dto.py +55 -0
  182. chainstream/openapi_client/test/test_jobs_api.py +46 -0
  183. chainstream/openapi_client/test/test_kyt_api.py +130 -0
  184. chainstream/openapi_client/test/test_kyt_register_transfer_request.py +59 -0
  185. chainstream/openapi_client/test/test_kyt_register_withdrawal_request.py +65 -0
  186. chainstream/openapi_client/test/test_link.py +55 -0
  187. chainstream/openapi_client/test/test_moonshot_create_token_input.py +79 -0
  188. chainstream/openapi_client/test/test_moonshot_create_token_reply.py +55 -0
  189. chainstream/openapi_client/test/test_moonshot_submit_create_token200_response.py +53 -0
  190. chainstream/openapi_client/test/test_moonshot_submit_create_token_input.py +54 -0
  191. chainstream/openapi_client/test/test_network_identification_org.py +53 -0
  192. chainstream/openapi_client/test/test_on_chain_activity.py +53 -0
  193. chainstream/openapi_client/test/test_pump_create_token_input.py +71 -0
  194. chainstream/openapi_client/test/test_pump_create_token_reply.py +54 -0
  195. chainstream/openapi_client/test/test_ranking_api.py +67 -0
  196. chainstream/openapi_client/test/test_red_packet_api.py +88 -0
  197. chainstream/openapi_client/test/test_red_packet_claim_dto.py +67 -0
  198. chainstream/openapi_client/test/test_red_packet_claims_page.py +81 -0
  199. chainstream/openapi_client/test/test_red_packet_dto.py +85 -0
  200. chainstream/openapi_client/test/test_red_packet_reply.py +53 -0
  201. chainstream/openapi_client/test/test_red_packet_send_tx_input.py +53 -0
  202. chainstream/openapi_client/test/test_red_packet_send_tx_response.py +53 -0
  203. chainstream/openapi_client/test/test_red_packets_page.py +99 -0
  204. chainstream/openapi_client/test/test_register_address_request.py +53 -0
  205. chainstream/openapi_client/test/test_register_address_response_dto.py +53 -0
  206. chainstream/openapi_client/test/test_resolution.py +34 -0
  207. chainstream/openapi_client/test/test_send_tx_input.py +55 -0
  208. chainstream/openapi_client/test/test_send_tx_response.py +57 -0
  209. chainstream/openapi_client/test/test_swap_input.py +65 -0
  210. chainstream/openapi_client/test/test_swap_reply.py +55 -0
  211. chainstream/openapi_client/test/test_swap_route_input.py +69 -0
  212. chainstream/openapi_client/test/test_swap_route_response.py +85 -0
  213. chainstream/openapi_client/test/test_token.py +352 -0
  214. chainstream/openapi_client/test/test_token_api.py +193 -0
  215. chainstream/openapi_client/test/test_token_creation_dto.py +64 -0
  216. chainstream/openapi_client/test/test_token_creation_page.py +76 -0
  217. chainstream/openapi_client/test/test_token_creators_dto.py +54 -0
  218. chainstream/openapi_client/test/test_token_extra_dto.py +72 -0
  219. chainstream/openapi_client/test/test_token_holder.py +59 -0
  220. chainstream/openapi_client/test/test_token_holder_page.py +70 -0
  221. chainstream/openapi_client/test/test_token_liquidity_snapshot_dto.py +71 -0
  222. chainstream/openapi_client/test/test_token_liquidity_snapshot_page.py +83 -0
  223. chainstream/openapi_client/test/test_token_list_page.py +154 -0
  224. chainstream/openapi_client/test/test_token_market_data.py +101 -0
  225. chainstream/openapi_client/test/test_token_metadata.py +110 -0
  226. chainstream/openapi_client/test/test_token_page.py +155 -0
  227. chainstream/openapi_client/test/test_token_price_dto.py +59 -0
  228. chainstream/openapi_client/test/test_token_price_page.py +70 -0
  229. chainstream/openapi_client/test/test_token_social_medias_dto.py +64 -0
  230. chainstream/openapi_client/test/test_token_stat.py +257 -0
  231. chainstream/openapi_client/test/test_token_trader.py +65 -0
  232. chainstream/openapi_client/test/test_token_trader_tag.py +34 -0
  233. chainstream/openapi_client/test/test_top_traders_dto.py +75 -0
  234. chainstream/openapi_client/test/test_top_traders_page.py +86 -0
  235. chainstream/openapi_client/test/test_trade_api.py +53 -0
  236. chainstream/openapi_client/test/test_trade_detail_dto.py +101 -0
  237. chainstream/openapi_client/test/test_trade_event.py +77 -0
  238. chainstream/openapi_client/test/test_trade_page.py +112 -0
  239. chainstream/openapi_client/test/test_trade_type.py +34 -0
  240. chainstream/openapi_client/test/test_transaction_api.py +53 -0
  241. chainstream/openapi_client/test/test_transfer_alerts_response_dto.py +71 -0
  242. chainstream/openapi_client/test/test_transfer_base_response_dto.py +77 -0
  243. chainstream/openapi_client/test/test_transfer_direct_exposure_response_dto.py +57 -0
  244. chainstream/openapi_client/test/test_transfer_network_identifications_response_dto.py +61 -0
  245. chainstream/openapi_client/test/test_update_endpoint_input.py +64 -0
  246. chainstream/openapi_client/test/test_wallet_api.py +67 -0
  247. chainstream/openapi_client/test/test_wallet_balance_detail_dto.py +101 -0
  248. chainstream/openapi_client/test/test_wallet_balances_dto.py +111 -0
  249. chainstream/openapi_client/test/test_wallet_pnl_dto.py +97 -0
  250. chainstream/openapi_client/test/test_watchlist_api.py +39 -0
  251. chainstream/openapi_client/test/test_withdrawal_address_identifications_response_dto.py +65 -0
  252. chainstream/openapi_client/test/test_withdrawal_base_response_dto.py +71 -0
  253. chainstream/openapi_client/test/test_withdrawal_fraud_assessment_response_dto.py +73 -0
  254. chainstream/stream/__init__.py +74 -0
  255. chainstream/stream/client.py +761 -0
  256. chainstream/stream/fields.py +284 -0
  257. chainstream/stream/models.py +415 -0
  258. chainstream_sdk-0.1.0.dist-info/METADATA +80 -0
  259. chainstream_sdk-0.1.0.dist-info/RECORD +261 -0
  260. chainstream_sdk-0.1.0.dist-info/WHEEL +4 -0
  261. chainstream_sdk-0.1.0.dist-info/entry_points.txt +2 -0
@@ -0,0 +1,3743 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Dex Aggregator API
5
+
6
+ Dex Aggregator API ⚡️
7
+
8
+ The version of the OpenAPI document: 1.0
9
+ Contact: ai@sx.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, StrictStr
21
+ from typing_extensions import Annotated
22
+ from chainstream.openapi_client.models.address_risk_response_dto import AddressRiskResponseDTO
23
+ from chainstream.openapi_client.models.kyt_register_transfer_request import KYTRegisterTransferRequest
24
+ from chainstream.openapi_client.models.kyt_register_withdrawal_request import KYTRegisterWithdrawalRequest
25
+ from chainstream.openapi_client.models.register_address_request import RegisterAddressRequest
26
+ from chainstream.openapi_client.models.register_address_response_dto import RegisterAddressResponseDTO
27
+ from chainstream.openapi_client.models.transfer_alerts_response_dto import TransferAlertsResponseDTO
28
+ from chainstream.openapi_client.models.transfer_base_response_dto import TransferBaseResponseDTO
29
+ from chainstream.openapi_client.models.transfer_direct_exposure_response_dto import TransferDirectExposureResponseDTO
30
+ from chainstream.openapi_client.models.transfer_network_identifications_response_dto import TransferNetworkIdentificationsResponseDTO
31
+ from chainstream.openapi_client.models.withdrawal_address_identifications_response_dto import WithdrawalAddressIdentificationsResponseDTO
32
+ from chainstream.openapi_client.models.withdrawal_base_response_dto import WithdrawalBaseResponseDTO
33
+ from chainstream.openapi_client.models.withdrawal_fraud_assessment_response_dto import WithdrawalFraudAssessmentResponseDTO
34
+
35
+ from chainstream.openapi_client.api_client import ApiClient, RequestSerialized
36
+ from chainstream.openapi_client.api_response import ApiResponse
37
+ from chainstream.openapi_client.rest import RESTResponseType
38
+
39
+
40
+ class KYTApi:
41
+ """NOTE: This class is auto generated by OpenAPI Generator
42
+ Ref: https://openapi-generator.tech
43
+
44
+ Do not edit the class manually.
45
+ """
46
+
47
+ def __init__(self, api_client=None) -> None:
48
+ if api_client is None:
49
+ api_client = ApiClient.get_default()
50
+ self.api_client = api_client
51
+
52
+
53
+ @validate_call
54
+ async def get_address_risk(
55
+ self,
56
+ address: Annotated[StrictStr, Field(description="CONTROLLER.KYT.PARAM.ADDRESS")],
57
+ _request_timeout: Union[
58
+ None,
59
+ Annotated[StrictFloat, Field(gt=0)],
60
+ Tuple[
61
+ Annotated[StrictFloat, Field(gt=0)],
62
+ Annotated[StrictFloat, Field(gt=0)]
63
+ ]
64
+ ] = None,
65
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
66
+ _content_type: Optional[StrictStr] = None,
67
+ _headers: Optional[Dict[StrictStr, Any]] = None,
68
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
69
+ ) -> AddressRiskResponseDTO:
70
+ """CONTROLLER.KYT.GET_ADDRESS_RISK.SUMMARY
71
+
72
+ CONTROLLER.KYT.GET_ADDRESS_RISK.DESCRIPTION
73
+
74
+ :param address: CONTROLLER.KYT.PARAM.ADDRESS (required)
75
+ :type address: str
76
+ :param _request_timeout: timeout setting for this request. If one
77
+ number provided, it will be total request
78
+ timeout. It can also be a pair (tuple) of
79
+ (connection, read) timeouts.
80
+ :type _request_timeout: int, tuple(int, int), optional
81
+ :param _request_auth: set to override the auth_settings for an a single
82
+ request; this effectively ignores the
83
+ authentication in the spec for a single request.
84
+ :type _request_auth: dict, optional
85
+ :param _content_type: force content-type for the request.
86
+ :type _content_type: str, Optional
87
+ :param _headers: set to override the headers for a single
88
+ request; this effectively ignores the headers
89
+ in the spec for a single request.
90
+ :type _headers: dict, optional
91
+ :param _host_index: set to override the host_index for a single
92
+ request; this effectively ignores the host_index
93
+ in the spec for a single request.
94
+ :type _host_index: int, optional
95
+ :return: Returns the result object.
96
+ """ # noqa: E501
97
+
98
+ _param = self._get_address_risk_serialize(
99
+ address=address,
100
+ _request_auth=_request_auth,
101
+ _content_type=_content_type,
102
+ _headers=_headers,
103
+ _host_index=_host_index
104
+ )
105
+
106
+ _response_types_map: Dict[str, Optional[str]] = {
107
+ '200': "AddressRiskResponseDTO",
108
+ }
109
+ response_data = await self.api_client.call_api(
110
+ *_param,
111
+ _request_timeout=_request_timeout
112
+ )
113
+ await response_data.read()
114
+ return self.api_client.response_deserialize(
115
+ response_data=response_data,
116
+ response_types_map=_response_types_map,
117
+ ).data
118
+
119
+
120
+ @validate_call
121
+ async def get_address_risk_with_http_info(
122
+ self,
123
+ address: Annotated[StrictStr, Field(description="CONTROLLER.KYT.PARAM.ADDRESS")],
124
+ _request_timeout: Union[
125
+ None,
126
+ Annotated[StrictFloat, Field(gt=0)],
127
+ Tuple[
128
+ Annotated[StrictFloat, Field(gt=0)],
129
+ Annotated[StrictFloat, Field(gt=0)]
130
+ ]
131
+ ] = None,
132
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
133
+ _content_type: Optional[StrictStr] = None,
134
+ _headers: Optional[Dict[StrictStr, Any]] = None,
135
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
136
+ ) -> ApiResponse[AddressRiskResponseDTO]:
137
+ """CONTROLLER.KYT.GET_ADDRESS_RISK.SUMMARY
138
+
139
+ CONTROLLER.KYT.GET_ADDRESS_RISK.DESCRIPTION
140
+
141
+ :param address: CONTROLLER.KYT.PARAM.ADDRESS (required)
142
+ :type address: str
143
+ :param _request_timeout: timeout setting for this request. If one
144
+ number provided, it will be total request
145
+ timeout. It can also be a pair (tuple) of
146
+ (connection, read) timeouts.
147
+ :type _request_timeout: int, tuple(int, int), optional
148
+ :param _request_auth: set to override the auth_settings for an a single
149
+ request; this effectively ignores the
150
+ authentication in the spec for a single request.
151
+ :type _request_auth: dict, optional
152
+ :param _content_type: force content-type for the request.
153
+ :type _content_type: str, Optional
154
+ :param _headers: set to override the headers for a single
155
+ request; this effectively ignores the headers
156
+ in the spec for a single request.
157
+ :type _headers: dict, optional
158
+ :param _host_index: set to override the host_index for a single
159
+ request; this effectively ignores the host_index
160
+ in the spec for a single request.
161
+ :type _host_index: int, optional
162
+ :return: Returns the result object.
163
+ """ # noqa: E501
164
+
165
+ _param = self._get_address_risk_serialize(
166
+ address=address,
167
+ _request_auth=_request_auth,
168
+ _content_type=_content_type,
169
+ _headers=_headers,
170
+ _host_index=_host_index
171
+ )
172
+
173
+ _response_types_map: Dict[str, Optional[str]] = {
174
+ '200': "AddressRiskResponseDTO",
175
+ }
176
+ response_data = await self.api_client.call_api(
177
+ *_param,
178
+ _request_timeout=_request_timeout
179
+ )
180
+ await response_data.read()
181
+ return self.api_client.response_deserialize(
182
+ response_data=response_data,
183
+ response_types_map=_response_types_map,
184
+ )
185
+
186
+
187
+ @validate_call
188
+ async def get_address_risk_without_preload_content(
189
+ self,
190
+ address: Annotated[StrictStr, Field(description="CONTROLLER.KYT.PARAM.ADDRESS")],
191
+ _request_timeout: Union[
192
+ None,
193
+ Annotated[StrictFloat, Field(gt=0)],
194
+ Tuple[
195
+ Annotated[StrictFloat, Field(gt=0)],
196
+ Annotated[StrictFloat, Field(gt=0)]
197
+ ]
198
+ ] = None,
199
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
200
+ _content_type: Optional[StrictStr] = None,
201
+ _headers: Optional[Dict[StrictStr, Any]] = None,
202
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
203
+ ) -> RESTResponseType:
204
+ """CONTROLLER.KYT.GET_ADDRESS_RISK.SUMMARY
205
+
206
+ CONTROLLER.KYT.GET_ADDRESS_RISK.DESCRIPTION
207
+
208
+ :param address: CONTROLLER.KYT.PARAM.ADDRESS (required)
209
+ :type address: str
210
+ :param _request_timeout: timeout setting for this request. If one
211
+ number provided, it will be total request
212
+ timeout. It can also be a pair (tuple) of
213
+ (connection, read) timeouts.
214
+ :type _request_timeout: int, tuple(int, int), optional
215
+ :param _request_auth: set to override the auth_settings for an a single
216
+ request; this effectively ignores the
217
+ authentication in the spec for a single request.
218
+ :type _request_auth: dict, optional
219
+ :param _content_type: force content-type for the request.
220
+ :type _content_type: str, Optional
221
+ :param _headers: set to override the headers for a single
222
+ request; this effectively ignores the headers
223
+ in the spec for a single request.
224
+ :type _headers: dict, optional
225
+ :param _host_index: set to override the host_index for a single
226
+ request; this effectively ignores the host_index
227
+ in the spec for a single request.
228
+ :type _host_index: int, optional
229
+ :return: Returns the result object.
230
+ """ # noqa: E501
231
+
232
+ _param = self._get_address_risk_serialize(
233
+ address=address,
234
+ _request_auth=_request_auth,
235
+ _content_type=_content_type,
236
+ _headers=_headers,
237
+ _host_index=_host_index
238
+ )
239
+
240
+ _response_types_map: Dict[str, Optional[str]] = {
241
+ '200': "AddressRiskResponseDTO",
242
+ }
243
+ response_data = await self.api_client.call_api(
244
+ *_param,
245
+ _request_timeout=_request_timeout
246
+ )
247
+ return response_data.response
248
+
249
+
250
+ def _get_address_risk_serialize(
251
+ self,
252
+ address,
253
+ _request_auth,
254
+ _content_type,
255
+ _headers,
256
+ _host_index,
257
+ ) -> RequestSerialized:
258
+
259
+ _host = None
260
+
261
+ _collection_formats: Dict[str, str] = {
262
+ }
263
+
264
+ _path_params: Dict[str, str] = {}
265
+ _query_params: List[Tuple[str, str]] = []
266
+ _header_params: Dict[str, Optional[str]] = _headers or {}
267
+ _form_params: List[Tuple[str, str]] = []
268
+ _files: Dict[
269
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
270
+ ] = {}
271
+ _body_params: Optional[bytes] = None
272
+
273
+ # process the path parameters
274
+ if address is not None:
275
+ _path_params['address'] = address
276
+ # process the query parameters
277
+ # process the header parameters
278
+ # process the form parameters
279
+ # process the body parameter
280
+
281
+
282
+ # set the HTTP header `Accept`
283
+ if 'Accept' not in _header_params:
284
+ _header_params['Accept'] = self.api_client.select_header_accept(
285
+ [
286
+ 'application/json'
287
+ ]
288
+ )
289
+
290
+
291
+ # authentication setting
292
+ _auth_settings: List[str] = [
293
+ 'bearer'
294
+ ]
295
+
296
+ return self.api_client.param_serialize(
297
+ method='GET',
298
+ resource_path='/v1/kyt/addresses/{address}/risk',
299
+ path_params=_path_params,
300
+ query_params=_query_params,
301
+ header_params=_header_params,
302
+ body=_body_params,
303
+ post_params=_form_params,
304
+ files=_files,
305
+ auth_settings=_auth_settings,
306
+ collection_formats=_collection_formats,
307
+ _host=_host,
308
+ _request_auth=_request_auth
309
+ )
310
+
311
+
312
+
313
+
314
+ @validate_call
315
+ async def get_transfer_alerts(
316
+ self,
317
+ transfer_id: Annotated[StrictStr, Field(description="CONTROLLER.KYT.PARAM.TRANSFER_ID")],
318
+ _request_timeout: Union[
319
+ None,
320
+ Annotated[StrictFloat, Field(gt=0)],
321
+ Tuple[
322
+ Annotated[StrictFloat, Field(gt=0)],
323
+ Annotated[StrictFloat, Field(gt=0)]
324
+ ]
325
+ ] = None,
326
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
327
+ _content_type: Optional[StrictStr] = None,
328
+ _headers: Optional[Dict[StrictStr, Any]] = None,
329
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
330
+ ) -> TransferAlertsResponseDTO:
331
+ """CONTROLLER.KYT.GET_TRANSFER_ALERTS.SUMMARY
332
+
333
+ CONTROLLER.KYT.GET_TRANSFER_ALERTS.DESCRIPTION
334
+
335
+ :param transfer_id: CONTROLLER.KYT.PARAM.TRANSFER_ID (required)
336
+ :type transfer_id: str
337
+ :param _request_timeout: timeout setting for this request. If one
338
+ number provided, it will be total request
339
+ timeout. It can also be a pair (tuple) of
340
+ (connection, read) timeouts.
341
+ :type _request_timeout: int, tuple(int, int), optional
342
+ :param _request_auth: set to override the auth_settings for an a single
343
+ request; this effectively ignores the
344
+ authentication in the spec for a single request.
345
+ :type _request_auth: dict, optional
346
+ :param _content_type: force content-type for the request.
347
+ :type _content_type: str, Optional
348
+ :param _headers: set to override the headers for a single
349
+ request; this effectively ignores the headers
350
+ in the spec for a single request.
351
+ :type _headers: dict, optional
352
+ :param _host_index: set to override the host_index for a single
353
+ request; this effectively ignores the host_index
354
+ in the spec for a single request.
355
+ :type _host_index: int, optional
356
+ :return: Returns the result object.
357
+ """ # noqa: E501
358
+
359
+ _param = self._get_transfer_alerts_serialize(
360
+ transfer_id=transfer_id,
361
+ _request_auth=_request_auth,
362
+ _content_type=_content_type,
363
+ _headers=_headers,
364
+ _host_index=_host_index
365
+ )
366
+
367
+ _response_types_map: Dict[str, Optional[str]] = {
368
+ '200': "TransferAlertsResponseDTO",
369
+ }
370
+ response_data = await self.api_client.call_api(
371
+ *_param,
372
+ _request_timeout=_request_timeout
373
+ )
374
+ await response_data.read()
375
+ return self.api_client.response_deserialize(
376
+ response_data=response_data,
377
+ response_types_map=_response_types_map,
378
+ ).data
379
+
380
+
381
+ @validate_call
382
+ async def get_transfer_alerts_with_http_info(
383
+ self,
384
+ transfer_id: Annotated[StrictStr, Field(description="CONTROLLER.KYT.PARAM.TRANSFER_ID")],
385
+ _request_timeout: Union[
386
+ None,
387
+ Annotated[StrictFloat, Field(gt=0)],
388
+ Tuple[
389
+ Annotated[StrictFloat, Field(gt=0)],
390
+ Annotated[StrictFloat, Field(gt=0)]
391
+ ]
392
+ ] = None,
393
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
394
+ _content_type: Optional[StrictStr] = None,
395
+ _headers: Optional[Dict[StrictStr, Any]] = None,
396
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
397
+ ) -> ApiResponse[TransferAlertsResponseDTO]:
398
+ """CONTROLLER.KYT.GET_TRANSFER_ALERTS.SUMMARY
399
+
400
+ CONTROLLER.KYT.GET_TRANSFER_ALERTS.DESCRIPTION
401
+
402
+ :param transfer_id: CONTROLLER.KYT.PARAM.TRANSFER_ID (required)
403
+ :type transfer_id: str
404
+ :param _request_timeout: timeout setting for this request. If one
405
+ number provided, it will be total request
406
+ timeout. It can also be a pair (tuple) of
407
+ (connection, read) timeouts.
408
+ :type _request_timeout: int, tuple(int, int), optional
409
+ :param _request_auth: set to override the auth_settings for an a single
410
+ request; this effectively ignores the
411
+ authentication in the spec for a single request.
412
+ :type _request_auth: dict, optional
413
+ :param _content_type: force content-type for the request.
414
+ :type _content_type: str, Optional
415
+ :param _headers: set to override the headers for a single
416
+ request; this effectively ignores the headers
417
+ in the spec for a single request.
418
+ :type _headers: dict, optional
419
+ :param _host_index: set to override the host_index for a single
420
+ request; this effectively ignores the host_index
421
+ in the spec for a single request.
422
+ :type _host_index: int, optional
423
+ :return: Returns the result object.
424
+ """ # noqa: E501
425
+
426
+ _param = self._get_transfer_alerts_serialize(
427
+ transfer_id=transfer_id,
428
+ _request_auth=_request_auth,
429
+ _content_type=_content_type,
430
+ _headers=_headers,
431
+ _host_index=_host_index
432
+ )
433
+
434
+ _response_types_map: Dict[str, Optional[str]] = {
435
+ '200': "TransferAlertsResponseDTO",
436
+ }
437
+ response_data = await self.api_client.call_api(
438
+ *_param,
439
+ _request_timeout=_request_timeout
440
+ )
441
+ await response_data.read()
442
+ return self.api_client.response_deserialize(
443
+ response_data=response_data,
444
+ response_types_map=_response_types_map,
445
+ )
446
+
447
+
448
+ @validate_call
449
+ async def get_transfer_alerts_without_preload_content(
450
+ self,
451
+ transfer_id: Annotated[StrictStr, Field(description="CONTROLLER.KYT.PARAM.TRANSFER_ID")],
452
+ _request_timeout: Union[
453
+ None,
454
+ Annotated[StrictFloat, Field(gt=0)],
455
+ Tuple[
456
+ Annotated[StrictFloat, Field(gt=0)],
457
+ Annotated[StrictFloat, Field(gt=0)]
458
+ ]
459
+ ] = None,
460
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
461
+ _content_type: Optional[StrictStr] = None,
462
+ _headers: Optional[Dict[StrictStr, Any]] = None,
463
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
464
+ ) -> RESTResponseType:
465
+ """CONTROLLER.KYT.GET_TRANSFER_ALERTS.SUMMARY
466
+
467
+ CONTROLLER.KYT.GET_TRANSFER_ALERTS.DESCRIPTION
468
+
469
+ :param transfer_id: CONTROLLER.KYT.PARAM.TRANSFER_ID (required)
470
+ :type transfer_id: str
471
+ :param _request_timeout: timeout setting for this request. If one
472
+ number provided, it will be total request
473
+ timeout. It can also be a pair (tuple) of
474
+ (connection, read) timeouts.
475
+ :type _request_timeout: int, tuple(int, int), optional
476
+ :param _request_auth: set to override the auth_settings for an a single
477
+ request; this effectively ignores the
478
+ authentication in the spec for a single request.
479
+ :type _request_auth: dict, optional
480
+ :param _content_type: force content-type for the request.
481
+ :type _content_type: str, Optional
482
+ :param _headers: set to override the headers for a single
483
+ request; this effectively ignores the headers
484
+ in the spec for a single request.
485
+ :type _headers: dict, optional
486
+ :param _host_index: set to override the host_index for a single
487
+ request; this effectively ignores the host_index
488
+ in the spec for a single request.
489
+ :type _host_index: int, optional
490
+ :return: Returns the result object.
491
+ """ # noqa: E501
492
+
493
+ _param = self._get_transfer_alerts_serialize(
494
+ transfer_id=transfer_id,
495
+ _request_auth=_request_auth,
496
+ _content_type=_content_type,
497
+ _headers=_headers,
498
+ _host_index=_host_index
499
+ )
500
+
501
+ _response_types_map: Dict[str, Optional[str]] = {
502
+ '200': "TransferAlertsResponseDTO",
503
+ }
504
+ response_data = await self.api_client.call_api(
505
+ *_param,
506
+ _request_timeout=_request_timeout
507
+ )
508
+ return response_data.response
509
+
510
+
511
+ def _get_transfer_alerts_serialize(
512
+ self,
513
+ transfer_id,
514
+ _request_auth,
515
+ _content_type,
516
+ _headers,
517
+ _host_index,
518
+ ) -> RequestSerialized:
519
+
520
+ _host = None
521
+
522
+ _collection_formats: Dict[str, str] = {
523
+ }
524
+
525
+ _path_params: Dict[str, str] = {}
526
+ _query_params: List[Tuple[str, str]] = []
527
+ _header_params: Dict[str, Optional[str]] = _headers or {}
528
+ _form_params: List[Tuple[str, str]] = []
529
+ _files: Dict[
530
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
531
+ ] = {}
532
+ _body_params: Optional[bytes] = None
533
+
534
+ # process the path parameters
535
+ if transfer_id is not None:
536
+ _path_params['transferId'] = transfer_id
537
+ # process the query parameters
538
+ # process the header parameters
539
+ # process the form parameters
540
+ # process the body parameter
541
+
542
+
543
+ # set the HTTP header `Accept`
544
+ if 'Accept' not in _header_params:
545
+ _header_params['Accept'] = self.api_client.select_header_accept(
546
+ [
547
+ 'application/json'
548
+ ]
549
+ )
550
+
551
+
552
+ # authentication setting
553
+ _auth_settings: List[str] = [
554
+ 'bearer'
555
+ ]
556
+
557
+ return self.api_client.param_serialize(
558
+ method='GET',
559
+ resource_path='/v1/kyt/transfers/{transferId}/alerts',
560
+ path_params=_path_params,
561
+ query_params=_query_params,
562
+ header_params=_header_params,
563
+ body=_body_params,
564
+ post_params=_form_params,
565
+ files=_files,
566
+ auth_settings=_auth_settings,
567
+ collection_formats=_collection_formats,
568
+ _host=_host,
569
+ _request_auth=_request_auth
570
+ )
571
+
572
+
573
+
574
+
575
+ @validate_call
576
+ async def get_transfer_direct_exposure(
577
+ self,
578
+ transfer_id: Annotated[StrictStr, Field(description="CONTROLLER.KYT.PARAM.TRANSFER_ID")],
579
+ _request_timeout: Union[
580
+ None,
581
+ Annotated[StrictFloat, Field(gt=0)],
582
+ Tuple[
583
+ Annotated[StrictFloat, Field(gt=0)],
584
+ Annotated[StrictFloat, Field(gt=0)]
585
+ ]
586
+ ] = None,
587
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
588
+ _content_type: Optional[StrictStr] = None,
589
+ _headers: Optional[Dict[StrictStr, Any]] = None,
590
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
591
+ ) -> TransferDirectExposureResponseDTO:
592
+ """CONTROLLER.KYT.GET_TRANSFER_DIRECT_EXPOSURE.SUMMARY
593
+
594
+ CONTROLLER.KYT.GET_TRANSFER_DIRECT_EXPOSURE.DESCRIPTION
595
+
596
+ :param transfer_id: CONTROLLER.KYT.PARAM.TRANSFER_ID (required)
597
+ :type transfer_id: str
598
+ :param _request_timeout: timeout setting for this request. If one
599
+ number provided, it will be total request
600
+ timeout. It can also be a pair (tuple) of
601
+ (connection, read) timeouts.
602
+ :type _request_timeout: int, tuple(int, int), optional
603
+ :param _request_auth: set to override the auth_settings for an a single
604
+ request; this effectively ignores the
605
+ authentication in the spec for a single request.
606
+ :type _request_auth: dict, optional
607
+ :param _content_type: force content-type for the request.
608
+ :type _content_type: str, Optional
609
+ :param _headers: set to override the headers for a single
610
+ request; this effectively ignores the headers
611
+ in the spec for a single request.
612
+ :type _headers: dict, optional
613
+ :param _host_index: set to override the host_index for a single
614
+ request; this effectively ignores the host_index
615
+ in the spec for a single request.
616
+ :type _host_index: int, optional
617
+ :return: Returns the result object.
618
+ """ # noqa: E501
619
+
620
+ _param = self._get_transfer_direct_exposure_serialize(
621
+ transfer_id=transfer_id,
622
+ _request_auth=_request_auth,
623
+ _content_type=_content_type,
624
+ _headers=_headers,
625
+ _host_index=_host_index
626
+ )
627
+
628
+ _response_types_map: Dict[str, Optional[str]] = {
629
+ '200': "TransferDirectExposureResponseDTO",
630
+ }
631
+ response_data = await self.api_client.call_api(
632
+ *_param,
633
+ _request_timeout=_request_timeout
634
+ )
635
+ await response_data.read()
636
+ return self.api_client.response_deserialize(
637
+ response_data=response_data,
638
+ response_types_map=_response_types_map,
639
+ ).data
640
+
641
+
642
+ @validate_call
643
+ async def get_transfer_direct_exposure_with_http_info(
644
+ self,
645
+ transfer_id: Annotated[StrictStr, Field(description="CONTROLLER.KYT.PARAM.TRANSFER_ID")],
646
+ _request_timeout: Union[
647
+ None,
648
+ Annotated[StrictFloat, Field(gt=0)],
649
+ Tuple[
650
+ Annotated[StrictFloat, Field(gt=0)],
651
+ Annotated[StrictFloat, Field(gt=0)]
652
+ ]
653
+ ] = None,
654
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
655
+ _content_type: Optional[StrictStr] = None,
656
+ _headers: Optional[Dict[StrictStr, Any]] = None,
657
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
658
+ ) -> ApiResponse[TransferDirectExposureResponseDTO]:
659
+ """CONTROLLER.KYT.GET_TRANSFER_DIRECT_EXPOSURE.SUMMARY
660
+
661
+ CONTROLLER.KYT.GET_TRANSFER_DIRECT_EXPOSURE.DESCRIPTION
662
+
663
+ :param transfer_id: CONTROLLER.KYT.PARAM.TRANSFER_ID (required)
664
+ :type transfer_id: str
665
+ :param _request_timeout: timeout setting for this request. If one
666
+ number provided, it will be total request
667
+ timeout. It can also be a pair (tuple) of
668
+ (connection, read) timeouts.
669
+ :type _request_timeout: int, tuple(int, int), optional
670
+ :param _request_auth: set to override the auth_settings for an a single
671
+ request; this effectively ignores the
672
+ authentication in the spec for a single request.
673
+ :type _request_auth: dict, optional
674
+ :param _content_type: force content-type for the request.
675
+ :type _content_type: str, Optional
676
+ :param _headers: set to override the headers for a single
677
+ request; this effectively ignores the headers
678
+ in the spec for a single request.
679
+ :type _headers: dict, optional
680
+ :param _host_index: set to override the host_index for a single
681
+ request; this effectively ignores the host_index
682
+ in the spec for a single request.
683
+ :type _host_index: int, optional
684
+ :return: Returns the result object.
685
+ """ # noqa: E501
686
+
687
+ _param = self._get_transfer_direct_exposure_serialize(
688
+ transfer_id=transfer_id,
689
+ _request_auth=_request_auth,
690
+ _content_type=_content_type,
691
+ _headers=_headers,
692
+ _host_index=_host_index
693
+ )
694
+
695
+ _response_types_map: Dict[str, Optional[str]] = {
696
+ '200': "TransferDirectExposureResponseDTO",
697
+ }
698
+ response_data = await self.api_client.call_api(
699
+ *_param,
700
+ _request_timeout=_request_timeout
701
+ )
702
+ await response_data.read()
703
+ return self.api_client.response_deserialize(
704
+ response_data=response_data,
705
+ response_types_map=_response_types_map,
706
+ )
707
+
708
+
709
+ @validate_call
710
+ async def get_transfer_direct_exposure_without_preload_content(
711
+ self,
712
+ transfer_id: Annotated[StrictStr, Field(description="CONTROLLER.KYT.PARAM.TRANSFER_ID")],
713
+ _request_timeout: Union[
714
+ None,
715
+ Annotated[StrictFloat, Field(gt=0)],
716
+ Tuple[
717
+ Annotated[StrictFloat, Field(gt=0)],
718
+ Annotated[StrictFloat, Field(gt=0)]
719
+ ]
720
+ ] = None,
721
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
722
+ _content_type: Optional[StrictStr] = None,
723
+ _headers: Optional[Dict[StrictStr, Any]] = None,
724
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
725
+ ) -> RESTResponseType:
726
+ """CONTROLLER.KYT.GET_TRANSFER_DIRECT_EXPOSURE.SUMMARY
727
+
728
+ CONTROLLER.KYT.GET_TRANSFER_DIRECT_EXPOSURE.DESCRIPTION
729
+
730
+ :param transfer_id: CONTROLLER.KYT.PARAM.TRANSFER_ID (required)
731
+ :type transfer_id: str
732
+ :param _request_timeout: timeout setting for this request. If one
733
+ number provided, it will be total request
734
+ timeout. It can also be a pair (tuple) of
735
+ (connection, read) timeouts.
736
+ :type _request_timeout: int, tuple(int, int), optional
737
+ :param _request_auth: set to override the auth_settings for an a single
738
+ request; this effectively ignores the
739
+ authentication in the spec for a single request.
740
+ :type _request_auth: dict, optional
741
+ :param _content_type: force content-type for the request.
742
+ :type _content_type: str, Optional
743
+ :param _headers: set to override the headers for a single
744
+ request; this effectively ignores the headers
745
+ in the spec for a single request.
746
+ :type _headers: dict, optional
747
+ :param _host_index: set to override the host_index for a single
748
+ request; this effectively ignores the host_index
749
+ in the spec for a single request.
750
+ :type _host_index: int, optional
751
+ :return: Returns the result object.
752
+ """ # noqa: E501
753
+
754
+ _param = self._get_transfer_direct_exposure_serialize(
755
+ transfer_id=transfer_id,
756
+ _request_auth=_request_auth,
757
+ _content_type=_content_type,
758
+ _headers=_headers,
759
+ _host_index=_host_index
760
+ )
761
+
762
+ _response_types_map: Dict[str, Optional[str]] = {
763
+ '200': "TransferDirectExposureResponseDTO",
764
+ }
765
+ response_data = await self.api_client.call_api(
766
+ *_param,
767
+ _request_timeout=_request_timeout
768
+ )
769
+ return response_data.response
770
+
771
+
772
+ def _get_transfer_direct_exposure_serialize(
773
+ self,
774
+ transfer_id,
775
+ _request_auth,
776
+ _content_type,
777
+ _headers,
778
+ _host_index,
779
+ ) -> RequestSerialized:
780
+
781
+ _host = None
782
+
783
+ _collection_formats: Dict[str, str] = {
784
+ }
785
+
786
+ _path_params: Dict[str, str] = {}
787
+ _query_params: List[Tuple[str, str]] = []
788
+ _header_params: Dict[str, Optional[str]] = _headers or {}
789
+ _form_params: List[Tuple[str, str]] = []
790
+ _files: Dict[
791
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
792
+ ] = {}
793
+ _body_params: Optional[bytes] = None
794
+
795
+ # process the path parameters
796
+ if transfer_id is not None:
797
+ _path_params['transferId'] = transfer_id
798
+ # process the query parameters
799
+ # process the header parameters
800
+ # process the form parameters
801
+ # process the body parameter
802
+
803
+
804
+ # set the HTTP header `Accept`
805
+ if 'Accept' not in _header_params:
806
+ _header_params['Accept'] = self.api_client.select_header_accept(
807
+ [
808
+ 'application/json'
809
+ ]
810
+ )
811
+
812
+
813
+ # authentication setting
814
+ _auth_settings: List[str] = [
815
+ 'bearer'
816
+ ]
817
+
818
+ return self.api_client.param_serialize(
819
+ method='GET',
820
+ resource_path='/v1/kyt/transfers/{transferId}/exposures/direct',
821
+ path_params=_path_params,
822
+ query_params=_query_params,
823
+ header_params=_header_params,
824
+ body=_body_params,
825
+ post_params=_form_params,
826
+ files=_files,
827
+ auth_settings=_auth_settings,
828
+ collection_formats=_collection_formats,
829
+ _host=_host,
830
+ _request_auth=_request_auth
831
+ )
832
+
833
+
834
+
835
+
836
+ @validate_call
837
+ async def get_transfer_network_identifications(
838
+ self,
839
+ transfer_id: Annotated[StrictStr, Field(description="CONTROLLER.KYT.PARAM.TRANSFER_ID")],
840
+ _request_timeout: Union[
841
+ None,
842
+ Annotated[StrictFloat, Field(gt=0)],
843
+ Tuple[
844
+ Annotated[StrictFloat, Field(gt=0)],
845
+ Annotated[StrictFloat, Field(gt=0)]
846
+ ]
847
+ ] = None,
848
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
849
+ _content_type: Optional[StrictStr] = None,
850
+ _headers: Optional[Dict[StrictStr, Any]] = None,
851
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
852
+ ) -> TransferNetworkIdentificationsResponseDTO:
853
+ """CONTROLLER.KYT.GET_TRANSFER_NETWORK_IDENTIFICATIONS.SUMMARY
854
+
855
+ CONTROLLER.KYT.GET_TRANSFER_NETWORK_IDENTIFICATIONS.DESCRIPTION
856
+
857
+ :param transfer_id: CONTROLLER.KYT.PARAM.TRANSFER_ID (required)
858
+ :type transfer_id: str
859
+ :param _request_timeout: timeout setting for this request. If one
860
+ number provided, it will be total request
861
+ timeout. It can also be a pair (tuple) of
862
+ (connection, read) timeouts.
863
+ :type _request_timeout: int, tuple(int, int), optional
864
+ :param _request_auth: set to override the auth_settings for an a single
865
+ request; this effectively ignores the
866
+ authentication in the spec for a single request.
867
+ :type _request_auth: dict, optional
868
+ :param _content_type: force content-type for the request.
869
+ :type _content_type: str, Optional
870
+ :param _headers: set to override the headers for a single
871
+ request; this effectively ignores the headers
872
+ in the spec for a single request.
873
+ :type _headers: dict, optional
874
+ :param _host_index: set to override the host_index for a single
875
+ request; this effectively ignores the host_index
876
+ in the spec for a single request.
877
+ :type _host_index: int, optional
878
+ :return: Returns the result object.
879
+ """ # noqa: E501
880
+
881
+ _param = self._get_transfer_network_identifications_serialize(
882
+ transfer_id=transfer_id,
883
+ _request_auth=_request_auth,
884
+ _content_type=_content_type,
885
+ _headers=_headers,
886
+ _host_index=_host_index
887
+ )
888
+
889
+ _response_types_map: Dict[str, Optional[str]] = {
890
+ '200': "TransferNetworkIdentificationsResponseDTO",
891
+ }
892
+ response_data = await self.api_client.call_api(
893
+ *_param,
894
+ _request_timeout=_request_timeout
895
+ )
896
+ await response_data.read()
897
+ return self.api_client.response_deserialize(
898
+ response_data=response_data,
899
+ response_types_map=_response_types_map,
900
+ ).data
901
+
902
+
903
+ @validate_call
904
+ async def get_transfer_network_identifications_with_http_info(
905
+ self,
906
+ transfer_id: Annotated[StrictStr, Field(description="CONTROLLER.KYT.PARAM.TRANSFER_ID")],
907
+ _request_timeout: Union[
908
+ None,
909
+ Annotated[StrictFloat, Field(gt=0)],
910
+ Tuple[
911
+ Annotated[StrictFloat, Field(gt=0)],
912
+ Annotated[StrictFloat, Field(gt=0)]
913
+ ]
914
+ ] = None,
915
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
916
+ _content_type: Optional[StrictStr] = None,
917
+ _headers: Optional[Dict[StrictStr, Any]] = None,
918
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
919
+ ) -> ApiResponse[TransferNetworkIdentificationsResponseDTO]:
920
+ """CONTROLLER.KYT.GET_TRANSFER_NETWORK_IDENTIFICATIONS.SUMMARY
921
+
922
+ CONTROLLER.KYT.GET_TRANSFER_NETWORK_IDENTIFICATIONS.DESCRIPTION
923
+
924
+ :param transfer_id: CONTROLLER.KYT.PARAM.TRANSFER_ID (required)
925
+ :type transfer_id: str
926
+ :param _request_timeout: timeout setting for this request. If one
927
+ number provided, it will be total request
928
+ timeout. It can also be a pair (tuple) of
929
+ (connection, read) timeouts.
930
+ :type _request_timeout: int, tuple(int, int), optional
931
+ :param _request_auth: set to override the auth_settings for an a single
932
+ request; this effectively ignores the
933
+ authentication in the spec for a single request.
934
+ :type _request_auth: dict, optional
935
+ :param _content_type: force content-type for the request.
936
+ :type _content_type: str, Optional
937
+ :param _headers: set to override the headers for a single
938
+ request; this effectively ignores the headers
939
+ in the spec for a single request.
940
+ :type _headers: dict, optional
941
+ :param _host_index: set to override the host_index for a single
942
+ request; this effectively ignores the host_index
943
+ in the spec for a single request.
944
+ :type _host_index: int, optional
945
+ :return: Returns the result object.
946
+ """ # noqa: E501
947
+
948
+ _param = self._get_transfer_network_identifications_serialize(
949
+ transfer_id=transfer_id,
950
+ _request_auth=_request_auth,
951
+ _content_type=_content_type,
952
+ _headers=_headers,
953
+ _host_index=_host_index
954
+ )
955
+
956
+ _response_types_map: Dict[str, Optional[str]] = {
957
+ '200': "TransferNetworkIdentificationsResponseDTO",
958
+ }
959
+ response_data = await self.api_client.call_api(
960
+ *_param,
961
+ _request_timeout=_request_timeout
962
+ )
963
+ await response_data.read()
964
+ return self.api_client.response_deserialize(
965
+ response_data=response_data,
966
+ response_types_map=_response_types_map,
967
+ )
968
+
969
+
970
+ @validate_call
971
+ async def get_transfer_network_identifications_without_preload_content(
972
+ self,
973
+ transfer_id: Annotated[StrictStr, Field(description="CONTROLLER.KYT.PARAM.TRANSFER_ID")],
974
+ _request_timeout: Union[
975
+ None,
976
+ Annotated[StrictFloat, Field(gt=0)],
977
+ Tuple[
978
+ Annotated[StrictFloat, Field(gt=0)],
979
+ Annotated[StrictFloat, Field(gt=0)]
980
+ ]
981
+ ] = None,
982
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
983
+ _content_type: Optional[StrictStr] = None,
984
+ _headers: Optional[Dict[StrictStr, Any]] = None,
985
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
986
+ ) -> RESTResponseType:
987
+ """CONTROLLER.KYT.GET_TRANSFER_NETWORK_IDENTIFICATIONS.SUMMARY
988
+
989
+ CONTROLLER.KYT.GET_TRANSFER_NETWORK_IDENTIFICATIONS.DESCRIPTION
990
+
991
+ :param transfer_id: CONTROLLER.KYT.PARAM.TRANSFER_ID (required)
992
+ :type transfer_id: str
993
+ :param _request_timeout: timeout setting for this request. If one
994
+ number provided, it will be total request
995
+ timeout. It can also be a pair (tuple) of
996
+ (connection, read) timeouts.
997
+ :type _request_timeout: int, tuple(int, int), optional
998
+ :param _request_auth: set to override the auth_settings for an a single
999
+ request; this effectively ignores the
1000
+ authentication in the spec for a single request.
1001
+ :type _request_auth: dict, optional
1002
+ :param _content_type: force content-type for the request.
1003
+ :type _content_type: str, Optional
1004
+ :param _headers: set to override the headers for a single
1005
+ request; this effectively ignores the headers
1006
+ in the spec for a single request.
1007
+ :type _headers: dict, optional
1008
+ :param _host_index: set to override the host_index for a single
1009
+ request; this effectively ignores the host_index
1010
+ in the spec for a single request.
1011
+ :type _host_index: int, optional
1012
+ :return: Returns the result object.
1013
+ """ # noqa: E501
1014
+
1015
+ _param = self._get_transfer_network_identifications_serialize(
1016
+ transfer_id=transfer_id,
1017
+ _request_auth=_request_auth,
1018
+ _content_type=_content_type,
1019
+ _headers=_headers,
1020
+ _host_index=_host_index
1021
+ )
1022
+
1023
+ _response_types_map: Dict[str, Optional[str]] = {
1024
+ '200': "TransferNetworkIdentificationsResponseDTO",
1025
+ }
1026
+ response_data = await self.api_client.call_api(
1027
+ *_param,
1028
+ _request_timeout=_request_timeout
1029
+ )
1030
+ return response_data.response
1031
+
1032
+
1033
+ def _get_transfer_network_identifications_serialize(
1034
+ self,
1035
+ transfer_id,
1036
+ _request_auth,
1037
+ _content_type,
1038
+ _headers,
1039
+ _host_index,
1040
+ ) -> RequestSerialized:
1041
+
1042
+ _host = None
1043
+
1044
+ _collection_formats: Dict[str, str] = {
1045
+ }
1046
+
1047
+ _path_params: Dict[str, str] = {}
1048
+ _query_params: List[Tuple[str, str]] = []
1049
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1050
+ _form_params: List[Tuple[str, str]] = []
1051
+ _files: Dict[
1052
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1053
+ ] = {}
1054
+ _body_params: Optional[bytes] = None
1055
+
1056
+ # process the path parameters
1057
+ if transfer_id is not None:
1058
+ _path_params['transferId'] = transfer_id
1059
+ # process the query parameters
1060
+ # process the header parameters
1061
+ # process the form parameters
1062
+ # process the body parameter
1063
+
1064
+
1065
+ # set the HTTP header `Accept`
1066
+ if 'Accept' not in _header_params:
1067
+ _header_params['Accept'] = self.api_client.select_header_accept(
1068
+ [
1069
+ 'application/json'
1070
+ ]
1071
+ )
1072
+
1073
+
1074
+ # authentication setting
1075
+ _auth_settings: List[str] = [
1076
+ 'bearer'
1077
+ ]
1078
+
1079
+ return self.api_client.param_serialize(
1080
+ method='GET',
1081
+ resource_path='/v1/kyt/transfers/{transferId}/network-identifications',
1082
+ path_params=_path_params,
1083
+ query_params=_query_params,
1084
+ header_params=_header_params,
1085
+ body=_body_params,
1086
+ post_params=_form_params,
1087
+ files=_files,
1088
+ auth_settings=_auth_settings,
1089
+ collection_formats=_collection_formats,
1090
+ _host=_host,
1091
+ _request_auth=_request_auth
1092
+ )
1093
+
1094
+
1095
+
1096
+
1097
+ @validate_call
1098
+ async def get_transfer_summary(
1099
+ self,
1100
+ transfer_id: Annotated[StrictStr, Field(description="CONTROLLER.KYT.PARAM.TRANSFER_ID")],
1101
+ _request_timeout: Union[
1102
+ None,
1103
+ Annotated[StrictFloat, Field(gt=0)],
1104
+ Tuple[
1105
+ Annotated[StrictFloat, Field(gt=0)],
1106
+ Annotated[StrictFloat, Field(gt=0)]
1107
+ ]
1108
+ ] = None,
1109
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1110
+ _content_type: Optional[StrictStr] = None,
1111
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1112
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1113
+ ) -> TransferBaseResponseDTO:
1114
+ """CONTROLLER.KYT.GET_TRANSFER_SUMMARY.SUMMARY
1115
+
1116
+ CONTROLLER.KYT.GET_TRANSFER_SUMMARY.DESCRIPTION
1117
+
1118
+ :param transfer_id: CONTROLLER.KYT.PARAM.TRANSFER_ID (required)
1119
+ :type transfer_id: str
1120
+ :param _request_timeout: timeout setting for this request. If one
1121
+ number provided, it will be total request
1122
+ timeout. It can also be a pair (tuple) of
1123
+ (connection, read) timeouts.
1124
+ :type _request_timeout: int, tuple(int, int), optional
1125
+ :param _request_auth: set to override the auth_settings for an a single
1126
+ request; this effectively ignores the
1127
+ authentication in the spec for a single request.
1128
+ :type _request_auth: dict, optional
1129
+ :param _content_type: force content-type for the request.
1130
+ :type _content_type: str, Optional
1131
+ :param _headers: set to override the headers for a single
1132
+ request; this effectively ignores the headers
1133
+ in the spec for a single request.
1134
+ :type _headers: dict, optional
1135
+ :param _host_index: set to override the host_index for a single
1136
+ request; this effectively ignores the host_index
1137
+ in the spec for a single request.
1138
+ :type _host_index: int, optional
1139
+ :return: Returns the result object.
1140
+ """ # noqa: E501
1141
+
1142
+ _param = self._get_transfer_summary_serialize(
1143
+ transfer_id=transfer_id,
1144
+ _request_auth=_request_auth,
1145
+ _content_type=_content_type,
1146
+ _headers=_headers,
1147
+ _host_index=_host_index
1148
+ )
1149
+
1150
+ _response_types_map: Dict[str, Optional[str]] = {
1151
+ '200': "TransferBaseResponseDTO",
1152
+ }
1153
+ response_data = await self.api_client.call_api(
1154
+ *_param,
1155
+ _request_timeout=_request_timeout
1156
+ )
1157
+ await response_data.read()
1158
+ return self.api_client.response_deserialize(
1159
+ response_data=response_data,
1160
+ response_types_map=_response_types_map,
1161
+ ).data
1162
+
1163
+
1164
+ @validate_call
1165
+ async def get_transfer_summary_with_http_info(
1166
+ self,
1167
+ transfer_id: Annotated[StrictStr, Field(description="CONTROLLER.KYT.PARAM.TRANSFER_ID")],
1168
+ _request_timeout: Union[
1169
+ None,
1170
+ Annotated[StrictFloat, Field(gt=0)],
1171
+ Tuple[
1172
+ Annotated[StrictFloat, Field(gt=0)],
1173
+ Annotated[StrictFloat, Field(gt=0)]
1174
+ ]
1175
+ ] = None,
1176
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1177
+ _content_type: Optional[StrictStr] = None,
1178
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1179
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1180
+ ) -> ApiResponse[TransferBaseResponseDTO]:
1181
+ """CONTROLLER.KYT.GET_TRANSFER_SUMMARY.SUMMARY
1182
+
1183
+ CONTROLLER.KYT.GET_TRANSFER_SUMMARY.DESCRIPTION
1184
+
1185
+ :param transfer_id: CONTROLLER.KYT.PARAM.TRANSFER_ID (required)
1186
+ :type transfer_id: str
1187
+ :param _request_timeout: timeout setting for this request. If one
1188
+ number provided, it will be total request
1189
+ timeout. It can also be a pair (tuple) of
1190
+ (connection, read) timeouts.
1191
+ :type _request_timeout: int, tuple(int, int), optional
1192
+ :param _request_auth: set to override the auth_settings for an a single
1193
+ request; this effectively ignores the
1194
+ authentication in the spec for a single request.
1195
+ :type _request_auth: dict, optional
1196
+ :param _content_type: force content-type for the request.
1197
+ :type _content_type: str, Optional
1198
+ :param _headers: set to override the headers for a single
1199
+ request; this effectively ignores the headers
1200
+ in the spec for a single request.
1201
+ :type _headers: dict, optional
1202
+ :param _host_index: set to override the host_index for a single
1203
+ request; this effectively ignores the host_index
1204
+ in the spec for a single request.
1205
+ :type _host_index: int, optional
1206
+ :return: Returns the result object.
1207
+ """ # noqa: E501
1208
+
1209
+ _param = self._get_transfer_summary_serialize(
1210
+ transfer_id=transfer_id,
1211
+ _request_auth=_request_auth,
1212
+ _content_type=_content_type,
1213
+ _headers=_headers,
1214
+ _host_index=_host_index
1215
+ )
1216
+
1217
+ _response_types_map: Dict[str, Optional[str]] = {
1218
+ '200': "TransferBaseResponseDTO",
1219
+ }
1220
+ response_data = await self.api_client.call_api(
1221
+ *_param,
1222
+ _request_timeout=_request_timeout
1223
+ )
1224
+ await response_data.read()
1225
+ return self.api_client.response_deserialize(
1226
+ response_data=response_data,
1227
+ response_types_map=_response_types_map,
1228
+ )
1229
+
1230
+
1231
+ @validate_call
1232
+ async def get_transfer_summary_without_preload_content(
1233
+ self,
1234
+ transfer_id: Annotated[StrictStr, Field(description="CONTROLLER.KYT.PARAM.TRANSFER_ID")],
1235
+ _request_timeout: Union[
1236
+ None,
1237
+ Annotated[StrictFloat, Field(gt=0)],
1238
+ Tuple[
1239
+ Annotated[StrictFloat, Field(gt=0)],
1240
+ Annotated[StrictFloat, Field(gt=0)]
1241
+ ]
1242
+ ] = None,
1243
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1244
+ _content_type: Optional[StrictStr] = None,
1245
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1246
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1247
+ ) -> RESTResponseType:
1248
+ """CONTROLLER.KYT.GET_TRANSFER_SUMMARY.SUMMARY
1249
+
1250
+ CONTROLLER.KYT.GET_TRANSFER_SUMMARY.DESCRIPTION
1251
+
1252
+ :param transfer_id: CONTROLLER.KYT.PARAM.TRANSFER_ID (required)
1253
+ :type transfer_id: str
1254
+ :param _request_timeout: timeout setting for this request. If one
1255
+ number provided, it will be total request
1256
+ timeout. It can also be a pair (tuple) of
1257
+ (connection, read) timeouts.
1258
+ :type _request_timeout: int, tuple(int, int), optional
1259
+ :param _request_auth: set to override the auth_settings for an a single
1260
+ request; this effectively ignores the
1261
+ authentication in the spec for a single request.
1262
+ :type _request_auth: dict, optional
1263
+ :param _content_type: force content-type for the request.
1264
+ :type _content_type: str, Optional
1265
+ :param _headers: set to override the headers for a single
1266
+ request; this effectively ignores the headers
1267
+ in the spec for a single request.
1268
+ :type _headers: dict, optional
1269
+ :param _host_index: set to override the host_index for a single
1270
+ request; this effectively ignores the host_index
1271
+ in the spec for a single request.
1272
+ :type _host_index: int, optional
1273
+ :return: Returns the result object.
1274
+ """ # noqa: E501
1275
+
1276
+ _param = self._get_transfer_summary_serialize(
1277
+ transfer_id=transfer_id,
1278
+ _request_auth=_request_auth,
1279
+ _content_type=_content_type,
1280
+ _headers=_headers,
1281
+ _host_index=_host_index
1282
+ )
1283
+
1284
+ _response_types_map: Dict[str, Optional[str]] = {
1285
+ '200': "TransferBaseResponseDTO",
1286
+ }
1287
+ response_data = await self.api_client.call_api(
1288
+ *_param,
1289
+ _request_timeout=_request_timeout
1290
+ )
1291
+ return response_data.response
1292
+
1293
+
1294
+ def _get_transfer_summary_serialize(
1295
+ self,
1296
+ transfer_id,
1297
+ _request_auth,
1298
+ _content_type,
1299
+ _headers,
1300
+ _host_index,
1301
+ ) -> RequestSerialized:
1302
+
1303
+ _host = None
1304
+
1305
+ _collection_formats: Dict[str, str] = {
1306
+ }
1307
+
1308
+ _path_params: Dict[str, str] = {}
1309
+ _query_params: List[Tuple[str, str]] = []
1310
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1311
+ _form_params: List[Tuple[str, str]] = []
1312
+ _files: Dict[
1313
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1314
+ ] = {}
1315
+ _body_params: Optional[bytes] = None
1316
+
1317
+ # process the path parameters
1318
+ if transfer_id is not None:
1319
+ _path_params['transferId'] = transfer_id
1320
+ # process the query parameters
1321
+ # process the header parameters
1322
+ # process the form parameters
1323
+ # process the body parameter
1324
+
1325
+
1326
+ # set the HTTP header `Accept`
1327
+ if 'Accept' not in _header_params:
1328
+ _header_params['Accept'] = self.api_client.select_header_accept(
1329
+ [
1330
+ 'application/json'
1331
+ ]
1332
+ )
1333
+
1334
+
1335
+ # authentication setting
1336
+ _auth_settings: List[str] = [
1337
+ 'bearer'
1338
+ ]
1339
+
1340
+ return self.api_client.param_serialize(
1341
+ method='GET',
1342
+ resource_path='/v1/kyt/transfers/{transferId}/summary',
1343
+ path_params=_path_params,
1344
+ query_params=_query_params,
1345
+ header_params=_header_params,
1346
+ body=_body_params,
1347
+ post_params=_form_params,
1348
+ files=_files,
1349
+ auth_settings=_auth_settings,
1350
+ collection_formats=_collection_formats,
1351
+ _host=_host,
1352
+ _request_auth=_request_auth
1353
+ )
1354
+
1355
+
1356
+
1357
+
1358
+ @validate_call
1359
+ async def get_withdrawal_address_identifications(
1360
+ self,
1361
+ withdrawal_id: Annotated[StrictStr, Field(description="CONTROLLER.KYT.PARAM.WITHDRAWAL_ID")],
1362
+ _request_timeout: Union[
1363
+ None,
1364
+ Annotated[StrictFloat, Field(gt=0)],
1365
+ Tuple[
1366
+ Annotated[StrictFloat, Field(gt=0)],
1367
+ Annotated[StrictFloat, Field(gt=0)]
1368
+ ]
1369
+ ] = None,
1370
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1371
+ _content_type: Optional[StrictStr] = None,
1372
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1373
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1374
+ ) -> WithdrawalAddressIdentificationsResponseDTO:
1375
+ """CONTROLLER.KYT.GET_WITHDRAWAL_ADDRESS_IDENTIFICATIONS.SUMMARY
1376
+
1377
+ CONTROLLER.KYT.GET_WITHDRAWAL_ADDRESS_IDENTIFICATIONS.DESCRIPTION
1378
+
1379
+ :param withdrawal_id: CONTROLLER.KYT.PARAM.WITHDRAWAL_ID (required)
1380
+ :type withdrawal_id: str
1381
+ :param _request_timeout: timeout setting for this request. If one
1382
+ number provided, it will be total request
1383
+ timeout. It can also be a pair (tuple) of
1384
+ (connection, read) timeouts.
1385
+ :type _request_timeout: int, tuple(int, int), optional
1386
+ :param _request_auth: set to override the auth_settings for an a single
1387
+ request; this effectively ignores the
1388
+ authentication in the spec for a single request.
1389
+ :type _request_auth: dict, optional
1390
+ :param _content_type: force content-type for the request.
1391
+ :type _content_type: str, Optional
1392
+ :param _headers: set to override the headers for a single
1393
+ request; this effectively ignores the headers
1394
+ in the spec for a single request.
1395
+ :type _headers: dict, optional
1396
+ :param _host_index: set to override the host_index for a single
1397
+ request; this effectively ignores the host_index
1398
+ in the spec for a single request.
1399
+ :type _host_index: int, optional
1400
+ :return: Returns the result object.
1401
+ """ # noqa: E501
1402
+
1403
+ _param = self._get_withdrawal_address_identifications_serialize(
1404
+ withdrawal_id=withdrawal_id,
1405
+ _request_auth=_request_auth,
1406
+ _content_type=_content_type,
1407
+ _headers=_headers,
1408
+ _host_index=_host_index
1409
+ )
1410
+
1411
+ _response_types_map: Dict[str, Optional[str]] = {
1412
+ '200': "WithdrawalAddressIdentificationsResponseDTO",
1413
+ }
1414
+ response_data = await self.api_client.call_api(
1415
+ *_param,
1416
+ _request_timeout=_request_timeout
1417
+ )
1418
+ await response_data.read()
1419
+ return self.api_client.response_deserialize(
1420
+ response_data=response_data,
1421
+ response_types_map=_response_types_map,
1422
+ ).data
1423
+
1424
+
1425
+ @validate_call
1426
+ async def get_withdrawal_address_identifications_with_http_info(
1427
+ self,
1428
+ withdrawal_id: Annotated[StrictStr, Field(description="CONTROLLER.KYT.PARAM.WITHDRAWAL_ID")],
1429
+ _request_timeout: Union[
1430
+ None,
1431
+ Annotated[StrictFloat, Field(gt=0)],
1432
+ Tuple[
1433
+ Annotated[StrictFloat, Field(gt=0)],
1434
+ Annotated[StrictFloat, Field(gt=0)]
1435
+ ]
1436
+ ] = None,
1437
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1438
+ _content_type: Optional[StrictStr] = None,
1439
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1440
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1441
+ ) -> ApiResponse[WithdrawalAddressIdentificationsResponseDTO]:
1442
+ """CONTROLLER.KYT.GET_WITHDRAWAL_ADDRESS_IDENTIFICATIONS.SUMMARY
1443
+
1444
+ CONTROLLER.KYT.GET_WITHDRAWAL_ADDRESS_IDENTIFICATIONS.DESCRIPTION
1445
+
1446
+ :param withdrawal_id: CONTROLLER.KYT.PARAM.WITHDRAWAL_ID (required)
1447
+ :type withdrawal_id: str
1448
+ :param _request_timeout: timeout setting for this request. If one
1449
+ number provided, it will be total request
1450
+ timeout. It can also be a pair (tuple) of
1451
+ (connection, read) timeouts.
1452
+ :type _request_timeout: int, tuple(int, int), optional
1453
+ :param _request_auth: set to override the auth_settings for an a single
1454
+ request; this effectively ignores the
1455
+ authentication in the spec for a single request.
1456
+ :type _request_auth: dict, optional
1457
+ :param _content_type: force content-type for the request.
1458
+ :type _content_type: str, Optional
1459
+ :param _headers: set to override the headers for a single
1460
+ request; this effectively ignores the headers
1461
+ in the spec for a single request.
1462
+ :type _headers: dict, optional
1463
+ :param _host_index: set to override the host_index for a single
1464
+ request; this effectively ignores the host_index
1465
+ in the spec for a single request.
1466
+ :type _host_index: int, optional
1467
+ :return: Returns the result object.
1468
+ """ # noqa: E501
1469
+
1470
+ _param = self._get_withdrawal_address_identifications_serialize(
1471
+ withdrawal_id=withdrawal_id,
1472
+ _request_auth=_request_auth,
1473
+ _content_type=_content_type,
1474
+ _headers=_headers,
1475
+ _host_index=_host_index
1476
+ )
1477
+
1478
+ _response_types_map: Dict[str, Optional[str]] = {
1479
+ '200': "WithdrawalAddressIdentificationsResponseDTO",
1480
+ }
1481
+ response_data = await self.api_client.call_api(
1482
+ *_param,
1483
+ _request_timeout=_request_timeout
1484
+ )
1485
+ await response_data.read()
1486
+ return self.api_client.response_deserialize(
1487
+ response_data=response_data,
1488
+ response_types_map=_response_types_map,
1489
+ )
1490
+
1491
+
1492
+ @validate_call
1493
+ async def get_withdrawal_address_identifications_without_preload_content(
1494
+ self,
1495
+ withdrawal_id: Annotated[StrictStr, Field(description="CONTROLLER.KYT.PARAM.WITHDRAWAL_ID")],
1496
+ _request_timeout: Union[
1497
+ None,
1498
+ Annotated[StrictFloat, Field(gt=0)],
1499
+ Tuple[
1500
+ Annotated[StrictFloat, Field(gt=0)],
1501
+ Annotated[StrictFloat, Field(gt=0)]
1502
+ ]
1503
+ ] = None,
1504
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1505
+ _content_type: Optional[StrictStr] = None,
1506
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1507
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1508
+ ) -> RESTResponseType:
1509
+ """CONTROLLER.KYT.GET_WITHDRAWAL_ADDRESS_IDENTIFICATIONS.SUMMARY
1510
+
1511
+ CONTROLLER.KYT.GET_WITHDRAWAL_ADDRESS_IDENTIFICATIONS.DESCRIPTION
1512
+
1513
+ :param withdrawal_id: CONTROLLER.KYT.PARAM.WITHDRAWAL_ID (required)
1514
+ :type withdrawal_id: str
1515
+ :param _request_timeout: timeout setting for this request. If one
1516
+ number provided, it will be total request
1517
+ timeout. It can also be a pair (tuple) of
1518
+ (connection, read) timeouts.
1519
+ :type _request_timeout: int, tuple(int, int), optional
1520
+ :param _request_auth: set to override the auth_settings for an a single
1521
+ request; this effectively ignores the
1522
+ authentication in the spec for a single request.
1523
+ :type _request_auth: dict, optional
1524
+ :param _content_type: force content-type for the request.
1525
+ :type _content_type: str, Optional
1526
+ :param _headers: set to override the headers for a single
1527
+ request; this effectively ignores the headers
1528
+ in the spec for a single request.
1529
+ :type _headers: dict, optional
1530
+ :param _host_index: set to override the host_index for a single
1531
+ request; this effectively ignores the host_index
1532
+ in the spec for a single request.
1533
+ :type _host_index: int, optional
1534
+ :return: Returns the result object.
1535
+ """ # noqa: E501
1536
+
1537
+ _param = self._get_withdrawal_address_identifications_serialize(
1538
+ withdrawal_id=withdrawal_id,
1539
+ _request_auth=_request_auth,
1540
+ _content_type=_content_type,
1541
+ _headers=_headers,
1542
+ _host_index=_host_index
1543
+ )
1544
+
1545
+ _response_types_map: Dict[str, Optional[str]] = {
1546
+ '200': "WithdrawalAddressIdentificationsResponseDTO",
1547
+ }
1548
+ response_data = await self.api_client.call_api(
1549
+ *_param,
1550
+ _request_timeout=_request_timeout
1551
+ )
1552
+ return response_data.response
1553
+
1554
+
1555
+ def _get_withdrawal_address_identifications_serialize(
1556
+ self,
1557
+ withdrawal_id,
1558
+ _request_auth,
1559
+ _content_type,
1560
+ _headers,
1561
+ _host_index,
1562
+ ) -> RequestSerialized:
1563
+
1564
+ _host = None
1565
+
1566
+ _collection_formats: Dict[str, str] = {
1567
+ }
1568
+
1569
+ _path_params: Dict[str, str] = {}
1570
+ _query_params: List[Tuple[str, str]] = []
1571
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1572
+ _form_params: List[Tuple[str, str]] = []
1573
+ _files: Dict[
1574
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1575
+ ] = {}
1576
+ _body_params: Optional[bytes] = None
1577
+
1578
+ # process the path parameters
1579
+ if withdrawal_id is not None:
1580
+ _path_params['withdrawalId'] = withdrawal_id
1581
+ # process the query parameters
1582
+ # process the header parameters
1583
+ # process the form parameters
1584
+ # process the body parameter
1585
+
1586
+
1587
+ # set the HTTP header `Accept`
1588
+ if 'Accept' not in _header_params:
1589
+ _header_params['Accept'] = self.api_client.select_header_accept(
1590
+ [
1591
+ 'application/json'
1592
+ ]
1593
+ )
1594
+
1595
+
1596
+ # authentication setting
1597
+ _auth_settings: List[str] = [
1598
+ 'bearer'
1599
+ ]
1600
+
1601
+ return self.api_client.param_serialize(
1602
+ method='GET',
1603
+ resource_path='/v1/kyt/withdrawal/{withdrawalId}/address-identifications',
1604
+ path_params=_path_params,
1605
+ query_params=_query_params,
1606
+ header_params=_header_params,
1607
+ body=_body_params,
1608
+ post_params=_form_params,
1609
+ files=_files,
1610
+ auth_settings=_auth_settings,
1611
+ collection_formats=_collection_formats,
1612
+ _host=_host,
1613
+ _request_auth=_request_auth
1614
+ )
1615
+
1616
+
1617
+
1618
+
1619
+ @validate_call
1620
+ async def get_withdrawal_alerts(
1621
+ self,
1622
+ withdrawal_id: Annotated[StrictStr, Field(description="CONTROLLER.KYT.PARAM.WITHDRAWAL_ID")],
1623
+ _request_timeout: Union[
1624
+ None,
1625
+ Annotated[StrictFloat, Field(gt=0)],
1626
+ Tuple[
1627
+ Annotated[StrictFloat, Field(gt=0)],
1628
+ Annotated[StrictFloat, Field(gt=0)]
1629
+ ]
1630
+ ] = None,
1631
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1632
+ _content_type: Optional[StrictStr] = None,
1633
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1634
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1635
+ ) -> TransferAlertsResponseDTO:
1636
+ """CONTROLLER.KYT.GET_WITHDRAWAL_ALERTS.SUMMARY
1637
+
1638
+ CONTROLLER.KYT.GET_WITHDRAWAL_ALERTS.DESCRIPTION
1639
+
1640
+ :param withdrawal_id: CONTROLLER.KYT.PARAM.WITHDRAWAL_ID (required)
1641
+ :type withdrawal_id: str
1642
+ :param _request_timeout: timeout setting for this request. If one
1643
+ number provided, it will be total request
1644
+ timeout. It can also be a pair (tuple) of
1645
+ (connection, read) timeouts.
1646
+ :type _request_timeout: int, tuple(int, int), optional
1647
+ :param _request_auth: set to override the auth_settings for an a single
1648
+ request; this effectively ignores the
1649
+ authentication in the spec for a single request.
1650
+ :type _request_auth: dict, optional
1651
+ :param _content_type: force content-type for the request.
1652
+ :type _content_type: str, Optional
1653
+ :param _headers: set to override the headers for a single
1654
+ request; this effectively ignores the headers
1655
+ in the spec for a single request.
1656
+ :type _headers: dict, optional
1657
+ :param _host_index: set to override the host_index for a single
1658
+ request; this effectively ignores the host_index
1659
+ in the spec for a single request.
1660
+ :type _host_index: int, optional
1661
+ :return: Returns the result object.
1662
+ """ # noqa: E501
1663
+
1664
+ _param = self._get_withdrawal_alerts_serialize(
1665
+ withdrawal_id=withdrawal_id,
1666
+ _request_auth=_request_auth,
1667
+ _content_type=_content_type,
1668
+ _headers=_headers,
1669
+ _host_index=_host_index
1670
+ )
1671
+
1672
+ _response_types_map: Dict[str, Optional[str]] = {
1673
+ '200': "TransferAlertsResponseDTO",
1674
+ }
1675
+ response_data = await self.api_client.call_api(
1676
+ *_param,
1677
+ _request_timeout=_request_timeout
1678
+ )
1679
+ await response_data.read()
1680
+ return self.api_client.response_deserialize(
1681
+ response_data=response_data,
1682
+ response_types_map=_response_types_map,
1683
+ ).data
1684
+
1685
+
1686
+ @validate_call
1687
+ async def get_withdrawal_alerts_with_http_info(
1688
+ self,
1689
+ withdrawal_id: Annotated[StrictStr, Field(description="CONTROLLER.KYT.PARAM.WITHDRAWAL_ID")],
1690
+ _request_timeout: Union[
1691
+ None,
1692
+ Annotated[StrictFloat, Field(gt=0)],
1693
+ Tuple[
1694
+ Annotated[StrictFloat, Field(gt=0)],
1695
+ Annotated[StrictFloat, Field(gt=0)]
1696
+ ]
1697
+ ] = None,
1698
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1699
+ _content_type: Optional[StrictStr] = None,
1700
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1701
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1702
+ ) -> ApiResponse[TransferAlertsResponseDTO]:
1703
+ """CONTROLLER.KYT.GET_WITHDRAWAL_ALERTS.SUMMARY
1704
+
1705
+ CONTROLLER.KYT.GET_WITHDRAWAL_ALERTS.DESCRIPTION
1706
+
1707
+ :param withdrawal_id: CONTROLLER.KYT.PARAM.WITHDRAWAL_ID (required)
1708
+ :type withdrawal_id: str
1709
+ :param _request_timeout: timeout setting for this request. If one
1710
+ number provided, it will be total request
1711
+ timeout. It can also be a pair (tuple) of
1712
+ (connection, read) timeouts.
1713
+ :type _request_timeout: int, tuple(int, int), optional
1714
+ :param _request_auth: set to override the auth_settings for an a single
1715
+ request; this effectively ignores the
1716
+ authentication in the spec for a single request.
1717
+ :type _request_auth: dict, optional
1718
+ :param _content_type: force content-type for the request.
1719
+ :type _content_type: str, Optional
1720
+ :param _headers: set to override the headers for a single
1721
+ request; this effectively ignores the headers
1722
+ in the spec for a single request.
1723
+ :type _headers: dict, optional
1724
+ :param _host_index: set to override the host_index for a single
1725
+ request; this effectively ignores the host_index
1726
+ in the spec for a single request.
1727
+ :type _host_index: int, optional
1728
+ :return: Returns the result object.
1729
+ """ # noqa: E501
1730
+
1731
+ _param = self._get_withdrawal_alerts_serialize(
1732
+ withdrawal_id=withdrawal_id,
1733
+ _request_auth=_request_auth,
1734
+ _content_type=_content_type,
1735
+ _headers=_headers,
1736
+ _host_index=_host_index
1737
+ )
1738
+
1739
+ _response_types_map: Dict[str, Optional[str]] = {
1740
+ '200': "TransferAlertsResponseDTO",
1741
+ }
1742
+ response_data = await self.api_client.call_api(
1743
+ *_param,
1744
+ _request_timeout=_request_timeout
1745
+ )
1746
+ await response_data.read()
1747
+ return self.api_client.response_deserialize(
1748
+ response_data=response_data,
1749
+ response_types_map=_response_types_map,
1750
+ )
1751
+
1752
+
1753
+ @validate_call
1754
+ async def get_withdrawal_alerts_without_preload_content(
1755
+ self,
1756
+ withdrawal_id: Annotated[StrictStr, Field(description="CONTROLLER.KYT.PARAM.WITHDRAWAL_ID")],
1757
+ _request_timeout: Union[
1758
+ None,
1759
+ Annotated[StrictFloat, Field(gt=0)],
1760
+ Tuple[
1761
+ Annotated[StrictFloat, Field(gt=0)],
1762
+ Annotated[StrictFloat, Field(gt=0)]
1763
+ ]
1764
+ ] = None,
1765
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1766
+ _content_type: Optional[StrictStr] = None,
1767
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1768
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1769
+ ) -> RESTResponseType:
1770
+ """CONTROLLER.KYT.GET_WITHDRAWAL_ALERTS.SUMMARY
1771
+
1772
+ CONTROLLER.KYT.GET_WITHDRAWAL_ALERTS.DESCRIPTION
1773
+
1774
+ :param withdrawal_id: CONTROLLER.KYT.PARAM.WITHDRAWAL_ID (required)
1775
+ :type withdrawal_id: str
1776
+ :param _request_timeout: timeout setting for this request. If one
1777
+ number provided, it will be total request
1778
+ timeout. It can also be a pair (tuple) of
1779
+ (connection, read) timeouts.
1780
+ :type _request_timeout: int, tuple(int, int), optional
1781
+ :param _request_auth: set to override the auth_settings for an a single
1782
+ request; this effectively ignores the
1783
+ authentication in the spec for a single request.
1784
+ :type _request_auth: dict, optional
1785
+ :param _content_type: force content-type for the request.
1786
+ :type _content_type: str, Optional
1787
+ :param _headers: set to override the headers for a single
1788
+ request; this effectively ignores the headers
1789
+ in the spec for a single request.
1790
+ :type _headers: dict, optional
1791
+ :param _host_index: set to override the host_index for a single
1792
+ request; this effectively ignores the host_index
1793
+ in the spec for a single request.
1794
+ :type _host_index: int, optional
1795
+ :return: Returns the result object.
1796
+ """ # noqa: E501
1797
+
1798
+ _param = self._get_withdrawal_alerts_serialize(
1799
+ withdrawal_id=withdrawal_id,
1800
+ _request_auth=_request_auth,
1801
+ _content_type=_content_type,
1802
+ _headers=_headers,
1803
+ _host_index=_host_index
1804
+ )
1805
+
1806
+ _response_types_map: Dict[str, Optional[str]] = {
1807
+ '200': "TransferAlertsResponseDTO",
1808
+ }
1809
+ response_data = await self.api_client.call_api(
1810
+ *_param,
1811
+ _request_timeout=_request_timeout
1812
+ )
1813
+ return response_data.response
1814
+
1815
+
1816
+ def _get_withdrawal_alerts_serialize(
1817
+ self,
1818
+ withdrawal_id,
1819
+ _request_auth,
1820
+ _content_type,
1821
+ _headers,
1822
+ _host_index,
1823
+ ) -> RequestSerialized:
1824
+
1825
+ _host = None
1826
+
1827
+ _collection_formats: Dict[str, str] = {
1828
+ }
1829
+
1830
+ _path_params: Dict[str, str] = {}
1831
+ _query_params: List[Tuple[str, str]] = []
1832
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1833
+ _form_params: List[Tuple[str, str]] = []
1834
+ _files: Dict[
1835
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1836
+ ] = {}
1837
+ _body_params: Optional[bytes] = None
1838
+
1839
+ # process the path parameters
1840
+ if withdrawal_id is not None:
1841
+ _path_params['withdrawalId'] = withdrawal_id
1842
+ # process the query parameters
1843
+ # process the header parameters
1844
+ # process the form parameters
1845
+ # process the body parameter
1846
+
1847
+
1848
+ # set the HTTP header `Accept`
1849
+ if 'Accept' not in _header_params:
1850
+ _header_params['Accept'] = self.api_client.select_header_accept(
1851
+ [
1852
+ 'application/json'
1853
+ ]
1854
+ )
1855
+
1856
+
1857
+ # authentication setting
1858
+ _auth_settings: List[str] = [
1859
+ 'bearer'
1860
+ ]
1861
+
1862
+ return self.api_client.param_serialize(
1863
+ method='GET',
1864
+ resource_path='/v1/kyt/withdrawal/{withdrawalId}/alerts',
1865
+ path_params=_path_params,
1866
+ query_params=_query_params,
1867
+ header_params=_header_params,
1868
+ body=_body_params,
1869
+ post_params=_form_params,
1870
+ files=_files,
1871
+ auth_settings=_auth_settings,
1872
+ collection_formats=_collection_formats,
1873
+ _host=_host,
1874
+ _request_auth=_request_auth
1875
+ )
1876
+
1877
+
1878
+
1879
+
1880
+ @validate_call
1881
+ async def get_withdrawal_direct_exposure(
1882
+ self,
1883
+ withdrawal_id: Annotated[StrictStr, Field(description="CONTROLLER.KYT.PARAM.WITHDRAWAL_ID")],
1884
+ _request_timeout: Union[
1885
+ None,
1886
+ Annotated[StrictFloat, Field(gt=0)],
1887
+ Tuple[
1888
+ Annotated[StrictFloat, Field(gt=0)],
1889
+ Annotated[StrictFloat, Field(gt=0)]
1890
+ ]
1891
+ ] = None,
1892
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1893
+ _content_type: Optional[StrictStr] = None,
1894
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1895
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1896
+ ) -> TransferDirectExposureResponseDTO:
1897
+ """CONTROLLER.KYT.GET_WITHDRAWAL_DIRECT_EXPOSURE.SUMMARY
1898
+
1899
+ CONTROLLER.KYT.GET_WITHDRAWAL_DIRECT_EXPOSURE.DESCRIPTION
1900
+
1901
+ :param withdrawal_id: CONTROLLER.KYT.PARAM.WITHDRAWAL_ID (required)
1902
+ :type withdrawal_id: str
1903
+ :param _request_timeout: timeout setting for this request. If one
1904
+ number provided, it will be total request
1905
+ timeout. It can also be a pair (tuple) of
1906
+ (connection, read) timeouts.
1907
+ :type _request_timeout: int, tuple(int, int), optional
1908
+ :param _request_auth: set to override the auth_settings for an a single
1909
+ request; this effectively ignores the
1910
+ authentication in the spec for a single request.
1911
+ :type _request_auth: dict, optional
1912
+ :param _content_type: force content-type for the request.
1913
+ :type _content_type: str, Optional
1914
+ :param _headers: set to override the headers for a single
1915
+ request; this effectively ignores the headers
1916
+ in the spec for a single request.
1917
+ :type _headers: dict, optional
1918
+ :param _host_index: set to override the host_index for a single
1919
+ request; this effectively ignores the host_index
1920
+ in the spec for a single request.
1921
+ :type _host_index: int, optional
1922
+ :return: Returns the result object.
1923
+ """ # noqa: E501
1924
+
1925
+ _param = self._get_withdrawal_direct_exposure_serialize(
1926
+ withdrawal_id=withdrawal_id,
1927
+ _request_auth=_request_auth,
1928
+ _content_type=_content_type,
1929
+ _headers=_headers,
1930
+ _host_index=_host_index
1931
+ )
1932
+
1933
+ _response_types_map: Dict[str, Optional[str]] = {
1934
+ '200': "TransferDirectExposureResponseDTO",
1935
+ }
1936
+ response_data = await self.api_client.call_api(
1937
+ *_param,
1938
+ _request_timeout=_request_timeout
1939
+ )
1940
+ await response_data.read()
1941
+ return self.api_client.response_deserialize(
1942
+ response_data=response_data,
1943
+ response_types_map=_response_types_map,
1944
+ ).data
1945
+
1946
+
1947
+ @validate_call
1948
+ async def get_withdrawal_direct_exposure_with_http_info(
1949
+ self,
1950
+ withdrawal_id: Annotated[StrictStr, Field(description="CONTROLLER.KYT.PARAM.WITHDRAWAL_ID")],
1951
+ _request_timeout: Union[
1952
+ None,
1953
+ Annotated[StrictFloat, Field(gt=0)],
1954
+ Tuple[
1955
+ Annotated[StrictFloat, Field(gt=0)],
1956
+ Annotated[StrictFloat, Field(gt=0)]
1957
+ ]
1958
+ ] = None,
1959
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1960
+ _content_type: Optional[StrictStr] = None,
1961
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1962
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1963
+ ) -> ApiResponse[TransferDirectExposureResponseDTO]:
1964
+ """CONTROLLER.KYT.GET_WITHDRAWAL_DIRECT_EXPOSURE.SUMMARY
1965
+
1966
+ CONTROLLER.KYT.GET_WITHDRAWAL_DIRECT_EXPOSURE.DESCRIPTION
1967
+
1968
+ :param withdrawal_id: CONTROLLER.KYT.PARAM.WITHDRAWAL_ID (required)
1969
+ :type withdrawal_id: str
1970
+ :param _request_timeout: timeout setting for this request. If one
1971
+ number provided, it will be total request
1972
+ timeout. It can also be a pair (tuple) of
1973
+ (connection, read) timeouts.
1974
+ :type _request_timeout: int, tuple(int, int), optional
1975
+ :param _request_auth: set to override the auth_settings for an a single
1976
+ request; this effectively ignores the
1977
+ authentication in the spec for a single request.
1978
+ :type _request_auth: dict, optional
1979
+ :param _content_type: force content-type for the request.
1980
+ :type _content_type: str, Optional
1981
+ :param _headers: set to override the headers for a single
1982
+ request; this effectively ignores the headers
1983
+ in the spec for a single request.
1984
+ :type _headers: dict, optional
1985
+ :param _host_index: set to override the host_index for a single
1986
+ request; this effectively ignores the host_index
1987
+ in the spec for a single request.
1988
+ :type _host_index: int, optional
1989
+ :return: Returns the result object.
1990
+ """ # noqa: E501
1991
+
1992
+ _param = self._get_withdrawal_direct_exposure_serialize(
1993
+ withdrawal_id=withdrawal_id,
1994
+ _request_auth=_request_auth,
1995
+ _content_type=_content_type,
1996
+ _headers=_headers,
1997
+ _host_index=_host_index
1998
+ )
1999
+
2000
+ _response_types_map: Dict[str, Optional[str]] = {
2001
+ '200': "TransferDirectExposureResponseDTO",
2002
+ }
2003
+ response_data = await self.api_client.call_api(
2004
+ *_param,
2005
+ _request_timeout=_request_timeout
2006
+ )
2007
+ await response_data.read()
2008
+ return self.api_client.response_deserialize(
2009
+ response_data=response_data,
2010
+ response_types_map=_response_types_map,
2011
+ )
2012
+
2013
+
2014
+ @validate_call
2015
+ async def get_withdrawal_direct_exposure_without_preload_content(
2016
+ self,
2017
+ withdrawal_id: Annotated[StrictStr, Field(description="CONTROLLER.KYT.PARAM.WITHDRAWAL_ID")],
2018
+ _request_timeout: Union[
2019
+ None,
2020
+ Annotated[StrictFloat, Field(gt=0)],
2021
+ Tuple[
2022
+ Annotated[StrictFloat, Field(gt=0)],
2023
+ Annotated[StrictFloat, Field(gt=0)]
2024
+ ]
2025
+ ] = None,
2026
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2027
+ _content_type: Optional[StrictStr] = None,
2028
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2029
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2030
+ ) -> RESTResponseType:
2031
+ """CONTROLLER.KYT.GET_WITHDRAWAL_DIRECT_EXPOSURE.SUMMARY
2032
+
2033
+ CONTROLLER.KYT.GET_WITHDRAWAL_DIRECT_EXPOSURE.DESCRIPTION
2034
+
2035
+ :param withdrawal_id: CONTROLLER.KYT.PARAM.WITHDRAWAL_ID (required)
2036
+ :type withdrawal_id: str
2037
+ :param _request_timeout: timeout setting for this request. If one
2038
+ number provided, it will be total request
2039
+ timeout. It can also be a pair (tuple) of
2040
+ (connection, read) timeouts.
2041
+ :type _request_timeout: int, tuple(int, int), optional
2042
+ :param _request_auth: set to override the auth_settings for an a single
2043
+ request; this effectively ignores the
2044
+ authentication in the spec for a single request.
2045
+ :type _request_auth: dict, optional
2046
+ :param _content_type: force content-type for the request.
2047
+ :type _content_type: str, Optional
2048
+ :param _headers: set to override the headers for a single
2049
+ request; this effectively ignores the headers
2050
+ in the spec for a single request.
2051
+ :type _headers: dict, optional
2052
+ :param _host_index: set to override the host_index for a single
2053
+ request; this effectively ignores the host_index
2054
+ in the spec for a single request.
2055
+ :type _host_index: int, optional
2056
+ :return: Returns the result object.
2057
+ """ # noqa: E501
2058
+
2059
+ _param = self._get_withdrawal_direct_exposure_serialize(
2060
+ withdrawal_id=withdrawal_id,
2061
+ _request_auth=_request_auth,
2062
+ _content_type=_content_type,
2063
+ _headers=_headers,
2064
+ _host_index=_host_index
2065
+ )
2066
+
2067
+ _response_types_map: Dict[str, Optional[str]] = {
2068
+ '200': "TransferDirectExposureResponseDTO",
2069
+ }
2070
+ response_data = await self.api_client.call_api(
2071
+ *_param,
2072
+ _request_timeout=_request_timeout
2073
+ )
2074
+ return response_data.response
2075
+
2076
+
2077
+ def _get_withdrawal_direct_exposure_serialize(
2078
+ self,
2079
+ withdrawal_id,
2080
+ _request_auth,
2081
+ _content_type,
2082
+ _headers,
2083
+ _host_index,
2084
+ ) -> RequestSerialized:
2085
+
2086
+ _host = None
2087
+
2088
+ _collection_formats: Dict[str, str] = {
2089
+ }
2090
+
2091
+ _path_params: Dict[str, str] = {}
2092
+ _query_params: List[Tuple[str, str]] = []
2093
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2094
+ _form_params: List[Tuple[str, str]] = []
2095
+ _files: Dict[
2096
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2097
+ ] = {}
2098
+ _body_params: Optional[bytes] = None
2099
+
2100
+ # process the path parameters
2101
+ if withdrawal_id is not None:
2102
+ _path_params['withdrawalId'] = withdrawal_id
2103
+ # process the query parameters
2104
+ # process the header parameters
2105
+ # process the form parameters
2106
+ # process the body parameter
2107
+
2108
+
2109
+ # set the HTTP header `Accept`
2110
+ if 'Accept' not in _header_params:
2111
+ _header_params['Accept'] = self.api_client.select_header_accept(
2112
+ [
2113
+ 'application/json'
2114
+ ]
2115
+ )
2116
+
2117
+
2118
+ # authentication setting
2119
+ _auth_settings: List[str] = [
2120
+ 'bearer'
2121
+ ]
2122
+
2123
+ return self.api_client.param_serialize(
2124
+ method='GET',
2125
+ resource_path='/v1/kyt/withdrawal/{withdrawalId}/exposures/direct',
2126
+ path_params=_path_params,
2127
+ query_params=_query_params,
2128
+ header_params=_header_params,
2129
+ body=_body_params,
2130
+ post_params=_form_params,
2131
+ files=_files,
2132
+ auth_settings=_auth_settings,
2133
+ collection_formats=_collection_formats,
2134
+ _host=_host,
2135
+ _request_auth=_request_auth
2136
+ )
2137
+
2138
+
2139
+
2140
+
2141
+ @validate_call
2142
+ async def get_withdrawal_fraud_assessment(
2143
+ self,
2144
+ withdrawal_id: Annotated[StrictStr, Field(description="CONTROLLER.KYT.PARAM.WITHDRAWAL_ID")],
2145
+ _request_timeout: Union[
2146
+ None,
2147
+ Annotated[StrictFloat, Field(gt=0)],
2148
+ Tuple[
2149
+ Annotated[StrictFloat, Field(gt=0)],
2150
+ Annotated[StrictFloat, Field(gt=0)]
2151
+ ]
2152
+ ] = None,
2153
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2154
+ _content_type: Optional[StrictStr] = None,
2155
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2156
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2157
+ ) -> WithdrawalFraudAssessmentResponseDTO:
2158
+ """CONTROLLER.KYT.GET_WITHDRAWAL_FRAUD_ASSESSMENT.SUMMARY
2159
+
2160
+ CONTROLLER.KYT.GET_WITHDRAWAL_FRAUD_ASSESSMENT.DESCRIPTION
2161
+
2162
+ :param withdrawal_id: CONTROLLER.KYT.PARAM.WITHDRAWAL_ID (required)
2163
+ :type withdrawal_id: str
2164
+ :param _request_timeout: timeout setting for this request. If one
2165
+ number provided, it will be total request
2166
+ timeout. It can also be a pair (tuple) of
2167
+ (connection, read) timeouts.
2168
+ :type _request_timeout: int, tuple(int, int), optional
2169
+ :param _request_auth: set to override the auth_settings for an a single
2170
+ request; this effectively ignores the
2171
+ authentication in the spec for a single request.
2172
+ :type _request_auth: dict, optional
2173
+ :param _content_type: force content-type for the request.
2174
+ :type _content_type: str, Optional
2175
+ :param _headers: set to override the headers for a single
2176
+ request; this effectively ignores the headers
2177
+ in the spec for a single request.
2178
+ :type _headers: dict, optional
2179
+ :param _host_index: set to override the host_index for a single
2180
+ request; this effectively ignores the host_index
2181
+ in the spec for a single request.
2182
+ :type _host_index: int, optional
2183
+ :return: Returns the result object.
2184
+ """ # noqa: E501
2185
+
2186
+ _param = self._get_withdrawal_fraud_assessment_serialize(
2187
+ withdrawal_id=withdrawal_id,
2188
+ _request_auth=_request_auth,
2189
+ _content_type=_content_type,
2190
+ _headers=_headers,
2191
+ _host_index=_host_index
2192
+ )
2193
+
2194
+ _response_types_map: Dict[str, Optional[str]] = {
2195
+ '200': "WithdrawalFraudAssessmentResponseDTO",
2196
+ }
2197
+ response_data = await self.api_client.call_api(
2198
+ *_param,
2199
+ _request_timeout=_request_timeout
2200
+ )
2201
+ await response_data.read()
2202
+ return self.api_client.response_deserialize(
2203
+ response_data=response_data,
2204
+ response_types_map=_response_types_map,
2205
+ ).data
2206
+
2207
+
2208
+ @validate_call
2209
+ async def get_withdrawal_fraud_assessment_with_http_info(
2210
+ self,
2211
+ withdrawal_id: Annotated[StrictStr, Field(description="CONTROLLER.KYT.PARAM.WITHDRAWAL_ID")],
2212
+ _request_timeout: Union[
2213
+ None,
2214
+ Annotated[StrictFloat, Field(gt=0)],
2215
+ Tuple[
2216
+ Annotated[StrictFloat, Field(gt=0)],
2217
+ Annotated[StrictFloat, Field(gt=0)]
2218
+ ]
2219
+ ] = None,
2220
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2221
+ _content_type: Optional[StrictStr] = None,
2222
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2223
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2224
+ ) -> ApiResponse[WithdrawalFraudAssessmentResponseDTO]:
2225
+ """CONTROLLER.KYT.GET_WITHDRAWAL_FRAUD_ASSESSMENT.SUMMARY
2226
+
2227
+ CONTROLLER.KYT.GET_WITHDRAWAL_FRAUD_ASSESSMENT.DESCRIPTION
2228
+
2229
+ :param withdrawal_id: CONTROLLER.KYT.PARAM.WITHDRAWAL_ID (required)
2230
+ :type withdrawal_id: str
2231
+ :param _request_timeout: timeout setting for this request. If one
2232
+ number provided, it will be total request
2233
+ timeout. It can also be a pair (tuple) of
2234
+ (connection, read) timeouts.
2235
+ :type _request_timeout: int, tuple(int, int), optional
2236
+ :param _request_auth: set to override the auth_settings for an a single
2237
+ request; this effectively ignores the
2238
+ authentication in the spec for a single request.
2239
+ :type _request_auth: dict, optional
2240
+ :param _content_type: force content-type for the request.
2241
+ :type _content_type: str, Optional
2242
+ :param _headers: set to override the headers for a single
2243
+ request; this effectively ignores the headers
2244
+ in the spec for a single request.
2245
+ :type _headers: dict, optional
2246
+ :param _host_index: set to override the host_index for a single
2247
+ request; this effectively ignores the host_index
2248
+ in the spec for a single request.
2249
+ :type _host_index: int, optional
2250
+ :return: Returns the result object.
2251
+ """ # noqa: E501
2252
+
2253
+ _param = self._get_withdrawal_fraud_assessment_serialize(
2254
+ withdrawal_id=withdrawal_id,
2255
+ _request_auth=_request_auth,
2256
+ _content_type=_content_type,
2257
+ _headers=_headers,
2258
+ _host_index=_host_index
2259
+ )
2260
+
2261
+ _response_types_map: Dict[str, Optional[str]] = {
2262
+ '200': "WithdrawalFraudAssessmentResponseDTO",
2263
+ }
2264
+ response_data = await self.api_client.call_api(
2265
+ *_param,
2266
+ _request_timeout=_request_timeout
2267
+ )
2268
+ await response_data.read()
2269
+ return self.api_client.response_deserialize(
2270
+ response_data=response_data,
2271
+ response_types_map=_response_types_map,
2272
+ )
2273
+
2274
+
2275
+ @validate_call
2276
+ async def get_withdrawal_fraud_assessment_without_preload_content(
2277
+ self,
2278
+ withdrawal_id: Annotated[StrictStr, Field(description="CONTROLLER.KYT.PARAM.WITHDRAWAL_ID")],
2279
+ _request_timeout: Union[
2280
+ None,
2281
+ Annotated[StrictFloat, Field(gt=0)],
2282
+ Tuple[
2283
+ Annotated[StrictFloat, Field(gt=0)],
2284
+ Annotated[StrictFloat, Field(gt=0)]
2285
+ ]
2286
+ ] = None,
2287
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2288
+ _content_type: Optional[StrictStr] = None,
2289
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2290
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2291
+ ) -> RESTResponseType:
2292
+ """CONTROLLER.KYT.GET_WITHDRAWAL_FRAUD_ASSESSMENT.SUMMARY
2293
+
2294
+ CONTROLLER.KYT.GET_WITHDRAWAL_FRAUD_ASSESSMENT.DESCRIPTION
2295
+
2296
+ :param withdrawal_id: CONTROLLER.KYT.PARAM.WITHDRAWAL_ID (required)
2297
+ :type withdrawal_id: str
2298
+ :param _request_timeout: timeout setting for this request. If one
2299
+ number provided, it will be total request
2300
+ timeout. It can also be a pair (tuple) of
2301
+ (connection, read) timeouts.
2302
+ :type _request_timeout: int, tuple(int, int), optional
2303
+ :param _request_auth: set to override the auth_settings for an a single
2304
+ request; this effectively ignores the
2305
+ authentication in the spec for a single request.
2306
+ :type _request_auth: dict, optional
2307
+ :param _content_type: force content-type for the request.
2308
+ :type _content_type: str, Optional
2309
+ :param _headers: set to override the headers for a single
2310
+ request; this effectively ignores the headers
2311
+ in the spec for a single request.
2312
+ :type _headers: dict, optional
2313
+ :param _host_index: set to override the host_index for a single
2314
+ request; this effectively ignores the host_index
2315
+ in the spec for a single request.
2316
+ :type _host_index: int, optional
2317
+ :return: Returns the result object.
2318
+ """ # noqa: E501
2319
+
2320
+ _param = self._get_withdrawal_fraud_assessment_serialize(
2321
+ withdrawal_id=withdrawal_id,
2322
+ _request_auth=_request_auth,
2323
+ _content_type=_content_type,
2324
+ _headers=_headers,
2325
+ _host_index=_host_index
2326
+ )
2327
+
2328
+ _response_types_map: Dict[str, Optional[str]] = {
2329
+ '200': "WithdrawalFraudAssessmentResponseDTO",
2330
+ }
2331
+ response_data = await self.api_client.call_api(
2332
+ *_param,
2333
+ _request_timeout=_request_timeout
2334
+ )
2335
+ return response_data.response
2336
+
2337
+
2338
+ def _get_withdrawal_fraud_assessment_serialize(
2339
+ self,
2340
+ withdrawal_id,
2341
+ _request_auth,
2342
+ _content_type,
2343
+ _headers,
2344
+ _host_index,
2345
+ ) -> RequestSerialized:
2346
+
2347
+ _host = None
2348
+
2349
+ _collection_formats: Dict[str, str] = {
2350
+ }
2351
+
2352
+ _path_params: Dict[str, str] = {}
2353
+ _query_params: List[Tuple[str, str]] = []
2354
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2355
+ _form_params: List[Tuple[str, str]] = []
2356
+ _files: Dict[
2357
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2358
+ ] = {}
2359
+ _body_params: Optional[bytes] = None
2360
+
2361
+ # process the path parameters
2362
+ if withdrawal_id is not None:
2363
+ _path_params['withdrawalId'] = withdrawal_id
2364
+ # process the query parameters
2365
+ # process the header parameters
2366
+ # process the form parameters
2367
+ # process the body parameter
2368
+
2369
+
2370
+ # set the HTTP header `Accept`
2371
+ if 'Accept' not in _header_params:
2372
+ _header_params['Accept'] = self.api_client.select_header_accept(
2373
+ [
2374
+ 'application/json'
2375
+ ]
2376
+ )
2377
+
2378
+
2379
+ # authentication setting
2380
+ _auth_settings: List[str] = [
2381
+ 'bearer'
2382
+ ]
2383
+
2384
+ return self.api_client.param_serialize(
2385
+ method='GET',
2386
+ resource_path='/v1/kyt/withdrawal/{withdrawalId}/fraud-assessment',
2387
+ path_params=_path_params,
2388
+ query_params=_query_params,
2389
+ header_params=_header_params,
2390
+ body=_body_params,
2391
+ post_params=_form_params,
2392
+ files=_files,
2393
+ auth_settings=_auth_settings,
2394
+ collection_formats=_collection_formats,
2395
+ _host=_host,
2396
+ _request_auth=_request_auth
2397
+ )
2398
+
2399
+
2400
+
2401
+
2402
+ @validate_call
2403
+ async def get_withdrawal_network_identifications(
2404
+ self,
2405
+ withdrawal_id: Annotated[StrictStr, Field(description="CONTROLLER.KYT.PARAM.WITHDRAWAL_ID")],
2406
+ _request_timeout: Union[
2407
+ None,
2408
+ Annotated[StrictFloat, Field(gt=0)],
2409
+ Tuple[
2410
+ Annotated[StrictFloat, Field(gt=0)],
2411
+ Annotated[StrictFloat, Field(gt=0)]
2412
+ ]
2413
+ ] = None,
2414
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2415
+ _content_type: Optional[StrictStr] = None,
2416
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2417
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2418
+ ) -> TransferNetworkIdentificationsResponseDTO:
2419
+ """CONTROLLER.KYT.GET_WITHDRAWAL_NETWORK_IDENTIFICATIONS.SUMMARY
2420
+
2421
+ CONTROLLER.KYT.GET_WITHDRAWAL_NETWORK_IDENTIFICATIONS.DESCRIPTION
2422
+
2423
+ :param withdrawal_id: CONTROLLER.KYT.PARAM.WITHDRAWAL_ID (required)
2424
+ :type withdrawal_id: str
2425
+ :param _request_timeout: timeout setting for this request. If one
2426
+ number provided, it will be total request
2427
+ timeout. It can also be a pair (tuple) of
2428
+ (connection, read) timeouts.
2429
+ :type _request_timeout: int, tuple(int, int), optional
2430
+ :param _request_auth: set to override the auth_settings for an a single
2431
+ request; this effectively ignores the
2432
+ authentication in the spec for a single request.
2433
+ :type _request_auth: dict, optional
2434
+ :param _content_type: force content-type for the request.
2435
+ :type _content_type: str, Optional
2436
+ :param _headers: set to override the headers for a single
2437
+ request; this effectively ignores the headers
2438
+ in the spec for a single request.
2439
+ :type _headers: dict, optional
2440
+ :param _host_index: set to override the host_index for a single
2441
+ request; this effectively ignores the host_index
2442
+ in the spec for a single request.
2443
+ :type _host_index: int, optional
2444
+ :return: Returns the result object.
2445
+ """ # noqa: E501
2446
+
2447
+ _param = self._get_withdrawal_network_identifications_serialize(
2448
+ withdrawal_id=withdrawal_id,
2449
+ _request_auth=_request_auth,
2450
+ _content_type=_content_type,
2451
+ _headers=_headers,
2452
+ _host_index=_host_index
2453
+ )
2454
+
2455
+ _response_types_map: Dict[str, Optional[str]] = {
2456
+ '200': "TransferNetworkIdentificationsResponseDTO",
2457
+ }
2458
+ response_data = await self.api_client.call_api(
2459
+ *_param,
2460
+ _request_timeout=_request_timeout
2461
+ )
2462
+ await response_data.read()
2463
+ return self.api_client.response_deserialize(
2464
+ response_data=response_data,
2465
+ response_types_map=_response_types_map,
2466
+ ).data
2467
+
2468
+
2469
+ @validate_call
2470
+ async def get_withdrawal_network_identifications_with_http_info(
2471
+ self,
2472
+ withdrawal_id: Annotated[StrictStr, Field(description="CONTROLLER.KYT.PARAM.WITHDRAWAL_ID")],
2473
+ _request_timeout: Union[
2474
+ None,
2475
+ Annotated[StrictFloat, Field(gt=0)],
2476
+ Tuple[
2477
+ Annotated[StrictFloat, Field(gt=0)],
2478
+ Annotated[StrictFloat, Field(gt=0)]
2479
+ ]
2480
+ ] = None,
2481
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2482
+ _content_type: Optional[StrictStr] = None,
2483
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2484
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2485
+ ) -> ApiResponse[TransferNetworkIdentificationsResponseDTO]:
2486
+ """CONTROLLER.KYT.GET_WITHDRAWAL_NETWORK_IDENTIFICATIONS.SUMMARY
2487
+
2488
+ CONTROLLER.KYT.GET_WITHDRAWAL_NETWORK_IDENTIFICATIONS.DESCRIPTION
2489
+
2490
+ :param withdrawal_id: CONTROLLER.KYT.PARAM.WITHDRAWAL_ID (required)
2491
+ :type withdrawal_id: str
2492
+ :param _request_timeout: timeout setting for this request. If one
2493
+ number provided, it will be total request
2494
+ timeout. It can also be a pair (tuple) of
2495
+ (connection, read) timeouts.
2496
+ :type _request_timeout: int, tuple(int, int), optional
2497
+ :param _request_auth: set to override the auth_settings for an a single
2498
+ request; this effectively ignores the
2499
+ authentication in the spec for a single request.
2500
+ :type _request_auth: dict, optional
2501
+ :param _content_type: force content-type for the request.
2502
+ :type _content_type: str, Optional
2503
+ :param _headers: set to override the headers for a single
2504
+ request; this effectively ignores the headers
2505
+ in the spec for a single request.
2506
+ :type _headers: dict, optional
2507
+ :param _host_index: set to override the host_index for a single
2508
+ request; this effectively ignores the host_index
2509
+ in the spec for a single request.
2510
+ :type _host_index: int, optional
2511
+ :return: Returns the result object.
2512
+ """ # noqa: E501
2513
+
2514
+ _param = self._get_withdrawal_network_identifications_serialize(
2515
+ withdrawal_id=withdrawal_id,
2516
+ _request_auth=_request_auth,
2517
+ _content_type=_content_type,
2518
+ _headers=_headers,
2519
+ _host_index=_host_index
2520
+ )
2521
+
2522
+ _response_types_map: Dict[str, Optional[str]] = {
2523
+ '200': "TransferNetworkIdentificationsResponseDTO",
2524
+ }
2525
+ response_data = await self.api_client.call_api(
2526
+ *_param,
2527
+ _request_timeout=_request_timeout
2528
+ )
2529
+ await response_data.read()
2530
+ return self.api_client.response_deserialize(
2531
+ response_data=response_data,
2532
+ response_types_map=_response_types_map,
2533
+ )
2534
+
2535
+
2536
+ @validate_call
2537
+ async def get_withdrawal_network_identifications_without_preload_content(
2538
+ self,
2539
+ withdrawal_id: Annotated[StrictStr, Field(description="CONTROLLER.KYT.PARAM.WITHDRAWAL_ID")],
2540
+ _request_timeout: Union[
2541
+ None,
2542
+ Annotated[StrictFloat, Field(gt=0)],
2543
+ Tuple[
2544
+ Annotated[StrictFloat, Field(gt=0)],
2545
+ Annotated[StrictFloat, Field(gt=0)]
2546
+ ]
2547
+ ] = None,
2548
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2549
+ _content_type: Optional[StrictStr] = None,
2550
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2551
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2552
+ ) -> RESTResponseType:
2553
+ """CONTROLLER.KYT.GET_WITHDRAWAL_NETWORK_IDENTIFICATIONS.SUMMARY
2554
+
2555
+ CONTROLLER.KYT.GET_WITHDRAWAL_NETWORK_IDENTIFICATIONS.DESCRIPTION
2556
+
2557
+ :param withdrawal_id: CONTROLLER.KYT.PARAM.WITHDRAWAL_ID (required)
2558
+ :type withdrawal_id: str
2559
+ :param _request_timeout: timeout setting for this request. If one
2560
+ number provided, it will be total request
2561
+ timeout. It can also be a pair (tuple) of
2562
+ (connection, read) timeouts.
2563
+ :type _request_timeout: int, tuple(int, int), optional
2564
+ :param _request_auth: set to override the auth_settings for an a single
2565
+ request; this effectively ignores the
2566
+ authentication in the spec for a single request.
2567
+ :type _request_auth: dict, optional
2568
+ :param _content_type: force content-type for the request.
2569
+ :type _content_type: str, Optional
2570
+ :param _headers: set to override the headers for a single
2571
+ request; this effectively ignores the headers
2572
+ in the spec for a single request.
2573
+ :type _headers: dict, optional
2574
+ :param _host_index: set to override the host_index for a single
2575
+ request; this effectively ignores the host_index
2576
+ in the spec for a single request.
2577
+ :type _host_index: int, optional
2578
+ :return: Returns the result object.
2579
+ """ # noqa: E501
2580
+
2581
+ _param = self._get_withdrawal_network_identifications_serialize(
2582
+ withdrawal_id=withdrawal_id,
2583
+ _request_auth=_request_auth,
2584
+ _content_type=_content_type,
2585
+ _headers=_headers,
2586
+ _host_index=_host_index
2587
+ )
2588
+
2589
+ _response_types_map: Dict[str, Optional[str]] = {
2590
+ '200': "TransferNetworkIdentificationsResponseDTO",
2591
+ }
2592
+ response_data = await self.api_client.call_api(
2593
+ *_param,
2594
+ _request_timeout=_request_timeout
2595
+ )
2596
+ return response_data.response
2597
+
2598
+
2599
+ def _get_withdrawal_network_identifications_serialize(
2600
+ self,
2601
+ withdrawal_id,
2602
+ _request_auth,
2603
+ _content_type,
2604
+ _headers,
2605
+ _host_index,
2606
+ ) -> RequestSerialized:
2607
+
2608
+ _host = None
2609
+
2610
+ _collection_formats: Dict[str, str] = {
2611
+ }
2612
+
2613
+ _path_params: Dict[str, str] = {}
2614
+ _query_params: List[Tuple[str, str]] = []
2615
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2616
+ _form_params: List[Tuple[str, str]] = []
2617
+ _files: Dict[
2618
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2619
+ ] = {}
2620
+ _body_params: Optional[bytes] = None
2621
+
2622
+ # process the path parameters
2623
+ if withdrawal_id is not None:
2624
+ _path_params['withdrawalId'] = withdrawal_id
2625
+ # process the query parameters
2626
+ # process the header parameters
2627
+ # process the form parameters
2628
+ # process the body parameter
2629
+
2630
+
2631
+ # set the HTTP header `Accept`
2632
+ if 'Accept' not in _header_params:
2633
+ _header_params['Accept'] = self.api_client.select_header_accept(
2634
+ [
2635
+ 'application/json'
2636
+ ]
2637
+ )
2638
+
2639
+
2640
+ # authentication setting
2641
+ _auth_settings: List[str] = [
2642
+ 'bearer'
2643
+ ]
2644
+
2645
+ return self.api_client.param_serialize(
2646
+ method='GET',
2647
+ resource_path='/v1/kyt/withdrawal/{withdrawalId}/network-identifications',
2648
+ path_params=_path_params,
2649
+ query_params=_query_params,
2650
+ header_params=_header_params,
2651
+ body=_body_params,
2652
+ post_params=_form_params,
2653
+ files=_files,
2654
+ auth_settings=_auth_settings,
2655
+ collection_formats=_collection_formats,
2656
+ _host=_host,
2657
+ _request_auth=_request_auth
2658
+ )
2659
+
2660
+
2661
+
2662
+
2663
+ @validate_call
2664
+ async def get_withdrawal_summary(
2665
+ self,
2666
+ withdrawal_id: Annotated[StrictStr, Field(description="CONTROLLER.KYT.PARAM.WITHDRAWAL_ID")],
2667
+ _request_timeout: Union[
2668
+ None,
2669
+ Annotated[StrictFloat, Field(gt=0)],
2670
+ Tuple[
2671
+ Annotated[StrictFloat, Field(gt=0)],
2672
+ Annotated[StrictFloat, Field(gt=0)]
2673
+ ]
2674
+ ] = None,
2675
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2676
+ _content_type: Optional[StrictStr] = None,
2677
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2678
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2679
+ ) -> WithdrawalBaseResponseDTO:
2680
+ """CONTROLLER.KYT.GET_WITHDRAWAL_SUMMARY.SUMMARY
2681
+
2682
+ CONTROLLER.KYT.GET_WITHDRAWAL_SUMMARY.DESCRIPTION
2683
+
2684
+ :param withdrawal_id: CONTROLLER.KYT.PARAM.WITHDRAWAL_ID (required)
2685
+ :type withdrawal_id: str
2686
+ :param _request_timeout: timeout setting for this request. If one
2687
+ number provided, it will be total request
2688
+ timeout. It can also be a pair (tuple) of
2689
+ (connection, read) timeouts.
2690
+ :type _request_timeout: int, tuple(int, int), optional
2691
+ :param _request_auth: set to override the auth_settings for an a single
2692
+ request; this effectively ignores the
2693
+ authentication in the spec for a single request.
2694
+ :type _request_auth: dict, optional
2695
+ :param _content_type: force content-type for the request.
2696
+ :type _content_type: str, Optional
2697
+ :param _headers: set to override the headers for a single
2698
+ request; this effectively ignores the headers
2699
+ in the spec for a single request.
2700
+ :type _headers: dict, optional
2701
+ :param _host_index: set to override the host_index for a single
2702
+ request; this effectively ignores the host_index
2703
+ in the spec for a single request.
2704
+ :type _host_index: int, optional
2705
+ :return: Returns the result object.
2706
+ """ # noqa: E501
2707
+
2708
+ _param = self._get_withdrawal_summary_serialize(
2709
+ withdrawal_id=withdrawal_id,
2710
+ _request_auth=_request_auth,
2711
+ _content_type=_content_type,
2712
+ _headers=_headers,
2713
+ _host_index=_host_index
2714
+ )
2715
+
2716
+ _response_types_map: Dict[str, Optional[str]] = {
2717
+ '200': "WithdrawalBaseResponseDTO",
2718
+ }
2719
+ response_data = await self.api_client.call_api(
2720
+ *_param,
2721
+ _request_timeout=_request_timeout
2722
+ )
2723
+ await response_data.read()
2724
+ return self.api_client.response_deserialize(
2725
+ response_data=response_data,
2726
+ response_types_map=_response_types_map,
2727
+ ).data
2728
+
2729
+
2730
+ @validate_call
2731
+ async def get_withdrawal_summary_with_http_info(
2732
+ self,
2733
+ withdrawal_id: Annotated[StrictStr, Field(description="CONTROLLER.KYT.PARAM.WITHDRAWAL_ID")],
2734
+ _request_timeout: Union[
2735
+ None,
2736
+ Annotated[StrictFloat, Field(gt=0)],
2737
+ Tuple[
2738
+ Annotated[StrictFloat, Field(gt=0)],
2739
+ Annotated[StrictFloat, Field(gt=0)]
2740
+ ]
2741
+ ] = None,
2742
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2743
+ _content_type: Optional[StrictStr] = None,
2744
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2745
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2746
+ ) -> ApiResponse[WithdrawalBaseResponseDTO]:
2747
+ """CONTROLLER.KYT.GET_WITHDRAWAL_SUMMARY.SUMMARY
2748
+
2749
+ CONTROLLER.KYT.GET_WITHDRAWAL_SUMMARY.DESCRIPTION
2750
+
2751
+ :param withdrawal_id: CONTROLLER.KYT.PARAM.WITHDRAWAL_ID (required)
2752
+ :type withdrawal_id: str
2753
+ :param _request_timeout: timeout setting for this request. If one
2754
+ number provided, it will be total request
2755
+ timeout. It can also be a pair (tuple) of
2756
+ (connection, read) timeouts.
2757
+ :type _request_timeout: int, tuple(int, int), optional
2758
+ :param _request_auth: set to override the auth_settings for an a single
2759
+ request; this effectively ignores the
2760
+ authentication in the spec for a single request.
2761
+ :type _request_auth: dict, optional
2762
+ :param _content_type: force content-type for the request.
2763
+ :type _content_type: str, Optional
2764
+ :param _headers: set to override the headers for a single
2765
+ request; this effectively ignores the headers
2766
+ in the spec for a single request.
2767
+ :type _headers: dict, optional
2768
+ :param _host_index: set to override the host_index for a single
2769
+ request; this effectively ignores the host_index
2770
+ in the spec for a single request.
2771
+ :type _host_index: int, optional
2772
+ :return: Returns the result object.
2773
+ """ # noqa: E501
2774
+
2775
+ _param = self._get_withdrawal_summary_serialize(
2776
+ withdrawal_id=withdrawal_id,
2777
+ _request_auth=_request_auth,
2778
+ _content_type=_content_type,
2779
+ _headers=_headers,
2780
+ _host_index=_host_index
2781
+ )
2782
+
2783
+ _response_types_map: Dict[str, Optional[str]] = {
2784
+ '200': "WithdrawalBaseResponseDTO",
2785
+ }
2786
+ response_data = await self.api_client.call_api(
2787
+ *_param,
2788
+ _request_timeout=_request_timeout
2789
+ )
2790
+ await response_data.read()
2791
+ return self.api_client.response_deserialize(
2792
+ response_data=response_data,
2793
+ response_types_map=_response_types_map,
2794
+ )
2795
+
2796
+
2797
+ @validate_call
2798
+ async def get_withdrawal_summary_without_preload_content(
2799
+ self,
2800
+ withdrawal_id: Annotated[StrictStr, Field(description="CONTROLLER.KYT.PARAM.WITHDRAWAL_ID")],
2801
+ _request_timeout: Union[
2802
+ None,
2803
+ Annotated[StrictFloat, Field(gt=0)],
2804
+ Tuple[
2805
+ Annotated[StrictFloat, Field(gt=0)],
2806
+ Annotated[StrictFloat, Field(gt=0)]
2807
+ ]
2808
+ ] = None,
2809
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2810
+ _content_type: Optional[StrictStr] = None,
2811
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2812
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2813
+ ) -> RESTResponseType:
2814
+ """CONTROLLER.KYT.GET_WITHDRAWAL_SUMMARY.SUMMARY
2815
+
2816
+ CONTROLLER.KYT.GET_WITHDRAWAL_SUMMARY.DESCRIPTION
2817
+
2818
+ :param withdrawal_id: CONTROLLER.KYT.PARAM.WITHDRAWAL_ID (required)
2819
+ :type withdrawal_id: str
2820
+ :param _request_timeout: timeout setting for this request. If one
2821
+ number provided, it will be total request
2822
+ timeout. It can also be a pair (tuple) of
2823
+ (connection, read) timeouts.
2824
+ :type _request_timeout: int, tuple(int, int), optional
2825
+ :param _request_auth: set to override the auth_settings for an a single
2826
+ request; this effectively ignores the
2827
+ authentication in the spec for a single request.
2828
+ :type _request_auth: dict, optional
2829
+ :param _content_type: force content-type for the request.
2830
+ :type _content_type: str, Optional
2831
+ :param _headers: set to override the headers for a single
2832
+ request; this effectively ignores the headers
2833
+ in the spec for a single request.
2834
+ :type _headers: dict, optional
2835
+ :param _host_index: set to override the host_index for a single
2836
+ request; this effectively ignores the host_index
2837
+ in the spec for a single request.
2838
+ :type _host_index: int, optional
2839
+ :return: Returns the result object.
2840
+ """ # noqa: E501
2841
+
2842
+ _param = self._get_withdrawal_summary_serialize(
2843
+ withdrawal_id=withdrawal_id,
2844
+ _request_auth=_request_auth,
2845
+ _content_type=_content_type,
2846
+ _headers=_headers,
2847
+ _host_index=_host_index
2848
+ )
2849
+
2850
+ _response_types_map: Dict[str, Optional[str]] = {
2851
+ '200': "WithdrawalBaseResponseDTO",
2852
+ }
2853
+ response_data = await self.api_client.call_api(
2854
+ *_param,
2855
+ _request_timeout=_request_timeout
2856
+ )
2857
+ return response_data.response
2858
+
2859
+
2860
+ def _get_withdrawal_summary_serialize(
2861
+ self,
2862
+ withdrawal_id,
2863
+ _request_auth,
2864
+ _content_type,
2865
+ _headers,
2866
+ _host_index,
2867
+ ) -> RequestSerialized:
2868
+
2869
+ _host = None
2870
+
2871
+ _collection_formats: Dict[str, str] = {
2872
+ }
2873
+
2874
+ _path_params: Dict[str, str] = {}
2875
+ _query_params: List[Tuple[str, str]] = []
2876
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2877
+ _form_params: List[Tuple[str, str]] = []
2878
+ _files: Dict[
2879
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2880
+ ] = {}
2881
+ _body_params: Optional[bytes] = None
2882
+
2883
+ # process the path parameters
2884
+ if withdrawal_id is not None:
2885
+ _path_params['withdrawalId'] = withdrawal_id
2886
+ # process the query parameters
2887
+ # process the header parameters
2888
+ # process the form parameters
2889
+ # process the body parameter
2890
+
2891
+
2892
+ # set the HTTP header `Accept`
2893
+ if 'Accept' not in _header_params:
2894
+ _header_params['Accept'] = self.api_client.select_header_accept(
2895
+ [
2896
+ 'application/json'
2897
+ ]
2898
+ )
2899
+
2900
+
2901
+ # authentication setting
2902
+ _auth_settings: List[str] = [
2903
+ 'bearer'
2904
+ ]
2905
+
2906
+ return self.api_client.param_serialize(
2907
+ method='GET',
2908
+ resource_path='/v1/kyt/withdrawal/{withdrawalId}/summary',
2909
+ path_params=_path_params,
2910
+ query_params=_query_params,
2911
+ header_params=_header_params,
2912
+ body=_body_params,
2913
+ post_params=_form_params,
2914
+ files=_files,
2915
+ auth_settings=_auth_settings,
2916
+ collection_formats=_collection_formats,
2917
+ _host=_host,
2918
+ _request_auth=_request_auth
2919
+ )
2920
+
2921
+
2922
+
2923
+
2924
+ @validate_call
2925
+ async def register_address(
2926
+ self,
2927
+ register_address_request: RegisterAddressRequest,
2928
+ _request_timeout: Union[
2929
+ None,
2930
+ Annotated[StrictFloat, Field(gt=0)],
2931
+ Tuple[
2932
+ Annotated[StrictFloat, Field(gt=0)],
2933
+ Annotated[StrictFloat, Field(gt=0)]
2934
+ ]
2935
+ ] = None,
2936
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2937
+ _content_type: Optional[StrictStr] = None,
2938
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2939
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2940
+ ) -> RegisterAddressResponseDTO:
2941
+ """CONTROLLER.KYT.REGISTER_ADDRESS.SUMMARY
2942
+
2943
+ CONTROLLER.KYT.REGISTER_ADDRESS.DESCRIPTION
2944
+
2945
+ :param register_address_request: (required)
2946
+ :type register_address_request: RegisterAddressRequest
2947
+ :param _request_timeout: timeout setting for this request. If one
2948
+ number provided, it will be total request
2949
+ timeout. It can also be a pair (tuple) of
2950
+ (connection, read) timeouts.
2951
+ :type _request_timeout: int, tuple(int, int), optional
2952
+ :param _request_auth: set to override the auth_settings for an a single
2953
+ request; this effectively ignores the
2954
+ authentication in the spec for a single request.
2955
+ :type _request_auth: dict, optional
2956
+ :param _content_type: force content-type for the request.
2957
+ :type _content_type: str, Optional
2958
+ :param _headers: set to override the headers for a single
2959
+ request; this effectively ignores the headers
2960
+ in the spec for a single request.
2961
+ :type _headers: dict, optional
2962
+ :param _host_index: set to override the host_index for a single
2963
+ request; this effectively ignores the host_index
2964
+ in the spec for a single request.
2965
+ :type _host_index: int, optional
2966
+ :return: Returns the result object.
2967
+ """ # noqa: E501
2968
+
2969
+ _param = self._register_address_serialize(
2970
+ register_address_request=register_address_request,
2971
+ _request_auth=_request_auth,
2972
+ _content_type=_content_type,
2973
+ _headers=_headers,
2974
+ _host_index=_host_index
2975
+ )
2976
+
2977
+ _response_types_map: Dict[str, Optional[str]] = {
2978
+ '200': "RegisterAddressResponseDTO",
2979
+ }
2980
+ response_data = await self.api_client.call_api(
2981
+ *_param,
2982
+ _request_timeout=_request_timeout
2983
+ )
2984
+ await response_data.read()
2985
+ return self.api_client.response_deserialize(
2986
+ response_data=response_data,
2987
+ response_types_map=_response_types_map,
2988
+ ).data
2989
+
2990
+
2991
+ @validate_call
2992
+ async def register_address_with_http_info(
2993
+ self,
2994
+ register_address_request: RegisterAddressRequest,
2995
+ _request_timeout: Union[
2996
+ None,
2997
+ Annotated[StrictFloat, Field(gt=0)],
2998
+ Tuple[
2999
+ Annotated[StrictFloat, Field(gt=0)],
3000
+ Annotated[StrictFloat, Field(gt=0)]
3001
+ ]
3002
+ ] = None,
3003
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3004
+ _content_type: Optional[StrictStr] = None,
3005
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3006
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3007
+ ) -> ApiResponse[RegisterAddressResponseDTO]:
3008
+ """CONTROLLER.KYT.REGISTER_ADDRESS.SUMMARY
3009
+
3010
+ CONTROLLER.KYT.REGISTER_ADDRESS.DESCRIPTION
3011
+
3012
+ :param register_address_request: (required)
3013
+ :type register_address_request: RegisterAddressRequest
3014
+ :param _request_timeout: timeout setting for this request. If one
3015
+ number provided, it will be total request
3016
+ timeout. It can also be a pair (tuple) of
3017
+ (connection, read) timeouts.
3018
+ :type _request_timeout: int, tuple(int, int), optional
3019
+ :param _request_auth: set to override the auth_settings for an a single
3020
+ request; this effectively ignores the
3021
+ authentication in the spec for a single request.
3022
+ :type _request_auth: dict, optional
3023
+ :param _content_type: force content-type for the request.
3024
+ :type _content_type: str, Optional
3025
+ :param _headers: set to override the headers for a single
3026
+ request; this effectively ignores the headers
3027
+ in the spec for a single request.
3028
+ :type _headers: dict, optional
3029
+ :param _host_index: set to override the host_index for a single
3030
+ request; this effectively ignores the host_index
3031
+ in the spec for a single request.
3032
+ :type _host_index: int, optional
3033
+ :return: Returns the result object.
3034
+ """ # noqa: E501
3035
+
3036
+ _param = self._register_address_serialize(
3037
+ register_address_request=register_address_request,
3038
+ _request_auth=_request_auth,
3039
+ _content_type=_content_type,
3040
+ _headers=_headers,
3041
+ _host_index=_host_index
3042
+ )
3043
+
3044
+ _response_types_map: Dict[str, Optional[str]] = {
3045
+ '200': "RegisterAddressResponseDTO",
3046
+ }
3047
+ response_data = await self.api_client.call_api(
3048
+ *_param,
3049
+ _request_timeout=_request_timeout
3050
+ )
3051
+ await response_data.read()
3052
+ return self.api_client.response_deserialize(
3053
+ response_data=response_data,
3054
+ response_types_map=_response_types_map,
3055
+ )
3056
+
3057
+
3058
+ @validate_call
3059
+ async def register_address_without_preload_content(
3060
+ self,
3061
+ register_address_request: RegisterAddressRequest,
3062
+ _request_timeout: Union[
3063
+ None,
3064
+ Annotated[StrictFloat, Field(gt=0)],
3065
+ Tuple[
3066
+ Annotated[StrictFloat, Field(gt=0)],
3067
+ Annotated[StrictFloat, Field(gt=0)]
3068
+ ]
3069
+ ] = None,
3070
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3071
+ _content_type: Optional[StrictStr] = None,
3072
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3073
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3074
+ ) -> RESTResponseType:
3075
+ """CONTROLLER.KYT.REGISTER_ADDRESS.SUMMARY
3076
+
3077
+ CONTROLLER.KYT.REGISTER_ADDRESS.DESCRIPTION
3078
+
3079
+ :param register_address_request: (required)
3080
+ :type register_address_request: RegisterAddressRequest
3081
+ :param _request_timeout: timeout setting for this request. If one
3082
+ number provided, it will be total request
3083
+ timeout. It can also be a pair (tuple) of
3084
+ (connection, read) timeouts.
3085
+ :type _request_timeout: int, tuple(int, int), optional
3086
+ :param _request_auth: set to override the auth_settings for an a single
3087
+ request; this effectively ignores the
3088
+ authentication in the spec for a single request.
3089
+ :type _request_auth: dict, optional
3090
+ :param _content_type: force content-type for the request.
3091
+ :type _content_type: str, Optional
3092
+ :param _headers: set to override the headers for a single
3093
+ request; this effectively ignores the headers
3094
+ in the spec for a single request.
3095
+ :type _headers: dict, optional
3096
+ :param _host_index: set to override the host_index for a single
3097
+ request; this effectively ignores the host_index
3098
+ in the spec for a single request.
3099
+ :type _host_index: int, optional
3100
+ :return: Returns the result object.
3101
+ """ # noqa: E501
3102
+
3103
+ _param = self._register_address_serialize(
3104
+ register_address_request=register_address_request,
3105
+ _request_auth=_request_auth,
3106
+ _content_type=_content_type,
3107
+ _headers=_headers,
3108
+ _host_index=_host_index
3109
+ )
3110
+
3111
+ _response_types_map: Dict[str, Optional[str]] = {
3112
+ '200': "RegisterAddressResponseDTO",
3113
+ }
3114
+ response_data = await self.api_client.call_api(
3115
+ *_param,
3116
+ _request_timeout=_request_timeout
3117
+ )
3118
+ return response_data.response
3119
+
3120
+
3121
+ def _register_address_serialize(
3122
+ self,
3123
+ register_address_request,
3124
+ _request_auth,
3125
+ _content_type,
3126
+ _headers,
3127
+ _host_index,
3128
+ ) -> RequestSerialized:
3129
+
3130
+ _host = None
3131
+
3132
+ _collection_formats: Dict[str, str] = {
3133
+ }
3134
+
3135
+ _path_params: Dict[str, str] = {}
3136
+ _query_params: List[Tuple[str, str]] = []
3137
+ _header_params: Dict[str, Optional[str]] = _headers or {}
3138
+ _form_params: List[Tuple[str, str]] = []
3139
+ _files: Dict[
3140
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3141
+ ] = {}
3142
+ _body_params: Optional[bytes] = None
3143
+
3144
+ # process the path parameters
3145
+ # process the query parameters
3146
+ # process the header parameters
3147
+ # process the form parameters
3148
+ # process the body parameter
3149
+ if register_address_request is not None:
3150
+ _body_params = register_address_request
3151
+
3152
+
3153
+ # set the HTTP header `Accept`
3154
+ if 'Accept' not in _header_params:
3155
+ _header_params['Accept'] = self.api_client.select_header_accept(
3156
+ [
3157
+ 'application/json'
3158
+ ]
3159
+ )
3160
+
3161
+ # set the HTTP header `Content-Type`
3162
+ if _content_type:
3163
+ _header_params['Content-Type'] = _content_type
3164
+ else:
3165
+ _default_content_type = (
3166
+ self.api_client.select_header_content_type(
3167
+ [
3168
+ 'application/json'
3169
+ ]
3170
+ )
3171
+ )
3172
+ if _default_content_type is not None:
3173
+ _header_params['Content-Type'] = _default_content_type
3174
+
3175
+ # authentication setting
3176
+ _auth_settings: List[str] = [
3177
+ 'bearer'
3178
+ ]
3179
+
3180
+ return self.api_client.param_serialize(
3181
+ method='POST',
3182
+ resource_path='/v1/kyt/address',
3183
+ path_params=_path_params,
3184
+ query_params=_query_params,
3185
+ header_params=_header_params,
3186
+ body=_body_params,
3187
+ post_params=_form_params,
3188
+ files=_files,
3189
+ auth_settings=_auth_settings,
3190
+ collection_formats=_collection_formats,
3191
+ _host=_host,
3192
+ _request_auth=_request_auth
3193
+ )
3194
+
3195
+
3196
+
3197
+
3198
+ @validate_call
3199
+ async def register_transfer(
3200
+ self,
3201
+ kyt_register_transfer_request: KYTRegisterTransferRequest,
3202
+ _request_timeout: Union[
3203
+ None,
3204
+ Annotated[StrictFloat, Field(gt=0)],
3205
+ Tuple[
3206
+ Annotated[StrictFloat, Field(gt=0)],
3207
+ Annotated[StrictFloat, Field(gt=0)]
3208
+ ]
3209
+ ] = None,
3210
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3211
+ _content_type: Optional[StrictStr] = None,
3212
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3213
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3214
+ ) -> TransferBaseResponseDTO:
3215
+ """CONTROLLER.KYT.REGISTER_TRANSFER.SUMMARY
3216
+
3217
+ CONTROLLER.KYT.REGISTER_TRANSFER.DESCRIPTION
3218
+
3219
+ :param kyt_register_transfer_request: (required)
3220
+ :type kyt_register_transfer_request: KYTRegisterTransferRequest
3221
+ :param _request_timeout: timeout setting for this request. If one
3222
+ number provided, it will be total request
3223
+ timeout. It can also be a pair (tuple) of
3224
+ (connection, read) timeouts.
3225
+ :type _request_timeout: int, tuple(int, int), optional
3226
+ :param _request_auth: set to override the auth_settings for an a single
3227
+ request; this effectively ignores the
3228
+ authentication in the spec for a single request.
3229
+ :type _request_auth: dict, optional
3230
+ :param _content_type: force content-type for the request.
3231
+ :type _content_type: str, Optional
3232
+ :param _headers: set to override the headers for a single
3233
+ request; this effectively ignores the headers
3234
+ in the spec for a single request.
3235
+ :type _headers: dict, optional
3236
+ :param _host_index: set to override the host_index for a single
3237
+ request; this effectively ignores the host_index
3238
+ in the spec for a single request.
3239
+ :type _host_index: int, optional
3240
+ :return: Returns the result object.
3241
+ """ # noqa: E501
3242
+
3243
+ _param = self._register_transfer_serialize(
3244
+ kyt_register_transfer_request=kyt_register_transfer_request,
3245
+ _request_auth=_request_auth,
3246
+ _content_type=_content_type,
3247
+ _headers=_headers,
3248
+ _host_index=_host_index
3249
+ )
3250
+
3251
+ _response_types_map: Dict[str, Optional[str]] = {
3252
+ '200': "TransferBaseResponseDTO",
3253
+ }
3254
+ response_data = await self.api_client.call_api(
3255
+ *_param,
3256
+ _request_timeout=_request_timeout
3257
+ )
3258
+ await response_data.read()
3259
+ return self.api_client.response_deserialize(
3260
+ response_data=response_data,
3261
+ response_types_map=_response_types_map,
3262
+ ).data
3263
+
3264
+
3265
+ @validate_call
3266
+ async def register_transfer_with_http_info(
3267
+ self,
3268
+ kyt_register_transfer_request: KYTRegisterTransferRequest,
3269
+ _request_timeout: Union[
3270
+ None,
3271
+ Annotated[StrictFloat, Field(gt=0)],
3272
+ Tuple[
3273
+ Annotated[StrictFloat, Field(gt=0)],
3274
+ Annotated[StrictFloat, Field(gt=0)]
3275
+ ]
3276
+ ] = None,
3277
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3278
+ _content_type: Optional[StrictStr] = None,
3279
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3280
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3281
+ ) -> ApiResponse[TransferBaseResponseDTO]:
3282
+ """CONTROLLER.KYT.REGISTER_TRANSFER.SUMMARY
3283
+
3284
+ CONTROLLER.KYT.REGISTER_TRANSFER.DESCRIPTION
3285
+
3286
+ :param kyt_register_transfer_request: (required)
3287
+ :type kyt_register_transfer_request: KYTRegisterTransferRequest
3288
+ :param _request_timeout: timeout setting for this request. If one
3289
+ number provided, it will be total request
3290
+ timeout. It can also be a pair (tuple) of
3291
+ (connection, read) timeouts.
3292
+ :type _request_timeout: int, tuple(int, int), optional
3293
+ :param _request_auth: set to override the auth_settings for an a single
3294
+ request; this effectively ignores the
3295
+ authentication in the spec for a single request.
3296
+ :type _request_auth: dict, optional
3297
+ :param _content_type: force content-type for the request.
3298
+ :type _content_type: str, Optional
3299
+ :param _headers: set to override the headers for a single
3300
+ request; this effectively ignores the headers
3301
+ in the spec for a single request.
3302
+ :type _headers: dict, optional
3303
+ :param _host_index: set to override the host_index for a single
3304
+ request; this effectively ignores the host_index
3305
+ in the spec for a single request.
3306
+ :type _host_index: int, optional
3307
+ :return: Returns the result object.
3308
+ """ # noqa: E501
3309
+
3310
+ _param = self._register_transfer_serialize(
3311
+ kyt_register_transfer_request=kyt_register_transfer_request,
3312
+ _request_auth=_request_auth,
3313
+ _content_type=_content_type,
3314
+ _headers=_headers,
3315
+ _host_index=_host_index
3316
+ )
3317
+
3318
+ _response_types_map: Dict[str, Optional[str]] = {
3319
+ '200': "TransferBaseResponseDTO",
3320
+ }
3321
+ response_data = await self.api_client.call_api(
3322
+ *_param,
3323
+ _request_timeout=_request_timeout
3324
+ )
3325
+ await response_data.read()
3326
+ return self.api_client.response_deserialize(
3327
+ response_data=response_data,
3328
+ response_types_map=_response_types_map,
3329
+ )
3330
+
3331
+
3332
+ @validate_call
3333
+ async def register_transfer_without_preload_content(
3334
+ self,
3335
+ kyt_register_transfer_request: KYTRegisterTransferRequest,
3336
+ _request_timeout: Union[
3337
+ None,
3338
+ Annotated[StrictFloat, Field(gt=0)],
3339
+ Tuple[
3340
+ Annotated[StrictFloat, Field(gt=0)],
3341
+ Annotated[StrictFloat, Field(gt=0)]
3342
+ ]
3343
+ ] = None,
3344
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3345
+ _content_type: Optional[StrictStr] = None,
3346
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3347
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3348
+ ) -> RESTResponseType:
3349
+ """CONTROLLER.KYT.REGISTER_TRANSFER.SUMMARY
3350
+
3351
+ CONTROLLER.KYT.REGISTER_TRANSFER.DESCRIPTION
3352
+
3353
+ :param kyt_register_transfer_request: (required)
3354
+ :type kyt_register_transfer_request: KYTRegisterTransferRequest
3355
+ :param _request_timeout: timeout setting for this request. If one
3356
+ number provided, it will be total request
3357
+ timeout. It can also be a pair (tuple) of
3358
+ (connection, read) timeouts.
3359
+ :type _request_timeout: int, tuple(int, int), optional
3360
+ :param _request_auth: set to override the auth_settings for an a single
3361
+ request; this effectively ignores the
3362
+ authentication in the spec for a single request.
3363
+ :type _request_auth: dict, optional
3364
+ :param _content_type: force content-type for the request.
3365
+ :type _content_type: str, Optional
3366
+ :param _headers: set to override the headers for a single
3367
+ request; this effectively ignores the headers
3368
+ in the spec for a single request.
3369
+ :type _headers: dict, optional
3370
+ :param _host_index: set to override the host_index for a single
3371
+ request; this effectively ignores the host_index
3372
+ in the spec for a single request.
3373
+ :type _host_index: int, optional
3374
+ :return: Returns the result object.
3375
+ """ # noqa: E501
3376
+
3377
+ _param = self._register_transfer_serialize(
3378
+ kyt_register_transfer_request=kyt_register_transfer_request,
3379
+ _request_auth=_request_auth,
3380
+ _content_type=_content_type,
3381
+ _headers=_headers,
3382
+ _host_index=_host_index
3383
+ )
3384
+
3385
+ _response_types_map: Dict[str, Optional[str]] = {
3386
+ '200': "TransferBaseResponseDTO",
3387
+ }
3388
+ response_data = await self.api_client.call_api(
3389
+ *_param,
3390
+ _request_timeout=_request_timeout
3391
+ )
3392
+ return response_data.response
3393
+
3394
+
3395
+ def _register_transfer_serialize(
3396
+ self,
3397
+ kyt_register_transfer_request,
3398
+ _request_auth,
3399
+ _content_type,
3400
+ _headers,
3401
+ _host_index,
3402
+ ) -> RequestSerialized:
3403
+
3404
+ _host = None
3405
+
3406
+ _collection_formats: Dict[str, str] = {
3407
+ }
3408
+
3409
+ _path_params: Dict[str, str] = {}
3410
+ _query_params: List[Tuple[str, str]] = []
3411
+ _header_params: Dict[str, Optional[str]] = _headers or {}
3412
+ _form_params: List[Tuple[str, str]] = []
3413
+ _files: Dict[
3414
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3415
+ ] = {}
3416
+ _body_params: Optional[bytes] = None
3417
+
3418
+ # process the path parameters
3419
+ # process the query parameters
3420
+ # process the header parameters
3421
+ # process the form parameters
3422
+ # process the body parameter
3423
+ if kyt_register_transfer_request is not None:
3424
+ _body_params = kyt_register_transfer_request
3425
+
3426
+
3427
+ # set the HTTP header `Accept`
3428
+ if 'Accept' not in _header_params:
3429
+ _header_params['Accept'] = self.api_client.select_header_accept(
3430
+ [
3431
+ 'application/json'
3432
+ ]
3433
+ )
3434
+
3435
+ # set the HTTP header `Content-Type`
3436
+ if _content_type:
3437
+ _header_params['Content-Type'] = _content_type
3438
+ else:
3439
+ _default_content_type = (
3440
+ self.api_client.select_header_content_type(
3441
+ [
3442
+ 'application/json'
3443
+ ]
3444
+ )
3445
+ )
3446
+ if _default_content_type is not None:
3447
+ _header_params['Content-Type'] = _default_content_type
3448
+
3449
+ # authentication setting
3450
+ _auth_settings: List[str] = [
3451
+ 'bearer'
3452
+ ]
3453
+
3454
+ return self.api_client.param_serialize(
3455
+ method='POST',
3456
+ resource_path='/v1/kyt/transfer',
3457
+ path_params=_path_params,
3458
+ query_params=_query_params,
3459
+ header_params=_header_params,
3460
+ body=_body_params,
3461
+ post_params=_form_params,
3462
+ files=_files,
3463
+ auth_settings=_auth_settings,
3464
+ collection_formats=_collection_formats,
3465
+ _host=_host,
3466
+ _request_auth=_request_auth
3467
+ )
3468
+
3469
+
3470
+
3471
+
3472
+ @validate_call
3473
+ async def register_withdrawal(
3474
+ self,
3475
+ kyt_register_withdrawal_request: KYTRegisterWithdrawalRequest,
3476
+ _request_timeout: Union[
3477
+ None,
3478
+ Annotated[StrictFloat, Field(gt=0)],
3479
+ Tuple[
3480
+ Annotated[StrictFloat, Field(gt=0)],
3481
+ Annotated[StrictFloat, Field(gt=0)]
3482
+ ]
3483
+ ] = None,
3484
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3485
+ _content_type: Optional[StrictStr] = None,
3486
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3487
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3488
+ ) -> WithdrawalBaseResponseDTO:
3489
+ """CONTROLLER.KYT.REGISTER_WITHDRAWAL.SUMMARY
3490
+
3491
+ CONTROLLER.KYT.REGISTER_WITHDRAWAL.DESCRIPTION
3492
+
3493
+ :param kyt_register_withdrawal_request: (required)
3494
+ :type kyt_register_withdrawal_request: KYTRegisterWithdrawalRequest
3495
+ :param _request_timeout: timeout setting for this request. If one
3496
+ number provided, it will be total request
3497
+ timeout. It can also be a pair (tuple) of
3498
+ (connection, read) timeouts.
3499
+ :type _request_timeout: int, tuple(int, int), optional
3500
+ :param _request_auth: set to override the auth_settings for an a single
3501
+ request; this effectively ignores the
3502
+ authentication in the spec for a single request.
3503
+ :type _request_auth: dict, optional
3504
+ :param _content_type: force content-type for the request.
3505
+ :type _content_type: str, Optional
3506
+ :param _headers: set to override the headers for a single
3507
+ request; this effectively ignores the headers
3508
+ in the spec for a single request.
3509
+ :type _headers: dict, optional
3510
+ :param _host_index: set to override the host_index for a single
3511
+ request; this effectively ignores the host_index
3512
+ in the spec for a single request.
3513
+ :type _host_index: int, optional
3514
+ :return: Returns the result object.
3515
+ """ # noqa: E501
3516
+
3517
+ _param = self._register_withdrawal_serialize(
3518
+ kyt_register_withdrawal_request=kyt_register_withdrawal_request,
3519
+ _request_auth=_request_auth,
3520
+ _content_type=_content_type,
3521
+ _headers=_headers,
3522
+ _host_index=_host_index
3523
+ )
3524
+
3525
+ _response_types_map: Dict[str, Optional[str]] = {
3526
+ '200': "WithdrawalBaseResponseDTO",
3527
+ }
3528
+ response_data = await self.api_client.call_api(
3529
+ *_param,
3530
+ _request_timeout=_request_timeout
3531
+ )
3532
+ await response_data.read()
3533
+ return self.api_client.response_deserialize(
3534
+ response_data=response_data,
3535
+ response_types_map=_response_types_map,
3536
+ ).data
3537
+
3538
+
3539
+ @validate_call
3540
+ async def register_withdrawal_with_http_info(
3541
+ self,
3542
+ kyt_register_withdrawal_request: KYTRegisterWithdrawalRequest,
3543
+ _request_timeout: Union[
3544
+ None,
3545
+ Annotated[StrictFloat, Field(gt=0)],
3546
+ Tuple[
3547
+ Annotated[StrictFloat, Field(gt=0)],
3548
+ Annotated[StrictFloat, Field(gt=0)]
3549
+ ]
3550
+ ] = None,
3551
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3552
+ _content_type: Optional[StrictStr] = None,
3553
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3554
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3555
+ ) -> ApiResponse[WithdrawalBaseResponseDTO]:
3556
+ """CONTROLLER.KYT.REGISTER_WITHDRAWAL.SUMMARY
3557
+
3558
+ CONTROLLER.KYT.REGISTER_WITHDRAWAL.DESCRIPTION
3559
+
3560
+ :param kyt_register_withdrawal_request: (required)
3561
+ :type kyt_register_withdrawal_request: KYTRegisterWithdrawalRequest
3562
+ :param _request_timeout: timeout setting for this request. If one
3563
+ number provided, it will be total request
3564
+ timeout. It can also be a pair (tuple) of
3565
+ (connection, read) timeouts.
3566
+ :type _request_timeout: int, tuple(int, int), optional
3567
+ :param _request_auth: set to override the auth_settings for an a single
3568
+ request; this effectively ignores the
3569
+ authentication in the spec for a single request.
3570
+ :type _request_auth: dict, optional
3571
+ :param _content_type: force content-type for the request.
3572
+ :type _content_type: str, Optional
3573
+ :param _headers: set to override the headers for a single
3574
+ request; this effectively ignores the headers
3575
+ in the spec for a single request.
3576
+ :type _headers: dict, optional
3577
+ :param _host_index: set to override the host_index for a single
3578
+ request; this effectively ignores the host_index
3579
+ in the spec for a single request.
3580
+ :type _host_index: int, optional
3581
+ :return: Returns the result object.
3582
+ """ # noqa: E501
3583
+
3584
+ _param = self._register_withdrawal_serialize(
3585
+ kyt_register_withdrawal_request=kyt_register_withdrawal_request,
3586
+ _request_auth=_request_auth,
3587
+ _content_type=_content_type,
3588
+ _headers=_headers,
3589
+ _host_index=_host_index
3590
+ )
3591
+
3592
+ _response_types_map: Dict[str, Optional[str]] = {
3593
+ '200': "WithdrawalBaseResponseDTO",
3594
+ }
3595
+ response_data = await self.api_client.call_api(
3596
+ *_param,
3597
+ _request_timeout=_request_timeout
3598
+ )
3599
+ await response_data.read()
3600
+ return self.api_client.response_deserialize(
3601
+ response_data=response_data,
3602
+ response_types_map=_response_types_map,
3603
+ )
3604
+
3605
+
3606
+ @validate_call
3607
+ async def register_withdrawal_without_preload_content(
3608
+ self,
3609
+ kyt_register_withdrawal_request: KYTRegisterWithdrawalRequest,
3610
+ _request_timeout: Union[
3611
+ None,
3612
+ Annotated[StrictFloat, Field(gt=0)],
3613
+ Tuple[
3614
+ Annotated[StrictFloat, Field(gt=0)],
3615
+ Annotated[StrictFloat, Field(gt=0)]
3616
+ ]
3617
+ ] = None,
3618
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3619
+ _content_type: Optional[StrictStr] = None,
3620
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3621
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3622
+ ) -> RESTResponseType:
3623
+ """CONTROLLER.KYT.REGISTER_WITHDRAWAL.SUMMARY
3624
+
3625
+ CONTROLLER.KYT.REGISTER_WITHDRAWAL.DESCRIPTION
3626
+
3627
+ :param kyt_register_withdrawal_request: (required)
3628
+ :type kyt_register_withdrawal_request: KYTRegisterWithdrawalRequest
3629
+ :param _request_timeout: timeout setting for this request. If one
3630
+ number provided, it will be total request
3631
+ timeout. It can also be a pair (tuple) of
3632
+ (connection, read) timeouts.
3633
+ :type _request_timeout: int, tuple(int, int), optional
3634
+ :param _request_auth: set to override the auth_settings for an a single
3635
+ request; this effectively ignores the
3636
+ authentication in the spec for a single request.
3637
+ :type _request_auth: dict, optional
3638
+ :param _content_type: force content-type for the request.
3639
+ :type _content_type: str, Optional
3640
+ :param _headers: set to override the headers for a single
3641
+ request; this effectively ignores the headers
3642
+ in the spec for a single request.
3643
+ :type _headers: dict, optional
3644
+ :param _host_index: set to override the host_index for a single
3645
+ request; this effectively ignores the host_index
3646
+ in the spec for a single request.
3647
+ :type _host_index: int, optional
3648
+ :return: Returns the result object.
3649
+ """ # noqa: E501
3650
+
3651
+ _param = self._register_withdrawal_serialize(
3652
+ kyt_register_withdrawal_request=kyt_register_withdrawal_request,
3653
+ _request_auth=_request_auth,
3654
+ _content_type=_content_type,
3655
+ _headers=_headers,
3656
+ _host_index=_host_index
3657
+ )
3658
+
3659
+ _response_types_map: Dict[str, Optional[str]] = {
3660
+ '200': "WithdrawalBaseResponseDTO",
3661
+ }
3662
+ response_data = await self.api_client.call_api(
3663
+ *_param,
3664
+ _request_timeout=_request_timeout
3665
+ )
3666
+ return response_data.response
3667
+
3668
+
3669
+ def _register_withdrawal_serialize(
3670
+ self,
3671
+ kyt_register_withdrawal_request,
3672
+ _request_auth,
3673
+ _content_type,
3674
+ _headers,
3675
+ _host_index,
3676
+ ) -> RequestSerialized:
3677
+
3678
+ _host = None
3679
+
3680
+ _collection_formats: Dict[str, str] = {
3681
+ }
3682
+
3683
+ _path_params: Dict[str, str] = {}
3684
+ _query_params: List[Tuple[str, str]] = []
3685
+ _header_params: Dict[str, Optional[str]] = _headers or {}
3686
+ _form_params: List[Tuple[str, str]] = []
3687
+ _files: Dict[
3688
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3689
+ ] = {}
3690
+ _body_params: Optional[bytes] = None
3691
+
3692
+ # process the path parameters
3693
+ # process the query parameters
3694
+ # process the header parameters
3695
+ # process the form parameters
3696
+ # process the body parameter
3697
+ if kyt_register_withdrawal_request is not None:
3698
+ _body_params = kyt_register_withdrawal_request
3699
+
3700
+
3701
+ # set the HTTP header `Accept`
3702
+ if 'Accept' not in _header_params:
3703
+ _header_params['Accept'] = self.api_client.select_header_accept(
3704
+ [
3705
+ 'application/json'
3706
+ ]
3707
+ )
3708
+
3709
+ # set the HTTP header `Content-Type`
3710
+ if _content_type:
3711
+ _header_params['Content-Type'] = _content_type
3712
+ else:
3713
+ _default_content_type = (
3714
+ self.api_client.select_header_content_type(
3715
+ [
3716
+ 'application/json'
3717
+ ]
3718
+ )
3719
+ )
3720
+ if _default_content_type is not None:
3721
+ _header_params['Content-Type'] = _default_content_type
3722
+
3723
+ # authentication setting
3724
+ _auth_settings: List[str] = [
3725
+ 'bearer'
3726
+ ]
3727
+
3728
+ return self.api_client.param_serialize(
3729
+ method='POST',
3730
+ resource_path='/v1/kyt/withdrawal',
3731
+ path_params=_path_params,
3732
+ query_params=_query_params,
3733
+ header_params=_header_params,
3734
+ body=_body_params,
3735
+ post_params=_form_params,
3736
+ files=_files,
3737
+ auth_settings=_auth_settings,
3738
+ collection_formats=_collection_formats,
3739
+ _host=_host,
3740
+ _request_auth=_request_auth
3741
+ )
3742
+
3743
+