lusid-sdk 2.1.760__py3-none-any.whl → 2.1.762__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.
Files changed (55) hide show
  1. lusid/__init__.py +2 -0
  2. lusid/configuration.py +1 -1
  3. lusid/models/__init__.py +2 -0
  4. lusid/models/accumulation_event.py +2 -2
  5. lusid/models/adjust_global_commitment_event.py +2 -2
  6. lusid/models/bond_coupon_event.py +2 -2
  7. lusid/models/bond_default_event.py +2 -2
  8. lusid/models/bond_principal_event.py +2 -2
  9. lusid/models/bonus_issue_event.py +2 -2
  10. lusid/models/call_on_intermediate_securities_event.py +2 -2
  11. lusid/models/capital_distribution_event.py +2 -2
  12. lusid/models/cash_dividend_event.py +2 -2
  13. lusid/models/cds_credit_event.py +1 -1
  14. lusid/models/cdx_credit_event.py +1 -1
  15. lusid/models/contract_initialisation_event.py +2 -2
  16. lusid/models/credit_premium_cash_flow_event.py +2 -2
  17. lusid/models/deposit_close_event.py +2 -2
  18. lusid/models/deposit_interest_payment_event.py +3 -3
  19. lusid/models/dividend_option_event.py +2 -2
  20. lusid/models/dividend_reinvestment_event.py +2 -2
  21. lusid/models/drawdown_event.py +2 -2
  22. lusid/models/expiry_event.py +2 -2
  23. lusid/models/future_expiry_event.py +1 -1
  24. lusid/models/future_mark_to_market_event.py +1 -1
  25. lusid/models/fx_forward_settlement_event.py +1 -1
  26. lusid/models/intermediate_securities_distribution_event.py +2 -2
  27. lusid/models/loan_facility_contract_rollover_event.py +2 -2
  28. lusid/models/loan_interest_repayment_event.py +2 -2
  29. lusid/models/loan_principal_repayment_event.py +1 -1
  30. lusid/models/maturity_event.py +2 -2
  31. lusid/models/mbs_coupon_event.py +2 -2
  32. lusid/models/mbs_interest_deferral_event.py +2 -2
  33. lusid/models/mbs_interest_shortfall_event.py +2 -2
  34. lusid/models/mbs_principal_event.py +2 -2
  35. lusid/models/mbs_principal_write_off_event.py +2 -2
  36. lusid/models/merger_event.py +2 -2
  37. lusid/models/option_exercise_cash_event.py +2 -2
  38. lusid/models/option_exercise_physical_event.py +2 -2
  39. lusid/models/protection_payout_cash_flow_event.py +2 -2
  40. lusid/models/reverse_stock_split_event.py +2 -2
  41. lusid/models/scrip_dividend_event.py +2 -2
  42. lusid/models/spin_off_event.py +2 -2
  43. lusid/models/stock_dividend_event.py +2 -2
  44. lusid/models/stock_split_event.py +2 -2
  45. lusid/models/swap_cash_flow_event.py +2 -2
  46. lusid/models/swap_principal_event.py +2 -2
  47. lusid/models/tender_event.py +2 -2
  48. lusid/models/term_deposit_interest_event.py +1 -1
  49. lusid/models/term_deposit_principal_event.py +1 -1
  50. lusid/models/update_deposit_amount_event.py +2 -2
  51. lusid/models/upsert_instrument_event_request.py +22 -2
  52. lusid/models/year_month_day.py +81 -0
  53. {lusid_sdk-2.1.760.dist-info → lusid_sdk-2.1.762.dist-info}/METADATA +2 -1
  54. {lusid_sdk-2.1.760.dist-info → lusid_sdk-2.1.762.dist-info}/RECORD +55 -54
  55. {lusid_sdk-2.1.760.dist-info → lusid_sdk-2.1.762.dist-info}/WHEEL +0 -0
@@ -31,11 +31,11 @@ class OptionExerciseCashEvent(InstrumentEvent):
31
31
  exercise_date: Optional[datetime] = Field(None, alias="exerciseDate", description="The exercise date of the option.")
32
32
  delivery_date: Optional[datetime] = Field(None, alias="deliveryDate", description="The delivery date of the option.")
