lusid-sdk 2.1.110__py3-none-any.whl → 2.1.131__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 lusid-sdk might be problematic. Click here for more details.

Files changed (47) hide show
  1. lusid/__init__.py +40 -0
  2. lusid/api/__init__.py +2 -0
  3. lusid/api/amortisation_rule_sets_api.py +175 -0
  4. lusid/api/compliance_api.py +502 -0
  5. lusid/api/fee_types_api.py +909 -0
  6. lusid/api/instrument_events_api.py +189 -0
  7. lusid/api/portfolio_groups_api.py +16 -8
  8. lusid/api/portfolios_api.py +212 -0
  9. lusid/api/transaction_portfolios_api.py +32 -16
  10. lusid/configuration.py +1 -1
  11. lusid/models/__init__.py +38 -0
  12. lusid/models/amortisation_rule_set.py +7 -11
  13. lusid/models/applicable_instrument_event.py +106 -0
  14. lusid/models/compliance_rule_template.py +153 -0
  15. lusid/models/compliance_step_request.py +76 -0
  16. lusid/models/compliance_step_type_request.py +42 -0
  17. lusid/models/compliance_template_variation_dto.py +112 -0
  18. lusid/models/compliance_template_variation_request.py +112 -0
  19. lusid/models/create_compliance_template_request.py +95 -0
  20. lusid/models/create_derived_property_definition_request.py +3 -3
  21. lusid/models/create_property_definition_request.py +3 -3
  22. lusid/models/diary_entry_request.py +1 -1
  23. lusid/models/fee_accrual.py +83 -0
  24. lusid/models/fee_type.py +115 -0
  25. lusid/models/fee_type_request.py +105 -0
  26. lusid/models/flow_conventions.py +1 -1
  27. lusid/models/operation.py +2 -2
  28. lusid/models/paged_resource_list_of_fee_type.py +113 -0
  29. lusid/models/paged_resource_list_of_instrument_event_instruction.py +113 -0
  30. lusid/models/portfolio_entity_id.py +2 -18
  31. lusid/models/portfolio_holding.py +19 -4
  32. lusid/models/property_definition.py +3 -3
  33. lusid/models/property_definition_search_result.py +3 -3
  34. lusid/models/property_domain.py +1 -0
  35. lusid/models/query_applicable_instrument_events_request.py +89 -0
  36. lusid/models/quote_access_metadata_rule_id.py +1 -1
  37. lusid/models/quote_series_id.py +1 -1
  38. lusid/models/resource_list_of_applicable_instrument_event.py +113 -0
  39. lusid/models/rules_interval.py +83 -0
  40. lusid/models/set_amortisation_rules_request.py +73 -0
  41. lusid/models/settlement_schedule.py +78 -0
  42. lusid/models/update_compliance_template_request.py +95 -0
  43. lusid/models/update_fee_type_request.py +96 -0
  44. lusid/models/valuation_point_data_response.py +15 -2
  45. {lusid_sdk-2.1.110.dist-info → lusid_sdk-2.1.131.dist-info}/METADATA +34 -4
  46. {lusid_sdk-2.1.110.dist-info → lusid_sdk-2.1.131.dist-info}/RECORD +47 -27
  47. {lusid_sdk-2.1.110.dist-info → lusid_sdk-2.1.131.dist-info}/WHEEL +0 -0
