lusid-sdk 2.1.77__py3-none-any.whl → 2.1.81__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.

Potentially problematic release.


This version of lusid-sdk might be problematic. Click here for more details.

lusid/configuration.py CHANGED
@@ -373,7 +373,7 @@ class Configuration:
373
373
  return "Python SDK Debug Report:\n"\
374
374
  "OS: {env}\n"\
375
375
  "Python Version: {pyversion}\n"\
376
- "Version of the API: 0.11.6511\n"\
376
+ "Version of the API: 0.11.6515\n"\
377
377
  "SDK Package Version: {package_version}".\
378
378
  format(env=sys.platform, pyversion=sys.version, package_version=package_version)
379
379
 
@@ -53,7 +53,8 @@ class OutputTransaction(BaseModel):
53
53
  realised_gain_loss: Optional[conlist(RealisedGainLoss)] = Field(None, alias="realisedGainLoss", description="The collection of realised gains or losses resulting from relevant transactions e.g. a sale transaction. The cost used in calculating the realised gain or loss is determined by the accounting method defined when the transaction portfolio is created.")
54
54
  holding_ids: Optional[conlist(StrictInt)] = Field(None, alias="holdingIds", description="The collection of single identifiers for the holding within the portfolio. The holdingId is constructed from the LusidInstrumentId, sub-holding keys and currrency and is unique within the portfolio.")
55
55
  source_type: Optional[StrictStr] = Field(None, alias="sourceType", description="The type of source that the transaction originated from, eg: InputTransaction, InstrumentEvent, HoldingAdjustment")
56
- __properties = ["transactionId", "type", "description", "instrumentIdentifiers", "instrumentScope", "instrumentUid", "transactionDate", "settlementDate", "units", "transactionAmount", "transactionPrice", "totalConsideration", "exchangeRate", "transactionToPortfolioRate", "transactionCurrency", "properties", "counterpartyId", "source", "transactionStatus", "entryDateTime", "cancelDateTime", "realisedGainLoss", "holdingIds", "sourceType"]
56
+ source_instrument_event_id: Optional[StrictStr] = Field(None, alias="sourceInstrumentEventId", description="The unique ID of the instrument event that the transaction is related to.")
57
+ __properties = ["transactionId", "type", "description", "instrumentIdentifiers", "instrumentScope", "instrumentUid", "transactionDate", "settlementDate", "units", "transactionAmount", "transactionPrice", "totalConsideration", "exchangeRate", "transactionToPortfolioRate", "transactionCurrency", "properties", "counterpartyId", "source", "transactionStatus", "entryDateTime", "cancelDateTime", "realisedGainLoss", "holdingIds", "sourceType", "sourceInstrumentEventId"]
57
58
 
58
59
  @validator('transaction_status')
59
60
  def transaction_status_validate_enum(cls, value):
@@ -169,6 +170,11 @@ class OutputTransaction(BaseModel):
169
170
  if self.source_type is None and "source_type" in self.__fields_set__:
170
171
  _dict['sourceType'] = None
171
172
 
173
+ # set to None if source_instrument_event_id (nullable) is None
174
+ # and __fields_set__ contains the field
175
+ if self.source_instrument_event_id is None and "source_instrument_event_id" in self.__fields_set__:
176
+ _dict['sourceInstrumentEventId'] = None
177
+
172
178
  return _dict
173
179
 
174
180
  @classmethod
@@ -209,6 +215,7 @@ class OutputTransaction(BaseModel):
209
215
  "cancel_date_time": obj.get("cancelDateTime"),
210
216
  "realised_gain_loss": [RealisedGainLoss.from_dict(_item) for _item in obj.get("realisedGainLoss")] if obj.get("realisedGainLoss") is not None else None,
211
217
  "holding_ids": obj.get("holdingIds"),
212
- "source_type": obj.get("sourceType")
218
+ "source_type": obj.get("sourceType"),
219
+ "source_instrument_event_id": obj.get("sourceInstrumentEventId")
213
220
  })
