From b7e909701de64d8d4581784a9d9253a269d5e104 Mon Sep 17 00:00:00 2001 From: stuppie Date: Fri, 25 Sep 2026 13:29:31 -0600 Subject: add amount and payout_type to CashoutRequestInfo --- generalresearch/managers/thl/wallet/user_payout.py | 4 +++- generalresearch/models/thl/wallet/cashout_method.py | 10 ++++++++++ pyproject.toml | 2 +- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/generalresearch/managers/thl/wallet/user_payout.py b/generalresearch/managers/thl/wallet/user_payout.py index 76ed673..59d850b 100644 --- a/generalresearch/managers/thl/wallet/user_payout.py +++ b/generalresearch/managers/thl/wallet/user_payout.py @@ -100,11 +100,13 @@ class UserPayoutEventManager(PayoutEventManager): return CashoutRequestInfo( id=pe_uuid, status=pe.status, - description=pe.description, + description=pe.description or "", transaction_info=transaction_info, message="", product_id=pe.user.product_id, product_user_id=pe.user.product_user_id, + amount=pe.amount, + payout_type=pe.payout_type, ) def filter_by( diff --git a/generalresearch/models/thl/wallet/cashout_method.py b/generalresearch/models/thl/wallet/cashout_method.py index 907ce8a..2dd135b 100644 --- a/generalresearch/models/thl/wallet/cashout_method.py +++ b/generalresearch/models/thl/wallet/cashout_method.py @@ -423,6 +423,16 @@ class CashoutRequestInfo(BaseModel): product_id: UUIDStr = Field() product_user_id: BPUIDStr = Field() + payout_type: PayoutType = Field( + description=PayoutType.as_openapi(), examples=[PayoutType.ACH] + ) + amount: PositiveInt = Field( + lt=2**63 - 1, + strict=True, + description="The USDCent amount int. This cannot be 0 or negative", + examples=[531], + ) + class CashoutRequestResponse(StatusResponse): cashout: CashoutRequestInfo = Field() diff --git a/pyproject.toml b/pyproject.toml index 95076c7..47c5c14 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "generalresearch" -version = "3.6.0" +version = "3.6.1" description = "Python Utilities for General Research" readme = "README.md" requires-python = ">=3.14" -- cgit v1.2.3