lusid-sdk 2.1.322__py3-none-any.whl → 2.1.390__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 (106) hide show
  1. lusid/__init__.py +64 -0
  2. lusid/api/__init__.py +5 -1
  3. lusid/api/data_types_api.py +160 -0
  4. lusid/api/entities_api.py +172 -0
  5. lusid/api/funds_api.py +221 -8
  6. lusid/api/group_reconciliations_api.py +378 -0
  7. lusid/api/order_management_api.py +321 -0
  8. lusid/api/workspace_api.py +3433 -0
  9. lusid/configuration.py +16 -7
  10. lusid/models/__init__.py +60 -0
  11. lusid/models/accept_estimate_valuation_point_response.py +100 -0
  12. lusid/models/accumulation_event.py +3 -3
  13. lusid/models/action_id.py +1 -1
  14. lusid/models/amortisation_event.py +3 -3
  15. lusid/models/applicable_instrument_event.py +14 -2
  16. lusid/models/bond_coupon_event.py +3 -3
  17. lusid/models/bond_default_event.py +3 -3
  18. lusid/models/bond_principal_event.py +3 -3
  19. lusid/models/calendar.py +17 -2
  20. lusid/models/capital_distribution_event.py +3 -3
  21. lusid/models/cash_dividend_event.py +3 -3
  22. lusid/models/cash_flow_event.py +3 -3
  23. lusid/models/close_event.py +3 -3
  24. lusid/models/close_period_diary_entry_request.py +1 -1
  25. lusid/models/create_group_reconciliation_comparison_ruleset_request.py +97 -0
  26. lusid/models/custom_entity_definition.py +17 -2
  27. lusid/models/custom_entity_type.py +17 -2
  28. lusid/models/data_type.py +14 -8
  29. lusid/models/data_type_entity.py +131 -0
  30. lusid/models/diary_entry.py +1 -1
  31. lusid/models/diary_entry_request.py +1 -1
  32. lusid/models/dividend_option_event.py +3 -3
  33. lusid/models/dividend_reinvestment_event.py +3 -3
  34. lusid/models/entity_change_item.py +121 -0
  35. lusid/models/exercise_event.py +3 -3
  36. lusid/models/expiry_event.py +3 -3
  37. lusid/models/fee.py +1 -1
  38. lusid/models/fee_request.py +1 -1
  39. lusid/models/flow_conventions.py +1 -1
  40. lusid/models/fund_amount.py +1 -1
  41. lusid/models/fund_configuration.py +6 -6
  42. lusid/models/fund_configuration_request.py +6 -6
  43. lusid/models/fund_details.py +74 -0
  44. lusid/models/future_expiry_event.py +3 -3
  45. lusid/models/futures_contract_details.py +6 -1
  46. lusid/models/fx_forward_settlement_event.py +3 -3
  47. lusid/models/generated_event_diagnostics.py +75 -0
  48. lusid/models/group_reconciliation_aggregate_attribute_rule.py +84 -0
  49. lusid/models/group_reconciliation_aggregate_comparison_rule_operand.py +71 -0
  50. lusid/models/group_reconciliation_comparison_rule_string_value_map.py +73 -0
  51. lusid/models/group_reconciliation_comparison_rule_tolerance.py +71 -0
  52. lusid/models/group_reconciliation_comparison_ruleset.py +125 -0
  53. lusid/models/group_reconciliation_core_attribute_rule.py +95 -0
  54. lusid/models/group_reconciliation_core_comparison_rule_operand.py +71 -0
  55. lusid/models/index_convention.py +1 -1
  56. lusid/models/informational_error_event.py +3 -3
  57. lusid/models/informational_event.py +3 -3
  58. lusid/models/instrument_event.py +7 -5
  59. lusid/models/instrument_event_instruction.py +19 -4
  60. lusid/models/instrument_event_type.py +2 -0
  61. lusid/models/instrument_resolution_detail.py +19 -5
  62. lusid/models/journal_entry_line.py +5 -3
  63. lusid/models/maturity_event.py +3 -3
  64. lusid/models/merger_event.py +3 -3
  65. lusid/models/new_instrument.py +10 -2
  66. lusid/models/open_event.py +3 -3
  67. lusid/models/order_graph_block_order_detail.py +1 -1
  68. lusid/models/order_update_request.py +121 -0
  69. lusid/models/paged_resource_list_of_valuation_point_overview.py +113 -0
  70. lusid/models/paged_resource_list_of_workspace.py +113 -0
  71. lusid/models/paged_resource_list_of_workspace_item.py +113 -0
  72. lusid/models/person.py +17 -2
  73. lusid/models/placement_update_request.py +6 -1
  74. lusid/models/previous_nav.py +3 -3
  75. lusid/models/quote_access_metadata_rule_id.py +2 -2
  76. lusid/models/quote_series_id.py +2 -2
  77. lusid/models/raw_vendor_event.py +3 -3
  78. lusid/models/reset_event.py +3 -3
  79. lusid/models/resource_list_of_entity_change_item.py +113 -0
  80. lusid/models/reverse_stock_split_event.py +3 -3
  81. lusid/models/scrip_dividend_event.py +20 -6
  82. lusid/models/share_class_amount.py +7 -9
  83. lusid/models/share_class_breakdown.py +9 -18
  84. lusid/models/share_class_dealing_breakdown.py +96 -0
  85. lusid/models/share_class_details.py +5 -3
  86. lusid/models/spin_off_event.py +3 -3
  87. lusid/models/stock_dividend_event.py +3 -3
  88. lusid/models/stock_split_event.py +21 -7
  89. lusid/models/swap_cash_flow_event.py +97 -0
  90. lusid/models/swap_principal_event.py +97 -0
  91. lusid/models/transaction_diagnostics.py +71 -0
  92. lusid/models/transition_event.py +3 -3
  93. lusid/models/trigger_event.py +3 -3
  94. lusid/models/update_orders_response.py +153 -0
  95. lusid/models/valuation_point_data_response.py +22 -2
  96. lusid/models/valuation_point_overview.py +125 -0
  97. lusid/models/weighted_instrument.py +9 -2
  98. lusid/models/workspace.py +92 -0
  99. lusid/models/workspace_creation_request.py +78 -0
  100. lusid/models/workspace_item.py +105 -0
  101. lusid/models/workspace_item_creation_request.py +91 -0
  102. lusid/models/workspace_item_update_request.py +82 -0
  103. lusid/models/workspace_update_request.py +69 -0
  104. {lusid_sdk-2.1.322.dist-info → lusid_sdk-2.1.390.dist-info}/METADATA +58 -1
  105. {lusid_sdk-2.1.322.dist-info → lusid_sdk-2.1.390.dist-info}/RECORD +106 -74
  106. {lusid_sdk-2.1.322.dist-info → lusid_sdk-2.1.390.dist-info}/WHEEL +0 -0
