lusid-sdk 2.1.259__py3-none-any.whl → 2.1.262__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.6692\n"\
376
+ "Version of the API: 0.11.6695\n"\
377
377
  "SDK Package Version: {package_version}".\
378
378
  format(env=sys.platform, pyversion=sys.version, package_version=package_version)
379
379
 
@@ -23,6 +23,7 @@ from pydantic.v1 import BaseModel, Field, StrictBool, StrictStr, conlist, valida
23
23
  from lusid.models.link import Link
24
24
  from lusid.models.model_property import ModelProperty
25
25
  from lusid.models.resource_id import ResourceId
26
+ from lusid.models.staged_modifications_info import StagedModificationsInfo
26
27
  from lusid.models.version import Version
27
28
 
28
29
  class PropertyDefinition(BaseModel):
@@ -48,8 +49,9 @@ class PropertyDefinition(BaseModel):
48
49
  collection_type: Optional[StrictStr] = Field(None, alias="collectionType", description="Describes whether a collection property should behave as a set or as an array.")
49
50
  properties: Optional[Dict[str, ModelProperty]] = Field(None, description="Set of unique property definition properties and associated values to store with the property definition. Each property must be from the 'PropertyDefinition' domain.")
50
51
  version: Optional[Version] = None
52
+ staged_modifications: Optional[StagedModificationsInfo] = Field(None, alias="stagedModifications")
51
53
  links: Optional[conlist(Link)] = None
52
- __properties = ["href", "key", "valueType", "displayName", "dataTypeId", "type", "unitSchema", "domain", "scope", "code", "valueRequired", "lifeTime", "constraintStyle", "propertyDefinitionType", "propertyDescription", "derivationFormula", "collectionType", "properties", "version", "links"]
54
+ __properties = ["href", "key", "valueType", "displayName", "dataTypeId", "type", "unitSchema", "domain", "scope", "code", "valueRequired", "lifeTime", "constraintStyle", "propertyDefinitionType", "propertyDescription", "derivationFormula", "collectionType", "properties", "version", "stagedModifications", "links"]
53
55
 
54
56
  @validator('value_type')
55
57
  def value_type_validate_enum(cls, value):
@@ -150,6 +152,9 @@ class PropertyDefinition(BaseModel):
150
152
  # override the default output from pydantic by calling `to_dict()` of version
151
153
  if self.version:
152
154
  _dict['version'] = self.version.to_dict()
155
+ # override the default output from pydantic by calling `to_dict()` of staged_modifications
156
+ if self.staged_modifications:
157
+ _dict['stagedModifications'] = self.staged_modifications.to_dict()
153
158
  # override the default output from pydantic by calling `to_dict()` of each item in links (list)
154
159
  _items = []
155
160
  if self.links:
@@ -248,6 +253,7 @@ class PropertyDefinition(BaseModel):
248
253
  if obj.get("properties") is not None
249
254
  else None,
250
255
  "version": Version.from_dict(obj.get("version")) if obj.get("version") is not None else None,
256
+ "staged_modifications": StagedModificationsInfo.from_dict(obj.get("stagedModifications")) if obj.get("stagedModifications") is not None else None,
251
257
  "links": [Link.from_dict(_item) for _item in obj.get("links")] if obj.get("links") is not None else None
252
258
  })
253
259
  return _obj
@@ -18,7 +18,7 @@ import re # noqa: F401
18
18
  import json
19
19
 
20
20
 
21
- from typing import Any, Dict
21
+ from typing import Any, Dict, Optional
22
22
  from pydantic.v1 import BaseModel, Field, constr
23
23
  from lusid.models.transaction_currency_and_amount import TransactionCurrencyAndAmount
24
24
  from lusid.models.transaction_price_and_type import TransactionPriceAndType
@@ -34,9 +34,9 @@ class TransactionFieldMap(BaseModel):
34
34
  transaction_date: constr(strict=True, max_length=1024, min_length=0) = Field(..., alias="transactionDate")
