lusid-sdk 2.1.672__py3-none-any.whl → 2.1.677__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.7271\n"\
448
+ "Version of the API: 0.11.7284\n"\
449
449
  "SDK Package Version: {package_version}".\
450
450
  format(env=sys.platform, pyversion=sys.version, package_version=package_version)
451
451
 
@@ -19,20 +19,19 @@ import json
19
19
 
20
20
  from datetime import datetime
21
21
  from typing import Any, Dict
22
- from pydantic.v1 import Field, StrictStr, constr, validator
22
+ from pydantic.v1 import Field, StrictStr, validator
23
23
  from lusid.models.lusid_instrument import LusidInstrument
24
24
 
25
25
  class LoanFacility(LusidInstrument):
26
26
  """
27
- Loan Facility. This is a very lightweight instrument which acts as a placeholder for the events occurring within the related facility Portfolio. This Portfolio is identified by its Scope and Code, which is recorded on the instrument definition. The instrument acts as an agreement between a single borrower and many lenders (investors). Several contracts may be drawn up to enable the lending of funds to the borrower. These contracts are modelled via FlexibleLoan instruments in LUSID. The events occurring within the linked Portfolio may be related to the facility as a whole (for example to define a global commitment amount), or they may relate to a single contract (such as a paydown transaction on a particular contract). # noqa: E501
27
+ Loan Facility. This is a very lightweight instrument which acts as a placeholder for the state that is built from the instrument events. The facility acts as an agreement between a single borrower and many lenders (investors). Several contracts may be drawn up to enable the lending of funds to the borrower. These contracts are modelled via FlexibleLoan instruments in LUSID. The instrument events on the facility may relate to the facility as a whole (for example to define a global commitment amount), or they may relate to a single contract (such as a paydown transaction on a particular contract). # noqa: E501
28
28
  """
29
29
  start_date: datetime = Field(..., alias="startDate", description="The start date of the instrument. This is normally synonymous with the trade-date.")
