lusid-sdk 2.1.320__py3-none-any.whl → 2.1.322__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/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.6753\n"\
|
377
377
|
"SDK Package Version: {package_version}".\
|
378
378
|
format(env=sys.platform, pyversion=sys.version, package_version=package_version)
|
379
379
|
|
@@ -18,7 +18,7 @@ import re # noqa: F401
|
|
18
18
|
import json
|
19
19
|
|
20
20
|
|
21
|
-
from typing import Any, Dict
|
21
|
+
from typing import Any, Dict
|
22
22
|
from pydantic.v1 import BaseModel, Field, constr, validator
|
23
23
|
|
24
24
|
class PostingModuleRule(BaseModel):
|
@@ -26,10 +26,9 @@ class PostingModuleRule(BaseModel):
|
|
26
26
|
A Posting rule # noqa: E501
|
27
27
|
"""
|
28
28
|
rule_id: constr(strict=True, max_length=64, min_length=1) = Field(..., alias="ruleId", description="The identifier for the Posting Rule.")
|
29
|
-
|
29
|
+
general_ledger_account_code: constr(strict=True, max_length=512, min_length=1) = Field(..., alias="generalLedgerAccountCode", description="The general ledger account to post the Activity credit or debit to.")
|
30
30
|
rule_filter: constr(strict=True, max_length=16384, min_length=1) = Field(..., alias="ruleFilter", description="The filter syntax for the Posting Rule. See https://support.lusid.com/knowledgebase/article/KA-02140 for more information on filter syntax.")
|
31
|
-
|
32
|
-
__properties = ["ruleId", "account", "ruleFilter", "generalLedgerAccountCode"]
|
31
|
+
__properties = ["ruleId", "generalLedgerAccountCode", "ruleFilter"]
|
33
32
|
|
34
33
|
@validator('rule_id')
|
35
34
|
def rule_id_validate_regular_expression(cls, value):
|
@@ -38,12 +37,9 @@ class PostingModuleRule(BaseModel):
|
|
38
37
|
raise ValueError(r"must validate the regular expression /^[a-zA-Z0-9\-_]+$/")
|
39
38
|
return value
|
40
39
|
|
41
|
-
@validator('
|
42
|
-
def
|
40
|
+
@validator('general_ledger_account_code')
|
41
|
+
def general_ledger_account_code_validate_regular_expression(cls, value):
|
43
42
|
"""Validates the regular expression"""
|
44
|
-
if value is None:
|
45
|
-
return value
|
46
|
-
|
47
43
|
if not re.match(r"^[\s\S]*$", value):
|
48
44
|
raise ValueError(r"must validate the regular expression /^[\s\S]*$/")
|
49
45
|
return value
|
@@ -55,16 +51,6 @@ class PostingModuleRule(BaseModel):
|
|
55
51
|
raise ValueError(r"must validate the regular expression /^[\s\S]*$/")
|
56
52
|
return value
|
57
53
|
|
58
|
-
@validator('general_ledger_account_code')
|
59
|
-
def general_ledger_account_code_validate_regular_expression(cls, value):
|
60
|
-
"""Validates the regular expression"""
|
61
|
-
if value is None:
|
62
|
-
return value
|
63
|
-
|
64
|
-
if not re.match(r"^[\s\S]*$", value):
|
65
|
-
raise ValueError(r"must validate the regular expression /^[\s\S]*$/")
|
66
|
-
return value
|
67
|
-
|
68
54
|
class Config:
|
69
55
|
"""Pydantic configuration"""
|
70
56
|
allow_population_by_field_name = True
|
@@ -89,16 +75,6 @@ class PostingModuleRule(BaseModel):
|
|
89
75
|
exclude={
|
90
76
|
},
|
91
77
|
exclude_none=True)
|
92
|
-
# set to None if account (nullable) is None
|
93
|
-
# and __fields_set__ contains the field
|
94
|
-
if self.account is None and "account" in self.__fields_set__:
|
95
|
-
_dict['account'] = None
|
96
|
-
|
97
|
-
# set to None if general_ledger_account_code (nullable) is None
|
98
|
-
# and __fields_set__ contains the field
|
99
|
-
if self.general_ledger_account_code is None and "general_ledger_account_code" in self.__fields_set__:
|
100
|
-
_dict['generalLedgerAccountCode'] = None
|
101
|
-
|
102
78
|
return _dict
|
103
79
|
|
104
80
|
@classmethod
|
@@ -112,8 +88,7 @@ class PostingModuleRule(BaseModel):
|
|
112
88
|
|
113
89
|
_obj = PostingModuleRule.parse_obj({
|
114
90
|
"rule_id": obj.get("ruleId"),
|
115
|
-
"
|
116
|
-
"rule_filter": obj.get("ruleFilter")
|
117
|
-
"general_ledger_account_code": obj.get("generalLedgerAccountCode")
|
91
|
+
"general_ledger_account_code": obj.get("generalLedgerAccountCode"),
|
92
|
+
"rule_filter": obj.get("ruleFilter")
|
118
93
|
})
|
119
94
|
return _obj
|
@@ -68,7 +68,7 @@ lusid/api/transaction_portfolios_api.py,sha256=7G5m6iTQXTKCc6ASdxnlVJjvFascHxEgD
|
|
68
68
|
lusid/api/translation_api.py,sha256=xTAaKEW96JTDIZBXCjxSguCa7Gz4oVd5jdObUE2egwo,20092
|
69
69
|
lusid/api_client.py,sha256=dF6l9RAsdxdQjf6Qn4ny6LB-QXlJmsscWiozCvyyBFA,30709
|
70
70
|
lusid/api_response.py,sha256=6-gnhty6lu8MMAERt3_kTVD7UxQgWFfcjgpcq6iN5IU,855
|
71
|
-
lusid/configuration.py,sha256=
|
71
|
+
lusid/configuration.py,sha256=jL26JvfYAruQdB1utCbZiZPms2E8ioKhX4oLgwnkZRI,14404
|
72
72
|
lusid/exceptions.py,sha256=HIQwgmQrszLlcVCLaqex8dO0laVuejUyOMz7U2ZWJ6s,5326
|
73
73
|
lusid/extensions/__init__.py,sha256=dzDHEzpn-9smd2-_UMWQzeyX6Ha4jGf6fnqx7qxKxNI,630
|
74
74
|
lusid/extensions/api_client.py,sha256=Ob06urm4Em3MLzgP_geyeeGsPCkU225msW_1kpIeABM,30567
|
@@ -730,7 +730,7 @@ lusid/models/portfolios_reconciliation_request.py,sha256=NlI1pOGr08bwob0a4FZRRZi
|
|
730
730
|
lusid/models/posting_module_details.py,sha256=YtjckonotvLC-UwLecW2G12FVxlww-VkyEU4q-urvsA,3310
|
731
731
|
lusid/models/posting_module_request.py,sha256=x6aq23t1GtSpg60mAe3gXTRBjgIkOVqUp4qRb3tLFDs,4473
|
732
732
|
lusid/models/posting_module_response.py,sha256=HPPZHdC6hVr5F6ZHaZUW6s095XnCPDA_IamSkTaOMjQ,6104
|
733
|
-
lusid/models/posting_module_rule.py,sha256=
|
733
|
+
lusid/models/posting_module_rule.py,sha256=MGCBOmedwF1hANp9_-lg8tynBYDdTWFDMkzzg_j-ktY,3512
|
734
734
|
lusid/models/posting_module_rules_updated_response.py,sha256=qGQSPvvIjNJJr-F9YOXkQAEXYlsflzcaxMNzOX1tF3k,4288
|
735
735
|
lusid/models/pre_trade_configuration.py,sha256=OjyrngvMxxnF3Qf_a-YCF2Pe8URzV87s0WC3PsxcBVo,2371
|
736
736
|
lusid/models/premium.py,sha256=R2eYbrUmKAmxdWdmWGuUqg78Hm07y1iVBW7IRu4C92I,2200
|
@@ -1113,6 +1113,6 @@ lusid/models/weighted_instruments.py,sha256=1y_y_vw4-LPsbkQx4FOzWdZc5fJnzhVkf1D3
|
|
1113
1113
|
lusid/models/yield_curve_data.py,sha256=SbxvdJ4-GWK9kpMdw4Fnxc7_kvIMwgsRsd_31UJn7nw,6330
|
1114
1114
|
lusid/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
1115
1115
|
lusid/rest.py,sha256=TNUzQ3yLNT2L053EdR7R0vNzQh2J3TlYD1T56Dye0W0,10138
|
1116
|
-
lusid_sdk-2.1.
|
1117
|
-
lusid_sdk-2.1.
|
1118
|
-
lusid_sdk-2.1.
|
1116
|
+
lusid_sdk-2.1.322.dist-info/METADATA,sha256=TAdq8N1Pz8SxweM95rQZ1aRwIFwmhCSjFsPC9z3eZ2g,187771
|
1117
|
+
lusid_sdk-2.1.322.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
1118
|
+
lusid_sdk-2.1.322.dist-info/RECORD,,
|
File without changes
|