lusid-sdk 2.0.430__py3-none-any.whl → 2.0.437__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.

@@ -34,7 +34,7 @@ class DividendOptionEvent(InstrumentEvent):
34
34
  payment_date: datetime = Field(..., alias="paymentDate", description="The date the company pays out dividends to shareholders.")
35
35
  record_date: Optional[datetime] = Field(None, alias="recordDate", description="Date you have to be the holder of record in order to participate in the tender.")
36
36
  security_elections: conlist(SecurityElection) = Field(..., alias="securityElections", description="SecurityElection for this DividendReinvestmentEvent")
37
- security_settlement_date: Optional[datetime] = Field(None, alias="securitySettlementDate", description="Date on which the dividend was the security settles. Equal to the PaymentDate if not provided.")
37
+ security_settlement_date: Optional[datetime] = Field(None, alias="securitySettlementDate", description="The settlement date of the additional units. Equal to the PaymentDate if not provided.")
38
38
  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")
39
39
  additional_properties: Dict[str, Any] = {}
40
40
  __properties = ["instrumentEventType", "announcementDate", "cashElections", "exDate", "paymentDate", "recordDate", "securityElections", "securitySettlementDate"]
@@ -34,9 +34,10 @@ class DividendReinvestmentEvent(InstrumentEvent):
34
34
  payment_date: datetime = Field(..., alias="paymentDate", description="The date the company pays out dividends to shareholders.")
35
35
  record_date: datetime = Field(..., alias="recordDate", description="Date you have to be the holder of record in order to participate in the tender.")
36
36
  security_elections: conlist(SecurityElection) = Field(..., alias="securityElections", description="SecurityElection for this DividendReinvestmentEvent")
37
+ security_settlement_date: Optional[datetime] = Field(None, alias="securitySettlementDate", description="The settlement date of the additional units. Equal to the PaymentDate if not provided.")
37
38
  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")
38
39
  additional_properties: Dict[str, Any] = {}
39
- __properties = ["instrumentEventType", "announcementDate", "cashElections", "exDate", "paymentDate", "recordDate", "securityElections"]
40
+ __properties = ["instrumentEventType", "announcementDate", "cashElections", "exDate", "paymentDate", "recordDate", "securityElections", "securitySettlementDate"]
40
41
 
41
42
  @validator('instrument_event_type')
42
43
  def instrument_event_type_validate_enum(cls, value):
@@ -112,7 +113,8 @@ class DividendReinvestmentEvent(InstrumentEvent):
112
113
  "ex_date": obj.get("exDate"),
113
114
  "payment_date": obj.get("paymentDate"),
114
115
  "record_date": obj.get("recordDate"),
115
- "security_elections": [SecurityElection.from_dict(_item) for _item in obj.get("securityElections")] if obj.get("securityElections") is not None else None
116
+ "security_elections": [SecurityElection.from_dict(_item) for _item in obj.get("securityElections")] if obj.get("securityElections") is not None else None,
117
+ "security_settlement_date": obj.get("securitySettlementDate")
116
118
  })
117
119
  # store additional fields in additional_properties
118
120
  for _key in obj.keys():
lusid/models/fx_swap.py CHANGED
@@ -25,7 +25,7 @@ from lusid.models.lusid_instrument import LusidInstrument
25
25
 
26
26
  class FxSwap(LusidInstrument):
