diff options
| author | stuppie | 2026-09-23 15:07:47 -0600 |
|---|---|---|
| committer | stuppie | 2026-09-23 15:07:47 -0600 |
| commit | 785adc51b2cc2b4d3e845a454f38b2a5197cc7f0 (patch) | |
| tree | f7866bfb76e359f8078de4437f0f06e313847805 /jb/managers/thl.py | |
| parent | 064a55c754e02da54b13c47028b233b265327518 (diff) | |
| download | amt-jb-785adc51b2cc2b4d3e845a454f38b2a5197cc7f0.tar.gz amt-jb-785adc51b2cc2b4d3e845a454f38b2a5197cc7f0.zip | |
working on cashout postback, to be hit by thl upon cashout status change, which will send the user an email with the info
Diffstat (limited to 'jb/managers/thl.py')
| -rw-r--r-- | jb/managers/thl.py | 7 |
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"]) |
