lusid-sdk 2.3.22__py3-none-any.whl → 2.3.24__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 +4 -0
- lusid/configuration.py +1 -1
- lusid/models/__init__.py +4 -0
- lusid/models/instrument_activity.py +168 -0
- lusid/models/nav_activity_adjustment.py +7 -5
- lusid/models/nav_activity_adjustment_type.py +2 -0
- lusid/models/portfolio_settlement_instruction.py +170 -0
- lusid/models/portfolio_transaction.py +3 -3
- {lusid_sdk-2.3.22.dist-info → lusid_sdk-2.3.24.dist-info}/METADATA +3 -1
- {lusid_sdk-2.3.22.dist-info → lusid_sdk-2.3.24.dist-info}/RECORD +11 -9
- {lusid_sdk-2.3.22.dist-info → lusid_sdk-2.3.24.dist-info}/WHEEL +0 -0
lusid/__init__.py
CHANGED
|
@@ -668,6 +668,7 @@ from lusid.models.inline_valuation_request import InlineValuationRequest
|
|
|
668
668
|
from lusid.models.inline_valuations_reconciliation_request import InlineValuationsReconciliationRequest
|
|
669
669
|
from lusid.models.input_transition import InputTransition
|
|
670
670
|
from lusid.models.instrument import Instrument
|
|
671
|
+
from lusid.models.instrument_activity import InstrumentActivity
|
|
671
672
|
from lusid.models.instrument_capabilities import InstrumentCapabilities
|
|
672
673
|
from lusid.models.instrument_cash_flow import InstrumentCashFlow
|
|
673
674
|
from lusid.models.instrument_definition import InstrumentDefinition
|
|
@@ -950,6 +951,7 @@ from lusid.models.portfolio_result_data_key_rule import PortfolioResultDataKeyRu
|
|
|
950
951
|
from lusid.models.portfolio_return_breakdown import PortfolioReturnBreakdown
|
|
951
952
|
from lusid.models.portfolio_search_result import PortfolioSearchResult
|
|
952
953
|
from lusid.models.portfolio_settlement_configuration import PortfolioSettlementConfiguration
|
|
954
|
+
from lusid.models.portfolio_settlement_instruction import PortfolioSettlementInstruction
|
|
953
955
|
from lusid.models.portfolio_trade_ticket import PortfolioTradeTicket
|
|
954
956
|
from lusid.models.portfolio_transaction import PortfolioTransaction
|
|
955
957
|
from lusid.models.portfolio_type import PortfolioType
|
|
@@ -2103,6 +2105,7 @@ __all__ = [
|
|
|
2103
2105
|
"InlineValuationsReconciliationRequest",
|
|
2104
2106
|
"InputTransition",
|
|
2105
2107
|
"Instrument",
|
|
2108
|
+
"InstrumentActivity",
|
|
2106
2109
|
"InstrumentCapabilities",
|
|
2107
2110
|
"InstrumentCashFlow",
|
|
2108
2111
|
"InstrumentDefinition",
|
|
@@ -2385,6 +2388,7 @@ __all__ = [
|
|
|
2385
2388
|
"PortfolioReturnBreakdown",
|
|
2386
2389
|
"PortfolioSearchResult",
|
|
2387
2390
|
"PortfolioSettlementConfiguration",
|
|
2391
|
+
"PortfolioSettlementInstruction",
|
|
2388
2392
|
"PortfolioTradeTicket",
|
|
2389
2393
|
"PortfolioTransaction",
|
|
2390
2394
|
"PortfolioType",
|
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.8768\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
|
@@ -576,6 +576,7 @@ from lusid.models.inline_valuation_request import InlineValuationRequest
|
|
|
576
576
|
from lusid.models.inline_valuations_reconciliation_request import InlineValuationsReconciliationRequest
|
|
577
577
|
from lusid.models.input_transition import InputTransition
|
|
578
578
|
from lusid.models.instrument import Instrument
|
|
579
|
+
from lusid.models.instrument_activity import InstrumentActivity
|
|
579
580
|
from lusid.models.instrument_capabilities import InstrumentCapabilities
|
|
580
581
|
from lusid.models.instrument_cash_flow import InstrumentCashFlow
|
|
581
582
|
from lusid.models.instrument_definition import InstrumentDefinition
|
|
@@ -858,6 +859,7 @@ from lusid.models.portfolio_result_data_key_rule import PortfolioResultDataKeyRu
|
|
|
858
859
|
from lusid.models.portfolio_return_breakdown import PortfolioReturnBreakdown
|
|
859
860
|
from lusid.models.portfolio_search_result import PortfolioSearchResult
|
|
860
861
|
from lusid.models.portfolio_settlement_configuration import PortfolioSettlementConfiguration
|
|
862
|
+
from lusid.models.portfolio_settlement_instruction import PortfolioSettlementInstruction
|
|
861
863
|
from lusid.models.portfolio_trade_ticket import PortfolioTradeTicket
|
|
862
864
|
from lusid.models.portfolio_transaction import PortfolioTransaction
|
|
863
865
|
from lusid.models.portfolio_type import PortfolioType
|
|
@@ -1920,6 +1922,7 @@ __all__ = [
|
|
|
1920
1922
|
"InlineValuationsReconciliationRequest",
|
|
1921
1923
|
"InputTransition",
|
|
1922
1924
|
"Instrument",
|
|
1925
|
+
"InstrumentActivity",
|
|
1923
1926
|
"InstrumentCapabilities",
|
|
1924
1927
|
"InstrumentCashFlow",
|
|
1925
1928
|
"InstrumentDefinition",
|
|
@@ -2202,6 +2205,7 @@ __all__ = [
|
|
|
2202
2205
|
"PortfolioReturnBreakdown",
|
|
2203
2206
|
"PortfolioSearchResult",
|
|
2204
2207
|
"PortfolioSettlementConfiguration",
|
|
2208
|
+
"PortfolioSettlementInstruction",
|
|
2205
2209
|
"PortfolioTradeTicket",
|
|
2206
2210
|
"PortfolioTransaction",
|
|
2207
2211
|
"PortfolioType",
|
|
@@ -0,0 +1,168 @@
|
|
|
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 List, Dict, Optional, Any, Union, TYPE_CHECKING
|
|
22
|
+
from typing_extensions import Annotated
|
|
23
|
+
from pydantic.v1 import BaseModel, StrictStr, StrictInt, StrictBool, StrictFloat, StrictBytes, Field, validator, ValidationError, conlist, constr
|
|
24
|
+
from datetime import datetime
|
|
25
|
+
from lusid.models.nav_activity_adjustment import NavActivityAdjustment
|
|
26
|
+
|
|
27
|
+
class InstrumentActivity(NavActivityAdjustment):
|
|
28
|
+
"""
|
|
29
|
+
InstrumentActivity
|
|
30
|
+
"""
|
|
31
|
+
as_at: datetime = Field(description="The asAt time for which the adjustment is being applied.", alias="asAt")
|
|
32
|
+
scope: StrictStr = Field(...,alias="scope", description="The Scope of the given entity")
|
|
33
|
+
lusid_instrument_id: StrictStr = Field(...,alias="lusidInstrumentId", description="The LusidInstrumentId of the given entity")
|
|
34
|
+
nav_activity_adjustment_type: StrictStr = Field(...,alias="navActivityAdjustmentType", description=". The available values are: PortfolioTransaction, PortfolioSettlementInstruction, InstrumentActivity")
|
|
35
|
+
additional_properties: Dict[str, Any] = {}
|
|
36
|
+
__properties = ["navActivityAdjustmentType", "asAt", "scope", "lusidInstrumentId"]
|
|
37
|
+
|
|
38
|
+
@validator('nav_activity_adjustment_type')
|
|
39
|
+
def nav_activity_adjustment_type_validate_enum(cls, value):
|
|
40
|
+
"""Validates the enum"""
|
|
41
|
+
|
|
42
|
+
# Finbourne have removed enum validation on all models, except for this use case:
|
|
43
|
+
# Workflow and notification application SDK use the property name 'type' as the discriminator on a number of classes.
|
|
44
|
+
# During instantiation, the value of 'type' is checked against the enum values,
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
# check it's a class that uses the 'type' property as a discriminator
|
|
48
|
+
# list of classes can be found by searching for 'actual_instance: Union[' in the generated code
|
|
49
|
+
if 'InstrumentActivity' not in [
|
|
50
|
+
# For notification application classes
|
|
51
|
+
'AmazonSqsNotificationType',
|
|
52
|
+
'AmazonSqsNotificationTypeResponse',
|
|
53
|
+
'AmazonSqsPrincipalAuthNotificationType',
|
|
54
|
+
'AmazonSqsPrincipalAuthNotificationTypeResponse',
|
|
55
|
+
'AzureServiceBusTypeResponse',
|
|
56
|
+
'AzureServiceBusNotificationType',
|
|
57
|
+
'EmailNotificationType',
|
|
58
|
+
'EmailNotificationTypeResponse',
|
|
59
|
+
'SmsNotificationType',
|
|
60
|
+
'SmsNotificationTypeResponse',
|
|
61
|
+
'WebhookNotificationType',
|
|
62
|
+
'WebhookNotificationTypeResponse',
|
|
63
|
+
|
|
64
|
+
# For workflow application classes
|
|
65
|
+
'CreateChildTasksAction',
|
|
66
|
+
'RunWorkerAction',
|
|
67
|
+
'TriggerParentTaskAction',
|
|
68
|
+
'CreateChildTasksActionResponse',
|
|
69
|
+
'RunWorkerActionResponse',
|
|
70
|
+
'TriggerParentTaskActionResponse',
|
|
71
|
+
'CreateNewTaskActivity',
|
|
72
|
+
'UpdateMatchingTasksActivity',
|
|
73
|
+
'CreateNewTaskActivityResponse',
|
|
74
|
+
'UpdateMatchingTasksActivityResponse',
|
|
75
|
+
'Fail',
|
|
76
|
+
'GroupReconciliation',
|
|
77
|
+
'HealthCheck',
|
|
78
|
+
'LuminesceView',
|
|
79
|
+
'SchedulerJob',
|
|
80
|
+
'Sleep',
|
|
81
|
+
'FailResponse',
|
|
82
|
+
'GroupReconciliationResponse',
|
|
83
|
+
'HealthCheckResponse',
|
|
84
|
+
'LuminesceViewResponse',
|
|
85
|
+
'SchedulerJobResponse',
|
|
86
|
+
'SleepResponse',
|
|
87
|
+
'Library',
|
|
88
|
+
'LibraryResponse',
|
|
89
|
+
'DayRegularity',
|
|
90
|
+
'RelativeMonthRegularity',
|
|
91
|
+
'SpecificMonthRegularity',
|
|
92
|
+
'WeekRegularity',
|
|
93
|
+
'YearRegularity',
|
|
94
|
+
'LusidEntityDataQualityCheck',
|
|
95
|
+
'LusidEntityDataQualityCheckResponse']:
|
|
96
|
+
return value
|
|
97
|
+
|
|
98
|
+
# Only validate the 'type' property of the class
|
|
99
|
+
if "nav_activity_adjustment_type" != "type":
|
|
100
|
+
return value
|
|
101
|
+
|
|
102
|
+
if value not in ['PortfolioTransaction', 'PortfolioSettlementInstruction', 'InstrumentActivity']:
|
|
103
|
+
raise ValueError("must be one of enum values ('PortfolioTransaction', 'PortfolioSettlementInstruction', 'InstrumentActivity')")
|
|
104
|
+
return value
|
|
105
|
+
|
|
106
|
+
class Config:
|
|
107
|
+
"""Pydantic configuration"""
|
|
108
|
+
allow_population_by_field_name = True
|
|
109
|
+
validate_assignment = True
|
|
110
|
+
|
|
111
|
+
def __str__(self):
|
|
112
|
+
"""For `print` and `pprint`"""
|
|
113
|
+
return pprint.pformat(self.dict(by_alias=False))
|
|
114
|
+
|
|
115
|
+
def __repr__(self):
|
|
116
|
+
"""For `print` and `pprint`"""
|
|
117
|
+
return self.to_str()
|
|
118
|
+
|
|
119
|
+
def to_str(self) -> str:
|
|
120
|
+
"""Returns the string representation of the model using alias"""
|
|
121
|
+
return pprint.pformat(self.dict(by_alias=True))
|
|
122
|
+
|
|
123
|
+
def to_json(self) -> str:
|
|
124
|
+
"""Returns the JSON representation of the model using alias"""
|
|
125
|
+
return json.dumps(self.to_dict())
|
|
126
|
+
|
|
127
|
+
@classmethod
|
|
128
|
+
def from_json(cls, json_str: str) -> InstrumentActivity:
|
|
129
|
+
"""Create an instance of InstrumentActivity from a JSON string"""
|
|
130
|
+
return cls.from_dict(json.loads(json_str))
|
|
131
|
+
|
|
132
|
+
def to_dict(self):
|
|
133
|
+
"""Returns the dictionary representation of the model using alias"""
|
|
134
|
+
_dict = self.dict(by_alias=True,
|
|
135
|
+
exclude={
|
|
136
|
+
"additional_properties"
|
|
137
|
+
},
|
|
138
|
+
exclude_none=True)
|
|
139
|
+
# puts key-value pairs in additional_properties in the top level
|
|
140
|
+
if self.additional_properties is not None:
|
|
141
|
+
for _key, _value in self.additional_properties.items():
|
|
142
|
+
_dict[_key] = _value
|
|
143
|
+
|
|
144
|
+
return _dict
|
|
145
|
+
|
|
146
|
+
@classmethod
|
|
147
|
+
def from_dict(cls, obj: dict) -> InstrumentActivity:
|
|
148
|
+
"""Create an instance of InstrumentActivity from a dict"""
|
|
149
|
+
if obj is None:
|
|
150
|
+
return None
|
|
151
|
+
|
|
152
|
+
if not isinstance(obj, dict):
|
|
153
|
+
return InstrumentActivity.parse_obj(obj)
|
|
154
|
+
|
|
155
|
+
_obj = InstrumentActivity.parse_obj({
|
|
156
|
+
"nav_activity_adjustment_type": obj.get("navActivityAdjustmentType"),
|
|
157
|
+
"as_at": obj.get("asAt"),
|
|
158
|
+
"scope": obj.get("scope"),
|
|
159
|
+
"lusid_instrument_id": obj.get("lusidInstrumentId")
|
|
160
|
+
})
|
|
161
|
+
# store additional fields in additional_properties
|
|
162
|
+
for _key in obj.keys():
|
|
163
|
+
if _key not in cls.__properties:
|
|
164
|
+
_obj.additional_properties[_key] = obj.get(_key)
|
|
165
|
+
|
|
166
|
+
return _obj
|
|
167
|
+
|
|
168
|
+
InstrumentActivity.update_forward_refs()
|
|
@@ -28,7 +28,7 @@ class NavActivityAdjustment(BaseModel):
|
|
|
28
28
|
"""
|
|
29
29
|
NavActivityAdjustment
|
|
30
30
|
"""
|
|
31
|
-
nav_activity_adjustment_type: StrictStr = Field(...,alias="navActivityAdjustmentType", description=". The available values are: PortfolioTransaction")
|
|
31
|
+
nav_activity_adjustment_type: StrictStr = Field(...,alias="navActivityAdjustmentType", description=". The available values are: PortfolioTransaction, PortfolioSettlementInstruction, InstrumentActivity")
|
|
32
32
|
__properties = ["navActivityAdjustmentType"]
|
|
33
33
|
|
|
34
34
|
@validator('nav_activity_adjustment_type')
|
|
@@ -95,8 +95,8 @@ class NavActivityAdjustment(BaseModel):
|
|
|
95
95
|
if "nav_activity_adjustment_type" != "type":
|
|
96
96
|
return value
|
|
97
97
|
|
|
98
|
-
if value not in ['PortfolioTransaction']:
|
|
99
|
-
raise ValueError("must be one of enum values ('PortfolioTransaction')")
|
|
98
|
+
if value not in ['PortfolioTransaction', 'PortfolioSettlementInstruction', 'InstrumentActivity']:
|
|
99
|
+
raise ValueError("must be one of enum values ('PortfolioTransaction', 'PortfolioSettlementInstruction', 'InstrumentActivity')")
|
|
100
100
|
return value
|
|
101
101
|
|
|
102
102
|
class Config:
|
|
@@ -109,6 +109,8 @@ class NavActivityAdjustment(BaseModel):
|
|
|
109
109
|
|
|
110
110
|
# discriminator mappings
|
|
111
111
|
__discriminator_value_class_map = {
|
|
112
|
+
'InstrumentActivity': 'InstrumentActivity',
|
|
113
|
+
'PortfolioSettlementInstruction': 'PortfolioSettlementInstruction',
|
|
112
114
|
'PortfolioTransaction': 'PortfolioTransaction'
|
|
113
115
|
}
|
|
114
116
|
|
|
@@ -138,7 +140,7 @@ class NavActivityAdjustment(BaseModel):
|
|
|
138
140
|
return json.dumps(self.to_dict())
|
|
139
141
|
|
|
140
142
|
@classmethod
|
|
141
|
-
def from_json(cls, json_str: str) -> Union(PortfolioTransaction):
|
|
143
|
+
def from_json(cls, json_str: str) -> Union(InstrumentActivity, PortfolioSettlementInstruction, PortfolioTransaction):
|
|
142
144
|
"""Create an instance of NavActivityAdjustment from a JSON string"""
|
|
143
145
|
return cls.from_dict(json.loads(json_str))
|
|
144
146
|
|
|
@@ -151,7 +153,7 @@ class NavActivityAdjustment(BaseModel):
|
|
|
151
153
|
return _dict
|
|
152
154
|
|
|
153
155
|
@classmethod
|
|
154
|
-
def from_dict(cls, obj: dict) -> Union(PortfolioTransaction):
|
|
156
|
+
def from_dict(cls, obj: dict) -> Union(InstrumentActivity, PortfolioSettlementInstruction, PortfolioTransaction):
|
|
155
157
|
"""Create an instance of NavActivityAdjustment from a dict"""
|
|
156
158
|
# look up the object type based on discriminator mapping
|
|
157
159
|
object_type = cls.get_discriminator_value(obj)
|
|
@@ -32,6 +32,8 @@ class NavActivityAdjustmentType(str, Enum):
|
|
|
32
32
|
allowed enum values
|
|
33
33
|
"""
|
|
34
34
|
PORTFOLIOTRANSACTION = 'PortfolioTransaction'
|
|
35
|
+
PORTFOLIOSETTLEMENTINSTRUCTION = 'PortfolioSettlementInstruction'
|
|
36
|
+
INSTRUMENTACTIVITY = 'InstrumentActivity'
|
|
35
37
|
|
|
36
38
|
@classmethod
|
|
37
39
|
def from_json(cls, json_str: str) -> NavActivityAdjustmentType:
|
|
@@ -0,0 +1,170 @@
|
|
|
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 List, Dict, Optional, Any, Union, TYPE_CHECKING
|
|
22
|
+
from typing_extensions import Annotated
|
|
23
|
+
from pydantic.v1 import BaseModel, StrictStr, StrictInt, StrictBool, StrictFloat, StrictBytes, Field, validator, ValidationError, conlist, constr
|
|
24
|
+
from datetime import datetime
|
|
25
|
+
from lusid.models.nav_activity_adjustment import NavActivityAdjustment
|
|
26
|
+
|
|
27
|
+
class PortfolioSettlementInstruction(NavActivityAdjustment):
|
|
28
|
+
"""
|
|
29
|
+
PortfolioSettlementInstruction
|
|
30
|
+
"""
|
|
31
|
+
as_at: datetime = Field(description="The asAt time for which the adjustment is being applied.", alias="asAt")
|
|
32
|
+
portfolio_scope: StrictStr = Field(...,alias="portfolioScope", description="The portfolio scope of the given entity")
|
|
33
|
+
portfolio_code: StrictStr = Field(...,alias="portfolioCode", description="The portfolio code of the given entity")
|
|
34
|
+
settlement_instruction_id: StrictStr = Field(...,alias="settlementInstructionId", description="The settlement instruction Id of the SettlementInstruction being adjusted")
|
|
35
|
+
nav_activity_adjustment_type: StrictStr = Field(...,alias="navActivityAdjustmentType", description=". The available values are: PortfolioTransaction, PortfolioSettlementInstruction, InstrumentActivity")
|
|
36
|
+
additional_properties: Dict[str, Any] = {}
|
|
37
|
+
__properties = ["navActivityAdjustmentType", "asAt", "portfolioScope", "portfolioCode", "settlementInstructionId"]
|
|
38
|
+
|
|
39
|
+
@validator('nav_activity_adjustment_type')
|
|
40
|
+
def nav_activity_adjustment_type_validate_enum(cls, value):
|
|
41
|
+
"""Validates the enum"""
|
|
42
|
+
|
|
43
|
+
# Finbourne have removed enum validation on all models, except for this use case:
|
|
44
|
+
# Workflow and notification application SDK use the property name 'type' as the discriminator on a number of classes.
|
|
45
|
+
# During instantiation, the value of 'type' is checked against the enum values,
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
# check it's a class that uses the 'type' property as a discriminator
|
|
49
|
+
# list of classes can be found by searching for 'actual_instance: Union[' in the generated code
|
|
50
|
+
if 'PortfolioSettlementInstruction' not in [
|
|
51
|
+
# For notification application classes
|
|
52
|
+
'AmazonSqsNotificationType',
|
|
53
|
+
'AmazonSqsNotificationTypeResponse',
|
|
54
|
+
'AmazonSqsPrincipalAuthNotificationType',
|
|
55
|
+
'AmazonSqsPrincipalAuthNotificationTypeResponse',
|
|
56
|
+
'AzureServiceBusTypeResponse',
|
|
57
|
+
'AzureServiceBusNotificationType',
|
|
58
|
+
'EmailNotificationType',
|
|
59
|
+
'EmailNotificationTypeResponse',
|
|
60
|
+
'SmsNotificationType',
|
|
61
|
+
'SmsNotificationTypeResponse',
|
|
62
|
+
'WebhookNotificationType',
|
|
63
|
+
'WebhookNotificationTypeResponse',
|
|
64
|
+
|
|
65
|
+
# For workflow application classes
|
|
66
|
+
'CreateChildTasksAction',
|
|
67
|
+
'RunWorkerAction',
|
|
68
|
+
'TriggerParentTaskAction',
|
|
69
|
+
'CreateChildTasksActionResponse',
|
|
70
|
+
'RunWorkerActionResponse',
|
|
71
|
+
'TriggerParentTaskActionResponse',
|
|
72
|
+
'CreateNewTaskActivity',
|
|
73
|
+
'UpdateMatchingTasksActivity',
|
|
74
|
+
'CreateNewTaskActivityResponse',
|
|
75
|
+
'UpdateMatchingTasksActivityResponse',
|
|
76
|
+
'Fail',
|
|
77
|
+
'GroupReconciliation',
|
|
78
|
+
'HealthCheck',
|
|
79
|
+
'LuminesceView',
|
|
80
|
+
'SchedulerJob',
|
|
81
|
+
'Sleep',
|
|
82
|
+
'FailResponse',
|
|
83
|
+
'GroupReconciliationResponse',
|
|
84
|
+
'HealthCheckResponse',
|
|
85
|
+
'LuminesceViewResponse',
|
|
86
|
+
'SchedulerJobResponse',
|
|
87
|
+
'SleepResponse',
|
|
88
|
+
'Library',
|
|
89
|
+
'LibraryResponse',
|
|
90
|
+
'DayRegularity',
|
|
91
|
+
'RelativeMonthRegularity',
|
|
92
|
+
'SpecificMonthRegularity',
|
|
93
|
+
'WeekRegularity',
|
|
94
|
+
'YearRegularity',
|
|
95
|
+
'LusidEntityDataQualityCheck',
|
|
96
|
+
'LusidEntityDataQualityCheckResponse']:
|
|
97
|
+
return value
|
|
98
|
+
|
|
99
|
+
# Only validate the 'type' property of the class
|
|
100
|
+
if "nav_activity_adjustment_type" != "type":
|
|
101
|
+
return value
|
|
102
|
+
|
|
103
|
+
if value not in ['PortfolioTransaction', 'PortfolioSettlementInstruction', 'InstrumentActivity']:
|
|
104
|
+
raise ValueError("must be one of enum values ('PortfolioTransaction', 'PortfolioSettlementInstruction', 'InstrumentActivity')")
|
|
105
|
+
return value
|
|
106
|
+
|
|
107
|
+
class Config:
|
|
108
|
+
"""Pydantic configuration"""
|
|
109
|
+
allow_population_by_field_name = True
|
|
110
|
+
validate_assignment = True
|
|
111
|
+
|
|
112
|
+
def __str__(self):
|
|
113
|
+
"""For `print` and `pprint`"""
|
|
114
|
+
return pprint.pformat(self.dict(by_alias=False))
|
|
115
|
+
|
|
116
|
+
def __repr__(self):
|
|
117
|
+
"""For `print` and `pprint`"""
|
|
118
|
+
return self.to_str()
|
|
119
|
+
|
|
120
|
+
def to_str(self) -> str:
|
|
121
|
+
"""Returns the string representation of the model using alias"""
|
|
122
|
+
return pprint.pformat(self.dict(by_alias=True))
|
|
123
|
+
|
|
124
|
+
def to_json(self) -> str:
|
|
125
|
+
"""Returns the JSON representation of the model using alias"""
|
|
126
|
+
return json.dumps(self.to_dict())
|
|
127
|
+
|
|
128
|
+
@classmethod
|
|
129
|
+
def from_json(cls, json_str: str) -> PortfolioSettlementInstruction:
|
|
130
|
+
"""Create an instance of PortfolioSettlementInstruction from a JSON string"""
|
|
131
|
+
return cls.from_dict(json.loads(json_str))
|
|
132
|
+
|
|
133
|
+
def to_dict(self):
|
|
134
|
+
"""Returns the dictionary representation of the model using alias"""
|
|
135
|
+
_dict = self.dict(by_alias=True,
|
|
136
|
+
exclude={
|
|
137
|
+
"additional_properties"
|
|
138
|
+
},
|
|
139
|
+
exclude_none=True)
|
|
140
|
+
# puts key-value pairs in additional_properties in the top level
|
|
141
|
+
if self.additional_properties is not None:
|
|
142
|
+
for _key, _value in self.additional_properties.items():
|
|
143
|
+
_dict[_key] = _value
|
|
144
|
+
|
|
145
|
+
return _dict
|
|
146
|
+
|
|
147
|
+
@classmethod
|
|
148
|
+
def from_dict(cls, obj: dict) -> PortfolioSettlementInstruction:
|
|
149
|
+
"""Create an instance of PortfolioSettlementInstruction from a dict"""
|
|
150
|
+
if obj is None:
|
|
151
|
+
return None
|
|
152
|
+
|
|
153
|
+
if not isinstance(obj, dict):
|
|
154
|
+
return PortfolioSettlementInstruction.parse_obj(obj)
|
|
155
|
+
|
|
156
|
+
_obj = PortfolioSettlementInstruction.parse_obj({
|
|
157
|
+
"nav_activity_adjustment_type": obj.get("navActivityAdjustmentType"),
|
|
158
|
+
"as_at": obj.get("asAt"),
|
|
159
|
+
"portfolio_scope": obj.get("portfolioScope"),
|
|
160
|
+
"portfolio_code": obj.get("portfolioCode"),
|
|
161
|
+
"settlement_instruction_id": obj.get("settlementInstructionId")
|
|
162
|
+
})
|
|
163
|
+
# store additional fields in additional_properties
|
|
164
|
+
for _key in obj.keys():
|
|
165
|
+
if _key not in cls.__properties:
|
|
166
|
+
_obj.additional_properties[_key] = obj.get(_key)
|
|
167
|
+
|
|
168
|
+
return _obj
|
|
169
|
+
|
|
170
|
+
PortfolioSettlementInstruction.update_forward_refs()
|
|
@@ -32,7 +32,7 @@ class PortfolioTransaction(NavActivityAdjustment):
|
|
|
32
32
|
portfolio_scope: StrictStr = Field(...,alias="portfolioScope", description="The portfolio scope of the given entity")
|
|
33
33
|
portfolio_code: StrictStr = Field(...,alias="portfolioCode", description="The portfolio code of the given entity")
|
|
34
34
|
transaction_id: StrictStr = Field(...,alias="transactionId", description="The transaction Id of the PortfolioTransaction being adjusted")
|
|
35
|
-
nav_activity_adjustment_type: StrictStr = Field(...,alias="navActivityAdjustmentType", description=". The available values are: PortfolioTransaction")
|
|
35
|
+
nav_activity_adjustment_type: StrictStr = Field(...,alias="navActivityAdjustmentType", description=". The available values are: PortfolioTransaction, PortfolioSettlementInstruction, InstrumentActivity")
|
|
36
36
|
additional_properties: Dict[str, Any] = {}
|
|
37
37
|
__properties = ["navActivityAdjustmentType", "asAt", "portfolioScope", "portfolioCode", "transactionId"]
|
|
38
38
|
|
|
@@ -100,8 +100,8 @@ class PortfolioTransaction(NavActivityAdjustment):
|
|
|
100
100
|
if "nav_activity_adjustment_type" != "type":
|
|
101
101
|
return value
|
|
102
102
|
|
|
103
|
-
if value not in ['PortfolioTransaction']:
|
|
104
|
-
raise ValueError("must be one of enum values ('PortfolioTransaction')")
|
|
103
|
+
if value not in ['PortfolioTransaction', 'PortfolioSettlementInstruction', 'InstrumentActivity']:
|
|
104
|
+
raise ValueError("must be one of enum values ('PortfolioTransaction', 'PortfolioSettlementInstruction', 'InstrumentActivity')")
|
|
105
105
|
return value
|
|
106
106
|
|
|
107
107
|
class Config:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: lusid-sdk
|
|
3
|
-
Version: 2.3.
|
|
3
|
+
Version: 2.3.24
|
|
4
4
|
Summary: LUSID API
|
|
5
5
|
License: MIT
|
|
6
6
|
Keywords: OpenAPI,OpenAPI-Generator,LUSID API,lusid-sdk
|
|
@@ -1271,6 +1271,7 @@ Class | Method | HTTP request | Description
|
|
|
1271
1271
|
- [InlineValuationsReconciliationRequest](docs/InlineValuationsReconciliationRequest.md)
|
|
1272
1272
|
- [InputTransition](docs/InputTransition.md)
|
|
1273
1273
|
- [Instrument](docs/Instrument.md)
|
|
1274
|
+
- [InstrumentActivity](docs/InstrumentActivity.md)
|
|
1274
1275
|
- [InstrumentCapabilities](docs/InstrumentCapabilities.md)
|
|
1275
1276
|
- [InstrumentCashFlow](docs/InstrumentCashFlow.md)
|
|
1276
1277
|
- [InstrumentDefinition](docs/InstrumentDefinition.md)
|
|
@@ -1553,6 +1554,7 @@ Class | Method | HTTP request | Description
|
|
|
1553
1554
|
- [PortfolioReturnBreakdown](docs/PortfolioReturnBreakdown.md)
|
|
1554
1555
|
- [PortfolioSearchResult](docs/PortfolioSearchResult.md)
|
|
1555
1556
|
- [PortfolioSettlementConfiguration](docs/PortfolioSettlementConfiguration.md)
|
|
1557
|
+
- [PortfolioSettlementInstruction](docs/PortfolioSettlementInstruction.md)
|
|
1556
1558
|
- [PortfolioTradeTicket](docs/PortfolioTradeTicket.md)
|
|
1557
1559
|
- [PortfolioTransaction](docs/PortfolioTransaction.md)
|
|
1558
1560
|
- [PortfolioType](docs/PortfolioType.md)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
lusid/__init__.py,sha256=
|
|
1
|
+
lusid/__init__.py,sha256=dkiv7_-VWMSBKb9vErzNMkM8AGuH5pLg4teJW1qtr9E,152939
|
|
2
2
|
lusid/api/__init__.py,sha256=ZRwaw_f87IHsKoGcZrKHw8M0fm3Mu3UM3nbiVK73HQg,6881
|
|
3
3
|
lusid/api/abor_api.py,sha256=HAy-AS66qepFFi0wCDU2Aaj6KzY3LDtEpcBm1Eo8M3M,174017
|
|
4
4
|
lusid/api/abor_configuration_api.py,sha256=DsR-gAPTA_e0XxS3m20Gvk8HeeqltKPXutpdmdxM0IM,84066
|
|
@@ -81,7 +81,7 @@ lusid/api/translation_api.py,sha256=ykq--aAObjON30cqkCgtlvNVN_X9o1kCFHBuhx0TqOY,
|
|
|
81
81
|
lusid/api/workspace_api.py,sha256=cIVlsVXulKjrNIF1NMaEH11-YRF3gOmLN6KaXVeECnk,120530
|
|
82
82
|
lusid/api_client.py,sha256=9ShwOKmMJEOUj82dVLKP8CIkwu0aGV2H5qwGxTVJp7w,31170
|
|
83
83
|
lusid/api_response.py,sha256=6-gnhty6lu8MMAERt3_kTVD7UxQgWFfcjgpcq6iN5IU,855
|
|
84
|
-
lusid/configuration.py,sha256=
|
|
84
|
+
lusid/configuration.py,sha256=NOI1nmT5YycpOJcOR_IXTEKuI-cjy1r6AAz7HT4u7sg,17980
|
|
85
85
|
lusid/exceptions.py,sha256=lYAJyHpruxMPUtZ95NwiYJvqzInY8S0yhRE0-JFYCww,5873
|
|
86
86
|
lusid/extensions/__init__.py,sha256=dzDHEzpn-9smd2-_UMWQzeyX6Ha4jGf6fnqx7qxKxNI,630
|
|
87
87
|
lusid/extensions/api_client.py,sha256=cq0kCulu3hsJ7jMPQfsE8B6FIa8ppTSXqneHo19RrXQ,30973
|
|
@@ -96,7 +96,7 @@ lusid/extensions/rest.py,sha256=dp-bD_LMR2zAL1tmC3-urhWKLomXx7r5iGN1VteMBVQ,1601
|
|
|
96
96
|
lusid/extensions/retry.py,sha256=EhW9OKJmGHipxN3H7eROH5DiMlAnfBVl95NQrttcsdg,14834
|
|
97
97
|
lusid/extensions/socket_keep_alive.py,sha256=eX5ICvGfVzUCGIm80Q2RknfFZrBQAdnrcpY61M29V_k,1997
|
|
98
98
|
lusid/extensions/tcp_keep_alive_connector.py,sha256=zaGtUsygRsxB1_4B3x39K3ILwztdhMLDv5bFZV7zmGE,3877
|
|
99
|
-
lusid/models/__init__.py,sha256=
|
|
99
|
+
lusid/models/__init__.py,sha256=JOfyenadMRJCm_ps7Wr3mY7_u-I2OeUxAQ0YmC5Iods,145026
|
|
100
100
|
lusid/models/a2_b_breakdown.py,sha256=18pIlwVZuDhVxDqLjbyBxNuZ_VUO3GFmmChiRyKpQaA,3392
|
|
101
101
|
lusid/models/a2_b_category.py,sha256=T_mFjHci03cwrdOsv745rSmcSMfNM9GSsWwoHjUmRl4,3192
|
|
102
102
|
lusid/models/a2_b_data_record.py,sha256=rt2ejMPpWR9t-b4hkErU11UU6a_nncGGns6x5tMY-GI,10217
|
|
@@ -659,6 +659,7 @@ lusid/models/inline_valuation_request.py,sha256=GyJMOfdzYJzBsFmo_-_U9MhK4R6GsLc1
|
|
|
659
659
|
lusid/models/inline_valuations_reconciliation_request.py,sha256=PFXcF2JjTCDlCcpJFWiwzCR9R3c_9dhU-YUxa-4BWiE,5184
|
|
660
660
|
lusid/models/input_transition.py,sha256=nXzNjEJxZQtHFrOfssszluNPTy9Bc4p97e_0RlkU2WM,2649
|
|
661
661
|
lusid/models/instrument.py,sha256=gLY4kihwkagVWNFWo5F7-81EyWV7xdYPw7uwZ3oq0wI,18100
|
|
662
|
+
lusid/models/instrument_activity.py,sha256=3wLyioq2U1f0ZStMoTje2P4ixSvqwjgVE_UMApDJc2I,7653
|
|
662
663
|
lusid/models/instrument_capabilities.py,sha256=E1F_04wQOnl_hXMrw76YCSYiQL__-NFpcRUEmhImlEk,6855
|
|
663
664
|
lusid/models/instrument_cash_flow.py,sha256=egdALhmnG3PSVxSUD8IOZ3OjGZrYGgMP2_ePur3GbMo,5752
|
|
664
665
|
lusid/models/instrument_definition.py,sha256=EL09PO7Ai4mngsmA9MRIEonWDUE0CYeK3WFBdmUhZGg,5729
|
|
@@ -768,8 +769,8 @@ lusid/models/moved_order_to_different_block_response.py,sha256=hEGh5TQ3tPCH2Vct8
|
|
|
768
769
|
lusid/models/movement_settlement_summary.py,sha256=nq2C-W05kw5oMpTVcLvLaevrC5hyKvObFe5FXmQScKk,5234
|
|
769
770
|
lusid/models/movement_type.py,sha256=qj1WoFCbN9vCWz1tJ3_5mfrMQVWiavhcZ7Rd-fu3Cd4,1600
|
|
770
771
|
lusid/models/multi_currency_amounts.py,sha256=e0KJp-e1LDkE2yL3xdNcToo_phmy4WJGi07wbHSv6cM,2518
|
|
771
|
-
lusid/models/nav_activity_adjustment.py,sha256=
|
|
772
|
-
lusid/models/nav_activity_adjustment_type.py,sha256=
|
|
772
|
+
lusid/models/nav_activity_adjustment.py,sha256=4k6Eb6aY4THwqAADDR7nTQmohsV7Hn6dIZ-swLKXjoI,7681
|
|
773
|
+
lusid/models/nav_activity_adjustment_type.py,sha256=nj4rfmwqJuIUOFGhgD0XBrCd_-rt8eI3tu_Wlxz0QNU,1127
|
|
773
774
|
lusid/models/nav_type_definition.py,sha256=-8WIxf_r0VFTPyFAHnRY76hZ1taCGzbwP1IOjMqBmv0,7663
|
|
774
775
|
lusid/models/new_instrument.py,sha256=HUSYHinyI1rWGZQPp2t2uoaqb-oKx9ktifidu5zecVw,4110
|
|
775
776
|
lusid/models/next_value_in_sequence_response.py,sha256=mhhsgn8RNV0_3n_kOXjuuRyOwd7ZwEBEjpiRyv-8BeA,3148
|
|
@@ -941,8 +942,9 @@ lusid/models/portfolio_result_data_key_rule.py,sha256=y5wNYIg--VVmFkD_bXauDdnRCA
|
|
|
941
942
|
lusid/models/portfolio_return_breakdown.py,sha256=wPje_BC5r64JVCvCbm38VJjex6dNifPGSJocIxGNHuE,7207
|
|
942
943
|
lusid/models/portfolio_search_result.py,sha256=9el8fMHeYIkccV3HjtfoXAQzFwnrVUl_ayXOQD3jNiA,10673
|
|
943
944
|
lusid/models/portfolio_settlement_configuration.py,sha256=NnaN8vXz2D94rmnEhEx6ZdorkWJS8xs-Y0vuo7SP5Mc,4685
|
|
945
|
+
lusid/models/portfolio_settlement_instruction.py,sha256=UwBgcYaxLUVpbgyP7KUNFvEJ08dhF3lAxOTOKk6fORc,8086
|
|
944
946
|
lusid/models/portfolio_trade_ticket.py,sha256=-euJn37O37Ua3NYu3b_IJo_8ZCROVEGND2WkKPE9HiI,3256
|
|
945
|
-
lusid/models/portfolio_transaction.py,sha256=
|
|
947
|
+
lusid/models/portfolio_transaction.py,sha256=FedNeUXLsjif759TtT_5AYTlDfn6ajkwhdNoEpR9yT8,7922
|
|
946
948
|
lusid/models/portfolio_type.py,sha256=Ytf-09rPfr3NTSxgQIUbJ1HdcbegwueT4n-KrO80etI,1031
|
|
947
949
|
lusid/models/portfolio_without_href.py,sha256=qTPLld2tgiPhQgMF8zY3oTZ8F2EOp3Xcb0yZeXb9DYc,22036
|
|
948
950
|
lusid/models/portfolios_reconciliation_request.py,sha256=rbGyHAWCN3Zf3mTimVCWYwQzwsbCAw6axH_qCc79Rsg,3422
|
|
@@ -1440,6 +1442,6 @@ lusid/models/year_month_day.py,sha256=H4OeBzWuMg6mwiOAHFfAvrzjd3QrFCqx1ldsB4L9YQ
|
|
|
1440
1442
|
lusid/models/yield_curve_data.py,sha256=ErrQ72NxVza3dC-NnjdbwUpFJKLC-i9UfAWgZyQlEC0,10599
|
|
1441
1443
|
lusid/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
1442
1444
|
lusid/rest.py,sha256=HQT__5LQEMu6_1sLKvYj-DI4FH1DJXBIPYfZCTTyrY4,13431
|
|
1443
|
-
lusid_sdk-2.3.
|
|
1444
|
-
lusid_sdk-2.3.
|
|
1445
|
-
lusid_sdk-2.3.
|
|
1445
|
+
lusid_sdk-2.3.24.dist-info/METADATA,sha256=YTGZP2IuAeURzVsT3jzeoA67uWoylyvW6xX45aKa9Ek,242428
|
|
1446
|
+
lusid_sdk-2.3.24.dist-info/WHEEL,sha256=3ny-bZhpXrU6vSQ1UPG34FoxZBp3lVcvK0LkgUz6VLk,88
|
|
1447
|
+
lusid_sdk-2.3.24.dist-info/RECORD,,
|
|
File without changes
|