Tesis 1.0.0
Loading...
Searching...
No Matches
payment_service.models.PaymentRequest Class Reference
Inheritance diagram for payment_service.models.PaymentRequest:

Classes

class  Meta

Public Member Functions

 __str__ (self)

Static Public Attributes

 id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
 user_token = models.CharField(max_length=255, help_text="Token de autenticación del usuario")
 preference_id = models.CharField(max_length=255, null=True, blank=True, help_text="ID de la preferencia en Mercado Pago")
 init_point = models.URLField(null=True, blank=True, help_text="URL para redirigir al usuario para el pago")
 status = models.CharField(max_length=50, default="pending", help_text="Estado del pago")
 total_amount = models.DecimalField(max_digits=10, decimal_places=2, null=True, blank=True, help_text="Monto total del pago")
 cart_data = models.JSONField(null=True, blank=True, help_text="Datos del carrito del usuario")
 created_at = models.DateTimeField(default=timezone.now, help_text="Fecha de creación")
 updated_at = models.DateTimeField(auto_now=True, help_text="Fecha de actualización")
 order_confirmed = models.BooleanField(default=False, help_text="Indica si el pedido fue confirmado")

Detailed Description

Modelo para almacenar las solicitudes de pago y seguimiento

Definition at line 5 of file models.py.

Member Function Documentation

◆ __str__()

payment_service.models.PaymentRequest.__str__ ( self)

Definition at line 20 of file models.py.

Member Data Documentation

◆ cart_data

payment_service.models.PaymentRequest.cart_data = models.JSONField(null=True, blank=True, help_text="Datos del carrito del usuario")
static

Definition at line 15 of file models.py.

◆ created_at

payment_service.models.PaymentRequest.created_at = models.DateTimeField(default=timezone.now, help_text="Fecha de creación")
static

Definition at line 16 of file models.py.

◆ id

payment_service.models.PaymentRequest.id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
static

Definition at line 9 of file models.py.

◆ init_point

payment_service.models.PaymentRequest.init_point = models.URLField(null=True, blank=True, help_text="URL para redirigir al usuario para el pago")
static

Definition at line 12 of file models.py.

◆ order_confirmed

payment_service.models.PaymentRequest.order_confirmed = models.BooleanField(default=False, help_text="Indica si el pedido fue confirmado")
static

Definition at line 18 of file models.py.

◆ preference_id

payment_service.models.PaymentRequest.preference_id = models.CharField(max_length=255, null=True, blank=True, help_text="ID de la preferencia en Mercado Pago")
static

Definition at line 11 of file models.py.

◆ status

payment_service.models.PaymentRequest.status = models.CharField(max_length=50, default="pending", help_text="Estado del pago")
static

Definition at line 13 of file models.py.

◆ total_amount

payment_service.models.PaymentRequest.total_amount = models.DecimalField(max_digits=10, decimal_places=2, null=True, blank=True, help_text="Monto total del pago")
static

Definition at line 14 of file models.py.

◆ updated_at

payment_service.models.PaymentRequest.updated_at = models.DateTimeField(auto_now=True, help_text="Fecha de actualización")
static

Definition at line 17 of file models.py.

◆ user_token

payment_service.models.PaymentRequest.user_token = models.CharField(max_length=255, help_text="Token de autenticación del usuario")
static

Definition at line 10 of file models.py.


The documentation for this class was generated from the following file:
  • microservicemp/mercadopago_service/payment_service/models.py