lusid-sdk 2.3.20__py3-none-any.whl → 2.3.22__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.8759\n"\
448
+ "Version of the API: 0.11.8766\n"\
449
449
  "SDK Package Version: {package_version}".\
450
450
  format(env=sys.platform, pyversion=sys.version, package_version=package_version)
451
451
 
@@ -33,11 +33,12 @@ class FlexibleLoan(LusidInstrument):
33
33
  start_date: datetime = Field(description="The start date of the instrument. This is normally synonymous with the trade-date.", alias="startDate")
34
34
  maturity_date: datetime = Field(description="The final maturity date of the instrument. This means the last date on which the instruments makes a payment of any amount. For the avoidance of doubt, that is not necessarily prior to its last sensitivity date for the purposes of risk; e.g. instruments such as Constant Maturity Swaps (CMS) often have sensitivities to rates that may well be observed or set prior to the maturity date, but refer to a termination date beyond it.", alias="maturityDate")
35
35
  dom_ccy: StrictStr = Field(...,alias="domCcy", description="The domestic currency of the instrument.")
36
+ parent_facility_details: Optional[Dict[str, Optional[StrictStr]]] = Field(default=None, description="The details of the parent loan facility of this loan if this loan is a contract on a facility.", alias="parentFacilityDetails")
36
37
  schedules: List[Schedule] = Field(description="Repayment schedules for the loan.")
37
38
  time_zone_conventions: Optional[TimeZoneConventions] = Field(default=None, alias="timeZoneConventions")
38
39
  instrument_type: StrictStr = Field(...,alias="instrumentType", description="The available values are: QuotedSecurity, InterestRateSwap, FxForward, Future, ExoticInstrument, FxOption, CreditDefaultSwap, InterestRateSwaption, Bond, EquityOption, FixedLeg, FloatingLeg, BespokeCashFlowsLeg, Unknown, TermDeposit, ContractForDifference, EquitySwap, CashPerpetual, CapFloor, CashSettled, CdsIndex, Basket, FundingLeg, FxSwap, ForwardRateAgreement, SimpleInstrument, Repo, Equity, ExchangeTradedOption, ReferenceInstrument, ComplexBond, InflationLinkedBond, InflationSwap, SimpleCashFlowLoan, TotalReturnSwap, InflationLeg, FundShareClass, FlexibleLoan, UnsettledCash, Cash, MasteredInstrument, LoanFacility, FlexibleDeposit, FlexibleRepo")
39
40
  additional_properties: Dict[str, Any] = {}
40
- __properties = ["instrumentType", "startDate", "maturityDate", "domCcy", "schedules", "timeZoneConventions"]
41
+ __properties = ["instrumentType", "startDate", "maturityDate", "domCcy", "parentFacilityDetails", "schedules", "timeZoneConventions"]
41
42
 
42
43
  @validator('instrument_type')
43
44
  def instrument_type_validate_enum(cls, value):
@@ -137,6 +138,7 @@ class FlexibleLoan(LusidInstrument):
137
138
  """Returns the dictionary representation of the model using alias"""
138
139
  _dict = self.dict(by_alias=True,
139
140
  exclude={
141
+ "parent_facility_details",
140
142
  "additional_properties"
141
143
  },
142
144
  exclude_none=True)
@@ -155,6 +157,11 @@ class FlexibleLoan(LusidInstrument):
155
157
  for _key, _value in self.additional_properties.items():
156
158
  _dict[_key] = _value
157
159
 
160
+ # set to None if parent_facility_details (nullable) is None
161
+ # and __fields_set__ contains the field
162
+ if self.parent_facility_details is None and "parent_facility_details" in self.__fields_set__:
163
+ _dict['parentFacilityDetails'] = None
164
+
158
165
  return _dict
159
166
 
160
167
  @classmethod
@@ -171,6 +178,7 @@ class FlexibleLoan(LusidInstrument):
171
178
  "start_date": obj.get("startDate"),
172
179
  "maturity_date": obj.get("maturityDate"),
173
180
  "dom_ccy": obj.get("domCcy"),
181
+ "parent_facility_details": obj.get("parentFacilityDetails"),
174
182
  "schedules": [Schedule.from_dict(_item) for _item in obj.get("schedules")] if obj.get("schedules") is not None else None,
175
183
  "time_zone_conventions": TimeZoneConventions.from_dict(obj.get("timeZoneConventions")) if obj.get("timeZoneConventions") is not None else None
176
184
  })
@@ -34,7 +34,9 @@ class UpsertFundBookmarkRequest(BaseModel):
34
34
  effective_at: datetime = Field(description="The effective time of the Bookmark.", alias="effectiveAt")