lusid/configuration.py CHANGED
@@ -356,12 +356,21 @@ class Configuration:
356
356
  """
357
357
  auth = {}
358
358
  if self.access_token is not None:
359
- auth['oauth2'] = {
360
- 'type': 'oauth2',
361
- 'in': 'header',
362
- 'key': 'Authorization',
363
- 'value': 'Bearer ' + self.access_token
364
- }
359
+
360
+ if isinstance(self.access_token, str):
361
+ auth['oauth2'] = {
362
+ 'type': 'bearer',
363
+ 'in': 'header',
364
+ 'key': 'Authorization',
365
+ 'value': 'Bearer ' + self.access_token
366
+ }
367
+ else:
368
+ auth['oauth2'] = {
369
+ 'type': 'bearer',
370
+ 'in': 'header',
371
+ 'key': 'Authorization',
372
+ 'value': 'Bearer ' + self.access_token.data
373
+ }
365
374
  return auth
366
375
 
367
376
  def to_debug_report(self):
@@ -373,7 +382,7 @@ class Configuration:
373
382
  return "Python SDK Debug Report:\n"\
374
383
  "OS: {env}\n"\
375
384
  "Python Version: {pyversion}\n"\
376
- "Version of the API: 0.11.6753\n"\
385
+ "Version of the API: 0.11.6820\n"\
377
386
  "SDK Package Version: {package_version}".\
378
387
  format(env=sys.platform, pyversion=sys.version, package_version=package_version)
379
388
 
lusid/models/__init__.py CHANGED
@@ -24,6 +24,7 @@ from lusid.models.abor_configuration_properties import AborConfigurationProperti
24
24
  from lusid.models.abor_configuration_request import AborConfigurationRequest
25
25
  from lusid.models.abor_properties import AborProperties
26
26
  from lusid.models.abor_request import AborRequest
27
+ from lusid.models.accept_estimate_valuation_point_response import AcceptEstimateValuationPointResponse
27
28
  from lusid.models.access_controlled_action import AccessControlledAction
28
29
  from lusid.models.access_controlled_resource import AccessControlledResource
29
30
  from lusid.models.access_metadata_operation import AccessMetadataOperation
@@ -212,6 +213,7 @@ from lusid.models.create_data_type_request import CreateDataTypeRequest
212
213
  from lusid.models.create_date_request import CreateDateRequest
213
214
  from lusid.models.create_derived_property_definition_request import CreateDerivedPropertyDefinitionRequest
214
215
  from lusid.models.create_derived_transaction_portfolio_request import CreateDerivedTransactionPortfolioRequest
216
+ from lusid.models.create_group_reconciliation_comparison_ruleset_request import CreateGroupReconciliationComparisonRulesetRequest
215
217
  from lusid.models.create_portfolio_details import CreatePortfolioDetails
216
218
  from lusid.models.create_portfolio_group_request import CreatePortfolioGroupRequest
217
219
  from lusid.models.create_property_definition_request import CreatePropertyDefinitionRequest
@@ -254,6 +256,7 @@ from lusid.models.data_map_key import DataMapKey
254
256
  from lusid.models.data_mapping import DataMapping
255
257
  from lusid.models.data_scope import DataScope
256
258
  from lusid.models.data_type import DataType
259
+ from lusid.models.data_type_entity import DataTypeEntity
257
260
  from lusid.models.data_type_summary import DataTypeSummary
258
261
  from lusid.models.data_type_value_range import DataTypeValueRange
259
262
  from lusid.models.date_attributes import DateAttributes
@@ -296,6 +299,7 @@ from lusid.models.economic_dependency_with_quote import EconomicDependencyWithQu
296
299
  from lusid.models.election_specification import ElectionSpecification
297
300
  from lusid.models.eligibility_calculation import EligibilityCalculation
298
301
  from lusid.models.empty_model_options import EmptyModelOptions
302
+ from lusid.models.entity_change_item import EntityChangeItem
299
303
  from lusid.models.entity_identifier import EntityIdentifier
300
304
  from lusid.models.equity import Equity
301
305
  from lusid.models.equity_all_of_identifiers import EquityAllOfIdentifiers
@@ -350,6 +354,7 @@ from lusid.models.fund_amount import FundAmount
350
354
  from lusid.models.fund_configuration import FundConfiguration
351
355
  from lusid.models.fund_configuration_properties import FundConfigurationProperties
352
356
  from lusid.models.fund_configuration_request import FundConfigurationRequest
357
+ from lusid.models.fund_details import FundDetails
353
358
  from lusid.models.fund_pnl_breakdown import FundPnlBreakdown
354
359
  from lusid.models.fund_previous_nav import FundPreviousNAV
355
360
  from lusid.models.fund_properties import FundProperties
@@ -382,6 +387,7 @@ from lusid.models.fx_vol_surface_data import FxVolSurfaceData
382
387
  from lusid.models.general_ledger_profile_mapping import GeneralLedgerProfileMapping
383
388
  from lusid.models.general_ledger_profile_request import GeneralLedgerProfileRequest
384
389
  from lusid.models.general_ledger_profile_response import GeneralLedgerProfileResponse
390
+ from lusid.models.generated_event_diagnostics import GeneratedEventDiagnostics
385
391
  from lusid.models.get_cds_flow_conventions_response import GetCdsFlowConventionsResponse
386
392
  from lusid.models.get_complex_market_data_response import GetComplexMarketDataResponse
387
393
  from lusid.models.get_counterparty_agreement_response import GetCounterpartyAgreementResponse
@@ -404,6 +410,13 @@ from lusid.models.group_filter_predicate_compliance_parameter import GroupFilter
404
410
  from lusid.models.group_filter_step import GroupFilterStep
405
411
  from lusid.models.group_filter_step_request import GroupFilterStepRequest
406
412
  from lusid.models.group_of_market_data_key_rules import GroupOfMarketDataKeyRules
413
+ from lusid.models.group_reconciliation_aggregate_attribute_rule import GroupReconciliationAggregateAttributeRule
414
+ from lusid.models.group_reconciliation_aggregate_comparison_rule_operand import GroupReconciliationAggregateComparisonRuleOperand
415
+ from lusid.models.group_reconciliation_comparison_rule_string_value_map import GroupReconciliationComparisonRuleStringValueMap
416
+ from lusid.models.group_reconciliation_comparison_rule_tolerance import GroupReconciliationComparisonRuleTolerance
417
+ from lusid.models.group_reconciliation_comparison_ruleset import GroupReconciliationComparisonRuleset
418
+ from lusid.models.group_reconciliation_core_attribute_rule import GroupReconciliationCoreAttributeRule
419
+ from lusid.models.group_reconciliation_core_comparison_rule_operand import GroupReconciliationCoreComparisonRuleOperand
407
420
  from lusid.models.grouped_result_of_address_key import GroupedResultOfAddressKey
408
421
  from lusid.models.holding_adjustment import HoldingAdjustment
409
422
  from lusid.models.holding_adjustment_with_date import HoldingAdjustmentWithDate
@@ -551,6 +564,7 @@ from lusid.models.order_instruction_request import OrderInstructionRequest
551
564
  from lusid.models.order_instruction_set_request import OrderInstructionSetRequest
552
565
  from lusid.models.order_request import OrderRequest
553
566
  from lusid.models.order_set_request import OrderSetRequest
567
+ from lusid.models.order_update_request import OrderUpdateRequest
554
568
  from lusid.models.otc_confirmation import OtcConfirmation
555
569
  from lusid.models.output_transaction import OutputTransaction
556
570
  from lusid.models.output_transition import OutputTransition
@@ -615,7 +629,10 @@ from lusid.models.paged_resource_list_of_staging_rule_set import PagedResourceLi
615
629
  from lusid.models.paged_resource_list_of_transaction_template import PagedResourceListOfTransactionTemplate
616
630
  from lusid.models.paged_resource_list_of_transaction_template_specification import PagedResourceListOfTransactionTemplateSpecification
617
631
  from lusid.models.paged_resource_list_of_translation_script_id import PagedResourceListOfTranslationScriptId
632
+ from lusid.models.paged_resource_list_of_valuation_point_overview import PagedResourceListOfValuationPointOverview
618
633
  from lusid.models.paged_resource_list_of_virtual_row import PagedResourceListOfVirtualRow
634
+ from lusid.models.paged_resource_list_of_workspace import PagedResourceListOfWorkspace
635
+ from lusid.models.paged_resource_list_of_workspace_item import PagedResourceListOfWorkspaceItem
619
636
  from lusid.models.participation import Participation
620
637
  from lusid.models.participation_request import ParticipationRequest
621
638
  from lusid.models.participation_set_request import ParticipationSetRequest
@@ -764,6 +781,7 @@ from lusid.models.resource_list_of_compliance_run_info import ResourceListOfComp
764
781
  from lusid.models.resource_list_of_constituents_adjustment_header import ResourceListOfConstituentsAdjustmentHeader
765
782
  from lusid.models.resource_list_of_corporate_action import ResourceListOfCorporateAction
766
783
  from lusid.models.resource_list_of_data_type import ResourceListOfDataType
784
+ from lusid.models.resource_list_of_entity_change_item import ResourceListOfEntityChangeItem
767
785
  from lusid.models.resource_list_of_execution import ResourceListOfExecution
768
786
  from lusid.models.resource_list_of_fee_rule import ResourceListOfFeeRule
769
787
  from lusid.models.resource_list_of_get_cds_flow_conventions_response import ResourceListOfGetCdsFlowConventionsResponse
@@ -851,6 +869,7 @@ from lusid.models.settlement_schedule import SettlementSchedule
851
869
  from lusid.models.share_class_amount import ShareClassAmount
852
870
  from lusid.models.share_class_breakdown import ShareClassBreakdown
853
871
  from lusid.models.share_class_data import ShareClassData
872
+ from lusid.models.share_class_dealing_breakdown import ShareClassDealingBreakdown
854
873
  from lusid.models.share_class_details import ShareClassDetails
855
874
  from lusid.models.share_class_pnl_breakdown import ShareClassPnlBreakdown
856
875
  from lusid.models.side_configuration_data import SideConfigurationData
@@ -885,6 +904,8 @@ from lusid.models.string_list_compliance_parameter import StringListCompliancePa
885
904
  from lusid.models.structured_result_data import StructuredResultData
886
905
  from lusid.models.structured_result_data_id import StructuredResultDataId
887
906
  from lusid.models.sub_holding_key_value_equals import SubHoldingKeyValueEquals
907
+ from lusid.models.swap_cash_flow_event import SwapCashFlowEvent
908
+ from lusid.models.swap_principal_event import SwapPrincipalEvent
888
909
  from lusid.models.target_tax_lot import TargetTaxLot
889
910
  from lusid.models.target_tax_lot_request import TargetTaxLotRequest
890
911
  from lusid.models.tax_rule import TaxRule
@@ -902,6 +923,7 @@ from lusid.models.transaction_configuration_movement_data import TransactionConf
902
923
  from lusid.models.transaction_configuration_movement_data_request import TransactionConfigurationMovementDataRequest
903
924
  from lusid.models.transaction_configuration_type_alias import TransactionConfigurationTypeAlias
904
925
  from lusid.models.transaction_currency_and_amount import TransactionCurrencyAndAmount
926
+ from lusid.models.transaction_diagnostics import TransactionDiagnostics
905
927
  from lusid.models.transaction_field_map import TransactionFieldMap
906
928
  from lusid.models.transaction_price import TransactionPrice
907
929
  from lusid.models.transaction_price_and_type import TransactionPriceAndType
@@ -959,6 +981,7 @@ from lusid.models.update_data_type_request import UpdateDataTypeRequest
959
981
  from lusid.models.update_derived_property_definition_request import UpdateDerivedPropertyDefinitionRequest
960
982
  from lusid.models.update_fee_type_request import UpdateFeeTypeRequest
961
983
  from lusid.models.update_instrument_identifier_request import UpdateInstrumentIdentifierRequest
984
+ from lusid.models.update_orders_response import UpdateOrdersResponse
962
985
  from lusid.models.update_placements_response import UpdatePlacementsResponse
963
986
  from lusid.models.update_portfolio_group_request import UpdatePortfolioGroupRequest
964
987
  from lusid.models.update_portfolio_request import UpdatePortfolioRequest
@@ -1015,6 +1038,7 @@ from lusid.models.user import User
1015
1038
  from lusid.models.valuation_point_data_query_parameters import ValuationPointDataQueryParameters
1016
1039
  from lusid.models.valuation_point_data_request import ValuationPointDataRequest
1017
1040
  from lusid.models.valuation_point_data_response import ValuationPointDataResponse
1041
+ from lusid.models.valuation_point_overview import ValuationPointOverview
1018
1042
  from lusid.models.valuation_request import ValuationRequest
1019
1043
  from lusid.models.valuation_schedule import ValuationSchedule
1020
1044
  from lusid.models.valuations_reconciliation_request import ValuationsReconciliationRequest
@@ -1041,6 +1065,12 @@ from lusid.models.weekend_mask import WeekendMask
1041
1065
  from lusid.models.weighted_instrument import WeightedInstrument
1042
1066
  from lusid.models.weighted_instrument_in_line_lookup_identifiers import WeightedInstrumentInLineLookupIdentifiers
1043
1067
  from lusid.models.weighted_instruments import WeightedInstruments
1068
+ from lusid.models.workspace import Workspace
1069
+ from lusid.models.workspace_creation_request import WorkspaceCreationRequest
1070
+ from lusid.models.workspace_item import WorkspaceItem
1071
+ from lusid.models.workspace_item_creation_request import WorkspaceItemCreationRequest
1072
+ from lusid.models.workspace_item_update_request import WorkspaceItemUpdateRequest
1073
+ from lusid.models.workspace_update_request import WorkspaceUpdateRequest
1044
1074
  from lusid.models.yield_curve_data import YieldCurveData
1045
1075
 
1046
1076
 
@@ -1055,6 +1085,7 @@ __all__ = [
1055
1085
  "AborConfigurationRequest",
1056
1086
  "AborProperties",
1057
1087
  "AborRequest",
1088
+ "AcceptEstimateValuationPointResponse",
1058
1089
  "AccessControlledAction",
1059
1090
  "AccessControlledResource",
1060
1091
  "AccessMetadataOperation",
@@ -1243,6 +1274,7 @@ __all__ = [
1243
1274
  "CreateDateRequest",
1244
1275
  "CreateDerivedPropertyDefinitionRequest",
1245
1276
  "CreateDerivedTransactionPortfolioRequest",
1277
+ "CreateGroupReconciliationComparisonRulesetRequest",
1246
1278
  "CreatePortfolioDetails",
1247
1279
  "CreatePortfolioGroupRequest",
1248
1280
  "CreatePropertyDefinitionRequest",
@@ -1285,6 +1317,7 @@ __all__ = [
1285
1317
  "DataMapping",
1286
1318
  "DataScope",
1287
1319
  "DataType",
1320
+ "DataTypeEntity",
1288
1321
  "DataTypeSummary",
1289
1322
  "DataTypeValueRange",
1290
1323
  "DateAttributes",
@@ -1327,6 +1360,7 @@ __all__ = [
1327
1360
  "ElectionSpecification",
1328
1361
  "EligibilityCalculation",
1329
1362
  "EmptyModelOptions",
1363
+ "EntityChangeItem",
1330
1364
  "EntityIdentifier",
1331
1365
  "Equity",
1332
1366
  "EquityAllOfIdentifiers",
@@ -1381,6 +1415,7 @@ __all__ = [
1381
1415
  "FundConfiguration",
1382
1416
  "FundConfigurationProperties",
1383
1417
  "FundConfigurationRequest",
1418
+ "FundDetails",
1384
1419
  "FundPnlBreakdown",
1385
1420
  "FundPreviousNAV",
1386
1421
  "FundProperties",
@@ -1413,6 +1448,7 @@ __all__ = [
1413
1448
  "GeneralLedgerProfileMapping",
1414
1449
  "GeneralLedgerProfileRequest",
1415
1450
  "GeneralLedgerProfileResponse",
1451
+ "GeneratedEventDiagnostics",
1416
1452
  "GetCdsFlowConventionsResponse",
1417
1453
  "GetComplexMarketDataResponse",
1418
1454
  "GetCounterpartyAgreementResponse",
@@ -1435,6 +1471,13 @@ __all__ = [
1435
1471
  "GroupFilterStep",
1436
1472
  "GroupFilterStepRequest",
1437
1473
  "GroupOfMarketDataKeyRules",
1474
+ "GroupReconciliationAggregateAttributeRule",
1475
+ "GroupReconciliationAggregateComparisonRuleOperand",
1476
+ "GroupReconciliationComparisonRuleStringValueMap",
1477
+ "GroupReconciliationComparisonRuleTolerance",
1478
+ "GroupReconciliationComparisonRuleset",
1479
+ "GroupReconciliationCoreAttributeRule",
1480
+ "GroupReconciliationCoreComparisonRuleOperand",
1438
1481
  "GroupedResultOfAddressKey",
1439
1482
  "HoldingAdjustment",
1440
1483
  "HoldingAdjustmentWithDate",
@@ -1582,6 +1625,7 @@ __all__ = [
1582
1625
  "OrderInstructionSetRequest",
1583
1626
  "OrderRequest",
1584
1627
  "OrderSetRequest",
1628
+ "OrderUpdateRequest",
1585
1629
  "OtcConfirmation",
1586
1630
  "OutputTransaction",
1587
1631
  "OutputTransition",
@@ -1646,7 +1690,10 @@ __all__ = [
1646
1690
  "PagedResourceListOfTransactionTemplate",
1647
1691
  "PagedResourceListOfTransactionTemplateSpecification",
1648
1692
  "PagedResourceListOfTranslationScriptId",
1693
+ "PagedResourceListOfValuationPointOverview",
1649
1694
  "PagedResourceListOfVirtualRow",
1695
+ "PagedResourceListOfWorkspace",
1696
+ "PagedResourceListOfWorkspaceItem",
1650
1697
  "Participation",
1651
1698
  "ParticipationRequest",
1652
1699
  "ParticipationSetRequest",
@@ -1795,6 +1842,7 @@ __all__ = [
1795
1842
  "ResourceListOfConstituentsAdjustmentHeader",
1796
1843
  "ResourceListOfCorporateAction",
1797
1844
  "ResourceListOfDataType",
1845
+ "ResourceListOfEntityChangeItem",
1798
1846
  "ResourceListOfExecution",
1799
1847
  "ResourceListOfFeeRule",
1800
1848
  "ResourceListOfGetCdsFlowConventionsResponse",
@@ -1882,6 +1930,7 @@ __all__ = [
1882
1930
  "ShareClassAmount",
1883
1931
  "ShareClassBreakdown",
1884
1932
  "ShareClassData",
1933
+ "ShareClassDealingBreakdown",
1885
1934
  "ShareClassDetails",
1886
1935
  "ShareClassPnlBreakdown",
1887
1936
  "SideConfigurationData",
@@ -1916,6 +1965,8 @@ __all__ = [
1916
1965
  "StructuredResultData",
1917
1966
  "StructuredResultDataId",
1918
1967
  "SubHoldingKeyValueEquals",
1968
+ "SwapCashFlowEvent",
1969
+ "SwapPrincipalEvent",
1919
1970
  "TargetTaxLot",
1920
1971
  "TargetTaxLotRequest",
1921
1972
  "TaxRule",
@@ -1933,6 +1984,7 @@ __all__ = [
1933
1984
  "TransactionConfigurationMovementDataRequest",
1934
1985
  "TransactionConfigurationTypeAlias",
1935
1986
  "TransactionCurrencyAndAmount",
1987
+ "TransactionDiagnostics",
1936
1988
  "TransactionFieldMap",
1937
1989
  "TransactionPrice",
1938
1990
  "TransactionPriceAndType",
@@ -1990,6 +2042,7 @@ __all__ = [
1990
2042
  "UpdateDerivedPropertyDefinitionRequest",
1991
2043
  "UpdateFeeTypeRequest",
1992
2044
  "UpdateInstrumentIdentifierRequest",
2045
+ "UpdateOrdersResponse",
1993
2046
  "UpdatePlacementsResponse",
1994
2047
  "UpdatePortfolioGroupRequest",
1995
2048
  "UpdatePortfolioRequest",
@@ -2046,6 +2099,7 @@ __all__ = [
2046
2099
  "ValuationPointDataQueryParameters",
2047
2100
  "ValuationPointDataRequest",
2048
2101
  "ValuationPointDataResponse",
2102
+ "ValuationPointOverview",
2049
2103
  "ValuationRequest",
2050
2104
  "ValuationSchedule",
2051
2105
  "ValuationsReconciliationRequest",
@@ -2072,5 +2126,11 @@ __all__ = [
2072
2126
  "WeightedInstrument",
2073
2127
  "WeightedInstrumentInLineLookupIdentifiers",
2074
2128
  "WeightedInstruments",
2129
+ "Workspace",
2130
+ "WorkspaceCreationRequest",
2131
+ "WorkspaceItem",
2132
+ "WorkspaceItemCreationRequest",
2133
+ "WorkspaceItemUpdateRequest",
2134
+ "WorkspaceUpdateRequest",
2075
2135
  "YieldCurveData"
2076
2136
  ]
@@ -0,0 +1,100 @@
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, Optional
22
+ from pydantic.v1 import BaseModel, Field, StrictStr, conlist
23
+ from lusid.models.link import Link
24
+ from lusid.models.valuation_point_data_response import ValuationPointDataResponse
25
+
26
+ class AcceptEstimateValuationPointResponse(BaseModel):
27
+ """
28
+ The Valuation Point Data Response for AcceptEstimate called on the Fund and specified date. # noqa: E501
29
+ """
30
+ href: Optional[StrictStr] = Field(None, description="The specific Uniform Resource Identifier (URI) for this resource at the requested effective and asAt datetime.")
31
+ candidate_valuation_point: ValuationPointDataResponse = Field(..., alias="candidateValuationPoint")
32
+ latest_valuation_point: Optional[ValuationPointDataResponse] = Field(None, alias="latestValuationPoint")
33
+ links: Optional[conlist(Link)] = None
34
+ __properties = ["href", "candidateValuationPoint", "latestValuationPoint", "links"]
35
+
36
+ class Config:
37
+ """Pydantic configuration"""
38
+ allow_population_by_field_name = True
39
+ validate_assignment = True
40
+
41
+ def to_str(self) -> str:
42
+ """Returns the string representation of the model using alias"""
43
+ return pprint.pformat(self.dict(by_alias=True))
44
+
45
+ def to_json(self) -> str:
46
+ """Returns the JSON representation of the model using alias"""
47
+ return json.dumps(self.to_dict())
48
+
49
+ @classmethod
50
+ def from_json(cls, json_str: str) -> AcceptEstimateValuationPointResponse:
51
+ """Create an instance of AcceptEstimateValuationPointResponse from a JSON string"""
52
+ return cls.from_dict(json.loads(json_str))
53
+
54
+ def to_dict(self):
55
+ """Returns the dictionary representation of the model using alias"""
56
+ _dict = self.dict(by_alias=True,
57
+ exclude={
58
+ },
59
+ exclude_none=True)
60
+ # override the default output from pydantic by calling `to_dict()` of candidate_valuation_point
61
+ if self.candidate_valuation_point:
62
+ _dict['candidateValuationPoint'] = self.candidate_valuation_point.to_dict()
63
+ # override the default output from pydantic by calling `to_dict()` of latest_valuation_point
64
+ if self.latest_valuation_point:
65
+ _dict['latestValuationPoint'] = self.latest_valuation_point.to_dict()
66
+ # override the default output from pydantic by calling `to_dict()` of each item in links (list)
67
+ _items = []
68
+ if self.links:
69
+ for _item in self.links:
70
+ if _item:
71
+ _items.append(_item.to_dict())
72
+ _dict['links'] = _items
73
+ # set to None if href (nullable) is None
74
+ # and __fields_set__ contains the field
75
+ if self.href is None and "href" in self.__fields_set__:
76
+ _dict['href'] = None
77
+
78
+ # set to None if links (nullable) is None
79
+ # and __fields_set__ contains the field
80
+ if self.links is None and "links" in self.__fields_set__:
81
+ _dict['links'] = None
82
+
83
+ return _dict
84
+
85
+ @classmethod
86
+ def from_dict(cls, obj: dict) -> AcceptEstimateValuationPointResponse:
87
+ """Create an instance of AcceptEstimateValuationPointResponse from a dict"""
88
+ if obj is None:
89
+ return None
90
+
91
+ if not isinstance(obj, dict):
92
+ return AcceptEstimateValuationPointResponse.parse_obj(obj)
93
+
94
+ _obj = AcceptEstimateValuationPointResponse.parse_obj({
95
+ "href": obj.get("href"),
96
+ "candidate_valuation_point": ValuationPointDataResponse.from_dict(obj.get("candidateValuationPoint")) if obj.get("candidateValuationPoint") is not None else None,
97
+ "latest_valuation_point": ValuationPointDataResponse.from_dict(obj.get("latestValuationPoint")) if obj.get("latestValuationPoint") is not None else None,
98
+ "links": [Link.from_dict(_item) for _item in obj.get("links")] if obj.get("links") is not None else None
99
+ })
100
+ return _obj
@@ -31,15 +31,15 @@ class AccumulationEvent(InstrumentEvent):
31
31
  dividend_rate: Union[StrictFloat, StrictInt] = Field(..., alias="dividendRate", description="Dividend rate or payment rate as a percentage. i.e. 5% is written as 0.05")
32
32
  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.")
33
33
  payment_date: datetime = Field(..., alias="paymentDate", description="The date the company pays out dividends to shareholders.")
34
- 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")
34
+ 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")
35
35
  additional_properties: Dict[str, Any] = {}
36
36
  __properties = ["instrumentEventType", "announcementDate", "dividendCurrency", "dividendRate", "exDate", "paymentDate"]
37
37
 
38
38
  @validator('instrument_event_type')
39
39
  def instrument_event_type_validate_enum(cls, value):
40
40
  """Validates the enum"""
41
- 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'):
42
- 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')")
41
+ 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'):
42
+ 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')")
43
43
  return value
44
44
 
45
45
  class Config:
lusid/models/action_id.py CHANGED
@@ -27,7 +27,7 @@ class ActionId(BaseModel):
27
27
  """
