Files
eamco_office_api/app/constants.py
2026-01-28 21:55:10 -05:00

46 lines
1.0 KiB
Python

"""
EAMCO Office API Constants
This file contains all status code constants used throughout the application
to eliminate magic numbers and improve code maintainability.
"""
class DeliveryStatus:
"""Delivery status codes"""
WAITING = 0
CANCELLED = 1
OUT_FOR_DELIVERY = 2
TOMORROW = 3
PARTIAL_DELIVERY = 4
ISSUE = 5
UNKNOWN = 6
PENDING_PAYMENT = 9
FINALIZED = 10
DELIVERED = 11 # New: Replaces previous use of 1 for delivered
class PaymentStatus:
"""Payment status codes"""
UNPAID = 0
PRE_AUTHORIZED = 1
PROCESSING = 2
PAID = 3
FAILED = 4
class AutoStatus:
"""Automatic delivery status codes"""
DEFAULT = 0
WILL_CALL = 1
READY_FOR_FINALIZATION = 3
class TransactionStatus:
"""Transaction status codes"""
APPROVED = 0
DECLINED = 1
class CustomerAutomaticStatus:
"""Customer automatic delivery status"""
WILL_CALL = 0
AUTOMATIC = 1
# Additional constants can be added here as needed
# For example: ServiceStatus, UserRoles, etc.