lusid-sdk 2.1.158__py3-none-any.whl → 2.1.162__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.6592\n"\
376
+ "Version of the API: 0.11.6596\n"\
377
377
  "SDK Package Version: {package_version}".\
378
378
  format(env=sys.platform, pyversion=sys.version, package_version=package_version)
379
379
 
@@ -18,7 +18,7 @@ import re # noqa: F401
18
18
  import json
19
19
 
20
20
 
21
- from typing import Any, Dict, List
21
+ from typing import Any, Dict, List, Optional
22
22
  from pydantic.v1 import BaseModel, Field, StrictInt, conlist, constr
23
23
  from lusid.models.instrument_event_holder import InstrumentEventHolder
24
24
  from lusid.models.resource_id import ResourceId
@@ -35,10 +35,10 @@ class ApplicableInstrumentEvent(BaseModel):
35
35
  instrument_type: constr(strict=True, min_length=1) = Field(..., alias="instrumentType")
36
36
  instrument_event_type: constr(strict=True, min_length=1) = Field(..., alias="instrumentEventType")
37
37
  instrument_event_id: constr(strict=True, min_length=1) = Field(..., alias="instrumentEventId")
38
- generated_event: InstrumentEventHolder = Field(..., alias="generatedEvent")
39
- loaded_event: InstrumentEventHolder = Field(..., alias="loadedEvent")
38
+ generated_event: Optional[InstrumentEventHolder] = Field(None, alias="generatedEvent")
39
+ loaded_event: Optional[InstrumentEventHolder] = Field(None, alias="loadedEvent")
40
40
  applied_instrument_event_instruction_id: constr(strict=True, min_length=1) = Field(..., alias="appliedInstrumentEventInstructionId")
41
- transactions: conlist(Transaction) = Field(...)
41
+ transactions: Optional[conlist(Transaction)] = None
42
42
  __properties = ["portfolioId", "holdingId", "lusidInstrumentId", "instrumentScope", "instrumentType", "instrumentEventType", "instrumentEventId", "generatedEvent", "loadedEvent", "appliedInstrumentEventInstructionId", "transactions"]
43
43
 
44
44
  class Config:
@@ -81,6 +81,11 @@ class ApplicableInstrumentEvent(BaseModel):
81
81
  if _item:
82
82
  _items.append(_item.to_dict())
83
83
  _dict['transactions'] = _items
84
+ # set to None if transactions (nullable) is None
85
+ # and __fields_set__ contains the field
86
+ if self.transactions is None and "transactions" in self.__fields_set__:
87
+ _dict['transactions'] = None
88
+
84
89
  return _dict
85
90
 
86
91
  @classmethod
@@ -19,7 +19,7 @@ import json
19
19
 
20
20
  from datetime import datetime
21
21
  from typing import Any, Dict, Optional, Union
22
- from pydantic.v1 import Field, StrictFloat, StrictInt, StrictStr, constr, validator
22
+ from pydantic.v1 import Field, StrictBool, StrictFloat, StrictInt, StrictStr, constr, validator
23
23
  from lusid.models.compounding import Compounding
24
24
  from lusid.models.ex_dividend_configuration import ExDividendConfiguration
25
25
  from lusid.models.flow_convention_name import FlowConventionName
@@ -45,9 +45,10 @@ class FloatSchedule(Schedule):
45
45
  ex_dividend_configuration: Optional[ExDividendConfiguration] = Field(None, alias="exDividendConfiguration")
46
46
  compounding: Optional[Compounding] = None
47
47
  reset_convention: Optional[constr(strict=True, max_length=16, min_length=0)] = Field(None, alias="resetConvention", description="Control how resets are generated relative to payment convention(s). Supported string (enumeration) values are: [InAdvance, InArrears].")
