lusid-sdk 2.1.966__py3-none-any.whl → 2.1.967__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.8336\n"\
448
+ "Version of the API: 0.11.8343\n"\
449
449
  "SDK Package Version: {package_version}".\
450
450
  format(env=sys.platform, pyversion=sys.version, package_version=package_version)
451
451
 
@@ -39,8 +39,9 @@ class InstrumentEventInstruction(BaseModel):
39
39
  href: Optional[StrictStr] = Field(None,alias="href", description="The uri for this version of this instruction")
40
40
  entitlement_date_instructed: Optional[datetime] = Field(None, alias="entitlementDateInstructed", description="The instructed entitlement date for the event (where none is set on the event itself)")
41
41
  quantity_instructed: Optional[QuantityInstructed] = Field(None, alias="quantityInstructed")
42
+ tax_lot_id: Optional[StrictStr] = Field(None,alias="taxLotId", description="For loan facility holding instructions, the tax lot id of the holding for which the instruction will apply")
42
43
  links: Optional[conlist(Link)] = None
43
- __properties = ["instrumentEventInstructionId", "portfolioId", "instrumentEventId", "instructionType", "electionKey", "holdingId", "version", "href", "entitlementDateInstructed", "quantityInstructed", "links"]
44
+ __properties = ["instrumentEventInstructionId", "portfolioId", "instrumentEventId", "instructionType", "electionKey", "holdingId", "version", "href", "entitlementDateInstructed", "quantityInstructed", "taxLotId", "links"]
44
45
 
45
46
  class Config:
46
47
  """Pydantic configuration"""
@@ -125,6 +126,11 @@ class InstrumentEventInstruction(BaseModel):
125
126
  if self.entitlement_date_instructed is None and "entitlement_date_instructed" in self.__fields_set__:
126
127
  _dict['entitlementDateInstructed'] = None
127
128
 
129
+ # set to None if tax_lot_id (nullable) is None
130
+ # and __fields_set__ contains the field
131
+ if self.tax_lot_id is None and "tax_lot_id" in self.__fields_set__:
132
+ _dict['taxLotId'] = None
133
+
128
134
  # set to None if links (nullable) is None
129
135
  # and __fields_set__ contains the field
130
136
  if self.links is None and "links" in self.__fields_set__:
@@ -152,6 +158,7 @@ class InstrumentEventInstruction(BaseModel):
152
158
  "href": obj.get("href"),
153
159
  "entitlement_date_instructed": obj.get("entitlementDateInstructed"),
154
160
  "quantity_instructed": QuantityInstructed.from_dict(obj.get("quantityInstructed")) if obj.get("quantityInstructed") is not None else None,
161
+ "tax_lot_id": obj.get("taxLotId"),
155
162
  "links": [Link.from_dict(_item) for _item in obj.get("links")] if obj.get("links") is not None else None
156
163
  })
157
164
  return _obj
@@ -33,7 +33,8 @@ class InstrumentEventInstructionRequest(BaseModel):
33
33
  holding_id: Optional[StrictInt] = Field(None, alias="holdingId", description="For holding instructions, the id of the holding for which the instruction will apply")
34
34
  entitlement_date_instructed: Optional[datetime] = Field(None, alias="entitlementDateInstructed", description="The instructed entitlement date for the event (where none is set on the event itself)")
35
35
  quantity_instructed: Optional[QuantityInstructed] = Field(None, alias="quantityInstructed")
36
- __properties = ["instrumentEventInstructionId", "instrumentEventId", "instructionType", "electionKey", "holdingId", "entitlementDateInstructed", "quantityInstructed"]
36
+ tax_lot_id: Optional[StrictStr] = Field(None,alias="taxLotId", description="For loan facility holding instructions, the tax lot id of the holding for which the instruction will apply")
37
+ __properties = ["instrumentEventInstructionId", "instrumentEventId", "instructionType", "electionKey", "holdingId", "entitlementDateInstructed", "quantityInstructed", "taxLotId"]
37
38
 
38
39
  class Config:
39
40
  """Pydantic configuration"""
@@ -85,6 +86,11 @@ class InstrumentEventInstructionRequest(BaseModel):
85
86
  if self.entitlement_date_instructed is None and "entitlement_date_instructed" in self.__fields_set__:
86
87
  _dict['entitlementDateInstructed'] = None
87
88
 
89
+ # set to None if tax_lot_id (nullable) is None
90
+ # and __fields_set__ contains the field
91
+ if self.tax_lot_id is None and "tax_lot_id" in self.__fields_set__:
92
+ _dict['taxLotId'] = None
93
+
88
94
  return _dict
