aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstuppie2026-11-02 14:24:17 -0600
committerstuppie2026-11-02 14:24:17 -0600
commit74f4a19f0e9d2af1643183afb14813b92afd577c (patch)
tree79eaef76f43f82297c02d52653a321ea0087eb9d
parente7140ab1ebddd2e37185d153783cfb686bece162 (diff)
downloadgeneralresearch-3.9.9.tar.gz
generalresearch-3.9.9.zip
get_payout_detail for giftbitHEADv3.9.9master
-rw-r--r--generalresearch/managers/thl/wallet/user_payout.py8
-rw-r--r--pyproject.toml2
2 files changed, 9 insertions, 1 deletions
diff --git a/generalresearch/managers/thl/wallet/user_payout.py b/generalresearch/managers/thl/wallet/user_payout.py
index 56daead..c25d8ab 100644
--- a/generalresearch/managers/thl/wallet/user_payout.py
+++ b/generalresearch/managers/thl/wallet/user_payout.py
@@ -227,6 +227,14 @@ class UserPayoutEventManager(PayoutEventManager):
if "redemptionInstructions" in reward:
reward["redemption_instructions"] = reward.pop("redemptionInstructions")
transaction_info = order["reward"]
+ elif (
+ pe.payout_type == PayoutType.GIFTBIT and pe.status == PayoutStatus.COMPLETE
+ ):
+ transaction_info = {
+ "expiry": order["expiry"],
+ "message": order["message"],
+ "direct_link": order["direct_link"],
+ }
elif pe.payout_type == PayoutType.PAYPAL and pe.status == PayoutStatus.COMPLETE:
info = {"transaction_id": order["transaction_id"]}
transaction_info = info
diff --git a/pyproject.toml b/pyproject.toml
index 1e3acad..291e926 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "generalresearch"
-version = "3.9.8"
+version = "3.9.9"
description = "Python Utilities for General Research"
readme = "README.md"
requires-python = ">=3.14"