33
33
  exercise_type: StrictStr = Field(...,alias="exerciseType", description="The optionality type of the underlying option e.g. American, European. Supported string (enumeration) values are: [European, Bermudan, American].")
34
- maturity_date: datetime = Field(..., alias="maturityDate", description="The maturity date of the option.")
34
+ maturity_date: Optional[datetime] = Field(None, alias="maturityDate", description="The maturity date of the option.")
35
35
  moneyness: Optional[StrictStr] = Field(None,alias="moneyness", description="The moneyness of the option e.g. InTheMoney, OutOfTheMoney. Supported string (enumeration) values are: [InTheMoney, OutOfTheMoney, AtTheMoney].")
36
36
  option_exercise_elections: Optional[conlist(OptionExerciseElection)] = Field(None, alias="optionExerciseElections", description="Option exercise election for this OptionExercisePhysicalEvent.")
37
37
  option_type: StrictStr = Field(...,alias="optionType", description="Type of optionality that is present e.g. call, put. Supported string (enumeration) values are: [Call, Put].")
38
- start_date: datetime = Field(..., alias="startDate", description="The start date of the option.")
38
+ start_date: Optional[datetime] = Field(None, alias="startDate", description="The start date of the option.")
39
39
  strike_currency: StrictStr = Field(...,alias="strikeCurrency", description="The strike currency of the equity option.")
40
40
  strike_per_unit: Union[StrictFloat, StrictInt] = Field(..., alias="strikePerUnit", description="The strike of the equity option times the number of shares to exchange if exercised.")
41
41
  underlying_value_per_unit: Optional[Union[StrictFloat, StrictInt]] = Field(None, alias="underlyingValuePerUnit", description="The underlying price times the number of shares to exchange if exercised.")
@@ -32,12 +32,12 @@ class OptionExercisePhysicalEvent(InstrumentEvent):
32
32
  exercise_date: Optional[datetime] = Field(None, alias="exerciseDate", description="The exercise date of the option.")
33
33
  delivery_date: Optional[datetime] = Field(None, alias="deliveryDate", description="The delivery date of the option.")
34
34
  exercise_type: StrictStr = Field(...,alias="exerciseType", description="The optionality type of the underlying option e.g. American, European. Supported string (enumeration) values are: [European, Bermudan, American].")
35
- maturity_date: datetime = Field(..., alias="maturityDate", description="The maturity date of the option.")
35
+ maturity_date: Optional[datetime] = Field(None, alias="maturityDate", description="The maturity date of the option.")
36
36
  moneyness: Optional[StrictStr] = Field(None,alias="moneyness", description="The moneyness of the option e.g. InTheMoney, OutOfTheMoney. Supported string (enumeration) values are: [InTheMoney, OutOfTheMoney, AtTheMoney].")
37
37
  new_instrument: NewInstrument = Field(..., alias="newInstrument")
38
38
  option_exercise_elections: Optional[conlist(OptionExerciseElection)] = Field(None, alias="optionExerciseElections", description="Option exercise election for this OptionExercisePhysicalEvent.")
39
39
  option_type: StrictStr = Field(...,alias="optionType", description="Type of optionality that is present e.g. call, put. Supported string (enumeration) values are: [Call, Put].")
40
- start_date: datetime = Field(..., alias="startDate", description="The trade date of the option.")
40
+ start_date: Optional[datetime] = Field(None, alias="startDate", description="The trade date of the option.")
41
41
  strike_currency: StrictStr = Field(...,alias="strikeCurrency", description="The strike currency of the equity option.")
42
42
  strike_per_unit: Union[StrictFloat, StrictInt] = Field(..., alias="strikePerUnit", description="The strike of the equity option times the number of shares to exchange if exercised.")
43
43
  underlying_value_per_unit: Optional[Union[StrictFloat, StrictInt]] = Field(None, alias="underlyingValuePerUnit", description="The underlying price times the number of shares to exchange if exercised.")
@@ -26,8 +26,8 @@ class ProtectionPayoutCashFlowEvent(InstrumentEvent):
26
26
  """
27
27
  Protection payout cashflow for credit default instruments (CDS or CDX). # noqa: E501
28
28
  """
