circle-developer-controlled-wallets 0.1.0b1__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.

Potentially problematic release.


This version of circle-developer-controlled-wallets might be problematic. Click here for more details.

Files changed (95) hide show
  1. circle/__init__.py +0 -0
  2. circle/web3/__init__.py +0 -0
  3. circle/web3/developer_controlled_wallets/__init__.py +108 -0
  4. circle/web3/developer_controlled_wallets/api/__init__.py +9 -0
  5. circle/web3/developer_controlled_wallets/api/signing_api.py +356 -0
  6. circle/web3/developer_controlled_wallets/api/token_lookup_api.py +198 -0
  7. circle/web3/developer_controlled_wallets/api/transactions_api.py +1527 -0
  8. circle/web3/developer_controlled_wallets/api/wallet_sets_api.py +691 -0
  9. circle/web3/developer_controlled_wallets/api/wallets_api.py +1118 -0
  10. circle/web3/developer_controlled_wallets/api_client.py +789 -0
  11. circle/web3/developer_controlled_wallets/api_response.py +25 -0
  12. circle/web3/developer_controlled_wallets/configuration.py +455 -0
  13. circle/web3/developer_controlled_wallets/exceptions.py +162 -0
  14. circle/web3/developer_controlled_wallets/models/__init__.py +87 -0
  15. circle/web3/developer_controlled_wallets/models/abi_parameters_inner.py +168 -0
  16. circle/web3/developer_controlled_wallets/models/accelerate_transaction_for_developer_request.py +85 -0
  17. circle/web3/developer_controlled_wallets/models/accelerate_transaction_for_developer_response.py +83 -0
  18. circle/web3/developer_controlled_wallets/models/account_type.py +36 -0
  19. circle/web3/developer_controlled_wallets/models/balance.py +91 -0
  20. circle/web3/developer_controlled_wallets/models/blockchain.py +40 -0
  21. circle/web3/developer_controlled_wallets/models/cancel_transaction_for_developer_request.py +85 -0
  22. circle/web3/developer_controlled_wallets/models/cancel_transaction_for_developer_response.py +86 -0
  23. circle/web3/developer_controlled_wallets/models/create_contract_execution_transaction_for_developer_request.py +118 -0
  24. circle/web3/developer_controlled_wallets/models/create_contract_execution_transaction_for_developer_response.py +86 -0
  25. circle/web3/developer_controlled_wallets/models/create_developer_transaction_accelerate200_response.py +87 -0
  26. circle/web3/developer_controlled_wallets/models/create_developer_transaction_cancel200_response.py +87 -0
  27. circle/web3/developer_controlled_wallets/models/create_developer_transaction_contract_execution200_response.py +87 -0
  28. circle/web3/developer_controlled_wallets/models/create_developer_transaction_transfer200_response.py +87 -0
  29. circle/web3/developer_controlled_wallets/models/create_developer_wallet200_response.py +87 -0
  30. circle/web3/developer_controlled_wallets/models/create_developer_wallet_request.py +105 -0
  31. circle/web3/developer_controlled_wallets/models/create_developer_wallet_response.py +91 -0
  32. circle/web3/developer_controlled_wallets/models/create_developer_wallet_set_request.py +87 -0
  33. circle/web3/developer_controlled_wallets/models/create_developer_wallet_set_response.py +87 -0
  34. circle/web3/developer_controlled_wallets/models/create_transfer_estimate_fee200_response.py +87 -0
  35. circle/web3/developer_controlled_wallets/models/create_transfer_transaction_for_developer_request.py +112 -0
  36. circle/web3/developer_controlled_wallets/models/create_transfer_transaction_for_developer_response.py +86 -0
  37. circle/web3/developer_controlled_wallets/models/create_validate_address200_response.py +87 -0
  38. circle/web3/developer_controlled_wallets/models/create_wallet_set200_response.py +87 -0
  39. circle/web3/developer_controlled_wallets/models/custody_type.py +36 -0
  40. circle/web3/developer_controlled_wallets/models/error.py +85 -0
  41. circle/web3/developer_controlled_wallets/models/estimate_contract_execution_transaction_fee_request.py +106 -0
  42. circle/web3/developer_controlled_wallets/models/estimate_transaction_fee_response.py +103 -0
  43. circle/web3/developer_controlled_wallets/models/estimate_transfer_transaction_fee_request.py +97 -0
  44. circle/web3/developer_controlled_wallets/models/estimated_transaction_fee.py +91 -0
  45. circle/web3/developer_controlled_wallets/models/ext_get_all_wallets_response.py +91 -0
  46. circle/web3/developer_controlled_wallets/models/ext_get_wallet_by_id_response.py +87 -0
  47. circle/web3/developer_controlled_wallets/models/ext_update_wallet_metadata_request.py +85 -0
  48. circle/web3/developer_controlled_wallets/models/ext_wallet_response.py +87 -0
  49. circle/web3/developer_controlled_wallets/models/ext_wallet_response_wallet.py +111 -0
  50. circle/web3/developer_controlled_wallets/models/fee_level.py +37 -0
  51. circle/web3/developer_controlled_wallets/models/get_balances_response.py +91 -0
  52. circle/web3/developer_controlled_wallets/models/get_nfts_response.py +91 -0
  53. circle/web3/developer_controlled_wallets/models/get_token_by_id_response.py +87 -0
  54. circle/web3/developer_controlled_wallets/models/get_token_id200_response.py +87 -0
  55. circle/web3/developer_controlled_wallets/models/get_transaction200_response.py +87 -0
  56. circle/web3/developer_controlled_wallets/models/get_transaction_by_id_response.py +87 -0
  57. circle/web3/developer_controlled_wallets/models/get_transactions_response.py +91 -0
  58. circle/web3/developer_controlled_wallets/models/get_wallet200_response.py +87 -0
  59. circle/web3/developer_controlled_wallets/models/get_wallet_set200_response.py +87 -0
  60. circle/web3/developer_controlled_wallets/models/get_wallet_set_by_id_response.py +87 -0
  61. circle/web3/developer_controlled_wallets/models/get_wallet_sets_response.py +91 -0
  62. circle/web3/developer_controlled_wallets/models/list_transactions200_response.py +87 -0
  63. circle/web3/developer_controlled_wallets/models/list_wallet_ballance200_response.py +87 -0
  64. circle/web3/developer_controlled_wallets/models/list_wallet_nfts200_response.py +87 -0
  65. circle/web3/developer_controlled_wallets/models/list_wallet_sets200_response.py +87 -0
  66. circle/web3/developer_controlled_wallets/models/list_wallets200_response.py +87 -0
  67. circle/web3/developer_controlled_wallets/models/nft.py +95 -0
  68. circle/web3/developer_controlled_wallets/models/operation.py +37 -0
  69. circle/web3/developer_controlled_wallets/models/sign_developer_message200_response.py +87 -0
  70. circle/web3/developer_controlled_wallets/models/sign_developer_typed_data200_response.py +87 -0
  71. circle/web3/developer_controlled_wallets/models/sign_message_for_developer_request.py +91 -0
  72. circle/web3/developer_controlled_wallets/models/sign_message_for_developer_response.py +83 -0
  73. circle/web3/developer_controlled_wallets/models/sign_typed_data_for_developer_request.py +89 -0
  74. circle/web3/developer_controlled_wallets/models/sign_typed_data_for_developer_response.py +83 -0
  75. circle/web3/developer_controlled_wallets/models/token_response.py +103 -0
  76. circle/web3/developer_controlled_wallets/models/token_standard.py +37 -0
  77. circle/web3/developer_controlled_wallets/models/transaction.py +159 -0
  78. circle/web3/developer_controlled_wallets/models/transaction_state.py +43 -0
  79. circle/web3/developer_controlled_wallets/models/transaction_type.py +36 -0
  80. circle/web3/developer_controlled_wallets/models/update_wallet200_response.py +87 -0
  81. circle/web3/developer_controlled_wallets/models/update_wallet_set200_response.py +87 -0
  82. circle/web3/developer_controlled_wallets/models/update_wallet_set_metadata_request.py +83 -0
  83. circle/web3/developer_controlled_wallets/models/update_wallet_set_metadata_response.py +87 -0
  84. circle/web3/developer_controlled_wallets/models/validate_address_request.py +86 -0
  85. circle/web3/developer_controlled_wallets/models/validate_address_response.py +83 -0
  86. circle/web3/developer_controlled_wallets/models/wallet_metadata.py +85 -0
  87. circle/web3/developer_controlled_wallets/models/wallet_response.py +111 -0
  88. circle/web3/developer_controlled_wallets/models/wallet_set_response.py +94 -0
  89. circle/web3/developer_controlled_wallets/models/wallet_state.py +36 -0
  90. circle/web3/developer_controlled_wallets/py.typed +0 -0
  91. circle/web3/developer_controlled_wallets/rest.py +299 -0
  92. circle_developer_controlled_wallets-0.1.0b1.dist-info/METADATA +112 -0
  93. circle_developer_controlled_wallets-0.1.0b1.dist-info/RECORD +95 -0
  94. circle_developer_controlled_wallets-0.1.0b1.dist-info/WHEEL +5 -0
  95. circle_developer_controlled_wallets-0.1.0b1.dist-info/top_level.txt +1 -0