27
27
  """
28
- LUSID representation of an FX Swap. Composed of two FX Forwards. This instrument has multiple legs, to see how legs are used in LUSID see [knowledge base article KA-02252](https://support.lusid.com/knowledgebase/article/KA-02252). | Leg Index | Leg Identifier | Description | | --------- | -------------- | ----------- | | 1 | NearDomesticLeg | Cash flows in the domestic currency for the near forward. | | 2 | NearForeignLeg | Cash flows in the foreign currency for the near forward (not present for non-deliverable forwards). | | 3 | FarDomesticLeg | Cash flows in the domestic currency for the far forward. | | 4 | FarForeignLeg | Cash flows in the foreign currency for the far forward (not present for non-deliverable forwards). | # noqa: E501
28
+ LUSID representation of an FX Swap. Composed of two FX Forwards. This instrument has multiple legs, to see how legs are used in LUSID see [knowledge base article KA-02252](https://support.lusid.com/knowledgebase/article/KA-02252). | Leg Index | Leg Identifier | Description | | --------- | -------------- | ----------- | | 1 | FarDomesticLeg | Cash flows in the domestic currency for the far forward. | | 2 | FarForeignLeg | Cash flows in the foreign currency for the far forward (not present for non-deliverable forwards). | | 3 | NearDomesticLeg | Cash flows in the domestic currency for the near forward. | | 4 | NearForeignLeg | Cash flows in the foreign currency for the near forward (not present for non-deliverable forwards). | # noqa: E501
29
29
  """
30
30
  near_fx_forward: FxForward = Field(..., alias="nearFxForward")
31
31
  far_fx_forward: FxForward = Field(..., alias="farFxForward")
@@ -52,7 +52,8 @@ class OutputTransaction(BaseModel):
52
52
  cancel_date_time: Optional[datetime] = Field(None, alias="cancelDateTime", description="If the transaction has been cancelled, the asAt datetime that the transaction was cancelled.")
53
53
  realised_gain_loss: Optional[conlist(RealisedGainLoss)] = Field(None, alias="realisedGainLoss", description="The collection of realised gains or losses resulting from relevant transactions e.g. a sale transaction. The cost used in calculating the realised gain or loss is determined by the accounting method defined when the transaction portfolio is created.")
54
54
  holding_ids: Optional[conlist(StrictInt)] = Field(None, alias="holdingIds", description="The collection of single identifiers for the holding within the portfolio. The holdingId is constructed from the LusidInstrumentId, sub-holding keys and currrency and is unique within the portfolio.")
55
- __properties = ["transactionId", "type", "description", "instrumentIdentifiers", "instrumentScope", "instrumentUid", "transactionDate", "settlementDate", "units", "transactionAmount", "transactionPrice", "totalConsideration", "exchangeRate", "transactionToPortfolioRate", "transactionCurrency", "properties", "counterpartyId", "source", "transactionStatus", "entryDateTime", "cancelDateTime", "realisedGainLoss", "holdingIds"]
55
+ source_type: Optional[StrictStr] = Field(None, alias="sourceType", description="The type of source that the transaction originated from, eg: InputTransaction, InstrumentEvent, HoldingAdjustment")
56
+ __properties = ["transactionId", "type", "description", "instrumentIdentifiers", "instrumentScope", "instrumentUid", "transactionDate", "settlementDate", "units", "transactionAmount", "transactionPrice", "totalConsideration", "exchangeRate", "transactionToPortfolioRate", "transactionCurrency", "properties", "counterpartyId", "source", "transactionStatus", "entryDateTime", "cancelDateTime", "realisedGainLoss", "holdingIds", "sourceType"]
56
57
 
57
58
  @validator('transaction_status')
58
59
  def transaction_status_validate_enum(cls, value):
@@ -163,6 +164,11 @@ class OutputTransaction(BaseModel):
163
164
  if self.holding_ids is None and "holding_ids" in self.__fields_set__:
164
165
  _dict['holdingIds'] = None
165
166
 
167
+ # set to None if source_type (nullable) is None
168
+ # and __fields_set__ contains the field
169
+ if self.source_type is None and "source_type" in self.__fields_set__:
170
+ _dict['sourceType'] = None
171
+
166
172
  return _dict
167
173
 
168
174
  @classmethod
@@ -202,6 +208,7 @@ class OutputTransaction(BaseModel):
202
208
  "entry_date_time": obj.get("entryDateTime"),
203
209
  "cancel_date_time": obj.get("cancelDateTime"),
204
210
  "realised_gain_loss": [RealisedGainLoss.from_dict(_item) for _item in obj.get("realisedGainLoss")] if obj.get("realisedGainLoss") is not None else None,
205
- "holding_ids": obj.get("holdingIds")
211
+ "holding_ids": obj.get("holdingIds"),
212
+ "source_type": obj.get("sourceType")
206
213
  })