35
35
  query_as_at: Optional[datetime] = Field(default=None, description="The query time of the Bookmark. Defaults to latest.", alias="queryAsAt")
36
36
  properties: Optional[Dict[str, ModelProperty]] = Field(default=None, description="A set of properties for the Bookmark.")
37
- __properties = ["bookmarkCode", "displayName", "description", "effectiveAt", "queryAsAt", "properties"]
37
+ holdings_as_at_override: Optional[datetime] = Field(default=None, description="The optional AsAt Override to use for building holdings in the Bookmark. Defaults to Latest.", alias="holdingsAsAtOverride")
38
+ valuations_as_at_override: Optional[datetime] = Field(default=None, description="The optional AsAt Override to use for performing valuations in the Bookmark. Defaults to Latest.", alias="valuationsAsAtOverride")
39
+ __properties = ["bookmarkCode", "displayName", "description", "effectiveAt", "queryAsAt", "properties", "holdingsAsAtOverride", "valuationsAsAtOverride"]
38
40
 
39
41
  class Config:
40
42
  """Pydantic configuration"""
@@ -90,6 +92,16 @@ class UpsertFundBookmarkRequest(BaseModel):
90
92
  if self.properties is None and "properties" in self.__fields_set__:
91
93
  _dict['properties'] = None
92
94
 
95
+ # set to None if holdings_as_at_override (nullable) is None
96
+ # and __fields_set__ contains the field
97
+ if self.holdings_as_at_override is None and "holdings_as_at_override" in self.__fields_set__:
98
+ _dict['holdingsAsAtOverride'] = None
99
+
100
+ # set to None if valuations_as_at_override (nullable) is None
101
+ # and __fields_set__ contains the field
102
+ if self.valuations_as_at_override is None and "valuations_as_at_override" in self.__fields_set__:
103
+ _dict['valuationsAsAtOverride'] = None
104
+
93
105
  return _dict
94
106
 
95
107
  @classmethod
@@ -112,7 +124,9 @@ class UpsertFundBookmarkRequest(BaseModel):
112
124
  for _k, _v in obj.get("properties").items()
113
125
  )
114
126
  if obj.get("properties") is not None
115
- else None
127
+ else None,
128
+ "holdings_as_at_override": obj.get("holdingsAsAtOverride"),
129
+ "valuations_as_at_override": obj.get("valuationsAsAtOverride")
116
130
  })
117
131
  return _obj
118
132
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lusid-sdk
3
- Version: 2.3.20
3
+ Version: 2.3.22
4
4
  Summary: LUSID API
5
5
  License: MIT
6
6
  Keywords: OpenAPI,OpenAPI-Generator,LUSID API,lusid-sdk
@@ -81,7 +81,7 @@ lusid/api/translation_api.py,sha256=ykq--aAObjON30cqkCgtlvNVN_X9o1kCFHBuhx0TqOY,
81
81
  lusid/api/workspace_api.py,sha256=cIVlsVXulKjrNIF1NMaEH11-YRF3gOmLN6KaXVeECnk,120530
82
82
  lusid/api_client.py,sha256=9ShwOKmMJEOUj82dVLKP8CIkwu0aGV2H5qwGxTVJp7w,31170
83
83
  lusid/api_response.py,sha256=6-gnhty6lu8MMAERt3_kTVD7UxQgWFfcjgpcq6iN5IU,855
84
- lusid/configuration.py,sha256=Z54BrrGNaa9MfNyAtzOM9RvmWWoKZXiy2OFEARJv0nM,17980
84
+ lusid/configuration.py,sha256=rZcwLL_V3QcuDmYxgHCQJn0QHrOsDdEydQBBvA81FOY,17980
85
85
  lusid/exceptions.py,sha256=lYAJyHpruxMPUtZ95NwiYJvqzInY8S0yhRE0-JFYCww,5873
86
86
  lusid/extensions/__init__.py,sha256=dzDHEzpn-9smd2-_UMWQzeyX6Ha4jGf6fnqx7qxKxNI,630
87
87
  lusid/extensions/api_client.py,sha256=cq0kCulu3hsJ7jMPQfsE8B6FIa8ppTSXqneHo19RrXQ,30973
@@ -518,7 +518,7 @@ lusid/models/fixed_leg.py,sha256=h5PSHxGS1uBjQlBc90fBTTY9XjSYUwa_Ec0dMCs2Yp0,113
518
518
  lusid/models/fixed_leg_all_of_overrides.py,sha256=5m11lqdd6NxfHiqCdhAbQIJSO7HppObL1t3NOs8VL0o,3305
