lusid-sdk 2.1.928__py3-none-any.whl → 2.1.930__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 +2 -0
- lusid/configuration.py +1 -1
- lusid/models/__init__.py +2 -0
- lusid/models/account_holder.py +2 -15
- lusid/models/account_holder_identifier.py +3 -16
- lusid/models/fund_calendar_entry.py +7 -1
- lusid/models/investment_portfolio.py +6 -6
- lusid/models/investment_portfolio_identifier.py +6 -6
- lusid/models/investor.py +2 -15
- lusid/models/investor_identifier.py +3 -16
- lusid/models/previous_fund_calendar_entry.py +90 -0
- {lusid_sdk-2.1.928.dist-info → lusid_sdk-2.1.930.dist-info}/METADATA +2 -1
- {lusid_sdk-2.1.928.dist-info → lusid_sdk-2.1.930.dist-info}/RECORD +14 -13
- {lusid_sdk-2.1.928.dist-info → lusid_sdk-2.1.930.dist-info}/WHEEL +0 -0
lusid/__init__.py
CHANGED
@@ -938,6 +938,7 @@ from lusid.models.posting_module_rule import PostingModuleRule
|
|
938
938
|
from lusid.models.posting_module_rules_updated_response import PostingModuleRulesUpdatedResponse
|
939
939
|
from lusid.models.pre_trade_configuration import PreTradeConfiguration
|
940
940
|
from lusid.models.premium import Premium
|
941
|
+
from lusid.models.previous_fund_calendar_entry import PreviousFundCalendarEntry
|
941
942
|
from lusid.models.previous_fund_valuation_point_data import PreviousFundValuationPointData
|
942
943
|
from lusid.models.previous_nav import PreviousNAV
|
943
944
|
from lusid.models.previous_share_class_breakdown import PreviousShareClassBreakdown
|
@@ -2317,6 +2318,7 @@ __all__ = [
|
|
2317
2318
|
"PostingModuleRulesUpdatedResponse",
|
2318
2319
|
"PreTradeConfiguration",
|
2319
2320
|
"Premium",
|
2321
|
+
"PreviousFundCalendarEntry",
|
2320
2322
|
"PreviousFundValuationPointData",
|
2321
2323
|
"PreviousNAV",
|
2322
2324
|
"PreviousShareClassBreakdown",
|
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.8228\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
@@ -847,6 +847,7 @@ from lusid.models.posting_module_rule import PostingModuleRule
|
|
847
847
|
from lusid.models.posting_module_rules_updated_response import PostingModuleRulesUpdatedResponse
|
848
848
|
from lusid.models.pre_trade_configuration import PreTradeConfiguration
|
849
849
|
from lusid.models.premium import Premium
|
850
|
+
from lusid.models.previous_fund_calendar_entry import PreviousFundCalendarEntry
|
850
851
|
from lusid.models.previous_fund_valuation_point_data import PreviousFundValuationPointData
|
851
852
|
from lusid.models.previous_nav import PreviousNAV
|
852
853
|
from lusid.models.previous_share_class_breakdown import PreviousShareClassBreakdown
|
@@ -2136,6 +2137,7 @@ __all__ = [
|
|
2136
2137
|
"PostingModuleRulesUpdatedResponse",
|
2137
2138
|
"PreTradeConfiguration",
|
2138
2139
|
"Premium",
|
2140
|
+
"PreviousFundCalendarEntry",
|
2139
2141
|
"PreviousFundValuationPointData",
|
2140
2142
|
"PreviousNAV",
|
2141
2143
|
"PreviousShareClassBreakdown",
|
lusid/models/account_holder.py
CHANGED
@@ -21,7 +21,6 @@ import json
|
|
21
21
|
from typing import Any, Dict, Optional
|
22
22
|
from pydantic.v1 import StrictStr, Field, BaseModel, Field, StrictStr
|
23
23
|
from lusid.models.investor_record import InvestorRecord
|
24
|
-
from lusid.models.model_property import ModelProperty
|
25
24
|
|
26
25
|
class AccountHolder(BaseModel):
|
27
26
|
"""
|
@@ -29,7 +28,7 @@ class AccountHolder(BaseModel):
|
|
29
28
|
"""
|
30
29
|
key: Optional[StrictStr] = Field(None,alias="key", description="A client-defined key used to identify the Account Holder, unique within the Investment Account")
|
31
30
|
scope: Optional[StrictStr] = Field(None,alias="scope", description="The scope in which the Investor Record lies.")
|
32
|
-
identifiers: Optional[Dict[str,
|
31
|
+
identifiers: Optional[Dict[str, StrictStr]] = Field(None, description="Single Account Holder identifier that should target the desired Investor Record.")
|
33
32
|
entity_unique_id: Optional[StrictStr] = Field(None,alias="entityUniqueId", description="The unique InvestorRecord entity identifier")
|
34
33
|
investor_record: Optional[InvestorRecord] = Field(None, alias="investorRecord")
|
35
34
|
__properties = ["key", "scope", "identifiers", "entityUniqueId", "investorRecord"]
|
@@ -66,13 +65,6 @@ class AccountHolder(BaseModel):
|
|
66
65
|
exclude={
|
67
66
|
},
|
68
67
|
exclude_none=True)
|
69
|
-
# override the default output from pydantic by calling `to_dict()` of each value in identifiers (dict)
|
70
|
-
_field_dict = {}
|
71
|
-
if self.identifiers:
|
72
|
-
for _key in self.identifiers:
|
73
|
-
if self.identifiers[_key]:
|
74
|
-
_field_dict[_key] = self.identifiers[_key].to_dict()
|
75
|
-
_dict['identifiers'] = _field_dict
|
76
68
|
# override the default output from pydantic by calling `to_dict()` of investor_record
|
77
69
|
if self.investor_record:
|
78
70
|
_dict['investorRecord'] = self.investor_record.to_dict()
|
@@ -110,12 +102,7 @@ class AccountHolder(BaseModel):
|
|
110
102
|
_obj = AccountHolder.parse_obj({
|
111
103
|
"key": obj.get("key"),
|
112
104
|
"scope": obj.get("scope"),
|
113
|
-
"identifiers":
|
114
|
-
(_k, ModelProperty.from_dict(_v))
|
115
|
-
for _k, _v in obj.get("identifiers").items()
|
116
|
-
)
|
117
|
-
if obj.get("identifiers") is not None
|
118
|
-
else None,
|
105
|
+
"identifiers": obj.get("identifiers"),
|
119
106
|
"entity_unique_id": obj.get("entityUniqueId"),
|
120
107
|
"investor_record": InvestorRecord.from_dict(obj.get("investorRecord")) if obj.get("investorRecord") is not None else None
|
121
108
|
})
|
@@ -19,8 +19,7 @@ import json
|
|
19
19
|
|
20
20
|
|
21
21
|
from typing import Any, Dict
|
22
|
-
from pydantic.v1 import StrictStr, Field, BaseModel, Field, constr, validator
|
23
|
-
from lusid.models.model_property import ModelProperty
|
22
|
+
from pydantic.v1 import StrictStr, Field, BaseModel, Field, StrictStr, constr, validator
|
24
23
|
|
25
24
|
class AccountHolderIdentifier(BaseModel):
|
26
25
|
"""
|
@@ -28,7 +27,7 @@ class AccountHolderIdentifier(BaseModel):
|
|
28
27
|
"""
|
29
28
|
key: StrictStr = Field(...,alias="key", description="A client-defined key used to identify the Account Holder, unique within the Investment Account")
|
30
29
|
scope: StrictStr = Field(...,alias="scope", description="The scope in which the Investor Record lies.")
|
31
|
-
identifiers: Dict[str,
|
30
|
+
identifiers: Dict[str, StrictStr] = Field(..., description="Single Account Holder identifier that should target the desired Investor Record.")
|
32
31
|
__properties = ["key", "scope", "identifiers"]
|
33
32
|
|
34
33
|
class Config:
|
@@ -63,13 +62,6 @@ class AccountHolderIdentifier(BaseModel):
|
|
63
62
|
exclude={
|
64
63
|
},
|
65
64
|
exclude_none=True)
|
66
|
-
# override the default output from pydantic by calling `to_dict()` of each value in identifiers (dict)
|
67
|
-
_field_dict = {}
|
68
|
-
if self.identifiers:
|
69
|
-
for _key in self.identifiers:
|
70
|
-
if self.identifiers[_key]:
|
71
|
-
_field_dict[_key] = self.identifiers[_key].to_dict()
|
72
|
-
_dict['identifiers'] = _field_dict
|
73
65
|
return _dict
|
74
66
|
|
75
67
|
@classmethod
|
@@ -84,11 +76,6 @@ class AccountHolderIdentifier(BaseModel):
|
|
84
76
|
_obj = AccountHolderIdentifier.parse_obj({
|
85
77
|
"key": obj.get("key"),
|
86
78
|
"scope": obj.get("scope"),
|
87
|
-
"identifiers":
|
88
|
-
(_k, ModelProperty.from_dict(_v))
|
89
|
-
for _k, _v in obj.get("identifiers").items()
|
90
|
-
)
|
91
|
-
if obj.get("identifiers") is not None
|
92
|
-
else None
|
79
|
+
"identifiers": obj.get("identifiers")
|
93
80
|
})
|
94
81
|
return _obj
|
@@ -21,6 +21,7 @@ from datetime import datetime
|
|
21
21
|
from typing import Any, Dict, Optional
|
22
22
|
from pydantic.v1 import StrictStr, Field, BaseModel, Field, StrictBool, StrictStr, constr, validator
|
23
23
|
from lusid.models.model_property import ModelProperty
|
24
|
+
from lusid.models.previous_fund_calendar_entry import PreviousFundCalendarEntry
|
24
25
|
from lusid.models.version import Version
|
25
26
|
|
26
27
|
class FundCalendarEntry(BaseModel):
|
@@ -31,6 +32,7 @@ class FundCalendarEntry(BaseModel):
|
|
31
32
|
display_name: StrictStr = Field(...,alias="displayName", description="The name of the Fund Calendar entry.")
|
32
33
|
description: Optional[StrictStr] = Field(None,alias="description", description="A description for the Fund Calendar entry.")
|
33
34
|
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.")
|
35
|
+
previous_entry: Optional[PreviousFundCalendarEntry] = Field(None, alias="previousEntry")
|
34
36
|
effective_at: Optional[datetime] = Field(None, alias="effectiveAt", description="The effective at of the Calendar Entry.")
|
35
37
|
as_at: datetime = Field(..., alias="asAt", description="The asAt datetime for the Calendar Entry.")
|
36
38
|
entry_type: StrictStr = Field(...,alias="entryType", description="The type of the Fund Calendar Entry. Only 'ValuationPoint' currently supported. The available values are: ValuationPointFundCalendarEntry, BookmarkFundCalendarEntry")
|
@@ -39,7 +41,7 @@ class FundCalendarEntry(BaseModel):
|
|
39
41
|
properties: Optional[Dict[str, ModelProperty]] = Field(None, description="The properties for the Calendar Entry. These will be from the 'ClosedPeriod' domain.")
|
40
42
|
version: Version = Field(...)
|
41
43
|
href: Optional[StrictStr] = Field(None,alias="href", description="The specific Uniform Resource Identifier (URI) for this resource at the requested asAt datetime.")
|
42
|
-
__properties = ["code", "displayName", "description", "navTypeCode", "effectiveAt", "asAt", "entryType", "status", "applyClearDown", "properties", "version", "href"]
|
44
|
+
__properties = ["code", "displayName", "description", "navTypeCode", "previousEntry", "effectiveAt", "asAt", "entryType", "status", "applyClearDown", "properties", "version", "href"]
|
43
45
|
|
44
46
|
@validator('entry_type')
|
45
47
|
def entry_type_validate_enum(cls, value):
|
@@ -132,6 +134,9 @@ class FundCalendarEntry(BaseModel):
|
|
132
134
|
exclude={
|
133
135
|
},
|
134
136
|
exclude_none=True)
|
137
|
+
# override the default output from pydantic by calling `to_dict()` of previous_entry
|
138
|
+
if self.previous_entry:
|
139
|
+
_dict['previousEntry'] = self.previous_entry.to_dict()
|
135
140
|
# override the default output from pydantic by calling `to_dict()` of each value in properties (dict)
|
136
141
|
_field_dict = {}
|
137
142
|
if self.properties:
|
@@ -178,6 +183,7 @@ class FundCalendarEntry(BaseModel):
|
|
178
183
|
"display_name": obj.get("displayName"),
|
179
184
|
"description": obj.get("description"),
|
180
185
|
"nav_type_code": obj.get("navTypeCode"),
|
186
|
+
"previous_entry": PreviousFundCalendarEntry.from_dict(obj.get("previousEntry")) if obj.get("previousEntry") is not None else None,
|
181
187
|
"effective_at": obj.get("effectiveAt"),
|
182
188
|
"as_at": obj.get("asAt"),
|
183
189
|
"entry_type": obj.get("entryType"),
|
@@ -28,10 +28,10 @@ class InvestmentPortfolio(BaseModel):
|
|
28
28
|
"""
|
29
29
|
key: Optional[StrictStr] = Field(None,alias="key", description="A client-defined key used to identify the Investment Portfolio, unique within the Investment Account")
|
30
30
|
scope: Optional[StrictStr] = Field(None,alias="scope", description="The scope of the Investment Portfolio")
|
31
|
-
|
31
|
+
identifiers: Optional[Dict[str, StrictStr]] = Field(None, description="The code identifier of the Investment Portfolio")
|
32
32
|
entity_unique_id: Optional[StrictStr] = Field(None,alias="entityUniqueId", description="The unique Portfolio entity identifier")
|
33
33
|
portfolio: Optional[Portfolio] = None
|
34
|
-
__properties = ["key", "scope", "
|
34
|
+
__properties = ["key", "scope", "identifiers", "entityUniqueId", "portfolio"]
|
35
35
|
|
36
36
|
class Config:
|
37
37
|
"""Pydantic configuration"""
|
@@ -78,10 +78,10 @@ class InvestmentPortfolio(BaseModel):
|
|
78
78
|
if self.scope is None and "scope" in self.__fields_set__:
|
79
79
|
_dict['scope'] = None
|
80
80
|
|
81
|
-
# set to None if
|
81
|
+
# set to None if identifiers (nullable) is None
|
82
82
|
# and __fields_set__ contains the field
|
83
|
-
if self.
|
84
|
-
_dict['
|
83
|
+
if self.identifiers is None and "identifiers" in self.__fields_set__:
|
84
|
+
_dict['identifiers'] = None
|
85
85
|
|
86
86
|
# set to None if entity_unique_id (nullable) is None
|
87
87
|
# and __fields_set__ contains the field
|
@@ -102,7 +102,7 @@ class InvestmentPortfolio(BaseModel):
|
|
102
102
|
_obj = InvestmentPortfolio.parse_obj({
|
103
103
|
"key": obj.get("key"),
|
104
104
|
"scope": obj.get("scope"),
|
105
|
-
"
|
105
|
+
"identifiers": obj.get("identifiers"),
|
106
106
|
"entity_unique_id": obj.get("entityUniqueId"),
|
107
107
|
"portfolio": Portfolio.from_dict(obj.get("portfolio")) if obj.get("portfolio") is not None else None
|
108
108
|
})
|
@@ -19,16 +19,16 @@ import json
|
|
19
19
|
|
20
20
|
|
21
21
|
from typing import Any, Dict
|
22
|
-
from pydantic.v1 import StrictStr, Field, BaseModel, Field, constr, validator
|
22
|
+
from pydantic.v1 import StrictStr, Field, BaseModel, Field, StrictStr, constr, validator
|
23
23
|
|
24
24
|
class InvestmentPortfolioIdentifier(BaseModel):
|
25
25
|
"""
|
26
26
|
InvestmentPortfolioIdentifier
|
27
27
|
"""
|
28
28
|
key: StrictStr = Field(...,alias="key", description="A client-defined key used to identify the Investment Portfolio, unique within the Investment Account")
|
29
|
-
|
30
|
-
|
31
|
-
__properties = ["key", "
|
29
|
+
scope: StrictStr = Field(...,alias="scope", description="The scope of the Investment Portfolio.")
|
30
|
+
identifiers: Dict[str, StrictStr] = Field(..., description="The code identifier of the Investment Portfolio.")
|
31
|
+
__properties = ["key", "scope", "identifiers"]
|
32
32
|
|
33
33
|
class Config:
|
34
34
|
"""Pydantic configuration"""
|
@@ -75,7 +75,7 @@ class InvestmentPortfolioIdentifier(BaseModel):
|
|
75
75
|
|
76
76
|
_obj = InvestmentPortfolioIdentifier.parse_obj({
|
77
77
|
"key": obj.get("key"),
|
78
|
-
"
|
79
|
-
"
|
78
|
+
"scope": obj.get("scope"),
|
79
|
+
"identifiers": obj.get("identifiers")
|
80
80
|
})
|
81
81
|
return _obj
|
lusid/models/investor.py
CHANGED
@@ -21,7 +21,6 @@ import json
|
|
21
21
|
from typing import Any, Dict, Optional
|
22
22
|
from pydantic.v1 import StrictStr, Field, BaseModel, Field, StrictStr
|
23
23
|
from lusid.models.legal_entity import LegalEntity
|
24
|
-
from lusid.models.model_property import ModelProperty
|
25
24
|
from lusid.models.person import Person
|
26
25
|
|
27
26
|
class Investor(BaseModel):
|
@@ -29,7 +28,7 @@ class Investor(BaseModel):
|
|
29
28
|
Representation of an Investor on the LUSID API # noqa: E501
|
30
29
|
"""
|
31
30
|
investor_type: Optional[StrictStr] = Field(None,alias="investorType", description="The type of the Investor")
|
32
|
-
identifiers: Optional[Dict[str,
|
31
|
+
identifiers: Optional[Dict[str, StrictStr]] = Field(None, description="The identifiers of the Investor")
|
33
32
|
entity_unique_id: Optional[StrictStr] = Field(None,alias="entityUniqueId", description="The unique Investor entity identifier")
|
34
33
|
person: Optional[Person] = None
|
35
34
|
legal_entity: Optional[LegalEntity] = Field(None, alias="legalEntity")
|
@@ -67,13 +66,6 @@ class Investor(BaseModel):
|
|
67
66
|
exclude={
|
68
67
|
},
|
69
68
|
exclude_none=True)
|
70
|
-
# override the default output from pydantic by calling `to_dict()` of each value in identifiers (dict)
|
71
|
-
_field_dict = {}
|
72
|
-
if self.identifiers:
|
73
|
-
for _key in self.identifiers:
|
74
|
-
if self.identifiers[_key]:
|
75
|
-
_field_dict[_key] = self.identifiers[_key].to_dict()
|
76
|
-
_dict['identifiers'] = _field_dict
|
77
69
|
# override the default output from pydantic by calling `to_dict()` of person
|
78
70
|
if self.person:
|
79
71
|
_dict['person'] = self.person.to_dict()
|
@@ -108,12 +100,7 @@ class Investor(BaseModel):
|
|
108
100
|
|
109
101
|
_obj = Investor.parse_obj({
|
110
102
|
"investor_type": obj.get("investorType"),
|
111
|
-
"identifiers":
|
112
|
-
(_k, ModelProperty.from_dict(_v))
|
113
|
-
for _k, _v in obj.get("identifiers").items()
|
114
|
-
)
|
115
|
-
if obj.get("identifiers") is not None
|
116
|
-
else None,
|
103
|
+
"identifiers": obj.get("identifiers"),
|
117
104
|
"entity_unique_id": obj.get("entityUniqueId"),
|
118
105
|
"person": Person.from_dict(obj.get("person")) if obj.get("person") is not None else None,
|
119
106
|
"legal_entity": LegalEntity.from_dict(obj.get("legalEntity")) if obj.get("legalEntity") is not None else None
|
@@ -19,15 +19,14 @@ import json
|
|
19
19
|
|
20
20
|
|
21
21
|
from typing import Any, Dict, Optional
|
22
|
-
from pydantic.v1 import StrictStr, Field, BaseModel, Field, constr
|
23
|
-
from lusid.models.model_property import ModelProperty
|
22
|
+
from pydantic.v1 import StrictStr, Field, BaseModel, Field, StrictStr, constr
|
24
23
|
|
25
24
|
class InvestorIdentifier(BaseModel):
|
26
25
|
"""
|
27
26
|
Identification of an Investor on the LUSID API. # noqa: E501
|
28
27
|
"""
|
29
28
|
investor_type: StrictStr = Field(...,alias="investorType", description="The type of the investor of the Investor Record. Can be either a Person or a LegalEntity")
|
30
|
-
identifiers: Optional[Dict[str,
|
29
|
+
identifiers: Optional[Dict[str, StrictStr]] = Field(None, description="Single identifier that should target the desired person or legal entity")
|
31
30
|
__properties = ["investorType", "identifiers"]
|
32
31
|
|
33
32
|
class Config:
|
@@ -62,13 +61,6 @@ class InvestorIdentifier(BaseModel):
|
|
62
61
|
exclude={
|
63
62
|
},
|
64
63
|
exclude_none=True)
|
65
|
-
# override the default output from pydantic by calling `to_dict()` of each value in identifiers (dict)
|
66
|
-
_field_dict = {}
|
67
|
-
if self.identifiers:
|
68
|
-
for _key in self.identifiers:
|
69
|
-
if self.identifiers[_key]:
|
70
|
-
_field_dict[_key] = self.identifiers[_key].to_dict()
|
71
|
-
_dict['identifiers'] = _field_dict
|
72
64
|
# set to None if identifiers (nullable) is None
|
73
65
|
# and __fields_set__ contains the field
|
74
66
|
if self.identifiers is None and "identifiers" in self.__fields_set__:
|
@@ -87,11 +79,6 @@ class InvestorIdentifier(BaseModel):
|
|
87
79
|
|
88
80
|
_obj = InvestorIdentifier.parse_obj({
|
89
81
|
"investor_type": obj.get("investorType"),
|
90
|
-
"identifiers":
|
91
|
-
(_k, ModelProperty.from_dict(_v))
|
92
|
-
for _k, _v in obj.get("identifiers").items()
|
93
|
-
)
|
94
|
-
if obj.get("identifiers") is not None
|
95
|
-
else None
|
82
|
+
"identifiers": obj.get("identifiers")
|
96
83
|
})
|
97
84
|
return _obj
|
@@ -0,0 +1,90 @@
|
|
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, BaseModel, Field, StrictStr, constr
|
23
|
+
|
24
|
+
class PreviousFundCalendarEntry(BaseModel):
|
25
|
+
"""
|
26
|
+
PreviousFundCalendarEntry
|
27
|
+
"""
|
28
|
+
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")
|
29
|
+
display_name: StrictStr = Field(...,alias="displayName", description="The name of the Fund Calendar entry.")
|
30
|
+
description: Optional[StrictStr] = Field(None,alias="description", description="A description for the Fund Calendar entry.")
|
31
|
+
effective_at: Optional[datetime] = Field(None, alias="effectiveAt", description="The effective at of the Calendar Entry.")
|
32
|
+
as_at: datetime = Field(..., alias="asAt", description="The asAt datetime for the Calendar Entry.")
|
33
|
+
__properties = ["code", "displayName", "description", "effectiveAt", "asAt"]
|
34
|
+
|
35
|
+
class Config:
|
36
|
+
"""Pydantic configuration"""
|
37
|
+
allow_population_by_field_name = True
|
38
|
+
validate_assignment = True
|
39
|
+
|
40
|
+
def __str__(self):
|
41
|
+
"""For `print` and `pprint`"""
|
42
|
+
return pprint.pformat(self.dict(by_alias=False))
|
43
|
+
|
44
|
+
def __repr__(self):
|
45
|
+
"""For `print` and `pprint`"""
|
46
|
+
return self.to_str()
|
47
|
+
|
48
|
+
def to_str(self) -> str:
|
49
|
+
"""Returns the string representation of the model using alias"""
|
50
|
+
return pprint.pformat(self.dict(by_alias=True))
|
51
|
+
|
52
|
+
def to_json(self) -> str:
|
53
|
+
"""Returns the JSON representation of the model using alias"""
|
54
|
+
return json.dumps(self.to_dict())
|
55
|
+
|
56
|
+
@classmethod
|
57
|
+
def from_json(cls, json_str: str) -> PreviousFundCalendarEntry:
|
58
|
+
"""Create an instance of PreviousFundCalendarEntry from a JSON string"""
|
59
|
+
return cls.from_dict(json.loads(json_str))
|
60
|
+
|
61
|
+
def to_dict(self):
|
62
|
+
"""Returns the dictionary representation of the model using alias"""
|
63
|
+
_dict = self.dict(by_alias=True,
|
64
|
+
exclude={
|
65
|
+
},
|
66
|
+
exclude_none=True)
|
67
|
+
# set to None if description (nullable) is None
|
68
|
+
# and __fields_set__ contains the field
|
69
|
+
if self.description is None and "description" in self.__fields_set__:
|
70
|
+
_dict['description'] = None
|
71
|
+
|
72
|
+
return _dict
|
73
|
+
|
74
|
+
@classmethod
|
75
|
+
def from_dict(cls, obj: dict) -> PreviousFundCalendarEntry:
|
76
|
+
"""Create an instance of PreviousFundCalendarEntry from a dict"""
|
77
|
+
if obj is None:
|
78
|
+
return None
|
79
|
+
|
80
|
+
if not isinstance(obj, dict):
|
81
|
+
return PreviousFundCalendarEntry.parse_obj(obj)
|
82
|
+
|
83
|
+
_obj = PreviousFundCalendarEntry.parse_obj({
|
84
|
+
"code": obj.get("code"),
|
85
|
+
"display_name": obj.get("displayName"),
|
86
|
+
"description": obj.get("description"),
|
87
|
+
"effective_at": obj.get("effectiveAt"),
|
88
|
+
"as_at": obj.get("asAt")
|
89
|
+
})
|
90
|
+
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.930
|
4
4
|
Summary: LUSID API
|
5
5
|
Home-page: https://github.com/finbourne/lusid-sdk-python
|
6
6
|
License: MIT
|
@@ -1522,6 +1522,7 @@ Class | Method | HTTP request | Description
|
|
1522
1522
|
- [PostingModuleRulesUpdatedResponse](docs/PostingModuleRulesUpdatedResponse.md)
|
1523
1523
|
- [PreTradeConfiguration](docs/PreTradeConfiguration.md)
|
1524
1524
|
- [Premium](docs/Premium.md)
|
1525
|
+
- [PreviousFundCalendarEntry](docs/PreviousFundCalendarEntry.md)
|
1525
1526
|
- [PreviousFundValuationPointData](docs/PreviousFundValuationPointData.md)
|
1526
1527
|
- [PreviousNAV](docs/PreviousNAV.md)
|
1527
1528
|
- [PreviousShareClassBreakdown](docs/PreviousShareClassBreakdown.md)
|
@@ -1,4 +1,4 @@
|
|
1
|
-
lusid/__init__.py,sha256=
|
1
|
+
lusid/__init__.py,sha256=1K9BnFqxBy0X2QP2Ad4vrxv_aCtpcw7iuTcLu4SI_Ts,146040
|
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=Xgy2-OqxK7KeXPWajPdgf2MC5f42RWidTWC300M_He0,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=lNFaVSJQuUMLTDZ_sohuo-GI-QfU87Pe_ipRqewlgH4,138224
|
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
|
@@ -112,8 +112,8 @@ lusid/models/access_controlled_resource.py,sha256=PQJNVfo_bjC_ci8kLpwe6RxB0Fse3C
|
|
112
112
|
lusid/models/access_metadata_operation.py,sha256=iym2rTJ1PiGu982kqKkLCCB_z5MWvOIOuixtlX1W704,6433
|
113
113
|
lusid/models/access_metadata_value.py,sha256=vgXuxm4qA_XDSqE2mGdqOEyEAu5r6A6i-FPvh7-agf4,2591
|
114
114
|
lusid/models/account.py,sha256=jvkJG5BYkn1ZtiYIvLqiKvgoNmRh-Zz86mRL3RN5dDo,7713
|
115
|
-
lusid/models/account_holder.py,sha256=
|
116
|
-
lusid/models/account_holder_identifier.py,sha256=
|
115
|
+
lusid/models/account_holder.py,sha256=mC-QwJEYkWfctPwFmP8JuI6gihrbuTlDDqAJdHkMU6c,4168
|
116
|
+
lusid/models/account_holder_identifier.py,sha256=Kz3jwdJhkUvGs6XBvY3H-FKwbCVNYiHvAOutSSjDONk,2620
|
117
117
|
lusid/models/account_properties.py,sha256=8z1CtWgpuCG67K1g6f-eGpVt0hnoBjIi56ADPoE92iU,4519
|
118
118
|
lusid/models/accounted_transaction.py,sha256=LsffwdsikxR0nLMgsfg0GeRE-J1s_JnQCoO4PzaZE9k,3710
|
119
119
|
lusid/models/accounting_method.py,sha256=Ei42z2hKpF_MkYlulycvPmbipAdCALy5vaSlxgrfhYw,1487
|
@@ -513,7 +513,7 @@ lusid/models/forward_rate_agreement.py,sha256=2huB94ltI8O9UKnFXc2oAYz278FMwPnaFE
|
|
513
513
|
lusid/models/from_recipe.py,sha256=yUnu4kUNme_mFEHE9p-N6k-ETFBNxvmjsL8u2fKIHyk,2538
|
514
514
|
lusid/models/fund.py,sha256=YWMy0wrbBPv5ExNwugI8EelMbRhHvx1ap-TgjtgnMms,11904
|
515
515
|
lusid/models/fund_amount.py,sha256=xGFl9O7wn4GTCaMq_SxSkzzo_9Pw3scDIDm3835C64Q,2132
|
516
|
-
lusid/models/fund_calendar_entry.py,sha256=
|
516
|
+
lusid/models/fund_calendar_entry.py,sha256=pWED37IFcazb8MjVm1dgk_NOcxLkTnrHola6U0Rh-V4,10163
|
517
517
|
lusid/models/fund_calendar_entry_type.py,sha256=Y2mYU3ztxhNOAzhIXxQMslHCHfdmcQCSEdtpsOQbHwI,778
|
518
518
|
lusid/models/fund_configuration.py,sha256=wC-L5FcOKsoep9C4in6LFrDigHKdB_q2Zno2L-wpVqo,9606
|
519
519
|
lusid/models/fund_configuration_properties.py,sha256=b-4hJF9TltJf3lmaSyDjeGUhjjhxbs_-kYZ0MpM8kgk,4620
|
@@ -672,10 +672,10 @@ lusid/models/intermediate_compliance_step.py,sha256=n_y-NJKd4787d9W5b4_MBJ_9ShzH
|
|
672
672
|
lusid/models/intermediate_compliance_step_request.py,sha256=Va1ew-xImnr6NuDGT6cvREZoF-WAaXs3LwlNvonnsrs,6829
|
673
673
|
lusid/models/intermediate_securities_distribution_event.py,sha256=00EveBEnBv7C545CAur0OwX4gpMUEvcv15-nLRTmI0E,15217
|
674
674
|
lusid/models/investment_account.py,sha256=1XYjv5r8UoFocia2uSGQi0s5gOiN9Fhcep0IqaZQSnk,10712
|
675
|
-
lusid/models/investment_portfolio.py,sha256=
|
676
|
-
lusid/models/investment_portfolio_identifier.py,sha256=
|
677
|
-
lusid/models/investor.py,sha256=
|
678
|
-
lusid/models/investor_identifier.py,sha256=
|
675
|
+
lusid/models/investment_portfolio.py,sha256=BKt6k3OreHWGLCZPecKbtgoNwLACq6Dcuy99YQI3dPE,4075
|
676
|
+
lusid/models/investment_portfolio_identifier.py,sha256=KVc39Ol7ObS9jC51QsnRfxpEXl2tkiMPm1rLQO37nRM,2636
|
677
|
+
lusid/models/investor.py,sha256=v0hRKJtMBJvKARycIEPJmO8p91_aZNU8N8FdLJHYG8o,4035
|
678
|
+
lusid/models/investor_identifier.py,sha256=kQ34OEbOL6LV-imgf3j3qrNvAL9XZUjGubREKHv8ajw,2730
|
679
679
|
lusid/models/investor_record.py,sha256=sW3XCaNyx1_3U3lzGLcTHb9bpjXLUerIFN8_wI1lcLg,8562
|
680
680
|
lusid/models/ir_vol_cube_data.py,sha256=uJGOWjam6iYYa2zv-Zq3YEtBPFa-ceiLom6CmCYmxGo,9097
|
681
681
|
lusid/models/ir_vol_dependency.py,sha256=KXlWve54ZYT7oD3L3nudagtHx70IYGSxNuZ-Fwlm13I,7758
|
@@ -929,6 +929,7 @@ lusid/models/posting_module_rule.py,sha256=UEjhfFJawxcajTbHu-qawvHa5NZEwfNVOppDZ
|
|
929
929
|
lusid/models/posting_module_rules_updated_response.py,sha256=8XL60IrOMOig40sxRiA6n0wVdUmx9eVK07gAYTYDO8U,4535
|
930
930
|
lusid/models/pre_trade_configuration.py,sha256=TXSMhVXlN3fYL25fQDucSSaL5bSTHivp93gtyAfD9t8,2580
|
931
931
|
lusid/models/premium.py,sha256=H_GEgHSmA8mUE_x1ARAoZPKYRyUxI5sSgGIpxfSvPJI,2451
|
932
|
+
lusid/models/previous_fund_calendar_entry.py,sha256=Wg0Oo-Pj-MWu5IJNjvcYG5CAGT3j1gYJRkNCuugK4P4,3289
|
932
933
|
lusid/models/previous_fund_valuation_point_data.py,sha256=uVk-5vy9fHp0oESwyTlj6BBYDg_QgVz19kXO0gm0zTM,2468
|
933
934
|
lusid/models/previous_nav.py,sha256=kZZrYY44Q0K03DQX7GX5HBdLJfIWBQ1nLaK7jR6pzwc,2318
|
934
935
|
lusid/models/previous_share_class_breakdown.py,sha256=Q1szW58a2B5Awnj4jgjmflvlWE-zhzXuF3fXWH4SGks,3223
|
@@ -1384,6 +1385,6 @@ lusid/models/year_month_day.py,sha256=gwSoxFwlD_wffKdddo1wfvAcLq3Cht3FHQidiaHzAA
|
|
1384
1385
|
lusid/models/yield_curve_data.py,sha256=I1ZSWxHMgUxj9OQt6i9a4S91KB4_XtmrfFxpN_PV3YQ,9561
|
1385
1386
|
lusid/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
1386
1387
|
lusid/rest.py,sha256=HQT__5LQEMu6_1sLKvYj-DI4FH1DJXBIPYfZCTTyrY4,13431
|
1387
|
-
lusid_sdk-2.1.
|
1388
|
-
lusid_sdk-2.1.
|
1389
|
-
lusid_sdk-2.1.
|
1388
|
+
lusid_sdk-2.1.930.dist-info/METADATA,sha256=kTkgjCQhA6kLbTPKI6lJBFotq8I6N-tVUvO_7Un7n9Q,231927
|
1389
|
+
lusid_sdk-2.1.930.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
1390
|
+
lusid_sdk-2.1.930.dist-info/RECORD,,
|
File without changes
|