48
+ use_annualised_direct_rates: Optional[StrictBool] = Field(None, alias="useAnnualisedDirectRates", description="Flag indicating whether to use daily updated annualised interest rates for calculating the accrued interest. Defaults to false.")
48
49
  schedule_type: StrictStr = Field(..., alias="scheduleType", description="The available values are: FixedSchedule, FloatSchedule, OptionalitySchedule, StepSchedule, Exercise, FxRateSchedule, FxLinkedNotionalSchedule, BondConversionSchedule, Invalid")
49
50
  additional_properties: Dict[str, Any] = {}
50
- __properties = ["scheduleType", "startDate", "maturityDate", "flowConventions", "conventionName", "exDividendDays", "indexConventionName", "indexConventions", "notional", "paymentCurrency", "spread", "stubType", "exDividendConfiguration", "compounding", "resetConvention"]
51
+ __properties = ["scheduleType", "startDate", "maturityDate", "flowConventions", "conventionName", "exDividendDays", "indexConventionName", "indexConventions", "notional", "paymentCurrency", "spread", "stubType", "exDividendConfiguration", "compounding", "resetConvention", "useAnnualisedDirectRates"]
51
52
 
52
53
  @validator('schedule_type')
53
54
  def schedule_type_validate_enum(cls, value):
@@ -145,7 +146,8 @@ class FloatSchedule(Schedule):
145
146
  "stub_type": obj.get("stubType"),
146
147
  "ex_dividend_configuration": ExDividendConfiguration.from_dict(obj.get("exDividendConfiguration")) if obj.get("exDividendConfiguration") is not None else None,
147
148
  "compounding": Compounding.from_dict(obj.get("compounding")) if obj.get("compounding") is not None else None,
148
- "reset_convention": obj.get("resetConvention")
149
+ "reset_convention": obj.get("resetConvention"),
150
+ "use_annualised_direct_rates": obj.get("useAnnualisedDirectRates")
149
151
  })
150
152
  # store additional fields in additional_properties
151
153
  for _key in obj.keys():
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lusid-sdk
3
- Version: 2.1.158
3
+ Version: 2.1.162
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.6592
33
- - Package version: 2.1.158
32
+ - API version: 0.11.6596
33
+ - Package version: 2.1.162
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
 
@@ -67,7 +67,7 @@ lusid/api/transaction_portfolios_api.py,sha256=7G5m6iTQXTKCc6ASdxnlVJjvFascHxEgD
67
67
  lusid/api/translation_api.py,sha256=xTAaKEW96JTDIZBXCjxSguCa7Gz4oVd5jdObUE2egwo,20092
68
68
  lusid/api_client.py,sha256=dF6l9RAsdxdQjf6Qn4ny6LB-QXlJmsscWiozCvyyBFA,30709
69
69
  lusid/api_response.py,sha256=6-gnhty6lu8MMAERt3_kTVD7UxQgWFfcjgpcq6iN5IU,855
70
- lusid/configuration.py,sha256=cgRDsompPFnspmthuHW_AiooDhlUXdlciYqoelRo2ug,14404
70
+ lusid/configuration.py,sha256=zhPclwSpWkUkV8r3KKcM2JYrDQOEtpKPar_XASUQNv0,14404
71
71
  lusid/exceptions.py,sha256=HIQwgmQrszLlcVCLaqex8dO0laVuejUyOMz7U2ZWJ6s,5326
72
72
  lusid/extensions/__init__.py,sha256=L7EF4zKjcq1g2GodEumg1-C9xKs7YrQ0QHGPi8XbpO4,629
73
73
  lusid/extensions/api_client.py,sha256=Ob06urm4Em3MLzgP_geyeeGsPCkU225msW_1kpIeABM,30567
@@ -137,7 +137,7 @@ lusid/models/amortisation_rule_set.py,sha256=ExFKfMCGVF2-MYZfT_GrCwgsP1aC8vc5R6H
137
137
  lusid/models/annul_quotes_response.py,sha256=mYZSWeQx2veyirZnrWl2HWLB1nLYxqfLC-kAD87L2Qo,4347
138
138
  lusid/models/annul_single_structured_data_response.py,sha256=8PLdLJ-9anIqCr8JYhYQnfwVvfEEMjY8euqfdvHTNKM,3328
139
139
  lusid/models/annul_structured_data_response.py,sha256=m_PPmlTTJmHWbjwlFVOY4fRS8O1eL2K5ZZYLWyjcXJM,4499
140
- lusid/models/applicable_instrument_event.py,sha256=IEVTLsCzFwhgmLMVgMkxwqYxyR1suEnCBv9ntwdMjQ8,5104
140
+ lusid/models/applicable_instrument_event.py,sha256=WyvHI8IXjzGS-BY4qMTBgcja6UZDO2hdd7AApz_8f0s,5367
141
141
  lusid/models/asset_class.py,sha256=yurc1IbYS3HCMRBncPFfIl8pBiYnt64MP4tiBYJ8usU,793
142
142
  lusid/models/asset_leg.py,sha256=UyH91gd4MFYNtftvd0S1MvJmbtlKjg-BNJMQH1qSLPI,2435
143
143
  lusid/models/barrier.py,sha256=NP7eTStjcFn5wV3KkKPnwCOjQpmbIp5aMm8rJmpwjmU,2745
@@ -397,7 +397,7 @@ lusid/models/fixed_leg.py,sha256=HkKftiIQHb0f3pGE8ItI6Ep3EQTVnZ-WRAYGLmCjBfw,661
397
397
  lusid/models/fixed_leg_all_of_overrides.py,sha256=JR8DwX7y3sO5i6vBEJHdBmaaJKQqLSAQd7AoMzp21Q0,2879
398
398
  lusid/models/fixed_schedule.py,sha256=pTpKwncvp16eSrscuuTHli1W9L3hsuY1MHShcIqAh_k,7250
399
399
  lusid/models/flexible_loan.py,sha256=08jrLqECPsSfowr987Y5zy6zF0d7aTqIP-bCGnfB6WM,6252
400
- lusid/models/float_schedule.py,sha256=inv9F0Y0owOfCv93NKs40-h5c7jdifauwh0ZQPxZ6xA,9272
400
+ lusid/models/float_schedule.py,sha256=auQ1P6MswaZ8R-uf7BxCmZ2gQOPP7D6J2DLRweI-EBs,9638
401
401
  lusid/models/floating_leg.py,sha256=Q2W2Xk_j0Bh4jVDVigHK9i8DpudCtpkdW_AS8WiAAbI,7558
402
402
  lusid/models/flow_convention_name.py,sha256=HFTshKIRBvjLdmcd8FzM-6Jb6-dlq-yTOwjCw0p2ZME,2813
403
403
  lusid/models/flow_conventions.py,sha256=OJBFQ28_-Wp5VCQ_CXwLksvz--6kysJh3zUF8xM8ORE,10512
@@ -1075,6 +1075,6 @@ lusid/models/weighted_instruments.py,sha256=1y_y_vw4-LPsbkQx4FOzWdZc5fJnzhVkf1D3
1075
1075
  lusid/models/yield_curve_data.py,sha256=SbxvdJ4-GWK9kpMdw4Fnxc7_kvIMwgsRsd_31UJn7nw,6330
1076
1076
  lusid/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1077
1077
  lusid/rest.py,sha256=TNUzQ3yLNT2L053EdR7R0vNzQh2J3TlYD1T56Dye0W0,10138
1078
- lusid_sdk-2.1.158.dist-info/METADATA,sha256=d-aovfjeauxgoJrCqOTlr5r0w0rERXM8FhcfAquOz4I,188018
1079
- lusid_sdk-2.1.158.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
1080
- lusid_sdk-2.1.158.dist-info/RECORD,,
1078
+ lusid_sdk-2.1.162.dist-info/METADATA,sha256=Jl_sPBRddUGnS8oyib7wdn5FwjjDqse-guSFf0dep6c,188018
1079
+ lusid_sdk-2.1.162.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
1080
+ lusid_sdk-2.1.162.dist-info/RECORD,,