Skip to content

Commit 294654a

Browse files
committed
feat: customer uuid and stripe customer id fields added to CheckoutIntent
1 parent e685b8f commit 294654a

File tree

3 files changed

+45
-1
lines changed

3 files changed

+45
-1
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Generated by Django 4.2.24 on 2025-09-30 14:58
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
('customer_billing', '0005_add_terms_metadata_field'),
10+
]
11+
12+
operations = [
13+
migrations.AddField(
14+
model_name='checkoutintent',
15+
name='enterprise_uuid',
16+
field=models.UUIDField(blank=True, help_text='The uuid of the EnterpriseCustomer, once successfully provisioned', null=True),
17+
),
18+
migrations.AddField(
19+
model_name='checkoutintent',
20+
name='stripe_customer_id',
21+
field=models.CharField(blank=True, db_index=True, help_text='The Stripe Customer identifier associated with this record', max_length=255, null=True),
22+
),
23+
migrations.AddField(
24+
model_name='historicalcheckoutintent',
25+
name='enterprise_uuid',
26+
field=models.UUIDField(blank=True, help_text='The uuid of the EnterpriseCustomer, once successfully provisioned', null=True),
27+
),
28+
migrations.AddField(
29+
model_name='historicalcheckoutintent',
30+
name='stripe_customer_id',
31+
field=models.CharField(blank=True, db_index=True, help_text='The Stripe Customer identifier associated with this record', max_length=255, null=True),
32+
),
33+
]

enterprise_access/apps/customer_billing/models.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,18 @@ class StateChoices(models.TextChoices):
109109
validators=[validate_slug],
110110
help_text="Checkout intent enterprise customer slug"
111111
)
112+
enterprise_uuid = models.UUIDField(
113+
null=True,
114+
blank=True,
115+
help_text="The uuid of the EnterpriseCustomer, once successfully provisioned",
116+
)
117+
stripe_customer_id = models.CharField(
118+
null=True,
119+
blank=True,
120+
help_text="The Stripe Customer identifier associated with this record",
121+
db_index=True,
122+
max_length=255,
123+
)
112124
expires_at = models.DateTimeField(
113125
db_index=True,
114126
help_text="Checkout intent expiration timestamp"

enterprise_access/apps/customer_billing/stripe_event_handlers.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import stripe
99

1010
from enterprise_access.apps.customer_billing.models import CheckoutIntent
11-
from enterprise_access.apps.customer_billing.stripe_api import get_stripe_subscription
1211
from enterprise_access.apps.customer_billing.stripe_event_types import StripeEventType
1312

1413
logger = logging.getLogger(__name__)

0 commit comments

Comments
 (0)