diff options
| author | stuppie | 2026-09-25 13:29:31 -0600 |
|---|---|---|
| committer | stuppie | 2026-09-25 13:29:31 -0600 |
| commit | b7e909701de64d8d4581784a9d9253a269d5e104 (patch) | |
| tree | f3707e516048fe16d32230d56429ff97bac2ab50 | |
| parent | 219acd6a7f4b6d69856b924ecca8ee54e148d794 (diff) | |
| download | generalresearch-b7e909701de64d8d4581784a9d9253a269d5e104.tar.gz generalresearch-b7e909701de64d8d4581784a9d9253a269d5e104.zip | |
add amount and payout_type to CashoutRequestInfov3.6.1
| -rw-r--r-- | generalresearch/managers/thl/wallet/user_payout.py | 4 | ||||
| -rw-r--r-- | generalresearch/models/thl/wallet/cashout_method.py | 10 | ||||
| -rw-r--r-- | 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" |
