Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

stripe: Upgrade to latest version.

Aman Agrawal06a7dca45fa9
diff --git a/corporate/lib/stripe.py b/corporate/lib/stripe.py
index 7075abeae1b..6078721ce01 100644
--- a/corporate/lib/stripe.py
+++ b/corporate/lib/stripe.py
@@ -102,7 +102,7 @@ CARD_CAPITALIZATION = {
}
# The version of Stripe API the billing system supports.
-STRIPE_API_VERSION = "2025-09-30.clover"
+STRIPE_API_VERSION = "2025-10-29.clover"
stripe.api_version = STRIPE_API_VERSION
diff --git a/corporate/tests/stripe_fixtures/add_minimum_licenses--Charge.list.1.json b/corporate/tests/stripe_fixtures/add_minimum_licenses--Charge.list.1.json
index 5b1a7c43d49..5d1721274a0 100644
--- a/corporate/tests/stripe_fixtures/add_minimum_licenses--Charge.list.1.json
+++ b/corporate/tests/stripe_fixtures/add_minimum_licenses--Charge.list.1.json
@@ -58,7 +58,7 @@
"payment_method_details": {
"card": {
"amount_authorized": 100000,
- "authorization_code": "082087",
+ "authorization_code": "021611",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
diff --git a/corporate/tests/stripe_fixtures/add_minimum_licenses--Event.list.1.json b/corporate/tests/stripe_fixtures/add_minimum_licenses--Event.list.1.json
index 195220b7123..6f7a2a8c085 100644
--- a/corporate/tests/stripe_fixtures/add_minimum_licenses--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/add_minimum_licenses--Event.list.1.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
diff --git a/corporate/tests/stripe_fixtures/add_minimum_licenses--Event.list.2.json b/corporate/tests/stripe_fixtures/add_minimum_licenses--Event.list.2.json
index b05ae09bf78..a1a0f3e7329 100644
--- a/corporate/tests/stripe_fixtures/add_minimum_licenses--Event.list.2.json
+++ b/corporate/tests/stripe_fixtures/add_minimum_licenses--Event.list.2.json
@@ -1,170 +1,26 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
- "account_country": "US",
- "account_name": "NORMALIZED",
- "account_tax_ids": null,
- "amount_due": 100000,
- "amount_overpaid": 0,
- "amount_paid": 100000,
- "amount_remaining": 0,
- "amount_shipping": 0,
- "application": null,
- "attempt_count": 1,
- "attempted": true,
- "auto_advance": false,
- "automatic_tax": {
- "disabled_reason": null,
- "enabled": false,
- "liability": null,
- "provider": null,
- "status": null
- },
- "automatically_finalizes_at": null,
- "billing_reason": "manual",
- "collection_method": "charge_automatically",
+ "amount_paid": null,
+ "amount_requested": 100000,
"created": 1000000000,
"currency": "usd",
- "custom_fields": null,
- "customer": "add_minimum_licenses--Customer.create.1.json",
- "customer_address": null,
- "customer_email": "[email protected]",
- "customer_name": null,
- "customer_phone": null,
- "customer_shipping": null,
- "customer_tax_exempt": "none",
- "customer_tax_ids": [],
- "default_payment_method": null,
- "default_source": null,
- "default_tax_rates": [],
- "description": null,
- "discounts": [],
- "due_date": null,
- "effective_at": 1000000000,
- "ending_balance": 0,
- "footer": null,
- "from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
"id": "add_minimum_licenses--Event.list.2.json",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
- "issuer": {
- "type": "self"
- },
- "last_finalization_error": null,
- "latest_revision": null,
- "lines": {
- "data": [
- {
- "amount": 100000,
- "currency": "usd",
- "description": "Zulip Cloud Standard",
- "discount_amounts": [],
- "discountable": false,
- "discounts": [],
- "id": "add_minimum_licenses--Event.list.2.json",
- "invoice": "add_minimum_licenses--Event.list.2.json",
- "livemode": false,
- "metadata": {},
- "object": "line_item",
- "parent": {
- "invoice_item_details": {
- "invoice_item": "add_minimum_licenses--Event.list.2.json",
- "proration": false,
- "proration_details": {
- "credited_items": null
- },
- "subscription": null
- },
- "subscription_item_details": null,
- "type": "invoice_item_details"
- },
- "period": {
- "end": 1357095845,
- "start": 1325473445
- },
- "pretax_credit_amounts": [],
- "pricing": {
- "price_details": {
- "price": "price_NORMALIZED",
- "product": "prod_NORMALIZED"
- },
- "type": "price_details",
- "unit_amount_decimal": "4000"
- },
- "quantity": 25,
- "taxes": []
- }
- ],
- "has_more": false,
- "object": "list",
- "total_count": 1,
- "url": "/v1/invoices/add_minimum_licenses--Event.list.2.json/lines"
- },
+ "invoice": "add_minimum_licenses--Event.list.2.json",
+ "is_default": true,
"livemode": false,
- "metadata": {
- "billing_schedule": "1",
- "current_plan_id": "None",
- "license_management": "automatic",
- "licenses": "25",
- "on_free_trial": "False",
- "plan_tier": "1",
- "user_id": "10"
+ "object": "invoice_payment",
+ "payment": {
+ "payment_intent": "add_minimum_licenses--Event.list.2.json",
+ "type": "payment_intent"
},
- "next_payment_attempt": null,
- "number": "NORMALIZED",
- "object": "invoice",
- "on_behalf_of": null,
- "parent": null,
- "payment_settings": {
- "default_mandate": null,
- "payment_method_options": null,
- "payment_method_types": null
- },
- "period_end": 1000000000,
- "period_start": 1000000000,
- "post_payment_credit_notes_amount": 0,
- "pre_payment_credit_notes_amount": 0,
- "receipt_number": null,
- "rendering": {
- "amount_tax_display": null,
- "pdf": {
- "page_size": "letter"
- },
- "template": null,
- "template_version": null
- },
- "shipping_cost": null,
- "shipping_details": null,
- "starting_balance": 0,
- "statement_descriptor": "Zulip Cloud Standard",
- "status": "paid",
- "status_transitions": {
- "finalized_at": 1000000000,
- "marked_uncollectible_at": null,
- "paid_at": 1000000000,
- "voided_at": null
- },
- "subtotal": 100000,
- "subtotal_excluding_tax": 100000,
- "test_clock": null,
- "total": 100000,
- "total_discount_amounts": [],
- "total_excluding_tax": 100000,
- "total_pretax_credit_amounts": [],
- "total_taxes": [],
- "webhooks_delivered_at": 1000000000
- },
- "previous_attributes": {
- "amount_paid": 0,
- "amount_remaining": 100000,
- "attempt_count": 0,
- "attempted": false,
"status": "open",
"status_transitions": {
+ "canceled_at": null,
"paid_at": null
}
}
@@ -172,15 +28,15 @@
"id": "add_minimum_licenses--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 2,
+ "pending_webhooks": 0,
"request": {
"id": "add_minimum_licenses--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "invoice.updated"
+ "type": "invoice_payment.paid"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -211,6 +67,10 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
+ "payment_details": {
+ "customer_reference": null,
+ "order_reference": "in_1SPPE0RVfKEFJaqcaEMfNd"
+ },
"payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
"payment_method_options": {
@@ -252,7 +112,7 @@
"type": "payment_intent.succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -313,7 +173,7 @@
"payment_method_details": {
"card": {
"amount_authorized": 100000,
- "authorization_code": "082087",
+ "authorization_code": "021611",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
@@ -371,7 +231,7 @@
"id": "add_minimum_licenses--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
"id": "add_minimum_licenses--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -379,7 +239,7 @@
"type": "charge.succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -548,7 +408,7 @@
"type": "invoice.finalized"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -733,7 +593,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -805,7 +665,7 @@
"type": "payment_intent.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -986,7 +846,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1033,7 +893,7 @@
"type": "invoiceitem.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1161,7 +1021,7 @@
"type": "invoice.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
diff --git a/corporate/tests/stripe_fixtures/add_minimum_licenses--Event.list.3.json b/corporate/tests/stripe_fixtures/add_minimum_licenses--Event.list.3.json
index 183d0c355f4..c259632f8fa 100644
--- a/corporate/tests/stripe_fixtures/add_minimum_licenses--Event.list.3.json
+++ b/corporate/tests/stripe_fixtures/add_minimum_licenses--Event.list.3.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -170,7 +170,7 @@
"type": "invoice.payment_succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -337,6 +337,185 @@
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "invoice.paid"
+ },
+ {
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "account_country": "US",
+ "account_name": "NORMALIZED",
+ "account_tax_ids": null,
+ "amount_due": 100000,
+ "amount_overpaid": 0,
+ "amount_paid": 100000,
+ "amount_remaining": 0,
+ "amount_shipping": 0,
+ "application": null,
+ "attempt_count": 1,
+ "attempted": true,
+ "auto_advance": false,
+ "automatic_tax": {
+ "disabled_reason": null,
+ "enabled": false,
+ "liability": null,
+ "provider": null,
+ "status": null
+ },
+ "automatically_finalizes_at": null,
+ "billing_reason": "manual",
+ "collection_method": "charge_automatically",
+ "created": 1000000000,
+ "currency": "usd",
+ "custom_fields": null,
+ "customer": "cus_NORMALIZED",
+ "customer_address": null,
+ "customer_email": "[email protected]",
+ "customer_name": null,
+ "customer_phone": null,
+ "customer_shipping": null,
+ "customer_tax_exempt": "none",
+ "customer_tax_ids": [],
+ "default_payment_method": null,
+ "default_source": null,
+ "default_tax_rates": [],
+ "description": null,
+ "discounts": [],
+ "due_date": null,
+ "effective_at": 1000000000,
+ "ending_balance": 0,
+ "footer": null,
+ "from_invoice": null,
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
+ "id": "add_minimum_licenses--Event.list.2.json",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
+ "issuer": {
+ "type": "self"
+ },
+ "last_finalization_error": null,
+ "latest_revision": null,
+ "lines": {
+ "data": [
+ {
+ "amount": 100000,
+ "currency": "usd",
+ "description": "Zulip Cloud Standard",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "add_minimum_licenses--Event.list.2.json",
+ "invoice": "add_minimum_licenses--Event.list.2.json",
+ "livemode": false,
+ "metadata": {},
+ "object": "line_item",
+ "parent": {
+ "invoice_item_details": {
+ "invoice_item": "ii_NORMALIZED",
+ "proration": false,
+ "proration_details": {
+ "credited_items": null
+ },
+ "subscription": null
+ },
+ "subscription_item_details": null,
+ "type": "invoice_item_details"
+ },
+ "period": {
+ "end": 1357095845,
+ "start": 1325473445
+ },
+ "pretax_credit_amounts": [],
+ "pricing": {
+ "price_details": {
+ "price": "price_NORMALIZED",
+ "product": "prod_NORMALIZED"
+ },
+ "type": "price_details",
+ "unit_amount_decimal": "4000"
+ },
+ "quantity": 25,
+ "taxes": []
+ }
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 1,
+ "url": "/v1/invoices/add_minimum_licenses--Event.list.2.json/lines"
+ },
+ "livemode": false,
+ "metadata": {
+ "billing_schedule": "1",
+ "current_plan_id": "None",
+ "license_management": "automatic",
+ "licenses": "25",
+ "on_free_trial": "False",
+ "plan_tier": "1",
+ "user_id": "10"
+ },
+ "next_payment_attempt": null,
+ "number": "NORMALIZED",
+ "object": "invoice",
+ "on_behalf_of": null,
+ "parent": null,
+ "payment_settings": {
+ "default_mandate": null,
+ "payment_method_options": null,
+ "payment_method_types": null
+ },
+ "period_end": 1000000000,
+ "period_start": 1000000000,
+ "post_payment_credit_notes_amount": 0,
+ "pre_payment_credit_notes_amount": 0,
+ "receipt_number": null,
+ "rendering": {
+ "amount_tax_display": null,
+ "pdf": {
+ "page_size": "letter"
+ },
+ "template": null,
+ "template_version": null
+ },
+ "shipping_cost": null,
+ "shipping_details": null,
+ "starting_balance": 0,
+ "statement_descriptor": "Zulip Cloud Standard",
+ "status": "paid",
+ "status_transitions": {
+ "finalized_at": 1000000000,
+ "marked_uncollectible_at": null,
+ "paid_at": 1000000000,
+ "voided_at": null
+ },
+ "subtotal": 100000,
+ "subtotal_excluding_tax": 100000,
+ "test_clock": null,
+ "total": 100000,
+ "total_discount_amounts": [],
+ "total_excluding_tax": 100000,
+ "total_pretax_credit_amounts": [],
+ "total_taxes": [],
+ "webhooks_delivered_at": 1000000000
+ },
+ "previous_attributes": {
+ "amount_paid": 0,
+ "amount_remaining": 100000,
+ "attempt_count": 0,
+ "attempted": false,
+ "status": "open",
+ "status_transitions": {
+ "paid_at": null
+ }
+ }
+ },
+ "id": "add_minimum_licenses--Event.list.3.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "add_minimum_licenses--Event.list.2.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ },
+ "type": "invoice.updated"
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/add_minimum_licenses--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/add_minimum_licenses--SetupIntent.create.1.json
index 5b2c75ff513..072d089c1e3 100644
--- a/corporate/tests/stripe_fixtures/add_minimum_licenses--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/add_minimum_licenses--SetupIntent.create.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "add_minimum_licenses--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/add_minimum_licenses--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/add_minimum_licenses--SetupIntent.list.1.json
index a78ae84859a..37db9233b7b 100644
--- a/corporate/tests/stripe_fixtures/add_minimum_licenses--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/add_minimum_licenses--SetupIntent.list.1.json
@@ -8,6 +8,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "add_minimum_licenses--SetupIntent.list.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/add_minimum_licenses--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/add_minimum_licenses--SetupIntent.retrieve.1.json
index 5b2c75ff513..072d089c1e3 100644
--- a/corporate/tests/stripe_fixtures/add_minimum_licenses--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/add_minimum_licenses--SetupIntent.retrieve.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "add_minimum_licenses--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Charge.list.1.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Charge.list.1.json
index ecbbe0d9324..d2a7506e1e8 100644
--- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Charge.list.1.json
+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Charge.list.1.json
@@ -58,7 +58,7 @@
"payment_method_details": {
"card": {
"amount_authorized": 7200,
- "authorization_code": "119016",
+ "authorization_code": "405663",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Charge.list.2.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Charge.list.2.json
index 41b93499421..df238fb9692 100644
--- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Charge.list.2.json
+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Charge.list.2.json
@@ -58,7 +58,7 @@
"payment_method_details": {
"card": {
"amount_authorized": 36000,
- "authorization_code": "062836",
+ "authorization_code": "365623",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
@@ -170,7 +170,7 @@
"payment_method_details": {
"card": {
"amount_authorized": 7200,
- "authorization_code": "119016",
+ "authorization_code": "405663",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.1.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.1.json
index c2c28441449..0a17fc76770 100644
--- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.1.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.2.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.2.json
index c38e560139f..9e87583ae96 100644
--- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.2.json
+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.2.json
@@ -1,170 +1,26 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
- "account_country": "US",
- "account_name": "NORMALIZED",
- "account_tax_ids": null,
- "amount_due": 7200,
- "amount_overpaid": 0,
- "amount_paid": 7200,
- "amount_remaining": 0,
- "amount_shipping": 0,
- "application": null,
- "attempt_count": 1,
- "attempted": true,
- "auto_advance": false,
- "automatic_tax": {
- "disabled_reason": null,
- "enabled": false,
- "liability": null,
- "provider": null,
- "status": null
- },
- "automatically_finalizes_at": null,
- "billing_reason": "manual",
- "collection_method": "charge_automatically",
+ "amount_paid": null,
+ "amount_requested": 7200,
"created": 1000000000,
"currency": "usd",
- "custom_fields": null,
- "customer": "attach_discount_to_realm--Customer.create.1.json",
- "customer_address": null,
- "customer_email": "[email protected]",
- "customer_name": null,
- "customer_phone": null,
- "customer_shipping": null,
- "customer_tax_exempt": "none",
- "customer_tax_ids": [],
- "default_payment_method": null,
- "default_source": null,
- "default_tax_rates": [],
- "description": null,
- "discounts": [],
- "due_date": null,
- "effective_at": 1000000000,
- "ending_balance": 0,
- "footer": null,
- "from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
"id": "attach_discount_to_realm--Event.list.2.json",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
- "issuer": {
- "type": "self"
- },
- "last_finalization_error": null,
- "latest_revision": null,
- "lines": {
- "data": [
- {
- "amount": 7200,
- "currency": "usd",
- "description": "Zulip Cloud Standard",
- "discount_amounts": [],
- "discountable": false,
- "discounts": [],
- "id": "attach_discount_to_realm--Event.list.2.json",
- "invoice": "attach_discount_to_realm--Event.list.2.json",
- "livemode": false,
- "metadata": {},
- "object": "line_item",
- "parent": {
- "invoice_item_details": {
- "invoice_item": "attach_discount_to_realm--Event.list.2.json",
- "proration": false,
- "proration_details": {
- "credited_items": null
- },
- "subscription": null
- },
- "subscription_item_details": null,
- "type": "invoice_item_details"
- },
- "period": {
- "end": 1357095845,
- "start": 1325473445
- },
- "pretax_credit_amounts": [],
- "pricing": {
- "price_details": {
- "price": "price_NORMALIZED",
- "product": "prod_NORMALIZED"
- },
- "type": "price_details",
- "unit_amount_decimal": "1200"
- },
- "quantity": 6,
- "taxes": []
- }
- ],
- "has_more": false,
- "object": "list",
- "total_count": 1,
- "url": "/v1/invoices/attach_discount_to_realm--Event.list.2.json/lines"
- },
+ "invoice": "attach_discount_to_realm--Event.list.2.json",
+ "is_default": true,
"livemode": false,
- "metadata": {
- "billing_schedule": "1",
- "current_plan_id": "None",
- "license_management": "automatic",
- "licenses": "6",
- "on_free_trial": "False",
- "plan_tier": "1",
- "user_id": "10"
+ "object": "invoice_payment",
+ "payment": {
+ "payment_intent": "attach_discount_to_realm--Event.list.2.json",
+ "type": "payment_intent"
},
- "next_payment_attempt": null,
- "number": "NORMALIZED",
- "object": "invoice",
- "on_behalf_of": null,
- "parent": null,
- "payment_settings": {
- "default_mandate": null,
- "payment_method_options": null,
- "payment_method_types": null
- },
- "period_end": 1000000000,
- "period_start": 1000000000,
- "post_payment_credit_notes_amount": 0,
- "pre_payment_credit_notes_amount": 0,
- "receipt_number": null,
- "rendering": {
- "amount_tax_display": null,
- "pdf": {
- "page_size": "letter"
- },
- "template": null,
- "template_version": null
- },
- "shipping_cost": null,
- "shipping_details": null,
- "starting_balance": 0,
- "statement_descriptor": "Zulip Cloud Standard",
- "status": "paid",
- "status_transitions": {
- "finalized_at": 1000000000,
- "marked_uncollectible_at": null,
- "paid_at": 1000000000,
- "voided_at": null
- },
- "subtotal": 7200,
- "subtotal_excluding_tax": 7200,
- "test_clock": null,
- "total": 7200,
- "total_discount_amounts": [],
- "total_excluding_tax": 7200,
- "total_pretax_credit_amounts": [],
- "total_taxes": [],
- "webhooks_delivered_at": 1000000000
- },
- "previous_attributes": {
- "amount_paid": 0,
- "amount_remaining": 7200,
- "attempt_count": 0,
- "attempted": false,
"status": "open",
"status_transitions": {
+ "canceled_at": null,
"paid_at": null
}
}
@@ -177,10 +33,10 @@
"id": "attach_discount_to_realm--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "invoice.updated"
+ "type": "invoice_payment.paid"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -211,6 +67,10 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
+ "payment_details": {
+ "customer_reference": null,
+ "order_reference": "in_1SPPEERVfKEFJaqcOMNa5a"
+ },
"payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
"payment_method_options": {
@@ -244,7 +104,7 @@
"id": "attach_discount_to_realm--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
"id": "attach_discount_to_realm--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -252,7 +112,7 @@
"type": "payment_intent.succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -313,7 +173,7 @@
"payment_method_details": {
"card": {
"amount_authorized": 7200,
- "authorization_code": "119016",
+ "authorization_code": "405663",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
@@ -371,7 +231,7 @@
"id": "attach_discount_to_realm--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
"id": "attach_discount_to_realm--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -379,7 +239,7 @@
"type": "charge.succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -548,7 +408,7 @@
"type": "invoice.finalized"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -733,7 +593,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -805,7 +665,7 @@
"type": "payment_intent.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -960,7 +820,7 @@
"total_excluding_tax": 7200,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
},
"previous_attributes": {
"amount_due": 0,
@@ -986,7 +846,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1033,7 +893,7 @@
"type": "invoiceitem.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1161,7 +1021,7 @@
"type": "invoice.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1211,7 +1071,7 @@
"type": "customer.updated"
}
],
- "has_more": true,
+ "has_more": false,
"object": "list",
"url": "/v1/events"
}
diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.3.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.3.json
index 49bea9a6d3d..371115a57c8 100644
--- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.3.json
+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.3.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -162,7 +162,7 @@
"id": "attach_discount_to_realm--Event.list.3.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 1,
"request": {
"id": "attach_discount_to_realm--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -170,7 +170,7 @@
"type": "invoice.payment_succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -337,6 +337,185 @@
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "invoice.paid"
+ },
+ {
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "account_country": "US",
+ "account_name": "NORMALIZED",
+ "account_tax_ids": null,
+ "amount_due": 7200,
+ "amount_overpaid": 0,
+ "amount_paid": 7200,
+ "amount_remaining": 0,
+ "amount_shipping": 0,
+ "application": null,
+ "attempt_count": 1,
+ "attempted": true,
+ "auto_advance": false,
+ "automatic_tax": {
+ "disabled_reason": null,
+ "enabled": false,
+ "liability": null,
+ "provider": null,
+ "status": null
+ },
+ "automatically_finalizes_at": null,
+ "billing_reason": "manual",
+ "collection_method": "charge_automatically",
+ "created": 1000000000,
+ "currency": "usd",
+ "custom_fields": null,
+ "customer": "cus_NORMALIZED",
+ "customer_address": null,
+ "customer_email": "[email protected]",
+ "customer_name": null,
+ "customer_phone": null,
+ "customer_shipping": null,
+ "customer_tax_exempt": "none",
+ "customer_tax_ids": [],
+ "default_payment_method": null,
+ "default_source": null,
+ "default_tax_rates": [],
+ "description": null,
+ "discounts": [],
+ "due_date": null,
+ "effective_at": 1000000000,
+ "ending_balance": 0,
+ "footer": null,
+ "from_invoice": null,
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
+ "id": "attach_discount_to_realm--Event.list.2.json",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
+ "issuer": {
+ "type": "self"
+ },
+ "last_finalization_error": null,
+ "latest_revision": null,
+ "lines": {
+ "data": [
+ {
+ "amount": 7200,
+ "currency": "usd",
+ "description": "Zulip Cloud Standard",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "attach_discount_to_realm--Event.list.2.json",
+ "invoice": "attach_discount_to_realm--Event.list.2.json",
+ "livemode": false,
+ "metadata": {},
+ "object": "line_item",
+ "parent": {
+ "invoice_item_details": {
+ "invoice_item": "ii_NORMALIZED",
+ "proration": false,
+ "proration_details": {
+ "credited_items": null
+ },
+ "subscription": null
+ },
+ "subscription_item_details": null,
+ "type": "invoice_item_details"
+ },
+ "period": {
+ "end": 1357095845,
+ "start": 1325473445
+ },
+ "pretax_credit_amounts": [],
+ "pricing": {
+ "price_details": {
+ "price": "price_NORMALIZED",
+ "product": "prod_NORMALIZED"
+ },
+ "type": "price_details",
+ "unit_amount_decimal": "1200"
+ },
+ "quantity": 6,
+ "taxes": []
+ }
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 1,
+ "url": "/v1/invoices/attach_discount_to_realm--Event.list.2.json/lines"
+ },
+ "livemode": false,
+ "metadata": {
+ "billing_schedule": "1",
+ "current_plan_id": "None",
+ "license_management": "automatic",
+ "licenses": "6",
+ "on_free_trial": "False",
+ "plan_tier": "1",
+ "user_id": "10"
+ },
+ "next_payment_attempt": null,
+ "number": "NORMALIZED",
+ "object": "invoice",
+ "on_behalf_of": null,
+ "parent": null,
+ "payment_settings": {
+ "default_mandate": null,
+ "payment_method_options": null,
+ "payment_method_types": null
+ },
+ "period_end": 1000000000,
+ "period_start": 1000000000,
+ "post_payment_credit_notes_amount": 0,
+ "pre_payment_credit_notes_amount": 0,
+ "receipt_number": null,
+ "rendering": {
+ "amount_tax_display": null,
+ "pdf": {
+ "page_size": "letter"
+ },
+ "template": null,
+ "template_version": null
+ },
+ "shipping_cost": null,
+ "shipping_details": null,
+ "starting_balance": 0,
+ "statement_descriptor": "Zulip Cloud Standard",
+ "status": "paid",
+ "status_transitions": {
+ "finalized_at": 1000000000,
+ "marked_uncollectible_at": null,
+ "paid_at": 1000000000,
+ "voided_at": null
+ },
+ "subtotal": 7200,
+ "subtotal_excluding_tax": 7200,
+ "test_clock": null,
+ "total": 7200,
+ "total_discount_amounts": [],
+ "total_excluding_tax": 7200,
+ "total_pretax_credit_amounts": [],
+ "total_taxes": [],
+ "webhooks_delivered_at": 1000000000
+ },
+ "previous_attributes": {
+ "amount_paid": 0,
+ "amount_remaining": 7200,
+ "attempt_count": 0,
+ "attempted": false,
+ "status": "open",
+ "status_transitions": {
+ "paid_at": null
+ }
+ }
+ },
+ "id": "attach_discount_to_realm--Event.list.3.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "attach_discount_to_realm--Event.list.2.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ },
+ "type": "invoice.updated"
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.5.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.5.json
index 9ac7bb1d04d..c0782c952d1 100644
--- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.5.json
+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.5.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.6.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.6.json
index dba457fbb68..e39b2fa8787 100644
--- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.6.json
+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.6.json
@@ -1,339 +1,26 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
- "account_country": "US",
- "account_name": "NORMALIZED",
- "account_tax_ids": null,
- "amount_due": 36000,
- "amount_overpaid": 0,
- "amount_paid": 36000,
- "amount_remaining": 0,
- "amount_shipping": 0,
- "application": null,
- "attempt_count": 1,
- "attempted": true,
- "auto_advance": false,
- "automatic_tax": {
- "disabled_reason": null,
- "enabled": false,
- "liability": null,
- "provider": null,
- "status": null
- },
- "automatically_finalizes_at": null,
- "billing_reason": "manual",
- "collection_method": "charge_automatically",
+ "amount_paid": null,
+ "amount_requested": 36000,
"created": 1000000000,
"currency": "usd",
- "custom_fields": null,
- "customer": "cus_NORMALIZED",
- "customer_address": null,
- "customer_email": "[email protected]",
- "customer_name": null,
- "customer_phone": null,
- "customer_shipping": null,
- "customer_tax_exempt": "none",
- "customer_tax_ids": [],
- "default_payment_method": null,
- "default_source": null,
- "default_tax_rates": [],
- "description": null,
- "discounts": [],
- "due_date": null,
- "effective_at": 1000000000,
- "ending_balance": 0,
- "footer": null,
- "from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
"id": "attach_discount_to_realm--Event.list.6.json",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
- "issuer": {
- "type": "self"
- },
- "last_finalization_error": null,
- "latest_revision": null,
- "lines": {
- "data": [
- {
- "amount": 36000,
- "currency": "usd",
- "description": "Zulip Cloud Standard",
- "discount_amounts": [],
- "discountable": false,
- "discounts": [],
- "id": "attach_discount_to_realm--Event.list.6.json",
- "invoice": "attach_discount_to_realm--Event.list.6.json",
- "livemode": false,
- "metadata": {},
- "object": "line_item",
- "parent": {
- "invoice_item_details": {
- "invoice_item": "attach_discount_to_realm--Event.list.6.json",
- "proration": false,
- "proration_details": {
- "credited_items": null
- },
- "subscription": null
- },
- "subscription_item_details": null,
- "type": "invoice_item_details"
- },
- "period": {
- "end": 1357095845,
- "start": 1325473445
- },
- "pretax_credit_amounts": [],
- "pricing": {
- "price_details": {
- "price": "price_NORMALIZED",
- "product": "prod_NORMALIZED"
- },
- "type": "price_details",
- "unit_amount_decimal": "6000"
- },
- "quantity": 6,
- "taxes": []
- }
- ],
- "has_more": false,
- "object": "list",
- "total_count": 1,
- "url": "/v1/invoices/attach_discount_to_realm--Event.list.6.json/lines"
- },
- "livemode": false,
- "metadata": {
- "billing_schedule": "1",
- "current_plan_id": "None",
- "license_management": "automatic",
- "licenses": "6",
- "on_free_trial": "False",
- "plan_tier": "1",
- "user_id": "10"
- },
- "next_payment_attempt": null,
- "number": "NORMALIZED",
- "object": "invoice",
- "on_behalf_of": null,
- "parent": null,
- "payment_settings": {
- "default_mandate": null,
- "payment_method_options": null,
- "payment_method_types": null
- },
- "period_end": 1000000000,
- "period_start": 1000000000,
- "post_payment_credit_notes_amount": 0,
- "pre_payment_credit_notes_amount": 0,
- "receipt_number": null,
- "rendering": {
- "amount_tax_display": null,
- "pdf": {
- "page_size": "letter"
- },
- "template": null,
- "template_version": null
- },
- "shipping_cost": null,
- "shipping_details": null,
- "starting_balance": 0,
- "statement_descriptor": "Zulip Cloud Standard",
- "status": "paid",
- "status_transitions": {
- "finalized_at": 1000000000,
- "marked_uncollectible_at": null,
- "paid_at": 1000000000,
- "voided_at": null
- },
- "subtotal": 36000,
- "subtotal_excluding_tax": 36000,
- "test_clock": null,
- "total": 36000,
- "total_discount_amounts": [],
- "total_excluding_tax": 36000,
- "total_pretax_credit_amounts": [],
- "total_taxes": [],
- "webhooks_delivered_at": 1000000000
- }
- },
- "id": "attach_discount_to_realm--Event.list.6.json",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 2,
- "request": {
- "id": "attach_discount_to_realm--Event.list.6.json",
- "idempotency_key": "00000000-0000-0000-0000-000000000000"
- },
- "type": "invoice.paid"
- },
- {
- "api_version": "2025-09-30.clover",
- "created": 1000000000,
- "data": {
- "object": {
- "account_country": "US",
- "account_name": "NORMALIZED",
- "account_tax_ids": null,
- "amount_due": 36000,
- "amount_overpaid": 0,
- "amount_paid": 36000,
- "amount_remaining": 0,
- "amount_shipping": 0,
- "application": null,
- "attempt_count": 1,
- "attempted": true,
- "auto_advance": false,
- "automatic_tax": {
- "disabled_reason": null,
- "enabled": false,
- "liability": null,
- "provider": null,
- "status": null
- },
- "automatically_finalizes_at": null,
- "billing_reason": "manual",
- "collection_method": "charge_automatically",
- "created": 1000000000,
- "currency": "usd",
- "custom_fields": null,
- "customer": "cus_NORMALIZED",
- "customer_address": null,
- "customer_email": "[email protected]",
- "customer_name": null,
- "customer_phone": null,
- "customer_shipping": null,
- "customer_tax_exempt": "none",
- "customer_tax_ids": [],
- "default_payment_method": null,
- "default_source": null,
- "default_tax_rates": [],
- "description": null,
- "discounts": [],
- "due_date": null,
- "effective_at": 1000000000,
- "ending_balance": 0,
- "footer": null,
- "from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
- "id": "attach_discount_to_realm--Event.list.6.json",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
- "issuer": {
- "type": "self"
- },
- "last_finalization_error": null,
- "latest_revision": null,
- "lines": {
- "data": [
- {
- "amount": 36000,
- "currency": "usd",
- "description": "Zulip Cloud Standard",
- "discount_amounts": [],
- "discountable": false,
- "discounts": [],
- "id": "attach_discount_to_realm--Event.list.6.json",
- "invoice": "attach_discount_to_realm--Event.list.6.json",
- "livemode": false,
- "metadata": {},
- "object": "line_item",
- "parent": {
- "invoice_item_details": {
- "invoice_item": "attach_discount_to_realm--Event.list.6.json",
- "proration": false,
- "proration_details": {
- "credited_items": null
- },
- "subscription": null
- },
- "subscription_item_details": null,
- "type": "invoice_item_details"
- },
- "period": {
- "end": 1357095845,
- "start": 1325473445
- },
- "pretax_credit_amounts": [],
- "pricing": {
- "price_details": {
- "price": "price_NORMALIZED",
- "product": "prod_NORMALIZED"
- },
- "type": "price_details",
- "unit_amount_decimal": "6000"
- },
- "quantity": 6,
- "taxes": []
- }
- ],
- "has_more": false,
- "object": "list",
- "total_count": 1,
- "url": "/v1/invoices/attach_discount_to_realm--Event.list.6.json/lines"
- },
+ "invoice": "attach_discount_to_realm--Event.list.6.json",
+ "is_default": true,
"livemode": false,
- "metadata": {
- "billing_schedule": "1",
- "current_plan_id": "None",
- "license_management": "automatic",
- "licenses": "6",
- "on_free_trial": "False",
- "plan_tier": "1",
- "user_id": "10"
- },
- "next_payment_attempt": null,
- "number": "NORMALIZED",
- "object": "invoice",
- "on_behalf_of": null,
- "parent": null,
- "payment_settings": {
- "default_mandate": null,
- "payment_method_options": null,
- "payment_method_types": null
+ "object": "invoice_payment",
+ "payment": {
+ "payment_intent": "attach_discount_to_realm--Event.list.6.json",
+ "type": "payment_intent"
},
- "period_end": 1000000000,
- "period_start": 1000000000,
- "post_payment_credit_notes_amount": 0,
- "pre_payment_credit_notes_amount": 0,
- "receipt_number": null,
- "rendering": {
- "amount_tax_display": null,
- "pdf": {
- "page_size": "letter"
- },
- "template": null,
- "template_version": null
- },
- "shipping_cost": null,
- "shipping_details": null,
- "starting_balance": 0,
- "statement_descriptor": "Zulip Cloud Standard",
- "status": "paid",
- "status_transitions": {
- "finalized_at": 1000000000,
- "marked_uncollectible_at": null,
- "paid_at": 1000000000,
- "voided_at": null
- },
- "subtotal": 36000,
- "subtotal_excluding_tax": 36000,
- "test_clock": null,
- "total": 36000,
- "total_discount_amounts": [],
- "total_excluding_tax": 36000,
- "total_pretax_credit_amounts": [],
- "total_taxes": [],
- "webhooks_delivered_at": 1000000000
- },
- "previous_attributes": {
- "amount_paid": 0,
- "amount_remaining": 36000,
- "attempt_count": 0,
- "attempted": false,
"status": "open",
"status_transitions": {
+ "canceled_at": null,
"paid_at": null
}
}
@@ -341,15 +28,15 @@
"id": "attach_discount_to_realm--Event.list.6.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 2,
+ "pending_webhooks": 0,
"request": {
"id": "attach_discount_to_realm--Event.list.6.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "invoice.updated"
+ "type": "invoice_payment.paid"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -380,6 +67,10 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
+ "payment_details": {
+ "customer_reference": null,
+ "order_reference": "in_1SPPERRVfKEFJaqcxke2FR"
+ },
"payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
"payment_method_options": {
@@ -413,7 +104,7 @@
"id": "attach_discount_to_realm--Event.list.6.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
"id": "attach_discount_to_realm--Event.list.6.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -421,7 +112,7 @@
"type": "payment_intent.succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -482,7 +173,7 @@
"payment_method_details": {
"card": {
"amount_authorized": 36000,
- "authorization_code": "062836",
+ "authorization_code": "365623",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
@@ -540,7 +231,7 @@
"id": "attach_discount_to_realm--Event.list.6.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
"id": "attach_discount_to_realm--Event.list.6.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -548,7 +239,7 @@
"type": "charge.succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -717,7 +408,7 @@
"type": "invoice.finalized"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -902,7 +593,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -974,7 +665,7 @@
"type": "payment_intent.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1155,7 +846,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1202,7 +893,7 @@
"type": "invoiceitem.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1330,7 +1021,7 @@
"type": "invoice.created"
}
],
- "has_more": true,
+ "has_more": false,
"object": "list",
"url": "/v1/events"
}
diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.7.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.7.json
index 399e09bc7d5..95c37d478ff 100644
--- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.7.json
+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.7.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -162,12 +162,360 @@
"id": "attach_discount_to_realm--Event.list.7.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
"id": "attach_discount_to_realm--Event.list.6.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "invoice.payment_succeeded"
+ },
+ {
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "account_country": "US",
+ "account_name": "NORMALIZED",
+ "account_tax_ids": null,
+ "amount_due": 36000,
+ "amount_overpaid": 0,
+ "amount_paid": 36000,
+ "amount_remaining": 0,
+ "amount_shipping": 0,
+ "application": null,
+ "attempt_count": 1,
+ "attempted": true,
+ "auto_advance": false,
+ "automatic_tax": {
+ "disabled_reason": null,
+ "enabled": false,
+ "liability": null,
+ "provider": null,
+ "status": null
+ },
+ "automatically_finalizes_at": null,
+ "billing_reason": "manual",
+ "collection_method": "charge_automatically",
+ "created": 1000000000,
+ "currency": "usd",
+ "custom_fields": null,
+ "customer": "cus_NORMALIZED",
+ "customer_address": null,
+ "customer_email": "[email protected]",
+ "customer_name": null,
+ "customer_phone": null,
+ "customer_shipping": null,
+ "customer_tax_exempt": "none",
+ "customer_tax_ids": [],
+ "default_payment_method": null,
+ "default_source": null,
+ "default_tax_rates": [],
+ "description": null,
+ "discounts": [],
+ "due_date": null,
+ "effective_at": 1000000000,
+ "ending_balance": 0,
+ "footer": null,
+ "from_invoice": null,
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
+ "id": "attach_discount_to_realm--Event.list.6.json",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
+ "issuer": {
+ "type": "self"
+ },
+ "last_finalization_error": null,
+ "latest_revision": null,
+ "lines": {
+ "data": [
+ {
+ "amount": 36000,
+ "currency": "usd",
+ "description": "Zulip Cloud Standard",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "attach_discount_to_realm--Event.list.6.json",
+ "invoice": "attach_discount_to_realm--Event.list.6.json",
+ "livemode": false,
+ "metadata": {},
+ "object": "line_item",
+ "parent": {
+ "invoice_item_details": {
+ "invoice_item": "ii_NORMALIZED",
+ "proration": false,
+ "proration_details": {
+ "credited_items": null
+ },
+ "subscription": null
+ },
+ "subscription_item_details": null,
+ "type": "invoice_item_details"
+ },
+ "period": {
+ "end": 1357095845,
+ "start": 1325473445
+ },
+ "pretax_credit_amounts": [],
+ "pricing": {
+ "price_details": {
+ "price": "price_NORMALIZED",
+ "product": "prod_NORMALIZED"
+ },
+ "type": "price_details",
+ "unit_amount_decimal": "6000"
+ },
+ "quantity": 6,
+ "taxes": []
+ }
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 1,
+ "url": "/v1/invoices/attach_discount_to_realm--Event.list.6.json/lines"
+ },
+ "livemode": false,
+ "metadata": {
+ "billing_schedule": "1",
+ "current_plan_id": "None",
+ "license_management": "automatic",
+ "licenses": "6",
+ "on_free_trial": "False",
+ "plan_tier": "1",
+ "user_id": "10"
+ },
+ "next_payment_attempt": null,
+ "number": "NORMALIZED",
+ "object": "invoice",
+ "on_behalf_of": null,
+ "parent": null,
+ "payment_settings": {
+ "default_mandate": null,
+ "payment_method_options": null,
+ "payment_method_types": null
+ },
+ "period_end": 1000000000,
+ "period_start": 1000000000,
+ "post_payment_credit_notes_amount": 0,
+ "pre_payment_credit_notes_amount": 0,
+ "receipt_number": null,
+ "rendering": {
+ "amount_tax_display": null,
+ "pdf": {
+ "page_size": "letter"
+ },
+ "template": null,
+ "template_version": null
+ },
+ "shipping_cost": null,
+ "shipping_details": null,
+ "starting_balance": 0,
+ "statement_descriptor": "Zulip Cloud Standard",
+ "status": "paid",
+ "status_transitions": {
+ "finalized_at": 1000000000,
+ "marked_uncollectible_at": null,
+ "paid_at": 1000000000,
+ "voided_at": null
+ },
+ "subtotal": 36000,
+ "subtotal_excluding_tax": 36000,
+ "test_clock": null,
+ "total": 36000,
+ "total_discount_amounts": [],
+ "total_excluding_tax": 36000,
+ "total_pretax_credit_amounts": [],
+ "total_taxes": [],
+ "webhooks_delivered_at": 1000000000
+ }
+ },
+ "id": "attach_discount_to_realm--Event.list.7.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 1,
+ "request": {
+ "id": "attach_discount_to_realm--Event.list.6.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ },
+ "type": "invoice.paid"
+ },
+ {
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "account_country": "US",
+ "account_name": "NORMALIZED",
+ "account_tax_ids": null,
+ "amount_due": 36000,
+ "amount_overpaid": 0,
+ "amount_paid": 36000,
+ "amount_remaining": 0,
+ "amount_shipping": 0,
+ "application": null,
+ "attempt_count": 1,
+ "attempted": true,
+ "auto_advance": false,
+ "automatic_tax": {
+ "disabled_reason": null,
+ "enabled": false,
+ "liability": null,
+ "provider": null,
+ "status": null
+ },
+ "automatically_finalizes_at": null,
+ "billing_reason": "manual",
+ "collection_method": "charge_automatically",
+ "created": 1000000000,
+ "currency": "usd",
+ "custom_fields": null,
+ "customer": "cus_NORMALIZED",
+ "customer_address": null,
+ "customer_email": "[email protected]",
+ "customer_name": null,
+ "customer_phone": null,
+ "customer_shipping": null,
+ "customer_tax_exempt": "none",
+ "customer_tax_ids": [],
+ "default_payment_method": null,
+ "default_source": null,
+ "default_tax_rates": [],
+ "description": null,
+ "discounts": [],
+ "due_date": null,
+ "effective_at": 1000000000,
+ "ending_balance": 0,
+ "footer": null,
+ "from_invoice": null,
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
+ "id": "attach_discount_to_realm--Event.list.6.json",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
+ "issuer": {
+ "type": "self"
+ },
+ "last_finalization_error": null,
+ "latest_revision": null,
+ "lines": {
+ "data": [
+ {
+ "amount": 36000,
+ "currency": "usd",
+ "description": "Zulip Cloud Standard",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "attach_discount_to_realm--Event.list.6.json",
+ "invoice": "attach_discount_to_realm--Event.list.6.json",
+ "livemode": false,
+ "metadata": {},
+ "object": "line_item",
+ "parent": {
+ "invoice_item_details": {
+ "invoice_item": "ii_NORMALIZED",
+ "proration": false,
+ "proration_details": {
+ "credited_items": null
+ },
+ "subscription": null
+ },
+ "subscription_item_details": null,
+ "type": "invoice_item_details"
+ },
+ "period": {
+ "end": 1357095845,
+ "start": 1325473445
+ },
+ "pretax_credit_amounts": [],
+ "pricing": {
+ "price_details": {
+ "price": "price_NORMALIZED",
+ "product": "prod_NORMALIZED"
+ },
+ "type": "price_details",
+ "unit_amount_decimal": "6000"
+ },
+ "quantity": 6,
+ "taxes": []
+ }
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 1,
+ "url": "/v1/invoices/attach_discount_to_realm--Event.list.6.json/lines"
+ },
+ "livemode": false,
+ "metadata": {
+ "billing_schedule": "1",
+ "current_plan_id": "None",
+ "license_management": "automatic",
+ "licenses": "6",
+ "on_free_trial": "False",
+ "plan_tier": "1",
+ "user_id": "10"
+ },
+ "next_payment_attempt": null,
+ "number": "NORMALIZED",
+ "object": "invoice",
+ "on_behalf_of": null,
+ "parent": null,
+ "payment_settings": {
+ "default_mandate": null,
+ "payment_method_options": null,
+ "payment_method_types": null
+ },
+ "period_end": 1000000000,
+ "period_start": 1000000000,
+ "post_payment_credit_notes_amount": 0,
+ "pre_payment_credit_notes_amount": 0,
+ "receipt_number": null,
+ "rendering": {
+ "amount_tax_display": null,
+ "pdf": {
+ "page_size": "letter"
+ },
+ "template": null,
+ "template_version": null
+ },
+ "shipping_cost": null,
+ "shipping_details": null,
+ "starting_balance": 0,
+ "statement_descriptor": "Zulip Cloud Standard",
+ "status": "paid",
+ "status_transitions": {
+ "finalized_at": 1000000000,
+ "marked_uncollectible_at": null,
+ "paid_at": 1000000000,
+ "voided_at": null
+ },
+ "subtotal": 36000,
+ "subtotal_excluding_tax": 36000,
+ "test_clock": null,
+ "total": 36000,
+ "total_discount_amounts": [],
+ "total_excluding_tax": 36000,
+ "total_pretax_credit_amounts": [],
+ "total_taxes": [],
+ "webhooks_delivered_at": 1000000000
+ },
+ "previous_attributes": {
+ "amount_paid": 0,
+ "amount_remaining": 36000,
+ "attempt_count": 0,
+ "attempted": false,
+ "status": "open",
+ "status_transitions": {
+ "paid_at": null
+ }
+ }
+ },
+ "id": "attach_discount_to_realm--Event.list.7.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "attach_discount_to_realm--Event.list.6.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ },
+ "type": "invoice.updated"
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--SetupIntent.create.1.json
index 517f3cc931e..2fcdefdbda1 100644
--- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--SetupIntent.create.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "attach_discount_to_realm--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--SetupIntent.create.2.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--SetupIntent.create.2.json
index c66aef042af..90774407dfa 100644
--- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--SetupIntent.create.2.json
+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--SetupIntent.create.2.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "attach_discount_to_realm--SetupIntent.create.2.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--SetupIntent.list.1.json
index bae4d81a000..76dc06cf559 100644
--- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--SetupIntent.list.1.json
@@ -8,6 +8,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "attach_discount_to_realm--SetupIntent.list.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--SetupIntent.list.2.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--SetupIntent.list.2.json
index 89dd091a77b..953c2b5fc67 100644
--- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--SetupIntent.list.2.json
+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--SetupIntent.list.2.json
@@ -8,6 +8,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "attach_discount_to_realm--SetupIntent.list.2.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--SetupIntent.retrieve.1.json
index 517f3cc931e..2fcdefdbda1 100644
--- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--SetupIntent.retrieve.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "attach_discount_to_realm--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--SetupIntent.retrieve.2.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--SetupIntent.retrieve.2.json
index c66aef042af..90774407dfa 100644
--- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--SetupIntent.retrieve.2.json
+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--SetupIntent.retrieve.2.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "attach_discount_to_realm--SetupIntent.create.2.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/billing_page_permissions--Event.list.1.json b/corporate/tests/stripe_fixtures/billing_page_permissions--Event.list.1.json
index 0a5e0025a31..5e94de890ba 100644
--- a/corporate/tests/stripe_fixtures/billing_page_permissions--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/billing_page_permissions--Event.list.1.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
diff --git a/corporate/tests/stripe_fixtures/billing_page_permissions--Event.list.2.json b/corporate/tests/stripe_fixtures/billing_page_permissions--Event.list.2.json
index f058285252c..3f3d0bb39a2 100644
--- a/corporate/tests/stripe_fixtures/billing_page_permissions--Event.list.2.json
+++ b/corporate/tests/stripe_fixtures/billing_page_permissions--Event.list.2.json
@@ -1,258 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
- "created": 1000000000,
- "data": {
- "object": {
- "account_country": "US",
- "account_name": "NORMALIZED",
- "account_tax_ids": null,
- "amount_due": 48000,
- "amount_overpaid": 0,
- "amount_paid": 48000,
- "amount_remaining": 0,
- "amount_shipping": 0,
- "application": null,
- "attempt_count": 1,
- "attempted": true,
- "auto_advance": false,
- "automatic_tax": {
- "disabled_reason": null,
- "enabled": false,
- "liability": null,
- "provider": null,
- "status": null
- },
- "automatically_finalizes_at": null,
- "billing_reason": "manual",
- "collection_method": "charge_automatically",
- "created": 1000000000,
- "currency": "usd",
- "custom_fields": null,
- "customer": "billing_page_permissions--Customer.create.1.json",
- "customer_address": null,
- "customer_email": "[email protected]",
- "customer_name": null,
- "customer_phone": null,
- "customer_shipping": null,
- "customer_tax_exempt": "none",
- "customer_tax_ids": [],
- "default_payment_method": null,
- "default_source": null,
- "default_tax_rates": [],
- "description": null,
- "discounts": [],
- "due_date": null,
- "effective_at": 1000000000,
- "ending_balance": 0,
- "footer": null,
- "from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
- "id": "billing_page_permissions--Event.list.2.json",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
- "issuer": {
- "type": "self"
- },
- "last_finalization_error": null,
- "latest_revision": null,
- "lines": {
- "data": [
- {
- "amount": 48000,
- "currency": "usd",
- "description": "Zulip Cloud Standard",
- "discount_amounts": [],
- "discountable": false,
- "discounts": [],
- "id": "billing_page_permissions--Event.list.2.json",
- "invoice": "billing_page_permissions--Event.list.2.json",
- "livemode": false,
- "metadata": {},
- "object": "line_item",
- "parent": {
- "invoice_item_details": {
- "invoice_item": "billing_page_permissions--Event.list.2.json",
- "proration": false,
- "proration_details": {
- "credited_items": null
- },
- "subscription": null
- },
- "subscription_item_details": null,
- "type": "invoice_item_details"
- },
- "period": {
- "end": 1357095845,
- "start": 1325473445
- },
- "pretax_credit_amounts": [],
- "pricing": {
- "price_details": {
- "price": "price_NORMALIZED",
- "product": "prod_NORMALIZED"
- },
- "type": "price_details",
- "unit_amount_decimal": "8000"
- },
- "quantity": 6,
- "taxes": []
- }
- ],
- "has_more": false,
- "object": "list",
- "total_count": 1,
- "url": "/v1/invoices/billing_page_permissions--Event.list.2.json/lines"
- },
- "livemode": false,
- "metadata": {
- "billing_schedule": "1",
- "current_plan_id": "None",
- "license_management": "automatic",
- "licenses": "6",
- "on_free_trial": "False",
- "plan_tier": "1",
- "user_id": "9"
- },
- "next_payment_attempt": null,
- "number": "NORMALIZED",
- "object": "invoice",
- "on_behalf_of": null,
- "parent": null,
- "payment_settings": {
- "default_mandate": null,
- "payment_method_options": null,
- "payment_method_types": null
- },
- "period_end": 1000000000,
- "period_start": 1000000000,
- "post_payment_credit_notes_amount": 0,
- "pre_payment_credit_notes_amount": 0,
- "receipt_number": null,
- "rendering": {
- "amount_tax_display": null,
- "pdf": {
- "page_size": "letter"
- },
- "template": null,
- "template_version": null
- },
- "shipping_cost": null,
- "shipping_details": null,
- "starting_balance": 0,
- "statement_descriptor": "Zulip Cloud Standard",
- "status": "paid",
- "status_transitions": {
- "finalized_at": 1000000000,
- "marked_uncollectible_at": null,
- "paid_at": 1000000000,
- "voided_at": null
- },
- "subtotal": 48000,
- "subtotal_excluding_tax": 48000,
- "test_clock": null,
- "total": 48000,
- "total_discount_amounts": [],
- "total_excluding_tax": 48000,
- "total_pretax_credit_amounts": [],
- "total_taxes": [],
- "webhooks_delivered_at": 1000000000
- },
- "previous_attributes": {
- "amount_paid": 0,
- "amount_remaining": 48000,
- "attempt_count": 0,
- "attempted": false,
- "status": "open",
- "status_transitions": {
- "paid_at": null
- }
- }
- },
- "id": "billing_page_permissions--Event.list.2.json",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 2,
- "request": {
- "id": "billing_page_permissions--Event.list.2.json",
- "idempotency_key": "00000000-0000-0000-0000-000000000000"
- },
- "type": "invoice.updated"
- },
- {
- "api_version": "2025-09-30.clover",
- "created": 1000000000,
- "data": {
- "object": {
- "amount": 48000,
- "amount_capturable": 0,
- "amount_details": {
- "tip": {}
- },
- "amount_received": 48000,
- "application": null,
- "application_fee_amount": null,
- "automatic_payment_methods": null,
- "canceled_at": null,
- "cancellation_reason": null,
- "capture_method": "automatic",
- "client_secret": "NORMALIZED",
- "confirmation_method": "automatic",
- "created": 1000000000,
- "currency": "usd",
- "customer": "billing_page_permissions--Customer.create.1.json",
- "description": "Payment for Invoice",
- "excluded_payment_method_types": null,
- "id": "billing_page_permissions--Event.list.2.json",
- "last_payment_error": null,
- "latest_charge": "billing_page_permissions--Event.list.2.json",
- "livemode": false,
- "metadata": {},
- "next_action": null,
- "object": "payment_intent",
- "on_behalf_of": null,
- "payment_method": "pm_NORMALIZED",
- "payment_method_configuration_details": null,
- "payment_method_options": {
- "card": {
- "installments": null,
- "mandate_options": null,
- "network": null,
- "request_three_d_secure": "automatic"
- },
- "link": {
- "persistent_token": null
- }
- },
- "payment_method_types": [
- "card",
- "link"
- ],
- "processing": null,
- "receipt_email": "[email protected]",
- "review": null,
- "setup_future_usage": null,
- "shipping": null,
- "source": null,
- "statement_descriptor": "Zulip Cloud Standard",
- "statement_descriptor_suffix": null,
- "status": "succeeded",
- "transfer_data": null,
- "transfer_group": null
- }
- },
- "id": "billing_page_permissions--Event.list.2.json",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 0,
- "request": {
- "id": "billing_page_permissions--Event.list.2.json",
- "idempotency_key": "00000000-0000-0000-0000-000000000000"
- },
- "type": "payment_intent.succeeded"
- },
- {
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -313,7 +62,7 @@
"payment_method_details": {
"card": {
"amount_authorized": 48000,
- "authorization_code": "840154",
+ "authorization_code": "575746",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
@@ -379,7 +128,7 @@
"type": "charge.succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -548,7 +297,7 @@
"type": "invoice.finalized"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -733,7 +482,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -805,7 +554,329 @@
"type": "payment_intent.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "account_country": "US",
+ "account_name": "NORMALIZED",
+ "account_tax_ids": null,
+ "amount_due": 100,
+ "amount_overpaid": 0,
+ "amount_paid": 0,
+ "amount_remaining": 100,
+ "amount_shipping": 0,
+ "application": null,
+ "attempt_count": 0,
+ "attempted": false,
+ "auto_advance": true,
+ "automatic_tax": {
+ "disabled_reason": null,
+ "enabled": false,
+ "liability": null,
+ "provider": null,
+ "status": null
+ },
+ "automatically_finalizes_at": null,
+ "billing_reason": "manual",
+ "collection_method": "send_invoice",
+ "created": 1000000000,
+ "currency": "usd",
+ "custom_fields": null,
+ "customer": "cus_NORMALIZED",
+ "customer_address": null,
+ "customer_email": "[email protected]",
+ "customer_name": null,
+ "customer_phone": null,
+ "customer_shipping": null,
+ "customer_tax_exempt": "none",
+ "customer_tax_ids": [],
+ "default_payment_method": null,
+ "default_source": null,
+ "default_tax_rates": [],
+ "description": null,
+ "discounts": [],
+ "due_date": 1000000000,
+ "effective_at": 1000000000,
+ "ending_balance": 0,
+ "footer": null,
+ "from_invoice": null,
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
+ "id": "billing_page_permissions--Event.list.2.json",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
+ "issuer": {
+ "type": "self"
+ },
+ "last_finalization_error": null,
+ "latest_revision": null,
+ "lines": {
+ "data": [
+ {
+ "amount": 100,
+ "currency": "usd",
+ "description": "Zulip Cloud Standard - renewal",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "billing_page_permissions--Event.list.2.json",
+ "invoice": "billing_page_permissions--Event.list.2.json",
+ "livemode": false,
+ "metadata": {},
+ "object": "line_item",
+ "parent": {
+ "invoice_item_details": {
+ "invoice_item": "ii_NORMALIZED",
+ "proration": false,
+ "proration_details": {
+ "credited_items": null
+ },
+ "subscription": null
+ },
+ "subscription_item_details": null,
+ "type": "invoice_item_details"
+ },
+ "period": {
+ "end": 1388631845,
+ "start": 1357095845
+ },
+ "pretax_credit_amounts": [],
+ "pricing": {
+ "price_details": {
+ "price": "price_NORMALIZED",
+ "product": "prod_NORMALIZED"
+ },
+ "type": "price_details",
+ "unit_amount_decimal": "100"
+ },
+ "quantity": 1,
+ "taxes": []
+ }
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 1,
+ "url": "/v1/invoices/billing_page_permissions--Event.list.2.json/lines"
+ },
+ "livemode": false,
+ "metadata": {},
+ "next_payment_attempt": null,
+ "number": "NORMALIZED",
+ "object": "invoice",
+ "on_behalf_of": null,
+ "parent": null,
+ "payment_settings": {
+ "default_mandate": null,
+ "payment_method_options": null,
+ "payment_method_types": null
+ },
+ "period_end": 1000000000,
+ "period_start": 1000000000,
+ "post_payment_credit_notes_amount": 0,
+ "pre_payment_credit_notes_amount": 0,
+ "receipt_number": null,
+ "rendering": {
+ "amount_tax_display": null,
+ "pdf": {
+ "page_size": "letter"
+ },
+ "template": null,
+ "template_version": null
+ },
+ "shipping_cost": null,
+ "shipping_details": null,
+ "starting_balance": 0,
+ "statement_descriptor": "Zulip Cloud Standard",
+ "status": "open",
+ "status_transitions": {
+ "finalized_at": 1000000000,
+ "marked_uncollectible_at": null,
+ "paid_at": null,
+ "voided_at": null
+ },
+ "subtotal": 100,
+ "subtotal_excluding_tax": 100,
+ "test_clock": null,
+ "total": 100,
+ "total_discount_amounts": [],
+ "total_excluding_tax": 100,
+ "total_pretax_credit_amounts": [],
+ "total_taxes": [],
+ "webhooks_delivered_at": 1000000000
+ }
+ },
+ "id": "billing_page_permissions--Event.list.2.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": null,
+ "idempotency_key": null
+ },
+ "type": "invoice.sent"
+ },
+ {
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "account_country": "US",
+ "account_name": "NORMALIZED",
+ "account_tax_ids": null,
+ "amount_due": 36000,
+ "amount_overpaid": 0,
+ "amount_paid": 0,
+ "amount_remaining": 36000,
+ "amount_shipping": 0,
+ "application": null,
+ "attempt_count": 0,
+ "attempted": false,
+ "auto_advance": true,
+ "automatic_tax": {
+ "disabled_reason": null,
+ "enabled": false,
+ "liability": null,
+ "provider": null,
+ "status": null
+ },
+ "automatically_finalizes_at": null,
+ "billing_reason": "manual",
+ "collection_method": "send_invoice",
+ "created": 1000000000,
+ "currency": "usd",
+ "custom_fields": null,
+ "customer": "cus_NORMALIZED",
+ "customer_address": null,
+ "customer_email": "[email protected]",
+ "customer_name": null,
+ "customer_phone": null,
+ "customer_shipping": null,
+ "customer_tax_exempt": "none",
+ "customer_tax_ids": [],
+ "default_payment_method": null,
+ "default_source": null,
+ "default_tax_rates": [],
+ "description": null,
+ "discounts": [],
+ "due_date": 1000000000,
+ "effective_at": 1000000000,
+ "ending_balance": 0,
+ "footer": null,
+ "from_invoice": null,
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
+ "id": "billing_page_permissions--Event.list.2.json",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
+ "issuer": {
+ "type": "self"
+ },
+ "last_finalization_error": null,
+ "latest_revision": null,
+ "lines": {
+ "data": [
+ {
+ "amount": 36000,
+ "currency": "usd",
+ "description": "Zulip Cloud Plus - renewal",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "billing_page_permissions--Event.list.2.json",
+ "invoice": "billing_page_permissions--Event.list.2.json",
+ "livemode": false,
+ "metadata": {},
+ "object": "line_item",
+ "parent": {
+ "invoice_item_details": {
+ "invoice_item": "ii_NORMALIZED",
+ "proration": false,
+ "proration_details": {
+ "credited_items": null
+ },
+ "subscription": null
+ },
+ "subscription_item_details": null,
+ "type": "invoice_item_details"
+ },
+ "period": {
+ "end": 1388620800,
+ "start": 1357084800
+ },
+ "pretax_credit_amounts": [],
+ "pricing": {
+ "price_details": {
+ "price": "price_NORMALIZED",
+ "product": "prod_NORMALIZED"
+ },
+ "type": "price_details",
+ "unit_amount_decimal": "36000"
+ },
+ "quantity": 1,
+ "taxes": []
+ }
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 1,
+ "url": "/v1/invoices/billing_page_permissions--Event.list.2.json/lines"
+ },
+ "livemode": false,
+ "metadata": {},
+ "next_payment_attempt": null,
+ "number": "NORMALIZED",
+ "object": "invoice",
+ "on_behalf_of": null,
+ "parent": null,
+ "payment_settings": {
+ "default_mandate": null,
+ "payment_method_options": null,
+ "payment_method_types": null
+ },
+ "period_end": 1000000000,
+ "period_start": 1000000000,
+ "post_payment_credit_notes_amount": 0,
+ "pre_payment_credit_notes_amount": 0,
+ "receipt_number": null,
+ "rendering": {
+ "amount_tax_display": null,
+ "pdf": {
+ "page_size": "letter"
+ },
+ "template": null,
+ "template_version": null
+ },
+ "shipping_cost": null,
+ "shipping_details": null,
+ "starting_balance": 0,
+ "statement_descriptor": "Zulip Cloud Plus",
+ "status": "open",
+ "status_transitions": {
+ "finalized_at": 1000000000,
+ "marked_uncollectible_at": null,
+ "paid_at": null,
+ "voided_at": null
+ },
+ "subtotal": 36000,
+ "subtotal_excluding_tax": 36000,
+ "test_clock": null,
+ "total": 36000,
+ "total_discount_amounts": [],
+ "total_excluding_tax": 36000,
+ "total_pretax_credit_amounts": [],
+ "total_taxes": [],
+ "webhooks_delivered_at": 1000000000
+ }
+ },
+ "id": "billing_page_permissions--Event.list.2.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": null,
+ "idempotency_key": null
+ },
+ "type": "invoice.sent"
+ },
+ {
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -986,7 +1057,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1033,7 +1104,7 @@
"type": "invoiceitem.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1161,7 +1232,7 @@
"type": "invoice.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
diff --git a/corporate/tests/stripe_fixtures/billing_page_permissions--Event.list.3.json b/corporate/tests/stripe_fixtures/billing_page_permissions--Event.list.3.json
index fee040cef8b..da98a1923c4 100644
--- a/corporate/tests/stripe_fixtures/billing_page_permissions--Event.list.3.json
+++ b/corporate/tests/stripe_fixtures/billing_page_permissions--Event.list.3.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -162,7 +162,7 @@
"id": "billing_page_permissions--Event.list.3.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
"id": "billing_page_permissions--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -170,7 +170,7 @@
"type": "invoice.payment_succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -331,12 +331,302 @@
"id": "billing_page_permissions--Event.list.3.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
"id": "billing_page_permissions--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "invoice.paid"
+ },
+ {
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "account_country": "US",
+ "account_name": "NORMALIZED",
+ "account_tax_ids": null,
+ "amount_due": 48000,
+ "amount_overpaid": 0,
+ "amount_paid": 48000,
+ "amount_remaining": 0,
+ "amount_shipping": 0,
+ "application": null,
+ "attempt_count": 1,
+ "attempted": true,
+ "auto_advance": false,
+ "automatic_tax": {
+ "disabled_reason": null,
+ "enabled": false,
+ "liability": null,
+ "provider": null,
+ "status": null
+ },
+ "automatically_finalizes_at": null,
+ "billing_reason": "manual",
+ "collection_method": "charge_automatically",
+ "created": 1000000000,
+ "currency": "usd",
+ "custom_fields": null,
+ "customer": "cus_NORMALIZED",
+ "customer_address": null,
+ "customer_email": "[email protected]",
+ "customer_name": null,
+ "customer_phone": null,
+ "customer_shipping": null,
+ "customer_tax_exempt": "none",
+ "customer_tax_ids": [],
+ "default_payment_method": null,
+ "default_source": null,
+ "default_tax_rates": [],
+ "description": null,
+ "discounts": [],
+ "due_date": null,
+ "effective_at": 1000000000,
+ "ending_balance": 0,
+ "footer": null,
+ "from_invoice": null,
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
+ "id": "billing_page_permissions--Event.list.2.json",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
+ "issuer": {
+ "type": "self"
+ },
+ "last_finalization_error": null,
+ "latest_revision": null,
+ "lines": {
+ "data": [
+ {
+ "amount": 48000,
+ "currency": "usd",
+ "description": "Zulip Cloud Standard",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "billing_page_permissions--Event.list.2.json",
+ "invoice": "billing_page_permissions--Event.list.2.json",
+ "livemode": false,
+ "metadata": {},
+ "object": "line_item",
+ "parent": {
+ "invoice_item_details": {
+ "invoice_item": "ii_NORMALIZED",
+ "proration": false,
+ "proration_details": {
+ "credited_items": null
+ },
+ "subscription": null
+ },
+ "subscription_item_details": null,
+ "type": "invoice_item_details"
+ },
+ "period": {
+ "end": 1357095845,
+ "start": 1325473445
+ },
+ "pretax_credit_amounts": [],
+ "pricing": {
+ "price_details": {
+ "price": "price_NORMALIZED",
+ "product": "prod_NORMALIZED"
+ },
+ "type": "price_details",
+ "unit_amount_decimal": "8000"
+ },
+ "quantity": 6,
+ "taxes": []
+ }
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 1,
+ "url": "/v1/invoices/billing_page_permissions--Event.list.2.json/lines"
+ },
+ "livemode": false,
+ "metadata": {
+ "billing_schedule": "1",
+ "current_plan_id": "None",
+ "license_management": "automatic",
+ "licenses": "6",
+ "on_free_trial": "False",
+ "plan_tier": "1",
+ "user_id": "9"
+ },
+ "next_payment_attempt": null,
+ "number": "NORMALIZED",
+ "object": "invoice",
+ "on_behalf_of": null,
+ "parent": null,
+ "payment_settings": {
+ "default_mandate": null,
+ "payment_method_options": null,
+ "payment_method_types": null
+ },
+ "period_end": 1000000000,
+ "period_start": 1000000000,
+ "post_payment_credit_notes_amount": 0,
+ "pre_payment_credit_notes_amount": 0,
+ "receipt_number": null,
+ "rendering": {
+ "amount_tax_display": null,
+ "pdf": {
+ "page_size": "letter"
+ },
+ "template": null,
+ "template_version": null
+ },
+ "shipping_cost": null,
+ "shipping_details": null,
+ "starting_balance": 0,
+ "statement_descriptor": "Zulip Cloud Standard",
+ "status": "paid",
+ "status_transitions": {
+ "finalized_at": 1000000000,
+ "marked_uncollectible_at": null,
+ "paid_at": 1000000000,
+ "voided_at": null
+ },
+ "subtotal": 48000,
+ "subtotal_excluding_tax": 48000,
+ "test_clock": null,
+ "total": 48000,
+ "total_discount_amounts": [],
+ "total_excluding_tax": 48000,
+ "total_pretax_credit_amounts": [],
+ "total_taxes": [],
+ "webhooks_delivered_at": 1000000000
+ },
+ "previous_attributes": {
+ "amount_paid": 0,
+ "amount_remaining": 48000,
+ "attempt_count": 0,
+ "attempted": false,
+ "status": "open",
+ "status_transitions": {
+ "paid_at": null
+ }
+ }
+ },
+ "id": "billing_page_permissions--Event.list.3.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "billing_page_permissions--Event.list.2.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ },
+ "type": "invoice.updated"
+ },
+ {
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount_paid": null,
+ "amount_requested": 48000,
+ "created": 1000000000,
+ "currency": "usd",
+ "id": "billing_page_permissions--Event.list.3.json",
+ "invoice": "billing_page_permissions--Event.list.2.json",
+ "is_default": true,
+ "livemode": false,
+ "object": "invoice_payment",
+ "payment": {
+ "payment_intent": "billing_page_permissions--Event.list.2.json",
+ "type": "payment_intent"
+ },
+ "status": "open",
+ "status_transitions": {
+ "canceled_at": null,
+ "paid_at": null
+ }
+ }
+ },
+ "id": "billing_page_permissions--Event.list.3.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "billing_page_permissions--Event.list.2.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ },
+ "type": "invoice_payment.paid"
+ },
+ {
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount": 48000,
+ "amount_capturable": 0,
+ "amount_details": {
+ "tip": {}
+ },
+ "amount_received": 48000,
+ "application": null,
+ "application_fee_amount": null,
+ "automatic_payment_methods": null,
+ "canceled_at": null,
+ "cancellation_reason": null,
+ "capture_method": "automatic",
+ "client_secret": "NORMALIZED",
+ "confirmation_method": "automatic",
+ "created": 1000000000,
+ "currency": "usd",
+ "customer": "cus_NORMALIZED",
+ "description": "Payment for Invoice",
+ "excluded_payment_method_types": null,
+ "id": "billing_page_permissions--Event.list.2.json",
+ "last_payment_error": null,
+ "latest_charge": "ch_NORMALIZED",
+ "livemode": false,
+ "metadata": {},
+ "next_action": null,
+ "object": "payment_intent",
+ "on_behalf_of": null,
+ "payment_details": {
+ "customer_reference": null,
+ "order_reference": "in_1SPOyLRVfKEFJaqcrGiWXY"
+ },
+ "payment_method": "pm_NORMALIZED",
+ "payment_method_configuration_details": null,
+ "payment_method_options": {
+ "card": {
+ "installments": null,
+ "mandate_options": null,
+ "network": null,
+ "request_three_d_secure": "automatic"
+ },
+ "link": {
+ "persistent_token": null
+ }
+ },
+ "payment_method_types": [
+ "card",
+ "link"
+ ],
+ "processing": null,
+ "receipt_email": "[email protected]",
+ "review": null,
+ "setup_future_usage": null,
+ "shipping": null,
+ "source": null,
+ "statement_descriptor": "Zulip Cloud Standard",
+ "statement_descriptor_suffix": null,
+ "status": "succeeded",
+ "transfer_data": null,
+ "transfer_group": null
+ }
+ },
+ "id": "billing_page_permissions--Event.list.3.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "billing_page_permissions--Event.list.2.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ },
+ "type": "payment_intent.succeeded"
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/billing_page_permissions--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/billing_page_permissions--SetupIntent.create.1.json
index 5af27178e61..6df9e1ab677 100644
--- a/corporate/tests/stripe_fixtures/billing_page_permissions--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/billing_page_permissions--SetupIntent.create.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "billing_page_permissions--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/billing_page_permissions--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/billing_page_permissions--SetupIntent.list.1.json
index a2adf8f516a..7574b711df5 100644
--- a/corporate/tests/stripe_fixtures/billing_page_permissions--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/billing_page_permissions--SetupIntent.list.1.json
@@ -8,6 +8,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "billing_page_permissions--SetupIntent.list.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/billing_page_permissions--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/billing_page_permissions--SetupIntent.retrieve.1.json
index 5af27178e61..6df9e1ab677 100644
--- a/corporate/tests/stripe_fixtures/billing_page_permissions--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/billing_page_permissions--SetupIntent.retrieve.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "billing_page_permissions--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/cancel_downgrade_at_end_of_free_trial--Event.list.1.json b/corporate/tests/stripe_fixtures/cancel_downgrade_at_end_of_free_trial--Event.list.1.json
index dc9e8647315..3b29d817ca3 100644
--- a/corporate/tests/stripe_fixtures/cancel_downgrade_at_end_of_free_trial--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/cancel_downgrade_at_end_of_free_trial--Event.list.1.json
@@ -1,27 +1,44 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
- "amount_paid": 48000,
- "amount_requested": 48000,
+ "address": null,
+ "balance": 0,
"created": 1000000000,
- "currency": "usd",
- "id": "cancel_downgrade_at_end_of_free_trial--Event.list.1.json",
- "invoice": "in_NORMALIZED",
- "is_default": true,
+ "currency": null,
+ "default_source": null,
+ "delinquent": false,
+ "description": "zulip (Zulip Dev)",
+ "discount": null,
+ "email": "[email protected]",
+ "id": "cancel_downgrade_at_end_of_free_trial--Customer.create.1.json",
+ "invoice_prefix": "NORMALIZED",
+ "invoice_settings": {
+ "custom_fields": null,
+ "default_payment_method": "pm_NORMALIZED",
+ "footer": null,
+ "rendering_options": null
+ },
"livemode": false,
- "object": "invoice_payment",
- "payment": {
- "payment_intent": "pi_NORMALIZED",
- "type": "payment_intent"
+ "metadata": {
+ "realm_id": "1",
+ "realm_str": "zulip"
},
- "status": "paid",
- "status_transitions": {
- "canceled_at": null,
- "paid_at": 1000000000
+ "name": null,
+ "next_invoice_sequence": 1,
+ "object": "customer",
+ "phone": null,
+ "preferred_locales": [],
+ "shipping": null,
+ "tax_exempt": "none",
+ "test_clock": null
+ },
+ "previous_attributes": {
+ "invoice_settings": {
+ "default_payment_method": null
}
}
},
@@ -30,10 +47,10 @@
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": null,
- "idempotency_key": null
+ "id": "cancel_downgrade_at_end_of_free_trial--Event.list.1.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "invoice_payment.paid"
+ "type": "customer.updated"
}
],
"has_more": true,
diff --git a/corporate/tests/stripe_fixtures/cancel_downgrade_at_end_of_free_trial--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/cancel_downgrade_at_end_of_free_trial--SetupIntent.create.1.json
index efccafaf609..52ed0a6a2e7 100644
--- a/corporate/tests/stripe_fixtures/cancel_downgrade_at_end_of_free_trial--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/cancel_downgrade_at_end_of_free_trial--SetupIntent.create.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "cancel_downgrade_at_end_of_free_trial--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/cancel_downgrade_at_end_of_free_trial--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/cancel_downgrade_at_end_of_free_trial--SetupIntent.list.1.json
index e7affcc3d3c..6b86114c8f8 100644
--- a/corporate/tests/stripe_fixtures/cancel_downgrade_at_end_of_free_trial--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/cancel_downgrade_at_end_of_free_trial--SetupIntent.list.1.json
@@ -8,6 +8,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "cancel_downgrade_at_end_of_free_trial--SetupIntent.list.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/cancel_downgrade_at_end_of_free_trial--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/cancel_downgrade_at_end_of_free_trial--SetupIntent.retrieve.1.json
index efccafaf609..52ed0a6a2e7 100644
--- a/corporate/tests/stripe_fixtures/cancel_downgrade_at_end_of_free_trial--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/cancel_downgrade_at_end_of_free_trial--SetupIntent.retrieve.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "cancel_downgrade_at_end_of_free_trial--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--Event.list.1.json b/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--Event.list.1.json
index 38da9fbb38b..537645558a5 100644
--- a/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--Event.list.1.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
diff --git a/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--Invoice.pay.1.json
index 17e19a3bbb8..64f09092217 100644
--- a/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--Invoice.pay.1.json
+++ b/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--Invoice.pay.1.json
@@ -98,6 +98,10 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
+ "payment_details": {
+ "customer_reference": null,
+ "order_reference": "in_1SPOyhRVfKEFJaqcJydyjA"
+ },
"payment_method": null,
"payment_method_configuration_details": null,
"payment_method_options": {
@@ -178,7 +182,7 @@
"object": "payment_method",
"type": "card"
},
- "request_log_url": "https://dashboard.stripe.com/test/logs/req_NORMALIZED?t=1759913616",
+ "request_log_url": "https://dashboard.stripe.com/test/logs/req_NORMALIZED?t=1762181010",
"setup_intent": null,
"source": null,
"type": "card_error"
@@ -191,23 +195,23 @@
"Access-Control-Max-Age": "300",
"Cache-Control": "no-cache, no-store",
"Connection": "keep-alive",
- "Content-Length": "5394",
- "Content-Security-Policy": "base-uri 'none'; default-src 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self'; worker-src 'none'; upgrade-insecure-requests; report-uri https://q.stripe.com/csp-violation?q=irAykxLghuCmgqrIXf-pM0galma1w0YXzU99WaktruwmWPN8iPfQgKGBqdAaBd-GGagPQijh3O5rblPQ",
+ "Content-Length": "5521",
+ "Content-Security-Policy": "base-uri 'none'; default-src 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self'; worker-src 'none'; upgrade-insecure-requests; report-uri https://q.stripe.com/csp-violation?q=yOLawO6tJvDr4tq54pgOc4WdzEnWNujbhdOZn5mkUzKSjkahCddgFRmKumCkUwZehd1AfqppzBfKHb8R",
"Content-Type": "application/json",
"Date": "NORMALIZED DATETIME",
- "Idempotency-Key": "038fe7d4-6476-4c9f-9ae3-65780db13c1a",
+ "Idempotency-Key": "d8fc5c79-b82d-47f9-8db6-fac1c98e98f0",
"Original-Request": "req_NORMALIZED",
"Request-Id": "req_NORMALIZED",
"Server": "nginx",
"Strict-Transport-Security": "max-age=63072000; includeSubDomains; preload",
"Stripe-Should-Retry": "false",
- "Stripe-Version": "2025-09-30.clover",
+ "Stripe-Version": "2025-10-29.clover",
"Vary": "Origin",
"X-Stripe-Priority-Routing-Enabled": "true",
"X-Stripe-Routing-Context-Priority-Tier": "api-testmode",
"X-Wc": "ABGHIJ"
},
- "http_body": "{\n \"error\": {\n \"advice_code\": \"try_again_later\",\n \"charge\": \"ch_NORMALIZED\",\n \"code\": \"card_declined\",\n \"decline_code\": \"generic_decline\",\n \"doc_url\": \"https://stripe.com/docs/error-codes/card-declined\",\n \"message\": \"Your card was declined.\",\n \"network_decline_code\": \"01\",\n \"payment_intent\": {\n \"id\": \"card_attached_to_customer_but_payment_fails--Invoice.pay.1.json\",\n \"object\": \"payment_intent\",\n \"amount\": 48000,\n \"amount_capturable\": 0,\n \"amount_details\": {\n \"tip\": {}\n },\n \"amount_received\": 0,\n \"application\": null,\n \"application_fee_amount\": null,\n \"automatic_payment_methods\": null,\n \"canceled_at\": null,\n \"cancellation_reason\": null,\n \"capture_method\": \"automatic\",\n \"client_secret\": \"card_attached_to_customer_but_payment_fails--Invoice.pay.1.json_secret_LfzkMlKx921LSChr94gZnpAuj\",\n \"confirmation_method\": \"automatic\",\n \"created\": 1000000000,\n \"currency\": \"usd\",\n \"customer\": \"cus_NORMALIZED\",\n \"description\": \"Payment for Invoice\",\n \"excluded_payment_method_types\": null,\n \"last_payment_error\": {\n \"advice_code\": \"try_again_later\",\n \"charge\": \"ch_NORMALIZED\",\n \"code\": \"card_declined\",\n \"decline_code\": \"generic_decline\",\n \"doc_url\": \"https://stripe.com/docs/error-codes/card-declined\",\n \"message\": \"Your card was declined.\",\n \"network_decline_code\": \"01\",\n \"payment_method\": {\n \"id\": \"card_attached_to_customer_but_payment_fails--Customer.retrieve.1.json\",\n \"object\": \"payment_method\",\n \"allow_redisplay\": \"unspecified\",\n \"billing_details\": {\n \"address\": {\n \"city\": \"San Francisco\",\n \"country\": \"US\",\n \"line1\": \"123 Main St\",\n \"line2\": null,\n \"postal_code\": \"94105\",\n \"state\": \"CA\"\n },\n \"email\": null,\n \"name\": \"John Doe\",\n \"phone\": null,\n \"tax_id\": null\n },\n \"card\": {\n \"brand\": \"visa\",\n \"checks\": {\n \"address_line1_check\": \"pass\",\n \"address_postal_code_check\": \"pass\",\n \"cvc_check\": \"pass\"\n },\n \"country\": \"US\",\n \"display_brand\": \"visa\",\n \"exp_month\": 10,\n \"exp_year\": 2026,\n \"fingerprint\": \"DXkIrMyLWOiSbbeT\",\n \"funding\": \"credit\",\n \"generated_from\": null,\n \"last4\": \"0341\",\n \"networks\": {\n \"available\": [\n \"visa\"\n ],\n \"preferred\": null\n },\n \"regulated_status\": \"unregulated\",\n \"three_d_secure_usage\": {\n \"supported\": true\n },\n \"wallet\": null\n },\n \"created\": 1000000000,\n \"customer\": \"cus_NORMALIZED\",\n \"livemode\": false,\n \"metadata\": {},\n \"type\": \"card\"\n },\n \"type\": \"card_error\"\n },\n \"latest_charge\": \"ch_NORMALIZED\",\n \"livemode\": false,\n \"metadata\": {},\n \"next_action\": null,\n \"on_behalf_of\": null,\n \"payment_method\": null,\n \"payment_method_configuration_details\": null,\n \"payment_method_options\": {\n \"card\": {\n \"installments\": null,\n \"mandate_options\": null,\n \"network\": null,\n \"request_three_d_secure\": \"automatic\"\n },\n \"link\": {\n \"persistent_token\": null\n }\n },\n \"payment_method_types\": [\n \"card\",\n \"link\"\n ],\n \"processing\": null,\n \"receipt_email\": \"[email protected]\",\n \"review\": null,\n \"setup_future_usage\": null,\n \"shipping\": null,\n \"source\": null,\n \"statement_descriptor\": \"Zulip Cloud Standard\",\n \"statement_descriptor_suffix\": null,\n \"status\": \"requires_payment_method\",\n \"transfer_data\": null,\n \"transfer_group\": null\n },\n \"payment_method\": {\n \"id\": \"card_attached_to_customer_but_payment_fails--Customer.retrieve.1.json\",\n \"object\": \"payment_method\",\n \"allow_redisplay\": \"unspecified\",\n \"billing_details\": {\n \"address\": {\n \"city\": \"San Francisco\",\n \"country\": \"US\",\n \"line1\": \"123 Main St\",\n \"line2\": null,\n \"postal_code\": \"94105\",\n \"state\": \"CA\"\n },\n \"email\": null,\n \"name\": \"John Doe\",\n \"phone\": null,\n \"tax_id\": null\n },\n \"card\": {\n \"brand\": \"visa\",\n \"checks\": {\n \"address_line1_check\": \"pass\",\n \"address_postal_code_check\": \"pass\",\n \"cvc_check\": \"pass\"\n },\n \"country\": \"US\",\n \"display_brand\": \"visa\",\n \"exp_month\": 10,\n \"exp_year\": 2026,\n \"fingerprint\": \"DXkIrMyLWOiSbbeT\",\n \"funding\": \"credit\",\n \"generated_from\": null,\n \"last4\": \"0341\",\n \"networks\": {\n \"available\": [\n \"visa\"\n ],\n \"preferred\": null\n },\n \"regulated_status\": \"unregulated\",\n \"three_d_secure_usage\": {\n \"supported\": true\n },\n \"wallet\": null\n },\n \"created\": 1000000000,\n \"customer\": \"cus_NORMALIZED\",\n \"livemode\": false,\n \"metadata\": {},\n \"type\": \"card\"\n },\n \"request_log_url\": \"https://dashboard.stripe.com/test/logs/req_NORMALIZED?t=1759913616\",\n \"type\": \"card_error\"\n }\n}\n",
+ "http_body": "{\n \"error\": {\n \"advice_code\": \"try_again_later\",\n \"charge\": \"ch_NORMALIZED\",\n \"code\": \"card_declined\",\n \"decline_code\": \"generic_decline\",\n \"doc_url\": \"https://stripe.com/docs/error-codes/card-declined\",\n \"message\": \"Your card was declined.\",\n \"network_decline_code\": \"01\",\n \"payment_intent\": {\n \"id\": \"card_attached_to_customer_but_payment_fails--Invoice.pay.1.json\",\n \"object\": \"payment_intent\",\n \"amount\": 48000,\n \"amount_capturable\": 0,\n \"amount_details\": {\n \"tip\": {}\n },\n \"amount_received\": 0,\n \"application\": null,\n \"application_fee_amount\": null,\n \"automatic_payment_methods\": null,\n \"canceled_at\": null,\n \"cancellation_reason\": null,\n \"capture_method\": \"automatic\",\n \"client_secret\": \"card_attached_to_customer_but_payment_fails--Invoice.pay.1.json_secret_RaOggsBihHooh9Eea3ZBEcPHS\",\n \"confirmation_method\": \"automatic\",\n \"created\": 1000000000,\n \"currency\": \"usd\",\n \"customer\": \"cus_NORMALIZED\",\n \"description\": \"Payment for Invoice\",\n \"excluded_payment_method_types\": null,\n \"last_payment_error\": {\n \"advice_code\": \"try_again_later\",\n \"charge\": \"ch_NORMALIZED\",\n \"code\": \"card_declined\",\n \"decline_code\": \"generic_decline\",\n \"doc_url\": \"https://stripe.com/docs/error-codes/card-declined\",\n \"message\": \"Your card was declined.\",\n \"network_decline_code\": \"01\",\n \"payment_method\": {\n \"id\": \"card_attached_to_customer_but_payment_fails--Customer.retrieve.1.json\",\n \"object\": \"payment_method\",\n \"allow_redisplay\": \"unspecified\",\n \"billing_details\": {\n \"address\": {\n \"city\": \"San Francisco\",\n \"country\": \"US\",\n \"line1\": \"123 Main St\",\n \"line2\": null,\n \"postal_code\": \"94105\",\n \"state\": \"CA\"\n },\n \"email\": null,\n \"name\": \"John Doe\",\n \"phone\": null,\n \"tax_id\": null\n },\n \"card\": {\n \"brand\": \"visa\",\n \"checks\": {\n \"address_line1_check\": \"pass\",\n \"address_postal_code_check\": \"pass\",\n \"cvc_check\": \"pass\"\n },\n \"country\": \"US\",\n \"display_brand\": \"visa\",\n \"exp_month\": 11,\n \"exp_year\": 2026,\n \"fingerprint\": \"DXkIrMyLWOiSbbeT\",\n \"funding\": \"credit\",\n \"generated_from\": null,\n \"last4\": \"0341\",\n \"networks\": {\n \"available\": [\n \"visa\"\n ],\n \"preferred\": null\n },\n \"regulated_status\": \"unregulated\",\n \"three_d_secure_usage\": {\n \"supported\": true\n },\n \"wallet\": null\n },\n \"created\": 1000000000,\n \"customer\": \"cus_NORMALIZED\",\n \"livemode\": false,\n \"metadata\": {},\n \"type\": \"card\"\n },\n \"type\": \"card_error\"\n },\n \"latest_charge\": \"ch_NORMALIZED\",\n \"livemode\": false,\n \"metadata\": {},\n \"next_action\": null,\n \"on_behalf_of\": null,\n \"payment_details\": {\n \"customer_reference\": null,\n \"order_reference\": \"in_1SPOyhRVfKEFJaqcJydyjA\"\n },\n \"payment_method\": null,\n \"payment_method_configuration_details\": null,\n \"payment_method_options\": {\n \"card\": {\n \"installments\": null,\n \"mandate_options\": null,\n \"network\": null,\n \"request_three_d_secure\": \"automatic\"\n },\n \"link\": {\n \"persistent_token\": null\n }\n },\n \"payment_method_types\": [\n \"card\",\n \"link\"\n ],\n \"processing\": null,\n \"receipt_email\": \"[email protected]\",\n \"review\": null,\n \"setup_future_usage\": null,\n \"shipping\": null,\n \"source\": null,\n \"statement_descriptor\": \"Zulip Cloud Standard\",\n \"statement_descriptor_suffix\": null,\n \"status\": \"requires_payment_method\",\n \"transfer_data\": null,\n \"transfer_group\": null\n },\n \"payment_method\": {\n \"id\": \"card_attached_to_customer_but_payment_fails--Customer.retrieve.1.json\",\n \"object\": \"payment_method\",\n \"allow_redisplay\": \"unspecified\",\n \"billing_details\": {\n \"address\": {\n \"city\": \"San Francisco\",\n \"country\": \"US\",\n \"line1\": \"123 Main St\",\n \"line2\": null,\n \"postal_code\": \"94105\",\n \"state\": \"CA\"\n },\n \"email\": null,\n \"name\": \"John Doe\",\n \"phone\": null,\n \"tax_id\": null\n },\n \"card\": {\n \"brand\": \"visa\",\n \"checks\": {\n \"address_line1_check\": \"pass\",\n \"address_postal_code_check\": \"pass\",\n \"cvc_check\": \"pass\"\n },\n \"country\": \"US\",\n \"display_brand\": \"visa\",\n \"exp_month\": 11,\n \"exp_year\": 2026,\n \"fingerprint\": \"DXkIrMyLWOiSbbeT\",\n \"funding\": \"credit\",\n \"generated_from\": null,\n \"last4\": \"0341\",\n \"networks\": {\n \"available\": [\n \"visa\"\n ],\n \"preferred\": null\n },\n \"regulated_status\": \"unregulated\",\n \"three_d_secure_usage\": {\n \"supported\": true\n },\n \"wallet\": null\n },\n \"created\": 1000000000,\n \"customer\": \"cus_NORMALIZED\",\n \"livemode\": false,\n \"metadata\": {},\n \"type\": \"card\"\n },\n \"request_log_url\": \"https://dashboard.stripe.com/test/logs/req_NORMALIZED?t=1762181010\",\n \"type\": \"card_error\"\n }\n}\n",
"http_status": 402,
"json_body": {
"error": {
@@ -306,6 +310,10 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
+ "payment_details": {
+ "customer_reference": null,
+ "order_reference": "in_1SPOyhRVfKEFJaqcJydyjA"
+ },
"payment_method": null,
"payment_method_configuration_details": null,
"payment_method_options": {
@@ -386,7 +394,7 @@
"object": "payment_method",
"type": "card"
},
- "request_log_url": "https://dashboard.stripe.com/test/logs/req_NORMALIZED?t=1759913616",
+ "request_log_url": "https://dashboard.stripe.com/test/logs/req_NORMALIZED?t=1762181010",
"type": "card_error"
}
},
diff --git a/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--SetupIntent.create.1.json
index f34ba622a04..2d12bcd0d72 100644
--- a/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--SetupIntent.create.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "card_attached_to_customer_but_payment_fails--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--SetupIntent.list.1.json
index 30387c480a1..3f19ddc60f0 100644
--- a/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--SetupIntent.list.1.json
@@ -8,6 +8,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "card_attached_to_customer_but_payment_fails--SetupIntent.list.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--SetupIntent.retrieve.1.json
index f34ba622a04..2d12bcd0d72 100644
--- a/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--SetupIntent.retrieve.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "card_attached_to_customer_but_payment_fails--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.1.json
index e74bfe63e68..e72138e67d2 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "check_upgrade_parameters--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.2.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.2.json
index 42a9a7b38ac..5f8a3e47717 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.2.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.2.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "check_upgrade_parameters--SetupIntent.create.2.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.3.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.3.json
index ec96477b875..53f735e3142 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.3.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.3.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "check_upgrade_parameters--SetupIntent.create.3.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.4.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.4.json
index f3655eaf19b..8409aa85bbe 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.4.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.4.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "check_upgrade_parameters--SetupIntent.create.4.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.5.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.5.json
index 0a529389972..d42fa99456d 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.5.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.5.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "check_upgrade_parameters--SetupIntent.create.5.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.6.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.6.json
index fe3a06033e9..0a7261071eb 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.6.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.6.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "check_upgrade_parameters--SetupIntent.create.6.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.7.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.7.json
index 8d004fb6ecc..763996a509c 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.7.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.7.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "check_upgrade_parameters--SetupIntent.create.7.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.8.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.8.json
index 8e38063cfc3..dc004a199cb 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.8.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.8.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "check_upgrade_parameters--SetupIntent.create.8.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.9.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.9.json
index 0e44bfc769b..7ec81a44702 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.9.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.9.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "check_upgrade_parameters--SetupIntent.create.9.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.1.json
index b50de14d16f..4d6da29b904 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.1.json
@@ -8,6 +8,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "check_upgrade_parameters--SetupIntent.list.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.2.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.2.json
index f4bd099d8e2..52f4862d70b 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.2.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.2.json
@@ -8,6 +8,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "check_upgrade_parameters--SetupIntent.list.2.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.3.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.3.json
index 9a377f1906c..7419eb0e71f 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.3.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.3.json
@@ -8,6 +8,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "check_upgrade_parameters--SetupIntent.list.3.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.4.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.4.json
index 1bd561f3021..c2b680c9b03 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.4.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.4.json
@@ -8,6 +8,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "check_upgrade_parameters--SetupIntent.list.4.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.5.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.5.json
index dfa4fc5f3b2..4c80831dba7 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.5.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.5.json
@@ -8,6 +8,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "check_upgrade_parameters--SetupIntent.list.5.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.6.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.6.json
index ea02ad063cc..c9244263578 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.6.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.6.json
@@ -8,6 +8,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "check_upgrade_parameters--SetupIntent.list.6.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.7.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.7.json
index 66a3a246270..622d22351aa 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.7.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.7.json
@@ -8,6 +8,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "check_upgrade_parameters--SetupIntent.list.7.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.8.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.8.json
index d33a6821244..a8c38b77799 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.8.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.8.json
@@ -8,6 +8,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "check_upgrade_parameters--SetupIntent.list.8.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.9.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.9.json
index b57d9ffc509..18abdfd26d6 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.9.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.9.json
@@ -8,6 +8,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "check_upgrade_parameters--SetupIntent.list.9.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.1.json
index e74bfe63e68..e72138e67d2 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "check_upgrade_parameters--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.2.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.2.json
index 42a9a7b38ac..5f8a3e47717 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.2.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.2.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "check_upgrade_parameters--SetupIntent.create.2.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.3.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.3.json
index ec96477b875..53f735e3142 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.3.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.3.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "check_upgrade_parameters--SetupIntent.create.3.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.4.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.4.json
index f3655eaf19b..8409aa85bbe 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.4.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.4.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "check_upgrade_parameters--SetupIntent.create.4.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.5.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.5.json
index 0a529389972..d42fa99456d 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.5.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.5.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "check_upgrade_parameters--SetupIntent.create.5.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.6.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.6.json
index fe3a06033e9..0a7261071eb 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.6.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.6.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "check_upgrade_parameters--SetupIntent.create.6.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.7.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.7.json
index 8d004fb6ecc..763996a509c 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.7.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.7.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "check_upgrade_parameters--SetupIntent.create.7.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.8.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.8.json
index 8e38063cfc3..dc004a199cb 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.8.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.8.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "check_upgrade_parameters--SetupIntent.create.8.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.9.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.9.json
index 0e44bfc769b..7ec81a44702 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.9.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.9.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "check_upgrade_parameters--SetupIntent.create.9.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Event.list.1.json b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Event.list.1.json
index 9d1654ee7a3..2d868eb7279 100644
--- a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Event.list.1.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
diff --git a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Event.list.2.json b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Event.list.2.json
index 106688f8638..f2e3774617e 100644
--- a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Event.list.2.json
+++ b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Event.list.2.json
@@ -1,170 +1,26 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
- "account_country": "US",
- "account_name": "NORMALIZED",
- "account_tax_ids": null,
- "amount_due": 48000,
- "amount_overpaid": 0,
- "amount_paid": 48000,
- "amount_remaining": 0,
- "amount_shipping": 0,
- "application": null,
- "attempt_count": 1,
- "attempted": true,
- "auto_advance": false,
- "automatic_tax": {
- "disabled_reason": null,
- "enabled": false,
- "liability": null,
- "provider": null,
- "status": null
- },
- "automatically_finalizes_at": null,
- "billing_reason": "manual",
- "collection_method": "charge_automatically",
+ "amount_paid": null,
+ "amount_requested": 48000,
"created": 1000000000,
"currency": "usd",
- "custom_fields": null,
- "customer": "customer_has_credit_card_as_default_payment_method--Customer.create.1.json",
- "customer_address": null,
- "customer_email": "[email protected]",
- "customer_name": null,
- "customer_phone": null,
- "customer_shipping": null,
- "customer_tax_exempt": "none",
- "customer_tax_ids": [],
- "default_payment_method": null,
- "default_source": null,
- "default_tax_rates": [],
- "description": null,
- "discounts": [],
- "due_date": null,
- "effective_at": 1000000000,
- "ending_balance": 0,
- "footer": null,
- "from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
"id": "customer_has_credit_card_as_default_payment_method--Event.list.2.json",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
- "issuer": {
- "type": "self"
- },
- "last_finalization_error": null,
- "latest_revision": null,
- "lines": {
- "data": [
- {
- "amount": 48000,
- "currency": "usd",
- "description": "Zulip Cloud Standard",
- "discount_amounts": [],
- "discountable": false,
- "discounts": [],
- "id": "customer_has_credit_card_as_default_payment_method--Event.list.2.json",
- "invoice": "customer_has_credit_card_as_default_payment_method--Event.list.2.json",
- "livemode": false,
- "metadata": {},
- "object": "line_item",
- "parent": {
- "invoice_item_details": {
- "invoice_item": "customer_has_credit_card_as_default_payment_method--Event.list.2.json",
- "proration": false,
- "proration_details": {
- "credited_items": null
- },
- "subscription": null
- },
- "subscription_item_details": null,
- "type": "invoice_item_details"
- },
- "period": {
- "end": 1357095845,
- "start": 1325473445
- },
- "pretax_credit_amounts": [],
- "pricing": {
- "price_details": {
- "price": "price_NORMALIZED",
- "product": "prod_NORMALIZED"
- },
- "type": "price_details",
- "unit_amount_decimal": "8000"
- },
- "quantity": 6,
- "taxes": []
- }
- ],
- "has_more": false,
- "object": "list",
- "total_count": 1,
- "url": "/v1/invoices/customer_has_credit_card_as_default_payment_method--Event.list.2.json/lines"
- },
+ "invoice": "customer_has_credit_card_as_default_payment_method--Event.list.2.json",
+ "is_default": true,
"livemode": false,
- "metadata": {
- "billing_schedule": "1",
- "current_plan_id": "None",
- "license_management": "automatic",
- "licenses": "6",
- "on_free_trial": "False",
- "plan_tier": "1",
- "user_id": "11"
- },
- "next_payment_attempt": null,
- "number": "NORMALIZED",
- "object": "invoice",
- "on_behalf_of": null,
- "parent": null,
- "payment_settings": {
- "default_mandate": null,
- "payment_method_options": null,
- "payment_method_types": null
+ "object": "invoice_payment",
+ "payment": {
+ "payment_intent": "customer_has_credit_card_as_default_payment_method--Event.list.2.json",
+ "type": "payment_intent"
},
- "period_end": 1000000000,
- "period_start": 1000000000,
- "post_payment_credit_notes_amount": 0,
- "pre_payment_credit_notes_amount": 0,
- "receipt_number": null,
- "rendering": {
- "amount_tax_display": null,
- "pdf": {
- "page_size": "letter"
- },
- "template": null,
- "template_version": null
- },
- "shipping_cost": null,
- "shipping_details": null,
- "starting_balance": 0,
- "statement_descriptor": "Zulip Cloud Standard",
- "status": "paid",
- "status_transitions": {
- "finalized_at": 1000000000,
- "marked_uncollectible_at": null,
- "paid_at": 1000000000,
- "voided_at": null
- },
- "subtotal": 48000,
- "subtotal_excluding_tax": 48000,
- "test_clock": null,
- "total": 48000,
- "total_discount_amounts": [],
- "total_excluding_tax": 48000,
- "total_pretax_credit_amounts": [],
- "total_taxes": [],
- "webhooks_delivered_at": 1000000000
- },
- "previous_attributes": {
- "amount_paid": 0,
- "amount_remaining": 48000,
- "attempt_count": 0,
- "attempted": false,
"status": "open",
"status_transitions": {
+ "canceled_at": null,
"paid_at": null
}
}
@@ -172,15 +28,15 @@
"id": "customer_has_credit_card_as_default_payment_method--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 2,
+ "pending_webhooks": 0,
"request": {
"id": "customer_has_credit_card_as_default_payment_method--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "invoice.updated"
+ "type": "invoice_payment.paid"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -211,6 +67,10 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
+ "payment_details": {
+ "customer_reference": null,
+ "order_reference": "in_1SPOziRVfKEFJaqcYc7fjI"
+ },
"payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
"payment_method_options": {
@@ -244,7 +104,7 @@
"id": "customer_has_credit_card_as_default_payment_method--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 1,
"request": {
"id": "customer_has_credit_card_as_default_payment_method--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -252,7 +112,7 @@
"type": "payment_intent.succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -313,7 +173,7 @@
"payment_method_details": {
"card": {
"amount_authorized": 48000,
- "authorization_code": "283515",
+ "authorization_code": "946563",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
@@ -371,7 +231,7 @@
"id": "customer_has_credit_card_as_default_payment_method--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
"id": "customer_has_credit_card_as_default_payment_method--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -379,7 +239,7 @@
"type": "charge.succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -534,7 +394,7 @@
"total_excluding_tax": 48000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
},
"id": "customer_has_credit_card_as_default_payment_method--Event.list.2.json",
@@ -548,7 +408,7 @@
"type": "invoice.finalized"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -703,7 +563,7 @@
"total_excluding_tax": 48000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
},
"previous_attributes": {
"effective_at": null,
@@ -733,7 +593,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -805,7 +665,7 @@
"type": "payment_intent.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -960,7 +820,7 @@
"total_excluding_tax": 48000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
},
"previous_attributes": {
"amount_due": 0,
@@ -986,7 +846,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1033,7 +893,7 @@
"type": "invoiceitem.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1161,7 +1021,7 @@
"type": "invoice.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1211,7 +1071,7 @@
"type": "customer.updated"
}
],
- "has_more": true,
+ "has_more": false,
"object": "list",
"url": "/v1/events"
}
diff --git a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Event.list.3.json b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Event.list.3.json
index db950e91e4e..95a57ee534c 100644
--- a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Event.list.3.json
+++ b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Event.list.3.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -156,7 +156,7 @@
"total_excluding_tax": 48000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
},
"id": "customer_has_credit_card_as_default_payment_method--Event.list.3.json",
@@ -170,7 +170,7 @@
"type": "invoice.payment_succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -325,7 +325,7 @@
"total_excluding_tax": 48000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
},
"id": "customer_has_credit_card_as_default_payment_method--Event.list.3.json",
@@ -337,6 +337,185 @@
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "invoice.paid"
+ },
+ {
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "account_country": "US",
+ "account_name": "NORMALIZED",
+ "account_tax_ids": null,
+ "amount_due": 48000,
+ "amount_overpaid": 0,
+ "amount_paid": 48000,
+ "amount_remaining": 0,
+ "amount_shipping": 0,
+ "application": null,
+ "attempt_count": 1,
+ "attempted": true,
+ "auto_advance": false,
+ "automatic_tax": {
+ "disabled_reason": null,
+ "enabled": false,
+ "liability": null,
+ "provider": null,
+ "status": null
+ },
+ "automatically_finalizes_at": null,
+ "billing_reason": "manual",
+ "collection_method": "charge_automatically",
+ "created": 1000000000,
+ "currency": "usd",
+ "custom_fields": null,
+ "customer": "cus_NORMALIZED",
+ "customer_address": null,
+ "customer_email": "[email protected]",
+ "customer_name": null,
+ "customer_phone": null,
+ "customer_shipping": null,
+ "customer_tax_exempt": "none",
+ "customer_tax_ids": [],
+ "default_payment_method": null,
+ "default_source": null,
+ "default_tax_rates": [],
+ "description": null,
+ "discounts": [],
+ "due_date": null,
+ "effective_at": 1000000000,
+ "ending_balance": 0,
+ "footer": null,
+ "from_invoice": null,
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
+ "id": "customer_has_credit_card_as_default_payment_method--Event.list.2.json",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
+ "issuer": {
+ "type": "self"
+ },
+ "last_finalization_error": null,
+ "latest_revision": null,
+ "lines": {
+ "data": [
+ {
+ "amount": 48000,
+ "currency": "usd",
+ "description": "Zulip Cloud Standard",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "customer_has_credit_card_as_default_payment_method--Event.list.2.json",
+ "invoice": "customer_has_credit_card_as_default_payment_method--Event.list.2.json",
+ "livemode": false,
+ "metadata": {},
+ "object": "line_item",
+ "parent": {
+ "invoice_item_details": {
+ "invoice_item": "ii_NORMALIZED",
+ "proration": false,
+ "proration_details": {
+ "credited_items": null
+ },
+ "subscription": null
+ },
+ "subscription_item_details": null,
+ "type": "invoice_item_details"
+ },
+ "period": {
+ "end": 1357095845,
+ "start": 1325473445
+ },
+ "pretax_credit_amounts": [],
+ "pricing": {
+ "price_details": {
+ "price": "price_NORMALIZED",
+ "product": "prod_NORMALIZED"
+ },
+ "type": "price_details",
+ "unit_amount_decimal": "8000"
+ },
+ "quantity": 6,
+ "taxes": []
+ }
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 1,
+ "url": "/v1/invoices/customer_has_credit_card_as_default_payment_method--Event.list.2.json/lines"
+ },
+ "livemode": false,
+ "metadata": {
+ "billing_schedule": "1",
+ "current_plan_id": "None",
+ "license_management": "automatic",
+ "licenses": "6",
+ "on_free_trial": "False",
+ "plan_tier": "1",
+ "user_id": "11"
+ },
+ "next_payment_attempt": null,
+ "number": "NORMALIZED",
+ "object": "invoice",
+ "on_behalf_of": null,
+ "parent": null,
+ "payment_settings": {
+ "default_mandate": null,
+ "payment_method_options": null,
+ "payment_method_types": null
+ },
+ "period_end": 1000000000,
+ "period_start": 1000000000,
+ "post_payment_credit_notes_amount": 0,
+ "pre_payment_credit_notes_amount": 0,
+ "receipt_number": null,
+ "rendering": {
+ "amount_tax_display": null,
+ "pdf": {
+ "page_size": "letter"
+ },
+ "template": null,
+ "template_version": null
+ },
+ "shipping_cost": null,
+ "shipping_details": null,
+ "starting_balance": 0,
+ "statement_descriptor": "Zulip Cloud Standard",
+ "status": "paid",
+ "status_transitions": {
+ "finalized_at": 1000000000,
+ "marked_uncollectible_at": null,
+ "paid_at": 1000000000,
+ "voided_at": null
+ },
+ "subtotal": 48000,
+ "subtotal_excluding_tax": 48000,
+ "test_clock": null,
+ "total": 48000,
+ "total_discount_amounts": [],
+ "total_excluding_tax": 48000,
+ "total_pretax_credit_amounts": [],
+ "total_taxes": [],
+ "webhooks_delivered_at": null
+ },
+ "previous_attributes": {
+ "amount_paid": 0,
+ "amount_remaining": 48000,
+ "attempt_count": 0,
+ "attempted": false,
+ "status": "open",
+ "status_transitions": {
+ "paid_at": null
+ }
+ }
+ },
+ "id": "customer_has_credit_card_as_default_payment_method--Event.list.3.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "customer_has_credit_card_as_default_payment_method--Event.list.2.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ },
+ "type": "invoice.updated"
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Invoice.finalize_invoice.1.json
index 778bafaa412..0cd6fcafeb2 100644
--- a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Invoice.finalize_invoice.1.json
+++ b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Invoice.finalize_invoice.1.json
@@ -150,5 +150,5 @@
"total_excluding_tax": 48000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
diff --git a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Invoice.pay.1.json
index 733248af627..a6acca492a4 100644
--- a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Invoice.pay.1.json
+++ b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Invoice.pay.1.json
@@ -150,5 +150,5 @@
"total_excluding_tax": 48000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
diff --git a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--SetupIntent.create.1.json
index e557a6e7950..5ed67d04e07 100644
--- a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--SetupIntent.create.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "customer_has_credit_card_as_default_payment_method--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--SetupIntent.list.1.json
index a7a49903a40..552a00634c1 100644
--- a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--SetupIntent.list.1.json
@@ -8,6 +8,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "customer_has_credit_card_as_default_payment_method--SetupIntent.list.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--SetupIntent.retrieve.1.json
index e557a6e7950..5ed67d04e07 100644
--- a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--SetupIntent.retrieve.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "customer_has_credit_card_as_default_payment_method--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/customer_minimum_licenses_for_plan--Event.list.1.json b/corporate/tests/stripe_fixtures/customer_minimum_licenses_for_plan--Event.list.1.json
index 4053e082b53..2411b8c7be6 100644
--- a/corporate/tests/stripe_fixtures/customer_minimum_licenses_for_plan--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/customer_minimum_licenses_for_plan--Event.list.1.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
diff --git a/corporate/tests/stripe_fixtures/customer_minimum_licenses_for_plan--Event.list.2.json b/corporate/tests/stripe_fixtures/customer_minimum_licenses_for_plan--Event.list.2.json
index 5c95e6ff9d1..618a3be5532 100644
--- a/corporate/tests/stripe_fixtures/customer_minimum_licenses_for_plan--Event.list.2.json
+++ b/corporate/tests/stripe_fixtures/customer_minimum_licenses_for_plan--Event.list.2.json
@@ -1,170 +1,26 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
- "account_country": "US",
- "account_name": "NORMALIZED",
- "account_tax_ids": null,
- "amount_due": 72000,
- "amount_overpaid": 0,
- "amount_paid": 72000,
- "amount_remaining": 0,
- "amount_shipping": 0,
- "application": null,
- "attempt_count": 1,
- "attempted": true,
- "auto_advance": false,
- "automatic_tax": {
- "disabled_reason": null,
- "enabled": false,
- "liability": null,
- "provider": null,
- "status": null
- },
- "automatically_finalizes_at": null,
- "billing_reason": "manual",
- "collection_method": "charge_automatically",
+ "amount_paid": null,
+ "amount_requested": 72000,
"created": 1000000000,
"currency": "usd",
- "custom_fields": null,
- "customer": "customer_minimum_licenses_for_plan--Customer.create.1.json",
- "customer_address": null,
- "customer_email": "[email protected]",
- "customer_name": null,
- "customer_phone": null,
- "customer_shipping": null,
- "customer_tax_exempt": "none",
- "customer_tax_ids": [],
- "default_payment_method": null,
- "default_source": null,
- "default_tax_rates": [],
- "description": null,
- "discounts": [],
- "due_date": null,
- "effective_at": 1000000000,
- "ending_balance": 0,
- "footer": null,
- "from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
"id": "customer_minimum_licenses_for_plan--Event.list.2.json",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
- "issuer": {
- "type": "self"
- },
- "last_finalization_error": null,
- "latest_revision": null,
- "lines": {
- "data": [
- {
- "amount": 72000,
- "currency": "usd",
- "description": "Zulip Cloud Plus",
- "discount_amounts": [],
- "discountable": false,
- "discounts": [],
- "id": "customer_minimum_licenses_for_plan--Event.list.2.json",
- "invoice": "customer_minimum_licenses_for_plan--Event.list.2.json",
- "livemode": false,
- "metadata": {},
- "object": "line_item",
- "parent": {
- "invoice_item_details": {
- "invoice_item": "customer_minimum_licenses_for_plan--Event.list.2.json",
- "proration": false,
- "proration_details": {
- "credited_items": null
- },
- "subscription": null
- },
- "subscription_item_details": null,
- "type": "invoice_item_details"
- },
- "period": {
- "end": 1357095845,
- "start": 1325473445
- },
- "pretax_credit_amounts": [],
- "pricing": {
- "price_details": {
- "price": "price_NORMALIZED",
- "product": "prod_NORMALIZED"
- },
- "type": "price_details",
- "unit_amount_decimal": "12000"
- },
- "quantity": 6,
- "taxes": []
- }
- ],
- "has_more": false,
- "object": "list",
- "total_count": 1,
- "url": "/v1/invoices/customer_minimum_licenses_for_plan--Event.list.2.json/lines"
- },
+ "invoice": "customer_minimum_licenses_for_plan--Event.list.2.json",
+ "is_default": true,
"livemode": false,
- "metadata": {
- "billing_schedule": "1",
- "current_plan_id": "None",
- "license_management": "automatic",
- "licenses": "6",
- "on_free_trial": "False",
- "plan_tier": "2",
- "user_id": "10"
- },
- "next_payment_attempt": null,
- "number": "NORMALIZED",
- "object": "invoice",
- "on_behalf_of": null,
- "parent": null,
- "payment_settings": {
- "default_mandate": null,
- "payment_method_options": null,
- "payment_method_types": null
- },
- "period_end": 1000000000,
- "period_start": 1000000000,
- "post_payment_credit_notes_amount": 0,
- "pre_payment_credit_notes_amount": 0,
- "receipt_number": null,
- "rendering": {
- "amount_tax_display": null,
- "pdf": {
- "page_size": "letter"
- },
- "template": null,
- "template_version": null
- },
- "shipping_cost": null,
- "shipping_details": null,
- "starting_balance": 0,
- "statement_descriptor": "Zulip Cloud Plus",
- "status": "paid",
- "status_transitions": {
- "finalized_at": 1000000000,
- "marked_uncollectible_at": null,
- "paid_at": 1000000000,
- "voided_at": null
+ "object": "invoice_payment",
+ "payment": {
+ "payment_intent": "customer_minimum_licenses_for_plan--Event.list.2.json",
+ "type": "payment_intent"
},
- "subtotal": 72000,
- "subtotal_excluding_tax": 72000,
- "test_clock": null,
- "total": 72000,
- "total_discount_amounts": [],
- "total_excluding_tax": 72000,
- "total_pretax_credit_amounts": [],
- "total_taxes": [],
- "webhooks_delivered_at": 1000000000
- },
- "previous_attributes": {
- "amount_paid": 0,
- "amount_remaining": 72000,
- "attempt_count": 0,
- "attempted": false,
"status": "open",
"status_transitions": {
+ "canceled_at": null,
"paid_at": null
}
}
@@ -172,15 +28,15 @@
"id": "customer_minimum_licenses_for_plan--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 2,
+ "pending_webhooks": 0,
"request": {
"id": "customer_minimum_licenses_for_plan--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "invoice.updated"
+ "type": "invoice_payment.paid"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -211,6 +67,10 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
+ "payment_details": {
+ "customer_reference": null,
+ "order_reference": "in_1SPOzyRVfKEFJaqczyOfHE"
+ },
"payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
"payment_method_options": {
@@ -252,7 +112,7 @@
"type": "payment_intent.succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -313,7 +173,7 @@
"payment_method_details": {
"card": {
"amount_authorized": 72000,
- "authorization_code": "084938",
+ "authorization_code": "662882",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
@@ -371,7 +231,7 @@
"id": "customer_minimum_licenses_for_plan--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
"id": "customer_minimum_licenses_for_plan--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -379,7 +239,7 @@
"type": "charge.succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -548,7 +408,7 @@
"type": "invoice.finalized"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -733,7 +593,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -805,7 +665,7 @@
"type": "payment_intent.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -960,7 +820,7 @@
"total_excluding_tax": 72000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
},
"previous_attributes": {
"amount_due": 0,
@@ -986,7 +846,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1033,7 +893,7 @@
"type": "invoiceitem.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1161,7 +1021,7 @@
"type": "invoice.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
diff --git a/corporate/tests/stripe_fixtures/customer_minimum_licenses_for_plan--Event.list.3.json b/corporate/tests/stripe_fixtures/customer_minimum_licenses_for_plan--Event.list.3.json
index df7e247572e..6db070449c3 100644
--- a/corporate/tests/stripe_fixtures/customer_minimum_licenses_for_plan--Event.list.3.json
+++ b/corporate/tests/stripe_fixtures/customer_minimum_licenses_for_plan--Event.list.3.json
@@ -1,28 +1,162 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
- "amount_paid": 48000,
- "amount_requested": 48000,
+ "account_country": "US",
+ "account_name": "NORMALIZED",
+ "account_tax_ids": null,
+ "amount_due": 72000,
+ "amount_overpaid": 0,
+ "amount_paid": 72000,
+ "amount_remaining": 0,
+ "amount_shipping": 0,
+ "application": null,
+ "attempt_count": 1,
+ "attempted": true,
+ "auto_advance": false,
+ "automatic_tax": {
+ "disabled_reason": null,
+ "enabled": false,
+ "liability": null,
+ "provider": null,
+ "status": null
+ },
+ "automatically_finalizes_at": null,
+ "billing_reason": "manual",
+ "collection_method": "charge_automatically",
"created": 1000000000,
"currency": "usd",
- "id": "customer_minimum_licenses_for_plan--Event.list.3.json",
- "invoice": "in_NORMALIZED",
- "is_default": true,
+ "custom_fields": null,
+ "customer": "cus_NORMALIZED",
+ "customer_address": null,
+ "customer_email": "[email protected]",
+ "customer_name": null,
+ "customer_phone": null,
+ "customer_shipping": null,
+ "customer_tax_exempt": "none",
+ "customer_tax_ids": [],
+ "default_payment_method": null,
+ "default_source": null,
+ "default_tax_rates": [],
+ "description": null,
+ "discounts": [],
+ "due_date": null,
+ "effective_at": 1000000000,
+ "ending_balance": 0,
+ "footer": null,
+ "from_invoice": null,
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
+ "id": "customer_minimum_licenses_for_plan--Event.list.2.json",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
+ "issuer": {
+ "type": "self"
+ },
+ "last_finalization_error": null,
+ "latest_revision": null,
+ "lines": {
+ "data": [
+ {
+ "amount": 72000,
+ "currency": "usd",
+ "description": "Zulip Cloud Plus",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "customer_minimum_licenses_for_plan--Event.list.2.json",
+ "invoice": "customer_minimum_licenses_for_plan--Event.list.2.json",
+ "livemode": false,
+ "metadata": {},
+ "object": "line_item",
+ "parent": {
+ "invoice_item_details": {
+ "invoice_item": "ii_NORMALIZED",
+ "proration": false,
+ "proration_details": {
+ "credited_items": null
+ },
+ "subscription": null
+ },
+ "subscription_item_details": null,
+ "type": "invoice_item_details"
+ },
+ "period": {
+ "end": 1357095845,
+ "start": 1325473445
+ },
+ "pretax_credit_amounts": [],
+ "pricing": {
+ "price_details": {
+ "price": "price_NORMALIZED",
+ "product": "prod_NORMALIZED"
+ },
+ "type": "price_details",
+ "unit_amount_decimal": "12000"
+ },
+ "quantity": 6,
+ "taxes": []
+ }
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 1,
+ "url": "/v1/invoices/customer_minimum_licenses_for_plan--Event.list.2.json/lines"
+ },
"livemode": false,
- "object": "invoice_payment",
- "payment": {
- "payment_intent": "pi_NORMALIZED",
- "type": "payment_intent"
+ "metadata": {
+ "billing_schedule": "1",
+ "current_plan_id": "None",
+ "license_management": "automatic",
+ "licenses": "6",
+ "on_free_trial": "False",
+ "plan_tier": "2",
+ "user_id": "10"
},
+ "next_payment_attempt": null,
+ "number": "NORMALIZED",
+ "object": "invoice",
+ "on_behalf_of": null,
+ "parent": null,
+ "payment_settings": {
+ "default_mandate": null,
+ "payment_method_options": null,
+ "payment_method_types": null
+ },
+ "period_end": 1000000000,
+ "period_start": 1000000000,
+ "post_payment_credit_notes_amount": 0,
+ "pre_payment_credit_notes_amount": 0,
+ "receipt_number": null,
+ "rendering": {
+ "amount_tax_display": null,
+ "pdf": {
+ "page_size": "letter"
+ },
+ "template": null,
+ "template_version": null
+ },
+ "shipping_cost": null,
+ "shipping_details": null,
+ "starting_balance": 0,
+ "statement_descriptor": "Zulip Cloud Plus",
"status": "paid",
"status_transitions": {
- "canceled_at": null,
- "paid_at": 1000000000
- }
+ "finalized_at": 1000000000,
+ "marked_uncollectible_at": null,
+ "paid_at": 1000000000,
+ "voided_at": null
+ },
+ "subtotal": 72000,
+ "subtotal_excluding_tax": 72000,
+ "test_clock": null,
+ "total": 72000,
+ "total_discount_amounts": [],
+ "total_excluding_tax": 72000,
+ "total_pretax_credit_amounts": [],
+ "total_taxes": [],
+ "webhooks_delivered_at": 1000000000
}
},
"id": "customer_minimum_licenses_for_plan--Event.list.3.json",
@@ -30,13 +164,13 @@
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": null,
- "idempotency_key": null
+ "id": "customer_minimum_licenses_for_plan--Event.list.2.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "invoice_payment.paid"
+ "type": "invoice.payment_succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -202,10 +336,10 @@
"id": "customer_minimum_licenses_for_plan--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "invoice.payment_succeeded"
+ "type": "invoice.paid"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -361,6 +495,16 @@
"total_pretax_credit_amounts": [],
"total_taxes": [],
"webhooks_delivered_at": 1000000000
+ },
+ "previous_attributes": {
+ "amount_paid": 0,
+ "amount_remaining": 72000,
+ "attempt_count": 0,
+ "attempted": false,
+ "status": "open",
+ "status_transitions": {
+ "paid_at": null
+ }
}
},
"id": "customer_minimum_licenses_for_plan--Event.list.3.json",
@@ -371,7 +515,7 @@
"id": "customer_minimum_licenses_for_plan--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "invoice.paid"
+ "type": "invoice.updated"
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/customer_minimum_licenses_for_plan--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/customer_minimum_licenses_for_plan--SetupIntent.create.1.json
index c3f50608d9e..7acfc87f812 100644
--- a/corporate/tests/stripe_fixtures/customer_minimum_licenses_for_plan--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/customer_minimum_licenses_for_plan--SetupIntent.create.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "customer_minimum_licenses_for_plan--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/customer_minimum_licenses_for_plan--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/customer_minimum_licenses_for_plan--SetupIntent.list.1.json
index 7139b51beb2..6749a5490a6 100644
--- a/corporate/tests/stripe_fixtures/customer_minimum_licenses_for_plan--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/customer_minimum_licenses_for_plan--SetupIntent.list.1.json
@@ -8,6 +8,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "customer_minimum_licenses_for_plan--SetupIntent.list.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/customer_minimum_licenses_for_plan--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/customer_minimum_licenses_for_plan--SetupIntent.retrieve.1.json
index c3f50608d9e..7acfc87f812 100644
--- a/corporate/tests/stripe_fixtures/customer_minimum_licenses_for_plan--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/customer_minimum_licenses_for_plan--SetupIntent.retrieve.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "customer_minimum_licenses_for_plan--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/downgrade_at_end_of_free_trial--Event.list.1.json b/corporate/tests/stripe_fixtures/downgrade_at_end_of_free_trial--Event.list.1.json
index f61947595d1..0df03a31217 100644
--- a/corporate/tests/stripe_fixtures/downgrade_at_end_of_free_trial--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/downgrade_at_end_of_free_trial--Event.list.1.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
diff --git a/corporate/tests/stripe_fixtures/downgrade_at_end_of_free_trial--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/downgrade_at_end_of_free_trial--SetupIntent.create.1.json
index 0351399fe54..4326940b4fc 100644
--- a/corporate/tests/stripe_fixtures/downgrade_at_end_of_free_trial--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/downgrade_at_end_of_free_trial--SetupIntent.create.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "downgrade_at_end_of_free_trial--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/downgrade_at_end_of_free_trial--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/downgrade_at_end_of_free_trial--SetupIntent.list.1.json
index 20d1f95701c..8c7e2bbf37a 100644
--- a/corporate/tests/stripe_fixtures/downgrade_at_end_of_free_trial--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/downgrade_at_end_of_free_trial--SetupIntent.list.1.json
@@ -8,6 +8,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "downgrade_at_end_of_free_trial--SetupIntent.list.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/downgrade_at_end_of_free_trial--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/downgrade_at_end_of_free_trial--SetupIntent.retrieve.1.json
index 0351399fe54..4326940b4fc 100644
--- a/corporate/tests/stripe_fixtures/downgrade_at_end_of_free_trial--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/downgrade_at_end_of_free_trial--SetupIntent.retrieve.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "downgrade_at_end_of_free_trial--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Event.list.1.json b/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Event.list.1.json
index d3fab9d0d64..4e97634ac47 100644
--- a/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Event.list.1.json
@@ -1,28 +1,154 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
- "amount_paid": 100000,
- "amount_requested": 100000,
+ "account_country": "US",
+ "account_name": "NORMALIZED",
+ "account_tax_ids": null,
+ "amount_due": 24000,
+ "amount_overpaid": 0,
+ "amount_paid": 0,
+ "amount_remaining": 24000,
+ "amount_shipping": 0,
+ "application": null,
+ "attempt_count": 0,
+ "attempted": false,
+ "auto_advance": true,
+ "automatic_tax": {
+ "disabled_reason": null,
+ "enabled": false,
+ "liability": null,
+ "provider": null,
+ "status": null
+ },
+ "automatically_finalizes_at": null,
+ "billing_reason": "manual",
+ "collection_method": "charge_automatically",
"created": 1000000000,
"currency": "usd",
+ "custom_fields": null,
+ "customer": "cus_NORMALIZED",
+ "customer_address": null,
+ "customer_email": "[email protected]",
+ "customer_name": null,
+ "customer_phone": null,
+ "customer_shipping": null,
+ "customer_tax_exempt": "none",
+ "customer_tax_ids": [],
+ "default_payment_method": null,
+ "default_source": null,
+ "default_tax_rates": [],
+ "description": null,
+ "discounts": [],
+ "due_date": null,
+ "effective_at": 1000000000,
+ "ending_balance": 0,
+ "footer": null,
+ "from_invoice": null,
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
"id": "downgrade_realm_and_void_open_invoices--Event.list.1.json",
- "invoice": "in_NORMALIZED",
- "is_default": true,
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
+ "issuer": {
+ "type": "self"
+ },
+ "last_finalization_error": null,
+ "latest_revision": null,
+ "lines": {
+ "data": [
+ {
+ "amount": 24000,
+ "currency": "usd",
+ "description": "Zulip Cloud Standard - renewal",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "downgrade_realm_and_void_open_invoices--Event.list.1.json",
+ "invoice": "downgrade_realm_and_void_open_invoices--Event.list.1.json",
+ "livemode": false,
+ "metadata": {},
+ "object": "line_item",
+ "parent": {
+ "invoice_item_details": {
+ "invoice_item": "ii_NORMALIZED",
+ "proration": false,
+ "proration_details": {
+ "credited_items": null
+ },
+ "subscription": null
+ },
+ "subscription_item_details": null,
+ "type": "invoice_item_details"
+ },
+ "period": {
+ "end": 1388631845,
+ "start": 1357095845
+ },
+ "pretax_credit_amounts": [],
+ "pricing": {
+ "price_details": {
+ "price": "price_NORMALIZED",
+ "product": "prod_NORMALIZED"
+ },
+ "type": "price_details",
+ "unit_amount_decimal": "4000"
+ },
+ "quantity": 6,
+ "taxes": []
+ }
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 1,
+ "url": "/v1/invoices/downgrade_realm_and_void_open_invoices--Event.list.1.json/lines"
+ },
"livemode": false,
- "object": "invoice_payment",
- "payment": {
- "payment_intent": "pi_NORMALIZED",
- "type": "payment_intent"
+ "metadata": {},
+ "next_payment_attempt": 1000000000,
+ "number": "NORMALIZED",
+ "object": "invoice",
+ "on_behalf_of": null,
+ "parent": null,
+ "payment_settings": {
+ "default_mandate": null,
+ "payment_method_options": null,
+ "payment_method_types": null
},
- "status": "paid",
+ "period_end": 1000000000,
+ "period_start": 1000000000,
+ "post_payment_credit_notes_amount": 0,
+ "pre_payment_credit_notes_amount": 0,
+ "receipt_number": null,
+ "rendering": {
+ "amount_tax_display": null,
+ "pdf": {
+ "page_size": "letter"
+ },
+ "template": null,
+ "template_version": null
+ },
+ "shipping_cost": null,
+ "shipping_details": null,
+ "starting_balance": 0,
+ "statement_descriptor": "Zulip Cloud Standard",
+ "status": "open",
"status_transitions": {
- "canceled_at": null,
- "paid_at": 1000000000
- }
+ "finalized_at": 1000000000,
+ "marked_uncollectible_at": null,
+ "paid_at": null,
+ "voided_at": null
+ },
+ "subtotal": 24000,
+ "subtotal_excluding_tax": 24000,
+ "test_clock": null,
+ "total": 24000,
+ "total_discount_amounts": [],
+ "total_excluding_tax": 24000,
+ "total_pretax_credit_amounts": [],
+ "total_taxes": [],
+ "webhooks_delivered_at": 1000000000
}
},
"id": "downgrade_realm_and_void_open_invoices--Event.list.1.json",
@@ -30,10 +156,10 @@
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": null,
- "idempotency_key": null
+ "id": "downgrade_realm_and_void_open_invoices--Event.list.1.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "invoice_payment.paid"
+ "type": "invoice.finalized"
}
],
"has_more": true,
diff --git a/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Event.list.2.json b/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Event.list.2.json
index 346324b8d3e..4bada6bf855 100644
--- a/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Event.list.2.json
+++ b/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Event.list.2.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -157,101 +157,198 @@
"total_pretax_credit_amounts": [],
"total_taxes": [],
"webhooks_delivered_at": 1000000000
- },
- "previous_attributes": {
- "amount_paid": 0,
- "amount_remaining": 984000,
- "auto_advance": true,
- "status": "open",
- "status_transitions": {
- "paid_at": null
- }
}
},
"id": "downgrade_realm_and_void_open_invoices--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
"id": "downgrade_realm_and_void_open_invoices--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "invoice.updated"
+ "type": "invoice.paid"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
- "amount": 984000,
- "amount_capturable": 0,
- "amount_details": {
- "tip": {}
- },
- "amount_received": 0,
+ "account_country": "US",
+ "account_name": "NORMALIZED",
+ "account_tax_ids": null,
+ "amount_due": 984000,
+ "amount_overpaid": 0,
+ "amount_paid": 984000,
+ "amount_remaining": 0,
+ "amount_shipping": 0,
"application": null,
- "application_fee_amount": null,
- "automatic_payment_methods": null,
- "canceled_at": 1000000000,
- "cancellation_reason": "requested_by_customer",
- "capture_method": "automatic",
- "client_secret": "NORMALIZED",
- "confirmation_method": "automatic",
+ "attempt_count": 0,
+ "attempted": false,
+ "auto_advance": false,
+ "automatic_tax": {
+ "disabled_reason": null,
+ "enabled": false,
+ "liability": null,
+ "provider": null,
+ "status": null
+ },
+ "automatically_finalizes_at": null,
+ "billing_reason": "manual",
+ "collection_method": "send_invoice",
"created": 1000000000,
"currency": "usd",
+ "custom_fields": null,
"customer": "downgrade_realm_and_void_open_invoices--Customer.create.1.json",
- "description": "Payment for Invoice",
- "excluded_payment_method_types": null,
+ "customer_address": null,
+ "customer_email": "[email protected]",
+ "customer_name": null,
+ "customer_phone": null,
+ "customer_shipping": null,
+ "customer_tax_exempt": "none",
+ "customer_tax_ids": [],
+ "default_payment_method": null,
+ "default_source": null,
+ "default_tax_rates": [],
+ "description": null,
+ "discounts": [],
+ "due_date": 1000000000,
+ "effective_at": 1000000000,
+ "ending_balance": 0,
+ "footer": null,
+ "from_invoice": null,
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
"id": "downgrade_realm_and_void_open_invoices--Event.list.2.json",
- "last_payment_error": null,
- "latest_charge": null,
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
+ "issuer": {
+ "type": "self"
+ },
+ "last_finalization_error": null,
+ "latest_revision": null,
+ "lines": {
+ "data": [
+ {
+ "amount": 984000,
+ "currency": "usd",
+ "description": "Zulip Cloud Standard",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "downgrade_realm_and_void_open_invoices--Event.list.2.json",
+ "invoice": "downgrade_realm_and_void_open_invoices--Event.list.2.json",
+ "livemode": false,
+ "metadata": {},
+ "object": "line_item",
+ "parent": {
+ "invoice_item_details": {
+ "invoice_item": "downgrade_realm_and_void_open_invoices--Event.list.2.json",
+ "proration": false,
+ "proration_details": {
+ "credited_items": null
+ },
+ "subscription": null
+ },
+ "subscription_item_details": null,
+ "type": "invoice_item_details"
+ },
+ "period": {
+ "end": 1357095845,
+ "start": 1325473445
+ },
+ "pretax_credit_amounts": [],
+ "pricing": {
+ "price_details": {
+ "price": "price_NORMALIZED",
+ "product": "prod_NORMALIZED"
+ },
+ "type": "price_details",
+ "unit_amount_decimal": "8000"
+ },
+ "quantity": 123,
+ "taxes": []
+ }
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 1,
+ "url": "/v1/invoices/downgrade_realm_and_void_open_invoices--Event.list.2.json/lines"
+ },
"livemode": false,
- "metadata": {},
- "next_action": null,
- "object": "payment_intent",
+ "metadata": {
+ "billing_schedule": "1",
+ "current_plan_id": "None",
+ "license_management": "manual",
+ "licenses": "123",
+ "on_free_trial": "False",
+ "plan_tier": "1",
+ "user_id": "10"
+ },
+ "next_payment_attempt": null,
+ "number": "NORMALIZED",
+ "object": "invoice",
"on_behalf_of": null,
- "payment_method": null,
- "payment_method_configuration_details": null,
- "payment_method_options": {
- "card": {
- "installments": null,
- "mandate_options": null,
- "network": null,
- "request_three_d_secure": "automatic"
+ "parent": null,
+ "payment_settings": {
+ "default_mandate": null,
+ "payment_method_options": null,
+ "payment_method_types": null
+ },
+ "period_end": 1000000000,
+ "period_start": 1000000000,
+ "post_payment_credit_notes_amount": 0,
+ "pre_payment_credit_notes_amount": 0,
+ "receipt_number": null,
+ "rendering": {
+ "amount_tax_display": null,
+ "pdf": {
+ "page_size": "letter"
},
- "link": {
- "persistent_token": null
- }
+ "template": null,
+ "template_version": null
},
- "payment_method_types": [
- "card",
- "link"
- ],
- "processing": null,
- "receipt_email": "[email protected]",
- "review": null,
- "setup_future_usage": null,
- "shipping": null,
- "source": null,
+ "shipping_cost": null,
+ "shipping_details": null,
+ "starting_balance": 0,
"statement_descriptor": "Zulip Cloud Standard",
- "statement_descriptor_suffix": null,
- "status": "canceled",
- "transfer_data": null,
- "transfer_group": null
+ "status": "paid",
+ "status_transitions": {
+ "finalized_at": 1000000000,
+ "marked_uncollectible_at": null,
+ "paid_at": 1000000000,
+ "voided_at": null
+ },
+ "subtotal": 984000,
+ "subtotal_excluding_tax": 984000,
+ "test_clock": null,
+ "total": 984000,
+ "total_discount_amounts": [],
+ "total_excluding_tax": 984000,
+ "total_pretax_credit_amounts": [],
+ "total_taxes": [],
+ "webhooks_delivered_at": 1000000000
+ },
+ "previous_attributes": {
+ "amount_paid": 0,
+ "amount_remaining": 984000,
+ "auto_advance": true,
+ "status": "open",
+ "status_transitions": {
+ "paid_at": null
+ }
}
},
"id": "downgrade_realm_and_void_open_invoices--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 1,
"request": {
"id": "downgrade_realm_and_void_open_invoices--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "payment_intent.canceled"
+ "type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -420,7 +517,7 @@
"type": "invoice.finalized"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -606,7 +703,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -678,7 +775,7 @@
"type": "payment_intent.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -833,7 +930,7 @@
"total_excluding_tax": 984000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
},
"previous_attributes": {
"amount_due": 0,
@@ -859,7 +956,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -906,7 +1003,7 @@
"type": "invoiceitem.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1034,7 +1131,7 @@
"type": "invoice.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1084,7 +1181,7 @@
"type": "customer.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
diff --git a/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Event.list.3.json b/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Event.list.3.json
index 45c1d71d3c9..bfeba8defba 100644
--- a/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Event.list.3.json
+++ b/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Event.list.3.json
@@ -1,162 +1,104 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
- "account_country": "US",
- "account_name": "NORMALIZED",
- "account_tax_ids": null,
- "amount_due": 984000,
- "amount_overpaid": 0,
"amount_paid": 984000,
- "amount_remaining": 0,
- "amount_shipping": 0,
- "application": null,
- "attempt_count": 0,
- "attempted": false,
- "auto_advance": false,
- "automatic_tax": {
- "disabled_reason": null,
- "enabled": false,
- "liability": null,
- "provider": null,
- "status": null
+ "amount_requested": 984000,
+ "created": 1000000000,
+ "currency": "usd",
+ "id": "downgrade_realm_and_void_open_invoices--Event.list.3.json",
+ "invoice": "in_NORMALIZED",
+ "is_default": false,
+ "livemode": false,
+ "object": "invoice_payment",
+ "payment": {
+ "payment_record": "pr_test_NORMALIZEDI0LJx7w41RVfKEFJaqcKBs",
+ "type": "payment_record"
+ },
+ "status": "paid",
+ "status_transitions": {
+ "canceled_at": null,
+ "paid_at": 1000000000
+ }
+ }
+ },
+ "id": "downgrade_realm_and_void_open_invoices--Event.list.3.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "downgrade_realm_and_void_open_invoices--Event.list.2.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ },
+ "type": "invoice_payment.paid"
+ },
+ {
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount": 984000,
+ "amount_capturable": 0,
+ "amount_details": {
+ "tip": {}
},
- "automatically_finalizes_at": null,
- "billing_reason": "manual",
- "collection_method": "send_invoice",
+ "amount_received": 0,
+ "application": null,
+ "application_fee_amount": null,
+ "automatic_payment_methods": null,
+ "canceled_at": 1000000000,
+ "cancellation_reason": "requested_by_customer",
+ "capture_method": "automatic",
+ "client_secret": "NORMALIZED",
+ "confirmation_method": "automatic",
"created": 1000000000,
"currency": "usd",
- "custom_fields": null,
"customer": "cus_NORMALIZED",
- "customer_address": null,
- "customer_email": "[email protected]",
- "customer_name": null,
- "customer_phone": null,
- "customer_shipping": null,
- "customer_tax_exempt": "none",
- "customer_tax_ids": [],
- "default_payment_method": null,
- "default_source": null,
- "default_tax_rates": [],
- "description": null,
- "discounts": [],
- "due_date": 1000000000,
- "effective_at": 1000000000,
- "ending_balance": 0,
- "footer": null,
- "from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
+ "description": "Payment for Invoice",
+ "excluded_payment_method_types": null,
"id": "downgrade_realm_and_void_open_invoices--Event.list.2.json",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
- "issuer": {
- "type": "self"
- },
- "last_finalization_error": null,
- "latest_revision": null,
- "lines": {
- "data": [
- {
- "amount": 984000,
- "currency": "usd",
- "description": "Zulip Cloud Standard",
- "discount_amounts": [],
- "discountable": false,
- "discounts": [],
- "id": "downgrade_realm_and_void_open_invoices--Event.list.2.json",
- "invoice": "downgrade_realm_and_void_open_invoices--Event.list.2.json",
- "livemode": false,
- "metadata": {},
- "object": "line_item",
- "parent": {
- "invoice_item_details": {
- "invoice_item": "ii_NORMALIZED",
- "proration": false,
- "proration_details": {
- "credited_items": null
- },
- "subscription": null
- },
- "subscription_item_details": null,
- "type": "invoice_item_details"
- },
- "period": {
- "end": 1357095845,
- "start": 1325473445
- },
- "pretax_credit_amounts": [],
- "pricing": {
- "price_details": {
- "price": "price_NORMALIZED",
- "product": "prod_NORMALIZED"
- },
- "type": "price_details",
- "unit_amount_decimal": "8000"
- },
- "quantity": 123,
- "taxes": []
- }
- ],
- "has_more": false,
- "object": "list",
- "total_count": 1,
- "url": "/v1/invoices/downgrade_realm_and_void_open_invoices--Event.list.2.json/lines"
- },
+ "last_payment_error": null,
+ "latest_charge": null,
"livemode": false,
- "metadata": {
- "billing_schedule": "1",
- "current_plan_id": "None",
- "license_management": "manual",
- "licenses": "123",
- "on_free_trial": "False",
- "plan_tier": "1",
- "user_id": "10"
- },
- "next_payment_attempt": null,
- "number": "NORMALIZED",
- "object": "invoice",
+ "metadata": {},
+ "next_action": null,
+ "object": "payment_intent",
"on_behalf_of": null,
- "parent": null,
- "payment_settings": {
- "default_mandate": null,
- "payment_method_options": null,
- "payment_method_types": null
+ "payment_details": {
+ "customer_reference": null,
+ "order_reference": "in_1SPPEdRVfKEFJaqcsMi1HQ"
},
- "period_end": 1000000000,
- "period_start": 1000000000,
- "post_payment_credit_notes_amount": 0,
- "pre_payment_credit_notes_amount": 0,
- "receipt_number": null,
- "rendering": {
- "amount_tax_display": null,
- "pdf": {
- "page_size": "letter"
+ "payment_method": null,
+ "payment_method_configuration_details": null,
+ "payment_method_options": {
+ "card": {
+ "installments": null,
+ "mandate_options": null,
+ "network": null,
+ "request_three_d_secure": "automatic"
},
- "template": null,
- "template_version": null
+ "link": {
+ "persistent_token": null
+ }
},
- "shipping_cost": null,
- "shipping_details": null,
- "starting_balance": 0,
+ "payment_method_types": [
+ "card",
+ "link"
+ ],
+ "processing": null,
+ "receipt_email": "[email protected]",
+ "review": null,
+ "setup_future_usage": null,
+ "shipping": null,
+ "source": null,
"statement_descriptor": "Zulip Cloud Standard",
- "status": "paid",
- "status_transitions": {
- "finalized_at": 1000000000,
- "marked_uncollectible_at": null,
- "paid_at": 1000000000,
- "voided_at": null
- },
- "subtotal": 984000,
- "subtotal_excluding_tax": 984000,
- "test_clock": null,
- "total": 984000,
- "total_discount_amounts": [],
- "total_excluding_tax": 984000,
- "total_pretax_credit_amounts": [],
- "total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "statement_descriptor_suffix": null,
+ "status": "canceled",
+ "transfer_data": null,
+ "transfer_group": null
}
},
"id": "downgrade_realm_and_void_open_invoices--Event.list.3.json",
@@ -167,7 +109,7 @@
"id": "downgrade_realm_and_void_open_invoices--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "invoice.paid"
+ "type": "payment_intent.canceled"
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.finalize_invoice.3.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.finalize_invoice.3.json
index 0ac80f260fb..7146b4e8abe 100644
--- a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.finalize_invoice.3.json
+++ b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.finalize_invoice.3.json
@@ -142,5 +142,5 @@
"total_excluding_tax": 10000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.finalize_invoice.6.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.finalize_invoice.6.json
index 28e2a371935..312fa36e4f7 100644
--- a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.finalize_invoice.6.json
+++ b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.finalize_invoice.6.json
@@ -142,5 +142,5 @@
"total_excluding_tax": 10000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
diff --git a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.10.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.10.json
index 713c74700e3..cdae782a75d 100644
--- a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.10.json
+++ b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.10.json
@@ -144,7 +144,7 @@
"total_excluding_tax": 10000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
},
{
"account_country": "US",
diff --git a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.14.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.14.json
index 16c7713da41..942b108bb3d 100644
--- a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.14.json
+++ b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.14.json
@@ -144,7 +144,7 @@
"total_excluding_tax": 10000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
],
"has_more": true,
diff --git a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.15.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.15.json
index c81adf9d67c..a1bbaabc87a 100644
--- a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.15.json
+++ b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.15.json
@@ -144,7 +144,7 @@
"total_excluding_tax": 10000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
{
"account_country": "US",
diff --git a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.7.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.7.json
index 2bd6778f1b5..f21dff70c86 100644
--- a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.7.json
+++ b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.7.json
@@ -290,7 +290,7 @@
"total_excluding_tax": 10000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.8.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.8.json
index 2bd6778f1b5..f21dff70c86 100644
--- a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.8.json
+++ b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.8.json
@@ -290,7 +290,7 @@
"total_excluding_tax": 10000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.pay.2.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.pay.2.json
index 3979360065b..fa095747195 100644
--- a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.pay.2.json
+++ b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.pay.2.json
@@ -142,5 +142,5 @@
"total_excluding_tax": 10000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
diff --git a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.void_invoice.3.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.void_invoice.3.json
index f0d4425527b..b6487a3b3ae 100644
--- a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.void_invoice.3.json
+++ b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.void_invoice.3.json
@@ -142,5 +142,5 @@
"total_excluding_tax": 10000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/end_free_trial--Event.list.1.json b/corporate/tests/stripe_fixtures/end_free_trial--Event.list.1.json
index 1d39d2506f2..24148754d9a 100644
--- a/corporate/tests/stripe_fixtures/end_free_trial--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/end_free_trial--Event.list.1.json
@@ -1,27 +1,44 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
- "amount_paid": 72000,
- "amount_requested": 72000,
+ "address": null,
+ "balance": 0,
"created": 1000000000,
- "currency": "usd",
- "id": "end_free_trial--Event.list.1.json",
- "invoice": "in_NORMALIZED",
- "is_default": true,
+ "currency": null,
+ "default_source": null,
+ "delinquent": false,
+ "description": "zulip (Zulip Dev)",
+ "discount": null,
+ "email": "[email protected]",
+ "id": "end_free_trial--Customer.create.1.json",
+ "invoice_prefix": "NORMALIZED",
+ "invoice_settings": {
+ "custom_fields": null,
+ "default_payment_method": "pm_NORMALIZED",
+ "footer": null,
+ "rendering_options": null
+ },
"livemode": false,
- "object": "invoice_payment",
- "payment": {
- "payment_intent": "pi_NORMALIZED",
- "type": "payment_intent"
+ "metadata": {
+ "realm_id": "1",
+ "realm_str": "zulip"
},
- "status": "paid",
- "status_transitions": {
- "canceled_at": null,
- "paid_at": 1000000000
+ "name": null,
+ "next_invoice_sequence": 1,
+ "object": "customer",
+ "phone": null,
+ "preferred_locales": [],
+ "shipping": null,
+ "tax_exempt": "none",
+ "test_clock": null
+ },
+ "previous_attributes": {
+ "invoice_settings": {
+ "default_payment_method": null
}
}
},
@@ -30,10 +47,10 @@
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": null,
- "idempotency_key": null
+ "id": "end_free_trial--Event.list.1.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "invoice_payment.paid"
+ "type": "customer.updated"
}
],
"has_more": true,
diff --git a/corporate/tests/stripe_fixtures/end_free_trial--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/end_free_trial--SetupIntent.create.1.json
index 561962ceebe..0f67d0e8907 100644
--- a/corporate/tests/stripe_fixtures/end_free_trial--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/end_free_trial--SetupIntent.create.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "end_free_trial--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/end_free_trial--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/end_free_trial--SetupIntent.list.1.json
index 676ffd732fa..1deb6fdea07 100644
--- a/corporate/tests/stripe_fixtures/end_free_trial--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/end_free_trial--SetupIntent.list.1.json
@@ -8,6 +8,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "end_free_trial--SetupIntent.list.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/end_free_trial--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/end_free_trial--SetupIntent.retrieve.1.json
index 561962ceebe..0f67d0e8907 100644
--- a/corporate/tests/stripe_fixtures/end_free_trial--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/end_free_trial--SetupIntent.retrieve.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "end_free_trial--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/fixed_price_plans--Event.list.1.json b/corporate/tests/stripe_fixtures/fixed_price_plans--Event.list.1.json
index 114ecc2a4ac..8f2fb7d9c79 100644
--- a/corporate/tests/stripe_fixtures/fixed_price_plans--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/fixed_price_plans--Event.list.1.json
@@ -1,21 +1,154 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
- "configuration": "bpc_NORMALIZED",
+ "account_country": "US",
+ "account_name": "NORMALIZED",
+ "account_tax_ids": null,
+ "amount_due": 119441,
+ "amount_overpaid": 0,
+ "amount_paid": 0,
+ "amount_remaining": 119441,
+ "amount_shipping": 0,
+ "application": null,
+ "attempt_count": 0,
+ "attempted": false,
+ "auto_advance": true,
+ "automatic_tax": {
+ "disabled_reason": null,
+ "enabled": false,
+ "liability": null,
+ "provider": null,
+ "status": null
+ },
+ "automatically_finalizes_at": null,
+ "billing_reason": "manual",
+ "collection_method": "charge_automatically",
"created": 1000000000,
+ "currency": "usd",
+ "custom_fields": null,
"customer": "cus_NORMALIZED",
- "flow": null,
+ "customer_address": null,
+ "customer_email": "[email protected]",
+ "customer_name": null,
+ "customer_phone": null,
+ "customer_shipping": null,
+ "customer_tax_exempt": "none",
+ "customer_tax_ids": [],
+ "default_payment_method": null,
+ "default_source": null,
+ "default_tax_rates": [],
+ "description": null,
+ "discounts": [],
+ "due_date": null,
+ "effective_at": 1000000000,
+ "ending_balance": 0,
+ "footer": null,
+ "from_invoice": null,
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
"id": "fixed_price_plans--Event.list.1.json",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
+ "issuer": {
+ "type": "self"
+ },
+ "last_finalization_error": null,
+ "latest_revision": null,
+ "lines": {
+ "data": [
+ {
+ "amount": 120000,
+ "currency": "usd",
+ "description": "Zulip Cloud Plus - renewal",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "fixed_price_plans--Event.list.1.json",
+ "invoice": "fixed_price_plans--Event.list.1.json",
+ "livemode": false,
+ "metadata": {},
+ "object": "line_item",
+ "parent": {
+ "invoice_item_details": {
+ "invoice_item": "ii_NORMALIZED",
+ "proration": false,
+ "proration_details": {
+ "credited_items": null
+ },
+ "subscription": null
+ },
+ "subscription_item_details": null,
+ "type": "invoice_item_details"
+ },
+ "period": {
+ "end": 1000000000,
+ "start": 1000000000
+ },
+ "pretax_credit_amounts": [],
+ "pricing": {
+ "price_details": {
+ "price": "price_NORMALIZED",
+ "product": "prod_NORMALIZED"
+ },
+ "type": "price_details",
+ "unit_amount_decimal": "12000"
+ },
+ "quantity": 10,
+ "taxes": []
+ }
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 1,
+ "url": "/v1/invoices/fixed_price_plans--Event.list.1.json/lines"
+ },
"livemode": false,
- "locale": null,
- "object": "billing_portal.session",
+ "metadata": {},
+ "next_payment_attempt": 1000000000,
+ "number": "NORMALIZED",
+ "object": "invoice",
"on_behalf_of": null,
- "return_url": "http://asdfsdaf.zulipdev.com:9991/billing/",
- "url": "https://billing.stripe.com/p/session/test_NORMALIZED"
+ "parent": null,
+ "payment_settings": {
+ "default_mandate": null,
+ "payment_method_options": null,
+ "payment_method_types": null
+ },
+ "period_end": 1000000000,
+ "period_start": 1000000000,
+ "post_payment_credit_notes_amount": 0,
+ "pre_payment_credit_notes_amount": 0,
+ "receipt_number": null,
+ "rendering": {
+ "amount_tax_display": null,
+ "pdf": {
+ "page_size": "letter"
+ },
+ "template": null,
+ "template_version": null
+ },
+ "shipping_cost": null,
+ "shipping_details": null,
+ "starting_balance": -559,
+ "statement_descriptor": "Zulip Cloud Plus",
+ "status": "open",
+ "status_transitions": {
+ "finalized_at": 1000000000,
+ "marked_uncollectible_at": null,
+ "paid_at": null,
+ "voided_at": null
+ },
+ "subtotal": 120000,
+ "subtotal_excluding_tax": 120000,
+ "test_clock": null,
+ "total": 120000,
+ "total_discount_amounts": [],
+ "total_excluding_tax": 120000,
+ "total_pretax_credit_amounts": [],
+ "total_taxes": [],
+ "webhooks_delivered_at": 1000000000
}
},
"id": "fixed_price_plans--Event.list.1.json",
@@ -26,7 +159,7 @@
"id": "fixed_price_plans--Event.list.1.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "billing_portal.session.created"
+ "type": "invoice.finalized"
}
],
"has_more": true,
diff --git a/corporate/tests/stripe_fixtures/fixed_price_plans--Event.list.2.json b/corporate/tests/stripe_fixtures/fixed_price_plans--Event.list.2.json
index 1eb70f1a8c8..991b1951f5f 100644
--- a/corporate/tests/stripe_fixtures/fixed_price_plans--Event.list.2.json
+++ b/corporate/tests/stripe_fixtures/fixed_price_plans--Event.list.2.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -156,16 +156,7 @@
"total_excluding_tax": 984000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
- },
- "previous_attributes": {
- "amount_paid": 0,
- "amount_remaining": 984000,
- "auto_advance": true,
- "status": "open",
- "status_transitions": {
- "paid_at": null
- }
+ "webhooks_delivered_at": null
}
},
"id": "fixed_price_plans--Event.list.2.json",
@@ -176,82 +167,188 @@
"id": "fixed_price_plans--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "invoice.updated"
+ "type": "invoice.paid"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
- "amount": 984000,
- "amount_capturable": 0,
- "amount_details": {
- "tip": {}
- },
- "amount_received": 0,
+ "account_country": "US",
+ "account_name": "NORMALIZED",
+ "account_tax_ids": null,
+ "amount_due": 984000,
+ "amount_overpaid": 0,
+ "amount_paid": 984000,
+ "amount_remaining": 0,
+ "amount_shipping": 0,
"application": null,
- "application_fee_amount": null,
- "automatic_payment_methods": null,
- "canceled_at": 1000000000,
- "cancellation_reason": "requested_by_customer",
- "capture_method": "automatic",
- "client_secret": "NORMALIZED",
- "confirmation_method": "automatic",
+ "attempt_count": 0,
+ "attempted": false,
+ "auto_advance": false,
+ "automatic_tax": {
+ "disabled_reason": null,
+ "enabled": false,
+ "liability": null,
+ "provider": null,
+ "status": null
+ },
+ "automatically_finalizes_at": null,
+ "billing_reason": "manual",
+ "collection_method": "send_invoice",
"created": 1000000000,
"currency": "usd",
+ "custom_fields": null,
"customer": "fixed_price_plans--Customer.create.1.json",
- "description": "Payment for Invoice",
- "excluded_payment_method_types": null,
+ "customer_address": null,
+ "customer_email": "[email protected]",
+ "customer_name": null,
+ "customer_phone": null,
+ "customer_shipping": null,
+ "customer_tax_exempt": "none",
+ "customer_tax_ids": [],
+ "default_payment_method": null,
+ "default_source": null,
+ "default_tax_rates": [],
+ "description": null,
+ "discounts": [],
+ "due_date": 1000000000,
+ "effective_at": 1000000000,
+ "ending_balance": 0,
+ "footer": null,
+ "from_invoice": null,
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
"id": "fixed_price_plans--Event.list.2.json",
- "last_payment_error": null,
- "latest_charge": null,
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
+ "issuer": {
+ "type": "self"
+ },
+ "last_finalization_error": null,
+ "latest_revision": null,
+ "lines": {
+ "data": [
+ {
+ "amount": 984000,
+ "currency": "usd",
+ "description": "Zulip Cloud Standard",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "fixed_price_plans--Event.list.2.json",
+ "invoice": "fixed_price_plans--Event.list.2.json",
+ "livemode": false,
+ "metadata": {},
+ "object": "line_item",
+ "parent": {
+ "invoice_item_details": {
+ "invoice_item": "fixed_price_plans--Event.list.2.json",
+ "proration": false,
+ "proration_details": {
+ "credited_items": null
+ },
+ "subscription": null
+ },
+ "subscription_item_details": null,
+ "type": "invoice_item_details"
+ },
+ "period": {
+ "end": 1357095845,
+ "start": 1325473445
+ },
+ "pretax_credit_amounts": [],
+ "pricing": {
+ "price_details": {
+ "price": "price_NORMALIZED",
+ "product": "prod_NORMALIZED"
+ },
+ "type": "price_details",
+ "unit_amount_decimal": "8000"
+ },
+ "quantity": 123,
+ "taxes": []
+ }
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 1,
+ "url": "/v1/invoices/fixed_price_plans--Event.list.2.json/lines"
+ },
"livemode": false,
- "metadata": {},
- "next_action": null,
- "object": "payment_intent",
+ "metadata": {
+ "billing_schedule": "1",
+ "current_plan_id": "None",
+ "license_management": "manual",
+ "licenses": "123",
+ "on_free_trial": "False",
+ "plan_tier": "1",
+ "user_id": "10"
+ },
+ "next_payment_attempt": null,
+ "number": "NORMALIZED",
+ "object": "invoice",
"on_behalf_of": null,
- "payment_method": null,
- "payment_method_configuration_details": null,
- "payment_method_options": {
- "card": {
- "installments": null,
- "mandate_options": null,
- "network": null,
- "request_three_d_secure": "automatic"
+ "parent": null,
+ "payment_settings": {
+ "default_mandate": null,
+ "payment_method_options": null,
+ "payment_method_types": null
+ },
+ "period_end": 1000000000,
+ "period_start": 1000000000,
+ "post_payment_credit_notes_amount": 0,
+ "pre_payment_credit_notes_amount": 0,
+ "receipt_number": null,
+ "rendering": {
+ "amount_tax_display": null,
+ "pdf": {
+ "page_size": "letter"
},
- "link": {
- "persistent_token": null
- }
+ "template": null,
+ "template_version": null
},
- "payment_method_types": [
- "card",
- "link"
- ],
- "processing": null,
- "receipt_email": "[email protected]",
- "review": null,
- "setup_future_usage": null,
- "shipping": null,
- "source": null,
+ "shipping_cost": null,
+ "shipping_details": null,
+ "starting_balance": 0,
"statement_descriptor": "Zulip Cloud Standard",
- "statement_descriptor_suffix": null,
- "status": "canceled",
- "transfer_data": null,
- "transfer_group": null
+ "status": "paid",
+ "status_transitions": {
+ "finalized_at": 1000000000,
+ "marked_uncollectible_at": null,
+ "paid_at": 1000000000,
+ "voided_at": null
+ },
+ "subtotal": 984000,
+ "subtotal_excluding_tax": 984000,
+ "test_clock": null,
+ "total": 984000,
+ "total_discount_amounts": [],
+ "total_excluding_tax": 984000,
+ "total_pretax_credit_amounts": [],
+ "total_taxes": [],
+ "webhooks_delivered_at": null
+ },
+ "previous_attributes": {
+ "amount_paid": 0,
+ "amount_remaining": 984000,
+ "auto_advance": true,
+ "status": "open",
+ "status_transitions": {
+ "paid_at": null
+ }
}
},
"id": "fixed_price_plans--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
"id": "fixed_price_plans--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "payment_intent.canceled"
+ "type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -406,7 +503,7 @@
"total_excluding_tax": 984000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
},
"id": "fixed_price_plans--Event.list.2.json",
@@ -420,7 +517,7 @@
"type": "invoice.finalized"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -575,7 +672,7 @@
"total_excluding_tax": 984000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
},
"previous_attributes": {
"automatically_finalizes_at": 1000000000,
@@ -606,7 +703,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -678,7 +775,7 @@
"type": "payment_intent.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -859,7 +956,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -906,7 +1003,7 @@
"type": "invoiceitem.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1034,7 +1131,7 @@
"type": "invoice.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1084,7 +1181,7 @@
"type": "customer.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
diff --git a/corporate/tests/stripe_fixtures/fixed_price_plans--Event.list.3.json b/corporate/tests/stripe_fixtures/fixed_price_plans--Event.list.3.json
index f92dc67fb05..12a2e2acc54 100644
--- a/corporate/tests/stripe_fixtures/fixed_price_plans--Event.list.3.json
+++ b/corporate/tests/stripe_fixtures/fixed_price_plans--Event.list.3.json
@@ -1,162 +1,104 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
- "account_country": "US",
- "account_name": "NORMALIZED",
- "account_tax_ids": null,
- "amount_due": 984000,
- "amount_overpaid": 0,
"amount_paid": 984000,
- "amount_remaining": 0,
- "amount_shipping": 0,
- "application": null,
- "attempt_count": 0,
- "attempted": false,
- "auto_advance": false,
- "automatic_tax": {
- "disabled_reason": null,
- "enabled": false,
- "liability": null,
- "provider": null,
- "status": null
+ "amount_requested": 984000,
+ "created": 1000000000,
+ "currency": "usd",
+ "id": "fixed_price_plans--Event.list.3.json",
+ "invoice": "in_NORMALIZED",
+ "is_default": false,
+ "livemode": false,
+ "object": "invoice_payment",
+ "payment": {
+ "payment_record": "pr_test_NORMALIZEDIeXgvU941RVfKEFJaqcVpY",
+ "type": "payment_record"
+ },
+ "status": "paid",
+ "status_transitions": {
+ "canceled_at": null,
+ "paid_at": 1000000000
+ }
+ }
+ },
+ "id": "fixed_price_plans--Event.list.3.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "fixed_price_plans--Event.list.2.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ },
+ "type": "invoice_payment.paid"
+ },
+ {
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount": 984000,
+ "amount_capturable": 0,
+ "amount_details": {
+ "tip": {}
},
- "automatically_finalizes_at": null,
- "billing_reason": "manual",
- "collection_method": "send_invoice",
+ "amount_received": 0,
+ "application": null,
+ "application_fee_amount": null,
+ "automatic_payment_methods": null,
+ "canceled_at": 1000000000,
+ "cancellation_reason": "requested_by_customer",
+ "capture_method": "automatic",
+ "client_secret": "NORMALIZED",
+ "confirmation_method": "automatic",
"created": 1000000000,
"currency": "usd",
- "custom_fields": null,
"customer": "cus_NORMALIZED",
- "customer_address": null,
- "customer_email": "[email protected]",
- "customer_name": null,
- "customer_phone": null,
- "customer_shipping": null,
- "customer_tax_exempt": "none",
- "customer_tax_ids": [],
- "default_payment_method": null,
- "default_source": null,
- "default_tax_rates": [],
- "description": null,
- "discounts": [],
- "due_date": 1000000000,
- "effective_at": 1000000000,
- "ending_balance": 0,
- "footer": null,
- "from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
+ "description": "Payment for Invoice",
+ "excluded_payment_method_types": null,
"id": "fixed_price_plans--Event.list.2.json",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
- "issuer": {
- "type": "self"
- },
- "last_finalization_error": null,
- "latest_revision": null,
- "lines": {
- "data": [
- {
- "amount": 984000,
- "currency": "usd",
- "description": "Zulip Cloud Standard",
- "discount_amounts": [],
- "discountable": false,
- "discounts": [],
- "id": "fixed_price_plans--Event.list.2.json",
- "invoice": "fixed_price_plans--Event.list.2.json",
- "livemode": false,
- "metadata": {},
- "object": "line_item",
- "parent": {
- "invoice_item_details": {
- "invoice_item": "ii_NORMALIZED",
- "proration": false,
- "proration_details": {
- "credited_items": null
- },
- "subscription": null
- },
- "subscription_item_details": null,
- "type": "invoice_item_details"
- },
- "period": {
- "end": 1357095845,
- "start": 1325473445
- },
- "pretax_credit_amounts": [],
- "pricing": {
- "price_details": {
- "price": "price_NORMALIZED",
- "product": "prod_NORMALIZED"
- },
- "type": "price_details",
- "unit_amount_decimal": "8000"
- },
- "quantity": 123,
- "taxes": []
- }
- ],
- "has_more": false,
- "object": "list",
- "total_count": 1,
- "url": "/v1/invoices/fixed_price_plans--Event.list.2.json/lines"
- },
+ "last_payment_error": null,
+ "latest_charge": null,
"livemode": false,
- "metadata": {
- "billing_schedule": "1",
- "current_plan_id": "None",
- "license_management": "manual",
- "licenses": "123",
- "on_free_trial": "False",
- "plan_tier": "1",
- "user_id": "10"
- },
- "next_payment_attempt": null,
- "number": "NORMALIZED",
- "object": "invoice",
+ "metadata": {},
+ "next_action": null,
+ "object": "payment_intent",
"on_behalf_of": null,
- "parent": null,
- "payment_settings": {
- "default_mandate": null,
- "payment_method_options": null,
- "payment_method_types": null
+ "payment_details": {
+ "customer_reference": null,
+ "order_reference": "in_1SPOxERVfKEFJaqcXDsMwg"
},
- "period_end": 1000000000,
- "period_start": 1000000000,
- "post_payment_credit_notes_amount": 0,
- "pre_payment_credit_notes_amount": 0,
- "receipt_number": null,
- "rendering": {
- "amount_tax_display": null,
- "pdf": {
- "page_size": "letter"
+ "payment_method": null,
+ "payment_method_configuration_details": null,
+ "payment_method_options": {
+ "card": {
+ "installments": null,
+ "mandate_options": null,
+ "network": null,
+ "request_three_d_secure": "automatic"
},
- "template": null,
- "template_version": null
+ "link": {
+ "persistent_token": null
+ }
},
- "shipping_cost": null,
- "shipping_details": null,
- "starting_balance": 0,
+ "payment_method_types": [
+ "card",
+ "link"
+ ],
+ "processing": null,
+ "receipt_email": "[email protected]",
+ "review": null,
+ "setup_future_usage": null,
+ "shipping": null,
+ "source": null,
"statement_descriptor": "Zulip Cloud Standard",
- "status": "paid",
- "status_transitions": {
- "finalized_at": 1000000000,
- "marked_uncollectible_at": null,
- "paid_at": 1000000000,
- "voided_at": null
- },
- "subtotal": 984000,
- "subtotal_excluding_tax": 984000,
- "test_clock": null,
- "total": 984000,
- "total_discount_amounts": [],
- "total_excluding_tax": 984000,
- "total_pretax_credit_amounts": [],
- "total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "statement_descriptor_suffix": null,
+ "status": "canceled",
+ "transfer_data": null,
+ "transfer_group": null
}
},
"id": "fixed_price_plans--Event.list.3.json",
@@ -167,7 +109,7 @@
"id": "fixed_price_plans--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "invoice.paid"
+ "type": "payment_intent.canceled"
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/fixed_price_plans--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/fixed_price_plans--Invoice.finalize_invoice.1.json
index 350c9bc2d8d..0f4b5f66cc6 100644
--- a/corporate/tests/stripe_fixtures/fixed_price_plans--Invoice.finalize_invoice.1.json
+++ b/corporate/tests/stripe_fixtures/fixed_price_plans--Invoice.finalize_invoice.1.json
@@ -150,5 +150,5 @@
"total_excluding_tax": 984000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
diff --git a/corporate/tests/stripe_fixtures/fixed_price_plans--Invoice.finalize_invoice.2.json b/corporate/tests/stripe_fixtures/fixed_price_plans--Invoice.finalize_invoice.2.json
index dd0a41cc438..3fb3367ddcc 100644
--- a/corporate/tests/stripe_fixtures/fixed_price_plans--Invoice.finalize_invoice.2.json
+++ b/corporate/tests/stripe_fixtures/fixed_price_plans--Invoice.finalize_invoice.2.json
@@ -142,5 +142,5 @@
"total_excluding_tax": 100,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/fixed_price_plans--Invoice.list.1.json b/corporate/tests/stripe_fixtures/fixed_price_plans--Invoice.list.1.json
index 9fef97916db..c601faae4c4 100644
--- a/corporate/tests/stripe_fixtures/fixed_price_plans--Invoice.list.1.json
+++ b/corporate/tests/stripe_fixtures/fixed_price_plans--Invoice.list.1.json
@@ -144,7 +144,7 @@
"total_excluding_tax": 100,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
{
"account_country": "US",
@@ -298,7 +298,7 @@
"total_excluding_tax": 984000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/fixed_price_plans--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/fixed_price_plans--Invoice.pay.1.json
index e2cc7560c06..441e5d03f83 100644
--- a/corporate/tests/stripe_fixtures/fixed_price_plans--Invoice.pay.1.json
+++ b/corporate/tests/stripe_fixtures/fixed_price_plans--Invoice.pay.1.json
@@ -150,5 +150,5 @@
"total_excluding_tax": 984000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Event.list.1.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Event.list.1.json
index ddf960c8cf5..a930387d9bd 100644
--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Event.list.1.json
@@ -1,27 +1,44 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
- "amount_paid": 1850,
- "amount_requested": 1850,
+ "address": null,
+ "balance": 0,
"created": 1000000000,
- "currency": "usd",
- "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.1.json",
- "invoice": "in_NORMALIZED",
- "is_default": true,
+ "currency": null,
+ "default_source": null,
+ "delinquent": false,
+ "description": "demo.example.com 6cde5f7a-1f7",
+ "discount": null,
+ "email": "[email protected]",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Customer.create.1.json",
+ "invoice_prefix": "NORMALIZED",
+ "invoice_settings": {
+ "custom_fields": null,
+ "default_payment_method": "pm_NORMALIZED",
+ "footer": null,
+ "rendering_options": null
+ },
"livemode": false,
- "object": "invoice_payment",
- "payment": {
- "payment_intent": "pi_NORMALIZED",
- "type": "payment_intent"
+ "metadata": {
+ "remote_server_str": "demo.example.com 6cde5f7a-1f7",
+ "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"
},
- "status": "paid",
- "status_transitions": {
- "canceled_at": null,
- "paid_at": 1000000000
+ "name": null,
+ "next_invoice_sequence": 1,
+ "object": "customer",
+ "phone": null,
+ "preferred_locales": [],
+ "shipping": null,
+ "tax_exempt": "none",
+ "test_clock": null
+ },
+ "previous_attributes": {
+ "invoice_settings": {
+ "default_payment_method": null
}
}
},
@@ -30,10 +47,10 @@
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": null,
- "idempotency_key": null
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.1.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "invoice_payment.paid"
+ "type": "customer.updated"
}
],
"has_more": true,
diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Event.list.2.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Event.list.2.json
index f1d7d0209f5..b1fefdd290c 100644
--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Event.list.2.json
+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Event.list.2.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -62,7 +62,7 @@
"payment_method_details": {
"card": {
"amount_authorized": 4300,
- "authorization_code": "077681",
+ "authorization_code": "011186",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
@@ -120,7 +120,7 @@
"id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
"id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -128,7 +128,7 @@
"type": "charge.succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -322,7 +322,7 @@
"total_excluding_tax": 4300,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
},
"id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
@@ -336,7 +336,7 @@
"type": "invoice.finalized"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -530,7 +530,7 @@
"total_excluding_tax": 4300,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
},
"previous_attributes": {
"effective_at": null,
@@ -560,7 +560,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -632,7 +632,7 @@
"type": "payment_intent.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -826,7 +826,7 @@
"total_excluding_tax": 4300,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
},
"previous_attributes": {
"amount_due": 6300,
@@ -893,7 +893,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -940,7 +940,7 @@
"type": "invoiceitem.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1120,7 +1120,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1167,7 +1167,7 @@
"type": "invoiceitem.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1294,7 +1294,7 @@
"type": "invoice.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Event.list.3.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Event.list.3.json
index 62fe516f4b5..98238833011 100644
--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Event.list.3.json
+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Event.list.3.json
@@ -1,42 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
- "created": 1000000000,
- "data": {
- "object": {
- "amount_paid": 10000,
- "amount_requested": 10000,
- "created": 1000000000,
- "currency": "usd",
- "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.3.json",
- "invoice": "in_NORMALIZED",
- "is_default": true,
- "livemode": false,
- "object": "invoice_payment",
- "payment": {
- "payment_intent": "pi_NORMALIZED",
- "type": "payment_intent"
- },
- "status": "paid",
- "status_transitions": {
- "canceled_at": null,
- "paid_at": 1000000000
- }
- }
- },
- "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.3.json",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 0,
- "request": {
- "id": null,
- "idempotency_key": null
- },
- "type": "invoice_payment.paid"
- },
- {
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -230,7 +195,7 @@
"total_excluding_tax": 4300,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
},
"id": "free_trial_not_available_for_complimentary_access_customer--Event.list.3.json",
@@ -244,7 +209,7 @@
"type": "invoice.payment_succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -438,7 +403,7 @@
"total_excluding_tax": 4300,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
},
"id": "free_trial_not_available_for_complimentary_access_customer--Event.list.3.json",
@@ -452,7 +417,7 @@
"type": "invoice.paid"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -646,7 +611,7 @@
"total_excluding_tax": 4300,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
},
"previous_attributes": {
"amount_paid": 0,
@@ -670,7 +635,42 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount_paid": null,
+ "amount_requested": 4300,
+ "created": 1000000000,
+ "currency": "usd",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.3.json",
+ "invoice": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
+ "is_default": true,
+ "livemode": false,
+ "object": "invoice_payment",
+ "payment": {
+ "payment_intent": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
+ "type": "payment_intent"
+ },
+ "status": "open",
+ "status_transitions": {
+ "canceled_at": null,
+ "paid_at": null
+ }
+ }
+ },
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.3.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ },
+ "type": "invoice_payment.paid"
+ },
+ {
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -701,6 +701,10 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
+ "payment_details": {
+ "customer_reference": null,
+ "order_reference": "in_1SPPAsRVfKEFJaqc5Vd0vg"
+ },
"payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
"payment_method_options": {
diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Invoice.finalize_invoice.1.json
index 460c360ed75..54a08302c6e 100644
--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Invoice.finalize_invoice.1.json
+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Invoice.finalize_invoice.1.json
@@ -189,5 +189,5 @@
"total_excluding_tax": 4300,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Invoice.pay.1.json
index dcad0ee91a4..ab651855717 100644
--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Invoice.pay.1.json
+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Invoice.pay.1.json
@@ -189,5 +189,5 @@
"total_excluding_tax": 4300,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--SetupIntent.create.1.json
index 5763987f096..9f1743e632f 100644
--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--SetupIntent.create.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "free_trial_not_available_for_complimentary_access_customer--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--SetupIntent.list.1.json
index c982b0c5955..1c7fd68f675 100644
--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--SetupIntent.list.1.json
@@ -8,6 +8,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "free_trial_not_available_for_complimentary_access_customer--SetupIntent.list.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--SetupIntent.retrieve.1.json
index 5763987f096..9f1743e632f 100644
--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--SetupIntent.retrieve.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "free_trial_not_available_for_complimentary_access_customer--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Event.list.1.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Event.list.1.json
index e29d2bcc1b2..ab8155648a6 100644
--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Event.list.1.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json
index bc5d72e33f1..2db9351061d 100644
--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json
+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -62,7 +62,7 @@
"payment_method_details": {
"card": {
"amount_authorized": 4300,
- "authorization_code": "414234",
+ "authorization_code": "951398",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
@@ -128,7 +128,7 @@
"type": "charge.succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -322,7 +322,7 @@
"total_excluding_tax": 4300,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
@@ -336,7 +336,7 @@
"type": "invoice.finalized"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -530,7 +530,7 @@
"total_excluding_tax": 4300,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"effective_at": null,
@@ -560,7 +560,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -632,7 +632,7 @@
"type": "payment_intent.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -826,7 +826,7 @@
"total_excluding_tax": 4300,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"amount_due": 6300,
@@ -893,7 +893,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -940,7 +940,7 @@
"type": "invoiceitem.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1120,7 +1120,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1167,7 +1167,7 @@
"type": "invoiceitem.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1294,7 +1294,7 @@
"type": "invoice.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Event.list.3.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Event.list.3.json
index 695f128f809..15ce48aca2d 100644
--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Event.list.3.json
+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Event.list.3.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -195,7 +195,7 @@
"total_excluding_tax": 4300,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.3.json",
@@ -209,7 +209,7 @@
"type": "invoice.payment_succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -403,7 +403,7 @@
"total_excluding_tax": 4300,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.3.json",
@@ -417,7 +417,7 @@
"type": "invoice.paid"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -611,7 +611,7 @@
"total_excluding_tax": 4300,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"amount_paid": 0,
@@ -635,7 +635,42 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount_paid": null,
+ "amount_requested": 4300,
+ "created": 1000000000,
+ "currency": "usd",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.3.json",
+ "invoice": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
+ "is_default": true,
+ "livemode": false,
+ "object": "invoice_payment",
+ "payment": {
+ "payment_intent": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
+ "type": "payment_intent"
+ },
+ "status": "open",
+ "status_transitions": {
+ "canceled_at": null,
+ "paid_at": null
+ }
+ }
+ },
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.3.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ },
+ "type": "invoice_payment.paid"
+ },
+ {
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -666,6 +701,10 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
+ "payment_details": {
+ "customer_reference": null,
+ "order_reference": "in_1SPPB6RVfKEFJaqchIp8Ba"
+ },
"payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
"payment_method_options": {
diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Invoice.finalize_invoice.1.json
index 8694f8f4bdd..faf33c60920 100644
--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Invoice.finalize_invoice.1.json
+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Invoice.finalize_invoice.1.json
@@ -189,5 +189,5 @@
"total_excluding_tax": 4300,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Invoice.pay.1.json
index 9d489daeaac..33a7a1702f6 100644
--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Invoice.pay.1.json
+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Invoice.pay.1.json
@@ -189,5 +189,5 @@
"total_excluding_tax": 4300,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--SetupIntent.create.1.json
index 4466b6148a6..0bfbee27687 100644
--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--SetupIntent.create.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "free_trial_not_available_for_previous_complimentary_access_customer--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--SetupIntent.list.1.json
index 892e0287b8f..fd62399f47b 100644
--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--SetupIntent.list.1.json
@@ -8,6 +8,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "free_trial_not_available_for_previous_complimentary_access_customer--SetupIntent.list.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--SetupIntent.retrieve.1.json
index 4466b6148a6..0bfbee27687 100644
--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--SetupIntent.retrieve.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "free_trial_not_available_for_previous_complimentary_access_customer--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Event.list.1.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Event.list.1.json
index e98ed66c58e..58dd3ccc71a 100644
--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Event.list.1.json
@@ -1,27 +1,44 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
- "amount_paid": 72000,
- "amount_requested": 72000,
+ "address": null,
+ "balance": 0,
"created": 1000000000,
- "currency": "usd",
+ "currency": null,
+ "default_source": null,
+ "delinquent": false,
+ "description": "zulip (Zulip Dev)",
+ "discount": null,
+ "email": "[email protected]",
"id": "free_trial_upgrade_by_card--Event.list.1.json",
- "invoice": "in_NORMALIZED",
- "is_default": true,
+ "invoice_prefix": "NORMALIZED",
+ "invoice_settings": {
+ "custom_fields": null,
+ "default_payment_method": "pm_NORMALIZED",
+ "footer": null,
+ "rendering_options": null
+ },
"livemode": false,
- "object": "invoice_payment",
- "payment": {
- "payment_intent": "pi_NORMALIZED",
- "type": "payment_intent"
+ "metadata": {
+ "realm_id": "1",
+ "realm_str": "zulip"
},
- "status": "paid",
- "status_transitions": {
- "canceled_at": null,
- "paid_at": 1000000000
+ "name": null,
+ "next_invoice_sequence": 1,
+ "object": "customer",
+ "phone": null,
+ "preferred_locales": [],
+ "shipping": null,
+ "tax_exempt": "none",
+ "test_clock": null
+ },
+ "previous_attributes": {
+ "invoice_settings": {
+ "default_payment_method": null
}
}
},
@@ -30,10 +47,10 @@
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": null,
- "idempotency_key": null
+ "id": "free_trial_upgrade_by_card--Event.list.1.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "invoice_payment.paid"
+ "type": "customer.updated"
}
],
"has_more": true,
diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Event.list.2.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Event.list.2.json
index 3a0fe4b8803..b690b5eb08c 100644
--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Event.list.2.json
+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Event.list.2.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.finalize_invoice.3.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.finalize_invoice.3.json
index 5f4bbb47db2..982410b9448 100644
--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.finalize_invoice.3.json
+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.finalize_invoice.3.json
@@ -142,5 +142,5 @@
"total_excluding_tax": 152000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.list.7.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.list.7.json
index 248daffe9ff..e34c4bac708 100644
--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.list.7.json
+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.list.7.json
@@ -144,7 +144,7 @@
"total_excluding_tax": 152000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
{
"account_country": "US",
diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--SetupIntent.create.1.json
index cbf32e750c0..6eff80e9fc2 100644
--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--SetupIntent.create.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "free_trial_upgrade_by_card--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--SetupIntent.list.1.json
index fb00e16e54f..66a39c13162 100644
--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--SetupIntent.list.1.json
@@ -8,6 +8,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "free_trial_upgrade_by_card--SetupIntent.list.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--SetupIntent.retrieve.1.json
index cbf32e750c0..6eff80e9fc2 100644
--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--SetupIntent.retrieve.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "free_trial_upgrade_by_card--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Event.list.1.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Event.list.1.json
index 49a5c5aa4bb..09c3c30f22b 100644
--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Event.list.1.json
@@ -1,154 +1,28 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
- "account_country": "US",
- "account_name": "NORMALIZED",
- "account_tax_ids": null,
- "amount_due": 152000,
- "amount_overpaid": 0,
- "amount_paid": 0,
- "amount_remaining": 152000,
- "amount_shipping": 0,
- "application": null,
- "attempt_count": 0,
- "attempted": false,
- "auto_advance": true,
- "automatic_tax": {
- "disabled_reason": null,
- "enabled": false,
- "liability": null,
- "provider": null,
- "status": null
- },
- "automatically_finalizes_at": null,
- "billing_reason": "manual",
- "collection_method": "charge_automatically",
+ "amount_paid": 984000,
+ "amount_requested": 984000,
"created": 1000000000,
"currency": "usd",
- "custom_fields": null,
- "customer": "cus_NORMALIZED",
- "customer_address": null,
- "customer_email": "[email protected]",
- "customer_name": null,
- "customer_phone": null,
- "customer_shipping": null,
- "customer_tax_exempt": "none",
- "customer_tax_ids": [],
- "default_payment_method": null,
- "default_source": null,
- "default_tax_rates": [],
- "description": null,
- "discounts": [],
- "due_date": null,
- "effective_at": 1000000000,
- "ending_balance": 0,
- "footer": null,
- "from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
"id": "free_trial_upgrade_by_invoice--Event.list.1.json",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
- "issuer": {
- "type": "self"
- },
- "last_finalization_error": null,
- "latest_revision": null,
- "lines": {
- "data": [
- {
- "amount": 152000,
- "currency": "usd",
- "description": "Zulip Cloud Standard - renewal",
- "discount_amounts": [],
- "discountable": false,
- "discounts": [],
- "id": "free_trial_upgrade_by_invoice--Event.list.1.json",
- "invoice": "free_trial_upgrade_by_invoice--Event.list.1.json",
- "livemode": false,
- "metadata": {},
- "object": "line_item",
- "parent": {
- "invoice_item_details": {
- "invoice_item": "ii_NORMALIZED",
- "proration": false,
- "proration_details": {
- "credited_items": null
- },
- "subscription": null
- },
- "subscription_item_details": null,
- "type": "invoice_item_details"
- },
- "period": {
- "end": 1393729445,
- "start": 1362193445
- },
- "pretax_credit_amounts": [],
- "pricing": {
- "price_details": {
- "price": "price_NORMALIZED",
- "product": "prod_NORMALIZED"
- },
- "type": "price_details",
- "unit_amount_decimal": "8000"
- },
- "quantity": 19,
- "taxes": []
- }
- ],
- "has_more": false,
- "object": "list",
- "total_count": 1,
- "url": "/v1/invoices/free_trial_upgrade_by_invoice--Event.list.1.json/lines"
- },
+ "invoice": "in_NORMALIZED",
+ "is_default": false,
"livemode": false,
- "metadata": {},
- "next_payment_attempt": 1000000000,
- "number": "NORMALIZED",
- "object": "invoice",
- "on_behalf_of": null,
- "parent": null,
- "payment_settings": {
- "default_mandate": null,
- "payment_method_options": null,
- "payment_method_types": null
+ "object": "invoice_payment",
+ "payment": {
+ "payment_record": "pr_test_NORMALIZEDIIdq2wc41RVfKEFJaqcWnQ",
+ "type": "payment_record"
},
- "period_end": 1000000000,
- "period_start": 1000000000,
- "post_payment_credit_notes_amount": 0,
- "pre_payment_credit_notes_amount": 0,
- "receipt_number": null,
- "rendering": {
- "amount_tax_display": null,
- "pdf": {
- "page_size": "letter"
- },
- "template": null,
- "template_version": null
- },
- "shipping_cost": null,
- "shipping_details": null,
- "starting_balance": 0,
- "statement_descriptor": "Zulip Cloud Standard",
- "status": "open",
+ "status": "paid",
"status_transitions": {
- "finalized_at": 1000000000,
- "marked_uncollectible_at": null,
- "paid_at": null,
- "voided_at": null
- },
- "subtotal": 152000,
- "subtotal_excluding_tax": 152000,
- "test_clock": null,
- "total": 152000,
- "total_discount_amounts": [],
- "total_excluding_tax": 152000,
- "total_pretax_credit_amounts": [],
- "total_taxes": [],
- "webhooks_delivered_at": null
+ "canceled_at": null,
+ "paid_at": 1000000000
+ }
}
},
"id": "free_trial_upgrade_by_invoice--Event.list.1.json",
@@ -159,7 +33,7 @@
"id": "free_trial_upgrade_by_invoice--Event.list.1.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "invoice.finalized"
+ "type": "invoice_payment.paid"
}
],
"has_more": true,
diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Event.list.2.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Event.list.2.json
index 02d1e60f88b..19aeebc46d7 100644
--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Event.list.2.json
+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Event.list.2.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -107,7 +107,7 @@
"livemode": false,
"metadata": {
"billing_schedule": "1",
- "current_plan_id": "39",
+ "current_plan_id": "1",
"license_management": "manual",
"licenses": "123",
"on_free_trial": "True",
@@ -156,7 +156,7 @@
"total_excluding_tax": 984000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
},
"id": "free_trial_upgrade_by_invoice--Event.list.2.json",
diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Event.list.3.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Event.list.3.json
index 70a5ec656f7..b63c3206b19 100644
--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Event.list.3.json
+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Event.list.3.json
@@ -1,7 +1,118 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount_paid": 984000,
+ "amount_requested": 984000,
+ "created": 1000000000,
+ "currency": "usd",
+ "id": "free_trial_upgrade_by_invoice--Event.list.3.json",
+ "invoice": "free_trial_upgrade_by_invoice--Event.list.2.json",
+ "is_default": false,
+ "livemode": false,
+ "object": "invoice_payment",
+ "payment": {
+ "payment_record": "pr_test_NORMALIZEDmxeXP4o41RVfKEFJaqcRSi",
+ "type": "payment_record"
+ },
+ "status": "paid",
+ "status_transitions": {
+ "canceled_at": null,
+ "paid_at": 1000000000
+ }
+ }
+ },
+ "id": "free_trial_upgrade_by_invoice--Event.list.3.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "free_trial_upgrade_by_invoice--Event.list.3.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ },
+ "type": "invoice_payment.paid"
+ },
+ {
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount": 984000,
+ "amount_capturable": 0,
+ "amount_details": {
+ "tip": {}
+ },
+ "amount_received": 0,
+ "application": null,
+ "application_fee_amount": null,
+ "automatic_payment_methods": null,
+ "canceled_at": 1000000000,
+ "cancellation_reason": "requested_by_customer",
+ "capture_method": "automatic",
+ "client_secret": "NORMALIZED",
+ "confirmation_method": "automatic",
+ "created": 1000000000,
+ "currency": "usd",
+ "customer": "cus_NORMALIZED",
+ "description": "Payment for Invoice",
+ "excluded_payment_method_types": null,
+ "id": "free_trial_upgrade_by_invoice--Event.list.3.json",
+ "last_payment_error": null,
+ "latest_charge": null,
+ "livemode": false,
+ "metadata": {},
+ "next_action": null,
+ "object": "payment_intent",
+ "on_behalf_of": null,
+ "payment_details": {
+ "customer_reference": null,
+ "order_reference": "in_1SPR0RRVfKEFJaqcVJ9kws"
+ },
+ "payment_method": null,
+ "payment_method_configuration_details": null,
+ "payment_method_options": {
+ "card": {
+ "installments": null,
+ "mandate_options": null,
+ "network": null,
+ "request_three_d_secure": "automatic"
+ },
+ "link": {
+ "persistent_token": null
+ }
+ },
+ "payment_method_types": [
+ "card",
+ "link"
+ ],
+ "processing": null,
+ "receipt_email": "[email protected]",
+ "review": null,
+ "setup_future_usage": null,
+ "shipping": null,
+ "source": null,
+ "statement_descriptor": "Zulip Cloud Standard",
+ "statement_descriptor_suffix": null,
+ "status": "canceled",
+ "transfer_data": null,
+ "transfer_group": null
+ }
+ },
+ "id": "free_trial_upgrade_by_invoice--Event.list.3.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 2,
+ "request": {
+ "id": "free_trial_upgrade_by_invoice--Event.list.3.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ },
+ "type": "payment_intent.canceled"
+ },
+ {
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -107,7 +218,7 @@
"livemode": false,
"metadata": {
"billing_schedule": "1",
- "current_plan_id": "39",
+ "current_plan_id": "1",
"license_management": "manual",
"licenses": "123",
"on_free_trial": "True",
@@ -162,7 +273,7 @@
"id": "free_trial_upgrade_by_invoice--Event.list.3.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
"id": "free_trial_upgrade_by_invoice--Event.list.3.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -170,7 +281,7 @@
"type": "invoice.paid"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -276,7 +387,7 @@
"livemode": false,
"metadata": {
"billing_schedule": "1",
- "current_plan_id": "39",
+ "current_plan_id": "1",
"license_management": "manual",
"licenses": "123",
"on_free_trial": "True",
@@ -340,84 +451,12 @@
"id": "free_trial_upgrade_by_invoice--Event.list.3.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
"id": "free_trial_upgrade_by_invoice--Event.list.3.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "invoice.updated"
- },
- {
- "api_version": "2025-09-30.clover",
- "created": 1000000000,
- "data": {
- "object": {
- "amount": 984000,
- "amount_capturable": 0,
- "amount_details": {
- "tip": {}
- },
- "amount_received": 0,
- "application": null,
- "application_fee_amount": null,
- "automatic_payment_methods": null,
- "canceled_at": 1000000000,
- "cancellation_reason": "requested_by_customer",
- "capture_method": "automatic",
- "client_secret": "NORMALIZED",
- "confirmation_method": "automatic",
- "created": 1000000000,
- "currency": "usd",
- "customer": "cus_NORMALIZED",
- "description": "Payment for Invoice",
- "excluded_payment_method_types": null,
- "id": "free_trial_upgrade_by_invoice--Event.list.3.json",
- "last_payment_error": null,
- "latest_charge": null,
- "livemode": false,
- "metadata": {},
- "next_action": null,
- "object": "payment_intent",
- "on_behalf_of": null,
- "payment_method": null,
- "payment_method_configuration_details": null,
- "payment_method_options": {
- "card": {
- "installments": null,
- "mandate_options": null,
- "network": null,
- "request_three_d_secure": "automatic"
- },
- "link": {
- "persistent_token": null
- }
- },
- "payment_method_types": [
- "card",
- "link"
- ],
- "processing": null,
- "receipt_email": "[email protected]",
- "review": null,
- "setup_future_usage": null,
- "shipping": null,
- "source": null,
- "statement_descriptor": "Zulip Cloud Standard",
- "statement_descriptor_suffix": null,
- "status": "canceled",
- "transfer_data": null,
- "transfer_group": null
- }
- },
- "id": "free_trial_upgrade_by_invoice--Event.list.3.json",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 0,
- "request": {
- "id": "free_trial_upgrade_by_invoice--Event.list.3.json",
- "idempotency_key": "00000000-0000-0000-0000-000000000000"
- },
- "type": "payment_intent.canceled"
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.create.1.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.create.1.json
index 2fe17bcb736..a577e71cfc2 100644
--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.create.1.json
+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.create.1.json
@@ -60,7 +60,7 @@
"livemode": false,
"metadata": {
"billing_schedule": "1",
- "current_plan_id": "39",
+ "current_plan_id": "1",
"license_management": "manual",
"licenses": "123",
"on_free_trial": "True",
diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.finalize_invoice.1.json
index 4342d16d411..0bf274bb733 100644
--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.finalize_invoice.1.json
+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.finalize_invoice.1.json
@@ -101,7 +101,7 @@
"livemode": false,
"metadata": {
"billing_schedule": "1",
- "current_plan_id": "39",
+ "current_plan_id": "1",
"license_management": "manual",
"licenses": "123",
"on_free_trial": "True",
@@ -150,5 +150,5 @@
"total_excluding_tax": 984000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.list.1.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.list.1.json
index dddc05f0526..1ff3d877598 100644
--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.list.1.json
+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.list.1.json
@@ -103,7 +103,7 @@
"livemode": false,
"metadata": {
"billing_schedule": "1",
- "current_plan_id": "39",
+ "current_plan_id": "1",
"license_management": "manual",
"licenses": "123",
"on_free_trial": "True",
diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.pay.1.json
index 29e4c5d2b89..1f20e2130a2 100644
--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.pay.1.json
+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.pay.1.json
@@ -101,7 +101,7 @@
"livemode": false,
"metadata": {
"billing_schedule": "1",
- "current_plan_id": "39",
+ "current_plan_id": "1",
"license_management": "manual",
"licenses": "123",
"on_free_trial": "True",
diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.1.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.1.json
index 5b9da39c77e..f29779137d5 100644
--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.1.json
@@ -1,173 +1,39 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
- "account_country": "US",
- "account_name": "NORMALIZED",
- "account_tax_ids": null,
- "amount_due": 984000,
- "amount_overpaid": 0,
"amount_paid": 984000,
- "amount_remaining": 0,
- "amount_shipping": 0,
- "application": null,
- "attempt_count": 0,
- "attempted": false,
- "auto_advance": false,
- "automatic_tax": {
- "disabled_reason": null,
- "enabled": false,
- "liability": null,
- "provider": null,
- "status": null
- },
- "automatically_finalizes_at": null,
- "billing_reason": "manual",
- "collection_method": "send_invoice",
+ "amount_requested": 984000,
"created": 1000000000,
"currency": "usd",
- "custom_fields": null,
- "customer": "cus_NORMALIZED",
- "customer_address": null,
- "customer_email": "[email protected]",
- "customer_name": null,
- "customer_phone": null,
- "customer_shipping": null,
- "customer_tax_exempt": "none",
- "customer_tax_ids": [],
- "default_payment_method": null,
- "default_source": null,
- "default_tax_rates": [],
- "description": null,
- "discounts": [],
- "due_date": 1000000000,
- "effective_at": 1000000000,
- "ending_balance": 0,
- "footer": null,
- "from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
"id": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.1.json",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
- "issuer": {
- "type": "self"
- },
- "last_finalization_error": null,
- "latest_revision": null,
- "lines": {
- "data": [
- {
- "amount": 984000,
- "currency": "usd",
- "description": "Zulip Cloud Standard",
- "discount_amounts": [],
- "discountable": false,
- "discounts": [],
- "id": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.1.json",
- "invoice": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.1.json",
- "livemode": false,
- "metadata": {},
- "object": "line_item",
- "parent": {
- "invoice_item_details": {
- "invoice_item": "ii_NORMALIZED",
- "proration": false,
- "proration_details": {
- "credited_items": null
- },
- "subscription": null
- },
- "subscription_item_details": null,
- "type": "invoice_item_details"
- },
- "period": {
- "end": 1362193445,
- "start": 1330657445
- },
- "pretax_credit_amounts": [],
- "pricing": {
- "price_details": {
- "price": "price_NORMALIZED",
- "product": "prod_NORMALIZED"
- },
- "type": "price_details",
- "unit_amount_decimal": "8000"
- },
- "quantity": 123,
- "taxes": []
- }
- ],
- "has_more": false,
- "object": "list",
- "total_count": 1,
- "url": "/v1/invoices/free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.1.json/lines"
- },
+ "invoice": "in_NORMALIZED",
+ "is_default": false,
"livemode": false,
- "metadata": {
- "billing_schedule": "1",
- "current_plan_id": "39",
- "license_management": "manual",
- "licenses": "123",
- "on_free_trial": "True",
- "plan_tier": "1",
- "user_id": "10"
+ "object": "invoice_payment",
+ "payment": {
+ "payment_record": "pr_test_NORMALIZED1DkAwKj41RVfKEFJaqcH04",
+ "type": "payment_record"
},
- "next_payment_attempt": null,
- "number": "NORMALIZED",
- "object": "invoice",
- "on_behalf_of": null,
- "parent": null,
- "payment_settings": {
- "default_mandate": null,
- "payment_method_options": null,
- "payment_method_types": null
- },
- "period_end": 1000000000,
- "period_start": 1000000000,
- "post_payment_credit_notes_amount": 0,
- "pre_payment_credit_notes_amount": 0,
- "receipt_number": null,
- "rendering": {
- "amount_tax_display": null,
- "pdf": {
- "page_size": "letter"
- },
- "template": null,
- "template_version": null
- },
- "shipping_cost": null,
- "shipping_details": null,
- "starting_balance": 0,
- "statement_descriptor": "Zulip Cloud Standard",
"status": "paid",
"status_transitions": {
- "finalized_at": 1000000000,
- "marked_uncollectible_at": null,
- "paid_at": 1000000000,
- "voided_at": null
- },
- "subtotal": 984000,
- "subtotal_excluding_tax": 984000,
- "test_clock": null,
- "total": 984000,
- "total_discount_amounts": [],
- "total_excluding_tax": 984000,
- "total_pretax_credit_amounts": [],
- "total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "canceled_at": null,
+ "paid_at": 1000000000
+ }
}
},
"id": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.1.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
"id": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.1.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "invoice.paid"
+ "type": "invoice_payment.paid"
}
],
"has_more": true,
diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.2.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.2.json
index 801640c1160..32de6eb26b9 100644
--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.2.json
+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.2.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.3.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.3.json
index ad3b689d927..598dfb75857 100644
--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.3.json
+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.3.json
@@ -1,7 +1,118 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount_paid": 984000,
+ "amount_requested": 984000,
+ "created": 1000000000,
+ "currency": "usd",
+ "id": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.3.json",
+ "invoice": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.2.json",
+ "is_default": false,
+ "livemode": false,
+ "object": "invoice_payment",
+ "payment": {
+ "payment_record": "pr_test_NORMALIZEDqspb93V41RVfKEFJaqcX7A",
+ "type": "payment_record"
+ },
+ "status": "paid",
+ "status_transitions": {
+ "canceled_at": null,
+ "paid_at": 1000000000
+ }
+ }
+ },
+ "id": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.3.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.3.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ },
+ "type": "invoice_payment.paid"
+ },
+ {
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount": 984000,
+ "amount_capturable": 0,
+ "amount_details": {
+ "tip": {}
+ },
+ "amount_received": 0,
+ "application": null,
+ "application_fee_amount": null,
+ "automatic_payment_methods": null,
+ "canceled_at": 1000000000,
+ "cancellation_reason": "requested_by_customer",
+ "capture_method": "automatic",
+ "client_secret": "NORMALIZED",
+ "confirmation_method": "automatic",
+ "created": 1000000000,
+ "currency": "usd",
+ "customer": "cus_NORMALIZED",
+ "description": "Payment for Invoice",
+ "excluded_payment_method_types": null,
+ "id": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.3.json",
+ "last_payment_error": null,
+ "latest_charge": null,
+ "livemode": false,
+ "metadata": {},
+ "next_action": null,
+ "object": "payment_intent",
+ "on_behalf_of": null,
+ "payment_details": {
+ "customer_reference": null,
+ "order_reference": "in_1SPP1QRVfKEFJaqcNJizb5"
+ },
+ "payment_method": null,
+ "payment_method_configuration_details": null,
+ "payment_method_options": {
+ "card": {
+ "installments": null,
+ "mandate_options": null,
+ "network": null,
+ "request_three_d_secure": "automatic"
+ },
+ "link": {
+ "persistent_token": null
+ }
+ },
+ "payment_method_types": [
+ "card",
+ "link"
+ ],
+ "processing": null,
+ "receipt_email": "[email protected]",
+ "review": null,
+ "setup_future_usage": null,
+ "shipping": null,
+ "source": null,
+ "statement_descriptor": "Zulip Cloud Standard",
+ "statement_descriptor_suffix": null,
+ "status": "canceled",
+ "transfer_data": null,
+ "transfer_group": null
+ }
+ },
+ "id": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.3.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 1,
+ "request": {
+ "id": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.3.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ },
+ "type": "payment_intent.canceled"
+ },
+ {
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -162,7 +273,7 @@
"id": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.3.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
"id": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.3.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -170,7 +281,7 @@
"type": "invoice.paid"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -346,78 +457,6 @@
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "invoice.updated"
- },
- {
- "api_version": "2025-09-30.clover",
- "created": 1000000000,
- "data": {
- "object": {
- "amount": 984000,
- "amount_capturable": 0,
- "amount_details": {
- "tip": {}
- },
- "amount_received": 0,
- "application": null,
- "application_fee_amount": null,
- "automatic_payment_methods": null,
- "canceled_at": 1000000000,
- "cancellation_reason": "requested_by_customer",
- "capture_method": "automatic",
- "client_secret": "NORMALIZED",
- "confirmation_method": "automatic",
- "created": 1000000000,
- "currency": "usd",
- "customer": "cus_NORMALIZED",
- "description": "Payment for Invoice",
- "excluded_payment_method_types": null,
- "id": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.3.json",
- "last_payment_error": null,
- "latest_charge": null,
- "livemode": false,
- "metadata": {},
- "next_action": null,
- "object": "payment_intent",
- "on_behalf_of": null,
- "payment_method": null,
- "payment_method_configuration_details": null,
- "payment_method_options": {
- "card": {
- "installments": null,
- "mandate_options": null,
- "network": null,
- "request_three_d_secure": "automatic"
- },
- "link": {
- "persistent_token": null
- }
- },
- "payment_method_types": [
- "card",
- "link"
- ],
- "processing": null,
- "receipt_email": "[email protected]",
- "review": null,
- "setup_future_usage": null,
- "shipping": null,
- "source": null,
- "statement_descriptor": "Zulip Cloud Standard",
- "statement_descriptor_suffix": null,
- "status": "canceled",
- "transfer_data": null,
- "transfer_group": null
- }
- },
- "id": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.3.json",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 0,
- "request": {
- "id": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.3.json",
- "idempotency_key": "00000000-0000-0000-0000-000000000000"
- },
- "type": "payment_intent.canceled"
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--Event.list.1.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--Event.list.1.json
index bb183232304..dc807764cd9 100644
--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--Event.list.1.json
@@ -1,162 +1,28 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
- "account_country": "US",
- "account_name": "NORMALIZED",
- "account_tax_ids": null,
- "amount_due": 984000,
- "amount_overpaid": 0,
"amount_paid": 984000,
- "amount_remaining": 0,
- "amount_shipping": 0,
- "application": null,
- "attempt_count": 0,
- "attempted": false,
- "auto_advance": false,
- "automatic_tax": {
- "disabled_reason": null,
- "enabled": false,
- "liability": null,
- "provider": null,
- "status": null
- },
- "automatically_finalizes_at": null,
- "billing_reason": "manual",
- "collection_method": "send_invoice",
+ "amount_requested": 984000,
"created": 1000000000,
"currency": "usd",
- "custom_fields": null,
- "customer": "cus_NORMALIZED",
- "customer_address": null,
- "customer_email": "[email protected]",
- "customer_name": null,
- "customer_phone": null,
- "customer_shipping": null,
- "customer_tax_exempt": "none",
- "customer_tax_ids": [],
- "default_payment_method": null,
- "default_source": null,
- "default_tax_rates": [],
- "description": null,
- "discounts": [],
- "due_date": 1000000000,
- "effective_at": 1000000000,
- "ending_balance": 0,
- "footer": null,
- "from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
"id": "free_trial_upgrade_by_invoice_with_additional_users_after_payment--Event.list.1.json",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
- "issuer": {
- "type": "self"
- },
- "last_finalization_error": null,
- "latest_revision": null,
- "lines": {
- "data": [
- {
- "amount": 984000,
- "currency": "usd",
- "description": "Zulip Cloud Standard",
- "discount_amounts": [],
- "discountable": false,
- "discounts": [],
- "id": "free_trial_upgrade_by_invoice_with_additional_users_after_payment--Event.list.1.json",
- "invoice": "free_trial_upgrade_by_invoice_with_additional_users_after_payment--Event.list.1.json",
- "livemode": false,
- "metadata": {},
- "object": "line_item",
- "parent": {
- "invoice_item_details": {
- "invoice_item": "ii_NORMALIZED",
- "proration": false,
- "proration_details": {
- "credited_items": null
- },
- "subscription": null
- },
- "subscription_item_details": null,
- "type": "invoice_item_details"
- },
- "period": {
- "end": 1362193445,
- "start": 1330657445
- },
- "pretax_credit_amounts": [],
- "pricing": {
- "price_details": {
- "price": "price_NORMALIZED",
- "product": "prod_NORMALIZED"
- },
- "type": "price_details",
- "unit_amount_decimal": "8000"
- },
- "quantity": 123,
- "taxes": []
- }
- ],
- "has_more": false,
- "object": "list",
- "total_count": 1,
- "url": "/v1/invoices/free_trial_upgrade_by_invoice_with_additional_users_after_payment--Event.list.1.json/lines"
- },
+ "invoice": "in_NORMALIZED",
+ "is_default": false,
"livemode": false,
- "metadata": {
- "billing_schedule": "1",
- "current_plan_id": "40",
- "license_management": "manual",
- "licenses": "123",
- "on_free_trial": "True",
- "plan_tier": "1",
- "user_id": "10"
+ "object": "invoice_payment",
+ "payment": {
+ "payment_record": "pr_test_NORMALIZEDmxeXP4o41RVfKEFJaqcRSi",
+ "type": "payment_record"
},
- "next_payment_attempt": null,
- "number": "NORMALIZED",
- "object": "invoice",
- "on_behalf_of": null,
- "parent": null,
- "payment_settings": {
- "default_mandate": null,
- "payment_method_options": null,
- "payment_method_types": null
- },
- "period_end": 1000000000,
- "period_start": 1000000000,
- "post_payment_credit_notes_amount": 0,
- "pre_payment_credit_notes_amount": 0,
- "receipt_number": null,
- "rendering": {
- "amount_tax_display": null,
- "pdf": {
- "page_size": "letter"
- },
- "template": null,
- "template_version": null
- },
- "shipping_cost": null,
- "shipping_details": null,
- "starting_balance": 0,
- "statement_descriptor": "Zulip Cloud Standard",
"status": "paid",
"status_transitions": {
- "finalized_at": 1000000000,
- "marked_uncollectible_at": null,
- "paid_at": 1000000000,
- "voided_at": null
- },
- "subtotal": 984000,
- "subtotal_excluding_tax": 984000,
- "test_clock": null,
- "total": 984000,
- "total_discount_amounts": [],
- "total_excluding_tax": 984000,
- "total_pretax_credit_amounts": [],
- "total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "canceled_at": null,
+ "paid_at": 1000000000
+ }
}
},
"id": "free_trial_upgrade_by_invoice_with_additional_users_after_payment--Event.list.1.json",
@@ -167,7 +33,7 @@
"id": "free_trial_upgrade_by_invoice_with_additional_users_after_payment--Event.list.1.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "invoice.paid"
+ "type": "invoice_payment.paid"
}
],
"has_more": true,
diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--Event.list.2.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--Event.list.2.json
index 9b6e3a2c035..b751aacb703 100644
--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--Event.list.2.json
+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--Event.list.2.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -107,7 +107,7 @@
"livemode": false,
"metadata": {
"billing_schedule": "1",
- "current_plan_id": "42",
+ "current_plan_id": "1",
"license_management": "manual",
"licenses": "123",
"on_free_trial": "True",
@@ -156,7 +156,7 @@
"total_excluding_tax": 984000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
},
"id": "free_trial_upgrade_by_invoice_with_additional_users_after_payment--Event.list.2.json",
diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--Event.list.3.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--Event.list.3.json
index 9f66b3d1014..b10189dd07e 100644
--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--Event.list.3.json
+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--Event.list.3.json
@@ -1,7 +1,118 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount_paid": 984000,
+ "amount_requested": 984000,
+ "created": 1000000000,
+ "currency": "usd",
+ "id": "free_trial_upgrade_by_invoice_with_additional_users_after_payment--Event.list.3.json",
+ "invoice": "free_trial_upgrade_by_invoice_with_additional_users_after_payment--Event.list.2.json",
+ "is_default": false,
+ "livemode": false,
+ "object": "invoice_payment",
+ "payment": {
+ "payment_record": "pr_test_NORMALIZED2D9TDUp41RVfKEFJaqc1zs",
+ "type": "payment_record"
+ },
+ "status": "paid",
+ "status_transitions": {
+ "canceled_at": null,
+ "paid_at": 1000000000
+ }
+ }
+ },
+ "id": "free_trial_upgrade_by_invoice_with_additional_users_after_payment--Event.list.3.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "free_trial_upgrade_by_invoice_with_additional_users_after_payment--Event.list.3.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ },
+ "type": "invoice_payment.paid"
+ },
+ {
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount": 984000,
+ "amount_capturable": 0,
+ "amount_details": {
+ "tip": {}
+ },
+ "amount_received": 0,
+ "application": null,
+ "application_fee_amount": null,
+ "automatic_payment_methods": null,
+ "canceled_at": 1000000000,
+ "cancellation_reason": "requested_by_customer",
+ "capture_method": "automatic",
+ "client_secret": "NORMALIZED",
+ "confirmation_method": "automatic",
+ "created": 1000000000,
+ "currency": "usd",
+ "customer": "cus_NORMALIZED",
+ "description": "Payment for Invoice",
+ "excluded_payment_method_types": null,
+ "id": "free_trial_upgrade_by_invoice_with_additional_users_after_payment--Event.list.3.json",
+ "last_payment_error": null,
+ "latest_charge": null,
+ "livemode": false,
+ "metadata": {},
+ "next_action": null,
+ "object": "payment_intent",
+ "on_behalf_of": null,
+ "payment_details": {
+ "customer_reference": null,
+ "order_reference": "in_1SPR0qRVfKEFJaqcWApoT9"
+ },
+ "payment_method": null,
+ "payment_method_configuration_details": null,
+ "payment_method_options": {
+ "card": {
+ "installments": null,
+ "mandate_options": null,
+ "network": null,
+ "request_three_d_secure": "automatic"
+ },
+ "link": {
+ "persistent_token": null
+ }
+ },
+ "payment_method_types": [
+ "card",
+ "link"
+ ],
+ "processing": null,
+ "receipt_email": "[email protected]",
+ "review": null,
+ "setup_future_usage": null,
+ "shipping": null,
+ "source": null,
+ "statement_descriptor": "Zulip Cloud Standard",
+ "statement_descriptor_suffix": null,
+ "status": "canceled",
+ "transfer_data": null,
+ "transfer_group": null
+ }
+ },
+ "id": "free_trial_upgrade_by_invoice_with_additional_users_after_payment--Event.list.3.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 1,
+ "request": {
+ "id": "free_trial_upgrade_by_invoice_with_additional_users_after_payment--Event.list.3.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ },
+ "type": "payment_intent.canceled"
+ },
+ {
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -107,7 +218,7 @@
"livemode": false,
"metadata": {
"billing_schedule": "1",
- "current_plan_id": "42",
+ "current_plan_id": "1",
"license_management": "manual",
"licenses": "123",
"on_free_trial": "True",
@@ -156,7 +267,7 @@
"total_excluding_tax": 984000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
},
"id": "free_trial_upgrade_by_invoice_with_additional_users_after_payment--Event.list.3.json",
@@ -170,7 +281,7 @@
"type": "invoice.paid"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -276,7 +387,7 @@
"livemode": false,
"metadata": {
"billing_schedule": "1",
- "current_plan_id": "42",
+ "current_plan_id": "1",
"license_management": "manual",
"licenses": "123",
"on_free_trial": "True",
@@ -325,7 +436,7 @@
"total_excluding_tax": 984000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
},
"previous_attributes": {
"amount_paid": 0,
@@ -340,84 +451,12 @@
"id": "free_trial_upgrade_by_invoice_with_additional_users_after_payment--Event.list.3.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 1,
+ "pending_webhooks": 2,
"request": {
"id": "free_trial_upgrade_by_invoice_with_additional_users_after_payment--Event.list.3.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "invoice.updated"
- },
- {
- "api_version": "2025-09-30.clover",
- "created": 1000000000,
- "data": {
- "object": {
- "amount": 984000,
- "amount_capturable": 0,
- "amount_details": {
- "tip": {}
- },
- "amount_received": 0,
- "application": null,
- "application_fee_amount": null,
- "automatic_payment_methods": null,
- "canceled_at": 1000000000,
- "cancellation_reason": "requested_by_customer",
- "capture_method": "automatic",
- "client_secret": "NORMALIZED",
- "confirmation_method": "automatic",
- "created": 1000000000,
- "currency": "usd",
- "customer": "cus_NORMALIZED",
- "description": "Payment for Invoice",
- "excluded_payment_method_types": null,
- "id": "free_trial_upgrade_by_invoice_with_additional_users_after_payment--Event.list.3.json",
- "last_payment_error": null,
- "latest_charge": null,
- "livemode": false,
- "metadata": {},
- "next_action": null,
- "object": "payment_intent",
- "on_behalf_of": null,
- "payment_method": null,
- "payment_method_configuration_details": null,
- "payment_method_options": {
- "card": {
- "installments": null,
- "mandate_options": null,
- "network": null,
- "request_three_d_secure": "automatic"
- },
- "link": {
- "persistent_token": null
- }
- },
- "payment_method_types": [
- "card",
- "link"
- ],
- "processing": null,
- "receipt_email": "[email protected]",
- "review": null,
- "setup_future_usage": null,
- "shipping": null,
- "source": null,
- "statement_descriptor": "Zulip Cloud Standard",
- "statement_descriptor_suffix": null,
- "status": "canceled",
- "transfer_data": null,
- "transfer_group": null
- }
- },
- "id": "free_trial_upgrade_by_invoice_with_additional_users_after_payment--Event.list.3.json",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 0,
- "request": {
- "id": "free_trial_upgrade_by_invoice_with_additional_users_after_payment--Event.list.3.json",
- "idempotency_key": "00000000-0000-0000-0000-000000000000"
- },
- "type": "payment_intent.canceled"
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--Invoice.create.1.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--Invoice.create.1.json
index e6a6895d4bb..1fb980cb89b 100644
--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--Invoice.create.1.json
+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--Invoice.create.1.json
@@ -60,7 +60,7 @@
"livemode": false,
"metadata": {
"billing_schedule": "1",
- "current_plan_id": "42",
+ "current_plan_id": "1",
"license_management": "manual",
"licenses": "123",
"on_free_trial": "True",
diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--Invoice.finalize_invoice.1.json
index bce897735a8..c2ac08c4c2c 100644
--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--Invoice.finalize_invoice.1.json
+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--Invoice.finalize_invoice.1.json
@@ -101,7 +101,7 @@
"livemode": false,
"metadata": {
"billing_schedule": "1",
- "current_plan_id": "42",
+ "current_plan_id": "1",
"license_management": "manual",
"licenses": "123",
"on_free_trial": "True",
@@ -150,5 +150,5 @@
"total_excluding_tax": 984000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--Invoice.list.1.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--Invoice.list.1.json
index 14a1a1ef093..ec4bf157e60 100644
--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--Invoice.list.1.json
+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--Invoice.list.1.json
@@ -103,7 +103,7 @@
"livemode": false,
"metadata": {
"billing_schedule": "1",
- "current_plan_id": "42",
+ "current_plan_id": "1",
"license_management": "manual",
"licenses": "123",
"on_free_trial": "True",
@@ -152,7 +152,7 @@
"total_excluding_tax": 984000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--Invoice.list.2.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--Invoice.list.2.json
index 8f0cb84f15d..4f918c05ca9 100644
--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--Invoice.list.2.json
+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--Invoice.list.2.json
@@ -249,7 +249,7 @@
"livemode": false,
"metadata": {
"billing_schedule": "1",
- "current_plan_id": "42",
+ "current_plan_id": "1",
"license_management": "manual",
"licenses": "123",
"on_free_trial": "True",
@@ -298,7 +298,7 @@
"total_excluding_tax": 984000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--Invoice.pay.1.json
index 21af21b8ec1..04002f09c16 100644
--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--Invoice.pay.1.json
+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--Invoice.pay.1.json
@@ -101,7 +101,7 @@
"livemode": false,
"metadata": {
"billing_schedule": "1",
- "current_plan_id": "42",
+ "current_plan_id": "1",
"license_management": "manual",
"licenses": "123",
"on_free_trial": "True",
@@ -150,5 +150,5 @@
"total_excluding_tax": 984000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
diff --git a/corporate/tests/stripe_fixtures/invoice_for_additional_license--Event.list.1.json b/corporate/tests/stripe_fixtures/invoice_for_additional_license--Event.list.1.json
index 0c4d5cdf0bb..e37d5d1099c 100644
--- a/corporate/tests/stripe_fixtures/invoice_for_additional_license--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_for_additional_license--Event.list.1.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
diff --git a/corporate/tests/stripe_fixtures/invoice_for_additional_license--Event.list.2.json b/corporate/tests/stripe_fixtures/invoice_for_additional_license--Event.list.2.json
index 4782fd8d5d4..bc956895dbe 100644
--- a/corporate/tests/stripe_fixtures/invoice_for_additional_license--Event.list.2.json
+++ b/corporate/tests/stripe_fixtures/invoice_for_additional_license--Event.list.2.json
@@ -1,170 +1,26 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
- "account_country": "US",
- "account_name": "NORMALIZED",
- "account_tax_ids": null,
- "amount_due": 48000,
- "amount_overpaid": 0,
- "amount_paid": 48000,
- "amount_remaining": 0,
- "amount_shipping": 0,
- "application": null,
- "attempt_count": 1,
- "attempted": true,
- "auto_advance": false,
- "automatic_tax": {
- "disabled_reason": null,
- "enabled": false,
- "liability": null,
- "provider": null,
- "status": null
- },
- "automatically_finalizes_at": null,
- "billing_reason": "manual",
- "collection_method": "charge_automatically",
+ "amount_paid": null,
+ "amount_requested": 48000,
"created": 1000000000,
"currency": "usd",
- "custom_fields": null,
- "customer": "invoice_for_additional_license--Customer.create.1.json",
- "customer_address": null,
- "customer_email": "[email protected]",
- "customer_name": null,
- "customer_phone": null,
- "customer_shipping": null,
- "customer_tax_exempt": "none",
- "customer_tax_ids": [],
- "default_payment_method": null,
- "default_source": null,
- "default_tax_rates": [],
- "description": null,
- "discounts": [],
- "due_date": null,
- "effective_at": 1000000000,
- "ending_balance": 0,
- "footer": null,
- "from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
"id": "invoice_for_additional_license--Event.list.2.json",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
- "issuer": {
- "type": "self"
- },
- "last_finalization_error": null,
- "latest_revision": null,
- "lines": {
- "data": [
- {
- "amount": 48000,
- "currency": "usd",
- "description": "Zulip Cloud Standard",
- "discount_amounts": [],
- "discountable": false,
- "discounts": [],
- "id": "invoice_for_additional_license--Event.list.2.json",
- "invoice": "invoice_for_additional_license--Event.list.2.json",
- "livemode": false,
- "metadata": {},
- "object": "line_item",
- "parent": {
- "invoice_item_details": {
- "invoice_item": "invoice_for_additional_license--Event.list.2.json",
- "proration": false,
- "proration_details": {
- "credited_items": null
- },
- "subscription": null
- },
- "subscription_item_details": null,
- "type": "invoice_item_details"
- },
- "period": {
- "end": 1357095845,
- "start": 1325473445
- },
- "pretax_credit_amounts": [],
- "pricing": {
- "price_details": {
- "price": "price_NORMALIZED",
- "product": "prod_NORMALIZED"
- },
- "type": "price_details",
- "unit_amount_decimal": "8000"
- },
- "quantity": 6,
- "taxes": []
- }
- ],
- "has_more": false,
- "object": "list",
- "total_count": 1,
- "url": "/v1/invoices/invoice_for_additional_license--Event.list.2.json/lines"
- },
+ "invoice": "invoice_for_additional_license--Event.list.2.json",
+ "is_default": true,
"livemode": false,
- "metadata": {
- "billing_schedule": "1",
- "current_plan_id": "None",
- "license_management": "automatic",
- "licenses": "6",
- "on_free_trial": "False",
- "plan_tier": "1",
- "user_id": "10"
- },
- "next_payment_attempt": null,
- "number": "NORMALIZED",
- "object": "invoice",
- "on_behalf_of": null,
- "parent": null,
- "payment_settings": {
- "default_mandate": null,
- "payment_method_options": null,
- "payment_method_types": null
+ "object": "invoice_payment",
+ "payment": {
+ "payment_intent": "invoice_for_additional_license--Event.list.2.json",
+ "type": "payment_intent"
},
- "period_end": 1000000000,
- "period_start": 1000000000,
- "post_payment_credit_notes_amount": 0,
- "pre_payment_credit_notes_amount": 0,
- "receipt_number": null,
- "rendering": {
- "amount_tax_display": null,
- "pdf": {
- "page_size": "letter"
- },
- "template": null,
- "template_version": null
- },
- "shipping_cost": null,
- "shipping_details": null,
- "starting_balance": 0,
- "statement_descriptor": "Zulip Cloud Standard",
- "status": "paid",
- "status_transitions": {
- "finalized_at": 1000000000,
- "marked_uncollectible_at": null,
- "paid_at": 1000000000,
- "voided_at": null
- },
- "subtotal": 48000,
- "subtotal_excluding_tax": 48000,
- "test_clock": null,
- "total": 48000,
- "total_discount_amounts": [],
- "total_excluding_tax": 48000,
- "total_pretax_credit_amounts": [],
- "total_taxes": [],
- "webhooks_delivered_at": 1000000000
- },
- "previous_attributes": {
- "amount_paid": 0,
- "amount_remaining": 48000,
- "attempt_count": 0,
- "attempted": false,
"status": "open",
"status_transitions": {
+ "canceled_at": null,
"paid_at": null
}
}
@@ -172,15 +28,15 @@
"id": "invoice_for_additional_license--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 2,
+ "pending_webhooks": 0,
"request": {
"id": "invoice_for_additional_license--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "invoice.updated"
+ "type": "invoice_payment.paid"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -211,6 +67,10 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
+ "payment_details": {
+ "customer_reference": null,
+ "order_reference": "in_1SPOxURVfKEFJaqcp7hQgc"
+ },
"payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
"payment_method_options": {
@@ -244,7 +104,7 @@
"id": "invoice_for_additional_license--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
"id": "invoice_for_additional_license--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -252,7 +112,7 @@
"type": "payment_intent.succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -313,7 +173,7 @@
"payment_method_details": {
"card": {
"amount_authorized": 48000,
- "authorization_code": "154499",
+ "authorization_code": "302368",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
@@ -371,7 +231,7 @@
"id": "invoice_for_additional_license--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
"id": "invoice_for_additional_license--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -379,7 +239,7 @@
"type": "charge.succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -548,7 +408,7 @@
"type": "invoice.finalized"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -733,7 +593,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -805,7 +665,7 @@
"type": "payment_intent.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -960,7 +820,7 @@
"total_excluding_tax": 48000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"amount_due": 0,
@@ -986,7 +846,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1033,7 +893,7 @@
"type": "invoiceitem.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1161,7 +1021,7 @@
"type": "invoice.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1211,7 +1071,7 @@
"type": "customer.updated"
}
],
- "has_more": true,
+ "has_more": false,
"object": "list",
"url": "/v1/events"
}
diff --git a/corporate/tests/stripe_fixtures/invoice_for_additional_license--Event.list.3.json b/corporate/tests/stripe_fixtures/invoice_for_additional_license--Event.list.3.json
index 8206190086b..b56b9f930e6 100644
--- a/corporate/tests/stripe_fixtures/invoice_for_additional_license--Event.list.3.json
+++ b/corporate/tests/stripe_fixtures/invoice_for_additional_license--Event.list.3.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -162,7 +162,7 @@
"id": "invoice_for_additional_license--Event.list.3.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
"id": "invoice_for_additional_license--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -170,7 +170,7 @@
"type": "invoice.payment_succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -337,6 +337,185 @@
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "invoice.paid"
+ },
+ {
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "account_country": "US",
+ "account_name": "NORMALIZED",
+ "account_tax_ids": null,
+ "amount_due": 48000,
+ "amount_overpaid": 0,
+ "amount_paid": 48000,
+ "amount_remaining": 0,
+ "amount_shipping": 0,
+ "application": null,
+ "attempt_count": 1,
+ "attempted": true,
+ "auto_advance": false,
+ "automatic_tax": {
+ "disabled_reason": null,
+ "enabled": false,
+ "liability": null,
+ "provider": null,
+ "status": null
+ },
+ "automatically_finalizes_at": null,
+ "billing_reason": "manual",
+ "collection_method": "charge_automatically",
+ "created": 1000000000,
+ "currency": "usd",
+ "custom_fields": null,
+ "customer": "cus_NORMALIZED",
+ "customer_address": null,
+ "customer_email": "[email protected]",
+ "customer_name": null,
+ "customer_phone": null,
+ "customer_shipping": null,
+ "customer_tax_exempt": "none",
+ "customer_tax_ids": [],
+ "default_payment_method": null,
+ "default_source": null,
+ "default_tax_rates": [],
+ "description": null,
+ "discounts": [],
+ "due_date": null,
+ "effective_at": 1000000000,
+ "ending_balance": 0,
+ "footer": null,
+ "from_invoice": null,
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
+ "id": "invoice_for_additional_license--Event.list.2.json",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
+ "issuer": {
+ "type": "self"
+ },
+ "last_finalization_error": null,
+ "latest_revision": null,
+ "lines": {
+ "data": [
+ {
+ "amount": 48000,
+ "currency": "usd",
+ "description": "Zulip Cloud Standard",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "invoice_for_additional_license--Event.list.2.json",
+ "invoice": "invoice_for_additional_license--Event.list.2.json",
+ "livemode": false,
+ "metadata": {},
+ "object": "line_item",
+ "parent": {
+ "invoice_item_details": {
+ "invoice_item": "ii_NORMALIZED",
+ "proration": false,
+ "proration_details": {
+ "credited_items": null
+ },
+ "subscription": null
+ },
+ "subscription_item_details": null,
+ "type": "invoice_item_details"
+ },
+ "period": {
+ "end": 1357095845,
+ "start": 1325473445
+ },
+ "pretax_credit_amounts": [],
+ "pricing": {
+ "price_details": {
+ "price": "price_NORMALIZED",
+ "product": "prod_NORMALIZED"
+ },
+ "type": "price_details",
+ "unit_amount_decimal": "8000"
+ },
+ "quantity": 6,
+ "taxes": []
+ }
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 1,
+ "url": "/v1/invoices/invoice_for_additional_license--Event.list.2.json/lines"
+ },
+ "livemode": false,
+ "metadata": {
+ "billing_schedule": "1",
+ "current_plan_id": "None",
+ "license_management": "automatic",
+ "licenses": "6",
+ "on_free_trial": "False",
+ "plan_tier": "1",
+ "user_id": "10"
+ },
+ "next_payment_attempt": null,
+ "number": "NORMALIZED",
+ "object": "invoice",
+ "on_behalf_of": null,
+ "parent": null,
+ "payment_settings": {
+ "default_mandate": null,
+ "payment_method_options": null,
+ "payment_method_types": null
+ },
+ "period_end": 1000000000,
+ "period_start": 1000000000,
+ "post_payment_credit_notes_amount": 0,
+ "pre_payment_credit_notes_amount": 0,
+ "receipt_number": null,
+ "rendering": {
+ "amount_tax_display": null,
+ "pdf": {
+ "page_size": "letter"
+ },
+ "template": null,
+ "template_version": null
+ },
+ "shipping_cost": null,
+ "shipping_details": null,
+ "starting_balance": 0,
+ "statement_descriptor": "Zulip Cloud Standard",
+ "status": "paid",
+ "status_transitions": {
+ "finalized_at": 1000000000,
+ "marked_uncollectible_at": null,
+ "paid_at": 1000000000,
+ "voided_at": null
+ },
+ "subtotal": 48000,
+ "subtotal_excluding_tax": 48000,
+ "test_clock": null,
+ "total": 48000,
+ "total_discount_amounts": [],
+ "total_excluding_tax": 48000,
+ "total_pretax_credit_amounts": [],
+ "total_taxes": [],
+ "webhooks_delivered_at": 1000000000
+ },
+ "previous_attributes": {
+ "amount_paid": 0,
+ "amount_remaining": 48000,
+ "attempt_count": 0,
+ "attempted": false,
+ "status": "open",
+ "status_transitions": {
+ "paid_at": null
+ }
+ }
+ },
+ "id": "invoice_for_additional_license--Event.list.3.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "invoice_for_additional_license--Event.list.2.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ },
+ "type": "invoice.updated"
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/invoice_for_additional_license--Invoice.finalize_invoice.2.json b/corporate/tests/stripe_fixtures/invoice_for_additional_license--Invoice.finalize_invoice.2.json
index e65560524b8..85aa83c7228 100644
--- a/corporate/tests/stripe_fixtures/invoice_for_additional_license--Invoice.finalize_invoice.2.json
+++ b/corporate/tests/stripe_fixtures/invoice_for_additional_license--Invoice.finalize_invoice.2.json
@@ -142,5 +142,5 @@
"total_excluding_tax": 7781,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
diff --git a/corporate/tests/stripe_fixtures/invoice_for_additional_license--Invoice.list.2.json b/corporate/tests/stripe_fixtures/invoice_for_additional_license--Invoice.list.2.json
index 34f36ab033d..a28a1e6bbb2 100644
--- a/corporate/tests/stripe_fixtures/invoice_for_additional_license--Invoice.list.2.json
+++ b/corporate/tests/stripe_fixtures/invoice_for_additional_license--Invoice.list.2.json
@@ -144,7 +144,7 @@
"total_excluding_tax": 7781,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
},
{
"account_country": "US",
diff --git a/corporate/tests/stripe_fixtures/invoice_for_additional_license--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/invoice_for_additional_license--SetupIntent.create.1.json
index b32f4523210..d617fe84ee3 100644
--- a/corporate/tests/stripe_fixtures/invoice_for_additional_license--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_for_additional_license--SetupIntent.create.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "invoice_for_additional_license--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/invoice_for_additional_license--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/invoice_for_additional_license--SetupIntent.list.1.json
index a4125be5ff1..736f58a5adc 100644
--- a/corporate/tests/stripe_fixtures/invoice_for_additional_license--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_for_additional_license--SetupIntent.list.1.json
@@ -8,6 +8,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "invoice_for_additional_license--SetupIntent.list.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/invoice_for_additional_license--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/invoice_for_additional_license--SetupIntent.retrieve.1.json
index b32f4523210..d617fe84ee3 100644
--- a/corporate/tests/stripe_fixtures/invoice_for_additional_license--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_for_additional_license--SetupIntent.retrieve.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "invoice_for_additional_license--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.create.1.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.create.1.json
index 78a22e19d4f..9387862f4b4 100644
--- a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.create.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.create.1.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "invoice_initial_remote_realm_upgrade--Customer.create.1.json",
@@ -19,7 +19,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.modify.1.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.modify.1.json
index 5dd9c745b0e..0c6fd98fb91 100644
--- a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.modify.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.modify.1.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "invoice_initial_remote_realm_upgrade--Customer.create.1.json",
@@ -19,7 +19,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.retrieve.1.json
index f1d02a37b2c..b5b550cfe1e 100644
--- a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.retrieve.1.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "invoice_initial_remote_realm_upgrade--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.retrieve.2.json
index f1d02a37b2c..b5b550cfe1e 100644
--- a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.retrieve.2.json
+++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.retrieve.2.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "invoice_initial_remote_realm_upgrade--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.retrieve.3.json
index f1d02a37b2c..b5b550cfe1e 100644
--- a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.retrieve.3.json
+++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.retrieve.3.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "invoice_initial_remote_realm_upgrade--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.retrieve.4.json
index f1d02a37b2c..b5b550cfe1e 100644
--- a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.retrieve.4.json
+++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.retrieve.4.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "invoice_initial_remote_realm_upgrade--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.retrieve.5.json
index f1d02a37b2c..b5b550cfe1e 100644
--- a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.retrieve.5.json
+++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.retrieve.5.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "invoice_initial_remote_realm_upgrade--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Event.list.1.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Event.list.1.json
index 0902e625379..a63a9de07d1 100644
--- a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Event.list.1.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -11,7 +11,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "invoice_initial_remote_realm_upgrade--Customer.create.1.json",
@@ -25,7 +25,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Event.list.2.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Event.list.2.json
index 6a4e5f46d3d..965179861be 100644
--- a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Event.list.2.json
+++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Event.list.2.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -62,7 +62,7 @@
"payment_method_details": {
"card": {
"amount_authorized": 1850,
- "authorization_code": "938408",
+ "authorization_code": "617973",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
@@ -128,7 +128,7 @@
"type": "charge.succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -336,7 +336,7 @@
"type": "invoice.finalized"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -560,7 +560,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -632,7 +632,7 @@
"type": "payment_intent.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -893,7 +893,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -940,7 +940,7 @@
"type": "invoiceitem.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1094,7 +1094,7 @@
"total_excluding_tax": 3850,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"amount_due": 0,
@@ -1120,7 +1120,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1167,7 +1167,7 @@
"type": "invoiceitem.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1294,7 +1294,7 @@
"type": "invoice.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1304,7 +1304,7 @@
"currency": "usd",
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "invoice_initial_remote_realm_upgrade--Customer.create.1.json",
@@ -1318,7 +1318,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Event.list.3.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Event.list.3.json
index f54a969f26e..cb3ac1b2cc2 100644
--- a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Event.list.3.json
+++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Event.list.3.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -209,7 +209,7 @@
"type": "invoice.payment_succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -417,7 +417,7 @@
"type": "invoice.paid"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -635,7 +635,42 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount_paid": null,
+ "amount_requested": 1850,
+ "created": 1000000000,
+ "currency": "usd",
+ "id": "invoice_initial_remote_realm_upgrade--Event.list.3.json",
+ "invoice": "invoice_initial_remote_realm_upgrade--Event.list.2.json",
+ "is_default": true,
+ "livemode": false,
+ "object": "invoice_payment",
+ "payment": {
+ "payment_intent": "invoice_initial_remote_realm_upgrade--Event.list.2.json",
+ "type": "payment_intent"
+ },
+ "status": "open",
+ "status_transitions": {
+ "canceled_at": null,
+ "paid_at": null
+ }
+ }
+ },
+ "id": "invoice_initial_remote_realm_upgrade--Event.list.3.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "invoice_initial_remote_realm_upgrade--Event.list.2.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ },
+ "type": "invoice_payment.paid"
+ },
+ {
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -666,6 +701,10 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
+ "payment_details": {
+ "customer_reference": null,
+ "order_reference": "in_1SPP7NRVfKEFJaqcxvUk8S"
+ },
"payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
"payment_method_options": {
diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--SetupIntent.create.1.json
index 5cc6a53a502..cfa9d3e8f89 100644
--- a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--SetupIntent.create.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "invoice_initial_remote_realm_upgrade--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--SetupIntent.list.1.json
index 509a4683fe7..d48d38575c8 100644
--- a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--SetupIntent.list.1.json
@@ -8,6 +8,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "invoice_initial_remote_realm_upgrade--SetupIntent.list.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--SetupIntent.retrieve.1.json
index 5cc6a53a502..cfa9d3e8f89 100644
--- a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--SetupIntent.retrieve.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "invoice_initial_remote_realm_upgrade--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--checkout.Session.create.1.json
index c2e9760fc00..068f67d804d 100644
--- a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--checkout.Session.create.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--checkout.Session.create.1.json
@@ -28,7 +28,7 @@
"type": "file"
}
},
- "cancel_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/upgrade/?manual_license_management=false&tier=1",
+ "cancel_url": "http://selfhosting.testserver/realm/9c36daef-29ed-478d-a237-26a7dec0f4ee/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"collected_information": {
@@ -101,7 +101,7 @@
"status": "open",
"submit_type": null,
"subscription": null,
- "success_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
+ "success_url": "http://selfhosting.testserver/realm/9c36daef-29ed-478d-a237-26a7dec0f4ee/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
"url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED",
diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--checkout.Session.list.1.json
index 53368586bee..fa38c38d255 100644
--- a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--checkout.Session.list.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--checkout.Session.list.1.json
@@ -30,7 +30,7 @@
"type": "file"
}
},
- "cancel_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/upgrade/?manual_license_management=false&tier=1",
+ "cancel_url": "http://selfhosting.testserver/realm/9c36daef-29ed-478d-a237-26a7dec0f4ee/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"collected_information": {
@@ -103,7 +103,7 @@
"status": "open",
"submit_type": null,
"subscription": null,
- "success_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
+ "success_url": "http://selfhosting.testserver/realm/9c36daef-29ed-478d-a237-26a7dec0f4ee/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
"url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED",
diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Event.list.1.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Event.list.1.json
index 796f61ce8e6..83304767a2e 100644
--- a/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Event.list.1.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Event.list.2.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Event.list.2.json
index bd1f83354de..2c8b77f9d16 100644
--- a/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Event.list.2.json
+++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Event.list.2.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -62,7 +62,7 @@
"payment_method_details": {
"card": {
"amount_authorized": 4300,
- "authorization_code": "017991",
+ "authorization_code": "579394",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
@@ -120,7 +120,7 @@
"id": "invoice_initial_remote_server_upgrade--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 1,
+ "pending_webhooks": 2,
"request": {
"id": "invoice_initial_remote_server_upgrade--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -128,7 +128,7 @@
"type": "charge.succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -336,7 +336,7 @@
"type": "invoice.finalized"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -560,7 +560,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -632,7 +632,7 @@
"type": "payment_intent.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -893,7 +893,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -940,7 +940,7 @@
"type": "invoiceitem.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1094,7 +1094,7 @@
"total_excluding_tax": 6300,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
},
"previous_attributes": {
"amount_due": 0,
@@ -1120,7 +1120,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1167,7 +1167,7 @@
"type": "invoiceitem.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1294,7 +1294,7 @@
"type": "invoice.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Event.list.3.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Event.list.3.json
index d057186a0f8..8e08abbe348 100644
--- a/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Event.list.3.json
+++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Event.list.3.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -201,7 +201,7 @@
"id": "invoice_initial_remote_server_upgrade--Event.list.3.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
"id": "invoice_initial_remote_server_upgrade--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -209,7 +209,7 @@
"type": "invoice.payment_succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -417,7 +417,7 @@
"type": "invoice.paid"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -635,7 +635,42 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount_paid": null,
+ "amount_requested": 4300,
+ "created": 1000000000,
+ "currency": "usd",
+ "id": "invoice_initial_remote_server_upgrade--Event.list.3.json",
+ "invoice": "invoice_initial_remote_server_upgrade--Event.list.2.json",
+ "is_default": true,
+ "livemode": false,
+ "object": "invoice_payment",
+ "payment": {
+ "payment_intent": "invoice_initial_remote_server_upgrade--Event.list.2.json",
+ "type": "payment_intent"
+ },
+ "status": "open",
+ "status_transitions": {
+ "canceled_at": null,
+ "paid_at": null
+ }
+ }
+ },
+ "id": "invoice_initial_remote_server_upgrade--Event.list.3.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "invoice_initial_remote_server_upgrade--Event.list.2.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ },
+ "type": "invoice_payment.paid"
+ },
+ {
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -666,6 +701,10 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
+ "payment_details": {
+ "customer_reference": null,
+ "order_reference": "in_1SPPBKRVfKEFJaqcD1S7VL"
+ },
"payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
"payment_method_options": {
diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--SetupIntent.create.1.json
index 1514c6a25bb..d5fb18b3432 100644
--- a/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--SetupIntent.create.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "invoice_initial_remote_server_upgrade--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--SetupIntent.list.1.json
index 663949706c2..44298578f47 100644
--- a/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--SetupIntent.list.1.json
@@ -8,6 +8,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "invoice_initial_remote_server_upgrade--SetupIntent.list.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--SetupIntent.retrieve.1.json
index 1514c6a25bb..d5fb18b3432 100644
--- a/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--SetupIntent.retrieve.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "invoice_initial_remote_server_upgrade--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--Event.list.1.json b/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--Event.list.1.json
index 3f8b60fff7e..165e8daa3ad 100644
--- a/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--Event.list.1.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
diff --git a/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--Event.list.2.json b/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--Event.list.2.json
index fe5d5e90ca4..f3cb57d8d93 100644
--- a/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--Event.list.2.json
+++ b/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--Event.list.2.json
@@ -1,170 +1,26 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
- "account_country": "US",
- "account_name": "NORMALIZED",
- "account_tax_ids": null,
- "amount_due": 48000,
- "amount_overpaid": 0,
- "amount_paid": 48000,
- "amount_remaining": 0,
- "amount_shipping": 0,
- "application": null,
- "attempt_count": 1,
- "attempted": true,
- "auto_advance": false,
- "automatic_tax": {
- "disabled_reason": null,
- "enabled": false,
- "liability": null,
- "provider": null,
- "status": null
- },
- "automatically_finalizes_at": null,
- "billing_reason": "manual",
- "collection_method": "charge_automatically",
+ "amount_paid": null,
+ "amount_requested": 48000,
"created": 1000000000,
"currency": "usd",
- "custom_fields": null,
- "customer": "invoice_payment_succeeded_event_with_uncaught_exception--Customer.create.1.json",
- "customer_address": null,
- "customer_email": "[email protected]",
- "customer_name": null,
- "customer_phone": null,
- "customer_shipping": null,
- "customer_tax_exempt": "none",
- "customer_tax_ids": [],
- "default_payment_method": null,
- "default_source": null,
- "default_tax_rates": [],
- "description": null,
- "discounts": [],
- "due_date": null,
- "effective_at": 1000000000,
- "ending_balance": 0,
- "footer": null,
- "from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
"id": "invoice_payment_succeeded_event_with_uncaught_exception--Event.list.2.json",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
- "issuer": {
- "type": "self"
- },
- "last_finalization_error": null,
- "latest_revision": null,
- "lines": {
- "data": [
- {
- "amount": 48000,
- "currency": "usd",
- "description": "Zulip Cloud Standard",
- "discount_amounts": [],
- "discountable": false,
- "discounts": [],
- "id": "invoice_payment_succeeded_event_with_uncaught_exception--Event.list.2.json",
- "invoice": "invoice_payment_succeeded_event_with_uncaught_exception--Event.list.2.json",
- "livemode": false,
- "metadata": {},
- "object": "line_item",
- "parent": {
- "invoice_item_details": {
- "invoice_item": "invoice_payment_succeeded_event_with_uncaught_exception--Event.list.2.json",
- "proration": false,
- "proration_details": {
- "credited_items": null
- },
- "subscription": null
- },
- "subscription_item_details": null,
- "type": "invoice_item_details"
- },
- "period": {
- "end": 1000000000,
- "start": 1000000000
- },
- "pretax_credit_amounts": [],
- "pricing": {
- "price_details": {
- "price": "price_NORMALIZED",
- "product": "prod_NORMALIZED"
- },
- "type": "price_details",
- "unit_amount_decimal": "8000"
- },
- "quantity": 6,
- "taxes": []
- }
- ],
- "has_more": false,
- "object": "list",
- "total_count": 1,
- "url": "/v1/invoices/invoice_payment_succeeded_event_with_uncaught_exception--Event.list.2.json/lines"
- },
+ "invoice": "invoice_payment_succeeded_event_with_uncaught_exception--Event.list.2.json",
+ "is_default": true,
"livemode": false,
- "metadata": {
- "billing_schedule": "1",
- "current_plan_id": "None",
- "license_management": "automatic",
- "licenses": "6",
- "on_free_trial": "False",
- "plan_tier": "1",
- "user_id": "10"
+ "object": "invoice_payment",
+ "payment": {
+ "payment_intent": "invoice_payment_succeeded_event_with_uncaught_exception--Event.list.2.json",
+ "type": "payment_intent"
},
- "next_payment_attempt": null,
- "number": "NORMALIZED",
- "object": "invoice",
- "on_behalf_of": null,
- "parent": null,
- "payment_settings": {
- "default_mandate": null,
- "payment_method_options": null,
- "payment_method_types": null
- },
- "period_end": 1000000000,
- "period_start": 1000000000,
- "post_payment_credit_notes_amount": 0,
- "pre_payment_credit_notes_amount": 0,
- "receipt_number": null,
- "rendering": {
- "amount_tax_display": null,
- "pdf": {
- "page_size": "letter"
- },
- "template": null,
- "template_version": null
- },
- "shipping_cost": null,
- "shipping_details": null,
- "starting_balance": 0,
- "statement_descriptor": "Zulip Cloud Standard",
- "status": "paid",
- "status_transitions": {
- "finalized_at": 1000000000,
- "marked_uncollectible_at": null,
- "paid_at": 1000000000,
- "voided_at": null
- },
- "subtotal": 48000,
- "subtotal_excluding_tax": 48000,
- "test_clock": null,
- "total": 48000,
- "total_discount_amounts": [],
- "total_excluding_tax": 48000,
- "total_pretax_credit_amounts": [],
- "total_taxes": [],
- "webhooks_delivered_at": 1000000000
- },
- "previous_attributes": {
- "amount_paid": 0,
- "amount_remaining": 48000,
- "attempt_count": 0,
- "attempted": false,
"status": "open",
"status_transitions": {
+ "canceled_at": null,
"paid_at": null
}
}
@@ -172,15 +28,15 @@
"id": "invoice_payment_succeeded_event_with_uncaught_exception--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 2,
+ "pending_webhooks": 0,
"request": {
"id": "invoice_payment_succeeded_event_with_uncaught_exception--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "invoice.updated"
+ "type": "invoice_payment.paid"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -211,6 +67,10 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
+ "payment_details": {
+ "customer_reference": null,
+ "order_reference": "in_1SPP1pRVfKEFJaqcLeBs2l"
+ },
"payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
"payment_method_options": {
@@ -252,7 +112,7 @@
"type": "payment_intent.succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -313,7 +173,7 @@
"payment_method_details": {
"card": {
"amount_authorized": 48000,
- "authorization_code": "646670",
+ "authorization_code": "424045",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
@@ -371,7 +231,7 @@
"id": "invoice_payment_succeeded_event_with_uncaught_exception--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 1,
+ "pending_webhooks": 2,
"request": {
"id": "invoice_payment_succeeded_event_with_uncaught_exception--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -379,7 +239,7 @@
"type": "charge.succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -548,7 +408,7 @@
"type": "invoice.finalized"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -733,7 +593,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -805,7 +665,7 @@
"type": "payment_intent.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -986,7 +846,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1033,7 +893,7 @@
"type": "invoiceitem.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1161,7 +1021,7 @@
"type": "invoice.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
diff --git a/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--Event.list.3.json b/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--Event.list.3.json
index 86f471dcae8..837a627baab 100644
--- a/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--Event.list.3.json
+++ b/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--Event.list.3.json
@@ -1,22 +1,22 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
"account_country": "US",
"account_name": "NORMALIZED",
"account_tax_ids": null,
- "amount_due": 16000,
+ "amount_due": 48000,
"amount_overpaid": 0,
- "amount_paid": 0,
- "amount_remaining": 16000,
+ "amount_paid": 48000,
+ "amount_remaining": 0,
"amount_shipping": 0,
"application": null,
- "attempt_count": 0,
- "attempted": false,
- "auto_advance": true,
+ "attempt_count": 1,
+ "attempted": true,
+ "auto_advance": false,
"automatic_tax": {
"disabled_reason": null,
"enabled": false,
@@ -26,7 +26,7 @@
},
"automatically_finalizes_at": null,
"billing_reason": "manual",
- "collection_method": "send_invoice",
+ "collection_method": "charge_automatically",
"created": 1000000000,
"currency": "usd",
"custom_fields": null,
@@ -43,13 +43,13 @@
"default_tax_rates": [],
"description": null,
"discounts": [],
- "due_date": 1000000000,
+ "due_date": null,
"effective_at": 1000000000,
"ending_balance": 0,
"footer": null,
"from_invoice": null,
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
- "id": "invoice_payment_succeeded_event_with_uncaught_exception--Event.list.3.json",
+ "id": "invoice_payment_succeeded_event_with_uncaught_exception--Event.list.2.json",
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
"issuer": {
"type": "self"
@@ -59,14 +59,14 @@
"lines": {
"data": [
{
- "amount": 16000,
+ "amount": 48000,
"currency": "usd",
- "description": "Additional license (Mar 2, 2012 - Mar 2, 2013)",
+ "description": "Zulip Cloud Standard",
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "invoice_payment_succeeded_event_with_uncaught_exception--Event.list.3.json",
- "invoice": "invoice_payment_succeeded_event_with_uncaught_exception--Event.list.3.json",
+ "id": "invoice_payment_succeeded_event_with_uncaught_exception--Event.list.2.json",
+ "invoice": "invoice_payment_succeeded_event_with_uncaught_exception--Event.list.2.json",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -83,8 +83,8 @@
"type": "invoice_item_details"
},
"period": {
- "end": 1362193445,
- "start": 1330657445
+ "end": 1000000000,
+ "start": 1000000000
},
"pretax_credit_amounts": [],
"pricing": {
@@ -95,17 +95,25 @@
"type": "price_details",
"unit_amount_decimal": "8000"
},
- "quantity": 2,
+ "quantity": 6,
"taxes": []
}
],
"has_more": false,
"object": "list",
"total_count": 1,
- "url": "/v1/invoices/invoice_payment_succeeded_event_with_uncaught_exception--Event.list.3.json/lines"
+ "url": "/v1/invoices/invoice_payment_succeeded_event_with_uncaught_exception--Event.list.2.json/lines"
},
"livemode": false,
- "metadata": {},
+ "metadata": {
+ "billing_schedule": "1",
+ "current_plan_id": "None",
+ "license_management": "automatic",
+ "licenses": "6",
+ "on_free_trial": "False",
+ "plan_tier": "1",
+ "user_id": "10"
+ },
"next_payment_attempt": null,
"number": "NORMALIZED",
"object": "invoice",
@@ -133,19 +141,19 @@
"shipping_details": null,
"starting_balance": 0,
"statement_descriptor": "Zulip Cloud Standard",
- "status": "open",
+ "status": "paid",
"status_transitions": {
"finalized_at": 1000000000,
"marked_uncollectible_at": null,
- "paid_at": null,
+ "paid_at": 1000000000,
"voided_at": null
},
- "subtotal": 16000,
- "subtotal_excluding_tax": 16000,
+ "subtotal": 48000,
+ "subtotal_excluding_tax": 48000,
"test_clock": null,
- "total": 16000,
+ "total": 48000,
"total_discount_amounts": [],
- "total_excluding_tax": 16000,
+ "total_excluding_tax": 48000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
"webhooks_delivered_at": 1000000000
@@ -154,15 +162,15 @@
"id": "invoice_payment_succeeded_event_with_uncaught_exception--Event.list.3.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 1,
"request": {
- "id": null,
- "idempotency_key": null
+ "id": "invoice_payment_succeeded_event_with_uncaught_exception--Event.list.2.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "invoice.sent"
+ "type": "invoice.payment_succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -328,10 +336,10 @@
"id": "invoice_payment_succeeded_event_with_uncaught_exception--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "invoice.payment_succeeded"
+ "type": "invoice.paid"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -487,6 +495,16 @@
"total_pretax_credit_amounts": [],
"total_taxes": [],
"webhooks_delivered_at": 1000000000
+ },
+ "previous_attributes": {
+ "amount_paid": 0,
+ "amount_remaining": 48000,
+ "attempt_count": 0,
+ "attempted": false,
+ "status": "open",
+ "status_transitions": {
+ "paid_at": null
+ }
}
},
"id": "invoice_payment_succeeded_event_with_uncaught_exception--Event.list.3.json",
@@ -497,7 +515,7 @@
"id": "invoice_payment_succeeded_event_with_uncaught_exception--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "invoice.paid"
+ "type": "invoice.updated"
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--SetupIntent.create.1.json
index 844a05a1b75..a33ba4c040b 100644
--- a/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--SetupIntent.create.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "invoice_payment_succeeded_event_with_uncaught_exception--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--SetupIntent.list.1.json
index a521794a827..c543318ac28 100644
--- a/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--SetupIntent.list.1.json
@@ -8,6 +8,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "invoice_payment_succeeded_event_with_uncaught_exception--SetupIntent.list.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--SetupIntent.retrieve.1.json
index 844a05a1b75..a33ba4c040b 100644
--- a/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--SetupIntent.retrieve.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "invoice_payment_succeeded_event_with_uncaught_exception--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/invoice_plan--Event.list.1.json b/corporate/tests/stripe_fixtures/invoice_plan--Event.list.1.json
index effe5cc551a..09c64ab18a8 100644
--- a/corporate/tests/stripe_fixtures/invoice_plan--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_plan--Event.list.1.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -45,7 +45,7 @@
"id": "invoice_plan--Event.list.1.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 1,
"request": {
"id": "invoice_plan--Event.list.1.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
diff --git a/corporate/tests/stripe_fixtures/invoice_plan--Event.list.2.json b/corporate/tests/stripe_fixtures/invoice_plan--Event.list.2.json
index 684e19c0855..bbbf286e2fc 100644
--- a/corporate/tests/stripe_fixtures/invoice_plan--Event.list.2.json
+++ b/corporate/tests/stripe_fixtures/invoice_plan--Event.list.2.json
@@ -1,170 +1,26 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
- "account_country": "US",
- "account_name": "NORMALIZED",
- "account_tax_ids": null,
- "amount_due": 48000,
- "amount_overpaid": 0,
- "amount_paid": 48000,
- "amount_remaining": 0,
- "amount_shipping": 0,
- "application": null,
- "attempt_count": 1,
- "attempted": true,
- "auto_advance": false,
- "automatic_tax": {
- "disabled_reason": null,
- "enabled": false,
- "liability": null,
- "provider": null,
- "status": null
- },
- "automatically_finalizes_at": null,
- "billing_reason": "manual",
- "collection_method": "charge_automatically",
+ "amount_paid": null,
+ "amount_requested": 48000,
"created": 1000000000,
"currency": "usd",
- "custom_fields": null,
- "customer": "invoice_plan--Customer.create.1.json",
- "customer_address": null,
- "customer_email": "[email protected]",
- "customer_name": null,
- "customer_phone": null,
- "customer_shipping": null,
- "customer_tax_exempt": "none",
- "customer_tax_ids": [],
- "default_payment_method": null,
- "default_source": null,
- "default_tax_rates": [],
- "description": null,
- "discounts": [],
- "due_date": null,
- "effective_at": 1000000000,
- "ending_balance": 0,
- "footer": null,
- "from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
"id": "invoice_plan--Event.list.2.json",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
- "issuer": {
- "type": "self"
- },
- "last_finalization_error": null,
- "latest_revision": null,
- "lines": {
- "data": [
- {
- "amount": 48000,
- "currency": "usd",
- "description": "Zulip Cloud Standard",
- "discount_amounts": [],
- "discountable": false,
- "discounts": [],
- "id": "invoice_plan--Event.list.2.json",
- "invoice": "invoice_plan--Event.list.2.json",
- "livemode": false,
- "metadata": {},
- "object": "line_item",
- "parent": {
- "invoice_item_details": {
- "invoice_item": "invoice_plan--Event.list.2.json",
- "proration": false,
- "proration_details": {
- "credited_items": null
- },
- "subscription": null
- },
- "subscription_item_details": null,
- "type": "invoice_item_details"
- },
- "period": {
- "end": 1357095845,
- "start": 1325473445
- },
- "pretax_credit_amounts": [],
- "pricing": {
- "price_details": {
- "price": "price_NORMALIZED",
- "product": "prod_NORMALIZED"
- },
- "type": "price_details",
- "unit_amount_decimal": "8000"
- },
- "quantity": 6,
- "taxes": []
- }
- ],
- "has_more": false,
- "object": "list",
- "total_count": 1,
- "url": "/v1/invoices/invoice_plan--Event.list.2.json/lines"
- },
+ "invoice": "invoice_plan--Event.list.2.json",
+ "is_default": true,
"livemode": false,
- "metadata": {
- "billing_schedule": "1",
- "current_plan_id": "None",
- "license_management": "automatic",
- "licenses": "6",
- "on_free_trial": "False",
- "plan_tier": "1",
- "user_id": "10"
- },
- "next_payment_attempt": null,
- "number": "NORMALIZED",
- "object": "invoice",
- "on_behalf_of": null,
- "parent": null,
- "payment_settings": {
- "default_mandate": null,
- "payment_method_options": null,
- "payment_method_types": null
+ "object": "invoice_payment",
+ "payment": {
+ "payment_intent": "invoice_plan--Event.list.2.json",
+ "type": "payment_intent"
},
- "period_end": 1000000000,
- "period_start": 1000000000,
- "post_payment_credit_notes_amount": 0,
- "pre_payment_credit_notes_amount": 0,
- "receipt_number": null,
- "rendering": {
- "amount_tax_display": null,
- "pdf": {
- "page_size": "letter"
- },
- "template": null,
- "template_version": null
- },
- "shipping_cost": null,
- "shipping_details": null,
- "starting_balance": 0,
- "statement_descriptor": "Zulip Cloud Standard",
- "status": "paid",
- "status_transitions": {
- "finalized_at": 1000000000,
- "marked_uncollectible_at": null,
- "paid_at": 1000000000,
- "voided_at": null
- },
- "subtotal": 48000,
- "subtotal_excluding_tax": 48000,
- "test_clock": null,
- "total": 48000,
- "total_discount_amounts": [],
- "total_excluding_tax": 48000,
- "total_pretax_credit_amounts": [],
- "total_taxes": [],
- "webhooks_delivered_at": 1000000000
- },
- "previous_attributes": {
- "amount_paid": 0,
- "amount_remaining": 48000,
- "attempt_count": 0,
- "attempted": false,
"status": "open",
"status_transitions": {
+ "canceled_at": null,
"paid_at": null
}
}
@@ -172,15 +28,15 @@
"id": "invoice_plan--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 2,
+ "pending_webhooks": 0,
"request": {
"id": "invoice_plan--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "invoice.updated"
+ "type": "invoice_payment.paid"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -211,6 +67,10 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
+ "payment_details": {
+ "customer_reference": null,
+ "order_reference": "in_1SPOxlRVfKEFJaqcZnJKoA"
+ },
"payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
"payment_method_options": {
@@ -244,7 +104,7 @@
"id": "invoice_plan--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 1,
"request": {
"id": "invoice_plan--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -252,7 +112,7 @@
"type": "payment_intent.succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -313,7 +173,7 @@
"payment_method_details": {
"card": {
"amount_authorized": 48000,
- "authorization_code": "308464",
+ "authorization_code": "951621",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
@@ -371,7 +231,7 @@
"id": "invoice_plan--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 1,
+ "pending_webhooks": 2,
"request": {
"id": "invoice_plan--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -379,7 +239,7 @@
"type": "charge.succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -534,7 +394,7 @@
"total_excluding_tax": 48000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
},
"id": "invoice_plan--Event.list.2.json",
@@ -548,7 +408,7 @@
"type": "invoice.finalized"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -703,7 +563,7 @@
"total_excluding_tax": 48000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
},
"previous_attributes": {
"effective_at": null,
@@ -733,7 +593,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -805,7 +665,7 @@
"type": "payment_intent.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -960,7 +820,7 @@
"total_excluding_tax": 48000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
},
"previous_attributes": {
"amount_due": 0,
@@ -986,7 +846,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1033,7 +893,7 @@
"type": "invoiceitem.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1161,7 +1021,7 @@
"type": "invoice.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
diff --git a/corporate/tests/stripe_fixtures/invoice_plan--Event.list.3.json b/corporate/tests/stripe_fixtures/invoice_plan--Event.list.3.json
index 49c3e1bb0c8..f3988fe1629 100644
--- a/corporate/tests/stripe_fixtures/invoice_plan--Event.list.3.json
+++ b/corporate/tests/stripe_fixtures/invoice_plan--Event.list.3.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -156,7 +156,7 @@
"total_excluding_tax": 48000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
},
"id": "invoice_plan--Event.list.3.json",
@@ -170,7 +170,7 @@
"type": "invoice.payment_succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -325,7 +325,7 @@
"total_excluding_tax": 48000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
},
"id": "invoice_plan--Event.list.3.json",
@@ -337,6 +337,185 @@
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "invoice.paid"
+ },
+ {
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "account_country": "US",
+ "account_name": "NORMALIZED",
+ "account_tax_ids": null,
+ "amount_due": 48000,
+ "amount_overpaid": 0,
+ "amount_paid": 48000,
+ "amount_remaining": 0,
+ "amount_shipping": 0,
+ "application": null,
+ "attempt_count": 1,
+ "attempted": true,
+ "auto_advance": false,
+ "automatic_tax": {
+ "disabled_reason": null,
+ "enabled": false,
+ "liability": null,
+ "provider": null,
+ "status": null
+ },
+ "automatically_finalizes_at": null,
+ "billing_reason": "manual",
+ "collection_method": "charge_automatically",
+ "created": 1000000000,
+ "currency": "usd",
+ "custom_fields": null,
+ "customer": "cus_NORMALIZED",
+ "customer_address": null,
+ "customer_email": "[email protected]",
+ "customer_name": null,
+ "customer_phone": null,
+ "customer_shipping": null,
+ "customer_tax_exempt": "none",
+ "customer_tax_ids": [],
+ "default_payment_method": null,
+ "default_source": null,
+ "default_tax_rates": [],
+ "description": null,
+ "discounts": [],
+ "due_date": null,
+ "effective_at": 1000000000,
+ "ending_balance": 0,
+ "footer": null,
+ "from_invoice": null,
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
+ "id": "invoice_plan--Event.list.2.json",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
+ "issuer": {
+ "type": "self"
+ },
+ "last_finalization_error": null,
+ "latest_revision": null,
+ "lines": {
+ "data": [
+ {
+ "amount": 48000,
+ "currency": "usd",
+ "description": "Zulip Cloud Standard",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "invoice_plan--Event.list.2.json",
+ "invoice": "invoice_plan--Event.list.2.json",
+ "livemode": false,
+ "metadata": {},
+ "object": "line_item",
+ "parent": {
+ "invoice_item_details": {
+ "invoice_item": "ii_NORMALIZED",
+ "proration": false,
+ "proration_details": {
+ "credited_items": null
+ },
+ "subscription": null
+ },
+ "subscription_item_details": null,
+ "type": "invoice_item_details"
+ },
+ "period": {
+ "end": 1357095845,
+ "start": 1325473445
+ },
+ "pretax_credit_amounts": [],
+ "pricing": {
+ "price_details": {
+ "price": "price_NORMALIZED",
+ "product": "prod_NORMALIZED"
+ },
+ "type": "price_details",
+ "unit_amount_decimal": "8000"
+ },
+ "quantity": 6,
+ "taxes": []
+ }
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 1,
+ "url": "/v1/invoices/invoice_plan--Event.list.2.json/lines"
+ },
+ "livemode": false,
+ "metadata": {
+ "billing_schedule": "1",
+ "current_plan_id": "None",
+ "license_management": "automatic",
+ "licenses": "6",
+ "on_free_trial": "False",
+ "plan_tier": "1",
+ "user_id": "10"
+ },
+ "next_payment_attempt": null,
+ "number": "NORMALIZED",
+ "object": "invoice",
+ "on_behalf_of": null,
+ "parent": null,
+ "payment_settings": {
+ "default_mandate": null,
+ "payment_method_options": null,
+ "payment_method_types": null
+ },
+ "period_end": 1000000000,
+ "period_start": 1000000000,
+ "post_payment_credit_notes_amount": 0,
+ "pre_payment_credit_notes_amount": 0,
+ "receipt_number": null,
+ "rendering": {
+ "amount_tax_display": null,
+ "pdf": {
+ "page_size": "letter"
+ },
+ "template": null,
+ "template_version": null
+ },
+ "shipping_cost": null,
+ "shipping_details": null,
+ "starting_balance": 0,
+ "statement_descriptor": "Zulip Cloud Standard",
+ "status": "paid",
+ "status_transitions": {
+ "finalized_at": 1000000000,
+ "marked_uncollectible_at": null,
+ "paid_at": 1000000000,
+ "voided_at": null
+ },
+ "subtotal": 48000,
+ "subtotal_excluding_tax": 48000,
+ "test_clock": null,
+ "total": 48000,
+ "total_discount_amounts": [],
+ "total_excluding_tax": 48000,
+ "total_pretax_credit_amounts": [],
+ "total_taxes": [],
+ "webhooks_delivered_at": null
+ },
+ "previous_attributes": {
+ "amount_paid": 0,
+ "amount_remaining": 48000,
+ "attempt_count": 0,
+ "attempted": false,
+ "status": "open",
+ "status_transitions": {
+ "paid_at": null
+ }
+ }
+ },
+ "id": "invoice_plan--Event.list.3.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "invoice_plan--Event.list.2.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ },
+ "type": "invoice.updated"
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/invoice_plan--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/invoice_plan--Invoice.finalize_invoice.1.json
index b7e12877b90..5885305d594 100644
--- a/corporate/tests/stripe_fixtures/invoice_plan--Invoice.finalize_invoice.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_plan--Invoice.finalize_invoice.1.json
@@ -150,5 +150,5 @@
"total_excluding_tax": 48000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
diff --git a/corporate/tests/stripe_fixtures/invoice_plan--Invoice.list.2.json b/corporate/tests/stripe_fixtures/invoice_plan--Invoice.list.2.json
index 7861af65232..430363e69b8 100644
--- a/corporate/tests/stripe_fixtures/invoice_plan--Invoice.list.2.json
+++ b/corporate/tests/stripe_fixtures/invoice_plan--Invoice.list.2.json
@@ -378,7 +378,7 @@
"total_excluding_tax": 48000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/invoice_plan--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/invoice_plan--Invoice.pay.1.json
index 296423b9e59..b5f0c344d8c 100644
--- a/corporate/tests/stripe_fixtures/invoice_plan--Invoice.pay.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_plan--Invoice.pay.1.json
@@ -150,5 +150,5 @@
"total_excluding_tax": 48000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
diff --git a/corporate/tests/stripe_fixtures/invoice_plan--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/invoice_plan--SetupIntent.create.1.json
index ca0c1565cc5..951ccf136d3 100644
--- a/corporate/tests/stripe_fixtures/invoice_plan--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_plan--SetupIntent.create.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "invoice_plan--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/invoice_plan--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/invoice_plan--SetupIntent.list.1.json
index 8ef08a9a08c..190691a13d7 100644
--- a/corporate/tests/stripe_fixtures/invoice_plan--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_plan--SetupIntent.list.1.json
@@ -8,6 +8,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "invoice_plan--SetupIntent.list.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/invoice_plan--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/invoice_plan--SetupIntent.retrieve.1.json
index ca0c1565cc5..951ccf136d3 100644
--- a/corporate/tests/stripe_fixtures/invoice_plan--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_plan--SetupIntent.retrieve.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "invoice_plan--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.create.1.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.create.1.json
index 79ac31bdb60..a1371677a16 100644
--- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.create.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.create.1.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "invoice_plans_as_needed--Customer.create.1.json",
@@ -19,7 +19,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.modify.1.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.modify.1.json
index d23a2828b8a..1437f91194a 100644
--- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.modify.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.modify.1.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "invoice_plans_as_needed--Customer.create.1.json",
@@ -19,7 +19,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.retrieve.1.json
index 54733cb0910..a0fe6452d24 100644
--- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.retrieve.1.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "invoice_plans_as_needed--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.retrieve.2.json
index 54733cb0910..a0fe6452d24 100644
--- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.retrieve.2.json
+++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.retrieve.2.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "invoice_plans_as_needed--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.retrieve.3.json
index 54733cb0910..a0fe6452d24 100644
--- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.retrieve.3.json
+++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.retrieve.3.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "invoice_plans_as_needed--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.retrieve.4.json
index 54733cb0910..a0fe6452d24 100644
--- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.retrieve.4.json
+++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.retrieve.4.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "invoice_plans_as_needed--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.retrieve.5.json
index 54733cb0910..a0fe6452d24 100644
--- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.retrieve.5.json
+++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.retrieve.5.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "invoice_plans_as_needed--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Event.list.1.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Event.list.1.json
index 4ef8329d4f3..405242e15c0 100644
--- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Event.list.1.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -11,7 +11,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "invoice_plans_as_needed--Customer.create.1.json",
@@ -25,7 +25,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Event.list.2.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Event.list.2.json
index 4a57f9afb60..ec1544d44b1 100644
--- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Event.list.2.json
+++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Event.list.2.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -62,7 +62,7 @@
"payment_method_details": {
"card": {
"amount_authorized": 1850,
- "authorization_code": "975418",
+ "authorization_code": "874006",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
@@ -128,7 +128,7 @@
"type": "charge.succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -336,7 +336,7 @@
"type": "invoice.finalized"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -560,7 +560,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -632,7 +632,7 @@
"type": "payment_intent.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -893,7 +893,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -940,7 +940,7 @@
"type": "invoiceitem.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1120,7 +1120,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1167,7 +1167,7 @@
"type": "invoiceitem.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1294,7 +1294,7 @@
"type": "invoice.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1304,7 +1304,7 @@
"currency": "usd",
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "invoice_plans_as_needed--Customer.create.1.json",
@@ -1318,7 +1318,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Event.list.3.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Event.list.3.json
index 1ab30bb6432..ba98353d419 100644
--- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Event.list.3.json
+++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Event.list.3.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -201,7 +201,7 @@
"id": "invoice_plans_as_needed--Event.list.3.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 1,
"request": {
"id": "invoice_plans_as_needed--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -209,7 +209,7 @@
"type": "invoice.payment_succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -417,7 +417,7 @@
"type": "invoice.paid"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -635,7 +635,42 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount_paid": null,
+ "amount_requested": 1850,
+ "created": 1000000000,
+ "currency": "usd",
+ "id": "invoice_plans_as_needed--Event.list.3.json",
+ "invoice": "invoice_plans_as_needed--Event.list.2.json",
+ "is_default": true,
+ "livemode": false,
+ "object": "invoice_payment",
+ "payment": {
+ "payment_intent": "invoice_plans_as_needed--Event.list.2.json",
+ "type": "payment_intent"
+ },
+ "status": "open",
+ "status_transitions": {
+ "canceled_at": null,
+ "paid_at": null
+ }
+ }
+ },
+ "id": "invoice_plans_as_needed--Event.list.3.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "invoice_plans_as_needed--Event.list.2.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ },
+ "type": "invoice_payment.paid"
+ },
+ {
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -666,6 +701,10 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
+ "payment_details": {
+ "customer_reference": null,
+ "order_reference": "in_1SPP7bRVfKEFJaqcpG44Wh"
+ },
"payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
"payment_method_options": {
diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--SetupIntent.create.1.json
index 11f2908f9b1..3123f519825 100644
--- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--SetupIntent.create.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "invoice_plans_as_needed--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--SetupIntent.list.1.json
index 619079b28f0..d4e92ce2bcf 100644
--- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--SetupIntent.list.1.json
@@ -8,6 +8,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "invoice_plans_as_needed--SetupIntent.list.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--SetupIntent.retrieve.1.json
index 11f2908f9b1..3123f519825 100644
--- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--SetupIntent.retrieve.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "invoice_plans_as_needed--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--checkout.Session.create.1.json
index 1e826a4fb4a..06423cb8019 100644
--- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--checkout.Session.create.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--checkout.Session.create.1.json
@@ -28,7 +28,7 @@
"type": "file"
}
},
- "cancel_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/upgrade/?manual_license_management=false&tier=1",
+ "cancel_url": "http://selfhosting.testserver/realm/9c36daef-29ed-478d-a237-26a7dec0f4ee/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"collected_information": {
@@ -101,7 +101,7 @@
"status": "open",
"submit_type": null,
"subscription": null,
- "success_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
+ "success_url": "http://selfhosting.testserver/realm/9c36daef-29ed-478d-a237-26a7dec0f4ee/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
"url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED",
diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--checkout.Session.list.1.json
index 0609cbab628..897977e5bee 100644
--- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--checkout.Session.list.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--checkout.Session.list.1.json
@@ -30,7 +30,7 @@
"type": "file"
}
},
- "cancel_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/upgrade/?manual_license_management=false&tier=1",
+ "cancel_url": "http://selfhosting.testserver/realm/9c36daef-29ed-478d-a237-26a7dec0f4ee/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"collected_information": {
@@ -103,7 +103,7 @@
"status": "open",
"submit_type": null,
"subscription": null,
- "success_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
+ "success_url": "http://selfhosting.testserver/realm/9c36daef-29ed-478d-a237-26a7dec0f4ee/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
"url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED",
diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Event.list.1.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Event.list.1.json
index 886c5911806..688efb70a9b 100644
--- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Event.list.1.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Event.list.2.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Event.list.2.json
index ddfa7d2e1d2..816ed7bc0c4 100644
--- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Event.list.2.json
+++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Event.list.2.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -62,7 +62,7 @@
"payment_method_details": {
"card": {
"amount_authorized": 4300,
- "authorization_code": "160168",
+ "authorization_code": "056065",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
@@ -120,7 +120,7 @@
"id": "invoice_plans_as_needed_server--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
"id": "invoice_plans_as_needed_server--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -128,7 +128,7 @@
"type": "charge.succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -336,7 +336,7 @@
"type": "invoice.finalized"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -560,7 +560,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -632,7 +632,7 @@
"type": "payment_intent.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -893,7 +893,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -940,7 +940,7 @@
"type": "invoiceitem.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1094,7 +1094,7 @@
"total_excluding_tax": 6300,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
},
"previous_attributes": {
"amount_due": 0,
@@ -1120,7 +1120,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1167,7 +1167,7 @@
"type": "invoiceitem.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1294,7 +1294,7 @@
"type": "invoice.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Event.list.3.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Event.list.3.json
index caf6cfcd7f6..b936d096117 100644
--- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Event.list.3.json
+++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Event.list.3.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -209,7 +209,7 @@
"type": "invoice.payment_succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -417,7 +417,7 @@
"type": "invoice.paid"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -635,7 +635,42 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount_paid": null,
+ "amount_requested": 4300,
+ "created": 1000000000,
+ "currency": "usd",
+ "id": "invoice_plans_as_needed_server--Event.list.3.json",
+ "invoice": "invoice_plans_as_needed_server--Event.list.2.json",
+ "is_default": true,
+ "livemode": false,
+ "object": "invoice_payment",
+ "payment": {
+ "payment_intent": "invoice_plans_as_needed_server--Event.list.2.json",
+ "type": "payment_intent"
+ },
+ "status": "open",
+ "status_transitions": {
+ "canceled_at": null,
+ "paid_at": null
+ }
+ }
+ },
+ "id": "invoice_plans_as_needed_server--Event.list.3.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "invoice_plans_as_needed_server--Event.list.2.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ },
+ "type": "invoice_payment.paid"
+ },
+ {
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -666,6 +701,10 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
+ "payment_details": {
+ "customer_reference": null,
+ "order_reference": "in_1SPPBaRVfKEFJaqc4krPbz"
+ },
"payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
"payment_method_options": {
diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--SetupIntent.create.1.json
index 27d7b18caa3..b5b2695c6d4 100644
--- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--SetupIntent.create.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "invoice_plans_as_needed_server--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--SetupIntent.list.1.json
index 85e14ba28fe..11b933533b2 100644
--- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--SetupIntent.list.1.json
@@ -8,6 +8,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "invoice_plans_as_needed_server--SetupIntent.list.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--SetupIntent.retrieve.1.json
index 27d7b18caa3..b5b2695c6d4 100644
--- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--SetupIntent.retrieve.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "invoice_plans_as_needed_server--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.create.1.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.create.1.json
index 688e92ac6a2..1530b456c43 100644
--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.create.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.create.1.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.create.1.json",
@@ -19,7 +19,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.modify.1.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.modify.1.json
index ddca105142b..fa325b638f1 100644
--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.modify.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.modify.1.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.create.1.json",
@@ -19,7 +19,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.retrieve.1.json
index 9d1b455dfff..ad9f6ebb87b 100644
--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.retrieve.1.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.retrieve.2.json
index 9d1b455dfff..ad9f6ebb87b 100644
--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.retrieve.2.json
+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.retrieve.2.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.retrieve.3.json
index 9d1b455dfff..ad9f6ebb87b 100644
--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.retrieve.3.json
+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.retrieve.3.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.retrieve.4.json
index 9d1b455dfff..ad9f6ebb87b 100644
--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.retrieve.4.json
+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.retrieve.4.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.retrieve.5.json
index 9d1b455dfff..ad9f6ebb87b 100644
--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.retrieve.5.json
+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.retrieve.5.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Invoice.finalize_invoice.1.json
index cf09f2b082f..cec4bdf4ac2 100644
--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Invoice.finalize_invoice.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Invoice.finalize_invoice.1.json
@@ -182,5 +182,5 @@
"total_excluding_tax": 176000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Invoice.list.2.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Invoice.list.2.json
index 66d21a5c223..e895c62564c 100644
--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Invoice.list.2.json
+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Invoice.list.2.json
@@ -184,7 +184,7 @@
"total_excluding_tax": 176000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--SetupIntent.create.1.json
index 0158730631d..30f3a70320d 100644
--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--SetupIntent.create.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "invoice_scheduled_upgrade_realm_complimentary_access_plan--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--SetupIntent.list.1.json
index 70979c9b7f7..9dc6ca7f21c 100644
--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--SetupIntent.list.1.json
@@ -8,6 +8,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "invoice_scheduled_upgrade_realm_complimentary_access_plan--SetupIntent.list.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--SetupIntent.retrieve.1.json
index 0158730631d..30f3a70320d 100644
--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--SetupIntent.retrieve.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "invoice_scheduled_upgrade_realm_complimentary_access_plan--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--checkout.Session.create.1.json
index 530a933b47e..b0293b08c8a 100644
--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--checkout.Session.create.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--checkout.Session.create.1.json
@@ -28,7 +28,7 @@
"type": "file"
}
},
- "cancel_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/upgrade/?manual_license_management=false&tier=1",
+ "cancel_url": "http://selfhosting.testserver/realm/9c36daef-29ed-478d-a237-26a7dec0f4ee/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"collected_information": {
@@ -101,7 +101,7 @@
"status": "open",
"submit_type": null,
"subscription": null,
- "success_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
+ "success_url": "http://selfhosting.testserver/realm/9c36daef-29ed-478d-a237-26a7dec0f4ee/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
"url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED",
diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--checkout.Session.list.1.json
index bc3c09ce88e..67becdd7f2d 100644
--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--checkout.Session.list.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--checkout.Session.list.1.json
@@ -30,7 +30,7 @@
"type": "file"
}
},
- "cancel_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/upgrade/?manual_license_management=false&tier=1",
+ "cancel_url": "http://selfhosting.testserver/realm/9c36daef-29ed-478d-a237-26a7dec0f4ee/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"collected_information": {
@@ -103,7 +103,7 @@
"status": "open",
"submit_type": null,
"subscription": null,
- "success_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
+ "success_url": "http://selfhosting.testserver/realm/9c36daef-29ed-478d-a237-26a7dec0f4ee/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
"url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED",
diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--Invoice.finalize_invoice.1.json
index 89594fc86be..eaf9fde3c03 100644
--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--Invoice.finalize_invoice.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--Invoice.finalize_invoice.1.json
@@ -182,5 +182,5 @@
"total_excluding_tax": 176000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--Invoice.list.2.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--Invoice.list.2.json
index 21978846d24..80d1e306115 100644
--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--Invoice.list.2.json
+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--Invoice.list.2.json
@@ -184,7 +184,7 @@
"total_excluding_tax": 176000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--SetupIntent.create.1.json
index 2a3d4e7cfb0..cec4e109b77 100644
--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--SetupIntent.create.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "invoice_scheduled_upgrade_server_complimentary_access_plan--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--SetupIntent.list.1.json
index 077b082999a..c40c658df41 100644
--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--SetupIntent.list.1.json
@@ -8,6 +8,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "invoice_scheduled_upgrade_server_complimentary_access_plan--SetupIntent.list.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--SetupIntent.retrieve.1.json
index 2a3d4e7cfb0..cec4e109b77 100644
--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--SetupIntent.retrieve.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "invoice_scheduled_upgrade_server_complimentary_access_plan--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.create.1.json b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.create.1.json
index d8208fe1ef9..099e2da47bb 100644
--- a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.create.1.json
+++ b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.create.1.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "migrate_customer_server_to_realms_and_upgrade--Customer.create.1.json",
@@ -19,7 +19,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.modify.1.json b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.modify.1.json
index 8e201c746ee..74ddca14918 100644
--- a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.modify.1.json
+++ b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.modify.1.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "migrate_customer_server_to_realms_and_upgrade--Customer.create.1.json",
@@ -19,7 +19,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.retrieve.1.json
index 51eba8e1102..14133444472 100644
--- a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.retrieve.1.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "migrate_customer_server_to_realms_and_upgrade--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.retrieve.2.json
index 51eba8e1102..14133444472 100644
--- a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.retrieve.2.json
+++ b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.retrieve.2.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "migrate_customer_server_to_realms_and_upgrade--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.retrieve.3.json
index 51eba8e1102..14133444472 100644
--- a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.retrieve.3.json
+++ b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.retrieve.3.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "migrate_customer_server_to_realms_and_upgrade--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.retrieve.4.json
index 51eba8e1102..14133444472 100644
--- a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.retrieve.4.json
+++ b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.retrieve.4.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "migrate_customer_server_to_realms_and_upgrade--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.retrieve.5.json
index 51eba8e1102..14133444472 100644
--- a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.retrieve.5.json
+++ b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.retrieve.5.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "migrate_customer_server_to_realms_and_upgrade--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.retrieve.6.json b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.retrieve.6.json
index 2ec1c91bcc7..7fa18335367 100644
--- a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.retrieve.6.json
+++ b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.retrieve.6.json
@@ -5,7 +5,7 @@
"currency": "usd",
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "migrate_customer_server_to_realms_and_upgrade--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 2,
diff --git a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Event.list.1.json b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Event.list.1.json
index e78b8c6f319..ddd68a35672 100644
--- a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Event.list.1.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -11,7 +11,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "migrate_customer_server_to_realms_and_upgrade--Customer.create.1.json",
@@ -25,7 +25,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Event.list.2.json b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Event.list.2.json
index 7a6ee78782e..4bfef862ed4 100644
--- a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Event.list.2.json
+++ b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Event.list.2.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -62,7 +62,7 @@
"payment_method_details": {
"card": {
"amount_authorized": 176000,
- "authorization_code": "044944",
+ "authorization_code": "773757",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
@@ -120,7 +120,7 @@
"id": "migrate_customer_server_to_realms_and_upgrade--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
"id": "migrate_customer_server_to_realms_and_upgrade--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -128,7 +128,7 @@
"type": "charge.succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -322,7 +322,7 @@
"total_excluding_tax": 176000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "migrate_customer_server_to_realms_and_upgrade--Event.list.2.json",
@@ -336,7 +336,7 @@
"type": "invoice.finalized"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -530,7 +530,7 @@
"total_excluding_tax": 176000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"effective_at": null,
@@ -560,7 +560,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -632,7 +632,7 @@
"type": "payment_intent.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -826,7 +826,7 @@
"total_excluding_tax": 176000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"amount_due": 200000,
@@ -893,7 +893,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -940,7 +940,7 @@
"type": "invoiceitem.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1120,7 +1120,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1167,7 +1167,7 @@
"type": "invoiceitem.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1294,7 +1294,7 @@
"type": "invoice.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1304,7 +1304,7 @@
"currency": "usd",
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "migrate_customer_server_to_realms_and_upgrade--Customer.create.1.json",
@@ -1318,7 +1318,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Event.list.3.json b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Event.list.3.json
index 7e147bc8ab9..00320cee103 100644
--- a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Event.list.3.json
+++ b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Event.list.3.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -195,7 +195,7 @@
"total_excluding_tax": 176000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "migrate_customer_server_to_realms_and_upgrade--Event.list.3.json",
@@ -209,7 +209,7 @@
"type": "invoice.payment_succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -403,7 +403,7 @@
"total_excluding_tax": 176000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "migrate_customer_server_to_realms_and_upgrade--Event.list.3.json",
@@ -417,7 +417,7 @@
"type": "invoice.paid"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -611,7 +611,7 @@
"total_excluding_tax": 176000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"amount_paid": 0,
@@ -635,7 +635,42 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount_paid": null,
+ "amount_requested": 176000,
+ "created": 1000000000,
+ "currency": "usd",
+ "id": "migrate_customer_server_to_realms_and_upgrade--Event.list.3.json",
+ "invoice": "migrate_customer_server_to_realms_and_upgrade--Event.list.2.json",
+ "is_default": true,
+ "livemode": false,
+ "object": "invoice_payment",
+ "payment": {
+ "payment_intent": "migrate_customer_server_to_realms_and_upgrade--Event.list.2.json",
+ "type": "payment_intent"
+ },
+ "status": "open",
+ "status_transitions": {
+ "canceled_at": null,
+ "paid_at": null
+ }
+ }
+ },
+ "id": "migrate_customer_server_to_realms_and_upgrade--Event.list.3.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "migrate_customer_server_to_realms_and_upgrade--Event.list.2.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ },
+ "type": "invoice_payment.paid"
+ },
+ {
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -666,6 +701,10 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
+ "payment_details": {
+ "customer_reference": null,
+ "order_reference": "in_1SPP83RVfKEFJaqc9sKhZC"
+ },
"payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
"payment_method_options": {
diff --git a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Invoice.finalize_invoice.1.json
index b0cea55ca50..d6c2c8a0ecc 100644
--- a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Invoice.finalize_invoice.1.json
+++ b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Invoice.finalize_invoice.1.json
@@ -189,5 +189,5 @@
"total_excluding_tax": 176000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Invoice.pay.1.json
index 597b02cdbf1..6975b67d0fe 100644
--- a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Invoice.pay.1.json
+++ b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Invoice.pay.1.json
@@ -189,5 +189,5 @@
"total_excluding_tax": 176000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--SetupIntent.create.1.json
index 59423893aac..214f6802308 100644
--- a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--SetupIntent.create.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "migrate_customer_server_to_realms_and_upgrade--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--SetupIntent.list.1.json
index 7d9104180ae..723f3e23a53 100644
--- a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--SetupIntent.list.1.json
@@ -8,6 +8,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "migrate_customer_server_to_realms_and_upgrade--SetupIntent.list.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--SetupIntent.retrieve.1.json
index 59423893aac..214f6802308 100644
--- a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--SetupIntent.retrieve.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "migrate_customer_server_to_realms_and_upgrade--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--checkout.Session.create.1.json
index 3c59ef8e61e..462b01439a4 100644
--- a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--checkout.Session.create.1.json
+++ b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--checkout.Session.create.1.json
@@ -28,7 +28,7 @@
"type": "file"
}
},
- "cancel_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/upgrade/?manual_license_management=false&tier=1",
+ "cancel_url": "http://selfhosting.testserver/realm/9c36daef-29ed-478d-a237-26a7dec0f4ee/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"collected_information": {
@@ -101,7 +101,7 @@
"status": "open",
"submit_type": null,
"subscription": null,
- "success_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
+ "success_url": "http://selfhosting.testserver/realm/9c36daef-29ed-478d-a237-26a7dec0f4ee/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
"url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED",
diff --git a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--checkout.Session.list.1.json
index 3d1acf40154..a7d44fb31f8 100644
--- a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--checkout.Session.list.1.json
+++ b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--checkout.Session.list.1.json
@@ -30,7 +30,7 @@
"type": "file"
}
},
- "cancel_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/upgrade/?manual_license_management=false&tier=1",
+ "cancel_url": "http://selfhosting.testserver/realm/9c36daef-29ed-478d-a237-26a7dec0f4ee/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"collected_information": {
@@ -103,7 +103,7 @@
"status": "open",
"submit_type": null,
"subscription": null,
- "success_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
+ "success_url": "http://selfhosting.testserver/realm/9c36daef-29ed-478d-a237-26a7dec0f4ee/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
"url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED",
diff --git a/corporate/tests/stripe_fixtures/non_sponsorship_billing--Event.list.1.json b/corporate/tests/stripe_fixtures/non_sponsorship_billing--Event.list.1.json
index 06d2a1ac51a..4a3269f574d 100644
--- a/corporate/tests/stripe_fixtures/non_sponsorship_billing--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/non_sponsorship_billing--Event.list.1.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
diff --git a/corporate/tests/stripe_fixtures/non_sponsorship_billing--Event.list.2.json b/corporate/tests/stripe_fixtures/non_sponsorship_billing--Event.list.2.json
index 19624b79274..cf0d052726e 100644
--- a/corporate/tests/stripe_fixtures/non_sponsorship_billing--Event.list.2.json
+++ b/corporate/tests/stripe_fixtures/non_sponsorship_billing--Event.list.2.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -62,7 +62,7 @@
"payment_method_details": {
"card": {
"amount_authorized": 176000,
- "authorization_code": "766964",
+ "authorization_code": "517310",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
@@ -120,7 +120,7 @@
"id": "non_sponsorship_billing--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
"id": "non_sponsorship_billing--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -128,7 +128,7 @@
"type": "charge.succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -336,7 +336,7 @@
"type": "invoice.finalized"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -560,7 +560,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -632,7 +632,7 @@
"type": "payment_intent.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -893,7 +893,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -940,7 +940,7 @@
"type": "invoiceitem.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1120,7 +1120,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1167,7 +1167,7 @@
"type": "invoiceitem.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1294,7 +1294,7 @@
"type": "invoice.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
diff --git a/corporate/tests/stripe_fixtures/non_sponsorship_billing--Event.list.3.json b/corporate/tests/stripe_fixtures/non_sponsorship_billing--Event.list.3.json
index 0bd4012c064..42c066fd8c3 100644
--- a/corporate/tests/stripe_fixtures/non_sponsorship_billing--Event.list.3.json
+++ b/corporate/tests/stripe_fixtures/non_sponsorship_billing--Event.list.3.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -209,7 +209,7 @@
"type": "invoice.payment_succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -417,7 +417,7 @@
"type": "invoice.paid"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -635,7 +635,42 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount_paid": null,
+ "amount_requested": 176000,
+ "created": 1000000000,
+ "currency": "usd",
+ "id": "non_sponsorship_billing--Event.list.3.json",
+ "invoice": "non_sponsorship_billing--Event.list.2.json",
+ "is_default": true,
+ "livemode": false,
+ "object": "invoice_payment",
+ "payment": {
+ "payment_intent": "non_sponsorship_billing--Event.list.2.json",
+ "type": "payment_intent"
+ },
+ "status": "open",
+ "status_transitions": {
+ "canceled_at": null,
+ "paid_at": null
+ }
+ }
+ },
+ "id": "non_sponsorship_billing--Event.list.3.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "non_sponsorship_billing--Event.list.2.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ },
+ "type": "invoice_payment.paid"
+ },
+ {
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -666,6 +701,10 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
+ "payment_details": {
+ "customer_reference": null,
+ "order_reference": "in_1SPPC3RVfKEFJaqcSqvHWG"
+ },
"payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
"payment_method_options": {
diff --git a/corporate/tests/stripe_fixtures/non_sponsorship_billing--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/non_sponsorship_billing--SetupIntent.create.1.json
index 07cfcc1b94f..01e8d7c6178 100644
--- a/corporate/tests/stripe_fixtures/non_sponsorship_billing--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/non_sponsorship_billing--SetupIntent.create.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "non_sponsorship_billing--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/non_sponsorship_billing--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/non_sponsorship_billing--SetupIntent.list.1.json
index c44d421554e..98dce654c78 100644
--- a/corporate/tests/stripe_fixtures/non_sponsorship_billing--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/non_sponsorship_billing--SetupIntent.list.1.json
@@ -8,6 +8,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "non_sponsorship_billing--SetupIntent.list.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/non_sponsorship_billing--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/non_sponsorship_billing--SetupIntent.retrieve.1.json
index 07cfcc1b94f..01e8d7c6178 100644
--- a/corporate/tests/stripe_fixtures/non_sponsorship_billing--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/non_sponsorship_billing--SetupIntent.retrieve.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "non_sponsorship_billing--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/payment_method_string--Event.list.1.json b/corporate/tests/stripe_fixtures/payment_method_string--Event.list.1.json
index 02a37fe0122..d63a980cd28 100644
--- a/corporate/tests/stripe_fixtures/payment_method_string--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/payment_method_string--Event.list.1.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
diff --git a/corporate/tests/stripe_fixtures/payment_method_string--Event.list.2.json b/corporate/tests/stripe_fixtures/payment_method_string--Event.list.2.json
index 82954265c0e..ab3537aab01 100644
--- a/corporate/tests/stripe_fixtures/payment_method_string--Event.list.2.json
+++ b/corporate/tests/stripe_fixtures/payment_method_string--Event.list.2.json
@@ -1,7 +1,83 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount": 984000,
+ "amount_capturable": 0,
+ "amount_details": {
+ "tip": {}
+ },
+ "amount_received": 0,
+ "application": null,
+ "application_fee_amount": null,
+ "automatic_payment_methods": null,
+ "canceled_at": 1000000000,
+ "cancellation_reason": "requested_by_customer",
+ "capture_method": "automatic",
+ "client_secret": "NORMALIZED",
+ "confirmation_method": "automatic",
+ "created": 1000000000,
+ "currency": "usd",
+ "customer": "payment_method_string--Customer.create.1.json",
+ "description": "Payment for Invoice",
+ "excluded_payment_method_types": null,
+ "id": "payment_method_string--Event.list.2.json",
+ "last_payment_error": null,
+ "latest_charge": null,
+ "livemode": false,
+ "metadata": {},
+ "next_action": null,
+ "object": "payment_intent",
+ "on_behalf_of": null,
+ "payment_details": {
+ "customer_reference": null,
+ "order_reference": "in_1SPP23RVfKEFJaqcbjHniJ"
+ },
+ "payment_method": "pm_NORMALIZED",
+ "payment_method_configuration_details": null,
+ "payment_method_options": {
+ "card": {
+ "installments": null,
+ "mandate_options": null,
+ "network": null,
+ "request_three_d_secure": "automatic"
+ },
+ "link": {
+ "persistent_token": null
+ }
+ },
+ "payment_method_types": [
+ "card",
+ "link"
+ ],
+ "processing": null,
+ "receipt_email": "[email protected]",
+ "review": null,
+ "setup_future_usage": null,
+ "shipping": null,
+ "source": null,
+ "statement_descriptor": "Zulip Cloud Standard",
+ "statement_descriptor_suffix": null,
+ "status": "canceled",
+ "transfer_data": null,
+ "transfer_group": null
+ }
+ },
+ "id": "payment_method_string--Event.list.2.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "payment_method_string--Event.list.2.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ },
+ "type": "payment_intent.canceled"
+ },
+ {
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -156,7 +232,7 @@
"total_excluding_tax": 984000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "payment_method_string--Event.list.2.json",
@@ -170,7 +246,7 @@
"type": "invoice.paid"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -325,7 +401,7 @@
"total_excluding_tax": 984000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"amount_paid": 0,
@@ -348,79 +424,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
- "created": 1000000000,
- "data": {
- "object": {
- "amount": 984000,
- "amount_capturable": 0,
- "amount_details": {
- "tip": {}
- },
- "amount_received": 0,
- "application": null,
- "application_fee_amount": null,
- "automatic_payment_methods": null,
- "canceled_at": 1000000000,
- "cancellation_reason": "requested_by_customer",
- "capture_method": "automatic",
- "client_secret": "NORMALIZED",
- "confirmation_method": "automatic",
- "created": 1000000000,
- "currency": "usd",
- "customer": "payment_method_string--Customer.create.1.json",
- "description": "Payment for Invoice",
- "excluded_payment_method_types": null,
- "id": "payment_method_string--Event.list.2.json",
- "last_payment_error": null,
- "latest_charge": null,
- "livemode": false,
- "metadata": {},
- "next_action": null,
- "object": "payment_intent",
- "on_behalf_of": null,
- "payment_method": "pm_NORMALIZED",
- "payment_method_configuration_details": null,
- "payment_method_options": {
- "card": {
- "installments": null,
- "mandate_options": null,
- "network": null,
- "request_three_d_secure": "automatic"
- },
- "link": {
- "persistent_token": null
- }
- },
- "payment_method_types": [
- "card",
- "link"
- ],
- "processing": null,
- "receipt_email": "[email protected]",
- "review": null,
- "setup_future_usage": null,
- "shipping": null,
- "source": null,
- "statement_descriptor": "Zulip Cloud Standard",
- "statement_descriptor_suffix": null,
- "status": "canceled",
- "transfer_data": null,
- "transfer_group": null
- }
- },
- "id": "payment_method_string--Event.list.2.json",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 0,
- "request": {
- "id": "payment_method_string--Event.list.2.json",
- "idempotency_key": "00000000-0000-0000-0000-000000000000"
- },
- "type": "payment_intent.canceled"
- },
- {
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -575,7 +579,7 @@
"total_excluding_tax": 984000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "payment_method_string--Event.list.2.json",
@@ -589,7 +593,7 @@
"type": "invoice.finalized"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -744,7 +748,7 @@
"total_excluding_tax": 984000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"automatically_finalizes_at": 1000000000,
@@ -775,7 +779,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -847,7 +851,7 @@
"type": "payment_intent.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1002,7 +1006,7 @@
"total_excluding_tax": 984000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"amount_due": 0,
@@ -1028,7 +1032,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1075,7 +1079,7 @@
"type": "invoiceitem.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1203,7 +1207,7 @@
"type": "invoice.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1253,7 +1257,7 @@
"type": "customer.updated"
}
],
- "has_more": false,
+ "has_more": true,
"object": "list",
"url": "/v1/events"
}
diff --git a/corporate/tests/stripe_fixtures/payment_method_string--Event.list.3.json b/corporate/tests/stripe_fixtures/payment_method_string--Event.list.3.json
index 6d922067afe..108051e1a45 100644
--- a/corporate/tests/stripe_fixtures/payment_method_string--Event.list.3.json
+++ b/corporate/tests/stripe_fixtures/payment_method_string--Event.list.3.json
@@ -1,5 +1,41 @@
{
- "data": [],
+ "data": [
+ {
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount_paid": 984000,
+ "amount_requested": 984000,
+ "created": 1000000000,
+ "currency": "usd",
+ "id": "payment_method_string--Event.list.3.json",
+ "invoice": "in_NORMALIZED",
+ "is_default": false,
+ "livemode": false,
+ "object": "invoice_payment",
+ "payment": {
+ "payment_record": "pr_test_NORMALIZEDeZdPtZX41RVfKEFJaqc1Jg",
+ "type": "payment_record"
+ },
+ "status": "paid",
+ "status_transitions": {
+ "canceled_at": null,
+ "paid_at": 1000000000
+ }
+ }
+ },
+ "id": "payment_method_string--Event.list.3.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "payment_method_string--Event.list.2.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ },
+ "type": "invoice_payment.paid"
+ }
+ ],
"has_more": false,
"object": "list",
"url": "/v1/events"
diff --git a/corporate/tests/stripe_fixtures/payment_method_string--Event.list.4.json b/corporate/tests/stripe_fixtures/payment_method_string--Event.list.4.json
new file mode 100644
index 00000000000..6d922067afe
--- /dev/null
+++ b/corporate/tests/stripe_fixtures/payment_method_string--Event.list.4.json
@@ -0,0 +1,6 @@
+{
+ "data": [],
+ "has_more": false,
+ "object": "list",
+ "url": "/v1/events"
+}
diff --git a/corporate/tests/stripe_fixtures/payment_method_string--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/payment_method_string--Invoice.finalize_invoice.1.json
index e8b1bd3c6ec..b524002c172 100644
--- a/corporate/tests/stripe_fixtures/payment_method_string--Invoice.finalize_invoice.1.json
+++ b/corporate/tests/stripe_fixtures/payment_method_string--Invoice.finalize_invoice.1.json
@@ -150,5 +150,5 @@
"total_excluding_tax": 984000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/payment_method_string--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/payment_method_string--Invoice.pay.1.json
index b406b2178f1..36e860b45ac 100644
--- a/corporate/tests/stripe_fixtures/payment_method_string--Invoice.pay.1.json
+++ b/corporate/tests/stripe_fixtures/payment_method_string--Invoice.pay.1.json
@@ -150,5 +150,5 @@
"total_excluding_tax": 984000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/payment_method_string--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/payment_method_string--SetupIntent.create.1.json
index 510b98709c0..39f630e774d 100644
--- a/corporate/tests/stripe_fixtures/payment_method_string--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/payment_method_string--SetupIntent.create.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "payment_method_string--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/payment_method_string--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/payment_method_string--SetupIntent.list.1.json
index aaa4f516339..7b4e22bc291 100644
--- a/corporate/tests/stripe_fixtures/payment_method_string--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/payment_method_string--SetupIntent.list.1.json
@@ -8,6 +8,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "payment_method_string--SetupIntent.list.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/payment_method_string--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/payment_method_string--SetupIntent.retrieve.1.json
index 510b98709c0..39f630e774d 100644
--- a/corporate/tests/stripe_fixtures/payment_method_string--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/payment_method_string--SetupIntent.retrieve.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "payment_method_string--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/redirect_for_billing_page_downgrade_at_free_trial_end--Event.list.1.json b/corporate/tests/stripe_fixtures/redirect_for_billing_page_downgrade_at_free_trial_end--Event.list.1.json
index 452bea1a14c..5a0e032f253 100644
--- a/corporate/tests/stripe_fixtures/redirect_for_billing_page_downgrade_at_free_trial_end--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/redirect_for_billing_page_downgrade_at_free_trial_end--Event.list.1.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
diff --git a/corporate/tests/stripe_fixtures/redirect_for_billing_page_downgrade_at_free_trial_end--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/redirect_for_billing_page_downgrade_at_free_trial_end--SetupIntent.create.1.json
index 228b755ac89..3b3657fea32 100644
--- a/corporate/tests/stripe_fixtures/redirect_for_billing_page_downgrade_at_free_trial_end--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/redirect_for_billing_page_downgrade_at_free_trial_end--SetupIntent.create.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "redirect_for_billing_page_downgrade_at_free_trial_end--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/redirect_for_billing_page_downgrade_at_free_trial_end--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/redirect_for_billing_page_downgrade_at_free_trial_end--SetupIntent.list.1.json
index 3581269d55e..112f28f43d4 100644
--- a/corporate/tests/stripe_fixtures/redirect_for_billing_page_downgrade_at_free_trial_end--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/redirect_for_billing_page_downgrade_at_free_trial_end--SetupIntent.list.1.json
@@ -8,6 +8,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "redirect_for_billing_page_downgrade_at_free_trial_end--SetupIntent.list.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/redirect_for_billing_page_downgrade_at_free_trial_end--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/redirect_for_billing_page_downgrade_at_free_trial_end--SetupIntent.retrieve.1.json
index 228b755ac89..3b3657fea32 100644
--- a/corporate/tests/stripe_fixtures/redirect_for_billing_page_downgrade_at_free_trial_end--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/redirect_for_billing_page_downgrade_at_free_trial_end--SetupIntent.retrieve.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "redirect_for_billing_page_downgrade_at_free_trial_end--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.create.1.json b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.create.1.json
index 8d144830b3c..545979f02c5 100644
--- a/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.create.1.json
+++ b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.create.1.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.create.1.json",
@@ -19,7 +19,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.modify.1.json b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.modify.1.json
index 25c8b563af7..067f76e39f5 100644
--- a/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.modify.1.json
+++ b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.modify.1.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.create.1.json",
@@ -19,7 +19,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.retrieve.1.json
index b2b7c5a3ea6..16bb2f7d79e 100644
--- a/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.retrieve.1.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.retrieve.2.json
index b2b7c5a3ea6..16bb2f7d79e 100644
--- a/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.retrieve.2.json
+++ b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.retrieve.2.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.retrieve.3.json
index b2b7c5a3ea6..16bb2f7d79e 100644
--- a/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.retrieve.3.json
+++ b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.retrieve.3.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.retrieve.4.json
index b2b7c5a3ea6..16bb2f7d79e 100644
--- a/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.retrieve.4.json
+++ b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.retrieve.4.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.retrieve.5.json
index b2b7c5a3ea6..16bb2f7d79e 100644
--- a/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.retrieve.5.json
+++ b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.retrieve.5.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.retrieve.6.json b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.retrieve.6.json
index b2b7c5a3ea6..16bb2f7d79e 100644
--- a/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.retrieve.6.json
+++ b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.retrieve.6.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Event.list.1.json b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Event.list.1.json
index c12ccc335bf..000a890ed64 100644
--- a/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Event.list.1.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -11,7 +11,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.create.1.json",
@@ -25,7 +25,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
@@ -45,7 +45,7 @@
"id": "redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Event.list.1.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
"id": "redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Event.list.1.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
diff --git a/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--SetupIntent.create.1.json
index b98450e16a4..fd1cea0f3cb 100644
--- a/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--SetupIntent.create.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--SetupIntent.list.1.json
index bec3f01b907..1bdcf6b5376 100644
--- a/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--SetupIntent.list.1.json
@@ -8,6 +8,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--SetupIntent.list.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--SetupIntent.retrieve.1.json
index b98450e16a4..fd1cea0f3cb 100644
--- a/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--SetupIntent.retrieve.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--checkout.Session.create.1.json
index 4f9f82684ed..ace501d5045 100644
--- a/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--checkout.Session.create.1.json
+++ b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--checkout.Session.create.1.json
@@ -28,7 +28,7 @@
"type": "file"
}
},
- "cancel_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/upgrade/?manual_license_management=false&tier=1",
+ "cancel_url": "http://selfhosting.testserver/realm/9c36daef-29ed-478d-a237-26a7dec0f4ee/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"collected_information": {
@@ -101,7 +101,7 @@
"status": "open",
"submit_type": null,
"subscription": null,
- "success_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
+ "success_url": "http://selfhosting.testserver/realm/9c36daef-29ed-478d-a237-26a7dec0f4ee/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
"url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED",
diff --git a/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--checkout.Session.list.1.json
index 4b09d15672e..d8034ac51ca 100644
--- a/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--checkout.Session.list.1.json
+++ b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--checkout.Session.list.1.json
@@ -30,7 +30,7 @@
"type": "file"
}
},
- "cancel_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/upgrade/?manual_license_management=false&tier=1",
+ "cancel_url": "http://selfhosting.testserver/realm/9c36daef-29ed-478d-a237-26a7dec0f4ee/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"collected_information": {
@@ -103,7 +103,7 @@
"status": "open",
"submit_type": null,
"subscription": null,
- "success_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
+ "success_url": "http://selfhosting.testserver/realm/9c36daef-29ed-478d-a237-26a7dec0f4ee/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
"url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED",
diff --git a/corporate/tests/stripe_fixtures/redirect_for_remote_server_billing_page_downgrade_at_free_trial_end--Event.list.1.json b/corporate/tests/stripe_fixtures/redirect_for_remote_server_billing_page_downgrade_at_free_trial_end--Event.list.1.json
index b86f31cded0..25a107485a3 100644
--- a/corporate/tests/stripe_fixtures/redirect_for_remote_server_billing_page_downgrade_at_free_trial_end--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/redirect_for_remote_server_billing_page_downgrade_at_free_trial_end--Event.list.1.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
diff --git a/corporate/tests/stripe_fixtures/redirect_for_remote_server_billing_page_downgrade_at_free_trial_end--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/redirect_for_remote_server_billing_page_downgrade_at_free_trial_end--SetupIntent.create.1.json
index 1a7b0e7fb4e..15f37e1cdb9 100644
--- a/corporate/tests/stripe_fixtures/redirect_for_remote_server_billing_page_downgrade_at_free_trial_end--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/redirect_for_remote_server_billing_page_downgrade_at_free_trial_end--SetupIntent.create.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "redirect_for_remote_server_billing_page_downgrade_at_free_trial_end--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/redirect_for_remote_server_billing_page_downgrade_at_free_trial_end--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/redirect_for_remote_server_billing_page_downgrade_at_free_trial_end--SetupIntent.list.1.json
index 4e6c2706409..d38088138bc 100644
--- a/corporate/tests/stripe_fixtures/redirect_for_remote_server_billing_page_downgrade_at_free_trial_end--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/redirect_for_remote_server_billing_page_downgrade_at_free_trial_end--SetupIntent.list.1.json
@@ -8,6 +8,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "redirect_for_remote_server_billing_page_downgrade_at_free_trial_end--SetupIntent.list.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/redirect_for_remote_server_billing_page_downgrade_at_free_trial_end--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/redirect_for_remote_server_billing_page_downgrade_at_free_trial_end--SetupIntent.retrieve.1.json
index 1a7b0e7fb4e..15f37e1cdb9 100644
--- a/corporate/tests/stripe_fixtures/redirect_for_remote_server_billing_page_downgrade_at_free_trial_end--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/redirect_for_remote_server_billing_page_downgrade_at_free_trial_end--SetupIntent.retrieve.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "redirect_for_remote_server_billing_page_downgrade_at_free_trial_end--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--Event.list.1.json b/corporate/tests/stripe_fixtures/replace_payment_method--Event.list.1.json
index b0f4712e3cc..797b381ca83 100644
--- a/corporate/tests/stripe_fixtures/replace_payment_method--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/replace_payment_method--Event.list.1.json
@@ -1,27 +1,44 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
- "amount_paid": 48000,
- "amount_requested": 48000,
+ "address": null,
+ "balance": 0,
"created": 1000000000,
- "currency": "usd",
- "id": "replace_payment_method--Event.list.1.json",
- "invoice": "in_NORMALIZED",
- "is_default": true,
+ "currency": null,
+ "default_source": null,
+ "delinquent": false,
+ "description": "zulip (Zulip Dev)",
+ "discount": null,
+ "email": "[email protected]",
+ "id": "replace_payment_method--Customer.create.1.json",
+ "invoice_prefix": "NORMALIZED",
+ "invoice_settings": {
+ "custom_fields": null,
+ "default_payment_method": "pm_NORMALIZED",
+ "footer": null,
+ "rendering_options": null
+ },
"livemode": false,
- "object": "invoice_payment",
- "payment": {
- "payment_intent": "pi_NORMALIZED",
- "type": "payment_intent"
+ "metadata": {
+ "realm_id": "1",
+ "realm_str": "zulip"
},
- "status": "paid",
- "status_transitions": {
- "canceled_at": null,
- "paid_at": 1000000000
+ "name": null,
+ "next_invoice_sequence": 1,
+ "object": "customer",
+ "phone": null,
+ "preferred_locales": [],
+ "shipping": null,
+ "tax_exempt": "none",
+ "test_clock": null
+ },
+ "previous_attributes": {
+ "invoice_settings": {
+ "default_payment_method": null
}
}
},
@@ -30,10 +47,10 @@
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": null,
- "idempotency_key": null
+ "id": "replace_payment_method--Event.list.1.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "invoice_payment.paid"
+ "type": "customer.updated"
}
],
"has_more": true,
diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--Event.list.2.json b/corporate/tests/stripe_fixtures/replace_payment_method--Event.list.2.json
index 9f069687eb8..c97f45f1d9b 100644
--- a/corporate/tests/stripe_fixtures/replace_payment_method--Event.list.2.json
+++ b/corporate/tests/stripe_fixtures/replace_payment_method--Event.list.2.json
@@ -1,170 +1,26 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
- "account_country": "US",
- "account_name": "NORMALIZED",
- "account_tax_ids": null,
- "amount_due": 48000,
- "amount_overpaid": 0,
- "amount_paid": 48000,
- "amount_remaining": 0,
- "amount_shipping": 0,
- "application": null,
- "attempt_count": 1,
- "attempted": true,
- "auto_advance": false,
- "automatic_tax": {
- "disabled_reason": null,
- "enabled": false,
- "liability": null,
- "provider": null,
- "status": null
- },
- "automatically_finalizes_at": null,
- "billing_reason": "manual",
- "collection_method": "charge_automatically",
+ "amount_paid": null,
+ "amount_requested": 48000,
"created": 1000000000,
"currency": "usd",
- "custom_fields": null,
- "customer": "replace_payment_method--Customer.create.1.json",
- "customer_address": null,
- "customer_email": "[email protected]",
- "customer_name": null,
- "customer_phone": null,
- "customer_shipping": null,
- "customer_tax_exempt": "none",
- "customer_tax_ids": [],
- "default_payment_method": null,
- "default_source": null,
- "default_tax_rates": [],
- "description": null,
- "discounts": [],
- "due_date": null,
- "effective_at": 1000000000,
- "ending_balance": 0,
- "footer": null,
- "from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
"id": "replace_payment_method--Event.list.2.json",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
- "issuer": {
- "type": "self"
- },
- "last_finalization_error": null,
- "latest_revision": null,
- "lines": {
- "data": [
- {
- "amount": 48000,
- "currency": "usd",
- "description": "Zulip Cloud Standard",
- "discount_amounts": [],
- "discountable": false,
- "discounts": [],
- "id": "replace_payment_method--Event.list.2.json",
- "invoice": "replace_payment_method--Event.list.2.json",
- "livemode": false,
- "metadata": {},
- "object": "line_item",
- "parent": {
- "invoice_item_details": {
- "invoice_item": "replace_payment_method--Event.list.2.json",
- "proration": false,
- "proration_details": {
- "credited_items": null
- },
- "subscription": null
- },
- "subscription_item_details": null,
- "type": "invoice_item_details"
- },
- "period": {
- "end": 1357095845,
- "start": 1325473445
- },
- "pretax_credit_amounts": [],
- "pricing": {
- "price_details": {
- "price": "price_NORMALIZED",
- "product": "prod_NORMALIZED"
- },
- "type": "price_details",
- "unit_amount_decimal": "8000"
- },
- "quantity": 6,
- "taxes": []
- }
- ],
- "has_more": false,
- "object": "list",
- "total_count": 1,
- "url": "/v1/invoices/replace_payment_method--Event.list.2.json/lines"
- },
+ "invoice": "replace_payment_method--Event.list.2.json",
+ "is_default": true,
"livemode": false,
- "metadata": {
- "billing_schedule": "1",
- "current_plan_id": "None",
- "license_management": "automatic",
- "licenses": "6",
- "on_free_trial": "False",
- "plan_tier": "1",
- "user_id": "10"
+ "object": "invoice_payment",
+ "payment": {
+ "payment_intent": "replace_payment_method--Event.list.2.json",
+ "type": "payment_intent"
},
- "next_payment_attempt": null,
- "number": "NORMALIZED",
- "object": "invoice",
- "on_behalf_of": null,
- "parent": null,
- "payment_settings": {
- "default_mandate": null,
- "payment_method_options": null,
- "payment_method_types": null
- },
- "period_end": 1000000000,
- "period_start": 1000000000,
- "post_payment_credit_notes_amount": 0,
- "pre_payment_credit_notes_amount": 0,
- "receipt_number": null,
- "rendering": {
- "amount_tax_display": null,
- "pdf": {
- "page_size": "letter"
- },
- "template": null,
- "template_version": null
- },
- "shipping_cost": null,
- "shipping_details": null,
- "starting_balance": 0,
- "statement_descriptor": "Zulip Cloud Standard",
- "status": "paid",
- "status_transitions": {
- "finalized_at": 1000000000,
- "marked_uncollectible_at": null,
- "paid_at": 1000000000,
- "voided_at": null
- },
- "subtotal": 48000,
- "subtotal_excluding_tax": 48000,
- "test_clock": null,
- "total": 48000,
- "total_discount_amounts": [],
- "total_excluding_tax": 48000,
- "total_pretax_credit_amounts": [],
- "total_taxes": [],
- "webhooks_delivered_at": 1000000000
- },
- "previous_attributes": {
- "amount_paid": 0,
- "amount_remaining": 48000,
- "attempt_count": 0,
- "attempted": false,
"status": "open",
"status_transitions": {
+ "canceled_at": null,
"paid_at": null
}
}
@@ -177,10 +33,10 @@
"id": "replace_payment_method--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "invoice.updated"
+ "type": "invoice_payment.paid"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -211,6 +67,10 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
+ "payment_details": {
+ "customer_reference": null,
+ "order_reference": "in_1SPP2QRVfKEFJaqcgCdnRt"
+ },
"payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
"payment_method_options": {
@@ -244,7 +104,7 @@
"id": "replace_payment_method--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
"id": "replace_payment_method--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -252,7 +112,7 @@
"type": "payment_intent.succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -313,7 +173,7 @@
"payment_method_details": {
"card": {
"amount_authorized": 48000,
- "authorization_code": "522397",
+ "authorization_code": "698945",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
@@ -371,7 +231,7 @@
"id": "replace_payment_method--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
"id": "replace_payment_method--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -379,7 +239,7 @@
"type": "charge.succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -548,7 +408,7 @@
"type": "invoice.finalized"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -733,7 +593,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -805,7 +665,7 @@
"type": "payment_intent.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -960,7 +820,7 @@
"total_excluding_tax": 48000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
},
"previous_attributes": {
"amount_due": 0,
@@ -986,7 +846,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1033,7 +893,7 @@
"type": "invoiceitem.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1161,7 +1021,7 @@
"type": "invoice.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1211,7 +1071,7 @@
"type": "customer.updated"
}
],
- "has_more": true,
+ "has_more": false,
"object": "list",
"url": "/v1/events"
}
diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--Event.list.3.json b/corporate/tests/stripe_fixtures/replace_payment_method--Event.list.3.json
index 5d42a1eea11..4b86840cdd8 100644
--- a/corporate/tests/stripe_fixtures/replace_payment_method--Event.list.3.json
+++ b/corporate/tests/stripe_fixtures/replace_payment_method--Event.list.3.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -162,7 +162,7 @@
"id": "replace_payment_method--Event.list.3.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
"id": "replace_payment_method--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -170,7 +170,7 @@
"type": "invoice.payment_succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -331,12 +331,191 @@
"id": "replace_payment_method--Event.list.3.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
"id": "replace_payment_method--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "invoice.paid"
+ },
+ {
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "account_country": "US",
+ "account_name": "NORMALIZED",
+ "account_tax_ids": null,
+ "amount_due": 48000,
+ "amount_overpaid": 0,
+ "amount_paid": 48000,
+ "amount_remaining": 0,
+ "amount_shipping": 0,
+ "application": null,
+ "attempt_count": 1,
+ "attempted": true,
+ "auto_advance": false,
+ "automatic_tax": {
+ "disabled_reason": null,
+ "enabled": false,
+ "liability": null,
+ "provider": null,
+ "status": null
+ },
+ "automatically_finalizes_at": null,
+ "billing_reason": "manual",
+ "collection_method": "charge_automatically",
+ "created": 1000000000,
+ "currency": "usd",
+ "custom_fields": null,
+ "customer": "cus_NORMALIZED",
+ "customer_address": null,
+ "customer_email": "[email protected]",
+ "customer_name": null,
+ "customer_phone": null,
+ "customer_shipping": null,
+ "customer_tax_exempt": "none",
+ "customer_tax_ids": [],
+ "default_payment_method": null,
+ "default_source": null,
+ "default_tax_rates": [],
+ "description": null,
+ "discounts": [],
+ "due_date": null,
+ "effective_at": 1000000000,
+ "ending_balance": 0,
+ "footer": null,
+ "from_invoice": null,
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
+ "id": "replace_payment_method--Event.list.2.json",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
+ "issuer": {
+ "type": "self"
+ },
+ "last_finalization_error": null,
+ "latest_revision": null,
+ "lines": {
+ "data": [
+ {
+ "amount": 48000,
+ "currency": "usd",
+ "description": "Zulip Cloud Standard",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "replace_payment_method--Event.list.2.json",
+ "invoice": "replace_payment_method--Event.list.2.json",
+ "livemode": false,
+ "metadata": {},
+ "object": "line_item",
+ "parent": {
+ "invoice_item_details": {
+ "invoice_item": "ii_NORMALIZED",
+ "proration": false,
+ "proration_details": {
+ "credited_items": null
+ },
+ "subscription": null
+ },
+ "subscription_item_details": null,
+ "type": "invoice_item_details"
+ },
+ "period": {
+ "end": 1357095845,
+ "start": 1325473445
+ },
+ "pretax_credit_amounts": [],
+ "pricing": {
+ "price_details": {
+ "price": "price_NORMALIZED",
+ "product": "prod_NORMALIZED"
+ },
+ "type": "price_details",
+ "unit_amount_decimal": "8000"
+ },
+ "quantity": 6,
+ "taxes": []
+ }
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 1,
+ "url": "/v1/invoices/replace_payment_method--Event.list.2.json/lines"
+ },
+ "livemode": false,
+ "metadata": {
+ "billing_schedule": "1",
+ "current_plan_id": "None",
+ "license_management": "automatic",
+ "licenses": "6",
+ "on_free_trial": "False",
+ "plan_tier": "1",
+ "user_id": "10"
+ },
+ "next_payment_attempt": null,
+ "number": "NORMALIZED",
+ "object": "invoice",
+ "on_behalf_of": null,
+ "parent": null,
+ "payment_settings": {
+ "default_mandate": null,
+ "payment_method_options": null,
+ "payment_method_types": null
+ },
+ "period_end": 1000000000,
+ "period_start": 1000000000,
+ "post_payment_credit_notes_amount": 0,
+ "pre_payment_credit_notes_amount": 0,
+ "receipt_number": null,
+ "rendering": {
+ "amount_tax_display": null,
+ "pdf": {
+ "page_size": "letter"
+ },
+ "template": null,
+ "template_version": null
+ },
+ "shipping_cost": null,
+ "shipping_details": null,
+ "starting_balance": 0,
+ "statement_descriptor": "Zulip Cloud Standard",
+ "status": "paid",
+ "status_transitions": {
+ "finalized_at": 1000000000,
+ "marked_uncollectible_at": null,
+ "paid_at": 1000000000,
+ "voided_at": null
+ },
+ "subtotal": 48000,
+ "subtotal_excluding_tax": 48000,
+ "test_clock": null,
+ "total": 48000,
+ "total_discount_amounts": [],
+ "total_excluding_tax": 48000,
+ "total_pretax_credit_amounts": [],
+ "total_taxes": [],
+ "webhooks_delivered_at": 1000000000
+ },
+ "previous_attributes": {
+ "amount_paid": 0,
+ "amount_remaining": 48000,
+ "attempt_count": 0,
+ "attempted": false,
+ "status": "open",
+ "status_transitions": {
+ "paid_at": null
+ }
+ }
+ },
+ "id": "replace_payment_method--Event.list.3.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "replace_payment_method--Event.list.2.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ },
+ "type": "invoice.updated"
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.finalize_invoice.2.json b/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.finalize_invoice.2.json
index 8d4b392c9de..513f3f0fa27 100644
--- a/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.finalize_invoice.2.json
+++ b/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.finalize_invoice.2.json
@@ -142,5 +142,5 @@
"total_excluding_tax": 5000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.list.2.json b/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.list.2.json
index b77c2c8e4b0..a8de618b57d 100644
--- a/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.list.2.json
+++ b/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.list.2.json
@@ -144,7 +144,7 @@
"total_excluding_tax": 5000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.list.3.json b/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.list.3.json
index f092b69abc7..a501bb659d6 100644
--- a/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.list.3.json
+++ b/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.list.3.json
@@ -144,7 +144,7 @@
"total_excluding_tax": 5000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.list.4.json b/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.list.4.json
index 90602abbb5d..8ba2c5d0360 100644
--- a/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.list.4.json
+++ b/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.list.4.json
@@ -144,7 +144,7 @@
"total_excluding_tax": 5000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
},
{
"account_country": "US",
diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.pay.2.json b/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.pay.2.json
index 3a66dee734f..ee485cfcbd2 100644
--- a/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.pay.2.json
+++ b/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.pay.2.json
@@ -98,6 +98,10 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
+ "payment_details": {
+ "customer_reference": null,
+ "order_reference": "in_1SPP2WRVfKEFJaqcyksv7r"
+ },
"payment_method": null,
"payment_method_configuration_details": null,
"payment_method_options": {
@@ -178,7 +182,7 @@
"object": "payment_method",
"type": "card"
},
- "request_log_url": "https://dashboard.stripe.com/test/logs/req_NORMALIZED?t=1759913918",
+ "request_log_url": "https://dashboard.stripe.com/test/logs/req_NORMALIZED?t=1762181253",
"setup_intent": null,
"source": null,
"type": "card_error"
@@ -191,23 +195,23 @@
"Access-Control-Max-Age": "300",
"Cache-Control": "no-cache, no-store",
"Connection": "keep-alive",
- "Content-Length": "5375",
- "Content-Security-Policy": "base-uri 'none'; default-src 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self'; worker-src 'none'; upgrade-insecure-requests; report-uri https://q.stripe.com/csp-violation?q=irAykxLghuCmgqrIXf-pM0galma1w0YXzU99WaktruwmWPN8iPfQgKGBqdAaBd-GGagPQijh3O5rblPQ",
+ "Content-Length": "5502",
+ "Content-Security-Policy": "base-uri 'none'; default-src 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self'; worker-src 'none'; upgrade-insecure-requests; report-uri https://q.stripe.com/csp-violation?q=yOLawO6tJvDr4tq54pgOc4WdzEnWNujbhdOZn5mkUzKSjkahCddgFRmKumCkUwZehd1AfqppzBfKHb8R",
"Content-Type": "application/json",
"Date": "NORMALIZED DATETIME",
- "Idempotency-Key": "d3306ad4-fd75-42ce-b299-fce16ed674c4",
+ "Idempotency-Key": "8eab7b92-a920-4486-b42f-2d12af0aeb03",
"Original-Request": "req_NORMALIZED",
"Request-Id": "req_NORMALIZED",
"Server": "nginx",
"Strict-Transport-Security": "max-age=63072000; includeSubDomains; preload",
"Stripe-Should-Retry": "false",
- "Stripe-Version": "2025-09-30.clover",
+ "Stripe-Version": "2025-10-29.clover",
"Vary": "Origin",
"X-Stripe-Priority-Routing-Enabled": "true",
"X-Stripe-Routing-Context-Priority-Tier": "api-testmode",
"X-Wc": "ABGHIJ"
},
- "http_body": "{\n \"error\": {\n \"advice_code\": \"try_again_later\",\n \"charge\": \"ch_NORMALIZED\",\n \"code\": \"card_declined\",\n \"decline_code\": \"generic_decline\",\n \"doc_url\": \"https://stripe.com/docs/error-codes/card-declined\",\n \"message\": \"Your card was declined.\",\n \"network_decline_code\": \"01\",\n \"payment_intent\": {\n \"id\": \"replace_payment_method--Invoice.pay.2.json\",\n \"object\": \"payment_intent\",\n \"amount\": 5000,\n \"amount_capturable\": 0,\n \"amount_details\": {\n \"tip\": {}\n },\n \"amount_received\": 0,\n \"application\": null,\n \"application_fee_amount\": null,\n \"automatic_payment_methods\": null,\n \"canceled_at\": null,\n \"cancellation_reason\": null,\n \"capture_method\": \"automatic\",\n \"client_secret\": \"replace_payment_method--Invoice.pay.2.json_secret_N0ibfNA1c7mKThX3kFyApFfQd\",\n \"confirmation_method\": \"automatic\",\n \"created\": 1000000000,\n \"currency\": \"usd\",\n \"customer\": \"cus_NORMALIZED\",\n \"description\": \"Payment for Invoice\",\n \"excluded_payment_method_types\": null,\n \"last_payment_error\": {\n \"advice_code\": \"try_again_later\",\n \"charge\": \"ch_NORMALIZED\",\n \"code\": \"card_declined\",\n \"decline_code\": \"generic_decline\",\n \"doc_url\": \"https://stripe.com/docs/error-codes/card-declined\",\n \"message\": \"Your card was declined.\",\n \"network_decline_code\": \"01\",\n \"payment_method\": {\n \"id\": \"replace_payment_method--Customer.retrieve.7.json\",\n \"object\": \"payment_method\",\n \"allow_redisplay\": \"unspecified\",\n \"billing_details\": {\n \"address\": {\n \"city\": \"San Francisco\",\n \"country\": \"US\",\n \"line1\": \"123 Main St\",\n \"line2\": null,\n \"postal_code\": \"94105\",\n \"state\": \"CA\"\n },\n \"email\": null,\n \"name\": \"John Doe\",\n \"phone\": null,\n \"tax_id\": null\n },\n \"card\": {\n \"brand\": \"visa\",\n \"checks\": {\n \"address_line1_check\": \"pass\",\n \"address_postal_code_check\": \"pass\",\n \"cvc_check\": \"pass\"\n },\n \"country\": \"US\",\n \"display_brand\": \"visa\",\n \"exp_month\": 10,\n \"exp_year\": 2026,\n \"fingerprint\": \"DXkIrMyLWOiSbbeT\",\n \"funding\": \"credit\",\n \"generated_from\": null,\n \"last4\": \"0341\",\n \"networks\": {\n \"available\": [\n \"visa\"\n ],\n \"preferred\": null\n },\n \"regulated_status\": \"unregulated\",\n \"three_d_secure_usage\": {\n \"supported\": true\n },\n \"wallet\": null\n },\n \"created\": 1000000000,\n \"customer\": \"cus_NORMALIZED\",\n \"livemode\": false,\n \"metadata\": {},\n \"type\": \"card\"\n },\n \"type\": \"card_error\"\n },\n \"latest_charge\": \"ch_NORMALIZED\",\n \"livemode\": false,\n \"metadata\": {},\n \"next_action\": null,\n \"on_behalf_of\": null,\n \"payment_method\": null,\n \"payment_method_configuration_details\": null,\n \"payment_method_options\": {\n \"card\": {\n \"installments\": null,\n \"mandate_options\": null,\n \"network\": null,\n \"request_three_d_secure\": \"automatic\"\n },\n \"link\": {\n \"persistent_token\": null\n }\n },\n \"payment_method_types\": [\n \"card\",\n \"link\"\n ],\n \"processing\": null,\n \"receipt_email\": \"[email protected]\",\n \"review\": null,\n \"setup_future_usage\": null,\n \"shipping\": null,\n \"source\": null,\n \"statement_descriptor\": null,\n \"statement_descriptor_suffix\": null,\n \"status\": \"requires_payment_method\",\n \"transfer_data\": null,\n \"transfer_group\": null\n },\n \"payment_method\": {\n \"id\": \"replace_payment_method--Customer.retrieve.7.json\",\n \"object\": \"payment_method\",\n \"allow_redisplay\": \"unspecified\",\n \"billing_details\": {\n \"address\": {\n \"city\": \"San Francisco\",\n \"country\": \"US\",\n \"line1\": \"123 Main St\",\n \"line2\": null,\n \"postal_code\": \"94105\",\n \"state\": \"CA\"\n },\n \"email\": null,\n \"name\": \"John Doe\",\n \"phone\": null,\n \"tax_id\": null\n },\n \"card\": {\n \"brand\": \"visa\",\n \"checks\": {\n \"address_line1_check\": \"pass\",\n \"address_postal_code_check\": \"pass\",\n \"cvc_check\": \"pass\"\n },\n \"country\": \"US\",\n \"display_brand\": \"visa\",\n \"exp_month\": 10,\n \"exp_year\": 2026,\n \"fingerprint\": \"DXkIrMyLWOiSbbeT\",\n \"funding\": \"credit\",\n \"generated_from\": null,\n \"last4\": \"0341\",\n \"networks\": {\n \"available\": [\n \"visa\"\n ],\n \"preferred\": null\n },\n \"regulated_status\": \"unregulated\",\n \"three_d_secure_usage\": {\n \"supported\": true\n },\n \"wallet\": null\n },\n \"created\": 1000000000,\n \"customer\": \"cus_NORMALIZED\",\n \"livemode\": false,\n \"metadata\": {},\n \"type\": \"card\"\n },\n \"request_log_url\": \"https://dashboard.stripe.com/test/logs/req_NORMALIZED?t=1759913918\",\n \"type\": \"card_error\"\n }\n}\n",
+ "http_body": "{\n \"error\": {\n \"advice_code\": \"try_again_later\",\n \"charge\": \"ch_NORMALIZED\",\n \"code\": \"card_declined\",\n \"decline_code\": \"generic_decline\",\n \"doc_url\": \"https://stripe.com/docs/error-codes/card-declined\",\n \"message\": \"Your card was declined.\",\n \"network_decline_code\": \"01\",\n \"payment_intent\": {\n \"id\": \"replace_payment_method--Invoice.pay.2.json\",\n \"object\": \"payment_intent\",\n \"amount\": 5000,\n \"amount_capturable\": 0,\n \"amount_details\": {\n \"tip\": {}\n },\n \"amount_received\": 0,\n \"application\": null,\n \"application_fee_amount\": null,\n \"automatic_payment_methods\": null,\n \"canceled_at\": null,\n \"cancellation_reason\": null,\n \"capture_method\": \"automatic\",\n \"client_secret\": \"replace_payment_method--Invoice.pay.2.json_secret_nYjqCySwHNvvR7B2hiMgKp10r\",\n \"confirmation_method\": \"automatic\",\n \"created\": 1000000000,\n \"currency\": \"usd\",\n \"customer\": \"cus_NORMALIZED\",\n \"description\": \"Payment for Invoice\",\n \"excluded_payment_method_types\": null,\n \"last_payment_error\": {\n \"advice_code\": \"try_again_later\",\n \"charge\": \"ch_NORMALIZED\",\n \"code\": \"card_declined\",\n \"decline_code\": \"generic_decline\",\n \"doc_url\": \"https://stripe.com/docs/error-codes/card-declined\",\n \"message\": \"Your card was declined.\",\n \"network_decline_code\": \"01\",\n \"payment_method\": {\n \"id\": \"replace_payment_method--Customer.retrieve.7.json\",\n \"object\": \"payment_method\",\n \"allow_redisplay\": \"unspecified\",\n \"billing_details\": {\n \"address\": {\n \"city\": \"San Francisco\",\n \"country\": \"US\",\n \"line1\": \"123 Main St\",\n \"line2\": null,\n \"postal_code\": \"94105\",\n \"state\": \"CA\"\n },\n \"email\": null,\n \"name\": \"John Doe\",\n \"phone\": null,\n \"tax_id\": null\n },\n \"card\": {\n \"brand\": \"visa\",\n \"checks\": {\n \"address_line1_check\": \"pass\",\n \"address_postal_code_check\": \"pass\",\n \"cvc_check\": \"pass\"\n },\n \"country\": \"US\",\n \"display_brand\": \"visa\",\n \"exp_month\": 11,\n \"exp_year\": 2026,\n \"fingerprint\": \"DXkIrMyLWOiSbbeT\",\n \"funding\": \"credit\",\n \"generated_from\": null,\n \"last4\": \"0341\",\n \"networks\": {\n \"available\": [\n \"visa\"\n ],\n \"preferred\": null\n },\n \"regulated_status\": \"unregulated\",\n \"three_d_secure_usage\": {\n \"supported\": true\n },\n \"wallet\": null\n },\n \"created\": 1000000000,\n \"customer\": \"cus_NORMALIZED\",\n \"livemode\": false,\n \"metadata\": {},\n \"type\": \"card\"\n },\n \"type\": \"card_error\"\n },\n \"latest_charge\": \"ch_NORMALIZED\",\n \"livemode\": false,\n \"metadata\": {},\n \"next_action\": null,\n \"on_behalf_of\": null,\n \"payment_details\": {\n \"customer_reference\": null,\n \"order_reference\": \"in_1SPP2WRVfKEFJaqcyksv7r\"\n },\n \"payment_method\": null,\n \"payment_method_configuration_details\": null,\n \"payment_method_options\": {\n \"card\": {\n \"installments\": null,\n \"mandate_options\": null,\n \"network\": null,\n \"request_three_d_secure\": \"automatic\"\n },\n \"link\": {\n \"persistent_token\": null\n }\n },\n \"payment_method_types\": [\n \"card\",\n \"link\"\n ],\n \"processing\": null,\n \"receipt_email\": \"[email protected]\",\n \"review\": null,\n \"setup_future_usage\": null,\n \"shipping\": null,\n \"source\": null,\n \"statement_descriptor\": null,\n \"statement_descriptor_suffix\": null,\n \"status\": \"requires_payment_method\",\n \"transfer_data\": null,\n \"transfer_group\": null\n },\n \"payment_method\": {\n \"id\": \"replace_payment_method--Customer.retrieve.7.json\",\n \"object\": \"payment_method\",\n \"allow_redisplay\": \"unspecified\",\n \"billing_details\": {\n \"address\": {\n \"city\": \"San Francisco\",\n \"country\": \"US\",\n \"line1\": \"123 Main St\",\n \"line2\": null,\n \"postal_code\": \"94105\",\n \"state\": \"CA\"\n },\n \"email\": null,\n \"name\": \"John Doe\",\n \"phone\": null,\n \"tax_id\": null\n },\n \"card\": {\n \"brand\": \"visa\",\n \"checks\": {\n \"address_line1_check\": \"pass\",\n \"address_postal_code_check\": \"pass\",\n \"cvc_check\": \"pass\"\n },\n \"country\": \"US\",\n \"display_brand\": \"visa\",\n \"exp_month\": 11,\n \"exp_year\": 2026,\n \"fingerprint\": \"DXkIrMyLWOiSbbeT\",\n \"funding\": \"credit\",\n \"generated_from\": null,\n \"last4\": \"0341\",\n \"networks\": {\n \"available\": [\n \"visa\"\n ],\n \"preferred\": null\n },\n \"regulated_status\": \"unregulated\",\n \"three_d_secure_usage\": {\n \"supported\": true\n },\n \"wallet\": null\n },\n \"created\": 1000000000,\n \"customer\": \"cus_NORMALIZED\",\n \"livemode\": false,\n \"metadata\": {},\n \"type\": \"card\"\n },\n \"request_log_url\": \"https://dashboard.stripe.com/test/logs/req_NORMALIZED?t=1762181253\",\n \"type\": \"card_error\"\n }\n}\n",
"http_status": 402,
"json_body": {
"error": {
@@ -306,6 +310,10 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
+ "payment_details": {
+ "customer_reference": null,
+ "order_reference": "in_1SPP2WRVfKEFJaqcyksv7r"
+ },
"payment_method": null,
"payment_method_configuration_details": null,
"payment_method_options": {
@@ -386,7 +394,7 @@
"object": "payment_method",
"type": "card"
},
- "request_log_url": "https://dashboard.stripe.com/test/logs/req_NORMALIZED?t=1759913918",
+ "request_log_url": "https://dashboard.stripe.com/test/logs/req_NORMALIZED?t=1762181253",
"type": "card_error"
}
},
diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.pay.3.json b/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.pay.3.json
index 9cb3beadfb3..5d43bc3c440 100644
--- a/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.pay.3.json
+++ b/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.pay.3.json
@@ -142,5 +142,5 @@
"total_excluding_tax": 5000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.create.1.json
index dcf0132bc10..98531a6e8bf 100644
--- a/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.create.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "replace_payment_method--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.create.2.json b/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.create.2.json
index 7b6f61afc96..d9b1580f7f6 100644
--- a/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.create.2.json
+++ b/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.create.2.json
@@ -62,7 +62,7 @@
"object": "payment_method",
"type": "card"
},
- "request_log_url": "https://dashboard.stripe.com/test/logs/req_NORMALIZED?t=1759913913",
+ "request_log_url": "https://dashboard.stripe.com/test/logs/req_NORMALIZED?t=1762181248",
"setup_intent": {
"application": null,
"automatic_payment_methods": null,
@@ -71,6 +71,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "replace_payment_method--SetupIntent.create.2.json",
"last_setup_error": {
@@ -167,23 +168,23 @@
"Access-Control-Max-Age": "300",
"Cache-Control": "no-cache, no-store",
"Connection": "keep-alive",
- "Content-Length": "4591",
- "Content-Security-Policy": "base-uri 'none'; default-src 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self'; worker-src 'none'; upgrade-insecure-requests; report-uri https://q.stripe.com/csp-violation?q=irAykxLghuCmgqrIXf-pM0galma1w0YXzU99WaktruwmWPN8iPfQgKGBqdAaBd-GGagPQijh3O5rblPQ",
+ "Content-Length": "4636",
+ "Content-Security-Policy": "base-uri 'none'; default-src 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self'; worker-src 'none'; upgrade-insecure-requests; report-uri https://q.stripe.com/csp-violation?q=yOLawO6tJvDr4tq54pgOc4WdzEnWNujbhdOZn5mkUzKSjkahCddgFRmKumCkUwZehd1AfqppzBfKHb8R",
"Content-Type": "application/json",
"Date": "NORMALIZED DATETIME",
- "Idempotency-Key": "bd89dd3c-ca97-485e-b5a4-fb5457e24a64",
+ "Idempotency-Key": "f92e4a69-4e47-44f5-826a-e88a7fa66006",
"Original-Request": "req_NORMALIZED",
"Request-Id": "req_NORMALIZED",
"Server": "nginx",
"Strict-Transport-Security": "max-age=63072000; includeSubDomains; preload",
"Stripe-Should-Retry": "false",
- "Stripe-Version": "2025-09-30.clover",
+ "Stripe-Version": "2025-10-29.clover",
"Vary": "Origin",
"X-Stripe-Priority-Routing-Enabled": "true",
"X-Stripe-Routing-Context-Priority-Tier": "api-testmode",
"X-Wc": "ABGHIJ"
},
- "http_body": "{\n \"error\": {\n \"advice_code\": \"try_again_later\",\n \"code\": \"card_declined\",\n \"decline_code\": \"generic_decline\",\n \"doc_url\": \"https://stripe.com/docs/error-codes/card-declined\",\n \"message\": \"Your card was declined.\",\n \"network_decline_code\": \"01\",\n \"payment_method\": {\n \"id\": \"replace_payment_method--PaymentMethod.create.2.json\",\n \"object\": \"payment_method\",\n \"allow_redisplay\": \"unspecified\",\n \"billing_details\": {\n \"address\": {\n \"city\": \"San Francisco\",\n \"country\": \"US\",\n \"line1\": \"123 Main St\",\n \"line2\": null,\n \"postal_code\": \"94105\",\n \"state\": \"CA\"\n },\n \"email\": null,\n \"name\": \"John Doe\",\n \"phone\": null,\n \"tax_id\": null\n },\n \"card\": {\n \"brand\": \"visa\",\n \"checks\": {\n \"address_line1_check\": \"pass\",\n \"address_postal_code_check\": \"pass\",\n \"cvc_check\": \"pass\"\n },\n \"country\": \"US\",\n \"display_brand\": \"visa\",\n \"exp_month\": 10,\n \"exp_year\": 2026,\n \"fingerprint\": \"D5bwp1hJalF8jxeQ\",\n \"funding\": \"credit\",\n \"generated_from\": null,\n \"last4\": \"0002\",\n \"networks\": {\n \"available\": [\n \"visa\"\n ],\n \"preferred\": null\n },\n \"regulated_status\": \"unregulated\",\n \"three_d_secure_usage\": {\n \"supported\": true\n },\n \"wallet\": null\n },\n \"created\": 1000000000,\n \"customer\": null,\n \"livemode\": false,\n \"metadata\": {},\n \"type\": \"card\"\n },\n \"request_log_url\": \"https://dashboard.stripe.com/test/logs/req_NORMALIZED?t=1759913913\",\n \"setup_intent\": {\n \"id\": \"replace_payment_method--SetupIntent.create.2.json\",\n \"object\": \"setup_intent\",\n \"application\": null,\n \"automatic_payment_methods\": null,\n \"cancellation_reason\": null,\n \"client_secret\": \"replace_payment_method--SetupIntent.create.2.json_secret_TCHmLweCuH2mQ9rglUcLGXULYgxnPF3\",\n \"created\": 1000000000,\n \"customer\": \"cus_NORMALIZED\",\n \"description\": null,\n \"flow_directions\": null,\n \"last_setup_error\": {\n \"advice_code\": \"try_again_later\",\n \"code\": \"card_declined\",\n \"decline_code\": \"generic_decline\",\n \"doc_url\": \"https://stripe.com/docs/error-codes/card-declined\",\n \"message\": \"Your card was declined.\",\n \"network_decline_code\": \"01\",\n \"payment_method\": {\n \"id\": \"replace_payment_method--PaymentMethod.create.2.json\",\n \"object\": \"payment_method\",\n \"allow_redisplay\": \"unspecified\",\n \"billing_details\": {\n \"address\": {\n \"city\": \"San Francisco\",\n \"country\": \"US\",\n \"line1\": \"123 Main St\",\n \"line2\": null,\n \"postal_code\": \"94105\",\n \"state\": \"CA\"\n },\n \"email\": null,\n \"name\": \"John Doe\",\n \"phone\": null,\n \"tax_id\": null\n },\n \"card\": {\n \"brand\": \"visa\",\n \"checks\": {\n \"address_line1_check\": \"pass\",\n \"address_postal_code_check\": \"pass\",\n \"cvc_check\": \"pass\"\n },\n \"country\": \"US\",\n \"display_brand\": \"visa\",\n \"exp_month\": 10,\n \"exp_year\": 2026,\n \"fingerprint\": \"D5bwp1hJalF8jxeQ\",\n \"funding\": \"credit\",\n \"generated_from\": null,\n \"last4\": \"0002\",\n \"networks\": {\n \"available\": [\n \"visa\"\n ],\n \"preferred\": null\n },\n \"regulated_status\": \"unregulated\",\n \"three_d_secure_usage\": {\n \"supported\": true\n },\n \"wallet\": null\n },\n \"created\": 1000000000,\n \"customer\": null,\n \"livemode\": false,\n \"metadata\": {},\n \"type\": \"card\"\n },\n \"type\": \"card_error\"\n },\n \"latest_attempt\": \"setatt_NORMALIZED\",\n \"livemode\": false,\n \"mandate\": null,\n \"metadata\": {},\n \"next_action\": null,\n \"on_behalf_of\": null,\n \"payment_method\": null,\n \"payment_method_configuration_details\": null,\n \"payment_method_options\": {\n \"card\": {\n \"mandate_options\": null,\n \"network\": null,\n \"request_three_d_secure\": \"automatic\"\n }\n },\n \"payment_method_types\": [\n \"card\"\n ],\n \"single_use_mandate\": null,\n \"status\": \"requires_payment_method\",\n \"usage\": \"off_session\"\n },\n \"type\": \"card_error\"\n }\n}\n",
+ "http_body": "{\n \"error\": {\n \"advice_code\": \"try_again_later\",\n \"code\": \"card_declined\",\n \"decline_code\": \"generic_decline\",\n \"doc_url\": \"https://stripe.com/docs/error-codes/card-declined\",\n \"message\": \"Your card was declined.\",\n \"network_decline_code\": \"01\",\n \"payment_method\": {\n \"id\": \"replace_payment_method--PaymentMethod.create.2.json\",\n \"object\": \"payment_method\",\n \"allow_redisplay\": \"unspecified\",\n \"billing_details\": {\n \"address\": {\n \"city\": \"San Francisco\",\n \"country\": \"US\",\n \"line1\": \"123 Main St\",\n \"line2\": null,\n \"postal_code\": \"94105\",\n \"state\": \"CA\"\n },\n \"email\": null,\n \"name\": \"John Doe\",\n \"phone\": null,\n \"tax_id\": null\n },\n \"card\": {\n \"brand\": \"visa\",\n \"checks\": {\n \"address_line1_check\": \"pass\",\n \"address_postal_code_check\": \"pass\",\n \"cvc_check\": \"pass\"\n },\n \"country\": \"US\",\n \"display_brand\": \"visa\",\n \"exp_month\": 11,\n \"exp_year\": 2026,\n \"fingerprint\": \"D5bwp1hJalF8jxeQ\",\n \"funding\": \"credit\",\n \"generated_from\": null,\n \"last4\": \"0002\",\n \"networks\": {\n \"available\": [\n \"visa\"\n ],\n \"preferred\": null\n },\n \"regulated_status\": \"unregulated\",\n \"three_d_secure_usage\": {\n \"supported\": true\n },\n \"wallet\": null\n },\n \"created\": 1000000000,\n \"customer\": null,\n \"livemode\": false,\n \"metadata\": {},\n \"type\": \"card\"\n },\n \"request_log_url\": \"https://dashboard.stripe.com/test/logs/req_NORMALIZED?t=1762181248\",\n \"setup_intent\": {\n \"id\": \"replace_payment_method--SetupIntent.create.2.json\",\n \"object\": \"setup_intent\",\n \"application\": null,\n \"automatic_payment_methods\": null,\n \"cancellation_reason\": null,\n \"client_secret\": \"replace_payment_method--SetupIntent.create.2.json_secret_TM7HFlskOrbelKlCuTq9gmhlWW8GH3V\",\n \"created\": 1000000000,\n \"customer\": \"cus_NORMALIZED\",\n \"description\": null,\n \"excluded_payment_method_types\": null,\n \"flow_directions\": null,\n \"last_setup_error\": {\n \"advice_code\": \"try_again_later\",\n \"code\": \"card_declined\",\n \"decline_code\": \"generic_decline\",\n \"doc_url\": \"https://stripe.com/docs/error-codes/card-declined\",\n \"message\": \"Your card was declined.\",\n \"network_decline_code\": \"01\",\n \"payment_method\": {\n \"id\": \"replace_payment_method--PaymentMethod.create.2.json\",\n \"object\": \"payment_method\",\n \"allow_redisplay\": \"unspecified\",\n \"billing_details\": {\n \"address\": {\n \"city\": \"San Francisco\",\n \"country\": \"US\",\n \"line1\": \"123 Main St\",\n \"line2\": null,\n \"postal_code\": \"94105\",\n \"state\": \"CA\"\n },\n \"email\": null,\n \"name\": \"John Doe\",\n \"phone\": null,\n \"tax_id\": null\n },\n \"card\": {\n \"brand\": \"visa\",\n \"checks\": {\n \"address_line1_check\": \"pass\",\n \"address_postal_code_check\": \"pass\",\n \"cvc_check\": \"pass\"\n },\n \"country\": \"US\",\n \"display_brand\": \"visa\",\n \"exp_month\": 11,\n \"exp_year\": 2026,\n \"fingerprint\": \"D5bwp1hJalF8jxeQ\",\n \"funding\": \"credit\",\n \"generated_from\": null,\n \"last4\": \"0002\",\n \"networks\": {\n \"available\": [\n \"visa\"\n ],\n \"preferred\": null\n },\n \"regulated_status\": \"unregulated\",\n \"three_d_secure_usage\": {\n \"supported\": true\n },\n \"wallet\": null\n },\n \"created\": 1000000000,\n \"customer\": null,\n \"livemode\": false,\n \"metadata\": {},\n \"type\": \"card\"\n },\n \"type\": \"card_error\"\n },\n \"latest_attempt\": \"setatt_NORMALIZED\",\n \"livemode\": false,\n \"mandate\": null,\n \"metadata\": {},\n \"next_action\": null,\n \"on_behalf_of\": null,\n \"payment_method\": null,\n \"payment_method_configuration_details\": null,\n \"payment_method_options\": {\n \"card\": {\n \"mandate_options\": null,\n \"network\": null,\n \"request_three_d_secure\": \"automatic\"\n }\n },\n \"payment_method_types\": [\n \"card\"\n ],\n \"single_use_mandate\": null,\n \"status\": \"requires_payment_method\",\n \"usage\": \"off_session\"\n },\n \"type\": \"card_error\"\n }\n}\n",
"http_status": 402,
"json_body": {
"error": {
@@ -244,7 +245,7 @@
"object": "payment_method",
"type": "card"
},
- "request_log_url": "https://dashboard.stripe.com/test/logs/req_NORMALIZED?t=1759913913",
+ "request_log_url": "https://dashboard.stripe.com/test/logs/req_NORMALIZED?t=1762181248",
"setup_intent": {
"application": null,
"automatic_payment_methods": null,
@@ -253,6 +254,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "replace_payment_method--SetupIntent.create.2.json",
"last_setup_error": {
diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.create.3.json b/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.create.3.json
index 6aac177b093..512575fc433 100644
--- a/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.create.3.json
+++ b/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.create.3.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "replace_payment_method--SetupIntent.create.3.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.create.4.json b/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.create.4.json
index 74b8fd505cc..25e0781420e 100644
--- a/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.create.4.json
+++ b/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.create.4.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "replace_payment_method--SetupIntent.create.4.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.list.1.json
index 12e1162c39f..d1ee39b3934 100644
--- a/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.list.1.json
@@ -8,6 +8,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "replace_payment_method--SetupIntent.list.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.list.2.json b/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.list.2.json
index 99030bc9bc7..5716eef7c06 100644
--- a/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.list.2.json
+++ b/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.list.2.json
@@ -8,6 +8,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "replace_payment_method--SetupIntent.list.2.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.list.3.json b/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.list.3.json
index 010552b98a0..6fcfd46aa5a 100644
--- a/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.list.3.json
+++ b/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.list.3.json
@@ -8,6 +8,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "replace_payment_method--SetupIntent.list.3.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.list.4.json b/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.list.4.json
index 49fc1dc264e..71f699f4e7e 100644
--- a/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.list.4.json
+++ b/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.list.4.json
@@ -8,6 +8,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "replace_payment_method--SetupIntent.list.4.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.retrieve.1.json
index dcf0132bc10..98531a6e8bf 100644
--- a/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.retrieve.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "replace_payment_method--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.retrieve.2.json b/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.retrieve.2.json
index 6aac177b093..512575fc433 100644
--- a/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.retrieve.2.json
+++ b/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.retrieve.2.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "replace_payment_method--SetupIntent.create.3.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.retrieve.3.json b/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.retrieve.3.json
index 74b8fd505cc..25e0781420e 100644
--- a/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.retrieve.3.json
+++ b/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.retrieve.3.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "replace_payment_method--SetupIntent.create.4.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.create.1.json b/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.create.1.json
index 780042445c5..d33c4cb8bc6 100644
--- a/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.create.1.json
+++ b/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.create.1.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.create.1.json",
@@ -19,7 +19,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.modify.1.json b/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.modify.1.json
index 3a954bf6f55..0a72f031b62 100644
--- a/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.modify.1.json
+++ b/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.modify.1.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.create.1.json",
@@ -19,7 +19,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.retrieve.1.json
index 917710de24b..d8c00bcdc91 100644
--- a/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.retrieve.1.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.retrieve.2.json
index 917710de24b..d8c00bcdc91 100644
--- a/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.retrieve.2.json
+++ b/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.retrieve.2.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.retrieve.3.json
index 917710de24b..d8c00bcdc91 100644
--- a/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.retrieve.3.json
+++ b/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.retrieve.3.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.retrieve.4.json
index 917710de24b..d8c00bcdc91 100644
--- a/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.retrieve.4.json
+++ b/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.retrieve.4.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.retrieve.5.json
index 917710de24b..d8c00bcdc91 100644
--- a/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.retrieve.5.json
+++ b/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.retrieve.5.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--SetupIntent.create.1.json
index 80fdf174a60..281cded8f14 100644
--- a/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--SetupIntent.create.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--SetupIntent.list.1.json
index b402d705232..863f0f2d991 100644
--- a/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--SetupIntent.list.1.json
@@ -8,6 +8,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--SetupIntent.list.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--SetupIntent.retrieve.1.json
index 80fdf174a60..281cded8f14 100644
--- a/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--SetupIntent.retrieve.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--checkout.Session.create.1.json
index f7dafa16d35..d20868fa27b 100644
--- a/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--checkout.Session.create.1.json
+++ b/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--checkout.Session.create.1.json
@@ -28,7 +28,7 @@
"type": "file"
}
},
- "cancel_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/upgrade/?manual_license_management=false&tier=1",
+ "cancel_url": "http://selfhosting.testserver/realm/9c36daef-29ed-478d-a237-26a7dec0f4ee/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"collected_information": {
@@ -101,7 +101,7 @@
"status": "open",
"submit_type": null,
"subscription": null,
- "success_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
+ "success_url": "http://selfhosting.testserver/realm/9c36daef-29ed-478d-a237-26a7dec0f4ee/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
"url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED",
diff --git a/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--checkout.Session.list.1.json
index 0570a461565..1f7944ec053 100644
--- a/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--checkout.Session.list.1.json
+++ b/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--checkout.Session.list.1.json
@@ -30,7 +30,7 @@
"type": "file"
}
},
- "cancel_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/upgrade/?manual_license_management=false&tier=1",
+ "cancel_url": "http://selfhosting.testserver/realm/9c36daef-29ed-478d-a237-26a7dec0f4ee/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"collected_information": {
@@ -103,7 +103,7 @@
"status": "open",
"submit_type": null,
"subscription": null,
- "success_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
+ "success_url": "http://selfhosting.testserver/realm/9c36daef-29ed-478d-a237-26a7dec0f4ee/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
"url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED",
diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.create.1.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.create.1.json
index b72ea85b07f..7f25b3e4c0a 100644
--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.create.1.json
+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.create.1.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.create.1.json",
@@ -19,7 +19,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.modify.1.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.modify.1.json
index 56aa3bcc595..4964251615b 100644
--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.modify.1.json
+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.modify.1.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.create.1.json",
@@ -19,7 +19,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.retrieve.1.json
index 201616ea55c..ec8fdc5c1fb 100644
--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.retrieve.1.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.retrieve.2.json
index 201616ea55c..ec8fdc5c1fb 100644
--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.retrieve.2.json
+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.retrieve.2.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.retrieve.3.json
index 201616ea55c..ec8fdc5c1fb 100644
--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.retrieve.3.json
+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.retrieve.3.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.retrieve.4.json
index 201616ea55c..ec8fdc5c1fb 100644
--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.retrieve.4.json
+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.retrieve.4.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.retrieve.5.json
index 201616ea55c..ec8fdc5c1fb 100644
--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.retrieve.5.json
+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.retrieve.5.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.1.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.1.json
index 72998735df0..19c21af96d6 100644
--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.1.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -11,7 +11,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.create.1.json",
@@ -25,7 +25,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.2.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.2.json
index 0df9ce22142..dff7cdd9952 100644
--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.2.json
+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.2.json
@@ -1,169 +1,26 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
- "account_country": "US",
- "account_name": "NORMALIZED",
- "account_tax_ids": null,
- "amount_due": 10000,
- "amount_overpaid": 0,
- "amount_paid": 10000,
- "amount_remaining": 0,
- "amount_shipping": 0,
- "application": null,
- "attempt_count": 1,
- "attempted": true,
- "auto_advance": false,
- "automatic_tax": {
- "disabled_reason": null,
- "enabled": false,
- "liability": null,
- "provider": null,
- "status": null
- },
- "automatically_finalizes_at": null,
- "billing_reason": "manual",
- "collection_method": "charge_automatically",
+ "amount_paid": null,
+ "amount_requested": 10000,
"created": 1000000000,
"currency": "usd",
- "custom_fields": null,
- "customer": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.create.1.json",
- "customer_address": null,
- "customer_email": "[email protected]",
- "customer_name": null,
- "customer_phone": null,
- "customer_shipping": null,
- "customer_tax_exempt": "none",
- "customer_tax_ids": [],
- "default_payment_method": null,
- "default_source": null,
- "default_tax_rates": [],
- "description": null,
- "discounts": [],
- "due_date": null,
- "effective_at": 1000000000,
- "ending_balance": 0,
- "footer": null,
- "from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
"id": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.2.json",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
- "issuer": {
- "type": "self"
- },
- "last_finalization_error": null,
- "latest_revision": null,
- "lines": {
- "data": [
- {
- "amount": 10000,
- "currency": "usd",
- "description": "Zulip Basic",
- "discount_amounts": [],
- "discountable": false,
- "discounts": [],
- "id": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.2.json",
- "invoice": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.2.json",
- "livemode": false,
- "metadata": {},
- "object": "line_item",
- "parent": {
- "invoice_item_details": {
- "invoice_item": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.2.json",
- "proration": false,
- "proration_details": {
- "credited_items": null
- },
- "subscription": null
- },
- "subscription_item_details": null,
- "type": "invoice_item_details"
- },
- "period": {
- "end": 1357095845,
- "start": 1325473445
- },
- "pretax_credit_amounts": [],
- "pricing": {
- "price_details": {
- "price": "price_NORMALIZED",
- "product": "prod_NORMALIZED"
- },
- "type": "price_details",
- "unit_amount_decimal": "10000"
- },
- "quantity": 1,
- "taxes": []
- }
- ],
- "has_more": false,
- "object": "list",
- "total_count": 1,
- "url": "/v1/invoices/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.2.json/lines"
- },
+ "invoice": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.2.json",
+ "is_default": true,
"livemode": false,
- "metadata": {
- "billing_schedule": "2",
- "current_plan_id": "None",
- "license_management": "automatic",
- "licenses": "11",
- "on_free_trial": "False",
- "plan_tier": "103"
- },
- "next_payment_attempt": null,
- "number": "NORMALIZED",
- "object": "invoice",
- "on_behalf_of": null,
- "parent": null,
- "payment_settings": {
- "default_mandate": null,
- "payment_method_options": null,
- "payment_method_types": null
- },
- "period_end": 1000000000,
- "period_start": 1000000000,
- "post_payment_credit_notes_amount": 0,
- "pre_payment_credit_notes_amount": 0,
- "receipt_number": null,
- "rendering": {
- "amount_tax_display": null,
- "pdf": {
- "page_size": "letter"
- },
- "template": null,
- "template_version": null
- },
- "shipping_cost": null,
- "shipping_details": null,
- "starting_balance": 0,
- "statement_descriptor": "Zulip Basic",
- "status": "paid",
- "status_transitions": {
- "finalized_at": 1000000000,
- "marked_uncollectible_at": null,
- "paid_at": 1000000000,
- "voided_at": null
+ "object": "invoice_payment",
+ "payment": {
+ "payment_intent": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.2.json",
+ "type": "payment_intent"
},
- "subtotal": 10000,
- "subtotal_excluding_tax": 10000,
- "test_clock": null,
- "total": 10000,
- "total_discount_amounts": [],
- "total_excluding_tax": 10000,
- "total_pretax_credit_amounts": [],
- "total_taxes": [],
- "webhooks_delivered_at": 1000000000
- },
- "previous_attributes": {
- "amount_paid": 0,
- "amount_remaining": 10000,
- "attempt_count": 0,
- "attempted": false,
"status": "open",
"status_transitions": {
+ "canceled_at": null,
"paid_at": null
}
}
@@ -171,15 +28,15 @@
"id": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 2,
+ "pending_webhooks": 0,
"request": {
"id": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "invoice.updated"
+ "type": "invoice_payment.paid"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -204,12 +61,16 @@
"excluded_payment_method_types": null,
"id": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.2.json",
"last_payment_error": null,
- "latest_charge": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.2.json",
+ "latest_charge": "ch_NORMALIZED",
"livemode": false,
"metadata": {},
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
+ "payment_details": {
+ "customer_reference": null,
+ "order_reference": "in_1SPP8ZRVfKEFJaqc7JjZzz"
+ },
"payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
"payment_method_options": {
@@ -243,7 +104,7 @@
"id": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
"id": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -251,134 +112,7 @@
"type": "payment_intent.succeeded"
},
{
- "api_version": "2025-09-30.clover",
- "created": 1000000000,
- "data": {
- "object": {
- "amount": 10000,
- "amount_captured": 10000,
- "amount_refunded": 0,
- "application": null,
- "application_fee": null,
- "application_fee_amount": null,
- "balance_transaction": "txn_NORMALIZED",
- "billing_details": {
- "address": {
- "city": "San Francisco",
- "country": "US",
- "line1": "123 Main St",
- "line2": null,
- "postal_code": "12345",
- "state": "CA"
- },
- "email": null,
- "name": "John Doe",
- "phone": null,
- "tax_id": null
- },
- "calculated_statement_descriptor": "ZULIP BASIC",
- "captured": true,
- "created": 1000000000,
- "currency": "usd",
- "customer": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.create.1.json",
- "description": "Payment for Invoice",
- "destination": null,
- "dispute": null,
- "disputed": false,
- "failure_balance_transaction": null,
- "failure_code": null,
- "failure_message": null,
- "fraud_details": {},
- "id": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.2.json",
- "livemode": false,
- "metadata": {},
- "object": "charge",
- "on_behalf_of": null,
- "order": null,
- "outcome": {
- "advice_code": null,
- "network_advice_code": null,
- "network_decline_code": null,
- "network_status": "approved_by_network",
- "reason": null,
- "risk_level": "normal",
- "risk_score": 0,
- "seller_message": "Payment complete.",
- "type": "authorized"
- },
- "paid": true,
- "payment_intent": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.2.json",
- "payment_method": "pm_NORMALIZED",
- "payment_method_details": {
- "card": {
- "amount_authorized": 10000,
- "authorization_code": "969509",
- "brand": "visa",
- "checks": {
- "address_line1_check": "pass",
- "address_postal_code_check": "pass",
- "cvc_check": "pass"
- },
- "country": "US",
- "exp_month": 1,
- "exp_year": 9999,
- "extended_authorization": {
- "status": "disabled"
- },
- "fingerprint": "NORMALIZED",
- "funding": "credit",
- "incremental_authorization": {
- "status": "unavailable"
- },
- "installments": null,
- "last4": "4242",
- "mandate": null,
- "multicapture": {
- "status": "unavailable"
- },
- "network": "visa",
- "network_token": {
- "used": false
- },
- "network_transaction_id": "100110997670110",
- "overcapture": {
- "maximum_amount_capturable": 10000,
- "status": "unavailable"
- },
- "regulated_status": "unregulated",
- "three_d_secure": null,
- "wallet": null
- },
- "type": "card"
- },
- "radar_options": {},
- "receipt_email": "[email protected]",
- "receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/invoices/NORMALIZED?s=ap",
- "refunded": false,
- "review": null,
- "shipping": null,
- "source": null,
- "source_transfer": null,
- "statement_descriptor": "Zulip Basic",
- "statement_descriptor_suffix": null,
- "status": "succeeded",
- "transfer_data": null,
- "transfer_group": null
- }
- },
- "id": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.2.json",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 0,
- "request": {
- "id": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.2.json",
- "idempotency_key": "00000000-0000-0000-0000-000000000000"
- },
- "type": "charge.succeeded"
- },
- {
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -532,7 +266,7 @@
"total_excluding_tax": 10000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
},
"id": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.2.json",
@@ -546,7 +280,7 @@
"type": "invoice.finalized"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -700,7 +434,7 @@
"total_excluding_tax": 10000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
},
"previous_attributes": {
"effective_at": null,
@@ -730,7 +464,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -802,7 +536,7 @@
"type": "payment_intent.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -956,7 +690,7 @@
"total_excluding_tax": 10000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
},
"previous_attributes": {
"amount_due": 0,
@@ -982,7 +716,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1029,7 +763,7 @@
"type": "invoiceitem.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1156,7 +890,7 @@
"type": "invoice.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1166,7 +900,7 @@
"currency": "usd",
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.create.1.json",
@@ -1180,7 +914,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
@@ -1206,7 +940,7 @@
"type": "customer.updated"
}
],
- "has_more": true,
+ "has_more": false,
"object": "list",
"url": "/v1/events"
}
diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.3.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.3.json
index 07aa9f232b7..99e24c9230f 100644
--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.3.json
+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.3.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -155,13 +155,13 @@
"total_excluding_tax": 10000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
},
"id": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.3.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
"id": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -169,7 +169,7 @@
"type": "invoice.payment_succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -323,18 +323,196 @@
"total_excluding_tax": 10000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
},
"id": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.3.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
"id": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "invoice.paid"
+ },
+ {
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "account_country": "US",
+ "account_name": "NORMALIZED",
+ "account_tax_ids": null,
+ "amount_due": 10000,
+ "amount_overpaid": 0,
+ "amount_paid": 10000,
+ "amount_remaining": 0,
+ "amount_shipping": 0,
+ "application": null,
+ "attempt_count": 1,
+ "attempted": true,
+ "auto_advance": false,
+ "automatic_tax": {
+ "disabled_reason": null,
+ "enabled": false,
+ "liability": null,
+ "provider": null,
+ "status": null
+ },
+ "automatically_finalizes_at": null,
+ "billing_reason": "manual",
+ "collection_method": "charge_automatically",
+ "created": 1000000000,
+ "currency": "usd",
+ "custom_fields": null,
+ "customer": "cus_NORMALIZED",
+ "customer_address": null,
+ "customer_email": "[email protected]",
+ "customer_name": null,
+ "customer_phone": null,
+ "customer_shipping": null,
+ "customer_tax_exempt": "none",
+ "customer_tax_ids": [],
+ "default_payment_method": null,
+ "default_source": null,
+ "default_tax_rates": [],
+ "description": null,
+ "discounts": [],
+ "due_date": null,
+ "effective_at": 1000000000,
+ "ending_balance": 0,
+ "footer": null,
+ "from_invoice": null,
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
+ "id": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.2.json",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
+ "issuer": {
+ "type": "self"
+ },
+ "last_finalization_error": null,
+ "latest_revision": null,
+ "lines": {
+ "data": [
+ {
+ "amount": 10000,
+ "currency": "usd",
+ "description": "Zulip Basic",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.2.json",
+ "invoice": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.2.json",
+ "livemode": false,
+ "metadata": {},
+ "object": "line_item",
+ "parent": {
+ "invoice_item_details": {
+ "invoice_item": "ii_NORMALIZED",
+ "proration": false,
+ "proration_details": {
+ "credited_items": null
+ },
+ "subscription": null
+ },
+ "subscription_item_details": null,
+ "type": "invoice_item_details"
+ },
+ "period": {
+ "end": 1357095845,
+ "start": 1325473445
+ },
+ "pretax_credit_amounts": [],
+ "pricing": {
+ "price_details": {
+ "price": "price_NORMALIZED",
+ "product": "prod_NORMALIZED"
+ },
+ "type": "price_details",
+ "unit_amount_decimal": "10000"
+ },
+ "quantity": 1,
+ "taxes": []
+ }
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 1,
+ "url": "/v1/invoices/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.2.json/lines"
+ },
+ "livemode": false,
+ "metadata": {
+ "billing_schedule": "2",
+ "current_plan_id": "None",
+ "license_management": "automatic",
+ "licenses": "11",
+ "on_free_trial": "False",
+ "plan_tier": "103"
+ },
+ "next_payment_attempt": null,
+ "number": "NORMALIZED",
+ "object": "invoice",
+ "on_behalf_of": null,
+ "parent": null,
+ "payment_settings": {
+ "default_mandate": null,
+ "payment_method_options": null,
+ "payment_method_types": null
+ },
+ "period_end": 1000000000,
+ "period_start": 1000000000,
+ "post_payment_credit_notes_amount": 0,
+ "pre_payment_credit_notes_amount": 0,
+ "receipt_number": null,
+ "rendering": {
+ "amount_tax_display": null,
+ "pdf": {
+ "page_size": "letter"
+ },
+ "template": null,
+ "template_version": null
+ },
+ "shipping_cost": null,
+ "shipping_details": null,
+ "starting_balance": 0,
+ "statement_descriptor": "Zulip Basic",
+ "status": "paid",
+ "status_transitions": {
+ "finalized_at": 1000000000,
+ "marked_uncollectible_at": null,
+ "paid_at": 1000000000,
+ "voided_at": null
+ },
+ "subtotal": 10000,
+ "subtotal_excluding_tax": 10000,
+ "test_clock": null,
+ "total": 10000,
+ "total_discount_amounts": [],
+ "total_excluding_tax": 10000,
+ "total_pretax_credit_amounts": [],
+ "total_taxes": [],
+ "webhooks_delivered_at": null
+ },
+ "previous_attributes": {
+ "amount_paid": 0,
+ "amount_remaining": 10000,
+ "attempt_count": 0,
+ "attempted": false,
+ "status": "open",
+ "status_transitions": {
+ "paid_at": null
+ }
+ }
+ },
+ "id": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.3.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 2,
+ "request": {
+ "id": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.2.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ },
+ "type": "invoice.updated"
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.1.json
index 3cacbe33f70..487a4011007 100644
--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.1.json
+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.1.json
@@ -149,5 +149,5 @@
"total_excluding_tax": 10000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.11.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.11.json
index 1edc8a98ce4..8c8e8897770 100644
--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.11.json
+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.11.json
@@ -142,5 +142,5 @@
"total_excluding_tax": 10000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.12.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.12.json
index 97cdfbe4418..8cfef25b142 100644
--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.12.json
+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.12.json
@@ -142,5 +142,5 @@
"total_excluding_tax": 10000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.2.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.2.json
index 52fcb3aded0..a0003166850 100644
--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.2.json
+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.2.json
@@ -142,5 +142,5 @@
"total_excluding_tax": 10000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.5.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.5.json
index 0fa75fe9b7f..ffe718d9995 100644
--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.5.json
+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.5.json
@@ -142,5 +142,5 @@
"total_excluding_tax": 10000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.7.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.7.json
index 0e70661f358..28fb9bca54c 100644
--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.7.json
+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.7.json
@@ -142,5 +142,5 @@
"total_excluding_tax": 10000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.pay.1.json
index 0270e579fb7..80d8af47809 100644
--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.pay.1.json
+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.pay.1.json
@@ -149,5 +149,5 @@
"total_excluding_tax": 10000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--SetupIntent.create.1.json
index c7a1a1618a8..28f8e063fab 100644
--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--SetupIntent.create.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--SetupIntent.list.1.json
index 46c8baf83e3..c22d3048c89 100644
--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--SetupIntent.list.1.json
@@ -8,6 +8,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--SetupIntent.list.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--SetupIntent.retrieve.1.json
index c7a1a1618a8..28f8e063fab 100644
--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--SetupIntent.retrieve.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--checkout.Session.create.1.json
index 1b054e18d55..b24dd29fac2 100644
--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--checkout.Session.create.1.json
+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--checkout.Session.create.1.json
@@ -28,7 +28,7 @@
"type": "file"
}
},
- "cancel_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/upgrade/?manual_license_management=false&tier=1",
+ "cancel_url": "http://selfhosting.testserver/realm/9c36daef-29ed-478d-a237-26a7dec0f4ee/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"collected_information": {
@@ -101,7 +101,7 @@
"status": "open",
"submit_type": null,
"subscription": null,
- "success_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
+ "success_url": "http://selfhosting.testserver/realm/9c36daef-29ed-478d-a237-26a7dec0f4ee/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
"url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED",
diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--checkout.Session.list.1.json
index 23406852350..e29d9b0f955 100644
--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--checkout.Session.list.1.json
+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--checkout.Session.list.1.json
@@ -30,7 +30,7 @@
"type": "file"
}
},
- "cancel_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/upgrade/?manual_license_management=false&tier=1",
+ "cancel_url": "http://selfhosting.testserver/realm/9c36daef-29ed-478d-a237-26a7dec0f4ee/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"collected_information": {
@@ -103,7 +103,7 @@
"status": "open",
"submit_type": null,
"subscription": null,
- "success_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
+ "success_url": "http://selfhosting.testserver/realm/9c36daef-29ed-478d-a237-26a7dec0f4ee/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
"url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED",
diff --git a/corporate/tests/stripe_fixtures/schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--SetupIntent.create.1.json
index f284d758654..34733dfdb2d 100644
--- a/corporate/tests/stripe_fixtures/schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--SetupIntent.create.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--SetupIntent.list.1.json
index ec2c7447f44..69b8df66eba 100644
--- a/corporate/tests/stripe_fixtures/schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--SetupIntent.list.1.json
@@ -8,6 +8,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--SetupIntent.list.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--SetupIntent.retrieve.1.json
index f284d758654..34733dfdb2d 100644
--- a/corporate/tests/stripe_fixtures/schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--SetupIntent.retrieve.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Event.list.1.json b/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Event.list.1.json
index eefa42e5b69..50807921868 100644
--- a/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Event.list.1.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
diff --git a/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Event.list.2.json b/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Event.list.2.json
index 7dbdfb97e8e..80dae79d3f7 100644
--- a/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Event.list.2.json
+++ b/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Event.list.2.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -62,7 +62,7 @@
"payment_method_details": {
"card": {
"amount_authorized": 51600,
- "authorization_code": "221320",
+ "authorization_code": "918087",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
@@ -120,7 +120,7 @@
"id": "schedule_server_upgrade_to_fixed_price_business_plan--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
"id": "schedule_server_upgrade_to_fixed_price_business_plan--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -128,7 +128,7 @@
"type": "charge.succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -322,7 +322,7 @@
"total_excluding_tax": 51600,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
},
"id": "schedule_server_upgrade_to_fixed_price_business_plan--Event.list.2.json",
@@ -336,7 +336,7 @@
"type": "invoice.finalized"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -530,7 +530,7 @@
"total_excluding_tax": 51600,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
},
"previous_attributes": {
"effective_at": null,
@@ -560,7 +560,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -632,7 +632,7 @@
"type": "payment_intent.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -826,7 +826,7 @@
"total_excluding_tax": 51600,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
},
"previous_attributes": {
"amount_due": 75600,
@@ -893,7 +893,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -940,7 +940,7 @@
"type": "invoiceitem.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1094,7 +1094,7 @@
"total_excluding_tax": 75600,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
},
"previous_attributes": {
"amount_due": 0,
@@ -1120,7 +1120,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1167,7 +1167,7 @@
"type": "invoiceitem.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1294,7 +1294,7 @@
"type": "invoice.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
diff --git a/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Event.list.3.json b/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Event.list.3.json
index 8c28a0c72a4..227072ff44c 100644
--- a/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Event.list.3.json
+++ b/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Event.list.3.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -195,13 +195,13 @@
"total_excluding_tax": 51600,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
},
"id": "schedule_server_upgrade_to_fixed_price_business_plan--Event.list.3.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
"id": "schedule_server_upgrade_to_fixed_price_business_plan--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -209,7 +209,7 @@
"type": "invoice.payment_succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -403,13 +403,13 @@
"total_excluding_tax": 51600,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
},
"id": "schedule_server_upgrade_to_fixed_price_business_plan--Event.list.3.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
"id": "schedule_server_upgrade_to_fixed_price_business_plan--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -417,7 +417,7 @@
"type": "invoice.paid"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -611,7 +611,7 @@
"total_excluding_tax": 51600,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
},
"previous_attributes": {
"amount_paid": 0,
@@ -627,7 +627,7 @@
"id": "schedule_server_upgrade_to_fixed_price_business_plan--Event.list.3.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
"id": "schedule_server_upgrade_to_fixed_price_business_plan--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -635,7 +635,42 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount_paid": null,
+ "amount_requested": 51600,
+ "created": 1000000000,
+ "currency": "usd",
+ "id": "schedule_server_upgrade_to_fixed_price_business_plan--Event.list.3.json",
+ "invoice": "schedule_server_upgrade_to_fixed_price_business_plan--Event.list.2.json",
+ "is_default": true,
+ "livemode": false,
+ "object": "invoice_payment",
+ "payment": {
+ "payment_intent": "schedule_server_upgrade_to_fixed_price_business_plan--Event.list.2.json",
+ "type": "payment_intent"
+ },
+ "status": "open",
+ "status_transitions": {
+ "canceled_at": null,
+ "paid_at": null
+ }
+ }
+ },
+ "id": "schedule_server_upgrade_to_fixed_price_business_plan--Event.list.3.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 1,
+ "request": {
+ "id": "schedule_server_upgrade_to_fixed_price_business_plan--Event.list.2.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ },
+ "type": "invoice_payment.paid"
+ },
+ {
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -666,6 +701,10 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
+ "payment_details": {
+ "customer_reference": null,
+ "order_reference": "in_1SPPCbRVfKEFJaqcK8qERq"
+ },
"payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
"payment_method_options": {
diff --git a/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Invoice.finalize_invoice.1.json
index 8ed0e450d36..fdfe4b10192 100644
--- a/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Invoice.finalize_invoice.1.json
+++ b/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Invoice.finalize_invoice.1.json
@@ -189,5 +189,5 @@
"total_excluding_tax": 51600,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
diff --git a/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Invoice.pay.1.json
index f66fa5d2cf1..5d2a6826b82 100644
--- a/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Invoice.pay.1.json
+++ b/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Invoice.pay.1.json
@@ -189,5 +189,5 @@
"total_excluding_tax": 51600,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
diff --git a/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--SetupIntent.create.1.json
index 759637867e9..cb483598633 100644
--- a/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--SetupIntent.create.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "schedule_server_upgrade_to_fixed_price_business_plan--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--SetupIntent.list.1.json
index 99af2dc99b1..562ba8f9f02 100644
--- a/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--SetupIntent.list.1.json
@@ -8,6 +8,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "schedule_server_upgrade_to_fixed_price_business_plan--SetupIntent.list.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--SetupIntent.retrieve.1.json
index 759637867e9..cb483598633 100644
--- a/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--SetupIntent.retrieve.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "schedule_server_upgrade_to_fixed_price_business_plan--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.create.1.json b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.create.1.json
index 78659b84ddd..474c40cd664 100644
--- a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.create.1.json
+++ b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.create.1.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "schedule_upgrade_to_fixed_price_annual_business_plan--Customer.create.1.json",
@@ -19,7 +19,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.modify.1.json b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.modify.1.json
index 06c7f5437fc..11f4221c750 100644
--- a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.modify.1.json
+++ b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.modify.1.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "schedule_upgrade_to_fixed_price_annual_business_plan--Customer.create.1.json",
@@ -19,7 +19,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.retrieve.1.json
index f4f12a5c636..c05808356b4 100644
--- a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.retrieve.1.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "schedule_upgrade_to_fixed_price_annual_business_plan--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.retrieve.2.json
index f4f12a5c636..c05808356b4 100644
--- a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.retrieve.2.json
+++ b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.retrieve.2.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "schedule_upgrade_to_fixed_price_annual_business_plan--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.retrieve.3.json
index f4f12a5c636..c05808356b4 100644
--- a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.retrieve.3.json
+++ b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.retrieve.3.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "schedule_upgrade_to_fixed_price_annual_business_plan--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.retrieve.4.json
index f4f12a5c636..c05808356b4 100644
--- a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.retrieve.4.json
+++ b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.retrieve.4.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "schedule_upgrade_to_fixed_price_annual_business_plan--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.retrieve.5.json
index f4f12a5c636..c05808356b4 100644
--- a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.retrieve.5.json
+++ b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.retrieve.5.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "schedule_upgrade_to_fixed_price_annual_business_plan--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.retrieve.6.json b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.retrieve.6.json
index 7b7cc687f4b..c8f4fae65fe 100644
--- a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.retrieve.6.json
+++ b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.retrieve.6.json
@@ -5,7 +5,7 @@
"currency": "usd",
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "schedule_upgrade_to_fixed_price_annual_business_plan--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 3,
diff --git a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Event.list.1.json b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Event.list.1.json
index e251fb4a2e6..3c383f811fc 100644
--- a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Event.list.1.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -11,7 +11,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "schedule_upgrade_to_fixed_price_annual_business_plan--Customer.create.1.json",
@@ -25,7 +25,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Event.list.2.json b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Event.list.2.json
index 82d238236bb..3ebb0dcd4c4 100644
--- a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Event.list.2.json
+++ b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Event.list.2.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -62,7 +62,7 @@
"payment_method_details": {
"card": {
"amount_authorized": 22200,
- "authorization_code": "287609",
+ "authorization_code": "799814",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
@@ -120,7 +120,7 @@
"id": "schedule_upgrade_to_fixed_price_annual_business_plan--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
"id": "schedule_upgrade_to_fixed_price_annual_business_plan--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -128,7 +128,7 @@
"type": "charge.succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -336,7 +336,7 @@
"type": "invoice.finalized"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -560,7 +560,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -632,7 +632,7 @@
"type": "payment_intent.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -893,7 +893,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -940,7 +940,7 @@
"type": "invoiceitem.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1094,7 +1094,7 @@
"total_excluding_tax": 46200,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"amount_due": 0,
@@ -1120,7 +1120,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1167,7 +1167,7 @@
"type": "invoiceitem.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1294,7 +1294,7 @@
"type": "invoice.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1304,7 +1304,7 @@
"currency": "usd",
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "schedule_upgrade_to_fixed_price_annual_business_plan--Customer.create.1.json",
@@ -1318,7 +1318,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Event.list.3.json b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Event.list.3.json
index 222f981ed5c..33036a98a9a 100644
--- a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Event.list.3.json
+++ b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Event.list.3.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -209,7 +209,7 @@
"type": "invoice.payment_succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -417,7 +417,7 @@
"type": "invoice.paid"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -635,7 +635,42 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount_paid": null,
+ "amount_requested": 22200,
+ "created": 1000000000,
+ "currency": "usd",
+ "id": "schedule_upgrade_to_fixed_price_annual_business_plan--Event.list.3.json",
+ "invoice": "schedule_upgrade_to_fixed_price_annual_business_plan--Event.list.2.json",
+ "is_default": true,
+ "livemode": false,
+ "object": "invoice_payment",
+ "payment": {
+ "payment_intent": "schedule_upgrade_to_fixed_price_annual_business_plan--Event.list.2.json",
+ "type": "payment_intent"
+ },
+ "status": "open",
+ "status_transitions": {
+ "canceled_at": null,
+ "paid_at": null
+ }
+ }
+ },
+ "id": "schedule_upgrade_to_fixed_price_annual_business_plan--Event.list.3.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "schedule_upgrade_to_fixed_price_annual_business_plan--Event.list.2.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ },
+ "type": "invoice_payment.paid"
+ },
+ {
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -666,6 +701,10 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
+ "payment_details": {
+ "customer_reference": null,
+ "order_reference": "in_1SPP9LRVfKEFJaqc81qAX2"
+ },
"payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
"payment_method_options": {
diff --git a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--SetupIntent.create.1.json
index 8f03136ec99..1c20a79d661 100644
--- a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--SetupIntent.create.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "schedule_upgrade_to_fixed_price_annual_business_plan--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--SetupIntent.list.1.json
index 6da867165eb..0a97152944c 100644
--- a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--SetupIntent.list.1.json
@@ -8,6 +8,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "schedule_upgrade_to_fixed_price_annual_business_plan--SetupIntent.list.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--SetupIntent.retrieve.1.json
index 8f03136ec99..1c20a79d661 100644
--- a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--SetupIntent.retrieve.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "schedule_upgrade_to_fixed_price_annual_business_plan--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--checkout.Session.create.1.json
index 070861b6953..e9e92a4dc42 100644
--- a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--checkout.Session.create.1.json
+++ b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--checkout.Session.create.1.json
@@ -28,7 +28,7 @@
"type": "file"
}
},
- "cancel_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/upgrade/?manual_license_management=false&tier=1",
+ "cancel_url": "http://selfhosting.testserver/realm/9c36daef-29ed-478d-a237-26a7dec0f4ee/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"collected_information": {
@@ -101,7 +101,7 @@
"status": "open",
"submit_type": null,
"subscription": null,
- "success_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
+ "success_url": "http://selfhosting.testserver/realm/9c36daef-29ed-478d-a237-26a7dec0f4ee/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
"url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED",
diff --git a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--checkout.Session.list.1.json
index b05e617b498..841883ca859 100644
--- a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--checkout.Session.list.1.json
+++ b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--checkout.Session.list.1.json
@@ -30,7 +30,7 @@
"type": "file"
}
},
- "cancel_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/upgrade/?manual_license_management=false&tier=1",
+ "cancel_url": "http://selfhosting.testserver/realm/9c36daef-29ed-478d-a237-26a7dec0f4ee/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"collected_information": {
@@ -103,7 +103,7 @@
"status": "open",
"submit_type": null,
"subscription": null,
- "success_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
+ "success_url": "http://selfhosting.testserver/realm/9c36daef-29ed-478d-a237-26a7dec0f4ee/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
"url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED",
diff --git a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Event.list.1.json b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Event.list.1.json
index 86b97497db3..67bb87b43e7 100644
--- a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Event.list.1.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
diff --git a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Event.list.2.json b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Event.list.2.json
index 2eea884c4e7..4c0919323c3 100644
--- a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Event.list.2.json
+++ b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Event.list.2.json
@@ -1,7 +1,42 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount_paid": null,
+ "amount_requested": 48000,
+ "created": 1000000000,
+ "currency": "usd",
+ "id": "sponsorship_access_for_realms_on_paid_plan--Event.list.2.json",
+ "invoice": "sponsorship_access_for_realms_on_paid_plan--Event.list.2.json",
+ "is_default": true,
+ "livemode": false,
+ "object": "invoice_payment",
+ "payment": {
+ "payment_intent": "sponsorship_access_for_realms_on_paid_plan--Event.list.2.json",
+ "type": "payment_intent"
+ },
+ "status": "open",
+ "status_transitions": {
+ "canceled_at": null,
+ "paid_at": null
+ }
+ }
+ },
+ "id": "sponsorship_access_for_realms_on_paid_plan--Event.list.2.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "sponsorship_access_for_realms_on_paid_plan--Event.list.2.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ },
+ "type": "invoice_payment.paid"
+ },
+ {
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -32,6 +67,10 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
+ "payment_details": {
+ "customer_reference": null,
+ "order_reference": "in_1SPP2zRVfKEFJaqcW6zwjA"
+ },
"payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
"payment_method_options": {
@@ -65,7 +104,7 @@
"id": "sponsorship_access_for_realms_on_paid_plan--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 1,
"request": {
"id": "sponsorship_access_for_realms_on_paid_plan--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -73,7 +112,7 @@
"type": "payment_intent.succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -134,7 +173,7 @@
"payment_method_details": {
"card": {
"amount_authorized": 48000,
- "authorization_code": "921009",
+ "authorization_code": "988127",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
@@ -192,7 +231,7 @@
"id": "sponsorship_access_for_realms_on_paid_plan--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
"id": "sponsorship_access_for_realms_on_paid_plan--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -200,42 +239,7 @@
"type": "charge.succeeded"
},
{
- "api_version": "2025-09-30.clover",
- "created": 1000000000,
- "data": {
- "object": {
- "amount_paid": 48000,
- "amount_requested": 48000,
- "created": 1000000000,
- "currency": "usd",
- "id": "sponsorship_access_for_realms_on_paid_plan--Event.list.2.json",
- "invoice": "in_NORMALIZED",
- "is_default": true,
- "livemode": false,
- "object": "invoice_payment",
- "payment": {
- "payment_intent": "pi_NORMALIZED",
- "type": "payment_intent"
- },
- "status": "paid",
- "status_transitions": {
- "canceled_at": null,
- "paid_at": 1000000000
- }
- }
- },
- "id": "sponsorship_access_for_realms_on_paid_plan--Event.list.2.json",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 0,
- "request": {
- "id": null,
- "idempotency_key": null
- },
- "type": "invoice_payment.paid"
- },
- {
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -404,7 +408,7 @@
"type": "invoice.finalized"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -589,7 +593,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -661,7 +665,7 @@
"type": "payment_intent.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -842,7 +846,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -889,7 +893,7 @@
"type": "invoiceitem.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1017,7 +1021,7 @@
"type": "invoice.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1067,7 +1071,7 @@
"type": "customer.updated"
}
],
- "has_more": true,
+ "has_more": false,
"object": "list",
"url": "/v1/events"
}
diff --git a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Event.list.3.json b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Event.list.3.json
index c8308032971..4762f064c63 100644
--- a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Event.list.3.json
+++ b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Event.list.3.json
@@ -1,42 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
- "created": 1000000000,
- "data": {
- "object": {
- "amount_paid": 5000,
- "amount_requested": 5000,
- "created": 1000000000,
- "currency": "usd",
- "id": "sponsorship_access_for_realms_on_paid_plan--Event.list.3.json",
- "invoice": "in_NORMALIZED",
- "is_default": true,
- "livemode": false,
- "object": "invoice_payment",
- "payment": {
- "payment_intent": "pi_NORMALIZED",
- "type": "payment_intent"
- },
- "status": "paid",
- "status_transitions": {
- "canceled_at": null,
- "paid_at": 1000000000
- }
- }
- },
- "id": "sponsorship_access_for_realms_on_paid_plan--Event.list.3.json",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 0,
- "request": {
- "id": null,
- "idempotency_key": null
- },
- "type": "invoice_payment.paid"
- },
- {
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -191,7 +156,7 @@
"total_excluding_tax": 48000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "sponsorship_access_for_realms_on_paid_plan--Event.list.3.json",
@@ -205,7 +170,7 @@
"type": "invoice.payment_succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -360,7 +325,7 @@
"total_excluding_tax": 48000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "sponsorship_access_for_realms_on_paid_plan--Event.list.3.json",
@@ -374,7 +339,7 @@
"type": "invoice.paid"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -529,7 +494,7 @@
"total_excluding_tax": 48000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"amount_paid": 0,
diff --git a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Invoice.pay.1.json
index e2fcffc4322..83f56299c29 100644
--- a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Invoice.pay.1.json
+++ b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Invoice.pay.1.json
@@ -150,5 +150,5 @@
"total_excluding_tax": 48000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--SetupIntent.create.1.json
index b7c75734a00..9c1664b61ed 100644
--- a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--SetupIntent.create.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "sponsorship_access_for_realms_on_paid_plan--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--SetupIntent.list.1.json
index dc0b4cd881d..21df253c496 100644
--- a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--SetupIntent.list.1.json
@@ -8,6 +8,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "sponsorship_access_for_realms_on_paid_plan--SetupIntent.list.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--SetupIntent.retrieve.1.json
index b7c75734a00..9c1664b61ed 100644
--- a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--SetupIntent.retrieve.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "sponsorship_access_for_realms_on_paid_plan--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Event.list.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Event.list.1.json
index ddd28585785..51d91d92206 100644
--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Event.list.1.json
@@ -1,39 +1,32 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
- "amount_paid": 48000,
- "amount_requested": 48000,
+ "configuration": "bpc_NORMALIZED",
"created": 1000000000,
- "currency": "usd",
+ "customer": "cus_NORMALIZED",
+ "flow": null,
"id": "stripe_billing_portal_urls--Event.list.1.json",
- "invoice": "in_NORMALIZED",
- "is_default": true,
"livemode": false,
- "object": "invoice_payment",
- "payment": {
- "payment_intent": "pi_NORMALIZED",
- "type": "payment_intent"
- },
- "status": "paid",
- "status_transitions": {
- "canceled_at": null,
- "paid_at": 1000000000
- }
+ "locale": null,
+ "object": "billing_portal.session",
+ "on_behalf_of": null,
+ "return_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1&setup_payment_by_invoice=false",
+ "url": "https://billing.stripe.com/p/session/test_NORMALIZED"
}
},
"id": "stripe_billing_portal_urls--Event.list.1.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 2,
+ "pending_webhooks": 0,
"request": {
- "id": null,
- "idempotency_key": null
+ "id": "stripe_billing_portal_urls--Event.list.1.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "invoice_payment.paid"
+ "type": "billing_portal.session.created"
}
],
"has_more": true,
diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Event.list.2.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Event.list.2.json
index 6c49d8ec6b1..75a85646a71 100644
--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Event.list.2.json
+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Event.list.2.json
@@ -1,7 +1,83 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount": 984000,
+ "amount_capturable": 0,
+ "amount_details": {
+ "tip": {}
+ },
+ "amount_received": 0,
+ "application": null,
+ "application_fee_amount": null,
+ "automatic_payment_methods": null,
+ "canceled_at": 1000000000,
+ "cancellation_reason": "requested_by_customer",
+ "capture_method": "automatic",
+ "client_secret": "NORMALIZED",
+ "confirmation_method": "automatic",
+ "created": 1000000000,
+ "currency": "usd",
+ "customer": "stripe_billing_portal_urls--Customer.create.1.json",
+ "description": "Payment for Invoice",
+ "excluded_payment_method_types": null,
+ "id": "stripe_billing_portal_urls--Event.list.2.json",
+ "last_payment_error": null,
+ "latest_charge": null,
+ "livemode": false,
+ "metadata": {},
+ "next_action": null,
+ "object": "payment_intent",
+ "on_behalf_of": null,
+ "payment_details": {
+ "customer_reference": null,
+ "order_reference": "in_1SPP3CRVfKEFJaqcsnuA5u"
+ },
+ "payment_method": "pm_NORMALIZED",
+ "payment_method_configuration_details": null,
+ "payment_method_options": {
+ "card": {
+ "installments": null,
+ "mandate_options": null,
+ "network": null,
+ "request_three_d_secure": "automatic"
+ },
+ "link": {
+ "persistent_token": null
+ }
+ },
+ "payment_method_types": [
+ "card",
+ "link"
+ ],
+ "processing": null,
+ "receipt_email": "[email protected]",
+ "review": null,
+ "setup_future_usage": null,
+ "shipping": null,
+ "source": null,
+ "statement_descriptor": "Zulip Cloud Standard",
+ "statement_descriptor_suffix": null,
+ "status": "canceled",
+ "transfer_data": null,
+ "transfer_group": null
+ }
+ },
+ "id": "stripe_billing_portal_urls--Event.list.2.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 2,
+ "request": {
+ "id": "stripe_billing_portal_urls--Event.list.2.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ },
+ "type": "payment_intent.canceled"
+ },
+ {
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -156,7 +232,7 @@
"total_excluding_tax": 984000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "stripe_billing_portal_urls--Event.list.2.json",
@@ -170,7 +246,7 @@
"type": "invoice.paid"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -325,7 +401,7 @@
"total_excluding_tax": 984000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"amount_paid": 0,
@@ -340,7 +416,7 @@
"id": "stripe_billing_portal_urls--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
"id": "stripe_billing_portal_urls--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -348,79 +424,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
- "created": 1000000000,
- "data": {
- "object": {
- "amount": 984000,
- "amount_capturable": 0,
- "amount_details": {
- "tip": {}
- },
- "amount_received": 0,
- "application": null,
- "application_fee_amount": null,
- "automatic_payment_methods": null,
- "canceled_at": 1000000000,
- "cancellation_reason": "requested_by_customer",
- "capture_method": "automatic",
- "client_secret": "NORMALIZED",
- "confirmation_method": "automatic",
- "created": 1000000000,
- "currency": "usd",
- "customer": "stripe_billing_portal_urls--Customer.create.1.json",
- "description": "Payment for Invoice",
- "excluded_payment_method_types": null,
- "id": "stripe_billing_portal_urls--Event.list.2.json",
- "last_payment_error": null,
- "latest_charge": null,
- "livemode": false,
- "metadata": {},
- "next_action": null,
- "object": "payment_intent",
- "on_behalf_of": null,
- "payment_method": "pm_NORMALIZED",
- "payment_method_configuration_details": null,
- "payment_method_options": {
- "card": {
- "installments": null,
- "mandate_options": null,
- "network": null,
- "request_three_d_secure": "automatic"
- },
- "link": {
- "persistent_token": null
- }
- },
- "payment_method_types": [
- "card",
- "link"
- ],
- "processing": null,
- "receipt_email": "[email protected]",
- "review": null,
- "setup_future_usage": null,
- "shipping": null,
- "source": null,
- "statement_descriptor": "Zulip Cloud Standard",
- "statement_descriptor_suffix": null,
- "status": "canceled",
- "transfer_data": null,
- "transfer_group": null
- }
- },
- "id": "stripe_billing_portal_urls--Event.list.2.json",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 0,
- "request": {
- "id": "stripe_billing_portal_urls--Event.list.2.json",
- "idempotency_key": "00000000-0000-0000-0000-000000000000"
- },
- "type": "payment_intent.canceled"
- },
- {
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -575,7 +579,7 @@
"total_excluding_tax": 984000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "stripe_billing_portal_urls--Event.list.2.json",
@@ -589,7 +593,7 @@
"type": "invoice.finalized"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -744,7 +748,7 @@
"total_excluding_tax": 984000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"automatically_finalizes_at": 1000000000,
@@ -775,7 +779,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -847,7 +851,7 @@
"type": "payment_intent.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1028,7 +1032,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1075,7 +1079,7 @@
"type": "invoiceitem.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1203,7 +1207,7 @@
"type": "invoice.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1253,7 +1257,7 @@
"type": "customer.updated"
}
],
- "has_more": false,
+ "has_more": true,
"object": "list",
"url": "/v1/events"
}
diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Event.list.3.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Event.list.3.json
index 6d922067afe..3b41af177cf 100644
--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Event.list.3.json
+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Event.list.3.json
@@ -1,5 +1,41 @@
{
- "data": [],
+ "data": [
+ {
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount_paid": 984000,
+ "amount_requested": 984000,
+ "created": 1000000000,
+ "currency": "usd",
+ "id": "stripe_billing_portal_urls--Event.list.3.json",
+ "invoice": "in_NORMALIZED",
+ "is_default": false,
+ "livemode": false,
+ "object": "invoice_payment",
+ "payment": {
+ "payment_record": "pr_test_NORMALIZEDhxloNja41RVfKEFJaqcIPo",
+ "type": "payment_record"
+ },
+ "status": "paid",
+ "status_transitions": {
+ "canceled_at": null,
+ "paid_at": 1000000000
+ }
+ }
+ },
+ "id": "stripe_billing_portal_urls--Event.list.3.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "stripe_billing_portal_urls--Event.list.2.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ },
+ "type": "invoice_payment.paid"
+ }
+ ],
"has_more": false,
"object": "list",
"url": "/v1/events"
diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Event.list.4.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Event.list.4.json
new file mode 100644
index 00000000000..6d922067afe
--- /dev/null
+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Event.list.4.json
@@ -0,0 +1,6 @@
+{
+ "data": [],
+ "has_more": false,
+ "object": "list",
+ "url": "/v1/events"
+}
diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Invoice.finalize_invoice.1.json
index e60557b0c75..99211a70bcf 100644
--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Invoice.finalize_invoice.1.json
+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Invoice.finalize_invoice.1.json
@@ -150,5 +150,5 @@
"total_excluding_tax": 984000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Invoice.pay.1.json
index 384c66f8af1..5643837f7c4 100644
--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Invoice.pay.1.json
+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Invoice.pay.1.json
@@ -150,5 +150,5 @@
"total_excluding_tax": 984000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--SetupIntent.create.1.json
index e59bc1cea4d..0074193f54e 100644
--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--SetupIntent.create.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "stripe_billing_portal_urls--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--SetupIntent.list.1.json
index 1ea9e079e04..0256c9bf480 100644
--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--SetupIntent.list.1.json
@@ -8,6 +8,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "stripe_billing_portal_urls--SetupIntent.list.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--SetupIntent.retrieve.1.json
index e59bc1cea4d..0074193f54e 100644
--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--SetupIntent.retrieve.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "stripe_billing_portal_urls--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--billing_portal.Configuration.create.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--billing_portal.Configuration.create.1.json
index 9c16cb05d7d..ce9eff2ced3 100644
--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--billing_portal.Configuration.create.1.json
+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--billing_portal.Configuration.create.1.json
@@ -21,7 +21,8 @@
"enabled": false
},
"payment_method_update": {
- "enabled": false
+ "enabled": false,
+ "payment_method_configuration": null
},
"subscription_cancel": {
"cancellation_reason": {
diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--billing_portal.Configuration.create.2.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--billing_portal.Configuration.create.2.json
index 59b72a4484f..c988d00f8b4 100644
--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--billing_portal.Configuration.create.2.json
+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--billing_portal.Configuration.create.2.json
@@ -21,7 +21,8 @@
"enabled": false
},
"payment_method_update": {
- "enabled": false
+ "enabled": false,
+ "payment_method_configuration": null
},
"subscription_cancel": {
"cancellation_reason": {
diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--billing_portal.Configuration.create.3.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--billing_portal.Configuration.create.3.json
index 1818b5b71eb..07534396fa5 100644
--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--billing_portal.Configuration.create.3.json
+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--billing_portal.Configuration.create.3.json
@@ -17,7 +17,8 @@
"enabled": true
},
"payment_method_update": {
- "enabled": false
+ "enabled": false,
+ "payment_method_configuration": null
},
"subscription_cancel": {
"cancellation_reason": {
diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--billing_portal.Session.create.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--billing_portal.Session.create.1.json
index 758dd148299..8418f162726 100644
--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--billing_portal.Session.create.1.json
+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--billing_portal.Session.create.1.json
@@ -3,7 +3,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"flow": null,
- "id": "stripe_billing_portal_urls--billing_portal.Session.create.1.json",
+ "id": "stripe_billing_portal_urls--Event.list.1.json",
"livemode": false,
"locale": null,
"object": "billing_portal.session",
diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.create.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.create.1.json
index e02796cc43c..ba39b980d4f 100644
--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.create.1.json
+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.create.1.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "stripe_billing_portal_urls_for_remote_realm--Customer.create.1.json",
@@ -19,7 +19,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.modify.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.modify.1.json
index 531841e5fa4..f7cb5aee920 100644
--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.modify.1.json
+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.modify.1.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "stripe_billing_portal_urls_for_remote_realm--Customer.create.1.json",
@@ -19,7 +19,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.retrieve.1.json
index 54d2205787a..1389c80f7cb 100644
--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.retrieve.1.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "stripe_billing_portal_urls_for_remote_realm--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.retrieve.2.json
index 54d2205787a..1389c80f7cb 100644
--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.retrieve.2.json
+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.retrieve.2.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "stripe_billing_portal_urls_for_remote_realm--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.retrieve.3.json
index 54d2205787a..1389c80f7cb 100644
--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.retrieve.3.json
+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.retrieve.3.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "stripe_billing_portal_urls_for_remote_realm--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.retrieve.4.json
index 54d2205787a..1389c80f7cb 100644
--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.retrieve.4.json
+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.retrieve.4.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "stripe_billing_portal_urls_for_remote_realm--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.retrieve.5.json
index 54d2205787a..1389c80f7cb 100644
--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.retrieve.5.json
+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.retrieve.5.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "stripe_billing_portal_urls_for_remote_realm--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Event.list.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Event.list.1.json
index d1c126daf8f..2d9229127f2 100644
--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Event.list.1.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -11,7 +11,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "stripe_billing_portal_urls_for_remote_realm--Customer.create.1.json",
@@ -25,7 +25,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Event.list.2.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Event.list.2.json
index c8d07dd7717..8f0d8c0c4ad 100644
--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Event.list.2.json
+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Event.list.2.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -62,7 +62,7 @@
"payment_method_details": {
"card": {
"amount_authorized": 176000,
- "authorization_code": "927776",
+ "authorization_code": "535014",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
@@ -120,7 +120,7 @@
"id": "stripe_billing_portal_urls_for_remote_realm--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
"id": "stripe_billing_portal_urls_for_remote_realm--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -128,7 +128,7 @@
"type": "charge.succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -336,7 +336,7 @@
"type": "invoice.finalized"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -560,7 +560,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -632,7 +632,7 @@
"type": "payment_intent.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -893,7 +893,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -940,7 +940,7 @@
"type": "invoiceitem.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1120,7 +1120,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1167,7 +1167,7 @@
"type": "invoiceitem.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1294,7 +1294,7 @@
"type": "invoice.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1304,7 +1304,7 @@
"currency": "usd",
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "stripe_billing_portal_urls_for_remote_realm--Customer.create.1.json",
@@ -1318,7 +1318,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Event.list.3.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Event.list.3.json
index d369e255c37..73c63231fb9 100644
--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Event.list.3.json
+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Event.list.3.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -209,7 +209,7 @@
"type": "invoice.payment_succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -417,7 +417,7 @@
"type": "invoice.paid"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -635,7 +635,42 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount_paid": null,
+ "amount_requested": 176000,
+ "created": 1000000000,
+ "currency": "usd",
+ "id": "stripe_billing_portal_urls_for_remote_realm--Event.list.3.json",
+ "invoice": "stripe_billing_portal_urls_for_remote_realm--Event.list.2.json",
+ "is_default": true,
+ "livemode": false,
+ "object": "invoice_payment",
+ "payment": {
+ "payment_intent": "stripe_billing_portal_urls_for_remote_realm--Event.list.2.json",
+ "type": "payment_intent"
+ },
+ "status": "open",
+ "status_transitions": {
+ "canceled_at": null,
+ "paid_at": null
+ }
+ }
+ },
+ "id": "stripe_billing_portal_urls_for_remote_realm--Event.list.3.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "stripe_billing_portal_urls_for_remote_realm--Event.list.2.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ },
+ "type": "invoice_payment.paid"
+ },
+ {
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -666,6 +701,10 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
+ "payment_details": {
+ "customer_reference": null,
+ "order_reference": "in_1SPP9cRVfKEFJaqcrlMbQu"
+ },
"payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
"payment_method_options": {
diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--SetupIntent.create.1.json
index e101290be9f..bf12a9af317 100644
--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--SetupIntent.create.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "stripe_billing_portal_urls_for_remote_realm--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--SetupIntent.list.1.json
index 106afbd6453..fe1daa6f573 100644
--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--SetupIntent.list.1.json
@@ -8,6 +8,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "stripe_billing_portal_urls_for_remote_realm--SetupIntent.list.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--SetupIntent.retrieve.1.json
index e101290be9f..bf12a9af317 100644
--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--SetupIntent.retrieve.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "stripe_billing_portal_urls_for_remote_realm--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--billing_portal.Configuration.create.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--billing_portal.Configuration.create.1.json
index 30c1e4aaeb4..de1c1912c95 100644
--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--billing_portal.Configuration.create.1.json
+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--billing_portal.Configuration.create.1.json
@@ -17,7 +17,8 @@
"enabled": true
},
"payment_method_update": {
- "enabled": false
+ "enabled": false,
+ "payment_method_configuration": null
},
"subscription_cancel": {
"cancellation_reason": {
diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--billing_portal.Configuration.create.2.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--billing_portal.Configuration.create.2.json
index 76b87076122..67e2dba36ab 100644
--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--billing_portal.Configuration.create.2.json
+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--billing_portal.Configuration.create.2.json
@@ -21,7 +21,8 @@
"enabled": false
},
"payment_method_update": {
- "enabled": false
+ "enabled": false,
+ "payment_method_configuration": null
},
"subscription_cancel": {
"cancellation_reason": {
diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--billing_portal.Session.create.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--billing_portal.Session.create.1.json
index 89d626e26da..7c294ecb417 100644
--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--billing_portal.Session.create.1.json
+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--billing_portal.Session.create.1.json
@@ -8,6 +8,6 @@
"locale": null,
"object": "billing_portal.session",
"on_behalf_of": null,
- "return_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/billing/",
+ "return_url": "http://selfhosting.testserver/realm/9c36daef-29ed-478d-a237-26a7dec0f4ee/billing/",
"url": "https://billing.stripe.com/p/session/test_NORMALIZED"
}
diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--billing_portal.Session.create.2.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--billing_portal.Session.create.2.json
index 4e89af4f3d1..195fb91ead2 100644
--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--billing_portal.Session.create.2.json
+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--billing_portal.Session.create.2.json
@@ -8,6 +8,6 @@
"locale": null,
"object": "billing_portal.session",
"on_behalf_of": null,
- "return_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/billing/",
+ "return_url": "http://selfhosting.testserver/realm/9c36daef-29ed-478d-a237-26a7dec0f4ee/billing/",
"url": "https://billing.stripe.com/p/session/test_NORMALIZED"
}
diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--checkout.Session.create.1.json
index 85055ef11da..8d3ba06d15d 100644
--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--checkout.Session.create.1.json
+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--checkout.Session.create.1.json
@@ -28,7 +28,7 @@
"type": "file"
}
},
- "cancel_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/upgrade/?manual_license_management=false&tier=1",
+ "cancel_url": "http://selfhosting.testserver/realm/9c36daef-29ed-478d-a237-26a7dec0f4ee/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"collected_information": {
@@ -101,7 +101,7 @@
"status": "open",
"submit_type": null,
"subscription": null,
- "success_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
+ "success_url": "http://selfhosting.testserver/realm/9c36daef-29ed-478d-a237-26a7dec0f4ee/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
"url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED",
diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--checkout.Session.list.1.json
index 6048eb08dc4..20893896e02 100644
--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--checkout.Session.list.1.json
+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--checkout.Session.list.1.json
@@ -30,7 +30,7 @@
"type": "file"
}
},
- "cancel_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/upgrade/?manual_license_management=false&tier=1",
+ "cancel_url": "http://selfhosting.testserver/realm/9c36daef-29ed-478d-a237-26a7dec0f4ee/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"collected_information": {
@@ -103,7 +103,7 @@
"status": "open",
"submit_type": null,
"subscription": null,
- "success_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
+ "success_url": "http://selfhosting.testserver/realm/9c36daef-29ed-478d-a237-26a7dec0f4ee/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
"url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED",
diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--Event.list.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--Event.list.1.json
index 5bd29f916b1..ea36accb6bf 100644
--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--Event.list.1.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--Event.list.2.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--Event.list.2.json
index 16c8895a6ce..56600521091 100644
--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--Event.list.2.json
+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--Event.list.2.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -62,7 +62,7 @@
"payment_method_details": {
"card": {
"amount_authorized": 176000,
- "authorization_code": "757123",
+ "authorization_code": "983420",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
@@ -120,7 +120,7 @@
"id": "stripe_billing_portal_urls_for_remote_server--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
"id": "stripe_billing_portal_urls_for_remote_server--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -128,7 +128,7 @@
"type": "charge.succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -336,7 +336,7 @@
"type": "invoice.finalized"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -560,7 +560,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -632,7 +632,7 @@
"type": "payment_intent.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -893,7 +893,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -940,7 +940,7 @@
"type": "invoiceitem.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1120,7 +1120,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1167,7 +1167,7 @@
"type": "invoiceitem.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1294,7 +1294,7 @@
"type": "invoice.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--Event.list.3.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--Event.list.3.json
index c1c42e0eb8d..8a422433e61 100644
--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--Event.list.3.json
+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--Event.list.3.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -209,7 +209,7 @@
"type": "invoice.payment_succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -417,7 +417,7 @@
"type": "invoice.paid"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -635,7 +635,42 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount_paid": null,
+ "amount_requested": 176000,
+ "created": 1000000000,
+ "currency": "usd",
+ "id": "stripe_billing_portal_urls_for_remote_server--Event.list.3.json",
+ "invoice": "stripe_billing_portal_urls_for_remote_server--Event.list.2.json",
+ "is_default": true,
+ "livemode": false,
+ "object": "invoice_payment",
+ "payment": {
+ "payment_intent": "stripe_billing_portal_urls_for_remote_server--Event.list.2.json",
+ "type": "payment_intent"
+ },
+ "status": "open",
+ "status_transitions": {
+ "canceled_at": null,
+ "paid_at": null
+ }
+ }
+ },
+ "id": "stripe_billing_portal_urls_for_remote_server--Event.list.3.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "stripe_billing_portal_urls_for_remote_server--Event.list.2.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ },
+ "type": "invoice_payment.paid"
+ },
+ {
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -666,6 +701,10 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
+ "payment_details": {
+ "customer_reference": null,
+ "order_reference": "in_1SPPCvRVfKEFJaqcgcvxx5"
+ },
"payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
"payment_method_options": {
diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--SetupIntent.create.1.json
index 67a649d341b..bd594a12144 100644
--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--SetupIntent.create.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "stripe_billing_portal_urls_for_remote_server--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--SetupIntent.list.1.json
index 818fc4e4679..6b5f0712851 100644
--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--SetupIntent.list.1.json
@@ -8,6 +8,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "stripe_billing_portal_urls_for_remote_server--SetupIntent.list.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--SetupIntent.retrieve.1.json
index 67a649d341b..bd594a12144 100644
--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--SetupIntent.retrieve.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "stripe_billing_portal_urls_for_remote_server--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--billing_portal.Configuration.create.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--billing_portal.Configuration.create.1.json
index f77bf5537c7..6638befef30 100644
--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--billing_portal.Configuration.create.1.json
+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--billing_portal.Configuration.create.1.json
@@ -17,7 +17,8 @@
"enabled": true
},
"payment_method_update": {
- "enabled": false
+ "enabled": false,
+ "payment_method_configuration": null
},
"subscription_cancel": {
"cancellation_reason": {
diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--billing_portal.Configuration.create.2.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--billing_portal.Configuration.create.2.json
index a818fc1a86f..119bf18edcf 100644
--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--billing_portal.Configuration.create.2.json
+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--billing_portal.Configuration.create.2.json
@@ -21,7 +21,8 @@
"enabled": false
},
"payment_method_update": {
- "enabled": false
+ "enabled": false,
+ "payment_method_configuration": null
},
"subscription_cancel": {
"cancellation_reason": {
diff --git a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.1.json b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.1.json
index f2210c50ee9..0de820a7973 100644
--- a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.1.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
diff --git a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.2.json b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.2.json
index 88ea6eda70d..afbf9c89a1d 100644
--- a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.2.json
+++ b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.2.json
@@ -1,170 +1,26 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
- "account_country": "US",
- "account_name": "NORMALIZED",
- "account_tax_ids": null,
- "amount_due": 48000,
- "amount_overpaid": 0,
- "amount_paid": 48000,
- "amount_remaining": 0,
- "amount_shipping": 0,
- "application": null,
- "attempt_count": 1,
- "attempted": true,
- "auto_advance": false,
- "automatic_tax": {
- "disabled_reason": null,
- "enabled": false,
- "liability": null,
- "provider": null,
- "status": null
- },
- "automatically_finalizes_at": null,
- "billing_reason": "manual",
- "collection_method": "charge_automatically",
+ "amount_paid": null,
+ "amount_requested": 48000,
"created": 1000000000,
"currency": "usd",
- "custom_fields": null,
- "customer": "switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Customer.create.1.json",
- "customer_address": null,
- "customer_email": "[email protected]",
- "customer_name": null,
- "customer_phone": null,
- "customer_shipping": null,
- "customer_tax_exempt": "none",
- "customer_tax_ids": [],
- "default_payment_method": null,
- "default_source": null,
- "default_tax_rates": [],
- "description": null,
- "discounts": [],
- "due_date": null,
- "effective_at": 1000000000,
- "ending_balance": 0,
- "footer": null,
- "from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
"id": "switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.2.json",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
- "issuer": {
- "type": "self"
- },
- "last_finalization_error": null,
- "latest_revision": null,
- "lines": {
- "data": [
- {
- "amount": 48000,
- "currency": "usd",
- "description": "Zulip Cloud Standard",
- "discount_amounts": [],
- "discountable": false,
- "discounts": [],
- "id": "switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.2.json",
- "invoice": "switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.2.json",
- "livemode": false,
- "metadata": {},
- "object": "line_item",
- "parent": {
- "invoice_item_details": {
- "invoice_item": "switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.2.json",
- "proration": false,
- "proration_details": {
- "credited_items": null
- },
- "subscription": null
- },
- "subscription_item_details": null,
- "type": "invoice_item_details"
- },
- "period": {
- "end": 1357095845,
- "start": 1325473445
- },
- "pretax_credit_amounts": [],
- "pricing": {
- "price_details": {
- "price": "price_NORMALIZED",
- "product": "prod_NORMALIZED"
- },
- "type": "price_details",
- "unit_amount_decimal": "8000"
- },
- "quantity": 6,
- "taxes": []
- }
- ],
- "has_more": false,
- "object": "list",
- "total_count": 1,
- "url": "/v1/invoices/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.2.json/lines"
- },
+ "invoice": "switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.2.json",
+ "is_default": true,
"livemode": false,
- "metadata": {
- "billing_schedule": "1",
- "current_plan_id": "None",
- "license_management": "automatic",
- "licenses": "6",
- "on_free_trial": "False",
- "plan_tier": "1",
- "user_id": "10"
+ "object": "invoice_payment",
+ "payment": {
+ "payment_intent": "switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.2.json",
+ "type": "payment_intent"
},
- "next_payment_attempt": null,
- "number": "NORMALIZED",
- "object": "invoice",
- "on_behalf_of": null,
- "parent": null,
- "payment_settings": {
- "default_mandate": null,
- "payment_method_options": null,
- "payment_method_types": null
- },
- "period_end": 1000000000,
- "period_start": 1000000000,
- "post_payment_credit_notes_amount": 0,
- "pre_payment_credit_notes_amount": 0,
- "receipt_number": null,
- "rendering": {
- "amount_tax_display": null,
- "pdf": {
- "page_size": "letter"
- },
- "template": null,
- "template_version": null
- },
- "shipping_cost": null,
- "shipping_details": null,
- "starting_balance": 0,
- "statement_descriptor": "Zulip Cloud Standard",
- "status": "paid",
- "status_transitions": {
- "finalized_at": 1000000000,
- "marked_uncollectible_at": null,
- "paid_at": 1000000000,
- "voided_at": null
- },
- "subtotal": 48000,
- "subtotal_excluding_tax": 48000,
- "test_clock": null,
- "total": 48000,
- "total_discount_amounts": [],
- "total_excluding_tax": 48000,
- "total_pretax_credit_amounts": [],
- "total_taxes": [],
- "webhooks_delivered_at": 1000000000
- },
- "previous_attributes": {
- "amount_paid": 0,
- "amount_remaining": 48000,
- "attempt_count": 0,
- "attempted": false,
"status": "open",
"status_transitions": {
+ "canceled_at": null,
"paid_at": null
}
}
@@ -177,10 +33,10 @@
"id": "switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "invoice.updated"
+ "type": "invoice_payment.paid"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -211,6 +67,10 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
+ "payment_details": {
+ "customer_reference": null,
+ "order_reference": "in_1SPP3QRVfKEFJaqcEhajZ2"
+ },
"payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
"payment_method_options": {
@@ -252,7 +112,7 @@
"type": "payment_intent.succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -313,7 +173,7 @@
"payment_method_details": {
"card": {
"amount_authorized": 48000,
- "authorization_code": "858918",
+ "authorization_code": "267023",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
@@ -371,7 +231,7 @@
"id": "switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
"id": "switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -379,7 +239,7 @@
"type": "charge.succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -548,7 +408,7 @@
"type": "invoice.finalized"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -733,7 +593,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -805,7 +665,7 @@
"type": "payment_intent.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -960,7 +820,7 @@
"total_excluding_tax": 48000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
},
"previous_attributes": {
"amount_due": 0,
@@ -986,7 +846,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1033,7 +893,7 @@
"type": "invoiceitem.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1161,7 +1021,7 @@
"type": "invoice.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
diff --git a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.3.json b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.3.json
index 87ad37573b2..de0a4ea0a53 100644
--- a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.3.json
+++ b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.3.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -170,7 +170,7 @@
"type": "invoice.payment_succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -337,6 +337,185 @@
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "invoice.paid"
+ },
+ {
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "account_country": "US",
+ "account_name": "NORMALIZED",
+ "account_tax_ids": null,
+ "amount_due": 48000,
+ "amount_overpaid": 0,
+ "amount_paid": 48000,
+ "amount_remaining": 0,
+ "amount_shipping": 0,
+ "application": null,
+ "attempt_count": 1,
+ "attempted": true,
+ "auto_advance": false,
+ "automatic_tax": {
+ "disabled_reason": null,
+ "enabled": false,
+ "liability": null,
+ "provider": null,
+ "status": null
+ },
+ "automatically_finalizes_at": null,
+ "billing_reason": "manual",
+ "collection_method": "charge_automatically",
+ "created": 1000000000,
+ "currency": "usd",
+ "custom_fields": null,
+ "customer": "cus_NORMALIZED",
+ "customer_address": null,
+ "customer_email": "[email protected]",
+ "customer_name": null,
+ "customer_phone": null,
+ "customer_shipping": null,
+ "customer_tax_exempt": "none",
+ "customer_tax_ids": [],
+ "default_payment_method": null,
+ "default_source": null,
+ "default_tax_rates": [],
+ "description": null,
+ "discounts": [],
+ "due_date": null,
+ "effective_at": 1000000000,
+ "ending_balance": 0,
+ "footer": null,
+ "from_invoice": null,
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
+ "id": "switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.2.json",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
+ "issuer": {
+ "type": "self"
+ },
+ "last_finalization_error": null,
+ "latest_revision": null,
+ "lines": {
+ "data": [
+ {
+ "amount": 48000,
+ "currency": "usd",
+ "description": "Zulip Cloud Standard",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.2.json",
+ "invoice": "switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.2.json",
+ "livemode": false,
+ "metadata": {},
+ "object": "line_item",
+ "parent": {
+ "invoice_item_details": {
+ "invoice_item": "ii_NORMALIZED",
+ "proration": false,
+ "proration_details": {
+ "credited_items": null
+ },
+ "subscription": null
+ },
+ "subscription_item_details": null,
+ "type": "invoice_item_details"
+ },
+ "period": {
+ "end": 1357095845,
+ "start": 1325473445
+ },
+ "pretax_credit_amounts": [],
+ "pricing": {
+ "price_details": {
+ "price": "price_NORMALIZED",
+ "product": "prod_NORMALIZED"
+ },
+ "type": "price_details",
+ "unit_amount_decimal": "8000"
+ },
+ "quantity": 6,
+ "taxes": []
+ }
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 1,
+ "url": "/v1/invoices/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.2.json/lines"
+ },
+ "livemode": false,
+ "metadata": {
+ "billing_schedule": "1",
+ "current_plan_id": "None",
+ "license_management": "automatic",
+ "licenses": "6",
+ "on_free_trial": "False",
+ "plan_tier": "1",
+ "user_id": "10"
+ },
+ "next_payment_attempt": null,
+ "number": "NORMALIZED",
+ "object": "invoice",
+ "on_behalf_of": null,
+ "parent": null,
+ "payment_settings": {
+ "default_mandate": null,
+ "payment_method_options": null,
+ "payment_method_types": null
+ },
+ "period_end": 1000000000,
+ "period_start": 1000000000,
+ "post_payment_credit_notes_amount": 0,
+ "pre_payment_credit_notes_amount": 0,
+ "receipt_number": null,
+ "rendering": {
+ "amount_tax_display": null,
+ "pdf": {
+ "page_size": "letter"
+ },
+ "template": null,
+ "template_version": null
+ },
+ "shipping_cost": null,
+ "shipping_details": null,
+ "starting_balance": 0,
+ "statement_descriptor": "Zulip Cloud Standard",
+ "status": "paid",
+ "status_transitions": {
+ "finalized_at": 1000000000,
+ "marked_uncollectible_at": null,
+ "paid_at": 1000000000,
+ "voided_at": null
+ },
+ "subtotal": 48000,
+ "subtotal_excluding_tax": 48000,
+ "test_clock": null,
+ "total": 48000,
+ "total_discount_amounts": [],
+ "total_excluding_tax": 48000,
+ "total_pretax_credit_amounts": [],
+ "total_taxes": [],
+ "webhooks_delivered_at": 1000000000
+ },
+ "previous_attributes": {
+ "amount_paid": 0,
+ "amount_remaining": 48000,
+ "attempt_count": 0,
+ "attempted": false,
+ "status": "open",
+ "status_transitions": {
+ "paid_at": null
+ }
+ }
+ },
+ "id": "switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.3.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.2.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ },
+ "type": "invoice.updated"
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--SetupIntent.create.1.json
index 8c4863aef30..44ba978dc93 100644
--- a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--SetupIntent.create.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--SetupIntent.list.1.json
index b8c4630b2cd..0383ac57d55 100644
--- a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--SetupIntent.list.1.json
@@ -8,6 +8,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--SetupIntent.list.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--SetupIntent.retrieve.1.json
index 8c4863aef30..44ba978dc93 100644
--- a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--SetupIntent.retrieve.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.1.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.1.json
index 6b1a6424871..d4be4013916 100644
--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.1.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.2.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.2.json
index 2fe9d5c280a..fb4c482cc8b 100644
--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.2.json
+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.2.json
@@ -1,170 +1,26 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
- "account_country": "US",
- "account_name": "NORMALIZED",
- "account_tax_ids": null,
- "amount_due": 4800,
- "amount_overpaid": 0,
- "amount_paid": 4800,
- "amount_remaining": 0,
- "amount_shipping": 0,
- "application": null,
- "attempt_count": 1,
- "attempted": true,
- "auto_advance": false,
- "automatic_tax": {
- "disabled_reason": null,
- "enabled": false,
- "liability": null,
- "provider": null,
- "status": null
- },
- "automatically_finalizes_at": null,
- "billing_reason": "manual",
- "collection_method": "charge_automatically",
+ "amount_paid": null,
+ "amount_requested": 4800,
"created": 1000000000,
"currency": "usd",
- "custom_fields": null,
- "customer": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.create.1.json",
- "customer_address": null,
- "customer_email": "[email protected]",
- "customer_name": null,
- "customer_phone": null,
- "customer_shipping": null,
- "customer_tax_exempt": "none",
- "customer_tax_ids": [],
- "default_payment_method": null,
- "default_source": null,
- "default_tax_rates": [],
- "description": null,
- "discounts": [],
- "due_date": null,
- "effective_at": 1000000000,
- "ending_balance": 0,
- "footer": null,
- "from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
"id": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.2.json",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
- "issuer": {
- "type": "self"
- },
- "last_finalization_error": null,
- "latest_revision": null,
- "lines": {
- "data": [
- {
- "amount": 4800,
- "currency": "usd",
- "description": "Zulip Cloud Standard",
- "discount_amounts": [],
- "discountable": false,
- "discounts": [],
- "id": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.2.json",
- "invoice": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.2.json",
- "livemode": false,
- "metadata": {},
- "object": "line_item",
- "parent": {
- "invoice_item_details": {
- "invoice_item": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.2.json",
- "proration": false,
- "proration_details": {
- "credited_items": null
- },
- "subscription": null
- },
- "subscription_item_details": null,
- "type": "invoice_item_details"
- },
- "period": {
- "end": 1328151845,
- "start": 1325473445
- },
- "pretax_credit_amounts": [],
- "pricing": {
- "price_details": {
- "price": "price_NORMALIZED",
- "product": "prod_NORMALIZED"
- },
- "type": "price_details",
- "unit_amount_decimal": "800"
- },
- "quantity": 6,
- "taxes": []
- }
- ],
- "has_more": false,
- "object": "list",
- "total_count": 1,
- "url": "/v1/invoices/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.2.json/lines"
- },
+ "invoice": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.2.json",
+ "is_default": true,
"livemode": false,
- "metadata": {
- "billing_schedule": "2",
- "current_plan_id": "None",
- "license_management": "automatic",
- "licenses": "6",
- "on_free_trial": "False",
- "plan_tier": "1",
- "user_id": "10"
- },
- "next_payment_attempt": null,
- "number": "NORMALIZED",
- "object": "invoice",
- "on_behalf_of": null,
- "parent": null,
- "payment_settings": {
- "default_mandate": null,
- "payment_method_options": null,
- "payment_method_types": null
- },
- "period_end": 1000000000,
- "period_start": 1000000000,
- "post_payment_credit_notes_amount": 0,
- "pre_payment_credit_notes_amount": 0,
- "receipt_number": null,
- "rendering": {
- "amount_tax_display": null,
- "pdf": {
- "page_size": "letter"
- },
- "template": null,
- "template_version": null
- },
- "shipping_cost": null,
- "shipping_details": null,
- "starting_balance": 0,
- "statement_descriptor": "Zulip Cloud Standard",
- "status": "paid",
- "status_transitions": {
- "finalized_at": 1000000000,
- "marked_uncollectible_at": null,
- "paid_at": 1000000000,
- "voided_at": null
+ "object": "invoice_payment",
+ "payment": {
+ "payment_intent": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.2.json",
+ "type": "payment_intent"
},
- "subtotal": 4800,
- "subtotal_excluding_tax": 4800,
- "test_clock": null,
- "total": 4800,
- "total_discount_amounts": [],
- "total_excluding_tax": 4800,
- "total_pretax_credit_amounts": [],
- "total_taxes": [],
- "webhooks_delivered_at": 1000000000
- },
- "previous_attributes": {
- "amount_paid": 0,
- "amount_remaining": 4800,
- "attempt_count": 0,
- "attempted": false,
"status": "open",
"status_transitions": {
+ "canceled_at": null,
"paid_at": null
}
}
@@ -172,15 +28,15 @@
"id": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 2,
+ "pending_webhooks": 0,
"request": {
"id": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "invoice.updated"
+ "type": "invoice_payment.paid"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -211,6 +67,10 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
+ "payment_details": {
+ "customer_reference": null,
+ "order_reference": "in_1SPP3nRVfKEFJaqcxXkJMc"
+ },
"payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
"payment_method_options": {
@@ -252,7 +112,7 @@
"type": "payment_intent.succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -313,7 +173,7 @@
"payment_method_details": {
"card": {
"amount_authorized": 4800,
- "authorization_code": "672739",
+ "authorization_code": "180426",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
@@ -371,7 +231,7 @@
"id": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 2,
+ "pending_webhooks": 1,
"request": {
"id": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -379,7 +239,7 @@
"type": "charge.succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -534,7 +394,7 @@
"total_excluding_tax": 4800,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
},
"id": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.2.json",
@@ -548,7 +408,7 @@
"type": "invoice.finalized"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -703,7 +563,7 @@
"total_excluding_tax": 4800,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
},
"previous_attributes": {
"effective_at": null,
@@ -733,7 +593,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -805,7 +665,7 @@
"type": "payment_intent.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -986,7 +846,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1033,7 +893,7 @@
"type": "invoiceitem.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1161,7 +1021,7 @@
"type": "invoice.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1211,7 +1071,7 @@
"type": "customer.updated"
}
],
- "has_more": false,
+ "has_more": true,
"object": "list",
"url": "/v1/events"
}
diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.3.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.3.json
index a3128c0599a..8402acc2c78 100644
--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.3.json
+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.3.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -156,7 +156,7 @@
"total_excluding_tax": 4800,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
},
"id": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.3.json",
@@ -170,7 +170,7 @@
"type": "invoice.payment_succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -325,7 +325,7 @@
"total_excluding_tax": 4800,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
},
"id": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.3.json",
@@ -337,6 +337,185 @@
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "invoice.paid"
+ },
+ {
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "account_country": "US",
+ "account_name": "NORMALIZED",
+ "account_tax_ids": null,
+ "amount_due": 4800,
+ "amount_overpaid": 0,
+ "amount_paid": 4800,
+ "amount_remaining": 0,
+ "amount_shipping": 0,
+ "application": null,
+ "attempt_count": 1,
+ "attempted": true,
+ "auto_advance": false,
+ "automatic_tax": {
+ "disabled_reason": null,
+ "enabled": false,
+ "liability": null,
+ "provider": null,
+ "status": null
+ },
+ "automatically_finalizes_at": null,
+ "billing_reason": "manual",
+ "collection_method": "charge_automatically",
+ "created": 1000000000,
+ "currency": "usd",
+ "custom_fields": null,
+ "customer": "cus_NORMALIZED",
+ "customer_address": null,
+ "customer_email": "[email protected]",
+ "customer_name": null,
+ "customer_phone": null,
+ "customer_shipping": null,
+ "customer_tax_exempt": "none",
+ "customer_tax_ids": [],
+ "default_payment_method": null,
+ "default_source": null,
+ "default_tax_rates": [],
+ "description": null,
+ "discounts": [],
+ "due_date": null,
+ "effective_at": 1000000000,
+ "ending_balance": 0,
+ "footer": null,
+ "from_invoice": null,
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
+ "id": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.2.json",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
+ "issuer": {
+ "type": "self"
+ },
+ "last_finalization_error": null,
+ "latest_revision": null,
+ "lines": {
+ "data": [
+ {
+ "amount": 4800,
+ "currency": "usd",
+ "description": "Zulip Cloud Standard",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.2.json",
+ "invoice": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.2.json",
+ "livemode": false,
+ "metadata": {},
+ "object": "line_item",
+ "parent": {
+ "invoice_item_details": {
+ "invoice_item": "ii_NORMALIZED",
+ "proration": false,
+ "proration_details": {
+ "credited_items": null
+ },
+ "subscription": null
+ },
+ "subscription_item_details": null,
+ "type": "invoice_item_details"
+ },
+ "period": {
+ "end": 1328151845,
+ "start": 1325473445
+ },
+ "pretax_credit_amounts": [],
+ "pricing": {
+ "price_details": {
+ "price": "price_NORMALIZED",
+ "product": "prod_NORMALIZED"
+ },
+ "type": "price_details",
+ "unit_amount_decimal": "800"
+ },
+ "quantity": 6,
+ "taxes": []
+ }
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 1,
+ "url": "/v1/invoices/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.2.json/lines"
+ },
+ "livemode": false,
+ "metadata": {
+ "billing_schedule": "2",
+ "current_plan_id": "None",
+ "license_management": "automatic",
+ "licenses": "6",
+ "on_free_trial": "False",
+ "plan_tier": "1",
+ "user_id": "10"
+ },
+ "next_payment_attempt": null,
+ "number": "NORMALIZED",
+ "object": "invoice",
+ "on_behalf_of": null,
+ "parent": null,
+ "payment_settings": {
+ "default_mandate": null,
+ "payment_method_options": null,
+ "payment_method_types": null
+ },
+ "period_end": 1000000000,
+ "period_start": 1000000000,
+ "post_payment_credit_notes_amount": 0,
+ "pre_payment_credit_notes_amount": 0,
+ "receipt_number": null,
+ "rendering": {
+ "amount_tax_display": null,
+ "pdf": {
+ "page_size": "letter"
+ },
+ "template": null,
+ "template_version": null
+ },
+ "shipping_cost": null,
+ "shipping_details": null,
+ "starting_balance": 0,
+ "statement_descriptor": "Zulip Cloud Standard",
+ "status": "paid",
+ "status_transitions": {
+ "finalized_at": 1000000000,
+ "marked_uncollectible_at": null,
+ "paid_at": 1000000000,
+ "voided_at": null
+ },
+ "subtotal": 4800,
+ "subtotal_excluding_tax": 4800,
+ "test_clock": null,
+ "total": 4800,
+ "total_discount_amounts": [],
+ "total_excluding_tax": 4800,
+ "total_pretax_credit_amounts": [],
+ "total_taxes": [],
+ "webhooks_delivered_at": null
+ },
+ "previous_attributes": {
+ "amount_paid": 0,
+ "amount_remaining": 4800,
+ "attempt_count": 0,
+ "attempted": false,
+ "status": "open",
+ "status_transitions": {
+ "paid_at": null
+ }
+ }
+ },
+ "id": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.3.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.2.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ },
+ "type": "invoice.updated"
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.finalize_invoice.1.json
index 83ada01a3f4..ebbe4fe9dd3 100644
--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.finalize_invoice.1.json
+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.finalize_invoice.1.json
@@ -150,5 +150,5 @@
"total_excluding_tax": 4800,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.finalize_invoice.2.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.finalize_invoice.2.json
index 1e66c1ac20b..9bdf8d1eecf 100644
--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.finalize_invoice.2.json
+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.finalize_invoice.2.json
@@ -142,5 +142,5 @@
"total_excluding_tax": 11200,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.finalize_invoice.5.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.finalize_invoice.5.json
index 4fc4ccc3965..5648f8ad0cd 100644
--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.finalize_invoice.5.json
+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.finalize_invoice.5.json
@@ -142,5 +142,5 @@
"total_excluding_tax": 240000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.list.2.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.list.2.json
index 557fdf88903..e6be74adb9c 100644
--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.list.2.json
+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.list.2.json
@@ -484,7 +484,7 @@
"total_excluding_tax": 4800,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.list.3.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.list.3.json
index 5aceaee1c37..90aa71f95e1 100644
--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.list.3.json
+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.list.3.json
@@ -630,7 +630,7 @@
"total_excluding_tax": 4800,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.list.4.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.list.4.json
index 7d616c49224..5f24ac6972e 100644
--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.list.4.json
+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.list.4.json
@@ -144,7 +144,7 @@
"total_excluding_tax": 240000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
{
"account_country": "US",
@@ -776,7 +776,7 @@
"total_excluding_tax": 4800,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.pay.1.json
index be7d713fdcb..04d594ed886 100644
--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.pay.1.json
+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.pay.1.json
@@ -150,5 +150,5 @@
"total_excluding_tax": 4800,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--SetupIntent.create.1.json
index 98f6e0b2c21..703050fdb45 100644
--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--SetupIntent.create.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--SetupIntent.list.1.json
index c45f6edc690..2bf25f5233f 100644
--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--SetupIntent.list.1.json
@@ -8,6 +8,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--SetupIntent.list.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--SetupIntent.retrieve.1.json
index 98f6e0b2c21..703050fdb45 100644
--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--SetupIntent.retrieve.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.1.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.1.json
index 24d1758b12d..751926165fa 100644
--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.1.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.2.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.2.json
index a2e2431142f..c0df110ea89 100644
--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.2.json
+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.2.json
@@ -1,170 +1,26 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
- "account_country": "US",
- "account_name": "NORMALIZED",
- "account_tax_ids": null,
- "amount_due": 28000,
- "amount_overpaid": 0,
- "amount_paid": 28000,
- "amount_remaining": 0,
- "amount_shipping": 0,
- "application": null,
- "attempt_count": 1,
- "attempted": true,
- "auto_advance": false,
- "automatic_tax": {
- "disabled_reason": null,
- "enabled": false,
- "liability": null,
- "provider": null,
- "status": null
- },
- "automatically_finalizes_at": null,
- "billing_reason": "manual",
- "collection_method": "charge_automatically",
+ "amount_paid": null,
+ "amount_requested": 28000,
"created": 1000000000,
"currency": "usd",
- "custom_fields": null,
- "customer": "switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Customer.create.1.json",
- "customer_address": null,
- "customer_email": "[email protected]",
- "customer_name": null,
- "customer_phone": null,
- "customer_shipping": null,
- "customer_tax_exempt": "none",
- "customer_tax_ids": [],
- "default_payment_method": null,
- "default_source": null,
- "default_tax_rates": [],
- "description": null,
- "discounts": [],
- "due_date": null,
- "effective_at": 1000000000,
- "ending_balance": 0,
- "footer": null,
- "from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
"id": "switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.2.json",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
- "issuer": {
- "type": "self"
- },
- "last_finalization_error": null,
- "latest_revision": null,
- "lines": {
- "data": [
- {
- "amount": 28000,
- "currency": "usd",
- "description": "Zulip Cloud Standard",
- "discount_amounts": [],
- "discountable": false,
- "discounts": [],
- "id": "switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.2.json",
- "invoice": "switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.2.json",
- "livemode": false,
- "metadata": {},
- "object": "line_item",
- "parent": {
- "invoice_item_details": {
- "invoice_item": "switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.2.json",
- "proration": false,
- "proration_details": {
- "credited_items": null
- },
- "subscription": null
- },
- "subscription_item_details": null,
- "type": "invoice_item_details"
- },
- "period": {
- "end": 1328151845,
- "start": 1325473445
- },
- "pretax_credit_amounts": [],
- "pricing": {
- "price_details": {
- "price": "price_NORMALIZED",
- "product": "prod_NORMALIZED"
- },
- "type": "price_details",
- "unit_amount_decimal": "800"
- },
- "quantity": 35,
- "taxes": []
- }
- ],
- "has_more": false,
- "object": "list",
- "total_count": 1,
- "url": "/v1/invoices/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.2.json/lines"
- },
+ "invoice": "switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.2.json",
+ "is_default": true,
"livemode": false,
- "metadata": {
- "billing_schedule": "2",
- "current_plan_id": "None",
- "license_management": "manual",
- "licenses": "35",
- "on_free_trial": "False",
- "plan_tier": "1",
- "user_id": "10"
- },
- "next_payment_attempt": null,
- "number": "NORMALIZED",
- "object": "invoice",
- "on_behalf_of": null,
- "parent": null,
- "payment_settings": {
- "default_mandate": null,
- "payment_method_options": null,
- "payment_method_types": null
+ "object": "invoice_payment",
+ "payment": {
+ "payment_intent": "switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.2.json",
+ "type": "payment_intent"
},
- "period_end": 1000000000,
- "period_start": 1000000000,
- "post_payment_credit_notes_amount": 0,
- "pre_payment_credit_notes_amount": 0,
- "receipt_number": null,
- "rendering": {
- "amount_tax_display": null,
- "pdf": {
- "page_size": "letter"
- },
- "template": null,
- "template_version": null
- },
- "shipping_cost": null,
- "shipping_details": null,
- "starting_balance": 0,
- "statement_descriptor": "Zulip Cloud Standard",
- "status": "paid",
- "status_transitions": {
- "finalized_at": 1000000000,
- "marked_uncollectible_at": null,
- "paid_at": 1000000000,
- "voided_at": null
- },
- "subtotal": 28000,
- "subtotal_excluding_tax": 28000,
- "test_clock": null,
- "total": 28000,
- "total_discount_amounts": [],
- "total_excluding_tax": 28000,
- "total_pretax_credit_amounts": [],
- "total_taxes": [],
- "webhooks_delivered_at": 1000000000
- },
- "previous_attributes": {
- "amount_paid": 0,
- "amount_remaining": 28000,
- "attempt_count": 0,
- "attempted": false,
"status": "open",
"status_transitions": {
+ "canceled_at": null,
"paid_at": null
}
}
@@ -172,15 +28,15 @@
"id": "switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 2,
+ "pending_webhooks": 0,
"request": {
"id": "switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "invoice.updated"
+ "type": "invoice_payment.paid"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -211,6 +67,10 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
+ "payment_details": {
+ "customer_reference": null,
+ "order_reference": "in_1SPP4ERVfKEFJaqclJRNWA"
+ },
"payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
"payment_method_options": {
@@ -244,7 +104,7 @@
"id": "switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
"id": "switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -252,7 +112,7 @@
"type": "payment_intent.succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -313,7 +173,7 @@
"payment_method_details": {
"card": {
"amount_authorized": 28000,
- "authorization_code": "805162",
+ "authorization_code": "251370",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
@@ -371,7 +231,7 @@
"id": "switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
"id": "switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -379,7 +239,7 @@
"type": "charge.succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -548,7 +408,7 @@
"type": "invoice.finalized"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -733,7 +593,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -805,7 +665,7 @@
"type": "payment_intent.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -960,7 +820,7 @@
"total_excluding_tax": 28000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
},
"previous_attributes": {
"amount_due": 0,
@@ -986,7 +846,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1033,7 +893,7 @@
"type": "invoiceitem.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1161,7 +1021,7 @@
"type": "invoice.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1211,7 +1071,7 @@
"type": "customer.updated"
}
],
- "has_more": true,
+ "has_more": false,
"object": "list",
"url": "/v1/events"
}
diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.3.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.3.json
index 149b147e54e..ab039491e61 100644
--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.3.json
+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.3.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -162,7 +162,7 @@
"id": "switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.3.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
"id": "switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -170,7 +170,7 @@
"type": "invoice.payment_succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -331,12 +331,191 @@
"id": "switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.3.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 1,
"request": {
"id": "switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "invoice.paid"
+ },
+ {
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "account_country": "US",
+ "account_name": "NORMALIZED",
+ "account_tax_ids": null,
+ "amount_due": 28000,
+ "amount_overpaid": 0,
+ "amount_paid": 28000,
+ "amount_remaining": 0,
+ "amount_shipping": 0,
+ "application": null,
+ "attempt_count": 1,
+ "attempted": true,
+ "auto_advance": false,
+ "automatic_tax": {
+ "disabled_reason": null,
+ "enabled": false,
+ "liability": null,
+ "provider": null,
+ "status": null
+ },
+ "automatically_finalizes_at": null,
+ "billing_reason": "manual",
+ "collection_method": "charge_automatically",
+ "created": 1000000000,
+ "currency": "usd",
+ "custom_fields": null,
+ "customer": "cus_NORMALIZED",
+ "customer_address": null,
+ "customer_email": "[email protected]",
+ "customer_name": null,
+ "customer_phone": null,
+ "customer_shipping": null,
+ "customer_tax_exempt": "none",
+ "customer_tax_ids": [],
+ "default_payment_method": null,
+ "default_source": null,
+ "default_tax_rates": [],
+ "description": null,
+ "discounts": [],
+ "due_date": null,
+ "effective_at": 1000000000,
+ "ending_balance": 0,
+ "footer": null,
+ "from_invoice": null,
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
+ "id": "switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.2.json",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
+ "issuer": {
+ "type": "self"
+ },
+ "last_finalization_error": null,
+ "latest_revision": null,
+ "lines": {
+ "data": [
+ {
+ "amount": 28000,
+ "currency": "usd",
+ "description": "Zulip Cloud Standard",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.2.json",
+ "invoice": "switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.2.json",
+ "livemode": false,
+ "metadata": {},
+ "object": "line_item",
+ "parent": {
+ "invoice_item_details": {
+ "invoice_item": "ii_NORMALIZED",
+ "proration": false,
+ "proration_details": {
+ "credited_items": null
+ },
+ "subscription": null
+ },
+ "subscription_item_details": null,
+ "type": "invoice_item_details"
+ },
+ "period": {
+ "end": 1328151845,
+ "start": 1325473445
+ },
+ "pretax_credit_amounts": [],
+ "pricing": {
+ "price_details": {
+ "price": "price_NORMALIZED",
+ "product": "prod_NORMALIZED"
+ },
+ "type": "price_details",
+ "unit_amount_decimal": "800"
+ },
+ "quantity": 35,
+ "taxes": []
+ }
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 1,
+ "url": "/v1/invoices/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.2.json/lines"
+ },
+ "livemode": false,
+ "metadata": {
+ "billing_schedule": "2",
+ "current_plan_id": "None",
+ "license_management": "manual",
+ "licenses": "35",
+ "on_free_trial": "False",
+ "plan_tier": "1",
+ "user_id": "10"
+ },
+ "next_payment_attempt": null,
+ "number": "NORMALIZED",
+ "object": "invoice",
+ "on_behalf_of": null,
+ "parent": null,
+ "payment_settings": {
+ "default_mandate": null,
+ "payment_method_options": null,
+ "payment_method_types": null
+ },
+ "period_end": 1000000000,
+ "period_start": 1000000000,
+ "post_payment_credit_notes_amount": 0,
+ "pre_payment_credit_notes_amount": 0,
+ "receipt_number": null,
+ "rendering": {
+ "amount_tax_display": null,
+ "pdf": {
+ "page_size": "letter"
+ },
+ "template": null,
+ "template_version": null
+ },
+ "shipping_cost": null,
+ "shipping_details": null,
+ "starting_balance": 0,
+ "statement_descriptor": "Zulip Cloud Standard",
+ "status": "paid",
+ "status_transitions": {
+ "finalized_at": 1000000000,
+ "marked_uncollectible_at": null,
+ "paid_at": 1000000000,
+ "voided_at": null
+ },
+ "subtotal": 28000,
+ "subtotal_excluding_tax": 28000,
+ "test_clock": null,
+ "total": 28000,
+ "total_discount_amounts": [],
+ "total_excluding_tax": 28000,
+ "total_pretax_credit_amounts": [],
+ "total_taxes": [],
+ "webhooks_delivered_at": 1000000000
+ },
+ "previous_attributes": {
+ "amount_paid": 0,
+ "amount_remaining": 28000,
+ "attempt_count": 0,
+ "attempted": false,
+ "status": "open",
+ "status_transitions": {
+ "paid_at": null
+ }
+ }
+ },
+ "id": "switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.3.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.2.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ },
+ "type": "invoice.updated"
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--SetupIntent.create.1.json
index 9ec391681cb..a8a21a41615 100644
--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--SetupIntent.create.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "switch_from_monthly_plan_to_annual_plan_for_manual_license_management--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--SetupIntent.list.1.json
index 14b8dddfa9c..1ceb4c7e039 100644
--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--SetupIntent.list.1.json
@@ -8,6 +8,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "switch_from_monthly_plan_to_annual_plan_for_manual_license_management--SetupIntent.list.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--SetupIntent.retrieve.1.json
index 9ec391681cb..a8a21a41615 100644
--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--SetupIntent.retrieve.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "switch_from_monthly_plan_to_annual_plan_for_manual_license_management--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--Event.list.1.json b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--Event.list.1.json
index 9aea1b72df3..8a252231f6f 100644
--- a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--Event.list.1.json
@@ -1,27 +1,44 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
- "amount_paid": 4800,
- "amount_requested": 4800,
+ "address": null,
+ "balance": 0,
"created": 1000000000,
- "currency": "usd",
- "id": "switch_now_free_trial_from_annual_to_monthly--Event.list.1.json",
- "invoice": "in_NORMALIZED",
- "is_default": true,
+ "currency": null,
+ "default_source": null,
+ "delinquent": false,
+ "description": "zulip (Zulip Dev)",
+ "discount": null,
+ "email": "[email protected]",
+ "id": "switch_now_free_trial_from_annual_to_monthly--Customer.create.1.json",
+ "invoice_prefix": "NORMALIZED",
+ "invoice_settings": {
+ "custom_fields": null,
+ "default_payment_method": "pm_NORMALIZED",
+ "footer": null,
+ "rendering_options": null
+ },
"livemode": false,
- "object": "invoice_payment",
- "payment": {
- "payment_intent": "pi_NORMALIZED",
- "type": "payment_intent"
+ "metadata": {
+ "realm_id": "1",
+ "realm_str": "zulip"
},
- "status": "paid",
- "status_transitions": {
- "canceled_at": null,
- "paid_at": 1000000000
+ "name": null,
+ "next_invoice_sequence": 1,
+ "object": "customer",
+ "phone": null,
+ "preferred_locales": [],
+ "shipping": null,
+ "tax_exempt": "none",
+ "test_clock": null
+ },
+ "previous_attributes": {
+ "invoice_settings": {
+ "default_payment_method": null
}
}
},
@@ -30,10 +47,10 @@
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": null,
- "idempotency_key": null
+ "id": "switch_now_free_trial_from_annual_to_monthly--Event.list.1.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "invoice_payment.paid"
+ "type": "customer.updated"
}
],
"has_more": true,
diff --git a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--SetupIntent.create.1.json
index 12ce374ebdd..08a9bc29068 100644
--- a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--SetupIntent.create.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "switch_now_free_trial_from_annual_to_monthly--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--SetupIntent.list.1.json
index 8e30c70e977..40e07d43a08 100644
--- a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--SetupIntent.list.1.json
@@ -8,6 +8,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "switch_now_free_trial_from_annual_to_monthly--SetupIntent.list.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--SetupIntent.retrieve.1.json
index 12ce374ebdd..08a9bc29068 100644
--- a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--SetupIntent.retrieve.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "switch_now_free_trial_from_annual_to_monthly--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--Event.list.1.json b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--Event.list.1.json
index 09d49066cf0..6c20e54c523 100644
--- a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--Event.list.1.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
diff --git a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--SetupIntent.create.1.json
index c452e14a4bb..ee6825a452e 100644
--- a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--SetupIntent.create.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "switch_now_free_trial_from_monthly_to_annual--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--SetupIntent.list.1.json
index 0b8e43716f5..b06922e066d 100644
--- a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--SetupIntent.list.1.json
@@ -8,6 +8,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "switch_now_free_trial_from_monthly_to_annual--SetupIntent.list.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--SetupIntent.retrieve.1.json
index c452e14a4bb..ee6825a452e 100644
--- a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--SetupIntent.retrieve.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "switch_now_free_trial_from_monthly_to_annual--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Customer.create_balance_transaction.1.json b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Customer.create_balance_transaction.1.json
index 78ab15921a5..07a41bd77a1 100644
--- a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Customer.create_balance_transaction.1.json
+++ b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Customer.create_balance_transaction.1.json
@@ -1,12 +1,12 @@
{
- "amount": -805,
+ "amount": -559,
"checkout_session": null,
"created": 1000000000,
"credit_note": null,
"currency": "usd",
"customer": "cus_NORMALIZED",
"description": "Credit from early termination of active plan",
- "ending_balance": -805,
+ "ending_balance": -559,
"id": "switch_realm_from_standard_to_plus_plan--Customer.create_balance_transaction.1.json",
"invoice": null,
"livemode": false,
diff --git a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Event.list.1.json b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Event.list.1.json
index fe39b17f8d4..a3200589fbf 100644
--- a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Event.list.1.json
@@ -1,27 +1,44 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
- "amount_paid": 7200,
- "amount_requested": 7200,
+ "address": null,
+ "balance": 0,
"created": 1000000000,
- "currency": "usd",
- "id": "switch_realm_from_standard_to_plus_plan--Event.list.1.json",
- "invoice": "in_NORMALIZED",
- "is_default": true,
+ "currency": null,
+ "default_source": null,
+ "delinquent": false,
+ "description": "zulip (Zulip Dev)",
+ "discount": null,
+ "email": "[email protected]",
+ "id": "switch_realm_from_standard_to_plus_plan--Customer.create.1.json",
+ "invoice_prefix": "NORMALIZED",
+ "invoice_settings": {
+ "custom_fields": null,
+ "default_payment_method": "pm_NORMALIZED",
+ "footer": null,
+ "rendering_options": null
+ },
"livemode": false,
- "object": "invoice_payment",
- "payment": {
- "payment_intent": "pi_NORMALIZED",
- "type": "payment_intent"
+ "metadata": {
+ "realm_id": "1",
+ "realm_str": "zulip"
},
- "status": "paid",
- "status_transitions": {
- "canceled_at": null,
- "paid_at": 1000000000
+ "name": null,
+ "next_invoice_sequence": 1,
+ "object": "customer",
+ "phone": null,
+ "preferred_locales": [],
+ "shipping": null,
+ "tax_exempt": "none",
+ "test_clock": null
+ },
+ "previous_attributes": {
+ "invoice_settings": {
+ "default_payment_method": null
}
}
},
@@ -30,10 +47,10 @@
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": null,
- "idempotency_key": null
+ "id": "switch_realm_from_standard_to_plus_plan--Event.list.1.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "invoice_payment.paid"
+ "type": "customer.updated"
}
],
"has_more": true,
diff --git a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Event.list.2.json b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Event.list.2.json
index 973263cb04a..651469d156b 100644
--- a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Event.list.2.json
+++ b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Event.list.2.json
@@ -1,170 +1,26 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
- "account_country": "US",
- "account_name": "NORMALIZED",
- "account_tax_ids": null,
- "amount_due": 48000,
- "amount_overpaid": 0,
- "amount_paid": 48000,
- "amount_remaining": 0,
- "amount_shipping": 0,
- "application": null,
- "attempt_count": 1,
- "attempted": true,
- "auto_advance": false,
- "automatic_tax": {
- "disabled_reason": null,
- "enabled": false,
- "liability": null,
- "provider": null,
- "status": null
- },
- "automatically_finalizes_at": null,
- "billing_reason": "manual",
- "collection_method": "charge_automatically",
+ "amount_paid": null,
+ "amount_requested": 48000,
"created": 1000000000,
"currency": "usd",
- "custom_fields": null,
- "customer": "switch_realm_from_standard_to_plus_plan--Customer.create.1.json",
- "customer_address": null,
- "customer_email": "[email protected]",
- "customer_name": null,
- "customer_phone": null,
- "customer_shipping": null,
- "customer_tax_exempt": "none",
- "customer_tax_ids": [],
- "default_payment_method": null,
- "default_source": null,
- "default_tax_rates": [],
- "description": null,
- "discounts": [],
- "due_date": null,
- "effective_at": 1000000000,
- "ending_balance": 0,
- "footer": null,
- "from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
"id": "switch_realm_from_standard_to_plus_plan--Event.list.2.json",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
- "issuer": {
- "type": "self"
- },
- "last_finalization_error": null,
- "latest_revision": null,
- "lines": {
- "data": [
- {
- "amount": 48000,
- "currency": "usd",
- "description": "Zulip Cloud Standard",
- "discount_amounts": [],
- "discountable": false,
- "discounts": [],
- "id": "switch_realm_from_standard_to_plus_plan--Event.list.2.json",
- "invoice": "switch_realm_from_standard_to_plus_plan--Event.list.2.json",
- "livemode": false,
- "metadata": {},
- "object": "line_item",
- "parent": {
- "invoice_item_details": {
- "invoice_item": "switch_realm_from_standard_to_plus_plan--Event.list.2.json",
- "proration": false,
- "proration_details": {
- "credited_items": null
- },
- "subscription": null
- },
- "subscription_item_details": null,
- "type": "invoice_item_details"
- },
- "period": {
- "end": 1357095845,
- "start": 1325473445
- },
- "pretax_credit_amounts": [],
- "pricing": {
- "price_details": {
- "price": "price_NORMALIZED",
- "product": "prod_NORMALIZED"
- },
- "type": "price_details",
- "unit_amount_decimal": "8000"
- },
- "quantity": 6,
- "taxes": []
- }
- ],
- "has_more": false,
- "object": "list",
- "total_count": 1,
- "url": "/v1/invoices/switch_realm_from_standard_to_plus_plan--Event.list.2.json/lines"
- },
+ "invoice": "switch_realm_from_standard_to_plus_plan--Event.list.2.json",
+ "is_default": true,
"livemode": false,
- "metadata": {
- "billing_schedule": "1",
- "current_plan_id": "None",
- "license_management": "automatic",
- "licenses": "6",
- "on_free_trial": "False",
- "plan_tier": "1",
- "user_id": "10"
- },
- "next_payment_attempt": null,
- "number": "NORMALIZED",
- "object": "invoice",
- "on_behalf_of": null,
- "parent": null,
- "payment_settings": {
- "default_mandate": null,
- "payment_method_options": null,
- "payment_method_types": null
- },
- "period_end": 1000000000,
- "period_start": 1000000000,
- "post_payment_credit_notes_amount": 0,
- "pre_payment_credit_notes_amount": 0,
- "receipt_number": null,
- "rendering": {
- "amount_tax_display": null,
- "pdf": {
- "page_size": "letter"
- },
- "template": null,
- "template_version": null
- },
- "shipping_cost": null,
- "shipping_details": null,
- "starting_balance": 0,
- "statement_descriptor": "Zulip Cloud Standard",
- "status": "paid",
- "status_transitions": {
- "finalized_at": 1000000000,
- "marked_uncollectible_at": null,
- "paid_at": 1000000000,
- "voided_at": null
+ "object": "invoice_payment",
+ "payment": {
+ "payment_intent": "switch_realm_from_standard_to_plus_plan--Event.list.2.json",
+ "type": "payment_intent"
},
- "subtotal": 48000,
- "subtotal_excluding_tax": 48000,
- "test_clock": null,
- "total": 48000,
- "total_discount_amounts": [],
- "total_excluding_tax": 48000,
- "total_pretax_credit_amounts": [],
- "total_taxes": [],
- "webhooks_delivered_at": null
- },
- "previous_attributes": {
- "amount_paid": 0,
- "amount_remaining": 48000,
- "attempt_count": 0,
- "attempted": false,
"status": "open",
"status_transitions": {
+ "canceled_at": null,
"paid_at": null
}
}
@@ -172,15 +28,15 @@
"id": "switch_realm_from_standard_to_plus_plan--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 2,
+ "pending_webhooks": 0,
"request": {
"id": "switch_realm_from_standard_to_plus_plan--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "invoice.updated"
+ "type": "invoice_payment.paid"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -211,6 +67,10 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
+ "payment_details": {
+ "customer_reference": null,
+ "order_reference": "in_1SPPEvRVfKEFJaqcGpdzza"
+ },
"payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
"payment_method_options": {
@@ -252,7 +112,7 @@
"type": "payment_intent.succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -313,7 +173,7 @@
"payment_method_details": {
"card": {
"amount_authorized": 48000,
- "authorization_code": "330222",
+ "authorization_code": "459092",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
@@ -371,7 +231,7 @@
"id": "switch_realm_from_standard_to_plus_plan--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 1,
+ "pending_webhooks": 2,
"request": {
"id": "switch_realm_from_standard_to_plus_plan--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -379,7 +239,7 @@
"type": "charge.succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -534,7 +394,7 @@
"total_excluding_tax": 48000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "switch_realm_from_standard_to_plus_plan--Event.list.2.json",
@@ -548,7 +408,7 @@
"type": "invoice.finalized"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -703,7 +563,7 @@
"total_excluding_tax": 48000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"effective_at": null,
@@ -733,7 +593,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -805,7 +665,7 @@
"type": "payment_intent.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -986,7 +846,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1033,7 +893,7 @@
"type": "invoiceitem.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1161,7 +1021,7 @@
"type": "invoice.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
diff --git a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Event.list.3.json b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Event.list.3.json
index 66d419aa4c1..ed72fd02ebb 100644
--- a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Event.list.3.json
+++ b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Event.list.3.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -156,13 +156,13 @@
"total_excluding_tax": 48000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "switch_realm_from_standard_to_plus_plan--Event.list.3.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 1,
"request": {
"id": "switch_realm_from_standard_to_plus_plan--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -170,7 +170,7 @@
"type": "invoice.payment_succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -325,7 +325,7 @@
"total_excluding_tax": 48000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "switch_realm_from_standard_to_plus_plan--Event.list.3.json",
@@ -337,6 +337,185 @@
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "invoice.paid"
+ },
+ {
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "account_country": "US",
+ "account_name": "NORMALIZED",
+ "account_tax_ids": null,
+ "amount_due": 48000,
+ "amount_overpaid": 0,
+ "amount_paid": 48000,
+ "amount_remaining": 0,
+ "amount_shipping": 0,
+ "application": null,
+ "attempt_count": 1,
+ "attempted": true,
+ "auto_advance": false,
+ "automatic_tax": {
+ "disabled_reason": null,
+ "enabled": false,
+ "liability": null,
+ "provider": null,
+ "status": null
+ },
+ "automatically_finalizes_at": null,
+ "billing_reason": "manual",
+ "collection_method": "charge_automatically",
+ "created": 1000000000,
+ "currency": "usd",
+ "custom_fields": null,
+ "customer": "cus_NORMALIZED",
+ "customer_address": null,
+ "customer_email": "[email protected]",
+ "customer_name": null,
+ "customer_phone": null,
+ "customer_shipping": null,
+ "customer_tax_exempt": "none",
+ "customer_tax_ids": [],
+ "default_payment_method": null,
+ "default_source": null,
+ "default_tax_rates": [],
+ "description": null,
+ "discounts": [],
+ "due_date": null,
+ "effective_at": 1000000000,
+ "ending_balance": 0,
+ "footer": null,
+ "from_invoice": null,
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
+ "id": "switch_realm_from_standard_to_plus_plan--Event.list.2.json",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
+ "issuer": {
+ "type": "self"
+ },
+ "last_finalization_error": null,
+ "latest_revision": null,
+ "lines": {
+ "data": [
+ {
+ "amount": 48000,
+ "currency": "usd",
+ "description": "Zulip Cloud Standard",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "switch_realm_from_standard_to_plus_plan--Event.list.2.json",
+ "invoice": "switch_realm_from_standard_to_plus_plan--Event.list.2.json",
+ "livemode": false,
+ "metadata": {},
+ "object": "line_item",
+ "parent": {
+ "invoice_item_details": {
+ "invoice_item": "ii_NORMALIZED",
+ "proration": false,
+ "proration_details": {
+ "credited_items": null
+ },
+ "subscription": null
+ },
+ "subscription_item_details": null,
+ "type": "invoice_item_details"
+ },
+ "period": {
+ "end": 1357095845,
+ "start": 1325473445
+ },
+ "pretax_credit_amounts": [],
+ "pricing": {
+ "price_details": {
+ "price": "price_NORMALIZED",
+ "product": "prod_NORMALIZED"
+ },
+ "type": "price_details",
+ "unit_amount_decimal": "8000"
+ },
+ "quantity": 6,
+ "taxes": []
+ }
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 1,
+ "url": "/v1/invoices/switch_realm_from_standard_to_plus_plan--Event.list.2.json/lines"
+ },
+ "livemode": false,
+ "metadata": {
+ "billing_schedule": "1",
+ "current_plan_id": "None",
+ "license_management": "automatic",
+ "licenses": "6",
+ "on_free_trial": "False",
+ "plan_tier": "1",
+ "user_id": "10"
+ },
+ "next_payment_attempt": null,
+ "number": "NORMALIZED",
+ "object": "invoice",
+ "on_behalf_of": null,
+ "parent": null,
+ "payment_settings": {
+ "default_mandate": null,
+ "payment_method_options": null,
+ "payment_method_types": null
+ },
+ "period_end": 1000000000,
+ "period_start": 1000000000,
+ "post_payment_credit_notes_amount": 0,
+ "pre_payment_credit_notes_amount": 0,
+ "receipt_number": null,
+ "rendering": {
+ "amount_tax_display": null,
+ "pdf": {
+ "page_size": "letter"
+ },
+ "template": null,
+ "template_version": null
+ },
+ "shipping_cost": null,
+ "shipping_details": null,
+ "starting_balance": 0,
+ "statement_descriptor": "Zulip Cloud Standard",
+ "status": "paid",
+ "status_transitions": {
+ "finalized_at": 1000000000,
+ "marked_uncollectible_at": null,
+ "paid_at": 1000000000,
+ "voided_at": null
+ },
+ "subtotal": 48000,
+ "subtotal_excluding_tax": 48000,
+ "test_clock": null,
+ "total": 48000,
+ "total_discount_amounts": [],
+ "total_excluding_tax": 48000,
+ "total_pretax_credit_amounts": [],
+ "total_taxes": [],
+ "webhooks_delivered_at": 1000000000
+ },
+ "previous_attributes": {
+ "amount_paid": 0,
+ "amount_remaining": 48000,
+ "attempt_count": 0,
+ "attempted": false,
+ "status": "open",
+ "status_transitions": {
+ "paid_at": null
+ }
+ }
+ },
+ "id": "switch_realm_from_standard_to_plus_plan--Event.list.3.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "switch_realm_from_standard_to_plus_plan--Event.list.2.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ },
+ "type": "invoice.updated"
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Invoice.create.2.json b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Invoice.create.2.json
index a105a40229d..203371b9a09 100644
--- a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Invoice.create.2.json
+++ b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Invoice.create.2.json
@@ -84,7 +84,7 @@
},
"shipping_cost": null,
"shipping_details": null,
- "starting_balance": -805,
+ "starting_balance": -559,
"statement_descriptor": "Zulip Cloud Plus",
"status": "draft",
"status_transitions": {
diff --git a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Invoice.finalize_invoice.1.json
index b0307cad51c..a3a3a2bc007 100644
--- a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Invoice.finalize_invoice.1.json
+++ b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Invoice.finalize_invoice.1.json
@@ -150,5 +150,5 @@
"total_excluding_tax": 48000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Invoice.finalize_invoice.2.json b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Invoice.finalize_invoice.2.json
index daac9cd3400..f39c9b44987 100644
--- a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Invoice.finalize_invoice.2.json
+++ b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Invoice.finalize_invoice.2.json
@@ -2,10 +2,10 @@
"account_country": "US",
"account_name": "NORMALIZED",
"account_tax_ids": null,
- "amount_due": 119195,
+ "amount_due": 119441,
"amount_overpaid": 0,
"amount_paid": 0,
- "amount_remaining": 119195,
+ "amount_remaining": 119441,
"amount_shipping": 0,
"application": null,
"attempt_count": 0,
@@ -125,7 +125,7 @@
},
"shipping_cost": null,
"shipping_details": null,
- "starting_balance": -805,
+ "starting_balance": -559,
"statement_descriptor": "Zulip Cloud Plus",
"status": "open",
"status_transitions": {
diff --git a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Invoice.pay.1.json
index 9817eee0386..4dfb40b9ca6 100644
--- a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Invoice.pay.1.json
+++ b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Invoice.pay.1.json
@@ -150,5 +150,5 @@
"total_excluding_tax": 48000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--SetupIntent.create.1.json
index 5dd15c273fc..0b56d0f2905 100644
--- a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--SetupIntent.create.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "switch_realm_from_standard_to_plus_plan--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--SetupIntent.list.1.json
index 1ef8b2388e9..4e0b464ad3f 100644
--- a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--SetupIntent.list.1.json
@@ -8,6 +8,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "switch_realm_from_standard_to_plus_plan--SetupIntent.list.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--SetupIntent.retrieve.1.json
index 5dd15c273fc..0b56d0f2905 100644
--- a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--SetupIntent.retrieve.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "switch_realm_from_standard_to_plus_plan--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Event.list.1.json b/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Event.list.1.json
index c524c022e60..c81e442ee3b 100644
--- a/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Event.list.1.json
@@ -1,45 +1,154 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
- "address": null,
- "balance": 0,
+ "account_country": "US",
+ "account_name": "NORMALIZED",
+ "account_tax_ids": null,
+ "amount_due": 16000,
+ "amount_overpaid": 0,
+ "amount_paid": 0,
+ "amount_remaining": 16000,
+ "amount_shipping": 0,
+ "application": null,
+ "attempt_count": 0,
+ "attempted": false,
+ "auto_advance": true,
+ "automatic_tax": {
+ "disabled_reason": null,
+ "enabled": false,
+ "liability": null,
+ "provider": null,
+ "status": null
+ },
+ "automatically_finalizes_at": null,
+ "billing_reason": "manual",
+ "collection_method": "send_invoice",
"created": 1000000000,
- "currency": null,
+ "currency": "usd",
+ "custom_fields": null,
+ "customer": "cus_NORMALIZED",
+ "customer_address": null,
+ "customer_email": "[email protected]",
+ "customer_name": null,
+ "customer_phone": null,
+ "customer_shipping": null,
+ "customer_tax_exempt": "none",
+ "customer_tax_ids": [],
+ "default_payment_method": null,
"default_source": null,
- "delinquent": false,
- "description": "zulip (Zulip Dev)",
- "discount": null,
- "email": "[email protected]",
+ "default_tax_rates": [],
+ "description": null,
+ "discounts": [],
+ "due_date": 1000000000,
+ "effective_at": 1000000000,
+ "ending_balance": 0,
+ "footer": null,
+ "from_invoice": null,
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
"id": "update_licenses_of_manual_plan_from_billing_page--Event.list.1.json",
- "invoice_prefix": "NORMALIZED",
- "invoice_settings": {
- "custom_fields": null,
- "default_payment_method": "pm_NORMALIZED",
- "footer": null,
- "rendering_options": null
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
+ "issuer": {
+ "type": "self"
+ },
+ "last_finalization_error": null,
+ "latest_revision": null,
+ "lines": {
+ "data": [
+ {
+ "amount": 16000,
+ "currency": "usd",
+ "description": "Additional license (Mar 2, 2012 - Mar 2, 2013)",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "update_licenses_of_manual_plan_from_billing_page--Event.list.1.json",
+ "invoice": "update_licenses_of_manual_plan_from_billing_page--Event.list.1.json",
+ "livemode": false,
+ "metadata": {},
+ "object": "line_item",
+ "parent": {
+ "invoice_item_details": {
+ "invoice_item": "ii_NORMALIZED",
+ "proration": false,
+ "proration_details": {
+ "credited_items": null
+ },
+ "subscription": null
+ },
+ "subscription_item_details": null,
+ "type": "invoice_item_details"
+ },
+ "period": {
+ "end": 1362193445,
+ "start": 1330657445
+ },
+ "pretax_credit_amounts": [],
+ "pricing": {
+ "price_details": {
+ "price": "price_NORMALIZED",
+ "product": "prod_NORMALIZED"
+ },
+ "type": "price_details",
+ "unit_amount_decimal": "8000"
+ },
+ "quantity": 2,
+ "taxes": []
+ }
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 1,
+ "url": "/v1/invoices/update_licenses_of_manual_plan_from_billing_page--Event.list.1.json/lines"
},
"livemode": false,
- "metadata": {
- "realm_id": "1",
- "realm_str": "zulip"
+ "metadata": {},
+ "next_payment_attempt": null,
+ "number": "NORMALIZED",
+ "object": "invoice",
+ "on_behalf_of": null,
+ "parent": null,
+ "payment_settings": {
+ "default_mandate": null,
+ "payment_method_options": null,
+ "payment_method_types": null
+ },
+ "period_end": 1000000000,
+ "period_start": 1000000000,
+ "post_payment_credit_notes_amount": 0,
+ "pre_payment_credit_notes_amount": 0,
+ "receipt_number": null,
+ "rendering": {
+ "amount_tax_display": null,
+ "pdf": {
+ "page_size": "letter"
+ },
+ "template": null,
+ "template_version": null
+ },
+ "shipping_cost": null,
+ "shipping_details": null,
+ "starting_balance": 0,
+ "statement_descriptor": "Zulip Cloud Standard",
+ "status": "open",
+ "status_transitions": {
+ "finalized_at": 1000000000,
+ "marked_uncollectible_at": null,
+ "paid_at": null,
+ "voided_at": null
},
- "name": null,
- "next_invoice_sequence": 1,
- "object": "customer",
- "phone": null,
- "preferred_locales": [],
- "shipping": null,
- "tax_exempt": "none",
- "test_clock": null
- },
- "previous_attributes": {
- "invoice_settings": {
- "default_payment_method": null
- }
+ "subtotal": 16000,
+ "subtotal_excluding_tax": 16000,
+ "test_clock": null,
+ "total": 16000,
+ "total_discount_amounts": [],
+ "total_excluding_tax": 16000,
+ "total_pretax_credit_amounts": [],
+ "total_taxes": [],
+ "webhooks_delivered_at": 1000000000
}
},
"id": "update_licenses_of_manual_plan_from_billing_page--Event.list.1.json",
@@ -47,10 +156,10 @@
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "update_licenses_of_manual_plan_from_billing_page--Event.list.1.json",
- "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ "id": null,
+ "idempotency_key": null
},
- "type": "customer.updated"
+ "type": "invoice.sent"
}
],
"has_more": true,
diff --git a/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Event.list.2.json b/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Event.list.2.json
index 3f34f9ab670..72d52dfe701 100644
--- a/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Event.list.2.json
+++ b/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Event.list.2.json
@@ -1,114 +1,354 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
- "amount": 800000,
- "amount_capturable": 0,
- "amount_details": {
- "tip": {}
- },
- "amount_received": 0,
+ "account_country": "US",
+ "account_name": "NORMALIZED",
+ "account_tax_ids": null,
+ "amount_due": 800000,
+ "amount_overpaid": 0,
+ "amount_paid": 800000,
+ "amount_remaining": 0,
+ "amount_shipping": 0,
"application": null,
- "application_fee_amount": null,
- "automatic_payment_methods": null,
- "canceled_at": 1000000000,
- "cancellation_reason": "requested_by_customer",
- "capture_method": "automatic",
- "client_secret": "NORMALIZED",
- "confirmation_method": "automatic",
+ "attempt_count": 0,
+ "attempted": false,
+ "auto_advance": false,
+ "automatic_tax": {
+ "disabled_reason": null,
+ "enabled": false,
+ "liability": null,
+ "provider": null,
+ "status": null
+ },
+ "automatically_finalizes_at": null,
+ "billing_reason": "manual",
+ "collection_method": "send_invoice",
"created": 1000000000,
"currency": "usd",
+ "custom_fields": null,
"customer": "update_licenses_of_manual_plan_from_billing_page--Customer.create.1.json",
- "description": "Payment for Invoice",
- "excluded_payment_method_types": null,
+ "customer_address": null,
+ "customer_email": "[email protected]",
+ "customer_name": null,
+ "customer_phone": null,
+ "customer_shipping": null,
+ "customer_tax_exempt": "none",
+ "customer_tax_ids": [],
+ "default_payment_method": null,
+ "default_source": null,
+ "default_tax_rates": [],
+ "description": null,
+ "discounts": [],
+ "due_date": 1000000000,
+ "effective_at": 1000000000,
+ "ending_balance": 0,
+ "footer": null,
+ "from_invoice": null,
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
"id": "update_licenses_of_manual_plan_from_billing_page--Event.list.2.json",
- "last_payment_error": null,
- "latest_charge": null,
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
+ "issuer": {
+ "type": "self"
+ },
+ "last_finalization_error": null,
+ "latest_revision": null,
+ "lines": {
+ "data": [
+ {
+ "amount": 800000,
+ "currency": "usd",
+ "description": "Zulip Cloud Standard",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "update_licenses_of_manual_plan_from_billing_page--Event.list.2.json",
+ "invoice": "update_licenses_of_manual_plan_from_billing_page--Event.list.2.json",
+ "livemode": false,
+ "metadata": {},
+ "object": "line_item",
+ "parent": {
+ "invoice_item_details": {
+ "invoice_item": "update_licenses_of_manual_plan_from_billing_page--Event.list.2.json",
+ "proration": false,
+ "proration_details": {
+ "credited_items": null
+ },
+ "subscription": null
+ },
+ "subscription_item_details": null,
+ "type": "invoice_item_details"
+ },
+ "period": {
+ "end": 1357095845,
+ "start": 1325473445
+ },
+ "pretax_credit_amounts": [],
+ "pricing": {
+ "price_details": {
+ "price": "price_NORMALIZED",
+ "product": "prod_NORMALIZED"
+ },
+ "type": "price_details",
+ "unit_amount_decimal": "8000"
+ },
+ "quantity": 100,
+ "taxes": []
+ }
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 1,
+ "url": "/v1/invoices/update_licenses_of_manual_plan_from_billing_page--Event.list.2.json/lines"
+ },
"livemode": false,
- "metadata": {},
- "next_action": null,
- "object": "payment_intent",
+ "metadata": {
+ "billing_schedule": "1",
+ "current_plan_id": "None",
+ "license_management": "manual",
+ "licenses": "100",
+ "on_free_trial": "False",
+ "plan_tier": "1",
+ "user_id": "10"
+ },
+ "next_payment_attempt": null,
+ "number": "NORMALIZED",
+ "object": "invoice",
"on_behalf_of": null,
- "payment_method": null,
- "payment_method_configuration_details": null,
- "payment_method_options": {
- "card": {
- "installments": null,
- "mandate_options": null,
- "network": null,
- "request_three_d_secure": "automatic"
+ "parent": null,
+ "payment_settings": {
+ "default_mandate": null,
+ "payment_method_options": null,
+ "payment_method_types": null
+ },
+ "period_end": 1000000000,
+ "period_start": 1000000000,
+ "post_payment_credit_notes_amount": 0,
+ "pre_payment_credit_notes_amount": 0,
+ "receipt_number": null,
+ "rendering": {
+ "amount_tax_display": null,
+ "pdf": {
+ "page_size": "letter"
},
- "link": {
- "persistent_token": null
- }
+ "template": null,
+ "template_version": null
},
- "payment_method_types": [
- "card",
- "link"
- ],
- "processing": null,
- "receipt_email": "[email protected]",
- "review": null,
- "setup_future_usage": null,
- "shipping": null,
- "source": null,
+ "shipping_cost": null,
+ "shipping_details": null,
+ "starting_balance": 0,
"statement_descriptor": "Zulip Cloud Standard",
- "statement_descriptor_suffix": null,
- "status": "canceled",
- "transfer_data": null,
- "transfer_group": null
+ "status": "paid",
+ "status_transitions": {
+ "finalized_at": 1000000000,
+ "marked_uncollectible_at": null,
+ "paid_at": 1000000000,
+ "voided_at": null
+ },
+ "subtotal": 800000,
+ "subtotal_excluding_tax": 800000,
+ "test_clock": null,
+ "total": 800000,
+ "total_discount_amounts": [],
+ "total_excluding_tax": 800000,
+ "total_pretax_credit_amounts": [],
+ "total_taxes": [],
+ "webhooks_delivered_at": 1000000000
}
},
"id": "update_licenses_of_manual_plan_from_billing_page--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
"id": "update_licenses_of_manual_plan_from_billing_page--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "payment_intent.canceled"
+ "type": "invoice.paid"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
- "amount_paid": 28000,
- "amount_requested": 28000,
+ "account_country": "US",
+ "account_name": "NORMALIZED",
+ "account_tax_ids": null,
+ "amount_due": 800000,
+ "amount_overpaid": 0,
+ "amount_paid": 800000,
+ "amount_remaining": 0,
+ "amount_shipping": 0,
+ "application": null,
+ "attempt_count": 0,
+ "attempted": false,
+ "auto_advance": false,
+ "automatic_tax": {
+ "disabled_reason": null,
+ "enabled": false,
+ "liability": null,
+ "provider": null,
+ "status": null
+ },
+ "automatically_finalizes_at": null,
+ "billing_reason": "manual",
+ "collection_method": "send_invoice",
"created": 1000000000,
"currency": "usd",
+ "custom_fields": null,
+ "customer": "update_licenses_of_manual_plan_from_billing_page--Customer.create.1.json",
+ "customer_address": null,
+ "customer_email": "[email protected]",
+ "customer_name": null,
+ "customer_phone": null,
+ "customer_shipping": null,
+ "customer_tax_exempt": "none",
+ "customer_tax_ids": [],
+ "default_payment_method": null,
+ "default_source": null,
+ "default_tax_rates": [],
+ "description": null,
+ "discounts": [],
+ "due_date": 1000000000,
+ "effective_at": 1000000000,
+ "ending_balance": 0,
+ "footer": null,
+ "from_invoice": null,
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
"id": "update_licenses_of_manual_plan_from_billing_page--Event.list.2.json",
- "invoice": "in_NORMALIZED",
- "is_default": true,
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
+ "issuer": {
+ "type": "self"
+ },
+ "last_finalization_error": null,
+ "latest_revision": null,
+ "lines": {
+ "data": [
+ {
+ "amount": 800000,
+ "currency": "usd",
+ "description": "Zulip Cloud Standard",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "update_licenses_of_manual_plan_from_billing_page--Event.list.2.json",
+ "invoice": "update_licenses_of_manual_plan_from_billing_page--Event.list.2.json",
+ "livemode": false,
+ "metadata": {},
+ "object": "line_item",
+ "parent": {
+ "invoice_item_details": {
+ "invoice_item": "update_licenses_of_manual_plan_from_billing_page--Event.list.2.json",
+ "proration": false,
+ "proration_details": {
+ "credited_items": null
+ },
+ "subscription": null
+ },
+ "subscription_item_details": null,
+ "type": "invoice_item_details"
+ },
+ "period": {
+ "end": 1357095845,
+ "start": 1325473445
+ },
+ "pretax_credit_amounts": [],
+ "pricing": {
+ "price_details": {
+ "price": "price_NORMALIZED",
+ "product": "prod_NORMALIZED"
+ },
+ "type": "price_details",
+ "unit_amount_decimal": "8000"
+ },
+ "quantity": 100,
+ "taxes": []
+ }
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 1,
+ "url": "/v1/invoices/update_licenses_of_manual_plan_from_billing_page--Event.list.2.json/lines"
+ },
"livemode": false,
- "object": "invoice_payment",
- "payment": {
- "payment_intent": "pi_NORMALIZED",
- "type": "payment_intent"
+ "metadata": {
+ "billing_schedule": "1",
+ "current_plan_id": "None",
+ "license_management": "manual",
+ "licenses": "100",
+ "on_free_trial": "False",
+ "plan_tier": "1",
+ "user_id": "10"
+ },
+ "next_payment_attempt": null,
+ "number": "NORMALIZED",
+ "object": "invoice",
+ "on_behalf_of": null,
+ "parent": null,
+ "payment_settings": {
+ "default_mandate": null,
+ "payment_method_options": null,
+ "payment_method_types": null
+ },
+ "period_end": 1000000000,
+ "period_start": 1000000000,
+ "post_payment_credit_notes_amount": 0,
+ "pre_payment_credit_notes_amount": 0,
+ "receipt_number": null,
+ "rendering": {
+ "amount_tax_display": null,
+ "pdf": {
+ "page_size": "letter"
+ },
+ "template": null,
+ "template_version": null
},
+ "shipping_cost": null,
+ "shipping_details": null,
+ "starting_balance": 0,
+ "statement_descriptor": "Zulip Cloud Standard",
"status": "paid",
"status_transitions": {
- "canceled_at": null,
- "paid_at": 1000000000
+ "finalized_at": 1000000000,
+ "marked_uncollectible_at": null,
+ "paid_at": 1000000000,
+ "voided_at": null
+ },
+ "subtotal": 800000,
+ "subtotal_excluding_tax": 800000,
+ "test_clock": null,
+ "total": 800000,
+ "total_discount_amounts": [],
+ "total_excluding_tax": 800000,
+ "total_pretax_credit_amounts": [],
+ "total_taxes": [],
+ "webhooks_delivered_at": 1000000000
+ },
+ "previous_attributes": {
+ "amount_paid": 0,
+ "amount_remaining": 800000,
+ "auto_advance": true,
+ "status": "open",
+ "status_transitions": {
+ "paid_at": null
}
}
},
"id": "update_licenses_of_manual_plan_from_billing_page--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
- "id": null,
- "idempotency_key": null
+ "id": "update_licenses_of_manual_plan_from_billing_page--Event.list.2.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "invoice_payment.paid"
+ "type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -277,7 +517,7 @@
"type": "invoice.finalized"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -463,7 +703,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -535,7 +775,7 @@
"type": "payment_intent.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -690,7 +930,7 @@
"total_excluding_tax": 800000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
},
"previous_attributes": {
"amount_due": 0,
@@ -716,7 +956,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -763,7 +1003,7 @@
"type": "invoiceitem.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -891,7 +1131,7 @@
"type": "invoice.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -941,7 +1181,7 @@
"type": "customer.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
diff --git a/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Event.list.3.json b/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Event.list.3.json
index aa4d6e79a09..b90b8b4de7c 100644
--- a/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Event.list.3.json
+++ b/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Event.list.3.json
@@ -1,162 +1,28 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
- "account_country": "US",
- "account_name": "NORMALIZED",
- "account_tax_ids": null,
- "amount_due": 800000,
- "amount_overpaid": 0,
"amount_paid": 800000,
- "amount_remaining": 0,
- "amount_shipping": 0,
- "application": null,
- "attempt_count": 0,
- "attempted": false,
- "auto_advance": false,
- "automatic_tax": {
- "disabled_reason": null,
- "enabled": false,
- "liability": null,
- "provider": null,
- "status": null
- },
- "automatically_finalizes_at": null,
- "billing_reason": "manual",
- "collection_method": "send_invoice",
+ "amount_requested": 800000,
"created": 1000000000,
"currency": "usd",
- "custom_fields": null,
- "customer": "cus_NORMALIZED",
- "customer_address": null,
- "customer_email": "[email protected]",
- "customer_name": null,
- "customer_phone": null,
- "customer_shipping": null,
- "customer_tax_exempt": "none",
- "customer_tax_ids": [],
- "default_payment_method": null,
- "default_source": null,
- "default_tax_rates": [],
- "description": null,
- "discounts": [],
- "due_date": 1000000000,
- "effective_at": 1000000000,
- "ending_balance": 0,
- "footer": null,
- "from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
- "id": "update_licenses_of_manual_plan_from_billing_page--Event.list.2.json",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
- "issuer": {
- "type": "self"
- },
- "last_finalization_error": null,
- "latest_revision": null,
- "lines": {
- "data": [
- {
- "amount": 800000,
- "currency": "usd",
- "description": "Zulip Cloud Standard",
- "discount_amounts": [],
- "discountable": false,
- "discounts": [],
- "id": "update_licenses_of_manual_plan_from_billing_page--Event.list.2.json",
- "invoice": "update_licenses_of_manual_plan_from_billing_page--Event.list.2.json",
- "livemode": false,
- "metadata": {},
- "object": "line_item",
- "parent": {
- "invoice_item_details": {
- "invoice_item": "ii_NORMALIZED",
- "proration": false,
- "proration_details": {
- "credited_items": null
- },
- "subscription": null
- },
- "subscription_item_details": null,
- "type": "invoice_item_details"
- },
- "period": {
- "end": 1357095845,
- "start": 1325473445
- },
- "pretax_credit_amounts": [],
- "pricing": {
- "price_details": {
- "price": "price_NORMALIZED",
- "product": "prod_NORMALIZED"
- },
- "type": "price_details",
- "unit_amount_decimal": "8000"
- },
- "quantity": 100,
- "taxes": []
- }
- ],
- "has_more": false,
- "object": "list",
- "total_count": 1,
- "url": "/v1/invoices/update_licenses_of_manual_plan_from_billing_page--Event.list.2.json/lines"
- },
+ "id": "update_licenses_of_manual_plan_from_billing_page--Event.list.3.json",
+ "invoice": "in_NORMALIZED",
+ "is_default": false,
"livemode": false,
- "metadata": {
- "billing_schedule": "1",
- "current_plan_id": "None",
- "license_management": "manual",
- "licenses": "100",
- "on_free_trial": "False",
- "plan_tier": "1",
- "user_id": "10"
+ "object": "invoice_payment",
+ "payment": {
+ "payment_record": "pr_test_NORMALIZEDXS48AdH41RVfKEFJaqcVTE",
+ "type": "payment_record"
},
- "next_payment_attempt": null,
- "number": "NORMALIZED",
- "object": "invoice",
- "on_behalf_of": null,
- "parent": null,
- "payment_settings": {
- "default_mandate": null,
- "payment_method_options": null,
- "payment_method_types": null
- },
- "period_end": 1000000000,
- "period_start": 1000000000,
- "post_payment_credit_notes_amount": 0,
- "pre_payment_credit_notes_amount": 0,
- "receipt_number": null,
- "rendering": {
- "amount_tax_display": null,
- "pdf": {
- "page_size": "letter"
- },
- "template": null,
- "template_version": null
- },
- "shipping_cost": null,
- "shipping_details": null,
- "starting_balance": 0,
- "statement_descriptor": "Zulip Cloud Standard",
"status": "paid",
"status_transitions": {
- "finalized_at": 1000000000,
- "marked_uncollectible_at": null,
- "paid_at": 1000000000,
- "voided_at": null
- },
- "subtotal": 800000,
- "subtotal_excluding_tax": 800000,
- "test_clock": null,
- "total": 800000,
- "total_discount_amounts": [],
- "total_excluding_tax": 800000,
- "total_pretax_credit_amounts": [],
- "total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "canceled_at": null,
+ "paid_at": 1000000000
+ }
}
},
"id": "update_licenses_of_manual_plan_from_billing_page--Event.list.3.json",
@@ -167,174 +33,72 @@
"id": "update_licenses_of_manual_plan_from_billing_page--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "invoice.paid"
+ "type": "invoice_payment.paid"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
- "account_country": "US",
- "account_name": "NORMALIZED",
- "account_tax_ids": null,
- "amount_due": 800000,
- "amount_overpaid": 0,
- "amount_paid": 800000,
- "amount_remaining": 0,
- "amount_shipping": 0,
- "application": null,
- "attempt_count": 0,
- "attempted": false,
- "auto_advance": false,
- "automatic_tax": {
- "disabled_reason": null,
- "enabled": false,
- "liability": null,
- "provider": null,
- "status": null
+ "amount": 800000,
+ "amount_capturable": 0,
+ "amount_details": {
+ "tip": {}
},
- "automatically_finalizes_at": null,
- "billing_reason": "manual",
- "collection_method": "send_invoice",
+ "amount_received": 0,
+ "application": null,
+ "application_fee_amount": null,
+ "automatic_payment_methods": null,
+ "canceled_at": 1000000000,
+ "cancellation_reason": "requested_by_customer",
+ "capture_method": "automatic",
+ "client_secret": "NORMALIZED",
+ "confirmation_method": "automatic",
"created": 1000000000,
"currency": "usd",
- "custom_fields": null,
"customer": "cus_NORMALIZED",
- "customer_address": null,
- "customer_email": "[email protected]",
- "customer_name": null,
- "customer_phone": null,
- "customer_shipping": null,
- "customer_tax_exempt": "none",
- "customer_tax_ids": [],
- "default_payment_method": null,
- "default_source": null,
- "default_tax_rates": [],
- "description": null,
- "discounts": [],
- "due_date": 1000000000,
- "effective_at": 1000000000,
- "ending_balance": 0,
- "footer": null,
- "from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
+ "description": "Payment for Invoice",
+ "excluded_payment_method_types": null,
"id": "update_licenses_of_manual_plan_from_billing_page--Event.list.2.json",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
- "issuer": {
- "type": "self"
- },
- "last_finalization_error": null,
- "latest_revision": null,
- "lines": {
- "data": [
- {
- "amount": 800000,
- "currency": "usd",
- "description": "Zulip Cloud Standard",
- "discount_amounts": [],
- "discountable": false,
- "discounts": [],
- "id": "update_licenses_of_manual_plan_from_billing_page--Event.list.2.json",
- "invoice": "update_licenses_of_manual_plan_from_billing_page--Event.list.2.json",
- "livemode": false,
- "metadata": {},
- "object": "line_item",
- "parent": {
- "invoice_item_details": {
- "invoice_item": "ii_NORMALIZED",
- "proration": false,
- "proration_details": {
- "credited_items": null
- },
- "subscription": null
- },
- "subscription_item_details": null,
- "type": "invoice_item_details"
- },
- "period": {
- "end": 1357095845,
- "start": 1325473445
- },
- "pretax_credit_amounts": [],
- "pricing": {
- "price_details": {
- "price": "price_NORMALIZED",
- "product": "prod_NORMALIZED"
- },
- "type": "price_details",
- "unit_amount_decimal": "8000"
- },
- "quantity": 100,
- "taxes": []
- }
- ],
- "has_more": false,
- "object": "list",
- "total_count": 1,
- "url": "/v1/invoices/update_licenses_of_manual_plan_from_billing_page--Event.list.2.json/lines"
- },
+ "last_payment_error": null,
+ "latest_charge": null,
"livemode": false,
- "metadata": {
- "billing_schedule": "1",
- "current_plan_id": "None",
- "license_management": "manual",
- "licenses": "100",
- "on_free_trial": "False",
- "plan_tier": "1",
- "user_id": "10"
- },
- "next_payment_attempt": null,
- "number": "NORMALIZED",
- "object": "invoice",
+ "metadata": {},
+ "next_action": null,
+ "object": "payment_intent",
"on_behalf_of": null,
- "parent": null,
- "payment_settings": {
- "default_mandate": null,
- "payment_method_options": null,
- "payment_method_types": null
+ "payment_details": {
+ "customer_reference": null,
+ "order_reference": "in_1SPR1nRVfKEFJaqc1m75hR"
},
- "period_end": 1000000000,
- "period_start": 1000000000,
- "post_payment_credit_notes_amount": 0,
- "pre_payment_credit_notes_amount": 0,
- "receipt_number": null,
- "rendering": {
- "amount_tax_display": null,
- "pdf": {
- "page_size": "letter"
+ "payment_method": null,
+ "payment_method_configuration_details": null,
+ "payment_method_options": {
+ "card": {
+ "installments": null,
+ "mandate_options": null,
+ "network": null,
+ "request_three_d_secure": "automatic"
},
- "template": null,
- "template_version": null
+ "link": {
+ "persistent_token": null
+ }
},
- "shipping_cost": null,
- "shipping_details": null,
- "starting_balance": 0,
+ "payment_method_types": [
+ "card",
+ "link"
+ ],
+ "processing": null,
+ "receipt_email": "[email protected]",
+ "review": null,
+ "setup_future_usage": null,
+ "shipping": null,
+ "source": null,
"statement_descriptor": "Zulip Cloud Standard",
- "status": "paid",
- "status_transitions": {
- "finalized_at": 1000000000,
- "marked_uncollectible_at": null,
- "paid_at": 1000000000,
- "voided_at": null
- },
- "subtotal": 800000,
- "subtotal_excluding_tax": 800000,
- "test_clock": null,
- "total": 800000,
- "total_discount_amounts": [],
- "total_excluding_tax": 800000,
- "total_pretax_credit_amounts": [],
- "total_taxes": [],
- "webhooks_delivered_at": 1000000000
- },
- "previous_attributes": {
- "amount_paid": 0,
- "amount_remaining": 800000,
- "auto_advance": true,
- "status": "open",
- "status_transitions": {
- "paid_at": null
- }
+ "statement_descriptor_suffix": null,
+ "status": "canceled",
+ "transfer_data": null,
+ "transfer_group": null
}
},
"id": "update_licenses_of_manual_plan_from_billing_page--Event.list.3.json",
@@ -345,7 +109,7 @@
"id": "update_licenses_of_manual_plan_from_billing_page--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "invoice.updated"
+ "type": "payment_intent.canceled"
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card--Charge.list.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card--Charge.list.1.json
index 6ef6f5a748c..e54422161f1 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card--Charge.list.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card--Charge.list.1.json
@@ -58,7 +58,7 @@
"payment_method_details": {
"card": {
"amount_authorized": 48000,
- "authorization_code": "037102",
+ "authorization_code": "216066",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.1.json
index ed6c9753aac..6aa800f1e15 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.1.json
@@ -1,154 +1,28 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
- "account_country": "US",
- "account_name": "NORMALIZED",
- "account_tax_ids": null,
- "amount_due": 960000,
- "amount_overpaid": 0,
- "amount_paid": 0,
- "amount_remaining": 960000,
- "amount_shipping": 0,
- "application": null,
- "attempt_count": 0,
- "attempted": false,
- "auto_advance": true,
- "automatic_tax": {
- "disabled_reason": null,
- "enabled": false,
- "liability": null,
- "provider": null,
- "status": null
- },
- "automatically_finalizes_at": null,
- "billing_reason": "manual",
- "collection_method": "send_invoice",
+ "amount_paid": 800000,
+ "amount_requested": 800000,
"created": 1000000000,
"currency": "usd",
- "custom_fields": null,
- "customer": "cus_NORMALIZED",
- "customer_address": null,
- "customer_email": "[email protected]",
- "customer_name": null,
- "customer_phone": null,
- "customer_shipping": null,
- "customer_tax_exempt": "none",
- "customer_tax_ids": [],
- "default_payment_method": null,
- "default_source": null,
- "default_tax_rates": [],
- "description": null,
- "discounts": [],
- "due_date": 1000000000,
- "effective_at": 1000000000,
- "ending_balance": 0,
- "footer": null,
- "from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
"id": "upgrade_by_card--Event.list.1.json",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
- "issuer": {
- "type": "self"
- },
- "last_finalization_error": null,
- "latest_revision": null,
- "lines": {
- "data": [
- {
- "amount": 960000,
- "currency": "usd",
- "description": "Zulip Cloud Standard - renewal",
- "discount_amounts": [],
- "discountable": false,
- "discounts": [],
- "id": "upgrade_by_card--Event.list.1.json",
- "invoice": "upgrade_by_card--Event.list.1.json",
- "livemode": false,
- "metadata": {},
- "object": "line_item",
- "parent": {
- "invoice_item_details": {
- "invoice_item": "ii_NORMALIZED",
- "proration": false,
- "proration_details": {
- "credited_items": null
- },
- "subscription": null
- },
- "subscription_item_details": null,
- "type": "invoice_item_details"
- },
- "period": {
- "end": 1420167845,
- "start": 1388631845
- },
- "pretax_credit_amounts": [],
- "pricing": {
- "price_details": {
- "price": "price_NORMALIZED",
- "product": "prod_NORMALIZED"
- },
- "type": "price_details",
- "unit_amount_decimal": "8000"
- },
- "quantity": 120,
- "taxes": []
- }
- ],
- "has_more": false,
- "object": "list",
- "total_count": 1,
- "url": "/v1/invoices/upgrade_by_card--Event.list.1.json/lines"
- },
+ "invoice": "in_NORMALIZED",
+ "is_default": false,
"livemode": false,
- "metadata": {},
- "next_payment_attempt": null,
- "number": "NORMALIZED",
- "object": "invoice",
- "on_behalf_of": null,
- "parent": null,
- "payment_settings": {
- "default_mandate": null,
- "payment_method_options": null,
- "payment_method_types": null
+ "object": "invoice_payment",
+ "payment": {
+ "payment_record": "pr_test_NORMALIZEDvwETibg41RVfKEFJaqcW24",
+ "type": "payment_record"
},
- "period_end": 1000000000,
- "period_start": 1000000000,
- "post_payment_credit_notes_amount": 0,
- "pre_payment_credit_notes_amount": 0,
- "receipt_number": null,
- "rendering": {
- "amount_tax_display": null,
- "pdf": {
- "page_size": "letter"
- },
- "template": null,
- "template_version": null
- },
- "shipping_cost": null,
- "shipping_details": null,
- "starting_balance": 0,
- "statement_descriptor": "Zulip Cloud Standard",
- "status": "open",
+ "status": "paid",
"status_transitions": {
- "finalized_at": 1000000000,
- "marked_uncollectible_at": null,
- "paid_at": null,
- "voided_at": null
- },
- "subtotal": 960000,
- "subtotal_excluding_tax": 960000,
- "test_clock": null,
- "total": 960000,
- "total_discount_amounts": [],
- "total_excluding_tax": 960000,
- "total_pretax_credit_amounts": [],
- "total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "canceled_at": null,
+ "paid_at": 1000000000
+ }
}
},
"id": "upgrade_by_card--Event.list.1.json",
@@ -159,7 +33,7 @@
"id": "upgrade_by_card--Event.list.1.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "invoice.finalized"
+ "type": "invoice_payment.paid"
}
],
"has_more": true,
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.2.json b/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.2.json
index 0a4d394cef2..3268d1fb565 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.2.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.2.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.3.json b/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.3.json
index bbd1f6a727d..4f9e6373af8 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.3.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.3.json
@@ -1,170 +1,26 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
- "account_country": "US",
- "account_name": "NORMALIZED",
- "account_tax_ids": null,
- "amount_due": 48000,
- "amount_overpaid": 0,
- "amount_paid": 48000,
- "amount_remaining": 0,
- "amount_shipping": 0,
- "application": null,
- "attempt_count": 1,
- "attempted": true,
- "auto_advance": false,
- "automatic_tax": {
- "disabled_reason": null,
- "enabled": false,
- "liability": null,
- "provider": null,
- "status": null
- },
- "automatically_finalizes_at": null,
- "billing_reason": "manual",
- "collection_method": "charge_automatically",
+ "amount_paid": null,
+ "amount_requested": 48000,
"created": 1000000000,
"currency": "usd",
- "custom_fields": null,
- "customer": "upgrade_by_card--Customer.create.1.json",
- "customer_address": null,
- "customer_email": "[email protected]",
- "customer_name": null,
- "customer_phone": null,
- "customer_shipping": null,
- "customer_tax_exempt": "none",
- "customer_tax_ids": [],
- "default_payment_method": null,
- "default_source": null,
- "default_tax_rates": [],
- "description": null,
- "discounts": [],
- "due_date": null,
- "effective_at": 1000000000,
- "ending_balance": 0,
- "footer": null,
- "from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
"id": "upgrade_by_card--Event.list.3.json",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
- "issuer": {
- "type": "self"
- },
- "last_finalization_error": null,
- "latest_revision": null,
- "lines": {
- "data": [
- {
- "amount": 48000,
- "currency": "usd",
- "description": "Zulip Cloud Standard",
- "discount_amounts": [],
- "discountable": false,
- "discounts": [],
- "id": "upgrade_by_card--Event.list.3.json",
- "invoice": "upgrade_by_card--Event.list.3.json",
- "livemode": false,
- "metadata": {},
- "object": "line_item",
- "parent": {
- "invoice_item_details": {
- "invoice_item": "upgrade_by_card--Event.list.3.json",
- "proration": false,
- "proration_details": {
- "credited_items": null
- },
- "subscription": null
- },
- "subscription_item_details": null,
- "type": "invoice_item_details"
- },
- "period": {
- "end": 1357095845,
- "start": 1325473445
- },
- "pretax_credit_amounts": [],
- "pricing": {
- "price_details": {
- "price": "price_NORMALIZED",
- "product": "prod_NORMALIZED"
- },
- "type": "price_details",
- "unit_amount_decimal": "8000"
- },
- "quantity": 6,
- "taxes": []
- }
- ],
- "has_more": false,
- "object": "list",
- "total_count": 1,
- "url": "/v1/invoices/upgrade_by_card--Event.list.3.json/lines"
- },
+ "invoice": "upgrade_by_card--Event.list.3.json",
+ "is_default": true,
"livemode": false,
- "metadata": {
- "billing_schedule": "1",
- "current_plan_id": "None",
- "license_management": "automatic",
- "licenses": "6",
- "on_free_trial": "False",
- "plan_tier": "1",
- "user_id": "10"
- },
- "next_payment_attempt": null,
- "number": "NORMALIZED",
- "object": "invoice",
- "on_behalf_of": null,
- "parent": null,
- "payment_settings": {
- "default_mandate": null,
- "payment_method_options": null,
- "payment_method_types": null
- },
- "period_end": 1000000000,
- "period_start": 1000000000,
- "post_payment_credit_notes_amount": 0,
- "pre_payment_credit_notes_amount": 0,
- "receipt_number": null,
- "rendering": {
- "amount_tax_display": null,
- "pdf": {
- "page_size": "letter"
- },
- "template": null,
- "template_version": null
- },
- "shipping_cost": null,
- "shipping_details": null,
- "starting_balance": 0,
- "statement_descriptor": "Zulip Cloud Standard",
- "status": "paid",
- "status_transitions": {
- "finalized_at": 1000000000,
- "marked_uncollectible_at": null,
- "paid_at": 1000000000,
- "voided_at": null
+ "object": "invoice_payment",
+ "payment": {
+ "payment_intent": "upgrade_by_card--Event.list.3.json",
+ "type": "payment_intent"
},
- "subtotal": 48000,
- "subtotal_excluding_tax": 48000,
- "test_clock": null,
- "total": 48000,
- "total_discount_amounts": [],
- "total_excluding_tax": 48000,
- "total_pretax_credit_amounts": [],
- "total_taxes": [],
- "webhooks_delivered_at": 1000000000
- },
- "previous_attributes": {
- "amount_paid": 0,
- "amount_remaining": 48000,
- "attempt_count": 0,
- "attempted": false,
"status": "open",
"status_transitions": {
+ "canceled_at": null,
"paid_at": null
}
}
@@ -177,10 +33,10 @@
"id": "upgrade_by_card--Event.list.3.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "invoice.updated"
+ "type": "invoice_payment.paid"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -211,6 +67,10 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
+ "payment_details": {
+ "customer_reference": null,
+ "order_reference": "in_1SPP4wRVfKEFJaqcEJb2FA"
+ },
"payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
"payment_method_options": {
@@ -252,7 +112,7 @@
"type": "payment_intent.succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -313,7 +173,7 @@
"payment_method_details": {
"card": {
"amount_authorized": 48000,
- "authorization_code": "037102",
+ "authorization_code": "216066",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
@@ -371,7 +231,7 @@
"id": "upgrade_by_card--Event.list.3.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
"id": "upgrade_by_card--Event.list.3.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -379,7 +239,7 @@
"type": "charge.succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -548,7 +408,7 @@
"type": "invoice.finalized"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -733,7 +593,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -805,7 +665,7 @@
"type": "payment_intent.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -986,7 +846,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1033,7 +893,7 @@
"type": "invoiceitem.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1161,7 +1021,7 @@
"type": "invoice.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.4.json b/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.4.json
index 9794ee70bc0..3f21ced5bcc 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.4.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.4.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -170,7 +170,7 @@
"type": "invoice.payment_succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -337,6 +337,185 @@
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "invoice.paid"
+ },
+ {
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "account_country": "US",
+ "account_name": "NORMALIZED",
+ "account_tax_ids": null,
+ "amount_due": 48000,
+ "amount_overpaid": 0,
+ "amount_paid": 48000,
+ "amount_remaining": 0,
+ "amount_shipping": 0,
+ "application": null,
+ "attempt_count": 1,
+ "attempted": true,
+ "auto_advance": false,
+ "automatic_tax": {
+ "disabled_reason": null,
+ "enabled": false,
+ "liability": null,
+ "provider": null,
+ "status": null
+ },
+ "automatically_finalizes_at": null,
+ "billing_reason": "manual",
+ "collection_method": "charge_automatically",
+ "created": 1000000000,
+ "currency": "usd",
+ "custom_fields": null,
+ "customer": "cus_NORMALIZED",
+ "customer_address": null,
+ "customer_email": "[email protected]",
+ "customer_name": null,
+ "customer_phone": null,
+ "customer_shipping": null,
+ "customer_tax_exempt": "none",
+ "customer_tax_ids": [],
+ "default_payment_method": null,
+ "default_source": null,
+ "default_tax_rates": [],
+ "description": null,
+ "discounts": [],
+ "due_date": null,
+ "effective_at": 1000000000,
+ "ending_balance": 0,
+ "footer": null,
+ "from_invoice": null,
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
+ "id": "upgrade_by_card--Event.list.3.json",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
+ "issuer": {
+ "type": "self"
+ },
+ "last_finalization_error": null,
+ "latest_revision": null,
+ "lines": {
+ "data": [
+ {
+ "amount": 48000,
+ "currency": "usd",
+ "description": "Zulip Cloud Standard",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "upgrade_by_card--Event.list.3.json",
+ "invoice": "upgrade_by_card--Event.list.3.json",
+ "livemode": false,
+ "metadata": {},
+ "object": "line_item",
+ "parent": {
+ "invoice_item_details": {
+ "invoice_item": "ii_NORMALIZED",
+ "proration": false,
+ "proration_details": {
+ "credited_items": null
+ },
+ "subscription": null
+ },
+ "subscription_item_details": null,
+ "type": "invoice_item_details"
+ },
+ "period": {
+ "end": 1357095845,
+ "start": 1325473445
+ },
+ "pretax_credit_amounts": [],
+ "pricing": {
+ "price_details": {
+ "price": "price_NORMALIZED",
+ "product": "prod_NORMALIZED"
+ },
+ "type": "price_details",
+ "unit_amount_decimal": "8000"
+ },
+ "quantity": 6,
+ "taxes": []
+ }
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 1,
+ "url": "/v1/invoices/upgrade_by_card--Event.list.3.json/lines"
+ },
+ "livemode": false,
+ "metadata": {
+ "billing_schedule": "1",
+ "current_plan_id": "None",
+ "license_management": "automatic",
+ "licenses": "6",
+ "on_free_trial": "False",
+ "plan_tier": "1",
+ "user_id": "10"
+ },
+ "next_payment_attempt": null,
+ "number": "NORMALIZED",
+ "object": "invoice",
+ "on_behalf_of": null,
+ "parent": null,
+ "payment_settings": {
+ "default_mandate": null,
+ "payment_method_options": null,
+ "payment_method_types": null
+ },
+ "period_end": 1000000000,
+ "period_start": 1000000000,
+ "post_payment_credit_notes_amount": 0,
+ "pre_payment_credit_notes_amount": 0,
+ "receipt_number": null,
+ "rendering": {
+ "amount_tax_display": null,
+ "pdf": {
+ "page_size": "letter"
+ },
+ "template": null,
+ "template_version": null
+ },
+ "shipping_cost": null,
+ "shipping_details": null,
+ "starting_balance": 0,
+ "statement_descriptor": "Zulip Cloud Standard",
+ "status": "paid",
+ "status_transitions": {
+ "finalized_at": 1000000000,
+ "marked_uncollectible_at": null,
+ "paid_at": 1000000000,
+ "voided_at": null
+ },
+ "subtotal": 48000,
+ "subtotal_excluding_tax": 48000,
+ "test_clock": null,
+ "total": 48000,
+ "total_discount_amounts": [],
+ "total_excluding_tax": 48000,
+ "total_pretax_credit_amounts": [],
+ "total_taxes": [],
+ "webhooks_delivered_at": 1000000000
+ },
+ "previous_attributes": {
+ "amount_paid": 0,
+ "amount_remaining": 48000,
+ "attempt_count": 0,
+ "attempted": false,
+ "status": "open",
+ "status_transitions": {
+ "paid_at": null
+ }
+ }
+ },
+ "id": "upgrade_by_card--Event.list.4.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "upgrade_by_card--Event.list.3.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ },
+ "type": "invoice.updated"
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card--SetupIntent.create.1.json
index 58b3d9c731d..0aa29fa2288 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card--SetupIntent.create.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "upgrade_by_card--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card--SetupIntent.list.1.json
index e12f9d63e9b..e22cfb4883c 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card--SetupIntent.list.1.json
@@ -8,6 +8,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "upgrade_by_card--SetupIntent.list.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card--SetupIntent.retrieve.1.json
index 58b3d9c731d..0aa29fa2288 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card--SetupIntent.retrieve.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "upgrade_by_card--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Charge.list.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Charge.list.1.json
index 54c9ef48e5b..cf9ba5f3064 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Charge.list.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Charge.list.1.json
@@ -58,7 +58,7 @@
"payment_method_details": {
"card": {
"amount_authorized": 120000,
- "authorization_code": "356934",
+ "authorization_code": "277533",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Event.list.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Event.list.1.json
index 14ddb62185b..6ce3c613dbc 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Event.list.1.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Event.list.2.json b/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Event.list.2.json
index 1e3c9a7057f..a1bae7a6772 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Event.list.2.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Event.list.2.json
@@ -1,170 +1,26 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
- "account_country": "US",
- "account_name": "NORMALIZED",
- "account_tax_ids": null,
- "amount_due": 120000,
- "amount_overpaid": 0,
- "amount_paid": 120000,
- "amount_remaining": 0,
- "amount_shipping": 0,
- "application": null,
- "attempt_count": 1,
- "attempted": true,
- "auto_advance": false,
- "automatic_tax": {
- "disabled_reason": null,
- "enabled": false,
- "liability": null,
- "provider": null,
- "status": null
- },
- "automatically_finalizes_at": null,
- "billing_reason": "manual",
- "collection_method": "charge_automatically",
+ "amount_paid": null,
+ "amount_requested": 120000,
"created": 1000000000,
"currency": "usd",
- "custom_fields": null,
- "customer": "upgrade_by_card_to_plus_plan--Customer.create.1.json",
- "customer_address": null,
- "customer_email": "[email protected]",
- "customer_name": null,
- "customer_phone": null,
- "customer_shipping": null,
- "customer_tax_exempt": "none",
- "customer_tax_ids": [],
- "default_payment_method": null,
- "default_source": null,
- "default_tax_rates": [],
- "description": null,
- "discounts": [],
- "due_date": null,
- "effective_at": 1000000000,
- "ending_balance": 0,
- "footer": null,
- "from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
"id": "upgrade_by_card_to_plus_plan--Event.list.2.json",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
- "issuer": {
- "type": "self"
- },
- "last_finalization_error": null,
- "latest_revision": null,
- "lines": {
- "data": [
- {
- "amount": 120000,
- "currency": "usd",
- "description": "Zulip Cloud Plus",
- "discount_amounts": [],
- "discountable": false,
- "discounts": [],
- "id": "upgrade_by_card_to_plus_plan--Event.list.2.json",
- "invoice": "upgrade_by_card_to_plus_plan--Event.list.2.json",
- "livemode": false,
- "metadata": {},
- "object": "line_item",
- "parent": {
- "invoice_item_details": {
- "invoice_item": "upgrade_by_card_to_plus_plan--Event.list.2.json",
- "proration": false,
- "proration_details": {
- "credited_items": null
- },
- "subscription": null
- },
- "subscription_item_details": null,
- "type": "invoice_item_details"
- },
- "period": {
- "end": 1357095845,
- "start": 1325473445
- },
- "pretax_credit_amounts": [],
- "pricing": {
- "price_details": {
- "price": "price_NORMALIZED",
- "product": "prod_NORMALIZED"
- },
- "type": "price_details",
- "unit_amount_decimal": "12000"
- },
- "quantity": 10,
- "taxes": []
- }
- ],
- "has_more": false,
- "object": "list",
- "total_count": 1,
- "url": "/v1/invoices/upgrade_by_card_to_plus_plan--Event.list.2.json/lines"
- },
+ "invoice": "upgrade_by_card_to_plus_plan--Event.list.2.json",
+ "is_default": true,
"livemode": false,
- "metadata": {
- "billing_schedule": "1",
- "current_plan_id": "None",
- "license_management": "automatic",
- "licenses": "10",
- "on_free_trial": "False",
- "plan_tier": "2",
- "user_id": "10"
- },
- "next_payment_attempt": null,
- "number": "NORMALIZED",
- "object": "invoice",
- "on_behalf_of": null,
- "parent": null,
- "payment_settings": {
- "default_mandate": null,
- "payment_method_options": null,
- "payment_method_types": null
+ "object": "invoice_payment",
+ "payment": {
+ "payment_intent": "upgrade_by_card_to_plus_plan--Event.list.2.json",
+ "type": "payment_intent"
},
- "period_end": 1000000000,
- "period_start": 1000000000,
- "post_payment_credit_notes_amount": 0,
- "pre_payment_credit_notes_amount": 0,
- "receipt_number": null,
- "rendering": {
- "amount_tax_display": null,
- "pdf": {
- "page_size": "letter"
- },
- "template": null,
- "template_version": null
- },
- "shipping_cost": null,
- "shipping_details": null,
- "starting_balance": 0,
- "statement_descriptor": "Zulip Cloud Plus",
- "status": "paid",
- "status_transitions": {
- "finalized_at": 1000000000,
- "marked_uncollectible_at": null,
- "paid_at": 1000000000,
- "voided_at": null
- },
- "subtotal": 120000,
- "subtotal_excluding_tax": 120000,
- "test_clock": null,
- "total": 120000,
- "total_discount_amounts": [],
- "total_excluding_tax": 120000,
- "total_pretax_credit_amounts": [],
- "total_taxes": [],
- "webhooks_delivered_at": 1000000000
- },
- "previous_attributes": {
- "amount_paid": 0,
- "amount_remaining": 120000,
- "attempt_count": 0,
- "attempted": false,
"status": "open",
"status_transitions": {
+ "canceled_at": null,
"paid_at": null
}
}
@@ -172,15 +28,15 @@
"id": "upgrade_by_card_to_plus_plan--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 2,
+ "pending_webhooks": 0,
"request": {
"id": "upgrade_by_card_to_plus_plan--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "invoice.updated"
+ "type": "invoice_payment.paid"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -211,6 +67,10 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
+ "payment_details": {
+ "customer_reference": null,
+ "order_reference": "in_1SPP5ARVfKEFJaqcMBvXG3"
+ },
"payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
"payment_method_options": {
@@ -244,7 +104,7 @@
"id": "upgrade_by_card_to_plus_plan--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
"id": "upgrade_by_card_to_plus_plan--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -252,7 +112,7 @@
"type": "payment_intent.succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -313,7 +173,7 @@
"payment_method_details": {
"card": {
"amount_authorized": 120000,
- "authorization_code": "356934",
+ "authorization_code": "277533",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
@@ -371,7 +231,7 @@
"id": "upgrade_by_card_to_plus_plan--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
"id": "upgrade_by_card_to_plus_plan--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -379,7 +239,7 @@
"type": "charge.succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -548,7 +408,7 @@
"type": "invoice.finalized"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -733,7 +593,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -805,7 +665,7 @@
"type": "payment_intent.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -960,7 +820,7 @@
"total_excluding_tax": 120000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
},
"previous_attributes": {
"amount_due": 0,
@@ -986,7 +846,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1033,7 +893,7 @@
"type": "invoiceitem.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1161,7 +1021,7 @@
"type": "invoice.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1211,7 +1071,7 @@
"type": "customer.updated"
}
],
- "has_more": true,
+ "has_more": false,
"object": "list",
"url": "/v1/events"
}
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Event.list.3.json b/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Event.list.3.json
index 88b7edc36f4..6053fc4ac93 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Event.list.3.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Event.list.3.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -170,7 +170,7 @@
"type": "invoice.payment_succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -337,6 +337,185 @@
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "invoice.paid"
+ },
+ {
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "account_country": "US",
+ "account_name": "NORMALIZED",
+ "account_tax_ids": null,
+ "amount_due": 120000,
+ "amount_overpaid": 0,
+ "amount_paid": 120000,
+ "amount_remaining": 0,
+ "amount_shipping": 0,
+ "application": null,
+ "attempt_count": 1,
+ "attempted": true,
+ "auto_advance": false,
+ "automatic_tax": {
+ "disabled_reason": null,
+ "enabled": false,
+ "liability": null,
+ "provider": null,
+ "status": null
+ },
+ "automatically_finalizes_at": null,
+ "billing_reason": "manual",
+ "collection_method": "charge_automatically",
+ "created": 1000000000,
+ "currency": "usd",
+ "custom_fields": null,
+ "customer": "cus_NORMALIZED",
+ "customer_address": null,
+ "customer_email": "[email protected]",
+ "customer_name": null,
+ "customer_phone": null,
+ "customer_shipping": null,
+ "customer_tax_exempt": "none",
+ "customer_tax_ids": [],
+ "default_payment_method": null,
+ "default_source": null,
+ "default_tax_rates": [],
+ "description": null,
+ "discounts": [],
+ "due_date": null,
+ "effective_at": 1000000000,
+ "ending_balance": 0,
+ "footer": null,
+ "from_invoice": null,
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
+ "id": "upgrade_by_card_to_plus_plan--Event.list.2.json",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
+ "issuer": {
+ "type": "self"
+ },
+ "last_finalization_error": null,
+ "latest_revision": null,
+ "lines": {
+ "data": [
+ {
+ "amount": 120000,
+ "currency": "usd",
+ "description": "Zulip Cloud Plus",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "upgrade_by_card_to_plus_plan--Event.list.2.json",
+ "invoice": "upgrade_by_card_to_plus_plan--Event.list.2.json",
+ "livemode": false,
+ "metadata": {},
+ "object": "line_item",
+ "parent": {
+ "invoice_item_details": {
+ "invoice_item": "ii_NORMALIZED",
+ "proration": false,
+ "proration_details": {
+ "credited_items": null
+ },
+ "subscription": null
+ },
+ "subscription_item_details": null,
+ "type": "invoice_item_details"
+ },
+ "period": {
+ "end": 1357095845,
+ "start": 1325473445
+ },
+ "pretax_credit_amounts": [],
+ "pricing": {
+ "price_details": {
+ "price": "price_NORMALIZED",
+ "product": "prod_NORMALIZED"
+ },
+ "type": "price_details",
+ "unit_amount_decimal": "12000"
+ },
+ "quantity": 10,
+ "taxes": []
+ }
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 1,
+ "url": "/v1/invoices/upgrade_by_card_to_plus_plan--Event.list.2.json/lines"
+ },
+ "livemode": false,
+ "metadata": {
+ "billing_schedule": "1",
+ "current_plan_id": "None",
+ "license_management": "automatic",
+ "licenses": "10",
+ "on_free_trial": "False",
+ "plan_tier": "2",
+ "user_id": "10"
+ },
+ "next_payment_attempt": null,
+ "number": "NORMALIZED",
+ "object": "invoice",
+ "on_behalf_of": null,
+ "parent": null,
+ "payment_settings": {
+ "default_mandate": null,
+ "payment_method_options": null,
+ "payment_method_types": null
+ },
+ "period_end": 1000000000,
+ "period_start": 1000000000,
+ "post_payment_credit_notes_amount": 0,
+ "pre_payment_credit_notes_amount": 0,
+ "receipt_number": null,
+ "rendering": {
+ "amount_tax_display": null,
+ "pdf": {
+ "page_size": "letter"
+ },
+ "template": null,
+ "template_version": null
+ },
+ "shipping_cost": null,
+ "shipping_details": null,
+ "starting_balance": 0,
+ "statement_descriptor": "Zulip Cloud Plus",
+ "status": "paid",
+ "status_transitions": {
+ "finalized_at": 1000000000,
+ "marked_uncollectible_at": null,
+ "paid_at": 1000000000,
+ "voided_at": null
+ },
+ "subtotal": 120000,
+ "subtotal_excluding_tax": 120000,
+ "test_clock": null,
+ "total": 120000,
+ "total_discount_amounts": [],
+ "total_excluding_tax": 120000,
+ "total_pretax_credit_amounts": [],
+ "total_taxes": [],
+ "webhooks_delivered_at": 1000000000
+ },
+ "previous_attributes": {
+ "amount_paid": 0,
+ "amount_remaining": 120000,
+ "attempt_count": 0,
+ "attempted": false,
+ "status": "open",
+ "status_transitions": {
+ "paid_at": null
+ }
+ }
+ },
+ "id": "upgrade_by_card_to_plus_plan--Event.list.3.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "upgrade_by_card_to_plus_plan--Event.list.2.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ },
+ "type": "invoice.updated"
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--SetupIntent.create.1.json
index 837c6045d41..43a71168c81 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--SetupIntent.create.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "upgrade_by_card_to_plus_plan--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--SetupIntent.list.1.json
index a23c43d647b..213773ef1b6 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--SetupIntent.list.1.json
@@ -8,6 +8,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "upgrade_by_card_to_plus_plan--SetupIntent.list.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--SetupIntent.retrieve.1.json
index 837c6045d41..43a71168c81 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--SetupIntent.retrieve.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "upgrade_by_card_to_plus_plan--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--Charge.list.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--Charge.list.1.json
index 888640a3605..6c5598a298a 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--Charge.list.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--Charge.list.1.json
@@ -58,7 +58,7 @@
"payment_method_details": {
"card": {
"amount_authorized": 48000,
- "authorization_code": "433764",
+ "authorization_code": "520623",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--Event.list.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--Event.list.1.json
index fede5e2a0f0..2e747cf1cff 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--Event.list.1.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--Event.list.2.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--Event.list.2.json
index 2c518070a88..292752d26b0 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--Event.list.2.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--Event.list.2.json
@@ -1,7 +1,118 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount_paid": null,
+ "amount_requested": 48000,
+ "created": 1000000000,
+ "currency": "usd",
+ "id": "upgrade_by_card_with_outdated_lower_seat_count--Event.list.2.json",
+ "invoice": "upgrade_by_card_with_outdated_lower_seat_count--Event.list.2.json",
+ "is_default": true,
+ "livemode": false,
+ "object": "invoice_payment",
+ "payment": {
+ "payment_intent": "upgrade_by_card_with_outdated_lower_seat_count--Event.list.2.json",
+ "type": "payment_intent"
+ },
+ "status": "open",
+ "status_transitions": {
+ "canceled_at": null,
+ "paid_at": null
+ }
+ }
+ },
+ "id": "upgrade_by_card_with_outdated_lower_seat_count--Event.list.2.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "upgrade_by_card_with_outdated_lower_seat_count--Event.list.2.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ },
+ "type": "invoice_payment.paid"
+ },
+ {
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount": 48000,
+ "amount_capturable": 0,
+ "amount_details": {
+ "tip": {}
+ },
+ "amount_received": 48000,
+ "application": null,
+ "application_fee_amount": null,
+ "automatic_payment_methods": null,
+ "canceled_at": null,
+ "cancellation_reason": null,
+ "capture_method": "automatic",
+ "client_secret": "NORMALIZED",
+ "confirmation_method": "automatic",
+ "created": 1000000000,
+ "currency": "usd",
+ "customer": "upgrade_by_card_with_outdated_lower_seat_count--Customer.create.1.json",
+ "description": "Payment for Invoice",
+ "excluded_payment_method_types": null,
+ "id": "upgrade_by_card_with_outdated_lower_seat_count--Event.list.2.json",
+ "last_payment_error": null,
+ "latest_charge": "upgrade_by_card_with_outdated_lower_seat_count--Charge.list.1.json",
+ "livemode": false,
+ "metadata": {},
+ "next_action": null,
+ "object": "payment_intent",
+ "on_behalf_of": null,
+ "payment_details": {
+ "customer_reference": null,
+ "order_reference": "in_1SPP5NRVfKEFJaqcXgDTJ5"
+ },
+ "payment_method": "pm_NORMALIZED",
+ "payment_method_configuration_details": null,
+ "payment_method_options": {
+ "card": {
+ "installments": null,
+ "mandate_options": null,
+ "network": null,
+ "request_three_d_secure": "automatic"
+ },
+ "link": {
+ "persistent_token": null
+ }
+ },
+ "payment_method_types": [
+ "card",
+ "link"
+ ],
+ "processing": null,
+ "receipt_email": "[email protected]",
+ "review": null,
+ "setup_future_usage": null,
+ "shipping": null,
+ "source": null,
+ "statement_descriptor": "Zulip Cloud Standard",
+ "statement_descriptor_suffix": null,
+ "status": "succeeded",
+ "transfer_data": null,
+ "transfer_group": null
+ }
+ },
+ "id": "upgrade_by_card_with_outdated_lower_seat_count--Event.list.2.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "upgrade_by_card_with_outdated_lower_seat_count--Event.list.2.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ },
+ "type": "payment_intent.succeeded"
+ },
+ {
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -62,7 +173,7 @@
"payment_method_details": {
"card": {
"amount_authorized": 48000,
- "authorization_code": "433764",
+ "authorization_code": "520623",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
@@ -120,7 +231,7 @@
"id": "upgrade_by_card_with_outdated_lower_seat_count--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 1,
"request": {
"id": "upgrade_by_card_with_outdated_lower_seat_count--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -128,168 +239,7 @@
"type": "charge.succeeded"
},
{
- "api_version": "2025-09-30.clover",
- "created": 1000000000,
- "data": {
- "object": {
- "account_country": "US",
- "account_name": "NORMALIZED",
- "account_tax_ids": null,
- "amount_due": 1200000,
- "amount_overpaid": 0,
- "amount_paid": 0,
- "amount_remaining": 1200000,
- "amount_shipping": 0,
- "application": null,
- "attempt_count": 0,
- "attempted": false,
- "auto_advance": true,
- "automatic_tax": {
- "disabled_reason": null,
- "enabled": false,
- "liability": null,
- "provider": null,
- "status": null
- },
- "automatically_finalizes_at": null,
- "billing_reason": "manual",
- "collection_method": "send_invoice",
- "created": 1000000000,
- "currency": "usd",
- "custom_fields": null,
- "customer": "cus_NORMALIZED",
- "customer_address": null,
- "customer_email": "[email protected]",
- "customer_name": null,
- "customer_phone": null,
- "customer_shipping": null,
- "customer_tax_exempt": "none",
- "customer_tax_ids": [],
- "default_payment_method": null,
- "default_source": null,
- "default_tax_rates": [],
- "description": null,
- "discounts": [],
- "due_date": 1000000000,
- "effective_at": 1000000000,
- "ending_balance": 0,
- "footer": null,
- "from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
- "id": "upgrade_by_card_with_outdated_lower_seat_count--Event.list.2.json",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
- "issuer": {
- "type": "self"
- },
- "last_finalization_error": null,
- "latest_revision": null,
- "lines": {
- "data": [
- {
- "amount": 1200000,
- "currency": "usd",
- "description": "Zulip Cloud Standard - renewal",
- "discount_amounts": [],
- "discountable": false,
- "discounts": [],
- "id": "upgrade_by_card_with_outdated_lower_seat_count--Event.list.2.json",
- "invoice": "upgrade_by_card_with_outdated_lower_seat_count--Event.list.2.json",
- "livemode": false,
- "metadata": {},
- "object": "line_item",
- "parent": {
- "invoice_item_details": {
- "invoice_item": "ii_NORMALIZED",
- "proration": false,
- "proration_details": {
- "credited_items": null
- },
- "subscription": null
- },
- "subscription_item_details": null,
- "type": "invoice_item_details"
- },
- "period": {
- "end": 1388631845,
- "start": 1357095845
- },
- "pretax_credit_amounts": [],
- "pricing": {
- "price_details": {
- "price": "price_NORMALIZED",
- "product": "prod_NORMALIZED"
- },
- "type": "price_details",
- "unit_amount_decimal": "8000"
- },
- "quantity": 150,
- "taxes": []
- }
- ],
- "has_more": false,
- "object": "list",
- "total_count": 1,
- "url": "/v1/invoices/upgrade_by_card_with_outdated_lower_seat_count--Event.list.2.json/lines"
- },
- "livemode": false,
- "metadata": {},
- "next_payment_attempt": null,
- "number": "NORMALIZED",
- "object": "invoice",
- "on_behalf_of": null,
- "parent": null,
- "payment_settings": {
- "default_mandate": null,
- "payment_method_options": null,
- "payment_method_types": null
- },
- "period_end": 1000000000,
- "period_start": 1000000000,
- "post_payment_credit_notes_amount": 0,
- "pre_payment_credit_notes_amount": 0,
- "receipt_number": null,
- "rendering": {
- "amount_tax_display": null,
- "pdf": {
- "page_size": "letter"
- },
- "template": null,
- "template_version": null
- },
- "shipping_cost": null,
- "shipping_details": null,
- "starting_balance": 0,
- "statement_descriptor": "Zulip Cloud Standard",
- "status": "open",
- "status_transitions": {
- "finalized_at": 1000000000,
- "marked_uncollectible_at": null,
- "paid_at": null,
- "voided_at": null
- },
- "subtotal": 1200000,
- "subtotal_excluding_tax": 1200000,
- "test_clock": null,
- "total": 1200000,
- "total_discount_amounts": [],
- "total_excluding_tax": 1200000,
- "total_pretax_credit_amounts": [],
- "total_taxes": [],
- "webhooks_delivered_at": 1000000000
- }
- },
- "id": "upgrade_by_card_with_outdated_lower_seat_count--Event.list.2.json",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 0,
- "request": {
- "id": null,
- "idempotency_key": null
- },
- "type": "invoice.sent"
- },
- {
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -458,7 +408,7 @@
"type": "invoice.finalized"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -643,168 +593,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
- "created": 1000000000,
- "data": {
- "object": {
- "account_country": "US",
- "account_name": "NORMALIZED",
- "account_tax_ids": null,
- "amount_due": 960000,
- "amount_overpaid": 0,
- "amount_paid": 0,
- "amount_remaining": 960000,
- "amount_shipping": 0,
- "application": null,
- "attempt_count": 0,
- "attempted": false,
- "auto_advance": true,
- "automatic_tax": {
- "disabled_reason": null,
- "enabled": false,
- "liability": null,
- "provider": null,
- "status": null
- },
- "automatically_finalizes_at": null,
- "billing_reason": "manual",
- "collection_method": "send_invoice",
- "created": 1000000000,
- "currency": "usd",
- "custom_fields": null,
- "customer": "cus_NORMALIZED",
- "customer_address": null,
- "customer_email": "[email protected]",
- "customer_name": null,
- "customer_phone": null,
- "customer_shipping": null,
- "customer_tax_exempt": "none",
- "customer_tax_ids": [],
- "default_payment_method": null,
- "default_source": null,
- "default_tax_rates": [],
- "description": null,
- "discounts": [],
- "due_date": 1000000000,
- "effective_at": 1000000000,
- "ending_balance": 0,
- "footer": null,
- "from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
- "id": "upgrade_by_card_with_outdated_lower_seat_count--Event.list.2.json",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
- "issuer": {
- "type": "self"
- },
- "last_finalization_error": null,
- "latest_revision": null,
- "lines": {
- "data": [
- {
- "amount": 960000,
- "currency": "usd",
- "description": "Zulip Cloud Standard - renewal",
- "discount_amounts": [],
- "discountable": false,
- "discounts": [],
- "id": "upgrade_by_card_with_outdated_lower_seat_count--Event.list.2.json",
- "invoice": "upgrade_by_card_with_outdated_lower_seat_count--Event.list.2.json",
- "livemode": false,
- "metadata": {},
- "object": "line_item",
- "parent": {
- "invoice_item_details": {
- "invoice_item": "ii_NORMALIZED",
- "proration": false,
- "proration_details": {
- "credited_items": null
- },
- "subscription": null
- },
- "subscription_item_details": null,
- "type": "invoice_item_details"
- },
- "period": {
- "end": 1420167845,
- "start": 1388631845
- },
- "pretax_credit_amounts": [],
- "pricing": {
- "price_details": {
- "price": "price_NORMALIZED",
- "product": "prod_NORMALIZED"
- },
- "type": "price_details",
- "unit_amount_decimal": "8000"
- },
- "quantity": 120,
- "taxes": []
- }
- ],
- "has_more": false,
- "object": "list",
- "total_count": 1,
- "url": "/v1/invoices/upgrade_by_card_with_outdated_lower_seat_count--Event.list.2.json/lines"
- },
- "livemode": false,
- "metadata": {},
- "next_payment_attempt": null,
- "number": "NORMALIZED",
- "object": "invoice",
- "on_behalf_of": null,
- "parent": null,
- "payment_settings": {
- "default_mandate": null,
- "payment_method_options": null,
- "payment_method_types": null
- },
- "period_end": 1000000000,
- "period_start": 1000000000,
- "post_payment_credit_notes_amount": 0,
- "pre_payment_credit_notes_amount": 0,
- "receipt_number": null,
- "rendering": {
- "amount_tax_display": null,
- "pdf": {
- "page_size": "letter"
- },
- "template": null,
- "template_version": null
- },
- "shipping_cost": null,
- "shipping_details": null,
- "starting_balance": 0,
- "statement_descriptor": "Zulip Cloud Standard",
- "status": "open",
- "status_transitions": {
- "finalized_at": 1000000000,
- "marked_uncollectible_at": null,
- "paid_at": null,
- "voided_at": null
- },
- "subtotal": 960000,
- "subtotal_excluding_tax": 960000,
- "test_clock": null,
- "total": 960000,
- "total_discount_amounts": [],
- "total_excluding_tax": 960000,
- "total_pretax_credit_amounts": [],
- "total_taxes": [],
- "webhooks_delivered_at": 1000000000
- }
- },
- "id": "upgrade_by_card_with_outdated_lower_seat_count--Event.list.2.json",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 0,
- "request": {
- "id": null,
- "idempotency_key": null
- },
- "type": "invoice.sent"
- },
- {
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -876,7 +665,7 @@
"type": "payment_intent.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1031,7 +820,7 @@
"total_excluding_tax": 48000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
},
"previous_attributes": {
"amount_due": 0,
@@ -1057,7 +846,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1104,7 +893,7 @@
"type": "invoiceitem.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1232,7 +1021,7 @@
"type": "invoice.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--Event.list.3.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--Event.list.3.json
index 2bd6facc064..8444aeb4a3a 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--Event.list.3.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--Event.list.3.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -170,7 +170,7 @@
"type": "invoice.payment_succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -339,7 +339,7 @@
"type": "invoice.paid"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -516,78 +516,6 @@
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "invoice.updated"
- },
- {
- "api_version": "2025-09-30.clover",
- "created": 1000000000,
- "data": {
- "object": {
- "amount": 48000,
- "amount_capturable": 0,
- "amount_details": {
- "tip": {}
- },
- "amount_received": 48000,
- "application": null,
- "application_fee_amount": null,
- "automatic_payment_methods": null,
- "canceled_at": null,
- "cancellation_reason": null,
- "capture_method": "automatic",
- "client_secret": "NORMALIZED",
- "confirmation_method": "automatic",
- "created": 1000000000,
- "currency": "usd",
- "customer": "cus_NORMALIZED",
- "description": "Payment for Invoice",
- "excluded_payment_method_types": null,
- "id": "upgrade_by_card_with_outdated_lower_seat_count--Event.list.2.json",
- "last_payment_error": null,
- "latest_charge": "ch_NORMALIZED",
- "livemode": false,
- "metadata": {},
- "next_action": null,
- "object": "payment_intent",
- "on_behalf_of": null,
- "payment_method": "pm_NORMALIZED",
- "payment_method_configuration_details": null,
- "payment_method_options": {
- "card": {
- "installments": null,
- "mandate_options": null,
- "network": null,
- "request_three_d_secure": "automatic"
- },
- "link": {
- "persistent_token": null
- }
- },
- "payment_method_types": [
- "card",
- "link"
- ],
- "processing": null,
- "receipt_email": "[email protected]",
- "review": null,
- "setup_future_usage": null,
- "shipping": null,
- "source": null,
- "statement_descriptor": "Zulip Cloud Standard",
- "statement_descriptor_suffix": null,
- "status": "succeeded",
- "transfer_data": null,
- "transfer_group": null
- }
- },
- "id": "upgrade_by_card_with_outdated_lower_seat_count--Event.list.3.json",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 0,
- "request": {
- "id": "upgrade_by_card_with_outdated_lower_seat_count--Event.list.2.json",
- "idempotency_key": "00000000-0000-0000-0000-000000000000"
- },
- "type": "payment_intent.succeeded"
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--SetupIntent.create.1.json
index 5f0a76c3e57..e786c874ca1 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--SetupIntent.create.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "upgrade_by_card_with_outdated_lower_seat_count--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--SetupIntent.list.1.json
index 279313766d5..47b5561a2e8 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--SetupIntent.list.1.json
@@ -8,6 +8,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "upgrade_by_card_with_outdated_lower_seat_count--SetupIntent.list.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--SetupIntent.retrieve.1.json
index 5f0a76c3e57..e786c874ca1 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--SetupIntent.retrieve.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "upgrade_by_card_with_outdated_lower_seat_count--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Charge.list.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Charge.list.1.json
index aa1bb46f3df..8f700f5a1a3 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Charge.list.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Charge.list.1.json
@@ -58,7 +58,7 @@
"payment_method_details": {
"card": {
"amount_authorized": 48000,
- "authorization_code": "989631",
+ "authorization_code": "354867",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Event.list.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Event.list.1.json
index 1afca1fc9d2..a64298f1653 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Event.list.1.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Event.list.2.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Event.list.2.json
index eefa27e8ab9..78789d8d9de 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Event.list.2.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Event.list.2.json
@@ -1,170 +1,26 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
- "account_country": "US",
- "account_name": "NORMALIZED",
- "account_tax_ids": null,
- "amount_due": 48000,
- "amount_overpaid": 0,
- "amount_paid": 48000,
- "amount_remaining": 0,
- "amount_shipping": 0,
- "application": null,
- "attempt_count": 1,
- "attempted": true,
- "auto_advance": false,
- "automatic_tax": {
- "disabled_reason": null,
- "enabled": false,
- "liability": null,
- "provider": null,
- "status": null
- },
- "automatically_finalizes_at": null,
- "billing_reason": "manual",
- "collection_method": "charge_automatically",
+ "amount_paid": null,
+ "amount_requested": 48000,
"created": 1000000000,
"currency": "usd",
- "custom_fields": null,
- "customer": "upgrade_by_card_with_outdated_seat_count--Customer.create.1.json",
- "customer_address": null,
- "customer_email": "[email protected]",
- "customer_name": null,
- "customer_phone": null,
- "customer_shipping": null,
- "customer_tax_exempt": "none",
- "customer_tax_ids": [],
- "default_payment_method": null,
- "default_source": null,
- "default_tax_rates": [],
- "description": null,
- "discounts": [],
- "due_date": null,
- "effective_at": 1000000000,
- "ending_balance": 0,
- "footer": null,
- "from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
"id": "upgrade_by_card_with_outdated_seat_count--Event.list.2.json",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
- "issuer": {
- "type": "self"
- },
- "last_finalization_error": null,
- "latest_revision": null,
- "lines": {
- "data": [
- {
- "amount": 48000,
- "currency": "usd",
- "description": "Zulip Cloud Standard",
- "discount_amounts": [],
- "discountable": false,
- "discounts": [],
- "id": "upgrade_by_card_with_outdated_seat_count--Event.list.2.json",
- "invoice": "upgrade_by_card_with_outdated_seat_count--Event.list.2.json",
- "livemode": false,
- "metadata": {},
- "object": "line_item",
- "parent": {
- "invoice_item_details": {
- "invoice_item": "upgrade_by_card_with_outdated_seat_count--Event.list.2.json",
- "proration": false,
- "proration_details": {
- "credited_items": null
- },
- "subscription": null
- },
- "subscription_item_details": null,
- "type": "invoice_item_details"
- },
- "period": {
- "end": 1357095845,
- "start": 1325473445
- },
- "pretax_credit_amounts": [],
- "pricing": {
- "price_details": {
- "price": "price_NORMALIZED",
- "product": "prod_NORMALIZED"
- },
- "type": "price_details",
- "unit_amount_decimal": "8000"
- },
- "quantity": 6,
- "taxes": []
- }
- ],
- "has_more": false,
- "object": "list",
- "total_count": 1,
- "url": "/v1/invoices/upgrade_by_card_with_outdated_seat_count--Event.list.2.json/lines"
- },
+ "invoice": "upgrade_by_card_with_outdated_seat_count--Event.list.2.json",
+ "is_default": true,
"livemode": false,
- "metadata": {
- "billing_schedule": "1",
- "current_plan_id": "None",
- "license_management": "automatic",
- "licenses": "6",
- "on_free_trial": "False",
- "plan_tier": "1",
- "user_id": "10"
- },
- "next_payment_attempt": null,
- "number": "NORMALIZED",
- "object": "invoice",
- "on_behalf_of": null,
- "parent": null,
- "payment_settings": {
- "default_mandate": null,
- "payment_method_options": null,
- "payment_method_types": null
- },
- "period_end": 1000000000,
- "period_start": 1000000000,
- "post_payment_credit_notes_amount": 0,
- "pre_payment_credit_notes_amount": 0,
- "receipt_number": null,
- "rendering": {
- "amount_tax_display": null,
- "pdf": {
- "page_size": "letter"
- },
- "template": null,
- "template_version": null
- },
- "shipping_cost": null,
- "shipping_details": null,
- "starting_balance": 0,
- "statement_descriptor": "Zulip Cloud Standard",
- "status": "paid",
- "status_transitions": {
- "finalized_at": 1000000000,
- "marked_uncollectible_at": null,
- "paid_at": 1000000000,
- "voided_at": null
+ "object": "invoice_payment",
+ "payment": {
+ "payment_intent": "upgrade_by_card_with_outdated_seat_count--Event.list.2.json",
+ "type": "payment_intent"
},
- "subtotal": 48000,
- "subtotal_excluding_tax": 48000,
- "test_clock": null,
- "total": 48000,
- "total_discount_amounts": [],
- "total_excluding_tax": 48000,
- "total_pretax_credit_amounts": [],
- "total_taxes": [],
- "webhooks_delivered_at": null
- },
- "previous_attributes": {
- "amount_paid": 0,
- "amount_remaining": 48000,
- "attempt_count": 0,
- "attempted": false,
"status": "open",
"status_transitions": {
+ "canceled_at": null,
"paid_at": null
}
}
@@ -177,10 +33,10 @@
"id": "upgrade_by_card_with_outdated_seat_count--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "invoice.updated"
+ "type": "invoice_payment.paid"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -211,6 +67,10 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
+ "payment_details": {
+ "customer_reference": null,
+ "order_reference": "in_1SPP5bRVfKEFJaqcd320fz"
+ },
"payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
"payment_method_options": {
@@ -244,7 +104,7 @@
"id": "upgrade_by_card_with_outdated_seat_count--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
"id": "upgrade_by_card_with_outdated_seat_count--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -252,7 +112,7 @@
"type": "payment_intent.succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -313,7 +173,7 @@
"payment_method_details": {
"card": {
"amount_authorized": 48000,
- "authorization_code": "989631",
+ "authorization_code": "354867",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
@@ -371,7 +231,7 @@
"id": "upgrade_by_card_with_outdated_seat_count--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
"id": "upgrade_by_card_with_outdated_seat_count--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -379,7 +239,7 @@
"type": "charge.succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -548,7 +408,7 @@
"type": "invoice.finalized"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -733,7 +593,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -805,7 +665,7 @@
"type": "payment_intent.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -986,7 +846,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1033,7 +893,7 @@
"type": "invoiceitem.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1161,7 +1021,7 @@
"type": "invoice.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1211,7 +1071,7 @@
"type": "customer.updated"
}
],
- "has_more": true,
+ "has_more": false,
"object": "list",
"url": "/v1/events"
}
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Event.list.3.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Event.list.3.json
index 1a05c7381d3..3792a82437a 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Event.list.3.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Event.list.3.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -162,7 +162,7 @@
"id": "upgrade_by_card_with_outdated_seat_count--Event.list.3.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
"id": "upgrade_by_card_with_outdated_seat_count--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -170,7 +170,7 @@
"type": "invoice.payment_succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -331,12 +331,191 @@
"id": "upgrade_by_card_with_outdated_seat_count--Event.list.3.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
"id": "upgrade_by_card_with_outdated_seat_count--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "invoice.paid"
+ },
+ {
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "account_country": "US",
+ "account_name": "NORMALIZED",
+ "account_tax_ids": null,
+ "amount_due": 48000,
+ "amount_overpaid": 0,
+ "amount_paid": 48000,
+ "amount_remaining": 0,
+ "amount_shipping": 0,
+ "application": null,
+ "attempt_count": 1,
+ "attempted": true,
+ "auto_advance": false,
+ "automatic_tax": {
+ "disabled_reason": null,
+ "enabled": false,
+ "liability": null,
+ "provider": null,
+ "status": null
+ },
+ "automatically_finalizes_at": null,
+ "billing_reason": "manual",
+ "collection_method": "charge_automatically",
+ "created": 1000000000,
+ "currency": "usd",
+ "custom_fields": null,
+ "customer": "cus_NORMALIZED",
+ "customer_address": null,
+ "customer_email": "[email protected]",
+ "customer_name": null,
+ "customer_phone": null,
+ "customer_shipping": null,
+ "customer_tax_exempt": "none",
+ "customer_tax_ids": [],
+ "default_payment_method": null,
+ "default_source": null,
+ "default_tax_rates": [],
+ "description": null,
+ "discounts": [],
+ "due_date": null,
+ "effective_at": 1000000000,
+ "ending_balance": 0,
+ "footer": null,
+ "from_invoice": null,
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
+ "id": "upgrade_by_card_with_outdated_seat_count--Event.list.2.json",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
+ "issuer": {
+ "type": "self"
+ },
+ "last_finalization_error": null,
+ "latest_revision": null,
+ "lines": {
+ "data": [
+ {
+ "amount": 48000,
+ "currency": "usd",
+ "description": "Zulip Cloud Standard",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "upgrade_by_card_with_outdated_seat_count--Event.list.2.json",
+ "invoice": "upgrade_by_card_with_outdated_seat_count--Event.list.2.json",
+ "livemode": false,
+ "metadata": {},
+ "object": "line_item",
+ "parent": {
+ "invoice_item_details": {
+ "invoice_item": "ii_NORMALIZED",
+ "proration": false,
+ "proration_details": {
+ "credited_items": null
+ },
+ "subscription": null
+ },
+ "subscription_item_details": null,
+ "type": "invoice_item_details"
+ },
+ "period": {
+ "end": 1357095845,
+ "start": 1325473445
+ },
+ "pretax_credit_amounts": [],
+ "pricing": {
+ "price_details": {
+ "price": "price_NORMALIZED",
+ "product": "prod_NORMALIZED"
+ },
+ "type": "price_details",
+ "unit_amount_decimal": "8000"
+ },
+ "quantity": 6,
+ "taxes": []
+ }
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 1,
+ "url": "/v1/invoices/upgrade_by_card_with_outdated_seat_count--Event.list.2.json/lines"
+ },
+ "livemode": false,
+ "metadata": {
+ "billing_schedule": "1",
+ "current_plan_id": "None",
+ "license_management": "automatic",
+ "licenses": "6",
+ "on_free_trial": "False",
+ "plan_tier": "1",
+ "user_id": "10"
+ },
+ "next_payment_attempt": null,
+ "number": "NORMALIZED",
+ "object": "invoice",
+ "on_behalf_of": null,
+ "parent": null,
+ "payment_settings": {
+ "default_mandate": null,
+ "payment_method_options": null,
+ "payment_method_types": null
+ },
+ "period_end": 1000000000,
+ "period_start": 1000000000,
+ "post_payment_credit_notes_amount": 0,
+ "pre_payment_credit_notes_amount": 0,
+ "receipt_number": null,
+ "rendering": {
+ "amount_tax_display": null,
+ "pdf": {
+ "page_size": "letter"
+ },
+ "template": null,
+ "template_version": null
+ },
+ "shipping_cost": null,
+ "shipping_details": null,
+ "starting_balance": 0,
+ "statement_descriptor": "Zulip Cloud Standard",
+ "status": "paid",
+ "status_transitions": {
+ "finalized_at": 1000000000,
+ "marked_uncollectible_at": null,
+ "paid_at": 1000000000,
+ "voided_at": null
+ },
+ "subtotal": 48000,
+ "subtotal_excluding_tax": 48000,
+ "test_clock": null,
+ "total": 48000,
+ "total_discount_amounts": [],
+ "total_excluding_tax": 48000,
+ "total_pretax_credit_amounts": [],
+ "total_taxes": [],
+ "webhooks_delivered_at": null
+ },
+ "previous_attributes": {
+ "amount_paid": 0,
+ "amount_remaining": 48000,
+ "attempt_count": 0,
+ "attempted": false,
+ "status": "open",
+ "status_transitions": {
+ "paid_at": null
+ }
+ }
+ },
+ "id": "upgrade_by_card_with_outdated_seat_count--Event.list.3.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "upgrade_by_card_with_outdated_seat_count--Event.list.2.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ },
+ "type": "invoice.updated"
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Event.list.4.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Event.list.4.json
index ed166e6adbf..000f4810145 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Event.list.4.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Event.list.4.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -148,168 +148,7 @@
"total_excluding_tax": 136000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
- }
- },
- "id": "upgrade_by_card_with_outdated_seat_count--Event.list.4.json",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 0,
- "request": {
- "id": "upgrade_by_card_with_outdated_seat_count--Event.list.4.json",
- "idempotency_key": "00000000-0000-0000-0000-000000000000"
- },
- "type": "invoice.finalized"
- },
- {
- "api_version": "2025-09-30.clover",
- "created": 1000000000,
- "data": {
- "object": {
- "account_country": "US",
- "account_name": "NORMALIZED",
- "account_tax_ids": null,
- "amount_due": 136000,
- "amount_overpaid": 0,
- "amount_paid": 0,
- "amount_remaining": 136000,
- "amount_shipping": 0,
- "application": null,
- "attempt_count": 0,
- "attempted": false,
- "auto_advance": true,
- "automatic_tax": {
- "disabled_reason": null,
- "enabled": false,
- "liability": null,
- "provider": null,
- "status": null
- },
- "automatically_finalizes_at": null,
- "billing_reason": "manual",
- "collection_method": "charge_automatically",
- "created": 1000000000,
- "currency": "usd",
- "custom_fields": null,
- "customer": "cus_NORMALIZED",
- "customer_address": null,
- "customer_email": "[email protected]",
- "customer_name": null,
- "customer_phone": null,
- "customer_shipping": null,
- "customer_tax_exempt": "none",
- "customer_tax_ids": [],
- "default_payment_method": null,
- "default_source": null,
- "default_tax_rates": [],
- "description": null,
- "discounts": [],
- "due_date": null,
- "effective_at": 1000000000,
- "ending_balance": 0,
- "footer": null,
- "from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
- "id": "upgrade_by_card_with_outdated_seat_count--Event.list.4.json",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
- "issuer": {
- "type": "self"
- },
- "last_finalization_error": null,
- "latest_revision": null,
- "lines": {
- "data": [
- {
- "amount": 136000,
- "currency": "usd",
- "description": "Additional license (Jan 2, 2012 - Jan 2, 2013)",
- "discount_amounts": [],
- "discountable": false,
- "discounts": [],
- "id": "upgrade_by_card_with_outdated_seat_count--Event.list.4.json",
- "invoice": "upgrade_by_card_with_outdated_seat_count--Event.list.4.json",
- "livemode": false,
- "metadata": {},
- "object": "line_item",
- "parent": {
- "invoice_item_details": {
- "invoice_item": "upgrade_by_card_with_outdated_seat_count--Event.list.4.json",
- "proration": false,
- "proration_details": {
- "credited_items": null
- },
- "subscription": null
- },
- "subscription_item_details": null,
- "type": "invoice_item_details"
- },
- "period": {
- "end": 1357095845,
- "start": 1325473445
- },
- "pretax_credit_amounts": [],
- "pricing": {
- "price_details": {
- "price": "price_NORMALIZED",
- "product": "prod_NORMALIZED"
- },
- "type": "price_details",
- "unit_amount_decimal": "8000"
- },
- "quantity": 17,
- "taxes": []
- }
- ],
- "has_more": false,
- "object": "list",
- "total_count": 1,
- "url": "/v1/invoices/upgrade_by_card_with_outdated_seat_count--Event.list.4.json/lines"
- },
- "livemode": false,
- "metadata": {},
- "next_payment_attempt": 1000000000,
- "number": "NORMALIZED",
- "object": "invoice",
- "on_behalf_of": null,
- "parent": null,
- "payment_settings": {
- "default_mandate": null,
- "payment_method_options": null,
- "payment_method_types": null
- },
- "period_end": 1000000000,
- "period_start": 1000000000,
- "post_payment_credit_notes_amount": 0,
- "pre_payment_credit_notes_amount": 0,
- "receipt_number": null,
- "rendering": {
- "amount_tax_display": null,
- "pdf": {
- "page_size": "letter"
- },
- "template": null,
- "template_version": null
- },
- "shipping_cost": null,
- "shipping_details": null,
- "starting_balance": 0,
- "statement_descriptor": "Zulip Cloud Standard",
- "status": "open",
- "status_transitions": {
- "finalized_at": 1000000000,
- "marked_uncollectible_at": null,
- "paid_at": null,
- "voided_at": null
- },
- "subtotal": 136000,
- "subtotal_excluding_tax": 136000,
- "test_clock": null,
- "total": 136000,
- "total_discount_amounts": [],
- "total_excluding_tax": 136000,
- "total_pretax_credit_amounts": [],
- "total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
},
"previous_attributes": {
"automatically_finalizes_at": 1000000000,
@@ -340,7 +179,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -404,7 +243,7 @@
"id": "upgrade_by_card_with_outdated_seat_count--Event.list.4.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 1,
"request": {
"id": "upgrade_by_card_with_outdated_seat_count--Event.list.4.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -412,7 +251,7 @@
"type": "payment_intent.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -559,7 +398,7 @@
"total_excluding_tax": 136000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
},
"previous_attributes": {
"amount_due": 0,
@@ -585,7 +424,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -632,7 +471,7 @@
"type": "invoiceitem.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Event.list.5.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Event.list.5.json
index 6d922067afe..2d6d2566723 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Event.list.5.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Event.list.5.json
@@ -1,5 +1,167 @@
{
- "data": [],
+ "data": [
+ {
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "account_country": "US",
+ "account_name": "NORMALIZED",
+ "account_tax_ids": null,
+ "amount_due": 136000,
+ "amount_overpaid": 0,
+ "amount_paid": 0,
+ "amount_remaining": 136000,
+ "amount_shipping": 0,
+ "application": null,
+ "attempt_count": 0,
+ "attempted": false,
+ "auto_advance": true,
+ "automatic_tax": {
+ "disabled_reason": null,
+ "enabled": false,
+ "liability": null,
+ "provider": null,
+ "status": null
+ },
+ "automatically_finalizes_at": null,
+ "billing_reason": "manual",
+ "collection_method": "charge_automatically",
+ "created": 1000000000,
+ "currency": "usd",
+ "custom_fields": null,
+ "customer": "cus_NORMALIZED",
+ "customer_address": null,
+ "customer_email": "[email protected]",
+ "customer_name": null,
+ "customer_phone": null,
+ "customer_shipping": null,
+ "customer_tax_exempt": "none",
+ "customer_tax_ids": [],
+ "default_payment_method": null,
+ "default_source": null,
+ "default_tax_rates": [],
+ "description": null,
+ "discounts": [],
+ "due_date": null,
+ "effective_at": 1000000000,
+ "ending_balance": 0,
+ "footer": null,
+ "from_invoice": null,
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
+ "id": "upgrade_by_card_with_outdated_seat_count--Event.list.4.json",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
+ "issuer": {
+ "type": "self"
+ },
+ "last_finalization_error": null,
+ "latest_revision": null,
+ "lines": {
+ "data": [
+ {
+ "amount": 136000,
+ "currency": "usd",
+ "description": "Additional license (Jan 2, 2012 - Jan 2, 2013)",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "upgrade_by_card_with_outdated_seat_count--Event.list.4.json",
+ "invoice": "upgrade_by_card_with_outdated_seat_count--Event.list.4.json",
+ "livemode": false,
+ "metadata": {},
+ "object": "line_item",
+ "parent": {
+ "invoice_item_details": {
+ "invoice_item": "ii_NORMALIZED",
+ "proration": false,
+ "proration_details": {
+ "credited_items": null
+ },
+ "subscription": null
+ },
+ "subscription_item_details": null,
+ "type": "invoice_item_details"
+ },
+ "period": {
+ "end": 1357095845,
+ "start": 1325473445
+ },
+ "pretax_credit_amounts": [],
+ "pricing": {
+ "price_details": {
+ "price": "price_NORMALIZED",
+ "product": "prod_NORMALIZED"
+ },
+ "type": "price_details",
+ "unit_amount_decimal": "8000"
+ },
+ "quantity": 17,
+ "taxes": []
+ }
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 1,
+ "url": "/v1/invoices/upgrade_by_card_with_outdated_seat_count--Event.list.4.json/lines"
+ },
+ "livemode": false,
+ "metadata": {},
+ "next_payment_attempt": 1000000000,
+ "number": "NORMALIZED",
+ "object": "invoice",
+ "on_behalf_of": null,
+ "parent": null,
+ "payment_settings": {
+ "default_mandate": null,
+ "payment_method_options": null,
+ "payment_method_types": null
+ },
+ "period_end": 1000000000,
+ "period_start": 1000000000,
+ "post_payment_credit_notes_amount": 0,
+ "pre_payment_credit_notes_amount": 0,
+ "receipt_number": null,
+ "rendering": {
+ "amount_tax_display": null,
+ "pdf": {
+ "page_size": "letter"
+ },
+ "template": null,
+ "template_version": null
+ },
+ "shipping_cost": null,
+ "shipping_details": null,
+ "starting_balance": 0,
+ "statement_descriptor": "Zulip Cloud Standard",
+ "status": "open",
+ "status_transitions": {
+ "finalized_at": 1000000000,
+ "marked_uncollectible_at": null,
+ "paid_at": null,
+ "voided_at": null
+ },
+ "subtotal": 136000,
+ "subtotal_excluding_tax": 136000,
+ "test_clock": null,
+ "total": 136000,
+ "total_discount_amounts": [],
+ "total_excluding_tax": 136000,
+ "total_pretax_credit_amounts": [],
+ "total_taxes": [],
+ "webhooks_delivered_at": null
+ }
+ },
+ "id": "upgrade_by_card_with_outdated_seat_count--Event.list.5.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "upgrade_by_card_with_outdated_seat_count--Event.list.4.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ },
+ "type": "invoice.finalized"
+ }
+ ],
"has_more": false,
"object": "list",
"url": "/v1/events"
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Event.list.6.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Event.list.6.json
new file mode 100644
index 00000000000..6d922067afe
--- /dev/null
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Event.list.6.json
@@ -0,0 +1,6 @@
+{
+ "data": [],
+ "has_more": false,
+ "object": "list",
+ "url": "/v1/events"
+}
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Invoice.finalize_invoice.2.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Invoice.finalize_invoice.2.json
index 747e017e3af..a11d094864b 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Invoice.finalize_invoice.2.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Invoice.finalize_invoice.2.json
@@ -142,5 +142,5 @@
"total_excluding_tax": 136000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Invoice.list.2.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Invoice.list.2.json
index 55b8b970962..6990ab321e9 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Invoice.list.2.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Invoice.list.2.json
@@ -144,7 +144,7 @@
"total_excluding_tax": 136000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
},
{
"account_country": "US",
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--SetupIntent.create.1.json
index 0f8b6927848..f03628960f7 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--SetupIntent.create.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "upgrade_by_card_with_outdated_seat_count--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--SetupIntent.list.1.json
index 4dd9b2bf80d..293445b73d5 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--SetupIntent.list.1.json
@@ -8,6 +8,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "upgrade_by_card_with_outdated_seat_count--SetupIntent.list.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--SetupIntent.retrieve.1.json
index 0f8b6927848..f03628960f7 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--SetupIntent.retrieve.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "upgrade_by_card_with_outdated_seat_count--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Charge.list.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Charge.list.1.json
index 49b8aa745e2..5b6478d571b 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Charge.list.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Charge.list.1.json
@@ -58,7 +58,7 @@
"payment_method_details": {
"card": {
"amount_authorized": 40000,
- "authorization_code": "409943",
+ "authorization_code": "402370",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.1.json
index fdb61e6cdef..3461b618867 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.1.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json
index 9b49a8ce7a1..e574ea1757b 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json
@@ -1,7 +1,42 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount_paid": null,
+ "amount_requested": 40000,
+ "created": 1000000000,
+ "currency": "usd",
+ "id": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json",
+ "invoice": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json",
+ "is_default": true,
+ "livemode": false,
+ "object": "invoice_payment",
+ "payment": {
+ "payment_intent": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json",
+ "type": "payment_intent"
+ },
+ "status": "open",
+ "status_transitions": {
+ "canceled_at": null,
+ "paid_at": null
+ }
+ }
+ },
+ "id": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ },
+ "type": "invoice_payment.paid"
+ },
+ {
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -32,6 +67,10 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
+ "payment_details": {
+ "customer_reference": null,
+ "order_reference": "in_1SPP5qRVfKEFJaqcQSyM2i"
+ },
"payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
"payment_method_options": {
@@ -65,7 +104,7 @@
"id": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
"id": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -73,7 +112,7 @@
"type": "payment_intent.succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -134,7 +173,7 @@
"payment_method_details": {
"card": {
"amount_authorized": 40000,
- "authorization_code": "409943",
+ "authorization_code": "402370",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
@@ -192,7 +231,7 @@
"id": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
"id": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -200,42 +239,7 @@
"type": "charge.succeeded"
},
{
- "api_version": "2025-09-30.clover",
- "created": 1000000000,
- "data": {
- "object": {
- "amount_paid": 48000,
- "amount_requested": 48000,
- "created": 1000000000,
- "currency": "usd",
- "id": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json",
- "invoice": "in_NORMALIZED",
- "is_default": true,
- "livemode": false,
- "object": "invoice_payment",
- "payment": {
- "payment_intent": "pi_NORMALIZED",
- "type": "payment_intent"
- },
- "status": "paid",
- "status_transitions": {
- "canceled_at": null,
- "paid_at": 1000000000
- }
- }
- },
- "id": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 0,
- "request": {
- "id": null,
- "idempotency_key": null
- },
- "type": "invoice_payment.paid"
- },
- {
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -390,7 +394,7 @@
"total_excluding_tax": 40000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json",
@@ -404,7 +408,7 @@
"type": "invoice.finalized"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -559,7 +563,7 @@
"total_excluding_tax": 40000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"effective_at": null,
@@ -589,7 +593,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -661,7 +665,7 @@
"type": "payment_intent.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -842,7 +846,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -889,7 +893,7 @@
"type": "invoiceitem.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1017,7 +1021,7 @@
"type": "invoice.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1067,7 +1071,7 @@
"type": "customer.updated"
}
],
- "has_more": true,
+ "has_more": false,
"object": "list",
"url": "/v1/events"
}
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.3.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.3.json
index 35543e58f30..532c761bb78 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.3.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.3.json
@@ -1,42 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
- "created": 1000000000,
- "data": {
- "object": {
- "amount_paid": 120000,
- "amount_requested": 120000,
- "created": 1000000000,
- "currency": "usd",
- "id": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.3.json",
- "invoice": "in_NORMALIZED",
- "is_default": true,
- "livemode": false,
- "object": "invoice_payment",
- "payment": {
- "payment_intent": "pi_NORMALIZED",
- "type": "payment_intent"
- },
- "status": "paid",
- "status_transitions": {
- "canceled_at": null,
- "paid_at": 1000000000
- }
- }
- },
- "id": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.3.json",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 0,
- "request": {
- "id": null,
- "idempotency_key": null
- },
- "type": "invoice_payment.paid"
- },
- {
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -191,13 +156,13 @@
"total_excluding_tax": 40000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.3.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
"id": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -205,7 +170,7 @@
"type": "invoice.payment_succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -360,7 +325,7 @@
"total_excluding_tax": 40000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.3.json",
@@ -374,7 +339,7 @@
"type": "invoice.paid"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -529,7 +494,7 @@
"total_excluding_tax": 40000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"amount_paid": 0,
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Invoice.finalize_invoice.1.json
index 39bfc09f805..5e5e9ce45f6 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Invoice.finalize_invoice.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Invoice.finalize_invoice.1.json
@@ -150,5 +150,5 @@
"total_excluding_tax": 40000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Invoice.list.2.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Invoice.list.2.json
index d0a9d9a09d7..16264418a79 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Invoice.list.2.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Invoice.list.2.json
@@ -152,7 +152,7 @@
"total_excluding_tax": 40000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Invoice.pay.1.json
index b5006f8fb0e..eaee219c302 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Invoice.pay.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Invoice.pay.1.json
@@ -150,5 +150,5 @@
"total_excluding_tax": 40000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--SetupIntent.create.1.json
index 826083c3903..3aa2449bef1 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--SetupIntent.create.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--SetupIntent.list.1.json
index 4b772d80c89..e7c444a1aac 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--SetupIntent.list.1.json
@@ -8,6 +8,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--SetupIntent.list.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--SetupIntent.retrieve.1.json
index 826083c3903..3aa2449bef1 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--SetupIntent.retrieve.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_invoice--Event.list.1.json b/corporate/tests/stripe_fixtures/upgrade_by_invoice--Event.list.1.json
index 8397990a781..308c4c86a56 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_invoice--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_invoice--Event.list.1.json
@@ -1,28 +1,154 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
- "amount_paid": 120000,
- "amount_requested": 120000,
+ "account_country": "US",
+ "account_name": "NORMALIZED",
+ "account_tax_ids": null,
+ "amount_due": 10000,
+ "amount_overpaid": 0,
+ "amount_paid": 10000,
+ "amount_remaining": 0,
+ "amount_shipping": 0,
+ "application": null,
+ "attempt_count": 1,
+ "attempted": true,
+ "auto_advance": false,
+ "automatic_tax": {
+ "disabled_reason": null,
+ "enabled": false,
+ "liability": null,
+ "provider": null,
+ "status": null
+ },
+ "automatically_finalizes_at": null,
+ "billing_reason": "manual",
+ "collection_method": "charge_automatically",
"created": 1000000000,
"currency": "usd",
+ "custom_fields": null,
+ "customer": "cus_NORMALIZED",
+ "customer_address": null,
+ "customer_email": "[email protected]",
+ "customer_name": null,
+ "customer_phone": null,
+ "customer_shipping": null,
+ "customer_tax_exempt": "none",
+ "customer_tax_ids": [],
+ "default_payment_method": null,
+ "default_source": null,
+ "default_tax_rates": [],
+ "description": null,
+ "discounts": [],
+ "due_date": null,
+ "effective_at": 1000000000,
+ "ending_balance": 0,
+ "footer": null,
+ "from_invoice": null,
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
"id": "upgrade_by_invoice--Event.list.1.json",
- "invoice": "in_NORMALIZED",
- "is_default": true,
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
+ "issuer": {
+ "type": "self"
+ },
+ "last_finalization_error": null,
+ "latest_revision": null,
+ "lines": {
+ "data": [
+ {
+ "amount": 10000,
+ "currency": "usd",
+ "description": "Zulip Basic - renewal",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "upgrade_by_invoice--Event.list.1.json",
+ "invoice": "upgrade_by_invoice--Event.list.1.json",
+ "livemode": false,
+ "metadata": {},
+ "object": "line_item",
+ "parent": {
+ "invoice_item_details": {
+ "invoice_item": "ii_NORMALIZED",
+ "proration": false,
+ "proration_details": {
+ "credited_items": null
+ },
+ "subscription": null
+ },
+ "subscription_item_details": null,
+ "type": "invoice_item_details"
+ },
+ "period": {
+ "end": 1333335845,
+ "start": 1330657445
+ },
+ "pretax_credit_amounts": [],
+ "pricing": {
+ "price_details": {
+ "price": "price_NORMALIZED",
+ "product": "prod_NORMALIZED"
+ },
+ "type": "price_details",
+ "unit_amount_decimal": "10000"
+ },
+ "quantity": 1,
+ "taxes": []
+ }
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 1,
+ "url": "/v1/invoices/upgrade_by_invoice--Event.list.1.json/lines"
+ },
"livemode": false,
- "object": "invoice_payment",
- "payment": {
- "payment_intent": "pi_NORMALIZED",
- "type": "payment_intent"
+ "metadata": {},
+ "next_payment_attempt": null,
+ "number": "NORMALIZED",
+ "object": "invoice",
+ "on_behalf_of": null,
+ "parent": null,
+ "payment_settings": {
+ "default_mandate": null,
+ "payment_method_options": null,
+ "payment_method_types": null
},
+ "period_end": 1000000000,
+ "period_start": 1000000000,
+ "post_payment_credit_notes_amount": 0,
+ "pre_payment_credit_notes_amount": 0,
+ "receipt_number": null,
+ "rendering": {
+ "amount_tax_display": null,
+ "pdf": {
+ "page_size": "letter"
+ },
+ "template": null,
+ "template_version": null
+ },
+ "shipping_cost": null,
+ "shipping_details": null,
+ "starting_balance": 0,
+ "statement_descriptor": "Zulip Basic",
"status": "paid",
"status_transitions": {
- "canceled_at": null,
- "paid_at": 1000000000
- }
+ "finalized_at": 1000000000,
+ "marked_uncollectible_at": null,
+ "paid_at": 1000000000,
+ "voided_at": null
+ },
+ "subtotal": 10000,
+ "subtotal_excluding_tax": 10000,
+ "test_clock": null,
+ "total": 10000,
+ "total_discount_amounts": [],
+ "total_excluding_tax": 10000,
+ "total_pretax_credit_amounts": [],
+ "total_taxes": [],
+ "webhooks_delivered_at": 1000000000
}
},
"id": "upgrade_by_invoice--Event.list.1.json",
@@ -33,7 +159,7 @@
"id": null,
"idempotency_key": null
},
- "type": "invoice_payment.paid"
+ "type": "invoice.payment_succeeded"
}
],
"has_more": true,
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_invoice--Event.list.2.json b/corporate/tests/stripe_fixtures/upgrade_by_invoice--Event.list.2.json
index ffc7d1c256b..b0e356f6c1f 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_invoice--Event.list.2.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_invoice--Event.list.2.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -157,15 +157,6 @@
"total_pretax_credit_amounts": [],
"total_taxes": [],
"webhooks_delivered_at": 1000000000
- },
- "previous_attributes": {
- "amount_paid": 0,
- "amount_remaining": 984000,
- "auto_advance": true,
- "status": "open",
- "status_transitions": {
- "paid_at": null
- }
}
},
"id": "upgrade_by_invoice--Event.list.2.json",
@@ -176,82 +167,188 @@
"id": "upgrade_by_invoice--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "invoice.updated"
+ "type": "invoice.paid"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
- "amount": 984000,
- "amount_capturable": 0,
- "amount_details": {
- "tip": {}
- },
- "amount_received": 0,
+ "account_country": "US",
+ "account_name": "NORMALIZED",
+ "account_tax_ids": null,
+ "amount_due": 984000,
+ "amount_overpaid": 0,
+ "amount_paid": 984000,
+ "amount_remaining": 0,
+ "amount_shipping": 0,
"application": null,
- "application_fee_amount": null,
- "automatic_payment_methods": null,
- "canceled_at": 1000000000,
- "cancellation_reason": "requested_by_customer",
- "capture_method": "automatic",
- "client_secret": "NORMALIZED",
- "confirmation_method": "automatic",
+ "attempt_count": 0,
+ "attempted": false,
+ "auto_advance": false,
+ "automatic_tax": {
+ "disabled_reason": null,
+ "enabled": false,
+ "liability": null,
+ "provider": null,
+ "status": null
+ },
+ "automatically_finalizes_at": null,
+ "billing_reason": "manual",
+ "collection_method": "send_invoice",
"created": 1000000000,
"currency": "usd",
+ "custom_fields": null,
"customer": "upgrade_by_invoice--Customer.create.1.json",
- "description": "Payment for Invoice",
- "excluded_payment_method_types": null,
+ "customer_address": null,
+ "customer_email": "[email protected]",
+ "customer_name": null,
+ "customer_phone": null,
+ "customer_shipping": null,
+ "customer_tax_exempt": "none",
+ "customer_tax_ids": [],
+ "default_payment_method": null,
+ "default_source": null,
+ "default_tax_rates": [],
+ "description": null,
+ "discounts": [],
+ "due_date": 1000000000,
+ "effective_at": 1000000000,
+ "ending_balance": 0,
+ "footer": null,
+ "from_invoice": null,
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
"id": "upgrade_by_invoice--Event.list.2.json",
- "last_payment_error": null,
- "latest_charge": null,
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
+ "issuer": {
+ "type": "self"
+ },
+ "last_finalization_error": null,
+ "latest_revision": null,
+ "lines": {
+ "data": [
+ {
+ "amount": 984000,
+ "currency": "usd",
+ "description": "Zulip Cloud Standard",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "upgrade_by_invoice--Event.list.2.json",
+ "invoice": "upgrade_by_invoice--Event.list.2.json",
+ "livemode": false,
+ "metadata": {},
+ "object": "line_item",
+ "parent": {
+ "invoice_item_details": {
+ "invoice_item": "upgrade_by_invoice--Event.list.2.json",
+ "proration": false,
+ "proration_details": {
+ "credited_items": null
+ },
+ "subscription": null
+ },
+ "subscription_item_details": null,
+ "type": "invoice_item_details"
+ },
+ "period": {
+ "end": 1357095845,
+ "start": 1325473445
+ },
+ "pretax_credit_amounts": [],
+ "pricing": {
+ "price_details": {
+ "price": "price_NORMALIZED",
+ "product": "prod_NORMALIZED"
+ },
+ "type": "price_details",
+ "unit_amount_decimal": "8000"
+ },
+ "quantity": 123,
+ "taxes": []
+ }
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 1,
+ "url": "/v1/invoices/upgrade_by_invoice--Event.list.2.json/lines"
+ },
"livemode": false,
- "metadata": {},
- "next_action": null,
- "object": "payment_intent",
+ "metadata": {
+ "billing_schedule": "1",
+ "current_plan_id": "None",
+ "license_management": "manual",
+ "licenses": "123",
+ "on_free_trial": "False",
+ "plan_tier": "1",
+ "user_id": "10"
+ },
+ "next_payment_attempt": null,
+ "number": "NORMALIZED",
+ "object": "invoice",
"on_behalf_of": null,
- "payment_method": null,
- "payment_method_configuration_details": null,
- "payment_method_options": {
- "card": {
- "installments": null,
- "mandate_options": null,
- "network": null,
- "request_three_d_secure": "automatic"
+ "parent": null,
+ "payment_settings": {
+ "default_mandate": null,
+ "payment_method_options": null,
+ "payment_method_types": null
+ },
+ "period_end": 1000000000,
+ "period_start": 1000000000,
+ "post_payment_credit_notes_amount": 0,
+ "pre_payment_credit_notes_amount": 0,
+ "receipt_number": null,
+ "rendering": {
+ "amount_tax_display": null,
+ "pdf": {
+ "page_size": "letter"
},
- "link": {
- "persistent_token": null
- }
+ "template": null,
+ "template_version": null
},
- "payment_method_types": [
- "card",
- "link"
- ],
- "processing": null,
- "receipt_email": "[email protected]",
- "review": null,
- "setup_future_usage": null,
- "shipping": null,
- "source": null,
+ "shipping_cost": null,
+ "shipping_details": null,
+ "starting_balance": 0,
"statement_descriptor": "Zulip Cloud Standard",
- "statement_descriptor_suffix": null,
- "status": "canceled",
- "transfer_data": null,
- "transfer_group": null
+ "status": "paid",
+ "status_transitions": {
+ "finalized_at": 1000000000,
+ "marked_uncollectible_at": null,
+ "paid_at": 1000000000,
+ "voided_at": null
+ },
+ "subtotal": 984000,
+ "subtotal_excluding_tax": 984000,
+ "test_clock": null,
+ "total": 984000,
+ "total_discount_amounts": [],
+ "total_excluding_tax": 984000,
+ "total_pretax_credit_amounts": [],
+ "total_taxes": [],
+ "webhooks_delivered_at": 1000000000
+ },
+ "previous_attributes": {
+ "amount_paid": 0,
+ "amount_remaining": 984000,
+ "auto_advance": true,
+ "status": "open",
+ "status_transitions": {
+ "paid_at": null
+ }
}
},
"id": "upgrade_by_invoice--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
"id": "upgrade_by_invoice--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "payment_intent.canceled"
+ "type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -420,7 +517,7 @@
"type": "invoice.finalized"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -606,7 +703,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -678,7 +775,7 @@
"type": "payment_intent.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -859,7 +956,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -906,7 +1003,7 @@
"type": "invoiceitem.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1034,7 +1131,7 @@
"type": "invoice.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1084,7 +1181,7 @@
"type": "customer.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_invoice--Event.list.3.json b/corporate/tests/stripe_fixtures/upgrade_by_invoice--Event.list.3.json
index f8105334634..2cfb9e22a59 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_invoice--Event.list.3.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_invoice--Event.list.3.json
@@ -1,162 +1,104 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
- "account_country": "US",
- "account_name": "NORMALIZED",
- "account_tax_ids": null,
- "amount_due": 984000,
- "amount_overpaid": 0,
"amount_paid": 984000,
- "amount_remaining": 0,
- "amount_shipping": 0,
- "application": null,
- "attempt_count": 0,
- "attempted": false,
- "auto_advance": false,
- "automatic_tax": {
- "disabled_reason": null,
- "enabled": false,
- "liability": null,
- "provider": null,
- "status": null
+ "amount_requested": 984000,
+ "created": 1000000000,
+ "currency": "usd",
+ "id": "upgrade_by_invoice--Event.list.3.json",
+ "invoice": "in_NORMALIZED",
+ "is_default": false,
+ "livemode": false,
+ "object": "invoice_payment",
+ "payment": {
+ "payment_record": "pr_test_NORMALIZEDIIdq2wc41RVfKEFJaqcWnQ",
+ "type": "payment_record"
+ },
+ "status": "paid",
+ "status_transitions": {
+ "canceled_at": null,
+ "paid_at": 1000000000
+ }
+ }
+ },
+ "id": "upgrade_by_invoice--Event.list.3.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "upgrade_by_invoice--Event.list.2.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ },
+ "type": "invoice_payment.paid"
+ },
+ {
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount": 984000,
+ "amount_capturable": 0,
+ "amount_details": {
+ "tip": {}
},
- "automatically_finalizes_at": null,
- "billing_reason": "manual",
- "collection_method": "send_invoice",
+ "amount_received": 0,
+ "application": null,
+ "application_fee_amount": null,
+ "automatic_payment_methods": null,
+ "canceled_at": 1000000000,
+ "cancellation_reason": "requested_by_customer",
+ "capture_method": "automatic",
+ "client_secret": "NORMALIZED",
+ "confirmation_method": "automatic",
"created": 1000000000,
"currency": "usd",
- "custom_fields": null,
"customer": "cus_NORMALIZED",
- "customer_address": null,
- "customer_email": "[email protected]",
- "customer_name": null,
- "customer_phone": null,
- "customer_shipping": null,
- "customer_tax_exempt": "none",
- "customer_tax_ids": [],
- "default_payment_method": null,
- "default_source": null,
- "default_tax_rates": [],
- "description": null,
- "discounts": [],
- "due_date": 1000000000,
- "effective_at": 1000000000,
- "ending_balance": 0,
- "footer": null,
- "from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
+ "description": "Payment for Invoice",
+ "excluded_payment_method_types": null,
"id": "upgrade_by_invoice--Event.list.2.json",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
- "issuer": {
- "type": "self"
- },
- "last_finalization_error": null,
- "latest_revision": null,
- "lines": {
- "data": [
- {
- "amount": 984000,
- "currency": "usd",
- "description": "Zulip Cloud Standard",
- "discount_amounts": [],
- "discountable": false,
- "discounts": [],
- "id": "upgrade_by_invoice--Event.list.2.json",
- "invoice": "upgrade_by_invoice--Event.list.2.json",
- "livemode": false,
- "metadata": {},
- "object": "line_item",
- "parent": {
- "invoice_item_details": {
- "invoice_item": "ii_NORMALIZED",
- "proration": false,
- "proration_details": {
- "credited_items": null
- },
- "subscription": null
- },
- "subscription_item_details": null,
- "type": "invoice_item_details"
- },
- "period": {
- "end": 1357095845,
- "start": 1325473445
- },
- "pretax_credit_amounts": [],
- "pricing": {
- "price_details": {
- "price": "price_NORMALIZED",
- "product": "prod_NORMALIZED"
- },
- "type": "price_details",
- "unit_amount_decimal": "8000"
- },
- "quantity": 123,
- "taxes": []
- }
- ],
- "has_more": false,
- "object": "list",
- "total_count": 1,
- "url": "/v1/invoices/upgrade_by_invoice--Event.list.2.json/lines"
- },
+ "last_payment_error": null,
+ "latest_charge": null,
"livemode": false,
- "metadata": {
- "billing_schedule": "1",
- "current_plan_id": "None",
- "license_management": "manual",
- "licenses": "123",
- "on_free_trial": "False",
- "plan_tier": "1",
- "user_id": "10"
- },
- "next_payment_attempt": null,
- "number": "NORMALIZED",
- "object": "invoice",
+ "metadata": {},
+ "next_action": null,
+ "object": "payment_intent",
"on_behalf_of": null,
- "parent": null,
- "payment_settings": {
- "default_mandate": null,
- "payment_method_options": null,
- "payment_method_types": null
+ "payment_details": {
+ "customer_reference": null,
+ "order_reference": "in_1SPQzvRVfKEFJaqcZdgBPV"
},
- "period_end": 1000000000,
- "period_start": 1000000000,
- "post_payment_credit_notes_amount": 0,
- "pre_payment_credit_notes_amount": 0,
- "receipt_number": null,
- "rendering": {
- "amount_tax_display": null,
- "pdf": {
- "page_size": "letter"
+ "payment_method": null,
+ "payment_method_configuration_details": null,
+ "payment_method_options": {
+ "card": {
+ "installments": null,
+ "mandate_options": null,
+ "network": null,
+ "request_three_d_secure": "automatic"
},
- "template": null,
- "template_version": null
+ "link": {
+ "persistent_token": null
+ }
},
- "shipping_cost": null,
- "shipping_details": null,
- "starting_balance": 0,
+ "payment_method_types": [
+ "card",
+ "link"
+ ],
+ "processing": null,
+ "receipt_email": "[email protected]",
+ "review": null,
+ "setup_future_usage": null,
+ "shipping": null,
+ "source": null,
"statement_descriptor": "Zulip Cloud Standard",
- "status": "paid",
- "status_transitions": {
- "finalized_at": 1000000000,
- "marked_uncollectible_at": null,
- "paid_at": 1000000000,
- "voided_at": null
- },
- "subtotal": 984000,
- "subtotal_excluding_tax": 984000,
- "test_clock": null,
- "total": 984000,
- "total_discount_amounts": [],
- "total_excluding_tax": 984000,
- "total_pretax_credit_amounts": [],
- "total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "statement_descriptor_suffix": null,
+ "status": "canceled",
+ "transfer_data": null,
+ "transfer_group": null
}
},
"id": "upgrade_by_invoice--Event.list.3.json",
@@ -167,7 +109,7 @@
"id": "upgrade_by_invoice--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "invoice.paid"
+ "type": "payment_intent.canceled"
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Event.list.1.json b/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Event.list.1.json
index 6c8c0952aff..f19f5489d40 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Event.list.1.json
@@ -1,162 +1,28 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
- "account_country": "US",
- "account_name": "NORMALIZED",
- "account_tax_ids": null,
- "amount_due": 984000,
- "amount_overpaid": 0,
"amount_paid": 984000,
- "amount_remaining": 0,
- "amount_shipping": 0,
- "application": null,
- "attempt_count": 0,
- "attempted": false,
- "auto_advance": false,
- "automatic_tax": {
- "disabled_reason": null,
- "enabled": false,
- "liability": null,
- "provider": null,
- "status": null
- },
- "automatically_finalizes_at": null,
- "billing_reason": "manual",
- "collection_method": "send_invoice",
+ "amount_requested": 984000,
"created": 1000000000,
"currency": "usd",
- "custom_fields": null,
- "customer": "cus_NORMALIZED",
- "customer_address": null,
- "customer_email": "[email protected]",
- "customer_name": null,
- "customer_phone": null,
- "customer_shipping": null,
- "customer_tax_exempt": "none",
- "customer_tax_ids": [],
- "default_payment_method": null,
- "default_source": null,
- "default_tax_rates": [],
- "description": null,
- "discounts": [],
- "due_date": 1000000000,
- "effective_at": 1000000000,
- "ending_balance": 0,
- "footer": null,
- "from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
"id": "upgrade_by_invoice_to_plus_plan--Event.list.1.json",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
- "issuer": {
- "type": "self"
- },
- "last_finalization_error": null,
- "latest_revision": null,
- "lines": {
- "data": [
- {
- "amount": 984000,
- "currency": "usd",
- "description": "Zulip Cloud Standard",
- "discount_amounts": [],
- "discountable": false,
- "discounts": [],
- "id": "upgrade_by_invoice_to_plus_plan--Event.list.1.json",
- "invoice": "upgrade_by_invoice_to_plus_plan--Event.list.1.json",
- "livemode": false,
- "metadata": {},
- "object": "line_item",
- "parent": {
- "invoice_item_details": {
- "invoice_item": "ii_NORMALIZED",
- "proration": false,
- "proration_details": {
- "credited_items": null
- },
- "subscription": null
- },
- "subscription_item_details": null,
- "type": "invoice_item_details"
- },
- "period": {
- "end": 1357095845,
- "start": 1325473445
- },
- "pretax_credit_amounts": [],
- "pricing": {
- "price_details": {
- "price": "price_NORMALIZED",
- "product": "prod_NORMALIZED"
- },
- "type": "price_details",
- "unit_amount_decimal": "8000"
- },
- "quantity": 123,
- "taxes": []
- }
- ],
- "has_more": false,
- "object": "list",
- "total_count": 1,
- "url": "/v1/invoices/upgrade_by_invoice_to_plus_plan--Event.list.1.json/lines"
- },
+ "invoice": "in_NORMALIZED",
+ "is_default": false,
"livemode": false,
- "metadata": {
- "billing_schedule": "1",
- "current_plan_id": "None",
- "license_management": "manual",
- "licenses": "123",
- "on_free_trial": "False",
- "plan_tier": "1",
- "user_id": "10"
+ "object": "invoice_payment",
+ "payment": {
+ "payment_record": "pr_test_NORMALIZEDbNitzDM41RVfKEFJaqcVKi",
+ "type": "payment_record"
},
- "next_payment_attempt": null,
- "number": "NORMALIZED",
- "object": "invoice",
- "on_behalf_of": null,
- "parent": null,
- "payment_settings": {
- "default_mandate": null,
- "payment_method_options": null,
- "payment_method_types": null
- },
- "period_end": 1000000000,
- "period_start": 1000000000,
- "post_payment_credit_notes_amount": 0,
- "pre_payment_credit_notes_amount": 0,
- "receipt_number": null,
- "rendering": {
- "amount_tax_display": null,
- "pdf": {
- "page_size": "letter"
- },
- "template": null,
- "template_version": null
- },
- "shipping_cost": null,
- "shipping_details": null,
- "starting_balance": 0,
- "statement_descriptor": "Zulip Cloud Standard",
"status": "paid",
"status_transitions": {
- "finalized_at": 1000000000,
- "marked_uncollectible_at": null,
- "paid_at": 1000000000,
- "voided_at": null
- },
- "subtotal": 984000,
- "subtotal_excluding_tax": 984000,
- "test_clock": null,
- "total": 984000,
- "total_discount_amounts": [],
- "total_excluding_tax": 984000,
- "total_pretax_credit_amounts": [],
- "total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "canceled_at": null,
+ "paid_at": 1000000000
+ }
}
},
"id": "upgrade_by_invoice_to_plus_plan--Event.list.1.json",
@@ -167,7 +33,7 @@
"id": "upgrade_by_invoice_to_plus_plan--Event.list.1.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "invoice.paid"
+ "type": "invoice_payment.paid"
}
],
"has_more": true,
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Event.list.2.json b/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Event.list.2.json
index 348e28d71d9..f3873061d40 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Event.list.2.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Event.list.2.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -156,88 +156,185 @@
"total_excluding_tax": 1476000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
- },
- "previous_attributes": {
- "amount_paid": 0,
- "amount_remaining": 1476000,
- "auto_advance": true,
- "status": "open",
- "status_transitions": {
- "paid_at": null
- }
+ "webhooks_delivered_at": 1000000000
}
},
"id": "upgrade_by_invoice_to_plus_plan--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 2,
+ "pending_webhooks": 0,
"request": {
"id": "upgrade_by_invoice_to_plus_plan--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "invoice.updated"
+ "type": "invoice.paid"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
- "amount": 1476000,
- "amount_capturable": 0,
- "amount_details": {
- "tip": {}
- },
- "amount_received": 0,
+ "account_country": "US",
+ "account_name": "NORMALIZED",
+ "account_tax_ids": null,
+ "amount_due": 1476000,
+ "amount_overpaid": 0,
+ "amount_paid": 1476000,
+ "amount_remaining": 0,
+ "amount_shipping": 0,
"application": null,
- "application_fee_amount": null,
- "automatic_payment_methods": null,
- "canceled_at": 1000000000,
- "cancellation_reason": "requested_by_customer",
- "capture_method": "automatic",
- "client_secret": "NORMALIZED",
- "confirmation_method": "automatic",
+ "attempt_count": 0,
+ "attempted": false,
+ "auto_advance": false,
+ "automatic_tax": {
+ "disabled_reason": null,
+ "enabled": false,
+ "liability": null,
+ "provider": null,
+ "status": null
+ },
+ "automatically_finalizes_at": null,
+ "billing_reason": "manual",
+ "collection_method": "send_invoice",
"created": 1000000000,
"currency": "usd",
+ "custom_fields": null,
"customer": "upgrade_by_invoice_to_plus_plan--Customer.create.1.json",
- "description": "Payment for Invoice",
- "excluded_payment_method_types": null,
+ "customer_address": null,
+ "customer_email": "[email protected]",
+ "customer_name": null,
+ "customer_phone": null,
+ "customer_shipping": null,
+ "customer_tax_exempt": "none",
+ "customer_tax_ids": [],
+ "default_payment_method": null,
+ "default_source": null,
+ "default_tax_rates": [],
+ "description": null,
+ "discounts": [],
+ "due_date": 1000000000,
+ "effective_at": 1000000000,
+ "ending_balance": 0,
+ "footer": null,
+ "from_invoice": null,
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
"id": "upgrade_by_invoice_to_plus_plan--Event.list.2.json",
- "last_payment_error": null,
- "latest_charge": null,
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
+ "issuer": {
+ "type": "self"
+ },
+ "last_finalization_error": null,
+ "latest_revision": null,
+ "lines": {
+ "data": [
+ {
+ "amount": 1476000,
+ "currency": "usd",
+ "description": "Zulip Cloud Plus",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "upgrade_by_invoice_to_plus_plan--Event.list.2.json",
+ "invoice": "upgrade_by_invoice_to_plus_plan--Event.list.2.json",
+ "livemode": false,
+ "metadata": {},
+ "object": "line_item",
+ "parent": {
+ "invoice_item_details": {
+ "invoice_item": "upgrade_by_invoice_to_plus_plan--Event.list.2.json",
+ "proration": false,
+ "proration_details": {
+ "credited_items": null
+ },
+ "subscription": null
+ },
+ "subscription_item_details": null,
+ "type": "invoice_item_details"
+ },
+ "period": {
+ "end": 1357095845,
+ "start": 1325473445
+ },
+ "pretax_credit_amounts": [],
+ "pricing": {
+ "price_details": {
+ "price": "price_NORMALIZED",
+ "product": "prod_NORMALIZED"
+ },
+ "type": "price_details",
+ "unit_amount_decimal": "12000"
+ },
+ "quantity": 123,
+ "taxes": []
+ }
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 1,
+ "url": "/v1/invoices/upgrade_by_invoice_to_plus_plan--Event.list.2.json/lines"
+ },
"livemode": false,
- "metadata": {},
- "next_action": null,
- "object": "payment_intent",
+ "metadata": {
+ "billing_schedule": "1",
+ "current_plan_id": "None",
+ "license_management": "manual",
+ "licenses": "123",
+ "on_free_trial": "False",
+ "plan_tier": "2",
+ "user_id": "10"
+ },
+ "next_payment_attempt": null,
+ "number": "NORMALIZED",
+ "object": "invoice",
"on_behalf_of": null,
- "payment_method": null,
- "payment_method_configuration_details": null,
- "payment_method_options": {
- "card": {
- "installments": null,
- "mandate_options": null,
- "network": null,
- "request_three_d_secure": "automatic"
+ "parent": null,
+ "payment_settings": {
+ "default_mandate": null,
+ "payment_method_options": null,
+ "payment_method_types": null
+ },
+ "period_end": 1000000000,
+ "period_start": 1000000000,
+ "post_payment_credit_notes_amount": 0,
+ "pre_payment_credit_notes_amount": 0,
+ "receipt_number": null,
+ "rendering": {
+ "amount_tax_display": null,
+ "pdf": {
+ "page_size": "letter"
},
- "link": {
- "persistent_token": null
- }
+ "template": null,
+ "template_version": null
},
- "payment_method_types": [
- "card",
- "link"
- ],
- "processing": null,
- "receipt_email": "[email protected]",
- "review": null,
- "setup_future_usage": null,
- "shipping": null,
- "source": null,
+ "shipping_cost": null,
+ "shipping_details": null,
+ "starting_balance": 0,
"statement_descriptor": "Zulip Cloud Plus",
- "statement_descriptor_suffix": null,
- "status": "canceled",
- "transfer_data": null,
- "transfer_group": null
+ "status": "paid",
+ "status_transitions": {
+ "finalized_at": 1000000000,
+ "marked_uncollectible_at": null,
+ "paid_at": 1000000000,
+ "voided_at": null
+ },
+ "subtotal": 1476000,
+ "subtotal_excluding_tax": 1476000,
+ "test_clock": null,
+ "total": 1476000,
+ "total_discount_amounts": [],
+ "total_excluding_tax": 1476000,
+ "total_pretax_credit_amounts": [],
+ "total_taxes": [],
+ "webhooks_delivered_at": 1000000000
+ },
+ "previous_attributes": {
+ "amount_paid": 0,
+ "amount_remaining": 1476000,
+ "auto_advance": true,
+ "status": "open",
+ "status_transitions": {
+ "paid_at": null
+ }
}
},
"id": "upgrade_by_invoice_to_plus_plan--Event.list.2.json",
@@ -248,10 +345,10 @@
"id": "upgrade_by_invoice_to_plus_plan--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "payment_intent.canceled"
+ "type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -406,7 +503,7 @@
"total_excluding_tax": 1476000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "upgrade_by_invoice_to_plus_plan--Event.list.2.json",
@@ -420,7 +517,7 @@
"type": "invoice.finalized"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -575,7 +672,7 @@
"total_excluding_tax": 1476000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"automatically_finalizes_at": 1000000000,
@@ -606,7 +703,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -678,7 +775,7 @@
"type": "payment_intent.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -859,7 +956,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -906,7 +1003,7 @@
"type": "invoiceitem.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1034,7 +1131,7 @@
"type": "invoice.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1084,7 +1181,7 @@
"type": "customer.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Event.list.3.json b/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Event.list.3.json
index c333436bd9a..fed74c505c6 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Event.list.3.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Event.list.3.json
@@ -1,162 +1,104 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
- "account_country": "US",
- "account_name": "NORMALIZED",
- "account_tax_ids": null,
- "amount_due": 1476000,
- "amount_overpaid": 0,
"amount_paid": 1476000,
- "amount_remaining": 0,
- "amount_shipping": 0,
- "application": null,
- "attempt_count": 0,
- "attempted": false,
- "auto_advance": false,
- "automatic_tax": {
- "disabled_reason": null,
- "enabled": false,
- "liability": null,
- "provider": null,
- "status": null
+ "amount_requested": 1476000,
+ "created": 1000000000,
+ "currency": "usd",
+ "id": "upgrade_by_invoice_to_plus_plan--Event.list.3.json",
+ "invoice": "in_NORMALIZED",
+ "is_default": false,
+ "livemode": false,
+ "object": "invoice_payment",
+ "payment": {
+ "payment_record": "pr_test_NORMALIZEDBVAJCa841RVfKEFJaqcVnM",
+ "type": "payment_record"
+ },
+ "status": "paid",
+ "status_transitions": {
+ "canceled_at": null,
+ "paid_at": 1000000000
+ }
+ }
+ },
+ "id": "upgrade_by_invoice_to_plus_plan--Event.list.3.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "upgrade_by_invoice_to_plus_plan--Event.list.2.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ },
+ "type": "invoice_payment.paid"
+ },
+ {
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount": 1476000,
+ "amount_capturable": 0,
+ "amount_details": {
+ "tip": {}
},
- "automatically_finalizes_at": null,
- "billing_reason": "manual",
- "collection_method": "send_invoice",
+ "amount_received": 0,
+ "application": null,
+ "application_fee_amount": null,
+ "automatic_payment_methods": null,
+ "canceled_at": 1000000000,
+ "cancellation_reason": "requested_by_customer",
+ "capture_method": "automatic",
+ "client_secret": "NORMALIZED",
+ "confirmation_method": "automatic",
"created": 1000000000,
"currency": "usd",
- "custom_fields": null,
"customer": "cus_NORMALIZED",
- "customer_address": null,
- "customer_email": "[email protected]",
- "customer_name": null,
- "customer_phone": null,
- "customer_shipping": null,
- "customer_tax_exempt": "none",
- "customer_tax_ids": [],
- "default_payment_method": null,
- "default_source": null,
- "default_tax_rates": [],
- "description": null,
- "discounts": [],
- "due_date": 1000000000,
- "effective_at": 1000000000,
- "ending_balance": 0,
- "footer": null,
- "from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
+ "description": "Payment for Invoice",
+ "excluded_payment_method_types": null,
"id": "upgrade_by_invoice_to_plus_plan--Event.list.2.json",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
- "issuer": {
- "type": "self"
- },
- "last_finalization_error": null,
- "latest_revision": null,
- "lines": {
- "data": [
- {
- "amount": 1476000,
- "currency": "usd",
- "description": "Zulip Cloud Plus",
- "discount_amounts": [],
- "discountable": false,
- "discounts": [],
- "id": "upgrade_by_invoice_to_plus_plan--Event.list.2.json",
- "invoice": "upgrade_by_invoice_to_plus_plan--Event.list.2.json",
- "livemode": false,
- "metadata": {},
- "object": "line_item",
- "parent": {
- "invoice_item_details": {
- "invoice_item": "ii_NORMALIZED",
- "proration": false,
- "proration_details": {
- "credited_items": null
- },
- "subscription": null
- },
- "subscription_item_details": null,
- "type": "invoice_item_details"
- },
- "period": {
- "end": 1357095845,
- "start": 1325473445
- },
- "pretax_credit_amounts": [],
- "pricing": {
- "price_details": {
- "price": "price_NORMALIZED",
- "product": "prod_NORMALIZED"
- },
- "type": "price_details",
- "unit_amount_decimal": "12000"
- },
- "quantity": 123,
- "taxes": []
- }
- ],
- "has_more": false,
- "object": "list",
- "total_count": 1,
- "url": "/v1/invoices/upgrade_by_invoice_to_plus_plan--Event.list.2.json/lines"
- },
+ "last_payment_error": null,
+ "latest_charge": null,
"livemode": false,
- "metadata": {
- "billing_schedule": "1",
- "current_plan_id": "None",
- "license_management": "manual",
- "licenses": "123",
- "on_free_trial": "False",
- "plan_tier": "2",
- "user_id": "10"
- },
- "next_payment_attempt": null,
- "number": "NORMALIZED",
- "object": "invoice",
+ "metadata": {},
+ "next_action": null,
+ "object": "payment_intent",
"on_behalf_of": null,
- "parent": null,
- "payment_settings": {
- "default_mandate": null,
- "payment_method_options": null,
- "payment_method_types": null
+ "payment_details": {
+ "customer_reference": null,
+ "order_reference": "in_1SPP66RVfKEFJaqcFdo2Hb"
},
- "period_end": 1000000000,
- "period_start": 1000000000,
- "post_payment_credit_notes_amount": 0,
- "pre_payment_credit_notes_amount": 0,
- "receipt_number": null,
- "rendering": {
- "amount_tax_display": null,
- "pdf": {
- "page_size": "letter"
+ "payment_method": null,
+ "payment_method_configuration_details": null,
+ "payment_method_options": {
+ "card": {
+ "installments": null,
+ "mandate_options": null,
+ "network": null,
+ "request_three_d_secure": "automatic"
},
- "template": null,
- "template_version": null
+ "link": {
+ "persistent_token": null
+ }
},
- "shipping_cost": null,
- "shipping_details": null,
- "starting_balance": 0,
+ "payment_method_types": [
+ "card",
+ "link"
+ ],
+ "processing": null,
+ "receipt_email": "[email protected]",
+ "review": null,
+ "setup_future_usage": null,
+ "shipping": null,
+ "source": null,
"statement_descriptor": "Zulip Cloud Plus",
- "status": "paid",
- "status_transitions": {
- "finalized_at": 1000000000,
- "marked_uncollectible_at": null,
- "paid_at": 1000000000,
- "voided_at": null
- },
- "subtotal": 1476000,
- "subtotal_excluding_tax": 1476000,
- "test_clock": null,
- "total": 1476000,
- "total_discount_amounts": [],
- "total_excluding_tax": 1476000,
- "total_pretax_credit_amounts": [],
- "total_taxes": [],
- "webhooks_delivered_at": null
+ "statement_descriptor_suffix": null,
+ "status": "canceled",
+ "transfer_data": null,
+ "transfer_group": null
}
},
"id": "upgrade_by_invoice_to_plus_plan--Event.list.3.json",
@@ -167,7 +109,7 @@
"id": "upgrade_by_invoice_to_plus_plan--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "invoice.paid"
+ "type": "payment_intent.canceled"
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Invoice.finalize_invoice.1.json
index 70aa5bca0f4..f6088207e43 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Invoice.finalize_invoice.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Invoice.finalize_invoice.1.json
@@ -150,5 +150,5 @@
"total_excluding_tax": 1476000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Invoice.list.1.json b/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Invoice.list.1.json
index 30b0cf647c8..afbcc08bee5 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Invoice.list.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Invoice.list.1.json
@@ -152,7 +152,7 @@
"total_excluding_tax": 1476000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Invoice.pay.1.json
index 5ca76e6496a..ee152bddced 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Invoice.pay.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Invoice.pay.1.json
@@ -150,5 +150,5 @@
"total_excluding_tax": 1476000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/upgrade_complimentary_access_plan--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/upgrade_complimentary_access_plan--SetupIntent.create.1.json
index b54091bb8b5..5ba5e9b24f1 100644
--- a/corporate/tests/stripe_fixtures/upgrade_complimentary_access_plan--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_complimentary_access_plan--SetupIntent.create.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "upgrade_complimentary_access_plan--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/upgrade_complimentary_access_plan--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/upgrade_complimentary_access_plan--SetupIntent.list.1.json
index feb76595902..b989800d89d 100644
--- a/corporate/tests/stripe_fixtures/upgrade_complimentary_access_plan--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_complimentary_access_plan--SetupIntent.list.1.json
@@ -8,6 +8,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "upgrade_complimentary_access_plan--SetupIntent.list.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/upgrade_complimentary_access_plan--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/upgrade_complimentary_access_plan--SetupIntent.retrieve.1.json
index b54091bb8b5..5ba5e9b24f1 100644
--- a/corporate/tests/stripe_fixtures/upgrade_complimentary_access_plan--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_complimentary_access_plan--SetupIntent.retrieve.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "upgrade_complimentary_access_plan--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/upgrade_license_counts--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/upgrade_license_counts--SetupIntent.create.1.json
index 01dc5f2ed2b..d3658aea0d3 100644
--- a/corporate/tests/stripe_fixtures/upgrade_license_counts--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_license_counts--SetupIntent.create.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "upgrade_license_counts--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/upgrade_license_counts--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/upgrade_license_counts--SetupIntent.list.1.json
index a2313e31671..ce9e22ee61a 100644
--- a/corporate/tests/stripe_fixtures/upgrade_license_counts--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_license_counts--SetupIntent.list.1.json
@@ -8,6 +8,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "upgrade_license_counts--SetupIntent.list.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/upgrade_license_counts--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/upgrade_license_counts--SetupIntent.retrieve.1.json
index 01dc5f2ed2b..d3658aea0d3 100644
--- a/corporate/tests/stripe_fixtures/upgrade_license_counts--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_license_counts--SetupIntent.retrieve.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "upgrade_license_counts--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/upgrade_pay_by_invoice--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/upgrade_pay_by_invoice--Invoice.finalize_invoice.1.json
index f6c1f262e1e..62e378ae9b0 100644
--- a/corporate/tests/stripe_fixtures/upgrade_pay_by_invoice--Invoice.finalize_invoice.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_pay_by_invoice--Invoice.finalize_invoice.1.json
@@ -150,5 +150,5 @@
"total_excluding_tax": 320000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/upgrade_pay_by_invoice--Invoice.refresh.1.json b/corporate/tests/stripe_fixtures/upgrade_pay_by_invoice--Invoice.refresh.1.json
index f6c1f262e1e..62e378ae9b0 100644
--- a/corporate/tests/stripe_fixtures/upgrade_pay_by_invoice--Invoice.refresh.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_pay_by_invoice--Invoice.refresh.1.json
@@ -150,5 +150,5 @@
"total_excluding_tax": 320000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/upgrade_pay_by_invoice--Invoice.retrieve.1.json b/corporate/tests/stripe_fixtures/upgrade_pay_by_invoice--Invoice.retrieve.1.json
index f6c1f262e1e..62e378ae9b0 100644
--- a/corporate/tests/stripe_fixtures/upgrade_pay_by_invoice--Invoice.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_pay_by_invoice--Invoice.retrieve.1.json
@@ -150,5 +150,5 @@
"total_excluding_tax": 320000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Event.list.1.json b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Event.list.1.json
index dfe1bfd1203..d5ab54fa821 100644
--- a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Event.list.1.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
diff --git a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Event.list.2.json b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Event.list.2.json
index 1cbdd76def0..d5e74eb9ab0 100644
--- a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Event.list.2.json
+++ b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Event.list.2.json
@@ -1,170 +1,26 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
- "account_country": "US",
- "account_name": "NORMALIZED",
- "account_tax_ids": null,
- "amount_due": 48000,
- "amount_overpaid": 0,
- "amount_paid": 48000,
- "amount_remaining": 0,
- "amount_shipping": 0,
- "application": null,
- "attempt_count": 1,
- "attempted": true,
- "auto_advance": false,
- "automatic_tax": {
- "disabled_reason": null,
- "enabled": false,
- "liability": null,
- "provider": null,
- "status": null
- },
- "automatically_finalizes_at": null,
- "billing_reason": "manual",
- "collection_method": "charge_automatically",
+ "amount_paid": null,
+ "amount_requested": 48000,
"created": 1000000000,
"currency": "usd",
- "custom_fields": null,
- "customer": "upgrade_race_condition_during_card_upgrade--Customer.create.1.json",
- "customer_address": null,
- "customer_email": "[email protected]",
- "customer_name": null,
- "customer_phone": null,
- "customer_shipping": null,
- "customer_tax_exempt": "none",
- "customer_tax_ids": [],
- "default_payment_method": null,
- "default_source": null,
- "default_tax_rates": [],
- "description": null,
- "discounts": [],
- "due_date": null,
- "effective_at": 1000000000,
- "ending_balance": 0,
- "footer": null,
- "from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
"id": "upgrade_race_condition_during_card_upgrade--Event.list.2.json",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
- "issuer": {
- "type": "self"
- },
- "last_finalization_error": null,
- "latest_revision": null,
- "lines": {
- "data": [
- {
- "amount": 48000,
- "currency": "usd",
- "description": "Zulip Cloud Standard",
- "discount_amounts": [],
- "discountable": false,
- "discounts": [],
- "id": "upgrade_race_condition_during_card_upgrade--Event.list.2.json",
- "invoice": "upgrade_race_condition_during_card_upgrade--Event.list.2.json",
- "livemode": false,
- "metadata": {},
- "object": "line_item",
- "parent": {
- "invoice_item_details": {
- "invoice_item": "upgrade_race_condition_during_card_upgrade--Event.list.2.json",
- "proration": false,
- "proration_details": {
- "credited_items": null
- },
- "subscription": null
- },
- "subscription_item_details": null,
- "type": "invoice_item_details"
- },
- "period": {
- "end": 1000000000,
- "start": 1000000000
- },
- "pretax_credit_amounts": [],
- "pricing": {
- "price_details": {
- "price": "price_NORMALIZED",
- "product": "prod_NORMALIZED"
- },
- "type": "price_details",
- "unit_amount_decimal": "8000"
- },
- "quantity": 6,
- "taxes": []
- }
- ],
- "has_more": false,
- "object": "list",
- "total_count": 1,
- "url": "/v1/invoices/upgrade_race_condition_during_card_upgrade--Event.list.2.json/lines"
- },
+ "invoice": "upgrade_race_condition_during_card_upgrade--Event.list.2.json",
+ "is_default": true,
"livemode": false,
- "metadata": {
- "billing_schedule": "1",
- "current_plan_id": "None",
- "license_management": "automatic",
- "licenses": "6",
- "on_free_trial": "False",
- "plan_tier": "1",
- "user_id": "10"
- },
- "next_payment_attempt": null,
- "number": "NORMALIZED",
- "object": "invoice",
- "on_behalf_of": null,
- "parent": null,
- "payment_settings": {
- "default_mandate": null,
- "payment_method_options": null,
- "payment_method_types": null
- },
- "period_end": 1000000000,
- "period_start": 1000000000,
- "post_payment_credit_notes_amount": 0,
- "pre_payment_credit_notes_amount": 0,
- "receipt_number": null,
- "rendering": {
- "amount_tax_display": null,
- "pdf": {
- "page_size": "letter"
- },
- "template": null,
- "template_version": null
- },
- "shipping_cost": null,
- "shipping_details": null,
- "starting_balance": 0,
- "statement_descriptor": "Zulip Cloud Standard",
- "status": "paid",
- "status_transitions": {
- "finalized_at": 1000000000,
- "marked_uncollectible_at": null,
- "paid_at": 1000000000,
- "voided_at": null
+ "object": "invoice_payment",
+ "payment": {
+ "payment_intent": "upgrade_race_condition_during_card_upgrade--Event.list.2.json",
+ "type": "payment_intent"
},
- "subtotal": 48000,
- "subtotal_excluding_tax": 48000,
- "test_clock": null,
- "total": 48000,
- "total_discount_amounts": [],
- "total_excluding_tax": 48000,
- "total_pretax_credit_amounts": [],
- "total_taxes": [],
- "webhooks_delivered_at": 1000000000
- },
- "previous_attributes": {
- "amount_paid": 0,
- "amount_remaining": 48000,
- "attempt_count": 0,
- "attempted": false,
"status": "open",
"status_transitions": {
+ "canceled_at": null,
"paid_at": null
}
}
@@ -177,10 +33,10 @@
"id": "upgrade_race_condition_during_card_upgrade--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "invoice.updated"
+ "type": "invoice_payment.paid"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -211,6 +67,10 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
+ "payment_details": {
+ "customer_reference": null,
+ "order_reference": "in_1SPP6oRVfKEFJaqcklhZmL"
+ },
"payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
"payment_method_options": {
@@ -252,7 +112,7 @@
"type": "payment_intent.succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -313,7 +173,7 @@
"payment_method_details": {
"card": {
"amount_authorized": 48000,
- "authorization_code": "070062",
+ "authorization_code": "696342",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
@@ -379,7 +239,7 @@
"type": "charge.succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -548,7 +408,7 @@
"type": "invoice.finalized"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -733,7 +593,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -805,7 +665,7 @@
"type": "payment_intent.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -960,7 +820,7 @@
"total_excluding_tax": 48000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
},
"previous_attributes": {
"amount_due": 0,
@@ -986,7 +846,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1033,7 +893,7 @@
"type": "invoiceitem.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1161,7 +1021,7 @@
"type": "invoice.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
diff --git a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Event.list.3.json b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Event.list.3.json
index 3c30679c70b..e2904a3f99a 100644
--- a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Event.list.3.json
+++ b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Event.list.3.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -170,7 +170,7 @@
"type": "invoice.payment_succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -337,6 +337,185 @@
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "invoice.paid"
+ },
+ {
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "account_country": "US",
+ "account_name": "NORMALIZED",
+ "account_tax_ids": null,
+ "amount_due": 48000,
+ "amount_overpaid": 0,
+ "amount_paid": 48000,
+ "amount_remaining": 0,
+ "amount_shipping": 0,
+ "application": null,
+ "attempt_count": 1,
+ "attempted": true,
+ "auto_advance": false,
+ "automatic_tax": {
+ "disabled_reason": null,
+ "enabled": false,
+ "liability": null,
+ "provider": null,
+ "status": null
+ },
+ "automatically_finalizes_at": null,
+ "billing_reason": "manual",
+ "collection_method": "charge_automatically",
+ "created": 1000000000,
+ "currency": "usd",
+ "custom_fields": null,
+ "customer": "cus_NORMALIZED",
+ "customer_address": null,
+ "customer_email": "[email protected]",
+ "customer_name": null,
+ "customer_phone": null,
+ "customer_shipping": null,
+ "customer_tax_exempt": "none",
+ "customer_tax_ids": [],
+ "default_payment_method": null,
+ "default_source": null,
+ "default_tax_rates": [],
+ "description": null,
+ "discounts": [],
+ "due_date": null,
+ "effective_at": 1000000000,
+ "ending_balance": 0,
+ "footer": null,
+ "from_invoice": null,
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
+ "id": "upgrade_race_condition_during_card_upgrade--Event.list.2.json",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
+ "issuer": {
+ "type": "self"
+ },
+ "last_finalization_error": null,
+ "latest_revision": null,
+ "lines": {
+ "data": [
+ {
+ "amount": 48000,
+ "currency": "usd",
+ "description": "Zulip Cloud Standard",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "upgrade_race_condition_during_card_upgrade--Event.list.2.json",
+ "invoice": "upgrade_race_condition_during_card_upgrade--Event.list.2.json",
+ "livemode": false,
+ "metadata": {},
+ "object": "line_item",
+ "parent": {
+ "invoice_item_details": {
+ "invoice_item": "ii_NORMALIZED",
+ "proration": false,
+ "proration_details": {
+ "credited_items": null
+ },
+ "subscription": null
+ },
+ "subscription_item_details": null,
+ "type": "invoice_item_details"
+ },
+ "period": {
+ "end": 1000000000,
+ "start": 1000000000
+ },
+ "pretax_credit_amounts": [],
+ "pricing": {
+ "price_details": {
+ "price": "price_NORMALIZED",
+ "product": "prod_NORMALIZED"
+ },
+ "type": "price_details",
+ "unit_amount_decimal": "8000"
+ },
+ "quantity": 6,
+ "taxes": []
+ }
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 1,
+ "url": "/v1/invoices/upgrade_race_condition_during_card_upgrade--Event.list.2.json/lines"
+ },
+ "livemode": false,
+ "metadata": {
+ "billing_schedule": "1",
+ "current_plan_id": "None",
+ "license_management": "automatic",
+ "licenses": "6",
+ "on_free_trial": "False",
+ "plan_tier": "1",
+ "user_id": "10"
+ },
+ "next_payment_attempt": null,
+ "number": "NORMALIZED",
+ "object": "invoice",
+ "on_behalf_of": null,
+ "parent": null,
+ "payment_settings": {
+ "default_mandate": null,
+ "payment_method_options": null,
+ "payment_method_types": null
+ },
+ "period_end": 1000000000,
+ "period_start": 1000000000,
+ "post_payment_credit_notes_amount": 0,
+ "pre_payment_credit_notes_amount": 0,
+ "receipt_number": null,
+ "rendering": {
+ "amount_tax_display": null,
+ "pdf": {
+ "page_size": "letter"
+ },
+ "template": null,
+ "template_version": null
+ },
+ "shipping_cost": null,
+ "shipping_details": null,
+ "starting_balance": 0,
+ "statement_descriptor": "Zulip Cloud Standard",
+ "status": "paid",
+ "status_transitions": {
+ "finalized_at": 1000000000,
+ "marked_uncollectible_at": null,
+ "paid_at": 1000000000,
+ "voided_at": null
+ },
+ "subtotal": 48000,
+ "subtotal_excluding_tax": 48000,
+ "test_clock": null,
+ "total": 48000,
+ "total_discount_amounts": [],
+ "total_excluding_tax": 48000,
+ "total_pretax_credit_amounts": [],
+ "total_taxes": [],
+ "webhooks_delivered_at": 1000000000
+ },
+ "previous_attributes": {
+ "amount_paid": 0,
+ "amount_remaining": 48000,
+ "attempt_count": 0,
+ "attempted": false,
+ "status": "open",
+ "status_transitions": {
+ "paid_at": null
+ }
+ }
+ },
+ "id": "upgrade_race_condition_during_card_upgrade--Event.list.3.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "upgrade_race_condition_during_card_upgrade--Event.list.2.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ },
+ "type": "invoice.updated"
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--SetupIntent.create.1.json
index 911f6c413d0..ae6f823ecac 100644
--- a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--SetupIntent.create.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "upgrade_race_condition_during_card_upgrade--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--SetupIntent.list.1.json
index 22dbeec7700..b539253358f 100644
--- a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--SetupIntent.list.1.json
@@ -8,6 +8,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "upgrade_race_condition_during_card_upgrade--SetupIntent.list.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--SetupIntent.retrieve.1.json
index 911f6c413d0..ae6f823ecac 100644
--- a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--SetupIntent.retrieve.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "upgrade_race_condition_during_card_upgrade--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.create.1.json b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.create.1.json
index cbf422a0df3..7a53763ba46 100644
--- a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.create.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.create.1.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "upgrade_remote_realm_user_to_monthly_basic_plan--Customer.create.1.json",
@@ -19,7 +19,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.modify.1.json b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.modify.1.json
index 417f384c282..fe263485607 100644
--- a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.modify.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.modify.1.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "upgrade_remote_realm_user_to_monthly_basic_plan--Customer.create.1.json",
@@ -19,7 +19,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.1.json
index 5b6f56e4ab5..454763dca89 100644
--- a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.1.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "upgrade_remote_realm_user_to_monthly_basic_plan--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.2.json
index 5b6f56e4ab5..454763dca89 100644
--- a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.2.json
+++ b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.2.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "upgrade_remote_realm_user_to_monthly_basic_plan--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.3.json
index 5b6f56e4ab5..454763dca89 100644
--- a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.3.json
+++ b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.3.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "upgrade_remote_realm_user_to_monthly_basic_plan--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.4.json
index 5b6f56e4ab5..454763dca89 100644
--- a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.4.json
+++ b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.4.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "upgrade_remote_realm_user_to_monthly_basic_plan--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.5.json
index 5b6f56e4ab5..454763dca89 100644
--- a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.5.json
+++ b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.5.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "upgrade_remote_realm_user_to_monthly_basic_plan--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.6.json b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.6.json
index 7d61fb1c45f..5b7700d9079 100644
--- a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.6.json
+++ b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.6.json
@@ -5,7 +5,7 @@
"currency": "usd",
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "upgrade_remote_realm_user_to_monthly_basic_plan--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 2,
diff --git a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.7.json b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.7.json
index 7d61fb1c45f..5b7700d9079 100644
--- a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.7.json
+++ b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.7.json
@@ -5,7 +5,7 @@
"currency": "usd",
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "upgrade_remote_realm_user_to_monthly_basic_plan--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 2,
diff --git a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.1.json b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.1.json
index de156483c38..323a258f84a 100644
--- a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.1.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -11,7 +11,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "upgrade_remote_realm_user_to_monthly_basic_plan--Customer.create.1.json",
@@ -25,7 +25,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.2.json b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.2.json
index 24389412a97..dea511279a6 100644
--- a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.2.json
+++ b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.2.json
@@ -1,7 +1,134 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount": 1850,
+ "amount_captured": 1850,
+ "amount_refunded": 0,
+ "application": null,
+ "application_fee": null,
+ "application_fee_amount": null,
+ "balance_transaction": "txn_NORMALIZED",
+ "billing_details": {
+ "address": {
+ "city": "San Francisco",
+ "country": "US",
+ "line1": "123 Main St",
+ "line2": null,
+ "postal_code": "12345",
+ "state": "CA"
+ },
+ "email": null,
+ "name": "John Doe",
+ "phone": null,
+ "tax_id": null
+ },
+ "calculated_statement_descriptor": "ZULIP BASIC",
+ "captured": true,
+ "created": 1000000000,
+ "currency": "usd",
+ "customer": "upgrade_remote_realm_user_to_monthly_basic_plan--Customer.create.1.json",
+ "description": "Payment for Invoice",
+ "destination": null,
+ "dispute": null,
+ "disputed": false,
+ "failure_balance_transaction": null,
+ "failure_code": null,
+ "failure_message": null,
+ "fraud_details": {},
+ "id": "upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.2.json",
+ "livemode": false,
+ "metadata": {},
+ "object": "charge",
+ "on_behalf_of": null,
+ "order": null,
+ "outcome": {
+ "advice_code": null,
+ "network_advice_code": null,
+ "network_decline_code": null,
+ "network_status": "approved_by_network",
+ "reason": null,
+ "risk_level": "normal",
+ "risk_score": 0,
+ "seller_message": "Payment complete.",
+ "type": "authorized"
+ },
+ "paid": true,
+ "payment_intent": "upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.2.json",
+ "payment_method": "pm_NORMALIZED",
+ "payment_method_details": {
+ "card": {
+ "amount_authorized": 1850,
+ "authorization_code": "574301",
+ "brand": "visa",
+ "checks": {
+ "address_line1_check": "pass",
+ "address_postal_code_check": "pass",
+ "cvc_check": "pass"
+ },
+ "country": "US",
+ "exp_month": 1,
+ "exp_year": 9999,
+ "extended_authorization": {
+ "status": "disabled"
+ },
+ "fingerprint": "NORMALIZED",
+ "funding": "credit",
+ "incremental_authorization": {
+ "status": "unavailable"
+ },
+ "installments": null,
+ "last4": "4242",
+ "mandate": null,
+ "multicapture": {
+ "status": "unavailable"
+ },
+ "network": "visa",
+ "network_token": {
+ "used": false
+ },
+ "network_transaction_id": "100110997670110",
+ "overcapture": {
+ "maximum_amount_capturable": 1850,
+ "status": "unavailable"
+ },
+ "regulated_status": "unregulated",
+ "three_d_secure": null,
+ "wallet": null
+ },
+ "type": "card"
+ },
+ "radar_options": {},
+ "receipt_email": "[email protected]",
+ "receipt_number": null,
+ "receipt_url": "https://pay.stripe.com/receipts/invoices/NORMALIZED?s=ap",
+ "refunded": false,
+ "review": null,
+ "shipping": null,
+ "source": null,
+ "source_transfer": null,
+ "statement_descriptor": "Zulip Basic",
+ "statement_descriptor_suffix": null,
+ "status": "succeeded",
+ "transfer_data": null,
+ "transfer_group": null
+ }
+ },
+ "id": "upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.2.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 2,
+ "request": {
+ "id": "upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.2.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ },
+ "type": "charge.succeeded"
+ },
+ {
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -209,7 +336,7 @@
"type": "invoice.finalized"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -433,7 +560,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -505,7 +632,7 @@
"type": "payment_intent.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -766,7 +893,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -813,42 +940,7 @@
"type": "invoiceitem.created"
},
{
- "api_version": "2025-09-30.clover",
- "created": 1000000000,
- "data": {
- "object": {
- "amount_paid": 22200,
- "amount_requested": 22200,
- "created": 1000000000,
- "currency": "usd",
- "id": "upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.2.json",
- "invoice": "in_NORMALIZED",
- "is_default": true,
- "livemode": false,
- "object": "invoice_payment",
- "payment": {
- "payment_intent": "pi_NORMALIZED",
- "type": "payment_intent"
- },
- "status": "paid",
- "status_transitions": {
- "canceled_at": null,
- "paid_at": 1000000000
- }
- }
- },
- "id": "upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.2.json",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 0,
- "request": {
- "id": null,
- "idempotency_key": null
- },
- "type": "invoice_payment.paid"
- },
- {
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1002,7 +1094,7 @@
"total_excluding_tax": 3850,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
},
"previous_attributes": {
"amount_due": 0,
@@ -1028,7 +1120,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1075,7 +1167,7 @@
"type": "invoiceitem.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1202,7 +1294,7 @@
"type": "invoice.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1212,7 +1304,7 @@
"currency": "usd",
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "upgrade_remote_realm_user_to_monthly_basic_plan--Customer.create.1.json",
@@ -1226,7 +1318,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.3.json b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.3.json
index 0e1736cfdaf..ace2d4836f2 100644
--- a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.3.json
+++ b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.3.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -201,15 +201,15 @@
"id": "upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.3.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
- "id": "upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.3.json",
+ "id": "upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "invoice.payment_succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -409,15 +409,15 @@
"id": "upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.3.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
- "id": "upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.3.json",
+ "id": "upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "invoice.paid"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -629,13 +629,48 @@
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.3.json",
+ "id": "upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount_paid": null,
+ "amount_requested": 1850,
+ "created": 1000000000,
+ "currency": "usd",
+ "id": "upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.3.json",
+ "invoice": "upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.2.json",
+ "is_default": true,
+ "livemode": false,
+ "object": "invoice_payment",
+ "payment": {
+ "payment_intent": "upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.2.json",
+ "type": "payment_intent"
+ },
+ "status": "open",
+ "status_transitions": {
+ "canceled_at": null,
+ "paid_at": null
+ }
+ }
+ },
+ "id": "upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.3.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.2.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ },
+ "type": "invoice_payment.paid"
+ },
+ {
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -660,12 +695,16 @@
"excluded_payment_method_types": null,
"id": "upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.2.json",
"last_payment_error": null,
- "latest_charge": "upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.3.json",
+ "latest_charge": "ch_NORMALIZED",
"livemode": false,
"metadata": {},
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
+ "payment_details": {
+ "customer_reference": null,
+ "order_reference": "in_1SPP9sRVfKEFJaqco8Ldlf"
+ },
"payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
"payment_method_options": {
@@ -701,137 +740,10 @@
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.3.json",
+ "id": "upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "payment_intent.succeeded"
- },
- {
- "api_version": "2025-09-30.clover",
- "created": 1000000000,
- "data": {
- "object": {
- "amount": 1850,
- "amount_captured": 1850,
- "amount_refunded": 0,
- "application": null,
- "application_fee": null,
- "application_fee_amount": null,
- "balance_transaction": "txn_NORMALIZED",
- "billing_details": {
- "address": {
- "city": "San Francisco",
- "country": "US",
- "line1": "123 Main St",
- "line2": null,
- "postal_code": "12345",
- "state": "CA"
- },
- "email": null,
- "name": "John Doe",
- "phone": null,
- "tax_id": null
- },
- "calculated_statement_descriptor": "ZULIP BASIC",
- "captured": true,
- "created": 1000000000,
- "currency": "usd",
- "customer": "cus_NORMALIZED",
- "description": "Payment for Invoice",
- "destination": null,
- "dispute": null,
- "disputed": false,
- "failure_balance_transaction": null,
- "failure_code": null,
- "failure_message": null,
- "fraud_details": {},
- "id": "upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.3.json",
- "livemode": false,
- "metadata": {},
- "object": "charge",
- "on_behalf_of": null,
- "order": null,
- "outcome": {
- "advice_code": null,
- "network_advice_code": null,
- "network_decline_code": null,
- "network_status": "approved_by_network",
- "reason": null,
- "risk_level": "normal",
- "risk_score": 0,
- "seller_message": "Payment complete.",
- "type": "authorized"
- },
- "paid": true,
- "payment_intent": "upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.2.json",
- "payment_method": "pm_NORMALIZED",
- "payment_method_details": {
- "card": {
- "amount_authorized": 1850,
- "authorization_code": "212474",
- "brand": "visa",
- "checks": {
- "address_line1_check": "pass",
- "address_postal_code_check": "pass",
- "cvc_check": "pass"
- },
- "country": "US",
- "exp_month": 1,
- "exp_year": 9999,
- "extended_authorization": {
- "status": "disabled"
- },
- "fingerprint": "NORMALIZED",
- "funding": "credit",
- "incremental_authorization": {
- "status": "unavailable"
- },
- "installments": null,
- "last4": "4242",
- "mandate": null,
- "multicapture": {
- "status": "unavailable"
- },
- "network": "visa",
- "network_token": {
- "used": false
- },
- "network_transaction_id": "100110997670110",
- "overcapture": {
- "maximum_amount_capturable": 1850,
- "status": "unavailable"
- },
- "regulated_status": "unregulated",
- "three_d_secure": null,
- "wallet": null
- },
- "type": "card"
- },
- "radar_options": {},
- "receipt_email": "[email protected]",
- "receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/invoices/NORMALIZED?s=ap",
- "refunded": false,
- "review": null,
- "shipping": null,
- "source": null,
- "source_transfer": null,
- "statement_descriptor": "Zulip Basic",
- "statement_descriptor_suffix": null,
- "status": "succeeded",
- "transfer_data": null,
- "transfer_group": null
- }
- },
- "id": "upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.3.json",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 0,
- "request": {
- "id": "upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.3.json",
- "idempotency_key": "00000000-0000-0000-0000-000000000000"
- },
- "type": "charge.succeeded"
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--SetupIntent.create.1.json
index 7279afab30f..28065c0e3c3 100644
--- a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--SetupIntent.create.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "upgrade_remote_realm_user_to_monthly_basic_plan--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--SetupIntent.list.1.json
index 13645d7aab5..413ec369a32 100644
--- a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--SetupIntent.list.1.json
@@ -8,6 +8,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "upgrade_remote_realm_user_to_monthly_basic_plan--SetupIntent.list.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--SetupIntent.retrieve.1.json
index 7279afab30f..28065c0e3c3 100644
--- a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--SetupIntent.retrieve.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "upgrade_remote_realm_user_to_monthly_basic_plan--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--checkout.Session.create.1.json
index 636a7ef97d0..ab48bdd5921 100644
--- a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--checkout.Session.create.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--checkout.Session.create.1.json
@@ -28,7 +28,7 @@
"type": "file"
}
},
- "cancel_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/upgrade/?manual_license_management=false&tier=1",
+ "cancel_url": "http://selfhosting.testserver/realm/9c36daef-29ed-478d-a237-26a7dec0f4ee/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"collected_information": {
@@ -101,7 +101,7 @@
"status": "open",
"submit_type": null,
"subscription": null,
- "success_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
+ "success_url": "http://selfhosting.testserver/realm/9c36daef-29ed-478d-a237-26a7dec0f4ee/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
"url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED",
diff --git a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--checkout.Session.list.1.json
index ef674a816c2..7d9bd31e3a4 100644
--- a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--checkout.Session.list.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--checkout.Session.list.1.json
@@ -30,7 +30,7 @@
"type": "file"
}
},
- "cancel_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/upgrade/?manual_license_management=false&tier=1",
+ "cancel_url": "http://selfhosting.testserver/realm/9c36daef-29ed-478d-a237-26a7dec0f4ee/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"collected_information": {
@@ -103,7 +103,7 @@
"status": "open",
"submit_type": null,
"subscription": null,
- "success_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
+ "success_url": "http://selfhosting.testserver/realm/9c36daef-29ed-478d-a237-26a7dec0f4ee/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
"url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED",
diff --git a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.1.json b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.1.json
index ef9d11a5307..b40cadf3ace 100644
--- a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.1.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
diff --git a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.2.json b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.2.json
index f79fef771c6..825ac207371 100644
--- a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.2.json
+++ b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.2.json
@@ -1,7 +1,42 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount_paid": null,
+ "amount_requested": 10000,
+ "created": 1000000000,
+ "currency": "usd",
+ "id": "upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.2.json",
+ "invoice": "upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.2.json",
+ "is_default": true,
+ "livemode": false,
+ "object": "invoice_payment",
+ "payment": {
+ "payment_intent": "upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.2.json",
+ "type": "payment_intent"
+ },
+ "status": "open",
+ "status_transitions": {
+ "canceled_at": null,
+ "paid_at": null
+ }
+ }
+ },
+ "id": "upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.2.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.2.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ },
+ "type": "invoice_payment.paid"
+ },
+ {
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -32,6 +67,10 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
+ "payment_details": {
+ "customer_reference": null,
+ "order_reference": "in_1SPPDJRVfKEFJaqcLRMorx"
+ },
"payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
"payment_method_options": {
@@ -65,7 +104,7 @@
"id": "upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
"id": "upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -73,7 +112,7 @@
"type": "payment_intent.succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -134,7 +173,7 @@
"payment_method_details": {
"card": {
"amount_authorized": 10000,
- "authorization_code": "643507",
+ "authorization_code": "088719",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
@@ -192,7 +231,7 @@
"id": "upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
"id": "upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -200,42 +239,7 @@
"type": "charge.succeeded"
},
{
- "api_version": "2025-09-30.clover",
- "created": 1000000000,
- "data": {
- "object": {
- "amount_paid": 176000,
- "amount_requested": 176000,
- "created": 1000000000,
- "currency": "usd",
- "id": "upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.2.json",
- "invoice": "in_NORMALIZED",
- "is_default": true,
- "livemode": false,
- "object": "invoice_payment",
- "payment": {
- "payment_intent": "pi_NORMALIZED",
- "type": "payment_intent"
- },
- "status": "paid",
- "status_transitions": {
- "canceled_at": null,
- "paid_at": 1000000000
- }
- }
- },
- "id": "upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.2.json",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 0,
- "request": {
- "id": null,
- "idempotency_key": null
- },
- "type": "invoice_payment.paid"
- },
- {
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -389,7 +393,7 @@
"total_excluding_tax": 10000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
},
"id": "upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.2.json",
@@ -403,7 +407,7 @@
"type": "invoice.finalized"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -557,7 +561,7 @@
"total_excluding_tax": 10000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
},
"previous_attributes": {
"effective_at": null,
@@ -587,7 +591,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -659,7 +663,7 @@
"type": "payment_intent.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -813,7 +817,7 @@
"total_excluding_tax": 10000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
},
"previous_attributes": {
"amount_due": 0,
@@ -839,7 +843,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -886,7 +890,7 @@
"type": "invoiceitem.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1013,7 +1017,7 @@
"type": "invoice.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1063,7 +1067,7 @@
"type": "customer.updated"
}
],
- "has_more": true,
+ "has_more": false,
"object": "list",
"url": "/v1/events"
}
diff --git a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.3.json b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.3.json
index 49525538069..cfdc542a830 100644
--- a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.3.json
+++ b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.3.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -155,7 +155,7 @@
"total_excluding_tax": 10000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
},
"id": "upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.3.json",
@@ -169,7 +169,7 @@
"type": "invoice.payment_succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -323,7 +323,7 @@
"total_excluding_tax": 10000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
},
"id": "upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.3.json",
@@ -337,7 +337,7 @@
"type": "invoice.paid"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -491,7 +491,7 @@
"total_excluding_tax": 10000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
},
"previous_attributes": {
"amount_paid": 0,
diff --git a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Invoice.finalize_invoice.1.json
index c6c6eef03e4..110c60989cf 100644
--- a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Invoice.finalize_invoice.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Invoice.finalize_invoice.1.json
@@ -149,5 +149,5 @@
"total_excluding_tax": 10000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
diff --git a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Invoice.pay.1.json
index 2765e195900..c4839ca9d12 100644
--- a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Invoice.pay.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Invoice.pay.1.json
@@ -149,5 +149,5 @@
"total_excluding_tax": 10000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
diff --git a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--SetupIntent.create.1.json
index 6da303bb74d..60cf014bca5 100644
--- a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--SetupIntent.create.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "upgrade_server_to_fixed_price_monthly_basic_plan--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--SetupIntent.list.1.json
index 63c6aa29d39..2f31ed5966a 100644
--- a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--SetupIntent.list.1.json
@@ -8,6 +8,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "upgrade_server_to_fixed_price_monthly_basic_plan--SetupIntent.list.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--SetupIntent.retrieve.1.json
index 6da303bb74d..60cf014bca5 100644
--- a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--SetupIntent.retrieve.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "upgrade_server_to_fixed_price_monthly_basic_plan--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Event.list.1.json b/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Event.list.1.json
index 73e2837af07..4296741b2a0 100644
--- a/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Event.list.1.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
diff --git a/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Event.list.2.json b/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Event.list.2.json
index 6694898af29..a18a022d863 100644
--- a/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Event.list.2.json
+++ b/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Event.list.2.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -62,7 +62,7 @@
"payment_method_details": {
"card": {
"amount_authorized": 4300,
- "authorization_code": "869905",
+ "authorization_code": "373366",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
@@ -120,7 +120,7 @@
"id": "upgrade_server_user_to_monthly_basic_plan--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 1,
+ "pending_webhooks": 2,
"request": {
"id": "upgrade_server_user_to_monthly_basic_plan--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -128,7 +128,7 @@
"type": "charge.succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -336,7 +336,7 @@
"type": "invoice.finalized"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -560,7 +560,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -632,7 +632,7 @@
"type": "payment_intent.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -893,7 +893,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -940,7 +940,7 @@
"type": "invoiceitem.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1094,7 +1094,7 @@
"total_excluding_tax": 6300,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
},
"previous_attributes": {
"amount_due": 0,
@@ -1120,7 +1120,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1167,7 +1167,7 @@
"type": "invoiceitem.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1294,7 +1294,7 @@
"type": "invoice.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
diff --git a/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Event.list.3.json b/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Event.list.3.json
index dafdd76d3bf..635fd588b4f 100644
--- a/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Event.list.3.json
+++ b/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Event.list.3.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -201,7 +201,7 @@
"id": "upgrade_server_user_to_monthly_basic_plan--Event.list.3.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
"id": "upgrade_server_user_to_monthly_basic_plan--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -209,7 +209,7 @@
"type": "invoice.payment_succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -417,7 +417,7 @@
"type": "invoice.paid"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -635,7 +635,42 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount_paid": null,
+ "amount_requested": 4300,
+ "created": 1000000000,
+ "currency": "usd",
+ "id": "upgrade_server_user_to_monthly_basic_plan--Event.list.3.json",
+ "invoice": "upgrade_server_user_to_monthly_basic_plan--Event.list.2.json",
+ "is_default": true,
+ "livemode": false,
+ "object": "invoice_payment",
+ "payment": {
+ "payment_intent": "upgrade_server_user_to_monthly_basic_plan--Event.list.2.json",
+ "type": "payment_intent"
+ },
+ "status": "open",
+ "status_transitions": {
+ "canceled_at": null,
+ "paid_at": null
+ }
+ }
+ },
+ "id": "upgrade_server_user_to_monthly_basic_plan--Event.list.3.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "upgrade_server_user_to_monthly_basic_plan--Event.list.2.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ },
+ "type": "invoice_payment.paid"
+ },
+ {
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -666,6 +701,10 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
+ "payment_details": {
+ "customer_reference": null,
+ "order_reference": "in_1SPPDdRVfKEFJaqc9Cpv7N"
+ },
"payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
"payment_method_options": {
diff --git a/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--SetupIntent.create.1.json
index 64c422600f5..19f0aff36a6 100644
--- a/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--SetupIntent.create.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "upgrade_server_user_to_monthly_basic_plan--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--SetupIntent.list.1.json
index f99d81f998c..17c5cbf30a6 100644
--- a/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--SetupIntent.list.1.json
@@ -8,6 +8,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "upgrade_server_user_to_monthly_basic_plan--SetupIntent.list.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--SetupIntent.retrieve.1.json
index 64c422600f5..19f0aff36a6 100644
--- a/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--SetupIntent.retrieve.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "upgrade_server_user_to_monthly_basic_plan--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/upgrade_to_fixed_price_plus_plan--Event.list.1.json b/corporate/tests/stripe_fixtures/upgrade_to_fixed_price_plus_plan--Event.list.1.json
index 6b636b7e5e3..12e1f2a15ea 100644
--- a/corporate/tests/stripe_fixtures/upgrade_to_fixed_price_plus_plan--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_to_fixed_price_plus_plan--Event.list.1.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
diff --git a/corporate/tests/stripe_fixtures/upgrade_to_fixed_price_plus_plan--Event.list.2.json b/corporate/tests/stripe_fixtures/upgrade_to_fixed_price_plus_plan--Event.list.2.json
index 4c90db86c02..acf8c415b6a 100644
--- a/corporate/tests/stripe_fixtures/upgrade_to_fixed_price_plus_plan--Event.list.2.json
+++ b/corporate/tests/stripe_fixtures/upgrade_to_fixed_price_plus_plan--Event.list.2.json
@@ -1,79 +1,354 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
- "amount": 984000,
- "amount_capturable": 0,
- "amount_details": {
- "tip": {}
+ "account_country": "US",
+ "account_name": "NORMALIZED",
+ "account_tax_ids": null,
+ "amount_due": 984000,
+ "amount_overpaid": 0,
+ "amount_paid": 984000,
+ "amount_remaining": 0,
+ "amount_shipping": 0,
+ "application": null,
+ "attempt_count": 0,
+ "attempted": false,
+ "auto_advance": false,
+ "automatic_tax": {
+ "disabled_reason": null,
+ "enabled": false,
+ "liability": null,
+ "provider": null,
+ "status": null
},
- "amount_received": 0,
+ "automatically_finalizes_at": null,
+ "billing_reason": "manual",
+ "collection_method": "send_invoice",
+ "created": 1000000000,
+ "currency": "usd",
+ "custom_fields": null,
+ "customer": "upgrade_to_fixed_price_plus_plan--Customer.create.1.json",
+ "customer_address": null,
+ "customer_email": "[email protected]",
+ "customer_name": null,
+ "customer_phone": null,
+ "customer_shipping": null,
+ "customer_tax_exempt": "none",
+ "customer_tax_ids": [],
+ "default_payment_method": null,
+ "default_source": null,
+ "default_tax_rates": [],
+ "description": null,
+ "discounts": [],
+ "due_date": 1000000000,
+ "effective_at": 1000000000,
+ "ending_balance": 0,
+ "footer": null,
+ "from_invoice": null,
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
+ "id": "upgrade_to_fixed_price_plus_plan--Event.list.2.json",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
+ "issuer": {
+ "type": "self"
+ },
+ "last_finalization_error": null,
+ "latest_revision": null,
+ "lines": {
+ "data": [
+ {
+ "amount": 984000,
+ "currency": "usd",
+ "description": "Zulip Cloud Standard",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "upgrade_to_fixed_price_plus_plan--Event.list.2.json",
+ "invoice": "upgrade_to_fixed_price_plus_plan--Event.list.2.json",
+ "livemode": false,
+ "metadata": {},
+ "object": "line_item",
+ "parent": {
+ "invoice_item_details": {
+ "invoice_item": "upgrade_to_fixed_price_plus_plan--Event.list.2.json",
+ "proration": false,
+ "proration_details": {
+ "credited_items": null
+ },
+ "subscription": null
+ },
+ "subscription_item_details": null,
+ "type": "invoice_item_details"
+ },
+ "period": {
+ "end": 1357095845,
+ "start": 1325473445
+ },
+ "pretax_credit_amounts": [],
+ "pricing": {
+ "price_details": {
+ "price": "price_NORMALIZED",
+ "product": "prod_NORMALIZED"
+ },
+ "type": "price_details",
+ "unit_amount_decimal": "8000"
+ },
+ "quantity": 123,
+ "taxes": []
+ }
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 1,
+ "url": "/v1/invoices/upgrade_to_fixed_price_plus_plan--Event.list.2.json/lines"
+ },
+ "livemode": false,
+ "metadata": {
+ "billing_schedule": "1",
+ "current_plan_id": "None",
+ "license_management": "manual",
+ "licenses": "123",
+ "on_free_trial": "False",
+ "plan_tier": "1",
+ "user_id": "10"
+ },
+ "next_payment_attempt": null,
+ "number": "NORMALIZED",
+ "object": "invoice",
+ "on_behalf_of": null,
+ "parent": null,
+ "payment_settings": {
+ "default_mandate": null,
+ "payment_method_options": null,
+ "payment_method_types": null
+ },
+ "period_end": 1000000000,
+ "period_start": 1000000000,
+ "post_payment_credit_notes_amount": 0,
+ "pre_payment_credit_notes_amount": 0,
+ "receipt_number": null,
+ "rendering": {
+ "amount_tax_display": null,
+ "pdf": {
+ "page_size": "letter"
+ },
+ "template": null,
+ "template_version": null
+ },
+ "shipping_cost": null,
+ "shipping_details": null,
+ "starting_balance": 0,
+ "statement_descriptor": "Zulip Cloud Standard",
+ "status": "paid",
+ "status_transitions": {
+ "finalized_at": 1000000000,
+ "marked_uncollectible_at": null,
+ "paid_at": 1000000000,
+ "voided_at": null
+ },
+ "subtotal": 984000,
+ "subtotal_excluding_tax": 984000,
+ "test_clock": null,
+ "total": 984000,
+ "total_discount_amounts": [],
+ "total_excluding_tax": 984000,
+ "total_pretax_credit_amounts": [],
+ "total_taxes": [],
+ "webhooks_delivered_at": 1000000000
+ }
+ },
+ "id": "upgrade_to_fixed_price_plus_plan--Event.list.2.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 2,
+ "request": {
+ "id": "upgrade_to_fixed_price_plus_plan--Event.list.2.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ },
+ "type": "invoice.paid"
+ },
+ {
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "account_country": "US",
+ "account_name": "NORMALIZED",
+ "account_tax_ids": null,
+ "amount_due": 984000,
+ "amount_overpaid": 0,
+ "amount_paid": 984000,
+ "amount_remaining": 0,
+ "amount_shipping": 0,
"application": null,
- "application_fee_amount": null,
- "automatic_payment_methods": null,
- "canceled_at": 1000000000,
- "cancellation_reason": "requested_by_customer",
- "capture_method": "automatic",
- "client_secret": "NORMALIZED",
- "confirmation_method": "automatic",
+ "attempt_count": 0,
+ "attempted": false,
+ "auto_advance": false,
+ "automatic_tax": {
+ "disabled_reason": null,
+ "enabled": false,
+ "liability": null,
+ "provider": null,
+ "status": null
+ },
+ "automatically_finalizes_at": null,
+ "billing_reason": "manual",
+ "collection_method": "send_invoice",
"created": 1000000000,
"currency": "usd",
+ "custom_fields": null,
"customer": "upgrade_to_fixed_price_plus_plan--Customer.create.1.json",
- "description": "Payment for Invoice",
- "excluded_payment_method_types": null,
+ "customer_address": null,
+ "customer_email": "[email protected]",
+ "customer_name": null,
+ "customer_phone": null,
+ "customer_shipping": null,
+ "customer_tax_exempt": "none",
+ "customer_tax_ids": [],
+ "default_payment_method": null,
+ "default_source": null,
+ "default_tax_rates": [],
+ "description": null,
+ "discounts": [],
+ "due_date": 1000000000,
+ "effective_at": 1000000000,
+ "ending_balance": 0,
+ "footer": null,
+ "from_invoice": null,
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
"id": "upgrade_to_fixed_price_plus_plan--Event.list.2.json",
- "last_payment_error": null,
- "latest_charge": null,
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
+ "issuer": {
+ "type": "self"
+ },
+ "last_finalization_error": null,
+ "latest_revision": null,
+ "lines": {
+ "data": [
+ {
+ "amount": 984000,
+ "currency": "usd",
+ "description": "Zulip Cloud Standard",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "upgrade_to_fixed_price_plus_plan--Event.list.2.json",
+ "invoice": "upgrade_to_fixed_price_plus_plan--Event.list.2.json",
+ "livemode": false,
+ "metadata": {},
+ "object": "line_item",
+ "parent": {
+ "invoice_item_details": {
+ "invoice_item": "upgrade_to_fixed_price_plus_plan--Event.list.2.json",
+ "proration": false,
+ "proration_details": {
+ "credited_items": null
+ },
+ "subscription": null
+ },
+ "subscription_item_details": null,
+ "type": "invoice_item_details"
+ },
+ "period": {
+ "end": 1357095845,
+ "start": 1325473445
+ },
+ "pretax_credit_amounts": [],
+ "pricing": {
+ "price_details": {
+ "price": "price_NORMALIZED",
+ "product": "prod_NORMALIZED"
+ },
+ "type": "price_details",
+ "unit_amount_decimal": "8000"
+ },
+ "quantity": 123,
+ "taxes": []
+ }
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 1,
+ "url": "/v1/invoices/upgrade_to_fixed_price_plus_plan--Event.list.2.json/lines"
+ },
"livemode": false,
- "metadata": {},
- "next_action": null,
- "object": "payment_intent",
+ "metadata": {
+ "billing_schedule": "1",
+ "current_plan_id": "None",
+ "license_management": "manual",
+ "licenses": "123",
+ "on_free_trial": "False",
+ "plan_tier": "1",
+ "user_id": "10"
+ },
+ "next_payment_attempt": null,
+ "number": "NORMALIZED",
+ "object": "invoice",
"on_behalf_of": null,
- "payment_method": null,
- "payment_method_configuration_details": null,
- "payment_method_options": {
- "card": {
- "installments": null,
- "mandate_options": null,
- "network": null,
- "request_three_d_secure": "automatic"
+ "parent": null,
+ "payment_settings": {
+ "default_mandate": null,
+ "payment_method_options": null,
+ "payment_method_types": null
+ },
+ "period_end": 1000000000,
+ "period_start": 1000000000,
+ "post_payment_credit_notes_amount": 0,
+ "pre_payment_credit_notes_amount": 0,
+ "receipt_number": null,
+ "rendering": {
+ "amount_tax_display": null,
+ "pdf": {
+ "page_size": "letter"
},
- "link": {
- "persistent_token": null
- }
+ "template": null,
+ "template_version": null
},
- "payment_method_types": [
- "card",
- "link"
- ],
- "processing": null,
- "receipt_email": "[email protected]",
- "review": null,
- "setup_future_usage": null,
- "shipping": null,
- "source": null,
+ "shipping_cost": null,
+ "shipping_details": null,
+ "starting_balance": 0,
"statement_descriptor": "Zulip Cloud Standard",
- "statement_descriptor_suffix": null,
- "status": "canceled",
- "transfer_data": null,
- "transfer_group": null
+ "status": "paid",
+ "status_transitions": {
+ "finalized_at": 1000000000,
+ "marked_uncollectible_at": null,
+ "paid_at": 1000000000,
+ "voided_at": null
+ },
+ "subtotal": 984000,
+ "subtotal_excluding_tax": 984000,
+ "test_clock": null,
+ "total": 984000,
+ "total_discount_amounts": [],
+ "total_excluding_tax": 984000,
+ "total_pretax_credit_amounts": [],
+ "total_taxes": [],
+ "webhooks_delivered_at": 1000000000
+ },
+ "previous_attributes": {
+ "amount_paid": 0,
+ "amount_remaining": 984000,
+ "auto_advance": true,
+ "status": "open",
+ "status_transitions": {
+ "paid_at": null
+ }
}
},
"id": "upgrade_to_fixed_price_plus_plan--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
"id": "upgrade_to_fixed_price_plus_plan--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "payment_intent.canceled"
+ "type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -242,7 +517,7 @@
"type": "invoice.finalized"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -428,7 +703,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -500,7 +775,7 @@
"type": "payment_intent.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -681,7 +956,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -728,7 +1003,7 @@
"type": "invoiceitem.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -856,7 +1131,7 @@
"type": "invoice.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -906,7 +1181,7 @@
"type": "customer.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -951,167 +1226,6 @@
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "customer.created"
- },
- {
- "api_version": "2025-09-30.clover",
- "created": 1000000000,
- "data": {
- "object": {
- "account_country": "US",
- "account_name": "NORMALIZED",
- "account_tax_ids": null,
- "amount_due": 100,
- "amount_overpaid": 0,
- "amount_paid": 0,
- "amount_remaining": 100,
- "amount_shipping": 0,
- "application": null,
- "attempt_count": 0,
- "attempted": false,
- "auto_advance": true,
- "automatic_tax": {
- "disabled_reason": null,
- "enabled": false,
- "liability": null,
- "provider": null,
- "status": null
- },
- "automatically_finalizes_at": null,
- "billing_reason": "manual",
- "collection_method": "send_invoice",
- "created": 1000000000,
- "currency": "usd",
- "custom_fields": null,
- "customer": "cus_NORMALIZED",
- "customer_address": null,
- "customer_email": "[email protected]",
- "customer_name": null,
- "customer_phone": null,
- "customer_shipping": null,
- "customer_tax_exempt": "none",
- "customer_tax_ids": [],
- "default_payment_method": null,
- "default_source": null,
- "default_tax_rates": [],
- "description": null,
- "discounts": [],
- "due_date": 1000000000,
- "effective_at": 1000000000,
- "ending_balance": 0,
- "footer": null,
- "from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
- "id": "upgrade_to_fixed_price_plus_plan--Event.list.2.json",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
- "issuer": {
- "type": "self"
- },
- "last_finalization_error": null,
- "latest_revision": null,
- "lines": {
- "data": [
- {
- "amount": 100,
- "currency": "usd",
- "description": "Zulip Cloud Standard - renewal",
- "discount_amounts": [],
- "discountable": false,
- "discounts": [],
- "id": "upgrade_to_fixed_price_plus_plan--Event.list.2.json",
- "invoice": "upgrade_to_fixed_price_plus_plan--Event.list.2.json",
- "livemode": false,
- "metadata": {},
- "object": "line_item",
- "parent": {
- "invoice_item_details": {
- "invoice_item": "ii_NORMALIZED",
- "proration": false,
- "proration_details": {
- "credited_items": null
- },
- "subscription": null
- },
- "subscription_item_details": null,
- "type": "invoice_item_details"
- },
- "period": {
- "end": 1388631845,
- "start": 1357095845
- },
- "pretax_credit_amounts": [],
- "pricing": {
- "price_details": {
- "price": "price_NORMALIZED",
- "product": "prod_NORMALIZED"
- },
- "type": "price_details",
- "unit_amount_decimal": "100"
- },
- "quantity": 1,
- "taxes": []
- }
- ],
- "has_more": false,
- "object": "list",
- "total_count": 1,
- "url": "/v1/invoices/upgrade_to_fixed_price_plus_plan--Event.list.2.json/lines"
- },
- "livemode": false,
- "metadata": {},
- "next_payment_attempt": null,
- "number": "NORMALIZED",
- "object": "invoice",
- "on_behalf_of": null,
- "parent": null,
- "payment_settings": {
- "default_mandate": null,
- "payment_method_options": null,
- "payment_method_types": null
- },
- "period_end": 1000000000,
- "period_start": 1000000000,
- "post_payment_credit_notes_amount": 0,
- "pre_payment_credit_notes_amount": 0,
- "receipt_number": null,
- "rendering": {
- "amount_tax_display": null,
- "pdf": {
- "page_size": "letter"
- },
- "template": null,
- "template_version": null
- },
- "shipping_cost": null,
- "shipping_details": null,
- "starting_balance": 0,
- "statement_descriptor": "Zulip Cloud Standard",
- "status": "open",
- "status_transitions": {
- "finalized_at": 1000000000,
- "marked_uncollectible_at": null,
- "paid_at": null,
- "voided_at": null
- },
- "subtotal": 100,
- "subtotal_excluding_tax": 100,
- "test_clock": null,
- "total": 100,
- "total_discount_amounts": [],
- "total_excluding_tax": 100,
- "total_pretax_credit_amounts": [],
- "total_taxes": [],
- "webhooks_delivered_at": null
- }
- },
- "id": "upgrade_to_fixed_price_plus_plan--Event.list.2.json",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 0,
- "request": {
- "id": null,
- "idempotency_key": null
- },
- "type": "invoice.sent"
}
],
"has_more": true,
diff --git a/corporate/tests/stripe_fixtures/upgrade_to_fixed_price_plus_plan--Event.list.3.json b/corporate/tests/stripe_fixtures/upgrade_to_fixed_price_plus_plan--Event.list.3.json
index 31c3dd04440..ca12c8c5ee7 100644
--- a/corporate/tests/stripe_fixtures/upgrade_to_fixed_price_plus_plan--Event.list.3.json
+++ b/corporate/tests/stripe_fixtures/upgrade_to_fixed_price_plus_plan--Event.list.3.json
@@ -1,162 +1,28 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
- "account_country": "US",
- "account_name": "NORMALIZED",
- "account_tax_ids": null,
- "amount_due": 984000,
- "amount_overpaid": 0,
"amount_paid": 984000,
- "amount_remaining": 0,
- "amount_shipping": 0,
- "application": null,
- "attempt_count": 0,
- "attempted": false,
- "auto_advance": false,
- "automatic_tax": {
- "disabled_reason": null,
- "enabled": false,
- "liability": null,
- "provider": null,
- "status": null
- },
- "automatically_finalizes_at": null,
- "billing_reason": "manual",
- "collection_method": "send_invoice",
+ "amount_requested": 984000,
"created": 1000000000,
"currency": "usd",
- "custom_fields": null,
- "customer": "cus_NORMALIZED",
- "customer_address": null,
- "customer_email": "[email protected]",
- "customer_name": null,
- "customer_phone": null,
- "customer_shipping": null,
- "customer_tax_exempt": "none",
- "customer_tax_ids": [],
- "default_payment_method": null,
- "default_source": null,
- "default_tax_rates": [],
- "description": null,
- "discounts": [],
- "due_date": 1000000000,
- "effective_at": 1000000000,
- "ending_balance": 0,
- "footer": null,
- "from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
- "id": "upgrade_to_fixed_price_plus_plan--Event.list.2.json",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
- "issuer": {
- "type": "self"
- },
- "last_finalization_error": null,
- "latest_revision": null,
- "lines": {
- "data": [
- {
- "amount": 984000,
- "currency": "usd",
- "description": "Zulip Cloud Standard",
- "discount_amounts": [],
- "discountable": false,
- "discounts": [],
- "id": "upgrade_to_fixed_price_plus_plan--Event.list.2.json",
- "invoice": "upgrade_to_fixed_price_plus_plan--Event.list.2.json",
- "livemode": false,
- "metadata": {},
- "object": "line_item",
- "parent": {
- "invoice_item_details": {
- "invoice_item": "ii_NORMALIZED",
- "proration": false,
- "proration_details": {
- "credited_items": null
- },
- "subscription": null
- },
- "subscription_item_details": null,
- "type": "invoice_item_details"
- },
- "period": {
- "end": 1357095845,
- "start": 1325473445
- },
- "pretax_credit_amounts": [],
- "pricing": {
- "price_details": {
- "price": "price_NORMALIZED",
- "product": "prod_NORMALIZED"
- },
- "type": "price_details",
- "unit_amount_decimal": "8000"
- },
- "quantity": 123,
- "taxes": []
- }
- ],
- "has_more": false,
- "object": "list",
- "total_count": 1,
- "url": "/v1/invoices/upgrade_to_fixed_price_plus_plan--Event.list.2.json/lines"
- },
+ "id": "upgrade_to_fixed_price_plus_plan--Event.list.3.json",
+ "invoice": "in_NORMALIZED",
+ "is_default": false,
"livemode": false,
- "metadata": {
- "billing_schedule": "1",
- "current_plan_id": "None",
- "license_management": "manual",
- "licenses": "123",
- "on_free_trial": "False",
- "plan_tier": "1",
- "user_id": "10"
+ "object": "invoice_payment",
+ "payment": {
+ "payment_record": "pr_test_NORMALIZEDrzOgHga41RVfKEFJaqc05I",
+ "type": "payment_record"
},
- "next_payment_attempt": null,
- "number": "NORMALIZED",
- "object": "invoice",
- "on_behalf_of": null,
- "parent": null,
- "payment_settings": {
- "default_mandate": null,
- "payment_method_options": null,
- "payment_method_types": null
- },
- "period_end": 1000000000,
- "period_start": 1000000000,
- "post_payment_credit_notes_amount": 0,
- "pre_payment_credit_notes_amount": 0,
- "receipt_number": null,
- "rendering": {
- "amount_tax_display": null,
- "pdf": {
- "page_size": "letter"
- },
- "template": null,
- "template_version": null
- },
- "shipping_cost": null,
- "shipping_details": null,
- "starting_balance": 0,
- "statement_descriptor": "Zulip Cloud Standard",
"status": "paid",
"status_transitions": {
- "finalized_at": 1000000000,
- "marked_uncollectible_at": null,
- "paid_at": 1000000000,
- "voided_at": null
- },
- "subtotal": 984000,
- "subtotal_excluding_tax": 984000,
- "test_clock": null,
- "total": 984000,
- "total_discount_amounts": [],
- "total_excluding_tax": 984000,
- "total_pretax_credit_amounts": [],
- "total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "canceled_at": null,
+ "paid_at": 1000000000
+ }
}
},
"id": "upgrade_to_fixed_price_plus_plan--Event.list.3.json",
@@ -167,174 +33,72 @@
"id": "upgrade_to_fixed_price_plus_plan--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "invoice.paid"
+ "type": "invoice_payment.paid"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
- "account_country": "US",
- "account_name": "NORMALIZED",
- "account_tax_ids": null,
- "amount_due": 984000,
- "amount_overpaid": 0,
- "amount_paid": 984000,
- "amount_remaining": 0,
- "amount_shipping": 0,
- "application": null,
- "attempt_count": 0,
- "attempted": false,
- "auto_advance": false,
- "automatic_tax": {
- "disabled_reason": null,
- "enabled": false,
- "liability": null,
- "provider": null,
- "status": null
+ "amount": 984000,
+ "amount_capturable": 0,
+ "amount_details": {
+ "tip": {}
},
- "automatically_finalizes_at": null,
- "billing_reason": "manual",
- "collection_method": "send_invoice",
+ "amount_received": 0,
+ "application": null,
+ "application_fee_amount": null,
+ "automatic_payment_methods": null,
+ "canceled_at": 1000000000,
+ "cancellation_reason": "requested_by_customer",
+ "capture_method": "automatic",
+ "client_secret": "NORMALIZED",
+ "confirmation_method": "automatic",
"created": 1000000000,
"currency": "usd",
- "custom_fields": null,
"customer": "cus_NORMALIZED",
- "customer_address": null,
- "customer_email": "[email protected]",
- "customer_name": null,
- "customer_phone": null,
- "customer_shipping": null,
- "customer_tax_exempt": "none",
- "customer_tax_ids": [],
- "default_payment_method": null,
- "default_source": null,
- "default_tax_rates": [],
- "description": null,
- "discounts": [],
- "due_date": 1000000000,
- "effective_at": 1000000000,
- "ending_balance": 0,
- "footer": null,
- "from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
+ "description": "Payment for Invoice",
+ "excluded_payment_method_types": null,
"id": "upgrade_to_fixed_price_plus_plan--Event.list.2.json",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
- "issuer": {
- "type": "self"
- },
- "last_finalization_error": null,
- "latest_revision": null,
- "lines": {
- "data": [
- {
- "amount": 984000,
- "currency": "usd",
- "description": "Zulip Cloud Standard",
- "discount_amounts": [],
- "discountable": false,
- "discounts": [],
- "id": "upgrade_to_fixed_price_plus_plan--Event.list.2.json",
- "invoice": "upgrade_to_fixed_price_plus_plan--Event.list.2.json",
- "livemode": false,
- "metadata": {},
- "object": "line_item",
- "parent": {
- "invoice_item_details": {
- "invoice_item": "ii_NORMALIZED",
- "proration": false,
- "proration_details": {
- "credited_items": null
- },
- "subscription": null
- },
- "subscription_item_details": null,
- "type": "invoice_item_details"
- },
- "period": {
- "end": 1357095845,
- "start": 1325473445
- },
- "pretax_credit_amounts": [],
- "pricing": {
- "price_details": {
- "price": "price_NORMALIZED",
- "product": "prod_NORMALIZED"
- },
- "type": "price_details",
- "unit_amount_decimal": "8000"
- },
- "quantity": 123,
- "taxes": []
- }
- ],
- "has_more": false,
- "object": "list",
- "total_count": 1,
- "url": "/v1/invoices/upgrade_to_fixed_price_plus_plan--Event.list.2.json/lines"
- },
+ "last_payment_error": null,
+ "latest_charge": null,
"livemode": false,
- "metadata": {
- "billing_schedule": "1",
- "current_plan_id": "None",
- "license_management": "manual",
- "licenses": "123",
- "on_free_trial": "False",
- "plan_tier": "1",
- "user_id": "10"
- },
- "next_payment_attempt": null,
- "number": "NORMALIZED",
- "object": "invoice",
+ "metadata": {},
+ "next_action": null,
+ "object": "payment_intent",
"on_behalf_of": null,
- "parent": null,
- "payment_settings": {
- "default_mandate": null,
- "payment_method_options": null,
- "payment_method_types": null
+ "payment_details": {
+ "customer_reference": null,
+ "order_reference": "in_1SPOxyRVfKEFJaqceIJpVE"
},
- "period_end": 1000000000,
- "period_start": 1000000000,
- "post_payment_credit_notes_amount": 0,
- "pre_payment_credit_notes_amount": 0,
- "receipt_number": null,
- "rendering": {
- "amount_tax_display": null,
- "pdf": {
- "page_size": "letter"
+ "payment_method": null,
+ "payment_method_configuration_details": null,
+ "payment_method_options": {
+ "card": {
+ "installments": null,
+ "mandate_options": null,
+ "network": null,
+ "request_three_d_secure": "automatic"
},
- "template": null,
- "template_version": null
+ "link": {
+ "persistent_token": null
+ }
},
- "shipping_cost": null,
- "shipping_details": null,
- "starting_balance": 0,
+ "payment_method_types": [
+ "card",
+ "link"
+ ],
+ "processing": null,
+ "receipt_email": "[email protected]",
+ "review": null,
+ "setup_future_usage": null,
+ "shipping": null,
+ "source": null,
"statement_descriptor": "Zulip Cloud Standard",
- "status": "paid",
- "status_transitions": {
- "finalized_at": 1000000000,
- "marked_uncollectible_at": null,
- "paid_at": 1000000000,
- "voided_at": null
- },
- "subtotal": 984000,
- "subtotal_excluding_tax": 984000,
- "test_clock": null,
- "total": 984000,
- "total_discount_amounts": [],
- "total_excluding_tax": 984000,
- "total_pretax_credit_amounts": [],
- "total_taxes": [],
- "webhooks_delivered_at": 1000000000
- },
- "previous_attributes": {
- "amount_paid": 0,
- "amount_remaining": 984000,
- "auto_advance": true,
- "status": "open",
- "status_transitions": {
- "paid_at": null
- }
+ "statement_descriptor_suffix": null,
+ "status": "canceled",
+ "transfer_data": null,
+ "transfer_group": null
}
},
"id": "upgrade_to_fixed_price_plus_plan--Event.list.3.json",
@@ -345,7 +109,7 @@
"id": "upgrade_to_fixed_price_plus_plan--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "invoice.updated"
+ "type": "payment_intent.canceled"
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/upgrade_to_fixed_price_plus_plan--Invoice.finalize_invoice.2.json b/corporate/tests/stripe_fixtures/upgrade_to_fixed_price_plus_plan--Invoice.finalize_invoice.2.json
index a912eccdc5a..bfd25f964c3 100644
--- a/corporate/tests/stripe_fixtures/upgrade_to_fixed_price_plus_plan--Invoice.finalize_invoice.2.json
+++ b/corporate/tests/stripe_fixtures/upgrade_to_fixed_price_plus_plan--Invoice.finalize_invoice.2.json
@@ -142,5 +142,5 @@
"total_excluding_tax": 36000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.create.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.create.1.json
index 1ad2d57b8a4..fc4a7266a2a 100644
--- a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.create.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.create.1.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "upgrade_user_to_basic_plan_free_trial--Customer.create.1.json",
@@ -19,7 +19,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.modify.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.modify.1.json
index 4efee36be92..85929c8e48c 100644
--- a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.modify.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.modify.1.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "upgrade_user_to_basic_plan_free_trial--Customer.create.1.json",
@@ -19,7 +19,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.1.json
index ce78f48418a..447bfbbcabb 100644
--- a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.1.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "upgrade_user_to_basic_plan_free_trial--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.2.json
index ce78f48418a..447bfbbcabb 100644
--- a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.2.json
+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.2.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "upgrade_user_to_basic_plan_free_trial--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.3.json
index ce78f48418a..447bfbbcabb 100644
--- a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.3.json
+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.3.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "upgrade_user_to_basic_plan_free_trial--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.4.json
index ce78f48418a..447bfbbcabb 100644
--- a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.4.json
+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.4.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "upgrade_user_to_basic_plan_free_trial--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.5.json
index ce78f48418a..447bfbbcabb 100644
--- a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.5.json
+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.5.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "upgrade_user_to_basic_plan_free_trial--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.6.json b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.6.json
index ce78f48418a..447bfbbcabb 100644
--- a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.6.json
+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.6.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "upgrade_user_to_basic_plan_free_trial--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.7.json b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.7.json
index ce78f48418a..447bfbbcabb 100644
--- a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.7.json
+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.7.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "upgrade_user_to_basic_plan_free_trial--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Event.list.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Event.list.1.json
index 1c758b8b3e9..3a0ea6b6183 100644
--- a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Event.list.1.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -11,7 +11,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "upgrade_user_to_basic_plan_free_trial--Customer.create.1.json",
@@ -25,7 +25,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--SetupIntent.create.1.json
index 89b470a57e9..46f09e07f86 100644
--- a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--SetupIntent.create.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "upgrade_user_to_basic_plan_free_trial--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--SetupIntent.list.1.json
index ae0d39d13f5..9a7511e1361 100644
--- a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--SetupIntent.list.1.json
@@ -8,6 +8,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "upgrade_user_to_basic_plan_free_trial--SetupIntent.list.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--SetupIntent.retrieve.1.json
index 89b470a57e9..46f09e07f86 100644
--- a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--SetupIntent.retrieve.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "upgrade_user_to_basic_plan_free_trial--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--checkout.Session.create.1.json
index 0942d272125..fccbdb899cc 100644
--- a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--checkout.Session.create.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--checkout.Session.create.1.json
@@ -28,7 +28,7 @@
"type": "file"
}
},
- "cancel_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/upgrade/?manual_license_management=false&tier=1",
+ "cancel_url": "http://selfhosting.testserver/realm/9c36daef-29ed-478d-a237-26a7dec0f4ee/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"collected_information": {
@@ -101,7 +101,7 @@
"status": "open",
"submit_type": null,
"subscription": null,
- "success_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
+ "success_url": "http://selfhosting.testserver/realm/9c36daef-29ed-478d-a237-26a7dec0f4ee/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
"url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED",
diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--checkout.Session.list.1.json
index 55cd3fe437e..f956d38a8a3 100644
--- a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--checkout.Session.list.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--checkout.Session.list.1.json
@@ -30,7 +30,7 @@
"type": "file"
}
},
- "cancel_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/upgrade/?manual_license_management=false&tier=1",
+ "cancel_url": "http://selfhosting.testserver/realm/9c36daef-29ed-478d-a237-26a7dec0f4ee/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"collected_information": {
@@ -103,7 +103,7 @@
"status": "open",
"submit_type": null,
"subscription": null,
- "success_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
+ "success_url": "http://selfhosting.testserver/realm/9c36daef-29ed-478d-a237-26a7dec0f4ee/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
"url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED",
diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial_remote_server--Event.list.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial_remote_server--Event.list.1.json
index 610db6e4870..68cfe4f1a2b 100644
--- a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial_remote_server--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial_remote_server--Event.list.1.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial_remote_server--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial_remote_server--SetupIntent.create.1.json
index dc59ebe9083..ef2db2fb967 100644
--- a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial_remote_server--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial_remote_server--SetupIntent.create.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "upgrade_user_to_basic_plan_free_trial_remote_server--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial_remote_server--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial_remote_server--SetupIntent.list.1.json
index 24c9069ebb5..0aaf3d71a6d 100644
--- a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial_remote_server--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial_remote_server--SetupIntent.list.1.json
@@ -8,6 +8,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "upgrade_user_to_basic_plan_free_trial_remote_server--SetupIntent.list.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial_remote_server--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial_remote_server--SetupIntent.retrieve.1.json
index dc59ebe9083..ef2db2fb967 100644
--- a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial_remote_server--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial_remote_server--SetupIntent.retrieve.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "upgrade_user_to_basic_plan_free_trial_remote_server--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.create.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.create.1.json
index 3ed6676b504..27155f6206b 100644
--- a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.create.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.create.1.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "upgrade_user_to_business_plan--Customer.create.1.json",
@@ -19,7 +19,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.modify.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.modify.1.json
index 59fbb497d0a..a899ed6e731 100644
--- a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.modify.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.modify.1.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "upgrade_user_to_business_plan--Customer.create.1.json",
@@ -19,7 +19,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.1.json
index ff6332a1dce..b0d8dbb00dc 100644
--- a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.1.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "upgrade_user_to_business_plan--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.2.json
index ff6332a1dce..b0d8dbb00dc 100644
--- a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.2.json
+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.2.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "upgrade_user_to_business_plan--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.3.json
index ff6332a1dce..b0d8dbb00dc 100644
--- a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.3.json
+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.3.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "upgrade_user_to_business_plan--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.4.json
index ff6332a1dce..b0d8dbb00dc 100644
--- a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.4.json
+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.4.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "upgrade_user_to_business_plan--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.5.json
index ff6332a1dce..b0d8dbb00dc 100644
--- a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.5.json
+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.5.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "upgrade_user_to_business_plan--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.6.json b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.6.json
index c4013aff9ea..b90057b7fc3 100644
--- a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.6.json
+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.6.json
@@ -5,7 +5,7 @@
"currency": "usd",
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "upgrade_user_to_business_plan--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 2,
diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.7.json b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.7.json
index c4013aff9ea..b90057b7fc3 100644
--- a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.7.json
+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.7.json
@@ -5,7 +5,7 @@
"currency": "usd",
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "upgrade_user_to_business_plan--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 2,
diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Event.list.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Event.list.1.json
index 0443a808978..df9e10d0b95 100644
--- a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Event.list.1.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -11,7 +11,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "upgrade_user_to_business_plan--Customer.create.1.json",
@@ -25,7 +25,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Event.list.2.json b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Event.list.2.json
index 7ab8bc7de61..1735162df15 100644
--- a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Event.list.2.json
+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Event.list.2.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -62,7 +62,7 @@
"payment_method_details": {
"card": {
"amount_authorized": 176000,
- "authorization_code": "997175",
+ "authorization_code": "528165",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
@@ -120,7 +120,7 @@
"id": "upgrade_user_to_business_plan--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
"id": "upgrade_user_to_business_plan--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -128,7 +128,7 @@
"type": "charge.succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -336,7 +336,7 @@
"type": "invoice.finalized"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -560,7 +560,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -632,7 +632,7 @@
"type": "payment_intent.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -893,7 +893,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -940,7 +940,7 @@
"type": "invoiceitem.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1094,7 +1094,7 @@
"total_excluding_tax": 200000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
},
"previous_attributes": {
"amount_due": 0,
@@ -1120,7 +1120,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1167,7 +1167,7 @@
"type": "invoiceitem.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1294,7 +1294,7 @@
"type": "invoice.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1304,7 +1304,7 @@
"currency": "usd",
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "upgrade_user_to_business_plan--Customer.create.1.json",
@@ -1318,7 +1318,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Event.list.3.json b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Event.list.3.json
index db1c3db39d4..e51abd08684 100644
--- a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Event.list.3.json
+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Event.list.3.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -201,7 +201,7 @@
"id": "upgrade_user_to_business_plan--Event.list.3.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
"id": "upgrade_user_to_business_plan--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -209,7 +209,7 @@
"type": "invoice.payment_succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -409,7 +409,7 @@
"id": "upgrade_user_to_business_plan--Event.list.3.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 1,
"request": {
"id": "upgrade_user_to_business_plan--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -417,7 +417,7 @@
"type": "invoice.paid"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -635,7 +635,42 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount_paid": null,
+ "amount_requested": 176000,
+ "created": 1000000000,
+ "currency": "usd",
+ "id": "upgrade_user_to_business_plan--Event.list.3.json",
+ "invoice": "upgrade_user_to_business_plan--Event.list.2.json",
+ "is_default": true,
+ "livemode": false,
+ "object": "invoice_payment",
+ "payment": {
+ "payment_intent": "upgrade_user_to_business_plan--Event.list.2.json",
+ "type": "payment_intent"
+ },
+ "status": "open",
+ "status_transitions": {
+ "canceled_at": null,
+ "paid_at": null
+ }
+ }
+ },
+ "id": "upgrade_user_to_business_plan--Event.list.3.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "upgrade_user_to_business_plan--Event.list.2.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ },
+ "type": "invoice_payment.paid"
+ },
+ {
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -666,6 +701,10 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
+ "payment_details": {
+ "customer_reference": null,
+ "order_reference": "in_1SPPAJRVfKEFJaqcLAQFIN"
+ },
"payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
"payment_method_options": {
diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--SetupIntent.create.1.json
index b8521d3e45b..06b4e991f54 100644
--- a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--SetupIntent.create.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "upgrade_user_to_business_plan--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--SetupIntent.list.1.json
index d5973b617a5..12d9c90d470 100644
--- a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--SetupIntent.list.1.json
@@ -8,6 +8,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "upgrade_user_to_business_plan--SetupIntent.list.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--SetupIntent.retrieve.1.json
index b8521d3e45b..06b4e991f54 100644
--- a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--SetupIntent.retrieve.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "upgrade_user_to_business_plan--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--checkout.Session.create.1.json
index f11ed6fa385..688ebd61ef1 100644
--- a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--checkout.Session.create.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--checkout.Session.create.1.json
@@ -28,7 +28,7 @@
"type": "file"
}
},
- "cancel_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/upgrade/?manual_license_management=false&tier=1",
+ "cancel_url": "http://selfhosting.testserver/realm/9c36daef-29ed-478d-a237-26a7dec0f4ee/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"collected_information": {
@@ -101,7 +101,7 @@
"status": "open",
"submit_type": null,
"subscription": null,
- "success_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
+ "success_url": "http://selfhosting.testserver/realm/9c36daef-29ed-478d-a237-26a7dec0f4ee/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
"url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED",
diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--checkout.Session.list.1.json
index c33339353e6..f7d1ebef7f6 100644
--- a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--checkout.Session.list.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--checkout.Session.list.1.json
@@ -30,7 +30,7 @@
"type": "file"
}
},
- "cancel_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/upgrade/?manual_license_management=false&tier=1",
+ "cancel_url": "http://selfhosting.testserver/realm/9c36daef-29ed-478d-a237-26a7dec0f4ee/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"collected_information": {
@@ -103,7 +103,7 @@
"status": "open",
"submit_type": null,
"subscription": null,
- "success_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
+ "success_url": "http://selfhosting.testserver/realm/9c36daef-29ed-478d-a237-26a7dec0f4ee/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
"url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED",
diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.create.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.create.1.json
index 36219b6ef05..9e8a3d258a9 100644
--- a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.create.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.create.1.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "upgrade_user_to_fixed_price_monthly_basic_plan--Customer.create.1.json",
@@ -19,7 +19,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.modify.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.modify.1.json
index 807f8b9697e..ad63c9fc216 100644
--- a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.modify.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.modify.1.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "upgrade_user_to_fixed_price_monthly_basic_plan--Customer.create.1.json",
@@ -19,7 +19,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.retrieve.1.json
index eba576bef98..5660ea8a9b1 100644
--- a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.retrieve.1.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "upgrade_user_to_fixed_price_monthly_basic_plan--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.retrieve.2.json
index eba576bef98..5660ea8a9b1 100644
--- a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.retrieve.2.json
+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.retrieve.2.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "upgrade_user_to_fixed_price_monthly_basic_plan--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.retrieve.3.json
index eba576bef98..5660ea8a9b1 100644
--- a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.retrieve.3.json
+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.retrieve.3.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "upgrade_user_to_fixed_price_monthly_basic_plan--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.retrieve.4.json
index eba576bef98..5660ea8a9b1 100644
--- a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.retrieve.4.json
+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.retrieve.4.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "upgrade_user_to_fixed_price_monthly_basic_plan--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.retrieve.5.json
index eba576bef98..5660ea8a9b1 100644
--- a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.retrieve.5.json
+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.retrieve.5.json
@@ -5,7 +5,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "upgrade_user_to_fixed_price_monthly_basic_plan--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.retrieve.6.json b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.retrieve.6.json
index 9ebaa5d8b6a..b7a6e237b97 100644
--- a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.retrieve.6.json
+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.retrieve.6.json
@@ -5,7 +5,7 @@
"currency": "usd",
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "upgrade_user_to_fixed_price_monthly_basic_plan--Customer.create.1.json",
@@ -69,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 2,
diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.1.json
index ce919765ccd..ca70b29fc78 100644
--- a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.1.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -11,7 +11,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "upgrade_user_to_fixed_price_monthly_basic_plan--Customer.create.1.json",
@@ -25,7 +25,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.2.json b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.2.json
index def7d8c3586..c9d52b56f00 100644
--- a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.2.json
+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.2.json
@@ -1,169 +1,26 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
- "account_country": "US",
- "account_name": "NORMALIZED",
- "account_tax_ids": null,
- "amount_due": 10000,
- "amount_overpaid": 0,
- "amount_paid": 10000,
- "amount_remaining": 0,
- "amount_shipping": 0,
- "application": null,
- "attempt_count": 1,
- "attempted": true,
- "auto_advance": false,
- "automatic_tax": {
- "disabled_reason": null,
- "enabled": false,
- "liability": null,
- "provider": null,
- "status": null
- },
- "automatically_finalizes_at": null,
- "billing_reason": "manual",
- "collection_method": "charge_automatically",
+ "amount_paid": null,
+ "amount_requested": 10000,
"created": 1000000000,
"currency": "usd",
- "custom_fields": null,
- "customer": "upgrade_user_to_fixed_price_monthly_basic_plan--Customer.create.1.json",
- "customer_address": null,
- "customer_email": "[email protected]",
- "customer_name": null,
- "customer_phone": null,
- "customer_shipping": null,
- "customer_tax_exempt": "none",
- "customer_tax_ids": [],
- "default_payment_method": null,
- "default_source": null,
- "default_tax_rates": [],
- "description": null,
- "discounts": [],
- "due_date": null,
- "effective_at": 1000000000,
- "ending_balance": 0,
- "footer": null,
- "from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
"id": "upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.2.json",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
- "issuer": {
- "type": "self"
- },
- "last_finalization_error": null,
- "latest_revision": null,
- "lines": {
- "data": [
- {
- "amount": 10000,
- "currency": "usd",
- "description": "Zulip Basic",
- "discount_amounts": [],
- "discountable": false,
- "discounts": [],
- "id": "upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.2.json",
- "invoice": "upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.2.json",
- "livemode": false,
- "metadata": {},
- "object": "line_item",
- "parent": {
- "invoice_item_details": {
- "invoice_item": "upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.2.json",
- "proration": false,
- "proration_details": {
- "credited_items": null
- },
- "subscription": null
- },
- "subscription_item_details": null,
- "type": "invoice_item_details"
- },
- "period": {
- "end": 1357095845,
- "start": 1325473445
- },
- "pretax_credit_amounts": [],
- "pricing": {
- "price_details": {
- "price": "price_NORMALIZED",
- "product": "prod_NORMALIZED"
- },
- "type": "price_details",
- "unit_amount_decimal": "10000"
- },
- "quantity": 1,
- "taxes": []
- }
- ],
- "has_more": false,
- "object": "list",
- "total_count": 1,
- "url": "/v1/invoices/upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.2.json/lines"
- },
+ "invoice": "upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.2.json",
+ "is_default": true,
"livemode": false,
- "metadata": {
- "billing_schedule": "2",
- "current_plan_id": "None",
- "license_management": "automatic",
- "licenses": "11",
- "on_free_trial": "False",
- "plan_tier": "103"
+ "object": "invoice_payment",
+ "payment": {
+ "payment_intent": "upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.2.json",
+ "type": "payment_intent"
},
- "next_payment_attempt": null,
- "number": "NORMALIZED",
- "object": "invoice",
- "on_behalf_of": null,
- "parent": null,
- "payment_settings": {
- "default_mandate": null,
- "payment_method_options": null,
- "payment_method_types": null
- },
- "period_end": 1000000000,
- "period_start": 1000000000,
- "post_payment_credit_notes_amount": 0,
- "pre_payment_credit_notes_amount": 0,
- "receipt_number": null,
- "rendering": {
- "amount_tax_display": null,
- "pdf": {
- "page_size": "letter"
- },
- "template": null,
- "template_version": null
- },
- "shipping_cost": null,
- "shipping_details": null,
- "starting_balance": 0,
- "statement_descriptor": "Zulip Basic",
- "status": "paid",
- "status_transitions": {
- "finalized_at": 1000000000,
- "marked_uncollectible_at": null,
- "paid_at": 1000000000,
- "voided_at": null
- },
- "subtotal": 10000,
- "subtotal_excluding_tax": 10000,
- "test_clock": null,
- "total": 10000,
- "total_discount_amounts": [],
- "total_excluding_tax": 10000,
- "total_pretax_credit_amounts": [],
- "total_taxes": [],
- "webhooks_delivered_at": 1000000000
- },
- "previous_attributes": {
- "amount_paid": 0,
- "amount_remaining": 10000,
- "attempt_count": 0,
- "attempted": false,
"status": "open",
"status_transitions": {
+ "canceled_at": null,
"paid_at": null
}
}
@@ -171,15 +28,15 @@
"id": "upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 2,
+ "pending_webhooks": 0,
"request": {
"id": "upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "invoice.updated"
+ "type": "invoice_payment.paid"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -210,6 +67,10 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
+ "payment_details": {
+ "customer_reference": null,
+ "order_reference": "in_1SPPAZRVfKEFJaqcze0djS"
+ },
"payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
"payment_method_options": {
@@ -243,7 +104,7 @@
"id": "upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
"id": "upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -251,7 +112,7 @@
"type": "payment_intent.succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -312,7 +173,7 @@
"payment_method_details": {
"card": {
"amount_authorized": 10000,
- "authorization_code": "832068",
+ "authorization_code": "068071",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
@@ -378,7 +239,7 @@
"type": "charge.succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -532,7 +393,7 @@
"total_excluding_tax": 10000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
},
"id": "upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.2.json",
@@ -546,7 +407,7 @@
"type": "invoice.finalized"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -700,7 +561,7 @@
"total_excluding_tax": 10000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
},
"previous_attributes": {
"effective_at": null,
@@ -730,7 +591,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -802,7 +663,7 @@
"type": "payment_intent.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -982,7 +843,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1029,7 +890,7 @@
"type": "invoiceitem.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1156,7 +1017,7 @@
"type": "invoice.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1166,7 +1027,7 @@
"currency": "usd",
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 1b9e1a25-900",
+ "description": "zulip.testserver 9c36daef-29e",
"discount": null,
"email": "[email protected]",
"id": "upgrade_user_to_fixed_price_monthly_basic_plan--Customer.create.1.json",
@@ -1180,7 +1041,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68"
+ "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.3.json b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.3.json
index 50efeb39ebf..b96a5063179 100644
--- a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.3.json
+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.3.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -155,7 +155,7 @@
"total_excluding_tax": 10000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
},
"id": "upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.3.json",
@@ -169,7 +169,7 @@
"type": "invoice.payment_succeeded"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -323,7 +323,7 @@
"total_excluding_tax": 10000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
},
"id": "upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.3.json",
@@ -335,6 +335,184 @@
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "invoice.paid"
+ },
+ {
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "account_country": "US",
+ "account_name": "NORMALIZED",
+ "account_tax_ids": null,
+ "amount_due": 10000,
+ "amount_overpaid": 0,
+ "amount_paid": 10000,
+ "amount_remaining": 0,
+ "amount_shipping": 0,
+ "application": null,
+ "attempt_count": 1,
+ "attempted": true,
+ "auto_advance": false,
+ "automatic_tax": {
+ "disabled_reason": null,
+ "enabled": false,
+ "liability": null,
+ "provider": null,
+ "status": null
+ },
+ "automatically_finalizes_at": null,
+ "billing_reason": "manual",
+ "collection_method": "charge_automatically",
+ "created": 1000000000,
+ "currency": "usd",
+ "custom_fields": null,
+ "customer": "cus_NORMALIZED",
+ "customer_address": null,
+ "customer_email": "[email protected]",
+ "customer_name": null,
+ "customer_phone": null,
+ "customer_shipping": null,
+ "customer_tax_exempt": "none",
+ "customer_tax_ids": [],
+ "default_payment_method": null,
+ "default_source": null,
+ "default_tax_rates": [],
+ "description": null,
+ "discounts": [],
+ "due_date": null,
+ "effective_at": 1000000000,
+ "ending_balance": 0,
+ "footer": null,
+ "from_invoice": null,
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
+ "id": "upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.2.json",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
+ "issuer": {
+ "type": "self"
+ },
+ "last_finalization_error": null,
+ "latest_revision": null,
+ "lines": {
+ "data": [
+ {
+ "amount": 10000,
+ "currency": "usd",
+ "description": "Zulip Basic",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.2.json",
+ "invoice": "upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.2.json",
+ "livemode": false,
+ "metadata": {},
+ "object": "line_item",
+ "parent": {
+ "invoice_item_details": {
+ "invoice_item": "ii_NORMALIZED",
+ "proration": false,
+ "proration_details": {
+ "credited_items": null
+ },
+ "subscription": null
+ },
+ "subscription_item_details": null,
+ "type": "invoice_item_details"
+ },
+ "period": {
+ "end": 1357095845,
+ "start": 1325473445
+ },
+ "pretax_credit_amounts": [],
+ "pricing": {
+ "price_details": {
+ "price": "price_NORMALIZED",
+ "product": "prod_NORMALIZED"
+ },
+ "type": "price_details",
+ "unit_amount_decimal": "10000"
+ },
+ "quantity": 1,
+ "taxes": []
+ }
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 1,
+ "url": "/v1/invoices/upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.2.json/lines"
+ },
+ "livemode": false,
+ "metadata": {
+ "billing_schedule": "2",
+ "current_plan_id": "None",
+ "license_management": "automatic",
+ "licenses": "11",
+ "on_free_trial": "False",
+ "plan_tier": "103"
+ },
+ "next_payment_attempt": null,
+ "number": "NORMALIZED",
+ "object": "invoice",
+ "on_behalf_of": null,
+ "parent": null,
+ "payment_settings": {
+ "default_mandate": null,
+ "payment_method_options": null,
+ "payment_method_types": null
+ },
+ "period_end": 1000000000,
+ "period_start": 1000000000,
+ "post_payment_credit_notes_amount": 0,
+ "pre_payment_credit_notes_amount": 0,
+ "receipt_number": null,
+ "rendering": {
+ "amount_tax_display": null,
+ "pdf": {
+ "page_size": "letter"
+ },
+ "template": null,
+ "template_version": null
+ },
+ "shipping_cost": null,
+ "shipping_details": null,
+ "starting_balance": 0,
+ "statement_descriptor": "Zulip Basic",
+ "status": "paid",
+ "status_transitions": {
+ "finalized_at": 1000000000,
+ "marked_uncollectible_at": null,
+ "paid_at": 1000000000,
+ "voided_at": null
+ },
+ "subtotal": 10000,
+ "subtotal_excluding_tax": 10000,
+ "test_clock": null,
+ "total": 10000,
+ "total_discount_amounts": [],
+ "total_excluding_tax": 10000,
+ "total_pretax_credit_amounts": [],
+ "total_taxes": [],
+ "webhooks_delivered_at": null
+ },
+ "previous_attributes": {
+ "amount_paid": 0,
+ "amount_remaining": 10000,
+ "attempt_count": 0,
+ "attempted": false,
+ "status": "open",
+ "status_transitions": {
+ "paid_at": null
+ }
+ }
+ },
+ "id": "upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.3.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.2.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ },
+ "type": "invoice.updated"
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Invoice.finalize_invoice.1.json
index 713c223ef24..23a76592da8 100644
--- a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Invoice.finalize_invoice.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Invoice.finalize_invoice.1.json
@@ -149,5 +149,5 @@
"total_excluding_tax": 10000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Invoice.pay.1.json
index 020577d294b..178a0ee8d3f 100644
--- a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Invoice.pay.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Invoice.pay.1.json
@@ -149,5 +149,5 @@
"total_excluding_tax": 10000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--SetupIntent.create.1.json
index dc35ff7f7ef..44c4ca8906f 100644
--- a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--SetupIntent.create.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "upgrade_user_to_fixed_price_monthly_basic_plan--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--SetupIntent.list.1.json
index bab343f4a2f..d0a85e431f1 100644
--- a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--SetupIntent.list.1.json
@@ -8,6 +8,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "upgrade_user_to_fixed_price_monthly_basic_plan--SetupIntent.list.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--SetupIntent.retrieve.1.json
index dc35ff7f7ef..44c4ca8906f 100644
--- a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--SetupIntent.retrieve.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "upgrade_user_to_fixed_price_monthly_basic_plan--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--checkout.Session.create.1.json
index 95943ca6877..f8e650f4959 100644
--- a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--checkout.Session.create.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--checkout.Session.create.1.json
@@ -28,7 +28,7 @@
"type": "file"
}
},
- "cancel_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/upgrade/?manual_license_management=false&tier=1",
+ "cancel_url": "http://selfhosting.testserver/realm/9c36daef-29ed-478d-a237-26a7dec0f4ee/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"collected_information": {
@@ -101,7 +101,7 @@
"status": "open",
"submit_type": null,
"subscription": null,
- "success_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
+ "success_url": "http://selfhosting.testserver/realm/9c36daef-29ed-478d-a237-26a7dec0f4ee/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
"url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED",
diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--checkout.Session.list.1.json
index b1582de0e4d..cabee8c9f47 100644
--- a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--checkout.Session.list.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--checkout.Session.list.1.json
@@ -30,7 +30,7 @@
"type": "file"
}
},
- "cancel_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/upgrade/?manual_license_management=false&tier=1",
+ "cancel_url": "http://selfhosting.testserver/realm/9c36daef-29ed-478d-a237-26a7dec0f4ee/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"collected_information": {
@@ -103,7 +103,7 @@
"status": "open",
"submit_type": null,
"subscription": null,
- "success_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
+ "success_url": "http://selfhosting.testserver/realm/9c36daef-29ed-478d-a237-26a7dec0f4ee/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
"url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED",
diff --git a/corporate/tests/stripe_fixtures/upgrade_with_uncaught_exception--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/upgrade_with_uncaught_exception--SetupIntent.create.1.json
index 8aae2a14877..f729c5344ac 100644
--- a/corporate/tests/stripe_fixtures/upgrade_with_uncaught_exception--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_with_uncaught_exception--SetupIntent.create.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "upgrade_with_uncaught_exception--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/upgrade_with_uncaught_exception--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/upgrade_with_uncaught_exception--SetupIntent.list.1.json
index 205444f28c3..e05e5e42308 100644
--- a/corporate/tests/stripe_fixtures/upgrade_with_uncaught_exception--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_with_uncaught_exception--SetupIntent.list.1.json
@@ -8,6 +8,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "upgrade_with_uncaught_exception--SetupIntent.list.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/upgrade_with_uncaught_exception--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/upgrade_with_uncaught_exception--SetupIntent.retrieve.1.json
index 8aae2a14877..f729c5344ac 100644
--- a/corporate/tests/stripe_fixtures/upgrade_with_uncaught_exception--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_with_uncaught_exception--SetupIntent.retrieve.1.json
@@ -6,6 +6,7 @@
"created": 1000000000,
"customer": "cus_NORMALIZED",
"description": null,
+ "excluded_payment_method_types": null,
"flow_directions": null,
"id": "upgrade_with_uncaught_exception--SetupIntent.create.1.json",
"last_setup_error": null,
diff --git a/corporate/tests/stripe_fixtures/validate_licenses_for_manual_plan_management--Event.list.1.json b/corporate/tests/stripe_fixtures/validate_licenses_for_manual_plan_management--Event.list.1.json
index b4568d13337..14b0e3c8e9d 100644
--- a/corporate/tests/stripe_fixtures/validate_licenses_for_manual_plan_management--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/validate_licenses_for_manual_plan_management--Event.list.1.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -148,7 +148,7 @@
"total_excluding_tax": 36000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "validate_licenses_for_manual_plan_management--Event.list.1.json",
diff --git a/corporate/tests/stripe_fixtures/validate_licenses_for_manual_plan_management--Event.list.2.json b/corporate/tests/stripe_fixtures/validate_licenses_for_manual_plan_management--Event.list.2.json
index 9ec813435cd..8035e81f6f5 100644
--- a/corporate/tests/stripe_fixtures/validate_licenses_for_manual_plan_management--Event.list.2.json
+++ b/corporate/tests/stripe_fixtures/validate_licenses_for_manual_plan_management--Event.list.2.json
@@ -1,7 +1,7 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -157,101 +157,198 @@
"total_pretax_credit_amounts": [],
"total_taxes": [],
"webhooks_delivered_at": null
- },
- "previous_attributes": {
- "amount_paid": 0,
- "amount_remaining": 56000,
- "auto_advance": true,
- "status": "open",
- "status_transitions": {
- "paid_at": null
- }
}
},
"id": "validate_licenses_for_manual_plan_management--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 1,
+ "pending_webhooks": 2,
"request": {
"id": "validate_licenses_for_manual_plan_management--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "invoice.updated"
+ "type": "invoice.paid"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
- "amount": 56000,
- "amount_capturable": 0,
- "amount_details": {
- "tip": {}
- },
- "amount_received": 0,
+ "account_country": "US",
+ "account_name": "NORMALIZED",
+ "account_tax_ids": null,
+ "amount_due": 56000,
+ "amount_overpaid": 0,
+ "amount_paid": 56000,
+ "amount_remaining": 0,
+ "amount_shipping": 0,
"application": null,
- "application_fee_amount": null,
- "automatic_payment_methods": null,
- "canceled_at": 1000000000,
- "cancellation_reason": "requested_by_customer",
- "capture_method": "automatic",
- "client_secret": "NORMALIZED",
- "confirmation_method": "automatic",
+ "attempt_count": 0,
+ "attempted": false,
+ "auto_advance": false,
+ "automatic_tax": {
+ "disabled_reason": null,
+ "enabled": false,
+ "liability": null,
+ "provider": null,
+ "status": null
+ },
+ "automatically_finalizes_at": null,
+ "billing_reason": "manual",
+ "collection_method": "send_invoice",
"created": 1000000000,
"currency": "usd",
+ "custom_fields": null,
"customer": "validate_licenses_for_manual_plan_management--Customer.create.1.json",
- "description": "Payment for Invoice",
- "excluded_payment_method_types": null,
+ "customer_address": null,
+ "customer_email": "[email protected]",
+ "customer_name": null,
+ "customer_phone": null,
+ "customer_shipping": null,
+ "customer_tax_exempt": "none",
+ "customer_tax_ids": [],
+ "default_payment_method": null,
+ "default_source": null,
+ "default_tax_rates": [],
+ "description": null,
+ "discounts": [],
+ "due_date": 1000000000,
+ "effective_at": 1000000000,
+ "ending_balance": 0,
+ "footer": null,
+ "from_invoice": null,
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
"id": "validate_licenses_for_manual_plan_management--Event.list.2.json",
- "last_payment_error": null,
- "latest_charge": null,
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
+ "issuer": {
+ "type": "self"
+ },
+ "last_finalization_error": null,
+ "latest_revision": null,
+ "lines": {
+ "data": [
+ {
+ "amount": 56000,
+ "currency": "usd",
+ "description": "Zulip Cloud Standard",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "validate_licenses_for_manual_plan_management--Event.list.2.json",
+ "invoice": "validate_licenses_for_manual_plan_management--Event.list.2.json",
+ "livemode": false,
+ "metadata": {},
+ "object": "line_item",
+ "parent": {
+ "invoice_item_details": {
+ "invoice_item": "validate_licenses_for_manual_plan_management--Event.list.2.json",
+ "proration": false,
+ "proration_details": {
+ "credited_items": null
+ },
+ "subscription": null
+ },
+ "subscription_item_details": null,
+ "type": "invoice_item_details"
+ },
+ "period": {
+ "end": 1357095845,
+ "start": 1325473445
+ },
+ "pretax_credit_amounts": [],
+ "pricing": {
+ "price_details": {
+ "price": "price_NORMALIZED",
+ "product": "prod_NORMALIZED"
+ },
+ "type": "price_details",
+ "unit_amount_decimal": "8000"
+ },
+ "quantity": 7,
+ "taxes": []
+ }
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 1,
+ "url": "/v1/invoices/validate_licenses_for_manual_plan_management--Event.list.2.json/lines"
+ },
"livemode": false,
- "metadata": {},
- "next_action": null,
- "object": "payment_intent",
+ "metadata": {
+ "billing_schedule": "1",
+ "current_plan_id": "None",
+ "license_management": "manual",
+ "licenses": "7",
+ "on_free_trial": "False",
+ "plan_tier": "1",
+ "user_id": "10"
+ },
+ "next_payment_attempt": null,
+ "number": "NORMALIZED",
+ "object": "invoice",
"on_behalf_of": null,
- "payment_method": null,
- "payment_method_configuration_details": null,
- "payment_method_options": {
- "card": {
- "installments": null,
- "mandate_options": null,
- "network": null,
- "request_three_d_secure": "automatic"
+ "parent": null,
+ "payment_settings": {
+ "default_mandate": null,
+ "payment_method_options": null,
+ "payment_method_types": null
+ },
+ "period_end": 1000000000,
+ "period_start": 1000000000,
+ "post_payment_credit_notes_amount": 0,
+ "pre_payment_credit_notes_amount": 0,
+ "receipt_number": null,
+ "rendering": {
+ "amount_tax_display": null,
+ "pdf": {
+ "page_size": "letter"
},
- "link": {
- "persistent_token": null
- }
+ "template": null,
+ "template_version": null
},
- "payment_method_types": [
- "card",
- "link"
- ],
- "processing": null,
- "receipt_email": "[email protected]",
- "review": null,
- "setup_future_usage": null,
- "shipping": null,
- "source": null,
+ "shipping_cost": null,
+ "shipping_details": null,
+ "starting_balance": 0,
"statement_descriptor": "Zulip Cloud Standard",
- "statement_descriptor_suffix": null,
- "status": "canceled",
- "transfer_data": null,
- "transfer_group": null
+ "status": "paid",
+ "status_transitions": {
+ "finalized_at": 1000000000,
+ "marked_uncollectible_at": null,
+ "paid_at": 1000000000,
+ "voided_at": null
+ },
+ "subtotal": 56000,
+ "subtotal_excluding_tax": 56000,
+ "test_clock": null,
+ "total": 56000,
+ "total_discount_amounts": [],
+ "total_excluding_tax": 56000,
+ "total_pretax_credit_amounts": [],
+ "total_taxes": [],
+ "webhooks_delivered_at": null
+ },
+ "previous_attributes": {
+ "amount_paid": 0,
+ "amount_remaining": 56000,
+ "auto_advance": true,
+ "status": "open",
+ "status_transitions": {
+ "paid_at": null
+ }
}
},
"id": "validate_licenses_for_manual_plan_management--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
"id": "validate_licenses_for_manual_plan_management--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "payment_intent.canceled"
+ "type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -420,7 +517,7 @@
"type": "invoice.finalized"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -606,7 +703,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -678,7 +775,7 @@
"type": "payment_intent.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -859,7 +956,7 @@
"type": "invoice.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -906,7 +1003,7 @@
"type": "invoiceitem.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1034,7 +1131,7 @@
"type": "invoice.created"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
@@ -1084,7 +1181,7 @@
"type": "customer.updated"
},
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
diff --git a/corporate/tests/stripe_fixtures/validate_licenses_for_manual_plan_management--Event.list.3.json b/corporate/tests/stripe_fixtures/validate_licenses_for_manual_plan_management--Event.list.3.json
index b4131f5e385..2bda7c87813 100644
--- a/corporate/tests/stripe_fixtures/validate_licenses_for_manual_plan_management--Event.list.3.json
+++ b/corporate/tests/stripe_fixtures/validate_licenses_for_manual_plan_management--Event.list.3.json
@@ -1,162 +1,104 @@
{
"data": [
{
- "api_version": "2025-09-30.clover",
+ "api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
- "account_country": "US",
- "account_name": "NORMALIZED",
- "account_tax_ids": null,
- "amount_due": 56000,
- "amount_overpaid": 0,
"amount_paid": 56000,
- "amount_remaining": 0,
- "amount_shipping": 0,
- "application": null,
- "attempt_count": 0,
- "attempted": false,
- "auto_advance": false,
- "automatic_tax": {
- "disabled_reason": null,
- "enabled": false,
- "liability": null,
- "provider": null,
- "status": null
+ "amount_requested": 56000,
+ "created": 1000000000,
+ "currency": "usd",
+ "id": "validate_licenses_for_manual_plan_management--Event.list.3.json",
+ "invoice": "in_NORMALIZED",
+ "is_default": false,
+ "livemode": false,
+ "object": "invoice_payment",
+ "payment": {
+ "payment_record": "pr_test_NORMALIZEDR0ZxlKl41RVfKEFJaqcEHo",
+ "type": "payment_record"
+ },
+ "status": "paid",
+ "status_transitions": {
+ "canceled_at": null,
+ "paid_at": 1000000000
+ }
+ }
+ },
+ "id": "validate_licenses_for_manual_plan_management--Event.list.3.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "validate_licenses_for_manual_plan_management--Event.list.2.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ },
+ "type": "invoice_payment.paid"
+ },
+ {
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount": 56000,
+ "amount_capturable": 0,
+ "amount_details": {
+ "tip": {}
},
- "automatically_finalizes_at": null,
- "billing_reason": "manual",
- "collection_method": "send_invoice",
+ "amount_received": 0,
+ "application": null,
+ "application_fee_amount": null,
+ "automatic_payment_methods": null,
+ "canceled_at": 1000000000,
+ "cancellation_reason": "requested_by_customer",
+ "capture_method": "automatic",
+ "client_secret": "NORMALIZED",
+ "confirmation_method": "automatic",
"created": 1000000000,
"currency": "usd",
- "custom_fields": null,
"customer": "cus_NORMALIZED",
- "customer_address": null,
- "customer_email": "[email protected]",
- "customer_name": null,
- "customer_phone": null,
- "customer_shipping": null,
- "customer_tax_exempt": "none",
- "customer_tax_ids": [],
- "default_payment_method": null,
- "default_source": null,
- "default_tax_rates": [],
- "description": null,
- "discounts": [],
- "due_date": 1000000000,
- "effective_at": 1000000000,
- "ending_balance": 0,
- "footer": null,
- "from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
+ "description": "Payment for Invoice",
+ "excluded_payment_method_types": null,
"id": "validate_licenses_for_manual_plan_management--Event.list.2.json",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
- "issuer": {
- "type": "self"
- },
- "last_finalization_error": null,
- "latest_revision": null,
- "lines": {
- "data": [
- {
- "amount": 56000,
- "currency": "usd",
- "description": "Zulip Cloud Standard",
- "discount_amounts": [],
- "discountable": false,
- "discounts": [],
- "id": "validate_licenses_for_manual_plan_management--Event.list.2.json",
- "invoice": "validate_licenses_for_manual_plan_management--Event.list.2.json",
- "livemode": false,
- "metadata": {},
- "object": "line_item",
- "parent": {
- "invoice_item_details": {
- "invoice_item": "ii_NORMALIZED",
- "proration": false,
- "proration_details": {
- "credited_items": null
- },
- "subscription": null
- },
- "subscription_item_details": null,
- "type": "invoice_item_details"
- },
- "period": {
- "end": 1357095845,
- "start": 1325473445
- },
- "pretax_credit_amounts": [],
- "pricing": {
- "price_details": {
- "price": "price_NORMALIZED",
- "product": "prod_NORMALIZED"
- },
- "type": "price_details",
- "unit_amount_decimal": "8000"
- },
- "quantity": 7,
- "taxes": []
- }
- ],
- "has_more": false,
- "object": "list",
- "total_count": 1,
- "url": "/v1/invoices/validate_licenses_for_manual_plan_management--Event.list.2.json/lines"
- },
+ "last_payment_error": null,
+ "latest_charge": null,
"livemode": false,
- "metadata": {
- "billing_schedule": "1",
- "current_plan_id": "None",
- "license_management": "manual",
- "licenses": "7",
- "on_free_trial": "False",
- "plan_tier": "1",
- "user_id": "10"
- },
- "next_payment_attempt": null,
- "number": "NORMALIZED",
- "object": "invoice",
+ "metadata": {},
+ "next_action": null,
+ "object": "payment_intent",
"on_behalf_of": null,
- "parent": null,
- "payment_settings": {
- "default_mandate": null,
- "payment_method_options": null,
- "payment_method_types": null
+ "payment_details": {
+ "customer_reference": null,
+ "order_reference": "in_1SPOy8RVfKEFJaqcWoRmKk"
},
- "period_end": 1000000000,
- "period_start": 1000000000,
- "post_payment_credit_notes_amount": 0,
- "pre_payment_credit_notes_amount": 0,
- "receipt_number": null,
- "rendering": {
- "amount_tax_display": null,
- "pdf": {
- "page_size": "letter"
+ "payment_method": null,
+ "payment_method_configuration_details": null,
+ "payment_method_options": {
+ "card": {
+ "installments": null,
+ "mandate_options": null,
+ "network": null,
+ "request_three_d_secure": "automatic"
},
- "template": null,
- "template_version": null
+ "link": {
+ "persistent_token": null
+ }
},
- "shipping_cost": null,
- "shipping_details": null,
- "starting_balance": 0,
+ "payment_method_types": [
+ "card",
+ "link"
+ ],
+ "processing": null,
+ "receipt_email": "[email protected]",
+ "review": null,
+ "setup_future_usage": null,
+ "shipping": null,
+ "source": null,
"statement_descriptor": "Zulip Cloud Standard",
- "status": "paid",
- "status_transitions": {
- "finalized_at": 1000000000,
- "marked_uncollectible_at": null,
- "paid_at": 1000000000,
- "voided_at": null
- },
- "subtotal": 56000,
- "subtotal_excluding_tax": 56000,
- "test_clock": null,
- "total": 56000,
- "total_discount_amounts": [],
- "total_excluding_tax": 56000,
- "total_pretax_credit_amounts": [],
- "total_taxes": [],
- "webhooks_delivered_at": null
+ "statement_descriptor_suffix": null,
+ "status": "canceled",
+ "transfer_data": null,
+ "transfer_group": null
}
},
"id": "validate_licenses_for_manual_plan_management--Event.list.3.json",
@@ -167,7 +109,7 @@
"id": "validate_licenses_for_manual_plan_management--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "invoice.paid"
+ "type": "payment_intent.canceled"
}
],
"has_more": false,
diff --git a/uv.lock b/uv.lock
index fbb66277672..7ee96a1f8ce 100644
--- a/uv.lock
+++ b/uv.lock
@@ -4959,15 +4959,15 @@ wheels = [
[[package]]
name = "stripe"
-version = "13.0.1"
+version = "13.1.1"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "requests" },
{ name = "typing-extensions" },
]
-sdist = { url = "https://files.pythonhosted.org/packages/d8/36/edac714e44a1a0048e74cc659b6070b42dd7027473e8f9f06a727b3860b6/stripe-13.0.1.tar.gz", hash = "sha256:5869739430ff73bd9cd81275abfb79fd4089e97e9fd98d306a015f5defd39a0d", size = 1263853, upload-time = "2025-10-03T19:37:17.335Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/12/a0/3d13718648b8d93140ac649f70202aeb7bfc12516626d308d6fec73a5503/stripe-13.1.1.tar.gz", hash = "sha256:62141a5a2ede69c35e0f257a77acc3fa9cec6e8a30131a49f001bd90fda7a681", size = 1357445, upload-time = "2025-10-31T20:10:49.789Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/3a/ac/a911f3c850420ab42447f5c049f570e55f34e0aa0b2e6a1d1a059a5656c4/stripe-13.0.1-py3-none-any.whl", hash = "sha256:7804cee14580ab37bbc1e5f6562e49dea0686ab3cb34384eb9386387ed8ebd0c", size = 1849008, upload-time = "2025-10-03T19:37:14.953Z" },
+ { url = "https://files.pythonhosted.org/packages/03/c9/6a968b6e3da48224f4f473884566ef660560e4f90072f14261a347987b1b/stripe-13.1.1-py3-none-any.whl", hash = "sha256:2a74981ba559f6e518e657b808c6339a397c3862f3e5dd10ec7603c3829addba", size = 1961719, upload-time = "2025-10-31T20:10:47.603Z" },
]
[[package]]
diff --git a/version.py b/version.py
index 9adaade171e..d4feecb4460 100644
--- a/version.py
+++ b/version.py
@@ -50,4 +50,4 @@ API_FEATURE_LEVEL = 430
# historical commits sharing the same major version, in which case a
# minor version bump suffices.
-PROVISION_VERSION = (356, 1) # bumped 2025-11-03 to add uppy/image-editor.
+PROVISION_VERSION = (357, 0) # bumped 2025-11-04 to upgrade Stripe to latest version