@@ -0,0 +1,691 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ The version of the OpenAPI document: 1.0
5
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
6
+
7
+ Do not edit the class manually.
8
+ """ # noqa: E501
9
+
10
+
11
+ import re # noqa: F401
12
+ import io
13
+ import warnings
14
+ import functools
15
+
16
+ from pydantic import validate_arguments, ValidationError
17
+ from typing_extensions import Annotated
18
+
19
+ from datetime import datetime
20
+
21
+ from pydantic import Field, StrictStr, conint
22
+
23
+ from typing import Optional
24
+
25
+ from circle.web3.developer_controlled_wallets.models.create_developer_wallet_set_request import CreateDeveloperWalletSetRequest
26
+ from circle.web3.developer_controlled_wallets.models.create_wallet_set200_response import CreateWalletSet200Response
27
+ from circle.web3.developer_controlled_wallets.models.get_wallet_set200_response import GetWalletSet200Response
28
+ from circle.web3.developer_controlled_wallets.models.list_wallet_sets200_response import ListWalletSets200Response
29
+ from circle.web3.developer_controlled_wallets.models.update_wallet_set200_response import UpdateWalletSet200Response
30
+ from circle.web3.developer_controlled_wallets.models.update_wallet_set_metadata_request import UpdateWalletSetMetadataRequest
31
+
32
+ from circle.web3.developer_controlled_wallets.api_client import ApiClient
33
+ from circle.web3.developer_controlled_wallets.api_response import ApiResponse
34
+ from circle.web3.developer_controlled_wallets.exceptions import ( # noqa: F401
35
+ ApiTypeError,
36
+ ApiValueError
37
+ )
38
+
39
+
40
+ def auto_fill(func):
41
+ functools.wraps(func)
42
+
43
+ def wrapper(*args, **kwargs):
44
+ api = args[0]
45
+ for arg in args:
46
+ api.api_client.fill_entity_secret_ciphertext(arg)
47
+ api.api_client.fill_idempotency_key(arg)
48
+ for name, arg in kwargs.items():
49
+ api.api_client.fill_entity_secret_ciphertext(arg)
50
+ api.api_client.fill_idempotency_key(arg)
51
+ return func(*args, **kwargs)
52
+
53
+ return wrapper
54
+
55
+
56
+ class WalletSetsApi(object):
57
+ """NOTE: This class is auto generated by OpenAPI Generator
58
+ Ref: https://openapi-generator.tech
59
+
60
+ Do not edit the class manually.
61
+ """
62
+
63
+ def __init__(self, api_client=None):
64
+ if api_client is None:
65
+ api_client = ApiClient.get_default()
66
+ self.api_client = api_client
67
+
68
+ @auto_fill
69
+ @validate_arguments
70
+ def create_wallet_set(self, create_developer_wallet_set_request : Annotated[CreateDeveloperWalletSetRequest, Field(..., description="WalletSet creation request")], **kwargs) -> CreateWalletSet200Response: # noqa: E501
71
+ """Create a new wallet set # noqa: E501
72
+
73
+ Generate a developer controlled wallet set. # noqa: E501
74
+ This method makes a synchronous HTTP request by default. To make an
75
+ asynchronous HTTP request, please pass async_req=True
76
+
77
+ >>> thread = api.create_wallet_set(create_developer_wallet_set_request, async_req=True)
78
+ >>> result = thread.get()
79
+
80
+ :param create_developer_wallet_set_request: WalletSet creation request (required)
81
+ :type create_developer_wallet_set_request: CreateDeveloperWalletSetRequest
82
+ :param async_req: Whether to execute the request asynchronously.
83
+ :type async_req: bool, optional
84
+ :param _request_timeout: timeout setting for this request. If one
85
+ number provided, it will be total request
86
+ timeout. It can also be a pair (tuple) of
87
+ (connection, read) timeouts.
88
+ :return: Returns the result object.
89
+ If the method is called asynchronously,
90
+ returns the request thread.
91
+ :rtype: CreateWalletSet200Response
92
+ """
93
+ kwargs['_return_http_data_only'] = True
94
+ if '_preload_content' in kwargs:
95
+ raise ValueError("Error! Please call the create_wallet_set_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data")
96
+ return self.create_wallet_set_with_http_info(create_developer_wallet_set_request, **kwargs) # noqa: E501
97
+
98
+ @auto_fill
99
+ @validate_arguments
100
+ def create_wallet_set_with_http_info(self, create_developer_wallet_set_request : Annotated[CreateDeveloperWalletSetRequest, Field(..., description="WalletSet creation request")], **kwargs) -> ApiResponse: # noqa: E501
101
+ """Create a new wallet set # noqa: E501
102
+
103
+ Generate a developer controlled wallet set. # noqa: E501
104
+ This method makes a synchronous HTTP request by default. To make an
105
+ asynchronous HTTP request, please pass async_req=True
106
+
107
+ >>> thread = api.create_wallet_set_with_http_info(create_developer_wallet_set_request, async_req=True)
108
+ >>> result = thread.get()
109
+
110
+ :param create_developer_wallet_set_request: WalletSet creation request (required)
111
+ :type create_developer_wallet_set_request: CreateDeveloperWalletSetRequest
112
+ :param async_req: Whether to execute the request asynchronously.
113
+ :type async_req: bool, optional
114
+ :param _preload_content: if False, the ApiResponse.data will
115
+ be set to none and raw_data will store the
116
+ HTTP response body without reading/decoding.
117
+ Default is True.
118
+ :type _preload_content: bool, optional
119
+ :param _return_http_data_only: response data instead of ApiResponse
120
+ object with status code, headers, etc
121
+ :type _return_http_data_only: bool, optional
122
+ :param _request_timeout: timeout setting for this request. If one
123
+ number provided, it will be total request
124
+ timeout. It can also be a pair (tuple) of
125
+ (connection, read) timeouts.
126
+ :param _request_auth: set to override the auth_settings for an a single
127
+ request; this effectively ignores the authentication
128
+ in the spec for a single request.
129
+ :type _request_auth: dict, optional
130
+ :type _content_type: string, optional: force content-type for the request
131
+ :return: Returns the result object.
132
+ If the method is called asynchronously,
133
+ returns the request thread.
134
+ :rtype: tuple(CreateWalletSet200Response, status_code(int), headers(HTTPHeaderDict))
135
+ """
136
+
137
+ _params = locals()
138
+
139
+ _all_params = [
140
+ 'create_developer_wallet_set_request'
141
+ ]
142
+ _all_params.extend(
143
+ [
144
+ 'async_req',
145
+ '_return_http_data_only',
146
+ '_preload_content',
147
+ '_request_timeout',
148
+ '_request_auth',
149
+ '_content_type',
150
+ '_headers'
151
+ ]
152
+ )
153
+
154
+ # validate the arguments
155
+ for _key, _val in _params['kwargs'].items():
156
+ if _key not in _all_params:
157
+ raise ApiTypeError(
158
+ "Got an unexpected keyword argument '%s'"
159
+ " to method create_wallet_set" % _key
160
+ )
161
+ _params[_key] = _val
162
+ del _params['kwargs']
163
+
164
+ _collection_formats = {}
165
+
166
+ # process the path parameters
167
+ _path_params = {}
168
+
169
+ # process the query parameters
170
+ _query_params = []
171
+ # process the header parameters
172
+ _header_params = dict(_params.get('_headers', {}))
173
+ # process the form parameters
174
+ _form_params = []
175
+ _files = {}
176
+ # process the body parameter
177
+ _body_params = None
178
+ if _params['create_developer_wallet_set_request'] is not None:
179
+ _body_params = _params['create_developer_wallet_set_request']
180
+
181
+ # set the HTTP header `Accept`
182
+ _header_params['Accept'] = self.api_client.select_header_accept(
183
+ ['application/json']) # noqa: E501
184
+
185
+ # set the HTTP header `Content-Type`
186
+ _content_types_list = _params.get('_content_type',
187
+ self.api_client.select_header_content_type(
188
+ ['application/json']))
189
+ if _content_types_list:
190
+ _header_params['Content-Type'] = _content_types_list
191
+
192
+ # authentication setting
193
+ _auth_settings = ['BearerAuth'] # noqa: E501
194
+
195
+ _response_types_map = {
196
+ '200': "CreateWalletSet200Response",
197
+ '201': "CreateWalletSet200Response",
198
+ }
199
+
200
+ return self.api_client.call_api(
201
+ '/developer/walletSets', 'POST',
202
+ _path_params,
203
+ _query_params,
204
+ _header_params,
205
+ body=_body_params,
206
+ post_params=_form_params,
207
+ files=_files,
208
+ response_types_map=_response_types_map,
209
+ auth_settings=_auth_settings,
210
+ async_req=_params.get('async_req'),
211
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
212
+ _preload_content=_params.get('_preload_content', True),
213
+ _request_timeout=_params.get('_request_timeout'),
214
+ collection_formats=_collection_formats,
215
+ _request_auth=_params.get('_request_auth'))
216
+
217
+ @auto_fill
218
+ @validate_arguments
219
+ def get_wallet_set(self, id : Annotated[StrictStr, Field(..., description="WalletSet ID")], **kwargs) -> GetWalletSet200Response: # noqa: E501
220
+ """Get a wallet set # noqa: E501
221
+
222
+ Retreive info for a single wallet set. # noqa: E501
223
+ This method makes a synchronous HTTP request by default. To make an
224
+ asynchronous HTTP request, please pass async_req=True
225
+
226
+ >>> thread = api.get_wallet_set(id, async_req=True)
227
+ >>> result = thread.get()
228
+
229
+ :param id: WalletSet ID (required)
230
+ :type id: str
231
+ :param async_req: Whether to execute the request asynchronously.
232
+ :type async_req: bool, optional
233
+ :param _request_timeout: timeout setting for this request. If one
234
+ number provided, it will be total request
235
+ timeout. It can also be a pair (tuple) of
236
+ (connection, read) timeouts.
237
+ :return: Returns the result object.
238
+ If the method is called asynchronously,
239
+ returns the request thread.
240
+ :rtype: GetWalletSet200Response
241
+ """
242
+ kwargs['_return_http_data_only'] = True
243
+ if '_preload_content' in kwargs:
244
+ raise ValueError("Error! Please call the get_wallet_set_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data")
245
+ return self.get_wallet_set_with_http_info(id, **kwargs) # noqa: E501
246
+
247
+ @auto_fill
248
+ @validate_arguments
249
+ def get_wallet_set_with_http_info(self, id : Annotated[StrictStr, Field(..., description="WalletSet ID")], **kwargs) -> ApiResponse: # noqa: E501
250
+ """Get a wallet set # noqa: E501
251
+
252
+ Retreive info for a single wallet set. # noqa: E501
253
+ This method makes a synchronous HTTP request by default. To make an
254
+ asynchronous HTTP request, please pass async_req=True
255
+
256
+ >>> thread = api.get_wallet_set_with_http_info(id, async_req=True)
257
+ >>> result = thread.get()
258
+
259
+ :param id: WalletSet ID (required)
260
+ :type id: str
261
+ :param async_req: Whether to execute the request asynchronously.
262
+ :type async_req: bool, optional
263
+ :param _preload_content: if False, the ApiResponse.data will
264
+ be set to none and raw_data will store the
265
+ HTTP response body without reading/decoding.
266
+ Default is True.
267
+ :type _preload_content: bool, optional
268
+ :param _return_http_data_only: response data instead of ApiResponse
269
+ object with status code, headers, etc
270
+ :type _return_http_data_only: bool, optional
271
+ :param _request_timeout: timeout setting for this request. If one
272
+ number provided, it will be total request
273
+ timeout. It can also be a pair (tuple) of
274
+ (connection, read) timeouts.
275
+ :param _request_auth: set to override the auth_settings for an a single
276
+ request; this effectively ignores the authentication
277
+ in the spec for a single request.
278
+ :type _request_auth: dict, optional
279
+ :type _content_type: string, optional: force content-type for the request
280
+ :return: Returns the result object.
281
+ If the method is called asynchronously,
282
+ returns the request thread.
283
+ :rtype: tuple(GetWalletSet200Response, status_code(int), headers(HTTPHeaderDict))
284
+ """
285
+
286
+ _params = locals()
287
+
288
+ _all_params = [
289
+ 'id'
290
+ ]
291
+ _all_params.extend(
292
+ [
293
+ 'async_req',
294
+ '_return_http_data_only',
295
+ '_preload_content',
296
+ '_request_timeout',
297
+ '_request_auth',
298
+ '_content_type',
299
+ '_headers'
300
+ ]
301
+ )
302
+
303
+ # validate the arguments
304
+ for _key, _val in _params['kwargs'].items():
305
+ if _key not in _all_params:
306
+ raise ApiTypeError(
307
+ "Got an unexpected keyword argument '%s'"
308
+ " to method get_wallet_set" % _key
309
+ )
310
+ _params[_key] = _val
311
+ del _params['kwargs']
312
+
313
+ _collection_formats = {}
314
+
315
+ # process the path parameters
316
+ _path_params = {}
317
+ if _params['id']:
318
+ _path_params['id'] = _params['id']
319
+
320
+
321
+ # process the query parameters
322
+ _query_params = []
323
+ # process the header parameters
324
+ _header_params = dict(_params.get('_headers', {}))
325
+ # process the form parameters
326
+ _form_params = []
327
+ _files = {}
328
+ # process the body parameter
329
+ _body_params = None
330
+ # set the HTTP header `Accept`
331
+ _header_params['Accept'] = self.api_client.select_header_accept(
332
+ ['application/json']) # noqa: E501
333
+
334
+ # authentication setting
335
+ _auth_settings = ['BearerAuth'] # noqa: E501
336
+
337
+ _response_types_map = {
338
+ '200': "GetWalletSet200Response",
339
+ }
340
+
341
+ return self.api_client.call_api(
342
+ '/walletSets/{id}', 'GET',
343
+ _path_params,
344
+ _query_params,
345
+ _header_params,
346
+ body=_body_params,
347
+ post_params=_form_params,
348
+ files=_files,
349
+ response_types_map=_response_types_map,
350
+ auth_settings=_auth_settings,
351
+ async_req=_params.get('async_req'),
352
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
353
+ _preload_content=_params.get('_preload_content', True),
354
+ _request_timeout=_params.get('_request_timeout'),
355
+ collection_formats=_collection_formats,
356
+ _request_auth=_params.get('_request_auth'))
357
+
358
+ @auto_fill
359
+ @validate_arguments
360
+ def list_wallet_sets(self, var_from : Annotated[Optional[datetime], Field(description="Queries items created since the specified date-time (inclusive) in ISO 8601 format.")] = None, to : Annotated[Optional[datetime], Field(description="Queries items created before the specified date-time (inclusive) in ISO 8601 format.")] = None, page_before : Annotated[Optional[StrictStr], Field(description="A collection ID value used for pagination. It marks the exclusive end of a page. When provided, the collection resource will return the next n items before the id, with n being specified by pageSize. The items will be returned in the natural order of the collection. The resource will return the first page if neither pageAfter nor pageBefore are specified. SHOULD NOT be used in conjuction with pageAfter. ")] = None, page_after : Annotated[Optional[StrictStr], Field(description="A collection ID value used for pagination. It marks the exclusive begin of a page. When provided, the collection resource will return the next n items after the id, with n being specified by pageSize. The items will be returned in the natural order of the collection. The resource will return the first page if neither pageAfter nor pageBefore are specified. SHOULD NOT be used in conjuction with pageBefore. ")] = None, page_size : Annotated[Optional[conint(strict=True, le=50, ge=1)], Field(description="Limits the number of items to be returned. Some collections have a strict upper bound that will disregard this value. In case the specified value is higher than the allowed limit, the collection limit will be used. If avoided, the collection will determine the page size itself. ")] = None, **kwargs) -> ListWalletSets200Response: # noqa: E501
361
+ """List wallet sets # noqa: E501
362
+
363
+ Retreive a list of all wallet sets. # noqa: E501
364
+ This method makes a synchronous HTTP request by default. To make an
365
+ asynchronous HTTP request, please pass async_req=True
366
+
367
+ >>> thread = api.list_wallet_sets(var_from, to, page_before, page_after, page_size, async_req=True)
368
+ >>> result = thread.get()
369
+
370
+ :param var_from: Queries items created since the specified date-time (inclusive) in ISO 8601 format.
371
+ :type var_from: datetime
372
+ :param to: Queries items created before the specified date-time (inclusive) in ISO 8601 format.
373
+ :type to: datetime
374
+ :param page_before: A collection ID value used for pagination. It marks the exclusive end of a page. When provided, the collection resource will return the next n items before the id, with n being specified by pageSize. The items will be returned in the natural order of the collection. The resource will return the first page if neither pageAfter nor pageBefore are specified. SHOULD NOT be used in conjuction with pageAfter.
375
+ :type page_before: str
376
+ :param page_after: A collection ID value used for pagination. It marks the exclusive begin of a page. When provided, the collection resource will return the next n items after the id, with n being specified by pageSize. The items will be returned in the natural order of the collection. The resource will return the first page if neither pageAfter nor pageBefore are specified. SHOULD NOT be used in conjuction with pageBefore.
377
+ :type page_after: str
378
+ :param page_size: Limits the number of items to be returned. Some collections have a strict upper bound that will disregard this value. In case the specified value is higher than the allowed limit, the collection limit will be used. If avoided, the collection will determine the page size itself.
379
+ :type page_size: int
380
+ :param async_req: Whether to execute the request asynchronously.
381
+ :type async_req: bool, optional
382
+ :param _request_timeout: timeout setting for this request. If one
383
+ number provided, it will be total request
384
+ timeout. It can also be a pair (tuple) of
385
+ (connection, read) timeouts.
386
+ :return: Returns the result object.
387
+ If the method is called asynchronously,
388
+ returns the request thread.
389
+ :rtype: ListWalletSets200Response
390
+ """
391
+ kwargs['_return_http_data_only'] = True
392
+ if '_preload_content' in kwargs:
393
+ raise ValueError("Error! Please call the list_wallet_sets_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data")
394
+ return self.list_wallet_sets_with_http_info(var_from, to, page_before, page_after, page_size, **kwargs) # noqa: E501
395
+
396
+ @auto_fill
397
+ @validate_arguments
398
+ def list_wallet_sets_with_http_info(self, var_from : Annotated[Optional[datetime], Field(description="Queries items created since the specified date-time (inclusive) in ISO 8601 format.")] = None, to : Annotated[Optional[datetime], Field(description="Queries items created before the specified date-time (inclusive) in ISO 8601 format.")] = None, page_before : Annotated[Optional[StrictStr], Field(description="A collection ID value used for pagination. It marks the exclusive end of a page. When provided, the collection resource will return the next n items before the id, with n being specified by pageSize. The items will be returned in the natural order of the collection. The resource will return the first page if neither pageAfter nor pageBefore are specified. SHOULD NOT be used in conjuction with pageAfter. ")] = None, page_after : Annotated[Optional[StrictStr], Field(description="A collection ID value used for pagination. It marks the exclusive begin of a page. When provided, the collection resource will return the next n items after the id, with n being specified by pageSize. The items will be returned in the natural order of the collection. The resource will return the first page if neither pageAfter nor pageBefore are specified. SHOULD NOT be used in conjuction with pageBefore. ")] = None, page_size : Annotated[Optional[conint(strict=True, le=50, ge=1)], Field(description="Limits the number of items to be returned. Some collections have a strict upper bound that will disregard this value. In case the specified value is higher than the allowed limit, the collection limit will be used. If avoided, the collection will determine the page size itself. ")] = None, **kwargs) -> ApiResponse: # noqa: E501
399
+ """List wallet sets # noqa: E501
400
+
401
+ Retreive a list of all wallet sets. # noqa: E501
402
+ This method makes a synchronous HTTP request by default. To make an
403
+ asynchronous HTTP request, please pass async_req=True
404
+
405
+ >>> thread = api.list_wallet_sets_with_http_info(var_from, to, page_before, page_after, page_size, async_req=True)
406
+ >>> result = thread.get()
407
+
408
+ :param var_from: Queries items created since the specified date-time (inclusive) in ISO 8601 format.
409
+ :type var_from: datetime
410
+ :param to: Queries items created before the specified date-time (inclusive) in ISO 8601 format.
411
+ :type to: datetime
412
+ :param page_before: A collection ID value used for pagination. It marks the exclusive end of a page. When provided, the collection resource will return the next n items before the id, with n being specified by pageSize. The items will be returned in the natural order of the collection. The resource will return the first page if neither pageAfter nor pageBefore are specified. SHOULD NOT be used in conjuction with pageAfter.
413
+ :type page_before: str
414
+ :param page_after: A collection ID value used for pagination. It marks the exclusive begin of a page. When provided, the collection resource will return the next n items after the id, with n being specified by pageSize. The items will be returned in the natural order of the collection. The resource will return the first page if neither pageAfter nor pageBefore are specified. SHOULD NOT be used in conjuction with pageBefore.
415
+ :type page_after: str
416
+ :param page_size: Limits the number of items to be returned. Some collections have a strict upper bound that will disregard this value. In case the specified value is higher than the allowed limit, the collection limit will be used. If avoided, the collection will determine the page size itself.
417
+ :type page_size: int
418
+ :param async_req: Whether to execute the request asynchronously.
419
+ :type async_req: bool, optional
420
+ :param _preload_content: if False, the ApiResponse.data will
421
+ be set to none and raw_data will store the
422
+ HTTP response body without reading/decoding.
423
+ Default is True.
424
+ :type _preload_content: bool, optional
425
+ :param _return_http_data_only: response data instead of ApiResponse
426
+ object with status code, headers, etc
427
+ :type _return_http_data_only: bool, optional
428
+ :param _request_timeout: timeout setting for this request. If one
429
+ number provided, it will be total request
430
+ timeout. It can also be a pair (tuple) of
431
+ (connection, read) timeouts.
432
+ :param _request_auth: set to override the auth_settings for an a single
433
+ request; this effectively ignores the authentication
434
+ in the spec for a single request.
435
+ :type _request_auth: dict, optional
436
+ :type _content_type: string, optional: force content-type for the request
437
+ :return: Returns the result object.
438
+ If the method is called asynchronously,
439
+ returns the request thread.
440
+ :rtype: tuple(ListWalletSets200Response, status_code(int), headers(HTTPHeaderDict))
441
+ """
442
+
443
+ _params = locals()
444
+
445
+ _all_params = [
446
+ 'var_from',
447
+ 'to',
448
+ 'page_before',
449
+ 'page_after',
450
+ 'page_size'
451
+ ]
452
+ _all_params.extend(
453
+ [
454
+ 'async_req',
455
+ '_return_http_data_only',
456
+ '_preload_content',
457
+ '_request_timeout',
458
+ '_request_auth',
459
+ '_content_type',
460
+ '_headers'
461
+ ]
462
+ )
463
+
464
+ # validate the arguments
465
+ for _key, _val in _params['kwargs'].items():
466
+ if _key not in _all_params:
467
+ raise ApiTypeError(
468
+ "Got an unexpected keyword argument '%s'"
469
+ " to method list_wallet_sets" % _key
470
+ )
471
+ _params[_key] = _val
472
+ del _params['kwargs']
473
+
474
+ _collection_formats = {}
475
+
476
+ # process the path parameters
477
+ _path_params = {}
478
+
479
+ # process the query parameters
480
+ _query_params = []
481
+ if _params.get('var_from') is not None: # noqa: E501
482
+ if isinstance(_params['var_from'], datetime):
483
+ _query_params.append(('from', _params['var_from'].strftime(self.api_client.configuration.datetime_format)))
484
+ else:
485
+ _query_params.append(('from', _params['var_from']))
486
+
487
+ if _params.get('to') is not None: # noqa: E501
488
+ if isinstance(_params['to'], datetime):
489
+ _query_params.append(('to', _params['to'].strftime(self.api_client.configuration.datetime_format)))
490
+ else:
491
+ _query_params.append(('to', _params['to']))
492
+
493
+ if _params.get('page_before') is not None: # noqa: E501
494
+ _query_params.append(('pageBefore', _params['page_before']))
495
+
496
+ if _params.get('page_after') is not None: # noqa: E501
497
+ _query_params.append(('pageAfter', _params['page_after']))
498
+
499
+ if _params.get('page_size') is not None: # noqa: E501
500
+ _query_params.append(('pageSize', _params['page_size']))
501
+
502
+ # process the header parameters
503
+ _header_params = dict(_params.get('_headers', {}))
504
+ # process the form parameters
505
+ _form_params = []
506
+ _files = {}
507
+ # process the body parameter
508
+ _body_params = None
509
+ # set the HTTP header `Accept`
510
+ _header_params['Accept'] = self.api_client.select_header_accept(
511
+ ['application/json']) # noqa: E501
512
+
513
+ # authentication setting
514
+ _auth_settings = ['BearerAuth'] # noqa: E501
515
+
516
+ _response_types_map = {
517
+ '200': "ListWalletSets200Response",
518
+ }
519
+
520
+ return self.api_client.call_api(
521
+ '/walletSets', 'GET',
522
+ _path_params,
523
+ _query_params,
524
+ _header_params,
525
+ body=_body_params,
526
+ post_params=_form_params,
527
+ files=_files,
528
+ response_types_map=_response_types_map,
529
+ auth_settings=_auth_settings,
530
+ async_req=_params.get('async_req'),
531
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
532
+ _preload_content=_params.get('_preload_content', True),
533
+ _request_timeout=_params.get('_request_timeout'),
534
+ collection_formats=_collection_formats,
535
+ _request_auth=_params.get('_request_auth'))
536
+
537
+ @auto_fill
538
+ @validate_arguments
539
+ def update_wallet_set(self, id : Annotated[StrictStr, Field(..., description="WalletSet ID")], update_wallet_set_metadata_request : Annotated[UpdateWalletSetMetadataRequest, Field(..., description="Update walletSet metadata request")], **kwargs) -> UpdateWalletSet200Response: # noqa: E501
540
+ """Update a wallet set # noqa: E501
541
+
542
+ Update the wallet set associated with the given wallet set ID. # noqa: E501
543
+ This method makes a synchronous HTTP request by default. To make an
544
+ asynchronous HTTP request, please pass async_req=True
545
+
546
+ >>> thread = api.update_wallet_set(id, update_wallet_set_metadata_request, async_req=True)
547
+ >>> result = thread.get()
548
+
549
+ :param id: WalletSet ID (required)
550
+ :type id: str
551
+ :param update_wallet_set_metadata_request: Update walletSet metadata request (required)
552
+ :type update_wallet_set_metadata_request: UpdateWalletSetMetadataRequest
553
+ :param async_req: Whether to execute the request asynchronously.
554
+ :type async_req: bool, optional
555
+ :param _request_timeout: timeout setting for this request. If one
556
+ number provided, it will be total request
557
+ timeout. It can also be a pair (tuple) of
558
+ (connection, read) timeouts.
559
+ :return: Returns the result object.
560
+ If the method is called asynchronously,
561
+ returns the request thread.
562
+ :rtype: UpdateWalletSet200Response
563
+ """
564
+ kwargs['_return_http_data_only'] = True
565
+ if '_preload_content' in kwargs:
566
+ raise ValueError("Error! Please call the update_wallet_set_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data")
567
+ return self.update_wallet_set_with_http_info(id, update_wallet_set_metadata_request, **kwargs) # noqa: E501
568
+
569
+ @auto_fill
570
+ @validate_arguments
571
+ def update_wallet_set_with_http_info(self, id : Annotated[StrictStr, Field(..., description="WalletSet ID")], update_wallet_set_metadata_request : Annotated[UpdateWalletSetMetadataRequest, Field(..., description="Update walletSet metadata request")], **kwargs) -> ApiResponse: # noqa: E501
572
+ """Update a wallet set # noqa: E501
573
+
574
+ Update the wallet set associated with the given wallet set ID. # noqa: E501
575
+ This method makes a synchronous HTTP request by default. To make an
576
+ asynchronous HTTP request, please pass async_req=True
577
+
578
+ >>> thread = api.update_wallet_set_with_http_info(id, update_wallet_set_metadata_request, async_req=True)
579
+ >>> result = thread.get()
580
+
581
+ :param id: WalletSet ID (required)
582
+ :type id: str
583
+ :param update_wallet_set_metadata_request: Update walletSet metadata request (required)
584
+ :type update_wallet_set_metadata_request: UpdateWalletSetMetadataRequest
585
+ :param async_req: Whether to execute the request asynchronously.
586
+ :type async_req: bool, optional
587
+ :param _preload_content: if False, the ApiResponse.data will
588
+ be set to none and raw_data will store the
589
+ HTTP response body without reading/decoding.
590
+ Default is True.
591
+ :type _preload_content: bool, optional
592
+ :param _return_http_data_only: response data instead of ApiResponse
593
+ object with status code, headers, etc
594
+ :type _return_http_data_only: bool, optional
595
+ :param _request_timeout: timeout setting for this request. If one
596
+ number provided, it will be total request
597
+ timeout. It can also be a pair (tuple) of
598
+ (connection, read) timeouts.
599
+ :param _request_auth: set to override the auth_settings for an a single
600
+ request; this effectively ignores the authentication
601
+ in the spec for a single request.
602
+ :type _request_auth: dict, optional
603
+ :type _content_type: string, optional: force content-type for the request
604
+ :return: Returns the result object.
605
+ If the method is called asynchronously,
606
+ returns the request thread.
607
+ :rtype: tuple(UpdateWalletSet200Response, status_code(int), headers(HTTPHeaderDict))
608
+ """
609
+
610
+ _params = locals()
611
+
612
+ _all_params = [
613
+ 'id',
614
+ 'update_wallet_set_metadata_request'
615
+ ]
616
+ _all_params.extend(
617
+ [
618
+ 'async_req',
619
+ '_return_http_data_only',
620
+ '_preload_content',
621
+ '_request_timeout',
622
+ '_request_auth',
623
+ '_content_type',
624
+ '_headers'
625
+ ]
626
+ )
627
+
628
+ # validate the arguments
629
+ for _key, _val in _params['kwargs'].items():
630
+ if _key not in _all_params:
631
+ raise ApiTypeError(
632
+ "Got an unexpected keyword argument '%s'"
633
+ " to method update_wallet_set" % _key
634
+ )
635
+ _params[_key] = _val
636
+ del _params['kwargs']
637
+
638
+ _collection_formats = {}
639
+
640
+ # process the path parameters
641
+ _path_params = {}
642
+ if _params['id']:
643
+ _path_params['id'] = _params['id']
644
+
645
+
646
+ # process the query parameters
647
+ _query_params = []
648
+ # process the header parameters
649
+ _header_params = dict(_params.get('_headers', {}))
650
+ # process the form parameters
651
+ _form_params = []
652
+ _files = {}
653
+ # process the body parameter
654
+ _body_params = None
655
+ if _params['update_wallet_set_metadata_request'] is not None:
656
+ _body_params = _params['update_wallet_set_metadata_request']
657
+
658
+ # set the HTTP header `Accept`
659
+ _header_params['Accept'] = self.api_client.select_header_accept(
660
+ ['application/json']) # noqa: E501
661
+
662
+ # set the HTTP header `Content-Type`
663
+ _content_types_list = _params.get('_content_type',
664
+ self.api_client.select_header_content_type(
665
+ ['application/json']))
666
+ if _content_types_list:
667
+ _header_params['Content-Type'] = _content_types_list
668
+
669
+ # authentication setting
670
+ _auth_settings = ['BearerAuth'] # noqa: E501
671
+
672
+ _response_types_map = {
673
+ '200': "UpdateWalletSet200Response",
674
+ }
675
+
676
+ return self.api_client.call_api(
677
+ '/developer/walletSets/{id}', 'PUT',
678
+ _path_params,
679
+ _query_params,
680
+ _header_params,
681
+ body=_body_params,
682
+ post_params=_form_params,
683
+ files=_files,
684
+ response_types_map=_response_types_map,
685
+ auth_settings=_auth_settings,
686
+ async_req=_params.get('async_req'),
687
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
688
+ _preload_content=_params.get('_preload_content', True),
689
+ _request_timeout=_params.get('_request_timeout'),
690
+ collection_formats=_collection_formats,
691
+ _request_auth=_params.get('_request_auth'))