lusid-sdk 2.1.468__py3-none-any.whl → 2.1.479__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 (68) hide show
  1. lusid/__init__.py +28 -0
  2. lusid/api/group_reconciliations_api.py +377 -10
  3. lusid/api/transaction_portfolios_api.py +2 -2
  4. lusid/configuration.py +1 -1
  5. lusid/models/__init__.py +28 -0
  6. lusid/models/accumulation_event.py +3 -3
  7. lusid/models/amortisation_event.py +3 -3
  8. lusid/models/asset_leg.py +1 -1
  9. lusid/models/bond_coupon_event.py +3 -3
  10. lusid/models/bond_default_event.py +3 -3
  11. lusid/models/bond_principal_event.py +3 -3
  12. lusid/models/bonus_issue_event.py +3 -3
  13. lusid/models/call_on_intermediate_securities_event.py +139 -0
  14. lusid/models/capital_distribution_event.py +3 -3
  15. lusid/models/cash_dividend_event.py +3 -3
  16. lusid/models/cash_flow_event.py +3 -3
  17. lusid/models/cds_credit_event.py +3 -3
  18. lusid/models/cdx_credit_event.py +3 -3
  19. lusid/models/close_event.py +3 -3
  20. lusid/models/comparison_attribute_value_pair.py +71 -0
  21. lusid/models/component_transaction.py +10 -3
  22. lusid/models/credit_premium_cash_flow_event.py +3 -3
  23. lusid/models/dividend_option_event.py +3 -3
  24. lusid/models/dividend_reinvestment_event.py +3 -3
  25. lusid/models/exercise_event.py +3 -3
  26. lusid/models/expiry_event.py +3 -3
  27. lusid/models/future_expiry_event.py +3 -3
  28. lusid/models/fx_forward_settlement_event.py +3 -3
  29. lusid/models/group_reconciliation_aggregate_attribute_values.py +86 -0
  30. lusid/models/group_reconciliation_comparison_result.py +148 -0
  31. lusid/models/group_reconciliation_core_attribute_values.py +86 -0
  32. lusid/models/group_reconciliation_date_pair.py +81 -0
  33. lusid/models/group_reconciliation_dates.py +78 -0
  34. lusid/models/group_reconciliation_instance_id.py +71 -0
  35. lusid/models/group_reconciliation_user_review.py +112 -0
  36. lusid/models/group_reconciliation_user_review_break_code.py +80 -0
  37. lusid/models/group_reconciliation_user_review_comment.py +80 -0
  38. lusid/models/group_reconciliation_user_review_match_key.py +80 -0
  39. lusid/models/informational_error_event.py +3 -3
  40. lusid/models/informational_event.py +3 -3
  41. lusid/models/instrument_event.py +6 -5
  42. lusid/models/instrument_event_type.py +1 -0
  43. lusid/models/maturity_event.py +3 -3
  44. lusid/models/mbs_coupon_event.py +3 -3
  45. lusid/models/mbs_interest_deferral_event.py +3 -3
  46. lusid/models/mbs_interest_shortfall_event.py +3 -3
  47. lusid/models/mbs_principal_event.py +3 -3
  48. lusid/models/mbs_principal_write_off_event.py +3 -3
  49. lusid/models/merger_event.py +3 -3
  50. lusid/models/open_event.py +3 -3
  51. lusid/models/option_exercise_election.py +73 -0
  52. lusid/models/paged_resource_list_of_group_reconciliation_comparison_result.py +113 -0
  53. lusid/models/raw_vendor_event.py +3 -3
  54. lusid/models/reset_event.py +3 -3
  55. lusid/models/reverse_stock_split_event.py +3 -3
  56. lusid/models/scrip_dividend_event.py +3 -3
  57. lusid/models/spin_off_event.py +3 -3
  58. lusid/models/stock_dividend_event.py +3 -3
  59. lusid/models/stock_split_event.py +3 -3
  60. lusid/models/swap_cash_flow_event.py +3 -3
  61. lusid/models/swap_principal_event.py +3 -3
  62. lusid/models/tender_event.py +3 -3
  63. lusid/models/total_return_swap.py +1 -1
  64. lusid/models/transition_event.py +3 -3
  65. lusid/models/trigger_event.py +3 -3
  66. {lusid_sdk-2.1.468.dist-info → lusid_sdk-2.1.479.dist-info}/METADATA +19 -3
  67. {lusid_sdk-2.1.468.dist-info → lusid_sdk-2.1.479.dist-info}/RECORD +68 -54
  68. {lusid_sdk-2.1.468.dist-info → lusid_sdk-2.1.479.dist-info}/WHEEL +0 -0
