lusid-sdk 2.1.960__py3-none-any.whl → 2.1.961__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.
@@ -1062,22 +1062,22 @@ class TransactionPortfoliosApi:
1062
1062
 
1063
1063
 
1064
1064
  @overload
1065
- async def build_settlement_instructions(self, scope : Annotated[StrictStr, Field(..., description="The scope of the transaction portfolio.")], code : Annotated[StrictStr, Field(..., description="The code of the transaction portfolio. Together with the scope this uniquely identifies the transaction portfolio.")], settlement_instruction_query : Annotated[SettlementInstructionQuery, Field(..., description="The queryParameters which control how the settlement instructions are built and returned.")], as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to build the settlement instructions. Defaults to return the latest version of each transaction if not specified.")] = None, **kwargs) -> VersionedResourceListWithPostBodiesOfSettlementInstructionWithTransactionToSettlementInstructionQuery: # noqa: E501
1065
+ async def build_settlement_instructions(self, scope : Annotated[StrictStr, Field(..., description="The scope of the transaction portfolio.")], code : Annotated[StrictStr, Field(..., description="The code of the transaction portfolio. Together with the scope this uniquely identifies the transaction portfolio.")], settlement_instruction_query : Annotated[SettlementInstructionQuery, Field(..., description="The queryParameters which control how the settlement instructions are built and returned.")], **kwargs) -> VersionedResourceListWithPostBodiesOfSettlementInstructionWithTransactionToSettlementInstructionQuery: # noqa: E501
1066
1066
  ...
1067
1067
 
1068
1068
  @overload
1069
- def build_settlement_instructions(self, scope : Annotated[StrictStr, Field(..., description="The scope of the transaction portfolio.")], code : Annotated[StrictStr, Field(..., description="The code of the transaction portfolio. Together with the scope this uniquely identifies the transaction portfolio.")], settlement_instruction_query : Annotated[SettlementInstructionQuery, Field(..., description="The queryParameters which control how the settlement instructions are built and returned.")], as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to build the settlement instructions. Defaults to return the latest version of each transaction if not specified.")] = None, async_req: Optional[bool]=True, **kwargs) -> VersionedResourceListWithPostBodiesOfSettlementInstructionWithTransactionToSettlementInstructionQuery: # noqa: E501
1069
+ def build_settlement_instructions(self, scope : Annotated[StrictStr, Field(..., description="The scope of the transaction portfolio.")], code : Annotated[StrictStr, Field(..., description="The code of the transaction portfolio. Together with the scope this uniquely identifies the transaction portfolio.")], settlement_instruction_query : Annotated[SettlementInstructionQuery, Field(..., description="The queryParameters which control how the settlement instructions are built and returned.")], async_req: Optional[bool]=True, **kwargs) -> VersionedResourceListWithPostBodiesOfSettlementInstructionWithTransactionToSettlementInstructionQuery: # noqa: E501
1070
1070
  ...
1071
1071
 
1072
1072
  @validate_arguments
1073
- def build_settlement_instructions(self, scope : Annotated[StrictStr, Field(..., description="The scope of the transaction portfolio.")], code : Annotated[StrictStr, Field(..., description="The code of the transaction portfolio. Together with the scope this uniquely identifies the transaction portfolio.")], settlement_instruction_query : Annotated[SettlementInstructionQuery, Field(..., description="The queryParameters which control how the settlement instructions are built and returned.")], as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to build the settlement instructions. Defaults to return the latest version of each transaction if not specified.")] = None, async_req: Optional[bool]=None, **kwargs) -> Union[VersionedResourceListWithPostBodiesOfSettlementInstructionWithTransactionToSettlementInstructionQuery, Awaitable[VersionedResourceListWithPostBodiesOfSettlementInstructionWithTransactionToSettlementInstructionQuery]]: # noqa: E501
1073
+ def build_settlement_instructions(self, scope : Annotated[StrictStr, Field(..., description="The scope of the transaction portfolio.")], code : Annotated[StrictStr, Field(..., description="The code of the transaction portfolio. Together with the scope this uniquely identifies the transaction portfolio.")], settlement_instruction_query : Annotated[SettlementInstructionQuery, Field(..., description="The queryParameters which control how the settlement instructions are built and returned.")], async_req: Optional[bool]=None, **kwargs) -> Union[VersionedResourceListWithPostBodiesOfSettlementInstructionWithTransactionToSettlementInstructionQuery, Awaitable[VersionedResourceListWithPostBodiesOfSettlementInstructionWithTransactionToSettlementInstructionQuery]]: # noqa: E501
1074
1074
  """[EARLY ACCESS] BuildSettlementInstructions: Build Settlement Instructions # noqa: E501
1075
1075
 
1076
1076
  Builds and returns all settlement instructions that have been loaded against this portfolio. # noqa: E501
1077
1077
  This method makes a synchronous HTTP request by default. To make an
1078
1078
  asynchronous HTTP request, please pass async_req=True
1079
1079
 
1080
- >>> thread = api.build_settlement_instructions(scope, code, settlement_instruction_query, as_at, async_req=True)
1080
+ >>> thread = api.build_settlement_instructions(scope, code, settlement_instruction_query, async_req=True)
1081
1081
  >>> result = thread.get()
1082
1082
 
1083
1083
  :param scope: The scope of the transaction portfolio. (required)
@@ -1086,8 +1086,6 @@ class TransactionPortfoliosApi:
1086
1086
  :type code: str
1087
1087
  :param settlement_instruction_query: The queryParameters which control how the settlement instructions are built and returned. (required)
1088
1088
  :type settlement_instruction_query: SettlementInstructionQuery
1089
- :param as_at: The asAt datetime at which to build the settlement instructions. Defaults to return the latest version of each transaction if not specified.
1090
- :type as_at: datetime
1091
1089
  :param async_req: Whether to execute the request asynchronously.
1092
1090
  :type async_req: bool, optional
1093
1091
  :param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
@@ -1104,17 +1102,17 @@ class TransactionPortfoliosApi:
1104
1102
  raise ValueError(message)
1105
1103
  if async_req is not None:
1106
1104
  kwargs['async_req'] = async_req
1107
- return self.build_settlement_instructions_with_http_info(scope, code, settlement_instruction_query, as_at, **kwargs) # noqa: E501
1105
+ return self.build_settlement_instructions_with_http_info(scope, code, settlement_instruction_query, **kwargs) # noqa: E501
1108
1106
 
1109
1107
  @validate_arguments
1110
- def build_settlement_instructions_with_http_info(self, scope : Annotated[StrictStr, Field(..., description="The scope of the transaction portfolio.")], code : Annotated[StrictStr, Field(..., description="The code of the transaction portfolio. Together with the scope this uniquely identifies the transaction portfolio.")], settlement_instruction_query : Annotated[SettlementInstructionQuery, Field(..., description="The queryParameters which control how the settlement instructions are built and returned.")], as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to build the settlement instructions. Defaults to return the latest version of each transaction if not specified.")] = None, **kwargs) -> ApiResponse: # noqa: E501
1108
+ def build_settlement_instructions_with_http_info(self, scope : Annotated[StrictStr, Field(..., description="The scope of the transaction portfolio.")], code : Annotated[StrictStr, Field(..., description="The code of the transaction portfolio. Together with the scope this uniquely identifies the transaction portfolio.")], settlement_instruction_query : Annotated[SettlementInstructionQuery, Field(..., description="The queryParameters which control how the settlement instructions are built and returned.")], **kwargs) -> ApiResponse: # noqa: E501
1111
1109
  """[EARLY ACCESS] BuildSettlementInstructions: Build Settlement Instructions # noqa: E501
1112
1110
 
1113
1111
  Builds and returns all settlement instructions that have been loaded against this portfolio. # noqa: E501
1114
1112
  This method makes a synchronous HTTP request by default. To make an
1115
1113
  asynchronous HTTP request, please pass async_req=True
1116
1114
 
1117
- >>> thread = api.build_settlement_instructions_with_http_info(scope, code, settlement_instruction_query, as_at, async_req=True)
1115
+ >>> thread = api.build_settlement_instructions_with_http_info(scope, code, settlement_instruction_query, async_req=True)
1118
1116
  >>> result = thread.get()
1119
1117
 
1120
1118
  :param scope: The scope of the transaction portfolio. (required)
@@ -1123,8 +1121,6 @@ class TransactionPortfoliosApi:
1123
1121
  :type code: str
1124
1122
  :param settlement_instruction_query: The queryParameters which control how the settlement instructions are built and returned. (required)
1125
1123
  :type settlement_instruction_query: SettlementInstructionQuery
1126
- :param as_at: The asAt datetime at which to build the settlement instructions. Defaults to return the latest version of each transaction if not specified.
1127
- :type as_at: datetime
1128
1124
  :param async_req: Whether to execute the request asynchronously.
1129
1125
  :type async_req: bool, optional
1130
1126
  :param _preload_content: if False, the ApiResponse.data will
@@ -1154,8 +1150,7 @@ class TransactionPortfoliosApi:
1154
1150
  _all_params = [
1155
1151
  'scope',
1156
1152
  'code',
1157
- 'settlement_instruction_query',
1158
- 'as_at'
1153
+ 'settlement_instruction_query'
1159
1154
  ]
1160
1155
  _all_params.extend(
1161
1156
  [
@@ -1193,12 +1188,6 @@ class TransactionPortfoliosApi:
1193
1188
 
1194
1189
  # process the query parameters
1195
1190
  _query_params = []
1196
- if _params.get('as_at') is not None: # noqa: E501
1197
- if isinstance(_params['as_at'], datetime):
1198
- _query_params.append(('asAt', _params['as_at'].strftime(self.api_client.configuration.datetime_format)))
1199
- else:
1200
- _query_params.append(('asAt', _params['as_at']))
1201
-
1202
1191
  # process the header parameters
1203
1192
  _header_params = dict(_params.get('_headers', {}))
1204
1193
  # process the form parameters
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.8307\n"\
448
+ "Version of the API: 0.11.8312\n"\
449
449
  "SDK Package Version: {package_version}".\
450
450
  format(env=sys.platform, pyversion=sys.version, package_version=package_version)
451
451
 
@@ -19,14 +19,16 @@ import json
19
19
 
20
20
 
21
21
  from typing import Any, Dict, Optional
22
- from pydantic.v1 import StrictStr, Field, BaseModel, Field, StrictStr
22
+ from pydantic.v1 import StrictStr, Field, BaseModel, Field, StrictBool, StrictStr
23
23
 
24
24
  class SettlementConfigurationCategory(BaseModel):
25
25
  """
26
26
  SettlementConfigurationCategory
27
27
  """
28
28
  method: Optional[StrictStr] = Field(None,alias="method", description="The method of settlement for the movements of the relevant type(s). Allowed values: 'Automatic' and 'Instructed'. A value of 'Instructed' means that such movements can only be settled with a SettlementInstruction. A value of 'Automatic' means that such movements will settle automatically but a SettlementInstruction will still override automatic settlement.")
29
- __properties = ["method"]
29
+ calculate_instruction_to_portfolio_rate: Optional[StrictBool] = Field(None, alias="calculateInstructionToPortfolioRate", description="An optional flag that allows for the calculation of the instruction to portfolio rate for instructions with settlement category CashSettlement or DeferredCashReceipt, if it is not provided on the settlement instruction. Defaults to false if not specified.")
30
+ calculate_in_lieu_settlement_amount: Optional[StrictBool] = Field(None, alias="calculateInLieuSettlementAmount", description="An optional flag that allows for the calculation of the in lieu amount for instructions with settlement category CashSettlement or DeferredCashReceipt, if it is not provided on the settlement instruction. Defaults to false if not specified.")
31
+ __properties = ["method", "calculateInstructionToPortfolioRate", "calculateInLieuSettlementAmount"]
30
32
 
31
33
  class Config:
32
34
  """Pydantic configuration"""
@@ -77,6 +79,8 @@ class SettlementConfigurationCategory(BaseModel):
77
79
  return SettlementConfigurationCategory.parse_obj(obj)
78
80
 
79
81
  _obj = SettlementConfigurationCategory.parse_obj({
80
- "method": obj.get("method")
82
+ "method": obj.get("method"),
83
+ "calculate_instruction_to_portfolio_rate": obj.get("calculateInstructionToPortfolioRate"),
84
+ "calculate_in_lieu_settlement_amount": obj.get("calculateInLieuSettlementAmount")
81
85
  })
82
86
  return _obj
@@ -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, List, Optional
22
22
  from pydantic.v1 import StrictStr, Field, BaseModel, Field, StrictInt, StrictStr, conlist, constr, validator
23
23
 
@@ -25,6 +25,7 @@ class SettlementInstructionQuery(BaseModel):
25
25
  """
26
26
  SettlementInstructionQuery
27
27
  """
28
+ as_at: Optional[datetime] = Field(None, alias="asAt")
28
29
  start_date: Optional[StrictStr] = Field(None,alias="startDate")
29
30
  end_date: Optional[StrictStr] = Field(None,alias="endDate")
30
31
  limit: Optional[StrictInt] = None
@@ -32,7 +33,7 @@ class SettlementInstructionQuery(BaseModel):
32
33
  filter: Optional[StrictStr] = Field(None,alias="filter")
33
34
  settlement_instruction_property_keys: Optional[conlist(StrictStr)] = Field(None, alias="settlementInstructionPropertyKeys")
34
35
  transaction_property_keys: Optional[conlist(StrictStr)] = Field(None, alias="transactionPropertyKeys")
35
- __properties = ["startDate", "endDate", "limit", "page", "filter", "settlementInstructionPropertyKeys", "transactionPropertyKeys"]
36
+ __properties = ["asAt", "startDate", "endDate", "limit", "page", "filter", "settlementInstructionPropertyKeys", "transactionPropertyKeys"]
36
37
 
37
38
  class Config:
38
39
  """Pydantic configuration"""
@@ -66,6 +67,11 @@ class SettlementInstructionQuery(BaseModel):
66
67
  exclude={
67
68
  },
68
69
  exclude_none=True)
70
+ # set to None if as_at (nullable) is None
71
+ # and __fields_set__ contains the field
72
+ if self.as_at is None and "as_at" in self.__fields_set__:
73
+ _dict['asAt'] = None
74
+
69
75
  # set to None if start_date (nullable) is None
70
76
  # and __fields_set__ contains the field
71
77
  if self.start_date is None and "start_date" in self.__fields_set__:
@@ -113,6 +119,7 @@ class SettlementInstructionQuery(BaseModel):
113
119
  return SettlementInstructionQuery.parse_obj(obj)
114
120
 
115
121
  _obj = SettlementInstructionQuery.parse_obj({
122
+ "as_at": obj.get("asAt"),
116
123
  "start_date": obj.get("startDate"),
117
124
  "end_date": obj.get("endDate"),
118
125
  "limit": obj.get("limit"),
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lusid-sdk
3
- Version: 2.1.960
3
+ Version: 2.1.961
4
4
  Summary: LUSID API
5
5
  Home-page: https://github.com/finbourne/lusid-sdk-python
6
6
  License: MIT
@@ -74,13 +74,13 @@ lusid/api/tax_rule_sets_api.py,sha256=ia8zjTdwlgLGC8KDWFBT21agOrfWgn1zC_ik75mNDJ
74
74
  lusid/api/timelines_api.py,sha256=uxSMdLi9dI6y8LSaezsLXEVedy9I7A-k22RAKY0Rw4k,109878
75
75
  lusid/api/transaction_configuration_api.py,sha256=VKzr-F1WWtMXK1MuyiiE7reWJZrBUQs655cIgX8CGC0,122096
76
76
  lusid/api/transaction_fees_api.py,sha256=r8Gl44-WYZebyJ_Uw2stLsf3-hPi1bK6Ij64Kx0L6A8,62698
77
- lusid/api/transaction_portfolios_api.py,sha256=srNruQmJVOwT4mSVIdUtbr2DI1UzgnaMyWVAL20Pvzg,686538
77
+ lusid/api/transaction_portfolios_api.py,sha256=yNMout-bkFgo0MmPiFIwHLBsD8gWLpMRZHq1gqxoIK4,684877
78
78
  lusid/api/transfer_agency_api.py,sha256=m-o3srFi7ZcUcWlO_lpOJiYZJvDSt2JLy7QPcXQoPh4,9545
79
79
  lusid/api/translation_api.py,sha256=xpRuTfwQvYBlWe6r_L2EI_uVpXqHFnEOim-i-kVQ85E,20227
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=a0ElIVyv7WnYuUjz0p3ACgM230CiODjlD3c1iv7ttcA,17980
83
+ lusid/configuration.py,sha256=VmL0tYZdLPhHQnrMEKLKLd5K2pNnOsiVGbhOmdMsUTA,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
@@ -1134,9 +1134,9 @@ lusid/models/set_person_properties_request.py,sha256=Pndq3BtayCATb-fmzUeFwSQtXaY
1134
1134
  lusid/models/set_share_class_instruments_request.py,sha256=wIxDkYoiimlHGioINv-bA63_rEs2W7pgNzGi8lbkoQs,3302
1135
1135
  lusid/models/set_transaction_configuration_alias.py,sha256=HXqUSsfc9BpUxDqQsWuCulekcHFFKlAZPT_sVxK5Mqc,2791
1136
1136
  lusid/models/set_transaction_configuration_source_request.py,sha256=onioX-Oi4zG91Cs0weO0oqRpdiD-BQgHLzYRlEmmr0I,4458
1137
- lusid/models/settlement_configuration_category.py,sha256=Bmy5aesdk7MEpxgk5KyRVY0l9pB92iEtyYCdPZAcOos,2797
1137
+ lusid/models/settlement_configuration_category.py,sha256=s0El9li3Eu9144-UPcMbSgWWVlfVBb82323mjDq4_r8,3850
1138
1138
  lusid/models/settlement_cycle.py,sha256=0L4GedRTJ9kTTmIzwGo9EeMhQwbuPG8TfgMHpCVBAtk,2746
1139
- lusid/models/settlement_instruction_query.py,sha256=f8_KzCqQJ9Phz6vb7wL9MOSHTnNQ6WXnu-DPZ5Y5r7U,4763
1139
+ lusid/models/settlement_instruction_query.py,sha256=GytEixNGDlOnrQQTSNEABN-9gFhKbaN_175zDxiaqcA,5094
1140
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
@@ -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.960.dist-info/METADATA,sha256=Y1k_bN34taCBMRfCIr_Blbw5cWDfQXGTMGQJZE2z98E,233609
1395
- lusid_sdk-2.1.960.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
1396
- lusid_sdk-2.1.960.dist-info/RECORD,,
1394
+ lusid_sdk-2.1.961.dist-info/METADATA,sha256=wCMgk8obHLNyzUFmPK3UpAzAplhGCe1R12hIVbKpoVU,233609
1395
+ lusid_sdk-2.1.961.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
1396
+ lusid_sdk-2.1.961.dist-info/RECORD,,