lusid-sdk 2.1.679__py3-none-any.whl → 2.1.681__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/configuration.py +1 -1
- lusid/models/cash_and_security_offer_election.py +1 -1
- lusid/models/cash_offer_election.py +1 -1
- lusid/models/field_definition.py +11 -4
- lusid/models/field_value.py +17 -5
- lusid/models/fund_request.py +1 -1
- lusid/models/security_offer_election.py +1 -1
- lusid/models/transaction_type_property_mapping.py +10 -3
- {lusid_sdk-2.1.679.dist-info → lusid_sdk-2.1.681.dist-info}/METADATA +1 -1
- {lusid_sdk-2.1.679.dist-info → lusid_sdk-2.1.681.dist-info}/RECORD +11 -11
- {lusid_sdk-2.1.679.dist-info → lusid_sdk-2.1.681.dist-info}/WHEEL +0 -0
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.7297\n"\
|
449
449
|
"SDK Package Version: {package_version}".\
|
450
450
|
format(env=sys.platform, pyversion=sys.version, package_version=package_version)
|
451
451
|
|
@@ -24,7 +24,7 @@ from lusid.models.units_ratio import UnitsRatio
|
|
24
24
|
|
25
25
|
class CashAndSecurityOfferElection(BaseModel):
|
26
26
|
"""
|
27
|
-
|
27
|
+
Election for events that result in both cash and equity via a merger or acquisition # noqa: E501
|
28
28
|
"""
|
29
29
|
cash_offer_currency: StrictStr = Field(..., alias="cashOfferCurrency", description="Currency of the cash offer")
|
30
30
|
cash_offer_price: Union[StrictFloat, StrictInt] = Field(..., alias="cashOfferPrice", description="Price per share of the cash offer")
|
@@ -23,7 +23,7 @@ from pydantic.v1 import BaseModel, Field, StrictBool, StrictFloat, StrictInt, St
|
|
23
23
|
|
24
24
|
class CashOfferElection(BaseModel):
|
25
25
|
"""
|
26
|
-
|
26
|
+
Election for events that result in cash via a merger or acquisition # noqa: E501
|
27
27
|
"""
|
28
28
|
cash_offer_currency: StrictStr = Field(..., alias="cashOfferCurrency", description="Currency of the cash offer")
|
29
29
|
cash_offer_price: Union[StrictFloat, StrictInt] = Field(..., alias="cashOfferPrice", description="Price per share of the cash offer")
|
lusid/models/field_definition.py
CHANGED
@@ -18,8 +18,8 @@ import re # noqa: F401
|
|
18
18
|
import json
|
19
19
|
|
20
20
|
|
21
|
-
from typing import Any, Dict
|
22
|
-
from pydantic.v1 import BaseModel, Field, StrictBool, constr, validator
|
21
|
+
from typing import Any, Dict, Optional
|
22
|
+
from pydantic.v1 import BaseModel, Field, StrictBool, StrictStr, constr, validator
|
23
23
|
|
24
24
|
class FieldDefinition(BaseModel):
|
25
25
|
"""
|
@@ -28,7 +28,8 @@ class FieldDefinition(BaseModel):
|
|
28
28
|
key: constr(strict=True, max_length=512, min_length=1) = Field(...)
|
29
29
|
is_required: StrictBool = Field(..., alias="isRequired")
|
30
30
|
is_unique: StrictBool = Field(..., alias="isUnique")
|
31
|
-
|
31
|
+
value_type: Optional[StrictStr] = Field(None, alias="valueType")
|
32
|
+
__properties = ["key", "isRequired", "isUnique", "valueType"]
|
32
33
|
|
33
34
|
@validator('key')
|
34
35
|
def key_validate_regular_expression(cls, value):
|
@@ -69,6 +70,11 @@ class FieldDefinition(BaseModel):
|
|
69
70
|
exclude={
|
70
71
|
},
|
71
72
|
exclude_none=True)
|
73
|
+
# set to None if value_type (nullable) is None
|
74
|
+
# and __fields_set__ contains the field
|
75
|
+
if self.value_type is None and "value_type" in self.__fields_set__:
|
76
|
+
_dict['valueType'] = None
|
77
|
+
|
72
78
|
return _dict
|
73
79
|
|
74
80
|
@classmethod
|
@@ -83,6 +89,7 @@ class FieldDefinition(BaseModel):
|
|
83
89
|
_obj = FieldDefinition.parse_obj({
|
84
90
|
"key": obj.get("key"),
|
85
91
|
"is_required": obj.get("isRequired"),
|
86
|
-
"is_unique": obj.get("isUnique")
|
92
|
+
"is_unique": obj.get("isUnique"),
|
93
|
+
"value_type": obj.get("valueType")
|
87
94
|
})
|
88
95
|
return _obj
|
lusid/models/field_value.py
CHANGED
@@ -18,16 +18,17 @@ import re # noqa: F401
|
|
18
18
|
import json
|
19
19
|
|
20
20
|
|
21
|
-
from typing import Any, Dict
|
22
|
-
from pydantic.v1 import BaseModel, Field, StrictStr, constr, validator
|
21
|
+
from typing import Any, Dict, Optional, Union
|
22
|
+
from pydantic.v1 import BaseModel, Field, StrictFloat, StrictInt, StrictStr, constr, validator
|
23
23
|
|
24
24
|
class FieldValue(BaseModel):
|
25
25
|
"""
|
26
26
|
FieldValue
|
27
27
|
"""
|
28
28
|
value: constr(strict=True, max_length=512, min_length=1) = Field(...)
|
29
|
-
fields: Dict[str, StrictStr] =
|
30
|
-
|
29
|
+
fields: Optional[Dict[str, StrictStr]] = None
|
30
|
+
numeric_fields: Optional[Dict[str, Union[StrictFloat, StrictInt]]] = Field(None, alias="numericFields")
|
31
|
+
__properties = ["value", "fields", "numericFields"]
|
31
32
|
|
32
33
|
@validator('value')
|
33
34
|
def value_validate_regular_expression(cls, value):
|
@@ -68,6 +69,16 @@ class FieldValue(BaseModel):
|
|
68
69
|
exclude={
|
69
70
|
},
|
70
71
|
exclude_none=True)
|
72
|
+
# set to None if fields (nullable) is None
|
73
|
+
# and __fields_set__ contains the field
|
74
|
+
if self.fields is None and "fields" in self.__fields_set__:
|
75
|
+
_dict['fields'] = None
|
76
|
+
|
77
|
+
# set to None if numeric_fields (nullable) is None
|
78
|
+
# and __fields_set__ contains the field
|
79
|
+
if self.numeric_fields is None and "numeric_fields" in self.__fields_set__:
|
80
|
+
_dict['numericFields'] = None
|
81
|
+
|
71
82
|
return _dict
|
72
83
|
|
73
84
|
@classmethod
|
@@ -81,6 +92,7 @@ class FieldValue(BaseModel):
|
|
81
92
|
|
82
93
|
_obj = FieldValue.parse_obj({
|
83
94
|
"value": obj.get("value"),
|
84
|
-
"fields": obj.get("fields")
|
95
|
+
"fields": obj.get("fields"),
|
96
|
+
"numeric_fields": obj.get("numericFields")
|
85
97
|
})
|
86
98
|
return _obj
|
lusid/models/fund_request.py
CHANGED
@@ -32,7 +32,7 @@ class FundRequest(BaseModel):
|
|
32
32
|
code: constr(strict=True, max_length=64, min_length=1) = Field(..., description="The code given for the Fund.")
|
33
33
|
display_name: Optional[constr(strict=True, max_length=256, min_length=1)] = Field(None, alias="displayName", description="The name of the Fund.")
|
34
34
|
description: Optional[constr(strict=True, max_length=1024, min_length=0)] = Field(None, description="A description for the Fund.")
|
35
|
-
fund_configuration_id:
|
35
|
+
fund_configuration_id: ResourceId = Field(..., alias="fundConfigurationId")
|
36
36
|
abor_id: ResourceId = Field(..., alias="aborId")
|
37
37
|
share_class_instrument_scopes: Optional[conlist(StrictStr, max_items=1)] = Field(None, alias="shareClassInstrumentScopes", description="The scopes in which the instruments lie, currently limited to one.")
|
38
38
|
share_class_instruments: Optional[conlist(InstrumentResolutionDetail)] = Field(None, alias="shareClassInstruments", description="Details the user-provided instrument identifiers and the instrument resolved from them.")
|
@@ -24,7 +24,7 @@ from lusid.models.units_ratio import UnitsRatio
|
|
24
24
|
|
25
25
|
class SecurityOfferElection(BaseModel):
|
26
26
|
"""
|
27
|
-
|
27
|
+
Election for events that result in cash via a merger or acquisition # noqa: E501
|
28
28
|
"""
|
29
29
|
election_key: constr(strict=True, min_length=1) = Field(..., alias="electionKey", description="Unique key associated to this election.")
|
30
30
|
is_chosen: Optional[StrictBool] = Field(None, alias="isChosen", description="Is this the election that has been explicitly chosen from multiple options.")
|
@@ -19,7 +19,7 @@ import json
|
|
19
19
|
|
20
20
|
|
21
21
|
from typing import Any, Dict, Optional
|
22
|
-
from pydantic.v1 import BaseModel, Field, StrictStr, constr, validator
|
22
|
+
from pydantic.v1 import BaseModel, Field, StrictBool, StrictStr, constr, validator
|
23
23
|
|
24
24
|
class TransactionTypePropertyMapping(BaseModel):
|
25
25
|
"""
|
@@ -29,7 +29,8 @@ class TransactionTypePropertyMapping(BaseModel):
|
|
29
29
|
map_from: Optional[StrictStr] = Field(None, alias="mapFrom", description="The Property Key of the Property to map from")
|
30
30
|
set_to: Optional[constr(strict=True, max_length=512, min_length=0)] = Field(None, alias="setTo", description="A pointer to the Property being mapped from")
|
31
31
|
template_from: Optional[constr(strict=True, max_length=512, min_length=1)] = Field(None, alias="templateFrom", description="The template that defines how the property value is constructed from transaction, instrument and portfolio details.")
|
32
|
-
|
32
|
+
nullify: Optional[StrictBool] = Field(None, description="Flag to unset the Property Key for the mapping")
|
33
|
+
__properties = ["propertyKey", "mapFrom", "setTo", "templateFrom", "nullify"]
|
33
34
|
|
34
35
|
@validator('set_to')
|
35
36
|
def set_to_validate_regular_expression(cls, value):
|
@@ -98,6 +99,11 @@ class TransactionTypePropertyMapping(BaseModel):
|
|
98
99
|
if self.template_from is None and "template_from" in self.__fields_set__:
|
99
100
|
_dict['templateFrom'] = None
|
100
101
|
|
102
|
+
# set to None if nullify (nullable) is None
|
103
|
+
# and __fields_set__ contains the field
|
104
|
+
if self.nullify is None and "nullify" in self.__fields_set__:
|
105
|
+
_dict['nullify'] = None
|
106
|
+
|
101
107
|
return _dict
|
102
108
|
|
103
109
|
@classmethod
|
@@ -113,6 +119,7 @@ class TransactionTypePropertyMapping(BaseModel):
|
|
113
119
|
"property_key": obj.get("propertyKey"),
|
114
120
|
"map_from": obj.get("mapFrom"),
|
115
121
|
"set_to": obj.get("setTo"),
|
116
|
-
"template_from": obj.get("templateFrom")
|
122
|
+
"template_from": obj.get("templateFrom"),
|
123
|
+
"nullify": obj.get("nullify")
|
117
124
|
})
|
118
125
|
return _obj
|
@@ -71,7 +71,7 @@ lusid/api/translation_api.py,sha256=nIyuLncCvVC5k2d7Nm32zR8AQ1dkrVm1OThkmELY_OM,
|
|
71
71
|
lusid/api/workspace_api.py,sha256=Yox1q7TDY-_O3HF-N8g5kGuNgp4unWvlSZmRZ6MNZO0,196701
|
72
72
|
lusid/api_client.py,sha256=ewMTmf9SRurY8pYnUx9jy24RdldPCOa4US38pnrVxjA,31140
|
73
73
|
lusid/api_response.py,sha256=6-gnhty6lu8MMAERt3_kTVD7UxQgWFfcjgpcq6iN5IU,855
|
74
|
-
lusid/configuration.py,sha256=
|
74
|
+
lusid/configuration.py,sha256=vlvcdA7EUPwqyWc8S-7GHwHK13DAcrPQVlDB7q6Ks3A,17972
|
75
75
|
lusid/exceptions.py,sha256=HIQwgmQrszLlcVCLaqex8dO0laVuejUyOMz7U2ZWJ6s,5326
|
76
76
|
lusid/extensions/__init__.py,sha256=dzDHEzpn-9smd2-_UMWQzeyX6Ha4jGf6fnqx7qxKxNI,630
|
77
77
|
lusid/extensions/api_client.py,sha256=GzygWg_h603QK1QS2HvAijuE2R1TnvoF6-Yg0CeM3ug,30943
|
@@ -203,7 +203,7 @@ lusid/models/cancelled_placement_result.py,sha256=8MUqmJ9zXIkLE9BFXP9k7YPAxv94He
|
|
203
203
|
lusid/models/cap_floor.py,sha256=8p920dtIb9McH7QCLctog6yByeL9LeAZjVAIjTSjoqo,8075
|
204
204
|
lusid/models/capital_distribution_event.py,sha256=y16Z7xKvgPs4yZakqoCaGeZNn28GaqNOHlk7PGUHeqs,8822
|
205
205
|
lusid/models/cash.py,sha256=ehMFinooLmkO3xEAJonFT2fRJIMLc70dMYxMAzXtN1o,5312
|
206
|
-
lusid/models/cash_and_security_offer_election.py,sha256=
|
206
|
+
lusid/models/cash_and_security_offer_election.py,sha256=K1VEfFh5Fw5ZayVjVfXhzIEhjy4nJ_SNGW0RcpKC4TA,4229
|
207
207
|
lusid/models/cash_dependency.py,sha256=8ARBxSf64qbQyrBFz4VrqWhSkcdQHwL3kuC6o73kxL0,4395
|
208
208
|
lusid/models/cash_dividend_event.py,sha256=Q6f6IlYnQDYVGmWr89ugztCONrFTf7-tUADUHyKd1uA,8773
|
209
209
|
lusid/models/cash_election.py,sha256=Od1rd9OKrvz9Y-Sk8yet5REm1f3I3gbQcfGyXE77tHc,4095
|
@@ -212,7 +212,7 @@ lusid/models/cash_flow_lineage.py,sha256=86XaROMcEF-SZ-o65HwQvM66gR79Q6d8nN159xO
|
|
212
212
|
lusid/models/cash_flow_value.py,sha256=WWwW8vAQvckQs_bVZvej5e0Qyuslm1dBd0CGahcntgw,5312
|
213
213
|
lusid/models/cash_flow_value_set.py,sha256=Y6HG5BtAEmSvx4zrvRoTwu6AawoqAvtWdFbI9aQP1XY,4637
|
214
214
|
lusid/models/cash_ladder_record.py,sha256=6x8iQ3s8SYhUGJeiSBdfQB1itfHXyzArgEguSnCvwQ0,2498
|
215
|
-
lusid/models/cash_offer_election.py,sha256=
|
215
|
+
lusid/models/cash_offer_election.py,sha256=1yE3oUZBgX4vEEui2sryo9M9UGIfDV-hNh2K67DgPVY,3227
|
216
216
|
lusid/models/cash_perpetual.py,sha256=kU3Q8vft2tdk2GfR0FM4ca-IX5KKZs8kG7ZaAY0EIYA,5632
|
217
217
|
lusid/models/cds_credit_event.py,sha256=7dXulTEmj97nk0yZrt87Xc0qDS2ZvddQ_rnzQQLRD5E,7989
|
218
218
|
lusid/models/cds_flow_conventions.py,sha256=Id438OngM9SNKRSR1xRYph7c41PpH-DYD5jHrdQlM7k,8374
|
@@ -438,9 +438,9 @@ lusid/models/fee_rule_upsert_response.py,sha256=N5tsdsIA9z5ayvxnYe3cVe201yxFNnfP
|
|
438
438
|
lusid/models/fee_transaction_template_specification.py,sha256=JXAD9cdfG8nXsBKdRMUUqD7emQ9C7LZ1TVhHcldPVUg,3065
|
439
439
|
lusid/models/fee_type.py,sha256=eQOP0wsOYK0FuFF4ts3yT1tIT8tti5tKKB6XFM0P0u4,4918
|
440
440
|
lusid/models/fee_type_request.py,sha256=uBg7jIkgPEHUb-wxxh2j1avYSvyRpFD7SOMTBJZAfzc,4208
|
441
|
-
lusid/models/field_definition.py,sha256=
|
441
|
+
lusid/models/field_definition.py,sha256=qHqH6HRIdIHR1Kv2sa45IqIraISpsg6oJ4hVdzOrSYs,2964
|
442
442
|
lusid/models/field_schema.py,sha256=9pjdKq6FXoFdnGkuTbUNZcV4T5UtcqFsJFu22vYy44c,4245
|
443
|
-
lusid/models/field_value.py,sha256=
|
443
|
+
lusid/models/field_value.py,sha256=6iSfkIz0tbfYsDZi33fMMImhpZMzPvFIk4uNrH7rrJg,3086
|
444
444
|
lusid/models/file_response.py,sha256=jKRJURmCeI3Aqni1WWOOSysOMvcIN08cHaA5LOtTWHc,3219
|
445
445
|
lusid/models/filter_predicate_compliance_parameter.py,sha256=-ALrozlijjYnlFCI5Pf4Us8fh8tFBgkNYbrUOnX0aVQ,5603
|
446
446
|
lusid/models/filter_step.py,sha256=dg5ph8bLRuLPFzndMIXt_XgyDwnQeTD7DGsDbFqxmZk,4128
|
@@ -466,7 +466,7 @@ lusid/models/fund_id_list.py,sha256=EKhvNkq72-TPUgos1k2jZ1AsUEEEEL3fMEBWOXd2CpE,
|
|
466
466
|
lusid/models/fund_pnl_breakdown.py,sha256=OOrN13tJkrirnv3-mlCn0UiS5QPmvTO2zamJLJvbGqo,4634
|
467
467
|
lusid/models/fund_previous_nav.py,sha256=pti9A9nJi1lsYPkc7eLpQznUXTY8s7mQqh-yjPCP6lQ,2143
|
468
468
|
lusid/models/fund_properties.py,sha256=MM7AlwoHcFBqXw2_tZHIGE4g3bzu151mDx_mQ315ses,4455
|
469
|
-
lusid/models/fund_request.py,sha256=
|
469
|
+
lusid/models/fund_request.py,sha256=xKpG3E3PCfgFJ4H81iUudIySRyOh5MEzkM5O7RB18-Y,8547
|
470
470
|
lusid/models/fund_share_class.py,sha256=SnuokGuhb11BAfx3kUTODOeQZcXNN87k0Nde0NUIEd0,8108
|
471
471
|
lusid/models/fund_valuation_point_data.py,sha256=52yB7Ctf5JN3SiZKTCafufa314dsyIszrf0V_H1buaM,7023
|
472
472
|
lusid/models/funding_leg.py,sha256=59p4wE-gU2GRP192CpDLFKy9wssct4xnm1SyfKP6Wjo,7833
|
@@ -1014,7 +1014,7 @@ lusid/models/scope_definition.py,sha256=amGUrR9loReaIZSmfKGf5LH5yEaXkDyNPPR7qFBE
|
|
1014
1014
|
lusid/models/scrip_dividend_event.py,sha256=VRGcClQGS0ERS38CseRzXZQ09D_vcMNRDa14Cec4jmU,9744
|
1015
1015
|
lusid/models/script_map_reference.py,sha256=Wgi2_AqwEmyrBIKtXQCeAG2Ex3swQ0DN546XPZorbh0,3570
|
1016
1016
|
lusid/models/security_election.py,sha256=zqwTn6VsifxqvwBlZaF1KH0ZWcRkWsGbh1jlBkIAXm0,3642
|
1017
|
-
lusid/models/security_offer_election.py,sha256=
|
1017
|
+
lusid/models/security_offer_election.py,sha256=u564s3axpz5ISkx-DYJnNkmOr1cWsX43_Kv1wODtEpw,3217
|
1018
1018
|
lusid/models/sequence_definition.py,sha256=9iVpGQUPRw2wrezMruT7u3uRsR-d0QcqC4a4EA1OH2E,4652
|
1019
1019
|
lusid/models/set_amortisation_rules_request.py,sha256=NuZO9en7Rq_AqQrSvsmzwnXGkN8AJrw7xhwxi2cDudY,2498
|
1020
1020
|
lusid/models/set_legal_entity_identifiers_request.py,sha256=J-LB8ItW1tbXmvBG8XS_5A13SVOkHtXDvpwr_Ygwum8,3158
|
@@ -1117,7 +1117,7 @@ lusid/models/transaction_type_alias.py,sha256=Xd19reVzCbLEBRRjo-ARwknMkU39klaDXG
|
|
1117
1117
|
lusid/models/transaction_type_calculation.py,sha256=FSdp_1MWqcawYvlogm6Gic5GwtvMdxx24od1fvcNfM4,3059
|
1118
1118
|
lusid/models/transaction_type_details.py,sha256=iITPcL3WqNZINrbGnLZzzy76trnVCTHCoCIXVI6hCQc,2773
|
1119
1119
|
lusid/models/transaction_type_movement.py,sha256=cqcFFVI4JIZXM3m4bv1tjz-vdgpNThnhAVYdUIj-T_Y,8908
|
1120
|
-
lusid/models/transaction_type_property_mapping.py,sha256=
|
1120
|
+
lusid/models/transaction_type_property_mapping.py,sha256=QLAXsCSSQGKDWdEWs7OaNYF3yNBZeVB61jUGTX1jlAY,4735
|
1121
1121
|
lusid/models/transaction_type_request.py,sha256=LY3jBExh3dBYHba6rsQSQtPpW9UoL5d5168L107wyjs,5334
|
1122
1122
|
lusid/models/transactions_reconciliations_response.py,sha256=QIoqf354n-YarzHnlFZepF8iOsufoRT2msxdgur6PBw,3296
|
1123
1123
|
lusid/models/transition_event.py,sha256=TGAwzLpLLOnciOoz7RveEl-27YhjlF8__yLcgKxjzeI,9066
|
@@ -1254,6 +1254,6 @@ lusid/models/workspace_update_request.py,sha256=5N7j21uF9XV75Sl3oJbsSOKT5PrQEx3y
|
|
1254
1254
|
lusid/models/yield_curve_data.py,sha256=vtOzY4t2lgHJUWcna9dEKnuZ_tinolyb8IAFPB23DZ0,6543
|
1255
1255
|
lusid/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
1256
1256
|
lusid/rest.py,sha256=HQT__5LQEMu6_1sLKvYj-DI4FH1DJXBIPYfZCTTyrY4,13431
|
1257
|
-
lusid_sdk-2.1.
|
1258
|
-
lusid_sdk-2.1.
|
1259
|
-
lusid_sdk-2.1.
|
1257
|
+
lusid_sdk-2.1.681.dist-info/METADATA,sha256=sL-l4DmydN-_q5OGstHmqwrkdi_9o5oX4w8a28t1B1Y,213719
|
1258
|
+
lusid_sdk-2.1.681.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
1259
|
+
lusid_sdk-2.1.681.dist-info/RECORD,,
|
File without changes
|