bw-essentials-core 0.1.9__py3-none-any.whl → 0.1.10__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 bw-essentials-core might be problematic. Click here for more details.

@@ -33,7 +33,7 @@ class Payment(ApiClient):
33
33
  available, otherwise `None`.
34
34
  """
35
35
  logger.info(f"Received request to get subscription with {user_id =}")
36
- url = f"{self.base_url}/{self.urls.get('get_subscription')}"
37
- subscription = self._get(url, params={'userId': user_id})
36
+ url = f"{self.base_url}"
37
+ subscription = self._get(url=url, endpoint=self.urls.get('get_subscription'), params={'userId': user_id})
38
38
  logger.info(f"Successfully fetched subscription data. {subscription =}")
39
39
  return subscription.get('data')
@@ -178,11 +178,11 @@ class PortfolioCatalogue(ApiClient):
178
178
  otherwise an empty list.
179
179
  """
180
180
  logger.info(f"In get_subscriptions_by_ids {plans_ids =}")
181
- url = f"{self.base_url}/{self.urls.get('subscriptions_by_ids')}"
181
+ url = f"{self.base_url}"
182
182
  data = {
183
- 'planId': plans_ids
183
+ "planId": plans_ids
184
184
  }
185
- response = self._post(url, self.headers, data)
185
+ response = self._post(url=url, endpoint=self.urls.get('subscriptions_by_ids'), json=data)
186
186
  logger.info(f"Successfully fetched subscriptions by ids data. {response =}")
187
187
  return response.get('data', [])
188
188
 
@@ -204,10 +204,10 @@ class PortfolioCatalogue(ApiClient):
204
204
  otherwise an empty list.
205
205
  """
206
206
  logger.info(f"In get_otp_subscriptions_by_ids {plans_ids =}")
207
- url = f"{self.base_url}/{self.urls.get('otp_subscriptions_by_ids')}"
207
+ url = f"{self.base_url}"
208
208
  data = {
209
- 'id': plans_ids
209
+ "id": plans_ids
210
210
  }
211
- response = self._post(url, self.headers, data)
211
+ response = self._post(url=url, endpoint=self.urls.get('otp_subscriptions_by_ids'), json=data)
212
212
  logger.info(f"Successfully fetched otp subscriptions by ids data. {response =}")
213
213
  return response.get('data', [])
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bw-essentials-core
3
- Version: 0.1.9
3
+ Version: 0.1.10
4
4
  Summary: Reusable utilities for S3, email, Data Loch, Microsoft Teams Notifications and more.
5
5
  Author: InvestorAI
6
6
  Author-email: support+tech@investorai.in
@@ -17,14 +17,14 @@ bw_essentials/services/market_pricer.py,sha256=Qc9lxzAjhefAvjyEKsBPDu60bF6_61cnS
17
17
  bw_essentials/services/master_data.py,sha256=2o_r2gdhIKBeTFgn5IIY-becgCEpYBymO4BKmixdV1g,11987
18
18
  bw_essentials/services/model_portfolio_reporting.py,sha256=iOtm4gyfU8P7C0R1gp6gUJI4ZRxJD5K2GLOalI_gToM,3249
19
19
  bw_essentials/services/notification.py,sha256=q4jIZzIWIHvn-XaIIbkEjjhkYUV8ZGQWUXaY4NNRFgI,5078
20
- bw_essentials/services/payment.py,sha256=3uZUPfRTkk0dzX17npv2LQhwkVXdrbOSIQ_Qh8jsVjU,1467
21
- bw_essentials/services/portfolio_catalogue.py,sha256=EK0OMvOqnKjfASwBKbfqawiKmKN-FkGR4g17Hxlj8ws,7183
20
+ bw_essentials/services/payment.py,sha256=Em8Lvg7aX1Ga4CJDpJimyE_ByZhJZKM6W6rw2cUUIvw,1479
21
+ bw_essentials/services/portfolio_catalogue.py,sha256=F4ne1eF6Koj0CCV1j07ebIgIlRCc2I0mlL6-gmxbIGg,7189
22
22
  bw_essentials/services/portfolio_content.py,sha256=rdFTTsUUIt-AgFfA1SAItqg2njakVOm4dUKU0FHZQ2E,2148
23
23
  bw_essentials/services/trade_placement.py,sha256=PrzeU2XXC9HF1IQ1dMDM_ZHxmC491sOl-JbA6GWPwII,20772
24
24
  bw_essentials/services/user_app.py,sha256=_Y2NgDq6kEoco7ZRJ3-MMYJ-K2HGStJoFoeGOH_HotQ,11107
25
25
  bw_essentials/services/user_portfolio.py,sha256=G3PrMOryqEXSERodP4hwbrxV2JHiXUVwxdFri_E1v3k,22179
26
26
  bw_essentials/services/user_portfolio_reporting.py,sha256=pwqfW95LTiGOGufcTphljFxPlOd-G4Q263UtoQURPxM,6772
27
- bw_essentials_core-0.1.9.dist-info/METADATA,sha256=a4w6bUqQFf9vbnz7mFg5w126-WmFRaL37-rdAsbLcus,7501
28
- bw_essentials_core-0.1.9.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
29
- bw_essentials_core-0.1.9.dist-info/top_level.txt,sha256=gDc5T_y5snwKGXDQUusEus-FEt0RFwG644Yn_58wQOQ,14
30
- bw_essentials_core-0.1.9.dist-info/RECORD,,
27
+ bw_essentials_core-0.1.10.dist-info/METADATA,sha256=zF9QWn5XFMH4V0iyV6UwK8bcazsAf_C6DwlZJN-5pvQ,7502
28
+ bw_essentials_core-0.1.10.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
29
+ bw_essentials_core-0.1.10.dist-info/top_level.txt,sha256=gDc5T_y5snwKGXDQUusEus-FEt0RFwG644Yn_58wQOQ,14
30
+ bw_essentials_core-0.1.10.dist-info/RECORD,,