aboutsummaryrefslogtreecommitdiff
path: root/jb/managers/thl.py
diff options
context:
space:
mode:
Diffstat (limited to 'jb/managers/thl.py')
-rw-r--r--jb/managers/thl.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/jb/managers/thl.py b/jb/managers/thl.py
index 4d6b23a..191a56b 100644
--- a/jb/managers/thl.py
+++ b/jb/managers/thl.py
@@ -121,3 +121,10 @@ def get_wallet_balance_if_non_negative(amt_worker_id: str) -> USDCent | None:
if amt >= 0:
return USDCent(amt)
return None
+
+
+def get_cashout_detail(cashout_id: str) -> CashoutRequestInfo:
+ url = f"{settings.fsb_host}{settings.product_id}/cashout/{cashout_id}/"
+ res = requests.get(url)
+ assert res.status_code == status.HTTP_200_OK, res.text
+ return CashoutRequestInfo.model_validate(res.json()["cashout"])