Skip to content

armgit / zulip

Public Imported from GitHub
0

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

stripe: Revise "Additional license" invoice item description.

Aman Agrawal5776bcb4f7f5
diff --git a/corporate/lib/stripe.py b/corporate/lib/stripe.py
index d5c9aef8336..42125ed3460 100644
--- a/corporate/lib/stripe.py
+++ b/corporate/lib/stripe.py
@@ -3318,10 +3318,7 @@ class BillingSession(ABC):
unit_amount = int(plan.price_per_license * proration_fraction + 0.5)
invoice_item_params["unit_amount_decimal"] = str(unit_amount)
invoice_item_params["quantity"] = ledger_entry.licenses - licenses_base
- invoice_item_params["description"] = "Additional license ({} - {})".format(
- ledger_entry.event_time.strftime("%b %-d, %Y"),
- plan_renewal_or_end_date.strftime("%b %-d, %Y"),
- )
+ invoice_item_params["description"] = f"Additional {plan.name} license"
return invoice_item_params
def update_additional_licenses_invoice_item_quantity(
diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.finalize_invoice.2.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.finalize_invoice.2.json
index 58b75fd0fa6..fc256749d6b 100644
--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.finalize_invoice.2.json
+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.finalize_invoice.2.json
@@ -55,7 +55,7 @@
{
"amount": 5172,
"currency": "usd",
- "description": "Additional license (Jan 2, 2013 - Mar 2, 2013)",
+ "description": "Additional Zulip Cloud Standard license",
"discount_amounts": [],
"discountable": false,
"discounts": [],
diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.list.6.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.list.6.json
index d2b25ee0bf6..10f0c377b16 100644
--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.list.6.json
+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.list.6.json
@@ -57,7 +57,7 @@
{
"amount": 5172,
"currency": "usd",
- "description": "Additional license (Jan 2, 2013 - Mar 2, 2013)",
+ "description": "Additional Zulip Cloud Standard license",
"discount_amounts": [],
"discountable": false,
"discounts": [],
diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.list.7.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.list.7.json
index e34c4bac708..42ccd99059b 100644
--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.list.7.json
+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.list.7.json
@@ -203,7 +203,7 @@
{
"amount": 5172,
"currency": "usd",
- "description": "Additional license (Jan 2, 2013 - Mar 2, 2013)",
+ "description": "Additional Zulip Cloud Standard license",
"discount_amounts": [],
"discountable": false,
"discounts": [],
diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--InvoiceItem.create.2.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--InvoiceItem.create.2.json
index a31b96e994e..b748810757b 100644
--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--InvoiceItem.create.2.json
+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--InvoiceItem.create.2.json
@@ -3,7 +3,7 @@
"currency": "usd",
"customer": "cus_NORMALIZED",
"date": 1000000000,
- "description": "Additional license (Jan 2, 2013 - Mar 2, 2013)",
+ "description": "Additional Zulip Cloud Standard license",
"discountable": false,
"discounts": [],
"id": "free_trial_upgrade_by_card--InvoiceItem.create.2.json",
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 f29779137d5..08ee1b5f1b7 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
@@ -5,35 +5,76 @@
"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_customer_fails_to_pay--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_NORMALIZED1DkAwKj41RVfKEFJaqcH04",
- "type": "payment_record"
+ "metadata": {},
+ "next_action": null,
+ "object": "payment_intent",
+ "on_behalf_of": null,
+ "payment_details": {
+ "customer_reference": null,
+ "order_reference": "in_1SQW9aRVfKEFJaqcj0gWHt"
+ },
+ "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_customer_fails_to_pay--Event.list.1.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 2,
+ "pending_webhooks": 0,
"request": {
"id": "free_trial_upgrade_by_invoice_customer_fails_to_pay--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_customer_fails_to_pay--Event.list.2.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.2.json
index 32de6eb26b9..7a6f1ecb8a4 100644
--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.2.json
+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.2.json
@@ -107,7 +107,7 @@
"livemode": false,
"metadata": {
"billing_schedule": "1",
- "current_plan_id": "40",
+ "current_plan_id": "1",
"license_management": "manual",
"licenses": "123",
"on_free_trial": "True",
@@ -156,7 +156,7 @@
"total_excluding_tax": 984000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
"id": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.2.json",
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 598dfb75857..c6c733b8945 100644
--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.3.json
+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.3.json
@@ -1,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_customer_fails_to_pay--Event.list.3.json",
- "invoice": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.2.json",
- "is_default": false,
- "livemode": false,
- "object": "invoice_payment",
- "payment": {
- "payment_record": "pr_test_NORMALIZEDqspb93V41RVfKEFJaqcX7A",
- "type": "payment_record"
- },
- "status": "paid",
- "status_transitions": {
- "canceled_at": null,
- "paid_at": 1000000000
- }
- }
- },
- "id": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.3.json",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 0,
- "request": {
- "id": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.3.json",
- "idempotency_key": "00000000-0000-0000-0000-000000000000"
- },
- "type": "invoice_payment.paid"
- },
{
"api_version": "2025-10-29.clover",
"created": 1000000000,
@@ -69,7 +34,7 @@
"on_behalf_of": null,
"payment_details": {
"customer_reference": null,
- "order_reference": "in_1SPP1QRVfKEFJaqcNJizb5"
+ "order_reference": "in_1SQW9xRVfKEFJaqcl2uGr5"
},
"payment_method": null,
"payment_method_configuration_details": null,
@@ -104,7 +69,7 @@
"id": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.3.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 1,
+ "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"
@@ -218,7 +183,7 @@
"livemode": false,
"metadata": {
"billing_schedule": "1",
- "current_plan_id": "40",
+ "current_plan_id": "1",
"license_management": "manual",
"licenses": "123",
"on_free_trial": "True",
@@ -387,7 +352,7 @@
"livemode": false,
"metadata": {
"billing_schedule": "1",
- "current_plan_id": "40",
+ "current_plan_id": "1",
"license_management": "manual",
"licenses": "123",
"on_free_trial": "True",
@@ -451,7 +416,7 @@
"id": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.3.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
"id": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.3.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
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 f272228726d..340c4ce9d4f 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
@@ -60,7 +60,7 @@
"livemode": false,
"metadata": {
"billing_schedule": "1",
- "current_plan_id": "40",
+ "current_plan_id": "1",
"license_management": "manual",
"licenses": "123",
"on_free_trial": "True",
diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_customer_fails_to_pay--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_customer_fails_to_pay--Invoice.finalize_invoice.1.json
index c8a19240347..5490e9e9d01 100644
--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_customer_fails_to_pay--Invoice.finalize_invoice.1.json
+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_customer_fails_to_pay--Invoice.finalize_invoice.1.json
@@ -101,7 +101,7 @@
"livemode": false,
"metadata": {
"billing_schedule": "1",
- "current_plan_id": "40",
+ "current_plan_id": "1",
"license_management": "manual",
"licenses": "123",
"on_free_trial": "True",
@@ -150,5 +150,5 @@
"total_excluding_tax": 984000,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_customer_fails_to_pay--Invoice.list.1.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_customer_fails_to_pay--Invoice.list.1.json
index 3ab788c19df..05374e9c937 100644
--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_customer_fails_to_pay--Invoice.list.1.json
+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_customer_fails_to_pay--Invoice.list.1.json
@@ -103,7 +103,7 @@
"livemode": false,
"metadata": {
"billing_schedule": "1",
- "current_plan_id": "40",
+ "current_plan_id": "1",
"license_management": "manual",
"licenses": "123",
"on_free_trial": "True",
diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_customer_fails_to_pay--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_customer_fails_to_pay--Invoice.pay.1.json
index a44fe7073ca..45ab275d155 100644
--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_customer_fails_to_pay--Invoice.pay.1.json
+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_customer_fails_to_pay--Invoice.pay.1.json
@@ -101,7 +101,7 @@
"livemode": false,
"metadata": {
"billing_schedule": "1",
- "current_plan_id": "40",
+ "current_plan_id": "1",
"license_management": "manual",
"licenses": "123",
"on_free_trial": "True",
diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_customer_fails_to_pay--Invoice.refresh.1.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_customer_fails_to_pay--Invoice.refresh.1.json
index 37d345a4526..5490e9e9d01 100644
--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_customer_fails_to_pay--Invoice.refresh.1.json
+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_customer_fails_to_pay--Invoice.refresh.1.json
@@ -101,7 +101,7 @@
"livemode": false,
"metadata": {
"billing_schedule": "1",
- "current_plan_id": "40",
+ "current_plan_id": "1",
"license_management": "manual",
"licenses": "123",
"on_free_trial": "True",
diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_customer_fails_to_pay--Invoice.retrieve.1.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_customer_fails_to_pay--Invoice.retrieve.1.json
index 37d345a4526..5490e9e9d01 100644
--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_customer_fails_to_pay--Invoice.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_customer_fails_to_pay--Invoice.retrieve.1.json
@@ -101,7 +101,7 @@
"livemode": false,
"metadata": {
"billing_schedule": "1",
- "current_plan_id": "40",
+ "current_plan_id": "1",
"license_management": "manual",
"licenses": "123",
"on_free_trial": "True",
diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--Invoice.finalize_invoice.2.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--Invoice.finalize_invoice.2.json
index c85491cdd6d..291bd1a1b09 100644
--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--Invoice.finalize_invoice.2.json
+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--Invoice.finalize_invoice.2.json
@@ -55,7 +55,7 @@
{
"amount": 16000,
"currency": "usd",
- "description": "Additional license (Mar 2, 2012 - Mar 2, 2013)",
+ "description": "Additional Zulip Cloud Standard license",
"discount_amounts": [],
"discountable": false,
"discounts": [],
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 4f918c05ca9..66d8372db54 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
@@ -57,7 +57,7 @@
{
"amount": 16000,
"currency": "usd",
- "description": "Additional license (Mar 2, 2012 - Mar 2, 2013)",
+ "description": "Additional Zulip Cloud Standard license",
"discount_amounts": [],
"discountable": false,
"discounts": [],
diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--InvoiceItem.create.2.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--InvoiceItem.create.2.json
index 2e8e11be37b..a173e831bf0 100644
--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--InvoiceItem.create.2.json
+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--InvoiceItem.create.2.json
@@ -3,7 +3,7 @@
"currency": "usd",
"customer": "cus_NORMALIZED",
"date": 1000000000,
- "description": "Additional license (Mar 2, 2012 - Mar 2, 2013)",
+ "description": "Additional Zulip Cloud Standard license",
"discountable": false,
"discounts": [],
"id": "free_trial_upgrade_by_invoice_with_additional_users_after_payment--InvoiceItem.create.2.json",
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 85aa83c7228..67740b26994 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
@@ -55,7 +55,7 @@
{
"amount": 7781,
"currency": "usd",
- "description": "Additional license (Jan 12, 2012 - Jan 2, 2013)",
+ "description": "Additional Zulip Cloud Standard license",
"discount_amounts": [],
"discountable": false,
"discounts": [],
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 a28a1e6bbb2..9ec1f630b68 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
@@ -57,7 +57,7 @@
{
"amount": 7781,
"currency": "usd",
- "description": "Additional license (Jan 12, 2012 - Jan 2, 2013)",
+ "description": "Additional Zulip Cloud Standard license",
"discount_amounts": [],
"discountable": false,
"discounts": [],
diff --git a/corporate/tests/stripe_fixtures/invoice_for_additional_license--InvoiceItem.create.2.json b/corporate/tests/stripe_fixtures/invoice_for_additional_license--InvoiceItem.create.2.json
index 71642c21eed..a973e3e4268 100644
--- a/corporate/tests/stripe_fixtures/invoice_for_additional_license--InvoiceItem.create.2.json
+++ b/corporate/tests/stripe_fixtures/invoice_for_additional_license--InvoiceItem.create.2.json
@@ -3,7 +3,7 @@
"currency": "usd",
"customer": "cus_NORMALIZED",
"date": 1000000000,
- "description": "Additional license (Jan 12, 2012 - Jan 2, 2013)",
+ "description": "Additional Zulip Cloud Standard license",
"discountable": false,
"discounts": [],
"id": "invoice_for_additional_license--InvoiceItem.create.2.json",
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 86b20c6fe35..3d25d8ef7bf 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
@@ -55,7 +55,7 @@
{
"amount": 7255,
"currency": "usd",
- "description": "Additional license (Feb 5, 2013 - Jan 2, 2014)",
+ "description": "Additional Zulip Cloud Standard license",
"discount_amounts": [],
"discountable": false,
"discounts": [],
@@ -95,7 +95,7 @@
{
"amount": 17442,
"currency": "usd",
- "description": "Additional license (Apr 11, 2012 - Jan 2, 2013)",
+ "description": "Additional Zulip Cloud Standard license",
"discount_amounts": [],
"discountable": false,
"discounts": [],
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 a44b6bbbfc8..41f7b0c3e92 100644
--- a/corporate/tests/stripe_fixtures/invoice_plan--Invoice.list.2.json
+++ b/corporate/tests/stripe_fixtures/invoice_plan--Invoice.list.2.json
@@ -57,7 +57,7 @@
{
"amount": 7255,
"currency": "usd",
- "description": "Additional license (Feb 5, 2013 - Jan 2, 2014)",
+ "description": "Additional Zulip Cloud Standard license",
"discount_amounts": [],
"discountable": false,
"discounts": [],
@@ -97,7 +97,7 @@
{
"amount": 17442,
"currency": "usd",
- "description": "Additional license (Apr 11, 2012 - Jan 2, 2013)",
+ "description": "Additional Zulip Cloud Standard license",
"discount_amounts": [],
"discountable": false,
"discounts": [],
diff --git a/corporate/tests/stripe_fixtures/invoice_plan--InvoiceItem.create.3.json b/corporate/tests/stripe_fixtures/invoice_plan--InvoiceItem.create.3.json
index 593c793949a..d86880a7ca2 100644
--- a/corporate/tests/stripe_fixtures/invoice_plan--InvoiceItem.create.3.json
+++ b/corporate/tests/stripe_fixtures/invoice_plan--InvoiceItem.create.3.json
@@ -3,7 +3,7 @@
"currency": "usd",
"customer": "cus_NORMALIZED",
"date": 1000000000,
- "description": "Additional license (Apr 11, 2012 - Jan 2, 2013)",
+ "description": "Additional Zulip Cloud Standard license",
"discountable": false,
"discounts": [],
"id": "invoice_plan--InvoiceItem.create.3.json",
diff --git a/corporate/tests/stripe_fixtures/invoice_plan--InvoiceItem.create.4.json b/corporate/tests/stripe_fixtures/invoice_plan--InvoiceItem.create.4.json
index f0da8adc5be..afc18118a14 100644
--- a/corporate/tests/stripe_fixtures/invoice_plan--InvoiceItem.create.4.json
+++ b/corporate/tests/stripe_fixtures/invoice_plan--InvoiceItem.create.4.json
@@ -3,7 +3,7 @@
"currency": "usd",
"customer": "cus_NORMALIZED",
"date": 1000000000,
- "description": "Additional license (Feb 5, 2013 - Jan 2, 2014)",
+ "description": "Additional Zulip Cloud Standard license",
"discountable": false,
"discounts": [],
"id": "invoice_plan--InvoiceItem.create.4.json",
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 679e845060f..8e0713f30de 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
@@ -55,7 +55,7 @@
{
"amount": 372700,
"currency": "usd",
- "description": "Additional license (Jan 27, 2012 - Jan 2, 2013)",
+ "description": "Additional Zulip Cloud Standard license",
"discount_amounts": [],
"discountable": false,
"discounts": [],
@@ -95,7 +95,7 @@
{
"amount": 756300,
"currency": "usd",
- "description": "Additional license (Jan 22, 2012 - Jan 2, 2013)",
+ "description": "Additional Zulip Cloud Standard license",
"discount_amounts": [],
"discountable": false,
"discounts": [],
@@ -135,7 +135,7 @@
{
"amount": 767200,
"currency": "usd",
- "description": "Additional license (Jan 17, 2012 - Jan 2, 2013)",
+ "description": "Additional Zulip Cloud Standard license",
"discount_amounts": [],
"discountable": false,
"discounts": [],
@@ -175,7 +175,7 @@
{
"amount": 389050,
"currency": "usd",
- "description": "Additional license (Jan 12, 2012 - Jan 2, 2013)",
+ "description": "Additional Zulip Cloud Standard license",
"discount_amounts": [],
"discountable": false,
"discounts": [],
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 666a6f7fe7f..00411182f70 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
@@ -57,7 +57,7 @@
{
"amount": 372700,
"currency": "usd",
- "description": "Additional license (Jan 27, 2012 - Jan 2, 2013)",
+ "description": "Additional Zulip Cloud Standard license",
"discount_amounts": [],
"discountable": false,
"discounts": [],
@@ -97,7 +97,7 @@
{
"amount": 756300,
"currency": "usd",
- "description": "Additional license (Jan 22, 2012 - Jan 2, 2013)",
+ "description": "Additional Zulip Cloud Standard license",
"discount_amounts": [],
"discountable": false,
"discounts": [],
@@ -137,7 +137,7 @@
{
"amount": 767200,
"currency": "usd",
- "description": "Additional license (Jan 17, 2012 - Jan 2, 2013)",
+ "description": "Additional Zulip Cloud Standard license",
"discount_amounts": [],
"discountable": false,
"discounts": [],
@@ -177,7 +177,7 @@
{
"amount": 389050,
"currency": "usd",
- "description": "Additional license (Jan 12, 2012 - Jan 2, 2013)",
+ "description": "Additional Zulip Cloud Standard license",
"discount_amounts": [],
"discountable": false,
"discounts": [],
diff --git a/corporate/tests/stripe_fixtures/invoice_plan_bundle_additional_licenses--InvoiceItem.create.2.json b/corporate/tests/stripe_fixtures/invoice_plan_bundle_additional_licenses--InvoiceItem.create.2.json
index 97a2d2034b4..2e1a8d69cee 100644
--- a/corporate/tests/stripe_fixtures/invoice_plan_bundle_additional_licenses--InvoiceItem.create.2.json
+++ b/corporate/tests/stripe_fixtures/invoice_plan_bundle_additional_licenses--InvoiceItem.create.2.json
@@ -3,7 +3,7 @@
"currency": "usd",
"customer": "cus_NORMALIZED",
"date": 1000000000,
- "description": "Additional license (Jan 12, 2012 - Jan 2, 2013)",
+ "description": "Additional Zulip Cloud Standard license",
"discountable": false,
"discounts": [],
"id": "invoice_plan_bundle_additional_licenses--InvoiceItem.create.2.json",
diff --git a/corporate/tests/stripe_fixtures/invoice_plan_bundle_additional_licenses--InvoiceItem.create.3.json b/corporate/tests/stripe_fixtures/invoice_plan_bundle_additional_licenses--InvoiceItem.create.3.json
index 92e26b3fa18..d3506f1f77f 100644
--- a/corporate/tests/stripe_fixtures/invoice_plan_bundle_additional_licenses--InvoiceItem.create.3.json
+++ b/corporate/tests/stripe_fixtures/invoice_plan_bundle_additional_licenses--InvoiceItem.create.3.json
@@ -3,7 +3,7 @@
"currency": "usd",
"customer": "cus_NORMALIZED",
"date": 1000000000,
- "description": "Additional license (Jan 17, 2012 - Jan 2, 2013)",
+ "description": "Additional Zulip Cloud Standard license",
"discountable": false,
"discounts": [],
"id": "invoice_plan_bundle_additional_licenses--InvoiceItem.create.3.json",
diff --git a/corporate/tests/stripe_fixtures/invoice_plan_bundle_additional_licenses--InvoiceItem.create.4.json b/corporate/tests/stripe_fixtures/invoice_plan_bundle_additional_licenses--InvoiceItem.create.4.json
index dab7f4e33eb..6f5fad6abd9 100644
--- a/corporate/tests/stripe_fixtures/invoice_plan_bundle_additional_licenses--InvoiceItem.create.4.json
+++ b/corporate/tests/stripe_fixtures/invoice_plan_bundle_additional_licenses--InvoiceItem.create.4.json
@@ -3,7 +3,7 @@
"currency": "usd",
"customer": "cus_NORMALIZED",
"date": 1000000000,
- "description": "Additional license (Jan 22, 2012 - Jan 2, 2013)",
+ "description": "Additional Zulip Cloud Standard license",
"discountable": false,
"discounts": [],
"id": "invoice_plan_bundle_additional_licenses--InvoiceItem.create.4.json",
diff --git a/corporate/tests/stripe_fixtures/invoice_plan_bundle_additional_licenses--InvoiceItem.create.5.json b/corporate/tests/stripe_fixtures/invoice_plan_bundle_additional_licenses--InvoiceItem.create.5.json
index 0b1a4dcb01e..271cd2d7cbd 100644
--- a/corporate/tests/stripe_fixtures/invoice_plan_bundle_additional_licenses--InvoiceItem.create.5.json
+++ b/corporate/tests/stripe_fixtures/invoice_plan_bundle_additional_licenses--InvoiceItem.create.5.json
@@ -3,7 +3,7 @@
"currency": "usd",
"customer": "cus_NORMALIZED",
"date": 1000000000,
- "description": "Additional license (Jan 27, 2012 - Jan 2, 2013)",
+ "description": "Additional Zulip Cloud Standard license",
"discountable": false,
"discounts": [],
"id": "invoice_plan_bundle_additional_licenses--InvoiceItem.create.5.json",
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 ec1544d44b1..30f7a856ad6 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
@@ -6,110 +6,59 @@
"data": {
"object": {
"amount": 1850,
- "amount_captured": 1850,
- "amount_refunded": 0,
+ "amount_capturable": 0,
+ "amount_details": {
+ "tip": {}
+ },
+ "amount_received": 1850,
"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_plans_as_needed--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_plans_as_needed--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_1SQW98RVfKEFJaqcu4hsts"
},
- "paid": true,
- "payment_intent": "invoice_plans_as_needed--Event.list.2.json",
"payment_method": "pm_NORMALIZED",
- "payment_method_details": {
+ "payment_method_configuration_details": null,
+ "payment_method_options": {
"card": {
- "amount_authorized": 1850,
- "authorization_code": "874006",
- "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
+ "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",
@@ -125,7 +74,7 @@
"id": "invoice_plans_as_needed--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "charge.succeeded"
+ "type": "payment_intent.succeeded"
},
{
"api_version": "2025-10-29.clover",
@@ -322,7 +271,7 @@
"total_excluding_tax": 1850,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
},
"id": "invoice_plans_as_needed--Event.list.2.json",
@@ -530,7 +479,7 @@
"total_excluding_tax": 1850,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
},
"previous_attributes": {
"effective_at": null,
@@ -826,7 +775,7 @@
"total_excluding_tax": 1850,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
},
"previous_attributes": {
"amount_due": 3850,
@@ -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_plans_as_needed--Event.list.3.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Event.list.3.json
index ba98353d419..7b225e232bd 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,13 +195,13 @@
"total_excluding_tax": 1850,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
},
"id": "invoice_plans_as_needed--Event.list.3.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 1,
+ "pending_webhooks": 0,
"request": {
"id": "invoice_plans_as_needed--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -403,7 +403,7 @@
"total_excluding_tax": 1850,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
},
"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": 1000000000
+ "webhooks_delivered_at": null
},
"previous_attributes": {
"amount_paid": 0,
@@ -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": 1850,
- "created": 1000000000,
- "currency": "usd",
- "id": "invoice_plans_as_needed--Event.list.3.json",
- "invoice": "invoice_plans_as_needed--Event.list.2.json",
- "is_default": true,
- "livemode": false,
- "object": "invoice_payment",
- "payment": {
- "payment_intent": "invoice_plans_as_needed--Event.list.2.json",
- "type": "payment_intent"
- },
- "status": "open",
- "status_transitions": {
- "canceled_at": null,
- "paid_at": null
- }
- }
- },
- "id": "invoice_plans_as_needed--Event.list.3.json",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 0,
- "request": {
- "id": "invoice_plans_as_needed--Event.list.2.json",
- "idempotency_key": "00000000-0000-0000-0000-000000000000"
- },
- "type": "invoice_payment.paid"
- },
- {
- "api_version": "2025-10-29.clover",
- "created": 1000000000,
- "data": {
- "object": {
- "amount": 1850,
- "amount_capturable": 0,
- "amount_details": {
- "tip": {}
- },
- "amount_received": 1850,
- "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--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_1SPP7bRVfKEFJaqcpG44Wh"
- },
- "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--Event.list.3.json",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 0,
- "request": {
- "id": "invoice_plans_as_needed--Event.list.2.json",
- "idempotency_key": "00000000-0000-0000-0000-000000000000"
- },
- "type": "payment_intent.succeeded"
}
],
"has_more": false,
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 e67a0422c7a..dcc23abbef6 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": 1000000000
+ "webhooks_delivered_at": null
}
diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Invoice.finalize_invoice.2.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Invoice.finalize_invoice.2.json
index 827b6531768..fcb020512db 100644
--- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Invoice.finalize_invoice.2.json
+++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Invoice.finalize_invoice.2.json
@@ -93,9 +93,9 @@
"taxes": []
},
{
- "amount": 5600,
+ "amount": 1635,
"currency": "usd",
- "description": "Zulip Basic - renewal",
+ "description": "Additional Zulip Basic license",
"discount_amounts": [],
"discountable": false,
"discounts": [],
@@ -117,8 +117,8 @@
"type": "invoice_item_details"
},
"period": {
- "end": 1330657445,
- "start": 1328151845
+ "end": 1328151845,
+ "start": 1325646245
},
"pretax_credit_amounts": [],
"pricing": {
@@ -127,15 +127,15 @@
"product": "prod_NORMALIZED"
},
"type": "price_details",
- "unit_amount_decimal": "350"
+ "unit_amount_decimal": "327"
},
- "quantity": 16,
+ "quantity": 5,
"taxes": []
},
{
- "amount": 1635,
+ "amount": 5600,
"currency": "usd",
- "description": "Additional license (Jan 4, 2012 - Feb 2, 2012)",
+ "description": "Zulip Basic - renewal",
"discount_amounts": [],
"discountable": false,
"discounts": [],
@@ -157,8 +157,8 @@
"type": "invoice_item_details"
},
"period": {
- "end": 1328151845,
- "start": 1325646245
+ "end": 1330657445,
+ "start": 1328151845
},
"pretax_credit_amounts": [],
"pricing": {
@@ -167,9 +167,9 @@
"product": "prod_NORMALIZED"
},
"type": "price_details",
- "unit_amount_decimal": "327"
+ "unit_amount_decimal": "350"
},
- "quantity": 5,
+ "quantity": 16,
"taxes": []
}
],
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 460703b4bc9..2c98e2dee08 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
@@ -95,9 +95,9 @@
"taxes": []
},
{
- "amount": 5600,
+ "amount": 1635,
"currency": "usd",
- "description": "Zulip Basic - renewal",
+ "description": "Additional Zulip Basic license",
"discount_amounts": [],
"discountable": false,
"discounts": [],
@@ -119,8 +119,8 @@
"type": "invoice_item_details"
},
"period": {
- "end": 1330657445,
- "start": 1328151845
+ "end": 1328151845,
+ "start": 1325646245
},
"pretax_credit_amounts": [],
"pricing": {
@@ -129,15 +129,15 @@
"product": "prod_NORMALIZED"
},
"type": "price_details",
- "unit_amount_decimal": "350"
+ "unit_amount_decimal": "327"
},
- "quantity": 16,
+ "quantity": 5,
"taxes": []
},
{
- "amount": 1635,
+ "amount": 5600,
"currency": "usd",
- "description": "Additional license (Jan 4, 2012 - Feb 2, 2012)",
+ "description": "Zulip Basic - renewal",
"discount_amounts": [],
"discountable": false,
"discounts": [],
@@ -159,8 +159,8 @@
"type": "invoice_item_details"
},
"period": {
- "end": 1328151845,
- "start": 1325646245
+ "end": 1330657445,
+ "start": 1328151845
},
"pretax_credit_amounts": [],
"pricing": {
@@ -169,9 +169,9 @@
"product": "prod_NORMALIZED"
},
"type": "price_details",
- "unit_amount_decimal": "327"
+ "unit_amount_decimal": "350"
},
- "quantity": 5,
+ "quantity": 16,
"taxes": []
}
],
@@ -417,7 +417,7 @@
"total_excluding_tax": 1850,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Invoice.pay.1.json
index 6577d7dae50..f91371283cc 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": 1000000000
+ "webhooks_delivered_at": null
}
diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--InvoiceItem.create.3.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--InvoiceItem.create.3.json
index 36780aeb7a6..fe88fd75bc4 100644
--- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--InvoiceItem.create.3.json
+++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--InvoiceItem.create.3.json
@@ -1,21 +1,21 @@
{
- "amount": 1635,
+ "amount": 5600,
"currency": "usd",
"customer": "cus_NORMALIZED",
"date": 1000000000,
- "description": "Additional license (Jan 4, 2012 - Feb 2, 2012)",
+ "description": "Zulip Basic - renewal",
"discountable": false,
"discounts": [],
"id": "invoice_plans_as_needed--InvoiceItem.create.3.json",
"invoice": "in_NORMALIZED",
"livemode": false,
"metadata": {},
- "net_amount": 1635,
+ "net_amount": 5600,
"object": "invoiceitem",
"parent": null,
"period": {
- "end": 1328151845,
- "start": 1325646245
+ "end": 1330657445,
+ "start": 1328151845
},
"pricing": {
"price_details": {
@@ -23,10 +23,10 @@
"product": "prod_NORMALIZED"
},
"type": "price_details",
- "unit_amount_decimal": "327"
+ "unit_amount_decimal": "350"
},
"proration": false,
- "quantity": 5,
+ "quantity": 16,
"tax_rates": [],
"test_clock": null
}
diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--InvoiceItem.create.4.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--InvoiceItem.create.4.json
index f714defa17a..5e087fe3c11 100644
--- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--InvoiceItem.create.4.json
+++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--InvoiceItem.create.4.json
@@ -1,21 +1,21 @@
{
- "amount": 5600,
+ "amount": 1635,
"currency": "usd",
"customer": "cus_NORMALIZED",
"date": 1000000000,
- "description": "Zulip Basic - renewal",
+ "description": "Additional Zulip Basic license",
"discountable": false,
"discounts": [],
"id": "invoice_plans_as_needed--InvoiceItem.create.4.json",
"invoice": "in_NORMALIZED",
"livemode": false,
"metadata": {},
- "net_amount": 5600,
+ "net_amount": 1635,
"object": "invoiceitem",
"parent": null,
"period": {
- "end": 1330657445,
- "start": 1328151845
+ "end": 1328151845,
+ "start": 1325646245
},
"pricing": {
"price_details": {
@@ -23,10 +23,10 @@
"product": "prod_NORMALIZED"
},
"type": "price_details",
- "unit_amount_decimal": "350"
+ "unit_amount_decimal": "327"
},
"proration": false,
- "quantity": 16,
+ "quantity": 5,
"tax_rates": [],
"test_clock": null
}
diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--checkout.Session.create.1.json
index 06423cb8019..d8ac99f45f5 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
@@ -69,7 +69,7 @@
"livemode": false,
"locale": null,
"metadata": {
- "remote_realm_user_id": "3",
+ "remote_realm_user_id": "1",
"type": "card_update"
},
"mode": "setup",
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 897977e5bee..17185750090 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
@@ -71,7 +71,7 @@
"livemode": false,
"locale": null,
"metadata": {
- "remote_realm_user_id": "3",
+ "remote_realm_user_id": "1",
"type": "card_update"
},
"mode": "setup",
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 816ed7bc0c4..9b1aedd34cb 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,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_plans_as_needed_server--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_plans_as_needed_server--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_1SQW8aRVfKEFJaqc1tMm4C"
},
- "paid": true,
- "payment_intent": "invoice_plans_as_needed_server--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": "056065",
- "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",
@@ -125,7 +74,7 @@
"id": "invoice_plans_as_needed_server--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
- "type": "charge.succeeded"
+ "type": "payment_intent.succeeded"
},
{
"api_version": "2025-10-29.clover",
@@ -322,7 +271,7 @@
"total_excluding_tax": 4300,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
},
"id": "invoice_plans_as_needed_server--Event.list.2.json",
@@ -530,7 +479,7 @@
"total_excluding_tax": 4300,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
},
"previous_attributes": {
"effective_at": null,
@@ -826,7 +775,7 @@
"total_excluding_tax": 4300,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
},
"previous_attributes": {
"amount_due": 6300,
@@ -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_plans_as_needed_server--Event.list.3.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Event.list.3.json
index b936d096117..81d9f6bdd13 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": 1000000000
+ "webhooks_delivered_at": null
}
},
"id": "invoice_plans_as_needed_server--Event.list.3.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
"id": "invoice_plans_as_needed_server--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
@@ -403,7 +403,7 @@
"total_excluding_tax": 4300,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
},
"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": 1000000000
+ "webhooks_delivered_at": null
},
"previous_attributes": {
"amount_paid": 0,
@@ -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_plans_as_needed_server--Event.list.3.json",
- "invoice": "invoice_plans_as_needed_server--Event.list.2.json",
- "is_default": true,
- "livemode": false,
- "object": "invoice_payment",
- "payment": {
- "payment_intent": "invoice_plans_as_needed_server--Event.list.2.json",
- "type": "payment_intent"
- },
- "status": "open",
- "status_transitions": {
- "canceled_at": null,
- "paid_at": null
- }
- }
- },
- "id": "invoice_plans_as_needed_server--Event.list.3.json",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 0,
- "request": {
- "id": "invoice_plans_as_needed_server--Event.list.2.json",
- "idempotency_key": "00000000-0000-0000-0000-000000000000"
- },
- "type": "invoice_payment.paid"
- },
- {
- "api_version": "2025-10-29.clover",
- "created": 1000000000,
- "data": {
- "object": {
- "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_1SPPBaRVfKEFJaqc4krPbz"
- },
- "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.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Invoice.finalize_invoice.1.json
index c6fe7c9dc57..c367e09bc20 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": 1000000000
+ "webhooks_delivered_at": null
}
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 049a74cbcef..bf62aefc166 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
@@ -93,9 +93,9 @@
"taxes": []
},
{
- "amount": 8050,
+ "amount": 1635,
"currency": "usd",
- "description": "Zulip Basic - renewal",
+ "description": "Additional Zulip Basic license",
"discount_amounts": [],
"discountable": false,
"discounts": [],
@@ -117,8 +117,8 @@
"type": "invoice_item_details"
},
"period": {
- "end": 1330657445,
- "start": 1328151845
+ "end": 1328151845,
+ "start": 1325646245
},
"pretax_credit_amounts": [],
"pricing": {
@@ -127,15 +127,15 @@
"product": "prod_NORMALIZED"
},
"type": "price_details",
- "unit_amount_decimal": "350"
+ "unit_amount_decimal": "327"
},
- "quantity": 23,
+ "quantity": 5,
"taxes": []
},
{
- "amount": 1635,
+ "amount": 8050,
"currency": "usd",
- "description": "Additional license (Jan 4, 2012 - Feb 2, 2012)",
+ "description": "Zulip Basic - renewal",
"discount_amounts": [],
"discountable": false,
"discounts": [],
@@ -157,8 +157,8 @@
"type": "invoice_item_details"
},
"period": {
- "end": 1328151845,
- "start": 1325646245
+ "end": 1330657445,
+ "start": 1328151845
},
"pretax_credit_amounts": [],
"pricing": {
@@ -167,9 +167,9 @@
"product": "prod_NORMALIZED"
},
"type": "price_details",
- "unit_amount_decimal": "327"
+ "unit_amount_decimal": "350"
},
- "quantity": 5,
+ "quantity": 23,
"taxes": []
}
],
@@ -222,5 +222,5 @@
"total_excluding_tax": 7685,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
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 5d3bc64bd84..e278f77d612 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
@@ -95,9 +95,9 @@
"taxes": []
},
{
- "amount": 8050,
+ "amount": 1635,
"currency": "usd",
- "description": "Zulip Basic - renewal",
+ "description": "Additional Zulip Basic license",
"discount_amounts": [],
"discountable": false,
"discounts": [],
@@ -119,8 +119,8 @@
"type": "invoice_item_details"
},
"period": {
- "end": 1330657445,
- "start": 1328151845
+ "end": 1328151845,
+ "start": 1325646245
},
"pretax_credit_amounts": [],
"pricing": {
@@ -129,15 +129,15 @@
"product": "prod_NORMALIZED"
},
"type": "price_details",
- "unit_amount_decimal": "350"
+ "unit_amount_decimal": "327"
},
- "quantity": 23,
+ "quantity": 5,
"taxes": []
},
{
- "amount": 1635,
+ "amount": 8050,
"currency": "usd",
- "description": "Additional license (Jan 4, 2012 - Feb 2, 2012)",
+ "description": "Zulip Basic - renewal",
"discount_amounts": [],
"discountable": false,
"discounts": [],
@@ -159,8 +159,8 @@
"type": "invoice_item_details"
},
"period": {
- "end": 1328151845,
- "start": 1325646245
+ "end": 1330657445,
+ "start": 1328151845
},
"pretax_credit_amounts": [],
"pricing": {
@@ -169,9 +169,9 @@
"product": "prod_NORMALIZED"
},
"type": "price_details",
- "unit_amount_decimal": "327"
+ "unit_amount_decimal": "350"
},
- "quantity": 5,
+ "quantity": 23,
"taxes": []
}
],
@@ -224,7 +224,7 @@
"total_excluding_tax": 7685,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
},
{
"account_country": "US",
@@ -417,7 +417,7 @@
"total_excluding_tax": 4300,
"total_pretax_credit_amounts": [],
"total_taxes": [],
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Invoice.pay.1.json
index 2251ce50110..04605af843d 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": 1000000000
+ "webhooks_delivered_at": null
}
diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--InvoiceItem.create.3.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--InvoiceItem.create.3.json
index 01821560dc8..8a8454cfef4 100644
--- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--InvoiceItem.create.3.json
+++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--InvoiceItem.create.3.json
@@ -1,21 +1,21 @@
{
- "amount": 1635,
+ "amount": 8050,
"currency": "usd",
"customer": "cus_NORMALIZED",
"date": 1000000000,
- "description": "Additional license (Jan 4, 2012 - Feb 2, 2012)",
+ "description": "Zulip Basic - renewal",
"discountable": false,
"discounts": [],
"id": "invoice_plans_as_needed_server--InvoiceItem.create.3.json",
"invoice": "in_NORMALIZED",
"livemode": false,
"metadata": {},
- "net_amount": 1635,
+ "net_amount": 8050,
"object": "invoiceitem",
"parent": null,
"period": {
- "end": 1328151845,
- "start": 1325646245
+ "end": 1330657445,
+ "start": 1328151845
},
"pricing": {
"price_details": {
@@ -23,10 +23,10 @@
"product": "prod_NORMALIZED"
},
"type": "price_details",
- "unit_amount_decimal": "327"
+ "unit_amount_decimal": "350"
},
"proration": false,
- "quantity": 5,
+ "quantity": 23,
"tax_rates": [],
"test_clock": null
}
diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--InvoiceItem.create.4.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--InvoiceItem.create.4.json
index 02664218f7d..7a6daa2c81f 100644
--- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--InvoiceItem.create.4.json
+++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--InvoiceItem.create.4.json
@@ -1,21 +1,21 @@
{
- "amount": 8050,
+ "amount": 1635,
"currency": "usd",
"customer": "cus_NORMALIZED",
"date": 1000000000,
- "description": "Zulip Basic - renewal",
+ "description": "Additional Zulip Basic license",
"discountable": false,
"discounts": [],
"id": "invoice_plans_as_needed_server--InvoiceItem.create.4.json",
"invoice": "in_NORMALIZED",
"livemode": false,
"metadata": {},
- "net_amount": 8050,
+ "net_amount": 1635,
"object": "invoiceitem",
"parent": null,
"period": {
- "end": 1330657445,
- "start": 1328151845
+ "end": 1328151845,
+ "start": 1325646245
},
"pricing": {
"price_details": {
@@ -23,10 +23,10 @@
"product": "prod_NORMALIZED"
},
"type": "price_details",
- "unit_amount_decimal": "350"
+ "unit_amount_decimal": "327"
},
"proration": false,
- "quantity": 23,
+ "quantity": 5,
"tax_rates": [],
"test_clock": null
}
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 13623a37933..28c2f3c1c70 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": "6",
+ "remote_server_user_id": "1",
"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 8be08439cf4..fac195a0655 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": "6",
+ "remote_server_user_id": "1",
"type": "card_update"
},
"mode": "setup",
diff --git a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Invoice.finalize_invoice.2.json b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Invoice.finalize_invoice.2.json
index 853f1e26800..64db60aa3a0 100644
--- a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Invoice.finalize_invoice.2.json
+++ b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Invoice.finalize_invoice.2.json
@@ -55,7 +55,7 @@
{
"amount": 36610,
"currency": "usd",
- "description": "Additional license (Feb 2, 2012 - Jan 2, 2013)",
+ "description": "Additional Zulip Cloud Standard license",
"discount_amounts": [],
"discountable": false,
"discounts": [],
@@ -95,7 +95,7 @@
{
"amount": 112000,
"currency": "usd",
- "description": "Additional license (Jan 2, 2012 - Jan 2, 2013)",
+ "description": "Additional Zulip Cloud Standard license",
"discount_amounts": [],
"discountable": false,
"discounts": [],
diff --git a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Invoice.list.2.json b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Invoice.list.2.json
index 461018fc74a..5c80d51fcab 100644
--- a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Invoice.list.2.json
+++ b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Invoice.list.2.json
@@ -57,7 +57,7 @@
{
"amount": 36610,
"currency": "usd",
- "description": "Additional license (Feb 2, 2012 - Jan 2, 2013)",
+ "description": "Additional Zulip Cloud Standard license",
"discount_amounts": [],
"discountable": false,
"discounts": [],
@@ -97,7 +97,7 @@
{
"amount": 112000,
"currency": "usd",
- "description": "Additional license (Jan 2, 2012 - Jan 2, 2013)",
+ "description": "Additional Zulip Cloud Standard license",
"discount_amounts": [],
"discountable": false,
"discounts": [],
diff --git a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Invoice.list.3.json b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Invoice.list.3.json
index 5881324f90b..f6429ca2a87 100644
--- a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Invoice.list.3.json
+++ b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Invoice.list.3.json
@@ -203,7 +203,7 @@
{
"amount": 36610,
"currency": "usd",
- "description": "Additional license (Feb 2, 2012 - Jan 2, 2013)",
+ "description": "Additional Zulip Cloud Standard license",
"discount_amounts": [],
"discountable": false,
"discounts": [],
@@ -243,7 +243,7 @@
{
"amount": 112000,
"currency": "usd",
- "description": "Additional license (Jan 2, 2012 - Jan 2, 2013)",
+ "description": "Additional Zulip Cloud Standard license",
"discount_amounts": [],
"discountable": false,
"discounts": [],
diff --git a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--InvoiceItem.create.2.json b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--InvoiceItem.create.2.json
index dc3752b828f..f6a7d499ded 100644
--- a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--InvoiceItem.create.2.json
+++ b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--InvoiceItem.create.2.json
@@ -3,7 +3,7 @@
"currency": "usd",
"customer": "cus_NORMALIZED",
"date": 1000000000,
- "description": "Additional license (Jan 2, 2012 - Jan 2, 2013)",
+ "description": "Additional Zulip Cloud Standard license",
"discountable": false,
"discounts": [],
"id": "switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--InvoiceItem.create.2.json",
diff --git a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--InvoiceItem.create.3.json b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--InvoiceItem.create.3.json
index 6472e29d4f3..ad40986e792 100644
--- a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--InvoiceItem.create.3.json
+++ b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--InvoiceItem.create.3.json
@@ -3,7 +3,7 @@
"currency": "usd",
"customer": "cus_NORMALIZED",
"date": 1000000000,
- "description": "Additional license (Feb 2, 2012 - Jan 2, 2013)",
+ "description": "Additional Zulip Cloud Standard license",
"discountable": false,
"discounts": [],
"id": "switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--InvoiceItem.create.3.json",
diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.finalize_invoice.2.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.finalize_invoice.2.json
index 9bdf8d1eecf..838a63ff57f 100644
--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.finalize_invoice.2.json
+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.finalize_invoice.2.json
@@ -55,7 +55,7 @@
{
"amount": 11200,
"currency": "usd",
- "description": "Additional license (Jan 2, 2012 - Feb 2, 2012)",
+ "description": "Additional Zulip Cloud Standard license",
"discount_amounts": [],
"discountable": false,
"discounts": [],
diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.finalize_invoice.3.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.finalize_invoice.3.json
index e58b446d423..e1d0d935640 100644
--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.finalize_invoice.3.json
+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.finalize_invoice.3.json
@@ -55,7 +55,7 @@
{
"amount": 40000,
"currency": "usd",
- "description": "Additional license (Feb 2, 2012 - Feb 2, 2013)",
+ "description": "Additional Zulip Cloud Standard license",
"discount_amounts": [],
"discountable": false,
"discounts": [],
diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.finalize_invoice.4.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.finalize_invoice.4.json
index c51f76f4475..de70f61e20b 100644
--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.finalize_invoice.4.json
+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.finalize_invoice.4.json
@@ -55,7 +55,7 @@
{
"amount": 36830,
"currency": "usd",
- "description": "Additional license (Mar 2, 2012 - Feb 2, 2013)",
+ "description": "Additional Zulip Cloud Standard license",
"discount_amounts": [],
"discountable": false,
"discounts": [],
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 e6be74adb9c..ed5978a07fc 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
@@ -57,7 +57,7 @@
{
"amount": 40000,
"currency": "usd",
- "description": "Additional license (Feb 2, 2012 - Feb 2, 2013)",
+ "description": "Additional Zulip Cloud Standard license",
"discount_amounts": [],
"discountable": false,
"discounts": [],
@@ -243,7 +243,7 @@
{
"amount": 11200,
"currency": "usd",
- "description": "Additional license (Jan 2, 2012 - Feb 2, 2012)",
+ "description": "Additional Zulip Cloud Standard license",
"discount_amounts": [],
"discountable": false,
"discounts": [],
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 90aa71f95e1..f125b792fe8 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
@@ -57,7 +57,7 @@
{
"amount": 36830,
"currency": "usd",
- "description": "Additional license (Mar 2, 2012 - Feb 2, 2013)",
+ "description": "Additional Zulip Cloud Standard license",
"discount_amounts": [],
"discountable": false,
"discounts": [],
@@ -203,7 +203,7 @@
{
"amount": 40000,
"currency": "usd",
- "description": "Additional license (Feb 2, 2012 - Feb 2, 2013)",
+ "description": "Additional Zulip Cloud Standard license",
"discount_amounts": [],
"discountable": false,
"discounts": [],
@@ -389,7 +389,7 @@
{
"amount": 11200,
"currency": "usd",
- "description": "Additional license (Jan 2, 2012 - Feb 2, 2012)",
+ "description": "Additional Zulip Cloud Standard license",
"discount_amounts": [],
"discountable": false,
"discounts": [],
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 5f24ac6972e..980c1bf28dc 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
@@ -203,7 +203,7 @@
{
"amount": 36830,
"currency": "usd",
- "description": "Additional license (Mar 2, 2012 - Feb 2, 2013)",
+ "description": "Additional Zulip Cloud Standard license",
"discount_amounts": [],
"discountable": false,
"discounts": [],
@@ -349,7 +349,7 @@
{
"amount": 40000,
"currency": "usd",
- "description": "Additional license (Feb 2, 2012 - Feb 2, 2013)",
+ "description": "Additional Zulip Cloud Standard license",
"discount_amounts": [],
"discountable": false,
"discounts": [],
@@ -535,7 +535,7 @@
{
"amount": 11200,
"currency": "usd",
- "description": "Additional license (Jan 2, 2012 - Feb 2, 2012)",
+ "description": "Additional Zulip Cloud Standard license",
"discount_amounts": [],
"discountable": false,
"discounts": [],
diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--InvoiceItem.create.2.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--InvoiceItem.create.2.json
index cc534eac5e1..113b8b5c440 100644
--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--InvoiceItem.create.2.json
+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--InvoiceItem.create.2.json
@@ -3,7 +3,7 @@
"currency": "usd",
"customer": "cus_NORMALIZED",
"date": 1000000000,
- "description": "Additional license (Jan 2, 2012 - Feb 2, 2012)",
+ "description": "Additional Zulip Cloud Standard license",
"discountable": false,
"discounts": [],
"id": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--InvoiceItem.create.2.json",
diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--InvoiceItem.create.4.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--InvoiceItem.create.4.json
index 49162e021b2..1917ddc1274 100644
--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--InvoiceItem.create.4.json
+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--InvoiceItem.create.4.json
@@ -3,7 +3,7 @@
"currency": "usd",
"customer": "cus_NORMALIZED",
"date": 1000000000,
- "description": "Additional license (Feb 2, 2012 - Feb 2, 2013)",
+ "description": "Additional Zulip Cloud Standard license",
"discountable": false,
"discounts": [],
"id": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--InvoiceItem.create.4.json",
diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--InvoiceItem.create.5.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--InvoiceItem.create.5.json
index be49a8761ce..cf49be83cc7 100644
--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--InvoiceItem.create.5.json
+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--InvoiceItem.create.5.json
@@ -3,7 +3,7 @@
"currency": "usd",
"customer": "cus_NORMALIZED",
"date": 1000000000,
- "description": "Additional license (Mar 2, 2012 - Feb 2, 2013)",
+ "description": "Additional Zulip Cloud Standard license",
"discountable": false,
"discounts": [],
"id": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--InvoiceItem.create.5.json",
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 c81e442ee3b..40982ca4071 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
@@ -61,7 +61,7 @@
{
"amount": 16000,
"currency": "usd",
- "description": "Additional license (Mar 2, 2012 - Mar 2, 2013)",
+ "description": "Additional Zulip Cloud Standard license",
"discount_amounts": [],
"discountable": false,
"discounts": [],
diff --git a/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.finalize_invoice.2.json b/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.finalize_invoice.2.json
index 088a817deea..8b15abfa8b3 100644
--- a/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.finalize_invoice.2.json
+++ b/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.finalize_invoice.2.json
@@ -55,7 +55,7 @@
{
"amount": 400000,
"currency": "usd",
- "description": "Additional license (Jan 2, 2012 - Jan 2, 2013)",
+ "description": "Additional Zulip Cloud Standard license",
"discount_amounts": [],
"discountable": false,
"discounts": [],
diff --git a/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.list.1.json b/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.list.1.json
index c50cabcc0dd..4edd5b5c5c6 100644
--- a/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.list.1.json
+++ b/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.list.1.json
@@ -203,7 +203,7 @@
{
"amount": 400000,
"currency": "usd",
- "description": "Additional license (Jan 2, 2012 - Jan 2, 2013)",
+ "description": "Additional Zulip Cloud Standard license",
"discount_amounts": [],
"discountable": false,
"discounts": [],
diff --git a/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.list.2.json b/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.list.2.json
index bc631b55358..3f43984ae4e 100644
--- a/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.list.2.json
+++ b/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.list.2.json
@@ -349,7 +349,7 @@
{
"amount": 400000,
"currency": "usd",
- "description": "Additional license (Jan 2, 2012 - Jan 2, 2013)",
+ "description": "Additional Zulip Cloud Standard license",
"discount_amounts": [],
"discountable": false,
"discounts": [],
diff --git a/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--InvoiceItem.create.2.json b/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--InvoiceItem.create.2.json
index 3418aa34151..289f5d3f9db 100644
--- a/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--InvoiceItem.create.2.json
+++ b/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--InvoiceItem.create.2.json
@@ -3,7 +3,7 @@
"currency": "usd",
"customer": "cus_NORMALIZED",
"date": 1000000000,
- "description": "Additional license (Jan 2, 2012 - Jan 2, 2013)",
+ "description": "Additional Zulip Cloud Standard license",
"discountable": false,
"discounts": [],
"id": "update_licenses_of_manual_plan_from_billing_page--InvoiceItem.create.2.json",
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 000f4810145..76b34d79d5e 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
@@ -61,7 +61,7 @@
{
"amount": 136000,
"currency": "usd",
- "description": "Additional license (Jan 2, 2012 - Jan 2, 2013)",
+ "description": "Additional Zulip Cloud Standard license",
"discount_amounts": [],
"discountable": false,
"discounts": [],
@@ -311,7 +311,7 @@
{
"amount": 136000,
"currency": "usd",
- "description": "Additional license (Jan 2, 2012 - Jan 2, 2013)",
+ "description": "Additional Zulip Cloud Standard license",
"discount_amounts": [],
"discountable": false,
"discounts": [],
@@ -432,7 +432,7 @@
"currency": "usd",
"customer": "cus_NORMALIZED",
"date": 1000000000,
- "description": "Additional license (Jan 2, 2012 - Jan 2, 2013)",
+ "description": "Additional Zulip Cloud Standard license",
"discountable": false,
"discounts": [],
"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 2d6d2566723..bd39e882a20 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
@@ -61,7 +61,7 @@
{
"amount": 136000,
"currency": "usd",
- "description": "Additional license (Jan 2, 2012 - Jan 2, 2013)",
+ "description": "Additional Zulip Cloud Standard license",
"discount_amounts": [],
"discountable": false,
"discounts": [],
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 a11d094864b..47648971848 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
@@ -55,7 +55,7 @@
{
"amount": 136000,
"currency": "usd",
- "description": "Additional license (Jan 2, 2012 - Jan 2, 2013)",
+ "description": "Additional Zulip Cloud Standard license",
"discount_amounts": [],
"discountable": false,
"discounts": [],
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 6990ab321e9..5ac44c70290 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
@@ -57,7 +57,7 @@
{
"amount": 136000,
"currency": "usd",
- "description": "Additional license (Jan 2, 2012 - Jan 2, 2013)",
+ "description": "Additional Zulip Cloud Standard license",
"discount_amounts": [],
"discountable": false,
"discounts": [],
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--InvoiceItem.create.2.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--InvoiceItem.create.2.json
index 3a186159807..a0bad090aa4 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--InvoiceItem.create.2.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--InvoiceItem.create.2.json
@@ -3,7 +3,7 @@
"currency": "usd",
"customer": "cus_NORMALIZED",
"date": 1000000000,
- "description": "Additional license (Jan 2, 2012 - Jan 2, 2013)",
+ "description": "Additional Zulip Cloud Standard license",
"discountable": false,
"discounts": [],
"id": "upgrade_by_card_with_outdated_seat_count--Event.list.4.json",
diff --git a/corporate/tests/test_stripe.py b/corporate/tests/test_stripe.py
index ddaeb462ace..dc1406487f0 100644
--- a/corporate/tests/test_stripe.py
+++ b/corporate/tests/test_stripe.py
@@ -1634,7 +1634,7 @@ class StripeTest(StripeTestCase):
[invoice_item] = iter(invoice0.lines)
invoice_item_params = {
"amount": 5172,
- "description": "Additional license (Jan 2, 2013 - Mar 2, 2013)",
+ "description": "Additional Zulip Cloud Standard license",
"discountable": False,
"quantity": 4,
"period": {
@@ -3598,7 +3598,7 @@ class StripeTest(StripeTestCase):
[invoice_item0, invoice_item1] = iter(invoice0.lines)
annual_plan_invoice_item_params = {
"amount": 5 * 80 * 100,
- "description": "Additional license (Feb 2, 2012 - Feb 2, 2013)",
+ "description": "Additional Zulip Cloud Standard license",
"quantity": 5,
"discountable": False,
"period": {
@@ -3625,7 +3625,7 @@ class StripeTest(StripeTestCase):
[monthly_plan_invoice_item] = iter(invoice1.lines)
monthly_plan_invoice_item_params = {
"amount": 14 * 8 * 100,
- "description": "Additional license (Jan 2, 2012 - Feb 2, 2012)",
+ "description": "Additional Zulip Cloud Standard license",
"quantity": 14,
"discountable": False,
"period": {
@@ -3647,7 +3647,7 @@ class StripeTest(StripeTestCase):
[monthly_plan_invoice_item] = iter(invoice0.lines)
monthly_plan_invoice_item_params = {
"amount": 5 * 7366,
- "description": "Additional license (Mar 2, 2012 - Feb 2, 2013)",
+ "description": "Additional Zulip Cloud Standard license",
"quantity": 5,
"discountable": False,
"period": {
@@ -3870,7 +3870,7 @@ class StripeTest(StripeTestCase):
[invoice_item1, invoice_item2] = iter(invoice0.lines)
annual_plan_invoice_item_params = {
"amount": 7322 * 5,
- "description": "Additional license (Feb 2, 2012 - Jan 2, 2013)",
+ "description": "Additional Zulip Cloud Standard license",
"quantity": 5,
"discountable": False,
"period": {
@@ -3884,7 +3884,7 @@ class StripeTest(StripeTestCase):
annual_plan_invoice_item_params = {
"amount": 14 * 80 * 1 * 100,
- "description": "Additional license (Jan 2, 2012 - Jan 2, 2013)",
+ "description": "Additional Zulip Cloud Standard license",
"quantity": 14,
"discountable": False,
"period": {
@@ -4554,7 +4554,7 @@ class StripeTest(StripeTestCase):
line_item_params = {
"amount": 8000 * 50,
- "description": "Additional license (Jan 2, 2012 - Jan 2, 2013)",
+ "description": "Additional Zulip Cloud Standard license",
"discountable": False,
"period": {
"end": datetime_to_timestamp(self.next_year),
@@ -6291,7 +6291,7 @@ class InvoiceTest(StripeTestCase):
[item0, item1, item2] = iter(invoice0.lines)
line_item_params = {
"amount": int(8000 * (1 - ((400 - 366) / 365)) + 0.5),
- "description": "Additional license (Feb 5, 2013 - Jan 2, 2014)",
+ "description": "Additional Zulip Cloud Standard license",
"discountable": False,
"period": {
"start": datetime_to_timestamp(self.now + timedelta(days=400)),
@@ -6303,7 +6303,7 @@ class InvoiceTest(StripeTestCase):
self.assertEqual(item0.get(key), value)
line_item_params = {
"amount": 3 * int(8000 * (366 - 100) / 366 + 0.5),
- "description": "Additional license (Apr 11, 2012 - Jan 2, 2013)",
+ "description": "Additional Zulip Cloud Standard license",
"discountable": False,
"period": {
"start": datetime_to_timestamp(self.now + timedelta(days=100)),
@@ -6392,7 +6392,7 @@ class InvoiceTest(StripeTestCase):
# paid for in the billing period.
line_item_params = {
"amount": 50 * int(8000 * (366 - 25) / 366 + 0.5),
- "description": "Additional license (Jan 27, 2012 - Jan 2, 2013)",
+ "description": "Additional Zulip Cloud Standard license",
"discountable": False,
"period": {
"start": datetime_to_timestamp(self.now + timedelta(days=25, seconds=20)),
@@ -6404,7 +6404,7 @@ class InvoiceTest(StripeTestCase):
self.assertEqual(item0.get(key), value)
line_item_params = {
"amount": 100 * int(8000 * (366 - 20) / 366 + 0.5),
- "description": "Additional license (Jan 22, 2012 - Jan 2, 2013)",
+ "description": "Additional Zulip Cloud Standard license",
"discountable": False,
"period": {
"start": datetime_to_timestamp(self.now + timedelta(days=20)),
@@ -6416,7 +6416,7 @@ class InvoiceTest(StripeTestCase):
self.assertEqual(item1.get(key), value)
line_item_params = {
"amount": 100 * int(8000 * (366 - 15) / 366 + 0.5),
- "description": "Additional license (Jan 17, 2012 - Jan 2, 2013)",
+ "description": "Additional Zulip Cloud Standard license",
"discountable": False,
"period": {
"start": datetime_to_timestamp(self.now + timedelta(days=15)),
@@ -6428,7 +6428,7 @@ class InvoiceTest(StripeTestCase):
self.assertEqual(item2.get(key), value)
line_item_params = {
"amount": 50 * int(8000 * (366 - 10) / 366 + 0.5),
- "description": "Additional license (Jan 12, 2012 - Jan 2, 2013)",
+ "description": "Additional Zulip Cloud Standard license",
"discountable": False,
"period": {
"start": datetime_to_timestamp(self.now + timedelta(days=10)),
@@ -6655,7 +6655,7 @@ class InvoiceTest(StripeTestCase):
[item0] = iter(invoice0.lines)
line_item_params = {
"amount": int(8000 * (1 - ((366 - 356) / 366)) + 0.5),
- "description": "Additional license (Jan 12, 2012 - Jan 2, 2013)",
+ "description": "Additional Zulip Cloud Standard license",
"quantity": 1,
}
for key, value in line_item_params.items():
@@ -9122,10 +9122,10 @@ class TestRemoteRealmBillingFlow(StripeTestCase, RemoteRealmBillingTestCase):
},
}
for key, value in invoice_item_params.items():
- self.assertEqual(invoice_item1[key], value)
+ self.assertEqual(invoice_item2[key], value)
invoice_item_params = {
- "description": "Additional license (Jan 4, 2012 - Feb 2, 2012)",
+ "description": "Additional Zulip Basic license",
"quantity": 5,
"period": {
"start": datetime_to_timestamp(self.now + timedelta(days=2)),
@@ -9133,7 +9133,7 @@ class TestRemoteRealmBillingFlow(StripeTestCase, RemoteRealmBillingTestCase):
},
}
for key, value in invoice_item_params.items():
- self.assertEqual(invoice_item2[key], value)
+ self.assertEqual(invoice_item1[key], value)
# Verify Zulip team receives mail for the next cycle.
invoice_plans_as_needed(add_months(self.next_month, 1))
@@ -10709,10 +10709,10 @@ class TestRemoteServerBillingFlow(StripeTestCase, RemoteServerTestCase):
},
}
for key, value in invoice_item_params.items():
- self.assertEqual(invoice_item1[key], value)
+ self.assertEqual(invoice_item2[key], value)
invoice_item_params = {
- "description": "Additional license (Jan 4, 2012 - Feb 2, 2012)",
+ "description": "Additional Zulip Basic license",
"quantity": 5,
"period": {
"start": datetime_to_timestamp(self.now + timedelta(days=2)),
@@ -10720,7 +10720,7 @@ class TestRemoteServerBillingFlow(StripeTestCase, RemoteServerTestCase):
},
}
for key, value in invoice_item_params.items():
- self.assertEqual(invoice_item2[key], value)
+ self.assertEqual(invoice_item1[key], value)
# Verify Zulip team receives mail for the next cycle.
invoice_plans_as_needed(add_months(self.next_month, 1))