diff --git a/hosting/models.py b/hosting/models.py index fe0d824c..e95c5bb6 100644 --- a/hosting/models.py +++ b/hosting/models.py @@ -1,4 +1,3 @@ -import decimal import json import logging import os @@ -747,6 +746,19 @@ class StripeTaxRate(AssignPermissionsMixin, models.Model): description = models.CharField(max_length=100) +class IncompletePaymentIntents(AssignPermissionsMixin, models.Model): + completed_at = models.DateTimeField(null=True) + created_at = models.DateTimeField(auto_now_add=True) + payment_intent_id = models.CharField(max_length=100) + request = models.TextField() + stripe_api_cus_id = models.CharField(max_length=30) + card_details_response = models.TextField() + stripe_subscription_id = models.TextField() + stripe_charge_id = models.TextField() + gp_details = models.TextField() + billing_address_data = models.TextField() + + class IncompleteSubscriptions(AssignPermissionsMixin, models.Model): created_at = models.DateTimeField(auto_now_add=True) completed_at = models.DateTimeField(null=True)