29
- ex_date: datetime = Field(..., alias="exDate", description="The ex-dividend date of the cashflow.")
30
- payment_date: datetime = Field(..., alias="paymentDate", description="The payment date of the cashflow.")
29
+ ex_date: Optional[datetime] = Field(None, alias="exDate", description="The ex-dividend date of the cashflow.")
30
+ payment_date: Optional[datetime] = Field(None, alias="paymentDate", description="The payment date of the cashflow.")
31
31
  currency: StrictStr = Field(...,alias="currency", description="The currency in which the cashflow is paid.")
32
32
  cash_flow_per_unit: Optional[Union[StrictFloat, StrictInt]] = Field(None, alias="cashFlowPerUnit", description="The cashflow amount received for each unit of the instrument held on the ex date.")
33
33
  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")
@@ -27,8 +27,8 @@ class ReverseStockSplitEvent(InstrumentEvent):
27
27
  """
28
28
  A reverse split in the company's shares. Shareholders have their number of shares reduced based on the terms of the stock split. # noqa: E501
29
29
  """
30
- payment_date: datetime = Field(..., alias="paymentDate", description="Date on which the stock split takes effect.")
31
- ex_date: datetime = Field(..., alias="exDate", description="The first date on which the shares will trade at the post-split price.")
30
+ payment_date: Optional[datetime] = Field(None, alias="paymentDate", description="Date on which the stock split takes effect.")
31
+ ex_date: Optional[datetime] = Field(None, alias="exDate", description="The first date on which the shares will trade at the post-split price.")
32
32
  units_ratio: UnitsRatio = Field(..., alias="unitsRatio")
33
33
  record_date: Optional[datetime] = Field(None, alias="recordDate", description="Date you have to be the holder of record in order to have their shares merged.")
34
34
  announcement_date: Optional[datetime] = Field(None, alias="announcementDate", description="Date the reverse stock split was announced.")
@@ -28,9 +28,9 @@ class ScripDividendEvent(InstrumentEvent):
28
28
  A scrip dividend issued to shareholders. # noqa: E501
29
29
  """
30
30
  announcement_date: Optional[datetime] = Field(None, alias="announcementDate", description="Date on which the dividend was announced / declared.")
31
- ex_date: datetime = Field(..., alias="exDate", description="The first business day on which the dividend is not owed to the buying party. Typically this is T-1 from the RecordDate.")
31
+ ex_date: Optional[datetime] = Field(None, alias="exDate", description="The first business day on which the dividend is not owed to the buying party. Typically this is T-1 from the RecordDate.")
32
32
  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.")
33
- payment_date: datetime = Field(..., alias="paymentDate", description="The date the company pays out dividends to shareholders.")
33
+ payment_date: Optional[datetime] = Field(None, alias="paymentDate", description="The date the company pays out dividends to shareholders.")
34
34
  fractional_units_cash_price: Optional[Union[StrictFloat, StrictInt]] = Field(None, alias="fractionalUnitsCashPrice", description="The cash price per unit paid in lieu when fractional units can not be distributed.")
35
35
  fractional_units_cash_currency: Optional[StrictStr] = Field(None,alias="fractionalUnitsCashCurrency", description="The currency of the cash paid in lieu of fractional units.")
36
36
  units_ratio: UnitsRatio = Field(..., alias="unitsRatio")
@@ -29,9 +29,9 @@ class SpinOffEvent(InstrumentEvent):
29
29
  Spin-off event (SOFF), representing the distribution of securities issued by another company. # noqa: E501
30
30
  """
31
31
  announcement_date: Optional[datetime] = Field(None, alias="announcementDate", description="Optional. The date the spin-off is announced.")
32
- ex_date: datetime = Field(..., alias="exDate", description="The first date on which the holder of record has entitled ownership of the new shares.")
32
+ ex_date: Optional[datetime] = Field(None, alias="exDate", description="The first date on which the holder of record has entitled ownership of the new shares.")
33
33
  record_date: Optional[datetime] = Field(None, alias="recordDate", description="Optional. Date you have to be the holder of record in order to receive the additional shares.")
