lusid-sdk 2.1.163__py3-none-any.whl → 2.1.174__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 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.6597\n"\
376
+ "Version of the API: 0.11.6608\n"\
377
377
  "SDK Package Version: {package_version}".\
378
378
  format(env=sys.platform, pyversion=sys.version, package_version=package_version)
379
379
 
lusid/models/fee.py CHANGED
@@ -36,11 +36,11 @@ class Fee(BaseModel):
36
36
  name: constr(strict=True, max_length=50, min_length=0) = Field(..., description="The name of the Fee.")
37
37
  description: Optional[constr(strict=True, max_length=1024, min_length=0)] = Field(None, description="A description for the Fee.")
38
38
  origin: Optional[constr(strict=True, max_length=512, min_length=1)] = Field(None, description="The origin or source of the Fee accrual.")
39
- calculation_base: Optional[constr(strict=True, max_length=1024, min_length=0)] = Field(None, alias="calculationBase", description="The calculation base for the Fee that is calculated using a percentage.")
39
+ calculation_base: Optional[constr(strict=True, max_length=1024, min_length=0)] = Field(None, alias="calculationBase", description="The calculation base for the Fee that is calculated using a percentage. (TotalAnnualAccrualAmount and CalculationBase cannot both be present)")
40
40
  accrual_currency: constr(strict=True, max_length=3, min_length=0) = Field(..., alias="accrualCurrency", description="The accrual currency.")
41
41
  treatment: constr(strict=True, min_length=1) = Field(..., description="The accrual period of the Fee; 'Monthly' or 'Daily'.")
42
- total_annual_accrual_amount: Optional[Union[StrictFloat, StrictInt]] = Field(None, alias="totalAnnualAccrualAmount", description="The total accrued amount for the Fee.")
43
- fee_rate_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(None, alias="feeRatePercentage", description="The fee rate percentage.")
42
+ total_annual_accrual_amount: Optional[Union[StrictFloat, StrictInt]] = Field(None, alias="totalAnnualAccrualAmount", description="The total annual accrued amount for the Fee. (TotalAnnualAccrualAmount and CalculationBase cannot both be present)")
43
+ fee_rate_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(None, alias="feeRatePercentage", description="The fee rate percentage. (Required when CalculationBase is present and not compatible with TotalAnnualAccrualAmount)")
44
44
  monthly_accrual: Optional[Union[StrictFloat, StrictInt]] = Field(None, alias="monthlyAccrual", description="The monthly accrual amount.")
45
45
  daily_accrual: Optional[Union[StrictFloat, StrictInt]] = Field(None, alias="dailyAccrual", description="The daily accrual amount.")
46
46
  payable_frequency: constr(strict=True, min_length=1) = Field(..., alias="payableFrequency", description="The payable frequency for the Fee; 'Annually', 'Quarterly' or 'Monthly'.")
@@ -17,7 +17,7 @@ import pprint
17
17
  import re # noqa: F401
18
18
  import json
19
19
 
20
-
20
+ from datetime import datetime
21
21
  from typing import Any, Dict, Optional, Union
22
22
  from pydantic.v1 import BaseModel, Field, StrictFloat, StrictInt, StrictStr
23
23
 
@@ -25,12 +25,13 @@ class FeeAccrual(BaseModel):
25
25
  """
26
26
  FeeAccrual
27
27
  """
28
+ effective_at: Optional[datetime] = Field(None, alias="effectiveAt")
28
29
  name: Optional[StrictStr] = None
29
30
  calculation_base: Optional[Union[StrictFloat, StrictInt]] = Field(None, alias="calculationBase")
30
31
  amount: Optional[Union[StrictFloat, StrictInt]] = None
31
32
  previous_accrual: Optional[Union[StrictFloat, StrictInt]] = Field(None, alias="previousAccrual")
32
33
  total_accrual: Optional[Union[StrictFloat, StrictInt]] = Field(None, alias="totalAccrual")
33
- __properties = ["name", "calculationBase", "amount", "previousAccrual", "totalAccrual"]
34
+ __properties = ["effectiveAt", "name", "calculationBase", "amount", "previousAccrual", "totalAccrual"]
34
35
 
35
36
  class Config:
36
37
  """Pydantic configuration"""
@@ -74,6 +75,7 @@ class FeeAccrual(BaseModel):
74
75
  return FeeAccrual.parse_obj(obj)
75
76
 
