vc-utils 3.2__tar.gz → 3.3__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.
- {vc_utils-3.2 → vc_utils-3.3}/PKG-INFO +1 -1
- {vc_utils-3.2 → vc_utils-3.3}/linkage/session.py +15 -1
- {vc_utils-3.2 → vc_utils-3.3}/setup.py +1 -1
- {vc_utils-3.2 → vc_utils-3.3}/vc_utils.egg-info/PKG-INFO +1 -1
- {vc_utils-3.2 → vc_utils-3.3}/README.md +0 -0
- {vc_utils-3.2 → vc_utils-3.3}/linkage/__init__.py +0 -0
- {vc_utils-3.2 → vc_utils-3.3}/linkage/achievement.py +0 -0
- {vc_utils-3.2 → vc_utils-3.3}/linkage/key_generator.py +0 -0
- {vc_utils-3.2 → vc_utils-3.3}/setup.cfg +0 -0
- {vc_utils-3.2 → vc_utils-3.3}/vc_utils.egg-info/SOURCES.txt +0 -0
- {vc_utils-3.2 → vc_utils-3.3}/vc_utils.egg-info/dependency_links.txt +0 -0
- {vc_utils-3.2 → vc_utils-3.3}/vc_utils.egg-info/requires.txt +0 -0
- {vc_utils-3.2 → vc_utils-3.3}/vc_utils.egg-info/top_level.txt +0 -0
|
@@ -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_bank(self, session, user_id):
|
|
238
|
+
"""
|
|
239
|
+
GET /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}/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:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|