28
28
  scope: constr(strict=True, max_length=100, min_length=3) = Field(...)
29
29
  activity: constr(strict=True, max_length=25, min_length=3) = Field(...)
30
- entity: constr(strict=True, max_length=25, min_length=3) = Field(...)
30
+ entity: constr(strict=True, max_length=40, min_length=3) = Field(...)
31
31
  __properties = ["scope", "activity", "entity"]
32
32
 
33
33
  class Config:
@@ -30,15 +30,15 @@ class AmortisationEvent(InstrumentEvent):
30
30
  dom_ccy: StrictStr = Field(..., alias="domCcy", description="Domestic currency of the originating instrument")
31
31
  pay_receive: constr(strict=True, min_length=1) = Field(..., alias="payReceive", description="Is this event in relation to the Pay or Receive leg")
32
32
  payment_date: datetime = Field(..., alias="paymentDate", description="The date the principal payment is to be made.")
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")
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")
34
34
  additional_properties: Dict[str, Any] = {}
35
35
  __properties = ["instrumentEventType", "amountReduced", "domCcy", "payReceive", "paymentDate"]
36
36
 
37
37
  @validator('instrument_event_type')
38
38
  def instrument_event_type_validate_enum(cls, value):
39
39
  """Validates the enum"""
40
- 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'):
41
- 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')")
40
+ 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'):
41
+ 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')")
42
42
  return value