214
221
  return _obj
@@ -17,7 +17,7 @@ import pprint
17
17
  import re # noqa: F401
18
18
  import json
19
19
 
20
-
20
+ from datetime import datetime
21
21
  from typing import Any, Dict, List, Optional
22
22
  from pydantic.v1 import BaseModel, Field, StrictStr, conlist, constr
23
23
  from lusid.models.link import Link
@@ -30,10 +30,11 @@ class PortfolioEntity(BaseModel):
30
30
  href: StrictStr = Field(..., description="The specific Uniform Resource Identifier (URI) for this resource at the requested effective and asAt datetime.")
31
31
  entity_unique_id: constr(strict=True, min_length=1) = Field(..., alias="entityUniqueId", description="The unique id of the entity")
32
32
  status: constr(strict=True, min_length=1) = Field(..., description="The status of the entity at the current time")
33
+ effective_at_created: Optional[datetime] = Field(None, alias="effectiveAtCreated", description="The EffectiveAt this Entity is created, if entity does not currently exist in EffectiveAt")
33
34
  prevailing_portfolio: Optional[PortfolioWithoutHref] = Field(None, alias="prevailingPortfolio")
34
35
  deleted_portfolio: Optional[PortfolioWithoutHref] = Field(None, alias="deletedPortfolio")
35
36
  links: Optional[conlist(Link)] = None
36
- __properties = ["href", "entityUniqueId", "status", "prevailingPortfolio", "deletedPortfolio", "links"]
37
+ __properties = ["href", "entityUniqueId", "status", "effectiveAtCreated", "prevailingPortfolio", "deletedPortfolio", "links"]
37
38
 
38
39
  class Config:
39
40
  """Pydantic configuration"""
@@ -72,6 +73,11 @@ class PortfolioEntity(BaseModel):
72
73
  if _item:
73
74
  _items.append(_item.to_dict())
74
75
  _dict['links'] = _items
76
+ # set to None if effective_at_created (nullable) is None
77
+ # and __fields_set__ contains the field
78
+ if self.effective_at_created is None and "effective_at_created" in self.__fields_set__:
79
+ _dict['effectiveAtCreated'] = None
80
+
75
81
  # set to None if links (nullable) is None
76
82
  # and __fields_set__ contains the field
77
83
  if self.links is None and "links" in self.__fields_set__:
@@ -92,6 +98,7 @@ class PortfolioEntity(BaseModel):
92
98
  "href": obj.get("href"),
93
99
  "entity_unique_id": obj.get("entityUniqueId"),
94
100
  "status": obj.get("status"),
101
+ "effective_at_created": obj.get("effectiveAtCreated"),
95
102
  "prevailing_portfolio": PortfolioWithoutHref.from_dict(obj.get("prevailingPortfolio")) if obj.get("prevailingPortfolio") is not None else None,
96
103
  "deleted_portfolio": PortfolioWithoutHref.from_dict(obj.get("deletedPortfolio")) if obj.get("deletedPortfolio") is not None else None,
97
104
  "links": [Link.from_dict(_item) for _item in obj.get("links")] if obj.get("links") is not None else None
lusid/models/version.py CHANGED
@@ -59,14 +59,6 @@ class Version(BaseModel):
59
59
  """Returns the dictionary representation of the model using alias"""
60
60
  _dict = self.dict(by_alias=True,
61
61
  exclude={
62
- "as_at_created",
63
- "user_id_created",
64
- "request_id_created",
65
- "as_at_modified",
66
- "user_id_modified",
67
- "request_id_modified",
68
- "as_at_version_number",
69
- "entity_unique_id",
70
62
  },
71
63
  exclude_none=True)
72
64
  # set to None if as_at_created (nullable) is None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lusid-sdk
3
- Version: 2.1.77
3
+ Version: 2.1.81
4
4
  Summary: LUSID API
5
5
  Home-page: https://github.com/finbourne/lusid-sdk-python
6
6
  License: MIT
