lusid-sdk 2.1.954__py3-none-any.whl → 2.1.955__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 +1 -1
- lusid/models/settlement_instruction_request.py +9 -2
- lusid/models/transaction_settlement_instruction.py +9 -2
- {lusid_sdk-2.1.954.dist-info → lusid_sdk-2.1.955.dist-info}/METADATA +1 -1
- {lusid_sdk-2.1.954.dist-info → lusid_sdk-2.1.955.dist-info}/RECORD +6 -6
- {lusid_sdk-2.1.954.dist-info → lusid_sdk-2.1.955.dist-info}/WHEEL +0 -0
lusid/configuration.py
CHANGED
|
@@ -445,7 +445,7 @@ class Configuration:
|
|
|
445
445
|
return "Python SDK Debug Report:\n"\
|
|
446
446
|
"OS: {env}\n"\
|
|
447
447
|
"Python Version: {pyversion}\n"\
|
|
448
|
-
"Version of the API: 0.11.
|
|
448
|
+
"Version of the API: 0.11.8301\n"\
|
|
449
449
|
"SDK Package Version: {package_version}".\
|
|
450
450
|
format(env=sys.platform, pyversion=sys.version, package_version=package_version)
|
|
451
451
|
|
|
@@ -37,7 +37,8 @@ class SettlementInstructionRequest(BaseModel):
|
|
|
37
37
|
units: Union[StrictFloat, StrictInt] = Field(...)
|
|
38
38
|
sub_holding_key_overrides: Optional[Dict[str, PerpetualProperty]] = Field(None, alias="subHoldingKeyOverrides")
|
|
39
39
|
custodian_account_override: Optional[ResourceId] = Field(None, alias="custodianAccountOverride")
|
|
40
|
-
|
|
40
|
+
instruction_to_portfolio_rate: Optional[Union[StrictFloat, StrictInt]] = Field(None, alias="instructionToPortfolioRate")
|
|
41
|
+
__properties = ["settlementInstructionId", "transactionId", "settlementCategory", "instructionType", "instrumentIdentifiers", "contractualSettlementDate", "actualSettlementDate", "units", "subHoldingKeyOverrides", "custodianAccountOverride", "instructionToPortfolioRate"]
|
|
41
42
|
|
|
42
43
|
class Config:
|
|
43
44
|
"""Pydantic configuration"""
|
|
@@ -96,6 +97,11 @@ class SettlementInstructionRequest(BaseModel):
|
|
|
96
97
|
if self.sub_holding_key_overrides is None and "sub_holding_key_overrides" in self.__fields_set__:
|
|
97
98
|
_dict['subHoldingKeyOverrides'] = None
|
|
98
99
|
|
|
100
|
+
# set to None if instruction_to_portfolio_rate (nullable) is None
|
|
101
|
+
# and __fields_set__ contains the field
|
|
102
|
+
if self.instruction_to_portfolio_rate is None and "instruction_to_portfolio_rate" in self.__fields_set__:
|
|
103
|
+
_dict['instructionToPortfolioRate'] = None
|
|
104
|
+
|
|
99
105
|
return _dict
|
|
100
106
|
|
|
101
107
|
@classmethod
|
|
@@ -122,6 +128,7 @@ class SettlementInstructionRequest(BaseModel):
|
|
|
122
128
|
)
|
|
123
129
|
if obj.get("subHoldingKeyOverrides") is not None
|
|
124
130
|
else None,
|
|
125
|
-
"custodian_account_override": ResourceId.from_dict(obj.get("custodianAccountOverride")) if obj.get("custodianAccountOverride") is not None else None
|
|
131
|
+
"custodian_account_override": ResourceId.from_dict(obj.get("custodianAccountOverride")) if obj.get("custodianAccountOverride") is not None else None,
|
|
132
|
+
"instruction_to_portfolio_rate": obj.get("instructionToPortfolioRate")
|
|
126
133
|
})
|
|
127
134
|
return _obj
|
|
@@ -39,7 +39,8 @@ class TransactionSettlementInstruction(BaseModel):
|
|
|
39
39
|
custodian_account_override: Optional[ResourceId] = Field(None, alias="custodianAccountOverride")
|
|
40
40
|
instrument_identifiers: Dict[str, StrictStr] = Field(..., alias="instrumentIdentifiers", description="A set of instrument identifiers that can resolve the settlement instruction to a unique instrument.")
|
|
41
41
|
status: Optional[StrictStr] = Field(None,alias="status", description="The status of the settlement instruction - 'Invalid', 'Rejected' 'Applied' or 'Orphan'.")
|
|
42
|
-
|
|
42
|
+
instruction_to_portfolio_rate: Optional[Union[StrictFloat, StrictInt]] = Field(None, alias="instructionToPortfolioRate", description="The exchange rate between the Settlement Instruction and Portfolio.")
|
|
43
|
+
__properties = ["settlementInstructionId", "instructionType", "actualSettlementDate", "units", "transactionId", "settlementCategory", "lusidInstrumentId", "contractualSettlementDate", "subHoldingKeyOverrides", "custodianAccountOverride", "instrumentIdentifiers", "status", "instructionToPortfolioRate"]
|
|
43
44
|
|
|
44
45
|
class Config:
|
|
45
46
|
"""Pydantic configuration"""
|
|
@@ -98,6 +99,11 @@ class TransactionSettlementInstruction(BaseModel):
|
|
|
98
99
|
if self.status is None and "status" in self.__fields_set__:
|
|
99
100
|
_dict['status'] = None
|
|
100
101
|
|
|
102
|
+
# set to None if instruction_to_portfolio_rate (nullable) is None
|
|
103
|
+
# and __fields_set__ contains the field
|
|
104
|
+
if self.instruction_to_portfolio_rate is None and "instruction_to_portfolio_rate" in self.__fields_set__:
|
|
105
|
+
_dict['instructionToPortfolioRate'] = None
|
|
106
|
+
|
|
101
107
|
return _dict
|
|
102
108
|
|
|
103
109
|
@classmethod
|
|
@@ -126,6 +132,7 @@ class TransactionSettlementInstruction(BaseModel):
|
|
|
126
132
|
else None,
|
|
127
133
|
"custodian_account_override": ResourceId.from_dict(obj.get("custodianAccountOverride")) if obj.get("custodianAccountOverride") is not None else None,
|
|
128
134
|
"instrument_identifiers": obj.get("instrumentIdentifiers"),
|
|
129
|
-
"status": obj.get("status")
|
|
135
|
+
"status": obj.get("status"),
|
|
136
|
+
"instruction_to_portfolio_rate": obj.get("instructionToPortfolioRate")
|
|
130
137
|
})
|
|
131
138
|
return _obj
|
|
@@ -80,7 +80,7 @@ lusid/api/translation_api.py,sha256=xpRuTfwQvYBlWe6r_L2EI_uVpXqHFnEOim-i-kVQ85E,
|
|
|
80
80
|
lusid/api/workspace_api.py,sha256=0pCNi3ZCRbIo0NXKa85XE7vtq0WV5YOKcQKvFlcLUaY,120708
|
|
81
81
|
lusid/api_client.py,sha256=ewMTmf9SRurY8pYnUx9jy24RdldPCOa4US38pnrVxjA,31140
|
|
82
82
|
lusid/api_response.py,sha256=6-gnhty6lu8MMAERt3_kTVD7UxQgWFfcjgpcq6iN5IU,855
|
|
83
|
-
lusid/configuration.py,sha256=
|
|
83
|
+
lusid/configuration.py,sha256=NFYlafydRyNuAeFl-x9K493hZlCB2TSsn67S5j6jPfU,17980
|
|
84
84
|
lusid/exceptions.py,sha256=HIQwgmQrszLlcVCLaqex8dO0laVuejUyOMz7U2ZWJ6s,5326
|
|
85
85
|
lusid/extensions/__init__.py,sha256=dzDHEzpn-9smd2-_UMWQzeyX6Ha4jGf6fnqx7qxKxNI,630
|
|
86
86
|
lusid/extensions/api_client.py,sha256=GzygWg_h603QK1QS2HvAijuE2R1TnvoF6-Yg0CeM3ug,30943
|
|
@@ -1137,7 +1137,7 @@ lusid/models/set_transaction_configuration_source_request.py,sha256=onioX-Oi4zG9
|
|
|
1137
1137
|
lusid/models/settlement_configuration_category.py,sha256=Bmy5aesdk7MEpxgk5KyRVY0l9pB92iEtyYCdPZAcOos,2797
|
|
1138
1138
|
lusid/models/settlement_cycle.py,sha256=0L4GedRTJ9kTTmIzwGo9EeMhQwbuPG8TfgMHpCVBAtk,2746
|
|
1139
1139
|
lusid/models/settlement_instruction_query.py,sha256=f8_KzCqQJ9Phz6vb7wL9MOSHTnNQ6WXnu-DPZ5Y5r7U,4763
|
|
1140
|
-
lusid/models/settlement_instruction_request.py,sha256=
|
|
1140
|
+
lusid/models/settlement_instruction_request.py,sha256=wvNv1H6co_Bo2-lDexy5YHVjncwdQADZY9eZDhUQiMQ,6324
|
|
1141
1141
|
lusid/models/settlement_instruction_with_transaction.py,sha256=EW6nji9o1Qbgrhu01ixKn9-MypVgmm9tGqMuAmpT87U,3348
|
|
1142
1142
|
lusid/models/settlement_schedule.py,sha256=QXjKoZyNHBjL0wM69Nw8O0iLBYyD8_S2aSyxYaStiiU,3910
|
|
1143
1143
|
lusid/models/share_class_amount.py,sha256=ZQTWOV3Wvq4MVOmeNN6orybodEcvhx6oqgn51ki6vOw,2561
|
|
@@ -1228,7 +1228,7 @@ lusid/models/transaction_roles.py,sha256=1r-BzcchffLl6p4lSUhRAUmsVdrl7Bvce2cCiwx
|
|
|
1228
1228
|
lusid/models/transaction_set_configuration_data.py,sha256=hgtBUJzYyJlOj11GTpTkY05Sqdcd4SdNY2gFhP3Zzis,4643
|
|
1229
1229
|
lusid/models/transaction_set_configuration_data_request.py,sha256=Nq8DEDlONeOEJ_XHqKAcKaOlRibqrjfh06xo-RNQdbs,4179
|
|
1230
1230
|
lusid/models/transaction_settlement_bucket.py,sha256=dumOzhkFA3xI_KvKoGhXwAeP9qiEy_byo3Gxz3XPsdg,7141
|
|
1231
|
-
lusid/models/transaction_settlement_instruction.py,sha256=
|
|
1231
|
+
lusid/models/transaction_settlement_instruction.py,sha256=0RK3X2y1K37rEBfDH_MTI6LU7dj8e5qdE0cvQgqoR-E,7957
|
|
1232
1232
|
lusid/models/transaction_settlement_movement.py,sha256=gJ0hGansWYlriQhQnltje8AEEzXGCzxTCUD9Z0SiQFY,4374
|
|
1233
1233
|
lusid/models/transaction_settlement_status.py,sha256=19MqHfQjVhuKw7aMMbWh6LlZ-dpTHYHbvMieZRmmGV0,5437
|
|
1234
1234
|
lusid/models/transaction_status.py,sha256=8b1pF1I7A3PzeZmStCXvnhqcDsPSlo8fQnnNQFYGZlA,812
|
|
@@ -1391,6 +1391,6 @@ lusid/models/year_month_day.py,sha256=gwSoxFwlD_wffKdddo1wfvAcLq3Cht3FHQidiaHzAA
|
|
|
1391
1391
|
lusid/models/yield_curve_data.py,sha256=I1ZSWxHMgUxj9OQt6i9a4S91KB4_XtmrfFxpN_PV3YQ,9561
|
|
1392
1392
|
lusid/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
1393
1393
|
lusid/rest.py,sha256=HQT__5LQEMu6_1sLKvYj-DI4FH1DJXBIPYfZCTTyrY4,13431
|
|
1394
|
-
lusid_sdk-2.1.
|
|
1395
|
-
lusid_sdk-2.1.
|
|
1396
|
-
lusid_sdk-2.1.
|
|
1394
|
+
lusid_sdk-2.1.955.dist-info/METADATA,sha256=N4D3_2z-UJpeEr-bh62gU7zKTWD8XRbxbHopx2tAsjs,233609
|
|
1395
|
+
lusid_sdk-2.1.955.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
|
1396
|
+
lusid_sdk-2.1.955.dist-info/RECORD,,
|
|
File without changes
|