43
43
 
44
44
  class Config:
@@ -20,9 +20,11 @@ import json
20
20
 
21
21
  from typing import Any, Dict, List, Optional
22
22
  from pydantic.v1 import BaseModel, Field, StrictInt, conlist, constr
23
+ from lusid.models.generated_event_diagnostics import GeneratedEventDiagnostics
23
24
  from lusid.models.instrument_event_holder import InstrumentEventHolder
24
25
  from lusid.models.resource_id import ResourceId
25
26
  from lusid.models.transaction import Transaction
27
+ from lusid.models.transaction_diagnostics import TransactionDiagnostics
26
28
 
27
29
  class ApplicableInstrumentEvent(BaseModel):
28
30
  """
@@ -36,10 +38,12 @@ class ApplicableInstrumentEvent(BaseModel):
36
38
  instrument_event_type: constr(strict=True, min_length=1) = Field(..., alias="instrumentEventType")
37
39
  instrument_event_id: constr(strict=True, min_length=1) = Field(..., alias="instrumentEventId")
38
40
  generated_event: Optional[InstrumentEventHolder] = Field(None, alias="generatedEvent")
41
+ generated_event_diagnostics: Optional[GeneratedEventDiagnostics] = Field(None, alias="generatedEventDiagnostics")
39
42
  loaded_event: Optional[InstrumentEventHolder] = Field(None, alias="loadedEvent")
40
43
  applied_instrument_event_instruction_id: constr(strict=True, min_length=1) = Field(..., alias="appliedInstrumentEventInstructionId")
41
44
  transactions: Optional[conlist(Transaction)] = None
42
- __properties = ["portfolioId", "holdingId", "lusidInstrumentId", "instrumentScope", "instrumentType", "instrumentEventType", "instrumentEventId", "generatedEvent", "loadedEvent", "appliedInstrumentEventInstructionId", "transactions"]
45
+ transaction_diagnostics: Optional[TransactionDiagnostics] = Field(None, alias="transactionDiagnostics")
46
+ __properties = ["portfolioId", "holdingId", "lusidInstrumentId", "instrumentScope", "instrumentType", "instrumentEventType", "instrumentEventId", "generatedEvent", "generatedEventDiagnostics", "loadedEvent", "appliedInstrumentEventInstructionId", "transactions", "transactionDiagnostics"]
43
47
 
44
48
  class Config:
45
49
  """Pydantic configuration"""
@@ -71,6 +75,9 @@ class ApplicableInstrumentEvent(BaseModel):
71
75
  # override the default output from pydantic by calling `to_dict()` of generated_event
72
76
  if self.generated_event:
73
77
  _dict['generatedEvent'] = self.generated_event.to_dict()
78
+ # override the default output from pydantic by calling `to_dict()` of generated_event_diagnostics
79
+ if self.generated_event_diagnostics:
80
+ _dict['generatedEventDiagnostics'] = self.generated_event_diagnostics.to_dict()
74
81
  # override the default output from pydantic by calling `to_dict()` of loaded_event
75
82
  if self.loaded_event:
76
83
  _dict['loadedEvent'] = self.loaded_event.to_dict()
@@ -81,6 +88,9 @@ class ApplicableInstrumentEvent(BaseModel):
81
88
  if _item:
82
89
  _items.append(_item.to_dict())
83
90
  _dict['transactions'] = _items
91
+ # override the default output from pydantic by calling `to_dict()` of transaction_diagnostics
92
+ if self.transaction_diagnostics:
93
+ _dict['transactionDiagnostics'] = self.transaction_diagnostics.to_dict()
84
94
  # set to None if transactions (nullable) is None
85
95
  # and __fields_set__ contains the field
86
96
  if self.transactions is None and "transactions" in self.__fields_set__:
@@ -106,8 +116,10 @@ class ApplicableInstrumentEvent(BaseModel):
106
116
  "instrument_event_type": obj.get("instrumentEventType"),
107
117
  "instrument_event_id": obj.get("instrumentEventId"),
108
118
  "generated_event": InstrumentEventHolder.from_dict(obj.get("generatedEvent")) if obj.get("generatedEvent") is not None else None,
119
+ "generated_event_diagnostics": GeneratedEventDiagnostics.from_dict(obj.get("generatedEventDiagnostics")) if obj.get("generatedEventDiagnostics") is not None else None,
109
120
  "loaded_event": InstrumentEventHolder.from_dict(obj.get("loadedEvent")) if obj.get("loadedEvent") is not None else None,
110
121
  "applied_instrument_event_instruction_id": obj.get("appliedInstrumentEventInstructionId"),
111
- "transactions": [Transaction.from_dict(_item) for _item in obj.get("transactions")] if obj.get("transactions") is not None else None
122
+ "transactions": [Transaction.from_dict(_item) for _item in obj.get("transactions")] if obj.get("transactions") is not None else None,
123
+ "transaction_diagnostics": TransactionDiagnostics.from_dict(obj.get("transactionDiagnostics")) if obj.get("transactionDiagnostics") is not None else None
112
124
  })
113
125
  return _obj
@@ -30,15 +30,15 @@ class BondCouponEvent(InstrumentEvent):
30
30
  payment_date: datetime = Field(..., alias="paymentDate", description="Payment date of the coupon payment")
31
31
  currency: StrictStr = Field(..., description="Currency of the coupon payment")
32
32
  coupon_per_unit: Union[StrictFloat, StrictInt] = Field(..., alias="couponPerUnit", description="CouponRate*Principal")
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")
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")
34
34
  additional_properties: Dict[str, Any] = {}
35
35
  __properties = ["instrumentEventType", "exDate", "paymentDate", "currency", "couponPerUnit"]
36
36
 
37
37
  @validator('instrument_event_type')
38
38
  def instrument_event_type_validate_enum(cls, value):
39
39
  """Validates the enum"""
40
- 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'):
41
- 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')")
40
+ 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'):
41
+ 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')")
42
42
  return value
43
43
 
44
44
  class Config:
@@ -27,15 +27,15 @@ class BondDefaultEvent(InstrumentEvent):
27
27
  Indicates when an issuer has defaulted on an obligation due to technical default, missed payments, or bankruptcy filing. # noqa: E501
28
28
  """