207
214
  return _obj
lusid/rest.py CHANGED
@@ -159,7 +159,7 @@ class RESTClientObject:
159
159
  # Pass a `bytes` parameter directly in the body to support
160
160
  # other content types than Json when `body` argument is provided
161
161
  # in serialized form
162
- elif isinstance(body, bytes):
162
+ elif isinstance(body, str) or isinstance(body, bytes):
163
163
  args["data"] = body
164
164
  else:
165
165
  # Cannot generate the request from given parameters
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lusid-sdk
3
- Version: 2.0.430
3
+ Version: 2.0.437
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.6377
33
- - Package version: 2.0.430
32
+ - API version: 0.11.6384
33
+ - Package version: 2.0.437
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
 
@@ -1,5 +1,5 @@
1
- lusid/__init__.py,sha256=4qMAGxrpbwwqVZRapjP5DJY8b-2m70wh_nX2k-EEojI,71491
2
- lusid/api/__init__.py,sha256=qpMrgIJyy4de85dB6cCOj3DWmF9MFDE5ML1nzQkGcaA,3612
1
+ lusid/__init__.py,sha256=uB1LijWMu7XTx5uvOXB3te6znHvdvXhoA4u0Gma5a6k,101025
2
+ lusid/api/__init__.py,sha256=RdfLWVjdUAASrYQnF0XXzX83daJEf7u6uwnwHegMs_c,5115
3
3
  lusid/api/abor_api.py,sha256=c7jUtAQLrgCgnkNCLLTkelIoU-Yd674I3-4kVDnIJlc,149936
4
4
  lusid/api/abor_configuration_api.py,sha256=SBpk45BSb-XcS06xkpycyg6Q2U4hpiuftgmF4v9L7x0,64027
5
5
  lusid/api/address_key_definition_api.py,sha256=7f7UvEzHKEfQLcR_NgABxJmfIIz2ujTM__wnUdJCqyg,31634
@@ -62,9 +62,9 @@ lusid/api/transaction_portfolios_api.py,sha256=Q-RvuNmYL4drz4LeytNHRCmvrWwxfnPnT
62
62
  lusid/api/translation_api.py,sha256=8_YL07_CYCI-FV4jMdiq7zlsDXqvkPMFQPyT6NL4jvU,20086
63
63
  lusid/api_client.py,sha256=dF6l9RAsdxdQjf6Qn4ny6LB-QXlJmsscWiozCvyyBFA,30709
64
64
  lusid/api_response.py,sha256=uCehWdXXDnAO2HAHGKe0SgpQ_mJiGDbcu-BHDF3n_IM,852
65
- lusid/configuration.py,sha256=UBzGFuuKEqWvwaMPLuj8aTxSTYrWaMVyox9woWx2cmI,14404
65
+ lusid/configuration.py,sha256=TIFpNoc7isvrQS47WQBsWzsOIVOw-5tiXxQaQvoGFqU,14404
66
66
  lusid/exceptions.py,sha256=HIQwgmQrszLlcVCLaqex8dO0laVuejUyOMz7U2ZWJ6s,5326
67
- lusid/extensions/__init__.py,sha256=QaILYsqEVSZlNudYB0wu8sOsx1NCZeqyZE8NbsH4CJY,276
67
+ lusid/extensions/__init__.py,sha256=DeUuQP7yTcklJH7LT-bw9wQhKEggcs1KwQbPbFcOlhw,560
68
68
  lusid/extensions/api_client.py,sha256=Ob06urm4Em3MLzgP_geyeeGsPCkU225msW_1kpIeABM,30567
69
69
  lusid/extensions/api_client_factory.py,sha256=UHczRh7tRs6uOdmQEGNRxbJag0mpjRUW5V757lCU3rE,9673
70
70
  lusid/extensions/api_configuration.py,sha256=LbuhaM-PcrY0a4cZ-ff7GBP8UybSqI5Ys2WQOBcr_8I,8052
