lusid-sdk 2.1.351__py3-none-any.whl → 2.1.405__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- lusid/__init__.py +52 -0
- lusid/api/__init__.py +2 -0
- lusid/api/funds_api.py +9 -8
- lusid/api/group_reconciliations_api.py +378 -0
- lusid/api/order_management_api.py +174 -0
- lusid/api/persons_api.py +4 -4
- lusid/api/portfolios_api.py +179 -0
- lusid/api/workspace_api.py +40 -40
- lusid/configuration.py +1 -1
- lusid/models/__init__.py +50 -0
- lusid/models/accept_estimate_valuation_point_response.py +100 -0
- lusid/models/accumulation_event.py +3 -3
- lusid/models/action_id.py +1 -1
- lusid/models/amortisation_event.py +3 -3
- lusid/models/applicable_instrument_event.py +14 -2
- lusid/models/batch_upsert_portfolio_access_metadata_request.py +82 -0
- lusid/models/batch_upsert_portfolio_access_metadata_response.py +82 -0
- lusid/models/bond_coupon_event.py +3 -3
- lusid/models/bond_default_event.py +3 -3
- lusid/models/bond_principal_event.py +3 -3
- lusid/models/calendar.py +17 -2
- lusid/models/capital_distribution_event.py +3 -3
- lusid/models/cash_dividend_event.py +3 -3
- lusid/models/cash_flow_event.py +3 -3
- lusid/models/cds_credit_event.py +105 -0
- lusid/models/cdx_credit_event.py +114 -0
- lusid/models/change_interval_with_order_management_detail.py +137 -0
- lusid/models/close_event.py +3 -3
- lusid/models/create_group_reconciliation_comparison_ruleset_request.py +97 -0
- lusid/models/credit_premium_cash_flow_event.py +102 -0
- lusid/models/custom_entity_definition.py +17 -2
- lusid/models/custom_entity_type.py +17 -2
- lusid/models/data_type.py +7 -1
- lusid/models/dividend_option_event.py +3 -3
- lusid/models/dividend_reinvestment_event.py +3 -3
- lusid/models/exercise_event.py +3 -3
- lusid/models/expiry_event.py +3 -3
- lusid/models/fee.py +1 -1
- lusid/models/fee_request.py +1 -1
- lusid/models/flow_conventions.py +1 -1
- lusid/models/fund_amount.py +1 -1
- lusid/models/fund_details.py +74 -0
- lusid/models/future_expiry_event.py +3 -3
- lusid/models/futures_contract_details.py +6 -1
- lusid/models/fx_forward_settlement_event.py +13 -5
- lusid/models/generated_event_diagnostics.py +75 -0
- lusid/models/group_reconciliation_aggregate_attribute_rule.py +84 -0
- lusid/models/group_reconciliation_aggregate_comparison_rule_operand.py +71 -0
- lusid/models/group_reconciliation_comparison_rule_string_value_map.py +73 -0
- lusid/models/group_reconciliation_comparison_rule_tolerance.py +71 -0
- lusid/models/group_reconciliation_comparison_ruleset.py +125 -0
- lusid/models/group_reconciliation_core_attribute_rule.py +95 -0
- lusid/models/group_reconciliation_core_comparison_rule_operand.py +71 -0
- lusid/models/holding_pricing_info.py +110 -0
- lusid/models/index_convention.py +1 -1
- lusid/models/informational_error_event.py +3 -3
- lusid/models/informational_event.py +3 -3
- lusid/models/instrument_event.py +10 -5
- lusid/models/instrument_event_instruction.py +19 -4
- lusid/models/instrument_event_type.py +5 -0
- lusid/models/maturity_event.py +3 -3
- lusid/models/merger_event.py +3 -3
- lusid/models/metadata_key_value.py +86 -0
- lusid/models/metadata_key_value_response.py +86 -0
- lusid/models/new_instrument.py +10 -2
- lusid/models/open_event.py +3 -3
- lusid/models/order_graph_block_order_detail.py +1 -1
- lusid/models/order_update_request.py +5 -0
- lusid/models/person.py +17 -2
- lusid/models/placement_update_request.py +6 -1
- lusid/models/previous_nav.py +3 -3
- lusid/models/pricing_context.py +8 -2
- lusid/models/raw_vendor_event.py +3 -3
- lusid/models/reset_event.py +3 -3
- lusid/models/resource_list_of_change_interval_with_order_management_detail.py +113 -0
- lusid/models/reverse_stock_split_event.py +3 -3
- lusid/models/scrip_dividend_event.py +3 -3
- lusid/models/share_class_amount.py +7 -9
- lusid/models/share_class_breakdown.py +4 -5
- lusid/models/specific_holding_pricing_info.py +75 -0
- lusid/models/spin_off_event.py +3 -3
- lusid/models/staged_modification.py +8 -1
- lusid/models/stock_dividend_event.py +3 -3
- lusid/models/stock_split_event.py +3 -3
- lusid/models/swap_cash_flow_event.py +97 -0
- lusid/models/swap_principal_event.py +97 -0
- lusid/models/transaction_diagnostics.py +71 -0
- lusid/models/transition_event.py +3 -3
- lusid/models/trigger_event.py +3 -3
- lusid/models/valuation_point_data_response.py +21 -1
- lusid/models/weighted_instrument.py +9 -2
- {lusid_sdk-2.1.351.dist-info → lusid_sdk-2.1.405.dist-info}/METADATA +52 -23
- {lusid_sdk-2.1.351.dist-info → lusid_sdk-2.1.405.dist-info}/RECORD +94 -68
- {lusid_sdk-2.1.351.dist-info → lusid_sdk-2.1.405.dist-info}/WHEEL +0 -0
@@ -29,7 +29,7 @@ class FuturesContractDetails(BaseModel):
|
|
29
29
|
fgn_ccy: Optional[StrictStr] = Field(None, alias="fgnCcy", description="Currency of the underlying, for use with FX Futures")
|
30
30
|
asset_class: Optional[StrictStr] = Field(None, alias="assetClass", description="The asset class of the underlying. Optional and will default to Unknown if not set. Supported string (enumeration) values are: [InterestRates, FX, Inflation, Equities, Credit, Commodities, Money].")
|
31
31
|
contract_code: constr(strict=True, min_length=1) = Field(..., alias="contractCode", description="The contract code used by the exchange, e.g. “CL” for Crude Oil, “ES” for E-mini SP 500, “FGBL” for Bund Futures, etc.")
|
32
|
-
contract_month:
|
32
|
+
contract_month: Optional[StrictStr] = Field(None, alias="contractMonth", description="Which month does the contract trade for. Supported string (enumeration) values are: [F, G, H, J, K, M, N, Q, U, V, X, Z].")
|
33
33
|
contract_size: Union[StrictFloat, StrictInt] = Field(..., alias="contractSize", description="Size of a single contract.")
|
34
34
|
convention: Optional[StrictStr] = Field(None, description="If appropriate, the day count convention method used in pricing (rates futures). For more information on day counts, see [knowledge base article KA-01798](https://support.lusid.com/knowledgebase/article/KA-01798) Supported string (enumeration) values are: [Actual360, Act360, MoneyMarket, Actual365, Act365, Thirty360, ThirtyU360, Bond, ThirtyE360, EuroBond, ActualActual, ActAct, ActActIsda, ActActIsma, ActActIcma, OneOne, Act364, Act365F, Act365L, Act365_25, Act252, Bus252, NL360, NL365, ActActAFB, Act365Cad, ThirtyActIsda, Thirty365Isda, ThirtyEActIsda, ThirtyE360Isda, ThirtyE365Isda, ThirtyU360EOM].")
|
35
35
|
country: Optional[StrictStr] = Field(None, description="Country (code) for the exchange.")
|
@@ -76,6 +76,11 @@ class FuturesContractDetails(BaseModel):
|
|
76
76
|
if self.asset_class is None and "asset_class" in self.__fields_set__:
|
77
77
|
_dict['assetClass'] = None
|
78
78
|
|
79
|
+
# set to None if contract_month (nullable) is None
|
80
|
+
# and __fields_set__ contains the field
|
81
|
+
if self.contract_month is None and "contract_month" in self.__fields_set__:
|
82
|
+
_dict['contractMonth'] = None
|
83
|
+
|
79
84
|
# set to None if convention (nullable) is None
|
80
85
|
# and __fields_set__ contains the field
|
81
86
|
if self.convention is None and "convention" in self.__fields_set__:
|
@@ -37,15 +37,16 @@ class FxForwardSettlementEvent(InstrumentEvent):
|
|
37
37
|
cash_flow_per_unit: Optional[Union[StrictFloat, StrictInt]] = Field(None, alias="cashFlowPerUnit", description="Optional. Required if the event is an NDF (i.e. if IsNdf = true). CashFlow per unit. Paid in the SettlementCcy.")
|
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")
|
41
42
|
additional_properties: Dict[str, Any] = {}
|
42
|
-
__properties = ["instrumentEventType", "maturityDate", "domAmountPerUnit", "domCcy", "fgnAmountPerUnit", "fgnCcy", "isNdf", "fixingDate", "settlementCcy", "cashFlowPerUnit", "domesticToForeignRate", "domesticToSettlementRate"]
|
43
|
+
__properties = ["instrumentEventType", "maturityDate", "domAmountPerUnit", "domCcy", "fgnAmountPerUnit", "fgnCcy", "isNdf", "fixingDate", "settlementCcy", "cashFlowPerUnit", "domesticToForeignRate", "domesticToSettlementRate", "foreignToSettlementRate"]
|
43
44
|
|
44
45
|
@validator('instrument_event_type')
|
45
46
|
def instrument_event_type_validate_enum(cls, value):
|
46
47
|
"""Validates the enum"""
|
47
|
-
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'):
|
48
|
-
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')")
|
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'):
|
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')")
|
49
50
|
return value
|
50
51
|
|
51
52
|
class Config:
|
@@ -70,6 +71,7 @@ class FxForwardSettlementEvent(InstrumentEvent):
|
|
70
71
|
"""Returns the dictionary representation of the model using alias"""
|
71
72
|
_dict = self.dict(by_alias=True,
|
72
73
|
exclude={
|
74
|
+
"foreign_to_settlement_rate",
|
73
75
|
"additional_properties"
|
74
76
|
},
|
75
77
|
exclude_none=True)
|
@@ -103,6 +105,11 @@ class FxForwardSettlementEvent(InstrumentEvent):
|
|
103
105
|
if self.domestic_to_settlement_rate is None and "domestic_to_settlement_rate" in self.__fields_set__:
|
104
106
|
_dict['domesticToSettlementRate'] = None
|
105
107
|
|
108
|
+
# set to None if foreign_to_settlement_rate (nullable) is None
|
109
|
+
# and __fields_set__ contains the field
|
110
|
+
if self.foreign_to_settlement_rate is None and "foreign_to_settlement_rate" in self.__fields_set__:
|
111
|
+
_dict['foreignToSettlementRate'] = None
|
112
|
+
|
106
113
|
return _dict
|
107
114
|
|
108
115
|
@classmethod
|
@@ -126,7 +133,8 @@ class FxForwardSettlementEvent(InstrumentEvent):
|
|
126
133
|
"settlement_ccy": obj.get("settlementCcy"),
|
127
134
|
"cash_flow_per_unit": obj.get("cashFlowPerUnit"),
|
128
135
|
"domestic_to_foreign_rate": obj.get("domesticToForeignRate"),
|
129
|
-
"domestic_to_settlement_rate": obj.get("domesticToSettlementRate")
|
136
|
+
"domestic_to_settlement_rate": obj.get("domesticToSettlementRate"),
|
137
|
+
"foreign_to_settlement_rate": obj.get("foreignToSettlementRate")
|
130
138
|
})
|
131
139
|
# store additional fields in additional_properties
|
132
140
|
for _key in obj.keys():
|
@@ -0,0 +1,75 @@
|
|
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, StrictStr, conlist, constr
|
23
|
+
|
24
|
+
class GeneratedEventDiagnostics(BaseModel):
|
25
|
+
"""
|
26
|
+
Represents a set of diagnostics per generatedEvent, where applicable. # noqa: E501
|
27
|
+
"""
|
28
|
+
instrument_event_id: constr(strict=True, min_length=1) = Field(..., alias="instrumentEventId")
|
29
|
+
type: constr(strict=True, min_length=1) = Field(...)
|
30
|
+
detail: constr(strict=True, min_length=1) = Field(...)
|
31
|
+
error_details: conlist(StrictStr) = Field(..., alias="errorDetails")
|
32
|
+
__properties = ["instrumentEventId", "type", "detail", "errorDetails"]
|
33
|
+
|
34
|
+
class Config:
|
35
|
+
"""Pydantic configuration"""
|
36
|
+
allow_population_by_field_name = True
|
37
|
+
validate_assignment = True
|
38
|
+
|
39
|
+
def to_str(self) -> str:
|
40
|
+
"""Returns the string representation of the model using alias"""
|
41
|
+
return pprint.pformat(self.dict(by_alias=True))
|
42
|
+
|
43
|
+
def to_json(self) -> str:
|
44
|
+
"""Returns the JSON representation of the model using alias"""
|
45
|
+
return json.dumps(self.to_dict())
|
46
|
+
|
47
|
+
@classmethod
|
48
|
+
def from_json(cls, json_str: str) -> GeneratedEventDiagnostics:
|
49
|
+
"""Create an instance of GeneratedEventDiagnostics from a JSON string"""
|
50
|
+
return cls.from_dict(json.loads(json_str))
|
51
|
+
|
52
|
+
def to_dict(self):
|
53
|
+
"""Returns the dictionary representation of the model using alias"""
|
54
|
+
_dict = self.dict(by_alias=True,
|
55
|
+
exclude={
|
56
|
+
},
|
57
|
+
exclude_none=True)
|
58
|
+
return _dict
|
59
|
+
|
60
|
+
@classmethod
|
61
|
+
def from_dict(cls, obj: dict) -> GeneratedEventDiagnostics:
|
62
|
+
"""Create an instance of GeneratedEventDiagnostics from a dict"""
|
63
|
+
if obj is None:
|
64
|
+
return None
|
65
|
+
|
66
|
+
if not isinstance(obj, dict):
|
67
|
+
return GeneratedEventDiagnostics.parse_obj(obj)
|
68
|
+
|
69
|
+
_obj = GeneratedEventDiagnostics.parse_obj({
|
70
|
+
"instrument_event_id": obj.get("instrumentEventId"),
|
71
|
+
"type": obj.get("type"),
|
72
|
+
"detail": obj.get("detail"),
|
73
|
+
"error_details": obj.get("errorDetails")
|
74
|
+
})
|
75
|
+
return _obj
|
@@ -0,0 +1,84 @@
|
|
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
|
23
|
+
from lusid.models.group_reconciliation_aggregate_comparison_rule_operand import GroupReconciliationAggregateComparisonRuleOperand
|
24
|
+
from lusid.models.group_reconciliation_comparison_rule_tolerance import GroupReconciliationComparisonRuleTolerance
|
25
|
+
|
26
|
+
class GroupReconciliationAggregateAttributeRule(BaseModel):
|
27
|
+
"""
|
28
|
+
GroupReconciliationAggregateAttributeRule
|
29
|
+
"""
|
30
|
+
left: GroupReconciliationAggregateComparisonRuleOperand = Field(...)
|
31
|
+
right: GroupReconciliationAggregateComparisonRuleOperand = Field(...)
|
32
|
+
tolerance: GroupReconciliationComparisonRuleTolerance = Field(...)
|
33
|
+
__properties = ["left", "right", "tolerance"]
|
34
|
+
|
35
|
+
class Config:
|
36
|
+
"""Pydantic configuration"""
|
37
|
+
allow_population_by_field_name = True
|
38
|
+
validate_assignment = True
|
39
|
+
|
40
|
+
def to_str(self) -> str:
|
41
|
+
"""Returns the string representation of the model using alias"""
|
42
|
+
return pprint.pformat(self.dict(by_alias=True))
|
43
|
+
|
44
|
+
def to_json(self) -> str:
|
45
|
+
"""Returns the JSON representation of the model using alias"""
|
46
|
+
return json.dumps(self.to_dict())
|
47
|
+
|
48
|
+
@classmethod
|
49
|
+
def from_json(cls, json_str: str) -> GroupReconciliationAggregateAttributeRule:
|
50
|
+
"""Create an instance of GroupReconciliationAggregateAttributeRule from a JSON string"""
|
51
|
+
return cls.from_dict(json.loads(json_str))
|
52
|
+
|
53
|
+
def to_dict(self):
|
54
|
+
"""Returns the dictionary representation of the model using alias"""
|
55
|
+
_dict = self.dict(by_alias=True,
|
56
|
+
exclude={
|
57
|
+
},
|
58
|
+
exclude_none=True)
|
59
|
+
# override the default output from pydantic by calling `to_dict()` of left
|
60
|
+
if self.left:
|
61
|
+
_dict['left'] = self.left.to_dict()
|
62
|
+
# override the default output from pydantic by calling `to_dict()` of right
|
63
|
+
if self.right:
|
64
|
+
_dict['right'] = self.right.to_dict()
|
65
|
+
# override the default output from pydantic by calling `to_dict()` of tolerance
|
66
|
+
if self.tolerance:
|
67
|
+
_dict['tolerance'] = self.tolerance.to_dict()
|
68
|
+
return _dict
|
69
|
+
|
70
|
+
@classmethod
|
71
|
+
def from_dict(cls, obj: dict) -> GroupReconciliationAggregateAttributeRule:
|
72
|
+
"""Create an instance of GroupReconciliationAggregateAttributeRule from a dict"""
|
73
|
+
if obj is None:
|
74
|
+
return None
|
75
|
+
|
76
|
+
if not isinstance(obj, dict):
|
77
|
+
return GroupReconciliationAggregateAttributeRule.parse_obj(obj)
|
78
|
+
|
79
|
+
_obj = GroupReconciliationAggregateAttributeRule.parse_obj({
|
80
|
+
"left": GroupReconciliationAggregateComparisonRuleOperand.from_dict(obj.get("left")) if obj.get("left") is not None else None,
|
81
|
+
"right": GroupReconciliationAggregateComparisonRuleOperand.from_dict(obj.get("right")) if obj.get("right") is not None else None,
|
82
|
+
"tolerance": GroupReconciliationComparisonRuleTolerance.from_dict(obj.get("tolerance")) if obj.get("tolerance") is not None else None
|
83
|
+
})
|
84
|
+
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 GroupReconciliationAggregateComparisonRuleOperand(BaseModel):
|
25
|
+
"""
|
26
|
+
GroupReconciliationAggregateComparisonRuleOperand
|
27
|
+
"""
|
28
|
+
key: constr(strict=True, max_length=256, min_length=1) = Field(..., description="The key of the value to compare")
|
29
|
+
operation: constr(strict=True, min_length=1) = Field(..., description="What to do with the value pointed to by the key, e.g. Sum. Only \"Value is allowed for core rules\"")
|
30
|
+
__properties = ["key", "operation"]
|
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) -> GroupReconciliationAggregateComparisonRuleOperand:
|
47
|
+
"""Create an instance of GroupReconciliationAggregateComparisonRuleOperand 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) -> GroupReconciliationAggregateComparisonRuleOperand:
|
60
|
+
"""Create an instance of GroupReconciliationAggregateComparisonRuleOperand from a dict"""
|
61
|
+
if obj is None:
|
62
|
+
return None
|
63
|
+
|
64
|
+
if not isinstance(obj, dict):
|
65
|
+
return GroupReconciliationAggregateComparisonRuleOperand.parse_obj(obj)
|
66
|
+
|
67
|
+
_obj = GroupReconciliationAggregateComparisonRuleOperand.parse_obj({
|
68
|
+
"key": obj.get("key"),
|
69
|
+
"operation": obj.get("operation")
|
70
|
+
})
|
71
|
+
return _obj
|
@@ -0,0 +1,73 @@
|
|
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 GroupReconciliationComparisonRuleStringValueMap(BaseModel):
|
25
|
+
"""
|
26
|
+
GroupReconciliationComparisonRuleStringValueMap
|
27
|
+
"""
|
28
|
+
left_value: constr(strict=True, max_length=256, min_length=1) = Field(..., alias="leftValue", description="The left string to map")
|
29
|
+
right_value: constr(strict=True, max_length=256, min_length=1) = Field(..., alias="rightValue", description="The right string to map")
|
30
|
+
direction: constr(strict=True, min_length=1) = Field(..., description="The direction to map. \"UniDirectional\" | \"BiDirectional\"")
|
31
|
+
__properties = ["leftValue", "rightValue", "direction"]
|
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) -> GroupReconciliationComparisonRuleStringValueMap:
|
48
|
+
"""Create an instance of GroupReconciliationComparisonRuleStringValueMap 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
|
+
return _dict
|
58
|
+
|
59
|
+
@classmethod
|
60
|
+
def from_dict(cls, obj: dict) -> GroupReconciliationComparisonRuleStringValueMap:
|
61
|
+
"""Create an instance of GroupReconciliationComparisonRuleStringValueMap from a dict"""
|
62
|
+
if obj is None:
|
63
|
+
return None
|
64
|
+
|
65
|
+
if not isinstance(obj, dict):
|
66
|
+
return GroupReconciliationComparisonRuleStringValueMap.parse_obj(obj)
|
67
|
+
|
68
|
+
_obj = GroupReconciliationComparisonRuleStringValueMap.parse_obj({
|
69
|
+
"left_value": obj.get("leftValue"),
|
70
|
+
"right_value": obj.get("rightValue"),
|
71
|
+
"direction": obj.get("direction")
|
72
|
+
})
|
73
|
+
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, Union
|
22
|
+
from pydantic.v1 import BaseModel, Field, StrictFloat, StrictInt, constr
|
23
|
+
|
24
|
+
class GroupReconciliationComparisonRuleTolerance(BaseModel):
|
25
|
+
"""
|
26
|
+
GroupReconciliationComparisonRuleTolerance
|
27
|
+
"""
|
28
|
+
type: constr(strict=True, min_length=1) = Field(..., description="The type of tolerance to allow. \"Relative\" | \"Absolute\"")
|
29
|
+
value: Union[StrictFloat, StrictInt] = Field(..., description="The decimal value of how much tolerance to allow when comparing in relative (i.e percentage) or absolute terms depending on the ToleranceType specified")
|
30
|
+
__properties = ["type", "value"]
|
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) -> GroupReconciliationComparisonRuleTolerance:
|
47
|
+
"""Create an instance of GroupReconciliationComparisonRuleTolerance 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) -> GroupReconciliationComparisonRuleTolerance:
|
60
|
+
"""Create an instance of GroupReconciliationComparisonRuleTolerance from a dict"""
|
61
|
+
if obj is None:
|
62
|
+
return None
|
63
|
+
|
64
|
+
if not isinstance(obj, dict):
|
65
|
+
return GroupReconciliationComparisonRuleTolerance.parse_obj(obj)
|
66
|
+
|
67
|
+
_obj = GroupReconciliationComparisonRuleTolerance.parse_obj({
|
68
|
+
"type": obj.get("type"),
|
69
|
+
"value": obj.get("value")
|
70
|
+
})
|
71
|
+
return _obj
|
@@ -0,0 +1,125 @@
|
|
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, constr
|
23
|
+
from lusid.models.group_reconciliation_aggregate_attribute_rule import GroupReconciliationAggregateAttributeRule
|
24
|
+
from lusid.models.group_reconciliation_core_attribute_rule import GroupReconciliationCoreAttributeRule
|
25
|
+
from lusid.models.link import Link
|
26
|
+
from lusid.models.resource_id import ResourceId
|
27
|
+
from lusid.models.version import Version
|
28
|
+
|
29
|
+
class GroupReconciliationComparisonRuleset(BaseModel):
|
30
|
+
"""
|
31
|
+
GroupReconciliationComparisonRuleset
|
32
|
+
"""
|
33
|
+
id: ResourceId = Field(...)
|
34
|
+
display_name: constr(strict=True, min_length=1) = Field(..., alias="displayName", description="The name of the ruleset")
|
35
|
+
reconciliation_type: constr(strict=True, min_length=1) = Field(..., alias="reconciliationType", description="The type of reconciliation to perform. \"Holding\" | \"Transaction\" | \"Valuation\"")
|
36
|
+
core_attribute_rules: conlist(GroupReconciliationCoreAttributeRule) = Field(..., alias="coreAttributeRules", description="The core comparison rules")
|
37
|
+
aggregate_attribute_rules: conlist(GroupReconciliationAggregateAttributeRule) = Field(..., alias="aggregateAttributeRules", description="The aggregate comparison rules")
|
38
|
+
href: Optional[StrictStr] = Field(None, description="The specific Uniform Resource Identifier (URI) for this resource at the requested effective and asAt datetime.")
|
39
|
+
version: Optional[Version] = None
|
40
|
+
links: Optional[conlist(Link)] = None
|
41
|
+
__properties = ["id", "displayName", "reconciliationType", "coreAttributeRules", "aggregateAttributeRules", "href", "version", "links"]
|
42
|
+
|
43
|
+
class Config:
|
44
|
+
"""Pydantic configuration"""
|
45
|
+
allow_population_by_field_name = True
|
46
|
+
validate_assignment = True
|
47
|
+
|
48
|
+
def to_str(self) -> str:
|
49
|
+
"""Returns the string representation of the model using alias"""
|
50
|
+
return pprint.pformat(self.dict(by_alias=True))
|
51
|
+
|
52
|
+
def to_json(self) -> str:
|
53
|
+
"""Returns the JSON representation of the model using alias"""
|
54
|
+
return json.dumps(self.to_dict())
|
55
|
+
|
56
|
+
@classmethod
|
57
|
+
def from_json(cls, json_str: str) -> GroupReconciliationComparisonRuleset:
|
58
|
+
"""Create an instance of GroupReconciliationComparisonRuleset from a JSON string"""
|
59
|
+
return cls.from_dict(json.loads(json_str))
|
60
|
+
|
61
|
+
def to_dict(self):
|
62
|
+
"""Returns the dictionary representation of the model using alias"""
|
63
|
+
_dict = self.dict(by_alias=True,
|
64
|
+
exclude={
|
65
|
+
},
|
66
|
+
exclude_none=True)
|
67
|
+
# override the default output from pydantic by calling `to_dict()` of id
|
68
|
+
if self.id:
|
69
|
+
_dict['id'] = self.id.to_dict()
|
70
|
+
# override the default output from pydantic by calling `to_dict()` of each item in core_attribute_rules (list)
|
71
|
+
_items = []
|
72
|
+
if self.core_attribute_rules:
|
73
|
+
for _item in self.core_attribute_rules:
|
74
|
+
if _item:
|
75
|
+
_items.append(_item.to_dict())
|
76
|
+
_dict['coreAttributeRules'] = _items
|
77
|
+
# override the default output from pydantic by calling `to_dict()` of each item in aggregate_attribute_rules (list)
|
78
|
+
_items = []
|
79
|
+
if self.aggregate_attribute_rules:
|
80
|
+
for _item in self.aggregate_attribute_rules:
|
81
|
+
if _item:
|
82
|
+
_items.append(_item.to_dict())
|
83
|
+
_dict['aggregateAttributeRules'] = _items
|
84
|
+
# override the default output from pydantic by calling `to_dict()` of version
|
85
|
+
if self.version:
|
86
|
+
_dict['version'] = self.version.to_dict()
|
87
|
+
# override the default output from pydantic by calling `to_dict()` of each item in links (list)
|
88
|
+
_items = []
|
89
|
+
if self.links:
|
90
|
+
for _item in self.links:
|
91
|
+
if _item:
|
92
|
+
_items.append(_item.to_dict())
|
93
|
+
_dict['links'] = _items
|
94
|
+
# set to None if href (nullable) is None
|
95
|
+
# and __fields_set__ contains the field
|
96
|
+
if self.href is None and "href" in self.__fields_set__:
|
97
|
+
_dict['href'] = None
|
98
|
+
|
99
|
+
# set to None if links (nullable) is None
|
100
|
+
# and __fields_set__ contains the field
|
101
|
+
if self.links is None and "links" in self.__fields_set__:
|
102
|
+
_dict['links'] = None
|
103
|
+
|
104
|
+
return _dict
|
105
|
+
|
106
|
+
@classmethod
|
107
|
+
def from_dict(cls, obj: dict) -> GroupReconciliationComparisonRuleset:
|
108
|
+
"""Create an instance of GroupReconciliationComparisonRuleset from a dict"""
|
109
|
+
if obj is None:
|
110
|
+
return None
|
111
|
+
|
112
|
+
if not isinstance(obj, dict):
|
113
|
+
return GroupReconciliationComparisonRuleset.parse_obj(obj)
|
114
|
+
|
115
|
+
_obj = GroupReconciliationComparisonRuleset.parse_obj({
|
116
|
+
"id": ResourceId.from_dict(obj.get("id")) if obj.get("id") is not None else None,
|
117
|
+
"display_name": obj.get("displayName"),
|
118
|
+
"reconciliation_type": obj.get("reconciliationType"),
|
119
|
+
"core_attribute_rules": [GroupReconciliationCoreAttributeRule.from_dict(_item) for _item in obj.get("coreAttributeRules")] if obj.get("coreAttributeRules") is not None else None,
|
120
|
+
"aggregate_attribute_rules": [GroupReconciliationAggregateAttributeRule.from_dict(_item) for _item in obj.get("aggregateAttributeRules")] if obj.get("aggregateAttributeRules") is not None else None,
|
121
|
+
"href": obj.get("href"),
|
122
|
+
"version": Version.from_dict(obj.get("version")) if obj.get("version") is not None else None,
|
123
|
+
"links": [Link.from_dict(_item) for _item in obj.get("links")] if obj.get("links") is not None else None
|
124
|
+
})
|
125
|
+
return _obj
|