89
95
 
90
96
  @classmethod
@@ -103,6 +109,7 @@ class InstrumentEventInstructionRequest(BaseModel):
103
109
  "election_key": obj.get("electionKey"),
104
110
  "holding_id": obj.get("holdingId"),
105
111
  "entitlement_date_instructed": obj.get("entitlementDateInstructed"),
106
- "quantity_instructed": QuantityInstructed.from_dict(obj.get("quantityInstructed")) if obj.get("quantityInstructed") is not None else None
112
+ "quantity_instructed": QuantityInstructed.from_dict(obj.get("quantityInstructed")) if obj.get("quantityInstructed") is not None else None,
113
+ "tax_lot_id": obj.get("taxLotId")
107
114
  })
108
115
  return _obj
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lusid-sdk
3
- Version: 2.1.966
3
+ Version: 2.1.967
4
4
  Summary: LUSID API
5
5
  Home-page: https://github.com/finbourne/lusid-sdk-python
6
6
  License: MIT
@@ -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=NB7WIL8FfQirQIQP3o0BjuSIwHVEeAJmPBEJmVFM8uo,17980
83
+ lusid/configuration.py,sha256=YdSaRHFblZosRSOIy5uiRQ-OoJ5k1xGbWvDih3_oStU,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
@@ -650,8 +650,8 @@ lusid/models/instrument_entity.py,sha256=C7ns_KFrNOhKcttlAJsHHWgONz1-ViHn2W_F_OK
650
650
  lusid/models/instrument_event.py,sha256=8zuZrEMWfAvLlRNfmbNHQpgu3LPLNXntm65rDNX68iY,18379
651
651
  lusid/models/instrument_event_configuration.py,sha256=s-TnZT2QSQ3c27M9UAdjjEGhOL7snwWPC11YuxxMXpA,3016
652
652
  lusid/models/instrument_event_holder.py,sha256=Vkr0SbAImbZ1eVpWeX5N7ztKT-BBBVaoxHdayZ8l9dQ,7531
653
- lusid/models/instrument_event_instruction.py,sha256=2Qh6fG5EBEc0VOgpvbhyZTqeaCXClfRoU3kmhJSYoZM,7601
654
- lusid/models/instrument_event_instruction_request.py,sha256=IkJ9mxVvOYYyd-QxYcaJFrbneCawTE7yWy0AJukJMss,4974
653
+ lusid/models/instrument_event_instruction.py,sha256=F4OHYH3BUKoZVQeNnRl4BTC7Ozai4WeTT9r43Nki7MM,8068
654
+ lusid/models/instrument_event_instruction_request.py,sha256=RER-U-4lmeYdYqKLypZGmNseZlIjzo-UAepsGWvHhCI,5441
655
655
  lusid/models/instrument_event_instructions_response.py,sha256=ylM6xtukZCKWoGeiVUbTglDPJi80oop1yMG6GxnkrFA,4216
656
656
  lusid/models/instrument_event_type.py,sha256=RLPs8Gi6rCgdFBcpLKgNMBuUAddnen7O2DI4fMym5qI,4124
657
657
  lusid/models/instrument_id_type_descriptor.py,sha256=GVAZ7MCdC9EB0s6Yk71WUu-gzyctY1hZqggE-R7J6QM,2779
@@ -1393,6 +1393,6 @@ lusid/models/year_month_day.py,sha256=gwSoxFwlD_wffKdddo1wfvAcLq3Cht3FHQidiaHzAA
1393
1393
  lusid/models/yield_curve_data.py,sha256=I1ZSWxHMgUxj9OQt6i9a4S91KB4_XtmrfFxpN_PV3YQ,9561
1394
1394
  lusid/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1395
1395
  lusid/rest.py,sha256=HQT__5LQEMu6_1sLKvYj-DI4FH1DJXBIPYfZCTTyrY4,13431
1396
- lusid_sdk-2.1.966.dist-info/METADATA,sha256=DXk4bmqJmt6jsFrxYn6Cv_kmhqP3h6kBjt-o3UHGM7g,234120
1397
- lusid_sdk-2.1.966.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
1398
- lusid_sdk-2.1.966.dist-info/RECORD,,
1396
+ lusid_sdk-2.1.967.dist-info/METADATA,sha256=fPDk6FqVPJCE-u3xCi4SVzOXyWC0wmwUXKHhZ-X-8hc,234120
1397
+ lusid_sdk-2.1.967.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
1398
+ lusid_sdk-2.1.967.dist-info/RECORD,,