76
77
  _obj = FeeAccrual.parse_obj({
78
+ "effective_at": obj.get("effectiveAt"),
77
79
  "name": obj.get("name"),
78
80
  "calculation_base": obj.get("calculationBase"),
79
81
  "amount": obj.get("amount"),
@@ -32,11 +32,11 @@ class FeeRequest(BaseModel):
32
32
  name: constr(strict=True, max_length=256, min_length=1) = Field(..., description="The name of the Fee.")
33
33
  description: Optional[constr(strict=True, max_length=1024, min_length=0)] = Field(None, description="A description for the Fee.")
34
34
  origin: Optional[constr(strict=True, max_length=512, min_length=1)] = Field(None, description="The origin or source of the Fee accrual.")
35
- calculation_base: Optional[constr(strict=True, max_length=1024, min_length=0)] = Field(None, alias="calculationBase", description="The calculation base for the Fee that is calculated using a percentage.")
35
+ calculation_base: Optional[constr(strict=True, max_length=1024, min_length=0)] = Field(None, alias="calculationBase", description="The calculation base for the Fee that is calculated using a percentage. (TotalAnnualAccrualAmount and CalculationBase cannot both be present)")
36
36
  accrual_currency: constr(strict=True, max_length=3, min_length=0) = Field(..., alias="accrualCurrency", description="The accrual currency.")
37
37
  treatment: constr(strict=True, min_length=1) = Field(..., description="The accrual period of the Fee; 'Monthly' or 'Daily'.")
38
- total_annual_accrual_amount: Optional[Union[StrictFloat, StrictInt]] = Field(None, alias="totalAnnualAccrualAmount", description="The total accrued amount for the Fee.")
39
- fee_rate_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(None, alias="feeRatePercentage", description="The fee rate percentage.")
38
+ total_annual_accrual_amount: Optional[Union[StrictFloat, StrictInt]] = Field(None, alias="totalAnnualAccrualAmount", description="The total annual accrued amount for the Fee. (TotalAnnualAccrualAmount and CalculationBase cannot both be present)")
39
+ fee_rate_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(None, alias="feeRatePercentage", description="The fee rate percentage. (Required when CalculationBase is present and not compatible with TotalAnnualAccrualAmount)")
40
40
  payable_frequency: constr(strict=True, min_length=1) = Field(..., alias="payableFrequency", description="The payable frequency for the Fee; 'Annually', 'Quarterly' or 'Monthly'.")
41
41
  business_day_convention: constr(strict=True, min_length=1) = Field(..., alias="businessDayConvention", description="The business day convention to use for Fee calculations on weekends.")
42
42
  start_date: datetime = Field(..., alias="startDate", description="The start date of the Fee.")
@@ -22,6 +22,7 @@ from typing import Any, Dict, List, Optional
22
22
  from pydantic.v1 import BaseModel, Field, StrictStr, conlist
23
23
  from lusid.models.link import Link
24
24
  from lusid.models.model_property import ModelProperty
25
+ from lusid.models.staged_modifications_info import StagedModificationsInfo
25
26
  from lusid.models.version import Version
26
27
 
27
28
  class PortfolioProperties(BaseModel):
@@ -31,8 +32,9 @@ class PortfolioProperties(BaseModel):
31
32
  href: Optional[StrictStr] = Field(None, description="The specific Uniform Resource Identifier (URI) for this resource at the requested effective and asAt datetime.")
32
33
  properties: Optional[Dict[str, ModelProperty]] = Field(None, description="The portfolio properties. These will be from the 'Portfolio' domain.")
33
34
  version: Optional[Version] = None
35
+ staged_modifications: Optional[StagedModificationsInfo] = Field(None, alias="stagedModifications")
34
36
  links: Optional[conlist(Link)] = None
35
- __properties = ["href", "properties", "version", "links"]
37
+ __properties = ["href", "properties", "version", "stagedModifications", "links"]
36
38
 
37
39
  class Config:
38
40
  """Pydantic configuration"""
@@ -68,6 +70,9 @@ class PortfolioProperties(BaseModel):
68
70
  # override the default output from pydantic by calling `to_dict()` of version
69
71
  if self.version:
70
72
  _dict['version'] = self.version.to_dict()
73
+ # override the default output from pydantic by calling `to_dict()` of staged_modifications
74
+ if self.staged_modifications:
75
+ _dict['stagedModifications'] = self.staged_modifications.to_dict()
71
76
  # override the default output from pydantic by calling `to_dict()` of each item in links (list)
72
77
  _items = []
73
78
  if self.links:
@@ -110,6 +115,7 @@ class PortfolioProperties(BaseModel):
110
115
  if obj.get("properties") is not None
111
116
  else None,
112
117
  "version": Version.from_dict(obj.get("version")) if obj.get("version") is not None else None,
118
+ "staged_modifications": StagedModificationsInfo.from_dict(obj.get("stagedModifications")) if obj.get("stagedModifications") is not None else None,
113
119
  "links": [Link.from_dict(_item) for _item in obj.get("links")] if obj.get("links") is not None else None
114
120
  })
115
121
  return _obj
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lusid-sdk
3
- Version: 2.1.163
3
+ Version: 2.1.174
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.6597
33
- - Package version: 2.1.163
32
+ - API version: 0.11.6608
33
+ - Package version: 2.1.174
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,7 +67,7 @@ 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=IuxnX5A5JCRMZVpplB63zJ3hk5vAffE7pYNzVPtxcnE,14404
70
+ lusid/configuration.py,sha256=793UE1lzczT9tg6XakAM9XGw1S4dF81XMB3jny2DL6o,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
@@ -378,9 +378,9 @@ lusid/models/exercise_event.py,sha256=EZGXFc8riKkqeCnhDIY6MVtp3RAFlBehvMU4kC_KqJ
378
378
  lusid/models/exotic_instrument.py,sha256=Nfv3cttH2eWGX_aeU6zxmLD5hsNnWC6yBSFeFS6sr80,5705
