Use dashes instead of underscores in crypto payment status enums
Change status values from underscore_separated to dash-separated format: - confirmed_overpaid → confirmed-overpaid - expired_refunded → expired-refunded - underpaid_refunded → underpaid-refunded - out_of_stock_refunded → out-of-stock-refunded This provides better consistency with web standards and URL-friendly values.
This commit is contained in:
parent
fe94d9d9df
commit
2d5c2543c9
1 changed files with 4 additions and 4 deletions
|
|
@ -25,12 +25,12 @@ class CryptoPayment(RBase, Base):
|
|||
STATUS_PENDING = "pending"
|
||||
STATUS_RECEIVED = "received"
|
||||
STATUS_CONFIRMED = "confirmed"
|
||||
STATUS_CONFIRMED_OVERPAID = "confirmed_overpaid"
|
||||
STATUS_CONFIRMED_OVERPAID = "confirmed-overpaid"
|
||||
STATUS_EXPIRED = "expired"
|
||||
STATUS_EXPIRED_REFUNDED = "expired_refunded"
|
||||
STATUS_UNDERPAID_REFUNDED = "underpaid_refunded"
|
||||
STATUS_EXPIRED_REFUNDED = "expired-refunded"
|
||||
STATUS_UNDERPAID_REFUNDED = "underpaid-refunded"
|
||||
STATUS_CANCELLED = "cancelled"
|
||||
STATUS_OUT_OF_STOCK_REFUNDED = "out_of_stock_refunded"
|
||||
STATUS_OUT_OF_STOCK_REFUNDED = "out-of-stock-refunded"
|
||||
|
||||
# Active statuses that should be processed by the watcher
|
||||
ACTIVE_STATUSES = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue