lusid-sdk 2.1.689__py3-none-any.whl → 2.1.691__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.
- lusid/api/abor_api.py +178 -0
- lusid/api/abor_configuration_api.py +178 -0
- lusid/api/chart_of_accounts_api.py +364 -0
- lusid/api/funds_api.py +364 -0
- lusid/configuration.py +1 -1
- lusid/models/contract_for_difference.py +25 -5
- {lusid_sdk-2.1.689.dist-info → lusid_sdk-2.1.691.dist-info}/METADATA +7 -1
- {lusid_sdk-2.1.689.dist-info → lusid_sdk-2.1.691.dist-info}/RECORD +9 -9
- {lusid_sdk-2.1.689.dist-info → lusid_sdk-2.1.691.dist-info}/WHEEL +0 -0
@@ -1803,6 +1803,192 @@ class ChartOfAccountsApi:
|
|
1803
1803
|
collection_formats=_collection_formats,
|
1804
1804
|
_request_auth=_params.get('_request_auth'))
|
1805
1805
|
|
1806
|
+
@overload
|
1807
|
+
async def get_account_properties(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the Chart of Accounts to update or insert the properties onto.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the Chart of Accounts to update or insert the properties onto. Together with the scope this uniquely identifies the Chart of Accounts.")], account_code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The unique ID of the account to get properties for.")], effective_at : Annotated[Optional[constr(strict=True, max_length=256, min_length=0)], Field(description="The effective datetime or cut label at which to list the Account's properties. Defaults to the current LUSID system datetime if not specified.")] = None, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to list the Account's properties. Defaults to return the latest version of each property if not specified.")] = None, **kwargs) -> AccountProperties: # noqa: E501
|
1808
|
+
...
|
1809
|
+
|
1810
|
+
@overload
|
1811
|
+
def get_account_properties(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the Chart of Accounts to update or insert the properties onto.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the Chart of Accounts to update or insert the properties onto. Together with the scope this uniquely identifies the Chart of Accounts.")], account_code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The unique ID of the account to get properties for.")], effective_at : Annotated[Optional[constr(strict=True, max_length=256, min_length=0)], Field(description="The effective datetime or cut label at which to list the Account's properties. Defaults to the current LUSID system datetime if not specified.")] = None, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to list the Account's properties. Defaults to return the latest version of each property if not specified.")] = None, async_req: Optional[bool]=True, **kwargs) -> AccountProperties: # noqa: E501
|
1812
|
+
...
|
1813
|
+
|
1814
|
+
@validate_arguments
|
1815
|
+
def get_account_properties(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the Chart of Accounts to update or insert the properties onto.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the Chart of Accounts to update or insert the properties onto. Together with the scope this uniquely identifies the Chart of Accounts.")], account_code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The unique ID of the account to get properties for.")], effective_at : Annotated[Optional[constr(strict=True, max_length=256, min_length=0)], Field(description="The effective datetime or cut label at which to list the Account's properties. Defaults to the current LUSID system datetime if not specified.")] = None, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to list the Account's properties. Defaults to return the latest version of each property if not specified.")] = None, async_req: Optional[bool]=None, **kwargs) -> Union[AccountProperties, Awaitable[AccountProperties]]: # noqa: E501
|
1816
|
+
"""[EXPERIMENTAL] GetAccountProperties: Get Account properties # noqa: E501
|
1817
|
+
|
1818
|
+
Get all the properties of a single account. # noqa: E501
|
1819
|
+
This method makes a synchronous HTTP request by default. To make an
|
1820
|
+
asynchronous HTTP request, please pass async_req=True
|
1821
|
+
|
1822
|
+
>>> thread = api.get_account_properties(scope, code, account_code, effective_at, as_at, async_req=True)
|
1823
|
+
>>> result = thread.get()
|
1824
|
+
|
1825
|
+
:param scope: The scope of the Chart of Accounts to update or insert the properties onto. (required)
|
1826
|
+
:type scope: str
|
1827
|
+
:param code: The code of the Chart of Accounts to update or insert the properties onto. Together with the scope this uniquely identifies the Chart of Accounts. (required)
|
1828
|
+
:type code: str
|
1829
|
+
:param account_code: The unique ID of the account to get properties for. (required)
|
1830
|
+
:type account_code: str
|
1831
|
+
:param effective_at: The effective datetime or cut label at which to list the Account's properties. Defaults to the current LUSID system datetime if not specified.
|
1832
|
+
:type effective_at: str
|
1833
|
+
:param as_at: The asAt datetime at which to list the Account's properties. Defaults to return the latest version of each property if not specified.
|
1834
|
+
:type as_at: datetime
|
1835
|
+
:param async_req: Whether to execute the request asynchronously.
|
1836
|
+
:type async_req: bool, optional
|
1837
|
+
:param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
|
1838
|
+
:param opts: Configuration options for this request
|
1839
|
+
:type opts: ConfigurationOptions, optional
|
1840
|
+
:return: Returns the result object.
|
1841
|
+
If the method is called asynchronously,
|
1842
|
+
returns the request thread.
|
1843
|
+
:rtype: AccountProperties
|
1844
|
+
"""
|
1845
|
+
kwargs['_return_http_data_only'] = True
|
1846
|
+
if '_preload_content' in kwargs:
|
1847
|
+
message = "Error! Please call the get_account_properties_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
|
1848
|
+
raise ValueError(message)
|
1849
|
+
if async_req is not None:
|
1850
|
+
kwargs['async_req'] = async_req
|
1851
|
+
return self.get_account_properties_with_http_info(scope, code, account_code, effective_at, as_at, **kwargs) # noqa: E501
|
1852
|
+
|
1853
|
+
@validate_arguments
|
1854
|
+
def get_account_properties_with_http_info(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the Chart of Accounts to update or insert the properties onto.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the Chart of Accounts to update or insert the properties onto. Together with the scope this uniquely identifies the Chart of Accounts.")], account_code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The unique ID of the account to get properties for.")], effective_at : Annotated[Optional[constr(strict=True, max_length=256, min_length=0)], Field(description="The effective datetime or cut label at which to list the Account's properties. Defaults to the current LUSID system datetime if not specified.")] = None, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to list the Account's properties. Defaults to return the latest version of each property if not specified.")] = None, **kwargs) -> ApiResponse: # noqa: E501
|
1855
|
+
"""[EXPERIMENTAL] GetAccountProperties: Get Account properties # noqa: E501
|
1856
|
+
|
1857
|
+
Get all the properties of a single account. # noqa: E501
|
1858
|
+
This method makes a synchronous HTTP request by default. To make an
|
1859
|
+
asynchronous HTTP request, please pass async_req=True
|
1860
|
+
|
1861
|
+
>>> thread = api.get_account_properties_with_http_info(scope, code, account_code, effective_at, as_at, async_req=True)
|
1862
|
+
>>> result = thread.get()
|
1863
|
+
|
1864
|
+
:param scope: The scope of the Chart of Accounts to update or insert the properties onto. (required)
|
1865
|
+
:type scope: str
|
1866
|
+
:param code: The code of the Chart of Accounts to update or insert the properties onto. Together with the scope this uniquely identifies the Chart of Accounts. (required)
|
1867
|
+
:type code: str
|
1868
|
+
:param account_code: The unique ID of the account to get properties for. (required)
|
1869
|
+
:type account_code: str
|
1870
|
+
:param effective_at: The effective datetime or cut label at which to list the Account's properties. Defaults to the current LUSID system datetime if not specified.
|
1871
|
+
:type effective_at: str
|
1872
|
+
:param as_at: The asAt datetime at which to list the Account's properties. Defaults to return the latest version of each property if not specified.
|
1873
|
+
:type as_at: datetime
|
1874
|
+
:param async_req: Whether to execute the request asynchronously.
|
1875
|
+
:type async_req: bool, optional
|
1876
|
+
:param _preload_content: if False, the ApiResponse.data will
|
1877
|
+
be set to none and raw_data will store the
|
1878
|
+
HTTP response body without reading/decoding.
|
1879
|
+
Default is True.
|
1880
|
+
:type _preload_content: bool, optional
|
1881
|
+
:param _return_http_data_only: response data instead of ApiResponse
|
1882
|
+
object with status code, headers, etc
|
1883
|
+
:type _return_http_data_only: bool, optional
|
1884
|
+
:param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
|
1885
|
+
:param opts: Configuration options for this request
|
1886
|
+
:type opts: ConfigurationOptions, optional
|
1887
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1888
|
+
request; this effectively ignores the authentication
|
1889
|
+
in the spec for a single request.
|
1890
|
+
:type _request_auth: dict, optional
|
1891
|
+
:type _content_type: string, optional: force content-type for the request
|
1892
|
+
:return: Returns the result object.
|
1893
|
+
If the method is called asynchronously,
|
1894
|
+
returns the request thread.
|
1895
|
+
:rtype: tuple(AccountProperties, status_code(int), headers(HTTPHeaderDict))
|
1896
|
+
"""
|
1897
|
+
|
1898
|
+
_params = locals()
|
1899
|
+
|
1900
|
+
_all_params = [
|
1901
|
+
'scope',
|
1902
|
+
'code',
|
1903
|
+
'account_code',
|
1904
|
+
'effective_at',
|
1905
|
+
'as_at'
|
1906
|
+
]
|
1907
|
+
_all_params.extend(
|
1908
|
+
[
|
1909
|
+
'async_req',
|
1910
|
+
'_return_http_data_only',
|
1911
|
+
'_preload_content',
|
1912
|
+
'_request_timeout',
|
1913
|
+
'_request_auth',
|
1914
|
+
'_content_type',
|
1915
|
+
'_headers',
|
1916
|
+
'opts'
|
1917
|
+
]
|
1918
|
+
)
|
1919
|
+
|
1920
|
+
# validate the arguments
|
1921
|
+
for _key, _val in _params['kwargs'].items():
|
1922
|
+
if _key not in _all_params:
|
1923
|
+
raise ApiTypeError(
|
1924
|
+
"Got an unexpected keyword argument '%s'"
|
1925
|
+
" to method get_account_properties" % _key
|
1926
|
+
)
|
1927
|
+
_params[_key] = _val
|
1928
|
+
del _params['kwargs']
|
1929
|
+
|
1930
|
+
_collection_formats = {}
|
1931
|
+
|
1932
|
+
# process the path parameters
|
1933
|
+
_path_params = {}
|
1934
|
+
if _params['scope']:
|
1935
|
+
_path_params['scope'] = _params['scope']
|
1936
|
+
|
1937
|
+
if _params['code']:
|
1938
|
+
_path_params['code'] = _params['code']
|
1939
|
+
|
1940
|
+
if _params['account_code']:
|
1941
|
+
_path_params['accountCode'] = _params['account_code']
|
1942
|
+
|
1943
|
+
|
1944
|
+
# process the query parameters
|
1945
|
+
_query_params = []
|
1946
|
+
if _params.get('effective_at') is not None: # noqa: E501
|
1947
|
+
_query_params.append(('effectiveAt', _params['effective_at']))
|
1948
|
+
|
1949
|
+
if _params.get('as_at') is not None: # noqa: E501
|
1950
|
+
if isinstance(_params['as_at'], datetime):
|
1951
|
+
_query_params.append(('asAt', _params['as_at'].strftime(self.api_client.configuration.datetime_format)))
|
1952
|
+
else:
|
1953
|
+
_query_params.append(('asAt', _params['as_at']))
|
1954
|
+
|
1955
|
+
# process the header parameters
|
1956
|
+
_header_params = dict(_params.get('_headers', {}))
|
1957
|
+
# process the form parameters
|
1958
|
+
_form_params = []
|
1959
|
+
_files = {}
|
1960
|
+
# process the body parameter
|
1961
|
+
_body_params = None
|
1962
|
+
# set the HTTP header `Accept`
|
1963
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1964
|
+
['text/plain', 'application/json', 'text/json']) # noqa: E501
|
1965
|
+
|
1966
|
+
# authentication setting
|
1967
|
+
_auth_settings = ['oauth2'] # noqa: E501
|
1968
|
+
|
1969
|
+
_response_types_map = {
|
1970
|
+
'200': "AccountProperties",
|
1971
|
+
'400': "LusidValidationProblemDetails",
|
1972
|
+
}
|
1973
|
+
|
1974
|
+
return self.api_client.call_api(
|
1975
|
+
'/api/chartofaccounts/{scope}/{code}/accounts/{accountCode}/properties', 'GET',
|
1976
|
+
_path_params,
|
1977
|
+
_query_params,
|
1978
|
+
_header_params,
|
1979
|
+
body=_body_params,
|
1980
|
+
post_params=_form_params,
|
1981
|
+
files=_files,
|
1982
|
+
response_types_map=_response_types_map,
|
1983
|
+
auth_settings=_auth_settings,
|
1984
|
+
async_req=_params.get('async_req'),
|
1985
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
1986
|
+
_preload_content=_params.get('_preload_content', True),
|
1987
|
+
_request_timeout=_params.get('_request_timeout'),
|
1988
|
+
opts=_params.get('opts'),
|
1989
|
+
collection_formats=_collection_formats,
|
1990
|
+
_request_auth=_params.get('_request_auth'))
|
1991
|
+
|
1806
1992
|
@overload
|
1807
1993
|
async def get_chart_of_accounts(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the Chart of Accounts.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the Chart of Accounts. Together with the scope this uniquely identifies the Chart of Accounts.")], effective_at : Annotated[Optional[StrictStr], Field(description="The effective datetime or cut label at which to retrieve the Chart of Accounts properties. Defaults to the current LUSID system datetime if not specified.")] = None, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve the Chart of Accounts definition. Defaults to returning the latest version of the Chart of Accounts definition if not specified.")] = None, property_keys : Annotated[Optional[conlist(StrictStr)], Field(description="A list of property keys from the 'ChartOfAccounts' domain to decorate onto the Chart of Accounts. These must take the format {domain}/{scope}/{code}, for example 'ChartOfAccounts/Manager/Id'. If no properties are specified, then no properties will be returned.")] = None, **kwargs) -> ChartOfAccounts: # noqa: E501
|
1808
1994
|
...
|
@@ -1990,6 +2176,184 @@ class ChartOfAccountsApi:
|
|
1990
2176
|
collection_formats=_collection_formats,
|
1991
2177
|
_request_auth=_params.get('_request_auth'))
|
1992
2178
|
|
2179
|
+
@overload
|
2180
|
+
async def get_chart_of_accounts_properties(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the chart of accounts to list the properties for.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the chart of accounts to list the properties for. Together with the scope this uniquely identifies the chart of accounts.")], effective_at : Annotated[Optional[constr(strict=True, max_length=256, min_length=0)], Field(description="The effective datetime or cut label at which to list the chart of accounts' properties. Defaults to the current LUSID system datetime if not specified.")] = None, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to list the chart of accounts' properties. Defaults to return the latest version of each property if not specified.")] = None, **kwargs) -> ChartOfAccountsProperties: # noqa: E501
|
2181
|
+
...
|
2182
|
+
|
2183
|
+
@overload
|
2184
|
+
def get_chart_of_accounts_properties(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the chart of accounts to list the properties for.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the chart of accounts to list the properties for. Together with the scope this uniquely identifies the chart of accounts.")], effective_at : Annotated[Optional[constr(strict=True, max_length=256, min_length=0)], Field(description="The effective datetime or cut label at which to list the chart of accounts' properties. Defaults to the current LUSID system datetime if not specified.")] = None, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to list the chart of accounts' properties. Defaults to return the latest version of each property if not specified.")] = None, async_req: Optional[bool]=True, **kwargs) -> ChartOfAccountsProperties: # noqa: E501
|
2185
|
+
...
|
2186
|
+
|
2187
|
+
@validate_arguments
|
2188
|
+
def get_chart_of_accounts_properties(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the chart of accounts to list the properties for.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the chart of accounts to list the properties for. Together with the scope this uniquely identifies the chart of accounts.")], effective_at : Annotated[Optional[constr(strict=True, max_length=256, min_length=0)], Field(description="The effective datetime or cut label at which to list the chart of accounts' properties. Defaults to the current LUSID system datetime if not specified.")] = None, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to list the chart of accounts' properties. Defaults to return the latest version of each property if not specified.")] = None, async_req: Optional[bool]=None, **kwargs) -> Union[ChartOfAccountsProperties, Awaitable[ChartOfAccountsProperties]]: # noqa: E501
|
2189
|
+
"""[EXPERIMENTAL] GetChartOfAccountsProperties: Get chart of accounts properties # noqa: E501
|
2190
|
+
|
2191
|
+
Get all the properties of a single chart of accounts. # noqa: E501
|
2192
|
+
This method makes a synchronous HTTP request by default. To make an
|
2193
|
+
asynchronous HTTP request, please pass async_req=True
|
2194
|
+
|
2195
|
+
>>> thread = api.get_chart_of_accounts_properties(scope, code, effective_at, as_at, async_req=True)
|
2196
|
+
>>> result = thread.get()
|
2197
|
+
|
2198
|
+
:param scope: The scope of the chart of accounts to list the properties for. (required)
|
2199
|
+
:type scope: str
|
2200
|
+
:param code: The code of the chart of accounts to list the properties for. Together with the scope this uniquely identifies the chart of accounts. (required)
|
2201
|
+
:type code: str
|
2202
|
+
:param effective_at: The effective datetime or cut label at which to list the chart of accounts' properties. Defaults to the current LUSID system datetime if not specified.
|
2203
|
+
:type effective_at: str
|
2204
|
+
:param as_at: The asAt datetime at which to list the chart of accounts' properties. Defaults to return the latest version of each property if not specified.
|
2205
|
+
:type as_at: datetime
|
2206
|
+
:param async_req: Whether to execute the request asynchronously.
|
2207
|
+
:type async_req: bool, optional
|
2208
|
+
:param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
|
2209
|
+
:param opts: Configuration options for this request
|
2210
|
+
:type opts: ConfigurationOptions, optional
|
2211
|
+
:return: Returns the result object.
|
2212
|
+
If the method is called asynchronously,
|
2213
|
+
returns the request thread.
|
2214
|
+
:rtype: ChartOfAccountsProperties
|
2215
|
+
"""
|
2216
|
+
kwargs['_return_http_data_only'] = True
|
2217
|
+
if '_preload_content' in kwargs:
|
2218
|
+
message = "Error! Please call the get_chart_of_accounts_properties_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
|
2219
|
+
raise ValueError(message)
|
2220
|
+
if async_req is not None:
|
2221
|
+
kwargs['async_req'] = async_req
|
2222
|
+
return self.get_chart_of_accounts_properties_with_http_info(scope, code, effective_at, as_at, **kwargs) # noqa: E501
|
2223
|
+
|
2224
|
+
@validate_arguments
|
2225
|
+
def get_chart_of_accounts_properties_with_http_info(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the chart of accounts to list the properties for.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the chart of accounts to list the properties for. Together with the scope this uniquely identifies the chart of accounts.")], effective_at : Annotated[Optional[constr(strict=True, max_length=256, min_length=0)], Field(description="The effective datetime or cut label at which to list the chart of accounts' properties. Defaults to the current LUSID system datetime if not specified.")] = None, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to list the chart of accounts' properties. Defaults to return the latest version of each property if not specified.")] = None, **kwargs) -> ApiResponse: # noqa: E501
|
2226
|
+
"""[EXPERIMENTAL] GetChartOfAccountsProperties: Get chart of accounts properties # noqa: E501
|
2227
|
+
|
2228
|
+
Get all the properties of a single chart of accounts. # noqa: E501
|
2229
|
+
This method makes a synchronous HTTP request by default. To make an
|
2230
|
+
asynchronous HTTP request, please pass async_req=True
|
2231
|
+
|
2232
|
+
>>> thread = api.get_chart_of_accounts_properties_with_http_info(scope, code, effective_at, as_at, async_req=True)
|
2233
|
+
>>> result = thread.get()
|
2234
|
+
|
2235
|
+
:param scope: The scope of the chart of accounts to list the properties for. (required)
|
2236
|
+
:type scope: str
|
2237
|
+
:param code: The code of the chart of accounts to list the properties for. Together with the scope this uniquely identifies the chart of accounts. (required)
|
2238
|
+
:type code: str
|
2239
|
+
:param effective_at: The effective datetime or cut label at which to list the chart of accounts' properties. Defaults to the current LUSID system datetime if not specified.
|
2240
|
+
:type effective_at: str
|
2241
|
+
:param as_at: The asAt datetime at which to list the chart of accounts' properties. Defaults to return the latest version of each property if not specified.
|
2242
|
+
:type as_at: datetime
|
2243
|
+
:param async_req: Whether to execute the request asynchronously.
|
2244
|
+
:type async_req: bool, optional
|
2245
|
+
:param _preload_content: if False, the ApiResponse.data will
|
2246
|
+
be set to none and raw_data will store the
|
2247
|
+
HTTP response body without reading/decoding.
|
2248
|
+
Default is True.
|
2249
|
+
:type _preload_content: bool, optional
|
2250
|
+
:param _return_http_data_only: response data instead of ApiResponse
|
2251
|
+
object with status code, headers, etc
|
2252
|
+
:type _return_http_data_only: bool, optional
|
2253
|
+
:param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
|
2254
|
+
:param opts: Configuration options for this request
|
2255
|
+
:type opts: ConfigurationOptions, optional
|
2256
|
+
:param _request_auth: set to override the auth_settings for an a single
|
2257
|
+
request; this effectively ignores the authentication
|
2258
|
+
in the spec for a single request.
|
2259
|
+
:type _request_auth: dict, optional
|
2260
|
+
:type _content_type: string, optional: force content-type for the request
|
2261
|
+
:return: Returns the result object.
|
2262
|
+
If the method is called asynchronously,
|
2263
|
+
returns the request thread.
|
2264
|
+
:rtype: tuple(ChartOfAccountsProperties, status_code(int), headers(HTTPHeaderDict))
|
2265
|
+
"""
|
2266
|
+
|
2267
|
+
_params = locals()
|
2268
|
+
|
2269
|
+
_all_params = [
|
2270
|
+
'scope',
|
2271
|
+
'code',
|
2272
|
+
'effective_at',
|
2273
|
+
'as_at'
|
2274
|
+
]
|
2275
|
+
_all_params.extend(
|
2276
|
+
[
|
2277
|
+
'async_req',
|
2278
|
+
'_return_http_data_only',
|
2279
|
+
'_preload_content',
|
2280
|
+
'_request_timeout',
|
2281
|
+
'_request_auth',
|
2282
|
+
'_content_type',
|
2283
|
+
'_headers',
|
2284
|
+
'opts'
|
2285
|
+
]
|
2286
|
+
)
|
2287
|
+
|
2288
|
+
# validate the arguments
|
2289
|
+
for _key, _val in _params['kwargs'].items():
|
2290
|
+
if _key not in _all_params:
|
2291
|
+
raise ApiTypeError(
|
2292
|
+
"Got an unexpected keyword argument '%s'"
|
2293
|
+
" to method get_chart_of_accounts_properties" % _key
|
2294
|
+
)
|
2295
|
+
_params[_key] = _val
|
2296
|
+
del _params['kwargs']
|
2297
|
+
|
2298
|
+
_collection_formats = {}
|
2299
|
+
|
2300
|
+
# process the path parameters
|
2301
|
+
_path_params = {}
|
2302
|
+
if _params['scope']:
|
2303
|
+
_path_params['scope'] = _params['scope']
|
2304
|
+
|
2305
|
+
if _params['code']:
|
2306
|
+
_path_params['code'] = _params['code']
|
2307
|
+
|
2308
|
+
|
2309
|
+
# process the query parameters
|
2310
|
+
_query_params = []
|
2311
|
+
if _params.get('effective_at') is not None: # noqa: E501
|
2312
|
+
_query_params.append(('effectiveAt', _params['effective_at']))
|
2313
|
+
|
2314
|
+
if _params.get('as_at') is not None: # noqa: E501
|
2315
|
+
if isinstance(_params['as_at'], datetime):
|
2316
|
+
_query_params.append(('asAt', _params['as_at'].strftime(self.api_client.configuration.datetime_format)))
|
2317
|
+
else:
|
2318
|
+
_query_params.append(('asAt', _params['as_at']))
|
2319
|
+
|
2320
|
+
# process the header parameters
|
2321
|
+
_header_params = dict(_params.get('_headers', {}))
|
2322
|
+
# process the form parameters
|
2323
|
+
_form_params = []
|
2324
|
+
_files = {}
|
2325
|
+
# process the body parameter
|
2326
|
+
_body_params = None
|
2327
|
+
# set the HTTP header `Accept`
|
2328
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
2329
|
+
['text/plain', 'application/json', 'text/json']) # noqa: E501
|
2330
|
+
|
2331
|
+
# authentication setting
|
2332
|
+
_auth_settings = ['oauth2'] # noqa: E501
|
2333
|
+
|
2334
|
+
_response_types_map = {
|
2335
|
+
'200': "ChartOfAccountsProperties",
|
2336
|
+
'400': "LusidValidationProblemDetails",
|
2337
|
+
}
|
2338
|
+
|
2339
|
+
return self.api_client.call_api(
|
2340
|
+
'/api/chartofaccounts/{scope}/{code}/properties', 'GET',
|
2341
|
+
_path_params,
|
2342
|
+
_query_params,
|
2343
|
+
_header_params,
|
2344
|
+
body=_body_params,
|
2345
|
+
post_params=_form_params,
|
2346
|
+
files=_files,
|
2347
|
+
response_types_map=_response_types_map,
|
2348
|
+
auth_settings=_auth_settings,
|
2349
|
+
async_req=_params.get('async_req'),
|
2350
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
2351
|
+
_preload_content=_params.get('_preload_content', True),
|
2352
|
+
_request_timeout=_params.get('_request_timeout'),
|
2353
|
+
opts=_params.get('opts'),
|
2354
|
+
collection_formats=_collection_formats,
|
2355
|
+
_request_auth=_params.get('_request_auth'))
|
2356
|
+
|
1993
2357
|
@overload
|
1994
2358
|
async def get_cleardown_module(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the Chart of Accounts.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the Chart of Accounts. Together with the scope this uniquely identifies the Chart of Accounts.")], cleardown_module_code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the Cleardown Module.")], as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve the Cleardown Module. Defaults to return the latest version of the Cleardown Module if not specified.")] = None, **kwargs) -> CleardownModuleResponse: # noqa: E501
|
1995
2359
|
...
|