lusid-sdk 2.1.899__py3-none-any.whl → 2.1.900__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/__init__.py +0 -2
- lusid/configuration.py +1 -1
- lusid/models/__init__.py +0 -2
- lusid/models/fund_calendar_entry.py +53 -33
- lusid/models/settlement_instruction_request.py +22 -2
- lusid/models/transaction_settlement_instruction.py +22 -2
- {lusid_sdk-2.1.899.dist-info → lusid_sdk-2.1.900.dist-info}/METADATA +1 -2
- {lusid_sdk-2.1.899.dist-info → lusid_sdk-2.1.900.dist-info}/RECORD +9 -10
- lusid/models/valuation_point_fund_calendar_entry.py +0 -181
- {lusid_sdk-2.1.899.dist-info → lusid_sdk-2.1.900.dist-info}/WHEEL +0 -0
lusid/__init__.py
CHANGED
@@ -1345,7 +1345,6 @@ from lusid.models.user import User
|
|
1345
1345
|
from lusid.models.valuation_point_data_query_parameters import ValuationPointDataQueryParameters
|
1346
1346
|
from lusid.models.valuation_point_data_request import ValuationPointDataRequest
|
1347
1347
|
from lusid.models.valuation_point_data_response import ValuationPointDataResponse
|
1348
|
-
from lusid.models.valuation_point_fund_calendar_entry import ValuationPointFundCalendarEntry
|
1349
1348
|
from lusid.models.valuation_point_overview import ValuationPointOverview
|
1350
1349
|
from lusid.models.valuation_point_resource_list_of_accounted_transaction import ValuationPointResourceListOfAccountedTransaction
|
1351
1350
|
from lusid.models.valuation_point_resource_list_of_fund_journal_entry_line import ValuationPointResourceListOfFundJournalEntryLine
|
@@ -2719,7 +2718,6 @@ __all__ = [
|
|
2719
2718
|
"ValuationPointDataQueryParameters",
|
2720
2719
|
"ValuationPointDataRequest",
|
2721
2720
|
"ValuationPointDataResponse",
|
2722
|
-
"ValuationPointFundCalendarEntry",
|
2723
2721
|
"ValuationPointOverview",
|
2724
2722
|
"ValuationPointResourceListOfAccountedTransaction",
|
2725
2723
|
"ValuationPointResourceListOfFundJournalEntryLine",
|
lusid/configuration.py
CHANGED
@@ -445,7 +445,7 @@ class Configuration:
|
|
445
445
|
return "Python SDK Debug Report:\n"\
|
446
446
|
"OS: {env}\n"\
|
447
447
|
"Python Version: {pyversion}\n"\
|
448
|
-
"Version of the API: 0.11.
|
448
|
+
"Version of the API: 0.11.8139\n"\
|
449
449
|
"SDK Package Version: {package_version}".\
|
450
450
|
format(env=sys.platform, pyversion=sys.version, package_version=package_version)
|
451
451
|
|
lusid/models/__init__.py
CHANGED
@@ -1254,7 +1254,6 @@ from lusid.models.user import User
|
|
1254
1254
|
from lusid.models.valuation_point_data_query_parameters import ValuationPointDataQueryParameters
|
1255
1255
|
from lusid.models.valuation_point_data_request import ValuationPointDataRequest
|
1256
1256
|
from lusid.models.valuation_point_data_response import ValuationPointDataResponse
|
1257
|
-
from lusid.models.valuation_point_fund_calendar_entry import ValuationPointFundCalendarEntry
|
1258
1257
|
from lusid.models.valuation_point_overview import ValuationPointOverview
|
1259
1258
|
from lusid.models.valuation_point_resource_list_of_accounted_transaction import ValuationPointResourceListOfAccountedTransaction
|
1260
1259
|
from lusid.models.valuation_point_resource_list_of_fund_journal_entry_line import ValuationPointResourceListOfFundJournalEntryLine
|
@@ -2538,7 +2537,6 @@ __all__ = [
|
|
2538
2537
|
"ValuationPointDataQueryParameters",
|
2539
2538
|
"ValuationPointDataRequest",
|
2540
2539
|
"ValuationPointDataResponse",
|
2541
|
-
"ValuationPointFundCalendarEntry",
|
2542
2540
|
"ValuationPointOverview",
|
2543
2541
|
"ValuationPointResourceListOfAccountedTransaction",
|
2544
2542
|
"ValuationPointResourceListOfFundJournalEntryLine",
|
@@ -17,17 +17,26 @@ import pprint
|
|
17
17
|
import re # noqa: F401
|
18
18
|
import json
|
19
19
|
|
20
|
-
|
21
|
-
from typing import Any, Dict,
|
22
|
-
from pydantic.v1 import StrictStr, Field, BaseModel, Field, StrictStr, validator
|
23
|
-
|
20
|
+
from datetime import datetime
|
21
|
+
from typing import Any, Dict, Optional
|
22
|
+
from pydantic.v1 import StrictStr, Field, BaseModel, Field, StrictStr, constr, validator
|
23
|
+
from lusid.models.version import Version
|
24
24
|
|
25
25
|
class FundCalendarEntry(BaseModel):
|
26
26
|
"""
|
27
27
|
FundCalendarEntry
|
28
28
|
"""
|
29
|
+
code: StrictStr = Field(...,alias="code", description="The unique Code of the Calendar Entry. The Calendar Entry, together with the Fund Scope and Code, uniquely identifies a Fund Calendar Entry")
|
30
|
+
display_name: StrictStr = Field(...,alias="displayName", description="The name of the Fund Calendar entry.")
|
31
|
+
description: Optional[StrictStr] = Field(None,alias="description", description="A description for the Fund Calendar entry.")
|
32
|
+
nav_type_code: StrictStr = Field(...,alias="navTypeCode", description="The navTypeCode of the Fund Calendar Entry. This is the code of the NAV type that this Calendar Entry is associated with.")
|
33
|
+
effective_at: datetime = Field(..., alias="effectiveAt", description="The effective at of the Calendar Entry.")
|
34
|
+
as_at: datetime = Field(..., alias="asAt", description="The asAt datetime for the Calendar Entry.")
|
29
35
|
entry_type: StrictStr = Field(...,alias="entryType", description="The type of the Fund Calendar Entry. Only 'ValuationPoint' currently supported. The available values are: ValuationPointFundCalendarEntry")
|
30
|
-
|
36
|
+
status: Optional[StrictStr] = Field(None,alias="status", description="The status of the Fund Calendar Entry. Can be 'Estimate', 'Candidate' or 'Final'.")
|
37
|
+
version: Version = Field(...)
|
38
|
+
href: Optional[StrictStr] = Field(None,alias="href", description="The specific Uniform Resource Identifier (URI) for this resource at the requested asAt datetime.")
|
39
|
+
__properties = ["code", "displayName", "description", "navTypeCode", "effectiveAt", "asAt", "entryType", "status", "version", "href"]
|
31
40
|
|
32
41
|
@validator('entry_type')
|
33
42
|
def entry_type_validate_enum(cls, value):
|
@@ -93,23 +102,6 @@ class FundCalendarEntry(BaseModel):
|
|
93
102
|
allow_population_by_field_name = True
|
94
103
|
validate_assignment = True
|
95
104
|
|
96
|
-
# JSON field name that stores the object type
|
97
|
-
__discriminator_property_name = 'entryType'
|
98
|
-
|
99
|
-
# discriminator mappings
|
100
|
-
__discriminator_value_class_map = {
|
101
|
-
'ValuationPointFundCalendarEntry': 'ValuationPointFundCalendarEntry'
|
102
|
-
}
|
103
|
-
|
104
|
-
@classmethod
|
105
|
-
def get_discriminator_value(cls, obj: dict) -> str:
|
106
|
-
"""Returns the discriminator value (object type) of the data"""
|
107
|
-
discriminator_value = obj[cls.__discriminator_property_name]
|
108
|
-
if discriminator_value:
|
109
|
-
return cls.__discriminator_value_class_map.get(discriminator_value)
|
110
|
-
else:
|
111
|
-
return None
|
112
|
-
|
113
105
|
def __str__(self):
|
114
106
|
"""For `print` and `pprint`"""
|
115
107
|
return pprint.pformat(self.dict(by_alias=False))
|
@@ -127,7 +119,7 @@ class FundCalendarEntry(BaseModel):
|
|
127
119
|
return json.dumps(self.to_dict())
|
128
120
|
|
129
121
|
@classmethod
|
130
|
-
def from_json(cls, json_str: str) ->
|
122
|
+
def from_json(cls, json_str: str) -> FundCalendarEntry:
|
131
123
|
"""Create an instance of FundCalendarEntry from a JSON string"""
|
132
124
|
return cls.from_dict(json.loads(json_str))
|
133
125
|
|
@@ -137,17 +129,45 @@ class FundCalendarEntry(BaseModel):
|
|
137
129
|
exclude={
|
138
130
|
},
|
139
131
|
exclude_none=True)
|
132
|
+
# override the default output from pydantic by calling `to_dict()` of version
|
133
|
+
if self.version:
|
134
|
+
_dict['version'] = self.version.to_dict()
|
135
|
+
# set to None if description (nullable) is None
|
136
|
+
# and __fields_set__ contains the field
|
137
|
+
if self.description is None and "description" in self.__fields_set__:
|
138
|
+
_dict['description'] = None
|
139
|
+
|
140
|
+
# set to None if status (nullable) is None
|
141
|
+
# and __fields_set__ contains the field
|
142
|
+
if self.status is None and "status" in self.__fields_set__:
|
143
|
+
_dict['status'] = None
|
144
|
+
|
145
|
+
# set to None if href (nullable) is None
|
146
|
+
# and __fields_set__ contains the field
|
147
|
+
if self.href is None and "href" in self.__fields_set__:
|
148
|
+
_dict['href'] = None
|
149
|
+
|
140
150
|
return _dict
|
141
151
|
|
142
152
|
@classmethod
|
143
|
-
def from_dict(cls, obj: dict) ->
|
153
|
+
def from_dict(cls, obj: dict) -> FundCalendarEntry:
|
144
154
|
"""Create an instance of FundCalendarEntry from a dict"""
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
return
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
155
|
+
if obj is None:
|
156
|
+
return None
|
157
|
+
|
158
|
+
if not isinstance(obj, dict):
|
159
|
+
return FundCalendarEntry.parse_obj(obj)
|
160
|
+
|
161
|
+
_obj = FundCalendarEntry.parse_obj({
|
162
|
+
"code": obj.get("code"),
|
163
|
+
"display_name": obj.get("displayName"),
|
164
|
+
"description": obj.get("description"),
|
165
|
+
"nav_type_code": obj.get("navTypeCode"),
|
166
|
+
"effective_at": obj.get("effectiveAt"),
|
167
|
+
"as_at": obj.get("asAt"),
|
168
|
+
"entry_type": obj.get("entryType"),
|
169
|
+
"status": obj.get("status"),
|
170
|
+
"version": Version.from_dict(obj.get("version")) if obj.get("version") is not None else None,
|
171
|
+
"href": obj.get("href")
|
172
|
+
})
|
173
|
+
return _obj
|
@@ -20,6 +20,7 @@ import json
|
|
20
20
|
from datetime import datetime
|
21
21
|
from typing import Any, Dict, Optional, Union
|
22
22
|
from pydantic.v1 import StrictStr, Field, BaseModel, Field, StrictFloat, StrictInt, StrictStr, constr
|
23
|
+
from lusid.models.perpetual_property import PerpetualProperty
|
23
24
|
|
24
25
|
class SettlementInstructionRequest(BaseModel):
|
25
26
|
"""
|
@@ -33,7 +34,8 @@ class SettlementInstructionRequest(BaseModel):
|
|
33
34
|
contractual_settlement_date: Optional[datetime] = Field(None, alias="contractualSettlementDate")
|
34
35
|
actual_settlement_date: datetime = Field(..., alias="actualSettlementDate")
|
35
36
|
units: Union[StrictFloat, StrictInt] = Field(...)
|
36
|
-
|
37
|
+
sub_holding_key_overrides: Optional[Dict[str, PerpetualProperty]] = Field(None, alias="subHoldingKeyOverrides")
|
38
|
+
__properties = ["settlementInstructionId", "transactionId", "settlementCategory", "instructionType", "instrumentIdentifiers", "contractualSettlementDate", "actualSettlementDate", "units", "subHoldingKeyOverrides"]
|
37
39
|
|
38
40
|
class Config:
|
39
41
|
"""Pydantic configuration"""
|
@@ -67,6 +69,13 @@ class SettlementInstructionRequest(BaseModel):
|
|
67
69
|
exclude={
|
68
70
|
},
|
69
71
|
exclude_none=True)
|
72
|
+
# override the default output from pydantic by calling `to_dict()` of each value in sub_holding_key_overrides (dict)
|
73
|
+
_field_dict = {}
|
74
|
+
if self.sub_holding_key_overrides:
|
75
|
+
for _key in self.sub_holding_key_overrides:
|
76
|
+
if self.sub_holding_key_overrides[_key]:
|
77
|
+
_field_dict[_key] = self.sub_holding_key_overrides[_key].to_dict()
|
78
|
+
_dict['subHoldingKeyOverrides'] = _field_dict
|
70
79
|
# set to None if instruction_type (nullable) is None
|
71
80
|
# and __fields_set__ contains the field
|
72
81
|
if self.instruction_type is None and "instruction_type" in self.__fields_set__:
|
@@ -77,6 +86,11 @@ class SettlementInstructionRequest(BaseModel):
|
|
77
86
|
if self.contractual_settlement_date is None and "contractual_settlement_date" in self.__fields_set__:
|
78
87
|
_dict['contractualSettlementDate'] = None
|
79
88
|
|
89
|
+
# set to None if sub_holding_key_overrides (nullable) is None
|
90
|
+
# and __fields_set__ contains the field
|
91
|
+
if self.sub_holding_key_overrides is None and "sub_holding_key_overrides" in self.__fields_set__:
|
92
|
+
_dict['subHoldingKeyOverrides'] = None
|
93
|
+
|
80
94
|
return _dict
|
81
95
|
|
82
96
|
@classmethod
|
@@ -96,6 +110,12 @@ class SettlementInstructionRequest(BaseModel):
|
|
96
110
|
"instrument_identifiers": obj.get("instrumentIdentifiers"),
|
97
111
|
"contractual_settlement_date": obj.get("contractualSettlementDate"),
|
98
112
|
"actual_settlement_date": obj.get("actualSettlementDate"),
|
99
|
-
"units": obj.get("units")
|
113
|
+
"units": obj.get("units"),
|
114
|
+
"sub_holding_key_overrides": dict(
|
115
|
+
(_k, PerpetualProperty.from_dict(_v))
|
116
|
+
for _k, _v in obj.get("subHoldingKeyOverrides").items()
|
117
|
+
)
|
118
|
+
if obj.get("subHoldingKeyOverrides") is not None
|
119
|
+
else None
|
100
120
|
})
|
101
121
|
return _obj
|
@@ -20,6 +20,7 @@ import json
|
|
20
20
|
from datetime import datetime
|
21
21
|
from typing import Any, Dict, Optional, Union
|
22
22
|
from pydantic.v1 import StrictStr, Field, BaseModel, Field, StrictFloat, StrictInt, constr
|
23
|
+
from lusid.models.perpetual_property import PerpetualProperty
|
23
24
|
|
24
25
|
class TransactionSettlementInstruction(BaseModel):
|
25
26
|
"""
|
@@ -33,7 +34,8 @@ class TransactionSettlementInstruction(BaseModel):
|
|
33
34
|
settlement_category: StrictStr = Field(...,alias="settlementCategory", description="A category representing the set of movement types that this instruction applies to.")
|
34
35
|
lusid_instrument_id: StrictStr = Field(...,alias="lusidInstrumentId", description="The LusidInstrumentId of the instrument being settled.")
|
35
36
|
contractual_settlement_date: Optional[datetime] = Field(None, alias="contractualSettlementDate", description="The contractual settlement date. Used to match the instruction to the correct settlement bucket.")
|
36
|
-
|
37
|
+
sub_holding_key_overrides: Optional[Dict[str, PerpetualProperty]] = Field(None, alias="subHoldingKeyOverrides", description="Allows one or more sub-holding keys to be overridden for any movement being settled by an instruction. Providing a key and value will set the sub-holding key to the specified value; Providing a key only will nullify the sub-holding key. Not referenced sub-holding keys will not be impacted. ")
|
38
|
+
__properties = ["settlementInstructionId", "instructionType", "actualSettlementDate", "units", "transactionId", "settlementCategory", "lusidInstrumentId", "contractualSettlementDate", "subHoldingKeyOverrides"]
|
37
39
|
|
38
40
|
class Config:
|
39
41
|
"""Pydantic configuration"""
|
@@ -67,11 +69,23 @@ class TransactionSettlementInstruction(BaseModel):
|
|
67
69
|
exclude={
|
68
70
|
},
|
69
71
|
exclude_none=True)
|
72
|
+
# override the default output from pydantic by calling `to_dict()` of each value in sub_holding_key_overrides (dict)
|
73
|
+
_field_dict = {}
|
74
|
+
if self.sub_holding_key_overrides:
|
75
|
+
for _key in self.sub_holding_key_overrides:
|
76
|
+
if self.sub_holding_key_overrides[_key]:
|
77
|
+
_field_dict[_key] = self.sub_holding_key_overrides[_key].to_dict()
|
78
|
+
_dict['subHoldingKeyOverrides'] = _field_dict
|
70
79
|
# set to None if contractual_settlement_date (nullable) is None
|
71
80
|
# and __fields_set__ contains the field
|
72
81
|
if self.contractual_settlement_date is None and "contractual_settlement_date" in self.__fields_set__:
|
73
82
|
_dict['contractualSettlementDate'] = None
|
74
83
|
|
84
|
+
# set to None if sub_holding_key_overrides (nullable) is None
|
85
|
+
# and __fields_set__ contains the field
|
86
|
+
if self.sub_holding_key_overrides is None and "sub_holding_key_overrides" in self.__fields_set__:
|
87
|
+
_dict['subHoldingKeyOverrides'] = None
|
88
|
+
|
75
89
|
return _dict
|
76
90
|
|
77
91
|
@classmethod
|
@@ -91,6 +105,12 @@ class TransactionSettlementInstruction(BaseModel):
|
|
91
105
|
"transaction_id": obj.get("transactionId"),
|
92
106
|
"settlement_category": obj.get("settlementCategory"),
|
93
107
|
"lusid_instrument_id": obj.get("lusidInstrumentId"),
|
94
|
-
"contractual_settlement_date": obj.get("contractualSettlementDate")
|
108
|
+
"contractual_settlement_date": obj.get("contractualSettlementDate"),
|
109
|
+
"sub_holding_key_overrides": dict(
|
110
|
+
(_k, PerpetualProperty.from_dict(_v))
|
111
|
+
for _k, _v in obj.get("subHoldingKeyOverrides").items()
|
112
|
+
)
|
113
|
+
if obj.get("subHoldingKeyOverrides") is not None
|
114
|
+
else None
|
95
115
|
})
|
96
116
|
return _obj
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: lusid-sdk
|
3
|
-
Version: 2.1.
|
3
|
+
Version: 2.1.900
|
4
4
|
Summary: LUSID API
|
5
5
|
Home-page: https://github.com/finbourne/lusid-sdk-python
|
6
6
|
License: MIT
|
@@ -1926,7 +1926,6 @@ Class | Method | HTTP request | Description
|
|
1926
1926
|
- [ValuationPointDataQueryParameters](docs/ValuationPointDataQueryParameters.md)
|
1927
1927
|
- [ValuationPointDataRequest](docs/ValuationPointDataRequest.md)
|
1928
1928
|
- [ValuationPointDataResponse](docs/ValuationPointDataResponse.md)
|
1929
|
-
- [ValuationPointFundCalendarEntry](docs/ValuationPointFundCalendarEntry.md)
|
1930
1929
|
- [ValuationPointOverview](docs/ValuationPointOverview.md)
|
1931
1930
|
- [ValuationPointResourceListOfAccountedTransaction](docs/ValuationPointResourceListOfAccountedTransaction.md)
|
1932
1931
|
- [ValuationPointResourceListOfFundJournalEntryLine](docs/ValuationPointResourceListOfFundJournalEntryLine.md)
|
@@ -1,4 +1,4 @@
|
|
1
|
-
lusid/__init__.py,sha256=
|
1
|
+
lusid/__init__.py,sha256=Wg4SrSTCR2FAFVyetQ1IddxzJwIKE0HrtYOajd9SJI8,145222
|
2
2
|
lusid/api/__init__.py,sha256=yCGwgeQBZ1RZovOUo7Jq24Txz4o6naRgnWAzQVGdHAk,6784
|
3
3
|
lusid/api/abor_api.py,sha256=N7Wsh0395mXOvpJI8z0Nrx5OY4nCP5FN9RkbtdHaZbM,165987
|
4
4
|
lusid/api/abor_configuration_api.py,sha256=xQ9HcXm02eDFhCdWUHjqFRWl1oQMxm2LNObJ9kcLauU,84216
|
@@ -80,7 +80,7 @@ lusid/api/translation_api.py,sha256=xpRuTfwQvYBlWe6r_L2EI_uVpXqHFnEOim-i-kVQ85E,
|
|
80
80
|
lusid/api/workspace_api.py,sha256=0pCNi3ZCRbIo0NXKa85XE7vtq0WV5YOKcQKvFlcLUaY,120708
|
81
81
|
lusid/api_client.py,sha256=ewMTmf9SRurY8pYnUx9jy24RdldPCOa4US38pnrVxjA,31140
|
82
82
|
lusid/api_response.py,sha256=6-gnhty6lu8MMAERt3_kTVD7UxQgWFfcjgpcq6iN5IU,855
|
83
|
-
lusid/configuration.py,sha256=
|
83
|
+
lusid/configuration.py,sha256=onu-7WW9CSNJq9MV1X7eXzESJoDrNx2-HsWY6rMV4Sk,17980
|
84
84
|
lusid/exceptions.py,sha256=HIQwgmQrszLlcVCLaqex8dO0laVuejUyOMz7U2ZWJ6s,5326
|
85
85
|
lusid/extensions/__init__.py,sha256=dzDHEzpn-9smd2-_UMWQzeyX6Ha4jGf6fnqx7qxKxNI,630
|
86
86
|
lusid/extensions/api_client.py,sha256=GzygWg_h603QK1QS2HvAijuE2R1TnvoF6-Yg0CeM3ug,30943
|
@@ -95,7 +95,7 @@ lusid/extensions/rest.py,sha256=dp-bD_LMR2zAL1tmC3-urhWKLomXx7r5iGN1VteMBVQ,1601
|
|
95
95
|
lusid/extensions/retry.py,sha256=EhW9OKJmGHipxN3H7eROH5DiMlAnfBVl95NQrttcsdg,14834
|
96
96
|
lusid/extensions/socket_keep_alive.py,sha256=eX5ICvGfVzUCGIm80Q2RknfFZrBQAdnrcpY61M29V_k,1997
|
97
97
|
lusid/extensions/tcp_keep_alive_connector.py,sha256=zaGtUsygRsxB1_4B3x39K3ILwztdhMLDv5bFZV7zmGE,3877
|
98
|
-
lusid/models/__init__.py,sha256=
|
98
|
+
lusid/models/__init__.py,sha256=_0452qexrWGXoUlM-IOdUwp8eYjXWiatcdvnSAgnC3o,137406
|
99
99
|
lusid/models/a2_b_breakdown.py,sha256=-FXgILrvtZXQDmvS0ARaJVGBq5LJ4AH-o3HjujFVmS4,3198
|
100
100
|
lusid/models/a2_b_category.py,sha256=WunXUgx-dCnApPeLC8Qo5tVCX8Ywxkehib1vmNqNgNs,2957
|
101
101
|
lusid/models/a2_b_data_record.py,sha256=qANTmV1_HUEo4l72-F8qzZjlQxOe0Onc9WPz7h-WWuY,9993
|
@@ -512,7 +512,7 @@ lusid/models/forward_rate_agreement.py,sha256=2huB94ltI8O9UKnFXc2oAYz278FMwPnaFE
|
|
512
512
|
lusid/models/from_recipe.py,sha256=yUnu4kUNme_mFEHE9p-N6k-ETFBNxvmjsL8u2fKIHyk,2538
|
513
513
|
lusid/models/fund.py,sha256=YWMy0wrbBPv5ExNwugI8EelMbRhHvx1ap-TgjtgnMms,11904
|
514
514
|
lusid/models/fund_amount.py,sha256=xGFl9O7wn4GTCaMq_SxSkzzo_9Pw3scDIDm3835C64Q,2132
|
515
|
-
lusid/models/fund_calendar_entry.py,sha256=
|
515
|
+
lusid/models/fund_calendar_entry.py,sha256=2Y55vFUsTjYH2MGwiISlIK-DAokoUQsmeO4CiLIXop8,8253
|
516
516
|
lusid/models/fund_calendar_entry_type.py,sha256=QiQwfo_IXs4gOWgS4LSOVyBiflltFK4Ot1BcBP2kBJo,718
|
517
517
|
lusid/models/fund_configuration.py,sha256=wC-L5FcOKsoep9C4in6LFrDigHKdB_q2Zno2L-wpVqo,9606
|
518
518
|
lusid/models/fund_configuration_properties.py,sha256=b-4hJF9TltJf3lmaSyDjeGUhjjhxbs_-kYZ0MpM8kgk,4620
|
@@ -1131,7 +1131,7 @@ lusid/models/set_transaction_configuration_alias.py,sha256=HXqUSsfc9BpUxDqQsWuCu
|
|
1131
1131
|
lusid/models/set_transaction_configuration_source_request.py,sha256=onioX-Oi4zG91Cs0weO0oqRpdiD-BQgHLzYRlEmmr0I,4458
|
1132
1132
|
lusid/models/settlement_configuration_category.py,sha256=Bmy5aesdk7MEpxgk5KyRVY0l9pB92iEtyYCdPZAcOos,2797
|
1133
1133
|
lusid/models/settlement_cycle.py,sha256=0L4GedRTJ9kTTmIzwGo9EeMhQwbuPG8TfgMHpCVBAtk,2746
|
1134
|
-
lusid/models/settlement_instruction_request.py,sha256=
|
1134
|
+
lusid/models/settlement_instruction_request.py,sha256=qwI3DbnoT05Kec18syGv8mAtfSKccgT-bG6gXpAEh9A,5215
|
1135
1135
|
lusid/models/settlement_schedule.py,sha256=dORUF8oOBIFnlnH8BTFpXOXUSDIrdDFurs91Nz_v8LI,2818
|
1136
1136
|
lusid/models/share_class_amount.py,sha256=ZQTWOV3Wvq4MVOmeNN6orybodEcvhx6oqgn51ki6vOw,2561
|
1137
1137
|
lusid/models/share_class_breakdown.py,sha256=eyxIfrun-A-cKeUxJa_s_ofGWCC7d-62L_MWz5QajXQ,7914
|
@@ -1219,7 +1219,7 @@ lusid/models/transaction_request.py,sha256=s6OVPLAxPDbUMU4gLN_XNX9ngdlKdPBgGeRDB
|
|
1219
1219
|
lusid/models/transaction_roles.py,sha256=1r-BzcchffLl6p4lSUhRAUmsVdrl7Bvce2cCiwxJanE,839
|
1220
1220
|
lusid/models/transaction_set_configuration_data.py,sha256=hgtBUJzYyJlOj11GTpTkY05Sqdcd4SdNY2gFhP3Zzis,4643
|
1221
1221
|
lusid/models/transaction_set_configuration_data_request.py,sha256=Nq8DEDlONeOEJ_XHqKAcKaOlRibqrjfh06xo-RNQdbs,4179
|
1222
|
-
lusid/models/transaction_settlement_instruction.py,sha256=
|
1222
|
+
lusid/models/transaction_settlement_instruction.py,sha256=BaNYcuwnQmlGjD2l6Kl8rlaava3sDdIpi0PPNFRkilQ,6029
|
1223
1223
|
lusid/models/transaction_status.py,sha256=8b1pF1I7A3PzeZmStCXvnhqcDsPSlo8fQnnNQFYGZlA,812
|
1224
1224
|
lusid/models/transaction_template.py,sha256=mFZdjodcv7BQZEb4V0chCUiMc7mz_VgYF2CPppev3Fo,4351
|
1225
1225
|
lusid/models/transaction_template_request.py,sha256=5zZKzBg5bl_1XWq4T9rO3HbzRfoQOYz3XDFH0OdXBeY,3088
|
@@ -1336,7 +1336,6 @@ lusid/models/user.py,sha256=w0Ci15MQI00_eoPaUiWnHnPDzDThuAAR3g4UvlsHt9I,2273
|
|
1336
1336
|
lusid/models/valuation_point_data_query_parameters.py,sha256=y3zPKw_ygbFGIhxv9Og3xcw-zRU2IF1Koc2SoS4ci4s,2826
|
1337
1337
|
lusid/models/valuation_point_data_request.py,sha256=3haNAxaWwqsd_AhNuf5rxuPC4ehEd9LZiH2TgOG59NI,2274
|
1338
1338
|
lusid/models/valuation_point_data_response.py,sha256=b1YVkLsk4Jr1HgjYMwlqvovYgu6supAdRolHKwWwUo4,6759
|
1339
|
-
lusid/models/valuation_point_fund_calendar_entry.py,sha256=BX7hnOeLhcNV2ne8ajlozKbaGRsdHpCgnxojT8d6jNY,8756
|
1340
1339
|
lusid/models/valuation_point_overview.py,sha256=91p71fdjFacSMBc3hpd0f9oWtvjuMfmG7Z3IsPhLPHg,5952
|
1341
1340
|
lusid/models/valuation_point_resource_list_of_accounted_transaction.py,sha256=OGdk06THfLMFFXAe0Vq79KeI61dLJXz5UEEUF7rByR4,5541
|
1342
1341
|
lusid/models/valuation_point_resource_list_of_fund_journal_entry_line.py,sha256=wtoGMyc07w7IUadLy_bGIUvexvoY_M50_XDai1Oj4Mg,5543
|
@@ -1379,6 +1378,6 @@ lusid/models/year_month_day.py,sha256=gwSoxFwlD_wffKdddo1wfvAcLq3Cht3FHQidiaHzAA
|
|
1379
1378
|
lusid/models/yield_curve_data.py,sha256=I1ZSWxHMgUxj9OQt6i9a4S91KB4_XtmrfFxpN_PV3YQ,9561
|
1380
1379
|
lusid/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
1381
1380
|
lusid/rest.py,sha256=HQT__5LQEMu6_1sLKvYj-DI4FH1DJXBIPYfZCTTyrY4,13431
|
1382
|
-
lusid_sdk-2.1.
|
1383
|
-
lusid_sdk-2.1.
|
1384
|
-
lusid_sdk-2.1.
|
1381
|
+
lusid_sdk-2.1.900.dist-info/METADATA,sha256=KifZQdVoL2OkEs1hviEXFAfwlup3z8PKekVWxZxYqZ8,230738
|
1382
|
+
lusid_sdk-2.1.900.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
1383
|
+
lusid_sdk-2.1.900.dist-info/RECORD,,
|
@@ -1,181 +0,0 @@
|
|
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
|
-
from datetime import datetime
|
21
|
-
from typing import Any, Dict, Optional
|
22
|
-
from pydantic.v1 import StrictStr, Field, Field, StrictStr, constr, validator
|
23
|
-
from lusid.models.fund_calendar_entry import FundCalendarEntry
|
24
|
-
from lusid.models.version import Version
|
25
|
-
|
26
|
-
class ValuationPointFundCalendarEntry(FundCalendarEntry):
|
27
|
-
"""
|
28
|
-
ValuationPointFundCalendarEntry
|
29
|
-
"""
|
30
|
-
code: StrictStr = Field(...,alias="code", description="The unique Code of the Calendar Entry. The Calendar Entry, together with the Fund Scope and Code, uniquely identifies a Fund Calendar Entry")
|
31
|
-
display_name: StrictStr = Field(...,alias="displayName", description="The name of the Fund Calendar entry.")
|
32
|
-
description: Optional[StrictStr] = Field(None,alias="description", description="A description for the Fund Calendar entry.")
|
33
|
-
nav_type_code: StrictStr = Field(...,alias="navTypeCode", description="The navTypeCode of the Fund Calendar Entry. This is the code of the NAV type that this Calendar Entry is associated with.")
|
34
|
-
effective_at: datetime = Field(..., alias="effectiveAt", description="The effective at of the Calendar Entry.")
|
35
|
-
as_at: datetime = Field(..., alias="asAt", description="The asAt datetime for the Calendar Entry.")
|
36
|
-
status: StrictStr = Field(...,alias="status", description="The status of the Fund Calendar Entry. Can be 'Estimate', 'Candidate' or 'Final'.")
|
37
|
-
version: Version = Field(...)
|
38
|
-
href: Optional[StrictStr] = Field(None,alias="href", description="The specific Uniform Resource Identifier (URI) for this resource at the requested asAt datetime.")
|
39
|
-
entry_type: StrictStr = Field(...,alias="entryType", description="The type of the Fund Calendar Entry. Only 'ValuationPoint' currently supported. The available values are: ValuationPointFundCalendarEntry")
|
40
|
-
additional_properties: Dict[str, Any] = {}
|
41
|
-
__properties = ["entryType", "code", "displayName", "description", "navTypeCode", "effectiveAt", "asAt", "status", "version", "href"]
|
42
|
-
|
43
|
-
@validator('entry_type')
|
44
|
-
def entry_type_validate_enum(cls, value):
|
45
|
-
"""Validates the enum"""
|
46
|
-
|
47
|
-
# Finbourne have removed enum validation on all models, except for this use case:
|
48
|
-
# Workflow and notification application SDK use the property name 'type' as the discriminator on a number of classes.
|
49
|
-
# During instantiation, the value of 'type' is checked against the enum values,
|
50
|
-
|
51
|
-
|
52
|
-
# check it's a class that uses the 'type' property as a discriminator
|
53
|
-
# list of classes can be found by searching for 'actual_instance: Union[' in the generated code
|
54
|
-
if 'ValuationPointFundCalendarEntry' not in [
|
55
|
-
# For notification application classes
|
56
|
-
'AmazonSqsNotificationType',
|
57
|
-
'AmazonSqsNotificationTypeResponse',
|
58
|
-
'AmazonSqsPrincipalAuthNotificationType',
|
59
|
-
'AmazonSqsPrincipalAuthNotificationTypeResponse',
|
60
|
-
'AzureServiceBusTypeResponse',
|
61
|
-
'AzureServiceBusNotificationType',
|
62
|
-
'EmailNotificationType',
|
63
|
-
'EmailNotificationTypeResponse',
|
64
|
-
'SmsNotificationType',
|
65
|
-
'SmsNotificationTypeResponse',
|
66
|
-
'WebhookNotificationType',
|
67
|
-
'WebhookNotificationTypeResponse',
|
68
|
-
|
69
|
-
# For workflow application classes
|
70
|
-
'CreateChildTasksAction',
|
71
|
-
'RunWorkerAction',
|
72
|
-
'TriggerParentTaskAction',
|
73
|
-
'CreateChildTasksActionResponse',
|
74
|
-
'RunWorkerActionResponse',
|
75
|
-
'TriggerParentTaskActionResponse',
|
76
|
-
'CreateNewTaskActivity',
|
77
|
-
'UpdateMatchingTasksActivity',
|
78
|
-
'CreateNewTaskActivityResponse',
|
79
|
-
'UpdateMatchingTasksActivityResponse',
|
80
|
-
'Fail',
|
81
|
-
'GroupReconciliation',
|
82
|
-
'HealthCheck',
|
83
|
-
'LuminesceView',
|
84
|
-
'SchedulerJob',
|
85
|
-
'Sleep',
|
86
|
-
'FailResponse',
|
87
|
-
'GroupReconciliationResponse',
|
88
|
-
'HealthCheckResponse',
|
89
|
-
'LuminesceViewResponse',
|
90
|
-
'SchedulerJobResponse',
|
91
|
-
'SleepResponse']:
|
92
|
-
return value
|
93
|
-
|
94
|
-
# Only validate the 'type' property of the class
|
95
|
-
if "entry_type" != "type":
|
96
|
-
return value
|
97
|
-
|
98
|
-
if value not in ('ValuationPointFundCalendarEntry'):
|
99
|
-
raise ValueError("must be one of enum values ('ValuationPointFundCalendarEntry')")
|
100
|
-
return value
|
101
|
-
|
102
|
-
class Config:
|
103
|
-
"""Pydantic configuration"""
|
104
|
-
allow_population_by_field_name = True
|
105
|
-
validate_assignment = True
|
106
|
-
|
107
|
-
def __str__(self):
|
108
|
-
"""For `print` and `pprint`"""
|
109
|
-
return pprint.pformat(self.dict(by_alias=False))
|
110
|
-
|
111
|
-
def __repr__(self):
|
112
|
-
"""For `print` and `pprint`"""
|
113
|
-
return self.to_str()
|
114
|
-
|
115
|
-
def to_str(self) -> str:
|
116
|
-
"""Returns the string representation of the model using alias"""
|
117
|
-
return pprint.pformat(self.dict(by_alias=True))
|
118
|
-
|
119
|
-
def to_json(self) -> str:
|
120
|
-
"""Returns the JSON representation of the model using alias"""
|
121
|
-
return json.dumps(self.to_dict())
|
122
|
-
|
123
|
-
@classmethod
|
124
|
-
def from_json(cls, json_str: str) -> ValuationPointFundCalendarEntry:
|
125
|
-
"""Create an instance of ValuationPointFundCalendarEntry from a JSON string"""
|
126
|
-
return cls.from_dict(json.loads(json_str))
|
127
|
-
|
128
|
-
def to_dict(self):
|
129
|
-
"""Returns the dictionary representation of the model using alias"""
|
130
|
-
_dict = self.dict(by_alias=True,
|
131
|
-
exclude={
|
132
|
-
"additional_properties"
|
133
|
-
},
|
134
|
-
exclude_none=True)
|
135
|
-
# override the default output from pydantic by calling `to_dict()` of version
|
136
|
-
if self.version:
|
137
|
-
_dict['version'] = self.version.to_dict()
|
138
|
-
# puts key-value pairs in additional_properties in the top level
|
139
|
-
if self.additional_properties is not None:
|
140
|
-
for _key, _value in self.additional_properties.items():
|
141
|
-
_dict[_key] = _value
|
142
|
-
|
143
|
-
# set to None if description (nullable) is None
|
144
|
-
# and __fields_set__ contains the field
|
145
|
-
if self.description is None and "description" in self.__fields_set__:
|
146
|
-
_dict['description'] = None
|
147
|
-
|
148
|
-
# set to None if href (nullable) is None
|
149
|
-
# and __fields_set__ contains the field
|
150
|
-
if self.href is None and "href" in self.__fields_set__:
|
151
|
-
_dict['href'] = None
|
152
|
-
|
153
|
-
return _dict
|
154
|
-
|
155
|
-
@classmethod
|
156
|
-
def from_dict(cls, obj: dict) -> ValuationPointFundCalendarEntry:
|
157
|
-
"""Create an instance of ValuationPointFundCalendarEntry from a dict"""
|
158
|
-
if obj is None:
|
159
|
-
return None
|
160
|
-
|
161
|
-
if not isinstance(obj, dict):
|
162
|
-
return ValuationPointFundCalendarEntry.parse_obj(obj)
|
163
|
-
|
164
|
-
_obj = ValuationPointFundCalendarEntry.parse_obj({
|
165
|
-
"entry_type": obj.get("entryType"),
|
166
|
-
"code": obj.get("code"),
|
167
|
-
"display_name": obj.get("displayName"),
|
168
|
-
"description": obj.get("description"),
|
169
|
-
"nav_type_code": obj.get("navTypeCode"),
|
170
|
-
"effective_at": obj.get("effectiveAt"),
|
171
|
-
"as_at": obj.get("asAt"),
|
172
|
-
"status": obj.get("status"),
|
173
|
-
"version": Version.from_dict(obj.get("version")) if obj.get("version") is not None else None,
|
174
|
-
"href": obj.get("href")
|
175
|
-
})
|
176
|
-
# store additional fields in additional_properties
|
177
|
-
for _key in obj.keys():
|
178
|
-
if _key not in cls.__properties:
|
179
|
-
_obj.additional_properties[_key] = obj.get(_key)
|
180
|
-
|
181
|
-
return _obj
|
File without changes
|