@@ -29,8 +29,8 @@ FINBOURNE Technology
29
29
 
30
30
  This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
31
31
 
32
- - API version: 0.11.6511
33
- - Package version: 2.1.77
32
+ - API version: 0.11.6515
33
+ - Package version: 2.1.81
34
34
  - Build package: org.openapitools.codegen.languages.PythonClientCodegen
35
35
  For more information, please visit [https://www.finbourne.com](https://www.finbourne.com)
36
36
 
@@ -65,7 +65,7 @@ lusid/api/transaction_portfolios_api.py,sha256=q6AoYasxV3LQDossmM2BdJSo3arh526yU
65
65
  lusid/api/translation_api.py,sha256=xTAaKEW96JTDIZBXCjxSguCa7Gz4oVd5jdObUE2egwo,20092
66
66
  lusid/api_client.py,sha256=dF6l9RAsdxdQjf6Qn4ny6LB-QXlJmsscWiozCvyyBFA,30709
67
67
  lusid/api_response.py,sha256=uCehWdXXDnAO2HAHGKe0SgpQ_mJiGDbcu-BHDF3n_IM,852
68
- lusid/configuration.py,sha256=PH1WaH-uH2gv64jcZTUhRufGo8Frp3Rgd5ZusOfC2Po,14404
68
+ lusid/configuration.py,sha256=5UeSEhdFQaQ6GB2qK4rdWY4W7tN9dBeupwtMkGkT0Z4,14404
69
69
  lusid/exceptions.py,sha256=HIQwgmQrszLlcVCLaqex8dO0laVuejUyOMz7U2ZWJ6s,5326
70
70
  lusid/extensions/__init__.py,sha256=DeUuQP7yTcklJH7LT-bw9wQhKEggcs1KwQbPbFcOlhw,560
71
71
  lusid/extensions/api_client.py,sha256=Ob06urm4Em3MLzgP_geyeeGsPCkU225msW_1kpIeABM,30567
@@ -569,7 +569,7 @@ lusid/models/order_instruction_set_request.py,sha256=QucOY45KZ2qGKFeSn4MIFAm9lmR
569
569
  lusid/models/order_request.py,sha256=hOwerLbLdwdGW4bbETyml3ecg4wdNKvtnRefq6wPk1U,7833
570
570
  lusid/models/order_set_request.py,sha256=RfOrLNJ67eLBKScPgm-eQhO0Nc0QjhO243d_u4qCfmA,2716
571
571
  lusid/models/otc_confirmation.py,sha256=OQF6QzTdyya99HApPCZaF3rkcnSztw4GHkL-qdGh-A4,2419
572
- lusid/models/output_transaction.py,sha256=A6jFZeU36eZ8pHVCZ0UNn1fDDTZsZj0dZzGLkTkLYwk,13332
572
+ lusid/models/output_transaction.py,sha256=Jqbq3wjB-5OIhWM5eR2CE2nRuk7C8tkUP2-L1wORIos,13905
573
573
  lusid/models/output_transition.py,sha256=1K7llvbd7xO0aesRTbK4AFFGn_V6ZsSyWh2o8wQrTt8,3985
574
574
  lusid/models/package.py,sha256=Xty-TFjsHKOMbHapfg9linlIjNgGos3KanS3Z2d9t4k,5453
575
575
  lusid/models/package_request.py,sha256=8PNCvyzho1JO-KJZqTV0u_gvNA0c7jxb2iHbPoywzWs,4383
@@ -645,7 +645,7 @@ lusid/models/portfolio.py,sha256=LqGIRKBYS8kQbmmhiz8gzwPLRuRfnQIZjFtuQ-CV-gY,121
645
645
  lusid/models/portfolio_cash_flow.py,sha256=Apnb2tfP3bJrBjhH69OLwiAOvn7lApH791owxr1wC8A,8997
646
646
  lusid/models/portfolio_cash_ladder.py,sha256=cZHdUI-PZuLYXlQDxcA9zCTRPX_cHZy0-qHng9bRggU,5462
647
647
  lusid/models/portfolio_details.py,sha256=NABbe06Xp0cl54_HwYeUsko51op7oFVlMqCENEaQVWs,9198
648
- lusid/models/portfolio_entity.py,sha256=szi3ONOxWOl4ROODhWpCE6crCZeEBG8TtCHq6ERBl7A,4105
648
+ lusid/models/portfolio_entity.py,sha256=td0M2aCU_1n9ba8tZ5IdFjow1LOG8gMtOXE-CytD4d8,4672
649
649
  lusid/models/portfolio_entity_id.py,sha256=Q6Y2BocHtfoMiSWaJJqoidwPeQeaDtM_A2Qi9ufesXk,3941
650
650
  lusid/models/portfolio_group.py,sha256=pt4ZLAFaXINyx9d8BQ9zZAlj9lIWAzVVWsQpty2PgZA,7106
651
651
  lusid/models/portfolio_group_id_compliance_parameter.py,sha256=EKTEIf0siRNSh4j7CHdl_QOgsDPBMKff3KJ6DP8rX7I,5521
@@ -999,7 +999,7 @@ lusid/models/value_type.py,sha256=jHK4tNBGG6VZsoUobxgcuY59JiMYF7YVSqu_tyYyL8U,12
999
999
  lusid/models/vendor_dependency.py,sha256=aoSaZxqR2Sa-oE9DAggXJMoXqnPsej_v1lcmOuwqmsM,4307
1000
1000
  lusid/models/vendor_library.py,sha256=Fx8zktN5UuefXUGb27Pgw-N3grsyVMvjOs_3Lw_S4Ow,812
1001
1001
  lusid/models/vendor_model_rule.py,sha256=lsuNCUYeK86M2S2iJdkTkFzqFBqFOpIutIuV40X9Nlo,6263
1002
- lusid/models/version.py,sha256=D2hOEbOR1K5W4EzjtrU-5gD_GM-KhkUrra8WCV7Zo90,6496
1002
+ lusid/models/version.py,sha256=H6dLycqxv4pkzuPAEhmtFCWwAZqmhIUXvcl32ryU2HA,6109
1003
1003
  lusid/models/version_summary_dto.py,sha256=EjzyYugLxgsO8_myJU-egpQhRKdYD8AIljKRE2hZh14,3584
1004
1004
  lusid/models/versioned_resource_list_of_a2_b_data_record.py,sha256=3X4yY5NWFUONWvWDFU4y6xne9BTmYIzI4Mh31_Cb0QY,4522
1005
1005
  lusid/models/versioned_resource_list_of_a2_b_movement_record.py,sha256=rTddKkdkTeYGLNi00LwFiyva2i_ayLiNQ3-flIhdj8I,4570
@@ -1021,6 +1021,6 @@ lusid/models/weighted_instruments.py,sha256=1y_y_vw4-LPsbkQx4FOzWdZc5fJnzhVkf1D3
1021
1021
  lusid/models/yield_curve_data.py,sha256=SbxvdJ4-GWK9kpMdw4Fnxc7_kvIMwgsRsd_31UJn7nw,6330
1022
1022
  lusid/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1023
1023
  lusid/rest.py,sha256=TNUzQ3yLNT2L053EdR7R0vNzQh2J3TlYD1T56Dye0W0,10138
1024
- lusid_sdk-2.1.77.dist-info/METADATA,sha256=U1sZTPzM3hFngJbZKwIrTOcNuoy90lHH2tI-D1kJYAU,180503
1025
- lusid_sdk-2.1.77.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
1026
- lusid_sdk-2.1.77.dist-info/RECORD,,
1024
+ lusid_sdk-2.1.81.dist-info/METADATA,sha256=odgVajI3t2K4FnrBYcAvwk50ppS5kqm-E2b4yETs9ak,180503
1025
+ lusid_sdk-2.1.81.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
1026
+ lusid_sdk-2.1.81.dist-info/RECORD,,