diff options
| author | Max Nanis | 2026-02-24 17:26:15 -0500 |
|---|---|---|
| committer | Max Nanis | 2026-02-24 17:26:15 -0500 |
| commit | 8c1940445503fd6678d0961600f2be81622793a2 (patch) | |
| tree | b9173562b8824b5eaa805e446d9d780e1f23fb2a /jb/models/definitions.py | |
| parent | 25d8c3c214baf10f6520cc1351f78473150e5d7a (diff) | |
| download | amt-jb-8c1940445503fd6678d0961600f2be81622793a2.tar.gz amt-jb-8c1940445503fd6678d0961600f2be81622793a2.zip | |
Extensive use of type checking. Movement of pytest conf towards handling managers (for db agnostic unittest). Starting to organize pytests.
Diffstat (limited to 'jb/models/definitions.py')
| -rw-r--r-- | jb/models/definitions.py | 28 |
1 files changed, 1 insertions, 27 deletions
diff --git a/jb/models/definitions.py b/jb/models/definitions.py index a3d27ba..4ae7a21 100644 --- a/jb/models/definitions.py +++ b/jb/models/definitions.py @@ -1,4 +1,4 @@ -from enum import IntEnum, StrEnum +from enum import IntEnum class AssignmentStatus(IntEnum): @@ -37,32 +37,6 @@ class HitReviewStatus(IntEnum): ReviewedInappropriate = 3 -class PayoutStatus(StrEnum): - """These are GRL's payout statuses""" - - # The user has requested a payout. The money is taken from their - # wallet. A PENDING request can either be APPROVED, REJECTED, or - # CANCELLED. We can also implicitly skip the APPROVED step and go - # straight to COMPLETE or FAILED. - PENDING = "PENDING" - # The request is approved (by us or automatically). Once approved, - # it can be FAILED or COMPLETE. - APPROVED = "APPROVED" - # The request is rejected. The user loses the money. - REJECTED = "REJECTED" - # The user requests to cancel the request, the money goes back into their wallet. - CANCELLED = "CANCELLED" - # The payment was approved, but failed within external payment provider. - # This is an "error" state, as the money won't have moved anywhere. A - # FAILED payment can be tried again and be COMPLETE. - FAILED = "FAILED" - # The payment was sent successfully and (usually) a fee was charged - # to us for it. - COMPLETE = "COMPLETE" - # Not supported # REFUNDED: I'm not sure if this is possible or - # if we'd want to allow it. - - class ReportValue(IntEnum): """ The reason a user reported a task. |
