chore: rename model

This commit is contained in:
2024-03-24 20:41:33 +01:00
parent 3742037d68
commit 05ece2c074
8 changed files with 90 additions and 96 deletions
+1 -5
View File
@@ -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)