""" Constants shared across the EAMCO Authorize service. """ import enum class TransactionStatus(enum.IntEnum): """Transaction status codes used throughout the payment system.""" APPROVED = 0 DECLINED = 1 class TransactionType(enum.IntEnum): """Transaction type codes for different payment operations.""" CHARGE = 0 AUTHORIZE = 1 CAPTURE = 2 # State ID to abbreviation mapping for Authorize.net billing address # This maps the integer state IDs from the database to state abbreviations STATE_ID_TO_ABBREVIATION = { 0: "MA", 1: "RI", 2: "NH", 3: "ME", 4: "VT", 5: "CT", 6: "NY" }