vc-utils 3.2__tar.gz → 3.4__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: vc-utils
3
- Version: 3.2
3
+ Version: 3.4
4
4
  Summary: Vulcan Coalition Python Utility Library
5
5
  Home-page: https://github.com/vulcan-coalition/vulcan-utils
6
6
  Author: Chatavut Viriyasuthee
@@ -232,7 +232,21 @@ class Linkage_Application:
232
232
  achs.append(ach)
233
233
  result[user_id] = achs
234
234
  return result
235
-
235
+
236
+
237
+ async def list_available_banks(self, session, user_id):
238
+ """
239
+ GET /data/user/{user_id}/list/banks
240
+ Returns a list of available bank codes for the specified user.
241
+ """
242
+ # Implement the logic to list available banks for the user
243
+ uri = f"{LINKAGE_M2M_HOST}/data/user/{user_id}/list/banks"
244
+ resp = await self.linkage_get(session, uri)
245
+ if resp.status != 200:
246
+ error_data = await resp.json()
247
+ raise Exception(error_data)
248
+ return await resp.json()
249
+
236
250
 
237
251
  async def get_user_data(token, spec_id=None):
238
252
  if not token:
@@ -11,7 +11,7 @@ import shutil
11
11
 
12
12
  setup(
13
13
  name="vc-utils",
14
- version="3.2",
14
+ version="3.4",
15
15
  author="Chatavut Viriyasuthee",
16
16
  author_email="chatavut@lab.ai",
17
17
  description="Vulcan Coalition Python Utility Library",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: vc-utils
3
- Version: 3.2
3
+ Version: 3.4
4
4
  Summary: Vulcan Coalition Python Utility Library
5
5
  Home-page: https://github.com/vulcan-coalition/vulcan-utils
6
6
  Author: Chatavut Viriyasuthee
File without changes
File without changes
File without changes
File without changes
File without changes