Download constants/transaction_status.py from brocode12/wavvy: direct link, hf CLI and curl.
- Browser
- Download file 2.9 kB
-
https://huggingface.co/spaces/brocode12/wavvy/resolve/main/constants/transaction_status.py
- Command line
-
hf download hf://spaces/brocode12/wavvy/constants/transaction_status.py
-
curl -L -o transaction_status.py https://huggingface.co/spaces/brocode12/wavvy/resolve/main/constants/transaction_status.py
2.9 kB
| # Transaction status constants β single source of truth for all status strings. | |
| # Used in wavvy_tools.py (status pre-checks), seed.py (test data), and | |
| # workflow/definitions.py (routing keys). | |
| # ββ Terminal / final states βββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| FAILED = "failed" # deducted but not credited β refund eligible | |
| COMPLETED = "completed" # successfully settled β disputes-team path | |
| CANCELLED = "cancelled" # cancelled before settlement β auto-reversal | |
| EXPIRED = "expired" # payment link/session timed out | |
| # ββ In-flight states ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| PENDING = "pending" # submitted to gateway, awaiting confirmation | |
| PROCESSING = "processing" # gateway accepted, settlement in progress | |
| # ββ Refund lifecycle ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| REFUND_INITIATED = "refund_initiated" # refund case opened | |
| REFUND_PROCESSING = "refund_processing" # refund debit instruction sent to bank | |
| REFUND_COMPLETED = "refund_completed" # funds credited back to customer | |
| # ββ Hold / review states ββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| FLAGGED = "flagged" # fraud-flagged β fraud-team path | |
| KYC_HOLD = "kyc_hold" # KYC verification pending β kyc-team path | |
| COMPLIANCE_HOLD = "compliance_hold" # regulatory / AML hold β compliance-team path | |
| # ββ Dispute / chargeback lifecycle ββββββββββββββββββββββββββββββββββββββββββββ | |
| DISPUTED = "disputed" # customer filed a dispute | |
| CHARGEBACK_INITIATED = "chargeback_initiated" # chargeback raised with bank/card network | |
| CHARGEBACK_WON = "chargeback_won" # chargeback resolved in customer's favour | |
| CHARGEBACK_LOST = "chargeback_lost" # chargeback denied | |
| # ββ Fraud states ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| FRAUD_REPORTED = "fraud_reported" # customer reported unauthorized transaction | |
| FRAUD_CONFIRMED = "fraud_confirmed" # fraud team confirmed the fraud | |
| FRAUD_REVERSED = "fraud_reversed" # fraudulent charge reversed | |