lusid-sdk 2.1.143__py3-none-any.whl → 2.1.148__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.
Potentially problematic release.
This version of lusid-sdk might be problematic. Click here for more details.
- lusid/configuration.py +1 -1
- lusid/extensions/configuration_loaders.py +2 -2
- lusid/models/fee.py +6 -1
- lusid/models/fee_request.py +7 -2
- {lusid_sdk-2.1.143.dist-info → lusid_sdk-2.1.148.dist-info}/METADATA +3 -3
- {lusid_sdk-2.1.143.dist-info → lusid_sdk-2.1.148.dist-info}/RECORD +7 -7
- {lusid_sdk-2.1.143.dist-info → lusid_sdk-2.1.148.dist-info}/WHEEL +0 -0
lusid/configuration.py
CHANGED
|
@@ -373,7 +373,7 @@ class Configuration:
|
|
|
373
373
|
return "Python SDK Debug Report:\n"\
|
|
374
374
|
"OS: {env}\n"\
|
|
375
375
|
"Python Version: {pyversion}\n"\
|
|
376
|
-
"Version of the API: 0.11.
|
|
376
|
+
"Version of the API: 0.11.6582\n"\
|
|
377
377
|
"SDK Package Version: {package_version}".\
|
|
378
378
|
format(env=sys.platform, pyversion=sys.version, package_version=package_version)
|
|
379
379
|
|
|
@@ -210,7 +210,7 @@ class FileTokenConfigurationLoader:
|
|
|
210
210
|
if access_token_location is not None and access_token_location != "":
|
|
211
211
|
self.access_token = FileAccessToken(access_token_location)
|
|
212
212
|
|
|
213
|
-
def load_config(self) -> Dict[str, FileAccessToken
|
|
213
|
+
def load_config(self) -> Dict[str, Union[FileAccessToken, None]]:
|
|
214
214
|
"""load access token from file
|
|
215
215
|
|
|
216
216
|
Returns
|
|
@@ -247,7 +247,7 @@ def get_api_configuration(config_loaders: Iterable[ConfigurationLoader]) -> ApiC
|
|
|
247
247
|
loaded_config = {
|
|
248
248
|
key: value
|
|
249
249
|
for key, value in config_loader.load_config().items()
|
|
250
|
-
if value is not None
|
|
250
|
+
if value is not None and value != None
|
|
251
251
|
}
|
|
252
252
|
config.update(loaded_config)
|
|
253
253
|
proxy_address = config.pop("proxy_address", None)
|
lusid/models/fee.py
CHANGED
|
@@ -50,8 +50,9 @@ class Fee(BaseModel):
|
|
|
50
50
|
anchor_date: Optional[DayMonth] = Field(None, alias="anchorDate")
|
|
51
51
|
properties: Optional[Dict[str, ModelProperty]] = Field(None, description="The Fee properties. These will be from the 'Fee' domain.")
|
|
52
52
|
version: Optional[Version] = None
|
|
53
|
+
portfolio_id: Optional[ResourceId] = Field(None, alias="portfolioId")
|
|
53
54
|
links: Optional[conlist(Link)] = None
|
|
54
|
-
__properties = ["href", "feeCode", "feeType", "name", "description", "origin", "calculationBase", "accrualCurrency", "treatment", "totalAnnualAccrualAmount", "feeRatePercentage", "monthlyAccrual", "dailyAccrual", "payableFrequency", "businessDayConvention", "startDate", "endDate", "anchorDate", "properties", "version", "links"]
|
|
55
|
+
__properties = ["href", "feeCode", "feeType", "name", "description", "origin", "calculationBase", "accrualCurrency", "treatment", "totalAnnualAccrualAmount", "feeRatePercentage", "monthlyAccrual", "dailyAccrual", "payableFrequency", "businessDayConvention", "startDate", "endDate", "anchorDate", "properties", "version", "portfolioId", "links"]
|
|
55
56
|
|
|
56
57
|
@validator('fee_code')
|
|
57
58
|
def fee_code_validate_regular_expression(cls, value):
|
|
@@ -113,6 +114,9 @@ class Fee(BaseModel):
|
|
|
113
114
|
# override the default output from pydantic by calling `to_dict()` of version
|
|
114
115
|
if self.version:
|
|
115
116
|
_dict['version'] = self.version.to_dict()
|
|
117
|
+
# override the default output from pydantic by calling `to_dict()` of portfolio_id
|
|
118
|
+
if self.portfolio_id:
|
|
119
|
+
_dict['portfolioId'] = self.portfolio_id.to_dict()
|
|
116
120
|
# override the default output from pydantic by calling `to_dict()` of each item in links (list)
|
|
117
121
|
_items = []
|
|
118
122
|
if self.links:
|
|
@@ -212,6 +216,7 @@ class Fee(BaseModel):
|
|
|
212
216
|
if obj.get("properties") is not None
|
|
213
217
|
else None,
|
|
214
218
|
"version": Version.from_dict(obj.get("version")) if obj.get("version") is not None else None,
|
|
219
|
+
"portfolio_id": ResourceId.from_dict(obj.get("portfolioId")) if obj.get("portfolioId") is not None else None,
|
|
215
220
|
"links": [Link.from_dict(_item) for _item in obj.get("links")] if obj.get("links") is not None else None
|
|
216
221
|
})
|
|
217
222
|
return _obj
|
lusid/models/fee_request.py
CHANGED
|
@@ -43,7 +43,8 @@ class FeeRequest(BaseModel):
|
|
|
43
43
|
end_date: Optional[datetime] = Field(None, alias="endDate", description="The end date of the Fee.")
|
|
44
44
|
anchor_date: Optional[DayMonth] = Field(None, alias="anchorDate")
|
|
45
45
|
properties: Optional[Dict[str, ModelProperty]] = Field(None, description="The Fee properties. These will be from the 'Fee' domain.")
|
|
46
|
-
|
|
46
|
+
portfolio_id: Optional[ResourceId] = Field(None, alias="portfolioId")
|
|
47
|
+
__properties = ["feeType", "name", "description", "origin", "calculationBase", "accrualCurrency", "treatment", "totalAnnualAccrualAmount", "feeRatePercentage", "payableFrequency", "businessDayConvention", "startDate", "endDate", "anchorDate", "properties", "portfolioId"]
|
|
47
48
|
|
|
48
49
|
@validator('description')
|
|
49
50
|
def description_validate_regular_expression(cls, value):
|
|
@@ -92,6 +93,9 @@ class FeeRequest(BaseModel):
|
|
|
92
93
|
if self.properties[_key]:
|
|
93
94
|
_field_dict[_key] = self.properties[_key].to_dict()
|
|
94
95
|
_dict['properties'] = _field_dict
|
|
96
|
+
# override the default output from pydantic by calling `to_dict()` of portfolio_id
|
|
97
|
+
if self.portfolio_id:
|
|
98
|
+
_dict['portfolioId'] = self.portfolio_id.to_dict()
|
|
95
99
|
# set to None if description (nullable) is None
|
|
96
100
|
# and __fields_set__ contains the field
|
|
97
101
|
if self.description is None and "description" in self.__fields_set__:
|
|
@@ -158,6 +162,7 @@ class FeeRequest(BaseModel):
|
|
|
158
162
|
for _k, _v in obj.get("properties").items()
|
|
159
163
|
)
|
|
160
164
|
if obj.get("properties") is not None
|
|
161
|
-
else None
|
|
165
|
+
else None,
|
|
166
|
+
"portfolio_id": ResourceId.from_dict(obj.get("portfolioId")) if obj.get("portfolioId") is not None else None
|
|
162
167
|
})
|
|
163
168
|
return _obj
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: lusid-sdk
|
|
3
|
-
Version: 2.1.
|
|
3
|
+
Version: 2.1.148
|
|
4
4
|
Summary: LUSID API
|
|
5
5
|
Home-page: https://github.com/finbourne/lusid-sdk-python
|
|
6
6
|
License: MIT
|
|
@@ -29,8 +29,8 @@ FINBOURNE Technology
|
|
|
29
29
|
|
|
30
30
|
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
31
31
|
|
|
32
|
-
- API version: 0.11.
|
|
33
|
-
- Package version: 2.1.
|
|
32
|
+
- API version: 0.11.6582
|
|
33
|
+
- Package version: 2.1.148
|
|
34
34
|
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
|
35
35
|
For more information, please visit [https://www.finbourne.com](https://www.finbourne.com)
|
|
36
36
|
|
|
@@ -67,13 +67,13 @@ lusid/api/transaction_portfolios_api.py,sha256=7G5m6iTQXTKCc6ASdxnlVJjvFascHxEgD
|
|
|
67
67
|
lusid/api/translation_api.py,sha256=xTAaKEW96JTDIZBXCjxSguCa7Gz4oVd5jdObUE2egwo,20092
|
|
68
68
|
lusid/api_client.py,sha256=dF6l9RAsdxdQjf6Qn4ny6LB-QXlJmsscWiozCvyyBFA,30709
|
|
69
69
|
lusid/api_response.py,sha256=6-gnhty6lu8MMAERt3_kTVD7UxQgWFfcjgpcq6iN5IU,855
|
|
70
|
-
lusid/configuration.py,sha256=
|
|
70
|
+
lusid/configuration.py,sha256=2qMVCefk6-V2EJ7DCT7IBx3FO2IeLnBv77tPJSoAgIM,14404
|
|
71
71
|
lusid/exceptions.py,sha256=HIQwgmQrszLlcVCLaqex8dO0laVuejUyOMz7U2ZWJ6s,5326
|
|
72
72
|
lusid/extensions/__init__.py,sha256=L7EF4zKjcq1g2GodEumg1-C9xKs7YrQ0QHGPi8XbpO4,629
|
|
73
73
|
lusid/extensions/api_client.py,sha256=Ob06urm4Em3MLzgP_geyeeGsPCkU225msW_1kpIeABM,30567
|
|
74
74
|
lusid/extensions/api_client_factory.py,sha256=qPlqYe8AMzXUZrQPMbO5YJrKWLYy01rWNdNcKZVi1Xg,9772
|
|
75
75
|
lusid/extensions/api_configuration.py,sha256=LbuhaM-PcrY0a4cZ-ff7GBP8UybSqI5Ys2WQOBcr_8I,8052
|
|
76
|
-
lusid/extensions/configuration_loaders.py,sha256=
|
|
76
|
+
lusid/extensions/configuration_loaders.py,sha256=yIDvKX6XpHRHovgA0vZvw8OeT-PGynHdRJX8rSf6j28,9248
|
|
77
77
|
lusid/extensions/file_access_token.py,sha256=Qfk_tl2bBh9kpxYhNZ-9XlVuV36udeWT97mazZYI1ns,1469
|
|
78
78
|
lusid/extensions/proxy_config.py,sha256=UUHQhd8ub-mKVIVbzDbmNQYLLemPX1b209ZcDrCFOWw,2187
|
|
79
79
|
lusid/extensions/refreshing_token.py,sha256=i5z2-LS8WG_VKWuFX1IM_f4waAr-fAQOzusFv2Vc7NA,11032
|
|
@@ -374,9 +374,9 @@ lusid/models/exercise_event.py,sha256=EFMMNANZFJ_HDw1fYhB_axnQ_GzCRIgmU-9OJlcgU_
|
|
|
374
374
|
lusid/models/exotic_instrument.py,sha256=Nfv3cttH2eWGX_aeU6zxmLD5hsNnWC6yBSFeFS6sr80,5705
|
|
375
375
|
lusid/models/expanded_group.py,sha256=e1fIiusdlI_VtjJlF4g5O_yg6A_5VDOg2LaW94CUyJU,5931
|
|
376
376
|
lusid/models/expiry_event.py,sha256=lCniGAC37RW7B0IQtNNfEblIKfaGvyAQrLGtZz_UFVg,4643
|
|
377
|
-
lusid/models/fee.py,sha256=
|
|
377
|
+
lusid/models/fee.py,sha256=Mo7UEFfOLTH_fpBW1_HAEj3-a7r4PDafvajXU5tN-5w,11271
|
|
378
378
|
lusid/models/fee_accrual.py,sha256=I9KdhXDYIS7xyCoQqTRMfSabBPa4EF32Mug3BfOYzbA,2694
|
|
379
|
-
lusid/models/fee_request.py,sha256=
|
|
379
|
+
lusid/models/fee_request.py,sha256=SsCfBRsjHJcEAFz91k_scE9AHmDxgqjKE_XZ990ikI0,8394
|
|
380
380
|
lusid/models/fee_rule.py,sha256=Ez0GUE-1FlzEO8VF1IbH3p2I6gjMaQ6arWzo3VCyi5Q,6070
|
|
381
381
|
lusid/models/fee_rule_upsert_request.py,sha256=0s31dKcYP1kUfOdeuwqbCTxNL6VQ42ryi_QPzayIrXw,6166
|
|
382
382
|
lusid/models/fee_rule_upsert_response.py,sha256=PH0YLPebZM42YRxgoUXYoP6aDdMuDnw7wBAU_VYCwuE,3144
|
|
@@ -1069,6 +1069,6 @@ lusid/models/weighted_instruments.py,sha256=1y_y_vw4-LPsbkQx4FOzWdZc5fJnzhVkf1D3
|
|
|
1069
1069
|
lusid/models/yield_curve_data.py,sha256=SbxvdJ4-GWK9kpMdw4Fnxc7_kvIMwgsRsd_31UJn7nw,6330
|
|
1070
1070
|
lusid/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
1071
1071
|
lusid/rest.py,sha256=TNUzQ3yLNT2L053EdR7R0vNzQh2J3TlYD1T56Dye0W0,10138
|
|
1072
|
-
lusid_sdk-2.1.
|
|
1073
|
-
lusid_sdk-2.1.
|
|
1074
|
-
lusid_sdk-2.1.
|
|
1072
|
+
lusid_sdk-2.1.148.dist-info/METADATA,sha256=i48DgaFEdVhQp5Uzvx22y1wohp0gln2y1F9FOa8X5O4,187686
|
|
1073
|
+
lusid_sdk-2.1.148.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
1074
|
+
lusid_sdk-2.1.148.dist-info/RECORD,,
|
|
File without changes
|