orionapi 2.22.0__tar.gz → 2.23.0__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: orionapi
3
- Version: 2.22.0
3
+ Version: 2.23.0
4
4
  Summary: A python interface for the Orion Advisors platform web API
5
5
  Author: spencerogden-dsam
6
6
  Author-email: 67068943+spencerogden-dsam@users.noreply.github.com
@@ -1,4 +1,4 @@
1
- __version__ = "2.22.0"
1
+ __version__ = "2.23.0"
2
2
 
3
3
  import logging
4
4
  import re
@@ -2406,6 +2406,7 @@ class EclipseV1(EclipseBase):
2406
2406
  expire_date=None,
2407
2407
  expire_trans_tol=0,
2408
2408
  expire_trans_type=1,
2409
+ deplete_over_time=False,
2409
2410
  percent_calc_type=0,
2410
2411
  sync=True,
2411
2412
  ):
@@ -2423,6 +2424,9 @@ class EclipseV1(EclipseBase):
2423
2424
  expire_date: Expiration date (if expire_type='Date')
2424
2425
  expire_trans_tol: Transaction tolerance value (default 0)
2425
2426
  expire_trans_type: 1='Distribution / Merge Out', 3='Fee' (default 1)
2427
+ deplete_over_time: Maps to the UI "Deplete Over Time" checkbox
2428
+ (``isDepleteOverTime``). Only meaningful when
2429
+ expire_type='Transaction' (default False)
2426
2430
  percent_calc_type: 0='Use Default/Managed Value', 1='Use Total Value',
2427
2431
  2='Use Excluded Value' (default 0)
2428
2432
  sync: Wait for analytics to complete (default True)
@@ -2487,6 +2491,7 @@ class EclipseV1(EclipseBase):
2487
2491
  "expirationValue": expire_value,
2488
2492
  "toleranceValue": expire_trans_tol,
2489
2493
  "transactionTypeId": expire_trans_type,
2494
+ "isDepleteOverTime": bool(deplete_over_time),
2490
2495
  "description": description,
2491
2496
  "percentCalculationTypeId": percent_calc_type,
2492
2497
  },
@@ -5179,7 +5184,8 @@ class EclipseV1(EclipseBase):
5179
5184
  Args:
5180
5185
  account_id: Internal account ID
5181
5186
  aside_cash_id: Set-aside-cash ID
5182
- payload: Set-aside DTO (request body)
5187
+ payload: Set-aside DTO (request body). May include ``isDepleteOverTime``
5188
+ (bool), the API equivalent of the UI "Deplete Over Time" checkbox.
5183
5189
  """
5184
5190
  return self.api_request(
5185
5191
  f"{self.base_url}/account/accounts/{account_id}/asidecash/{aside_cash_id}",
@@ -5744,7 +5750,8 @@ class EclipseV1(EclipseBase):
5744
5750
 
5745
5751
  Args:
5746
5752
  portfolio_id: Portfolio ID
5747
- payload: Set-aside DTO (request body)
5753
+ payload: Set-aside DTO (request body). May include ``isDepleteOverTime``
5754
+ (bool), the API equivalent of the UI "Deplete Over Time" checkbox.
5748
5755
  """
5749
5756
  return self.api_request(
5750
5757
  f"{self.base_url}/portfolio/portfolios/{portfolio_id}/asideCash",
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "orionapi"
3
- version = "2.22.0"
3
+ version = "2.23.0"
4
4
  description = "A python interface for the Orion Advisors platform web API"
5
5
  authors = ["spencerogden-dsam <67068943+spencerogden-dsam@users.noreply.github.com>"]
6
6
 
File without changes