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.

test_stripe: Fix `invoice.paid` event not generated due to latency.

Aman Agrawal3679a81adae6
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 5d1721274a0..002ebe99779 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": "021611",
+ "authorization_code": "811072",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
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 a1a0f3e7329..0a324862a19 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
@@ -5,22 +5,166 @@
"created": 1000000000,
"data": {
"object": {
- "amount_paid": null,
- "amount_requested": 100000,
+ "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": "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": "add_minimum_licenses--Event.list.2.json",
- "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": 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"
+ },
"livemode": false,
- "object": "invoice_payment",
- "payment": {
- "payment_intent": "add_minimum_licenses--Event.list.2.json",
- "type": "payment_intent"
+ "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": {
- "canceled_at": null,
"paid_at": null
}
}
@@ -33,7 +177,7 @@
"id": "add_minimum_licenses--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "invoice_payment.paid"
+ "type": "invoice.updated"
},
{
"api_version": "2025-10-29.clover",
@@ -69,7 +213,7 @@
"on_behalf_of": null,
"payment_details": {
"customer_reference": null,
- "order_reference": "in_1SPPE0RVfKEFJaqcaEMfNd"
+ "order_reference": "in_1SSdAIRVfKEFJaqcKag1F6"
},
"payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
@@ -173,7 +317,7 @@
"payment_method_details": {
"card": {
"amount_authorized": 100000,
- "authorization_code": "021611",
+ "authorization_code": "811072",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
@@ -231,7 +375,7 @@
"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"
@@ -1007,7 +1151,7 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "add_minimum_licenses--Event.list.2.json",
@@ -1071,7 +1215,7 @@
"type": "customer.updated"
}
],
- "has_more": true,
+ "has_more": false,
"object": "list",
"url": "/v1/events"
}
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 c259632f8fa..6b5d061ad9c 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
@@ -337,185 +337,6 @@
"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--Invoice.create.1.json b/corporate/tests/stripe_fixtures/add_minimum_licenses--Invoice.create.1.json
index a72c8f6ee62..87a1bad3a6a 100644
--- a/corporate/tests/stripe_fixtures/add_minimum_licenses--Invoice.create.1.json
+++ b/corporate/tests/stripe_fixtures/add_minimum_licenses--Invoice.create.1.json
@@ -109,5 +109,5 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
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 d2a7506e1e8..16f1a03648b 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": "405663",
+ "authorization_code": "281255",
"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 df238fb9692..4833e5fe6e0 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": "365623",
+ "authorization_code": "393148",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
@@ -170,7 +170,7 @@
"payment_method_details": {
"card": {
"amount_authorized": 7200,
- "authorization_code": "405663",
+ "authorization_code": "281255",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
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 9e87583ae96..18d035bc188 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
@@ -5,22 +5,166 @@
"created": 1000000000,
"data": {
"object": {
- "amount_paid": null,
- "amount_requested": 7200,
+ "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": "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": "attach_discount_to_realm--Event.list.2.json",
- "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": 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"
+ },
"livemode": false,
- "object": "invoice_payment",
- "payment": {
- "payment_intent": "attach_discount_to_realm--Event.list.2.json",
- "type": "payment_intent"
+ "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": {
- "canceled_at": null,
"paid_at": null
}
}
@@ -33,7 +177,7 @@
"id": "attach_discount_to_realm--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "invoice_payment.paid"
+ "type": "invoice.updated"
},
{
"api_version": "2025-10-29.clover",
@@ -69,7 +213,7 @@
"on_behalf_of": null,
"payment_details": {
"customer_reference": null,
- "order_reference": "in_1SPPEERVfKEFJaqcOMNa5a"
+ "order_reference": "in_1SSdAVRVfKEFJaqcfy1Mpf"
},
"payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
@@ -104,7 +248,7 @@
"id": "attach_discount_to_realm--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 2,
+ "pending_webhooks": 0,
"request": {
"id": "attach_discount_to_realm--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -173,7 +317,7 @@
"payment_method_details": {
"card": {
"amount_authorized": 7200,
- "authorization_code": "405663",
+ "authorization_code": "281255",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
@@ -231,7 +375,7 @@
"id": "attach_discount_to_realm--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 2,
+ "pending_webhooks": 0,
"request": {
"id": "attach_discount_to_realm--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -820,7 +964,7 @@
"total_excluding_tax": 7200,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"amount_due": 0,
@@ -1007,7 +1151,7 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "attach_discount_to_realm--Event.list.2.json",
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 371115a57c8..ba0f96c4893 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
@@ -162,7 +162,7 @@
"id": "attach_discount_to_realm--Event.list.3.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 1,
+ "pending_webhooks": 0,
"request": {
"id": "attach_discount_to_realm--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -337,185 +337,6 @@
"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.6.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.6.json
index e39b2fa8787..158ebbb41a4 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
@@ -5,22 +5,335 @@
"created": 1000000000,
"data": {
"object": {
- "amount_paid": null,
- "amount_requested": 36000,
+ "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": "attach_discount_to_realm--Event.list.6.json",
- "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": 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": 0,
+ "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": "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,
- "object": "invoice_payment",
- "payment": {
- "payment_intent": "attach_discount_to_realm--Event.list.6.json",
- "type": "payment_intent"
+ "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": {
- "canceled_at": null,
"paid_at": null
}
}
@@ -33,7 +346,7 @@
"id": "attach_discount_to_realm--Event.list.6.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "invoice_payment.paid"
+ "type": "invoice.updated"
},
{
"api_version": "2025-10-29.clover",
@@ -69,7 +382,7 @@
"on_behalf_of": null,
"payment_details": {
"customer_reference": null,
- "order_reference": "in_1SPPERRVfKEFJaqcxke2FR"
+ "order_reference": "in_1SSdAiRVfKEFJaqcpT3dS1"
},
"payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
@@ -104,7 +417,7 @@
"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"
@@ -173,7 +486,7 @@
"payment_method_details": {
"card": {
"amount_authorized": 36000,
- "authorization_code": "365623",
+ "authorization_code": "393148",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
@@ -231,7 +544,7 @@
"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"
@@ -1007,7 +1320,7 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "attach_discount_to_realm--Event.list.6.json",
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 95c37d478ff..15eae53ae2d 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
@@ -5,338 +5,203 @@
"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
+ "amount": 10000,
+ "amount_capturable": 0,
+ "amount_details": {
+ "tip": {}
},
- "automatically_finalizes_at": null,
- "billing_reason": "manual",
- "collection_method": "charge_automatically",
+ "amount_received": 10000,
+ "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",
- "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"
- },
+ "description": "Payment for Invoice",
+ "excluded_payment_method_types": null,
+ "id": "attach_discount_to_realm--Event.list.7.json",
+ "last_payment_error": null,
+ "latest_charge": "attach_discount_to_realm--Event.list.7.json",
"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",
+ "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_1SScEQRVfKEFJaqcaucxOJ"
},
- "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": "pm_NORMALIZED",
+ "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,
- "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
+ "payment_method_types": [
+ "card",
+ "link"
+ ],
+ "processing": null,
+ "receipt_email": "[email protected]",
+ "review": null,
+ "setup_future_usage": null,
+ "shipping": null,
+ "source": null,
+ "statement_descriptor": "Zulip Basic",
+ "statement_descriptor_suffix": null,
+ "status": "succeeded",
+ "transfer_data": null,
+ "transfer_group": null
}
},
"id": "attach_discount_to_realm--Event.list.7.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"
+ "id": null,
+ "idempotency_key": "in_NORMALIZED-initial_attempt-8fbbae0b1d27b24e0"
},
- "type": "invoice.payment_succeeded"
+ "type": "payment_intent.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,
+ "amount": 10000,
+ "amount_captured": 10000,
+ "amount_refunded": 0,
"application": null,
- "attempt_count": 1,
- "attempted": true,
- "auto_advance": false,
- "automatic_tax": {
- "disabled_reason": null,
- "enabled": false,
- "liability": null,
- "provider": null,
- "status": 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
},
- "automatically_finalizes_at": null,
- "billing_reason": "manual",
- "collection_method": "charge_automatically",
+ "calculated_statement_descriptor": "ZULIP BASIC",
+ "captured": true,
"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"
- },
+ "description": "Payment for Invoice",
+ "destination": null,
+ "dispute": null,
+ "disputed": false,
+ "failure_balance_transaction": null,
+ "failure_code": null,
+ "failure_message": null,
+ "fraud_details": {},
+ "id": "attach_discount_to_realm--Event.list.7.json",
"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",
+ "metadata": {},
+ "object": "charge",
"on_behalf_of": null,
- "parent": null,
- "payment_settings": {
- "default_mandate": null,
- "payment_method_options": null,
- "payment_method_types": 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"
},
- "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"
+ "paid": true,
+ "payment_intent": "attach_discount_to_realm--Event.list.7.json",
+ "payment_method": "pm_NORMALIZED",
+ "payment_method_details": {
+ "card": {
+ "amount_authorized": 10000,
+ "authorization_code": "369783",
+ "brand": "visa",
+ "checks": {
+ "address_line1_check": "pass",
+ "address_postal_code_check": "pass",
+ "cvc_check": null
+ },
+ "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
},
- "template": null,
- "template_version": null
+ "type": "card"
},
- "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
+ "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": "attach_discount_to_realm--Event.list.7.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 1,
+ "pending_webhooks": 0,
"request": {
- "id": "attach_discount_to_realm--Event.list.6.json",
- "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ "id": null,
+ "idempotency_key": "in_NORMALIZED-initial_attempt-8fbbae0b1d27b24e0"
},
- "type": "invoice.paid"
+ "type": "charge.succeeded"
},
{
"api_version": "2025-10-29.clover",
@@ -495,16 +360,6 @@
"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",
@@ -515,7 +370,7 @@
"id": "attach_discount_to_realm--Event.list.6.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "invoice.updated"
+ "type": "invoice.payment_succeeded"
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.8.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.8.json
index 6d922067afe..52f8a495e1f 100644
--- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.8.json
+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.8.json
@@ -1,5 +1,501 @@
{
- "data": [],
+ "data": [
+ {
+ "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": "attach_discount_to_realm--Event.list.8.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 - renewal",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "attach_discount_to_realm--Event.list.8.json",
+ "invoice": "attach_discount_to_realm--Event.list.8.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": 1349147045,
+ "start": 1346555045
+ },
+ "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/attach_discount_to_realm--Event.list.8.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 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
+ }
+ },
+ "id": "attach_discount_to_realm--Event.list.8.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": null,
+ "idempotency_key": null
+ },
+ "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": 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": "attach_discount_to_realm--Event.list.8.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 - renewal",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "attach_discount_to_realm--Event.list.8.json",
+ "invoice": "attach_discount_to_realm--Event.list.8.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": 1349147045,
+ "start": 1346555045
+ },
+ "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/attach_discount_to_realm--Event.list.8.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 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
+ }
+ },
+ "id": "attach_discount_to_realm--Event.list.8.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": null,
+ "idempotency_key": null
+ },
+ "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": "attach_discount_to_realm--Event.list.8.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 - renewal",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "attach_discount_to_realm--Event.list.8.json",
+ "invoice": "attach_discount_to_realm--Event.list.8.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": 1349147045,
+ "start": 1346555045
+ },
+ "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/attach_discount_to_realm--Event.list.8.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 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,
+ "auto_advance": true,
+ "next_payment_attempt": 1000000000,
+ "status": "open",
+ "status_transitions": {
+ "paid_at": null
+ }
+ }
+ },
+ "id": "attach_discount_to_realm--Event.list.8.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": null,
+ "idempotency_key": null
+ },
+ "type": "invoice.updated"
+ }
+ ],
"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/attach_discount_to_realm--Event.list.9.json
similarity index 100%
rename from corporate/tests/stripe_fixtures/payment_method_string--Event.list.4.json
rename to corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.9.json
diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Invoice.create.1.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Invoice.create.1.json
index 1209476c162..6b3e41d291e 100644
--- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Invoice.create.1.json
+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Invoice.create.1.json
@@ -109,5 +109,5 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Invoice.create.2.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Invoice.create.2.json
index a9316393897..8639b80a3d4 100644
--- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Invoice.create.2.json
+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Invoice.create.2.json
@@ -109,5 +109,5 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Invoice.create.3.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Invoice.create.3.json
index cc8d44a40ed..7f04015042c 100644
--- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Invoice.create.3.json
+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Invoice.create.3.json
@@ -101,5 +101,5 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
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 5e94de890ba..e09daa1cafc 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
@@ -5,40 +5,23 @@
"created": 1000000000,
"data": {
"object": {
- "address": null,
- "balance": 0,
+ "amount_paid": 48000,
+ "amount_requested": 48000,
"created": 1000000000,
- "currency": null,
- "default_source": null,
- "delinquent": false,
- "description": "zulip (Zulip Dev)",
- "discount": null,
- "email": "[email protected]",
- "id": "billing_page_permissions--Customer.create.1.json",
- "invoice_prefix": "NORMALIZED",
- "invoice_settings": {
- "custom_fields": null,
- "default_payment_method": "pm_NORMALIZED",
- "footer": null,
- "rendering_options": null
- },
+ "currency": "usd",
+ "id": "billing_page_permissions--Event.list.1.json",
+ "invoice": "in_NORMALIZED",
+ "is_default": true,
"livemode": false,
- "metadata": {
- "realm_id": "1",
- "realm_str": "zulip"
+ "object": "invoice_payment",
+ "payment": {
+ "payment_intent": "pi_NORMALIZED",
+ "type": "payment_intent"
},
- "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
+ "status": "paid",
+ "status_transitions": {
+ "canceled_at": null,
+ "paid_at": 1000000000
}
}
},
@@ -47,10 +30,10 @@
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "billing_page_permissions--Event.list.1.json",
- "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ "id": null,
+ "idempotency_key": null
},
- "type": "customer.updated"
+ "type": "invoice_payment.paid"
}
],
"has_more": true,
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 3f3d0bb39a2..be17ee9747b 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,5 +1,81 @@
{
"data": [
+ {
+ "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": "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_details": {
+ "customer_reference": null,
+ "order_reference": "in_1SScuuRVfKEFJaqcONdEUF"
+ },
+ "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-10-29.clover",
"created": 1000000000,
@@ -62,7 +138,7 @@
"payment_method_details": {
"card": {
"amount_authorized": 48000,
- "authorization_code": "575746",
+ "authorization_code": "317913",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
@@ -120,7 +196,7 @@
"id": "billing_page_permissions--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 2,
+ "pending_webhooks": 0,
"request": {
"id": "billing_page_permissions--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -553,328 +629,6 @@
},
"type": "payment_intent.created"
},
- {
- "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,
@@ -1031,7 +785,7 @@
"total_excluding_tax": 48000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"amount_due": 0,
@@ -1218,7 +972,7 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "billing_page_permissions--Event.list.2.json",
@@ -1282,7 +1036,7 @@
"type": "customer.updated"
}
],
- "has_more": true,
+ "has_more": false,
"object": "list",
"url": "/v1/events"
}
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 da98a1923c4..a9a833ef5a9 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
@@ -162,7 +162,7 @@
"id": "billing_page_permissions--Event.list.3.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 2,
+ "pending_webhooks": 0,
"request": {
"id": "billing_page_permissions--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -331,7 +331,7 @@
"id": "billing_page_permissions--Event.list.3.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 2,
+ "pending_webhooks": 0,
"request": {
"id": "billing_page_permissions--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -516,117 +516,6 @@
"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--Invoice.create.1.json b/corporate/tests/stripe_fixtures/billing_page_permissions--Invoice.create.1.json
index a100590daeb..0e020e933be 100644
--- a/corporate/tests/stripe_fixtures/billing_page_permissions--Invoice.create.1.json
+++ b/corporate/tests/stripe_fixtures/billing_page_permissions--Invoice.create.1.json
@@ -109,5 +109,5 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--Invoice.create.1.json b/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--Invoice.create.1.json
index be64938c82a..ac14cc11218 100644
--- a/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--Invoice.create.1.json
+++ b/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--Invoice.create.1.json
@@ -109,5 +109,5 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
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 64f09092217..6fc1f4e5ef7 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
@@ -100,7 +100,7 @@
"on_behalf_of": null,
"payment_details": {
"customer_reference": null,
- "order_reference": "in_1SPOyhRVfKEFJaqcJydyjA"
+ "order_reference": "in_1SScvERVfKEFJaqcCzjn1Z"
},
"payment_method": null,
"payment_method_configuration_details": null,
@@ -182,7 +182,7 @@
"object": "payment_method",
"type": "card"
},
- "request_log_url": "https://dashboard.stripe.com/test/logs/req_NORMALIZED?t=1762181010",
+ "request_log_url": "https://dashboard.stripe.com/test/logs/req_NORMALIZED?t=1762949594",
"setup_intent": null,
"source": null,
"type": "card_error"
@@ -196,10 +196,10 @@
"Cache-Control": "no-cache, no-store",
"Connection": "keep-alive",
"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-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=6Qemju57afAgxdchhx6i6PtPkxnnKeofYpdCDQyCgb4E4d5oEUx_oSeVAhrHpxMlwrFWTrb1NWC0uBag",
"Content-Type": "application/json",
"Date": "NORMALIZED DATETIME",
- "Idempotency-Key": "d8fc5c79-b82d-47f9-8db6-fac1c98e98f0",
+ "Idempotency-Key": "a1d13084-1ce1-459e-97a3-2f62cf63406d",
"Original-Request": "req_NORMALIZED",
"Request-Id": "req_NORMALIZED",
"Server": "nginx",
@@ -211,7 +211,7 @@
"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_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_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_wxhEIWlpMfIHJDtenYDIa3G75\",\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_1SScvERVfKEFJaqcCzjn1Z\"\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=1762949594\",\n \"type\": \"card_error\"\n }\n}\n",
"http_status": 402,
"json_body": {
"error": {
@@ -312,7 +312,7 @@
"on_behalf_of": null,
"payment_details": {
"customer_reference": null,
- "order_reference": "in_1SPOyhRVfKEFJaqcJydyjA"
+ "order_reference": "in_1SScvERVfKEFJaqcCzjn1Z"
},
"payment_method": null,
"payment_method_configuration_details": null,
@@ -394,7 +394,7 @@
"object": "payment_method",
"type": "card"
},
- "request_log_url": "https://dashboard.stripe.com/test/logs/req_NORMALIZED?t=1762181010",
+ "request_log_url": "https://dashboard.stripe.com/test/logs/req_NORMALIZED?t=1762949594",
"type": "card_error"
}
},
diff --git a/corporate/tests/stripe_fixtures/change_plan_tier_from_standard_to_plus--Invoice.create.1.json b/corporate/tests/stripe_fixtures/change_plan_tier_from_standard_to_plus--Invoice.create.1.json
index c177b8b1e44..27682827c4f 100644
--- a/corporate/tests/stripe_fixtures/change_plan_tier_from_standard_to_plus--Invoice.create.1.json
+++ b/corporate/tests/stripe_fixtures/change_plan_tier_from_standard_to_plus--Invoice.create.1.json
@@ -101,5 +101,5 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/change_plan_tier_from_standard_to_plus--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/change_plan_tier_from_standard_to_plus--Invoice.finalize_invoice.1.json
index 74210ad688c..65fbc4de65e 100644
--- a/corporate/tests/stripe_fixtures/change_plan_tier_from_standard_to_plus--Invoice.finalize_invoice.1.json
+++ b/corporate/tests/stripe_fixtures/change_plan_tier_from_standard_to_plus--Invoice.finalize_invoice.1.json
@@ -142,5 +142,5 @@
"total_excluding_tax": 12000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/change_plan_tier_from_standard_to_plus--Invoice.list.1.json b/corporate/tests/stripe_fixtures/change_plan_tier_from_standard_to_plus--Invoice.list.1.json
index 7311a8e47eb..0f05caf0940 100644
--- a/corporate/tests/stripe_fixtures/change_plan_tier_from_standard_to_plus--Invoice.list.1.json
+++ b/corporate/tests/stripe_fixtures/change_plan_tier_from_standard_to_plus--Invoice.list.1.json
@@ -144,7 +144,7 @@
"total_excluding_tax": 12000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
],
"has_more": false,
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 f2e3774617e..9d1c06b2aec 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,40 +1,5 @@
{
"data": [
- {
- "api_version": "2025-10-29.clover",
- "created": 1000000000,
- "data": {
- "object": {
- "amount_paid": null,
- "amount_requested": 48000,
- "created": 1000000000,
- "currency": "usd",
- "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",
- "is_default": true,
- "livemode": false,
- "object": "invoice_payment",
- "payment": {
- "payment_intent": "customer_has_credit_card_as_default_payment_method--Event.list.2.json",
- "type": "payment_intent"
- },
- "status": "open",
- "status_transitions": {
- "canceled_at": null,
- "paid_at": null
- }
- }
- },
- "id": "customer_has_credit_card_as_default_payment_method--Event.list.2.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_payment.paid"
- },
{
"api_version": "2025-10-29.clover",
"created": 1000000000,
@@ -69,7 +34,7 @@
"on_behalf_of": null,
"payment_details": {
"customer_reference": null,
- "order_reference": "in_1SPOziRVfKEFJaqcYc7fjI"
+ "order_reference": "in_1SScwARVfKEFJaqcfOhO82"
},
"payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
@@ -104,7 +69,7 @@
"id": "customer_has_credit_card_as_default_payment_method--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 1,
+ "pending_webhooks": 0,
"request": {
"id": "customer_has_credit_card_as_default_payment_method--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -173,7 +138,7 @@
"payment_method_details": {
"card": {
"amount_authorized": 48000,
- "authorization_code": "946563",
+ "authorization_code": "238209",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
@@ -231,7 +196,7 @@
"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"
@@ -394,7 +359,7 @@
"total_excluding_tax": 48000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "customer_has_credit_card_as_default_payment_method--Event.list.2.json",
@@ -563,7 +528,7 @@
"total_excluding_tax": 48000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"effective_at": null,
@@ -820,7 +785,7 @@
"total_excluding_tax": 48000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"amount_due": 0,
@@ -1007,7 +972,7 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "customer_has_credit_card_as_default_payment_method--Event.list.2.json",
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 95a57ee534c..575b7eea6b8 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
@@ -156,7 +156,7 @@
"total_excluding_tax": 48000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "customer_has_credit_card_as_default_payment_method--Event.list.3.json",
@@ -325,7 +325,7 @@
"total_excluding_tax": 48000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "customer_has_credit_card_as_default_payment_method--Event.list.3.json",
@@ -494,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/customer_has_credit_card_as_default_payment_method--Invoice.create.1.json b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Invoice.create.1.json
index f5c018a90fe..577e3715a07 100644
--- a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Invoice.create.1.json
+++ b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Invoice.create.1.json
@@ -109,5 +109,5 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
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 0cd6fcafeb2..778bafaa412 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": null
+ "webhooks_delivered_at": 1000000000
}
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 a6acca492a4..733248af627 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": null
+ "webhooks_delivered_at": 1000000000
}
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 618a3be5532..d4c33d20f47 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,40 +1,5 @@
{
"data": [
- {
- "api_version": "2025-10-29.clover",
- "created": 1000000000,
- "data": {
- "object": {
- "amount_paid": null,
- "amount_requested": 72000,
- "created": 1000000000,
- "currency": "usd",
- "id": "customer_minimum_licenses_for_plan--Event.list.2.json",
- "invoice": "customer_minimum_licenses_for_plan--Event.list.2.json",
- "is_default": true,
- "livemode": false,
- "object": "invoice_payment",
- "payment": {
- "payment_intent": "customer_minimum_licenses_for_plan--Event.list.2.json",
- "type": "payment_intent"
- },
- "status": "open",
- "status_transitions": {
- "canceled_at": null,
- "paid_at": null
- }
- }
- },
- "id": "customer_minimum_licenses_for_plan--Event.list.2.json",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 0,
- "request": {
- "id": "customer_minimum_licenses_for_plan--Event.list.2.json",
- "idempotency_key": "00000000-0000-0000-0000-000000000000"
- },
- "type": "invoice_payment.paid"
- },
{
"api_version": "2025-10-29.clover",
"created": 1000000000,
@@ -69,7 +34,7 @@
"on_behalf_of": null,
"payment_details": {
"customer_reference": null,
- "order_reference": "in_1SPOzyRVfKEFJaqczyOfHE"
+ "order_reference": "in_1SScwNRVfKEFJaqckMgWo1"
},
"payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
@@ -173,7 +138,7 @@
"payment_method_details": {
"card": {
"amount_authorized": 72000,
- "authorization_code": "662882",
+ "authorization_code": "948888",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
@@ -231,7 +196,7 @@
"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"
@@ -820,7 +785,7 @@
"total_excluding_tax": 72000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"amount_due": 0,
@@ -1007,7 +972,7 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "customer_minimum_licenses_for_plan--Event.list.2.json",
@@ -1071,7 +1036,7 @@
"type": "customer.updated"
}
],
- "has_more": true,
+ "has_more": false,
"object": "list",
"url": "/v1/events"
}
diff --git a/corporate/tests/stripe_fixtures/customer_minimum_licenses_for_plan--Invoice.create.1.json b/corporate/tests/stripe_fixtures/customer_minimum_licenses_for_plan--Invoice.create.1.json
index 65daa945f53..04bf5e08e1a 100644
--- a/corporate/tests/stripe_fixtures/customer_minimum_licenses_for_plan--Invoice.create.1.json
+++ b/corporate/tests/stripe_fixtures/customer_minimum_licenses_for_plan--Invoice.create.1.json
@@ -109,5 +109,5 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/customer_minimum_licenses_for_plan--Invoice.create.2.json b/corporate/tests/stripe_fixtures/customer_minimum_licenses_for_plan--Invoice.create.2.json
index ecdae8f47d8..c193e01c0bd 100644
--- a/corporate/tests/stripe_fixtures/customer_minimum_licenses_for_plan--Invoice.create.2.json
+++ b/corporate/tests/stripe_fixtures/customer_minimum_licenses_for_plan--Invoice.create.2.json
@@ -101,5 +101,5 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
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 4bada6bf855..0dc0432605c 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
@@ -8,14 +8,14 @@
"account_country": "US",
"account_name": "NORMALIZED",
"account_tax_ids": null,
- "amount_due": 984000,
+ "amount_due": 10000,
"amount_overpaid": 0,
- "amount_paid": 984000,
+ "amount_paid": 10000,
"amount_remaining": 0,
"amount_shipping": 0,
"application": null,
- "attempt_count": 0,
- "attempted": false,
+ "attempt_count": 1,
+ "attempted": true,
"auto_advance": false,
"automatic_tax": {
"disabled_reason": null,
@@ -26,11 +26,11 @@
},
"automatically_finalizes_at": null,
"billing_reason": "manual",
- "collection_method": "send_invoice",
+ "collection_method": "charge_automatically",
"created": 1000000000,
"currency": "usd",
"custom_fields": null,
- "customer": "downgrade_realm_and_void_open_invoices--Customer.create.1.json",
+ "customer": "cus_NORMALIZED",
"customer_address": null,
"customer_email": "[email protected]",
"customer_name": null,
@@ -43,7 +43,7 @@
"default_tax_rates": [],
"description": null,
"discounts": [],
- "due_date": 1000000000,
+ "due_date": null,
"effective_at": 1000000000,
"ending_balance": 0,
"footer": null,
@@ -59,9 +59,9 @@
"lines": {
"data": [
{
- "amount": 984000,
+ "amount": 10000,
"currency": "usd",
- "description": "Zulip Cloud Standard",
+ "description": "Zulip Basic - renewal",
"discount_amounts": [],
"discountable": false,
"discounts": [],
@@ -72,7 +72,7 @@
"object": "line_item",
"parent": {
"invoice_item_details": {
- "invoice_item": "downgrade_realm_and_void_open_invoices--Event.list.2.json",
+ "invoice_item": "ii_NORMALIZED",
"proration": false,
"proration_details": {
"credited_items": null
@@ -83,8 +83,8 @@
"type": "invoice_item_details"
},
"period": {
- "end": 1357095845,
- "start": 1325473445
+ "end": 1335927845,
+ "start": 1333335845
},
"pretax_credit_amounts": [],
"pricing": {
@@ -93,9 +93,9 @@
"product": "prod_NORMALIZED"
},
"type": "price_details",
- "unit_amount_decimal": "8000"
+ "unit_amount_decimal": "10000"
},
- "quantity": 123,
+ "quantity": 1,
"taxes": []
}
],
@@ -105,15 +105,7 @@
"url": "/v1/invoices/downgrade_realm_and_void_open_invoices--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"
- },
+ "metadata": {},
"next_payment_attempt": null,
"number": "NORMALIZED",
"object": "invoice",
@@ -140,7 +132,7 @@
"shipping_cost": null,
"shipping_details": null,
"starting_balance": 0,
- "statement_descriptor": "Zulip Cloud Standard",
+ "statement_descriptor": "Zulip Basic",
"status": "paid",
"status_transitions": {
"finalized_at": 1000000000,
@@ -148,12 +140,12 @@
"paid_at": 1000000000,
"voided_at": null
},
- "subtotal": 984000,
- "subtotal_excluding_tax": 984000,
+ "subtotal": 10000,
+ "subtotal_excluding_tax": 10000,
"test_clock": null,
- "total": 984000,
+ "total": 10000,
"total_discount_amounts": [],
- "total_excluding_tax": 984000,
+ "total_excluding_tax": 10000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
"webhooks_delivered_at": 1000000000
@@ -162,12 +154,12 @@
"id": "downgrade_realm_and_void_open_invoices--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 2,
+ "pending_webhooks": 0,
"request": {
- "id": "downgrade_realm_and_void_open_invoices--Event.list.2.json",
- "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ "id": null,
+ "idempotency_key": null
},
- "type": "invoice.paid"
+ "type": "invoice.payment_succeeded"
},
{
"api_version": "2025-10-29.clover",
@@ -177,14 +169,14 @@
"account_country": "US",
"account_name": "NORMALIZED",
"account_tax_ids": null,
- "amount_due": 984000,
+ "amount_due": 10000,
"amount_overpaid": 0,
- "amount_paid": 984000,
+ "amount_paid": 10000,
"amount_remaining": 0,
"amount_shipping": 0,
"application": null,
- "attempt_count": 0,
- "attempted": false,
+ "attempt_count": 1,
+ "attempted": true,
"auto_advance": false,
"automatic_tax": {
"disabled_reason": null,
@@ -195,11 +187,11 @@
},
"automatically_finalizes_at": null,
"billing_reason": "manual",
- "collection_method": "send_invoice",
+ "collection_method": "charge_automatically",
"created": 1000000000,
"currency": "usd",
"custom_fields": null,
- "customer": "downgrade_realm_and_void_open_invoices--Customer.create.1.json",
+ "customer": "cus_NORMALIZED",
"customer_address": null,
"customer_email": "[email protected]",
"customer_name": null,
@@ -212,7 +204,7 @@
"default_tax_rates": [],
"description": null,
"discounts": [],
- "due_date": 1000000000,
+ "due_date": null,
"effective_at": 1000000000,
"ending_balance": 0,
"footer": null,
@@ -228,9 +220,9 @@
"lines": {
"data": [
{
- "amount": 984000,
+ "amount": 10000,
"currency": "usd",
- "description": "Zulip Cloud Standard",
+ "description": "Zulip Basic - renewal",
"discount_amounts": [],
"discountable": false,
"discounts": [],
@@ -241,7 +233,7 @@
"object": "line_item",
"parent": {
"invoice_item_details": {
- "invoice_item": "downgrade_realm_and_void_open_invoices--Event.list.2.json",
+ "invoice_item": "ii_NORMALIZED",
"proration": false,
"proration_details": {
"credited_items": null
@@ -252,8 +244,8 @@
"type": "invoice_item_details"
},
"period": {
- "end": 1357095845,
- "start": 1325473445
+ "end": 1335927845,
+ "start": 1333335845
},
"pretax_credit_amounts": [],
"pricing": {
@@ -262,9 +254,9 @@
"product": "prod_NORMALIZED"
},
"type": "price_details",
- "unit_amount_decimal": "8000"
+ "unit_amount_decimal": "10000"
},
- "quantity": 123,
+ "quantity": 1,
"taxes": []
}
],
@@ -274,15 +266,7 @@
"url": "/v1/invoices/downgrade_realm_and_void_open_invoices--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"
- },
+ "metadata": {},
"next_payment_attempt": null,
"number": "NORMALIZED",
"object": "invoice",
@@ -309,7 +293,7 @@
"shipping_cost": null,
"shipping_details": null,
"starting_balance": 0,
- "statement_descriptor": "Zulip Cloud Standard",
+ "statement_descriptor": "Zulip Basic",
"status": "paid",
"status_transitions": {
"finalized_at": 1000000000,
@@ -317,35 +301,26 @@
"paid_at": 1000000000,
"voided_at": null
},
- "subtotal": 984000,
- "subtotal_excluding_tax": 984000,
+ "subtotal": 10000,
+ "subtotal_excluding_tax": 10000,
"test_clock": null,
- "total": 984000,
+ "total": 10000,
"total_discount_amounts": [],
- "total_excluding_tax": 984000,
+ "total_excluding_tax": 10000,
"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": 1,
+ "pending_webhooks": 0,
"request": {
- "id": "downgrade_realm_and_void_open_invoices--Event.list.2.json",
- "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ "id": null,
+ "idempotency_key": null
},
- "type": "invoice.updated"
+ "type": "invoice.paid"
},
{
"api_version": "2025-10-29.clover",
@@ -355,15 +330,15 @@
"account_country": "US",
"account_name": "NORMALIZED",
"account_tax_ids": null,
- "amount_due": 984000,
+ "amount_due": 10000,
"amount_overpaid": 0,
- "amount_paid": 0,
- "amount_remaining": 984000,
+ "amount_paid": 10000,
+ "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,
@@ -373,11 +348,11 @@
},
"automatically_finalizes_at": null,
"billing_reason": "manual",
- "collection_method": "send_invoice",
+ "collection_method": "charge_automatically",
"created": 1000000000,
"currency": "usd",
"custom_fields": null,
- "customer": "downgrade_realm_and_void_open_invoices--Customer.create.1.json",
+ "customer": "cus_NORMALIZED",
"customer_address": null,
"customer_email": "[email protected]",
"customer_name": null,
@@ -390,7 +365,7 @@
"default_tax_rates": [],
"description": null,
"discounts": [],
- "due_date": 1000000000,
+ "due_date": null,
"effective_at": 1000000000,
"ending_balance": 0,
"footer": null,
@@ -406,9 +381,9 @@
"lines": {
"data": [
{
- "amount": 984000,
+ "amount": 10000,
"currency": "usd",
- "description": "Zulip Cloud Standard",
+ "description": "Zulip Basic - renewal",
"discount_amounts": [],
"discountable": false,
"discounts": [],
@@ -419,7 +394,7 @@
"object": "line_item",
"parent": {
"invoice_item_details": {
- "invoice_item": "downgrade_realm_and_void_open_invoices--Event.list.2.json",
+ "invoice_item": "ii_NORMALIZED",
"proration": false,
"proration_details": {
"credited_items": null
@@ -430,8 +405,8 @@
"type": "invoice_item_details"
},
"period": {
- "end": 1357095845,
- "start": 1325473445
+ "end": 1335927845,
+ "start": 1333335845
},
"pretax_credit_amounts": [],
"pricing": {
@@ -440,9 +415,9 @@
"product": "prod_NORMALIZED"
},
"type": "price_details",
- "unit_amount_decimal": "8000"
+ "unit_amount_decimal": "10000"
},
- "quantity": 123,
+ "quantity": 1,
"taxes": []
}
],
@@ -452,15 +427,7 @@
"url": "/v1/invoices/downgrade_realm_and_void_open_invoices--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"
- },
+ "metadata": {},
"next_payment_attempt": null,
"number": "NORMALIZED",
"object": "invoice",
@@ -487,23 +454,35 @@
"shipping_cost": null,
"shipping_details": null,
"starting_balance": 0,
- "statement_descriptor": "Zulip Cloud Standard",
- "status": "open",
+ "statement_descriptor": "Zulip Basic",
+ "status": "paid",
"status_transitions": {
"finalized_at": 1000000000,
"marked_uncollectible_at": null,
- "paid_at": null,
+ "paid_at": 1000000000,
"voided_at": null
},
- "subtotal": 984000,
- "subtotal_excluding_tax": 984000,
+ "subtotal": 10000,
+ "subtotal_excluding_tax": 10000,
"test_clock": null,
- "total": 984000,
+ "total": 10000,
"total_discount_amounts": [],
- "total_excluding_tax": 984000,
+ "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,
+ "auto_advance": true,
+ "next_payment_attempt": 1000000000,
+ "status": "open",
+ "status_transitions": {
+ "paid_at": null
+ }
}
},
"id": "downgrade_realm_and_void_open_invoices--Event.list.2.json",
@@ -511,10 +490,10 @@
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "downgrade_realm_and_void_open_invoices--Event.list.2.json",
- "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ "id": null,
+ "idempotency_key": null
},
- "type": "invoice.finalized"
+ "type": "invoice.updated"
},
{
"api_version": "2025-10-29.clover",
@@ -540,7 +519,7 @@
"provider": null,
"status": null
},
- "automatically_finalizes_at": null,
+ "automatically_finalizes_at": 1000000000,
"billing_reason": "manual",
"collection_method": "send_invoice",
"created": 1000000000,
@@ -560,13 +539,13 @@
"description": null,
"discounts": [],
"due_date": 1000000000,
- "effective_at": 1000000000,
- "ending_balance": 0,
+ "effective_at": null,
+ "ending_balance": null,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
+ "hosted_invoice_url": 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",
+ "invoice_pdf": null,
"issuer": {
"type": "self"
},
@@ -631,7 +610,7 @@
"user_id": "10"
},
"next_payment_attempt": null,
- "number": "NORMALIZED",
+ "number": null,
"object": "invoice",
"on_behalf_of": null,
"parent": null,
@@ -648,7 +627,7 @@
"rendering": {
"amount_tax_display": null,
"pdf": {
- "page_size": "letter"
+ "page_size": "auto"
},
"template": null,
"template_version": null
@@ -657,9 +636,9 @@
"shipping_details": null,
"starting_balance": 0,
"statement_descriptor": "Zulip Cloud Standard",
- "status": "open",
+ "status": "draft",
"status_transitions": {
- "finalized_at": 1000000000,
+ "finalized_at": null,
"marked_uncollectible_at": null,
"paid_at": null,
"voided_at": null
@@ -675,21 +654,16 @@
"webhooks_delivered_at": 1000000000
},
"previous_attributes": {
- "automatically_finalizes_at": 1000000000,
- "effective_at": null,
- "ending_balance": null,
- "hosted_invoice_url": null,
- "invoice_pdf": null,
- "number": null,
- "rendering": {
- "pdf": {
- "page_size": "auto"
- }
+ "amount_due": 0,
+ "amount_remaining": 0,
+ "lines": {
+ "data": [],
+ "total_count": 0
},
- "status": "draft",
- "status_transitions": {
- "finalized_at": null
- }
+ "subtotal": 0,
+ "subtotal_excluding_tax": 0,
+ "total": 0,
+ "total_excluding_tax": 0
}
},
"id": "downgrade_realm_and_void_open_invoices--Event.list.2.json",
@@ -708,11 +682,58 @@
"data": {
"object": {
"amount": 984000,
+ "currency": "usd",
+ "customer": "downgrade_realm_and_void_open_invoices--Customer.create.1.json",
+ "date": 1000000000,
+ "description": "Zulip Cloud Standard",
+ "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": {},
+ "net_amount": 984000,
+ "object": "invoiceitem",
+ "parent": null,
+ "period": {
+ "end": 1357095845,
+ "start": 1325473445
+ },
+ "pricing": {
+ "price_details": {
+ "price": "price_NORMALIZED",
+ "product": "prod_NORMALIZED"
+ },
+ "type": "price_details",
+ "unit_amount_decimal": "8000"
+ },
+ "proration": false,
+ "quantity": 123,
+ "tax_rates": [],
+ "test_clock": null
+ }
+ },
+ "id": "downgrade_realm_and_void_open_invoices--Event.list.2.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": "invoiceitem.created"
+ },
+ {
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount": 10000,
"amount_capturable": 0,
"amount_details": {
"tip": {}
},
- "amount_received": 0,
+ "amount_received": 10000,
"application": null,
"application_fee_amount": null,
"automatic_payment_methods": null,
@@ -723,18 +744,22 @@
"confirmation_method": "automatic",
"created": 1000000000,
"currency": "usd",
- "customer": "downgrade_realm_and_void_open_invoices--Customer.create.1.json",
+ "customer": "cus_NORMALIZED",
"description": "Payment for Invoice",
"excluded_payment_method_types": null,
"id": "downgrade_realm_and_void_open_invoices--Event.list.2.json",
"last_payment_error": null,
- "latest_charge": null,
+ "latest_charge": "downgrade_realm_and_void_open_invoices--Event.list.2.json",
"livemode": false,
"metadata": {},
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
- "payment_method": null,
+ "payment_details": {
+ "customer_reference": null,
+ "order_reference": "in_1SScEDRVfKEFJaqcQpXETM"
+ },
+ "payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
@@ -757,9 +782,9 @@
"setup_future_usage": null,
"shipping": null,
"source": null,
- "statement_descriptor": "Zulip Cloud Standard",
+ "statement_descriptor": "Zulip Basic",
"statement_descriptor_suffix": null,
- "status": "requires_payment_method",
+ "status": "succeeded",
"transfer_data": null,
"transfer_group": null
}
@@ -769,227 +794,126 @@
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "downgrade_realm_and_void_open_invoices--Event.list.2.json",
- "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ "id": null,
+ "idempotency_key": "downgrade_realm_and_void_open_invoices--Event.list.2.json-initial_attempt-910e934bba9d28ccf"
},
- "type": "payment_intent.created"
+ "type": "payment_intent.succeeded"
},
{
"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": 0,
- "amount_remaining": 984000,
- "amount_shipping": 0,
+ "amount": 10000,
+ "amount_captured": 10000,
+ "amount_refunded": 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": 1000000000,
- "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",
- "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": null,
- "ending_balance": null,
- "footer": null,
- "from_invoice": null,
- "hosted_invoice_url": null,
- "id": "downgrade_realm_and_void_open_invoices--Event.list.2.json",
- "invoice_pdf": null,
- "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": {
- "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": null,
- "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": "auto"
+ "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"
},
- "template": null,
- "template_version": null
- },
- "shipping_cost": null,
- "shipping_details": null,
- "starting_balance": 0,
- "statement_descriptor": "Zulip Cloud Standard",
- "status": "draft",
- "status_transitions": {
- "finalized_at": null,
- "marked_uncollectible_at": null,
- "paid_at": null,
- "voided_at": null
+ "email": null,
+ "name": "John Doe",
+ "phone": null,
+ "tax_id": 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_due": 0,
- "amount_remaining": 0,
- "lines": {
- "data": [],
- "total_count": 0
- },
- "subtotal": 0,
- "subtotal_excluding_tax": 0,
- "total": 0,
- "total_excluding_tax": 0
- }
- },
- "id": "downgrade_realm_and_void_open_invoices--Event.list.2.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.updated"
- },
- {
- "api_version": "2025-10-29.clover",
- "created": 1000000000,
- "data": {
- "object": {
- "amount": 984000,
+ "calculated_statement_descriptor": "ZULIP BASIC",
+ "captured": true,
+ "created": 1000000000,
"currency": "usd",
- "customer": "downgrade_realm_and_void_open_invoices--Customer.create.1.json",
- "date": 1000000000,
- "description": "Zulip Cloud Standard",
- "discountable": false,
- "discounts": [],
+ "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": "downgrade_realm_and_void_open_invoices--Event.list.2.json",
- "invoice": "downgrade_realm_and_void_open_invoices--Event.list.2.json",
"livemode": false,
"metadata": {},
- "net_amount": 984000,
- "object": "invoiceitem",
- "parent": null,
- "period": {
- "end": 1357095845,
- "start": 1325473445
+ "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"
},
- "pricing": {
- "price_details": {
- "price": "price_NORMALIZED",
- "product": "prod_NORMALIZED"
+ "paid": true,
+ "payment_intent": "downgrade_realm_and_void_open_invoices--Event.list.2.json",
+ "payment_method": "pm_NORMALIZED",
+ "payment_method_details": {
+ "card": {
+ "amount_authorized": 10000,
+ "authorization_code": "354484",
+ "brand": "visa",
+ "checks": {
+ "address_line1_check": "pass",
+ "address_postal_code_check": "pass",
+ "cvc_check": null
+ },
+ "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": "price_details",
- "unit_amount_decimal": "8000"
+ "type": "card"
},
- "proration": false,
- "quantity": 123,
- "tax_rates": [],
- "test_clock": null
+ "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": "downgrade_realm_and_void_open_invoices--Event.list.2.json",
@@ -997,10 +921,10 @@
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "downgrade_realm_and_void_open_invoices--Event.list.2.json",
- "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ "id": null,
+ "idempotency_key": "downgrade_realm_and_void_open_invoices--Event.list.2.json-initial_attempt-910e934bba9d28ccf"
},
- "type": "invoiceitem.created"
+ "type": "charge.succeeded"
},
{
"api_version": "2025-10-29.clover",
@@ -1117,7 +1041,7 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "downgrade_realm_and_void_open_invoices--Event.list.2.json",
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 bfeba8defba..a5ca1d0d9f2 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
@@ -5,23 +5,411 @@
"created": 1000000000,
"data": {
"object": {
- "amount_paid": 984000,
- "amount_requested": 984000,
+ "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": "downgrade_realm_and_void_open_invoices--Event.list.3.json",
- "invoice": "in_NORMALIZED",
- "is_default": false,
+ "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_1SSdAvRVfKEFJaqcB11k6f"
+ },
+ "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": "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.3.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ },
+ "type": "payment_intent.canceled"
+ },
+ {
+ "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",
+ "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": "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"
+ },
"livemode": false,
- "object": "invoice_payment",
- "payment": {
- "payment_record": "pr_test_NORMALIZEDI0LJx7w41RVfKEFJaqcKBs",
- "type": "payment_record"
+ "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": {
- "canceled_at": null,
- "paid_at": 1000000000
+ "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": "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.3.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,
+ "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": "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": "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"
+ },
+ "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
+ },
+ "previous_attributes": {
+ "amount_paid": 0,
+ "amount_remaining": 984000,
+ "auto_advance": true,
+ "status": "open",
+ "status_transitions": {
+ "paid_at": null
}
}
},
@@ -30,10 +418,365 @@
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "downgrade_realm_and_void_open_invoices--Event.list.2.json",
+ "id": "downgrade_realm_and_void_open_invoices--Event.list.3.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "invoice_payment.paid"
+ "type": "invoice.updated"
+ },
+ {
+ "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": 0,
+ "amount_remaining": 984000,
+ "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": "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"
+ },
+ "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": "open",
+ "status_transitions": {
+ "finalized_at": 1000000000,
+ "marked_uncollectible_at": null,
+ "paid_at": null,
+ "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": "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.3.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ },
+ "type": "invoice.finalized"
+ },
+ {
+ "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": 0,
+ "amount_remaining": 984000,
+ "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": "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"
+ },
+ "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": "open",
+ "status_transitions": {
+ "finalized_at": 1000000000,
+ "marked_uncollectible_at": null,
+ "paid_at": null,
+ "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": {
+ "automatically_finalizes_at": 1000000000,
+ "effective_at": null,
+ "ending_balance": null,
+ "hosted_invoice_url": null,
+ "invoice_pdf": null,
+ "number": null,
+ "rendering": {
+ "pdf": {
+ "page_size": "auto"
+ }
+ },
+ "status": "draft",
+ "status_transitions": {
+ "finalized_at": null
+ }
+ }
+ },
+ "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.3.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ },
+ "type": "invoice.updated"
},
{
"api_version": "2025-10-29.clover",
@@ -49,8 +792,8 @@
"application": null,
"application_fee_amount": null,
"automatic_payment_methods": null,
- "canceled_at": 1000000000,
- "cancellation_reason": "requested_by_customer",
+ "canceled_at": null,
+ "cancellation_reason": null,
"capture_method": "automatic",
"client_secret": "NORMALIZED",
"confirmation_method": "automatic",
@@ -59,7 +802,7 @@
"customer": "cus_NORMALIZED",
"description": "Payment for Invoice",
"excluded_payment_method_types": null,
- "id": "downgrade_realm_and_void_open_invoices--Event.list.2.json",
+ "id": "downgrade_realm_and_void_open_invoices--Event.list.3.json",
"last_payment_error": null,
"latest_charge": null,
"livemode": false,
@@ -67,10 +810,6 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
- "payment_details": {
- "customer_reference": null,
- "order_reference": "in_1SPPEdRVfKEFJaqcsMi1HQ"
- },
"payment_method": null,
"payment_method_configuration_details": null,
"payment_method_options": {
@@ -96,7 +835,7 @@
"source": null,
"statement_descriptor": "Zulip Cloud Standard",
"statement_descriptor_suffix": null,
- "status": "canceled",
+ "status": "requires_payment_method",
"transfer_data": null,
"transfer_group": null
}
@@ -106,10 +845,10 @@
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "downgrade_realm_and_void_open_invoices--Event.list.2.json",
+ "id": "downgrade_realm_and_void_open_invoices--Event.list.3.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "payment_intent.canceled"
+ "type": "payment_intent.created"
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Invoice.create.1.json b/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Invoice.create.1.json
index 72bc9a9e9c6..454a9c4a230 100644
--- a/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Invoice.create.1.json
+++ b/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Invoice.create.1.json
@@ -109,5 +109,5 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Invoice.create.2.json b/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Invoice.create.2.json
index 75045dd0bcb..eb8d3a64724 100644
--- a/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Invoice.create.2.json
+++ b/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Invoice.create.2.json
@@ -101,5 +101,5 @@
"total_excluding_tax": 0,
"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.create.1.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.1.json
index db36d210b3a..fc86131fffb 100644
--- a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.1.json
+++ b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.1.json
@@ -101,5 +101,5 @@
"total_excluding_tax": 0,
"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.create.2.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.2.json
index 054d1735963..b2e073c299d 100644
--- a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.2.json
+++ b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.2.json
@@ -101,5 +101,5 @@
"total_excluding_tax": 0,
"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.create.3.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.3.json
index 615f91b6570..6f02327f491 100644
--- a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.3.json
+++ b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.3.json
@@ -101,5 +101,5 @@
"total_excluding_tax": 0,
"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.create.4.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.4.json
index 2d6e9366134..ca4f09c59db 100644
--- a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.4.json
+++ b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.4.json
@@ -101,5 +101,5 @@
"total_excluding_tax": 0,
"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.create.5.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.5.json
index a0696dd0fbd..04c0d057b26 100644
--- a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.5.json
+++ b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.5.json
@@ -101,5 +101,5 @@
"total_excluding_tax": 0,
"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.create.6.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.6.json
index 5359bba7e53..4ab45c97c47 100644
--- a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.6.json
+++ b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.6.json
@@ -101,5 +101,5 @@
"total_excluding_tax": 0,
"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.create.7.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.7.json
index 33223eaf399..40b45ae9fc6 100644
--- a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.7.json
+++ b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.7.json
@@ -101,5 +101,5 @@
"total_excluding_tax": 0,
"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.create.8.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.8.json
index 4063600f3a1..17eef772043 100644
--- a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.8.json
+++ b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.8.json
@@ -101,5 +101,5 @@
"total_excluding_tax": 0,
"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 312fa36e4f7..28e2a371935 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": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.finalize_invoice.8.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.finalize_invoice.8.json
index fc4dfcd49df..e1bf13b20e3 100644
--- a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.finalize_invoice.8.json
+++ b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.finalize_invoice.8.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.list.10.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.10.json
index cdae782a75d..713c74700e3 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": 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.14.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.14.json
index 942b108bb3d..16c7713da41 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": null
+ "webhooks_delivered_at": 1000000000
}
],
"has_more": true,
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 fa095747195..3979360065b 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": null
+ "webhooks_delivered_at": 1000000000
}
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 8f2fb7d9c79..cc7f244005a 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
@@ -5,150 +5,24 @@
"created": 1000000000,
"data": {
"object": {
- "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",
+ "amount_paid": 119524,
+ "amount_requested": 119524,
"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": "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"
- },
+ "invoice": "in_NORMALIZED",
+ "is_default": true,
"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_intent": "pi_NORMALIZED",
+ "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": -559,
- "statement_descriptor": "Zulip Cloud Plus",
- "status": "open",
+ "status": "paid",
"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
+ "canceled_at": null,
+ "paid_at": 1000000000
+ }
}
},
"id": "fixed_price_plans--Event.list.1.json",
@@ -156,10 +30,10 @@
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "fixed_price_plans--Event.list.1.json",
- "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ "id": null,
+ "idempotency_key": null
},
- "type": "invoice.finalized"
+ "type": "invoice_payment.paid"
}
],
"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 991b1951f5f..896318ceed6 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
@@ -156,13 +156,13 @@
"total_excluding_tax": 984000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "fixed_price_plans--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 2,
+ "pending_webhooks": 0,
"request": {
"id": "fixed_price_plans--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -325,7 +325,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 +340,7 @@
"id": "fixed_price_plans--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 2,
+ "pending_webhooks": 0,
"request": {
"id": "fixed_price_plans--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -503,7 +503,7 @@
"total_excluding_tax": 984000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "fixed_price_plans--Event.list.2.json",
@@ -672,7 +672,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,
@@ -930,7 +930,7 @@
"total_excluding_tax": 984000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"amount_due": 0,
@@ -1117,7 +1117,7 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "fixed_price_plans--Event.list.2.json",
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 12a2e2acc54..d0163faa35c 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,40 +1,5 @@
{
"data": [
- {
- "api_version": "2025-10-29.clover",
- "created": 1000000000,
- "data": {
- "object": {
- "amount_paid": 984000,
- "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,
@@ -69,7 +34,7 @@
"on_behalf_of": null,
"payment_details": {
"customer_reference": null,
- "order_reference": "in_1SPOxERVfKEFJaqcXDsMwg"
+ "order_reference": "in_1SSdLxRVfKEFJaqcv1qQ4t"
},
"payment_method": null,
"payment_method_configuration_details": null,
diff --git a/corporate/tests/stripe_fixtures/fixed_price_plans--Invoice.create.1.json b/corporate/tests/stripe_fixtures/fixed_price_plans--Invoice.create.1.json
index 16041c048ce..514175f9641 100644
--- a/corporate/tests/stripe_fixtures/fixed_price_plans--Invoice.create.1.json
+++ b/corporate/tests/stripe_fixtures/fixed_price_plans--Invoice.create.1.json
@@ -109,5 +109,5 @@
"total_excluding_tax": 0,
"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.create.2.json b/corporate/tests/stripe_fixtures/fixed_price_plans--Invoice.create.2.json
index 48697f9b61f..41509990202 100644
--- a/corporate/tests/stripe_fixtures/fixed_price_plans--Invoice.create.2.json
+++ b/corporate/tests/stripe_fixtures/fixed_price_plans--Invoice.create.2.json
@@ -101,5 +101,5 @@
"total_excluding_tax": 0,
"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.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/fixed_price_plans--Invoice.finalize_invoice.1.json
index 0f4b5f66cc6..350c9bc2d8d 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": 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 c601faae4c4..0a1061a16fe 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
@@ -298,7 +298,7 @@
"total_excluding_tax": 984000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
],
"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 441e5d03f83..e2cc7560c06 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": null
+ "webhooks_delivered_at": 1000000000
}
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 a930387d9bd..c33afc2ff1e 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
@@ -5,40 +5,23 @@
"created": 1000000000,
"data": {
"object": {
- "address": null,
- "balance": 0,
+ "amount_paid": 280000,
+ "amount_requested": 280000,
"created": 1000000000,
- "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
- },
+ "currency": "usd",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.1.json",
+ "invoice": "in_NORMALIZED",
+ "is_default": true,
"livemode": false,
- "metadata": {
- "remote_server_str": "demo.example.com 6cde5f7a-1f7",
- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"
+ "object": "invoice_payment",
+ "payment": {
+ "payment_intent": "pi_NORMALIZED",
+ "type": "payment_intent"
},
- "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
+ "status": "paid",
+ "status_transitions": {
+ "canceled_at": null,
+ "paid_at": 1000000000
}
}
},
@@ -47,10 +30,10 @@
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.1.json",
- "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ "id": null,
+ "idempotency_key": null
},
- "type": "customer.updated"
+ "type": "invoice_payment.paid"
}
],
"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 b1fefdd290c..d4ad515c886 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,340 +1,5 @@
{
"data": [
- {
- "api_version": "2025-10-29.clover",
- "created": 1000000000,
- "data": {
- "object": {
- "amount": 4300,
- "amount_captured": 4300,
- "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": "free_trial_not_available_for_complimentary_access_customer--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": "free_trial_not_available_for_complimentary_access_customer--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": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
- "payment_method": "pm_NORMALIZED",
- "payment_method_details": {
- "card": {
- "amount_authorized": 4300,
- "authorization_code": "011186",
- "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": 4300,
- "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": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 2,
- "request": {
- "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
- "idempotency_key": "00000000-0000-0000-0000-000000000000"
- },
- "type": "charge.succeeded"
- },
- {
- "api_version": "2025-10-29.clover",
- "created": 1000000000,
- "data": {
- "object": {
- "account_country": "US",
- "account_name": "NORMALIZED",
- "account_tax_ids": null,
- "amount_due": 4300,
- "amount_overpaid": 0,
- "amount_paid": 0,
- "amount_remaining": 4300,
- "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": "charge_automatically",
- "created": 1000000000,
- "currency": "usd",
- "custom_fields": null,
- "customer": "free_trial_not_available_for_complimentary_access_customer--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": "free_trial_not_available_for_complimentary_access_customer--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": -2000,
- "currency": "usd",
- "description": "$20.00/month new customer discount",
- "discount_amounts": [],
- "discountable": false,
- "discounts": [],
- "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
- "invoice": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
- "livemode": false,
- "metadata": {},
- "object": "line_item",
- "parent": {
- "invoice_item_details": {
- "invoice_item": "free_trial_not_available_for_complimentary_access_customer--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": "-2000"
- },
- "quantity": 1,
- "taxes": []
- },
- {
- "amount": 6300,
- "currency": "usd",
- "description": "Zulip Basic",
- "discount_amounts": [],
- "discountable": false,
- "discounts": [],
- "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
- "invoice": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
- "livemode": false,
- "metadata": {},
- "object": "line_item",
- "parent": {
- "invoice_item_details": {
- "invoice_item": "free_trial_not_available_for_complimentary_access_customer--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": "350"
- },
- "quantity": 18,
- "taxes": []
- }
- ],
- "has_more": false,
- "object": "list",
- "total_count": 2,
- "url": "/v1/invoices/free_trial_not_available_for_complimentary_access_customer--Event.list.2.json/lines"
- },
- "livemode": false,
- "metadata": {
- "billing_schedule": "2",
- "current_plan_id": "None",
- "license_management": "automatic",
- "licenses": "18",
- "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": "open",
- "status_transitions": {
- "finalized_at": 1000000000,
- "marked_uncollectible_at": null,
- "paid_at": null,
- "voided_at": null
- },
- "subtotal": 4300,
- "subtotal_excluding_tax": 4300,
- "test_clock": null,
- "total": 4300,
- "total_discount_amounts": [],
- "total_excluding_tax": 4300,
- "total_pretax_credit_amounts": [],
- "total_taxes": [],
- "webhooks_delivered_at": null
- }
- },
- "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.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.finalized"
- },
{
"api_version": "2025-10-29.clover",
"created": 1000000000,
@@ -530,7 +195,7 @@
"total_excluding_tax": 4300,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"effective_at": null,
@@ -631,6 +296,41 @@
},
"type": "payment_intent.created"
},
+ {
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount_paid": 280000,
+ "amount_requested": 280000,
+ "created": 1000000000,
+ "currency": "usd",
+ "id": "free_trial_not_available_for_complimentary_access_customer--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": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": null,
+ "idempotency_key": null
+ },
+ "type": "invoice_payment.paid"
+ },
{
"api_version": "2025-10-29.clover",
"created": 1000000000,
@@ -826,7 +526,7 @@
"total_excluding_tax": 4300,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"amount_due": 6300,
@@ -939,6 +639,41 @@
},
"type": "invoiceitem.created"
},
+ {
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount_paid": 176000,
+ "amount_requested": 176000,
+ "created": 1000000000,
+ "currency": "usd",
+ "id": "free_trial_not_available_for_complimentary_access_customer--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": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": null,
+ "idempotency_key": null
+ },
+ "type": "invoice_payment.paid"
+ },
{
"api_version": "2025-10-29.clover",
"created": 1000000000,
@@ -1094,7 +829,7 @@
"total_excluding_tax": 6300,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"amount_due": 0,
@@ -1280,7 +1015,7 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
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 98238833011..96535599f1f 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
@@ -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_complimentary_access_customer--Event.list.3.json",
@@ -203,7 +203,7 @@
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.3.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "invoice.payment_succeeded"
@@ -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_complimentary_access_customer--Event.list.3.json",
@@ -411,7 +411,7 @@
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.3.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "invoice.paid"
@@ -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,
@@ -629,46 +629,11 @@
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.3.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": 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,
@@ -695,7 +660,7 @@
"excluded_payment_method_types": null,
"id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"last_payment_error": null,
- "latest_charge": "ch_NORMALIZED",
+ "latest_charge": "free_trial_not_available_for_complimentary_access_customer--Event.list.3.json",
"livemode": false,
"metadata": {},
"next_action": null,
@@ -703,7 +668,7 @@
"on_behalf_of": null,
"payment_details": {
"customer_reference": null,
- "order_reference": "in_1SPPAsRVfKEFJaqc5Vd0vg"
+ "order_reference": "in_1SSd7DRVfKEFJaqc5GoCnU"
},
"payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
@@ -740,10 +705,345 @@
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.3.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "payment_intent.succeeded"
+ },
+ {
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount": 4300,
+ "amount_captured": 4300,
+ "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": "free_trial_not_available_for_complimentary_access_customer--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": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
+ "payment_method": "pm_NORMALIZED",
+ "payment_method_details": {
+ "card": {
+ "amount_authorized": 4300,
+ "authorization_code": "120937",
+ "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": 4300,
+ "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": "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.3.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ },
+ "type": "charge.succeeded"
+ },
+ {
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "account_country": "US",
+ "account_name": "NORMALIZED",
+ "account_tax_ids": null,
+ "amount_due": 4300,
+ "amount_overpaid": 0,
+ "amount_paid": 0,
+ "amount_remaining": 4300,
+ "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": "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": "free_trial_not_available_for_complimentary_access_customer--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": -2000,
+ "currency": "usd",
+ "description": "$20.00/month new customer discount",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
+ "invoice": "free_trial_not_available_for_complimentary_access_customer--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": "-2000"
+ },
+ "quantity": 1,
+ "taxes": []
+ },
+ {
+ "amount": 6300,
+ "currency": "usd",
+ "description": "Zulip Basic",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
+ "invoice": "free_trial_not_available_for_complimentary_access_customer--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": "350"
+ },
+ "quantity": 18,
+ "taxes": []
+ }
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 2,
+ "url": "/v1/invoices/free_trial_not_available_for_complimentary_access_customer--Event.list.2.json/lines"
+ },
+ "livemode": false,
+ "metadata": {
+ "billing_schedule": "2",
+ "current_plan_id": "None",
+ "license_management": "automatic",
+ "licenses": "18",
+ "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": "open",
+ "status_transitions": {
+ "finalized_at": 1000000000,
+ "marked_uncollectible_at": null,
+ "paid_at": null,
+ "voided_at": null
+ },
+ "subtotal": 4300,
+ "subtotal_excluding_tax": 4300,
+ "test_clock": null,
+ "total": 4300,
+ "total_discount_amounts": [],
+ "total_excluding_tax": 4300,
+ "total_pretax_credit_amounts": [],
+ "total_taxes": [],
+ "webhooks_delivered_at": 1000000000
+ }
+ },
+ "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.finalized"
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Invoice.create.1.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Invoice.create.1.json
index ebb460c6ba9..933a600b2ce 100644
--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Invoice.create.1.json
+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Invoice.create.1.json
@@ -108,5 +108,5 @@
"total_excluding_tax": 0,
"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_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 54a08302c6e..460c360ed75 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": null
+ "webhooks_delivered_at": 1000000000
}
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 ab651855717..dcad0ee91a4 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": null
+ "webhooks_delivered_at": 1000000000
}
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 ab8155648a6..c496f3b2561 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
@@ -5,40 +5,23 @@
"created": 1000000000,
"data": {
"object": {
- "address": null,
- "balance": 0,
+ "amount_paid": 280000,
+ "amount_requested": 280000,
"created": 1000000000,
- "currency": null,
- "default_source": null,
- "delinquent": false,
- "description": "demo.example.com 6cde5f7a-1f7",
- "discount": null,
- "email": "[email protected]",
- "id": "free_trial_not_available_for_previous_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
- },
+ "currency": "usd",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.1.json",
+ "invoice": "in_NORMALIZED",
+ "is_default": true,
"livemode": false,
- "metadata": {
- "remote_server_str": "demo.example.com 6cde5f7a-1f7",
- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"
+ "object": "invoice_payment",
+ "payment": {
+ "payment_intent": "pi_NORMALIZED",
+ "type": "payment_intent"
},
- "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
+ "status": "paid",
+ "status_transitions": {
+ "canceled_at": null,
+ "paid_at": 1000000000
}
}
},
@@ -47,10 +30,10 @@
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.1.json",
- "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ "id": null,
+ "idempotency_key": null
},
- "type": "customer.updated"
+ "type": "invoice_payment.paid"
}
],
"has_more": true,
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 2db9351061d..65c91675064 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,340 +1,5 @@
{
"data": [
- {
- "api_version": "2025-10-29.clover",
- "created": 1000000000,
- "data": {
- "object": {
- "amount": 4300,
- "amount_captured": 4300,
- "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": "free_trial_not_available_for_previous_complimentary_access_customer--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": "free_trial_not_available_for_previous_complimentary_access_customer--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": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
- "payment_method": "pm_NORMALIZED",
- "payment_method_details": {
- "card": {
- "amount_authorized": 4300,
- "authorization_code": "951398",
- "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": 4300,
- "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": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 2,
- "request": {
- "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
- "idempotency_key": "00000000-0000-0000-0000-000000000000"
- },
- "type": "charge.succeeded"
- },
- {
- "api_version": "2025-10-29.clover",
- "created": 1000000000,
- "data": {
- "object": {
- "account_country": "US",
- "account_name": "NORMALIZED",
- "account_tax_ids": null,
- "amount_due": 4300,
- "amount_overpaid": 0,
- "amount_paid": 0,
- "amount_remaining": 4300,
- "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": "charge_automatically",
- "created": 1000000000,
- "currency": "usd",
- "custom_fields": null,
- "customer": "free_trial_not_available_for_previous_complimentary_access_customer--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": "free_trial_not_available_for_previous_complimentary_access_customer--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": -2000,
- "currency": "usd",
- "description": "$20.00/month new customer discount",
- "discount_amounts": [],
- "discountable": false,
- "discounts": [],
- "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
- "invoice": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
- "livemode": false,
- "metadata": {},
- "object": "line_item",
- "parent": {
- "invoice_item_details": {
- "invoice_item": "free_trial_not_available_for_previous_complimentary_access_customer--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": "-2000"
- },
- "quantity": 1,
- "taxes": []
- },
- {
- "amount": 6300,
- "currency": "usd",
- "description": "Zulip Basic",
- "discount_amounts": [],
- "discountable": false,
- "discounts": [],
- "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
- "invoice": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
- "livemode": false,
- "metadata": {},
- "object": "line_item",
- "parent": {
- "invoice_item_details": {
- "invoice_item": "free_trial_not_available_for_previous_complimentary_access_customer--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": "350"
- },
- "quantity": 18,
- "taxes": []
- }
- ],
- "has_more": false,
- "object": "list",
- "total_count": 2,
- "url": "/v1/invoices/free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json/lines"
- },
- "livemode": false,
- "metadata": {
- "billing_schedule": "2",
- "current_plan_id": "None",
- "license_management": "automatic",
- "licenses": "18",
- "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": "open",
- "status_transitions": {
- "finalized_at": 1000000000,
- "marked_uncollectible_at": null,
- "paid_at": null,
- "voided_at": null
- },
- "subtotal": 4300,
- "subtotal_excluding_tax": 4300,
- "test_clock": null,
- "total": 4300,
- "total_discount_amounts": [],
- "total_excluding_tax": 4300,
- "total_pretax_credit_amounts": [],
- "total_taxes": [],
- "webhooks_delivered_at": 1000000000
- }
- },
- "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.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.finalized"
- },
{
"api_version": "2025-10-29.clover",
"created": 1000000000,
@@ -939,6 +604,76 @@
},
"type": "invoiceitem.created"
},
+ {
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount_paid": 10000,
+ "amount_requested": 10000,
+ "created": 1000000000,
+ "currency": "usd",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--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": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": null,
+ "idempotency_key": null
+ },
+ "type": "invoice_payment.paid"
+ },
+ {
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount_paid": 4300,
+ "amount_requested": 4300,
+ "created": 1000000000,
+ "currency": "usd",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--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": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": null,
+ "idempotency_key": null
+ },
+ "type": "invoice_payment.paid"
+ },
{
"api_version": "2025-10-29.clover",
"created": 1000000000,
@@ -1094,7 +829,7 @@
"total_excluding_tax": 6300,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"amount_due": 0,
@@ -1280,7 +1015,7 @@
"total_excluding_tax": 0,
"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",
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 15ce48aca2d..bfaff881499 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
@@ -203,7 +203,7 @@
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.3.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "invoice.payment_succeeded"
@@ -411,7 +411,7 @@
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.3.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "invoice.paid"
@@ -629,46 +629,11 @@
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.3.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": 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,
@@ -695,7 +660,7 @@
"excluded_payment_method_types": null,
"id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"last_payment_error": null,
- "latest_charge": "ch_NORMALIZED",
+ "latest_charge": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.3.json",
"livemode": false,
"metadata": {},
"next_action": null,
@@ -703,7 +668,7 @@
"on_behalf_of": null,
"payment_details": {
"customer_reference": null,
- "order_reference": "in_1SPPB6RVfKEFJaqchIp8Ba"
+ "order_reference": "in_1SSd7RRVfKEFJaqcxTlviS"
},
"payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
@@ -740,10 +705,345 @@
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.3.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "payment_intent.succeeded"
+ },
+ {
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount": 4300,
+ "amount_captured": 4300,
+ "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": "free_trial_not_available_for_previous_complimentary_access_customer--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": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
+ "payment_method": "pm_NORMALIZED",
+ "payment_method_details": {
+ "card": {
+ "amount_authorized": 4300,
+ "authorization_code": "377936",
+ "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": 4300,
+ "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": "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.3.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ },
+ "type": "charge.succeeded"
+ },
+ {
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "account_country": "US",
+ "account_name": "NORMALIZED",
+ "account_tax_ids": null,
+ "amount_due": 4300,
+ "amount_overpaid": 0,
+ "amount_paid": 0,
+ "amount_remaining": 4300,
+ "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": "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": "free_trial_not_available_for_previous_complimentary_access_customer--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": -2000,
+ "currency": "usd",
+ "description": "$20.00/month new customer discount",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
+ "invoice": "free_trial_not_available_for_previous_complimentary_access_customer--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": "-2000"
+ },
+ "quantity": 1,
+ "taxes": []
+ },
+ {
+ "amount": 6300,
+ "currency": "usd",
+ "description": "Zulip Basic",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
+ "invoice": "free_trial_not_available_for_previous_complimentary_access_customer--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": "350"
+ },
+ "quantity": 18,
+ "taxes": []
+ }
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 2,
+ "url": "/v1/invoices/free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json/lines"
+ },
+ "livemode": false,
+ "metadata": {
+ "billing_schedule": "2",
+ "current_plan_id": "None",
+ "license_management": "automatic",
+ "licenses": "18",
+ "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": "open",
+ "status_transitions": {
+ "finalized_at": 1000000000,
+ "marked_uncollectible_at": null,
+ "paid_at": null,
+ "voided_at": null
+ },
+ "subtotal": 4300,
+ "subtotal_excluding_tax": 4300,
+ "test_clock": null,
+ "total": 4300,
+ "total_discount_amounts": [],
+ "total_excluding_tax": 4300,
+ "total_pretax_credit_amounts": [],
+ "total_taxes": [],
+ "webhooks_delivered_at": 1000000000
+ }
+ },
+ "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.finalized"
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Invoice.create.1.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Invoice.create.1.json
index 605156c071c..fd1d1254670 100644
--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Invoice.create.1.json
+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Invoice.create.1.json
@@ -108,5 +108,5 @@
"total_excluding_tax": 0,
"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.create.1.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.create.1.json
index a35f59c3558..46b631a0882 100644
--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.create.1.json
+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.create.1.json
@@ -101,5 +101,5 @@
"total_excluding_tax": 0,
"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.create.2.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.create.2.json
index ce00e9e4fc2..29c97d5b648 100644
--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.create.2.json
+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.create.2.json
@@ -101,5 +101,5 @@
"total_excluding_tax": 0,
"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.create.3.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.create.3.json
index b5a544579b1..cb3e2dd8071 100644
--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.create.3.json
+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.create.3.json
@@ -101,5 +101,5 @@
"total_excluding_tax": 0,
"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_invoice--Event.list.1.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Event.list.1.json
index 09c3c30f22b..0f0e19dc3a8 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
@@ -5,24 +5,150 @@
"created": 1000000000,
"data": {
"object": {
- "amount_paid": 984000,
- "amount_requested": 984000,
+ "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": "free_trial_upgrade_by_invoice--Event.list.1.json",
- "invoice": "in_NORMALIZED",
- "is_default": false,
+ "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": "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": 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/free_trial_upgrade_by_invoice--Event.list.1.json/lines"
+ },
"livemode": false,
- "object": "invoice_payment",
- "payment": {
- "payment_record": "pr_test_NORMALIZEDIIdq2wc41RVfKEFJaqcWnQ",
- "type": "payment_record"
+ "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
},
- "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": 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": "free_trial_upgrade_by_invoice--Event.list.1.json",
@@ -30,10 +156,10 @@
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "free_trial_upgrade_by_invoice--Event.list.1.json",
- "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ "id": null,
+ "idempotency_key": null
},
- "type": "invoice_payment.paid"
+ "type": "invoice.sent"
}
],
"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 19aeebc46d7..7ef2de6131d 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
@@ -156,7 +156,7 @@
"total_excluding_tax": 984000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"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 b63c3206b19..8850f73f511 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,40 +1,5 @@
{
"data": [
- {
- "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,
@@ -69,7 +34,7 @@
"on_behalf_of": null,
"payment_details": {
"customer_reference": null,
- "order_reference": "in_1SPR0RRVfKEFJaqcVJ9kws"
+ "order_reference": "in_1SSdNERVfKEFJaqct9lAuw"
},
"payment_method": null,
"payment_method_configuration_details": null,
@@ -104,7 +69,7 @@
"id": "free_trial_upgrade_by_invoice--Event.list.3.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 2,
+ "pending_webhooks": 0,
"request": {
"id": "free_trial_upgrade_by_invoice--Event.list.3.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -273,7 +238,7 @@
"id": "free_trial_upgrade_by_invoice--Event.list.3.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 2,
+ "pending_webhooks": 0,
"request": {
"id": "free_trial_upgrade_by_invoice--Event.list.3.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -451,7 +416,7 @@
"id": "free_trial_upgrade_by_invoice--Event.list.3.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 2,
+ "pending_webhooks": 0,
"request": {
"id": "free_trial_upgrade_by_invoice--Event.list.3.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
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 a577e71cfc2..82d97229c84 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
@@ -109,5 +109,5 @@
"total_excluding_tax": 0,
"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_invoice--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.finalize_invoice.1.json
index 0bf274bb733..61ef5b555e5 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
@@ -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/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 08ee1b5f1b7..17641d47fa8 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
@@ -34,9 +34,9 @@
"on_behalf_of": null,
"payment_details": {
"customer_reference": null,
- "order_reference": "in_1SQW9aRVfKEFJaqcj0gWHt"
+ "order_reference": "in_1SSdOgRVfKEFJaqcc9uev4"
},
- "payment_method": null,
+ "payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
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 c6c733b8945..8e5267b6a19 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
@@ -34,7 +34,7 @@
"on_behalf_of": null,
"payment_details": {
"customer_reference": null,
- "order_reference": "in_1SQW9xRVfKEFJaqcl2uGr5"
+ "order_reference": "in_1SSdQjRVfKEFJaqc0wzbpg"
},
"payment_method": null,
"payment_method_configuration_details": null,
@@ -238,7 +238,7 @@
"id": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.3.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 2,
+ "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"
@@ -416,12 +416,181 @@
"id": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.3.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 2,
+ "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.updated"
+ },
+ {
+ "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": 0,
+ "amount_remaining": 984000,
+ "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": "free_trial_upgrade_by_invoice_customer_fails_to_pay--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": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.2.json",
+ "invoice": "free_trial_upgrade_by_invoice_customer_fails_to_pay--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": 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.2.json/lines"
+ },
+ "livemode": false,
+ "metadata": {
+ "billing_schedule": "1",
+ "current_plan_id": "1",
+ "license_management": "manual",
+ "licenses": "123",
+ "on_free_trial": "True",
+ "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": "open",
+ "status_transitions": {
+ "finalized_at": 1000000000,
+ "marked_uncollectible_at": null,
+ "paid_at": null,
+ "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": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.3.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": null,
+ "idempotency_key": null
+ },
+ "type": "invoice.sent"
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_customer_fails_to_pay--Invoice.create.1.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_customer_fails_to_pay--Invoice.create.1.json
index 340c4ce9d4f..a09665351a1 100644
--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_customer_fails_to_pay--Invoice.create.1.json
+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_customer_fails_to_pay--Invoice.create.1.json
@@ -109,5 +109,5 @@
"total_excluding_tax": 0,
"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_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 dc807764cd9..85fc14161e7 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
@@ -5,24 +5,65 @@
"created": 1000000000,
"data": {
"object": {
- "amount_paid": 984000,
- "amount_requested": 984000,
+ "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.1.json",
- "invoice": "in_NORMALIZED",
- "is_default": false,
+ "last_payment_error": null,
+ "latest_charge": null,
"livemode": false,
- "object": "invoice_payment",
- "payment": {
- "payment_record": "pr_test_NORMALIZEDmxeXP4o41RVfKEFJaqcRSi",
- "type": "payment_record"
+ "metadata": {},
+ "next_action": null,
+ "object": "payment_intent",
+ "on_behalf_of": null,
+ "payment_details": {
+ "customer_reference": null,
+ "order_reference": "in_1SScxrRVfKEFJaqc6hrtG2"
+ },
+ "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
+ }
},
- "status": "paid",
- "status_transitions": {
- "canceled_at": null,
- "paid_at": 1000000000
- }
+ "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.1.json",
@@ -33,7 +74,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_payment.paid"
+ "type": "payment_intent.canceled"
}
],
"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 b751aacb703..e2bac5214f4 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
@@ -107,7 +107,7 @@
"livemode": false,
"metadata": {
"billing_schedule": "1",
- "current_plan_id": "1",
+ "current_plan_id": "41",
"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": null
+ "webhooks_delivered_at": 1000000000
}
},
"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 b10189dd07e..b4ffc544d98 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,40 +1,5 @@
{
"data": [
- {
- "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,
@@ -69,7 +34,7 @@
"on_behalf_of": null,
"payment_details": {
"customer_reference": null,
- "order_reference": "in_1SPR0qRVfKEFJaqcWApoT9"
+ "order_reference": "in_1SScy1RVfKEFJaqcXhN0XA"
},
"payment_method": null,
"payment_method_configuration_details": null,
@@ -104,7 +69,7 @@
"id": "free_trial_upgrade_by_invoice_with_additional_users_after_payment--Event.list.3.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 1,
+ "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"
@@ -218,7 +183,7 @@
"livemode": false,
"metadata": {
"billing_schedule": "1",
- "current_plan_id": "1",
+ "current_plan_id": "41",
"license_management": "manual",
"licenses": "123",
"on_free_trial": "True",
@@ -267,13 +232,13 @@
"total_excluding_tax": 984000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "free_trial_upgrade_by_invoice_with_additional_users_after_payment--Event.list.3.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 2,
+ "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"
@@ -387,7 +352,7 @@
"livemode": false,
"metadata": {
"billing_schedule": "1",
- "current_plan_id": "1",
+ "current_plan_id": "41",
"license_management": "manual",
"licenses": "123",
"on_free_trial": "True",
@@ -436,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,
@@ -451,7 +416,7 @@
"id": "free_trial_upgrade_by_invoice_with_additional_users_after_payment--Event.list.3.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 2,
+ "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"
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 1fb980cb89b..82e3e2019c9 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": "1",
+ "current_plan_id": "41",
"license_management": "manual",
"licenses": "123",
"on_free_trial": "True",
@@ -109,5 +109,5 @@
"total_excluding_tax": 0,
"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_invoice_with_additional_users_after_payment--Invoice.create.2.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--Invoice.create.2.json
index a5d5a1d4dd8..6705f60441a 100644
--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--Invoice.create.2.json
+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--Invoice.create.2.json
@@ -101,5 +101,5 @@
"total_excluding_tax": 0,
"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_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 c2ac08c4c2c..c8677b444f6 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": "1",
+ "current_plan_id": "41",
"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": null
+ "webhooks_delivered_at": 1000000000
}
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 ec4bf157e60..de61ad48c3b 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": "1",
+ "current_plan_id": "41",
"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": null
+ "webhooks_delivered_at": 1000000000
}
],
"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 66d8372db54..2f61dc77a9c 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": "1",
+ "current_plan_id": "41",
"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": null
+ "webhooks_delivered_at": 1000000000
}
],
"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 04002f09c16..7c21ca7bdfd 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": "1",
+ "current_plan_id": "41",
"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": null
+ "webhooks_delivered_at": 1000000000
}
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 bc956895dbe..3a8f990893b 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
@@ -5,22 +5,166 @@
"created": 1000000000,
"data": {
"object": {
- "amount_paid": null,
- "amount_requested": 48000,
+ "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": "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": "invoice_for_additional_license--Event.list.2.json",
- "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": 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"
+ },
"livemode": false,
- "object": "invoice_payment",
- "payment": {
- "payment_intent": "invoice_for_additional_license--Event.list.2.json",
- "type": "payment_intent"
+ "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": {
- "canceled_at": null,
"paid_at": null
}
}
@@ -33,7 +177,7 @@
"id": "invoice_for_additional_license--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "invoice_payment.paid"
+ "type": "invoice.updated"
},
{
"api_version": "2025-10-29.clover",
@@ -69,7 +213,7 @@
"on_behalf_of": null,
"payment_details": {
"customer_reference": null,
- "order_reference": "in_1SPOxURVfKEFJaqcp7hQgc"
+ "order_reference": "in_1SSctjRVfKEFJaqcBCZzfz"
},
"payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
@@ -104,7 +248,7 @@
"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"
@@ -173,7 +317,7 @@
"payment_method_details": {
"card": {
"amount_authorized": 48000,
- "authorization_code": "302368",
+ "authorization_code": "287882",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
@@ -231,7 +375,7 @@
"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"
@@ -1007,7 +1151,7 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "invoice_for_additional_license--Event.list.2.json",
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 b56b9f930e6..d0057671e6f 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
@@ -162,7 +162,7 @@
"id": "invoice_for_additional_license--Event.list.3.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"
@@ -337,185 +337,6 @@
"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.create.1.json b/corporate/tests/stripe_fixtures/invoice_for_additional_license--Invoice.create.1.json
index d2bd5addbda..3a45e722b2b 100644
--- a/corporate/tests/stripe_fixtures/invoice_for_additional_license--Invoice.create.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_for_additional_license--Invoice.create.1.json
@@ -109,5 +109,5 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/invoice_for_additional_license--Invoice.create.2.json b/corporate/tests/stripe_fixtures/invoice_for_additional_license--Invoice.create.2.json
index 824775f0961..4725085413c 100644
--- a/corporate/tests/stripe_fixtures/invoice_for_additional_license--Invoice.create.2.json
+++ b/corporate/tests/stripe_fixtures/invoice_for_additional_license--Invoice.create.2.json
@@ -101,5 +101,5 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
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 67740b26994..4ee949cc544 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": null
+ "webhooks_delivered_at": 1000000000
}
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 9ec1f630b68..5042e4a7950 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": null
+ "webhooks_delivered_at": 1000000000
},
{
"account_country": "US",
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 9387862f4b4..a1902ca1dee 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 0c6fd98fb91..342c8cfe6ad 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 b5b550cfe1e..0f5649b4617 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 b5b550cfe1e..0f5649b4617 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 b5b550cfe1e..0f5649b4617 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 b5b550cfe1e..0f5649b4617 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 b5b550cfe1e..0f5649b4617 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 a63a9de07d1..06fc95b8267 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
@@ -11,7 +11,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 965179861be..12a63b4670c 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
@@ -62,7 +62,7 @@
"payment_method_details": {
"card": {
"amount_authorized": 1850,
- "authorization_code": "617973",
+ "authorization_code": "793381",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
@@ -120,7 +120,7 @@
"id": "invoice_initial_remote_realm_upgrade--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 2,
+ "pending_webhooks": 0,
"request": {
"id": "invoice_initial_remote_realm_upgrade--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -1280,7 +1280,7 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "invoice_initial_remote_realm_upgrade--Event.list.2.json",
@@ -1304,7 +1304,7 @@
"currency": "usd",
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 cb3ac1b2cc2..df72f5def3c 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
@@ -634,41 +634,6 @@
},
"type": "invoice.updated"
},
- {
- "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,
@@ -703,7 +668,7 @@
"on_behalf_of": null,
"payment_details": {
"customer_reference": null,
- "order_reference": "in_1SPP7NRVfKEFJaqcxvUk8S"
+ "order_reference": "in_1SSd3kRVfKEFJaqcJ36qan"
},
"payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Invoice.create.1.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Invoice.create.1.json
index c4169c1fc4f..71c3a39a1ec 100644
--- a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Invoice.create.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Invoice.create.1.json
@@ -108,5 +108,5 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
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 068f67d804d..43c7a60e32e 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/9c36daef-29ed-478d-a237-26a7dec0f4ee/upgrade/?manual_license_management=false&tier=1",
+ "cancel_url": "http://selfhosting.testserver/realm/99423a0a-fa84-4fd7-be9a-d10b8af15320/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/9c36daef-29ed-478d-a237-26a7dec0f4ee/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
+ "success_url": "http://selfhosting.testserver/realm/99423a0a-fa84-4fd7-be9a-d10b8af15320/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 fa38c38d255..f907927dfed 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/9c36daef-29ed-478d-a237-26a7dec0f4ee/upgrade/?manual_license_management=false&tier=1",
+ "cancel_url": "http://selfhosting.testserver/realm/99423a0a-fa84-4fd7-be9a-d10b8af15320/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/9c36daef-29ed-478d-a237-26a7dec0f4ee/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
+ "success_url": "http://selfhosting.testserver/realm/99423a0a-fa84-4fd7-be9a-d10b8af15320/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.2.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Event.list.2.json
index 2c8b77f9d16..d59b2ddf10e 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
@@ -6,110 +6,59 @@
"data": {
"object": {
"amount": 4300,
- "amount_captured": 4300,
- "amount_refunded": 0,
+ "amount_capturable": 0,
+ "amount_details": {
+ "tip": {}
+ },
+ "amount_received": 4300,
"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,
+ "automatic_payment_methods": null,
+ "canceled_at": null,
+ "cancellation_reason": null,
+ "capture_method": "automatic",
+ "client_secret": "NORMALIZED",
+ "confirmation_method": "automatic",
"created": 1000000000,
"currency": "usd",
"customer": "invoice_initial_remote_server_upgrade--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": {},
+ "excluded_payment_method_types": null,
"id": "invoice_initial_remote_server_upgrade--Event.list.2.json",
+ "last_payment_error": null,
+ "latest_charge": "ch_NORMALIZED",
"livemode": false,
"metadata": {},
- "object": "charge",
+ "next_action": null,
+ "object": "payment_intent",
"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"
+ "payment_details": {
+ "customer_reference": null,
+ "order_reference": "in_1SSd7gRVfKEFJaqcRSkofk"
},
- "paid": true,
- "payment_intent": "invoice_initial_remote_server_upgrade--Event.list.2.json",
"payment_method": "pm_NORMALIZED",
- "payment_method_details": {
+ "payment_method_configuration_details": null,
+ "payment_method_options": {
"card": {
- "amount_authorized": 4300,
- "authorization_code": "579394",
- "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": 4300,
- "status": "unavailable"
- },
- "regulated_status": "unregulated",
- "three_d_secure": null,
- "wallet": null
+ "mandate_options": null,
+ "network": null,
+ "request_three_d_secure": "automatic"
},
- "type": "card"
+ "link": {
+ "persistent_token": null
+ }
},
- "radar_options": {},
+ "payment_method_types": [
+ "card",
+ "link"
+ ],
+ "processing": null,
"receipt_email": "[email protected]",
- "receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/invoices/NORMALIZED?s=ap",
- "refunded": false,
"review": null,
+ "setup_future_usage": null,
"shipping": null,
"source": null,
- "source_transfer": null,
"statement_descriptor": "Zulip Basic",
"statement_descriptor_suffix": null,
"status": "succeeded",
@@ -120,12 +69,12 @@
"id": "invoice_initial_remote_server_upgrade--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 2,
+ "pending_webhooks": 0,
"request": {
"id": "invoice_initial_remote_server_upgrade--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "charge.succeeded"
+ "type": "payment_intent.succeeded"
},
{
"api_version": "2025-10-29.clover",
@@ -1094,7 +1043,7 @@
"total_excluding_tax": 6300,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"amount_due": 0,
@@ -1280,7 +1229,7 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "invoice_initial_remote_server_upgrade--Event.list.2.json",
@@ -1344,7 +1293,7 @@
"type": "customer.updated"
}
],
- "has_more": true,
+ "has_more": false,
"object": "list",
"url": "/v1/events"
}
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 8e08abbe348..df47269e683 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
@@ -201,7 +201,7 @@
"id": "invoice_initial_remote_server_upgrade--Event.list.3.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 2,
+ "pending_webhooks": 0,
"request": {
"id": "invoice_initial_remote_server_upgrade--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -633,117 +633,6 @@
"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": 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": {
- "amount": 4300,
- "amount_capturable": 0,
- "amount_details": {
- "tip": {}
- },
- "amount_received": 4300,
- "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": "invoice_initial_remote_server_upgrade--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_1SPPBKRVfKEFJaqcD1S7VL"
- },
- "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 Basic",
- "statement_descriptor_suffix": null,
- "status": "succeeded",
- "transfer_data": null,
- "transfer_group": 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": "payment_intent.succeeded"
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Invoice.create.1.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Invoice.create.1.json
index 6440c0c68a7..4c74623d415 100644
--- a/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Invoice.create.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Invoice.create.1.json
@@ -108,5 +108,5 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
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 f3cb57d8d93..c3f8aa8b7d6 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,40 +1,5 @@
{
"data": [
- {
- "api_version": "2025-10-29.clover",
- "created": 1000000000,
- "data": {
- "object": {
- "amount_paid": null,
- "amount_requested": 48000,
- "created": 1000000000,
- "currency": "usd",
- "id": "invoice_payment_succeeded_event_with_uncaught_exception--Event.list.2.json",
- "invoice": "invoice_payment_succeeded_event_with_uncaught_exception--Event.list.2.json",
- "is_default": true,
- "livemode": false,
- "object": "invoice_payment",
- "payment": {
- "payment_intent": "invoice_payment_succeeded_event_with_uncaught_exception--Event.list.2.json",
- "type": "payment_intent"
- },
- "status": "open",
- "status_transitions": {
- "canceled_at": null,
- "paid_at": null
- }
- }
- },
- "id": "invoice_payment_succeeded_event_with_uncaught_exception--Event.list.2.json",
- "livemode": false,
- "object": "event",
- "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_payment.paid"
- },
{
"api_version": "2025-10-29.clover",
"created": 1000000000,
@@ -61,7 +26,7 @@
"excluded_payment_method_types": null,
"id": "invoice_payment_succeeded_event_with_uncaught_exception--Event.list.2.json",
"last_payment_error": null,
- "latest_charge": "invoice_payment_succeeded_event_with_uncaught_exception--Event.list.2.json",
+ "latest_charge": "ch_NORMALIZED",
"livemode": false,
"metadata": {},
"next_action": null,
@@ -69,7 +34,7 @@
"on_behalf_of": null,
"payment_details": {
"customer_reference": null,
- "order_reference": "in_1SPP1pRVfKEFJaqcLeBs2l"
+ "order_reference": "in_1SScyHRVfKEFJaqc33GYfP"
},
"payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
@@ -111,133 +76,6 @@
},
"type": "payment_intent.succeeded"
},
- {
- "api_version": "2025-10-29.clover",
- "created": 1000000000,
- "data": {
- "object": {
- "amount": 48000,
- "amount_captured": 48000,
- "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 CLOUD STANDARD",
- "captured": true,
- "created": 1000000000,
- "currency": "usd",
- "customer": "invoice_payment_succeeded_event_with_uncaught_exception--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": "invoice_payment_succeeded_event_with_uncaught_exception--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": "invoice_payment_succeeded_event_with_uncaught_exception--Event.list.2.json",
- "payment_method": "pm_NORMALIZED",
- "payment_method_details": {
- "card": {
- "amount_authorized": 48000,
- "authorization_code": "424045",
- "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": 48000,
- "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 Cloud Standard",
- "statement_descriptor_suffix": null,
- "status": "succeeded",
- "transfer_data": null,
- "transfer_group": null
- }
- },
- "id": "invoice_payment_succeeded_event_with_uncaught_exception--Event.list.2.json",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 2,
- "request": {
- "id": "invoice_payment_succeeded_event_with_uncaught_exception--Event.list.2.json",
- "idempotency_key": "00000000-0000-0000-0000-000000000000"
- },
- "type": "charge.succeeded"
- },
{
"api_version": "2025-10-29.clover",
"created": 1000000000,
@@ -1007,7 +845,7 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "invoice_payment_succeeded_event_with_uncaught_exception--Event.list.2.json",
@@ -1071,7 +909,7 @@
"type": "customer.updated"
}
],
- "has_more": true,
+ "has_more": false,
"object": "list",
"url": "/v1/events"
}
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 837a627baab..1dc29170510 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
@@ -162,7 +162,7 @@
"id": "invoice_payment_succeeded_event_with_uncaught_exception--Event.list.3.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 1,
+ "pending_webhooks": 0,
"request": {
"id": "invoice_payment_succeeded_event_with_uncaught_exception--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
diff --git a/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--Invoice.create.1.json b/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--Invoice.create.1.json
index 190ed120b46..1f9a4146ecf 100644
--- a/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--Invoice.create.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--Invoice.create.1.json
@@ -109,5 +109,5 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
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 11eb3ffb9c3..25f437703ab 100644
--- a/corporate/tests/stripe_fixtures/invoice_plan--Event.list.2.json
+++ b/corporate/tests/stripe_fixtures/invoice_plan--Event.list.2.json
@@ -1,40 +1,5 @@
{
"data": [
- {
- "api_version": "2025-10-29.clover",
- "created": 1000000000,
- "data": {
- "object": {
- "amount_paid": null,
- "amount_requested": 48000,
- "created": 1000000000,
- "currency": "usd",
- "id": "invoice_plan--Event.list.2.json",
- "invoice": "invoice_plan--Event.list.2.json",
- "is_default": true,
- "livemode": false,
- "object": "invoice_payment",
- "payment": {
- "payment_intent": "invoice_plan--Event.list.2.json",
- "type": "payment_intent"
- },
- "status": "open",
- "status_transitions": {
- "canceled_at": null,
- "paid_at": null
- }
- }
- },
- "id": "invoice_plan--Event.list.2.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_payment.paid"
- },
{
"api_version": "2025-10-29.clover",
"created": 1000000000,
@@ -69,7 +34,7 @@
"on_behalf_of": null,
"payment_details": {
"customer_reference": null,
- "order_reference": "in_1SPn19DwzgQ85STgRErffF"
+ "order_reference": "in_1SSctzRVfKEFJaqcCP9Va8"
},
"payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
@@ -173,7 +138,7 @@
"payment_method_details": {
"card": {
"amount_authorized": 48000,
- "authorization_code": "946507",
+ "authorization_code": "178358",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
@@ -201,7 +166,7 @@
"network_token": {
"used": false
},
- "network_transaction_id": "749857738210088",
+ "network_transaction_id": "100110997670110",
"overcapture": {
"maximum_amount_capturable": 48000,
"status": "unavailable"
@@ -279,7 +244,7 @@
"default_payment_method": null,
"default_source": null,
"default_tax_rates": [],
- "description": "If paying by bank transfer outside of the US, use the OUR option for who should pay bank transfer fees, to make sure that your invoice is paid in full.",
+ "description": null,
"discounts": [],
"due_date": null,
"effective_at": 1000000000,
@@ -448,7 +413,7 @@
"default_payment_method": null,
"default_source": null,
"default_tax_rates": [],
- "description": "If paying by bank transfer outside of the US, use the OUR option for who should pay bank transfer fees, to make sure that your invoice is paid in full.",
+ "description": null,
"discounts": [],
"due_date": null,
"effective_at": 1000000000,
@@ -705,7 +670,7 @@
"default_payment_method": null,
"default_source": null,
"default_tax_rates": [],
- "description": "If paying by bank transfer outside of the US, use the OUR option for who should pay bank transfer fees, to make sure that your invoice is paid in full.",
+ "description": null,
"discounts": [],
"due_date": null,
"effective_at": null,
@@ -933,7 +898,7 @@
"default_payment_method": null,
"default_source": null,
"default_tax_rates": [],
- "description": "If paying by bank transfer outside of the US, use the OUR option for who should pay bank transfer fees, to make sure that your invoice is paid in full.",
+ "description": null,
"discounts": [],
"due_date": null,
"effective_at": null,
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 e0486ffd4a9..d367ee63a36 100644
--- a/corporate/tests/stripe_fixtures/invoice_plan--Event.list.3.json
+++ b/corporate/tests/stripe_fixtures/invoice_plan--Event.list.3.json
@@ -41,7 +41,7 @@
"default_payment_method": null,
"default_source": null,
"default_tax_rates": [],
- "description": "If paying by bank transfer outside of the US, use the OUR option for who should pay bank transfer fees, to make sure that your invoice is paid in full.",
+ "description": null,
"discounts": [],
"due_date": null,
"effective_at": 1000000000,
@@ -210,7 +210,7 @@
"default_payment_method": null,
"default_source": null,
"default_tax_rates": [],
- "description": "If paying by bank transfer outside of the US, use the OUR option for who should pay bank transfer fees, to make sure that your invoice is paid in full.",
+ "description": null,
"discounts": [],
"due_date": null,
"effective_at": 1000000000,
@@ -379,7 +379,7 @@
"default_payment_method": null,
"default_source": null,
"default_tax_rates": [],
- "description": "If paying by bank transfer outside of the US, use the OUR option for who should pay bank transfer fees, to make sure that your invoice is paid in full.",
+ "description": null,
"discounts": [],
"due_date": null,
"effective_at": 1000000000,
diff --git a/corporate/tests/stripe_fixtures/invoice_plan--Invoice.create.1.json b/corporate/tests/stripe_fixtures/invoice_plan--Invoice.create.1.json
index ee464aacdaf..0cde5e02054 100644
--- a/corporate/tests/stripe_fixtures/invoice_plan--Invoice.create.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_plan--Invoice.create.1.json
@@ -35,7 +35,7 @@
"default_payment_method": null,
"default_source": null,
"default_tax_rates": [],
- "description": "If paying by bank transfer outside of the US, use the OUR option for who should pay bank transfer fees, to make sure that your invoice is paid in full.",
+ "description": null,
"discounts": [],
"due_date": null,
"effective_at": null,
diff --git a/corporate/tests/stripe_fixtures/invoice_plan--Invoice.create.2.json b/corporate/tests/stripe_fixtures/invoice_plan--Invoice.create.2.json
index 3bff16bafdf..e902b2efcd2 100644
--- a/corporate/tests/stripe_fixtures/invoice_plan--Invoice.create.2.json
+++ b/corporate/tests/stripe_fixtures/invoice_plan--Invoice.create.2.json
@@ -35,7 +35,7 @@
"default_payment_method": null,
"default_source": null,
"default_tax_rates": [],
- "description": "If paying by bank transfer outside of the US, use the OUR option for who should pay bank transfer fees, to make sure that your invoice is paid in full.",
+ "description": null,
"discounts": [],
"due_date": null,
"effective_at": null,
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 67b00533714..b7e12877b90 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
@@ -35,7 +35,7 @@
"default_payment_method": null,
"default_source": null,
"default_tax_rates": [],
- "description": "If paying by bank transfer outside of the US, use the OUR option for who should pay bank transfer fees, to make sure that your invoice is paid in full.",
+ "description": null,
"discounts": [],
"due_date": null,
"effective_at": 1000000000,
diff --git a/corporate/tests/stripe_fixtures/invoice_plan--Invoice.finalize_invoice.2.json b/corporate/tests/stripe_fixtures/invoice_plan--Invoice.finalize_invoice.2.json
index 3d25d8ef7bf..9b9ce01073b 100644
--- a/corporate/tests/stripe_fixtures/invoice_plan--Invoice.finalize_invoice.2.json
+++ b/corporate/tests/stripe_fixtures/invoice_plan--Invoice.finalize_invoice.2.json
@@ -35,7 +35,7 @@
"default_payment_method": null,
"default_source": null,
"default_tax_rates": [],
- "description": "If paying by bank transfer outside of the US, use the OUR option for who should pay bank transfer fees, to make sure that your invoice is paid in full.",
+ "description": null,
"discounts": [],
"due_date": null,
"effective_at": 1000000000,
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 41f7b0c3e92..463c57d97cb 100644
--- a/corporate/tests/stripe_fixtures/invoice_plan--Invoice.list.2.json
+++ b/corporate/tests/stripe_fixtures/invoice_plan--Invoice.list.2.json
@@ -37,7 +37,7 @@
"default_payment_method": null,
"default_source": null,
"default_tax_rates": [],
- "description": "If paying by bank transfer outside of the US, use the OUR option for who should pay bank transfer fees, to make sure that your invoice is paid in full.",
+ "description": null,
"discounts": [],
"due_date": null,
"effective_at": 1000000000,
@@ -263,7 +263,7 @@
"default_payment_method": null,
"default_source": null,
"default_tax_rates": [],
- "description": "If paying by bank transfer outside of the US, use the OUR option for who should pay bank transfer fees, to make sure that your invoice is paid in full.",
+ "description": null,
"discounts": [],
"due_date": null,
"effective_at": 1000000000,
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 b0aaa8e2d53..296423b9e59 100644
--- a/corporate/tests/stripe_fixtures/invoice_plan--Invoice.pay.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_plan--Invoice.pay.1.json
@@ -35,7 +35,7 @@
"default_payment_method": null,
"default_source": null,
"default_tax_rates": [],
- "description": "If paying by bank transfer outside of the US, use the OUR option for who should pay bank transfer fees, to make sure that your invoice is paid in full.",
+ "description": null,
"discounts": [],
"due_date": null,
"effective_at": 1000000000,
diff --git a/corporate/tests/stripe_fixtures/invoice_plan--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/invoice_plan--checkout.Session.create.1.json
index 5e17a4b4745..c125cf4e413 100644
--- a/corporate/tests/stripe_fixtures/invoice_plan--checkout.Session.create.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_plan--checkout.Session.create.1.json
@@ -14,17 +14,17 @@
},
"billing_address_collection": "required",
"branding_settings": {
- "background_color": "#dbedff",
+ "background_color": "#ffffff",
"border_style": "rounded",
- "button_color": "#3e6bfe",
- "display_name": "Violet Beam",
- "font_family": "source_sans_pro",
+ "button_color": "#0074d4",
+ "display_name": "Sandbox",
+ "font_family": "default",
"icon": {
- "file": "file_1RxpnoDwzgQ85STgf3bBl5KY",
+ "file": "file_1RCGizRVfKEFJaqcFHPvd6rl",
"type": "file"
},
"logo": {
- "file": "file_1RxpnoDwzgQ85STgvEm4ntJu",
+ "file": "file_1RCGiyRVfKEFJaqc9ny0K376",
"type": "file"
}
},
diff --git a/corporate/tests/stripe_fixtures/invoice_plan--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/invoice_plan--checkout.Session.list.1.json
index 6be52105f42..28b4a5bbd21 100644
--- a/corporate/tests/stripe_fixtures/invoice_plan--checkout.Session.list.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_plan--checkout.Session.list.1.json
@@ -16,17 +16,17 @@
},
"billing_address_collection": "required",
"branding_settings": {
- "background_color": "#dbedff",
+ "background_color": "#ffffff",
"border_style": "rounded",
- "button_color": "#3e6bfe",
- "display_name": "Violet Beam",
- "font_family": "source_sans_pro",
+ "button_color": "#0074d4",
+ "display_name": "Sandbox",
+ "font_family": "default",
"icon": {
- "file": "file_1RxpnoDwzgQ85STgf3bBl5KY",
+ "file": "file_1RCGizRVfKEFJaqcFHPvd6rl",
"type": "file"
},
"logo": {
- "file": "file_1RxpnoDwzgQ85STgvEm4ntJu",
+ "file": "file_1RCGiyRVfKEFJaqc9ny0K376",
"type": "file"
}
},
diff --git a/corporate/tests/stripe_fixtures/invoice_plan_bundle_additional_licenses--Event.list.2.json b/corporate/tests/stripe_fixtures/invoice_plan_bundle_additional_licenses--Event.list.2.json
index cce446fe4bd..daf3132a272 100644
--- a/corporate/tests/stripe_fixtures/invoice_plan_bundle_additional_licenses--Event.list.2.json
+++ b/corporate/tests/stripe_fixtures/invoice_plan_bundle_additional_licenses--Event.list.2.json
@@ -1,40 +1,5 @@
{
"data": [
- {
- "api_version": "2025-10-29.clover",
- "created": 1000000000,
- "data": {
- "object": {
- "amount_paid": null,
- "amount_requested": 48000,
- "created": 1000000000,
- "currency": "usd",
- "id": "invoice_plan_bundle_additional_licenses--Event.list.2.json",
- "invoice": "invoice_plan_bundle_additional_licenses--Event.list.2.json",
- "is_default": true,
- "livemode": false,
- "object": "invoice_payment",
- "payment": {
- "payment_intent": "invoice_plan_bundle_additional_licenses--Event.list.2.json",
- "type": "payment_intent"
- },
- "status": "open",
- "status_transitions": {
- "canceled_at": null,
- "paid_at": null
- }
- }
- },
- "id": "invoice_plan_bundle_additional_licenses--Event.list.2.json",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 0,
- "request": {
- "id": "invoice_plan_bundle_additional_licenses--Event.list.2.json",
- "idempotency_key": "00000000-0000-0000-0000-000000000000"
- },
- "type": "invoice_payment.paid"
- },
{
"api_version": "2025-10-29.clover",
"created": 1000000000,
@@ -69,7 +34,7 @@
"on_behalf_of": null,
"payment_details": {
"customer_reference": null,
- "order_reference": "in_1SPmbgDwzgQ85STgIxZOvn"
+ "order_reference": "in_1SScuGRVfKEFJaqcuMTpEA"
},
"payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
@@ -173,7 +138,7 @@
"payment_method_details": {
"card": {
"amount_authorized": 48000,
- "authorization_code": "646205",
+ "authorization_code": "933149",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
@@ -201,7 +166,7 @@
"network_token": {
"used": false
},
- "network_transaction_id": "749857738210088",
+ "network_transaction_id": "100110997670110",
"overcapture": {
"maximum_amount_capturable": 48000,
"status": "unavailable"
@@ -279,7 +244,7 @@
"default_payment_method": null,
"default_source": null,
"default_tax_rates": [],
- "description": "If paying by bank transfer outside of the US, use the OUR option for who should pay bank transfer fees, to make sure that your invoice is paid in full.",
+ "description": null,
"discounts": [],
"due_date": null,
"effective_at": 1000000000,
@@ -448,7 +413,7 @@
"default_payment_method": null,
"default_source": null,
"default_tax_rates": [],
- "description": "If paying by bank transfer outside of the US, use the OUR option for who should pay bank transfer fees, to make sure that your invoice is paid in full.",
+ "description": null,
"discounts": [],
"due_date": null,
"effective_at": 1000000000,
@@ -705,7 +670,7 @@
"default_payment_method": null,
"default_source": null,
"default_tax_rates": [],
- "description": "If paying by bank transfer outside of the US, use the OUR option for who should pay bank transfer fees, to make sure that your invoice is paid in full.",
+ "description": null,
"discounts": [],
"due_date": null,
"effective_at": null,
@@ -933,7 +898,7 @@
"default_payment_method": null,
"default_source": null,
"default_tax_rates": [],
- "description": "If paying by bank transfer outside of the US, use the OUR option for who should pay bank transfer fees, to make sure that your invoice is paid in full.",
+ "description": null,
"discounts": [],
"due_date": null,
"effective_at": null,
diff --git a/corporate/tests/stripe_fixtures/invoice_plan_bundle_additional_licenses--Event.list.3.json b/corporate/tests/stripe_fixtures/invoice_plan_bundle_additional_licenses--Event.list.3.json
index dd875e04bd6..eb119132f97 100644
--- a/corporate/tests/stripe_fixtures/invoice_plan_bundle_additional_licenses--Event.list.3.json
+++ b/corporate/tests/stripe_fixtures/invoice_plan_bundle_additional_licenses--Event.list.3.json
@@ -41,7 +41,7 @@
"default_payment_method": null,
"default_source": null,
"default_tax_rates": [],
- "description": "If paying by bank transfer outside of the US, use the OUR option for who should pay bank transfer fees, to make sure that your invoice is paid in full.",
+ "description": null,
"discounts": [],
"due_date": null,
"effective_at": 1000000000,
@@ -210,7 +210,7 @@
"default_payment_method": null,
"default_source": null,
"default_tax_rates": [],
- "description": "If paying by bank transfer outside of the US, use the OUR option for who should pay bank transfer fees, to make sure that your invoice is paid in full.",
+ "description": null,
"discounts": [],
"due_date": null,
"effective_at": 1000000000,
@@ -379,7 +379,7 @@
"default_payment_method": null,
"default_source": null,
"default_tax_rates": [],
- "description": "If paying by bank transfer outside of the US, use the OUR option for who should pay bank transfer fees, to make sure that your invoice is paid in full.",
+ "description": null,
"discounts": [],
"due_date": null,
"effective_at": 1000000000,
diff --git a/corporate/tests/stripe_fixtures/invoice_plan_bundle_additional_licenses--Invoice.create.1.json b/corporate/tests/stripe_fixtures/invoice_plan_bundle_additional_licenses--Invoice.create.1.json
index c9343006362..fb12308eb12 100644
--- a/corporate/tests/stripe_fixtures/invoice_plan_bundle_additional_licenses--Invoice.create.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_plan_bundle_additional_licenses--Invoice.create.1.json
@@ -35,7 +35,7 @@
"default_payment_method": null,
"default_source": null,
"default_tax_rates": [],
- "description": "If paying by bank transfer outside of the US, use the OUR option for who should pay bank transfer fees, to make sure that your invoice is paid in full.",
+ "description": null,
"discounts": [],
"due_date": null,
"effective_at": null,
diff --git a/corporate/tests/stripe_fixtures/invoice_plan_bundle_additional_licenses--Invoice.create.2.json b/corporate/tests/stripe_fixtures/invoice_plan_bundle_additional_licenses--Invoice.create.2.json
index 8ec93a1318c..06799d14498 100644
--- a/corporate/tests/stripe_fixtures/invoice_plan_bundle_additional_licenses--Invoice.create.2.json
+++ b/corporate/tests/stripe_fixtures/invoice_plan_bundle_additional_licenses--Invoice.create.2.json
@@ -35,7 +35,7 @@
"default_payment_method": null,
"default_source": null,
"default_tax_rates": [],
- "description": "If paying by bank transfer outside of the US, use the OUR option for who should pay bank transfer fees, to make sure that your invoice is paid in full.",
+ "description": null,
"discounts": [],
"due_date": null,
"effective_at": null,
diff --git a/corporate/tests/stripe_fixtures/invoice_plan_bundle_additional_licenses--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/invoice_plan_bundle_additional_licenses--Invoice.finalize_invoice.1.json
index 50dd0262a5c..bf8fcc0d9de 100644
--- a/corporate/tests/stripe_fixtures/invoice_plan_bundle_additional_licenses--Invoice.finalize_invoice.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_plan_bundle_additional_licenses--Invoice.finalize_invoice.1.json
@@ -35,7 +35,7 @@
"default_payment_method": null,
"default_source": null,
"default_tax_rates": [],
- "description": "If paying by bank transfer outside of the US, use the OUR option for who should pay bank transfer fees, to make sure that your invoice is paid in full.",
+ "description": null,
"discounts": [],
"due_date": null,
"effective_at": 1000000000,
diff --git a/corporate/tests/stripe_fixtures/invoice_plan_bundle_additional_licenses--Invoice.finalize_invoice.2.json b/corporate/tests/stripe_fixtures/invoice_plan_bundle_additional_licenses--Invoice.finalize_invoice.2.json
index 8e0713f30de..f38956d6820 100644
--- a/corporate/tests/stripe_fixtures/invoice_plan_bundle_additional_licenses--Invoice.finalize_invoice.2.json
+++ b/corporate/tests/stripe_fixtures/invoice_plan_bundle_additional_licenses--Invoice.finalize_invoice.2.json
@@ -35,7 +35,7 @@
"default_payment_method": null,
"default_source": null,
"default_tax_rates": [],
- "description": "If paying by bank transfer outside of the US, use the OUR option for who should pay bank transfer fees, to make sure that your invoice is paid in full.",
+ "description": null,
"discounts": [],
"due_date": null,
"effective_at": 1000000000,
diff --git a/corporate/tests/stripe_fixtures/invoice_plan_bundle_additional_licenses--Invoice.list.2.json b/corporate/tests/stripe_fixtures/invoice_plan_bundle_additional_licenses--Invoice.list.2.json
index 00411182f70..693954e7c50 100644
--- a/corporate/tests/stripe_fixtures/invoice_plan_bundle_additional_licenses--Invoice.list.2.json
+++ b/corporate/tests/stripe_fixtures/invoice_plan_bundle_additional_licenses--Invoice.list.2.json
@@ -37,7 +37,7 @@
"default_payment_method": null,
"default_source": null,
"default_tax_rates": [],
- "description": "If paying by bank transfer outside of the US, use the OUR option for who should pay bank transfer fees, to make sure that your invoice is paid in full.",
+ "description": null,
"discounts": [],
"due_date": null,
"effective_at": 1000000000,
@@ -303,7 +303,7 @@
"default_payment_method": null,
"default_source": null,
"default_tax_rates": [],
- "description": "If paying by bank transfer outside of the US, use the OUR option for who should pay bank transfer fees, to make sure that your invoice is paid in full.",
+ "description": null,
"discounts": [],
"due_date": null,
"effective_at": 1000000000,
diff --git a/corporate/tests/stripe_fixtures/invoice_plan_bundle_additional_licenses--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/invoice_plan_bundle_additional_licenses--Invoice.pay.1.json
index bf339d11b75..f87ed0324b6 100644
--- a/corporate/tests/stripe_fixtures/invoice_plan_bundle_additional_licenses--Invoice.pay.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_plan_bundle_additional_licenses--Invoice.pay.1.json
@@ -35,7 +35,7 @@
"default_payment_method": null,
"default_source": null,
"default_tax_rates": [],
- "description": "If paying by bank transfer outside of the US, use the OUR option for who should pay bank transfer fees, to make sure that your invoice is paid in full.",
+ "description": null,
"discounts": [],
"due_date": null,
"effective_at": 1000000000,
diff --git a/corporate/tests/stripe_fixtures/invoice_plan_bundle_additional_licenses--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/invoice_plan_bundle_additional_licenses--checkout.Session.create.1.json
index d8f60336c45..536959cc844 100644
--- a/corporate/tests/stripe_fixtures/invoice_plan_bundle_additional_licenses--checkout.Session.create.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_plan_bundle_additional_licenses--checkout.Session.create.1.json
@@ -14,17 +14,17 @@
},
"billing_address_collection": "required",
"branding_settings": {
- "background_color": "#dbedff",
+ "background_color": "#ffffff",
"border_style": "rounded",
- "button_color": "#3e6bfe",
- "display_name": "Violet Beam",
- "font_family": "source_sans_pro",
+ "button_color": "#0074d4",
+ "display_name": "Sandbox",
+ "font_family": "default",
"icon": {
- "file": "file_1RxpnoDwzgQ85STgf3bBl5KY",
+ "file": "file_1RCGizRVfKEFJaqcFHPvd6rl",
"type": "file"
},
"logo": {
- "file": "file_1RxpnoDwzgQ85STgvEm4ntJu",
+ "file": "file_1RCGiyRVfKEFJaqc9ny0K376",
"type": "file"
}
},
diff --git a/corporate/tests/stripe_fixtures/invoice_plan_bundle_additional_licenses--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/invoice_plan_bundle_additional_licenses--checkout.Session.list.1.json
index 1b315d09f97..3cf89306f25 100644
--- a/corporate/tests/stripe_fixtures/invoice_plan_bundle_additional_licenses--checkout.Session.list.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_plan_bundle_additional_licenses--checkout.Session.list.1.json
@@ -16,17 +16,17 @@
},
"billing_address_collection": "required",
"branding_settings": {
- "background_color": "#dbedff",
+ "background_color": "#ffffff",
"border_style": "rounded",
- "button_color": "#3e6bfe",
- "display_name": "Violet Beam",
- "font_family": "source_sans_pro",
+ "button_color": "#0074d4",
+ "display_name": "Sandbox",
+ "font_family": "default",
"icon": {
- "file": "file_1RxpnoDwzgQ85STgf3bBl5KY",
+ "file": "file_1RCGizRVfKEFJaqcFHPvd6rl",
"type": "file"
},
"logo": {
- "file": "file_1RxpnoDwzgQ85STgvEm4ntJu",
+ "file": "file_1RCGiyRVfKEFJaqc9ny0K376",
"type": "file"
}
},
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 a1371677a16..62f7b1f3bfd 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 1437f91194a..a0809f247b9 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 a0fe6452d24..ce25652ee7b 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 a0fe6452d24..ce25652ee7b 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 a0fe6452d24..ce25652ee7b 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 a0fe6452d24..ce25652ee7b 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 a0fe6452d24..ce25652ee7b 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 405242e15c0..40bdfbea3dd 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
@@ -11,7 +11,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 30f7a856ad6..edcacf967a6 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
@@ -34,7 +34,7 @@
"on_behalf_of": null,
"payment_details": {
"customer_reference": null,
- "order_reference": "in_1SQW98RVfKEFJaqcu4hsts"
+ "order_reference": "in_1SSd3yRVfKEFJaqcoqPW2Q"
},
"payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
@@ -69,7 +69,7 @@
"id": "invoice_plans_as_needed--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 2,
+ "pending_webhooks": 0,
"request": {
"id": "invoice_plans_as_needed--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -271,7 +271,7 @@
"total_excluding_tax": 1850,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "invoice_plans_as_needed--Event.list.2.json",
@@ -479,7 +479,7 @@
"total_excluding_tax": 1850,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"effective_at": null,
@@ -775,7 +775,7 @@
"total_excluding_tax": 1850,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"amount_due": 3850,
@@ -1043,7 +1043,7 @@
"total_excluding_tax": 3850,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"amount_due": 0,
@@ -1229,7 +1229,7 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "invoice_plans_as_needed--Event.list.2.json",
@@ -1253,7 +1253,7 @@
"currency": "usd",
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"discount": null,
"email": "[email protected]",
"id": "invoice_plans_as_needed--Customer.create.1.json",
@@ -1267,7 +1267,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 7b225e232bd..1abd5c949ac 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
@@ -195,7 +195,7 @@
"total_excluding_tax": 1850,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "invoice_plans_as_needed--Event.list.3.json",
@@ -403,7 +403,7 @@
"total_excluding_tax": 1850,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "invoice_plans_as_needed--Event.list.3.json",
@@ -611,7 +611,7 @@
"total_excluding_tax": 1850,
"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/invoice_plans_as_needed--Invoice.create.1.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Invoice.create.1.json
index 2c9d26fc9cc..fdfd0b2dca8 100644
--- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Invoice.create.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Invoice.create.1.json
@@ -108,5 +108,5 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Invoice.create.2.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Invoice.create.2.json
index 55a1347626e..f9dd1519c85 100644
--- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Invoice.create.2.json
+++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Invoice.create.2.json
@@ -101,5 +101,5 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Invoice.finalize_invoice.1.json
index dcc23abbef6..e67a0422c7a 100644
--- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Invoice.finalize_invoice.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Invoice.finalize_invoice.1.json
@@ -189,5 +189,5 @@
"total_excluding_tax": 1850,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Invoice.list.2.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Invoice.list.2.json
index 2c98e2dee08..320154c66b7 100644
--- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Invoice.list.2.json
+++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Invoice.list.2.json
@@ -417,7 +417,7 @@
"total_excluding_tax": 1850,
"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_plans_as_needed--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Invoice.pay.1.json
index f91371283cc..6577d7dae50 100644
--- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Invoice.pay.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Invoice.pay.1.json
@@ -189,5 +189,5 @@
"total_excluding_tax": 1850,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
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 d8ac99f45f5..fa8cee9955f 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/9c36daef-29ed-478d-a237-26a7dec0f4ee/upgrade/?manual_license_management=false&tier=1",
+ "cancel_url": "http://selfhosting.testserver/realm/99423a0a-fa84-4fd7-be9a-d10b8af15320/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"collected_information": {
@@ -69,7 +69,7 @@
"livemode": false,
"locale": null,
"metadata": {
- "remote_realm_user_id": "1",
+ "remote_realm_user_id": "3",
"type": "card_update"
},
"mode": "setup",
@@ -101,7 +101,7 @@
"status": "open",
"submit_type": null,
"subscription": null,
- "success_url": "http://selfhosting.testserver/realm/9c36daef-29ed-478d-a237-26a7dec0f4ee/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
+ "success_url": "http://selfhosting.testserver/realm/99423a0a-fa84-4fd7-be9a-d10b8af15320/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 17185750090..706389e60ed 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/9c36daef-29ed-478d-a237-26a7dec0f4ee/upgrade/?manual_license_management=false&tier=1",
+ "cancel_url": "http://selfhosting.testserver/realm/99423a0a-fa84-4fd7-be9a-d10b8af15320/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"collected_information": {
@@ -71,7 +71,7 @@
"livemode": false,
"locale": null,
"metadata": {
- "remote_realm_user_id": "1",
+ "remote_realm_user_id": "3",
"type": "card_update"
},
"mode": "setup",
@@ -103,7 +103,7 @@
"status": "open",
"submit_type": null,
"subscription": null,
- "success_url": "http://selfhosting.testserver/realm/9c36daef-29ed-478d-a237-26a7dec0f4ee/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
+ "success_url": "http://selfhosting.testserver/realm/99423a0a-fa84-4fd7-be9a-d10b8af15320/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.2.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Event.list.2.json
index 9b1aedd34cb..7b90968818d 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
@@ -6,59 +6,110 @@
"data": {
"object": {
"amount": 4300,
- "amount_capturable": 0,
- "amount_details": {
- "tip": {}
- },
- "amount_received": 4300,
+ "amount_captured": 4300,
+ "amount_refunded": 0,
"application": null,
+ "application_fee": null,
"application_fee_amount": null,
- "automatic_payment_methods": null,
- "canceled_at": null,
- "cancellation_reason": null,
- "capture_method": "automatic",
- "client_secret": "NORMALIZED",
- "confirmation_method": "automatic",
+ "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": "invoice_plans_as_needed_server--Customer.create.1.json",
"description": "Payment for Invoice",
- "excluded_payment_method_types": null,
+ "destination": null,
+ "dispute": null,
+ "disputed": false,
+ "failure_balance_transaction": null,
+ "failure_code": null,
+ "failure_message": null,
+ "fraud_details": {},
"id": "invoice_plans_as_needed_server--Event.list.2.json",
- "last_payment_error": null,
- "latest_charge": "ch_NORMALIZED",
"livemode": false,
"metadata": {},
- "next_action": null,
- "object": "payment_intent",
+ "object": "charge",
"on_behalf_of": null,
- "payment_details": {
- "customer_reference": null,
- "order_reference": "in_1SQW8aRVfKEFJaqc1tMm4C"
+ "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": "invoice_plans_as_needed_server--Event.list.2.json",
"payment_method": "pm_NORMALIZED",
- "payment_method_configuration_details": null,
- "payment_method_options": {
+ "payment_method_details": {
"card": {
+ "amount_authorized": 4300,
+ "authorization_code": "669184",
+ "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,
- "mandate_options": null,
- "network": null,
- "request_three_d_secure": "automatic"
+ "last4": "4242",
+ "mandate": null,
+ "multicapture": {
+ "status": "unavailable"
+ },
+ "network": "visa",
+ "network_token": {
+ "used": false
+ },
+ "network_transaction_id": "100110997670110",
+ "overcapture": {
+ "maximum_amount_capturable": 4300,
+ "status": "unavailable"
+ },
+ "regulated_status": "unregulated",
+ "three_d_secure": null,
+ "wallet": null
},
- "link": {
- "persistent_token": null
- }
+ "type": "card"
},
- "payment_method_types": [
- "card",
- "link"
- ],
- "processing": null,
+ "radar_options": {},
"receipt_email": "[email protected]",
+ "receipt_number": null,
+ "receipt_url": "https://pay.stripe.com/receipts/invoices/NORMALIZED?s=ap",
+ "refunded": false,
"review": null,
- "setup_future_usage": null,
"shipping": null,
"source": null,
+ "source_transfer": null,
"statement_descriptor": "Zulip Basic",
"statement_descriptor_suffix": null,
"status": "succeeded",
@@ -69,12 +120,12 @@
"id": "invoice_plans_as_needed_server--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 2,
+ "pending_webhooks": 0,
"request": {
"id": "invoice_plans_as_needed_server--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "payment_intent.succeeded"
+ "type": "charge.succeeded"
},
{
"api_version": "2025-10-29.clover",
@@ -271,7 +322,7 @@
"total_excluding_tax": 4300,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "invoice_plans_as_needed_server--Event.list.2.json",
@@ -479,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,
@@ -775,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,
@@ -1043,7 +1094,7 @@
"total_excluding_tax": 6300,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"amount_due": 0,
@@ -1229,7 +1280,7 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "invoice_plans_as_needed_server--Event.list.2.json",
@@ -1293,7 +1344,7 @@
"type": "customer.updated"
}
],
- "has_more": false,
+ "has_more": true,
"object": "list",
"url": "/v1/events"
}
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 81d9f6bdd13..bf9a1ec5c05 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
@@ -195,13 +195,13 @@
"total_excluding_tax": 4300,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "invoice_plans_as_needed_server--Event.list.3.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 2,
+ "pending_webhooks": 0,
"request": {
"id": "invoice_plans_as_needed_server--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -403,7 +403,7 @@
"total_excluding_tax": 4300,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "invoice_plans_as_needed_server--Event.list.3.json",
@@ -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,
@@ -633,6 +633,82 @@
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "invoice.updated"
+ },
+ {
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount": 4300,
+ "amount_capturable": 0,
+ "amount_details": {
+ "tip": {}
+ },
+ "amount_received": 4300,
+ "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": "invoice_plans_as_needed_server--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_1SSd7uRVfKEFJaqcFvaf4F"
+ },
+ "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 Basic",
+ "statement_descriptor_suffix": null,
+ "status": "succeeded",
+ "transfer_data": null,
+ "transfer_group": 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": "payment_intent.succeeded"
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Invoice.create.1.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Invoice.create.1.json
index 64417eae875..e2ea5eb7202 100644
--- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Invoice.create.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Invoice.create.1.json
@@ -108,5 +108,5 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Invoice.create.2.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Invoice.create.2.json
index 02887eb7e12..c2226ec24b4 100644
--- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Invoice.create.2.json
+++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Invoice.create.2.json
@@ -101,5 +101,5 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Invoice.finalize_invoice.1.json
index c367e09bc20..c6fe7c9dc57 100644
--- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Invoice.finalize_invoice.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--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/invoice_plans_as_needed_server--Invoice.finalize_invoice.2.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Invoice.finalize_invoice.2.json
index bf62aefc166..21e5bbf82e0 100644
--- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Invoice.finalize_invoice.2.json
+++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Invoice.finalize_invoice.2.json
@@ -222,5 +222,5 @@
"total_excluding_tax": 7685,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Invoice.list.2.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Invoice.list.2.json
index e278f77d612..e09b6856204 100644
--- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Invoice.list.2.json
+++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Invoice.list.2.json
@@ -224,7 +224,7 @@
"total_excluding_tax": 7685,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
{
"account_country": "US",
@@ -417,7 +417,7 @@
"total_excluding_tax": 4300,
"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_plans_as_needed_server--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Invoice.pay.1.json
index 04605af843d..2251ce50110 100644
--- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Invoice.pay.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--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/invoice_plans_as_needed_server--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--checkout.Session.create.1.json
index 28c2f3c1c70..13623a37933 100644
--- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--checkout.Session.create.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--checkout.Session.create.1.json
@@ -69,7 +69,7 @@
"livemode": false,
"locale": null,
"metadata": {
- "remote_server_user_id": "1",
+ "remote_server_user_id": "6",
"type": "card_update"
},
"mode": "setup",
diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--checkout.Session.list.1.json
index fac195a0655..8be08439cf4 100644
--- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--checkout.Session.list.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--checkout.Session.list.1.json
@@ -71,7 +71,7 @@
"livemode": false,
"locale": null,
"metadata": {
- "remote_server_user_id": "1",
+ "remote_server_user_id": "6",
"type": "card_update"
},
"mode": "setup",
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 1530b456c43..4937b2acff1 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 fa325b638f1..15e510d2d05 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 ad9f6ebb87b..325bdc0c52f 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 ad9f6ebb87b..325bdc0c52f 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 ad9f6ebb87b..325bdc0c52f 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 ad9f6ebb87b..325bdc0c52f 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 ad9f6ebb87b..325bdc0c52f 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Invoice.create.1.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Invoice.create.1.json
index fca7a723d56..d8a9a6174ea 100644
--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Invoice.create.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Invoice.create.1.json
@@ -101,5 +101,5 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
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 cec4bdf4ac2..cf09f2b082f 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": null
+ "webhooks_delivered_at": 1000000000
}
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 e895c62564c..66d21a5c223 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": null
+ "webhooks_delivered_at": 1000000000
}
],
"has_more": false,
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 b0293b08c8a..4dfd39058b5 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/9c36daef-29ed-478d-a237-26a7dec0f4ee/upgrade/?manual_license_management=false&tier=1",
+ "cancel_url": "http://selfhosting.testserver/realm/99423a0a-fa84-4fd7-be9a-d10b8af15320/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/9c36daef-29ed-478d-a237-26a7dec0f4ee/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
+ "success_url": "http://selfhosting.testserver/realm/99423a0a-fa84-4fd7-be9a-d10b8af15320/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 67becdd7f2d..5d3ca277a42 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/9c36daef-29ed-478d-a237-26a7dec0f4ee/upgrade/?manual_license_management=false&tier=1",
+ "cancel_url": "http://selfhosting.testserver/realm/99423a0a-fa84-4fd7-be9a-d10b8af15320/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/9c36daef-29ed-478d-a237-26a7dec0f4ee/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
+ "success_url": "http://selfhosting.testserver/realm/99423a0a-fa84-4fd7-be9a-d10b8af15320/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.create.1.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--Invoice.create.1.json
index 98c3440b154..85c7c03be47 100644
--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--Invoice.create.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--Invoice.create.1.json
@@ -101,5 +101,5 @@
"total_excluding_tax": 0,
"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--Customer.create.1.json b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.create.1.json
index 099e2da47bb..615f2b35968 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 74ddca14918..1ed49943954 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 14133444472..3c809699fb4 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 14133444472..3c809699fb4 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 14133444472..3c809699fb4 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 14133444472..3c809699fb4 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 14133444472..3c809699fb4 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 7fa18335367..7b436c724b5 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 ddd68a35672..168ce87757a 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
@@ -11,7 +11,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 4bfef862ed4..823bcaeb5b7 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,132 +1,5 @@
{
"data": [
- {
- "api_version": "2025-10-29.clover",
- "created": 1000000000,
- "data": {
- "object": {
- "amount": 176000,
- "amount_captured": 176000,
- "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 BUSINESS",
- "captured": true,
- "created": 1000000000,
- "currency": "usd",
- "customer": "migrate_customer_server_to_realms_and_upgrade--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": "migrate_customer_server_to_realms_and_upgrade--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": "migrate_customer_server_to_realms_and_upgrade--Event.list.2.json",
- "payment_method": "pm_NORMALIZED",
- "payment_method_details": {
- "card": {
- "amount_authorized": 176000,
- "authorization_code": "773757",
- "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": 176000,
- "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 Business",
- "statement_descriptor_suffix": null,
- "status": "succeeded",
- "transfer_data": null,
- "transfer_group": null
- }
- },
- "id": "migrate_customer_server_to_realms_and_upgrade--Event.list.2.json",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 2,
- "request": {
- "id": "migrate_customer_server_to_realms_and_upgrade--Event.list.2.json",
- "idempotency_key": "00000000-0000-0000-0000-000000000000"
- },
- "type": "charge.succeeded"
- },
{
"api_version": "2025-10-29.clover",
"created": 1000000000,
@@ -559,6 +432,41 @@
},
"type": "invoice.updated"
},
+ {
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount_paid": 152000,
+ "amount_requested": 152000,
+ "created": 1000000000,
+ "currency": "usd",
+ "id": "migrate_customer_server_to_realms_and_upgrade--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": "migrate_customer_server_to_realms_and_upgrade--Event.list.2.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": null,
+ "idempotency_key": null
+ },
+ "type": "invoice_payment.paid"
+ },
{
"api_version": "2025-10-29.clover",
"created": 1000000000,
@@ -1094,7 +1002,7 @@
"total_excluding_tax": 200000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"amount_due": 0,
@@ -1280,7 +1188,7 @@
"total_excluding_tax": 0,
"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",
@@ -1304,7 +1212,7 @@
"currency": "usd",
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"discount": null,
"email": "[email protected]",
"id": "migrate_customer_server_to_realms_and_upgrade--Customer.create.1.json",
@@ -1318,7 +1226,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 00320cee103..c07a7f3ba0f 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,5 +1,40 @@
{
"data": [
+ {
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount_paid": 1850,
+ "amount_requested": 1850,
+ "created": 1000000000,
+ "currency": "usd",
+ "id": "migrate_customer_server_to_realms_and_upgrade--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": "migrate_customer_server_to_realms_and_upgrade--Event.list.3.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": null,
+ "idempotency_key": null
+ },
+ "type": "invoice_payment.paid"
+ },
{
"api_version": "2025-10-29.clover",
"created": 1000000000,
@@ -203,7 +238,7 @@
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "migrate_customer_server_to_realms_and_upgrade--Event.list.2.json",
+ "id": "migrate_customer_server_to_realms_and_upgrade--Event.list.3.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "invoice.payment_succeeded"
@@ -411,7 +446,7 @@
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "migrate_customer_server_to_realms_and_upgrade--Event.list.2.json",
+ "id": "migrate_customer_server_to_realms_and_upgrade--Event.list.3.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "invoice.paid"
@@ -629,46 +664,11 @@
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "migrate_customer_server_to_realms_and_upgrade--Event.list.2.json",
+ "id": "migrate_customer_server_to_realms_and_upgrade--Event.list.3.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": 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,
@@ -695,7 +695,7 @@
"excluded_payment_method_types": null,
"id": "migrate_customer_server_to_realms_and_upgrade--Event.list.2.json",
"last_payment_error": null,
- "latest_charge": "ch_NORMALIZED",
+ "latest_charge": "migrate_customer_server_to_realms_and_upgrade--Event.list.3.json",
"livemode": false,
"metadata": {},
"next_action": null,
@@ -703,7 +703,7 @@
"on_behalf_of": null,
"payment_details": {
"customer_reference": null,
- "order_reference": "in_1SPP83RVfKEFJaqc9sKhZC"
+ "order_reference": "in_1SSd4SRVfKEFJaqc0y7fYx"
},
"payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
@@ -740,10 +740,137 @@
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "migrate_customer_server_to_realms_and_upgrade--Event.list.2.json",
+ "id": "migrate_customer_server_to_realms_and_upgrade--Event.list.3.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "payment_intent.succeeded"
+ },
+ {
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount": 176000,
+ "amount_captured": 176000,
+ "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 BUSINESS",
+ "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": "migrate_customer_server_to_realms_and_upgrade--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": "migrate_customer_server_to_realms_and_upgrade--Event.list.2.json",
+ "payment_method": "pm_NORMALIZED",
+ "payment_method_details": {
+ "card": {
+ "amount_authorized": 176000,
+ "authorization_code": "518637",
+ "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": 176000,
+ "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 Business",
+ "statement_descriptor_suffix": null,
+ "status": "succeeded",
+ "transfer_data": null,
+ "transfer_group": 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.3.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ },
+ "type": "charge.succeeded"
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Invoice.create.1.json b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Invoice.create.1.json
index 63a42b34057..d34cc909a3b 100644
--- a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Invoice.create.1.json
+++ b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Invoice.create.1.json
@@ -108,5 +108,5 @@
"total_excluding_tax": 0,
"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--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--checkout.Session.create.1.json
index 462b01439a4..fbb557ffd51 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/9c36daef-29ed-478d-a237-26a7dec0f4ee/upgrade/?manual_license_management=false&tier=1",
+ "cancel_url": "http://selfhosting.testserver/realm/99423a0a-fa84-4fd7-be9a-d10b8af15320/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/9c36daef-29ed-478d-a237-26a7dec0f4ee/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
+ "success_url": "http://selfhosting.testserver/realm/99423a0a-fa84-4fd7-be9a-d10b8af15320/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 a7d44fb31f8..c557db7ab15 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/9c36daef-29ed-478d-a237-26a7dec0f4ee/upgrade/?manual_license_management=false&tier=1",
+ "cancel_url": "http://selfhosting.testserver/realm/99423a0a-fa84-4fd7-be9a-d10b8af15320/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/9c36daef-29ed-478d-a237-26a7dec0f4ee/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
+ "success_url": "http://selfhosting.testserver/realm/99423a0a-fa84-4fd7-be9a-d10b8af15320/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.2.json b/corporate/tests/stripe_fixtures/non_sponsorship_billing--Event.list.2.json
index cf0d052726e..56a34c58546 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,340 +1,5 @@
{
"data": [
- {
- "api_version": "2025-10-29.clover",
- "created": 1000000000,
- "data": {
- "object": {
- "amount": 176000,
- "amount_captured": 176000,
- "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 BUSINESS",
- "captured": true,
- "created": 1000000000,
- "currency": "usd",
- "customer": "non_sponsorship_billing--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": "non_sponsorship_billing--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": "non_sponsorship_billing--Event.list.2.json",
- "payment_method": "pm_NORMALIZED",
- "payment_method_details": {
- "card": {
- "amount_authorized": 176000,
- "authorization_code": "517310",
- "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": 176000,
- "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 Business",
- "statement_descriptor_suffix": null,
- "status": "succeeded",
- "transfer_data": null,
- "transfer_group": null
- }
- },
- "id": "non_sponsorship_billing--Event.list.2.json",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 2,
- "request": {
- "id": "non_sponsorship_billing--Event.list.2.json",
- "idempotency_key": "00000000-0000-0000-0000-000000000000"
- },
- "type": "charge.succeeded"
- },
- {
- "api_version": "2025-10-29.clover",
- "created": 1000000000,
- "data": {
- "object": {
- "account_country": "US",
- "account_name": "NORMALIZED",
- "account_tax_ids": null,
- "amount_due": 176000,
- "amount_overpaid": 0,
- "amount_paid": 0,
- "amount_remaining": 176000,
- "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": "charge_automatically",
- "created": 1000000000,
- "currency": "usd",
- "custom_fields": null,
- "customer": "non_sponsorship_billing--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": "non_sponsorship_billing--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": -24000,
- "currency": "usd",
- "description": "$20.00/month new customer discount",
- "discount_amounts": [],
- "discountable": false,
- "discounts": [],
- "id": "non_sponsorship_billing--Event.list.2.json",
- "invoice": "non_sponsorship_billing--Event.list.2.json",
- "livemode": false,
- "metadata": {},
- "object": "line_item",
- "parent": {
- "invoice_item_details": {
- "invoice_item": "non_sponsorship_billing--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": "-24000"
- },
- "quantity": 1,
- "taxes": []
- },
- {
- "amount": 200000,
- "currency": "usd",
- "description": "Zulip Business",
- "discount_amounts": [],
- "discountable": false,
- "discounts": [],
- "id": "non_sponsorship_billing--Event.list.2.json",
- "invoice": "non_sponsorship_billing--Event.list.2.json",
- "livemode": false,
- "metadata": {},
- "object": "line_item",
- "parent": {
- "invoice_item_details": {
- "invoice_item": "non_sponsorship_billing--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": 25,
- "taxes": []
- }
- ],
- "has_more": false,
- "object": "list",
- "total_count": 2,
- "url": "/v1/invoices/non_sponsorship_billing--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": "104"
- },
- "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 Business",
- "status": "open",
- "status_transitions": {
- "finalized_at": 1000000000,
- "marked_uncollectible_at": null,
- "paid_at": null,
- "voided_at": null
- },
- "subtotal": 176000,
- "subtotal_excluding_tax": 176000,
- "test_clock": null,
- "total": 176000,
- "total_discount_amounts": [],
- "total_excluding_tax": 176000,
- "total_pretax_credit_amounts": [],
- "total_taxes": [],
- "webhooks_delivered_at": 1000000000
- }
- },
- "id": "non_sponsorship_billing--Event.list.2.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.finalized"
- },
{
"api_version": "2025-10-29.clover",
"created": 1000000000,
@@ -631,6 +296,76 @@
},
"type": "payment_intent.created"
},
+ {
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount_paid": 4300,
+ "amount_requested": 4300,
+ "created": 1000000000,
+ "currency": "usd",
+ "id": "non_sponsorship_billing--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": "non_sponsorship_billing--Event.list.2.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": null,
+ "idempotency_key": null
+ },
+ "type": "invoice_payment.paid"
+ },
+ {
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount_paid": 4300,
+ "amount_requested": 4300,
+ "created": 1000000000,
+ "currency": "usd",
+ "id": "non_sponsorship_billing--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": "non_sponsorship_billing--Event.list.2.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": null,
+ "idempotency_key": null
+ },
+ "type": "invoice_payment.paid"
+ },
{
"api_version": "2025-10-29.clover",
"created": 1000000000,
@@ -1094,7 +829,7 @@
"total_excluding_tax": 200000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"amount_due": 0,
@@ -1280,7 +1015,7 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "non_sponsorship_billing--Event.list.2.json",
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 42c066fd8c3..172d72994ef 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
@@ -203,7 +203,7 @@
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "non_sponsorship_billing--Event.list.2.json",
+ "id": "non_sponsorship_billing--Event.list.3.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "invoice.payment_succeeded"
@@ -411,7 +411,7 @@
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "non_sponsorship_billing--Event.list.2.json",
+ "id": "non_sponsorship_billing--Event.list.3.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "invoice.paid"
@@ -629,46 +629,11 @@
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "non_sponsorship_billing--Event.list.2.json",
+ "id": "non_sponsorship_billing--Event.list.3.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": 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,
@@ -695,7 +660,7 @@
"excluded_payment_method_types": null,
"id": "non_sponsorship_billing--Event.list.2.json",
"last_payment_error": null,
- "latest_charge": "ch_NORMALIZED",
+ "latest_charge": "non_sponsorship_billing--Event.list.3.json",
"livemode": false,
"metadata": {},
"next_action": null,
@@ -703,7 +668,7 @@
"on_behalf_of": null,
"payment_details": {
"customer_reference": null,
- "order_reference": "in_1SPPC3RVfKEFJaqcSqvHWG"
+ "order_reference": "in_1SSd8NRVfKEFJaqcnogNqi"
},
"payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
@@ -740,10 +705,415 @@
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "non_sponsorship_billing--Event.list.2.json",
+ "id": "non_sponsorship_billing--Event.list.3.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "payment_intent.succeeded"
+ },
+ {
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount": 176000,
+ "amount_captured": 176000,
+ "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 BUSINESS",
+ "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": "non_sponsorship_billing--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": "non_sponsorship_billing--Event.list.2.json",
+ "payment_method": "pm_NORMALIZED",
+ "payment_method_details": {
+ "card": {
+ "amount_authorized": 176000,
+ "authorization_code": "269168",
+ "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": 176000,
+ "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 Business",
+ "statement_descriptor_suffix": null,
+ "status": "succeeded",
+ "transfer_data": null,
+ "transfer_group": null
+ }
+ },
+ "id": "non_sponsorship_billing--Event.list.3.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "non_sponsorship_billing--Event.list.3.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ },
+ "type": "charge.succeeded"
+ },
+ {
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount_paid": 136000,
+ "amount_requested": 136000,
+ "created": 1000000000,
+ "currency": "usd",
+ "id": "non_sponsorship_billing--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": "non_sponsorship_billing--Event.list.3.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": null,
+ "idempotency_key": null
+ },
+ "type": "invoice_payment.paid"
+ },
+ {
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount_paid": 4300,
+ "amount_requested": 4300,
+ "created": 1000000000,
+ "currency": "usd",
+ "id": "non_sponsorship_billing--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": "non_sponsorship_billing--Event.list.3.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": null,
+ "idempotency_key": null
+ },
+ "type": "invoice_payment.paid"
+ },
+ {
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "account_country": "US",
+ "account_name": "NORMALIZED",
+ "account_tax_ids": null,
+ "amount_due": 176000,
+ "amount_overpaid": 0,
+ "amount_paid": 0,
+ "amount_remaining": 176000,
+ "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": "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": "non_sponsorship_billing--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": -24000,
+ "currency": "usd",
+ "description": "$20.00/month new customer discount",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "non_sponsorship_billing--Event.list.2.json",
+ "invoice": "non_sponsorship_billing--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": "-24000"
+ },
+ "quantity": 1,
+ "taxes": []
+ },
+ {
+ "amount": 200000,
+ "currency": "usd",
+ "description": "Zulip Business",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "non_sponsorship_billing--Event.list.2.json",
+ "invoice": "non_sponsorship_billing--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": 25,
+ "taxes": []
+ }
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 2,
+ "url": "/v1/invoices/non_sponsorship_billing--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": "104"
+ },
+ "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 Business",
+ "status": "open",
+ "status_transitions": {
+ "finalized_at": 1000000000,
+ "marked_uncollectible_at": null,
+ "paid_at": null,
+ "voided_at": null
+ },
+ "subtotal": 176000,
+ "subtotal_excluding_tax": 176000,
+ "test_clock": null,
+ "total": 176000,
+ "total_discount_amounts": [],
+ "total_excluding_tax": 176000,
+ "total_pretax_credit_amounts": [],
+ "total_taxes": [],
+ "webhooks_delivered_at": 1000000000
+ }
+ },
+ "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.finalized"
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/non_sponsorship_billing--Invoice.create.1.json b/corporate/tests/stripe_fixtures/non_sponsorship_billing--Invoice.create.1.json
index b0a11b73aa7..094d330f65e 100644
--- a/corporate/tests/stripe_fixtures/non_sponsorship_billing--Invoice.create.1.json
+++ b/corporate/tests/stripe_fixtures/non_sponsorship_billing--Invoice.create.1.json
@@ -108,5 +108,5 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
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 ab3537aab01..434ef8b8ad9 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
@@ -34,7 +34,7 @@
"on_behalf_of": null,
"payment_details": {
"customer_reference": null,
- "order_reference": "in_1SPP23RVfKEFJaqcbjHniJ"
+ "order_reference": "in_1SSdOgRVfKEFJaqcc9uev4"
},
"payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
@@ -1193,7 +1193,7 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "payment_method_string--Event.list.2.json",
@@ -1257,7 +1257,7 @@
"type": "customer.updated"
}
],
- "has_more": true,
+ "has_more": false,
"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 108051e1a45..6d922067afe 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,41 +1,5 @@
{
- "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"
- }
- ],
+ "data": [],
"has_more": false,
"object": "list",
"url": "/v1/events"
diff --git a/corporate/tests/stripe_fixtures/payment_method_string--Invoice.create.1.json b/corporate/tests/stripe_fixtures/payment_method_string--Invoice.create.1.json
index ee0ed7230f4..fe84a88149f 100644
--- a/corporate/tests/stripe_fixtures/payment_method_string--Invoice.create.1.json
+++ b/corporate/tests/stripe_fixtures/payment_method_string--Invoice.create.1.json
@@ -109,5 +109,5 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
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 545979f02c5..388a2668a41 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 067f76e39f5..e24ee52ff61 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 16bb2f7d79e..3be865d75bf 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 16bb2f7d79e..3be865d75bf 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 16bb2f7d79e..3be865d75bf 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 16bb2f7d79e..3be865d75bf 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 16bb2f7d79e..3be865d75bf 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 16bb2f7d79e..3be865d75bf 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 000a890ed64..243a70eb14d 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
@@ -11,7 +11,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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": 2,
+ "pending_webhooks": 0,
"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--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 ace501d5045..7c8a894dbfd 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/9c36daef-29ed-478d-a237-26a7dec0f4ee/upgrade/?manual_license_management=false&tier=1",
+ "cancel_url": "http://selfhosting.testserver/realm/99423a0a-fa84-4fd7-be9a-d10b8af15320/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/9c36daef-29ed-478d-a237-26a7dec0f4ee/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
+ "success_url": "http://selfhosting.testserver/realm/99423a0a-fa84-4fd7-be9a-d10b8af15320/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 d8034ac51ca..20195f42d03 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/9c36daef-29ed-478d-a237-26a7dec0f4ee/upgrade/?manual_license_management=false&tier=1",
+ "cancel_url": "http://selfhosting.testserver/realm/99423a0a-fa84-4fd7-be9a-d10b8af15320/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/9c36daef-29ed-478d-a237-26a7dec0f4ee/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
+ "success_url": "http://selfhosting.testserver/realm/99423a0a-fa84-4fd7-be9a-d10b8af15320/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/replace_payment_method--Event.list.2.json b/corporate/tests/stripe_fixtures/replace_payment_method--Event.list.2.json
index c97f45f1d9b..8ba3e3ad048 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,40 +1,5 @@
{
"data": [
- {
- "api_version": "2025-10-29.clover",
- "created": 1000000000,
- "data": {
- "object": {
- "amount_paid": null,
- "amount_requested": 48000,
- "created": 1000000000,
- "currency": "usd",
- "id": "replace_payment_method--Event.list.2.json",
- "invoice": "replace_payment_method--Event.list.2.json",
- "is_default": true,
- "livemode": false,
- "object": "invoice_payment",
- "payment": {
- "payment_intent": "replace_payment_method--Event.list.2.json",
- "type": "payment_intent"
- },
- "status": "open",
- "status_transitions": {
- "canceled_at": null,
- "paid_at": null
- }
- }
- },
- "id": "replace_payment_method--Event.list.2.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_payment.paid"
- },
{
"api_version": "2025-10-29.clover",
"created": 1000000000,
@@ -69,7 +34,7 @@
"on_behalf_of": null,
"payment_details": {
"customer_reference": null,
- "order_reference": "in_1SPP2QRVfKEFJaqcgCdnRt"
+ "order_reference": "in_1SScypRVfKEFJaqcmDIpet"
},
"payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
@@ -104,7 +69,7 @@
"id": "replace_payment_method--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 2,
+ "pending_webhooks": 0,
"request": {
"id": "replace_payment_method--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -173,7 +138,7 @@
"payment_method_details": {
"card": {
"amount_authorized": 48000,
- "authorization_code": "698945",
+ "authorization_code": "502726",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
@@ -231,7 +196,7 @@
"id": "replace_payment_method--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 2,
+ "pending_webhooks": 0,
"request": {
"id": "replace_payment_method--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -820,7 +785,7 @@
"total_excluding_tax": 48000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"amount_due": 0,
@@ -1007,7 +972,7 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "replace_payment_method--Event.list.2.json",
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 4b86840cdd8..1cad4051785 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
@@ -162,7 +162,7 @@
"id": "replace_payment_method--Event.list.3.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 2,
+ "pending_webhooks": 0,
"request": {
"id": "replace_payment_method--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -331,7 +331,7 @@
"id": "replace_payment_method--Event.list.3.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 2,
+ "pending_webhooks": 0,
"request": {
"id": "replace_payment_method--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.create.1.json b/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.create.1.json
index 4b7f013eeee..3421839a07e 100644
--- a/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.create.1.json
+++ b/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.create.1.json
@@ -109,5 +109,5 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.create.2.json b/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.create.2.json
index 47078af9f77..dfe5f4e58f7 100644
--- a/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.create.2.json
+++ b/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.create.2.json
@@ -101,5 +101,5 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
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 513f3f0fa27..8d4b392c9de 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": null
+ "webhooks_delivered_at": 1000000000
}
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 a8de618b57d..b77c2c8e4b0 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": null
+ "webhooks_delivered_at": 1000000000
}
],
"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 a501bb659d6..f092b69abc7 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": null
+ "webhooks_delivered_at": 1000000000
}
],
"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 8ba2c5d0360..90602abbb5d 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": null
+ "webhooks_delivered_at": 1000000000
},
{
"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 ee485cfcbd2..2676f62b0c9 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
@@ -100,7 +100,7 @@
"on_behalf_of": null,
"payment_details": {
"customer_reference": null,
- "order_reference": "in_1SPP2WRVfKEFJaqcyksv7r"
+ "order_reference": "in_1SScyvRVfKEFJaqcaLPWRH"
},
"payment_method": null,
"payment_method_configuration_details": null,
@@ -182,7 +182,7 @@
"object": "payment_method",
"type": "card"
},
- "request_log_url": "https://dashboard.stripe.com/test/logs/req_NORMALIZED?t=1762181253",
+ "request_log_url": "https://dashboard.stripe.com/test/logs/req_NORMALIZED?t=1762949830",
"setup_intent": null,
"source": null,
"type": "card_error"
@@ -196,10 +196,10 @@
"Cache-Control": "no-cache, no-store",
"Connection": "keep-alive",
"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-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=6Qemju57afAgxdchhx6i6PtPkxnnKeofYpdCDQyCgb4E4d5oEUx_oSeVAhrHpxMlwrFWTrb1NWC0uBag",
"Content-Type": "application/json",
"Date": "NORMALIZED DATETIME",
- "Idempotency-Key": "8eab7b92-a920-4486-b42f-2d12af0aeb03",
+ "Idempotency-Key": "6718cbb2-6ce7-450d-8dce-9ab819dbb751",
"Original-Request": "req_NORMALIZED",
"Request-Id": "req_NORMALIZED",
"Server": "nginx",
@@ -211,7 +211,7 @@
"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_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_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_jqnyWf7LjSuBCh7u660jhe32F\",\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_1SScyvRVfKEFJaqcaLPWRH\"\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=1762949830\",\n \"type\": \"card_error\"\n }\n}\n",
"http_status": 402,
"json_body": {
"error": {
@@ -312,7 +312,7 @@
"on_behalf_of": null,
"payment_details": {
"customer_reference": null,
- "order_reference": "in_1SPP2WRVfKEFJaqcyksv7r"
+ "order_reference": "in_1SScyvRVfKEFJaqcaLPWRH"
},
"payment_method": null,
"payment_method_configuration_details": null,
@@ -394,7 +394,7 @@
"object": "payment_method",
"type": "card"
},
- "request_log_url": "https://dashboard.stripe.com/test/logs/req_NORMALIZED?t=1762181253",
+ "request_log_url": "https://dashboard.stripe.com/test/logs/req_NORMALIZED?t=1762949830",
"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 5d43bc3c440..9cb3beadfb3 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": null
+ "webhooks_delivered_at": 1000000000
}
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 d9b1580f7f6..dddede50ab2 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=1762181248",
+ "request_log_url": "https://dashboard.stripe.com/test/logs/req_NORMALIZED?t=1762949825",
"setup_intent": {
"application": null,
"automatic_payment_methods": null,
@@ -169,10 +169,10 @@
"Cache-Control": "no-cache, no-store",
"Connection": "keep-alive",
"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-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=6Qemju57afAgxdchhx6i6PtPkxnnKeofYpdCDQyCgb4E4d5oEUx_oSeVAhrHpxMlwrFWTrb1NWC0uBag",
"Content-Type": "application/json",
"Date": "NORMALIZED DATETIME",
- "Idempotency-Key": "f92e4a69-4e47-44f5-826a-e88a7fa66006",
+ "Idempotency-Key": "aa6e19bd-ffbb-4a60-b826-9ead027ef8dd",
"Original-Request": "req_NORMALIZED",
"Request-Id": "req_NORMALIZED",
"Server": "nginx",
@@ -184,7 +184,7 @@
"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\": 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_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=1762949825\",\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_TPRsTDIp6opHgSICQvNT1NXQQOUEqKw\",\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": {
@@ -245,7 +245,7 @@
"object": "payment_method",
"type": "card"
},
- "request_log_url": "https://dashboard.stripe.com/test/logs/req_NORMALIZED?t=1762181248",
+ "request_log_url": "https://dashboard.stripe.com/test/logs/req_NORMALIZED?t=1762949825",
"setup_intent": {
"application": null,
"automatic_payment_methods": 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 d33c4cb8bc6..39da630be61 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 0a72f031b62..206b654af7e 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 d8c00bcdc91..560296efbdc 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 d8c00bcdc91..560296efbdc 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 d8c00bcdc91..560296efbdc 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 d8c00bcdc91..560296efbdc 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 d8c00bcdc91..560296efbdc 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Invoice.create.1.json b/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Invoice.create.1.json
index 092a194f194..1df5d59d4d9 100644
--- a/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Invoice.create.1.json
+++ b/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Invoice.create.1.json
@@ -101,5 +101,5 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
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 d20868fa27b..1dfe1a2531e 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/9c36daef-29ed-478d-a237-26a7dec0f4ee/upgrade/?manual_license_management=false&tier=1",
+ "cancel_url": "http://selfhosting.testserver/realm/99423a0a-fa84-4fd7-be9a-d10b8af15320/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/9c36daef-29ed-478d-a237-26a7dec0f4ee/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
+ "success_url": "http://selfhosting.testserver/realm/99423a0a-fa84-4fd7-be9a-d10b8af15320/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 1f7944ec053..98faac67121 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/9c36daef-29ed-478d-a237-26a7dec0f4ee/upgrade/?manual_license_management=false&tier=1",
+ "cancel_url": "http://selfhosting.testserver/realm/99423a0a-fa84-4fd7-be9a-d10b8af15320/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/9c36daef-29ed-478d-a237-26a7dec0f4ee/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
+ "success_url": "http://selfhosting.testserver/realm/99423a0a-fa84-4fd7-be9a-d10b8af15320/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 7f25b3e4c0a..d730b93ec7a 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 4964251615b..ab30507cd14 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 ec8fdc5c1fb..823382f3bfe 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 ec8fdc5c1fb..823382f3bfe 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 ec8fdc5c1fb..823382f3bfe 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 ec8fdc5c1fb..823382f3bfe 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 ec8fdc5c1fb..823382f3bfe 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 19c21af96d6..fcd121a6527 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
@@ -11,7 +11,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 dff7cdd9952..9563167b2c5 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,40 +1,5 @@
{
"data": [
- {
- "api_version": "2025-10-29.clover",
- "created": 1000000000,
- "data": {
- "object": {
- "amount_paid": null,
- "amount_requested": 10000,
- "created": 1000000000,
- "currency": "usd",
- "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",
- "is_default": true,
- "livemode": false,
- "object": "invoice_payment",
- "payment": {
- "payment_intent": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.2.json",
- "type": "payment_intent"
- },
- "status": "open",
- "status_transitions": {
- "canceled_at": null,
- "paid_at": 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": "invoice_payment.paid"
- },
{
"api_version": "2025-10-29.clover",
"created": 1000000000,
@@ -69,7 +34,7 @@
"on_behalf_of": null,
"payment_details": {
"customer_reference": null,
- "order_reference": "in_1SPP8ZRVfKEFJaqc7JjZzz"
+ "order_reference": "in_1SSd4yRVfKEFJaqcvBvicR"
},
"payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
@@ -104,7 +69,7 @@
"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"
@@ -266,7 +231,7 @@
"total_excluding_tax": 10000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.2.json",
@@ -434,7 +399,7 @@
"total_excluding_tax": 10000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"effective_at": null,
@@ -690,7 +655,7 @@
"total_excluding_tax": 10000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"amount_due": 0,
@@ -876,7 +841,7 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.2.json",
@@ -900,7 +865,7 @@
"currency": "usd",
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"discount": null,
"email": "[email protected]",
"id": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.create.1.json",
@@ -914,7 +879,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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.3.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.3.json
index 99e24c9230f..ca639add0e1 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
@@ -155,13 +155,13 @@
"total_excluding_tax": 10000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.3.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"
@@ -323,13 +323,13 @@
"total_excluding_tax": 10000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.3.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"
@@ -491,7 +491,7 @@
"total_excluding_tax": 10000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"amount_paid": 0,
@@ -507,7 +507,7 @@
"id": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.3.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"
diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.1.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.1.json
index a408ce9a791..fb6f6a135af 100644
--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.1.json
+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.1.json
@@ -108,5 +108,5 @@
"total_excluding_tax": 0,
"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.create.10.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.10.json
index e89f255431f..c27c9a0f3d2 100644
--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.10.json
+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.10.json
@@ -101,5 +101,5 @@
"total_excluding_tax": 0,
"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.create.11.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.11.json
index 76b31aeec99..45008f8fefe 100644
--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.11.json
+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.11.json
@@ -101,5 +101,5 @@
"total_excluding_tax": 0,
"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.create.12.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.12.json
index 0c9b2403bc7..b54bd8dee1f 100644
--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.12.json
+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.12.json
@@ -101,5 +101,5 @@
"total_excluding_tax": 0,
"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.create.13.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.13.json
index bb177aa79fe..aa34ad28b0a 100644
--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.13.json
+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.13.json
@@ -101,5 +101,5 @@
"total_excluding_tax": 0,
"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.create.2.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.2.json
index 2fc7788a41c..7dbb533f719 100644
--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.2.json
+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.2.json
@@ -101,5 +101,5 @@
"total_excluding_tax": 0,
"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.create.3.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.3.json
index 67e151c50bb..2ee48166d07 100644
--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.3.json
+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.3.json
@@ -101,5 +101,5 @@
"total_excluding_tax": 0,
"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.create.4.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.4.json
index 03ce54e16b9..ef3245747b6 100644
--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.4.json
+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.4.json
@@ -101,5 +101,5 @@
"total_excluding_tax": 0,
"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.create.5.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.5.json
index d8088426ba5..51624236a96 100644
--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.5.json
+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.5.json
@@ -101,5 +101,5 @@
"total_excluding_tax": 0,
"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.create.6.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.6.json
index 15bbbc00789..fca588c1a1c 100644
--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.6.json
+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.6.json
@@ -101,5 +101,5 @@
"total_excluding_tax": 0,
"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.create.7.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.7.json
index bd47287049e..8fe6ca52b2c 100644
--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.7.json
+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.7.json
@@ -101,5 +101,5 @@
"total_excluding_tax": 0,
"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.create.8.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.8.json
index d345fab394d..e59d408df51 100644
--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.8.json
+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.8.json
@@ -101,5 +101,5 @@
"total_excluding_tax": 0,
"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.create.9.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.9.json
index a39a128e25b..1fd2971db34 100644
--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.9.json
+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.9.json
@@ -101,5 +101,5 @@
"total_excluding_tax": 0,
"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.1.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.1.json
index 487a4011007..3cacbe33f70 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": 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 8cfef25b142..97cdfbe4418 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": 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.2.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.2.json
index a0003166850..52fcb3aded0 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": 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 28fb9bca54c..0e70661f358 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": null
+ "webhooks_delivered_at": 1000000000
}
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 80d8af47809..0270e579fb7 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": null
+ "webhooks_delivered_at": 1000000000
}
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 b24dd29fac2..d9ba4b6507b 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/9c36daef-29ed-478d-a237-26a7dec0f4ee/upgrade/?manual_license_management=false&tier=1",
+ "cancel_url": "http://selfhosting.testserver/realm/99423a0a-fa84-4fd7-be9a-d10b8af15320/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/9c36daef-29ed-478d-a237-26a7dec0f4ee/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
+ "success_url": "http://selfhosting.testserver/realm/99423a0a-fa84-4fd7-be9a-d10b8af15320/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 e29d9b0f955..eeea63c2a1b 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/9c36daef-29ed-478d-a237-26a7dec0f4ee/upgrade/?manual_license_management=false&tier=1",
+ "cancel_url": "http://selfhosting.testserver/realm/99423a0a-fa84-4fd7-be9a-d10b8af15320/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/9c36daef-29ed-478d-a237-26a7dec0f4ee/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
+ "success_url": "http://selfhosting.testserver/realm/99423a0a-fa84-4fd7-be9a-d10b8af15320/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--Invoice.create.1.json b/corporate/tests/stripe_fixtures/schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--Invoice.create.1.json
index faa708e7de8..5c1b6d846c0 100644
--- a/corporate/tests/stripe_fixtures/schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--Invoice.create.1.json
+++ b/corporate/tests/stripe_fixtures/schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--Invoice.create.1.json
@@ -101,5 +101,5 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--Invoice.finalize_invoice.1.json
index 02c54455bd1..7584b60d8e1 100644
--- a/corporate/tests/stripe_fixtures/schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--Invoice.finalize_invoice.1.json
+++ b/corporate/tests/stripe_fixtures/schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--Invoice.finalize_invoice.1.json
@@ -142,5 +142,5 @@
"total_excluding_tax": 120000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
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 80dae79d3f7..3e7a2d2f193 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
@@ -62,7 +62,7 @@
"payment_method_details": {
"card": {
"amount_authorized": 51600,
- "authorization_code": "918087",
+ "authorization_code": "543290",
"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": 2,
+ "pending_webhooks": 0,
"request": {
"id": "schedule_server_upgrade_to_fixed_price_business_plan--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -322,7 +322,7 @@
"total_excluding_tax": 51600,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "schedule_server_upgrade_to_fixed_price_business_plan--Event.list.2.json",
@@ -530,7 +530,7 @@
"total_excluding_tax": 51600,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"effective_at": null,
@@ -826,7 +826,7 @@
"total_excluding_tax": 51600,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"amount_due": 75600,
@@ -1094,7 +1094,7 @@
"total_excluding_tax": 75600,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"amount_due": 0,
@@ -1280,7 +1280,7 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "schedule_server_upgrade_to_fixed_price_business_plan--Event.list.2.json",
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 227072ff44c..6160311d9f0 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
@@ -195,13 +195,13 @@
"total_excluding_tax": 51600,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "schedule_server_upgrade_to_fixed_price_business_plan--Event.list.3.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 2,
+ "pending_webhooks": 0,
"request": {
"id": "schedule_server_upgrade_to_fixed_price_business_plan--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -403,13 +403,13 @@
"total_excluding_tax": 51600,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "schedule_server_upgrade_to_fixed_price_business_plan--Event.list.3.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 2,
+ "pending_webhooks": 0,
"request": {
"id": "schedule_server_upgrade_to_fixed_price_business_plan--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -611,7 +611,7 @@
"total_excluding_tax": 51600,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"amount_paid": 0,
@@ -627,48 +627,13 @@
"id": "schedule_server_upgrade_to_fixed_price_business_plan--Event.list.3.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 2,
+ "pending_webhooks": 0,
"request": {
"id": "schedule_server_upgrade_to_fixed_price_business_plan--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": 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,
@@ -703,7 +668,7 @@
"on_behalf_of": null,
"payment_details": {
"customer_reference": null,
- "order_reference": "in_1SPPCbRVfKEFJaqcK8qERq"
+ "order_reference": "in_1SSd8uRVfKEFJaqcIFVt90"
},
"payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
diff --git a/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Invoice.create.1.json b/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Invoice.create.1.json
index f5d55baf748..79657cbb05c 100644
--- a/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Invoice.create.1.json
+++ b/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Invoice.create.1.json
@@ -108,5 +108,5 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Invoice.create.2.json b/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Invoice.create.2.json
index 4324b6f7f75..8118f178722 100644
--- a/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Invoice.create.2.json
+++ b/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Invoice.create.2.json
@@ -101,5 +101,5 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
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 fdfe4b10192..8ed0e450d36 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": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Invoice.finalize_invoice.2.json b/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Invoice.finalize_invoice.2.json
index 08db05d547f..4d5cfe87e6c 100644
--- a/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Invoice.finalize_invoice.2.json
+++ b/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Invoice.finalize_invoice.2.json
@@ -142,5 +142,5 @@
"total_excluding_tax": 120000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
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 5d2a6826b82..f66fa5d2cf1 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": null
+ "webhooks_delivered_at": 1000000000
}
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 474c40cd664..e7a0c57de52 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 11f4221c750..2e6c84f88d2 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 c05808356b4..9af261f590e 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 c05808356b4..9af261f590e 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 c05808356b4..9af261f590e 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 c05808356b4..9af261f590e 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 c05808356b4..9af261f590e 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 c8f4fae65fe..b616a0c2fa6 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 3c383f811fc..d256e033f70 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
@@ -11,7 +11,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 3ebb0dcd4c4..79fe916c2da 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
@@ -62,7 +62,7 @@
"payment_method_details": {
"card": {
"amount_authorized": 22200,
- "authorization_code": "799814",
+ "authorization_code": "935154",
"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": 2,
+ "pending_webhooks": 0,
"request": {
"id": "schedule_upgrade_to_fixed_price_annual_business_plan--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -1280,7 +1280,7 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "schedule_upgrade_to_fixed_price_annual_business_plan--Event.list.2.json",
@@ -1304,7 +1304,7 @@
"currency": "usd",
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 33036a98a9a..543cfc797d1 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
@@ -634,41 +634,6 @@
},
"type": "invoice.updated"
},
- {
- "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,
@@ -703,7 +668,7 @@
"on_behalf_of": null,
"payment_details": {
"customer_reference": null,
- "order_reference": "in_1SPP9LRVfKEFJaqc81qAX2"
+ "order_reference": "in_1SSd5jRVfKEFJaqcWrXKAr"
},
"payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
diff --git a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Invoice.create.1.json b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Invoice.create.1.json
index eddf5c42b60..5892e0d8cc5 100644
--- a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Invoice.create.1.json
+++ b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Invoice.create.1.json
@@ -108,5 +108,5 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Invoice.create.2.json b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Invoice.create.2.json
index 1a181200e2b..814b61bbe94 100644
--- a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Invoice.create.2.json
+++ b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Invoice.create.2.json
@@ -101,5 +101,5 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
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 e9e92a4dc42..8b98145a43d 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/9c36daef-29ed-478d-a237-26a7dec0f4ee/upgrade/?manual_license_management=false&tier=1",
+ "cancel_url": "http://selfhosting.testserver/realm/99423a0a-fa84-4fd7-be9a-d10b8af15320/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/9c36daef-29ed-478d-a237-26a7dec0f4ee/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
+ "success_url": "http://selfhosting.testserver/realm/99423a0a-fa84-4fd7-be9a-d10b8af15320/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 841883ca859..05c846af4f1 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/9c36daef-29ed-478d-a237-26a7dec0f4ee/upgrade/?manual_license_management=false&tier=1",
+ "cancel_url": "http://selfhosting.testserver/realm/99423a0a-fa84-4fd7-be9a-d10b8af15320/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/9c36daef-29ed-478d-a237-26a7dec0f4ee/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
+ "success_url": "http://selfhosting.testserver/realm/99423a0a-fa84-4fd7-be9a-d10b8af15320/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.2.json b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Event.list.2.json
index 4c0919323c3..8f0ee62d615 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,40 +1,5 @@
{
"data": [
- {
- "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,
@@ -69,7 +34,7 @@
"on_behalf_of": null,
"payment_details": {
"customer_reference": null,
- "order_reference": "in_1SPP2zRVfKEFJaqcW6zwjA"
+ "order_reference": "in_1SSczNRVfKEFJaqcFgUs5Y"
},
"payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
@@ -104,7 +69,7 @@
"id": "sponsorship_access_for_realms_on_paid_plan--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 1,
+ "pending_webhooks": 0,
"request": {
"id": "sponsorship_access_for_realms_on_paid_plan--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -173,7 +138,7 @@
"payment_method_details": {
"card": {
"amount_authorized": 48000,
- "authorization_code": "988127",
+ "authorization_code": "104158",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
@@ -231,7 +196,7 @@
"id": "sponsorship_access_for_realms_on_paid_plan--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 2,
+ "pending_webhooks": 0,
"request": {
"id": "sponsorship_access_for_realms_on_paid_plan--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -394,7 +359,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.2.json",
@@ -563,7 +528,7 @@
"total_excluding_tax": 48000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"effective_at": null,
@@ -820,7 +785,7 @@
"total_excluding_tax": 48000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"amount_due": 0,
@@ -1007,7 +972,7 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "sponsorship_access_for_realms_on_paid_plan--Event.list.2.json",
diff --git a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Invoice.create.1.json b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Invoice.create.1.json
index 825d01400b5..a6be0925c80 100644
--- a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Invoice.create.1.json
+++ b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Invoice.create.1.json
@@ -109,5 +109,5 @@
"total_excluding_tax": 0,
"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--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Invoice.finalize_invoice.1.json
index 15bb202a234..0b9021cc5d3 100644
--- a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Invoice.finalize_invoice.1.json
+++ b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_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/stripe_billing_portal_urls--Event.list.2.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Event.list.2.json
index 75a85646a71..ecb6cbc42bf 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,428 +1,5 @@
{
"data": [
- {
- "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": {
- "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",
- "created": 1000000000,
- "currency": "usd",
- "custom_fields": null,
- "customer": "stripe_billing_portal_urls--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": "stripe_billing_portal_urls--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": "stripe_billing_portal_urls--Event.list.2.json",
- "invoice": "stripe_billing_portal_urls--Event.list.2.json",
- "livemode": false,
- "metadata": {},
- "object": "line_item",
- "parent": {
- "invoice_item_details": {
- "invoice_item": "stripe_billing_portal_urls--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": 123,
- "taxes": []
- }
- ],
- "has_more": false,
- "object": "list",
- "total_count": 1,
- "url": "/v1/invoices/stripe_billing_portal_urls--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": "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": "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,
- "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": "stripe_billing_portal_urls--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": "stripe_billing_portal_urls--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": "stripe_billing_portal_urls--Event.list.2.json",
- "invoice": "stripe_billing_portal_urls--Event.list.2.json",
- "livemode": false,
- "metadata": {},
- "object": "line_item",
- "parent": {
- "invoice_item_details": {
- "invoice_item": "stripe_billing_portal_urls--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": 123,
- "taxes": []
- }
- ],
- "has_more": false,
- "object": "list",
- "total_count": 1,
- "url": "/v1/invoices/stripe_billing_portal_urls--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
- },
- "previous_attributes": {
- "amount_paid": 0,
- "amount_remaining": 984000,
- "auto_advance": true,
- "status": "open",
- "status_transitions": {
- "paid_at": 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": "invoice.updated"
- },
{
"api_version": "2025-10-29.clover",
"created": 1000000000,
@@ -778,6 +355,82 @@
},
"type": "invoice.updated"
},
+ {
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount": 7781,
+ "amount_capturable": 0,
+ "amount_details": {
+ "tip": {}
+ },
+ "amount_received": 7781,
+ "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": "stripe_billing_portal_urls--Event.list.2.json",
+ "last_payment_error": null,
+ "latest_charge": "stripe_billing_portal_urls--Event.list.2.json",
+ "livemode": false,
+ "metadata": {},
+ "next_action": null,
+ "object": "payment_intent",
+ "on_behalf_of": null,
+ "payment_details": {
+ "customer_reference": null,
+ "order_reference": "in_1SSc2zRVfKEFJaqcXAxv9q"
+ },
+ "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": "stripe_billing_portal_urls--Event.list.2.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": null,
+ "idempotency_key": "in_NORMALIZED-initial_attempt-4fdfe8bb130ba2276"
+ },
+ "type": "payment_intent.succeeded"
+ },
{
"api_version": "2025-10-29.clover",
"created": 1000000000,
@@ -850,6 +503,133 @@
},
"type": "payment_intent.created"
},
+ {
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount": 7781,
+ "amount_captured": 7781,
+ "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 CLOUD STANDARD",
+ "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": "stripe_billing_portal_urls--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": "stripe_billing_portal_urls--Event.list.2.json",
+ "payment_method": "pm_NORMALIZED",
+ "payment_method_details": {
+ "card": {
+ "amount_authorized": 7781,
+ "authorization_code": "261510",
+ "brand": "visa",
+ "checks": {
+ "address_line1_check": "pass",
+ "address_postal_code_check": "pass",
+ "cvc_check": null
+ },
+ "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": 7781,
+ "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 Cloud Standard",
+ "statement_descriptor_suffix": null,
+ "status": "succeeded",
+ "transfer_data": null,
+ "transfer_group": null
+ }
+ },
+ "id": "stripe_billing_portal_urls--Event.list.2.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": null,
+ "idempotency_key": "in_NORMALIZED-initial_attempt-4fdfe8bb130ba2276"
+ },
+ "type": "charge.succeeded"
+ },
{
"api_version": "2025-10-29.clover",
"created": 1000000000,
@@ -1006,7 +786,7 @@
"total_excluding_tax": 984000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"amount_due": 0,
@@ -1078,6 +858,41 @@
},
"type": "invoiceitem.created"
},
+ {
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount_paid": 5000,
+ "amount_requested": 5000,
+ "created": 1000000000,
+ "currency": "usd",
+ "id": "stripe_billing_portal_urls--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": "stripe_billing_portal_urls--Event.list.2.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": null,
+ "idempotency_key": null
+ },
+ "type": "invoice_payment.paid"
+ },
{
"api_version": "2025-10-29.clover",
"created": 1000000000,
@@ -1193,7 +1008,7 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "stripe_billing_portal_urls--Event.list.2.json",
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 3b41af177cf..b88bfe0f640 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
@@ -5,23 +5,411 @@
"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": "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_1SSczbRVfKEFJaqc1HxBy8"
+ },
+ "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.3.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "stripe_billing_portal_urls--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": {
+ "account_country": "US",
+ "account_name": "NORMALIZED",
+ "account_tax_ids": null,
+ "amount_due": 984000,
+ "amount_overpaid": 0,
"amount_paid": 984000,
- "amount_requested": 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",
"created": 1000000000,
"currency": "usd",
- "id": "stripe_billing_portal_urls--Event.list.3.json",
- "invoice": "in_NORMALIZED",
- "is_default": false,
+ "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": "stripe_billing_portal_urls--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": "stripe_billing_portal_urls--Event.list.2.json",
+ "invoice": "stripe_billing_portal_urls--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": 123,
+ "taxes": []
+ }
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 1,
+ "url": "/v1/invoices/stripe_billing_portal_urls--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": "stripe_billing_portal_urls--Event.list.3.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "stripe_billing_portal_urls--Event.list.3.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,
+ "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": "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": "stripe_billing_portal_urls--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": "stripe_billing_portal_urls--Event.list.2.json",
+ "invoice": "stripe_billing_portal_urls--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": 123,
+ "taxes": []
+ }
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 1,
+ "url": "/v1/invoices/stripe_billing_portal_urls--Event.list.2.json/lines"
+ },
"livemode": false,
- "object": "invoice_payment",
- "payment": {
- "payment_record": "pr_test_NORMALIZEDhxloNja41RVfKEFJaqcIPo",
- "type": "payment_record"
+ "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": {
- "canceled_at": null,
- "paid_at": 1000000000
+ "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
}
}
},
@@ -30,10 +418,505 @@
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "stripe_billing_portal_urls--Event.list.2.json",
+ "id": "stripe_billing_portal_urls--Event.list.3.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "invoice_payment.paid"
+ "type": "invoice.updated"
+ },
+ {
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "account_country": "US",
+ "account_name": "NORMALIZED",
+ "account_tax_ids": null,
+ "amount_due": 7781,
+ "amount_overpaid": 0,
+ "amount_paid": 7781,
+ "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": "stripe_billing_portal_urls--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": 7781,
+ "currency": "usd",
+ "description": "Additional Zulip Cloud Standard license",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "stripe_billing_portal_urls--Event.list.3.json",
+ "invoice": "stripe_billing_portal_urls--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": 1326337445
+ },
+ "pretax_credit_amounts": [],
+ "pricing": {
+ "price_details": {
+ "price": "price_NORMALIZED",
+ "product": "prod_NORMALIZED"
+ },
+ "type": "price_details",
+ "unit_amount_decimal": "7781"
+ },
+ "quantity": 1,
+ "taxes": []
+ }
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 1,
+ "url": "/v1/invoices/stripe_billing_portal_urls--Event.list.3.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": "paid",
+ "status_transitions": {
+ "finalized_at": 1000000000,
+ "marked_uncollectible_at": null,
+ "paid_at": 1000000000,
+ "voided_at": null
+ },
+ "subtotal": 7781,
+ "subtotal_excluding_tax": 7781,
+ "test_clock": null,
+ "total": 7781,
+ "total_discount_amounts": [],
+ "total_excluding_tax": 7781,
+ "total_pretax_credit_amounts": [],
+ "total_taxes": [],
+ "webhooks_delivered_at": 1000000000
+ }
+ },
+ "id": "stripe_billing_portal_urls--Event.list.3.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": null,
+ "idempotency_key": null
+ },
+ "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": 7781,
+ "amount_overpaid": 0,
+ "amount_paid": 7781,
+ "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": "stripe_billing_portal_urls--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": 7781,
+ "currency": "usd",
+ "description": "Additional Zulip Cloud Standard license",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "stripe_billing_portal_urls--Event.list.3.json",
+ "invoice": "stripe_billing_portal_urls--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": 1326337445
+ },
+ "pretax_credit_amounts": [],
+ "pricing": {
+ "price_details": {
+ "price": "price_NORMALIZED",
+ "product": "prod_NORMALIZED"
+ },
+ "type": "price_details",
+ "unit_amount_decimal": "7781"
+ },
+ "quantity": 1,
+ "taxes": []
+ }
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 1,
+ "url": "/v1/invoices/stripe_billing_portal_urls--Event.list.3.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": "paid",
+ "status_transitions": {
+ "finalized_at": 1000000000,
+ "marked_uncollectible_at": null,
+ "paid_at": 1000000000,
+ "voided_at": null
+ },
+ "subtotal": 7781,
+ "subtotal_excluding_tax": 7781,
+ "test_clock": null,
+ "total": 7781,
+ "total_discount_amounts": [],
+ "total_excluding_tax": 7781,
+ "total_pretax_credit_amounts": [],
+ "total_taxes": [],
+ "webhooks_delivered_at": 1000000000
+ }
+ },
+ "id": "stripe_billing_portal_urls--Event.list.3.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": null,
+ "idempotency_key": null
+ },
+ "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": 7781,
+ "amount_overpaid": 0,
+ "amount_paid": 7781,
+ "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": "stripe_billing_portal_urls--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": 7781,
+ "currency": "usd",
+ "description": "Additional Zulip Cloud Standard license",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "stripe_billing_portal_urls--Event.list.3.json",
+ "invoice": "stripe_billing_portal_urls--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": 1326337445
+ },
+ "pretax_credit_amounts": [],
+ "pricing": {
+ "price_details": {
+ "price": "price_NORMALIZED",
+ "product": "prod_NORMALIZED"
+ },
+ "type": "price_details",
+ "unit_amount_decimal": "7781"
+ },
+ "quantity": 1,
+ "taxes": []
+ }
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 1,
+ "url": "/v1/invoices/stripe_billing_portal_urls--Event.list.3.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": "paid",
+ "status_transitions": {
+ "finalized_at": 1000000000,
+ "marked_uncollectible_at": null,
+ "paid_at": 1000000000,
+ "voided_at": null
+ },
+ "subtotal": 7781,
+ "subtotal_excluding_tax": 7781,
+ "test_clock": null,
+ "total": 7781,
+ "total_discount_amounts": [],
+ "total_excluding_tax": 7781,
+ "total_pretax_credit_amounts": [],
+ "total_taxes": [],
+ "webhooks_delivered_at": 1000000000
+ },
+ "previous_attributes": {
+ "amount_paid": 0,
+ "amount_remaining": 7781,
+ "attempt_count": 0,
+ "attempted": false,
+ "auto_advance": true,
+ "next_payment_attempt": 1000000000,
+ "status": "open",
+ "status_transitions": {
+ "paid_at": null
+ }
+ }
+ },
+ "id": "stripe_billing_portal_urls--Event.list.3.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": null,
+ "idempotency_key": null
+ },
+ "type": "invoice.updated"
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Invoice.create.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Invoice.create.1.json
index 379fe48549b..c64599fd225 100644
--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Invoice.create.1.json
+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Invoice.create.1.json
@@ -109,5 +109,5 @@
"total_excluding_tax": 0,
"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_for_remote_realm--Customer.create.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.create.1.json
index ba39b980d4f..21702e2fec6 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 f7cb5aee920..b9aebab23ae 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 1389c80f7cb..3e0fa559eaa 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 1389c80f7cb..3e0fa559eaa 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 1389c80f7cb..3e0fa559eaa 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 1389c80f7cb..3e0fa559eaa 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 1389c80f7cb..3e0fa559eaa 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 2d9229127f2..a95dea8e66b 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
@@ -11,7 +11,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 8f0d8c0c4ad..caa30dc28ea 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
@@ -5,8 +5,8 @@
"created": 1000000000,
"data": {
"object": {
- "amount": 176000,
- "amount_captured": 176000,
+ "amount": 240000,
+ "amount_captured": 240000,
"amount_refunded": 0,
"application": null,
"application_fee": null,
@@ -26,11 +26,11 @@
"phone": null,
"tax_id": null
},
- "calculated_statement_descriptor": "ZULIP BUSINESS",
+ "calculated_statement_descriptor": "ZULIP CLOUD STANDARD",
"captured": true,
"created": 1000000000,
"currency": "usd",
- "customer": "stripe_billing_portal_urls_for_remote_realm--Customer.create.1.json",
+ "customer": "cus_NORMALIZED",
"description": "Payment for Invoice",
"destination": null,
"dispute": null,
@@ -57,17 +57,17 @@
"type": "authorized"
},
"paid": true,
- "payment_intent": "stripe_billing_portal_urls_for_remote_realm--Event.list.2.json",
+ "payment_intent": "pi_NORMALIZED",
"payment_method": "pm_NORMALIZED",
"payment_method_details": {
"card": {
- "amount_authorized": 176000,
- "authorization_code": "535014",
+ "amount_authorized": 240000,
+ "authorization_code": "511582",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
"address_postal_code_check": "pass",
- "cvc_check": "pass"
+ "cvc_check": null
},
"country": "US",
"exp_month": 1,
@@ -92,7 +92,7 @@
},
"network_transaction_id": "100110997670110",
"overcapture": {
- "maximum_amount_capturable": 176000,
+ "maximum_amount_capturable": 240000,
"status": "unavailable"
},
"regulated_status": "unregulated",
@@ -110,7 +110,7 @@
"shipping": null,
"source": null,
"source_transfer": null,
- "statement_descriptor": "Zulip Business",
+ "statement_descriptor": "Zulip Cloud Standard",
"statement_descriptor_suffix": null,
"status": "succeeded",
"transfer_data": null,
@@ -120,10 +120,10 @@
"id": "stripe_billing_portal_urls_for_remote_realm--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 2,
+ "pending_webhooks": 0,
"request": {
- "id": "stripe_billing_portal_urls_for_remote_realm--Event.list.2.json",
- "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ "id": null,
+ "idempotency_key": "in_NORMALIZED-initial_attempt-45b92610904f95ceb"
},
"type": "charge.succeeded"
},
@@ -1094,7 +1094,7 @@
"total_excluding_tax": 200000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"amount_due": 0,
@@ -1280,7 +1280,7 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "stripe_billing_portal_urls_for_remote_realm--Event.list.2.json",
@@ -1304,7 +1304,7 @@
"currency": "usd",
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 73c63231fb9..ac36cea22df 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
@@ -203,7 +203,7 @@
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "stripe_billing_portal_urls_for_remote_realm--Event.list.2.json",
+ "id": "stripe_billing_portal_urls_for_remote_realm--Event.list.3.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "invoice.payment_succeeded"
@@ -411,7 +411,7 @@
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "stripe_billing_portal_urls_for_remote_realm--Event.list.2.json",
+ "id": "stripe_billing_portal_urls_for_remote_realm--Event.list.3.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "invoice.paid"
@@ -629,7 +629,7 @@
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "stripe_billing_portal_urls_for_remote_realm--Event.list.2.json",
+ "id": "stripe_billing_portal_urls_for_remote_realm--Event.list.3.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "invoice.updated"
@@ -639,22 +639,685 @@
"created": 1000000000,
"data": {
"object": {
- "amount_paid": null,
- "amount_requested": 176000,
+ "amount": 176000,
+ "amount_capturable": 0,
+ "amount_details": {
+ "tip": {}
+ },
+ "amount_received": 176000,
+ "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": "stripe_billing_portal_urls_for_remote_realm--Event.list.2.json",
+ "last_payment_error": null,
+ "latest_charge": "stripe_billing_portal_urls_for_remote_realm--Event.list.3.json",
+ "livemode": false,
+ "metadata": {},
+ "next_action": null,
+ "object": "payment_intent",
+ "on_behalf_of": null,
+ "payment_details": {
+ "customer_reference": null,
+ "order_reference": "in_1SSd61RVfKEFJaqcxT397q"
+ },
+ "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 Business",
+ "statement_descriptor_suffix": null,
+ "status": "succeeded",
+ "transfer_data": null,
+ "transfer_group": 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.3.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ },
+ "type": "payment_intent.succeeded"
+ },
+ {
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount": 176000,
+ "amount_captured": 176000,
+ "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 BUSINESS",
+ "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": "stripe_billing_portal_urls_for_remote_realm--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": "stripe_billing_portal_urls_for_remote_realm--Event.list.2.json",
+ "payment_method": "pm_NORMALIZED",
+ "payment_method_details": {
+ "card": {
+ "amount_authorized": 176000,
+ "authorization_code": "335874",
+ "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": 176000,
+ "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 Business",
+ "statement_descriptor_suffix": null,
+ "status": "succeeded",
+ "transfer_data": null,
+ "transfer_group": 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.3.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ },
+ "type": "charge.succeeded"
+ },
+ {
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "account_country": "US",
+ "account_name": "NORMALIZED",
+ "account_tax_ids": null,
+ "amount_due": 240000,
+ "amount_overpaid": 0,
+ "amount_paid": 240000,
+ "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": "stripe_billing_portal_urls_for_remote_realm--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": 240000,
+ "currency": "usd",
+ "description": "Zulip Cloud Standard - renewal",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "stripe_billing_portal_urls_for_remote_realm--Event.list.3.json",
+ "invoice": "stripe_billing_portal_urls_for_remote_realm--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": 1391310245,
+ "start": 1359774245
+ },
+ "pretax_credit_amounts": [],
+ "pricing": {
+ "price_details": {
+ "price": "price_NORMALIZED",
+ "product": "prod_NORMALIZED"
+ },
+ "type": "price_details",
+ "unit_amount_decimal": "8000"
+ },
+ "quantity": 30,
+ "taxes": []
+ }
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 1,
+ "url": "/v1/invoices/stripe_billing_portal_urls_for_remote_realm--Event.list.3.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": "paid",
+ "status_transitions": {
+ "finalized_at": 1000000000,
+ "marked_uncollectible_at": null,
+ "paid_at": 1000000000,
+ "voided_at": null
+ },
+ "subtotal": 240000,
+ "subtotal_excluding_tax": 240000,
+ "test_clock": null,
+ "total": 240000,
+ "total_discount_amounts": [],
+ "total_excluding_tax": 240000,
+ "total_pretax_credit_amounts": [],
+ "total_taxes": [],
+ "webhooks_delivered_at": 1000000000
+ }
+ },
+ "id": "stripe_billing_portal_urls_for_remote_realm--Event.list.3.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": null,
+ "idempotency_key": null
+ },
+ "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": 240000,
+ "amount_overpaid": 0,
+ "amount_paid": 240000,
+ "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": "stripe_billing_portal_urls_for_remote_realm--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": 240000,
+ "currency": "usd",
+ "description": "Zulip Cloud Standard - renewal",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "stripe_billing_portal_urls_for_remote_realm--Event.list.3.json",
+ "invoice": "stripe_billing_portal_urls_for_remote_realm--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": 1391310245,
+ "start": 1359774245
+ },
+ "pretax_credit_amounts": [],
+ "pricing": {
+ "price_details": {
+ "price": "price_NORMALIZED",
+ "product": "prod_NORMALIZED"
+ },
+ "type": "price_details",
+ "unit_amount_decimal": "8000"
+ },
+ "quantity": 30,
+ "taxes": []
+ }
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 1,
+ "url": "/v1/invoices/stripe_billing_portal_urls_for_remote_realm--Event.list.3.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": "paid",
+ "status_transitions": {
+ "finalized_at": 1000000000,
+ "marked_uncollectible_at": null,
+ "paid_at": 1000000000,
+ "voided_at": null
+ },
+ "subtotal": 240000,
+ "subtotal_excluding_tax": 240000,
+ "test_clock": null,
+ "total": 240000,
+ "total_discount_amounts": [],
+ "total_excluding_tax": 240000,
+ "total_pretax_credit_amounts": [],
+ "total_taxes": [],
+ "webhooks_delivered_at": 1000000000
+ }
+ },
+ "id": "stripe_billing_portal_urls_for_remote_realm--Event.list.3.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": null,
+ "idempotency_key": null
+ },
+ "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": 240000,
+ "amount_overpaid": 0,
+ "amount_paid": 240000,
+ "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": "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,
+ "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": 240000,
+ "currency": "usd",
+ "description": "Zulip Cloud Standard - renewal",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "stripe_billing_portal_urls_for_remote_realm--Event.list.3.json",
+ "invoice": "stripe_billing_portal_urls_for_remote_realm--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": 1391310245,
+ "start": 1359774245
+ },
+ "pretax_credit_amounts": [],
+ "pricing": {
+ "price_details": {
+ "price": "price_NORMALIZED",
+ "product": "prod_NORMALIZED"
+ },
+ "type": "price_details",
+ "unit_amount_decimal": "8000"
+ },
+ "quantity": 30,
+ "taxes": []
+ }
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 1,
+ "url": "/v1/invoices/stripe_billing_portal_urls_for_remote_realm--Event.list.3.json/lines"
+ },
"livemode": false,
- "object": "invoice_payment",
- "payment": {
- "payment_intent": "stripe_billing_portal_urls_for_remote_realm--Event.list.2.json",
- "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 Cloud Standard",
+ "status": "paid",
+ "status_transitions": {
+ "finalized_at": 1000000000,
+ "marked_uncollectible_at": null,
+ "paid_at": 1000000000,
+ "voided_at": null
},
+ "subtotal": 240000,
+ "subtotal_excluding_tax": 240000,
+ "test_clock": null,
+ "total": 240000,
+ "total_discount_amounts": [],
+ "total_excluding_tax": 240000,
+ "total_pretax_credit_amounts": [],
+ "total_taxes": [],
+ "webhooks_delivered_at": 1000000000
+ },
+ "previous_attributes": {
+ "amount_paid": 0,
+ "amount_remaining": 240000,
+ "attempt_count": 0,
+ "attempted": false,
+ "auto_advance": true,
+ "next_payment_attempt": 1000000000,
"status": "open",
"status_transitions": {
- "canceled_at": null,
"paid_at": null
}
}
@@ -664,22 +1327,22 @@
"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"
+ "id": null,
+ "idempotency_key": null
},
- "type": "invoice_payment.paid"
+ "type": "invoice.updated"
},
{
"api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
- "amount": 176000,
+ "amount": 240000,
"amount_capturable": 0,
"amount_details": {
"tip": {}
},
- "amount_received": 176000,
+ "amount_received": 240000,
"application": null,
"application_fee_amount": null,
"automatic_payment_methods": null,
@@ -693,7 +1356,7 @@
"customer": "cus_NORMALIZED",
"description": "Payment for Invoice",
"excluded_payment_method_types": null,
- "id": "stripe_billing_portal_urls_for_remote_realm--Event.list.2.json",
+ "id": "stripe_billing_portal_urls_for_remote_realm--Event.list.3.json",
"last_payment_error": null,
"latest_charge": "ch_NORMALIZED",
"livemode": false,
@@ -703,7 +1366,7 @@
"on_behalf_of": null,
"payment_details": {
"customer_reference": null,
- "order_reference": "in_1SPP9cRVfKEFJaqcrlMbQu"
+ "order_reference": "in_1SSc9TRVfKEFJaqcpurXJc"
},
"payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
@@ -728,7 +1391,7 @@
"setup_future_usage": null,
"shipping": null,
"source": null,
- "statement_descriptor": "Zulip Business",
+ "statement_descriptor": "Zulip Cloud Standard",
"statement_descriptor_suffix": null,
"status": "succeeded",
"transfer_data": null,
@@ -740,8 +1403,8 @@
"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"
+ "id": null,
+ "idempotency_key": "stripe_billing_portal_urls_for_remote_realm--Event.list.3.json-initial_attempt-45b92610904f95ceb"
},
"type": "payment_intent.succeeded"
}
diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Invoice.create.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Invoice.create.1.json
index 2e1f8be4260..ff39b9b35f6 100644
--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Invoice.create.1.json
+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Invoice.create.1.json
@@ -108,5 +108,5 @@
"total_excluding_tax": 0,
"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_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 7c294ecb417..548f6890fc7 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/9c36daef-29ed-478d-a237-26a7dec0f4ee/billing/",
+ "return_url": "http://selfhosting.testserver/realm/99423a0a-fa84-4fd7-be9a-d10b8af15320/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 195fb91ead2..80ac2eed289 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/9c36daef-29ed-478d-a237-26a7dec0f4ee/billing/",
+ "return_url": "http://selfhosting.testserver/realm/99423a0a-fa84-4fd7-be9a-d10b8af15320/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 8d3ba06d15d..dab49dfd04f 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/9c36daef-29ed-478d-a237-26a7dec0f4ee/upgrade/?manual_license_management=false&tier=1",
+ "cancel_url": "http://selfhosting.testserver/realm/99423a0a-fa84-4fd7-be9a-d10b8af15320/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/9c36daef-29ed-478d-a237-26a7dec0f4ee/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
+ "success_url": "http://selfhosting.testserver/realm/99423a0a-fa84-4fd7-be9a-d10b8af15320/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 20893896e02..3efaea8241d 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/9c36daef-29ed-478d-a237-26a7dec0f4ee/upgrade/?manual_license_management=false&tier=1",
+ "cancel_url": "http://selfhosting.testserver/realm/99423a0a-fa84-4fd7-be9a-d10b8af15320/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/9c36daef-29ed-478d-a237-26a7dec0f4ee/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
+ "success_url": "http://selfhosting.testserver/realm/99423a0a-fa84-4fd7-be9a-d10b8af15320/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 ea36accb6bf..0666564dd41 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
@@ -5,40 +5,23 @@
"created": 1000000000,
"data": {
"object": {
- "address": null,
- "balance": 0,
+ "amount_paid": 51600,
+ "amount_requested": 51600,
"created": 1000000000,
- "currency": null,
- "default_source": null,
- "delinquent": false,
- "description": "demo.example.com 6cde5f7a-1f7",
- "discount": null,
- "email": "[email protected]",
- "id": "stripe_billing_portal_urls_for_remote_server--Customer.create.1.json",
- "invoice_prefix": "NORMALIZED",
- "invoice_settings": {
- "custom_fields": null,
- "default_payment_method": "pm_NORMALIZED",
- "footer": null,
- "rendering_options": null
- },
+ "currency": "usd",
+ "id": "stripe_billing_portal_urls_for_remote_server--Event.list.1.json",
+ "invoice": "in_NORMALIZED",
+ "is_default": true,
"livemode": false,
- "metadata": {
- "remote_server_str": "demo.example.com 6cde5f7a-1f7",
- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"
+ "object": "invoice_payment",
+ "payment": {
+ "payment_intent": "pi_NORMALIZED",
+ "type": "payment_intent"
},
- "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
+ "status": "paid",
+ "status_transitions": {
+ "canceled_at": null,
+ "paid_at": 1000000000
}
}
},
@@ -47,10 +30,10 @@
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "stripe_billing_portal_urls_for_remote_server--Event.list.1.json",
- "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ "id": null,
+ "idempotency_key": null
},
- "type": "customer.updated"
+ "type": "invoice_payment.paid"
}
],
"has_more": true,
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 56600521091..ab15111ce62 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
@@ -62,7 +62,7 @@
"payment_method_details": {
"card": {
"amount_authorized": 176000,
- "authorization_code": "983420",
+ "authorization_code": "251510",
"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": 2,
+ "pending_webhooks": 0,
"request": {
"id": "stripe_billing_portal_urls_for_remote_server--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -1094,7 +1094,7 @@
"total_excluding_tax": 200000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"amount_due": 0,
@@ -1280,7 +1280,7 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "stripe_billing_portal_urls_for_remote_server--Event.list.2.json",
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 8a422433e61..b623beadd1e 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
@@ -634,41 +634,6 @@
},
"type": "invoice.updated"
},
- {
- "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,
@@ -703,7 +668,7 @@
"on_behalf_of": null,
"payment_details": {
"customer_reference": null,
- "order_reference": "in_1SPPCvRVfKEFJaqcgcvxx5"
+ "order_reference": "in_1SSd9BRVfKEFJaqclanzPj"
},
"payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--Invoice.create.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--Invoice.create.1.json
index 31be3aece49..e3e60bfd97e 100644
--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--Invoice.create.1.json
+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--Invoice.create.1.json
@@ -108,5 +108,5 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
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 afbf9c89a1d..59523446d84 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,40 +1,5 @@
{
"data": [
- {
- "api_version": "2025-10-29.clover",
- "created": 1000000000,
- "data": {
- "object": {
- "amount_paid": null,
- "amount_requested": 48000,
- "created": 1000000000,
- "currency": "usd",
- "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",
- "is_default": true,
- "livemode": false,
- "object": "invoice_payment",
- "payment": {
- "payment_intent": "switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.2.json",
- "type": "payment_intent"
- },
- "status": "open",
- "status_transitions": {
- "canceled_at": null,
- "paid_at": null
- }
- }
- },
- "id": "switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.2.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_payment.paid"
- },
{
"api_version": "2025-10-29.clover",
"created": 1000000000,
@@ -69,7 +34,7 @@
"on_behalf_of": null,
"payment_details": {
"customer_reference": null,
- "order_reference": "in_1SPP3QRVfKEFJaqcEhajZ2"
+ "order_reference": "in_1SSczpRVfKEFJaqc2QbkRm"
},
"payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
@@ -173,7 +138,7 @@
"payment_method_details": {
"card": {
"amount_authorized": 48000,
- "authorization_code": "267023",
+ "authorization_code": "070707",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
@@ -231,7 +196,7 @@
"id": "switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 2,
+ "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"
@@ -820,7 +785,7 @@
"total_excluding_tax": 48000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"amount_due": 0,
@@ -1007,7 +972,7 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.2.json",
@@ -1071,7 +1036,7 @@
"type": "customer.updated"
}
],
- "has_more": true,
+ "has_more": false,
"object": "list",
"url": "/v1/events"
}
diff --git a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Invoice.create.1.json b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Invoice.create.1.json
index cf622e97ecf..8d6558ed9e4 100644
--- a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Invoice.create.1.json
+++ b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Invoice.create.1.json
@@ -109,5 +109,5 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Invoice.create.2.json b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Invoice.create.2.json
index bcd1721bc06..57f98c7c3bd 100644
--- a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Invoice.create.2.json
+++ b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Invoice.create.2.json
@@ -101,5 +101,5 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Invoice.create.3.json b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Invoice.create.3.json
index 2b3237f17a3..e82417c338a 100644
--- a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Invoice.create.3.json
+++ b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Invoice.create.3.json
@@ -101,5 +101,5 @@
"total_excluding_tax": 0,
"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--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 fb4c482cc8b..520284b190b 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,40 +1,5 @@
{
"data": [
- {
- "api_version": "2025-10-29.clover",
- "created": 1000000000,
- "data": {
- "object": {
- "amount_paid": null,
- "amount_requested": 4800,
- "created": 1000000000,
- "currency": "usd",
- "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",
- "is_default": true,
- "livemode": false,
- "object": "invoice_payment",
- "payment": {
- "payment_intent": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.2.json",
- "type": "payment_intent"
- },
- "status": "open",
- "status_transitions": {
- "canceled_at": null,
- "paid_at": null
- }
- }
- },
- "id": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.2.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_payment.paid"
- },
{
"api_version": "2025-10-29.clover",
"created": 1000000000,
@@ -69,7 +34,7 @@
"on_behalf_of": null,
"payment_details": {
"customer_reference": null,
- "order_reference": "in_1SPP3nRVfKEFJaqcxXkJMc"
+ "order_reference": "in_1SSd0BRVfKEFJaqcyZpzy6"
},
"payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
@@ -173,7 +138,7 @@
"payment_method_details": {
"card": {
"amount_authorized": 4800,
- "authorization_code": "180426",
+ "authorization_code": "302642",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
@@ -231,7 +196,7 @@
"id": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 1,
+ "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"
@@ -394,7 +359,7 @@
"total_excluding_tax": 4800,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.2.json",
@@ -563,7 +528,7 @@
"total_excluding_tax": 4800,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"effective_at": null,
@@ -820,7 +785,7 @@
"total_excluding_tax": 4800,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"amount_due": 0,
@@ -1007,7 +972,7 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.2.json",
@@ -1071,7 +1036,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_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 8402acc2c78..507e588bde4 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
@@ -156,7 +156,7 @@
"total_excluding_tax": 4800,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.3.json",
@@ -325,7 +325,7 @@
"total_excluding_tax": 4800,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.3.json",
@@ -494,7 +494,7 @@
"total_excluding_tax": 4800,
"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/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.create.1.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.create.1.json
index 06a325a5da8..1cecd0ac1bc 100644
--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.create.1.json
+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.create.1.json
@@ -109,5 +109,5 @@
"total_excluding_tax": 0,
"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.create.2.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.create.2.json
index e0d9ceeb788..39d7368c4f7 100644
--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.create.2.json
+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.create.2.json
@@ -101,5 +101,5 @@
"total_excluding_tax": 0,
"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.create.3.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.create.3.json
index 1d1aecbf87f..95569b021de 100644
--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.create.3.json
+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.create.3.json
@@ -101,5 +101,5 @@
"total_excluding_tax": 0,
"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.create.4.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.create.4.json
index a3fb449dbae..d4d747858ac 100644
--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.create.4.json
+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.create.4.json
@@ -101,5 +101,5 @@
"total_excluding_tax": 0,
"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.create.5.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.create.5.json
index 028097f00f7..7982ecef262 100644
--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.create.5.json
+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.create.5.json
@@ -101,5 +101,5 @@
"total_excluding_tax": 0,
"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.1.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.finalize_invoice.1.json
index ebbe4fe9dd3..83ada01a3f4 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": 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 ed5978a07fc..8a9358fe187 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": null
+ "webhooks_delivered_at": 1000000000
}
],
"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 f125b792fe8..c2feb90ccf6 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": null
+ "webhooks_delivered_at": 1000000000
}
],
"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 980c1bf28dc..75fb8574c53 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
@@ -776,7 +776,7 @@
"total_excluding_tax": 4800,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
],
"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 04d594ed886..be7d713fdcb 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": null
+ "webhooks_delivered_at": 1000000000
}
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 c0df110ea89..92aee7a42e6 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,116 +1,5 @@
{
"data": [
- {
- "api_version": "2025-10-29.clover",
- "created": 1000000000,
- "data": {
- "object": {
- "amount_paid": null,
- "amount_requested": 28000,
- "created": 1000000000,
- "currency": "usd",
- "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",
- "is_default": true,
- "livemode": false,
- "object": "invoice_payment",
- "payment": {
- "payment_intent": "switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.2.json",
- "type": "payment_intent"
- },
- "status": "open",
- "status_transitions": {
- "canceled_at": null,
- "paid_at": null
- }
- }
- },
- "id": "switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.2.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_payment.paid"
- },
- {
- "api_version": "2025-10-29.clover",
- "created": 1000000000,
- "data": {
- "object": {
- "amount": 28000,
- "amount_capturable": 0,
- "amount_details": {
- "tip": {}
- },
- "amount_received": 28000,
- "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": "switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Customer.create.1.json",
- "description": "Payment for Invoice",
- "excluded_payment_method_types": null,
- "id": "switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.2.json",
- "last_payment_error": null,
- "latest_charge": "switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.2.json",
- "livemode": false,
- "metadata": {},
- "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": {
- "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": "switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.2.json",
- "livemode": false,
- "object": "event",
- "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"
- },
- "type": "payment_intent.succeeded"
- },
{
"api_version": "2025-10-29.clover",
"created": 1000000000,
@@ -173,7 +62,7 @@
"payment_method_details": {
"card": {
"amount_authorized": 28000,
- "authorization_code": "251370",
+ "authorization_code": "125021",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
@@ -231,7 +120,7 @@
"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"
@@ -592,6 +481,76 @@
},
"type": "invoice.updated"
},
+ {
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount_paid": 2285250,
+ "amount_requested": 2285250,
+ "created": 1000000000,
+ "currency": "usd",
+ "id": "switch_from_monthly_plan_to_annual_plan_for_manual_license_management--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": "switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.2.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": null,
+ "idempotency_key": null
+ },
+ "type": "invoice_payment.paid"
+ },
+ {
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount_paid": 80697,
+ "amount_requested": 80697,
+ "created": 1000000000,
+ "currency": "usd",
+ "id": "switch_from_monthly_plan_to_annual_plan_for_manual_license_management--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": "switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.2.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": null,
+ "idempotency_key": null
+ },
+ "type": "invoice_payment.paid"
+ },
{
"api_version": "2025-10-29.clover",
"created": 1000000000,
@@ -820,7 +779,7 @@
"total_excluding_tax": 28000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"amount_due": 0,
@@ -1007,7 +966,7 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.2.json",
@@ -1071,7 +1030,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_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 ab039491e61..c136336a516 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
@@ -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": 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"
@@ -331,7 +331,7 @@
"id": "switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.3.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 1,
+ "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"
@@ -516,6 +516,82 @@
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "invoice.updated"
+ },
+ {
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount": 28000,
+ "amount_capturable": 0,
+ "amount_details": {
+ "tip": {}
+ },
+ "amount_received": 28000,
+ "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": "switch_from_monthly_plan_to_annual_plan_for_manual_license_management--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_1SSd0bRVfKEFJaqcZ6Eg1K"
+ },
+ "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": "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": "payment_intent.succeeded"
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Invoice.create.1.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Invoice.create.1.json
index f01719f54f7..901d7607a07 100644
--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Invoice.create.1.json
+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Invoice.create.1.json
@@ -109,5 +109,5 @@
"total_excluding_tax": 0,
"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_manual_license_management--Invoice.create.2.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Invoice.create.2.json
index 1964beeacf8..5e692706375 100644
--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Invoice.create.2.json
+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Invoice.create.2.json
@@ -101,5 +101,5 @@
"total_excluding_tax": 0,
"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_manual_license_management--Invoice.create.3.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Invoice.create.3.json
index 5d012168db6..031f110e676 100644
--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Invoice.create.3.json
+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Invoice.create.3.json
@@ -101,5 +101,5 @@
"total_excluding_tax": 0,
"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--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 07a41bd77a1..4c30064a8e3 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": -559,
+ "amount": -475,
"checkout_session": null,
"created": 1000000000,
"credit_note": null,
"currency": "usd",
"customer": "cus_NORMALIZED",
"description": "Credit from early termination of active plan",
- "ending_balance": -559,
+ "ending_balance": -475,
"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.2.json b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Event.list.2.json
index 651469d156b..02ff1ab99d0 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
@@ -5,24 +5,65 @@
"created": 1000000000,
"data": {
"object": {
- "amount_paid": null,
- "amount_requested": 48000,
+ "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": "switch_realm_from_standard_to_plus_plan--Customer.create.1.json",
+ "description": "Payment for Invoice",
+ "excluded_payment_method_types": null,
"id": "switch_realm_from_standard_to_plus_plan--Event.list.2.json",
- "invoice": "switch_realm_from_standard_to_plus_plan--Event.list.2.json",
- "is_default": true,
+ "last_payment_error": null,
+ "latest_charge": "ch_NORMALIZED",
"livemode": false,
- "object": "invoice_payment",
- "payment": {
- "payment_intent": "switch_realm_from_standard_to_plus_plan--Event.list.2.json",
- "type": "payment_intent"
+ "metadata": {},
+ "next_action": null,
+ "object": "payment_intent",
+ "on_behalf_of": null,
+ "payment_details": {
+ "customer_reference": null,
+ "order_reference": "in_1SSdBCRVfKEFJaqc5vz1PO"
},
- "status": "open",
- "status_transitions": {
- "canceled_at": null,
- "paid_at": 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": "switch_realm_from_standard_to_plus_plan--Event.list.2.json",
@@ -33,19 +74,19 @@
"id": "switch_realm_from_standard_to_plus_plan--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "invoice_payment.paid"
+ "type": "payment_intent.succeeded"
},
{
"api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
- "amount": 48000,
+ "amount": 10000,
"amount_capturable": 0,
"amount_details": {
"tip": {}
},
- "amount_received": 48000,
+ "amount_received": 10000,
"application": null,
"application_fee_amount": null,
"automatic_payment_methods": null,
@@ -56,7 +97,7 @@
"confirmation_method": "automatic",
"created": 1000000000,
"currency": "usd",
- "customer": "switch_realm_from_standard_to_plus_plan--Customer.create.1.json",
+ "customer": "cus_NORMALIZED",
"description": "Payment for Invoice",
"excluded_payment_method_types": null,
"id": "switch_realm_from_standard_to_plus_plan--Event.list.2.json",
@@ -69,7 +110,7 @@
"on_behalf_of": null,
"payment_details": {
"customer_reference": null,
- "order_reference": "in_1SPPEvRVfKEFJaqcGpdzza"
+ "order_reference": "in_1SScETRVfKEFJaqcaooWru"
},
"payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
@@ -94,7 +135,7 @@
"setup_future_usage": null,
"shipping": null,
"source": null,
- "statement_descriptor": "Zulip Cloud Standard",
+ "statement_descriptor": "Zulip Basic",
"statement_descriptor_suffix": null,
"status": "succeeded",
"transfer_data": null,
@@ -106,8 +147,8 @@
"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"
+ "id": null,
+ "idempotency_key": "in_NORMALIZED-initial_attempt-cc18be94c69e07762"
},
"type": "payment_intent.succeeded"
},
@@ -116,8 +157,8 @@
"created": 1000000000,
"data": {
"object": {
- "amount": 48000,
- "amount_captured": 48000,
+ "amount": 10000,
+ "amount_captured": 10000,
"amount_refunded": 0,
"application": null,
"application_fee": null,
@@ -137,11 +178,11 @@
"phone": null,
"tax_id": null
},
- "calculated_statement_descriptor": "ZULIP CLOUD STANDARD",
+ "calculated_statement_descriptor": "ZULIP BASIC",
"captured": true,
"created": 1000000000,
"currency": "usd",
- "customer": "switch_realm_from_standard_to_plus_plan--Customer.create.1.json",
+ "customer": "cus_NORMALIZED",
"description": "Payment for Invoice",
"destination": null,
"dispute": null,
@@ -172,13 +213,13 @@
"payment_method": "pm_NORMALIZED",
"payment_method_details": {
"card": {
- "amount_authorized": 48000,
- "authorization_code": "459092",
+ "amount_authorized": 10000,
+ "authorization_code": "533436",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
"address_postal_code_check": "pass",
- "cvc_check": "pass"
+ "cvc_check": null
},
"country": "US",
"exp_month": 1,
@@ -203,7 +244,7 @@
},
"network_transaction_id": "100110997670110",
"overcapture": {
- "maximum_amount_capturable": 48000,
+ "maximum_amount_capturable": 10000,
"status": "unavailable"
},
"regulated_status": "unregulated",
@@ -221,7 +262,7 @@
"shipping": null,
"source": null,
"source_transfer": null,
- "statement_descriptor": "Zulip Cloud Standard",
+ "statement_descriptor": "Zulip Basic",
"statement_descriptor_suffix": null,
"status": "succeeded",
"transfer_data": null,
@@ -231,10 +272,10 @@
"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"
+ "id": null,
+ "idempotency_key": "in_NORMALIZED-initial_attempt-cc18be94c69e07762"
},
"type": "charge.succeeded"
},
@@ -820,7 +861,7 @@
"total_excluding_tax": 48000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"amount_due": 0,
@@ -1007,7 +1048,7 @@
"total_excluding_tax": 0,
"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",
@@ -1071,7 +1112,7 @@
"type": "customer.updated"
}
],
- "has_more": true,
+ "has_more": false,
"object": "list",
"url": "/v1/events"
}
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 ed72fd02ebb..231d90a7252 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,5 +1,500 @@
{
"data": [
+ {
+ "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": "switch_realm_from_standard_to_plus_plan--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": 10000,
+ "currency": "usd",
+ "description": "Zulip Basic - renewal",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "switch_realm_from_standard_to_plus_plan--Event.list.3.json",
+ "invoice": "switch_realm_from_standard_to_plus_plan--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": 1351825445,
+ "start": 1349147045
+ },
+ "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/switch_realm_from_standard_to_plus_plan--Event.list.3.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 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
+ }
+ },
+ "id": "switch_realm_from_standard_to_plus_plan--Event.list.3.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": null,
+ "idempotency_key": null
+ },
+ "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": 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": "switch_realm_from_standard_to_plus_plan--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": 10000,
+ "currency": "usd",
+ "description": "Zulip Basic - renewal",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "switch_realm_from_standard_to_plus_plan--Event.list.3.json",
+ "invoice": "switch_realm_from_standard_to_plus_plan--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": 1351825445,
+ "start": 1349147045
+ },
+ "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/switch_realm_from_standard_to_plus_plan--Event.list.3.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 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
+ }
+ },
+ "id": "switch_realm_from_standard_to_plus_plan--Event.list.3.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": null,
+ "idempotency_key": null
+ },
+ "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": "switch_realm_from_standard_to_plus_plan--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": 10000,
+ "currency": "usd",
+ "description": "Zulip Basic - renewal",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "switch_realm_from_standard_to_plus_plan--Event.list.3.json",
+ "invoice": "switch_realm_from_standard_to_plus_plan--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": 1351825445,
+ "start": 1349147045
+ },
+ "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/switch_realm_from_standard_to_plus_plan--Event.list.3.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 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,
+ "auto_advance": true,
+ "next_payment_attempt": 1000000000,
+ "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": null,
+ "idempotency_key": null
+ },
+ "type": "invoice.updated"
+ },
{
"api_version": "2025-10-29.clover",
"created": 1000000000,
@@ -162,7 +657,7 @@
"id": "switch_realm_from_standard_to_plus_plan--Event.list.3.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 1,
+ "pending_webhooks": 0,
"request": {
"id": "switch_realm_from_standard_to_plus_plan--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
diff --git a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Invoice.create.1.json b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Invoice.create.1.json
index f5f7718ad23..9c8fd4c1d24 100644
--- a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Invoice.create.1.json
+++ b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Invoice.create.1.json
@@ -109,5 +109,5 @@
"total_excluding_tax": 0,
"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.create.2.json b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Invoice.create.2.json
index 203371b9a09..8e98d18922c 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": -559,
+ "starting_balance": -475,
"statement_descriptor": "Zulip Cloud Plus",
"status": "draft",
"status_transitions": {
@@ -101,5 +101,5 @@
"total_excluding_tax": 0,
"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 f39c9b44987..8d53da46c6c 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": 119441,
+ "amount_due": 119525,
"amount_overpaid": 0,
"amount_paid": 0,
- "amount_remaining": 119441,
+ "amount_remaining": 119525,
"amount_shipping": 0,
"application": null,
"attempt_count": 0,
@@ -125,7 +125,7 @@
},
"shipping_cost": null,
"shipping_details": null,
- "starting_balance": -559,
+ "starting_balance": -475,
"statement_descriptor": "Zulip Cloud Plus",
"status": "open",
"status_transitions": {
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 40982ca4071..4c760003073 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
@@ -5,150 +5,41 @@
"created": 1000000000,
"data": {
"object": {
- "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",
+ "address": null,
+ "balance": 0,
"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,
+ "currency": 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",
+ "delinquent": false,
+ "description": "zulip (Zulip Dev)",
+ "discount": null,
+ "email": "[email protected]",
"id": "update_licenses_of_manual_plan_from_billing_page--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": 16000,
- "currency": "usd",
- "description": "Additional Zulip Cloud Standard license",
- "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"
+ "invoice_prefix": "NORMALIZED",
+ "invoice_settings": {
+ "custom_fields": null,
+ "default_payment_method": "pm_NORMALIZED",
+ "footer": null,
+ "rendering_options": null
},
"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
+ "metadata": {
+ "realm_id": "1",
+ "realm_str": "zulip"
},
- "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
+ "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
+ }
}
},
"id": "update_licenses_of_manual_plan_from_billing_page--Event.list.1.json",
@@ -156,10 +47,10 @@
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": null,
- "idempotency_key": null
+ "id": "update_licenses_of_manual_plan_from_billing_page--Event.list.1.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "invoice.sent"
+ "type": "customer.updated"
}
],
"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 72d52dfe701..1585f4ee427 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
@@ -162,7 +162,7 @@
"id": "update_licenses_of_manual_plan_from_billing_page--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 2,
+ "pending_webhooks": 0,
"request": {
"id": "update_licenses_of_manual_plan_from_billing_page--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -340,7 +340,7 @@
"id": "update_licenses_of_manual_plan_from_billing_page--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 2,
+ "pending_webhooks": 0,
"request": {
"id": "update_licenses_of_manual_plan_from_billing_page--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -930,7 +930,7 @@
"total_excluding_tax": 800000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"amount_due": 0,
@@ -1117,7 +1117,7 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "update_licenses_of_manual_plan_from_billing_page--Event.list.2.json",
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 b90b8b4de7c..8861fe92e27 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,40 +1,5 @@
{
"data": [
- {
- "api_version": "2025-10-29.clover",
- "created": 1000000000,
- "data": {
- "object": {
- "amount_paid": 800000,
- "amount_requested": 800000,
- "created": 1000000000,
- "currency": "usd",
- "id": "update_licenses_of_manual_plan_from_billing_page--Event.list.3.json",
- "invoice": "in_NORMALIZED",
- "is_default": false,
- "livemode": false,
- "object": "invoice_payment",
- "payment": {
- "payment_record": "pr_test_NORMALIZEDXS48AdH41RVfKEFJaqcVTE",
- "type": "payment_record"
- },
- "status": "paid",
- "status_transitions": {
- "canceled_at": null,
- "paid_at": 1000000000
- }
- }
- },
- "id": "update_licenses_of_manual_plan_from_billing_page--Event.list.3.json",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 0,
- "request": {
- "id": "update_licenses_of_manual_plan_from_billing_page--Event.list.2.json",
- "idempotency_key": "00000000-0000-0000-0000-000000000000"
- },
- "type": "invoice_payment.paid"
- },
{
"api_version": "2025-10-29.clover",
"created": 1000000000,
@@ -69,7 +34,7 @@
"on_behalf_of": null,
"payment_details": {
"customer_reference": null,
- "order_reference": "in_1SPR1nRVfKEFJaqc1m75hR"
+ "order_reference": "in_1SSd13RVfKEFJaqcQiOXna"
},
"payment_method": null,
"payment_method_configuration_details": null,
diff --git a/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.create.1.json b/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.create.1.json
index 338d4004e6e..fdb39228d75 100644
--- a/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.create.1.json
+++ b/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.create.1.json
@@ -109,5 +109,5 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.create.2.json b/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.create.2.json
index aa3a65bb17c..8e3b78f60d4 100644
--- a/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.create.2.json
+++ b/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.create.2.json
@@ -101,5 +101,5 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.create.3.json b/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.create.3.json
index 86943d38fd4..e63190bbedb 100644
--- a/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.create.3.json
+++ b/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.create.3.json
@@ -101,5 +101,5 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.create.4.json b/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.create.4.json
index 3e7cf935748..f716d8964d8 100644
--- a/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.create.4.json
+++ b/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.create.4.json
@@ -101,5 +101,5 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
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 e54422161f1..e794e3b9fd5 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": "216066",
+ "authorization_code": "106731",
"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 6aa800f1e15..1b5af22dc82 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
@@ -5,24 +5,150 @@
"created": 1000000000,
"data": {
"object": {
- "amount_paid": 800000,
- "amount_requested": 800000,
+ "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--Event.list.1.json",
- "invoice": "in_NORMALIZED",
- "is_default": false,
+ "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"
+ },
"livemode": false,
- "object": "invoice_payment",
- "payment": {
- "payment_record": "pr_test_NORMALIZEDvwETibg41RVfKEFJaqcW24",
- "type": "payment_record"
+ "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
},
- "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": 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--Event.list.1.json",
@@ -33,7 +159,7 @@
"id": "upgrade_by_card--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/upgrade_by_card--Event.list.3.json b/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.3.json
index 4f9e6373af8..91d33f4e83b 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,40 +1,5 @@
{
"data": [
- {
- "api_version": "2025-10-29.clover",
- "created": 1000000000,
- "data": {
- "object": {
- "amount_paid": null,
- "amount_requested": 48000,
- "created": 1000000000,
- "currency": "usd",
- "id": "upgrade_by_card--Event.list.3.json",
- "invoice": "upgrade_by_card--Event.list.3.json",
- "is_default": true,
- "livemode": false,
- "object": "invoice_payment",
- "payment": {
- "payment_intent": "upgrade_by_card--Event.list.3.json",
- "type": "payment_intent"
- },
- "status": "open",
- "status_transitions": {
- "canceled_at": null,
- "paid_at": null
- }
- }
- },
- "id": "upgrade_by_card--Event.list.3.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_payment.paid"
- },
{
"api_version": "2025-10-29.clover",
"created": 1000000000,
@@ -61,7 +26,7 @@
"excluded_payment_method_types": null,
"id": "upgrade_by_card--Event.list.3.json",
"last_payment_error": null,
- "latest_charge": "upgrade_by_card--Charge.list.1.json",
+ "latest_charge": "ch_NORMALIZED",
"livemode": false,
"metadata": {},
"next_action": null,
@@ -69,7 +34,7 @@
"on_behalf_of": null,
"payment_details": {
"customer_reference": null,
- "order_reference": "in_1SPP4wRVfKEFJaqcEJb2FA"
+ "order_reference": "in_1SSd1QRVfKEFJaqcAodzzF"
},
"payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
@@ -111,133 +76,6 @@
},
"type": "payment_intent.succeeded"
},
- {
- "api_version": "2025-10-29.clover",
- "created": 1000000000,
- "data": {
- "object": {
- "amount": 48000,
- "amount_captured": 48000,
- "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 CLOUD STANDARD",
- "captured": true,
- "created": 1000000000,
- "currency": "usd",
- "customer": "upgrade_by_card--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_by_card--Charge.list.1.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_by_card--Event.list.3.json",
- "payment_method": "pm_NORMALIZED",
- "payment_method_details": {
- "card": {
- "amount_authorized": 48000,
- "authorization_code": "216066",
- "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": 48000,
- "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 Cloud Standard",
- "statement_descriptor_suffix": null,
- "status": "succeeded",
- "transfer_data": null,
- "transfer_group": null
- }
- },
- "id": "upgrade_by_card--Event.list.3.json",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 2,
- "request": {
- "id": "upgrade_by_card--Event.list.3.json",
- "idempotency_key": "00000000-0000-0000-0000-000000000000"
- },
- "type": "charge.succeeded"
- },
{
"api_version": "2025-10-29.clover",
"created": 1000000000,
@@ -820,7 +658,7 @@
"total_excluding_tax": 48000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"amount_due": 0,
@@ -1007,7 +845,7 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "upgrade_by_card--Event.list.3.json",
@@ -1071,7 +909,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--Invoice.create.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card--Invoice.create.1.json
index 10d88b5437e..25b128b92c4 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card--Invoice.create.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card--Invoice.create.1.json
@@ -109,5 +109,5 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
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 cf9ba5f3064..062cd49b2ac 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": "277533",
+ "authorization_code": "889020",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
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 a1bae7a6772..9ae7574867b 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,40 +1,5 @@
{
"data": [
- {
- "api_version": "2025-10-29.clover",
- "created": 1000000000,
- "data": {
- "object": {
- "amount_paid": null,
- "amount_requested": 120000,
- "created": 1000000000,
- "currency": "usd",
- "id": "upgrade_by_card_to_plus_plan--Event.list.2.json",
- "invoice": "upgrade_by_card_to_plus_plan--Event.list.2.json",
- "is_default": true,
- "livemode": false,
- "object": "invoice_payment",
- "payment": {
- "payment_intent": "upgrade_by_card_to_plus_plan--Event.list.2.json",
- "type": "payment_intent"
- },
- "status": "open",
- "status_transitions": {
- "canceled_at": null,
- "paid_at": null
- }
- }
- },
- "id": "upgrade_by_card_to_plus_plan--Event.list.2.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_payment.paid"
- },
{
"api_version": "2025-10-29.clover",
"created": 1000000000,
@@ -69,7 +34,7 @@
"on_behalf_of": null,
"payment_details": {
"customer_reference": null,
- "order_reference": "in_1SPP5ARVfKEFJaqcMBvXG3"
+ "order_reference": "in_1SSd1eRVfKEFJaqcUshZxQ"
},
"payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
@@ -104,7 +69,7 @@
"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"
@@ -173,7 +138,7 @@
"payment_method_details": {
"card": {
"amount_authorized": 120000,
- "authorization_code": "277533",
+ "authorization_code": "889020",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
@@ -231,7 +196,7 @@
"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"
@@ -664,6 +629,41 @@
},
"type": "payment_intent.created"
},
+ {
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount_paid": 48000,
+ "amount_requested": 48000,
+ "created": 1000000000,
+ "currency": "usd",
+ "id": "upgrade_by_card_to_plus_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_by_card_to_plus_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-10-29.clover",
"created": 1000000000,
@@ -820,7 +820,7 @@
"total_excluding_tax": 120000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"amount_due": 0,
@@ -1007,7 +1007,7 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "upgrade_by_card_to_plus_plan--Event.list.2.json",
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Invoice.create.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Invoice.create.1.json
index a9b587d4eb5..f896bad5fbc 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Invoice.create.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Invoice.create.1.json
@@ -109,5 +109,5 @@
"total_excluding_tax": 0,
"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_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 6c5598a298a..c0fbecfa192 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": "520623",
+ "authorization_code": "693638",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
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 292752d26b0..fb5cfbb0747 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,40 +1,5 @@
{
"data": [
- {
- "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,
@@ -61,7 +26,7 @@
"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",
+ "latest_charge": "ch_NORMALIZED",
"livemode": false,
"metadata": {},
"next_action": null,
@@ -69,7 +34,7 @@
"on_behalf_of": null,
"payment_details": {
"customer_reference": null,
- "order_reference": "in_1SPP5NRVfKEFJaqcXgDTJ5"
+ "order_reference": "in_1SSd1sRVfKEFJaqctbAmiE"
},
"payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
@@ -111,133 +76,6 @@
},
"type": "payment_intent.succeeded"
},
- {
- "api_version": "2025-10-29.clover",
- "created": 1000000000,
- "data": {
- "object": {
- "amount": 48000,
- "amount_captured": 48000,
- "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 CLOUD STANDARD",
- "captured": true,
- "created": 1000000000,
- "currency": "usd",
- "customer": "upgrade_by_card_with_outdated_lower_seat_count--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_by_card_with_outdated_lower_seat_count--Charge.list.1.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_by_card_with_outdated_lower_seat_count--Event.list.2.json",
- "payment_method": "pm_NORMALIZED",
- "payment_method_details": {
- "card": {
- "amount_authorized": 48000,
- "authorization_code": "520623",
- "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": 48000,
- "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 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": 1,
- "request": {
- "id": "upgrade_by_card_with_outdated_lower_seat_count--Event.list.2.json",
- "idempotency_key": "00000000-0000-0000-0000-000000000000"
- },
- "type": "charge.succeeded"
- },
{
"api_version": "2025-10-29.clover",
"created": 1000000000,
@@ -820,7 +658,7 @@
"total_excluding_tax": 48000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"amount_due": 0,
@@ -1007,7 +845,7 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "upgrade_by_card_with_outdated_lower_seat_count--Event.list.2.json",
@@ -1071,7 +909,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_lower_seat_count--Invoice.create.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--Invoice.create.1.json
index 6a0e0b48477..50eeee48e10 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--Invoice.create.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--Invoice.create.1.json
@@ -109,5 +109,5 @@
"total_excluding_tax": 0,
"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--Charge.list.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Charge.list.1.json
index 8f700f5a1a3..2c8397c7d89 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": "354867",
+ "authorization_code": "812082",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
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 78789d8d9de..5087b9d6298 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,40 +1,5 @@
{
"data": [
- {
- "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_seat_count--Event.list.2.json",
- "invoice": "upgrade_by_card_with_outdated_seat_count--Event.list.2.json",
- "is_default": true,
- "livemode": false,
- "object": "invoice_payment",
- "payment": {
- "payment_intent": "upgrade_by_card_with_outdated_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_seat_count--Event.list.2.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_payment.paid"
- },
{
"api_version": "2025-10-29.clover",
"created": 1000000000,
@@ -69,7 +34,7 @@
"on_behalf_of": null,
"payment_details": {
"customer_reference": null,
- "order_reference": "in_1SPP5bRVfKEFJaqcd320fz"
+ "order_reference": "in_1SSd25RVfKEFJaqcldipq8"
},
"payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
@@ -104,7 +69,7 @@
"id": "upgrade_by_card_with_outdated_seat_count--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 2,
+ "pending_webhooks": 0,
"request": {
"id": "upgrade_by_card_with_outdated_seat_count--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -173,7 +138,7 @@
"payment_method_details": {
"card": {
"amount_authorized": 48000,
- "authorization_code": "354867",
+ "authorization_code": "812082",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
@@ -231,7 +196,7 @@
"id": "upgrade_by_card_with_outdated_seat_count--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 2,
+ "pending_webhooks": 0,
"request": {
"id": "upgrade_by_card_with_outdated_seat_count--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -394,7 +359,7 @@
"total_excluding_tax": 48000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "upgrade_by_card_with_outdated_seat_count--Event.list.2.json",
@@ -563,7 +528,7 @@
"total_excluding_tax": 48000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"effective_at": null,
@@ -820,7 +785,7 @@
"total_excluding_tax": 48000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"amount_due": 0,
@@ -1007,7 +972,7 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "upgrade_by_card_with_outdated_seat_count--Event.list.2.json",
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 3792a82437a..d94228e477c 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
@@ -156,13 +156,13 @@
"total_excluding_tax": 48000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "upgrade_by_card_with_outdated_seat_count--Event.list.3.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 2,
+ "pending_webhooks": 0,
"request": {
"id": "upgrade_by_card_with_outdated_seat_count--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -325,13 +325,13 @@
"total_excluding_tax": 48000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "upgrade_by_card_with_outdated_seat_count--Event.list.3.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 2,
+ "pending_webhooks": 0,
"request": {
"id": "upgrade_by_card_with_outdated_seat_count--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -494,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/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 76b34d79d5e..b3d32e96927 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
@@ -148,7 +148,7 @@
"total_excluding_tax": 136000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"automatically_finalizes_at": 1000000000,
@@ -171,7 +171,7 @@
"id": "upgrade_by_card_with_outdated_seat_count--Event.list.4.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 2,
+ "pending_webhooks": 0,
"request": {
"id": "upgrade_by_card_with_outdated_seat_count--Event.list.4.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -243,7 +243,7 @@
"id": "upgrade_by_card_with_outdated_seat_count--Event.list.4.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 1,
+ "pending_webhooks": 0,
"request": {
"id": "upgrade_by_card_with_outdated_seat_count--Event.list.4.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -398,7 +398,7 @@
"total_excluding_tax": 136000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"amount_due": 0,
@@ -577,7 +577,7 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "upgrade_by_card_with_outdated_seat_count--Event.list.4.json",
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 bd39e882a20..8fe43d46fbf 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
@@ -148,7 +148,7 @@
"total_excluding_tax": 136000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "upgrade_by_card_with_outdated_seat_count--Event.list.5.json",
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Invoice.create.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Invoice.create.1.json
index ac549492e1a..9060c096f6b 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Invoice.create.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Invoice.create.1.json
@@ -109,5 +109,5 @@
"total_excluding_tax": 0,
"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--Invoice.create.2.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Invoice.create.2.json
index a7880ac555a..2924205a98b 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Invoice.create.2.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Invoice.create.2.json
@@ -101,5 +101,5 @@
"total_excluding_tax": 0,
"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--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Invoice.finalize_invoice.1.json
index 2e18d095637..831b6130637 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Invoice.finalize_invoice.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--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/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 47648971848..a6ac6c3b985 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": null
+ "webhooks_delivered_at": 1000000000
}
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 5ac44c70290..d58b6af828e 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": null
+ "webhooks_delivered_at": 1000000000
},
{
"account_country": "US",
@@ -298,7 +298,7 @@
"total_excluding_tax": 48000,
"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--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Invoice.pay.1.json
index 1f963f3aaee..6849c6248c8 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Invoice.pay.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--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/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 5b6478d571b..71477efbb79 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": "402370",
+ "authorization_code": "032655",
"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.2.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json
index e574ea1757b..06ef147c73d 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,116 +1,5 @@
{
"data": [
- {
- "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": {
- "amount": 40000,
- "amount_capturable": 0,
- "amount_details": {
- "tip": {}
- },
- "amount_received": 40000,
- "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_seat_count_and_minimum_for_plan_tier--Customer.create.1.json",
- "description": "Payment for Invoice",
- "excluded_payment_method_types": null,
- "id": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json",
- "last_payment_error": null,
- "latest_charge": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--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_1SPP5qRVfKEFJaqcQSyM2i"
- },
- "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_seat_count_and_minimum_for_plan_tier--Event.list.2.json",
- "livemode": false,
- "object": "event",
- "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"
- },
- "type": "payment_intent.succeeded"
- },
{
"api_version": "2025-10-29.clover",
"created": 1000000000,
@@ -173,7 +62,7 @@
"payment_method_details": {
"card": {
"amount_authorized": 40000,
- "authorization_code": "402370",
+ "authorization_code": "032655",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
@@ -231,7 +120,7 @@
"id": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 2,
+ "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"
@@ -592,6 +481,41 @@
},
"type": "invoice.updated"
},
+ {
+ "api_version": "2025-10-29.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-10-29.clover",
"created": 1000000000,
@@ -820,7 +744,7 @@
"total_excluding_tax": 40000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"amount_due": 0,
@@ -1007,7 +931,7 @@
"total_excluding_tax": 0,
"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",
@@ -1069,9 +993,44 @@
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "customer.updated"
+ },
+ {
+ "api_version": "2025-10-29.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"
}
],
- "has_more": false,
+ "has_more": true,
"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 532c761bb78..208bbcbd25f 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
@@ -162,7 +162,7 @@
"id": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.3.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 2,
+ "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"
@@ -516,6 +516,82 @@
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "invoice.updated"
+ },
+ {
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount": 40000,
+ "amount_capturable": 0,
+ "amount_details": {
+ "tip": {}
+ },
+ "amount_received": 40000,
+ "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_seat_count_and_minimum_for_plan_tier--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_1SSd2LRVfKEFJaqcds2MzM"
+ },
+ "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_seat_count_and_minimum_for_plan_tier--Event.list.3.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": "payment_intent.succeeded"
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Invoice.create.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Invoice.create.1.json
index 8d666e3ae44..23de27d530e 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Invoice.create.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Invoice.create.1.json
@@ -109,5 +109,5 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
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 308c4c86a56..e49c972f08f 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
@@ -8,9 +8,9 @@
"account_country": "US",
"account_name": "NORMALIZED",
"account_tax_ids": null,
- "amount_due": 10000,
+ "amount_due": 40000,
"amount_overpaid": 0,
- "amount_paid": 10000,
+ "amount_paid": 40000,
"amount_remaining": 0,
"amount_shipping": 0,
"application": null,
@@ -59,9 +59,9 @@
"lines": {
"data": [
{
- "amount": 10000,
+ "amount": 40000,
"currency": "usd",
- "description": "Zulip Basic - renewal",
+ "description": "Zulip Cloud Standard",
"discount_amounts": [],
"discountable": false,
"discounts": [],
@@ -83,8 +83,8 @@
"type": "invoice_item_details"
},
"period": {
- "end": 1333335845,
- "start": 1330657445
+ "end": 1357095845,
+ "start": 1325473445
},
"pretax_credit_amounts": [],
"pricing": {
@@ -93,9 +93,9 @@
"product": "prod_NORMALIZED"
},
"type": "price_details",
- "unit_amount_decimal": "10000"
+ "unit_amount_decimal": "8000"
},
- "quantity": 1,
+ "quantity": 5,
"taxes": []
}
],
@@ -105,7 +105,15 @@
"url": "/v1/invoices/upgrade_by_invoice--Event.list.1.json/lines"
},
"livemode": false,
- "metadata": {},
+ "metadata": {
+ "billing_schedule": "1",
+ "current_plan_id": "None",
+ "license_management": "automatic",
+ "licenses": "5",
+ "on_free_trial": "False",
+ "plan_tier": "1",
+ "user_id": "10"
+ },
"next_payment_attempt": null,
"number": "NORMALIZED",
"object": "invoice",
@@ -132,7 +140,7 @@
"shipping_cost": null,
"shipping_details": null,
"starting_balance": 0,
- "statement_descriptor": "Zulip Basic",
+ "statement_descriptor": "Zulip Cloud Standard",
"status": "paid",
"status_transitions": {
"finalized_at": 1000000000,
@@ -140,12 +148,12 @@
"paid_at": 1000000000,
"voided_at": null
},
- "subtotal": 10000,
- "subtotal_excluding_tax": 10000,
+ "subtotal": 40000,
+ "subtotal_excluding_tax": 40000,
"test_clock": null,
- "total": 10000,
+ "total": 40000,
"total_discount_amounts": [],
- "total_excluding_tax": 10000,
+ "total_excluding_tax": 40000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
"webhooks_delivered_at": 1000000000
@@ -156,8 +164,8 @@
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": null,
- "idempotency_key": null
+ "id": "upgrade_by_invoice--Event.list.1.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "invoice.payment_succeeded"
}
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 b0e356f6c1f..b84cd89c46b 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
@@ -5,347 +5,35 @@
"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_paid": 120000,
+ "amount_requested": 120000,
"created": 1000000000,
"currency": "usd",
- "custom_fields": null,
- "customer": "upgrade_by_invoice--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_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": "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"
- },
+ "invoice": "in_NORMALIZED",
+ "is_default": true,
"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_intent": "pi_NORMALIZED",
+ "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": 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_by_invoice--Event.list.2.json",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 2,
- "request": {
- "id": "upgrade_by_invoice--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,
- "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",
- "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",
- "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": {
- "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
- },
- "previous_attributes": {
- "amount_paid": 0,
- "amount_remaining": 984000,
- "auto_advance": true,
- "status": "open",
- "status_transitions": {
- "paid_at": null
+ "canceled_at": null,
+ "paid_at": 1000000000
}
}
},
"id": "upgrade_by_invoice--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 2,
+ "pending_webhooks": 0,
"request": {
- "id": "upgrade_by_invoice--Event.list.2.json",
- "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ "id": null,
+ "idempotency_key": null
},
- "type": "invoice.updated"
+ "type": "invoice_payment.paid"
},
{
"api_version": "2025-10-29.clover",
@@ -774,6 +462,41 @@
},
"type": "payment_intent.created"
},
+ {
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount_paid": 72000,
+ "amount_requested": 72000,
+ "created": 1000000000,
+ "currency": "usd",
+ "id": "upgrade_by_invoice--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_invoice--Event.list.2.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": null,
+ "idempotency_key": null
+ },
+ "type": "invoice_payment.paid"
+ },
{
"api_version": "2025-10-29.clover",
"created": 1000000000,
@@ -930,7 +653,7 @@
"total_excluding_tax": 984000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"amount_due": 0,
@@ -1117,7 +840,7 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "upgrade_by_invoice--Event.list.2.json",
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 2cfb9e22a59..6f2cf8e8f88 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,40 +1,5 @@
{
"data": [
- {
- "api_version": "2025-10-29.clover",
- "created": 1000000000,
- "data": {
- "object": {
- "amount_paid": 984000,
- "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,
@@ -69,7 +34,7 @@
"on_behalf_of": null,
"payment_details": {
"customer_reference": null,
- "order_reference": "in_1SPQzvRVfKEFJaqcZdgBPV"
+ "order_reference": "in_1SSd2URVfKEFJaqcjvXBI9"
},
"payment_method": null,
"payment_method_configuration_details": null,
@@ -106,10 +71,357 @@
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "upgrade_by_invoice--Event.list.2.json",
+ "id": "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": {
+ "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",
+ "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--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"
+ },
+ "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_by_invoice--Event.list.3.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "upgrade_by_invoice--Event.list.3.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,
+ "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": "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--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"
+ },
+ "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
+ },
+ "previous_attributes": {
+ "amount_paid": 0,
+ "amount_remaining": 984000,
+ "auto_advance": true,
+ "status": "open",
+ "status_transitions": {
+ "paid_at": null
+ }
+ }
+ },
+ "id": "upgrade_by_invoice--Event.list.3.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "upgrade_by_invoice--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_invoice--Invoice.create.1.json b/corporate/tests/stripe_fixtures/upgrade_by_invoice--Invoice.create.1.json
index dea39f9c159..751a5970e9e 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_invoice--Invoice.create.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_invoice--Invoice.create.1.json
@@ -109,5 +109,5 @@
"total_excluding_tax": 0,
"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--Event.list.1.json b/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Event.list.1.json
index f19f5489d40..4b14fecd316 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
@@ -5,24 +5,65 @@
"created": 1000000000,
"data": {
"object": {
- "amount_paid": 984000,
- "amount_requested": 984000,
+ "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": "upgrade_by_invoice_to_plus_plan--Event.list.1.json",
- "invoice": "in_NORMALIZED",
- "is_default": false,
+ "last_payment_error": null,
+ "latest_charge": null,
"livemode": false,
- "object": "invoice_payment",
- "payment": {
- "payment_record": "pr_test_NORMALIZEDbNitzDM41RVfKEFJaqcVKi",
- "type": "payment_record"
+ "metadata": {},
+ "next_action": null,
+ "object": "payment_intent",
+ "on_behalf_of": null,
+ "payment_details": {
+ "customer_reference": null,
+ "order_reference": "in_1SSdNmRVfKEFJaqcP11fI6"
+ },
+ "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
+ }
},
- "status": "paid",
- "status_transitions": {
- "canceled_at": null,
- "paid_at": 1000000000
- }
+ "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": "upgrade_by_invoice_to_plus_plan--Event.list.1.json",
@@ -33,7 +74,7 @@
"id": "upgrade_by_invoice_to_plus_plan--Event.list.1.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "invoice_payment.paid"
+ "type": "payment_intent.canceled"
}
],
"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 f3873061d40..fcad8cb4f3f 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
@@ -930,7 +930,7 @@
"total_excluding_tax": 1476000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"amount_due": 0,
@@ -1117,7 +1117,7 @@
"total_excluding_tax": 0,
"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",
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 fed74c505c6..2debf5869ee 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,40 +1,5 @@
{
"data": [
- {
- "api_version": "2025-10-29.clover",
- "created": 1000000000,
- "data": {
- "object": {
- "amount_paid": 1476000,
- "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,
@@ -69,7 +34,7 @@
"on_behalf_of": null,
"payment_details": {
"customer_reference": null,
- "order_reference": "in_1SPP66RVfKEFJaqcFdo2Hb"
+ "order_reference": "in_1SSdO2RVfKEFJaqcNTM4px"
},
"payment_method": null,
"payment_method_configuration_details": null,
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Invoice.create.1.json b/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Invoice.create.1.json
index 6f9e133171c..54da755b30f 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Invoice.create.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Invoice.create.1.json
@@ -109,5 +109,5 @@
"total_excluding_tax": 0,
"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.create.1.json b/corporate/tests/stripe_fixtures/upgrade_pay_by_invoice--Invoice.create.1.json
index 891fe1abfa3..1b40986dbbc 100644
--- a/corporate/tests/stripe_fixtures/upgrade_pay_by_invoice--Invoice.create.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_pay_by_invoice--Invoice.create.1.json
@@ -109,5 +109,5 @@
"total_excluding_tax": 0,
"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.2.json b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Event.list.2.json
index d5e74eb9ab0..e5726573c95 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,40 +1,5 @@
{
"data": [
- {
- "api_version": "2025-10-29.clover",
- "created": 1000000000,
- "data": {
- "object": {
- "amount_paid": null,
- "amount_requested": 48000,
- "created": 1000000000,
- "currency": "usd",
- "id": "upgrade_race_condition_during_card_upgrade--Event.list.2.json",
- "invoice": "upgrade_race_condition_during_card_upgrade--Event.list.2.json",
- "is_default": true,
- "livemode": false,
- "object": "invoice_payment",
- "payment": {
- "payment_intent": "upgrade_race_condition_during_card_upgrade--Event.list.2.json",
- "type": "payment_intent"
- },
- "status": "open",
- "status_transitions": {
- "canceled_at": null,
- "paid_at": null
- }
- }
- },
- "id": "upgrade_race_condition_during_card_upgrade--Event.list.2.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_payment.paid"
- },
{
"api_version": "2025-10-29.clover",
"created": 1000000000,
@@ -45,7 +10,7 @@
"amount_details": {
"tip": {}
},
- "amount_received": 48000,
+ "amount_received": 0,
"application": null,
"application_fee_amount": null,
"automatic_payment_methods": null,
@@ -61,17 +26,13 @@
"excluded_payment_method_types": null,
"id": "upgrade_race_condition_during_card_upgrade--Event.list.2.json",
"last_payment_error": null,
- "latest_charge": "upgrade_race_condition_during_card_upgrade--Event.list.2.json",
+ "latest_charge": null,
"livemode": false,
"metadata": {},
"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": null,
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
@@ -96,134 +57,7 @@
"source": null,
"statement_descriptor": "Zulip Cloud Standard",
"statement_descriptor_suffix": null,
- "status": "succeeded",
- "transfer_data": null,
- "transfer_group": null
- }
- },
- "id": "upgrade_race_condition_during_card_upgrade--Event.list.2.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": "payment_intent.succeeded"
- },
- {
- "api_version": "2025-10-29.clover",
- "created": 1000000000,
- "data": {
- "object": {
- "amount": 48000,
- "amount_captured": 48000,
- "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 CLOUD STANDARD",
- "captured": true,
- "created": 1000000000,
- "currency": "usd",
- "customer": "upgrade_race_condition_during_card_upgrade--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_race_condition_during_card_upgrade--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_race_condition_during_card_upgrade--Event.list.2.json",
- "payment_method": "pm_NORMALIZED",
- "payment_method_details": {
- "card": {
- "amount_authorized": 48000,
- "authorization_code": "696342",
- "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": 48000,
- "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 Cloud Standard",
- "statement_descriptor_suffix": null,
- "status": "succeeded",
+ "status": "requires_payment_method",
"transfer_data": null,
"transfer_group": null
}
@@ -236,7 +70,7 @@
"id": "upgrade_race_condition_during_card_upgrade--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "charge.succeeded"
+ "type": "payment_intent.created"
},
{
"api_version": "2025-10-29.clover",
@@ -246,14 +80,14 @@
"account_country": "US",
"account_name": "NORMALIZED",
"account_tax_ids": null,
- "amount_due": 48000,
+ "amount_due": 120000,
"amount_overpaid": 0,
- "amount_paid": 0,
- "amount_remaining": 48000,
+ "amount_paid": 120000,
+ "amount_remaining": 0,
"amount_shipping": 0,
"application": null,
- "attempt_count": 0,
- "attempted": false,
+ "attempt_count": 1,
+ "attempted": true,
"auto_advance": false,
"automatic_tax": {
"disabled_reason": null,
@@ -268,7 +102,7 @@
"created": 1000000000,
"currency": "usd",
"custom_fields": null,
- "customer": "upgrade_race_condition_during_card_upgrade--Customer.create.1.json",
+ "customer": "cus_NORMALIZED",
"customer_address": null,
"customer_email": "[email protected]",
"customer_name": null,
@@ -297,9 +131,9 @@
"lines": {
"data": [
{
- "amount": 48000,
+ "amount": 120000,
"currency": "usd",
- "description": "Zulip Cloud Standard",
+ "description": "Zulip Cloud Standard - renewal",
"discount_amounts": [],
"discountable": false,
"discounts": [],
@@ -310,7 +144,7 @@
"object": "line_item",
"parent": {
"invoice_item_details": {
- "invoice_item": "upgrade_race_condition_during_card_upgrade--Event.list.2.json",
+ "invoice_item": "ii_NORMALIZED",
"proration": false,
"proration_details": {
"credited_items": null
@@ -321,8 +155,8 @@
"type": "invoice_item_details"
},
"period": {
- "end": 1000000000,
- "start": 1000000000
+ "end": 1362193445,
+ "start": 1330657445
},
"pretax_credit_amounts": [],
"pricing": {
@@ -333,7 +167,7 @@
"type": "price_details",
"unit_amount_decimal": "8000"
},
- "quantity": 6,
+ "quantity": 15,
"taxes": []
}
],
@@ -343,15 +177,7 @@
"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"
- },
+ "metadata": {},
"next_payment_attempt": null,
"number": "NORMALIZED",
"object": "invoice",
@@ -379,19 +205,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": 48000,
- "subtotal_excluding_tax": 48000,
+ "subtotal": 120000,
+ "subtotal_excluding_tax": 120000,
"test_clock": null,
- "total": 48000,
+ "total": 120000,
"total_discount_amounts": [],
- "total_excluding_tax": 48000,
+ "total_excluding_tax": 120000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
"webhooks_delivered_at": 1000000000
@@ -402,10 +228,10 @@
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "upgrade_race_condition_during_card_upgrade--Event.list.2.json",
- "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ "id": null,
+ "idempotency_key": null
},
- "type": "invoice.finalized"
+ "type": "invoice.payment_succeeded"
},
{
"api_version": "2025-10-29.clover",
@@ -415,14 +241,14 @@
"account_country": "US",
"account_name": "NORMALIZED",
"account_tax_ids": null,
- "amount_due": 48000,
+ "amount_due": 120000,
"amount_overpaid": 0,
- "amount_paid": 0,
- "amount_remaining": 48000,
+ "amount_paid": 120000,
+ "amount_remaining": 0,
"amount_shipping": 0,
"application": null,
- "attempt_count": 0,
- "attempted": false,
+ "attempt_count": 1,
+ "attempted": true,
"auto_advance": false,
"automatic_tax": {
"disabled_reason": null,
@@ -437,7 +263,7 @@
"created": 1000000000,
"currency": "usd",
"custom_fields": null,
- "customer": "upgrade_race_condition_during_card_upgrade--Customer.create.1.json",
+ "customer": "cus_NORMALIZED",
"customer_address": null,
"customer_email": "[email protected]",
"customer_name": null,
@@ -466,9 +292,9 @@
"lines": {
"data": [
{
- "amount": 48000,
+ "amount": 120000,
"currency": "usd",
- "description": "Zulip Cloud Standard",
+ "description": "Zulip Cloud Standard - renewal",
"discount_amounts": [],
"discountable": false,
"discounts": [],
@@ -479,7 +305,7 @@
"object": "line_item",
"parent": {
"invoice_item_details": {
- "invoice_item": "upgrade_race_condition_during_card_upgrade--Event.list.2.json",
+ "invoice_item": "ii_NORMALIZED",
"proration": false,
"proration_details": {
"credited_items": null
@@ -490,8 +316,8 @@
"type": "invoice_item_details"
},
"period": {
- "end": 1000000000,
- "start": 1000000000
+ "end": 1362193445,
+ "start": 1330657445
},
"pretax_credit_amounts": [],
"pricing": {
@@ -502,7 +328,7 @@
"type": "price_details",
"unit_amount_decimal": "8000"
},
- "quantity": 6,
+ "quantity": 15,
"taxes": []
}
],
@@ -512,15 +338,7 @@
"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"
- },
+ "metadata": {},
"next_payment_attempt": null,
"number": "NORMALIZED",
"object": "invoice",
@@ -548,38 +366,22 @@
"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": 48000,
- "subtotal_excluding_tax": 48000,
+ "subtotal": 120000,
+ "subtotal_excluding_tax": 120000,
"test_clock": null,
- "total": 48000,
+ "total": 120000,
"total_discount_amounts": [],
- "total_excluding_tax": 48000,
+ "total_excluding_tax": 120000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
"webhooks_delivered_at": 1000000000
- },
- "previous_attributes": {
- "effective_at": null,
- "ending_balance": null,
- "hosted_invoice_url": null,
- "invoice_pdf": null,
- "number": null,
- "rendering": {
- "pdf": {
- "page_size": "auto"
- }
- },
- "status": "draft",
- "status_transitions": {
- "finalized_at": null
- }
}
},
"id": "upgrade_race_condition_during_card_upgrade--Event.list.2.json",
@@ -587,71 +389,172 @@
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "upgrade_race_condition_during_card_upgrade--Event.list.2.json",
- "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ "id": null,
+ "idempotency_key": null
},
- "type": "invoice.updated"
+ "type": "invoice.paid"
},
{
"api_version": "2025-10-29.clover",
"created": 1000000000,
"data": {
"object": {
- "amount": 48000,
- "amount_capturable": 0,
- "amount_details": {
- "tip": {}
- },
- "amount_received": 0,
+ "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,
- "application_fee_amount": null,
- "automatic_payment_methods": null,
- "canceled_at": null,
- "cancellation_reason": null,
- "capture_method": "automatic",
- "client_secret": "NORMALIZED",
- "confirmation_method": "automatic",
+ "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",
- "customer": "upgrade_race_condition_during_card_upgrade--Customer.create.1.json",
- "description": "Payment for Invoice",
- "excluded_payment_method_types": null,
+ "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",
- "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"
+ "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 Standard - renewal",
+ "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": 1362193445,
+ "start": 1330657445
+ },
+ "pretax_credit_amounts": [],
+ "pricing": {
+ "price_details": {
+ "price": "price_NORMALIZED",
+ "product": "prod_NORMALIZED"
+ },
+ "type": "price_details",
+ "unit_amount_decimal": "8000"
+ },
+ "quantity": 15,
+ "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": {},
+ "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"
},
- "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": "requires_payment_method",
- "transfer_data": null,
- "transfer_group": null
+ "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,
+ "auto_advance": true,
+ "next_payment_attempt": 1000000000,
+ "status": "open",
+ "status_transitions": {
+ "paid_at": null
+ }
}
},
"id": "upgrade_race_condition_during_card_upgrade--Event.list.2.json",
@@ -659,10 +562,10 @@
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "upgrade_race_condition_during_card_upgrade--Event.list.2.json",
- "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ "id": null,
+ "idempotency_key": null
},
- "type": "payment_intent.created"
+ "type": "invoice.updated"
},
{
"api_version": "2025-10-29.clover",
@@ -820,7 +723,7 @@
"total_excluding_tax": 48000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"amount_due": 0,
@@ -892,6 +795,82 @@
},
"type": "invoiceitem.created"
},
+ {
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount": 120000,
+ "amount_capturable": 0,
+ "amount_details": {
+ "tip": {}
+ },
+ "amount_received": 120000,
+ "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_race_condition_during_card_upgrade--Event.list.2.json",
+ "last_payment_error": null,
+ "latest_charge": "upgrade_race_condition_during_card_upgrade--Event.list.2.json",
+ "livemode": false,
+ "metadata": {},
+ "next_action": null,
+ "object": "payment_intent",
+ "on_behalf_of": null,
+ "payment_details": {
+ "customer_reference": null,
+ "order_reference": "in_1SSc6jRVfKEFJaqctY12oW"
+ },
+ "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_race_condition_during_card_upgrade--Event.list.2.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": null,
+ "idempotency_key": "upgrade_race_condition_during_card_upgrade--Event.list.2.json-initial_attempt-2c20343c97f8c75bf"
+ },
+ "type": "payment_intent.succeeded"
+ },
{
"api_version": "2025-10-29.clover",
"created": 1000000000,
@@ -1007,7 +986,7 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "upgrade_race_condition_during_card_upgrade--Event.list.2.json",
@@ -1020,6 +999,133 @@
},
"type": "invoice.created"
},
+ {
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount": 120000,
+ "amount_captured": 120000,
+ "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 CLOUD STANDARD",
+ "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_race_condition_during_card_upgrade--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_race_condition_during_card_upgrade--Event.list.2.json",
+ "payment_method": "pm_NORMALIZED",
+ "payment_method_details": {
+ "card": {
+ "amount_authorized": 120000,
+ "authorization_code": "717901",
+ "brand": "visa",
+ "checks": {
+ "address_line1_check": "pass",
+ "address_postal_code_check": "pass",
+ "cvc_check": null
+ },
+ "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": 120000,
+ "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 Cloud Standard",
+ "statement_descriptor_suffix": null,
+ "status": "succeeded",
+ "transfer_data": null,
+ "transfer_group": null
+ }
+ },
+ "id": "upgrade_race_condition_during_card_upgrade--Event.list.2.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": null,
+ "idempotency_key": "upgrade_race_condition_during_card_upgrade--Event.list.2.json-initial_attempt-2c20343c97f8c75bf"
+ },
+ "type": "charge.succeeded"
+ },
{
"api_version": "2025-10-29.clover",
"created": 1000000000,
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 e2904a3f99a..64165c5ab1d 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,5 +1,40 @@
{
"data": [
+ {
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount_paid": 120000,
+ "amount_requested": 120000,
+ "created": 1000000000,
+ "currency": "usd",
+ "id": "upgrade_race_condition_during_card_upgrade--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_race_condition_during_card_upgrade--Event.list.3.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": null,
+ "idempotency_key": null
+ },
+ "type": "invoice_payment.paid"
+ },
{
"api_version": "2025-10-29.clover",
"created": 1000000000,
@@ -164,7 +199,7 @@
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "upgrade_race_condition_during_card_upgrade--Event.list.2.json",
+ "id": "upgrade_race_condition_during_card_upgrade--Event.list.3.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "invoice.payment_succeeded"
@@ -333,7 +368,7 @@
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "upgrade_race_condition_during_card_upgrade--Event.list.2.json",
+ "id": "upgrade_race_condition_during_card_upgrade--Event.list.3.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "invoice.paid"
@@ -511,6 +546,563 @@
"livemode": false,
"object": "event",
"pending_webhooks": 0,
+ "request": {
+ "id": "upgrade_race_condition_during_card_upgrade--Event.list.3.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ },
+ "type": "invoice.updated"
+ },
+ {
+ "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": "upgrade_race_condition_during_card_upgrade--Event.list.2.json",
+ "last_payment_error": null,
+ "latest_charge": "upgrade_race_condition_during_card_upgrade--Event.list.3.json",
+ "livemode": false,
+ "metadata": {},
+ "next_action": null,
+ "object": "payment_intent",
+ "on_behalf_of": null,
+ "payment_details": {
+ "customer_reference": null,
+ "order_reference": "in_1SSd3DRVfKEFJaqcfkwKB8"
+ },
+ "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_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.3.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ },
+ "type": "payment_intent.succeeded"
+ },
+ {
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount": 48000,
+ "amount_captured": 48000,
+ "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 CLOUD STANDARD",
+ "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_race_condition_during_card_upgrade--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_race_condition_during_card_upgrade--Event.list.2.json",
+ "payment_method": "pm_NORMALIZED",
+ "payment_method_details": {
+ "card": {
+ "amount_authorized": 48000,
+ "authorization_code": "074206",
+ "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": 48000,
+ "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 Cloud Standard",
+ "statement_descriptor_suffix": null,
+ "status": "succeeded",
+ "transfer_data": null,
+ "transfer_group": 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.3.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ },
+ "type": "charge.succeeded"
+ },
+ {
+ "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": 0,
+ "amount_remaining": 48000,
+ "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": "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": "open",
+ "status_transitions": {
+ "finalized_at": 1000000000,
+ "marked_uncollectible_at": null,
+ "paid_at": null,
+ "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
+ }
+ },
+ "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.finalized"
+ },
+ {
+ "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": 0,
+ "amount_remaining": 48000,
+ "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": "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": "open",
+ "status_transitions": {
+ "finalized_at": 1000000000,
+ "marked_uncollectible_at": null,
+ "paid_at": null,
+ "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": {
+ "effective_at": null,
+ "ending_balance": null,
+ "hosted_invoice_url": null,
+ "invoice_pdf": null,
+ "number": null,
+ "rendering": {
+ "pdf": {
+ "page_size": "auto"
+ }
+ },
+ "status": "draft",
+ "status_transitions": {
+ "finalized_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"
diff --git a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Invoice.create.1.json b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Invoice.create.1.json
index 27f88242b92..a7c2ac44301 100644
--- a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Invoice.create.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Invoice.create.1.json
@@ -109,5 +109,5 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
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 7a53763ba46..54f76e5a7c6 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 fe263485607..816a311b80c 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 454763dca89..d22c9f0677e 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 454763dca89..d22c9f0677e 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 454763dca89..d22c9f0677e 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 454763dca89..d22c9f0677e 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 454763dca89..d22c9f0677e 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 5b7700d9079..39bea2f7166 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 5b7700d9079..39bea2f7166 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 323a258f84a..08816178af3 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
@@ -11,7 +11,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 dea511279a6..56352eedd9f 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,340 +1,5 @@
{
"data": [
- {
- "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": {
- "account_country": "US",
- "account_name": "NORMALIZED",
- "account_tax_ids": null,
- "amount_due": 1850,
- "amount_overpaid": 0,
- "amount_paid": 0,
- "amount_remaining": 1850,
- "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": "charge_automatically",
- "created": 1000000000,
- "currency": "usd",
- "custom_fields": null,
- "customer": "upgrade_remote_realm_user_to_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_remote_realm_user_to_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": -2000,
- "currency": "usd",
- "description": "$20.00/month new customer discount",
- "discount_amounts": [],
- "discountable": false,
- "discounts": [],
- "id": "upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.2.json",
- "invoice": "upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.2.json",
- "livemode": false,
- "metadata": {},
- "object": "line_item",
- "parent": {
- "invoice_item_details": {
- "invoice_item": "upgrade_remote_realm_user_to_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": 1328151845,
- "start": 1325473445
- },
- "pretax_credit_amounts": [],
- "pricing": {
- "price_details": {
- "price": "price_NORMALIZED",
- "product": "prod_NORMALIZED"
- },
- "type": "price_details",
- "unit_amount_decimal": "-2000"
- },
- "quantity": 1,
- "taxes": []
- },
- {
- "amount": 3850,
- "currency": "usd",
- "description": "Zulip Basic",
- "discount_amounts": [],
- "discountable": false,
- "discounts": [],
- "id": "upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.2.json",
- "invoice": "upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.2.json",
- "livemode": false,
- "metadata": {},
- "object": "line_item",
- "parent": {
- "invoice_item_details": {
- "invoice_item": "upgrade_remote_realm_user_to_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": 1328151845,
- "start": 1325473445
- },
- "pretax_credit_amounts": [],
- "pricing": {
- "price_details": {
- "price": "price_NORMALIZED",
- "product": "prod_NORMALIZED"
- },
- "type": "price_details",
- "unit_amount_decimal": "350"
- },
- "quantity": 11,
- "taxes": []
- }
- ],
- "has_more": false,
- "object": "list",
- "total_count": 2,
- "url": "/v1/invoices/upgrade_remote_realm_user_to_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": "open",
- "status_transitions": {
- "finalized_at": 1000000000,
- "marked_uncollectible_at": null,
- "paid_at": null,
- "voided_at": null
- },
- "subtotal": 1850,
- "subtotal_excluding_tax": 1850,
- "test_clock": null,
- "total": 1850,
- "total_discount_amounts": [],
- "total_excluding_tax": 1850,
- "total_pretax_credit_amounts": [],
- "total_taxes": [],
- "webhooks_delivered_at": 1000000000
- }
- },
- "id": "upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.2.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.finalized"
- },
{
"api_version": "2025-10-29.clover",
"created": 1000000000,
@@ -1094,7 +759,7 @@
"total_excluding_tax": 3850,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"amount_due": 0,
@@ -1280,7 +945,7 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.2.json",
@@ -1304,7 +969,7 @@
"currency": "usd",
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"discount": null,
"email": "[email protected]",
"id": "upgrade_remote_realm_user_to_monthly_basic_plan--Customer.create.1.json",
@@ -1318,7 +983,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"name": null,
"next_invoice_sequence": 1,
@@ -1342,6 +1007,76 @@
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "customer.updated"
+ },
+ {
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount_paid": 176000,
+ "amount_requested": 176000,
+ "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-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount_paid": 20000,
+ "amount_requested": 20000,
+ "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"
}
],
"has_more": true,
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 ace2d4836f2..bc58d7b7c9c 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
@@ -201,9 +201,9 @@
"id": "upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.3.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 2,
+ "pending_webhooks": 0,
"request": {
- "id": "upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.2.json",
+ "id": "upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.3.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "invoice.payment_succeeded"
@@ -409,9 +409,9 @@
"id": "upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.3.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 2,
+ "pending_webhooks": 0,
"request": {
- "id": "upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.2.json",
+ "id": "upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.3.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "invoice.paid"
@@ -629,46 +629,11 @@
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.2.json",
+ "id": "upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.3.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": 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,
@@ -695,7 +660,7 @@
"excluded_payment_method_types": null,
"id": "upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.2.json",
"last_payment_error": null,
- "latest_charge": "ch_NORMALIZED",
+ "latest_charge": "upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.3.json",
"livemode": false,
"metadata": {},
"next_action": null,
@@ -703,7 +668,7 @@
"on_behalf_of": null,
"payment_details": {
"customer_reference": null,
- "order_reference": "in_1SPP9sRVfKEFJaqco8Ldlf"
+ "order_reference": "in_1SSd6IRVfKEFJaqcA81Zgw"
},
"payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
@@ -740,10 +705,345 @@
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.2.json",
+ "id": "upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.3.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "payment_intent.succeeded"
+ },
+ {
+ "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": "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": "963415",
+ "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"
+ },
+ {
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "account_country": "US",
+ "account_name": "NORMALIZED",
+ "account_tax_ids": null,
+ "amount_due": 1850,
+ "amount_overpaid": 0,
+ "amount_paid": 0,
+ "amount_remaining": 1850,
+ "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": "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_remote_realm_user_to_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": -2000,
+ "currency": "usd",
+ "description": "$20.00/month new customer discount",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.2.json",
+ "invoice": "upgrade_remote_realm_user_to_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": 1328151845,
+ "start": 1325473445
+ },
+ "pretax_credit_amounts": [],
+ "pricing": {
+ "price_details": {
+ "price": "price_NORMALIZED",
+ "product": "prod_NORMALIZED"
+ },
+ "type": "price_details",
+ "unit_amount_decimal": "-2000"
+ },
+ "quantity": 1,
+ "taxes": []
+ },
+ {
+ "amount": 3850,
+ "currency": "usd",
+ "description": "Zulip Basic",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.2.json",
+ "invoice": "upgrade_remote_realm_user_to_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": 1328151845,
+ "start": 1325473445
+ },
+ "pretax_credit_amounts": [],
+ "pricing": {
+ "price_details": {
+ "price": "price_NORMALIZED",
+ "product": "prod_NORMALIZED"
+ },
+ "type": "price_details",
+ "unit_amount_decimal": "350"
+ },
+ "quantity": 11,
+ "taxes": []
+ }
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 2,
+ "url": "/v1/invoices/upgrade_remote_realm_user_to_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": "open",
+ "status_transitions": {
+ "finalized_at": 1000000000,
+ "marked_uncollectible_at": null,
+ "paid_at": null,
+ "voided_at": null
+ },
+ "subtotal": 1850,
+ "subtotal_excluding_tax": 1850,
+ "test_clock": null,
+ "total": 1850,
+ "total_discount_amounts": [],
+ "total_excluding_tax": 1850,
+ "total_pretax_credit_amounts": [],
+ "total_taxes": [],
+ "webhooks_delivered_at": 1000000000
+ }
+ },
+ "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.finalized"
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Invoice.create.1.json b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Invoice.create.1.json
index 2e6f5be607f..0d11b3f91e6 100644
--- a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Invoice.create.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Invoice.create.1.json
@@ -108,5 +108,5 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
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 ab48bdd5921..95dd14a43cf 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/9c36daef-29ed-478d-a237-26a7dec0f4ee/upgrade/?manual_license_management=false&tier=1",
+ "cancel_url": "http://selfhosting.testserver/realm/99423a0a-fa84-4fd7-be9a-d10b8af15320/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/9c36daef-29ed-478d-a237-26a7dec0f4ee/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
+ "success_url": "http://selfhosting.testserver/realm/99423a0a-fa84-4fd7-be9a-d10b8af15320/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 7d9bd31e3a4..c3af5341747 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/9c36daef-29ed-478d-a237-26a7dec0f4ee/upgrade/?manual_license_management=false&tier=1",
+ "cancel_url": "http://selfhosting.testserver/realm/99423a0a-fa84-4fd7-be9a-d10b8af15320/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/9c36daef-29ed-478d-a237-26a7dec0f4ee/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
+ "success_url": "http://selfhosting.testserver/realm/99423a0a-fa84-4fd7-be9a-d10b8af15320/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.2.json b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.2.json
index 825ac207371..a3751145349 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,40 +1,5 @@
{
"data": [
- {
- "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,
@@ -69,7 +34,7 @@
"on_behalf_of": null,
"payment_details": {
"customer_reference": null,
- "order_reference": "in_1SPPDJRVfKEFJaqcLRMorx"
+ "order_reference": "in_1SSd9ZRVfKEFJaqcsIBM2p"
},
"payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
@@ -104,7 +69,7 @@
"id": "upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 2,
+ "pending_webhooks": 0,
"request": {
"id": "upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -173,7 +138,7 @@
"payment_method_details": {
"card": {
"amount_authorized": 10000,
- "authorization_code": "088719",
+ "authorization_code": "468723",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
@@ -231,7 +196,7 @@
"id": "upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 2,
+ "pending_webhooks": 0,
"request": {
"id": "upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -393,7 +358,7 @@
"total_excluding_tax": 10000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.2.json",
@@ -561,7 +526,7 @@
"total_excluding_tax": 10000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"effective_at": null,
@@ -817,7 +782,7 @@
"total_excluding_tax": 10000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"amount_due": 0,
@@ -1003,7 +968,7 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.2.json",
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 cfdc542a830..1724aea141b 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
@@ -155,7 +155,7 @@
"total_excluding_tax": 10000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.3.json",
@@ -323,7 +323,7 @@
"total_excluding_tax": 10000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.3.json",
@@ -491,7 +491,7 @@
"total_excluding_tax": 10000,
"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_server_to_fixed_price_monthly_basic_plan--Invoice.create.1.json b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Invoice.create.1.json
index 1e041caa6ae..a452778e41c 100644
--- a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Invoice.create.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Invoice.create.1.json
@@ -108,5 +108,5 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Invoice.create.2.json b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Invoice.create.2.json
index c04cc144ea1..866db47fa66 100644
--- a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Invoice.create.2.json
+++ b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Invoice.create.2.json
@@ -101,5 +101,5 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Invoice.create.3.json b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Invoice.create.3.json
index 1f0e86cfdd1..9c22b04b52f 100644
--- a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Invoice.create.3.json
+++ b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Invoice.create.3.json
@@ -101,5 +101,5 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
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 110c60989cf..c6c6eef03e4 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": null
+ "webhooks_delivered_at": 1000000000
}
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 c4839ca9d12..2765e195900 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": null
+ "webhooks_delivered_at": 1000000000
}
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 a18a022d863..91d5dbb02b8 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
@@ -62,7 +62,7 @@
"payment_method_details": {
"card": {
"amount_authorized": 4300,
- "authorization_code": "373366",
+ "authorization_code": "544258",
"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": 2,
+ "pending_webhooks": 0,
"request": {
"id": "upgrade_server_user_to_monthly_basic_plan--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -1094,7 +1094,7 @@
"total_excluding_tax": 6300,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"amount_due": 0,
@@ -1280,7 +1280,7 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "upgrade_server_user_to_monthly_basic_plan--Event.list.2.json",
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 635fd588b4f..fd6294a1527 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
@@ -201,7 +201,7 @@
"id": "upgrade_server_user_to_monthly_basic_plan--Event.list.3.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 2,
+ "pending_webhooks": 0,
"request": {
"id": "upgrade_server_user_to_monthly_basic_plan--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -634,41 +634,6 @@
},
"type": "invoice.updated"
},
- {
- "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,
@@ -703,7 +668,7 @@
"on_behalf_of": null,
"payment_details": {
"customer_reference": null,
- "order_reference": "in_1SPPDdRVfKEFJaqc9Cpv7N"
+ "order_reference": "in_1SSd9uRVfKEFJaqcc2wVH0"
},
"payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
diff --git a/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Invoice.create.1.json b/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Invoice.create.1.json
index 4f6e3fd15cc..4214192451c 100644
--- a/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Invoice.create.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Invoice.create.1.json
@@ -108,5 +108,5 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
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 12e1f2a15ea..ba1c20480cb 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
@@ -8,10 +8,10 @@
"account_country": "US",
"account_name": "NORMALIZED",
"account_tax_ids": null,
- "amount_due": 80697,
+ "amount_due": 2285250,
"amount_overpaid": 0,
"amount_paid": 0,
- "amount_remaining": 80697,
+ "amount_remaining": 2285250,
"amount_shipping": 0,
"application": null,
"attempt_count": 0,
@@ -59,9 +59,9 @@
"lines": {
"data": [
{
- "amount": 7255,
+ "amount": 372700,
"currency": "usd",
- "description": "Additional license (Feb 5, 2013 - Jan 2, 2014)",
+ "description": "Additional Zulip Cloud Standard license",
"discount_amounts": [],
"discountable": false,
"discounts": [],
@@ -83,8 +83,8 @@
"type": "invoice_item_details"
},
"period": {
- "end": 1388631845,
- "start": 1360033445
+ "end": 1357095845,
+ "start": 1327633465
},
"pretax_credit_amounts": [],
"pricing": {
@@ -93,15 +93,15 @@
"product": "prod_NORMALIZED"
},
"type": "price_details",
- "unit_amount_decimal": "7255"
+ "unit_amount_decimal": "7454"
},
- "quantity": 1,
+ "quantity": 50,
"taxes": []
},
{
- "amount": 56000,
+ "amount": 756300,
"currency": "usd",
- "description": "Zulip Cloud Standard - renewal",
+ "description": "Additional Zulip Cloud Standard license",
"discount_amounts": [],
"discountable": false,
"discounts": [],
@@ -123,8 +123,48 @@
"type": "invoice_item_details"
},
"period": {
- "end": 1388631845,
- "start": 1357095845
+ "end": 1357095845,
+ "start": 1327201445
+ },
+ "pretax_credit_amounts": [],
+ "pricing": {
+ "price_details": {
+ "price": "price_NORMALIZED",
+ "product": "prod_NORMALIZED"
+ },
+ "type": "price_details",
+ "unit_amount_decimal": "7563"
+ },
+ "quantity": 100,
+ "taxes": []
+ },
+ {
+ "amount": 767200,
+ "currency": "usd",
+ "description": "Additional Zulip Cloud Standard license",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "upgrade_to_fixed_price_plus_plan--Event.list.1.json",
+ "invoice": "upgrade_to_fixed_price_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": 1326769445
},
"pretax_credit_amounts": [],
"pricing": {
@@ -133,15 +173,15 @@
"product": "prod_NORMALIZED"
},
"type": "price_details",
- "unit_amount_decimal": "8000"
+ "unit_amount_decimal": "7672"
},
- "quantity": 7,
+ "quantity": 100,
"taxes": []
},
{
- "amount": 17442,
+ "amount": 389050,
"currency": "usd",
- "description": "Additional license (Apr 11, 2012 - Jan 2, 2013)",
+ "description": "Additional Zulip Cloud Standard license",
"discount_amounts": [],
"discountable": false,
"discounts": [],
@@ -164,7 +204,7 @@
},
"period": {
"end": 1357095845,
- "start": 1334113445
+ "start": 1326337445
},
"pretax_credit_amounts": [],
"pricing": {
@@ -173,15 +213,15 @@
"product": "prod_NORMALIZED"
},
"type": "price_details",
- "unit_amount_decimal": "5814"
+ "unit_amount_decimal": "7781"
},
- "quantity": 3,
+ "quantity": 50,
"taxes": []
}
],
"has_more": false,
"object": "list",
- "total_count": 3,
+ "total_count": 4,
"url": "/v1/invoices/upgrade_to_fixed_price_plus_plan--Event.list.1.json/lines"
},
"livemode": false,
@@ -220,12 +260,12 @@
"paid_at": null,
"voided_at": null
},
- "subtotal": 80697,
- "subtotal_excluding_tax": 80697,
+ "subtotal": 2285250,
+ "subtotal_excluding_tax": 2285250,
"test_clock": null,
- "total": 80697,
+ "total": 2285250,
"total_discount_amounts": [],
- "total_excluding_tax": 80697,
+ "total_excluding_tax": 2285250,
"total_pretax_credit_amounts": [],
"total_taxes": [],
"webhooks_delivered_at": 1000000000
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 acf8c415b6a..ae31499265d 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
@@ -157,195 +157,61 @@
"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": 2,
+ "pending_webhooks": 0,
"request": {
"id": "upgrade_to_fixed_price_plus_plan--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "invoice.paid"
+ "type": "invoice.updated"
},
{
"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_paid": 48000,
+ "amount_requested": 48000,
"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"
- },
+ "invoice": "in_NORMALIZED",
+ "is_default": true,
"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_intent": "pi_NORMALIZED",
+ "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": 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
+ "canceled_at": null,
+ "paid_at": 1000000000
}
}
},
"id": "upgrade_to_fixed_price_plus_plan--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 2,
+ "pending_webhooks": 0,
"request": {
- "id": "upgrade_to_fixed_price_plus_plan--Event.list.2.json",
- "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ "id": null,
+ "idempotency_key": null
},
- "type": "invoice.updated"
+ "type": "invoice_payment.paid"
},
{
"api_version": "2025-10-29.clover",
@@ -930,7 +796,7 @@
"total_excluding_tax": 984000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"amount_due": 0,
@@ -1117,7 +983,7 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "upgrade_to_fixed_price_plus_plan--Event.list.2.json",
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 ca12c8c5ee7..ef88ff25e83 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,40 +1,5 @@
{
"data": [
- {
- "api_version": "2025-10-29.clover",
- "created": 1000000000,
- "data": {
- "object": {
- "amount_paid": 984000,
- "amount_requested": 984000,
- "created": 1000000000,
- "currency": "usd",
- "id": "upgrade_to_fixed_price_plus_plan--Event.list.3.json",
- "invoice": "in_NORMALIZED",
- "is_default": false,
- "livemode": false,
- "object": "invoice_payment",
- "payment": {
- "payment_record": "pr_test_NORMALIZEDrzOgHga41RVfKEFJaqc05I",
- "type": "payment_record"
- },
- "status": "paid",
- "status_transitions": {
- "canceled_at": null,
- "paid_at": 1000000000
- }
- }
- },
- "id": "upgrade_to_fixed_price_plus_plan--Event.list.3.json",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 0,
- "request": {
- "id": "upgrade_to_fixed_price_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,
@@ -69,7 +34,7 @@
"on_behalf_of": null,
"payment_details": {
"customer_reference": null,
- "order_reference": "in_1SPOxyRVfKEFJaqceIJpVE"
+ "order_reference": "in_1SScuWRVfKEFJaqcIcYSq3"
},
"payment_method": null,
"payment_method_configuration_details": null,
@@ -110,6 +75,175 @@
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "payment_intent.canceled"
+ },
+ {
+ "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",
+ "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"
+ },
+ "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.3.json",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "upgrade_to_fixed_price_plus_plan--Event.list.2.json",
+ "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ },
+ "type": "invoice.paid"
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/upgrade_to_fixed_price_plus_plan--Invoice.create.1.json b/corporate/tests/stripe_fixtures/upgrade_to_fixed_price_plus_plan--Invoice.create.1.json
index cd1a46af9c6..218270b1794 100644
--- a/corporate/tests/stripe_fixtures/upgrade_to_fixed_price_plus_plan--Invoice.create.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_to_fixed_price_plus_plan--Invoice.create.1.json
@@ -109,5 +109,5 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/upgrade_to_fixed_price_plus_plan--Invoice.create.2.json b/corporate/tests/stripe_fixtures/upgrade_to_fixed_price_plus_plan--Invoice.create.2.json
index bf9e2c2e982..2456be69666 100644
--- a/corporate/tests/stripe_fixtures/upgrade_to_fixed_price_plus_plan--Invoice.create.2.json
+++ b/corporate/tests/stripe_fixtures/upgrade_to_fixed_price_plus_plan--Invoice.create.2.json
@@ -101,5 +101,5 @@
"total_excluding_tax": 0,
"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 fc4a7266a2a..ede1ba8216d 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 85929c8e48c..4dc8fa16800 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 447bfbbcabb..efb61b93bca 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 447bfbbcabb..efb61b93bca 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 447bfbbcabb..efb61b93bca 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 447bfbbcabb..efb61b93bca 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 447bfbbcabb..efb61b93bca 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 447bfbbcabb..efb61b93bca 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 447bfbbcabb..efb61b93bca 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 3a0ea6b6183..d301591b5ec 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
@@ -5,40 +5,23 @@
"created": 1000000000,
"data": {
"object": {
- "address": null,
- "balance": 0,
+ "amount_paid": 22200,
+ "amount_requested": 22200,
"created": 1000000000,
- "currency": null,
- "default_source": null,
- "delinquent": false,
- "description": "zulip.testserver 9c36daef-29e",
- "discount": null,
- "email": "[email protected]",
- "id": "upgrade_user_to_basic_plan_free_trial--Customer.create.1.json",
- "invoice_prefix": "NORMALIZED",
- "invoice_settings": {
- "custom_fields": null,
- "default_payment_method": "pm_NORMALIZED",
- "footer": null,
- "rendering_options": null
- },
+ "currency": "usd",
+ "id": "upgrade_user_to_basic_plan_free_trial--Event.list.1.json",
+ "invoice": "in_NORMALIZED",
+ "is_default": true,
"livemode": false,
- "metadata": {
- "remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "object": "invoice_payment",
+ "payment": {
+ "payment_intent": "pi_NORMALIZED",
+ "type": "payment_intent"
},
- "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
+ "status": "paid",
+ "status_transitions": {
+ "canceled_at": null,
+ "paid_at": 1000000000
}
}
},
@@ -47,10 +30,10 @@
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "upgrade_user_to_basic_plan_free_trial--Event.list.1.json",
- "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ "id": null,
+ "idempotency_key": null
},
- "type": "customer.updated"
+ "type": "invoice_payment.paid"
}
],
"has_more": true,
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 fccbdb899cc..e9b9251f9bd 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/9c36daef-29ed-478d-a237-26a7dec0f4ee/upgrade/?manual_license_management=false&tier=1",
+ "cancel_url": "http://selfhosting.testserver/realm/99423a0a-fa84-4fd7-be9a-d10b8af15320/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/9c36daef-29ed-478d-a237-26a7dec0f4ee/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
+ "success_url": "http://selfhosting.testserver/realm/99423a0a-fa84-4fd7-be9a-d10b8af15320/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 f956d38a8a3..45dab9f545e 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/9c36daef-29ed-478d-a237-26a7dec0f4ee/upgrade/?manual_license_management=false&tier=1",
+ "cancel_url": "http://selfhosting.testserver/realm/99423a0a-fa84-4fd7-be9a-d10b8af15320/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/9c36daef-29ed-478d-a237-26a7dec0f4ee/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
+ "success_url": "http://selfhosting.testserver/realm/99423a0a-fa84-4fd7-be9a-d10b8af15320/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 68cfe4f1a2b..dc770c86fa1 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
@@ -5,41 +5,230 @@
"created": 1000000000,
"data": {
"object": {
- "address": null,
- "balance": 0,
+ "account_country": "US",
+ "account_name": "NORMALIZED",
+ "account_tax_ids": null,
+ "amount_due": 5235,
+ "amount_overpaid": 0,
+ "amount_paid": 5235,
+ "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": 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": "demo.example.com 6cde5f7a-1f7",
- "discount": null,
- "email": "[email protected]",
- "id": "upgrade_user_to_basic_plan_free_trial_remote_server--Customer.create.1.json",
- "invoice_prefix": "NORMALIZED",
- "invoice_settings": {
- "custom_fields": null,
- "default_payment_method": "pm_NORMALIZED",
- "footer": null,
- "rendering_options": 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_basic_plan_free_trial_remote_server--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": -2000,
+ "currency": "usd",
+ "description": "$20.00/month new customer discount",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "upgrade_user_to_basic_plan_free_trial_remote_server--Event.list.1.json",
+ "invoice": "upgrade_user_to_basic_plan_free_trial_remote_server--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": 1330657445,
+ "start": 1328151845
+ },
+ "pretax_credit_amounts": [],
+ "pricing": {
+ "price_details": {
+ "price": "price_NORMALIZED",
+ "product": "prod_NORMALIZED"
+ },
+ "type": "price_details",
+ "unit_amount_decimal": "-2000"
+ },
+ "quantity": 1,
+ "taxes": []
+ },
+ {
+ "amount": 1635,
+ "currency": "usd",
+ "description": "Additional Zulip Basic license",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "upgrade_user_to_basic_plan_free_trial_remote_server--Event.list.1.json",
+ "invoice": "upgrade_user_to_basic_plan_free_trial_remote_server--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": 1328151845,
+ "start": 1325646245
+ },
+ "pretax_credit_amounts": [],
+ "pricing": {
+ "price_details": {
+ "price": "price_NORMALIZED",
+ "product": "prod_NORMALIZED"
+ },
+ "type": "price_details",
+ "unit_amount_decimal": "327"
+ },
+ "quantity": 5,
+ "taxes": []
+ },
+ {
+ "amount": 5600,
+ "currency": "usd",
+ "description": "Zulip Basic - renewal",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "upgrade_user_to_basic_plan_free_trial_remote_server--Event.list.1.json",
+ "invoice": "upgrade_user_to_basic_plan_free_trial_remote_server--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": 1330657445,
+ "start": 1328151845
+ },
+ "pretax_credit_amounts": [],
+ "pricing": {
+ "price_details": {
+ "price": "price_NORMALIZED",
+ "product": "prod_NORMALIZED"
+ },
+ "type": "price_details",
+ "unit_amount_decimal": "350"
+ },
+ "quantity": 16,
+ "taxes": []
+ }
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 3,
+ "url": "/v1/invoices/upgrade_user_to_basic_plan_free_trial_remote_server--Event.list.1.json/lines"
},
"livemode": false,
- "metadata": {
- "remote_server_str": "demo.example.com 6cde5f7a-1f7",
- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"
+ "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": {
+ "finalized_at": 1000000000,
+ "marked_uncollectible_at": null,
+ "paid_at": 1000000000,
+ "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": 5235,
+ "subtotal_excluding_tax": 5235,
+ "test_clock": null,
+ "total": 5235,
+ "total_discount_amounts": [],
+ "total_excluding_tax": 5235,
+ "total_pretax_credit_amounts": [],
+ "total_taxes": [],
+ "webhooks_delivered_at": 1000000000
}
},
"id": "upgrade_user_to_basic_plan_free_trial_remote_server--Event.list.1.json",
@@ -47,10 +236,10 @@
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "upgrade_user_to_basic_plan_free_trial_remote_server--Event.list.1.json",
- "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ "id": null,
+ "idempotency_key": null
},
- "type": "customer.updated"
+ "type": "invoice.payment_succeeded"
}
],
"has_more": true,
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 27155f6206b..edea0ad186b 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 a899ed6e731..27c4af69a2b 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 b0d8dbb00dc..2113aeca8c3 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 b0d8dbb00dc..2113aeca8c3 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 b0d8dbb00dc..2113aeca8c3 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 b0d8dbb00dc..2113aeca8c3 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 b0d8dbb00dc..2113aeca8c3 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 b90057b7fc3..1c6cbe2d8cf 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 b90057b7fc3..1c6cbe2d8cf 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 df9e10d0b95..9e9c7c8be54 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
@@ -11,7 +11,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 1735162df15..7911236d700 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
@@ -62,7 +62,7 @@
"payment_method_details": {
"card": {
"amount_authorized": 176000,
- "authorization_code": "528165",
+ "authorization_code": "806646",
"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": 2,
+ "pending_webhooks": 0,
"request": {
"id": "upgrade_user_to_business_plan--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -1094,7 +1094,7 @@
"total_excluding_tax": 200000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"amount_due": 0,
@@ -1280,7 +1280,7 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "upgrade_user_to_business_plan--Event.list.2.json",
@@ -1304,7 +1304,7 @@
"currency": "usd",
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 e51abd08684..8c745297c48 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
@@ -201,7 +201,7 @@
"id": "upgrade_user_to_business_plan--Event.list.3.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 2,
+ "pending_webhooks": 0,
"request": {
"id": "upgrade_user_to_business_plan--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -409,7 +409,7 @@
"id": "upgrade_user_to_business_plan--Event.list.3.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 1,
+ "pending_webhooks": 0,
"request": {
"id": "upgrade_user_to_business_plan--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -634,41 +634,6 @@
},
"type": "invoice.updated"
},
- {
- "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,
@@ -703,7 +668,7 @@
"on_behalf_of": null,
"payment_details": {
"customer_reference": null,
- "order_reference": "in_1SPPAJRVfKEFJaqcLAQFIN"
+ "order_reference": "in_1SSd6hRVfKEFJaqc9QEFZd"
},
"payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Invoice.create.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Invoice.create.1.json
index 2a48b14f4e1..72a1221d98e 100644
--- a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Invoice.create.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Invoice.create.1.json
@@ -108,5 +108,5 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
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 688ebd61ef1..335040fd306 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/9c36daef-29ed-478d-a237-26a7dec0f4ee/upgrade/?manual_license_management=false&tier=1",
+ "cancel_url": "http://selfhosting.testserver/realm/99423a0a-fa84-4fd7-be9a-d10b8af15320/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/9c36daef-29ed-478d-a237-26a7dec0f4ee/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
+ "success_url": "http://selfhosting.testserver/realm/99423a0a-fa84-4fd7-be9a-d10b8af15320/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 f7d1ebef7f6..963ba4ecb7f 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/9c36daef-29ed-478d-a237-26a7dec0f4ee/upgrade/?manual_license_management=false&tier=1",
+ "cancel_url": "http://selfhosting.testserver/realm/99423a0a-fa84-4fd7-be9a-d10b8af15320/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/9c36daef-29ed-478d-a237-26a7dec0f4ee/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
+ "success_url": "http://selfhosting.testserver/realm/99423a0a-fa84-4fd7-be9a-d10b8af15320/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 9e8a3d258a9..93c07fc59ca 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 ad63c9fc216..3343dd28b20 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 5660ea8a9b1..8f77da8c0e3 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 5660ea8a9b1..8f77da8c0e3 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 5660ea8a9b1..8f77da8c0e3 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 5660ea8a9b1..8f77da8c0e3 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 5660ea8a9b1..8f77da8c0e3 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 b7a6e237b97..45065899c89 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 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 ca70b29fc78..8c1c791c4b4 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
@@ -11,7 +11,7 @@
"currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"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": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 c9d52b56f00..72f5c8fa099 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,40 +1,5 @@
{
"data": [
- {
- "api_version": "2025-10-29.clover",
- "created": 1000000000,
- "data": {
- "object": {
- "amount_paid": null,
- "amount_requested": 10000,
- "created": 1000000000,
- "currency": "usd",
- "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",
- "is_default": true,
- "livemode": false,
- "object": "invoice_payment",
- "payment": {
- "payment_intent": "upgrade_user_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_user_to_fixed_price_monthly_basic_plan--Event.list.2.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_payment.paid"
- },
{
"api_version": "2025-10-29.clover",
"created": 1000000000,
@@ -69,7 +34,7 @@
"on_behalf_of": null,
"payment_details": {
"customer_reference": null,
- "order_reference": "in_1SPPAZRVfKEFJaqcze0djS"
+ "order_reference": "in_1SSd6yRVfKEFJaqcC0Pd3G"
},
"payment_method": "pm_NORMALIZED",
"payment_method_configuration_details": null,
@@ -104,7 +69,7 @@
"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"
@@ -173,7 +138,7 @@
"payment_method_details": {
"card": {
"amount_authorized": 10000,
- "authorization_code": "068071",
+ "authorization_code": "641337",
"brand": "visa",
"checks": {
"address_line1_check": "pass",
@@ -231,7 +196,7 @@
"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"
@@ -393,7 +358,7 @@
"total_excluding_tax": 10000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.2.json",
@@ -561,7 +526,7 @@
"total_excluding_tax": 10000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"effective_at": null,
@@ -817,7 +782,7 @@
"total_excluding_tax": 10000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"amount_due": 0,
@@ -1003,7 +968,7 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.2.json",
@@ -1027,7 +992,7 @@
"currency": "usd",
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 9c36daef-29e",
+ "description": "zulip.testserver 99423a0a-fa8",
"discount": null,
"email": "[email protected]",
"id": "upgrade_user_to_fixed_price_monthly_basic_plan--Customer.create.1.json",
@@ -1041,7 +1006,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "9c36daef-29ed-478d-a237-26a7dec0f4ee"
+ "remote_realm_uuid": "99423a0a-fa84-4fd7-be9a-d10b8af15320"
},
"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 b96a5063179..8887eff0509 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
@@ -155,7 +155,7 @@
"total_excluding_tax": 10000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.3.json",
@@ -323,7 +323,7 @@
"total_excluding_tax": 10000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.3.json",
@@ -491,7 +491,7 @@
"total_excluding_tax": 10000,
"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_user_to_fixed_price_monthly_basic_plan--Invoice.create.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Invoice.create.1.json
index 3c50899c344..e83663ca796 100644
--- a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Invoice.create.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Invoice.create.1.json
@@ -108,5 +108,5 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
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 23a76592da8..713c223ef24 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": null
+ "webhooks_delivered_at": 1000000000
}
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 178a0ee8d3f..020577d294b 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": null
+ "webhooks_delivered_at": 1000000000
}
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 f8e650f4959..7a7e98e13cc 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/9c36daef-29ed-478d-a237-26a7dec0f4ee/upgrade/?manual_license_management=false&tier=1",
+ "cancel_url": "http://selfhosting.testserver/realm/99423a0a-fa84-4fd7-be9a-d10b8af15320/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/9c36daef-29ed-478d-a237-26a7dec0f4ee/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
+ "success_url": "http://selfhosting.testserver/realm/99423a0a-fa84-4fd7-be9a-d10b8af15320/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 cabee8c9f47..e2477bc7b3f 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/9c36daef-29ed-478d-a237-26a7dec0f4ee/upgrade/?manual_license_management=false&tier=1",
+ "cancel_url": "http://selfhosting.testserver/realm/99423a0a-fa84-4fd7-be9a-d10b8af15320/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/9c36daef-29ed-478d-a237-26a7dec0f4ee/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
+ "success_url": "http://selfhosting.testserver/realm/99423a0a-fa84-4fd7-be9a-d10b8af15320/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/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 8035e81f6f5..8e099045c6a 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
@@ -156,18 +156,27 @@
"total_excluding_tax": 56000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
+ },
+ "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": 2,
+ "pending_webhooks": 0,
"request": {
"id": "validate_licenses_for_manual_plan_management--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "invoice.paid"
+ "type": "invoice.updated"
},
{
"api_version": "2025-10-29.clover",
@@ -179,13 +188,13 @@
"account_tax_ids": null,
"amount_due": 56000,
"amount_overpaid": 0,
- "amount_paid": 56000,
- "amount_remaining": 0,
+ "amount_paid": 0,
+ "amount_remaining": 56000,
"amount_shipping": 0,
"application": null,
"attempt_count": 0,
"attempted": false,
- "auto_advance": false,
+ "auto_advance": true,
"automatic_tax": {
"disabled_reason": null,
"enabled": false,
@@ -310,11 +319,11 @@
"shipping_details": null,
"starting_balance": 0,
"statement_descriptor": "Zulip Cloud Standard",
- "status": "paid",
+ "status": "open",
"status_transitions": {
"finalized_at": 1000000000,
"marked_uncollectible_at": null,
- "paid_at": 1000000000,
+ "paid_at": null,
"voided_at": null
},
"subtotal": 56000,
@@ -325,27 +334,18 @@
"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
- }
+ "webhooks_delivered_at": 1000000000
}
},
"id": "validate_licenses_for_manual_plan_management--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 2,
+ "pending_webhooks": 0,
"request": {
"id": "validate_licenses_for_manual_plan_management--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "invoice.updated"
+ "type": "invoice.finalized"
},
{
"api_version": "2025-10-29.clover",
@@ -503,7 +503,24 @@
"total_excluding_tax": 56000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
+ },
+ "previous_attributes": {
+ "automatically_finalizes_at": 1000000000,
+ "effective_at": null,
+ "ending_balance": null,
+ "hosted_invoice_url": null,
+ "invoice_pdf": null,
+ "number": null,
+ "rendering": {
+ "pdf": {
+ "page_size": "auto"
+ }
+ },
+ "status": "draft",
+ "status_transitions": {
+ "finalized_at": null
+ }
}
},
"id": "validate_licenses_for_manual_plan_management--Event.list.2.json",
@@ -514,7 +531,79 @@
"id": "validate_licenses_for_manual_plan_management--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "invoice.finalized"
+ "type": "invoice.updated"
+ },
+ {
+ "api_version": "2025-10-29.clover",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount": 56000,
+ "amount_capturable": 0,
+ "amount_details": {
+ "tip": {}
+ },
+ "amount_received": 0,
+ "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": "validate_licenses_for_manual_plan_management--Customer.create.1.json",
+ "description": "Payment for Invoice",
+ "excluded_payment_method_types": null,
+ "id": "validate_licenses_for_manual_plan_management--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": 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": "requires_payment_method",
+ "transfer_data": null,
+ "transfer_group": null
+ }
+ },
+ "id": "validate_licenses_for_manual_plan_management--Event.list.2.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": "payment_intent.created"
},
{
"api_version": "2025-10-29.clover",
@@ -524,10 +613,10 @@
"account_country": "US",
"account_name": "NORMALIZED",
"account_tax_ids": null,
- "amount_due": 56000,
+ "amount_due": 36000,
"amount_overpaid": 0,
"amount_paid": 0,
- "amount_remaining": 56000,
+ "amount_remaining": 36000,
"amount_shipping": 0,
"application": null,
"attempt_count": 0,
@@ -546,7 +635,7 @@
"created": 1000000000,
"currency": "usd",
"custom_fields": null,
- "customer": "validate_licenses_for_manual_plan_management--Customer.create.1.json",
+ "customer": "cus_NORMALIZED",
"customer_address": null,
"customer_email": "[email protected]",
"customer_name": null,
@@ -565,7 +654,7 @@
"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",
+ "id": "validate_licenses_for_manual_plan_management--Event.list.1.json",
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
"issuer": {
"type": "self"
@@ -575,20 +664,20 @@
"lines": {
"data": [
{
- "amount": 56000,
+ "amount": 36000,
"currency": "usd",
- "description": "Zulip Cloud Standard",
+ "description": "Zulip Cloud Plus - renewal",
"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",
+ "id": "validate_licenses_for_manual_plan_management--Event.list.1.json",
+ "invoice": "validate_licenses_for_manual_plan_management--Event.list.1.json",
"livemode": false,
"metadata": {},
"object": "line_item",
"parent": {
"invoice_item_details": {
- "invoice_item": "validate_licenses_for_manual_plan_management--Event.list.2.json",
+ "invoice_item": "ii_NORMALIZED",
"proration": false,
"proration_details": {
"credited_items": null
@@ -599,8 +688,8 @@
"type": "invoice_item_details"
},
"period": {
- "end": 1357095845,
- "start": 1325473445
+ "end": 1388620800,
+ "start": 1357084800
},
"pretax_credit_amounts": [],
"pricing": {
@@ -609,27 +698,19 @@
"product": "prod_NORMALIZED"
},
"type": "price_details",
- "unit_amount_decimal": "8000"
+ "unit_amount_decimal": "36000"
},
- "quantity": 7,
+ "quantity": 1,
"taxes": []
}
],
"has_more": false,
"object": "list",
"total_count": 1,
- "url": "/v1/invoices/validate_licenses_for_manual_plan_management--Event.list.2.json/lines"
+ "url": "/v1/invoices/validate_licenses_for_manual_plan_management--Event.list.1.json/lines"
},
"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"
- },
+ "metadata": {},
"next_payment_attempt": null,
"number": "NORMALIZED",
"object": "invoice",
@@ -656,7 +737,7 @@
"shipping_cost": null,
"shipping_details": null,
"starting_balance": 0,
- "statement_descriptor": "Zulip Cloud Standard",
+ "statement_descriptor": "Zulip Cloud Plus",
"status": "open",
"status_transitions": {
"finalized_at": 1000000000,
@@ -664,104 +745,15 @@
"paid_at": null,
"voided_at": null
},
- "subtotal": 56000,
- "subtotal_excluding_tax": 56000,
+ "subtotal": 36000,
+ "subtotal_excluding_tax": 36000,
"test_clock": null,
- "total": 56000,
+ "total": 36000,
"total_discount_amounts": [],
- "total_excluding_tax": 56000,
+ "total_excluding_tax": 36000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
- },
- "previous_attributes": {
- "automatically_finalizes_at": 1000000000,
- "effective_at": null,
- "ending_balance": null,
- "hosted_invoice_url": null,
- "invoice_pdf": null,
- "number": null,
- "rendering": {
- "pdf": {
- "page_size": "auto"
- }
- },
- "status": "draft",
- "status_transitions": {
- "finalized_at": null
- }
- }
- },
- "id": "validate_licenses_for_manual_plan_management--Event.list.2.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.updated"
- },
- {
- "api_version": "2025-10-29.clover",
- "created": 1000000000,
- "data": {
- "object": {
- "amount": 56000,
- "amount_capturable": 0,
- "amount_details": {
- "tip": {}
- },
- "amount_received": 0,
- "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": "validate_licenses_for_manual_plan_management--Customer.create.1.json",
- "description": "Payment for Invoice",
- "excluded_payment_method_types": null,
- "id": "validate_licenses_for_manual_plan_management--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": 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": "requires_payment_method",
- "transfer_data": null,
- "transfer_group": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "validate_licenses_for_manual_plan_management--Event.list.2.json",
@@ -769,10 +761,10 @@
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "validate_licenses_for_manual_plan_management--Event.list.2.json",
- "idempotency_key": "00000000-0000-0000-0000-000000000000"
+ "id": null,
+ "idempotency_key": null
},
- "type": "payment_intent.created"
+ "type": "invoice.sent"
},
{
"api_version": "2025-10-29.clover",
@@ -930,7 +922,7 @@
"total_excluding_tax": 56000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"amount_due": 0,
@@ -1117,7 +1109,7 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "validate_licenses_for_manual_plan_management--Event.list.2.json",
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 2bda7c87813..7a2e9c0ce95 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,40 +1,5 @@
{
"data": [
- {
- "api_version": "2025-10-29.clover",
- "created": 1000000000,
- "data": {
- "object": {
- "amount_paid": 56000,
- "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,
@@ -69,7 +34,7 @@
"on_behalf_of": null,
"payment_details": {
"customer_reference": null,
- "order_reference": "in_1SPOy8RVfKEFJaqcWoRmKk"
+ "order_reference": "in_1SScugRVfKEFJaqc2wu6kQ"
},
"payment_method": null,
"payment_method_configuration_details": null,
@@ -110,6 +75,175 @@
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "payment_intent.canceled"
+ },
+ {
+ "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
+ },
+ "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": "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"
+ },
+ "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",
+ "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": 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": 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.paid"
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/validate_licenses_for_manual_plan_management--Invoice.create.1.json b/corporate/tests/stripe_fixtures/validate_licenses_for_manual_plan_management--Invoice.create.1.json
index 135364cebe3..0493e850896 100644
--- a/corporate/tests/stripe_fixtures/validate_licenses_for_manual_plan_management--Invoice.create.1.json
+++ b/corporate/tests/stripe_fixtures/validate_licenses_for_manual_plan_management--Invoice.create.1.json
@@ -109,5 +109,5 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/validate_licenses_for_manual_plan_management--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/validate_licenses_for_manual_plan_management--Invoice.finalize_invoice.1.json
index fa7ea3fd8ae..b87fe777448 100644
--- a/corporate/tests/stripe_fixtures/validate_licenses_for_manual_plan_management--Invoice.finalize_invoice.1.json
+++ b/corporate/tests/stripe_fixtures/validate_licenses_for_manual_plan_management--Invoice.finalize_invoice.1.json
@@ -150,5 +150,5 @@
"total_excluding_tax": 56000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/validate_licenses_for_manual_plan_management--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/validate_licenses_for_manual_plan_management--Invoice.pay.1.json
index 83bbec63c53..78c27e6df17 100644
--- a/corporate/tests/stripe_fixtures/validate_licenses_for_manual_plan_management--Invoice.pay.1.json
+++ b/corporate/tests/stripe_fixtures/validate_licenses_for_manual_plan_management--Invoice.pay.1.json
@@ -150,5 +150,5 @@
"total_excluding_tax": 56000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/void_all_open_invoices--Invoice.create.1.json b/corporate/tests/stripe_fixtures/void_all_open_invoices--Invoice.create.1.json
index 0d5b19cd345..792b528cdeb 100644
--- a/corporate/tests/stripe_fixtures/void_all_open_invoices--Invoice.create.1.json
+++ b/corporate/tests/stripe_fixtures/void_all_open_invoices--Invoice.create.1.json
@@ -101,5 +101,5 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/void_all_open_invoices--Invoice.create.2.json b/corporate/tests/stripe_fixtures/void_all_open_invoices--Invoice.create.2.json
index d32817d3487..c6bc825a039 100644
--- a/corporate/tests/stripe_fixtures/void_all_open_invoices--Invoice.create.2.json
+++ b/corporate/tests/stripe_fixtures/void_all_open_invoices--Invoice.create.2.json
@@ -101,5 +101,5 @@
"total_excluding_tax": 0,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/test_stripe.py b/corporate/tests/test_stripe.py
index dc1406487f0..d584ced18a6 100644
--- a/corporate/tests/test_stripe.py
+++ b/corporate/tests/test_stripe.py
@@ -4,6 +4,7 @@ import operator
import os
import re
import sys
+import time
import typing
import uuid
from collections.abc import Callable, Mapping, Sequence
@@ -569,14 +570,34 @@ class StripeTestCase(ZulipTestCase):
)
assert response.status_code == 200
- def send_stripe_webhook_events(self, most_recent_event: stripe.Event) -> None:
+ def send_stripe_webhook_events(
+ self, most_recent_event: stripe.Event, must_have_event: str | None = None
+ ) -> None: # nocoverage
+ # Stripe can delay events showing up in the Event list, so we
+ # keep looking until we find the must_have_event.
+ found_must_have_event = must_have_event is None
+ num_of_attempts_to_look_for_must_have_event = 10
while True:
events_old_to_new = list(
reversed(stripe.Event.list(ending_before=most_recent_event.id))
)
+
if len(events_old_to_new) == 0:
- break
+ if found_must_have_event:
+ break
+ else:
+ num_of_attempts_to_look_for_must_have_event -= 1
+ if num_of_attempts_to_look_for_must_have_event == 0:
+ raise AssertionError(
+ f"Did not find expected event {must_have_event} after looking for it multiple times"
+ )
+ time.sleep(0.2)
+ continue
+
for event in events_old_to_new:
+ if event.type == must_have_event:
+ found_must_have_event = True
+
self.send_stripe_webhook_event(event)
most_recent_event = events_old_to_new[-1]
@@ -702,13 +723,14 @@ class StripeTestCase(ZulipTestCase):
)
if invoice:
+ assert talk_to_stripe is True
# Mark the invoice as paid via stripe with the `invoice.paid` event.
stripe.Invoice.pay(last_sent_invoice.stripe_invoice_id, paid_out_of_band=True)
- # Upgrade the organization.
- # TODO: Fix `invoice.paid` event not being present in the events list even thought the invoice was
- # paid. This is likely due to a latency between invoice being paid and the event being generated.
- self.send_stripe_webhook_events(last_event)
+ self.send_stripe_webhook_events(
+ last_event,
+ must_have_event="invoice.paid" if invoice else None,
+ )
return upgrade_json_response
def add_card_and_upgrade(
@@ -1810,7 +1832,7 @@ class StripeTest(StripeTestCase):
# Customer pays the invoice
assert invoice.id is not None
stripe.Invoice.pay(invoice.id, paid_out_of_band=True)
- self.send_stripe_webhook_events(last_event)
+ self.send_stripe_webhook_events(last_event, "invoice.paid")
with time_machine.travel(self.now, tick=False):
response = self.client_get("/billing/")
@@ -1976,7 +1998,7 @@ class StripeTest(StripeTestCase):
# Customer pays the invoice
assert invoice.id is not None
stripe.Invoice.pay(invoice.id, paid_out_of_band=True)
- self.send_stripe_webhook_events(last_event)
+ self.send_stripe_webhook_events(last_event, "invoice.paid")
with time_machine.travel(self.now, tick=False):
response = self.client_get("/billing/")
@@ -2185,7 +2207,7 @@ class StripeTest(StripeTestCase):
[last_event] = iter(stripe.Event.list(limit=1))
assert invoice.id is not None
stripe.Invoice.pay(invoice.id, paid_out_of_band=True)
- self.send_stripe_webhook_events(last_event)
+ self.send_stripe_webhook_events(last_event, "invoice.paid")
invoice_plans_as_needed(free_trial_end_date)
CustomerPlan.objects.get(customer=customer, status=CustomerPlan.ACTIVE)