payment modeli yaratildi
This commit is contained in:
20
core/apps/payment/enums/payment.py
Normal file
20
core/apps/payment/enums/payment.py
Normal file
@@ -0,0 +1,20 @@
|
||||
from django.db import models
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
|
||||
class PaymentMethod(models.TextChoices):
|
||||
CASH = "cash", _("Cash")
|
||||
CARD = "card", _("Card")
|
||||
BANK_TRANSFER = "bank_transfer", _("Bank Transfer")
|
||||
CLICK = "click", _("Click")
|
||||
PAYME = "payme", _("Payme")
|
||||
UZUM = "uzum", _("Uzum")
|
||||
OTHER = "other", _("Other")
|
||||
|
||||
|
||||
class PaymentStatus(models.TextChoices):
|
||||
PENDING = "pending", _("Pending")
|
||||
COMPLETED = "completed", _("Completed")
|
||||
FAILED = "failed", _("Failed")
|
||||
REFUNDED = "refunded", _("Refunded")
|
||||
CANCELLED = "cancelled", _("Cancelled")
|
||||
Reference in New Issue
Block a user