@@ -75,7 +75,7 @@ lusid/extensions/rest.py,sha256=tjVCu-cRrYcjp-ttB975vebPKtBNyBWaeoAdO3QXG2I,1269
75
75
  lusid/extensions/retry.py,sha256=orBJ1uF1iT1IncjWX1iGHVqsCgTh0SBe9rtiV_sPnwk,11564
76
76
  lusid/extensions/socket_keep_alive.py,sha256=NGlqsv-E25IjJOLGZhXZY6kUdx51nEF8qCQyVdzayRk,1653
77
77
  lusid/extensions/tcp_keep_alive_connector.py,sha256=zaGtUsygRsxB1_4B3x39K3ILwztdhMLDv5bFZV7zmGE,3877
78
- lusid/models/__init__.py,sha256=SUROlvvf-SttOpiuJzGQ1esXtiRRKlvKZOFFtuWBvHE,67470
78
+ lusid/models/__init__.py,sha256=YUzVk9WO2RFZ343PA_lxLy2qTcIEcKo9xuESDqYfdJ0,94952
79
79
  lusid/models/a2_b_breakdown.py,sha256=MmG2do_CuV3zyMZJP0BORoG_jTe0G308IjBYhSZbpUw,2944
80
80
  lusid/models/a2_b_category.py,sha256=DKiB3y93L3-MXpqRqGo93PeFlvD4ZjnQfH489NRLQVc,2722
81
81
  lusid/models/a2_b_data_record.py,sha256=Xey2yvdCY9D-oBM_0Z5QIxboMAIzxKAgHcrvKie7Ypk,9734
@@ -324,8 +324,8 @@ lusid/models/diary_entry_request.py,sha256=NtBDV4DoHZwg_PWUA9ZzY0yDgcJpxjFctJUZA
324
324
  lusid/models/discount_factor_curve_data.py,sha256=Pk21p7qmZWzCQsIQgXJjvo6L921IXzrbtJj3EJSW6dY,5519
325
325
  lusid/models/discounting_dependency.py,sha256=wUyjXewg6ah4zIAIDX-LHrdKITcCAWhaRm2CEkctTJs,4374
326
326
  lusid/models/discounting_method.py,sha256=MlWtNqjuA9R4G5hosNUyP5NgFDnzlOpVHgnRH44uo-k,734
327
- lusid/models/dividend_option_event.py,sha256=laeoC_tbEEat0SVqQcItFnWFPfXNkfN2GcfOSED6_7U,7212
328
- lusid/models/dividend_reinvestment_event.py,sha256=3WISDsEkyIe-ifWnn25LxiXPUSXd-13gOA-F6r77cPs,6791
327
+ lusid/models/dividend_option_event.py,sha256=-jIgXaTqDQTQYsfmswdo_T35JOLr4DFFgw_JrmONtms,7204
328
+ lusid/models/dividend_reinvestment_event.py,sha256=N13sZI0mSJxkn-G2CJNEeVYzJcncVdjN5sCqo1HuV6Y,7090
329
329
  lusid/models/economic_dependency.py,sha256=9mUx3tW4e50wN2tPqe39ysvm1Brwi1cnD2eAuL28Mm4,6093
330
330
  lusid/models/economic_dependency_type.py,sha256=tx37PkXssBSTW8Rqm1PN8XFEKR4lEkTgnLwL0EvMh3k,1290
331
331
  lusid/models/economic_dependency_with_complex_market_data.py,sha256=x04Yf6eqTCZ1nuIO-q9oPJr-1gPgO5UGpmDd99XyEvc,3048
@@ -395,7 +395,7 @@ lusid/models/fx_forwards_dependency.py,sha256=o9x4l9ut0t6_GqCELIv6O6GZktbfEoVbUZ
395
395
  lusid/models/fx_linked_notional_schedule.py,sha256=s0-yVsUgW9puAJow11JwSgIBRvjq9NZjh-8W_vWYU3U,5405
396
396
  lusid/models/fx_option.py,sha256=1nX7yhS7mW5WaMkubZhy-UHxPFgKL3ubTRG8zmWKuWU,11846