@@ -0,0 +1,909 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ LUSID API
5
+
6
+ FINBOURNE Technology # noqa: E501
7
+
8
+ Contact: info@finbourne.com
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """
13
+
14
+
15
+ import re # noqa: F401
16
+ import io
17
+ import warnings
18
+
19
+ from pydantic.v1 import validate_arguments, ValidationError
20
+ from typing import overload, Optional, Union, Awaitable
21
+
22
+ from typing_extensions import Annotated
23
+ from datetime import datetime
24
+
25
+ from pydantic.v1 import Field, StrictStr, conint, conlist, constr, validator
26
+
27
+ from typing import Optional
28
+
29
+ from lusid.models.deleted_entity_response import DeletedEntityResponse
30
+ from lusid.models.fee_type import FeeType
31
+ from lusid.models.fee_type_request import FeeTypeRequest
32
+ from lusid.models.paged_resource_list_of_fee_type import PagedResourceListOfFeeType
33
+ from lusid.models.update_fee_type_request import UpdateFeeTypeRequest
34
+
35
+ from lusid.api_client import ApiClient
36
+ from lusid.api_response import ApiResponse
37
+ from lusid.exceptions import ( # noqa: F401
38
+ ApiTypeError,
39
+ ApiValueError
40
+ )
41
+
42
+
43
+ class FeeTypesApi:
44
+ """NOTE: This class is auto generated by OpenAPI Generator
45
+ Ref: https://openapi-generator.tech
46
+
47
+ Do not edit the class manually.
48
+ """
49
+
50
+ def __init__(self, api_client=None) -> None:
51
+ if api_client is None:
52
+ api_client = ApiClient.get_default()
53
+ self.api_client = api_client
54
+
55
+ @overload
56
+ async def create_fee_type(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the FeeType.")], fee_type_request : Annotated[FeeTypeRequest, Field(..., description="The contents of the FeeType.")], **kwargs) -> FeeType: # noqa: E501
57
+ ...
58
+
59
+ @overload
60
+ def create_fee_type(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the FeeType.")], fee_type_request : Annotated[FeeTypeRequest, Field(..., description="The contents of the FeeType.")], async_req: Optional[bool]=True, **kwargs) -> FeeType: # noqa: E501
61
+ ...
62
+
63
+ @validate_arguments
64
+ def create_fee_type(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the FeeType.")], fee_type_request : Annotated[FeeTypeRequest, Field(..., description="The contents of the FeeType.")], async_req: Optional[bool]=None, **kwargs) -> Union[FeeType, Awaitable[FeeType]]: # noqa: E501
65
+ """[EXPERIMENTAL] CreateFeeType: Create a FeeType. # noqa: E501
66
+
67
+ Create a FeeType that contains templates used to create fee transactions. # noqa: E501
68
+ This method makes a synchronous HTTP request by default. To make an
69
+ asynchronous HTTP request, please pass async_req=True
70
+
71
+ >>> thread = api.create_fee_type(scope, fee_type_request, async_req=True)
72
+ >>> result = thread.get()
73
+
74
+ :param scope: The scope of the FeeType. (required)
75
+ :type scope: str
76
+ :param fee_type_request: The contents of the FeeType. (required)
77
+ :type fee_type_request: FeeTypeRequest
78
+ :param async_req: Whether to execute the request asynchronously.
79
+ :type async_req: bool, optional
80
+ :param _request_timeout: timeout setting for this request.
81
+ If one number provided, it will be total request
82
+ timeout. It can also be a pair (tuple) of
83
+ (connection, read) timeouts.
84
+ :return: Returns the result object.
85
+ If the method is called asynchronously,
86
+ returns the request thread.
87
+ :rtype: FeeType
88
+ """
89
+ kwargs['_return_http_data_only'] = True
90
+ if '_preload_content' in kwargs:
91
+ message = "Error! Please call the create_fee_type_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
92
+ raise ValueError(message)
93
+ if async_req is not None:
94
+ kwargs['async_req'] = async_req
95
+ return self.create_fee_type_with_http_info(scope, fee_type_request, **kwargs) # noqa: E501
96
+
97
+ @validate_arguments
98
+ def create_fee_type_with_http_info(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the FeeType.")], fee_type_request : Annotated[FeeTypeRequest, Field(..., description="The contents of the FeeType.")], **kwargs) -> ApiResponse: # noqa: E501
99
+ """[EXPERIMENTAL] CreateFeeType: Create a FeeType. # noqa: E501
100
+
101
+ Create a FeeType that contains templates used to create fee transactions. # noqa: E501
102
+ This method makes a synchronous HTTP request by default. To make an
103
+ asynchronous HTTP request, please pass async_req=True
104
+
105
+ >>> thread = api.create_fee_type_with_http_info(scope, fee_type_request, async_req=True)
106
+ >>> result = thread.get()
107
+
108
+ :param scope: The scope of the FeeType. (required)
109
+ :type scope: str
110
+ :param fee_type_request: The contents of the FeeType. (required)
111
+ :type fee_type_request: FeeTypeRequest
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(FeeType, status_code(int), headers(HTTPHeaderDict))
135
+ """
136
+
137
+ _params = locals()
138
+
139
+ _all_params = [
140
+ 'scope',
141
+ 'fee_type_request'
142
+ ]
143
+ _all_params.extend(
144
+ [
145
+ 'async_req',
146
+ '_return_http_data_only',
147
+ '_preload_content',
148
+ '_request_timeout',
149
+ '_request_auth',
150
+ '_content_type',
151
+ '_headers'
152
+ ]
153
+ )
154
+
155
+ # validate the arguments
156
+ for _key, _val in _params['kwargs'].items():
157
+ if _key not in _all_params:
158
+ raise ApiTypeError(
159
+ "Got an unexpected keyword argument '%s'"
160
+ " to method create_fee_type" % _key
161
+ )
162
+ _params[_key] = _val
163
+ del _params['kwargs']
164
+
165
+ _collection_formats = {}
166
+
167
+ # process the path parameters
168
+ _path_params = {}
169
+ if _params['scope']:
170
+ _path_params['scope'] = _params['scope']
171
+
172
+
173
+ # process the query parameters
174
+ _query_params = []
175
+ # process the header parameters
176
+ _header_params = dict(_params.get('_headers', {}))
177
+ # process the form parameters
178
+ _form_params = []
179
+ _files = {}
180
+ # process the body parameter
181
+ _body_params = None
182
+ if _params['fee_type_request'] is not None:
183
+ _body_params = _params['fee_type_request']
184
+
185
+ # set the HTTP header `Accept`
186
+ _header_params['Accept'] = self.api_client.select_header_accept(
187
+ ['text/plain', 'application/json', 'text/json']) # noqa: E501
188
+
189
+ # set the HTTP header `Content-Type`
190
+ _content_types_list = _params.get('_content_type',
191
+ self.api_client.select_header_content_type(
192
+ ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']))
193
+ if _content_types_list:
194
+ _header_params['Content-Type'] = _content_types_list
195
+
196
+ # authentication setting
197
+ _auth_settings = ['oauth2'] # noqa: E501
198
+
199
+ _response_types_map = {
200
+ '200': "FeeType",
201
+ '400': "LusidValidationProblemDetails",
202
+ }
203
+
204
+ return self.api_client.call_api(
205
+ '/api/feetypes/{scope}', 'POST',
206
+ _path_params,
207
+ _query_params,
208
+ _header_params,
209
+ body=_body_params,
210
+ post_params=_form_params,
211
+ files=_files,
212
+ response_types_map=_response_types_map,
213
+ auth_settings=_auth_settings,
214
+ async_req=_params.get('async_req'),
215
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
216
+ _preload_content=_params.get('_preload_content', True),
217
+ _request_timeout=_params.get('_request_timeout'),
218
+ collection_formats=_collection_formats,
219
+ _request_auth=_params.get('_request_auth'))
220
+
221
+ @overload
222
+ async def delete_fee_type(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the FeeType.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the fee type")], **kwargs) -> DeletedEntityResponse: # noqa: E501
223
+ ...
224
+
225
+ @overload
226
+ def delete_fee_type(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the FeeType.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the fee type")], async_req: Optional[bool]=True, **kwargs) -> DeletedEntityResponse: # noqa: E501
227
+ ...
228
+
229
+ @validate_arguments
230
+ def delete_fee_type(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the FeeType.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the fee type")], async_req: Optional[bool]=None, **kwargs) -> Union[DeletedEntityResponse, Awaitable[DeletedEntityResponse]]: # noqa: E501
231
+ """[EXPERIMENTAL] DeleteFeeType: Delete a FeeType. # noqa: E501
232
+
233
+ Delete a FeeType that contains templates used to create fee transactions. # noqa: E501
234
+ This method makes a synchronous HTTP request by default. To make an
235
+ asynchronous HTTP request, please pass async_req=True
236
+
237
+ >>> thread = api.delete_fee_type(scope, code, async_req=True)
238
+ >>> result = thread.get()
239
+
240
+ :param scope: The scope of the FeeType. (required)
241
+ :type scope: str
242
+ :param code: The code of the fee type (required)
243
+ :type code: str
244
+ :param async_req: Whether to execute the request asynchronously.
245
+ :type async_req: bool, optional
246
+ :param _request_timeout: timeout setting for this request.
247
+ If one number provided, it will be total request
248
+ timeout. It can also be a pair (tuple) of
249
+ (connection, read) timeouts.
250
+ :return: Returns the result object.
251
+ If the method is called asynchronously,
252
+ returns the request thread.
253
+ :rtype: DeletedEntityResponse
254
+ """
255
+ kwargs['_return_http_data_only'] = True
256
+ if '_preload_content' in kwargs:
257
+ message = "Error! Please call the delete_fee_type_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
258
+ raise ValueError(message)
259
+ if async_req is not None:
260
+ kwargs['async_req'] = async_req
261
+ return self.delete_fee_type_with_http_info(scope, code, **kwargs) # noqa: E501
262
+
263
+ @validate_arguments
264
+ def delete_fee_type_with_http_info(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the FeeType.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the fee type")], **kwargs) -> ApiResponse: # noqa: E501
265
+ """[EXPERIMENTAL] DeleteFeeType: Delete a FeeType. # noqa: E501
266
+
267
+ Delete a FeeType that contains templates used to create fee transactions. # noqa: E501
268
+ This method makes a synchronous HTTP request by default. To make an
269
+ asynchronous HTTP request, please pass async_req=True
270
+
271
+ >>> thread = api.delete_fee_type_with_http_info(scope, code, async_req=True)
272
+ >>> result = thread.get()
273
+
274
+ :param scope: The scope of the FeeType. (required)
275
+ :type scope: str
276
+ :param code: The code of the fee type (required)
277
+ :type code: str
278
+ :param async_req: Whether to execute the request asynchronously.
279
+ :type async_req: bool, optional
280
+ :param _preload_content: if False, the ApiResponse.data will
281
+ be set to none and raw_data will store the
282
+ HTTP response body without reading/decoding.
283
+ Default is True.
284
+ :type _preload_content: bool, optional
285
+ :param _return_http_data_only: response data instead of ApiResponse
286
+ object with status code, headers, etc
287
+ :type _return_http_data_only: bool, optional
288
+ :param _request_timeout: timeout setting for this request. If one
289
+ number provided, it will be total request
290
+ timeout. It can also be a pair (tuple) of
291
+ (connection, read) timeouts.
292
+ :param _request_auth: set to override the auth_settings for an a single
293
+ request; this effectively ignores the authentication
294
+ in the spec for a single request.
295
+ :type _request_auth: dict, optional
296
+ :type _content_type: string, optional: force content-type for the request
297
+ :return: Returns the result object.
298
+ If the method is called asynchronously,
299
+ returns the request thread.
300
+ :rtype: tuple(DeletedEntityResponse, status_code(int), headers(HTTPHeaderDict))
301
+ """
302
+
303
+ _params = locals()
304
+
305
+ _all_params = [
306
+ 'scope',
307
+ 'code'
308
+ ]
309
+ _all_params.extend(
310
+ [
311
+ 'async_req',
312
+ '_return_http_data_only',
313
+ '_preload_content',
314
+ '_request_timeout',
315
+ '_request_auth',
316
+ '_content_type',
317
+ '_headers'
318
+ ]
319
+ )
320
+
321
+ # validate the arguments
322
+ for _key, _val in _params['kwargs'].items():
323
+ if _key not in _all_params:
324
+ raise ApiTypeError(
325
+ "Got an unexpected keyword argument '%s'"
326
+ " to method delete_fee_type" % _key
327
+ )
328
+ _params[_key] = _val
329
+ del _params['kwargs']
330
+
331
+ _collection_formats = {}
332
+
333
+ # process the path parameters
334
+ _path_params = {}
335
+ if _params['scope']:
336
+ _path_params['scope'] = _params['scope']
337
+
338
+ if _params['code']:
339
+ _path_params['code'] = _params['code']
340
+
341
+
342
+ # process the query parameters
343
+ _query_params = []
344
+ # process the header parameters
345
+ _header_params = dict(_params.get('_headers', {}))
346
+ # process the form parameters
347
+ _form_params = []
348
+ _files = {}
349
+ # process the body parameter
350
+ _body_params = None
351
+ # set the HTTP header `Accept`
352
+ _header_params['Accept'] = self.api_client.select_header_accept(
353
+ ['text/plain', 'application/json', 'text/json']) # noqa: E501
354
+
355
+ # authentication setting
356
+ _auth_settings = ['oauth2'] # noqa: E501
357
+
358
+ _response_types_map = {
359
+ '200': "DeletedEntityResponse",
360
+ '400': "LusidValidationProblemDetails",
361
+ }
362
+
363
+ return self.api_client.call_api(
364
+ '/api/feetypes/{scope}/{code}', 'DELETE',
365
+ _path_params,
366
+ _query_params,
367
+ _header_params,
368
+ body=_body_params,
369
+ post_params=_form_params,
370
+ files=_files,
371
+ response_types_map=_response_types_map,
372
+ auth_settings=_auth_settings,
373
+ async_req=_params.get('async_req'),
374
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
375
+ _preload_content=_params.get('_preload_content', True),
376
+ _request_timeout=_params.get('_request_timeout'),
377
+ collection_formats=_collection_formats,
378
+ _request_auth=_params.get('_request_auth'))
379
+
380
+ @overload
381
+ async def get_fee_type(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the FeeType")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the FeeType")], as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve the FeeType. Defaults to returning the latest version of the FeeType, if not specified.")] = None, **kwargs) -> FeeType: # noqa: E501
382
+ ...
383
+
384
+ @overload
385
+ def get_fee_type(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the FeeType")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the FeeType")], as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve the FeeType. Defaults to returning the latest version of the FeeType, if not specified.")] = None, async_req: Optional[bool]=True, **kwargs) -> FeeType: # noqa: E501
386
+ ...
387
+
388
+ @validate_arguments
389
+ def get_fee_type(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the FeeType")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the FeeType")], as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve the FeeType. Defaults to returning the latest version of the FeeType, if not specified.")] = None, async_req: Optional[bool]=None, **kwargs) -> Union[FeeType, Awaitable[FeeType]]: # noqa: E501
390
+ """[EXPERIMENTAL] GetFeeType: Get a FeeType # noqa: E501
391
+
392
+ Get a FeeType that contains templates used to create fee transactions. # noqa: E501
393
+ This method makes a synchronous HTTP request by default. To make an
394
+ asynchronous HTTP request, please pass async_req=True
395
+
396
+ >>> thread = api.get_fee_type(scope, code, as_at, async_req=True)
397
+ >>> result = thread.get()
398
+
399
+ :param scope: The scope of the FeeType (required)
400
+ :type scope: str
401
+ :param code: The code of the FeeType (required)
402
+ :type code: str
403
+ :param as_at: The asAt datetime at which to retrieve the FeeType. Defaults to returning the latest version of the FeeType, if not specified.
404
+ :type as_at: datetime
405
+ :param async_req: Whether to execute the request asynchronously.
406
+ :type async_req: bool, optional
407
+ :param _request_timeout: timeout setting for this request.
408
+ If one number provided, it will be total request
409
+ timeout. It can also be a pair (tuple) of
410
+ (connection, read) timeouts.
411
+ :return: Returns the result object.
412
+ If the method is called asynchronously,
413
+ returns the request thread.
414
+ :rtype: FeeType
415
+ """
416
+ kwargs['_return_http_data_only'] = True
417
+ if '_preload_content' in kwargs:
418
+ message = "Error! Please call the get_fee_type_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
419
+ raise ValueError(message)
420
+ if async_req is not None:
421
+ kwargs['async_req'] = async_req
422
+ return self.get_fee_type_with_http_info(scope, code, as_at, **kwargs) # noqa: E501
423
+
424
+ @validate_arguments
425
+ def get_fee_type_with_http_info(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the FeeType")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the FeeType")], as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve the FeeType. Defaults to returning the latest version of the FeeType, if not specified.")] = None, **kwargs) -> ApiResponse: # noqa: E501
426
+ """[EXPERIMENTAL] GetFeeType: Get a FeeType # noqa: E501
427
+
428
+ Get a FeeType that contains templates used to create fee transactions. # noqa: E501
429
+ This method makes a synchronous HTTP request by default. To make an
430
+ asynchronous HTTP request, please pass async_req=True
431
+
432
+ >>> thread = api.get_fee_type_with_http_info(scope, code, as_at, async_req=True)
433
+ >>> result = thread.get()
434
+
435
+ :param scope: The scope of the FeeType (required)
436
+ :type scope: str
437
+ :param code: The code of the FeeType (required)
438
+ :type code: str
439
+ :param as_at: The asAt datetime at which to retrieve the FeeType. Defaults to returning the latest version of the FeeType, if not specified.
440
+ :type as_at: datetime
441
+ :param async_req: Whether to execute the request asynchronously.
442
+ :type async_req: bool, optional
443
+ :param _preload_content: if False, the ApiResponse.data will
444
+ be set to none and raw_data will store the
445
+ HTTP response body without reading/decoding.
446
+ Default is True.
447
+ :type _preload_content: bool, optional
448
+ :param _return_http_data_only: response data instead of ApiResponse
449
+ object with status code, headers, etc
450
+ :type _return_http_data_only: bool, optional
451
+ :param _request_timeout: timeout setting for this request. If one
452
+ number provided, it will be total request
453
+ timeout. It can also be a pair (tuple) of
454
+ (connection, read) timeouts.
455
+ :param _request_auth: set to override the auth_settings for an a single
456
+ request; this effectively ignores the authentication
457
+ in the spec for a single request.
458
+ :type _request_auth: dict, optional
459
+ :type _content_type: string, optional: force content-type for the request
460
+ :return: Returns the result object.
461
+ If the method is called asynchronously,
462
+ returns the request thread.
463
+ :rtype: tuple(FeeType, status_code(int), headers(HTTPHeaderDict))
464
+ """
465
+
466
+ _params = locals()
467
+
468
+ _all_params = [
469
+ 'scope',
470
+ 'code',
471
+ 'as_at'
472
+ ]
473
+ _all_params.extend(
474
+ [
475
+ 'async_req',
476
+ '_return_http_data_only',
477
+ '_preload_content',
478
+ '_request_timeout',
479
+ '_request_auth',
480
+ '_content_type',
481
+ '_headers'
482
+ ]
483
+ )
484
+
485
+ # validate the arguments
486
+ for _key, _val in _params['kwargs'].items():
487
+ if _key not in _all_params:
488
+ raise ApiTypeError(
489
+ "Got an unexpected keyword argument '%s'"
490
+ " to method get_fee_type" % _key
491
+ )
492
+ _params[_key] = _val
493
+ del _params['kwargs']
494
+
495
+ _collection_formats = {}
496
+
497
+ # process the path parameters
498
+ _path_params = {}
499
+ if _params['scope']:
500
+ _path_params['scope'] = _params['scope']
501
+
502
+ if _params['code']:
503
+ _path_params['code'] = _params['code']
504
+
505
+
506
+ # process the query parameters
507
+ _query_params = []
508
+ if _params.get('as_at') is not None: # noqa: E501
509
+ if isinstance(_params['as_at'], datetime):
510
+ _query_params.append(('asAt', _params['as_at'].strftime(self.api_client.configuration.datetime_format)))
511
+ else:
512
+ _query_params.append(('asAt', _params['as_at']))
513
+
514
+ # process the header parameters
515
+ _header_params = dict(_params.get('_headers', {}))
516
+ # process the form parameters
517
+ _form_params = []
518
+ _files = {}
519
+ # process the body parameter
520
+ _body_params = None
521
+ # set the HTTP header `Accept`
522
+ _header_params['Accept'] = self.api_client.select_header_accept(
523
+ ['text/plain', 'application/json', 'text/json']) # noqa: E501
524
+
525
+ # authentication setting
526
+ _auth_settings = ['oauth2'] # noqa: E501
527
+
528
+ _response_types_map = {
529
+ '200': "FeeType",
530
+ '400': "LusidValidationProblemDetails",
531
+ }
532
+
533
+ return self.api_client.call_api(
534
+ '/api/feetypes/{scope}/{code}', 'GET',
535
+ _path_params,
536
+ _query_params,
537
+ _header_params,
538
+ body=_body_params,
539
+ post_params=_form_params,
540
+ files=_files,
541
+ response_types_map=_response_types_map,
542
+ auth_settings=_auth_settings,
543
+ async_req=_params.get('async_req'),
544
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
545
+ _preload_content=_params.get('_preload_content', True),
546
+ _request_timeout=_params.get('_request_timeout'),
547
+ collection_formats=_collection_formats,
548
+ _request_auth=_params.get('_request_auth'))
549
+
550
+ @overload
551
+ async def list_fee_types(self, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to list the FeeTypes. Defaults to returning the latest version of each FeeType if not specified.")] = None, page : Annotated[Optional[constr(strict=True, max_length=500, min_length=1)], Field(description="The pagination token to use to continue listing FeeTypes; this value is returned from the previous call. If a pagination token is provided, the filter, effectiveAt and asAt fields must not have changed since the original request.")] = None, limit : Annotated[Optional[conint(strict=True, le=5000, ge=1)], Field(description="When paginating, limit the results to this number. Defaults to 100 if not specified.")] = None, filter : Annotated[Optional[constr(strict=True, max_length=16384, min_length=0)], Field(description="Expression to filter the results. For example, to filter on the Code of the FeeType type, specify \"id.Code eq 'FeeType1'\". For more information about filtering results, see https://support.lusid.com/knowledgebase/article/KA-01914.")] = None, sort_by : Annotated[Optional[conlist(StrictStr)], Field(description="A list of field names or properties to sort by, each suffixed by \" ASC\" or \" DESC\"")] = None, **kwargs) -> PagedResourceListOfFeeType: # noqa: E501
552
+ ...
553
+
554
+ @overload
555
+ def list_fee_types(self, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to list the FeeTypes. Defaults to returning the latest version of each FeeType if not specified.")] = None, page : Annotated[Optional[constr(strict=True, max_length=500, min_length=1)], Field(description="The pagination token to use to continue listing FeeTypes; this value is returned from the previous call. If a pagination token is provided, the filter, effectiveAt and asAt fields must not have changed since the original request.")] = None, limit : Annotated[Optional[conint(strict=True, le=5000, ge=1)], Field(description="When paginating, limit the results to this number. Defaults to 100 if not specified.")] = None, filter : Annotated[Optional[constr(strict=True, max_length=16384, min_length=0)], Field(description="Expression to filter the results. For example, to filter on the Code of the FeeType type, specify \"id.Code eq 'FeeType1'\". For more information about filtering results, see https://support.lusid.com/knowledgebase/article/KA-01914.")] = None, sort_by : Annotated[Optional[conlist(StrictStr)], Field(description="A list of field names or properties to sort by, each suffixed by \" ASC\" or \" DESC\"")] = None, async_req: Optional[bool]=True, **kwargs) -> PagedResourceListOfFeeType: # noqa: E501
556
+ ...
557
+
558
+ @validate_arguments
559
+ def list_fee_types(self, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to list the FeeTypes. Defaults to returning the latest version of each FeeType if not specified.")] = None, page : Annotated[Optional[constr(strict=True, max_length=500, min_length=1)], Field(description="The pagination token to use to continue listing FeeTypes; this value is returned from the previous call. If a pagination token is provided, the filter, effectiveAt and asAt fields must not have changed since the original request.")] = None, limit : Annotated[Optional[conint(strict=True, le=5000, ge=1)], Field(description="When paginating, limit the results to this number. Defaults to 100 if not specified.")] = None, filter : Annotated[Optional[constr(strict=True, max_length=16384, min_length=0)], Field(description="Expression to filter the results. For example, to filter on the Code of the FeeType type, specify \"id.Code eq 'FeeType1'\". For more information about filtering results, see https://support.lusid.com/knowledgebase/article/KA-01914.")] = None, sort_by : Annotated[Optional[conlist(StrictStr)], Field(description="A list of field names or properties to sort by, each suffixed by \" ASC\" or \" DESC\"")] = None, async_req: Optional[bool]=None, **kwargs) -> Union[PagedResourceListOfFeeType, Awaitable[PagedResourceListOfFeeType]]: # noqa: E501
560
+ """[EXPERIMENTAL] ListFeeTypes: List FeeTypes # noqa: E501
561
+
562
+ List FeeTypes that contain templates used to create fee transactions. # noqa: E501
563
+ This method makes a synchronous HTTP request by default. To make an
564
+ asynchronous HTTP request, please pass async_req=True
565
+
566
+ >>> thread = api.list_fee_types(as_at, page, limit, filter, sort_by, async_req=True)
567
+ >>> result = thread.get()
568
+
569
+ :param as_at: The asAt datetime at which to list the FeeTypes. Defaults to returning the latest version of each FeeType if not specified.
570
+ :type as_at: datetime
571
+ :param page: The pagination token to use to continue listing FeeTypes; this value is returned from the previous call. If a pagination token is provided, the filter, effectiveAt and asAt fields must not have changed since the original request.
572
+ :type page: str
573
+ :param limit: When paginating, limit the results to this number. Defaults to 100 if not specified.
574
+ :type limit: int
575
+ :param filter: Expression to filter the results. For example, to filter on the Code of the FeeType type, specify \"id.Code eq 'FeeType1'\". For more information about filtering results, see https://support.lusid.com/knowledgebase/article/KA-01914.
576
+ :type filter: str
577
+ :param sort_by: A list of field names or properties to sort by, each suffixed by \" ASC\" or \" DESC\"
578
+ :type sort_by: List[str]
579
+ :param async_req: Whether to execute the request asynchronously.
580
+ :type async_req: bool, optional
581
+ :param _request_timeout: timeout setting for this request.
582
+ If one number provided, it will be total request
583
+ timeout. It can also be a pair (tuple) of
584
+ (connection, read) timeouts.
585
+ :return: Returns the result object.
586
+ If the method is called asynchronously,
587
+ returns the request thread.
588
+ :rtype: PagedResourceListOfFeeType
589
+ """
590
+ kwargs['_return_http_data_only'] = True
591
+ if '_preload_content' in kwargs:
592
+ message = "Error! Please call the list_fee_types_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
593
+ raise ValueError(message)
594
+ if async_req is not None:
595
+ kwargs['async_req'] = async_req
596
+ return self.list_fee_types_with_http_info(as_at, page, limit, filter, sort_by, **kwargs) # noqa: E501
597
+
598
+ @validate_arguments
599
+ def list_fee_types_with_http_info(self, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to list the FeeTypes. Defaults to returning the latest version of each FeeType if not specified.")] = None, page : Annotated[Optional[constr(strict=True, max_length=500, min_length=1)], Field(description="The pagination token to use to continue listing FeeTypes; this value is returned from the previous call. If a pagination token is provided, the filter, effectiveAt and asAt fields must not have changed since the original request.")] = None, limit : Annotated[Optional[conint(strict=True, le=5000, ge=1)], Field(description="When paginating, limit the results to this number. Defaults to 100 if not specified.")] = None, filter : Annotated[Optional[constr(strict=True, max_length=16384, min_length=0)], Field(description="Expression to filter the results. For example, to filter on the Code of the FeeType type, specify \"id.Code eq 'FeeType1'\". For more information about filtering results, see https://support.lusid.com/knowledgebase/article/KA-01914.")] = None, sort_by : Annotated[Optional[conlist(StrictStr)], Field(description="A list of field names or properties to sort by, each suffixed by \" ASC\" or \" DESC\"")] = None, **kwargs) -> ApiResponse: # noqa: E501
600
+ """[EXPERIMENTAL] ListFeeTypes: List FeeTypes # noqa: E501
601
+
602
+ List FeeTypes that contain templates used to create fee transactions. # noqa: E501
603
+ This method makes a synchronous HTTP request by default. To make an
604
+ asynchronous HTTP request, please pass async_req=True
605
+
606
+ >>> thread = api.list_fee_types_with_http_info(as_at, page, limit, filter, sort_by, async_req=True)
607
+ >>> result = thread.get()
608
+
609
+ :param as_at: The asAt datetime at which to list the FeeTypes. Defaults to returning the latest version of each FeeType if not specified.
610
+ :type as_at: datetime
611
+ :param page: The pagination token to use to continue listing FeeTypes; this value is returned from the previous call. If a pagination token is provided, the filter, effectiveAt and asAt fields must not have changed since the original request.
612
+ :type page: str
613
+ :param limit: When paginating, limit the results to this number. Defaults to 100 if not specified.
614
+ :type limit: int
615
+ :param filter: Expression to filter the results. For example, to filter on the Code of the FeeType type, specify \"id.Code eq 'FeeType1'\". For more information about filtering results, see https://support.lusid.com/knowledgebase/article/KA-01914.
616
+ :type filter: str
617
+ :param sort_by: A list of field names or properties to sort by, each suffixed by \" ASC\" or \" DESC\"
618
+ :type sort_by: List[str]
619
+ :param async_req: Whether to execute the request asynchronously.
620
+ :type async_req: bool, optional
621
+ :param _preload_content: if False, the ApiResponse.data will
622
+ be set to none and raw_data will store the
623
+ HTTP response body without reading/decoding.
624
+ Default is True.
625
+ :type _preload_content: bool, optional
626
+ :param _return_http_data_only: response data instead of ApiResponse
627
+ object with status code, headers, etc
628
+ :type _return_http_data_only: bool, optional
629
+ :param _request_timeout: timeout setting for this request. If one
630
+ number provided, it will be total request
631
+ timeout. It can also be a pair (tuple) of
632
+ (connection, read) timeouts.
633
+ :param _request_auth: set to override the auth_settings for an a single
634
+ request; this effectively ignores the authentication
635
+ in the spec for a single request.
636
+ :type _request_auth: dict, optional
637
+ :type _content_type: string, optional: force content-type for the request
638
+ :return: Returns the result object.
639
+ If the method is called asynchronously,
640
+ returns the request thread.
641
+ :rtype: tuple(PagedResourceListOfFeeType, status_code(int), headers(HTTPHeaderDict))
642
+ """
643
+
644
+ _params = locals()
645
+
646
+ _all_params = [
647
+ 'as_at',
648
+ 'page',
649
+ 'limit',
650
+ 'filter',
651
+ 'sort_by'
652
+ ]
653
+ _all_params.extend(
654
+ [
655
+ 'async_req',
656
+ '_return_http_data_only',
657
+ '_preload_content',
658
+ '_request_timeout',
659
+ '_request_auth',
660
+ '_content_type',
661
+ '_headers'
662
+ ]
663
+ )
664
+
665
+ # validate the arguments
666
+ for _key, _val in _params['kwargs'].items():
667
+ if _key not in _all_params:
668
+ raise ApiTypeError(
669
+ "Got an unexpected keyword argument '%s'"
670
+ " to method list_fee_types" % _key
671
+ )
672
+ _params[_key] = _val
673
+ del _params['kwargs']
674
+
675
+ _collection_formats = {}
676
+
677
+ # process the path parameters
678
+ _path_params = {}
679
+
680
+ # process the query parameters
681
+ _query_params = []
682
+ if _params.get('as_at') is not None: # noqa: E501
683
+ if isinstance(_params['as_at'], datetime):
684
+ _query_params.append(('asAt', _params['as_at'].strftime(self.api_client.configuration.datetime_format)))
685
+ else:
686
+ _query_params.append(('asAt', _params['as_at']))
687
+
688
+ if _params.get('page') is not None: # noqa: E501
689
+ _query_params.append(('page', _params['page']))
690
+
691
+ if _params.get('limit') is not None: # noqa: E501
692
+ _query_params.append(('limit', _params['limit']))
693
+
694
+ if _params.get('filter') is not None: # noqa: E501
695
+ _query_params.append(('filter', _params['filter']))
696
+
697
+ if _params.get('sort_by') is not None: # noqa: E501
698
+ _query_params.append(('sortBy', _params['sort_by']))
699
+ _collection_formats['sortBy'] = 'multi'
700
+
701
+ # process the header parameters
702
+ _header_params = dict(_params.get('_headers', {}))
703
+ # process the form parameters
704
+ _form_params = []
705
+ _files = {}
706
+ # process the body parameter
707
+ _body_params = None
708
+ # set the HTTP header `Accept`
709
+ _header_params['Accept'] = self.api_client.select_header_accept(
710
+ ['text/plain', 'application/json', 'text/json']) # noqa: E501
711
+
712
+ # authentication setting
713
+ _auth_settings = ['oauth2'] # noqa: E501
714
+
715
+ _response_types_map = {
716
+ '200': "PagedResourceListOfFeeType",
717
+ '400': "LusidValidationProblemDetails",
718
+ }
719
+
720
+ return self.api_client.call_api(
721
+ '/api/feetypes', 'GET',
722
+ _path_params,
723
+ _query_params,
724
+ _header_params,
725
+ body=_body_params,
726
+ post_params=_form_params,
727
+ files=_files,
728
+ response_types_map=_response_types_map,
729
+ auth_settings=_auth_settings,
730
+ async_req=_params.get('async_req'),
731
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
732
+ _preload_content=_params.get('_preload_content', True),
733
+ _request_timeout=_params.get('_request_timeout'),
734
+ collection_formats=_collection_formats,
735
+ _request_auth=_params.get('_request_auth'))
736
+
737
+ @overload
738
+ async def update_fee_type(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the FeeType.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the fee type")], update_fee_type_request : Annotated[UpdateFeeTypeRequest, Field(..., description="The contents of the FeeType.")], **kwargs) -> FeeType: # noqa: E501
739
+ ...
740
+
741
+ @overload
742
+ def update_fee_type(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the FeeType.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the fee type")], update_fee_type_request : Annotated[UpdateFeeTypeRequest, Field(..., description="The contents of the FeeType.")], async_req: Optional[bool]=True, **kwargs) -> FeeType: # noqa: E501
743
+ ...
744
+
745
+ @validate_arguments
746
+ def update_fee_type(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the FeeType.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the fee type")], update_fee_type_request : Annotated[UpdateFeeTypeRequest, Field(..., description="The contents of the FeeType.")], async_req: Optional[bool]=None, **kwargs) -> Union[FeeType, Awaitable[FeeType]]: # noqa: E501
747
+ """[EXPERIMENTAL] UpdateFeeType: Update a FeeType. # noqa: E501
748
+
749
+ Update a FeeType that contains templates used to create fee transactions. # noqa: E501
750
+ This method makes a synchronous HTTP request by default. To make an
751
+ asynchronous HTTP request, please pass async_req=True
752
+
753
+ >>> thread = api.update_fee_type(scope, code, update_fee_type_request, async_req=True)
754
+ >>> result = thread.get()
755
+
756
+ :param scope: The scope of the FeeType. (required)
757
+ :type scope: str
758
+ :param code: The code of the fee type (required)
759
+ :type code: str
760
+ :param update_fee_type_request: The contents of the FeeType. (required)
761
+ :type update_fee_type_request: UpdateFeeTypeRequest
762
+ :param async_req: Whether to execute the request asynchronously.
763
+ :type async_req: bool, optional
764
+ :param _request_timeout: timeout setting for this request.
765
+ If one number provided, it will be total request
766
+ timeout. It can also be a pair (tuple) of
767
+ (connection, read) timeouts.
768
+ :return: Returns the result object.
769
+ If the method is called asynchronously,
770
+ returns the request thread.
771
+ :rtype: FeeType
772
+ """
773
+ kwargs['_return_http_data_only'] = True
774
+ if '_preload_content' in kwargs:
775
+ message = "Error! Please call the update_fee_type_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
776
+ raise ValueError(message)
777
+ if async_req is not None:
778
+ kwargs['async_req'] = async_req
779
+ return self.update_fee_type_with_http_info(scope, code, update_fee_type_request, **kwargs) # noqa: E501
780
+
781
+ @validate_arguments
782
+ def update_fee_type_with_http_info(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the FeeType.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the fee type")], update_fee_type_request : Annotated[UpdateFeeTypeRequest, Field(..., description="The contents of the FeeType.")], **kwargs) -> ApiResponse: # noqa: E501
783
+ """[EXPERIMENTAL] UpdateFeeType: Update a FeeType. # noqa: E501
784
+
785
+ Update a FeeType that contains templates used to create fee transactions. # noqa: E501
786
+ This method makes a synchronous HTTP request by default. To make an
787
+ asynchronous HTTP request, please pass async_req=True
788
+
789
+ >>> thread = api.update_fee_type_with_http_info(scope, code, update_fee_type_request, async_req=True)
790
+ >>> result = thread.get()
791
+
792
+ :param scope: The scope of the FeeType. (required)
793
+ :type scope: str
794
+ :param code: The code of the fee type (required)
795
+ :type code: str
796
+ :param update_fee_type_request: The contents of the FeeType. (required)
797
+ :type update_fee_type_request: UpdateFeeTypeRequest
798
+ :param async_req: Whether to execute the request asynchronously.
799
+ :type async_req: bool, optional
800
+ :param _preload_content: if False, the ApiResponse.data will
801
+ be set to none and raw_data will store the
802
+ HTTP response body without reading/decoding.
803
+ Default is True.
804
+ :type _preload_content: bool, optional
805
+ :param _return_http_data_only: response data instead of ApiResponse
806
+ object with status code, headers, etc
807
+ :type _return_http_data_only: bool, optional
808
+ :param _request_timeout: timeout setting for this request. If one
809
+ number provided, it will be total request
810
+ timeout. It can also be a pair (tuple) of
811
+ (connection, read) timeouts.
812
+ :param _request_auth: set to override the auth_settings for an a single
813
+ request; this effectively ignores the authentication
814
+ in the spec for a single request.
815
+ :type _request_auth: dict, optional
816
+ :type _content_type: string, optional: force content-type for the request
817
+ :return: Returns the result object.
818
+ If the method is called asynchronously,
819
+ returns the request thread.
820
+ :rtype: tuple(FeeType, status_code(int), headers(HTTPHeaderDict))
821
+ """
822
+
823
+ _params = locals()
824
+
825
+ _all_params = [
826
+ 'scope',
827
+ 'code',
828
+ 'update_fee_type_request'
829
+ ]
830
+ _all_params.extend(
831
+ [
832
+ 'async_req',
833
+ '_return_http_data_only',
834
+ '_preload_content',
835
+ '_request_timeout',
836
+ '_request_auth',
837
+ '_content_type',
838
+ '_headers'
839
+ ]
840
+ )
841
+
842
+ # validate the arguments
843
+ for _key, _val in _params['kwargs'].items():
844
+ if _key not in _all_params:
845
+ raise ApiTypeError(
846
+ "Got an unexpected keyword argument '%s'"
847
+ " to method update_fee_type" % _key
848
+ )
849
+ _params[_key] = _val
850
+ del _params['kwargs']
851
+
852
+ _collection_formats = {}
853
+
854
+ # process the path parameters
855
+ _path_params = {}
856
+ if _params['scope']:
857
+ _path_params['scope'] = _params['scope']
858
+
859
+ if _params['code']:
860
+ _path_params['code'] = _params['code']
861
+
862
+
863
+ # process the query parameters
864
+ _query_params = []
865
+ # process the header parameters
866
+ _header_params = dict(_params.get('_headers', {}))
867
+ # process the form parameters
868
+ _form_params = []
869
+ _files = {}
870
+ # process the body parameter
871
+ _body_params = None
872
+ if _params['update_fee_type_request'] is not None:
873
+ _body_params = _params['update_fee_type_request']
874
+
875
+ # set the HTTP header `Accept`
876
+ _header_params['Accept'] = self.api_client.select_header_accept(
877
+ ['text/plain', 'application/json', 'text/json']) # noqa: E501
878
+
879
+ # set the HTTP header `Content-Type`
880
+ _content_types_list = _params.get('_content_type',
881
+ self.api_client.select_header_content_type(
882
+ ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']))
883
+ if _content_types_list:
884
+ _header_params['Content-Type'] = _content_types_list
885
+
886
+ # authentication setting
887
+ _auth_settings = ['oauth2'] # noqa: E501
888
+
889
+ _response_types_map = {
890
+ '200': "FeeType",
891
+ '400': "LusidValidationProblemDetails",
892
+ }
893
+
894
+ return self.api_client.call_api(
895
+ '/api/feetypes/{scope}/{code}', 'PUT',
896
+ _path_params,
897
+ _query_params,
898
+ _header_params,
899
+ body=_body_params,
900
+ post_params=_form_params,
901
+ files=_files,
902
+ response_types_map=_response_types_map,
903
+ auth_settings=_auth_settings,
904
+ async_req=_params.get('async_req'),
905
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
906
+ _preload_content=_params.get('_preload_content', True),
907
+ _request_timeout=_params.get('_request_timeout'),
908
+ collection_formats=_collection_formats,
909
+ _request_auth=_params.get('_request_auth'))