From 74f4a19f0e9d2af1643183afb14813b92afd577c Mon Sep 17 00:00:00 2001 From: stuppie Date: Mon, 2 Nov 2026 14:24:17 -0600 Subject: get_payout_detail for giftbit --- generalresearch/managers/thl/wallet/user_payout.py | 8 ++++++++ pyproject.toml | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) 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" -- cgit v1.2.3