397
397
  lusid/models/fx_rate_schedule.py,sha256=lF8TXcuEUATfbdTTh4d6hUYci-Dz1llP8nSbJivTr8g,5180
398
- lusid/models/fx_swap.py,sha256=6Hgd6qLa_0iaYhcjigsoYS-uu4qyIdKmzZt-wnewdbw,6945
398
+ lusid/models/fx_swap.py,sha256=ll2k9Qsg3g7U2fK8aftMJX1PP62sGOrnx1PS7O4hsuY,6945
399
399
  lusid/models/fx_tenor_convention.py,sha256=Sh9fFshnrZrp4oeLbCKiyX4s01r69xvMEWjfoPcqdaI,2453
400
400
  lusid/models/fx_vol_dependency.py,sha256=Z7I3Cmger1y-MTRPT90ctdyfmKpFMYWVVPzImCqKmmw,4945
401
401
  lusid/models/fx_vol_surface_data.py,sha256=0T3kBjhW0uW11toVKUsBcxYcMsytz7SEyWXrNv5BQd4,5829
@@ -560,7 +560,7 @@ lusid/models/order_instruction_set_request.py,sha256=Aw3xFGRyW274fyMLvOONNFIGuFk
560
560
  lusid/models/order_request.py,sha256=jOkrT9ZrrBOG9Anv_Sa3dX9tkC_SbGK1jMf2vzQwZVo,7830
561
561
  lusid/models/order_set_request.py,sha256=i2VqRUHpgTpCYZCtEEmw1u1-xiU6PazgPGq1yo_hu8k,2713
562
562
  lusid/models/otc_confirmation.py,sha256=_WwQXhBs98ozWYfIIv-W8HC632j5lx0H44RcCtWHvyQ,2416
563
- lusid/models/output_transaction.py,sha256=r_9ACtKQutSNaLV2-ZLF5wsEM2QEASsbeMDJGIOz9iI,12843
563
+ lusid/models/output_transaction.py,sha256=3W_QDP55yTzy9HJeJ7SkQzJOq9DIe2W4Uh7oAp3zP2I,13329
564
564
  lusid/models/output_transition.py,sha256=kosxo28VtD5GtDExAmp3j0fl6IBpajwL1wA7I2Z14u8,3982
565
565
  lusid/models/package.py,sha256=AgfRHOtFGs2jnJw_x1X-EMjjOiBe8vmH1D-WUUQYhdQ,5450
566
566
  lusid/models/package_request.py,sha256=2M0zbuGCQlqden-aVfk5jyVIAuJm9a-8agg-eobXlmY,4380
@@ -989,7 +989,7 @@ lusid/models/weighted_instrument_in_line_lookup_identifiers.py,sha256=fxxd33EAvj
989
989
  lusid/models/weighted_instruments.py,sha256=M2Mr7KTAcMS40g309xatBHDhvYk3g61yigx0QcO7Uuw,2540
990
990
  lusid/models/yield_curve_data.py,sha256=i2MHEJe9kdTTgxQFti2a6BAU7ikE0wTPXsS_sMJhrDk,6327
991
991
  lusid/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
992
- lusid/rest.py,sha256=8i0qEzbXNKF6vKzYcrnerFbI79hfU8FpfCVCtI9t9WY,10007
993
- lusid_sdk-2.0.430.dist-info/METADATA,sha256=xQ6py69LqDuzDsvrdoPmIPKCzDAcxoE2A2OYzRYD4FE,174449
994
- lusid_sdk-2.0.430.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
995
- lusid_sdk-2.0.430.dist-info/RECORD,,
992
+ lusid/rest.py,sha256=gHQ76psf1vzmBJI14ZGVvb3f_Urp0zBBo3R5u3-kNIM,10032
993
+ lusid_sdk-2.0.437.dist-info/METADATA,sha256=1f7GxuVjSfDcIaNDl0Wh1SIvhypRjpSx7CjDy8YZjXk,174449
994
+ lusid_sdk-2.0.437.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
995
+ lusid_sdk-2.0.437.dist-info/RECORD,,