35
35
  settlement_date: constr(strict=True, max_length=1024, min_length=0) = Field(..., alias="settlementDate")
36
36
  units: constr(strict=True, max_length=1024, min_length=0) = Field(...)
37
- transaction_price: TransactionPriceAndType = Field(..., alias="transactionPrice")
37
+ transaction_price: Optional[TransactionPriceAndType] = Field(None, alias="transactionPrice")
38
38
  transaction_currency: constr(strict=True, max_length=1024, min_length=0) = Field(..., alias="transactionCurrency")
39
- exchange_rate: constr(strict=True, max_length=1024, min_length=0) = Field(..., alias="exchangeRate")
39
+ exchange_rate: Optional[constr(strict=True, max_length=1024, min_length=0)] = Field(None, alias="exchangeRate")
40
40
  total_consideration: TransactionCurrencyAndAmount = Field(..., alias="totalConsideration")
41
41
  __properties = ["transactionId", "type", "source", "instrument", "transactionDate", "settlementDate", "units", "transactionPrice", "transactionCurrency", "exchangeRate", "totalConsideration"]
42
42
 
@@ -70,6 +70,11 @@ class TransactionFieldMap(BaseModel):
70
70
  # override the default output from pydantic by calling `to_dict()` of total_consideration
71
71
  if self.total_consideration:
72
72
  _dict['totalConsideration'] = self.total_consideration.to_dict()
73
+ # set to None if exchange_rate (nullable) is None
74
+ # and __fields_set__ contains the field
75
+ if self.exchange_rate is None and "exchange_rate" in self.__fields_set__:
76
+ _dict['exchangeRate'] = None
77
+
73
78
  return _dict
74
79
 
75
80
  @classmethod
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lusid-sdk
3
- Version: 2.1.259
3
+ Version: 2.1.262
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.6692
33
- - Package version: 2.1.259
32
+ - API version: 0.11.6695
33
+ - Package version: 2.1.262
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
 
@@ -68,7 +68,7 @@ lusid/api/transaction_portfolios_api.py,sha256=7G5m6iTQXTKCc6ASdxnlVJjvFascHxEgD
68
68
  lusid/api/translation_api.py,sha256=xTAaKEW96JTDIZBXCjxSguCa7Gz4oVd5jdObUE2egwo,20092
69
69
  lusid/api_client.py,sha256=dF6l9RAsdxdQjf6Qn4ny6LB-QXlJmsscWiozCvyyBFA,30709
70
70
  lusid/api_response.py,sha256=6-gnhty6lu8MMAERt3_kTVD7UxQgWFfcjgpcq6iN5IU,855
71
- lusid/configuration.py,sha256=qnpmSoSjtY0URh5tPTc9SGlb4R5RXOEPaZJt1HH2kMM,14404
71
+ lusid/configuration.py,sha256=Juys-uvoOBAe59SqtbaSk5v19Efg0x-You0NFYwM9Os,14404
72
72
  lusid/exceptions.py,sha256=HIQwgmQrszLlcVCLaqex8dO0laVuejUyOMz7U2ZWJ6s,5326
73
73
  lusid/extensions/__init__.py,sha256=dzDHEzpn-9smd2-_UMWQzeyX6Ha4jGf6fnqx7qxKxNI,630
74
74
  lusid/extensions/api_client.py,sha256=Ob06urm4Em3MLzgP_geyeeGsPCkU225msW_1kpIeABM,30567
@@ -728,7 +728,7 @@ lusid/models/pricing_context.py,sha256=E8B73sz2c6A2o4HykfbMMfaspv4F6gQfx4fjzDLr6
728
728
  lusid/models/pricing_model.py,sha256=DqxFxGtRJHj3BIDdHqND5MwI9X3d1jh6cPc3hDkzuCk,1447
729
729
  lusid/models/pricing_options.py,sha256=ueSekxM9_XWSVd7uVELUtY86w-ul8WnLJR2gtTQm264,7961