30
+ maturity_date: datetime = Field(..., alias="maturityDate", 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.")
30
31
  dom_ccy: StrictStr = Field(..., alias="domCcy", description="The domestic currency of the instrument.")
31
- facility_portfolio_scope: constr(strict=True, max_length=256, min_length=0) = Field(..., alias="facilityPortfolioScope", description="The Scope of the Transaction Portfolio to which the Loan Facility instrument is linked.")
32
- facility_portfolio_code: constr(strict=True, max_length=256, min_length=0) = Field(..., alias="facilityPortfolioCode", description="The Code of the Transaction Portfolio to which the Loan Facility instrument is linked.")
33
32
  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")
34
33
  additional_properties: Dict[str, Any] = {}
35
- __properties = ["instrumentType", "startDate", "domCcy", "facilityPortfolioScope", "facilityPortfolioCode"]
34
+ __properties = ["instrumentType", "startDate", "maturityDate", "domCcy"]
36
35
 
37
36
  @validator('instrument_type')
38
37
  def instrument_type_validate_enum(cls, value):
@@ -93,9 +92,8 @@ class LoanFacility(LusidInstrument):
93
92
  _obj = LoanFacility.parse_obj({
94
93
  "instrument_type": obj.get("instrumentType"),
95
94
  "start_date": obj.get("startDate"),
96
- "dom_ccy": obj.get("domCcy"),
97
- "facility_portfolio_scope": obj.get("facilityPortfolioScope"),
98
- "facility_portfolio_code": obj.get("facilityPortfolioCode")
95
+ "maturity_date": obj.get("maturityDate"),
96
+ "dom_ccy": obj.get("domCcy")
99
97
  })
100
98
  # store additional fields in additional_properties
101
99
  for _key in obj.keys():
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lusid-sdk
3
- Version: 2.1.672
3
+ Version: 2.1.677
4
4
  Summary: LUSID API
5
5
  Home-page: https://github.com/finbourne/lusid-sdk-python
6
6
  License: MIT
@@ -71,7 +71,7 @@ lusid/api/translation_api.py,sha256=nIyuLncCvVC5k2d7Nm32zR8AQ1dkrVm1OThkmELY_OM,
71
71
  lusid/api/workspace_api.py,sha256=Yox1q7TDY-_O3HF-N8g5kGuNgp4unWvlSZmRZ6MNZO0,196701
72
72
  lusid/api_client.py,sha256=ewMTmf9SRurY8pYnUx9jy24RdldPCOa4US38pnrVxjA,31140
73
73
  lusid/api_response.py,sha256=6-gnhty6lu8MMAERt3_kTVD7UxQgWFfcjgpcq6iN5IU,855
74
- lusid/configuration.py,sha256=9d6KyxxAX1kxxlFR1RLVPBwW21eCx22P9JZHjfIGp54,17972
74
+ lusid/configuration.py,sha256=xjvFhPoQppR2rm_3DMfzKQS80kZt1TpGOnk5WeutUNM,17972
75
75
  lusid/exceptions.py,sha256=HIQwgmQrszLlcVCLaqex8dO0laVuejUyOMz7U2ZWJ6s,5326
76
76
  lusid/extensions/__init__.py,sha256=dzDHEzpn-9smd2-_UMWQzeyX6Ha4jGf6fnqx7qxKxNI,630
77
77
  lusid/extensions/api_client.py,sha256=GzygWg_h603QK1QS2HvAijuE2R1TnvoF6-Yg0CeM3ug,30943
@@ -626,7 +626,7 @@ lusid/models/link.py,sha256=VFgfjebDV-GeFukJsVZljcv9FXYj5c2b1x1Xc2ERv7I,2462
626
626
  lusid/models/list_aggregation_reconciliation.py,sha256=yHkO9sqn9dFMC9hb_5ei1SH59ZkINwSs43722JD1TFE,3558
627
627
  lusid/models/list_aggregation_response.py,sha256=dInlTbNsb_wV19nKDRKRf2T_QU9MtKvflHvSVY2H3XA,5625
628
628
  lusid/models/list_complex_market_data_with_meta_data_response.py,sha256=lgKBJUqrpjtKEXWgvTCn8b8q-6R1NiabSqoUKBVPzw4,3814
629
- lusid/models/loan_facility.py,sha256=RZTeBe27YLVyd0Jhp7-f1t7CIWscnJ-nM3nz6EY7m5c,6756
629
+ lusid/models/loan_facility.py,sha256=9TvtbcHDUZe3rLISCu-A5woGvRMoxnCL__3RakeFeUI,6550
630
630
  lusid/models/loan_interest_repayment_event.py,sha256=0T4j-BaaX_sRbxv2czD84s-Zzro7tpzSrUEe6aZ2vQw,7589
631
631
  lusid/models/loan_period.py,sha256=_etbhg_IaojuEys0N0rxwAAzO6bDCA1JHLiOAqkiunY,2364
632
632
  lusid/models/lock_period_diary_entry_request.py,sha256=NC5mK4AXFMVYyFilhiL5iHqMc0NLWPjaiUpJsa41sCg,3511
@@ -1254,6 +1254,6 @@ lusid/models/workspace_update_request.py,sha256=5N7j21uF9XV75Sl3oJbsSOKT5PrQEx3y
1254
1254
  lusid/models/yield_curve_data.py,sha256=vtOzY4t2lgHJUWcna9dEKnuZ_tinolyb8IAFPB23DZ0,6543
1255
1255
  lusid/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1256
1256
  lusid/rest.py,sha256=HQT__5LQEMu6_1sLKvYj-DI4FH1DJXBIPYfZCTTyrY4,13431
1257
- lusid_sdk-2.1.672.dist-info/METADATA,sha256=qCHfzNixdSBt8QiDEA9cNCxwEEfAGqKM47lT_PTMs_k,213719
1258
- lusid_sdk-2.1.672.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
1259
- lusid_sdk-2.1.672.dist-info/RECORD,,
1257
+ lusid_sdk-2.1.677.dist-info/METADATA,sha256=R-Plile5Uhb8juI6_4W_UeBuL9UZdVxN_AxIEsMdoTU,213719
1258
+ lusid_sdk-2.1.677.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
1259
+ lusid_sdk-2.1.677.dist-info/RECORD,,