lusid-sdk 2.1.831__py3-none-any.whl → 2.1.832__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 +1 -1
- lusid/models/loan_principal_repayment_event.py +15 -3
- {lusid_sdk-2.1.831.dist-info → lusid_sdk-2.1.832.dist-info}/METADATA +1 -1
- {lusid_sdk-2.1.831.dist-info → lusid_sdk-2.1.832.dist-info}/RECORD +5 -5
- {lusid_sdk-2.1.831.dist-info → lusid_sdk-2.1.832.dist-info}/WHEEL +0 -0
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.
|
448
|
+
"Version of the API: 0.11.7911\n"\
|
449
449
|
"SDK Package Version: {package_version}".\
|
450
450
|
format(env=sys.platform, pyversion=sys.version, package_version=package_version)
|
451
451
|
|
@@ -30,10 +30,11 @@ class LoanPrincipalRepaymentEvent(InstrumentEvent):
|
|
30
30
|
payment_date: Optional[datetime] = Field(None, alias="paymentDate", description="Date that the Principal is due to be paid.")
|
31
31
|
currency: StrictStr = Field(...,alias="currency", description="Currency of the repayment.")
|
32
32
|
lapse_elections: Optional[conlist(LapseElection)] = Field(None, alias="lapseElections", description="Election for controlling whether the Principal is paid automatically or not. Exactly one election must be provided.")
|
33
|
-
fraction: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="Fraction of the principal balance to be repaid.
|
33
|
+
fraction: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="Fraction of the outstanding settled principal balance to be repaid. Must be between 0 and 1, inclusive. Defaults to 1 if not set. Ignored if the field Amount is set to a value different than zero. Note that if there is a repayment on an unsettled trade and the repayment is specified as a fraction, this repayment will not be applied to the unsettled position, as the fraction is always applied to the settled balance only.")
|
34
|
+
amount: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="Amount to be repaid (independent of the fraction). This field is not used at all if not set or set to 0, in this case the fraction field will be used instead. Otherwise, the fraction field is ignored.")
|
34
35
|
instrument_event_type: StrictStr = Field(...,alias="instrumentEventType", description="The Type of Event. The available values are: TransitionEvent, InformationalEvent, OpenEvent, CloseEvent, StockSplitEvent, BondDefaultEvent, CashDividendEvent, AmortisationEvent, CashFlowEvent, ExerciseEvent, ResetEvent, TriggerEvent, RawVendorEvent, InformationalErrorEvent, BondCouponEvent, DividendReinvestmentEvent, AccumulationEvent, BondPrincipalEvent, DividendOptionEvent, MaturityEvent, FxForwardSettlementEvent, ExpiryEvent, ScripDividendEvent, StockDividendEvent, ReverseStockSplitEvent, CapitalDistributionEvent, SpinOffEvent, MergerEvent, FutureExpiryEvent, SwapCashFlowEvent, SwapPrincipalEvent, CreditPremiumCashFlowEvent, CdsCreditEvent, CdxCreditEvent, MbsCouponEvent, MbsPrincipalEvent, BonusIssueEvent, MbsPrincipalWriteOffEvent, MbsInterestDeferralEvent, MbsInterestShortfallEvent, TenderEvent, CallOnIntermediateSecuritiesEvent, IntermediateSecuritiesDistributionEvent, OptionExercisePhysicalEvent, OptionExerciseCashEvent, ProtectionPayoutCashFlowEvent, TermDepositInterestEvent, TermDepositPrincipalEvent, EarlyRedemptionEvent, FutureMarkToMarketEvent, AdjustGlobalCommitmentEvent, ContractInitialisationEvent, DrawdownEvent, LoanInterestRepaymentEvent, UpdateDepositAmountEvent, LoanPrincipalRepaymentEvent, DepositInterestPaymentEvent, DepositCloseEvent, LoanFacilityContractRolloverEvent, RepurchaseOfferEvent, RepoPartialClosureEvent, RepoCashFlowEvent")
|
35
36
|
additional_properties: Dict[str, Any] = {}
|
36
|
-
__properties = ["instrumentEventType", "paymentDate", "currency", "lapseElections", "fraction"]
|
37
|
+
__properties = ["instrumentEventType", "paymentDate", "currency", "lapseElections", "fraction", "amount"]
|
37
38
|
|
38
39
|
@validator('instrument_event_type')
|
39
40
|
def instrument_event_type_validate_enum(cls, value):
|
@@ -144,6 +145,16 @@ class LoanPrincipalRepaymentEvent(InstrumentEvent):
|
|
144
145
|
if self.lapse_elections is None and "lapse_elections" in self.__fields_set__:
|
145
146
|
_dict['lapseElections'] = None
|
146
147
|
|
148
|
+
# set to None if fraction (nullable) is None
|
149
|
+
# and __fields_set__ contains the field
|
150
|
+
if self.fraction is None and "fraction" in self.__fields_set__:
|
151
|
+
_dict['fraction'] = None
|
152
|
+
|
153
|
+
# set to None if amount (nullable) is None
|
154
|
+
# and __fields_set__ contains the field
|
155
|
+
if self.amount is None and "amount" in self.__fields_set__:
|
156
|
+
_dict['amount'] = None
|
157
|
+
|
147
158
|
return _dict
|
148
159
|
|
149
160
|
@classmethod
|
@@ -160,7 +171,8 @@ class LoanPrincipalRepaymentEvent(InstrumentEvent):
|
|
160
171
|
"payment_date": obj.get("paymentDate"),
|
161
172
|
"currency": obj.get("currency"),
|
162
173
|
"lapse_elections": [LapseElection.from_dict(_item) for _item in obj.get("lapseElections")] if obj.get("lapseElections") is not None else None,
|
163
|
-
"fraction": obj.get("fraction")
|
174
|
+
"fraction": obj.get("fraction"),
|
175
|
+
"amount": obj.get("amount")
|
164
176
|
})
|
165
177
|
# store additional fields in additional_properties
|
166
178
|
for _key in obj.keys():
|
@@ -77,7 +77,7 @@ lusid/api/translation_api.py,sha256=xpRuTfwQvYBlWe6r_L2EI_uVpXqHFnEOim-i-kVQ85E,
|
|
77
77
|
lusid/api/workspace_api.py,sha256=0pCNi3ZCRbIo0NXKa85XE7vtq0WV5YOKcQKvFlcLUaY,120708
|
78
78
|
lusid/api_client.py,sha256=ewMTmf9SRurY8pYnUx9jy24RdldPCOa4US38pnrVxjA,31140
|
79
79
|
lusid/api_response.py,sha256=6-gnhty6lu8MMAERt3_kTVD7UxQgWFfcjgpcq6iN5IU,855
|
80
|
-
lusid/configuration.py,sha256=
|
80
|
+
lusid/configuration.py,sha256=kvNVk8YNmfpKMTsR_vUo30RH9lPhc7PaotUahtQjK6c,17972
|
81
81
|
lusid/exceptions.py,sha256=HIQwgmQrszLlcVCLaqex8dO0laVuejUyOMz7U2ZWJ6s,5326
|
82
82
|
lusid/extensions/__init__.py,sha256=dzDHEzpn-9smd2-_UMWQzeyX6Ha4jGf6fnqx7qxKxNI,630
|
83
83
|
lusid/extensions/api_client.py,sha256=GzygWg_h603QK1QS2HvAijuE2R1TnvoF6-Yg0CeM3ug,30943
|
@@ -669,7 +669,7 @@ lusid/models/loan_facility.py,sha256=BYGrXAOIkhCrCCEGsqG3To6t5hNzA0uPJsIT79Zc1zA
|
|
669
669
|
lusid/models/loan_facility_contract_rollover_event.py,sha256=o4D0Ov_tFgHQWlousNX0RSPLM0FasJA2wdxJe2Mhbec,12064
|
670
670
|
lusid/models/loan_interest_repayment_event.py,sha256=hmCAmmFSROTIjbqdBDvYA5YHKT8uenozMjOP4e1lkWY,12371
|
671
671
|
lusid/models/loan_period.py,sha256=aYoZLiXQRkjj0DWmXs4ihxHUxYW7Nc0-mfkFaSBAE4k,2383
|
672
|
-
lusid/models/loan_principal_repayment_event.py,sha256=
|
672
|
+
lusid/models/loan_principal_repayment_event.py,sha256=KplkXlxByzGDoin2aJQjibhCb5KTC79pGyWgZreEnK4,13273
|
673
673
|
lusid/models/lock_period_diary_entry_request.py,sha256=pqJQGtnL8Oy8WJ1St3QgA5HhESmvrunFPeBZ0fP9O3I,3126
|
674
674
|
lusid/models/lusid_instrument.py,sha256=tyiCwFSD4W3Dw_tgNtgarOx8mrtBbtH3IvXNuukjeLQ,11232
|
675
675
|
lusid/models/lusid_problem_details.py,sha256=BkzYYV7IX1vrdC8TZNika8RBXHp0s5HIUgq-Jh2Ohd0,4162
|
@@ -1326,6 +1326,6 @@ lusid/models/year_month_day.py,sha256=gwSoxFwlD_wffKdddo1wfvAcLq3Cht3FHQidiaHzAA
|
|
1326
1326
|
lusid/models/yield_curve_data.py,sha256=I1ZSWxHMgUxj9OQt6i9a4S91KB4_XtmrfFxpN_PV3YQ,9561
|
1327
1327
|
lusid/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
1328
1328
|
lusid/rest.py,sha256=HQT__5LQEMu6_1sLKvYj-DI4FH1DJXBIPYfZCTTyrY4,13431
|
1329
|
-
lusid_sdk-2.1.
|
1330
|
-
lusid_sdk-2.1.
|
1331
|
-
lusid_sdk-2.1.
|
1329
|
+
lusid_sdk-2.1.832.dist-info/METADATA,sha256=TWjkV4nwJ2QBgnz_MPeE5681Bab8IVep503V3KNS8iU,221939
|
1330
|
+
lusid_sdk-2.1.832.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
1331
|
+
lusid_sdk-2.1.832.dist-info/RECORD,,
|
File without changes
|