@@ -0,0 +1,148 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ LUSID API
5
+
6
+ FINBOURNE Technology # noqa: E501
7
+
8
+ Contact: info@finbourne.com
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """
13
+
14
+
15
+ from __future__ import annotations
16
+ import pprint
17
+ import re # noqa: F401
18
+ import json
19
+
20
+ from datetime import datetime
21
+ from typing import Any, Dict, List, Optional
22
+ from pydantic.v1 import BaseModel, Field, StrictStr, conlist, constr
23
+ from lusid.models.group_reconciliation_aggregate_attribute_values import GroupReconciliationAggregateAttributeValues
24
+ from lusid.models.group_reconciliation_core_attribute_values import GroupReconciliationCoreAttributeValues
25
+ from lusid.models.group_reconciliation_dates import GroupReconciliationDates
26
+ from lusid.models.group_reconciliation_instance_id import GroupReconciliationInstanceId
27
+ from lusid.models.group_reconciliation_user_review import GroupReconciliationUserReview
28
+ from lusid.models.link import Link
29
+ from lusid.models.resource_id import ResourceId
30
+ from lusid.models.version import Version
31
+
32
+ class GroupReconciliationComparisonResult(BaseModel):
33
+ """
34
+ GroupReconciliationComparisonResult
35
+ """
36
+ id: ResourceId = Field(...)
37
+ reconciliation_type: constr(strict=True, min_length=1) = Field(..., alias="reconciliationType", description="The type of reconciliation to perform. \"Holding\" | \"Transaction\" | \"Valuation\"")
38
+ group_reconciliation_definition_id: ResourceId = Field(..., alias="groupReconciliationDefinitionId")
39
+ instance_id: GroupReconciliationInstanceId = Field(..., alias="instanceId")
40
+ comparison_result_id: constr(strict=True, min_length=1) = Field(..., alias="comparisonResultId", description="Comparison result identifier, encoded value for core attribute results, aggregate attribute results, reconciliation type and run instanceId.")
41
+ reconciliation_run_as_at: datetime = Field(..., alias="reconciliationRunAsAt", description="The timestamp when the run occurred.")
42
+ result_type: constr(strict=True, min_length=1) = Field(..., alias="resultType", description="Reconciliation run general result. \"Break\" | \"Match\" | \"PartialMatch\" | \"NotFound")
43
+ result_status: constr(strict=True, min_length=1) = Field(..., alias="resultStatus", description="Indicates how a particular result evolves from one run to the next. \"New\" | \"Confirmed\" | \"Changed\"")
44
+ review_status: constr(strict=True, min_length=1) = Field(..., alias="reviewStatus", description="Status of whether user has provided any input (comments, manual matches, break codes). \"Pending\" | \"Reviewed\" | \"Matched\" | \"Invalid\"")
45
+ dates_reconciled: GroupReconciliationDates = Field(..., alias="datesReconciled")
46
+ core_attributes: GroupReconciliationCoreAttributeValues = Field(..., alias="coreAttributes")
47
+ aggregate_attributes: GroupReconciliationAggregateAttributeValues = Field(..., alias="aggregateAttributes")
48
+ user_review: Optional[GroupReconciliationUserReview] = Field(None, alias="userReview")
49
+ href: Optional[StrictStr] = Field(None, description="The specific Uniform Resource Identifier (URI) for this resource at the requested effective and asAt datetime.")
50
+ version: Optional[Version] = None
51
+ links: Optional[conlist(Link)] = None
52
+ __properties = ["id", "reconciliationType", "groupReconciliationDefinitionId", "instanceId", "comparisonResultId", "reconciliationRunAsAt", "resultType", "resultStatus", "reviewStatus", "datesReconciled", "coreAttributes", "aggregateAttributes", "userReview", "href", "version", "links"]
53
+
54
+ class Config:
55
+ """Pydantic configuration"""
56
+ allow_population_by_field_name = True
57
+ validate_assignment = True
58
+
59
+ def to_str(self) -> str:
60
+ """Returns the string representation of the model using alias"""
61
+ return pprint.pformat(self.dict(by_alias=True))
62
+
63
+ def to_json(self) -> str:
64
+ """Returns the JSON representation of the model using alias"""
65
+ return json.dumps(self.to_dict())
66
+
67
+ @classmethod
68
+ def from_json(cls, json_str: str) -> GroupReconciliationComparisonResult:
69
+ """Create an instance of GroupReconciliationComparisonResult from a JSON string"""
70
+ return cls.from_dict(json.loads(json_str))
71
+
72
+ def to_dict(self):
73
+ """Returns the dictionary representation of the model using alias"""
74
+ _dict = self.dict(by_alias=True,
75
+ exclude={
76
+ },
77
+ exclude_none=True)
78
+ # override the default output from pydantic by calling `to_dict()` of id
79
+ if self.id:
80
+ _dict['id'] = self.id.to_dict()
81
+ # override the default output from pydantic by calling `to_dict()` of group_reconciliation_definition_id
82
+ if self.group_reconciliation_definition_id:
83
+ _dict['groupReconciliationDefinitionId'] = self.group_reconciliation_definition_id.to_dict()
84
+ # override the default output from pydantic by calling `to_dict()` of instance_id
85
+ if self.instance_id:
86
+ _dict['instanceId'] = self.instance_id.to_dict()
87
+ # override the default output from pydantic by calling `to_dict()` of dates_reconciled
88
+ if self.dates_reconciled:
89
+ _dict['datesReconciled'] = self.dates_reconciled.to_dict()
90
+ # override the default output from pydantic by calling `to_dict()` of core_attributes
91
+ if self.core_attributes:
92
+ _dict['coreAttributes'] = self.core_attributes.to_dict()
93
+ # override the default output from pydantic by calling `to_dict()` of aggregate_attributes
94
+ if self.aggregate_attributes:
95
+ _dict['aggregateAttributes'] = self.aggregate_attributes.to_dict()
96
+ # override the default output from pydantic by calling `to_dict()` of user_review
97
+ if self.user_review:
98
+ _dict['userReview'] = self.user_review.to_dict()
99
+ # override the default output from pydantic by calling `to_dict()` of version
100
+ if self.version:
101
+ _dict['version'] = self.version.to_dict()
102
+ # override the default output from pydantic by calling `to_dict()` of each item in links (list)
103
+ _items = []
104
+ if self.links:
105
+ for _item in self.links:
106
+ if _item:
107
+ _items.append(_item.to_dict())
108
+ _dict['links'] = _items
109
+ # set to None if href (nullable) is None
110
+ # and __fields_set__ contains the field
111
+ if self.href is None and "href" in self.__fields_set__:
112
+ _dict['href'] = None
113
+
114
+ # set to None if links (nullable) is None
115
+ # and __fields_set__ contains the field
116
+ if self.links is None and "links" in self.__fields_set__:
117
+ _dict['links'] = None
118
+
119
+ return _dict
120
+
121
+ @classmethod
122
+ def from_dict(cls, obj: dict) -> GroupReconciliationComparisonResult:
123
+ """Create an instance of GroupReconciliationComparisonResult from a dict"""
124
+ if obj is None:
125
+ return None
126
+
127
+ if not isinstance(obj, dict):
128
+ return GroupReconciliationComparisonResult.parse_obj(obj)
129
+
130
+ _obj = GroupReconciliationComparisonResult.parse_obj({
131
+ "id": ResourceId.from_dict(obj.get("id")) if obj.get("id") is not None else None,
132
+ "reconciliation_type": obj.get("reconciliationType"),
133
+ "group_reconciliation_definition_id": ResourceId.from_dict(obj.get("groupReconciliationDefinitionId")) if obj.get("groupReconciliationDefinitionId") is not None else None,
134
+ "instance_id": GroupReconciliationInstanceId.from_dict(obj.get("instanceId")) if obj.get("instanceId") is not None else None,
135
+ "comparison_result_id": obj.get("comparisonResultId"),
136
+ "reconciliation_run_as_at": obj.get("reconciliationRunAsAt"),
137
+ "result_type": obj.get("resultType"),
138
+ "result_status": obj.get("resultStatus"),
139
+ "review_status": obj.get("reviewStatus"),
140
+ "dates_reconciled": GroupReconciliationDates.from_dict(obj.get("datesReconciled")) if obj.get("datesReconciled") is not None else None,
141
+ "core_attributes": GroupReconciliationCoreAttributeValues.from_dict(obj.get("coreAttributes")) if obj.get("coreAttributes") is not None else None,
142
+ "aggregate_attributes": GroupReconciliationAggregateAttributeValues.from_dict(obj.get("aggregateAttributes")) if obj.get("aggregateAttributes") is not None else None,
143
+ "user_review": GroupReconciliationUserReview.from_dict(obj.get("userReview")) if obj.get("userReview") is not None else None,
144
+ "href": obj.get("href"),
145
+ "version": Version.from_dict(obj.get("version")) if obj.get("version") is not None else None,
146
+ "links": [Link.from_dict(_item) for _item in obj.get("links")] if obj.get("links") is not None else None
147
+ })
148
+ return _obj
@@ -0,0 +1,86 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ LUSID API
5
+
6
+ FINBOURNE Technology # noqa: E501
7
+
8
+ Contact: info@finbourne.com
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """
13
+
14
+
15
+ from __future__ import annotations
16
+ import pprint
17
+ import re # noqa: F401
18
+ import json
19
+
20
+
21
+ from typing import Any, Dict, List
22
+ from pydantic.v1 import BaseModel, Field, conlist
23
+ from lusid.models.comparison_attribute_value_pair import ComparisonAttributeValuePair
24
+
25
+ class GroupReconciliationCoreAttributeValues(BaseModel):
26
+ """
27
+ GroupReconciliationCoreAttributeValues
28
+ """
29
+ left_core_attributes: conlist(ComparisonAttributeValuePair) = Field(..., alias="leftCoreAttributes", description="Core attribute names and values for the left hand entity being reconciled.")
30
+ right_core_attributes: conlist(ComparisonAttributeValuePair) = Field(..., alias="rightCoreAttributes", description="Core attribute names and values for the right hand entity being reconciled.")
31
+ __properties = ["leftCoreAttributes", "rightCoreAttributes"]
32
+
33
+ class Config:
34
+ """Pydantic configuration"""
35
+ allow_population_by_field_name = True
36
+ validate_assignment = True
37
+
38
+ def to_str(self) -> str:
39
+ """Returns the string representation of the model using alias"""
40
+ return pprint.pformat(self.dict(by_alias=True))
41
+
42
+ def to_json(self) -> str:
43
+ """Returns the JSON representation of the model using alias"""
44
+ return json.dumps(self.to_dict())
45
+
46
+ @classmethod
47
+ def from_json(cls, json_str: str) -> GroupReconciliationCoreAttributeValues:
48
+ """Create an instance of GroupReconciliationCoreAttributeValues from a JSON string"""
49
+ return cls.from_dict(json.loads(json_str))
50
+
51
+ def to_dict(self):
52
+ """Returns the dictionary representation of the model using alias"""
53
+ _dict = self.dict(by_alias=True,
54
+ exclude={
55
+ },
56
+ exclude_none=True)
57
+ # override the default output from pydantic by calling `to_dict()` of each item in left_core_attributes (list)
58
+ _items = []
59
+ if self.left_core_attributes:
60
+ for _item in self.left_core_attributes:
61
+ if _item:
62
+ _items.append(_item.to_dict())
63
+ _dict['leftCoreAttributes'] = _items
64
+ # override the default output from pydantic by calling `to_dict()` of each item in right_core_attributes (list)
65
+ _items = []
66
+ if self.right_core_attributes:
67
+ for _item in self.right_core_attributes:
68
+ if _item:
69
+ _items.append(_item.to_dict())
70
+ _dict['rightCoreAttributes'] = _items
71
+ return _dict
72
+
73
+ @classmethod
74
+ def from_dict(cls, obj: dict) -> GroupReconciliationCoreAttributeValues:
75
+ """Create an instance of GroupReconciliationCoreAttributeValues from a dict"""
76
+ if obj is None:
77
+ return None
78
+
79
+ if not isinstance(obj, dict):
80
+ return GroupReconciliationCoreAttributeValues.parse_obj(obj)
81
+
82
+ _obj = GroupReconciliationCoreAttributeValues.parse_obj({
83
+ "left_core_attributes": [ComparisonAttributeValuePair.from_dict(_item) for _item in obj.get("leftCoreAttributes")] if obj.get("leftCoreAttributes") is not None else None,
84
+ "right_core_attributes": [ComparisonAttributeValuePair.from_dict(_item) for _item in obj.get("rightCoreAttributes")] if obj.get("rightCoreAttributes") is not None else None
85
+ })
86
+ return _obj
@@ -0,0 +1,81 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ LUSID API
5
+
6
+ FINBOURNE Technology # noqa: E501
7
+
8
+ Contact: info@finbourne.com
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """
13
+
14
+
15
+ from __future__ import annotations
16
+ import pprint
17
+ import re # noqa: F401
18
+ import json
19
+
20
+ from datetime import datetime
21
+ from typing import Any, Dict, Optional
22
+ from pydantic.v1 import BaseModel, Field
23
+
24
+ class GroupReconciliationDatePair(BaseModel):
25
+ """
26
+ GroupReconciliationDatePair
27
+ """
28
+ effective_at: Optional[datetime] = Field(None, alias="effectiveAt", description="The effective at date for the reconciliation")
29
+ as_at: Optional[datetime] = Field(None, alias="asAt", description="The as at date for the reconciliation")
30
+ __properties = ["effectiveAt", "asAt"]
31
+
32
+ class Config:
33
+ """Pydantic configuration"""
34
+ allow_population_by_field_name = True
35
+ validate_assignment = True
36
+
37
+ def to_str(self) -> str:
38
+ """Returns the string representation of the model using alias"""
39
+ return pprint.pformat(self.dict(by_alias=True))
40
+
41
+ def to_json(self) -> str:
42
+ """Returns the JSON representation of the model using alias"""
43
+ return json.dumps(self.to_dict())
44
+
45
+ @classmethod
46
+ def from_json(cls, json_str: str) -> GroupReconciliationDatePair:
47
+ """Create an instance of GroupReconciliationDatePair from a JSON string"""
48
+ return cls.from_dict(json.loads(json_str))
49
+
50
+ def to_dict(self):
51
+ """Returns the dictionary representation of the model using alias"""
52
+ _dict = self.dict(by_alias=True,
53
+ exclude={
54
+ },
55
+ exclude_none=True)
56
+ # set to None if effective_at (nullable) is None
57
+ # and __fields_set__ contains the field
58
+ if self.effective_at is None and "effective_at" in self.__fields_set__:
59
+ _dict['effectiveAt'] = None
60
+
61
+ # set to None if as_at (nullable) is None
62
+ # and __fields_set__ contains the field
63
+ if self.as_at is None and "as_at" in self.__fields_set__:
64
+ _dict['asAt'] = None
65
+
66
+ return _dict
67
+
68
+ @classmethod
69
+ def from_dict(cls, obj: dict) -> GroupReconciliationDatePair:
70
+ """Create an instance of GroupReconciliationDatePair from a dict"""
71
+ if obj is None:
72
+ return None
73
+
74
+ if not isinstance(obj, dict):
75
+ return GroupReconciliationDatePair.parse_obj(obj)
76
+
77
+ _obj = GroupReconciliationDatePair.parse_obj({
78
+ "effective_at": obj.get("effectiveAt"),
79
+ "as_at": obj.get("asAt")
80
+ })
81
+ return _obj
@@ -0,0 +1,78 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ LUSID API
5
+
6
+ FINBOURNE Technology # noqa: E501
7
+
8
+ Contact: info@finbourne.com
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """
13
+
14
+
15
+ from __future__ import annotations
16
+ import pprint
17
+ import re # noqa: F401
18
+ import json
19
+
20
+
21
+ from typing import Any, Dict, Optional
22
+ from pydantic.v1 import BaseModel
23
+ from lusid.models.group_reconciliation_date_pair import GroupReconciliationDatePair
24
+
25
+ class GroupReconciliationDates(BaseModel):
26
+ """
27
+ GroupReconciliationDates
28
+ """
29
+ left: Optional[GroupReconciliationDatePair] = None
30
+ right: Optional[GroupReconciliationDatePair] = None
31
+ __properties = ["left", "right"]
32
+
33
+ class Config:
34
+ """Pydantic configuration"""
35
+ allow_population_by_field_name = True
36
+ validate_assignment = True
37
+
38
+ def to_str(self) -> str:
39
+ """Returns the string representation of the model using alias"""
40
+ return pprint.pformat(self.dict(by_alias=True))
41
+
42
+ def to_json(self) -> str:
43
+ """Returns the JSON representation of the model using alias"""
44
+ return json.dumps(self.to_dict())
45
+
46
+ @classmethod
47
+ def from_json(cls, json_str: str) -> GroupReconciliationDates:
48
+ """Create an instance of GroupReconciliationDates from a JSON string"""
49
+ return cls.from_dict(json.loads(json_str))
50
+
51
+ def to_dict(self):
52
+ """Returns the dictionary representation of the model using alias"""
53
+ _dict = self.dict(by_alias=True,
54
+ exclude={
55
+ },
56
+ exclude_none=True)
57
+ # override the default output from pydantic by calling `to_dict()` of left
58
+ if self.left:
59
+ _dict['left'] = self.left.to_dict()
60
+ # override the default output from pydantic by calling `to_dict()` of right
61
+ if self.right:
62
+ _dict['right'] = self.right.to_dict()
63
+ return _dict
64
+
65
+ @classmethod
66
+ def from_dict(cls, obj: dict) -> GroupReconciliationDates:
67
+ """Create an instance of GroupReconciliationDates from a dict"""
68
+ if obj is None:
69
+ return None
70
+
71
+ if not isinstance(obj, dict):
72
+ return GroupReconciliationDates.parse_obj(obj)
73
+
74
+ _obj = GroupReconciliationDates.parse_obj({
75
+ "left": GroupReconciliationDatePair.from_dict(obj.get("left")) if obj.get("left") is not None else None,
76
+ "right": GroupReconciliationDatePair.from_dict(obj.get("right")) if obj.get("right") is not None else None
77
+ })
78
+ return _obj
@@ -0,0 +1,71 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ LUSID API
5
+
6
+ FINBOURNE Technology # noqa: E501
7
+
8
+ Contact: info@finbourne.com
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """
13
+
14
+
15
+ from __future__ import annotations
16
+ import pprint
17
+ import re # noqa: F401
18
+ import json
19
+
20
+
21
+ from typing import Any, Dict
22
+ from pydantic.v1 import BaseModel, Field, constr
23
+
24
+ class GroupReconciliationInstanceId(BaseModel):
25
+ """
26
+ GroupReconciliationInstanceId
27
+ """
28
+ run_id_type: constr(strict=True, min_length=1) = Field(..., alias="runIdType", description="Type of the reconciliation run, manual or automatic (via the workflow). \"Manual\" | \"WorkflowServiceTaskId\"")
29
+ run_id_value: constr(strict=True, min_length=1) = Field(..., alias="runIdValue", description="Reconciliation run identifier: a manually-provided key or taskId.")
30
+ __properties = ["runIdType", "runIdValue"]
31
+
32
+ class Config:
33
+ """Pydantic configuration"""
34
+ allow_population_by_field_name = True
35
+ validate_assignment = True
36
+
37
+ def to_str(self) -> str:
38
+ """Returns the string representation of the model using alias"""
39
+ return pprint.pformat(self.dict(by_alias=True))
40
+
41
+ def to_json(self) -> str:
42
+ """Returns the JSON representation of the model using alias"""
43
+ return json.dumps(self.to_dict())
44
+
45
+ @classmethod
46
+ def from_json(cls, json_str: str) -> GroupReconciliationInstanceId:
47
+ """Create an instance of GroupReconciliationInstanceId from a JSON string"""
48
+ return cls.from_dict(json.loads(json_str))
49
+
50
+ def to_dict(self):
51
+ """Returns the dictionary representation of the model using alias"""
52
+ _dict = self.dict(by_alias=True,
53
+ exclude={
54
+ },
55
+ exclude_none=True)
56
+ return _dict
57
+
58
+ @classmethod
59
+ def from_dict(cls, obj: dict) -> GroupReconciliationInstanceId:
60
+ """Create an instance of GroupReconciliationInstanceId from a dict"""
61
+ if obj is None:
62
+ return None
63
+
64
+ if not isinstance(obj, dict):
65
+ return GroupReconciliationInstanceId.parse_obj(obj)
66
+
67
+ _obj = GroupReconciliationInstanceId.parse_obj({
68
+ "run_id_type": obj.get("runIdType"),
69
+ "run_id_value": obj.get("runIdValue")
70
+ })
71
+ return _obj
@@ -0,0 +1,112 @@
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, conlist
23
+ from lusid.models.group_reconciliation_user_review_break_code import GroupReconciliationUserReviewBreakCode
24
+ from lusid.models.group_reconciliation_user_review_comment import GroupReconciliationUserReviewComment
25
+ from lusid.models.group_reconciliation_user_review_match_key import GroupReconciliationUserReviewMatchKey
26
+
27
+ class GroupReconciliationUserReview(BaseModel):
28
+ """
29
+ GroupReconciliationUserReview
30
+ """
31
+ break_codes: Optional[conlist(GroupReconciliationUserReviewBreakCode)] = Field(None, alias="breakCodes", description="A list of break codes shared between the reconciliation runs of the same run instance and result hash.")
32
+ match_keys: Optional[conlist(GroupReconciliationUserReviewMatchKey)] = Field(None, alias="matchKeys", description="A list of match keys shared between the reconciliation runs of the same run instance and result hash.")
33
+ comments: Optional[conlist(GroupReconciliationUserReviewComment)] = Field(None, description="A list of comments shared between the reconciliation runs of the same run instance and result hash.")
34
+ __properties = ["breakCodes", "matchKeys", "comments"]
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) -> GroupReconciliationUserReview:
51
+ """Create an instance of GroupReconciliationUserReview 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 each item in break_codes (list)
61
+ _items = []
62
+ if self.break_codes:
63
+ for _item in self.break_codes:
64
+ if _item:
65
+ _items.append(_item.to_dict())
66
+ _dict['breakCodes'] = _items
67
+ # override the default output from pydantic by calling `to_dict()` of each item in match_keys (list)
68
+ _items = []
69
+ if self.match_keys:
70
+ for _item in self.match_keys:
71
+ if _item:
72
+ _items.append(_item.to_dict())
73
+ _dict['matchKeys'] = _items
74
+ # override the default output from pydantic by calling `to_dict()` of each item in comments (list)
75
+ _items = []
76
+ if self.comments:
77
+ for _item in self.comments:
78
+ if _item:
79
+ _items.append(_item.to_dict())
80
+ _dict['comments'] = _items
81
+ # set to None if break_codes (nullable) is None
82
+ # and __fields_set__ contains the field
83
+ if self.break_codes is None and "break_codes" in self.__fields_set__:
84
+ _dict['breakCodes'] = None
85
+
86
+ # set to None if match_keys (nullable) is None
87
+ # and __fields_set__ contains the field
88
+ if self.match_keys is None and "match_keys" in self.__fields_set__:
89
+ _dict['matchKeys'] = None
90
+
91
+ # set to None if comments (nullable) is None
92
+ # and __fields_set__ contains the field
93
+ if self.comments is None and "comments" in self.__fields_set__:
94
+ _dict['comments'] = None
95
+
96
+ return _dict
97
+
98
+ @classmethod
99
+ def from_dict(cls, obj: dict) -> GroupReconciliationUserReview:
100
+ """Create an instance of GroupReconciliationUserReview from a dict"""
101
+ if obj is None:
102
+ return None
103
+
104
+ if not isinstance(obj, dict):
105
+ return GroupReconciliationUserReview.parse_obj(obj)
106
+
107
+ _obj = GroupReconciliationUserReview.parse_obj({
108
+ "break_codes": [GroupReconciliationUserReviewBreakCode.from_dict(_item) for _item in obj.get("breakCodes")] if obj.get("breakCodes") is not None else None,
109
+ "match_keys": [GroupReconciliationUserReviewMatchKey.from_dict(_item) for _item in obj.get("matchKeys")] if obj.get("matchKeys") is not None else None,
110
+ "comments": [GroupReconciliationUserReviewComment.from_dict(_item) for _item in obj.get("comments")] if obj.get("comments") is not None else None
111
+ })
112
+ return _obj
@@ -0,0 +1,80 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ LUSID API
5
+
6
+ FINBOURNE Technology # noqa: E501
7
+
8
+ Contact: info@finbourne.com
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """
13
+
14
+
15
+ from __future__ import annotations
16
+ import pprint
17
+ import re # noqa: F401
18
+ import json
19
+
20
+ from datetime import datetime
21
+ from typing import Any, Dict, Optional
22
+ from pydantic.v1 import BaseModel, Field, constr
23
+
24
+ class GroupReconciliationUserReviewBreakCode(BaseModel):
25
+ """
26
+ GroupReconciliationUserReviewBreakCode
27
+ """
28
+ break_code: constr(strict=True, min_length=1) = Field(..., alias="breakCode", description="The break code of the reconciliation result.")
29
+ user_id: Optional[constr(strict=True, max_length=16384, min_length=0)] = Field(None, alias="userId", description="Id of the user who made a User Review input.")
30
+ as_at_added: Optional[datetime] = Field(None, alias="asAtAdded", description="The timestamp of the added User Review input.")
31
+ as_at_invalid: Optional[datetime] = Field(None, alias="asAtInvalid", description="The timestamp when User Review input became invalid e.g. because of the different attribute values within the new run.")
32
+ __properties = ["breakCode", "userId", "asAtAdded", "asAtInvalid"]
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) -> GroupReconciliationUserReviewBreakCode:
49
+ """Create an instance of GroupReconciliationUserReviewBreakCode 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
+ # set to None if user_id (nullable) is None
59
+ # and __fields_set__ contains the field
60
+ if self.user_id is None and "user_id" in self.__fields_set__:
61
+ _dict['userId'] = None
62
+
63
+ return _dict
64
+
65
+ @classmethod
66
+ def from_dict(cls, obj: dict) -> GroupReconciliationUserReviewBreakCode:
67
+ """Create an instance of GroupReconciliationUserReviewBreakCode from a dict"""
68
+ if obj is None:
69
+ return None
70
+
71
+ if not isinstance(obj, dict):
72
+ return GroupReconciliationUserReviewBreakCode.parse_obj(obj)
73
+
74
+ _obj = GroupReconciliationUserReviewBreakCode.parse_obj({
75
+ "break_code": obj.get("breakCode"),
76
+ "user_id": obj.get("userId"),
77
+ "as_at_added": obj.get("asAtAdded"),
78
+ "as_at_invalid": obj.get("asAtInvalid")
79
+ })
80
+ return _obj