lusid-sdk 2.1.462__py3-none-any.whl → 2.1.542__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 (107) hide show
  1. lusid/__init__.py +62 -0
  2. lusid/api/group_reconciliations_api.py +806 -79
  3. lusid/api/instruments_api.py +187 -0
  4. lusid/api/transaction_portfolios_api.py +202 -2
  5. lusid/configuration.py +1 -1
  6. lusid/models/__init__.py +62 -0
  7. lusid/models/accumulation_event.py +3 -3
  8. lusid/models/amortisation_event.py +3 -3
  9. lusid/models/applicable_instrument_event.py +7 -2
  10. lusid/models/asset_leg.py +1 -1
  11. lusid/models/batch_update_user_review_for_comparison_result_request.py +81 -0
  12. lusid/models/batch_update_user_review_for_comparison_result_response.py +146 -0
  13. lusid/models/bond_coupon_event.py +10 -5
  14. lusid/models/bond_default_event.py +3 -3
  15. lusid/models/bond_principal_event.py +10 -5
  16. lusid/models/bonus_issue_event.py +3 -3
  17. lusid/models/call_on_intermediate_securities_event.py +139 -0
  18. lusid/models/capital_distribution_event.py +3 -3
  19. lusid/models/cash_dividend_event.py +3 -3
  20. lusid/models/cash_flow_event.py +3 -3
  21. lusid/models/cds_credit_event.py +3 -3
  22. lusid/models/cdx_credit_event.py +3 -3
  23. lusid/models/close_event.py +3 -3
  24. lusid/models/comparison_attribute_value_pair.py +71 -0
  25. lusid/models/component_transaction.py +10 -3
  26. lusid/models/create_staging_rule_set_request.py +1 -6
  27. lusid/models/credit_premium_cash_flow_event.py +3 -3
  28. lusid/models/custodian_account_request.py +1 -1
  29. lusid/models/delete_instrument_properties_response.py +7 -1
  30. lusid/models/delete_instrument_response.py +7 -1
  31. lusid/models/delete_instruments_response.py +22 -1
  32. lusid/models/deleted_entity_response.py +7 -1
  33. lusid/models/dividend_option_event.py +3 -3
  34. lusid/models/dividend_reinvestment_event.py +9 -4
  35. lusid/models/equity_option.py +19 -4
  36. lusid/models/exchange_traded_option_contract_details.py +1 -1
  37. lusid/models/exercise_event.py +3 -3
  38. lusid/models/expiry_event.py +3 -3
  39. lusid/models/fee.py +10 -3
  40. lusid/models/fee_request.py +13 -6
  41. lusid/models/fund_valuation_point_data.py +1 -7
  42. lusid/models/future_expiry_event.py +3 -3
  43. lusid/models/fx_forward_settlement_event.py +3 -3
  44. lusid/models/group_reconciliation_aggregate_attribute_values.py +86 -0
  45. lusid/models/group_reconciliation_comparison_result.py +148 -0
  46. lusid/models/group_reconciliation_core_attribute_values.py +86 -0
  47. lusid/models/group_reconciliation_date_pair.py +81 -0
  48. lusid/models/group_reconciliation_dates.py +78 -0
  49. lusid/models/group_reconciliation_instance_id.py +71 -0
  50. lusid/models/group_reconciliation_result_statuses.py +89 -0
  51. lusid/models/group_reconciliation_result_types.py +96 -0
  52. lusid/models/group_reconciliation_review_statuses.py +96 -0
  53. lusid/models/group_reconciliation_run_details.py +76 -0
  54. lusid/models/group_reconciliation_run_request.py +75 -0
  55. lusid/models/group_reconciliation_run_response.py +77 -0
  56. lusid/models/group_reconciliation_summary.py +121 -0
  57. lusid/models/group_reconciliation_user_review.py +112 -0
  58. lusid/models/group_reconciliation_user_review_add.py +88 -0
  59. lusid/models/group_reconciliation_user_review_break_code.py +80 -0
  60. lusid/models/group_reconciliation_user_review_comment.py +80 -0
  61. lusid/models/group_reconciliation_user_review_match_key.py +80 -0
  62. lusid/models/group_reconciliation_user_review_remove.py +88 -0
  63. lusid/models/informational_error_event.py +3 -3
  64. lusid/models/informational_event.py +3 -3
  65. lusid/models/instrument_event.py +10 -5
  66. lusid/models/instrument_event_type.py +5 -0
  67. lusid/models/intermediate_securities_distribution_event.py +140 -0
  68. lusid/models/mastered_instrument.py +10 -10
  69. lusid/models/maturity_event.py +3 -3
  70. lusid/models/mbs_coupon_event.py +10 -5
  71. lusid/models/mbs_interest_deferral_event.py +10 -5
  72. lusid/models/mbs_interest_shortfall_event.py +10 -5
  73. lusid/models/mbs_principal_event.py +10 -5
  74. lusid/models/mbs_principal_write_off_event.py +10 -5
  75. lusid/models/merger_event.py +3 -3
  76. lusid/models/new_instrument.py +1 -1
  77. lusid/models/open_event.py +3 -3
  78. lusid/models/option_exercise_cash_event.py +144 -0
  79. lusid/models/option_exercise_election.py +73 -0
  80. lusid/models/option_exercise_physical_event.py +149 -0
  81. lusid/models/paged_resource_list_of_group_reconciliation_comparison_result.py +113 -0
  82. lusid/models/previous_fund_valuation_point_data.py +3 -9
  83. lusid/models/pricing_options.py +8 -2
  84. lusid/models/protection_payout_cash_flow_event.py +102 -0
  85. lusid/models/raw_vendor_event.py +3 -3
  86. lusid/models/reset_event.py +3 -3
  87. lusid/models/resource_list_of_output_transaction.py +113 -0
  88. lusid/models/return_zero_pv_options.py +69 -0
  89. lusid/models/reverse_stock_split_event.py +3 -3
  90. lusid/models/scrip_dividend_event.py +3 -3
  91. lusid/models/spin_off_event.py +3 -3
  92. lusid/models/stock_dividend_event.py +3 -3
  93. lusid/models/stock_split_event.py +3 -3
  94. lusid/models/swap_cash_flow_event.py +3 -3
  95. lusid/models/swap_principal_event.py +3 -3
  96. lusid/models/target_tax_lot.py +23 -2
  97. lusid/models/target_tax_lot_request.py +23 -2
  98. lusid/models/tender_event.py +3 -3
  99. lusid/models/total_return_swap.py +1 -1
  100. lusid/models/transaction_price.py +3 -3
  101. lusid/models/transaction_price_type.py +2 -0
  102. lusid/models/transition_event.py +3 -3
  103. lusid/models/trigger_event.py +3 -3
  104. lusid/models/update_staging_rule_set_request.py +1 -6
  105. {lusid_sdk-2.1.462.dist-info → lusid_sdk-2.1.542.dist-info}/METADATA +40 -3
  106. {lusid_sdk-2.1.462.dist-info → lusid_sdk-2.1.542.dist-info}/RECORD +107 -76
  107. {lusid_sdk-2.1.462.dist-info → lusid_sdk-2.1.542.dist-info}/WHEEL +0 -0