379
379
  lusid/models/expanded_group.py,sha256=e1fIiusdlI_VtjJlF4g5O_yg6A_5VDOg2LaW94CUyJU,5931
380
380
  lusid/models/expiry_event.py,sha256=o1jn1kCnF2zSL8WJ3TSuJ-E9t-s22esebwaJGrqUGKg,4686
381
- lusid/models/fee.py,sha256=Mo7UEFfOLTH_fpBW1_HAEj3-a7r4PDafvajXU5tN-5w,11271
382
- lusid/models/fee_accrual.py,sha256=I9KdhXDYIS7xyCoQqTRMfSabBPa4EF32Mug3BfOYzbA,2694
383
- lusid/models/fee_request.py,sha256=SsCfBRsjHJcEAFz91k_scE9AHmDxgqjKE_XZ990ikI0,8394
381
+ lusid/models/fee.py,sha256=NmBhi0yLXK18pRbL-jiaDlm4SrVv6Ddgm-Lc_IwaEUY,11510
382
+ lusid/models/fee_accrual.py,sha256=A9DaaFrEY1JqMbym_7TIcMMQxSqnQFMxuVZzljnggIk,2862
383
+ lusid/models/fee_request.py,sha256=aJbg758cpQ9tDD30G9_HLgnOOJcpxBvUDOPNvy7FL4E,8633
384
384
  lusid/models/fee_rule.py,sha256=Ez0GUE-1FlzEO8VF1IbH3p2I6gjMaQ6arWzo3VCyi5Q,6070
385
385
  lusid/models/fee_rule_upsert_request.py,sha256=0s31dKcYP1kUfOdeuwqbCTxNL6VQ42ryi_QPzayIrXw,6166
386
386
  lusid/models/fee_rule_upsert_response.py,sha256=PH0YLPebZM42YRxgoUXYoP6aDdMuDnw7wBAU_VYCwuE,3144
@@ -693,7 +693,7 @@ lusid/models/portfolio_holding.py,sha256=mZVqQI4nYhCXPALqRxvqb1xCRlv12uMZLspvNIo
693
693
  lusid/models/portfolio_id_compliance_parameter.py,sha256=5Ym-7OavrqOEzW22Yg1ZPSI9YmZmgT2tqGwNGzVy484,5481
694
694
  lusid/models/portfolio_id_list.py,sha256=zCe0UDzkP1VjIQHfxBjf-hlL0TEuxlGqGSmyP-6prlo,3706
695
695
  lusid/models/portfolio_id_list_compliance_parameter.py,sha256=EJ-sl1bj21kAQSKBItZmxLPFgLhOxG3FkhDTU62hfJs,5513
696
- lusid/models/portfolio_properties.py,sha256=5-YLgi1d19x3DQ2lgAF1vLvUhfdlznjYCG_WWog2pQ8,4292
696
+ lusid/models/portfolio_properties.py,sha256=OCSv3rJAsYBsEWRmiUvCcb4UIxN_gZrv4D3bvvfs9Zk,4868
697
697
  lusid/models/portfolio_reconciliation_request.py,sha256=wCxZIivxGZoFmnxItD66J1VSFUqKbtm6SAqq4rNp85w,2886
698
698
  lusid/models/portfolio_result_data_key_rule.py,sha256=VR3GGTSWS1-Z5cgEIDd939tdtH6hiwiQMm2vNz4h9cw,6635
699
699
  lusid/models/portfolio_return_breakdown.py,sha256=PGCCidYWkdSSzNJmZeZIEuYQBgozeFwkIH5HnODvrqI,6683
@@ -1075,6 +1075,6 @@ lusid/models/weighted_instruments.py,sha256=1y_y_vw4-LPsbkQx4FOzWdZc5fJnzhVkf1D3
1075
1075
  lusid/models/yield_curve_data.py,sha256=SbxvdJ4-GWK9kpMdw4Fnxc7_kvIMwgsRsd_31UJn7nw,6330
1076
1076
  lusid/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1077
1077
  lusid/rest.py,sha256=TNUzQ3yLNT2L053EdR7R0vNzQh2J3TlYD1T56Dye0W0,10138
1078
- lusid_sdk-2.1.163.dist-info/METADATA,sha256=Iubg3zB9O028oIolGIXTS7SAeEFpn5o6O-DbxFEYey0,188018
1079
- lusid_sdk-2.1.163.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
1080
- lusid_sdk-2.1.163.dist-info/RECORD,,
1078
+ lusid_sdk-2.1.174.dist-info/METADATA,sha256=0BED3KgSBHAJazvI2A6geWRkXMRO_Dg5YR-e2Pr6QRU,188018
1079
+ lusid_sdk-2.1.174.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
1080
+ lusid_sdk-2.1.174.dist-info/RECORD,,