730
730
  lusid/models/processed_command.py,sha256=YJ13QMu5M7XCkOqabOvkh3d-w_7P_2VEgRkliLsjTn4,2970
731
- lusid/models/property_definition.py,sha256=_u0Qcl9SsCfWGB3sQvs_gnh062JE6hDV2a37QxdmDXM,16746
731
+ lusid/models/property_definition.py,sha256=lcFiMp5z94xW5QY_6hHfpKyxUXW8gCuLUhGcf_cPBfw,17322
732
732
  lusid/models/property_definition_entity.py,sha256=DkWIm0ap4ib-FhBaWMHbxzwDVMlGFxnCO-oiWCHT7f8,7852
733
733
  lusid/models/property_definition_search_result.py,sha256=HZDRgjbbpwzddBWAXMowLcRQC9lY3z66rf7t-CjJQpI,14861
734
734
  lusid/models/property_definition_type.py,sha256=0OhOMXLaFU6yGWTx0XfyrbQL3LSWYiVW2eFE6D9y9Pw,731
@@ -953,7 +953,7 @@ lusid/models/transaction_configuration_movement_data.py,sha256=_reiT_ZkjGFvAzyuf
953
953
  lusid/models/transaction_configuration_movement_data_request.py,sha256=3o7WmlP4XNSjLfWWmlfcCsZSeRUFCRBdZERr-TnHYRk,6650
954
954
  lusid/models/transaction_configuration_type_alias.py,sha256=YXhlJeoClTMcY0KmAfqGGV6mkYQFP2YF6B4PXOLjQt0,4750
955
955
  lusid/models/transaction_currency_and_amount.py,sha256=us7dfLcpX_55r_K3EjDeTha0k2NTDl0FkkWg9LhX6Lo,2524
956
- lusid/models/transaction_field_map.py,sha256=sFREEtmXIwCv2HWoXVFiuU_uLrSSDCAis3CRKXazwtY,4329
956
+ lusid/models/transaction_field_map.py,sha256=hhb6KeyDpqY-8AFeI7sFIVk0PLqOR5qrQPyriX1njJ8,4591
957
957
  lusid/models/transaction_price.py,sha256=l1AuDGuIUFJ6dt-2P07qOC1ORPlD8fc6I39Xn1ZI0JE,2420
958
958
  lusid/models/transaction_price_and_type.py,sha256=SV4GDgkQ_04uMKmylEgrv8L1N3yMFnjgXH3QJ7Q1Y5w,2444
959
959
  lusid/models/transaction_price_type.py,sha256=w12kLCHQhbnSisOXJLsSmY8rBCUTLcGc5AHWhG_AS7w,743
@@ -1094,6 +1094,6 @@ lusid/models/weighted_instruments.py,sha256=1y_y_vw4-LPsbkQx4FOzWdZc5fJnzhVkf1D3
1094
1094
  lusid/models/yield_curve_data.py,sha256=SbxvdJ4-GWK9kpMdw4Fnxc7_kvIMwgsRsd_31UJn7nw,6330
1095
1095
  lusid/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1096
1096
  lusid/rest.py,sha256=TNUzQ3yLNT2L053EdR7R0vNzQh2J3TlYD1T56Dye0W0,10138
1097
- lusid_sdk-2.1.259.dist-info/METADATA,sha256=NETc-LlMjyJrkESVhS_IzjtyDmu5fyxjOy722GS__IQ,192500
1098
- lusid_sdk-2.1.259.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
1099
- lusid_sdk-2.1.259.dist-info/RECORD,,
1097
+ lusid_sdk-2.1.262.dist-info/METADATA,sha256=S2gbmADL2xiHcMXdqh_4J1IwbKH6X7k_UtvMYp_OirA,192500
1098
+ lusid_sdk-2.1.262.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
1099
+ lusid_sdk-2.1.262.dist-info/RECORD,,