lusid-sdk 2.1.462__py3-none-any.whl → 2.1.542__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- lusid/__init__.py +62 -0
- lusid/api/group_reconciliations_api.py +806 -79
- lusid/api/instruments_api.py +187 -0
- lusid/api/transaction_portfolios_api.py +202 -2
- lusid/configuration.py +1 -1
- lusid/models/__init__.py +62 -0
- lusid/models/accumulation_event.py +3 -3
- lusid/models/amortisation_event.py +3 -3
- lusid/models/applicable_instrument_event.py +7 -2
- lusid/models/asset_leg.py +1 -1
- lusid/models/batch_update_user_review_for_comparison_result_request.py +81 -0
- lusid/models/batch_update_user_review_for_comparison_result_response.py +146 -0
- lusid/models/bond_coupon_event.py +10 -5
- lusid/models/bond_default_event.py +3 -3
- lusid/models/bond_principal_event.py +10 -5
- lusid/models/bonus_issue_event.py +3 -3
- lusid/models/call_on_intermediate_securities_event.py +139 -0
- 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 +3 -3
- lusid/models/cdx_credit_event.py +3 -3
- lusid/models/close_event.py +3 -3
- lusid/models/comparison_attribute_value_pair.py +71 -0
- lusid/models/component_transaction.py +10 -3
- lusid/models/create_staging_rule_set_request.py +1 -6
- lusid/models/credit_premium_cash_flow_event.py +3 -3
- lusid/models/custodian_account_request.py +1 -1
- lusid/models/delete_instrument_properties_response.py +7 -1
- lusid/models/delete_instrument_response.py +7 -1
- lusid/models/delete_instruments_response.py +22 -1
- lusid/models/deleted_entity_response.py +7 -1
- lusid/models/dividend_option_event.py +3 -3
- lusid/models/dividend_reinvestment_event.py +9 -4
- lusid/models/equity_option.py +19 -4
- lusid/models/exchange_traded_option_contract_details.py +1 -1
- lusid/models/exercise_event.py +3 -3
- lusid/models/expiry_event.py +3 -3
- lusid/models/fee.py +10 -3
- lusid/models/fee_request.py +13 -6
- lusid/models/fund_valuation_point_data.py +1 -7
- lusid/models/future_expiry_event.py +3 -3
- lusid/models/fx_forward_settlement_event.py +3 -3
- lusid/models/group_reconciliation_aggregate_attribute_values.py +86 -0
- lusid/models/group_reconciliation_comparison_result.py +148 -0
- lusid/models/group_reconciliation_core_attribute_values.py +86 -0
- lusid/models/group_reconciliation_date_pair.py +81 -0
- lusid/models/group_reconciliation_dates.py +78 -0
- lusid/models/group_reconciliation_instance_id.py +71 -0
- lusid/models/group_reconciliation_result_statuses.py +89 -0
- lusid/models/group_reconciliation_result_types.py +96 -0
- lusid/models/group_reconciliation_review_statuses.py +96 -0
- lusid/models/group_reconciliation_run_details.py +76 -0
- lusid/models/group_reconciliation_run_request.py +75 -0
- lusid/models/group_reconciliation_run_response.py +77 -0
- lusid/models/group_reconciliation_summary.py +121 -0
- lusid/models/group_reconciliation_user_review.py +112 -0
- lusid/models/group_reconciliation_user_review_add.py +88 -0
- lusid/models/group_reconciliation_user_review_break_code.py +80 -0
- lusid/models/group_reconciliation_user_review_comment.py +80 -0
- lusid/models/group_reconciliation_user_review_match_key.py +80 -0
- lusid/models/group_reconciliation_user_review_remove.py +88 -0
- 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_type.py +5 -0
- lusid/models/intermediate_securities_distribution_event.py +140 -0
- lusid/models/mastered_instrument.py +10 -10
- lusid/models/maturity_event.py +3 -3
- lusid/models/mbs_coupon_event.py +10 -5
- lusid/models/mbs_interest_deferral_event.py +10 -5
- lusid/models/mbs_interest_shortfall_event.py +10 -5
- lusid/models/mbs_principal_event.py +10 -5
- lusid/models/mbs_principal_write_off_event.py +10 -5
- lusid/models/merger_event.py +3 -3
- lusid/models/new_instrument.py +1 -1
- lusid/models/open_event.py +3 -3
- lusid/models/option_exercise_cash_event.py +144 -0
- lusid/models/option_exercise_election.py +73 -0
- lusid/models/option_exercise_physical_event.py +149 -0
- lusid/models/paged_resource_list_of_group_reconciliation_comparison_result.py +113 -0
- lusid/models/previous_fund_valuation_point_data.py +3 -9
- lusid/models/pricing_options.py +8 -2
- lusid/models/protection_payout_cash_flow_event.py +102 -0
- lusid/models/raw_vendor_event.py +3 -3
- lusid/models/reset_event.py +3 -3
- lusid/models/resource_list_of_output_transaction.py +113 -0
- lusid/models/return_zero_pv_options.py +69 -0
- lusid/models/reverse_stock_split_event.py +3 -3
- lusid/models/scrip_dividend_event.py +3 -3
- lusid/models/spin_off_event.py +3 -3
- lusid/models/stock_dividend_event.py +3 -3
- lusid/models/stock_split_event.py +3 -3
- lusid/models/swap_cash_flow_event.py +3 -3
- lusid/models/swap_principal_event.py +3 -3
- lusid/models/target_tax_lot.py +23 -2
- lusid/models/target_tax_lot_request.py +23 -2
- lusid/models/tender_event.py +3 -3
- lusid/models/total_return_swap.py +1 -1
- lusid/models/transaction_price.py +3 -3
- lusid/models/transaction_price_type.py +2 -0
- lusid/models/transition_event.py +3 -3
- lusid/models/trigger_event.py +3 -3
- lusid/models/update_staging_rule_set_request.py +1 -6
- {lusid_sdk-2.1.462.dist-info → lusid_sdk-2.1.542.dist-info}/METADATA +40 -3
- {lusid_sdk-2.1.462.dist-info → lusid_sdk-2.1.542.dist-info}/RECORD +107 -76
- {lusid_sdk-2.1.462.dist-info → lusid_sdk-2.1.542.dist-info}/WHEEL +0 -0
@@ -0,0 +1,89 @@
|
|
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, StrictInt
|
23
|
+
from lusid.models.link import Link
|
24
|
+
|
25
|
+
class GroupReconciliationResultStatuses(BaseModel):
|
26
|
+
"""
|
27
|
+
GroupReconciliationResultStatuses
|
28
|
+
"""
|
29
|
+
count_new: StrictInt = Field(..., alias="countNew", description="The number of comparison results of resultStatus \"New\" with this instanceId and reconciliationType")
|
30
|
+
link_new: Link = Field(..., alias="linkNew")
|
31
|
+
count_confirmed: StrictInt = Field(..., alias="countConfirmed", description="The number of comparison results of resultStatus \"Confirmed\" with this instanceId and reconciliationType")
|
32
|
+
link_confirmed: Link = Field(..., alias="linkConfirmed")
|
33
|
+
count_changed: StrictInt = Field(..., alias="countChanged", description="The number of comparison results of resultStatus \"Changed\" with this instanceId and reconciliationType")
|
34
|
+
link_changed: Link = Field(..., alias="linkChanged")
|
35
|
+
__properties = ["countNew", "linkNew", "countConfirmed", "linkConfirmed", "countChanged", "linkChanged"]
|
36
|
+
|
37
|
+
class Config:
|
38
|
+
"""Pydantic configuration"""
|
39
|
+
allow_population_by_field_name = True
|
40
|
+
validate_assignment = True
|
41
|
+
|
42
|
+
def to_str(self) -> str:
|
43
|
+
"""Returns the string representation of the model using alias"""
|
44
|
+
return pprint.pformat(self.dict(by_alias=True))
|
45
|
+
|
46
|
+
def to_json(self) -> str:
|
47
|
+
"""Returns the JSON representation of the model using alias"""
|
48
|
+
return json.dumps(self.to_dict())
|
49
|
+
|
50
|
+
@classmethod
|
51
|
+
def from_json(cls, json_str: str) -> GroupReconciliationResultStatuses:
|
52
|
+
"""Create an instance of GroupReconciliationResultStatuses from a JSON string"""
|
53
|
+
return cls.from_dict(json.loads(json_str))
|
54
|
+
|
55
|
+
def to_dict(self):
|
56
|
+
"""Returns the dictionary representation of the model using alias"""
|
57
|
+
_dict = self.dict(by_alias=True,
|
58
|
+
exclude={
|
59
|
+
},
|
60
|
+
exclude_none=True)
|
61
|
+
# override the default output from pydantic by calling `to_dict()` of link_new
|
62
|
+
if self.link_new:
|
63
|
+
_dict['linkNew'] = self.link_new.to_dict()
|
64
|
+
# override the default output from pydantic by calling `to_dict()` of link_confirmed
|
65
|
+
if self.link_confirmed:
|
66
|
+
_dict['linkConfirmed'] = self.link_confirmed.to_dict()
|
67
|
+
# override the default output from pydantic by calling `to_dict()` of link_changed
|
68
|
+
if self.link_changed:
|
69
|
+
_dict['linkChanged'] = self.link_changed.to_dict()
|
70
|
+
return _dict
|
71
|
+
|
72
|
+
@classmethod
|
73
|
+
def from_dict(cls, obj: dict) -> GroupReconciliationResultStatuses:
|
74
|
+
"""Create an instance of GroupReconciliationResultStatuses from a dict"""
|
75
|
+
if obj is None:
|
76
|
+
return None
|
77
|
+
|
78
|
+
if not isinstance(obj, dict):
|
79
|
+
return GroupReconciliationResultStatuses.parse_obj(obj)
|
80
|
+
|
81
|
+
_obj = GroupReconciliationResultStatuses.parse_obj({
|
82
|
+
"count_new": obj.get("countNew"),
|
83
|
+
"link_new": Link.from_dict(obj.get("linkNew")) if obj.get("linkNew") is not None else None,
|
84
|
+
"count_confirmed": obj.get("countConfirmed"),
|
85
|
+
"link_confirmed": Link.from_dict(obj.get("linkConfirmed")) if obj.get("linkConfirmed") is not None else None,
|
86
|
+
"count_changed": obj.get("countChanged"),
|
87
|
+
"link_changed": Link.from_dict(obj.get("linkChanged")) if obj.get("linkChanged") is not None else None
|
88
|
+
})
|
89
|
+
return _obj
|
@@ -0,0 +1,96 @@
|
|
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, StrictInt
|
23
|
+
from lusid.models.link import Link
|
24
|
+
|
25
|
+
class GroupReconciliationResultTypes(BaseModel):
|
26
|
+
"""
|
27
|
+
GroupReconciliationResultTypes
|
28
|
+
"""
|
29
|
+
count_match: StrictInt = Field(..., alias="countMatch", description="The number of comparison results of resultType \"Match\" with this instanceId and reconciliationType")
|
30
|
+
link_matches: Link = Field(..., alias="linkMatches")
|
31
|
+
count_partial_match: StrictInt = Field(..., alias="countPartialMatch", description="The number of comparison results of resultType \"PartialMatch\" with this instanceId and reconciliationType")
|
32
|
+
link_partial_matches: Link = Field(..., alias="linkPartialMatches")
|
33
|
+
count_break: StrictInt = Field(..., alias="countBreak", description="The number of comparison results of resultType \"Break\" with this instanceId and reconciliationType")
|
34
|
+
link_breaks: Link = Field(..., alias="linkBreaks")
|
35
|
+
count_not_found: StrictInt = Field(..., alias="countNotFound", description="The number of comparison results of resultType \"NotFound\" with this instanceId and reconciliationType")
|
36
|
+
link_not_found: Link = Field(..., alias="linkNotFound")
|
37
|
+
__properties = ["countMatch", "linkMatches", "countPartialMatch", "linkPartialMatches", "countBreak", "linkBreaks", "countNotFound", "linkNotFound"]
|
38
|
+
|
39
|
+
class Config:
|
40
|
+
"""Pydantic configuration"""
|
41
|
+
allow_population_by_field_name = True
|
42
|
+
validate_assignment = True
|
43
|
+
|
44
|
+
def to_str(self) -> str:
|
45
|
+
"""Returns the string representation of the model using alias"""
|
46
|
+
return pprint.pformat(self.dict(by_alias=True))
|
47
|
+
|
48
|
+
def to_json(self) -> str:
|
49
|
+
"""Returns the JSON representation of the model using alias"""
|
50
|
+
return json.dumps(self.to_dict())
|
51
|
+
|
52
|
+
@classmethod
|
53
|
+
def from_json(cls, json_str: str) -> GroupReconciliationResultTypes:
|
54
|
+
"""Create an instance of GroupReconciliationResultTypes from a JSON string"""
|
55
|
+
return cls.from_dict(json.loads(json_str))
|
56
|
+
|
57
|
+
def to_dict(self):
|
58
|
+
"""Returns the dictionary representation of the model using alias"""
|
59
|
+
_dict = self.dict(by_alias=True,
|
60
|
+
exclude={
|
61
|
+
},
|
62
|
+
exclude_none=True)
|
63
|
+
# override the default output from pydantic by calling `to_dict()` of link_matches
|
64
|
+
if self.link_matches:
|
65
|
+
_dict['linkMatches'] = self.link_matches.to_dict()
|
66
|
+
# override the default output from pydantic by calling `to_dict()` of link_partial_matches
|
67
|
+
if self.link_partial_matches:
|
68
|
+
_dict['linkPartialMatches'] = self.link_partial_matches.to_dict()
|
69
|
+
# override the default output from pydantic by calling `to_dict()` of link_breaks
|
70
|
+
if self.link_breaks:
|
71
|
+
_dict['linkBreaks'] = self.link_breaks.to_dict()
|
72
|
+
# override the default output from pydantic by calling `to_dict()` of link_not_found
|
73
|
+
if self.link_not_found:
|
74
|
+
_dict['linkNotFound'] = self.link_not_found.to_dict()
|
75
|
+
return _dict
|
76
|
+
|
77
|
+
@classmethod
|
78
|
+
def from_dict(cls, obj: dict) -> GroupReconciliationResultTypes:
|
79
|
+
"""Create an instance of GroupReconciliationResultTypes from a dict"""
|
80
|
+
if obj is None:
|
81
|
+
return None
|
82
|
+
|
83
|
+
if not isinstance(obj, dict):
|
84
|
+
return GroupReconciliationResultTypes.parse_obj(obj)
|
85
|
+
|
86
|
+
_obj = GroupReconciliationResultTypes.parse_obj({
|
87
|
+
"count_match": obj.get("countMatch"),
|
88
|
+
"link_matches": Link.from_dict(obj.get("linkMatches")) if obj.get("linkMatches") is not None else None,
|
89
|
+
"count_partial_match": obj.get("countPartialMatch"),
|
90
|
+
"link_partial_matches": Link.from_dict(obj.get("linkPartialMatches")) if obj.get("linkPartialMatches") is not None else None,
|
91
|
+
"count_break": obj.get("countBreak"),
|
92
|
+
"link_breaks": Link.from_dict(obj.get("linkBreaks")) if obj.get("linkBreaks") is not None else None,
|
93
|
+
"count_not_found": obj.get("countNotFound"),
|
94
|
+
"link_not_found": Link.from_dict(obj.get("linkNotFound")) if obj.get("linkNotFound") is not None else None
|
95
|
+
})
|
96
|
+
return _obj
|
@@ -0,0 +1,96 @@
|
|
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, StrictInt
|
23
|
+
from lusid.models.link import Link
|
24
|
+
|
25
|
+
class GroupReconciliationReviewStatuses(BaseModel):
|
26
|
+
"""
|
27
|
+
GroupReconciliationReviewStatuses
|
28
|
+
"""
|
29
|
+
count_pending: StrictInt = Field(..., alias="countPending", description="The number of comparison results of reviewStatus \"Pending\" with this instanceId and reconciliationType")
|
30
|
+
link_pending: Link = Field(..., alias="linkPending")
|
31
|
+
count_reviewed: StrictInt = Field(..., alias="countReviewed", description="The number of comparison results of reviewStatus \"Reviewed\" with this instanceId and reconciliationType")
|
32
|
+
link_reviewed: Link = Field(..., alias="linkReviewed")
|
33
|
+
count_matched: StrictInt = Field(..., alias="countMatched", description="The number of comparison results of reviewStatus \"Matched\" with this instanceId and reconciliationType")
|
34
|
+
link_matched: Link = Field(..., alias="linkMatched")
|
35
|
+
count_invalid: StrictInt = Field(..., alias="countInvalid", description="The number of comparison results of reviewStatus \"Invalid\" with this instanceId and reconciliationType")
|
36
|
+
link_invalid: Link = Field(..., alias="linkInvalid")
|
37
|
+
__properties = ["countPending", "linkPending", "countReviewed", "linkReviewed", "countMatched", "linkMatched", "countInvalid", "linkInvalid"]
|
38
|
+
|
39
|
+
class Config:
|
40
|
+
"""Pydantic configuration"""
|
41
|
+
allow_population_by_field_name = True
|
42
|
+
validate_assignment = True
|
43
|
+
|
44
|
+
def to_str(self) -> str:
|
45
|
+
"""Returns the string representation of the model using alias"""
|
46
|
+
return pprint.pformat(self.dict(by_alias=True))
|
47
|
+
|
48
|
+
def to_json(self) -> str:
|
49
|
+
"""Returns the JSON representation of the model using alias"""
|
50
|
+
return json.dumps(self.to_dict())
|
51
|
+
|
52
|
+
@classmethod
|
53
|
+
def from_json(cls, json_str: str) -> GroupReconciliationReviewStatuses:
|
54
|
+
"""Create an instance of GroupReconciliationReviewStatuses from a JSON string"""
|
55
|
+
return cls.from_dict(json.loads(json_str))
|
56
|
+
|
57
|
+
def to_dict(self):
|
58
|
+
"""Returns the dictionary representation of the model using alias"""
|
59
|
+
_dict = self.dict(by_alias=True,
|
60
|
+
exclude={
|
61
|
+
},
|
62
|
+
exclude_none=True)
|
63
|
+
# override the default output from pydantic by calling `to_dict()` of link_pending
|
64
|
+
if self.link_pending:
|
65
|
+
_dict['linkPending'] = self.link_pending.to_dict()
|
66
|
+
# override the default output from pydantic by calling `to_dict()` of link_reviewed
|
67
|
+
if self.link_reviewed:
|
68
|
+
_dict['linkReviewed'] = self.link_reviewed.to_dict()
|
69
|
+
# override the default output from pydantic by calling `to_dict()` of link_matched
|
70
|
+
if self.link_matched:
|
71
|
+
_dict['linkMatched'] = self.link_matched.to_dict()
|
72
|
+
# override the default output from pydantic by calling `to_dict()` of link_invalid
|
73
|
+
if self.link_invalid:
|
74
|
+
_dict['linkInvalid'] = self.link_invalid.to_dict()
|
75
|
+
return _dict
|
76
|
+
|
77
|
+
@classmethod
|
78
|
+
def from_dict(cls, obj: dict) -> GroupReconciliationReviewStatuses:
|
79
|
+
"""Create an instance of GroupReconciliationReviewStatuses from a dict"""
|
80
|
+
if obj is None:
|
81
|
+
return None
|
82
|
+
|
83
|
+
if not isinstance(obj, dict):
|
84
|
+
return GroupReconciliationReviewStatuses.parse_obj(obj)
|
85
|
+
|
86
|
+
_obj = GroupReconciliationReviewStatuses.parse_obj({
|
87
|
+
"count_pending": obj.get("countPending"),
|
88
|
+
"link_pending": Link.from_dict(obj.get("linkPending")) if obj.get("linkPending") is not None else None,
|
89
|
+
"count_reviewed": obj.get("countReviewed"),
|
90
|
+
"link_reviewed": Link.from_dict(obj.get("linkReviewed")) if obj.get("linkReviewed") is not None else None,
|
91
|
+
"count_matched": obj.get("countMatched"),
|
92
|
+
"link_matched": Link.from_dict(obj.get("linkMatched")) if obj.get("linkMatched") is not None else None,
|
93
|
+
"count_invalid": obj.get("countInvalid"),
|
94
|
+
"link_invalid": Link.from_dict(obj.get("linkInvalid")) if obj.get("linkInvalid") is not None else None
|
95
|
+
})
|
96
|
+
return _obj
|
@@ -0,0 +1,76 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
LUSID API
|
5
|
+
|
6
|
+
FINBOURNE Technology # noqa: E501
|
7
|
+
|
8
|
+
Contact: info@finbourne.com
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
|
+
|
11
|
+
Do not edit the class manually.
|
12
|
+
"""
|
13
|
+
|
14
|
+
|
15
|
+
from __future__ import annotations
|
16
|
+
import pprint
|
17
|
+
import re # noqa: F401
|
18
|
+
import json
|
19
|
+
|
20
|
+
|
21
|
+
from typing import Any, Dict, Optional
|
22
|
+
from pydantic.v1 import BaseModel, Field, StrictStr, constr
|
23
|
+
|
24
|
+
class GroupReconciliationRunDetails(BaseModel):
|
25
|
+
"""
|
26
|
+
GroupReconciliationRunDetails
|
27
|
+
"""
|
28
|
+
completion_status: constr(strict=True, min_length=1) = Field(..., alias="completionStatus", description="Provides the reconciliation completion status \"Completed\" | \"FailedToComplete\"")
|
29
|
+
error_detail: Optional[StrictStr] = Field(None, alias="errorDetail", description="Error information if the reconciliation failed to complete")
|
30
|
+
__properties = ["completionStatus", "errorDetail"]
|
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) -> GroupReconciliationRunDetails:
|
47
|
+
"""Create an instance of GroupReconciliationRunDetails from a JSON string"""
|
48
|
+
return cls.from_dict(json.loads(json_str))
|
49
|
+
|
50
|
+
def to_dict(self):
|
51
|
+
"""Returns the dictionary representation of the model using alias"""
|
52
|
+
_dict = self.dict(by_alias=True,
|
53
|
+
exclude={
|
54
|
+
},
|
55
|
+
exclude_none=True)
|
56
|
+
# set to None if error_detail (nullable) is None
|
57
|
+
# and __fields_set__ contains the field
|
58
|
+
if self.error_detail is None and "error_detail" in self.__fields_set__:
|
59
|
+
_dict['errorDetail'] = None
|
60
|
+
|
61
|
+
return _dict
|
62
|
+
|
63
|
+
@classmethod
|
64
|
+
def from_dict(cls, obj: dict) -> GroupReconciliationRunDetails:
|
65
|
+
"""Create an instance of GroupReconciliationRunDetails from a dict"""
|
66
|
+
if obj is None:
|
67
|
+
return None
|
68
|
+
|
69
|
+
if not isinstance(obj, dict):
|
70
|
+
return GroupReconciliationRunDetails.parse_obj(obj)
|
71
|
+
|
72
|
+
_obj = GroupReconciliationRunDetails.parse_obj({
|
73
|
+
"completion_status": obj.get("completionStatus"),
|
74
|
+
"error_detail": obj.get("errorDetail")
|
75
|
+
})
|
76
|
+
return _obj
|
@@ -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, Optional
|
22
|
+
from pydantic.v1 import BaseModel, Field, constr
|
23
|
+
from lusid.models.group_reconciliation_dates import GroupReconciliationDates
|
24
|
+
|
25
|
+
class GroupReconciliationRunRequest(BaseModel):
|
26
|
+
"""
|
27
|
+
GroupReconciliationRunRequest
|
28
|
+
"""
|
29
|
+
instance_id: constr(strict=True, max_length=64, min_length=1) = Field(..., alias="instanceId", description="Reconciliation run Id. Consists of run type (manual or workflow) and identifier.")
|
30
|
+
dates_to_reconcile: Optional[GroupReconciliationDates] = Field(None, alias="datesToReconcile")
|
31
|
+
__properties = ["instanceId", "datesToReconcile"]
|
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) -> GroupReconciliationRunRequest:
|
48
|
+
"""Create an instance of GroupReconciliationRunRequest from a JSON string"""
|
49
|
+
return cls.from_dict(json.loads(json_str))
|
50
|
+
|
51
|
+
def to_dict(self):
|
52
|
+
"""Returns the dictionary representation of the model using alias"""
|
53
|
+
_dict = self.dict(by_alias=True,
|
54
|
+
exclude={
|
55
|
+
},
|
56
|
+
exclude_none=True)
|
57
|
+
# override the default output from pydantic by calling `to_dict()` of dates_to_reconcile
|
58
|
+
if self.dates_to_reconcile:
|
59
|
+
_dict['datesToReconcile'] = self.dates_to_reconcile.to_dict()
|
60
|
+
return _dict
|
61
|
+
|
62
|
+
@classmethod
|
63
|
+
def from_dict(cls, obj: dict) -> GroupReconciliationRunRequest:
|
64
|
+
"""Create an instance of GroupReconciliationRunRequest from a dict"""
|
65
|
+
if obj is None:
|
66
|
+
return None
|
67
|
+
|
68
|
+
if not isinstance(obj, dict):
|
69
|
+
return GroupReconciliationRunRequest.parse_obj(obj)
|
70
|
+
|
71
|
+
_obj = GroupReconciliationRunRequest.parse_obj({
|
72
|
+
"instance_id": obj.get("instanceId"),
|
73
|
+
"dates_to_reconcile": GroupReconciliationDates.from_dict(obj.get("datesToReconcile")) if obj.get("datesToReconcile") is not None else None
|
74
|
+
})
|
75
|
+
return _obj
|
@@ -0,0 +1,77 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
LUSID API
|
5
|
+
|
6
|
+
FINBOURNE Technology # noqa: E501
|
7
|
+
|
8
|
+
Contact: info@finbourne.com
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
|
+
|
11
|
+
Do not edit the class manually.
|
12
|
+
"""
|
13
|
+
|
14
|
+
|
15
|
+
from __future__ import annotations
|
16
|
+
import pprint
|
17
|
+
import re # noqa: F401
|
18
|
+
import json
|
19
|
+
|
20
|
+
|
21
|
+
from typing import Any, Dict, List
|
22
|
+
from pydantic.v1 import BaseModel, Field, conlist
|
23
|
+
from lusid.models.group_reconciliation_summary import GroupReconciliationSummary
|
24
|
+
|
25
|
+
class GroupReconciliationRunResponse(BaseModel):
|
26
|
+
"""
|
27
|
+
GroupReconciliationRunResponse
|
28
|
+
"""
|
29
|
+
reconciliation_summaries: conlist(GroupReconciliationSummary) = Field(..., alias="reconciliationSummaries", description="One summary record for each of the \"Holding\" | \"Transaction\" | \"Valuation\" reconciliations performed")
|
30
|
+
__properties = ["reconciliationSummaries"]
|
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) -> GroupReconciliationRunResponse:
|
47
|
+
"""Create an instance of GroupReconciliationRunResponse 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
|
+
# override the default output from pydantic by calling `to_dict()` of each item in reconciliation_summaries (list)
|
57
|
+
_items = []
|
58
|
+
if self.reconciliation_summaries:
|
59
|
+
for _item in self.reconciliation_summaries:
|
60
|
+
if _item:
|
61
|
+
_items.append(_item.to_dict())
|
62
|
+
_dict['reconciliationSummaries'] = _items
|
63
|
+
return _dict
|
64
|
+
|
65
|
+
@classmethod
|
66
|
+
def from_dict(cls, obj: dict) -> GroupReconciliationRunResponse:
|
67
|
+
"""Create an instance of GroupReconciliationRunResponse from a dict"""
|
68
|
+
if obj is None:
|
69
|
+
return None
|
70
|
+
|
71
|
+
if not isinstance(obj, dict):
|
72
|
+
return GroupReconciliationRunResponse.parse_obj(obj)
|
73
|
+
|
74
|
+
_obj = GroupReconciliationRunResponse.parse_obj({
|
75
|
+
"reconciliation_summaries": [GroupReconciliationSummary.from_dict(_item) for _item in obj.get("reconciliationSummaries")] if obj.get("reconciliationSummaries") is not None else None
|
76
|
+
})
|
77
|
+
return _obj
|
@@ -0,0 +1,121 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
LUSID API
|
5
|
+
|
6
|
+
FINBOURNE Technology # noqa: E501
|
7
|
+
|
8
|
+
Contact: info@finbourne.com
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
|
+
|
11
|
+
Do not edit the class manually.
|
12
|
+
"""
|
13
|
+
|
14
|
+
|
15
|
+
from __future__ import annotations
|
16
|
+
import pprint
|
17
|
+
import re # noqa: F401
|
18
|
+
import json
|
19
|
+
|
20
|
+
|
21
|
+
from typing import Any, Dict, Optional
|
22
|
+
from pydantic.v1 import BaseModel, Field, StrictInt, constr
|
23
|
+
from lusid.models.group_reconciliation_dates import GroupReconciliationDates
|
24
|
+
from lusid.models.group_reconciliation_instance_id import GroupReconciliationInstanceId
|
25
|
+
from lusid.models.group_reconciliation_result_statuses import GroupReconciliationResultStatuses
|
26
|
+
from lusid.models.group_reconciliation_result_types import GroupReconciliationResultTypes
|
27
|
+
from lusid.models.group_reconciliation_review_statuses import GroupReconciliationReviewStatuses
|
28
|
+
from lusid.models.group_reconciliation_run_details import GroupReconciliationRunDetails
|
29
|
+
from lusid.models.link import Link
|
30
|
+
from lusid.models.resource_id import ResourceId
|
31
|
+
|
32
|
+
class GroupReconciliationSummary(BaseModel):
|
33
|
+
"""
|
34
|
+
GroupReconciliationSummary
|
35
|
+
"""
|
36
|
+
run_details: Optional[GroupReconciliationRunDetails] = Field(None, alias="runDetails")
|
37
|
+
group_reconciliation_definition_id: Optional[ResourceId] = Field(None, alias="groupReconciliationDefinitionId")
|
38
|
+
reconciliation_type: constr(strict=True, min_length=1) = Field(..., alias="reconciliationType", description="The type of reconciliation to perform. \"Holding\" | \"Transaction\" | \"Valuation\"")
|
39
|
+
instance_id: GroupReconciliationInstanceId = Field(..., alias="instanceId")
|
40
|
+
dates_reconciled: GroupReconciliationDates = Field(..., alias="datesReconciled")
|
41
|
+
reconciliation_run_as_at: constr(strict=True, min_length=1) = Field(..., alias="reconciliationRunAsAt", description="The date and time the reconciliation was run")
|
42
|
+
count_comparison_results: StrictInt = Field(..., alias="countComparisonResults", description="The total number of comparison results with this InstanceId and ReconciliationType")
|
43
|
+
link_comparison_results: Optional[Link] = Field(None, alias="linkComparisonResults")
|
44
|
+
result_types: Optional[GroupReconciliationResultTypes] = Field(None, alias="resultTypes")
|
45
|
+
result_statuses: Optional[GroupReconciliationResultStatuses] = Field(None, alias="resultStatuses")
|
46
|
+
review_statuses: Optional[GroupReconciliationReviewStatuses] = Field(None, alias="reviewStatuses")
|
47
|
+
__properties = ["runDetails", "groupReconciliationDefinitionId", "reconciliationType", "instanceId", "datesReconciled", "reconciliationRunAsAt", "countComparisonResults", "linkComparisonResults", "resultTypes", "resultStatuses", "reviewStatuses"]
|
48
|
+
|
49
|
+
class Config:
|
50
|
+
"""Pydantic configuration"""
|
51
|
+
allow_population_by_field_name = True
|
52
|
+
validate_assignment = True
|
53
|
+
|
54
|
+
def to_str(self) -> str:
|
55
|
+
"""Returns the string representation of the model using alias"""
|
56
|
+
return pprint.pformat(self.dict(by_alias=True))
|
57
|
+
|
58
|
+
def to_json(self) -> str:
|
59
|
+
"""Returns the JSON representation of the model using alias"""
|
60
|
+
return json.dumps(self.to_dict())
|
61
|
+
|
62
|
+
@classmethod
|
63
|
+
def from_json(cls, json_str: str) -> GroupReconciliationSummary:
|
64
|
+
"""Create an instance of GroupReconciliationSummary from a JSON string"""
|
65
|
+
return cls.from_dict(json.loads(json_str))
|
66
|
+
|
67
|
+
def to_dict(self):
|
68
|
+
"""Returns the dictionary representation of the model using alias"""
|
69
|
+
_dict = self.dict(by_alias=True,
|
70
|
+
exclude={
|
71
|
+
},
|
72
|
+
exclude_none=True)
|
73
|
+
# override the default output from pydantic by calling `to_dict()` of run_details
|
74
|
+
if self.run_details:
|
75
|
+
_dict['runDetails'] = self.run_details.to_dict()
|
76
|
+
# override the default output from pydantic by calling `to_dict()` of group_reconciliation_definition_id
|
77
|
+
if self.group_reconciliation_definition_id:
|
78
|
+
_dict['groupReconciliationDefinitionId'] = self.group_reconciliation_definition_id.to_dict()
|
79
|
+
# override the default output from pydantic by calling `to_dict()` of instance_id
|
80
|
+
if self.instance_id:
|
81
|
+
_dict['instanceId'] = self.instance_id.to_dict()
|
82
|
+
# override the default output from pydantic by calling `to_dict()` of dates_reconciled
|
83
|
+
if self.dates_reconciled:
|
84
|
+
_dict['datesReconciled'] = self.dates_reconciled.to_dict()
|
85
|
+
# override the default output from pydantic by calling `to_dict()` of link_comparison_results
|
86
|
+
if self.link_comparison_results:
|
87
|
+
_dict['linkComparisonResults'] = self.link_comparison_results.to_dict()
|
88
|
+
# override the default output from pydantic by calling `to_dict()` of result_types
|
89
|
+
if self.result_types:
|
90
|
+
_dict['resultTypes'] = self.result_types.to_dict()
|
91
|
+
# override the default output from pydantic by calling `to_dict()` of result_statuses
|
92
|
+
if self.result_statuses:
|
93
|
+
_dict['resultStatuses'] = self.result_statuses.to_dict()
|
94
|
+
# override the default output from pydantic by calling `to_dict()` of review_statuses
|
95
|
+
if self.review_statuses:
|
96
|
+
_dict['reviewStatuses'] = self.review_statuses.to_dict()
|
97
|
+
return _dict
|
98
|
+
|
99
|
+
@classmethod
|
100
|
+
def from_dict(cls, obj: dict) -> GroupReconciliationSummary:
|
101
|
+
"""Create an instance of GroupReconciliationSummary from a dict"""
|
102
|
+
if obj is None:
|
103
|
+
return None
|
104
|
+
|
105
|
+
if not isinstance(obj, dict):
|
106
|
+
return GroupReconciliationSummary.parse_obj(obj)
|
107
|
+
|
108
|
+
_obj = GroupReconciliationSummary.parse_obj({
|
109
|
+
"run_details": GroupReconciliationRunDetails.from_dict(obj.get("runDetails")) if obj.get("runDetails") is not None else None,
|
110
|
+
"group_reconciliation_definition_id": ResourceId.from_dict(obj.get("groupReconciliationDefinitionId")) if obj.get("groupReconciliationDefinitionId") is not None else None,
|
111
|
+
"reconciliation_type": obj.get("reconciliationType"),
|
112
|
+
"instance_id": GroupReconciliationInstanceId.from_dict(obj.get("instanceId")) if obj.get("instanceId") is not None else None,
|
113
|
+
"dates_reconciled": GroupReconciliationDates.from_dict(obj.get("datesReconciled")) if obj.get("datesReconciled") is not None else None,
|
114
|
+
"reconciliation_run_as_at": obj.get("reconciliationRunAsAt"),
|
115
|
+
"count_comparison_results": obj.get("countComparisonResults"),
|
116
|
+
"link_comparison_results": Link.from_dict(obj.get("linkComparisonResults")) if obj.get("linkComparisonResults") is not None else None,
|
117
|
+
"result_types": GroupReconciliationResultTypes.from_dict(obj.get("resultTypes")) if obj.get("resultTypes") is not None else None,
|
118
|
+
"result_statuses": GroupReconciliationResultStatuses.from_dict(obj.get("resultStatuses")) if obj.get("resultStatuses") is not None else None,
|
119
|
+
"review_statuses": GroupReconciliationReviewStatuses.from_dict(obj.get("reviewStatuses")) if obj.get("reviewStatuses") is not None else None
|
120
|
+
})
|
121
|
+
return _obj
|