519
519
  lusid/models/fixed_schedule.py,sha256=7oK05ZtdoFqFtcZpi9KeSzDfk_6LAw5LnCmSXpbBOnM,12605
520
520
  lusid/models/flexible_deposit.py,sha256=geJ25z5UoNYNyp72DbU0-OllCit8hGMHwIlQ0TraPjM,11639
521
- lusid/models/flexible_loan.py,sha256=OpgwTWKn9cw6pF9mVlzoh8wezuiSGy2-frR_mvg64hA,11047
521
+ lusid/models/flexible_loan.py,sha256=eDuU1masr4MsheJlbj_EOb1LWlGeFfXaGjXa5p7mh2g,11702
522
522
  lusid/models/flexible_repo.py,sha256=kXdsZrATKOFDc5NGuEYGwkvWN3Q0XX2O8qmKLc8OyWk,19292
523
523
  lusid/models/flexible_repo_cash_flow_event.py,sha256=JFrPKU3ZEwfIdcq-765F_jsorQCX_x9y-KwLD5lUnKU,13536
524
524
  lusid/models/flexible_repo_collateral_event.py,sha256=1F2q46p834Pdu96AoM46KcuilbDkNzdn8ku-ha1vQfE,13474
@@ -1354,7 +1354,7 @@ lusid/models/upsert_custom_entity_access_metadata_request.py,sha256=eEEGMpMS7L62
1354
1354
  lusid/models/upsert_data_quality_rule.py,sha256=q5SAmQeJdVJvtgTyCrKeaDl_AzB8XAjn_fgZIOaZcRk,2991
1355
1355
  lusid/models/upsert_dialect_request.py,sha256=UojCparEfP9pVl7_MrBzegHSK4CUIW2vao0xUfI4FZc,2947
1356
1356
  lusid/models/upsert_flow_conventions_request.py,sha256=OubxlQd6yklZifvp-hteHVaIJa8WIOmIZlMBaHKZNOc,2907
1357
- lusid/models/upsert_fund_bookmark_request.py,sha256=cCuobzVfTfrS_gxCmU1uW9RUdMDiqFqeWVZeqkZWZDM,4704
1357
+ lusid/models/upsert_fund_bookmark_request.py,sha256=kQPzg2XREd4tTlOFYBVNbg4aQwwx8sUzm8fRRsUKs5w,5870
1358
1358
  lusid/models/upsert_index_convention_request.py,sha256=ztcz7JjNA6yl5NDi7WXO2r_BXfi5RK6T-S7ifdIa29g,2907
1359
1359
  lusid/models/upsert_instrument_event_request.py,sha256=ZHTZMJHDF5BIJT5KfUGhLxcgrs_9_9tilgZt_pxbukE,6814
1360
1360
  lusid/models/upsert_instrument_events_response.py,sha256=rBZ0Wrvs1OQZxF1AY9W9niE-K9sv57ciBWWAjIpd3cE,5457
@@ -1440,6 +1440,6 @@ lusid/models/year_month_day.py,sha256=H4OeBzWuMg6mwiOAHFfAvrzjd3QrFCqx1ldsB4L9YQ
1440
1440
  lusid/models/yield_curve_data.py,sha256=ErrQ72NxVza3dC-NnjdbwUpFJKLC-i9UfAWgZyQlEC0,10599
1441
1441
  lusid/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1442
1442
  lusid/rest.py,sha256=HQT__5LQEMu6_1sLKvYj-DI4FH1DJXBIPYfZCTTyrY4,13431
1443
- lusid_sdk-2.3.20.dist-info/METADATA,sha256=aoB9EDTmGg-YTeK-iC60Mr-gQIVlYXVo6S9r-3ier-Q,242300
1444
- lusid_sdk-2.3.20.dist-info/WHEEL,sha256=3ny-bZhpXrU6vSQ1UPG34FoxZBp3lVcvK0LkgUz6VLk,88
1445
- lusid_sdk-2.3.20.dist-info/RECORD,,
1443
+ lusid_sdk-2.3.22.dist-info/METADATA,sha256=ErFYfNOeFQwFN_jY1KaUl0purDpTWq2VrmeWCMxwffM,242300
1444
+ lusid_sdk-2.3.22.dist-info/WHEEL,sha256=3ny-bZhpXrU6vSQ1UPG34FoxZBp3lVcvK0LkgUz6VLk,88
1445
+ lusid_sdk-2.3.22.dist-info/RECORD,,