lusid-sdk 2.1.855__py3-none-any.whl → 2.1.857__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.
@@ -0,0 +1,137 @@
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
+ from __future__ import annotations
16
+ import pprint
17
+ import re # noqa: F401
18
+ import json
19
+
20
+
21
+ from typing import Any, Dict, List, Optional
22
+ from pydantic.v1 import StrictStr, Field, BaseModel, Field, StrictStr, conlist
23
+ from lusid.models.error_detail import ErrorDetail
24
+ from lusid.models.investment_account import InvestmentAccount
25
+ from lusid.models.link import Link
26
+
27
+ class UpsertInvestmentAccountsResponse(BaseModel):
28
+ """
29
+ UpsertInvestmentAccountsResponse
30
+ """
31
+ href: Optional[StrictStr] = Field(None,alias="href", description="The specific Uniform Resource Identifier (URI) for this resource at the requested effective and asAt datetime.")
32
+ values: Optional[Dict[str, InvestmentAccount]] = Field(None, description="The investment accounts which have been successfully updated or created.")
33
+ failed: Optional[Dict[str, ErrorDetail]] = Field(None, description="The investment accounts that could not be updated or created or were left unchanged without error along with a reason for their failure.")
34
+ links: Optional[conlist(Link)] = None
35
+ __properties = ["href", "values", "failed", "links"]
36
+
37
+ class Config:
38
+ """Pydantic configuration"""
39
+ allow_population_by_field_name = True
40
+ validate_assignment = True
41
+
42
+ def __str__(self):
43
+ """For `print` and `pprint`"""
44
+ return pprint.pformat(self.dict(by_alias=False))
45
+
46
+ def __repr__(self):
47
+ """For `print` and `pprint`"""
48
+ return self.to_str()
49
+
50
+ def to_str(self) -> str:
51
+ """Returns the string representation of the model using alias"""
52
+ return pprint.pformat(self.dict(by_alias=True))
53
+
54
+ def to_json(self) -> str:
55
+ """Returns the JSON representation of the model using alias"""
56
+ return json.dumps(self.to_dict())
57
+
58
+ @classmethod
59
+ def from_json(cls, json_str: str) -> UpsertInvestmentAccountsResponse:
60
+ """Create an instance of UpsertInvestmentAccountsResponse from a JSON string"""
61
+ return cls.from_dict(json.loads(json_str))
62
+
63
+ def to_dict(self):
64
+ """Returns the dictionary representation of the model using alias"""
65
+ _dict = self.dict(by_alias=True,
66
+ exclude={
67
+ },
68
+ exclude_none=True)
69
+ # override the default output from pydantic by calling `to_dict()` of each value in values (dict)
70
+ _field_dict = {}
71
+ if self.values:
72
+ for _key in self.values:
73
+ if self.values[_key]:
74
+ _field_dict[_key] = self.values[_key].to_dict()
75
+ _dict['values'] = _field_dict
76
+ # override the default output from pydantic by calling `to_dict()` of each value in failed (dict)
77
+ _field_dict = {}
78
+ if self.failed:
79
+ for _key in self.failed:
80
+ if self.failed[_key]:
81
+ _field_dict[_key] = self.failed[_key].to_dict()
82
+ _dict['failed'] = _field_dict
83
+ # override the default output from pydantic by calling `to_dict()` of each item in links (list)
84
+ _items = []
85
+ if self.links:
86
+ for _item in self.links:
87
+ if _item:
88
+ _items.append(_item.to_dict())
89
+ _dict['links'] = _items
90
+ # set to None if href (nullable) is None
91
+ # and __fields_set__ contains the field
92
+ if self.href is None and "href" in self.__fields_set__:
93
+ _dict['href'] = None
94
+
95
+ # set to None if values (nullable) is None
96
+ # and __fields_set__ contains the field
97
+ if self.values is None and "values" in self.__fields_set__:
98
+ _dict['values'] = None
99
+
100
+ # set to None if failed (nullable) is None
101
+ # and __fields_set__ contains the field
102
+ if self.failed is None and "failed" in self.__fields_set__:
103
+ _dict['failed'] = None
104
+
105
+ # set to None if links (nullable) is None
106
+ # and __fields_set__ contains the field
107
+ if self.links is None and "links" in self.__fields_set__:
108
+ _dict['links'] = None
109
+
110
+ return _dict
111
+
112
+ @classmethod
113
+ def from_dict(cls, obj: dict) -> UpsertInvestmentAccountsResponse:
114
+ """Create an instance of UpsertInvestmentAccountsResponse from a dict"""
115
+ if obj is None:
116
+ return None
117
+
118
+ if not isinstance(obj, dict):
119
+ return UpsertInvestmentAccountsResponse.parse_obj(obj)
120
+
121
+ _obj = UpsertInvestmentAccountsResponse.parse_obj({
122
+ "href": obj.get("href"),
123
+ "values": dict(
124
+ (_k, InvestmentAccount.from_dict(_v))
125
+ for _k, _v in obj.get("values").items()
126
+ )
127
+ if obj.get("values") is not None
128
+ else None,
129
+ "failed": dict(
130
+ (_k, ErrorDetail.from_dict(_v))
131
+ for _k, _v in obj.get("failed").items()
132
+ )
133
+ if obj.get("failed") is not None
134
+ else None,
135
+ "links": [Link.from_dict(_item) for _item in obj.get("links")] if obj.get("links") is not None else None
136
+ })
137
+ return _obj
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lusid-sdk
3
- Version: 2.1.855
3
+ Version: 2.1.857
4
4
  Summary: LUSID API