@@ -24,7 +24,6 @@ from lusid.models.fee_accrual import FeeAccrual
24
24
  from lusid.models.fund_amount import FundAmount
25
25
  from lusid.models.fund_pnl_breakdown import FundPnlBreakdown
26
26
  from lusid.models.previous_fund_valuation_point_data import PreviousFundValuationPointData
27
- from lusid.models.unitisation_data import UnitisationData
28
27
 
29
28
  class FundValuationPointData(BaseModel):
30
29
  """
@@ -36,10 +35,9 @@ class FundValuationPointData(BaseModel):
36
35
  gav: Union[StrictFloat, StrictInt] = Field(..., description="The Gross Asset Value of the Fund or Share Class at the Valuation Point. This is effectively a summation of all Trial balance entries linked to accounts of types 'Asset' and 'Liabilities'.")
37
36
  fees: Dict[str, FeeAccrual] = Field(..., description="Bucket of detail for any 'Fees' that have been charged in the selected period.")
38
37
  nav: Union[StrictFloat, StrictInt] = Field(..., description="The Net Asset Value of the Fund or Share Class at the Valuation Point. This represents the GAV with any fees applied in the period.")
39
- unitisation: Optional[UnitisationData] = None
40
38
  miscellaneous: Optional[Dict[str, FundAmount]] = Field(None, description="Not used directly by the LUSID engines but serves as a holding area for any custom derived data points that may be useful in, for example, fee calculations).")
41
39
  previous_valuation_point_data: Optional[PreviousFundValuationPointData] = Field(None, alias="previousValuationPointData")
42
- __properties = ["backOut", "dealing", "pnL", "gav", "fees", "nav", "unitisation", "miscellaneous", "previousValuationPointData"]
40
+ __properties = ["backOut", "dealing", "pnL", "gav", "fees", "nav", "miscellaneous", "previousValuationPointData"]
43
41
 
44
42
  class Config:
45
43
  """Pydantic configuration"""
@@ -89,9 +87,6 @@ class FundValuationPointData(BaseModel):
89
87
  if self.fees[_key]:
90
88
  _field_dict[_key] = self.fees[_key].to_dict()
91
89
  _dict['fees'] = _field_dict
92
- # override the default output from pydantic by calling `to_dict()` of unitisation
93
- if self.unitisation:
94
- _dict['unitisation'] = self.unitisation.to_dict()
95
90
  # override the default output from pydantic by calling `to_dict()` of each value in miscellaneous (dict)
96
91
  _field_dict = {}
97
92
  if self.miscellaneous:
@@ -140,7 +135,6 @@ class FundValuationPointData(BaseModel):
140
135
  if obj.get("fees") is not None
141
136
  else None,
142
137
  "nav": obj.get("nav"),
143
- "unitisation": UnitisationData.from_dict(obj.get("unitisation")) if obj.get("unitisation") is not None else None,
144
138
  "miscellaneous": dict(
145
139
  (_k, FundAmount.from_dict(_v))
146
140
  for _k, _v in obj.get("miscellaneous").items()
@@ -29,15 +29,15 @@ class FutureExpiryEvent(InstrumentEvent):
29
29
  expiry_date: datetime = Field(..., alias="expiryDate", description="Expiry date of the Future instrument.")
30
30
  settlement_currency: StrictStr = Field(..., alias="settlementCurrency", description="Settlement currency of the Future instrument.")
31
31
  notional_amount_per_unit: Optional[Union[StrictFloat, StrictInt]] = Field(None, alias="notionalAmountPerUnit", description="The notional amount of each unit in the Future instrument.")
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")
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")
33
33
  additional_properties: Dict[str, Any] = {}
34
34
  __properties = ["instrumentEventType", "expiryDate", "settlementCurrency", "notionalAmountPerUnit"]
35
35
 
36
36
  @validator('instrument_event_type')
37
37
  def instrument_event_type_validate_enum(cls, value):
38
38
  """Validates the enum"""
39
- if value not in ('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'):
40
- raise ValueError("must be one of enum values ('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')")
39
+ if value not in ('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'):
40
+ raise ValueError("must be one of enum values ('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')")
41
41
  return value
42
42
 
43
43
  class Config:
@@ -38,15 +38,15 @@ class FxForwardSettlementEvent(InstrumentEvent):
38
38
  domestic_to_foreign_rate: Optional[Union[StrictFloat, StrictInt]] = Field(None, alias="domesticToForeignRate", description="Domestic currency to foreign currency FX rate. Not required, only used to override quotes.")
39
39
  domestic_to_settlement_rate: Optional[Union[StrictFloat, StrictInt]] = Field(None, alias="domesticToSettlementRate", description="Domestic currency to settlement currency FX rate Not required, only used to override quotes.")
40
40
  foreign_to_settlement_rate: Optional[Union[StrictFloat, StrictInt]] = Field(None, alias="foreignToSettlementRate", description="Foreign currency to settlement currency FX rate Not required, only used to override quotes.")
41
- 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")
41
+ 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")
42
42
  additional_properties: Dict[str, Any] = {}
43
43
  __properties = ["instrumentEventType", "maturityDate", "domAmountPerUnit", "domCcy", "fgnAmountPerUnit", "fgnCcy", "isNdf", "fixingDate", "settlementCcy", "cashFlowPerUnit", "domesticToForeignRate", "domesticToSettlementRate", "foreignToSettlementRate"]
44
44
 
45
45
  @validator('instrument_event_type')
46
46
  def instrument_event_type_validate_enum(cls, value):
47
47
  """Validates the enum"""
48
- if value not in ('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'):
49
- raise ValueError("must be one of enum values ('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')")
48
+ if value not in ('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'):
49
+ raise ValueError("must be one of enum values ('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')")
50
50
  return value
51
51
 
52
52
  class Config:
@@ -0,0 +1,86 @@
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, List
22
+ from pydantic.v1 import BaseModel, Field, conlist
23
+ from lusid.models.comparison_attribute_value_pair import ComparisonAttributeValuePair
24
+
25
+ class GroupReconciliationAggregateAttributeValues(BaseModel):
26
+ """
27
+ GroupReconciliationAggregateAttributeValues
28
+ """
29
+ left_aggregate_attributes: conlist(ComparisonAttributeValuePair) = Field(..., alias="leftAggregateAttributes", description="Aggregate attribute names and values for the left hand entity being reconciled.")
30
+ right_aggregate_attributes: conlist(ComparisonAttributeValuePair) = Field(..., alias="rightAggregateAttributes", description="Aggregate attribute names and values for the right hand entity being reconciled.")
31
+ __properties = ["leftAggregateAttributes", "rightAggregateAttributes"]
32
+
33
+ class Config:
34
+ """Pydantic configuration"""
35
+ allow_population_by_field_name = True
36
+ validate_assignment = True
37
+
38
+ def to_str(self) -> str:
39
+ """Returns the string representation of the model using alias"""
40
+ return pprint.pformat(self.dict(by_alias=True))
41
+
42
+ def to_json(self) -> str:
43
+ """Returns the JSON representation of the model using alias"""
44
+ return json.dumps(self.to_dict())
45
+
46
+ @classmethod
47
+ def from_json(cls, json_str: str) -> GroupReconciliationAggregateAttributeValues:
48
+ """Create an instance of GroupReconciliationAggregateAttributeValues from a JSON string"""
49
+ return cls.from_dict(json.loads(json_str))
50
+
51
+ def to_dict(self):
52
+ """Returns the dictionary representation of the model using alias"""
53
+ _dict = self.dict(by_alias=True,
54
+ exclude={
55
+ },
56
+ exclude_none=True)
57
+ # override the default output from pydantic by calling `to_dict()` of each item in left_aggregate_attributes (list)
58
+ _items = []
59
+ if self.left_aggregate_attributes:
60
+ for _item in self.left_aggregate_attributes:
61
+ if _item:
62
+ _items.append(_item.to_dict())
63
+ _dict['leftAggregateAttributes'] = _items
64
+ # override the default output from pydantic by calling `to_dict()` of each item in right_aggregate_attributes (list)
65
+ _items = []
66
+ if self.right_aggregate_attributes:
67
+ for _item in self.right_aggregate_attributes:
68
+ if _item:
69
+ _items.append(_item.to_dict())
70
+ _dict['rightAggregateAttributes'] = _items
71
+ return _dict
72
+
73
+ @classmethod
74
+ def from_dict(cls, obj: dict) -> GroupReconciliationAggregateAttributeValues:
75
+ """Create an instance of GroupReconciliationAggregateAttributeValues from a dict"""
76
+ if obj is None:
77
+ return None
78
+
79
+ if not isinstance(obj, dict):
80
+ return GroupReconciliationAggregateAttributeValues.parse_obj(obj)
81
+
82
+ _obj = GroupReconciliationAggregateAttributeValues.parse_obj({
83
+ "left_aggregate_attributes": [ComparisonAttributeValuePair.from_dict(_item) for _item in obj.get("leftAggregateAttributes")] if obj.get("leftAggregateAttributes") is not None else None,
84
+ "right_aggregate_attributes": [ComparisonAttributeValuePair.from_dict(_item) for _item in obj.get("rightAggregateAttributes")] if obj.get("rightAggregateAttributes") is not None else None
85
+ })
86
+ return _obj
@@ -0,0 +1,148 @@
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
+ from datetime import datetime
21
+ from typing import Any, Dict, List, Optional
22
+ from pydantic.v1 import BaseModel, Field, StrictStr, conlist, constr
23
+ from lusid.models.group_reconciliation_aggregate_attribute_values import GroupReconciliationAggregateAttributeValues
24
+ from lusid.models.group_reconciliation_core_attribute_values import GroupReconciliationCoreAttributeValues
25
+ from lusid.models.group_reconciliation_dates import GroupReconciliationDates
26
+ from lusid.models.group_reconciliation_instance_id import GroupReconciliationInstanceId
27
+ from lusid.models.group_reconciliation_user_review import GroupReconciliationUserReview
28
+ from lusid.models.link import Link
29
+ from lusid.models.resource_id import ResourceId
30
+ from lusid.models.version import Version
31
+
32
+ class GroupReconciliationComparisonResult(BaseModel):
33
+ """
34
+ GroupReconciliationComparisonResult
35
+ """
36
+ id: ResourceId = Field(...)
37
+ reconciliation_type: constr(strict=True, min_length=1) = Field(..., alias="reconciliationType", description="The type of reconciliation to perform. \"Holding\" | \"Transaction\" | \"Valuation\"")
38
+ group_reconciliation_definition_id: ResourceId = Field(..., alias="groupReconciliationDefinitionId")
39
+ instance_id: GroupReconciliationInstanceId = Field(..., alias="instanceId")
40
+ comparison_result_id: constr(strict=True, min_length=1) = Field(..., alias="comparisonResultId", description="Comparison result identifier, encoded value for core attribute results, aggregate attribute results, reconciliation type and run instanceId.")
41
+ reconciliation_run_as_at: datetime = Field(..., alias="reconciliationRunAsAt", description="The timestamp when the run occurred.")
42
+ result_type: constr(strict=True, min_length=1) = Field(..., alias="resultType", description="Reconciliation run general result. \"Break\" | \"Match\" | \"PartialMatch\" | \"NotFound")
43
+ result_status: constr(strict=True, min_length=1) = Field(..., alias="resultStatus", description="Indicates how a particular result evolves from one run to the next. \"New\" | \"Confirmed\" | \"Changed\"")
44
+ review_status: constr(strict=True, min_length=1) = Field(..., alias="reviewStatus", description="Status of whether user has provided any input (comments, manual matches, break codes). \"Pending\" | \"Reviewed\" | \"Matched\" | \"Invalid\"")
45
+ dates_reconciled: GroupReconciliationDates = Field(..., alias="datesReconciled")
46
+ core_attributes: GroupReconciliationCoreAttributeValues = Field(..., alias="coreAttributes")
47
+ aggregate_attributes: GroupReconciliationAggregateAttributeValues = Field(..., alias="aggregateAttributes")
48
+ user_review: Optional[GroupReconciliationUserReview] = Field(None, alias="userReview")
49
+ href: Optional[StrictStr] = Field(None, description="The specific Uniform Resource Identifier (URI) for this resource at the requested effective and asAt datetime.")
50
+ version: Optional[Version] = None
51
+ links: Optional[conlist(Link)] = None
52
+ __properties = ["id", "reconciliationType", "groupReconciliationDefinitionId", "instanceId", "comparisonResultId", "reconciliationRunAsAt", "resultType", "resultStatus", "reviewStatus", "datesReconciled", "coreAttributes", "aggregateAttributes", "userReview", "href", "version", "links"]
53
+
54
+ class Config:
55
+ """Pydantic configuration"""
56
+ allow_population_by_field_name = True
57
+ validate_assignment = True
58
+
59
+ def to_str(self) -> str:
60
+ """Returns the string representation of the model using alias"""
61
+ return pprint.pformat(self.dict(by_alias=True))
62
+
63
+ def to_json(self) -> str:
64
+ """Returns the JSON representation of the model using alias"""
65
+ return json.dumps(self.to_dict())
66
+
67
+ @classmethod
68
+ def from_json(cls, json_str: str) -> GroupReconciliationComparisonResult:
69
+ """Create an instance of GroupReconciliationComparisonResult from a JSON string"""
70
+ return cls.from_dict(json.loads(json_str))
71
+
72
+ def to_dict(self):
73
+ """Returns the dictionary representation of the model using alias"""
74
+ _dict = self.dict(by_alias=True,
75
+ exclude={
76
+ },
77
+ exclude_none=True)
78
+ # override the default output from pydantic by calling `to_dict()` of id
79
+ if self.id:
80
+ _dict['id'] = self.id.to_dict()
81
+ # override the default output from pydantic by calling `to_dict()` of group_reconciliation_definition_id
82
+ if self.group_reconciliation_definition_id:
83
+ _dict['groupReconciliationDefinitionId'] = self.group_reconciliation_definition_id.to_dict()
84
+ # override the default output from pydantic by calling `to_dict()` of instance_id
85
+ if self.instance_id:
86
+ _dict['instanceId'] = self.instance_id.to_dict()
87
+ # override the default output from pydantic by calling `to_dict()` of dates_reconciled
88
+ if self.dates_reconciled:
89
+ _dict['datesReconciled'] = self.dates_reconciled.to_dict()
90
+ # override the default output from pydantic by calling `to_dict()` of core_attributes
91
+ if self.core_attributes:
92
+ _dict['coreAttributes'] = self.core_attributes.to_dict()
93
+ # override the default output from pydantic by calling `to_dict()` of aggregate_attributes
94
+ if self.aggregate_attributes:
95
+ _dict['aggregateAttributes'] = self.aggregate_attributes.to_dict()
96
+ # override the default output from pydantic by calling `to_dict()` of user_review
97
+ if self.user_review:
98
+ _dict['userReview'] = self.user_review.to_dict()
99
+ # override the default output from pydantic by calling `to_dict()` of version
100
+ if self.version:
101
+ _dict['version'] = self.version.to_dict()
102
+ # override the default output from pydantic by calling `to_dict()` of each item in links (list)
103
+ _items = []
104
+ if self.links:
105
+ for _item in self.links:
106
+ if _item:
107
+ _items.append(_item.to_dict())
108
+ _dict['links'] = _items
109
+ # set to None if href (nullable) is None
110
+ # and __fields_set__ contains the field
111
+ if self.href is None and "href" in self.__fields_set__:
112
+ _dict['href'] = None
113
+
114
+ # set to None if links (nullable) is None
115
+ # and __fields_set__ contains the field
116
+ if self.links is None and "links" in self.__fields_set__:
117
+ _dict['links'] = None
118
+
119
+ return _dict
120
+
121
+ @classmethod
122
+ def from_dict(cls, obj: dict) -> GroupReconciliationComparisonResult:
123
+ """Create an instance of GroupReconciliationComparisonResult from a dict"""
124
+ if obj is None:
125
+ return None
126
+
127
+ if not isinstance(obj, dict):
128
+ return GroupReconciliationComparisonResult.parse_obj(obj)
129
+
130
+ _obj = GroupReconciliationComparisonResult.parse_obj({
131
+ "id": ResourceId.from_dict(obj.get("id")) if obj.get("id") is not None else None,
132
+ "reconciliation_type": obj.get("reconciliationType"),
133
+ "group_reconciliation_definition_id": ResourceId.from_dict(obj.get("groupReconciliationDefinitionId")) if obj.get("groupReconciliationDefinitionId") is not None else None,
134
+ "instance_id": GroupReconciliationInstanceId.from_dict(obj.get("instanceId")) if obj.get("instanceId") is not None else None,
135
+ "comparison_result_id": obj.get("comparisonResultId"),
136
+ "reconciliation_run_as_at": obj.get("reconciliationRunAsAt"),
137
+ "result_type": obj.get("resultType"),
138
+ "result_status": obj.get("resultStatus"),
139
+ "review_status": obj.get("reviewStatus"),
140
+ "dates_reconciled": GroupReconciliationDates.from_dict(obj.get("datesReconciled")) if obj.get("datesReconciled") is not None else None,
141
+ "core_attributes": GroupReconciliationCoreAttributeValues.from_dict(obj.get("coreAttributes")) if obj.get("coreAttributes") is not None else None,
142
+ "aggregate_attributes": GroupReconciliationAggregateAttributeValues.from_dict(obj.get("aggregateAttributes")) if obj.get("aggregateAttributes") is not None else None,
143
+ "user_review": GroupReconciliationUserReview.from_dict(obj.get("userReview")) if obj.get("userReview") is not None else None,
144
+ "href": obj.get("href"),
145
+ "version": Version.from_dict(obj.get("version")) if obj.get("version") is not None else None,
146
+ "links": [Link.from_dict(_item) for _item in obj.get("links")] if obj.get("links") is not None else None
147
+ })
148
+ return _obj
@@ -0,0 +1,86 @@
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, List
22
+ from pydantic.v1 import BaseModel, Field, conlist
23
+ from lusid.models.comparison_attribute_value_pair import ComparisonAttributeValuePair
24
+
25
+ class GroupReconciliationCoreAttributeValues(BaseModel):
26
+ """
27
+ GroupReconciliationCoreAttributeValues
28
+ """
29
+ left_core_attributes: conlist(ComparisonAttributeValuePair) = Field(..., alias="leftCoreAttributes", description="Core attribute names and values for the left hand entity being reconciled.")
30
+ right_core_attributes: conlist(ComparisonAttributeValuePair) = Field(..., alias="rightCoreAttributes", description="Core attribute names and values for the right hand entity being reconciled.")
31
+ __properties = ["leftCoreAttributes", "rightCoreAttributes"]
32
+
33
+ class Config:
34
+ """Pydantic configuration"""
35
+ allow_population_by_field_name = True
36
+ validate_assignment = True
37
+
38
+ def to_str(self) -> str:
39
+ """Returns the string representation of the model using alias"""
40
+ return pprint.pformat(self.dict(by_alias=True))
41
+
42
+ def to_json(self) -> str:
43
+ """Returns the JSON representation of the model using alias"""
44
+ return json.dumps(self.to_dict())
45
+
46
+ @classmethod
47
+ def from_json(cls, json_str: str) -> GroupReconciliationCoreAttributeValues:
48
+ """Create an instance of GroupReconciliationCoreAttributeValues from a JSON string"""
49
+ return cls.from_dict(json.loads(json_str))
50
+
51
+ def to_dict(self):
52
+ """Returns the dictionary representation of the model using alias"""
53
+ _dict = self.dict(by_alias=True,
54
+ exclude={
55
+ },
56
+ exclude_none=True)
57
+ # override the default output from pydantic by calling `to_dict()` of each item in left_core_attributes (list)
58
+ _items = []
59
+ if self.left_core_attributes:
60
+ for _item in self.left_core_attributes:
61
+ if _item:
62
+ _items.append(_item.to_dict())
63
+ _dict['leftCoreAttributes'] = _items
64
+ # override the default output from pydantic by calling `to_dict()` of each item in right_core_attributes (list)
65
+ _items = []
66
+ if self.right_core_attributes:
67
+ for _item in self.right_core_attributes:
68
+ if _item:
69
+ _items.append(_item.to_dict())
70
+ _dict['rightCoreAttributes'] = _items
71
+ return _dict
72
+
73
+ @classmethod
74
+ def from_dict(cls, obj: dict) -> GroupReconciliationCoreAttributeValues:
75
+ """Create an instance of GroupReconciliationCoreAttributeValues from a dict"""
76
+ if obj is None:
77
+ return None
78
+
79
+ if not isinstance(obj, dict):
80
+ return GroupReconciliationCoreAttributeValues.parse_obj(obj)
81
+
82
+ _obj = GroupReconciliationCoreAttributeValues.parse_obj({
83
+ "left_core_attributes": [ComparisonAttributeValuePair.from_dict(_item) for _item in obj.get("leftCoreAttributes")] if obj.get("leftCoreAttributes") is not None else None,
84
+ "right_core_attributes": [ComparisonAttributeValuePair.from_dict(_item) for _item in obj.get("rightCoreAttributes")] if obj.get("rightCoreAttributes") is not None else None
85
+ })
86
+ 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
+ from datetime import datetime
21
+ from typing import Any, Dict, Optional
22
+ from pydantic.v1 import BaseModel, Field
23
+
24
+ class GroupReconciliationDatePair(BaseModel):
25
+ """
26
+ GroupReconciliationDatePair
27
+ """
28
+ effective_at: Optional[datetime] = Field(None, alias="effectiveAt", description="The effective at date for the reconciliation")
29
+ as_at: Optional[datetime] = Field(None, alias="asAt", description="The as at date for the reconciliation")
30
+ __properties = ["effectiveAt", "asAt"]
31
+
32
+ class Config:
33
+ """Pydantic configuration"""
34
+ allow_population_by_field_name = True
35
+ validate_assignment = True
36
+
37
+ def to_str(self) -> str:
38
+ """Returns the string representation of the model using alias"""
39
+ return pprint.pformat(self.dict(by_alias=True))
40
+
41
+ def to_json(self) -> str:
42
+ """Returns the JSON representation of the model using alias"""
43
+ return json.dumps(self.to_dict())
44
+
45
+ @classmethod
46
+ def from_json(cls, json_str: str) -> GroupReconciliationDatePair:
47
+ """Create an instance of GroupReconciliationDatePair from a JSON string"""
48
+ return cls.from_dict(json.loads(json_str))
49
+
50
+ def to_dict(self):
51
+ """Returns the dictionary representation of the model using alias"""
52
+ _dict = self.dict(by_alias=True,
53
+ exclude={
54
+ },
55
+ exclude_none=True)
56
+ # set to None if effective_at (nullable) is None
57
+ # and __fields_set__ contains the field
58
+ if self.effective_at is None and "effective_at" in self.__fields_set__:
59
+ _dict['effectiveAt'] = None
60
+
61
+ # set to None if as_at (nullable) is None
62
+ # and __fields_set__ contains the field
63
+ if self.as_at is None and "as_at" in self.__fields_set__:
64
+ _dict['asAt'] = None
65
+
66
+ return _dict
67
+
68
+ @classmethod
69
+ def from_dict(cls, obj: dict) -> GroupReconciliationDatePair:
70
+ """Create an instance of GroupReconciliationDatePair from a dict"""
71
+ if obj is None:
72
+ return None
73
+
74
+ if not isinstance(obj, dict):
75
+ return GroupReconciliationDatePair.parse_obj(obj)
76
+
77
+ _obj = GroupReconciliationDatePair.parse_obj({
78
+ "effective_at": obj.get("effectiveAt"),
79
+ "as_at": obj.get("asAt")
80
+ })
81
+ return _obj
@@ -0,0 +1,78 @@
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, Optional
22
+ from pydantic.v1 import BaseModel
23
+ from lusid.models.group_reconciliation_date_pair import GroupReconciliationDatePair
24
+
25
+ class GroupReconciliationDates(BaseModel):
26
+ """
27
+ GroupReconciliationDates
28
+ """
29
+ left: Optional[GroupReconciliationDatePair] = None
30
+ right: Optional[GroupReconciliationDatePair] = None
31
+ __properties = ["left", "right"]
32
+
33
+ class Config:
34
+ """Pydantic configuration"""
35
+ allow_population_by_field_name = True
36
+ validate_assignment = True
37
+
38
+ def to_str(self) -> str:
39
+ """Returns the string representation of the model using alias"""
40
+ return pprint.pformat(self.dict(by_alias=True))
41
+
42
+ def to_json(self) -> str:
43
+ """Returns the JSON representation of the model using alias"""
44
+ return json.dumps(self.to_dict())
45
+
46
+ @classmethod
47
+ def from_json(cls, json_str: str) -> GroupReconciliationDates:
48
+ """Create an instance of GroupReconciliationDates from a JSON string"""
49
+ return cls.from_dict(json.loads(json_str))
50
+
51
+ def to_dict(self):
52
+ """Returns the dictionary representation of the model using alias"""
53
+ _dict = self.dict(by_alias=True,
54
+ exclude={
55
+ },
56
+ exclude_none=True)
57
+ # override the default output from pydantic by calling `to_dict()` of left
58
+ if self.left:
59
+ _dict['left'] = self.left.to_dict()
60
+ # override the default output from pydantic by calling `to_dict()` of right
61
+ if self.right:
62
+ _dict['right'] = self.right.to_dict()
63
+ return _dict
64
+
65
+ @classmethod
66
+ def from_dict(cls, obj: dict) -> GroupReconciliationDates:
67
+ """Create an instance of GroupReconciliationDates from a dict"""
68
+ if obj is None:
69
+ return None
70
+
71
+ if not isinstance(obj, dict):
72
+ return GroupReconciliationDates.parse_obj(obj)
73
+
74
+ _obj = GroupReconciliationDates.parse_obj({
75
+ "left": GroupReconciliationDatePair.from_dict(obj.get("left")) if obj.get("left") is not None else None,
76
+ "right": GroupReconciliationDatePair.from_dict(obj.get("right")) if obj.get("right") is not None else None
77
+ })
78
+ return _obj
@@ -0,0 +1,71 @@
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 BaseModel, Field, constr
23
+
24
+ class GroupReconciliationInstanceId(BaseModel):
25
+ """
26
+ GroupReconciliationInstanceId
27
+ """
28
+ run_id_type: constr(strict=True, min_length=1) = Field(..., alias="runIdType", description="Type of the reconciliation run, manual or automatic (via the workflow). \"Manual\" | \"WorkflowServiceTaskId\"")
29
+ run_id_value: constr(strict=True, min_length=1) = Field(..., alias="runIdValue", description="Reconciliation run identifier: a manually-provided key or taskId.")
30
+ __properties = ["runIdType", "runIdValue"]
31
+
32
+ class Config:
33
+ """Pydantic configuration"""
34
+ allow_population_by_field_name = True
35
+ validate_assignment = True
36
+
37
+ def to_str(self) -> str:
38
+ """Returns the string representation of the model using alias"""
39
+ return pprint.pformat(self.dict(by_alias=True))
40
+
41
+ def to_json(self) -> str:
42
+ """Returns the JSON representation of the model using alias"""
43
+ return json.dumps(self.to_dict())
44
+
45
+ @classmethod
46
+ def from_json(cls, json_str: str) -> GroupReconciliationInstanceId:
47
+ """Create an instance of GroupReconciliationInstanceId from a JSON string"""
48
+ return cls.from_dict(json.loads(json_str))
49
+
50
+ def to_dict(self):
51
+ """Returns the dictionary representation of the model using alias"""
52
+ _dict = self.dict(by_alias=True,
53
+ exclude={
54
+ },
55
+ exclude_none=True)
56
+ return _dict
57
+
58
+ @classmethod
59
+ def from_dict(cls, obj: dict) -> GroupReconciliationInstanceId:
60
+ """Create an instance of GroupReconciliationInstanceId from a dict"""
61
+ if obj is None:
62
+ return None
63
+
64
+ if not isinstance(obj, dict):
65
+ return GroupReconciliationInstanceId.parse_obj(obj)
66
+
67
+ _obj = GroupReconciliationInstanceId.parse_obj({
68
+ "run_id_type": obj.get("runIdType"),
69
+ "run_id_value": obj.get("runIdValue")
70
+ })
71
+ return _obj