29
29
  effective_date: datetime = Field(..., alias="effectiveDate", description="The date the bond default occurred.")
30
- 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")
30
+ 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")
31
31
  additional_properties: Dict[str, Any] = {}
32
32
  __properties = ["instrumentEventType", "effectiveDate"]
33
33
 
34
34
  @validator('instrument_event_type')
35
35
  def instrument_event_type_validate_enum(cls, value):
36
36
  """Validates the enum"""
37
- 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'):
38
- 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')")
37
+ 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'):
38
+ 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')")
39
39
  return value
40
40
 
41
41
  class Config:
@@ -30,15 +30,15 @@ class BondPrincipalEvent(InstrumentEvent):
30
30
  ex_date: datetime = Field(..., alias="exDate", description="Ex-Dividend date of the principal payment")
31
31
  payment_date: datetime = Field(..., alias="paymentDate", description="Payment date of the principal payment")
32
32
  principal_per_unit: Union[StrictFloat, StrictInt] = Field(..., alias="principalPerUnit", description="Principal per unit")
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")
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")
34
34
  additional_properties: Dict[str, Any] = {}
35
35
  __properties = ["instrumentEventType", "currency", "exDate", "paymentDate", "principalPerUnit"]
36
36
 
37
37
  @validator('instrument_event_type')
38
38
  def instrument_event_type_validate_enum(cls, value):
39
39
  """Validates the enum"""
40
- 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'):
41
- 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')")
40
+ 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'):
41
+ 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')")
42
42
  return value
43
43
 
44
44
  class Config: