lusid-sdk 2.1.468__py3-none-any.whl → 2.1.472__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 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.6897\n"\
448
+ "Version of the API: 0.11.6901\n"\
449
449
  "SDK Package Version: {package_version}".\
450
450
  format(env=sys.platform, pyversion=sys.version, package_version=package_version)
451
451
 
@@ -19,7 +19,7 @@ import json
19
19
 
20
20
 
21
21
  from typing import Any, Dict, List, Optional
22
- from pydantic.v1 import BaseModel, Field, conlist, constr
22
+ from pydantic.v1 import BaseModel, Field, StrictBool, conlist, constr
23
23
  from lusid.models.transaction_field_map import TransactionFieldMap
24
24
  from lusid.models.transaction_property_map import TransactionPropertyMap
25
25
 
@@ -31,7 +31,8 @@ class ComponentTransaction(BaseModel):
31
31
  condition: Optional[constr(strict=True, max_length=1024, min_length=0)] = None
32
32
  transaction_field_map: TransactionFieldMap = Field(..., alias="transactionFieldMap")
33
33
  transaction_property_map: conlist(TransactionPropertyMap) = Field(..., alias="transactionPropertyMap")
34
- __properties = ["displayName", "condition", "transactionFieldMap", "transactionPropertyMap"]
34
+ preserve_tax_lot_structure: Optional[StrictBool] = Field(None, alias="preserveTaxLotStructure", description="Controls if tax lot structure should be preserved when cost base is transferred to a new holding. For example in Spin Off instrument events.")
35
+ __properties = ["displayName", "condition", "transactionFieldMap", "transactionPropertyMap", "preserveTaxLotStructure"]
35
36
 
36
37
  class Config:
37
38
  """Pydantic configuration"""
@@ -72,6 +73,11 @@ class ComponentTransaction(BaseModel):
72
73
  if self.condition is None and "condition" in self.__fields_set__:
73
74
  _dict['condition'] = None
74
75
 
76
+ # set to None if preserve_tax_lot_structure (nullable) is None
77
+ # and __fields_set__ contains the field
78
+ if self.preserve_tax_lot_structure is None and "preserve_tax_lot_structure" in self.__fields_set__:
79
+ _dict['preserveTaxLotStructure'] = None
80
+
75
81
  return _dict
76
82
 
77
83
  @classmethod
@@ -87,6 +93,7 @@ class ComponentTransaction(BaseModel):
87
93
  "display_name": obj.get("displayName"),
88
94
  "condition": obj.get("condition"),
89
95
  "transaction_field_map": TransactionFieldMap.from_dict(obj.get("transactionFieldMap")) if obj.get("transactionFieldMap") is not None else None,
90
- "transaction_property_map": [TransactionPropertyMap.from_dict(_item) for _item in obj.get("transactionPropertyMap")] if obj.get("transactionPropertyMap") is not None else None
96
+ "transaction_property_map": [TransactionPropertyMap.from_dict(_item) for _item in obj.get("transactionPropertyMap")] if obj.get("transactionPropertyMap") is not None else None,
97
+ "preserve_tax_lot_structure": obj.get("preserveTaxLotStructure")
91
98
  })
92
99
  return _obj
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lusid-sdk
3
- Version: 2.1.468
3
+ Version: 2.1.472
4
4
  Summary: LUSID API
5
5
  Home-page: https://github.com/finbourne/lusid-sdk-python
6
6
  License: MIT
@@ -70,7 +70,7 @@ lusid/api/translation_api.py,sha256=nIyuLncCvVC5k2d7Nm32zR8AQ1dkrVm1OThkmELY_OM,
70
70
  lusid/api/workspace_api.py,sha256=mYQPqFUVf1VKYeWQUV5VkcdSqwejSmPDGd66Az86-_E,191319
71
71
  lusid/api_client.py,sha256=ewMTmf9SRurY8pYnUx9jy24RdldPCOa4US38pnrVxjA,31140
72
72
  lusid/api_response.py,sha256=6-gnhty6lu8MMAERt3_kTVD7UxQgWFfcjgpcq6iN5IU,855
73
- lusid/configuration.py,sha256=NQg9fIP1SWhKqonMrJnI3_NXpkkB3jqSa_imDDjiruE,17972
73
+ lusid/configuration.py,sha256=u2DgQeoU0sBctiWfKjJkUhlgAaW6yW3pYP7i6btmCKo,17972
74
74
  lusid/exceptions.py,sha256=HIQwgmQrszLlcVCLaqex8dO0laVuejUyOMz7U2ZWJ6s,5326
75
75
  lusid/extensions/__init__.py,sha256=dzDHEzpn-9smd2-_UMWQzeyX6Ha4jGf6fnqx7qxKxNI,630
76
76
  lusid/extensions/api_client.py,sha256=GzygWg_h603QK1QS2HvAijuE2R1TnvoF6-Yg0CeM3ug,30943
@@ -266,7 +266,7 @@ lusid/models/compliance_template_variation.py,sha256=mnbKZ78bbQyq7L3LtcXPT2DrymD
266
266
  lusid/models/compliance_template_variation_dto.py,sha256=fWH4WbJjLPjpyb0p4_SVeRaVYyb22KOsthPo-sftggE,4300
267
267
  lusid/models/compliance_template_variation_request.py,sha256=UFy6md9GFHvKgH2GT0-Cwfg48pSvo2UtKcCYLFZG2js,4361
268
268
  lusid/models/component_filter.py,sha256=lIRWmBzhjHiA3KOraTZ1jFbUBWR2bz5JUet9Kzx2N3I,2590
269
- lusid/models/component_transaction.py,sha256=9q-Xj49CIIMWk7QZflkaunWUJAkHiKxaHqdc-owL_8Q,3645
269
+ lusid/models/component_transaction.py,sha256=J5nGIdp-a6RIiVIISi1PeeiQX-7d3sbHrCoIrINVPfU,4298
270
270
  lusid/models/composite_breakdown.py,sha256=WfT-c2bvOmT9LP1zFI8V2cIWOLJ4LRsaLZH98IImZ8U,3350
271
271
  lusid/models/composite_breakdown_request.py,sha256=fjhlpBroC8ys0jwfglD-_HJlsDdp3mDIDmvdyD6llj8,5315
272
272
  lusid/models/composite_breakdown_response.py,sha256=i4TgND_eSE6zcYUsYzn0mD12CxEsGwNSVbhMTwzyTrI,3925
@@ -1191,6 +1191,6 @@ lusid/models/workspace_update_request.py,sha256=uUXEpX-dJ5UiL9w1wMxIFeovSBiTJ-vi
1191
1191
  lusid/models/yield_curve_data.py,sha256=SbxvdJ4-GWK9kpMdw4Fnxc7_kvIMwgsRsd_31UJn7nw,6330
1192
1192
  lusid/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1193
1193
  lusid/rest.py,sha256=HQT__5LQEMu6_1sLKvYj-DI4FH1DJXBIPYfZCTTyrY4,13431
1194
- lusid_sdk-2.1.468.dist-info/METADATA,sha256=ds-TDw-tBDKlYTU0rCOe0tLSE-_xitHTbv4j_KCfmP8,204661
1195
- lusid_sdk-2.1.468.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
1196
- lusid_sdk-2.1.468.dist-info/RECORD,,
1194
+ lusid_sdk-2.1.472.dist-info/METADATA,sha256=nkDMJb9JdM9vt9rJOKbWQlW81LpZq5ivJbM3CncabUU,204661
1195
+ lusid_sdk-2.1.472.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
1196
+ lusid_sdk-2.1.472.dist-info/RECORD,,