5
5
  Home-page: https://github.com/finbourne/lusid-sdk-python
6
6
  License: MIT
@@ -332,6 +332,7 @@ Class | Method | HTTP request | Description
332
332
  *InstrumentsApi* | [**update_instrument_identifier**](docs/InstrumentsApi.md#update_instrument_identifier) | **POST** /api/instruments/{identifierType}/{identifier} | UpdateInstrumentIdentifier: Update instrument identifier
333
333
  *InstrumentsApi* | [**upsert_instruments**](docs/InstrumentsApi.md#upsert_instruments) | **POST** /api/instruments | UpsertInstruments: Upsert instruments
334
334
  *InstrumentsApi* | [**upsert_instruments_properties**](docs/InstrumentsApi.md#upsert_instruments_properties) | **POST** /api/instruments/$upsertproperties | UpsertInstrumentsProperties: Upsert instruments properties
335
+ *InvestmentAccountsApi* | [**upsert_investment_accounts**](docs/InvestmentAccountsApi.md#upsert_investment_accounts) | **POST** /api/investmentaccounts/$batchUpsert | [EARLY ACCESS] UpsertInvestmentAccounts: Upsert Investment Accounts
335
336
  *InvestorRecordsApi* | [**delete_investor_record**](docs/InvestorRecordsApi.md#delete_investor_record) | **DELETE** /api/investorrecords/{idTypeScope}/{idTypeCode}/{code} | [EARLY ACCESS] DeleteInvestorRecord: Delete Investor Record
336
337
  *InvestorRecordsApi* | [**get_investor_record**](docs/InvestorRecordsApi.md#get_investor_record) | **GET** /api/investorrecords/{idTypeScope}/{idTypeCode}/{code} | [EARLY ACCESS] GetInvestorRecord: Get Investor Record
337
338
  *InvestorRecordsApi* | [**list_all_investor_records**](docs/InvestorRecordsApi.md#list_all_investor_records) | **GET** /api/investorrecords | [EARLY ACCESS] ListAllInvestorRecords: List Investor Records
@@ -682,6 +683,8 @@ Class | Method | HTTP request | Description
682
683
  - [AccessMetadataOperation](docs/AccessMetadataOperation.md)
683
684
  - [AccessMetadataValue](docs/AccessMetadataValue.md)
684
685
  - [Account](docs/Account.md)
686
+ - [AccountHolder](docs/AccountHolder.md)
687
+ - [AccountHolderIdentifier](docs/AccountHolderIdentifier.md)
685
688
  - [AccountProperties](docs/AccountProperties.md)
686
689
  - [AccountedTransaction](docs/AccountedTransaction.md)
687
690
  - [AccountingMethod](docs/AccountingMethod.md)
@@ -1220,6 +1223,9 @@ Class | Method | HTTP request | Description
1220
1223
  - [IntermediateComplianceStep](docs/IntermediateComplianceStep.md)
1221
1224
  - [IntermediateComplianceStepRequest](docs/IntermediateComplianceStepRequest.md)
1222
1225
  - [IntermediateSecuritiesDistributionEvent](docs/IntermediateSecuritiesDistributionEvent.md)
1226
+ - [InvestmentAccount](docs/InvestmentAccount.md)
1227
+ - [InvestmentPortfolio](docs/InvestmentPortfolio.md)
1228
+ - [InvestmentPortfolioIdentifier](docs/InvestmentPortfolioIdentifier.md)
1223
1229
  - [Investor](docs/Investor.md)
1224
1230
  - [InvestorIdentifier](docs/InvestorIdentifier.md)
1225
1231
  - [InvestorRecord](docs/InvestorRecord.md)
@@ -1832,6 +1838,8 @@ Class | Method | HTTP request | Description
1832
1838
  - [UpsertInstrumentPropertiesResponse](docs/UpsertInstrumentPropertiesResponse.md)
1833
1839
  - [UpsertInstrumentPropertyRequest](docs/UpsertInstrumentPropertyRequest.md)
1834
1840
  - [UpsertInstrumentsResponse](docs/UpsertInstrumentsResponse.md)
1841
+ - [UpsertInvestmentAccountRequest](docs/UpsertInvestmentAccountRequest.md)
1842
+ - [UpsertInvestmentAccountsResponse](docs/UpsertInvestmentAccountsResponse.md)
1835
1843
  - [UpsertInvestorRecordRequest](docs/UpsertInvestorRecordRequest.md)
1836
1844
  - [UpsertInvestorRecordsResponse](docs/UpsertInvestorRecordsResponse.md)
1837
1845
  - [UpsertLegalEntitiesResponse](docs/UpsertLegalEntitiesResponse.md)
@@ -1,5 +1,5 @@
1
- lusid/__init__.py,sha256=1rj8iwh8urZfG8FH9cknhRIIrV9AUJx7ftN3GNH7FNQ,139917
2
- lusid/api/__init__.py,sha256=rDMCQ5xxj5K43PAE4v9joIu4G8XxM2QNi2Dj0vFQA8A,6471
1
+ lusid/__init__.py,sha256=3wPIR3tLkyobO69b8UjuuiAYvaDM4rm7nwht1HHv9MQ,140761
2
+ lusid/api/__init__.py,sha256=suDmxyWIPUcxsTkCeRT0Sv_WVGTKhHQyI6MhwX7mFUI,6568
3
3
  lusid/api/abor_api.py,sha256=N7Wsh0395mXOvpJI8z0Nrx5OY4nCP5FN9RkbtdHaZbM,165987
4
4
  lusid/api/abor_configuration_api.py,sha256=xQ9HcXm02eDFhCdWUHjqFRWl1oQMxm2LNObJ9kcLauU,84216
5
5
  lusid/api/address_key_definition_api.py,sha256=m1nlEYBeggP_6XUW-i7ah9G0Vmz8hNuKuYtM6Z9VTzA,31350
@@ -34,6 +34,7 @@ lusid/api/identifier_definitions_api.py,sha256=x79uhIBI0BJITjwmE7oPMWFOtox60FrrL
34
34
  lusid/api/instrument_event_types_api.py,sha256=RHuGNd8Xf8x0vyvAUFwRNgEB_kpzQTtbsBwlFC3QJcs,79862
35
35
  lusid/api/instrument_events_api.py,sha256=o_VlUMrovreM3P6N84W5jMUrZmc6tVsvD7Ckhf05sfw,57764
36
36
  lusid/api/instruments_api.py,sha256=1jF3L1U2aOoOa29s-EOz9xecD799UHYQFWM6tIaONCk,298101
37
+ lusid/api/investment_accounts_api.py,sha256=5KuBy4RHDZCfvT9uXRzipTNhIQWJczEoxxkq0jxsC60,10511
37
38
  lusid/api/investor_records_api.py,sha256=_FOonKxHm1pcOyRmByN8HgcxWp-W10hU6il-SDyDkoo,58605
38
39
  lusid/api/legacy_compliance_api.py,sha256=DvApZDZ-_yzZ72e9oqKBK7Ey8oEaavGtw5cgxhEkV0s,93819
39
40
  lusid/api/legal_entities_api.py,sha256=LMmm184b6OJLJiWaKwTXiodtOgDMpKbaz1cl_tqWnnc,257633
@@ -77,7 +78,7 @@ lusid/api/translation_api.py,sha256=xpRuTfwQvYBlWe6r_L2EI_uVpXqHFnEOim-i-kVQ85E,
77
78
  lusid/api/workspace_api.py,sha256=0pCNi3ZCRbIo0NXKa85XE7vtq0WV5YOKcQKvFlcLUaY,120708
78
79
  lusid/api_client.py,sha256=ewMTmf9SRurY8pYnUx9jy24RdldPCOa4US38pnrVxjA,31140
79
80
  lusid/api_response.py,sha256=6-gnhty6lu8MMAERt3_kTVD7UxQgWFfcjgpcq6iN5IU,855
80
- lusid/configuration.py,sha256=9b9BYkAN-Bz_wl1XUEGL8RA1Yx3Fm9kUE9XrBrNG81I,17972
81
+ lusid/configuration.py,sha256=AMzYW7UW5OO94cUOMQEzrMrvPDcMfMYoWtRhP2ywHVI,17972
81
82
  lusid/exceptions.py,sha256=HIQwgmQrszLlcVCLaqex8dO0laVuejUyOMz7U2ZWJ6s,5326
82
83
  lusid/extensions/__init__.py,sha256=dzDHEzpn-9smd2-_UMWQzeyX6Ha4jGf6fnqx7qxKxNI,630
83
84
  lusid/extensions/api_client.py,sha256=GzygWg_h603QK1QS2HvAijuE2R1TnvoF6-Yg0CeM3ug,30943
@@ -92,7 +93,7 @@ lusid/extensions/rest.py,sha256=dp-bD_LMR2zAL1tmC3-urhWKLomXx7r5iGN1VteMBVQ,1601
92
93
  lusid/extensions/retry.py,sha256=EhW9OKJmGHipxN3H7eROH5DiMlAnfBVl95NQrttcsdg,14834
93
94
  lusid/extensions/socket_keep_alive.py,sha256=eX5ICvGfVzUCGIm80Q2RknfFZrBQAdnrcpY61M29V_k,1997
94
95
  lusid/extensions/tcp_keep_alive_connector.py,sha256=zaGtUsygRsxB1_4B3x39K3ILwztdhMLDv5bFZV7zmGE,3877
95
- lusid/models/__init__.py,sha256=GAlU31wa7ePTXL-r10nxRLdR0FwsDXqTvkBbLnrJWnY,132414
96
+ lusid/models/__init__.py,sha256=y9fTpseKLasgMKd02LwOm0EWs4RSPZOndHDa0dlRcig,133161
96
97
  lusid/models/a2_b_breakdown.py,sha256=-FXgILrvtZXQDmvS0ARaJVGBq5LJ4AH-o3HjujFVmS4,3198
97
98
  lusid/models/a2_b_category.py,sha256=WunXUgx-dCnApPeLC8Qo5tVCX8Ywxkehib1vmNqNgNs,2957
98
99
  lusid/models/a2_b_data_record.py,sha256=qANTmV1_HUEo4l72-F8qzZjlQxOe0Onc9WPz7h-WWuY,9993
@@ -109,6 +110,8 @@ lusid/models/access_controlled_resource.py,sha256=PQJNVfo_bjC_ci8kLpwe6RxB0Fse3C
109
110
  lusid/models/access_metadata_operation.py,sha256=iym2rTJ1PiGu982kqKkLCCB_z5MWvOIOuixtlX1W704,6433
110
111
  lusid/models/access_metadata_value.py,sha256=vgXuxm4qA_XDSqE2mGdqOEyEAu5r6A6i-FPvh7-agf4,2591
111
112
  lusid/models/account.py,sha256=jvkJG5BYkn1ZtiYIvLqiKvgoNmRh-Zz86mRL3RN5dDo,7713
113
+ lusid/models/account_holder.py,sha256=9_bODcjTogDD9g0_CDuK9w3QbD1LDksl6mwGuQJe06c,4408
114
+ lusid/models/account_holder_identifier.py,sha256=uY94NgefUOYsdCABcw20757pnsOa6O2guFebu4QzvGA,3059
112
115
  lusid/models/account_properties.py,sha256=8z1CtWgpuCG67K1g6f-eGpVt0hnoBjIi56ADPoE92iU,4519
113
116
  lusid/models/accounted_transaction.py,sha256=LsffwdsikxR0nLMgsfg0GeRE-J1s_JnQCoO4PzaZE9k,3710
114
117
  lusid/models/accounting_method.py,sha256=Ei42z2hKpF_MkYlulycvPmbipAdCALy5vaSlxgrfhYw,1487
@@ -647,6 +650,9 @@ lusid/models/interest_rate_swaption.py,sha256=vo997qFOu4uJ6AEcbqr9O7B8TNDJznNSn4
647
650
  lusid/models/intermediate_compliance_step.py,sha256=n_y-NJKd4787d9W5b4_MBJ_9ShzH3q2zTA9AaeowM-Y,7723
648
651
  lusid/models/intermediate_compliance_step_request.py,sha256=Va1ew-xImnr6NuDGT6cvREZoF-WAaXs3LwlNvonnsrs,6829
649
652
  lusid/models/intermediate_securities_distribution_event.py,sha256=pz_ZlNwbIfYcfNVeykYz84u374J02GaRFD_cxR4GVyM,14783
653
+ lusid/models/investment_account.py,sha256=g7dWOmwStNKsn1zaaNuovtWF64NVgEO2T1AQisY3dLc,10341
654
+ lusid/models/investment_portfolio.py,sha256=23tNPQkXh44HtugRHUkYE7JWZYal0aASeEJjOEAYrsw,4058
655
+ lusid/models/investment_portfolio_identifier.py,sha256=jdZfm9EXAUDhfGlZLTlu6JCzrCmb3vDP4Sh7tE_pUCw,2684
650
656
  lusid/models/investor.py,sha256=Qe2_Sza5OOvnXUpyzsMo3Ezn94q2ugjoAD0fJPhKmWc,4802
651
657
  lusid/models/investor_identifier.py,sha256=W7WcMFCOm8NFMHrd1GVJUv7DJbkOX-n3kO4vw2TU9cI,3730
652
658
  lusid/models/investor_record.py,sha256=K4tfet2yUeEXcs18wAJPKvnuXnjIpeg1HfC2FsHywAA,8194
@@ -1259,6 +1265,8 @@ lusid/models/upsert_instrument_events_response.py,sha256=I9FaPNGzdWynFl9dlsC0MPn
1259
1265
  lusid/models/upsert_instrument_properties_response.py,sha256=huDpz_pCv4lvevSx17ESPhaCvY5DQB0cfyMbrRJ7DX0,3057
1260
1266
  lusid/models/upsert_instrument_property_request.py,sha256=0eItn57l4qpxeja4xql142VBy7Xe6y01Lqz2iDs0_TE,3553
1261
1267
  lusid/models/upsert_instruments_response.py,sha256=HlP534b08fwebDLOb96KXj4SH9Gdyj-gnPwEWwlK2Uc,7239
1268
+ lusid/models/upsert_investment_account_request.py,sha256=aQ9OeM4tHOGTA_aVpGRubTPaaqigFr7arzfpYxc4KW0,6886
1269
+ lusid/models/upsert_investment_accounts_response.py,sha256=WSnQ4TmoZDxI0GCyJYLCs5IaxZgXoNmjrZpSZouLXsc,5270
1262
1270
  lusid/models/upsert_investor_record_request.py,sha256=34CRHQdxFbPJ7ryuKGrQjK8wKzK54ge5U4Wzss42y5g,4889
1263
1271
  lusid/models/upsert_investor_records_response.py,sha256=8sz6LY3GZk_IsZbLYKRPv8fNrHolTOt3Tp2A98PSV4o,5228
1264
1272
  lusid/models/upsert_legal_entities_response.py,sha256=G6ez_E32nLfFrVPi7F6kkPOHPJKfhTqx4wOQvNAyvbY,5196
@@ -1333,6 +1341,6 @@ lusid/models/year_month_day.py,sha256=gwSoxFwlD_wffKdddo1wfvAcLq3Cht3FHQidiaHzAA
1333
1341
  lusid/models/yield_curve_data.py,sha256=I1ZSWxHMgUxj9OQt6i9a4S91KB4_XtmrfFxpN_PV3YQ,9561
1334
1342
  lusid/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1335
1343
  lusid/rest.py,sha256=HQT__5LQEMu6_1sLKvYj-DI4FH1DJXBIPYfZCTTyrY4,13431
1336
- lusid_sdk-2.1.855.dist-info/METADATA,sha256=4wS7jL6_b5jS_OfbKhnFFMHnKUKTzNB-mw8yaAabRE8,222789
1337
- lusid_sdk-2.1.855.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
1338
- lusid_sdk-2.1.855.dist-info/RECORD,,
1344
+ lusid_sdk-2.1.857.dist-info/METADATA,sha256=cywzk8vllRYU477ekqGmJMigGarI6hOQfRH9XZ5M3eE,223462
1345
+ lusid_sdk-2.1.857.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
1346
+ lusid_sdk-2.1.857.dist-info/RECORD,,