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.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/jb/managers/thl.py b/jb/managers/thl.py
index 96f624e..4d29467 100644
--- a/jb/managers/thl.py
+++ b/jb/managers/thl.py
@@ -6,7 +6,7 @@ from generalresearch.models.thl.payout import UserPayoutEvent
from generalresearch.models.thl.task_status import TaskStatusResponse
from generalresearch.models.thl.wallet.cashout_method import (
CashoutMethodOut,
- CashoutRequestInfo,
+ CashoutRequestDetail,
CashoutRequestResponse,
)
@@ -24,7 +24,7 @@ def get_task_status(tsid: str) -> TaskStatusResponse | None:
def user_cashout_request(
product_user_id: str, amount: USDCent, cashout_method_id: str
-) -> CashoutRequestInfo:
+) -> CashoutRequestDetail:
assert isinstance(amount, USDCent)
assert USDCent(0) < amount <= USDCent(100_00)
url = f"{settings.fsb_host}{settings.product_id}/cashout/"
@@ -123,8 +123,8 @@ def get_wallet_balance_if_non_negative(amt_worker_id: str) -> USDCent | None:
return None
-def get_cashout_detail(cashout_id: str) -> CashoutRequestInfo:
+def get_cashout_detail(cashout_id: str) -> CashoutRequestDetail:
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"])
+ return CashoutRequestDetail.model_validate(res.json()["cashout"])