34
- payment_date: datetime = Field(..., alias="paymentDate", description="Date on which the distribution of shares takes place.")
34
+ payment_date: Optional[datetime] = Field(None, alias="paymentDate", description="Date on which the distribution of shares takes place.")
35
35
  new_instrument: NewInstrument = Field(..., alias="newInstrument")
36
36
  units_ratio: UnitsRatio = Field(..., alias="unitsRatio")
37
37
  cost_factor: Optional[Union[StrictFloat, StrictInt]] = Field(None, alias="costFactor", description="Optional. The fraction of cost that is transferred from the existing shares to the new shares.")
@@ -28,8 +28,8 @@ class StockDividendEvent(InstrumentEvent):
28
28
  A payment to shareholders that consists of additional shares rather than cash. # noqa: E501
29
29
  """
30
30
  announcement_date: Optional[datetime] = Field(None, alias="announcementDate", description="Date on which the dividend was announced / declared.")
31
- ex_date: datetime = Field(..., alias="exDate", description="The first business day on which the dividend is not owed to the buying party. Typically this is T-1 from the RecordDate.")
32
- payment_date: datetime = Field(..., alias="paymentDate", description="The date the company pays out dividends to shareholders.")
31
+ ex_date: Optional[datetime] = Field(None, alias="exDate", description="The first business day on which the dividend is not owed to the buying party. Typically this is T-1 from the RecordDate.")
32
+ payment_date: Optional[datetime] = Field(None, alias="paymentDate", description="The date the company pays out dividends to shareholders.")
33
33
  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.")
34
34
  fractional_units_cash_price: Optional[Union[StrictFloat, StrictInt]] = Field(None, alias="fractionalUnitsCashPrice", description="The cash price paid in lieu of fractionalUnits.")
35
35
  fractional_units_cash_currency: Optional[StrictStr] = Field(None,alias="fractionalUnitsCashCurrency", description="The currency of the cash paid in lieu of fractionalUnits.")
@@ -27,8 +27,8 @@ class StockSplitEvent(InstrumentEvent):
27
27
  """
28
28
  A split in the company's shares. Shareholders are given additional company shares based on the terms of the stock split. # noqa: E501
29
29
  """
30
- payment_date: datetime = Field(..., alias="paymentDate", description="Date on which the stock split takes effect.")
31
- ex_date: datetime = Field(..., alias="exDate", description="The first date on which the shares will trade at the post-split price.")
30
+ payment_date: Optional[datetime] = Field(None, alias="paymentDate", description="Date on which the stock split takes effect.")
31
+ ex_date: Optional[datetime] = Field(None, alias="exDate", description="The first date on which the shares will trade at the post-split price.")
32
32
  units_ratio: UnitsRatio = Field(..., alias="unitsRatio")
33
33
  record_date: Optional[datetime] = Field(None, alias="recordDate", description="Date you have to be the holder of record in order to receive the additional shares.")
34
34
  announcement_date: Optional[datetime] = Field(None, alias="announcementDate", description="Date the stock split was announced.")
@@ -26,8 +26,8 @@ class SwapCashFlowEvent(InstrumentEvent):
26
26
  """
27
27
  Definition of a swap cash flow event. This event describes the cashflow generated from either an interest rate swap or inflation swap instrument. # noqa: E501
28
28
  """
29
- ex_date: datetime = Field(..., alias="exDate", description="The ex-dividend date of the cashflow.")
30
- payment_date: datetime = Field(..., alias="paymentDate", description="The payment date of the cashflow.")
29
+ ex_date: Optional[datetime] = Field(None, alias="exDate", description="The ex-dividend date of the cashflow.")
30
+ payment_date: Optional[datetime] = Field(None, alias="paymentDate", description="The payment date of the cashflow.")
31
31
  currency: StrictStr = Field(...,alias="currency", description="The currency in which the cashflow is paid.")
32
32
  cash_flow_per_unit: Optional[Union[StrictFloat, StrictInt]] = Field(None, alias="cashFlowPerUnit", description="The cashflow amount received for each unit of the instrument held on the ex date.")
33
33
  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")
@@ -26,8 +26,8 @@ class SwapPrincipalEvent(InstrumentEvent):
26
26
  """
