chore: rename model
This commit is contained in:
+1
-5
@@ -8,7 +8,7 @@ def set_default_metadata():
|
||||
return {"items": [], "response": None}
|
||||
|
||||
|
||||
class PaymentTPV(models.Model):
|
||||
class PaymentTransaction(models.Model):
|
||||
class StatusChoices(models.TextChoices):
|
||||
PAID = "PAI", _("Pagado")
|
||||
PENDING = "PEN", _("Pendiente")
|
||||
@@ -62,10 +62,6 @@ class PaymentTPV(models.Model):
|
||||
}
|
||||
"""
|
||||
|
||||
def regenerate_uuid(self):
|
||||
self.hash = uuid4()
|
||||
self.save()
|
||||
|
||||
@property
|
||||
def amount_integer(self) -> int:
|
||||
return int(self.amount * 100)
|
||||
|
||||
Reference in New Issue
Block a user