27
27
  Definition of a Swap Principal Event. This is an event that describes the occurence of a cashflow due to the principal payment. # noqa: E501
28
28
  """
29
- ex_date: datetime = Field(..., alias="exDate", description="The entitlement date of the principal payment.")
30
- payment_date: datetime = Field(..., alias="paymentDate", description="The payment date of the principal.")
29
+ ex_date: Optional[datetime] = Field(None, alias="exDate", description="The entitlement date of the principal payment.")
30
+ payment_date: Optional[datetime] = Field(None, alias="paymentDate", description="The payment date of the principal.")
31
31
  currency: StrictStr = Field(...,alias="currency", description="The currency in which the principal is paid.")
32
32
  principal_per_unit: Optional[Union[StrictFloat, StrictInt]] = Field(None, alias="principalPerUnit", description="The principal amount received for each unit of the instrument held on the ex date.")
33
33
  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")
@@ -31,9 +31,9 @@ class TenderEvent(InstrumentEvent):
31
31
  Tender Event (TEND). # noqa: E501
32
32
  """
33
33
  announcement_date: Optional[datetime] = Field(None, alias="announcementDate", description="The date the tender is announced.")
34
- ex_date: datetime = Field(..., alias="exDate", description="The ex date (entitlement date) of the event.")
34
+ ex_date: Optional[datetime] = Field(None, alias="exDate", description="The ex date (entitlement date) of the event.")
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
- payment_date: datetime = Field(..., alias="paymentDate", description="The payment date of the event.")
36
+ payment_date: Optional[datetime] = Field(None, alias="paymentDate", description="The payment date of the event.")
37
37
  new_instrument: NewInstrument = Field(..., alias="newInstrument")
38
38
  fractional_units_cash_price: Optional[Union[StrictFloat, StrictInt]] = Field(None, alias="fractionalUnitsCashPrice", description="The cash price paid in lieu of fractionalUnits.")
39
39
  fractional_units_cash_currency: Optional[StrictStr] = Field(None,alias="fractionalUnitsCashCurrency", description="The currency of the cash paid in lieu of fractionalUnits.")
@@ -28,7 +28,7 @@ class TermDepositInterestEvent(InstrumentEvent):
28
28
  """
29
29
  currency: StrictStr = Field(...,alias="currency", description="Currency of the interest payment.")
30
30
  interest_per_unit: Optional[Union[StrictFloat, StrictInt]] = Field(None, alias="interestPerUnit", description="The interest payment made per unit of the held .")
31
- payment_date: datetime = Field(..., alias="paymentDate", description="Payment date of the interest payment.")
31
+ payment_date: Optional[datetime] = Field(None, alias="paymentDate", description="Payment date of the interest payment.")
32
32
  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")
33
33
  additional_properties: Dict[str, Any] = {}
34
34
  __properties = ["instrumentEventType", "currency", "interestPerUnit", "paymentDate"]
@@ -27,7 +27,7 @@ class TermDepositPrincipalEvent(InstrumentEvent):
27
27
  Definition of a Term Deposit Interest Event. This is an event that describes the occurence of principal on a term deposit (). # noqa: E501
28
28
  """
29
29
  currency: StrictStr = Field(...,alias="currency", description="Currency of the principal payment.")
30
- payment_date: datetime = Field(..., alias="paymentDate", description="Payment date of the principal payment.")
30
+ payment_date: Optional[datetime] = Field(None, alias="paymentDate", description="Payment date of the principal payment.")
31
31
  principal_per_unit: Optional[Union[StrictFloat, StrictInt]] = Field(None, alias="principalPerUnit", description="The principal payment made per unit of the held .")
32
32
  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")
33
33
  additional_properties: Dict[str, Any] = {}
@@ -18,7 +18,7 @@ import re # noqa: F401
18
18
  import json
19
19
 
20
20
  from datetime import datetime
21
- from typing import Any, Dict, Union
21
+ from typing import Any, Dict, Optional, Union
22
22
  from pydantic.v1 import StrictStr, Field, Field, StrictFloat, StrictInt, StrictStr, validator
23
23
  from lusid.models.instrument_event import InstrumentEvent
24
24
 
@@ -26,7 +26,7 @@ class UpdateDepositAmountEvent(InstrumentEvent):
26
26
  """
27
27
  Event to update the deposit be a given amount. # noqa: E501
28
28
  """
29
- var_date: datetime = Field(..., alias="date", description="The date of the adjustment to the deposit.")
29
+ var_date: Optional[datetime] = Field(None, alias="date", description="The date of the adjustment to the deposit.")
30
30
  amount: Union[StrictFloat, StrictInt] = Field(..., description="The signed amount of the adjustment to make to the deposit. Positive implies an increase, and negative implies a decrease.")
31
31
  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")
32
32
  additional_properties: Dict[str, Any] = {}
@@ -22,6 +22,7 @@ from typing import Any, Dict, List, Optional
22
22
  from pydantic.v1 import StrictStr, Field, BaseModel, Field, StrictInt, StrictStr, conlist, constr, validator
23
23
  from lusid.models.instrument_event import InstrumentEvent
24
24
  from lusid.models.perpetual_property import PerpetualProperty
25
+ from lusid.models.year_month_day import YearMonthDay
25
26
 
26
27
  class UpsertInstrumentEventRequest(BaseModel):
27
28
  """
@@ -34,7 +35,8 @@ class UpsertInstrumentEventRequest(BaseModel):
34
35
  properties: Optional[conlist(PerpetualProperty)] = Field(None, description="The properties attached to this instrument event.")
35
36
  sequence_number: Optional[StrictInt] = Field(None, alias="sequenceNumber", description="The order of the instrument event relative others on the same date (0 being processed first). Must be non negative.")
36
37
  participation_type: Optional[StrictStr] = Field(None,alias="participationType", description="Is participation in this event Mandatory, MandatoryWithChoices, or Voluntary.")
37
- __properties = ["instrumentEventId", "instrumentIdentifiers", "description", "instrumentEvent", "properties", "sequenceNumber", "participationType"]
38
+ event_date_stamps: Optional[Dict[str, YearMonthDay]] = Field(None, alias="eventDateStamps", description="The date stamps corresponding to the relevant date-time fields for the instrument event. The key for each provided date stamp must match the field name of a valid datetime field from the InstrumentEvent DTO.")
39
+ __properties = ["instrumentEventId", "instrumentIdentifiers", "description", "instrumentEvent", "properties", "sequenceNumber", "participationType", "eventDateStamps"]
38
40
 
39
41
  class Config:
40
42
  """Pydantic configuration"""
@@ -78,6 +80,13 @@ class UpsertInstrumentEventRequest(BaseModel):
78
80
  if _item:
79
81
  _items.append(_item.to_dict())
80
82
  _dict['properties'] = _items
83
+ # override the default output from pydantic by calling `to_dict()` of each value in event_date_stamps (dict)
84
+ _field_dict = {}
85
+ if self.event_date_stamps:
86
+ for _key in self.event_date_stamps:
87
+ if self.event_date_stamps[_key]:
88
+ _field_dict[_key] = self.event_date_stamps[_key].to_dict()
89
+ _dict['eventDateStamps'] = _field_dict
81
90
  # set to None if description (nullable) is None
82
91
  # and __fields_set__ contains the field
83
92
  if self.description is None and "description" in self.__fields_set__:
@@ -93,6 +102,11 @@ class UpsertInstrumentEventRequest(BaseModel):
93
102
  if self.participation_type is None and "participation_type" in self.__fields_set__:
94
103
  _dict['participationType'] = None
95
104
 
105
+ # set to None if event_date_stamps (nullable) is None
106
+ # and __fields_set__ contains the field
107
+ if self.event_date_stamps is None and "event_date_stamps" in self.__fields_set__:
108
+ _dict['eventDateStamps'] = None
109
+
96
110
  return _dict
97
111
 
98
112
  @classmethod
@@ -111,6 +125,12 @@ class UpsertInstrumentEventRequest(BaseModel):
111
125
  "instrument_event": InstrumentEvent.from_dict(obj.get("instrumentEvent")) if obj.get("instrumentEvent") is not None else None,
112
126
  "properties": [PerpetualProperty.from_dict(_item) for _item in obj.get("properties")] if obj.get("properties") is not None else None,
113
127
  "sequence_number": obj.get("sequenceNumber"),
114
- "participation_type": obj.get("participationType") if obj.get("participationType") is not None else 'Mandatory'
128
+ "participation_type": obj.get("participationType") if obj.get("participationType") is not None else 'Mandatory',
129
+ "event_date_stamps": dict(
130
+ (_k, YearMonthDay.from_dict(_v))
131
+ for _k, _v in obj.get("eventDateStamps").items()
132
+ )
133
+ if obj.get("eventDateStamps") is not None
134
+ else None
115
135
  })
116
136
  return _obj
@@ -0,0 +1,81 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ LUSID API
5
+
6
+ FINBOURNE Technology # noqa: E501
7
+
8
+ Contact: info@finbourne.com
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """
13
+
14
+
15
+ from __future__ import annotations
16
+ import pprint
17
+ import re # noqa: F401
18
+ import json
19
+
20
+
21
+ from typing import Any, Dict
22
+ from pydantic.v1 import StrictStr, Field, BaseModel, Field, StrictInt
23
+
24
+ class YearMonthDay(BaseModel):
25
+ """
26
+ A date in component form. # noqa: E501
27
+ """
28
+ year: StrictInt = Field(..., description="The year of the date.")
29
+ month: StrictInt = Field(..., description="The month of the date.")
30
+ day: StrictInt = Field(..., description="The day in month of the date.")
31
+ __properties = ["year", "month", "day"]
32
+
33
+ class Config:
34
+ """Pydantic configuration"""
35
+ allow_population_by_field_name = True
36
+ validate_assignment = True
37
+
38
+ def __str__(self):
39
+ """For `print` and `pprint`"""
40
+ return pprint.pformat(self.dict(by_alias=False))
41
+
42
+ def __repr__(self):
43
+ """For `print` and `pprint`"""
44
+ return self.to_str()
45
+
46
+ def to_str(self) -> str:
47
+ """Returns the string representation of the model using alias"""
48
+ return pprint.pformat(self.dict(by_alias=True))
49
+
50
+ def to_json(self) -> str:
51
+ """Returns the JSON representation of the model using alias"""
52
+ return json.dumps(self.to_dict())
53
+
54
+ @classmethod
55
+ def from_json(cls, json_str: str) -> YearMonthDay:
56
+ """Create an instance of YearMonthDay from a JSON string"""
57
+ return cls.from_dict(json.loads(json_str))
58
+
59
+ def to_dict(self):
60
+ """Returns the dictionary representation of the model using alias"""
61
+ _dict = self.dict(by_alias=True,
62
+ exclude={
63
+ },
64
+ exclude_none=True)
65
+ return _dict
66
+
67
+ @classmethod
68
+ def from_dict(cls, obj: dict) -> YearMonthDay:
69
+ """Create an instance of YearMonthDay from a dict"""
70
+ if obj is None:
71
+ return None
72
+
73
+ if not isinstance(obj, dict):
74
+ return YearMonthDay.parse_obj(obj)
75
+
76
+ _obj = YearMonthDay.parse_obj({
77
+ "year": obj.get("year"),
78
+ "month": obj.get("month"),
79
+ "day": obj.get("day")
80
+ })
81
+ return _obj
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lusid-sdk
3
- Version: 2.1.760
3
+ Version: 2.1.762
4
4
  Summary: LUSID API
5
5
  Home-page: https://github.com/finbourne/lusid-sdk-python
6
6
  License: MIT
@@ -1855,6 +1855,7 @@ Class | Method | HTTP request | Description
1855
1855
  - [WorkspaceItemUpdateRequest](docs/WorkspaceItemUpdateRequest.md)
1856
1856
  - [WorkspaceUpdateRequest](docs/WorkspaceUpdateRequest.md)
1857
1857
  - [WorkspaceVisibility](docs/WorkspaceVisibility.md)
1858
+ - [YearMonthDay](docs/YearMonthDay.md)
1858
1859
  - [YieldCurveData](docs/YieldCurveData.md)
1859
1860
 
1860
1861