Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
test_stripe: Normalize stripe fixtures.
Aman Agrawal9a1ad1047ada
diff --git a/corporate/tests/stripe_fixtures/add_minimum_licenses--Charge.list.1.json b/corporate/tests/stripe_fixtures/add_minimum_licenses--Charge.list.1.jsonindex ba86961324e..3df7b93d5d6 100644--- a/corporate/tests/stripe_fixtures/add_minimum_licenses--Charge.list.1.json+++ b/corporate/tests/stripe_fixtures/add_minimum_licenses--Charge.list.1.json@@ -14,7 +14,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -63,8 +63,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -92,6 +92,7 @@},"type": "card"},+ "radar_options": {},"receipt_email": "[email protected]","receipt_number": null,"receipt_url": "https://pay.stripe.com/receipts/invoices/NORMALIZED?s=ap",diff --git a/corporate/tests/stripe_fixtures/add_minimum_licenses--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/add_minimum_licenses--Customer.retrieve.1.jsonindex 691d8d33c99..cdb22e93a16 100644--- a/corporate/tests/stripe_fixtures/add_minimum_licenses--Customer.retrieve.1.json+++ b/corporate/tests/stripe_fixtures/add_minimum_licenses--Customer.retrieve.1.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/add_minimum_licenses--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/add_minimum_licenses--Customer.retrieve.2.jsonindex 691d8d33c99..cdb22e93a16 100644--- a/corporate/tests/stripe_fixtures/add_minimum_licenses--Customer.retrieve.2.json+++ b/corporate/tests/stripe_fixtures/add_minimum_licenses--Customer.retrieve.2.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/add_minimum_licenses--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/add_minimum_licenses--Customer.retrieve.3.jsonindex 691d8d33c99..cdb22e93a16 100644--- a/corporate/tests/stripe_fixtures/add_minimum_licenses--Customer.retrieve.3.json+++ b/corporate/tests/stripe_fixtures/add_minimum_licenses--Customer.retrieve.3.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/add_minimum_licenses--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/add_minimum_licenses--Customer.retrieve.4.jsonindex 691d8d33c99..cdb22e93a16 100644--- a/corporate/tests/stripe_fixtures/add_minimum_licenses--Customer.retrieve.4.json+++ b/corporate/tests/stripe_fixtures/add_minimum_licenses--Customer.retrieve.4.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/add_minimum_licenses--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/add_minimum_licenses--Customer.retrieve.5.jsonnew file mode 100644index 00000000000..cdb22e93a16--- /dev/null+++ b/corporate/tests/stripe_fixtures/add_minimum_licenses--Customer.retrieve.5.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": null,+ "default_currency": null,+ "default_source": null,+ "delinquent": false,+ "description": "zulip (Zulip Dev)",+ "discount": null,+ "email": "[email protected]",+ "id": "add_minimum_licenses--Customer.create.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "add_minimum_licenses--Customer.create.1.json",+ "id": "add_minimum_licenses--Customer.retrieve.1.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "realm_id": "1",+ "realm_str": "zulip"+ },+ "name": null,+ "next_invoice_sequence": 1,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/add_minimum_licenses--Event.list.2.json b/corporate/tests/stripe_fixtures/add_minimum_licenses--Event.list.2.jsonindex de54b72c3d4..53ee2f0da35 100644--- a/corporate/tests/stripe_fixtures/add_minimum_licenses--Event.list.2.json+++ b/corporate/tests/stripe_fixtures/add_minimum_licenses--Event.list.2.json@@ -33,7 +33,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -82,8 +82,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -111,6 +111,7 @@},"type": "card"},+ "radar_options": {},"receipt_email": "[email protected]","receipt_number": null,"receipt_url": "https://pay.stripe.com/receipts/invoices/NORMALIZED?s=ap",@@ -184,7 +185,7 @@"id": "add_minimum_licenses--Event.list.2.json","livemode": false,"object": "event",- "pending_webhooks": 0,+ "pending_webhooks": 1,"request": {"id": "add_minimum_licenses--Event.list.2.json","idempotency_key": "00000000-0000-0000-0000-000000000000"@@ -209,7 +210,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -258,8 +259,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -287,6 +288,7 @@},"type": "card"},+ "radar_options": {},"receipt_email": "[email protected]","receipt_number": null,"receipt_url": "https://pay.stripe.com/receipts/invoices/NORMALIZED?s=ap",@@ -392,7 +394,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -466,7 +468,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -493,7 +497,7 @@"total_excluding_tax": 100000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null}},"id": "add_minimum_licenses--Event.list.2.json",@@ -579,7 +583,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -653,7 +657,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -680,7 +686,7 @@"total_excluding_tax": 100000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null},"previous_attributes": {"effective_at": null,@@ -860,7 +866,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -934,7 +940,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -992,7 +1000,7 @@"metadata": {},"object": "invoiceitem","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,diff --git a/corporate/tests/stripe_fixtures/add_minimum_licenses--Event.list.3.json b/corporate/tests/stripe_fixtures/add_minimum_licenses--Event.list.3.jsonindex a6fe4ea5cf2..dead5a7cda4 100644--- a/corporate/tests/stripe_fixtures/add_minimum_licenses--Event.list.3.json+++ b/corporate/tests/stripe_fixtures/add_minimum_licenses--Event.list.3.json@@ -147,7 +147,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -174,7 +176,7 @@"total_excluding_tax": 100000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null}},"id": "add_minimum_licenses--Event.list.3.json",@@ -182,7 +184,7 @@"object": "event","pending_webhooks": 2,"request": {- "id": "add_minimum_licenses--Event.list.2.json",+ "id": "add_minimum_licenses--Event.list.3.json","idempotency_key": "00000000-0000-0000-0000-000000000000"},"type": "invoice.payment_succeeded"@@ -334,7 +336,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -361,7 +365,7 @@"total_excluding_tax": 100000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null}},"id": "add_minimum_licenses--Event.list.3.json",@@ -369,7 +373,7 @@"object": "event","pending_webhooks": 0,"request": {- "id": "add_minimum_licenses--Event.list.2.json",+ "id": "add_minimum_licenses--Event.list.3.json","idempotency_key": "00000000-0000-0000-0000-000000000000"},"type": "invoice.paid"@@ -521,7 +525,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -548,7 +554,7 @@"total_excluding_tax": 100000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null},"previous_attributes": {"amount_paid": 0,@@ -568,7 +574,7 @@"object": "event","pending_webhooks": 0,"request": {- "id": "add_minimum_licenses--Event.list.2.json",+ "id": "add_minimum_licenses--Event.list.3.json","idempotency_key": "00000000-0000-0000-0000-000000000000"},"type": "invoice.updated"diff --git a/corporate/tests/stripe_fixtures/add_minimum_licenses--Invoice.create.1.json b/corporate/tests/stripe_fixtures/add_minimum_licenses--Invoice.create.1.jsonindex 84640c05672..9b9f30d738c 100644--- a/corporate/tests/stripe_fixtures/add_minimum_licenses--Invoice.create.1.json+++ b/corporate/tests/stripe_fixtures/add_minimum_licenses--Invoice.create.1.json@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/add_minimum_licenses--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/add_minimum_licenses--Invoice.finalize_invoice.1.jsonindex 56706c17863..0eec3bb13ec 100644--- a/corporate/tests/stripe_fixtures/add_minimum_licenses--Invoice.finalize_invoice.1.json+++ b/corporate/tests/stripe_fixtures/add_minimum_licenses--Invoice.finalize_invoice.1.json@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -168,5 +170,5 @@"total_excluding_tax": 100000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null}diff --git a/corporate/tests/stripe_fixtures/add_minimum_licenses--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/add_minimum_licenses--Invoice.pay.1.jsonindex ed354e43024..26a506bfda6 100644--- a/corporate/tests/stripe_fixtures/add_minimum_licenses--Invoice.pay.1.json+++ b/corporate/tests/stripe_fixtures/add_minimum_licenses--Invoice.pay.1.json@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -168,5 +170,5 @@"total_excluding_tax": 100000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null}diff --git a/corporate/tests/stripe_fixtures/add_minimum_licenses--PaymentMethod.create.1.json b/corporate/tests/stripe_fixtures/add_minimum_licenses--PaymentMethod.create.1.jsonindex ceb83f67b99..b93dca6506c 100644--- a/corporate/tests/stripe_fixtures/add_minimum_licenses--PaymentMethod.create.1.json+++ b/corporate/tests/stripe_fixtures/add_minimum_licenses--PaymentMethod.create.1.json@@ -6,7 +6,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -22,8 +22,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Charge.list.1.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Charge.list.1.jsonindex 9183d5c0142..e0d2904e06a 100644--- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Charge.list.1.json+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Charge.list.1.json@@ -14,7 +14,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -63,8 +63,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Charge.list.2.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Charge.list.2.jsonindex 3638ea20000..2b5b7eca5fd 100644--- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Charge.list.2.json+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Charge.list.2.json@@ -14,7 +14,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -63,8 +63,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -92,6 +92,7 @@},"type": "card"},+ "radar_options": {},"receipt_email": "[email protected]","receipt_number": null,"receipt_url": "https://pay.stripe.com/receipts/invoices/NORMALIZED?s=ap",@@ -127,7 +128,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -176,8 +177,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Customer.retrieve.1.jsonindex 23f6003b5f2..f3ce9454471 100644--- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Customer.retrieve.1.json+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Customer.retrieve.1.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Customer.retrieve.10.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Customer.retrieve.10.jsonnew file mode 100644index 00000000000..00e6245f8ae--- /dev/null+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Customer.retrieve.10.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": "usd",+ "default_currency": "usd",+ "default_source": null,+ "delinquent": false,+ "description": "zulip (Zulip Dev)",+ "discount": null,+ "email": "[email protected]",+ "id": "attach_discount_to_realm--Customer.create.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "attach_discount_to_realm--Customer.create.1.json",+ "id": "attach_discount_to_realm--Customer.retrieve.10.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "realm_id": "1",+ "realm_str": "zulip"+ },+ "name": null,+ "next_invoice_sequence": 2,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Customer.retrieve.2.jsonindex 23f6003b5f2..f3ce9454471 100644--- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Customer.retrieve.2.json+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Customer.retrieve.2.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Customer.retrieve.3.jsonindex 23f6003b5f2..f3ce9454471 100644--- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Customer.retrieve.3.json+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Customer.retrieve.3.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Customer.retrieve.4.jsonindex 23f6003b5f2..f3ce9454471 100644--- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Customer.retrieve.4.json+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Customer.retrieve.4.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Customer.retrieve.5.jsonindex 0769373d054..f3ce9454471 100644--- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Customer.retrieve.5.json+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Customer.retrieve.5.json@@ -2,8 +2,8 @@"address": null,"balance": 0,"created": 1000000000,- "currency": "usd",- "default_currency": "usd",+ "currency": null,+ "default_currency": null,"default_source": null,"delinquent": false,"description": "zulip (Zulip Dev)",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -56,7 +56,7 @@},"created": 1000000000,"customer": "attach_discount_to_realm--Customer.create.1.json",- "id": "attach_discount_to_realm--Customer.retrieve.5.json",+ "id": "attach_discount_to_realm--Customer.retrieve.1.json","livemode": false,"metadata": {},"object": "payment_method",@@ -71,7 +71,7 @@"realm_str": "zulip"},"name": null,- "next_invoice_sequence": 2,+ "next_invoice_sequence": 1,"object": "customer","phone": null,"preferred_locales": [],diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Customer.retrieve.6.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Customer.retrieve.6.jsonindex 0769373d054..00e6245f8ae 100644--- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Customer.retrieve.6.json+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Customer.retrieve.6.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -56,7 +56,7 @@},"created": 1000000000,"customer": "attach_discount_to_realm--Customer.create.1.json",- "id": "attach_discount_to_realm--Customer.retrieve.5.json",+ "id": "attach_discount_to_realm--Customer.retrieve.10.json","livemode": false,"metadata": {},"object": "payment_method",diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Customer.retrieve.7.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Customer.retrieve.7.jsonindex 0769373d054..00e6245f8ae 100644--- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Customer.retrieve.7.json+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Customer.retrieve.7.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -56,7 +56,7 @@},"created": 1000000000,"customer": "attach_discount_to_realm--Customer.create.1.json",- "id": "attach_discount_to_realm--Customer.retrieve.5.json",+ "id": "attach_discount_to_realm--Customer.retrieve.10.json","livemode": false,"metadata": {},"object": "payment_method",diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Customer.retrieve.8.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Customer.retrieve.8.jsonindex 0769373d054..00e6245f8ae 100644--- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Customer.retrieve.8.json+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Customer.retrieve.8.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -56,7 +56,7 @@},"created": 1000000000,"customer": "attach_discount_to_realm--Customer.create.1.json",- "id": "attach_discount_to_realm--Customer.retrieve.5.json",+ "id": "attach_discount_to_realm--Customer.retrieve.10.json","livemode": false,"metadata": {},"object": "payment_method",diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Customer.retrieve.9.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Customer.retrieve.9.jsonnew file mode 100644index 00000000000..00e6245f8ae--- /dev/null+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Customer.retrieve.9.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": "usd",+ "default_currency": "usd",+ "default_source": null,+ "delinquent": false,+ "description": "zulip (Zulip Dev)",+ "discount": null,+ "email": "[email protected]",+ "id": "attach_discount_to_realm--Customer.create.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "attach_discount_to_realm--Customer.create.1.json",+ "id": "attach_discount_to_realm--Customer.retrieve.10.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "realm_id": "1",+ "realm_str": "zulip"+ },+ "name": null,+ "next_invoice_sequence": 2,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.2.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.2.jsonindex ee9ac9397c8..762a5a2cc9b 100644--- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.2.json+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.2.json@@ -33,7 +33,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -82,8 +82,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -209,7 +209,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -258,8 +258,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -392,7 +392,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -466,7 +466,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -579,7 +581,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -653,7 +655,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -860,7 +864,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -934,7 +938,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -992,7 +998,7 @@"metadata": {},"object": "invoiceitem","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.3.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.3.jsonindex 940d53397b8..682f17cfbd4 100644--- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.3.json+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.3.json@@ -147,7 +147,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -174,13 +176,13 @@"total_excluding_tax": 7200,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null}},"id": "attach_discount_to_realm--Event.list.3.json","livemode": false,"object": "event",- "pending_webhooks": 0,+ "pending_webhooks": 2,"request": {"id": "attach_discount_to_realm--Event.list.2.json","idempotency_key": "00000000-0000-0000-0000-000000000000"@@ -334,7 +336,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -361,13 +365,13 @@"total_excluding_tax": 7200,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null}},"id": "attach_discount_to_realm--Event.list.3.json","livemode": false,"object": "event",- "pending_webhooks": 0,+ "pending_webhooks": 1,"request": {"id": "attach_discount_to_realm--Event.list.2.json","idempotency_key": "00000000-0000-0000-0000-000000000000"@@ -521,7 +525,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -548,7 +554,7 @@"total_excluding_tax": 7200,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null},"previous_attributes": {"amount_paid": 0,@@ -566,7 +572,7 @@"id": "attach_discount_to_realm--Event.list.3.json","livemode": false,"object": "event",- "pending_webhooks": 0,+ "pending_webhooks": 1,"request": {"id": "attach_discount_to_realm--Event.list.2.json","idempotency_key": "00000000-0000-0000-0000-000000000000"diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.6.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.6.jsonindex 045e901668f..8a48bd19a5e 100644--- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.6.json+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.6.json@@ -33,7 +33,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -82,8 +82,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -111,6 +111,7 @@},"type": "card"},+ "radar_options": {},"receipt_email": "[email protected]","receipt_number": null,"receipt_url": "https://pay.stripe.com/receipts/invoices/NORMALIZED?s=ap",@@ -184,7 +185,7 @@"id": "attach_discount_to_realm--Event.list.6.json","livemode": false,"object": "event",- "pending_webhooks": 1,+ "pending_webhooks": 0,"request": {"id": "attach_discount_to_realm--Event.list.6.json","idempotency_key": "00000000-0000-0000-0000-000000000000"@@ -209,7 +210,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -258,8 +259,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -287,6 +288,7 @@},"type": "card"},+ "radar_options": {},"receipt_email": "[email protected]","receipt_number": null,"receipt_url": "https://pay.stripe.com/receipts/invoices/NORMALIZED?s=ap",@@ -392,7 +394,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -466,7 +468,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -493,7 +497,7 @@"total_excluding_tax": 36000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null}},"id": "attach_discount_to_realm--Event.list.6.json",@@ -579,7 +583,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -653,7 +657,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -680,7 +686,7 @@"total_excluding_tax": 36000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null},"previous_attributes": {"effective_at": null,@@ -860,7 +866,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -934,7 +940,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -992,7 +1000,7 @@"metadata": {},"object": "invoiceitem","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.7.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.7.jsonindex 3e3b8894572..84b5ffcd9b6 100644--- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.7.json+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.7.json@@ -66,7 +66,7 @@"discount_amounts": [],"discountable": false,"discounts": [],- "id": "attach_discount_to_realm--Event.list.6.json",+ "id": "attach_discount_to_realm--Event.list.7.json","invoice": "attach_discount_to_realm--Event.list.6.json","invoice_item": "ii_NORMALIZED","livemode": false,@@ -147,7 +147,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -253,7 +255,7 @@"discount_amounts": [],"discountable": false,"discounts": [],- "id": "attach_discount_to_realm--Event.list.6.json",+ "id": "attach_discount_to_realm--Event.list.7.json","invoice": "attach_discount_to_realm--Event.list.6.json","invoice_item": "ii_NORMALIZED","livemode": false,@@ -334,7 +336,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -440,7 +444,7 @@"discount_amounts": [],"discountable": false,"discounts": [],- "id": "attach_discount_to_realm--Event.list.6.json",+ "id": "attach_discount_to_realm--Event.list.7.json","invoice": "attach_discount_to_realm--Event.list.6.json","invoice_item": "ii_NORMALIZED","livemode": false,@@ -521,7 +525,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Invoice.create.1.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Invoice.create.1.jsonindex d6439d31315..176cc29db08 100644--- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Invoice.create.1.json+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Invoice.create.1.json@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Invoice.create.2.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Invoice.create.2.jsonindex 326b4511985..adc98ed3860 100644--- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Invoice.create.2.json+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Invoice.create.2.json@@ -60,7 +60,7 @@"discount_amounts": [],"discountable": false,"discounts": [],- "id": "attach_discount_to_realm--Event.list.6.json",+ "id": "attach_discount_to_realm--Event.list.7.json","invoice": "attach_discount_to_realm--Event.list.6.json","invoice_item": "ii_NORMALIZED","livemode": false,@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Invoice.create.3.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Invoice.create.3.jsonindex 49b975a0bf9..34f4023a73b 100644--- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Invoice.create.3.json+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Invoice.create.3.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Invoice.finalize_invoice.1.jsonindex b902e91fcc7..685718633f8 100644--- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Invoice.finalize_invoice.1.json+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Invoice.finalize_invoice.1.json@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Invoice.finalize_invoice.2.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Invoice.finalize_invoice.2.jsonindex 2daf2d40f35..ef495b41651 100644--- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Invoice.finalize_invoice.2.json+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Invoice.finalize_invoice.2.json@@ -60,7 +60,7 @@"discount_amounts": [],"discountable": false,"discounts": [],- "id": "attach_discount_to_realm--Event.list.6.json",+ "id": "attach_discount_to_realm--Event.list.7.json","invoice": "attach_discount_to_realm--Event.list.6.json","invoice_item": "ii_NORMALIZED","livemode": false,@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -168,5 +170,5 @@"total_excluding_tax": 36000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null}diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Invoice.finalize_invoice.3.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Invoice.finalize_invoice.3.jsonindex 8044449cb60..7b7c292b650 100644--- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Invoice.finalize_invoice.3.json+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Invoice.finalize_invoice.3.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -160,5 +162,5 @@"total_excluding_tax": 24000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null}diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Invoice.list.2.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Invoice.list.2.jsonindex 3a40770e16c..83fc3011b00 100644--- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Invoice.list.2.json+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Invoice.list.2.json@@ -143,7 +143,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Invoice.list.4.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Invoice.list.4.jsonindex 3bd9b7964d1..aa005e5a336 100644--- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Invoice.list.4.json+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Invoice.list.4.json@@ -62,7 +62,7 @@"discount_amounts": [],"discountable": false,"discounts": [],- "id": "attach_discount_to_realm--Event.list.6.json",+ "id": "attach_discount_to_realm--Event.list.7.json","invoice": "attach_discount_to_realm--Event.list.6.json","invoice_item": "ii_NORMALIZED","livemode": false,@@ -143,7 +143,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -315,7 +317,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Invoice.list.5.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Invoice.list.5.jsonindex da725aae917..8f1bb05d87d 100644--- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Invoice.list.5.json+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Invoice.list.5.json@@ -135,7 +135,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -162,7 +164,7 @@"total_excluding_tax": 24000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null},{"account_country": "US",@@ -226,7 +228,7 @@"discount_amounts": [],"discountable": false,"discounts": [],- "id": "attach_discount_to_realm--Event.list.6.json",+ "id": "attach_discount_to_realm--Event.list.7.json","invoice": "attach_discount_to_realm--Event.list.6.json","invoice_item": "ii_NORMALIZED","livemode": false,@@ -307,7 +309,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -479,7 +483,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Invoice.pay.1.jsonindex deba4383cee..68bb926d0f8 100644--- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Invoice.pay.1.json+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Invoice.pay.1.json@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -168,5 +170,5 @@"total_excluding_tax": 7200,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null}diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Invoice.pay.2.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Invoice.pay.2.jsonindex 33be491c411..15e74135b53 100644--- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Invoice.pay.2.json+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Invoice.pay.2.json@@ -60,7 +60,7 @@"discount_amounts": [],"discountable": false,"discounts": [],- "id": "attach_discount_to_realm--Event.list.6.json",+ "id": "attach_discount_to_realm--Event.list.7.json","invoice": "attach_discount_to_realm--Event.list.6.json","invoice_item": "ii_NORMALIZED","livemode": false,@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--PaymentMethod.create.1.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--PaymentMethod.create.1.jsonindex 27d31c00742..6e2a6982b89 100644--- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--PaymentMethod.create.1.json+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--PaymentMethod.create.1.json@@ -6,7 +6,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -22,8 +22,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--PaymentMethod.create.2.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--PaymentMethod.create.2.jsonindex 61004b124a2..9f6b9b2abba 100644--- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--PaymentMethod.create.2.json+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--PaymentMethod.create.2.json@@ -6,7 +6,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -22,8 +22,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -41,7 +41,7 @@},"created": 1000000000,"customer": null,- "id": "attach_discount_to_realm--Customer.retrieve.5.json",+ "id": "attach_discount_to_realm--Customer.retrieve.10.json","livemode": false,"metadata": {},"object": "payment_method",diff --git a/corporate/tests/stripe_fixtures/billing_page_permissions--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/billing_page_permissions--Customer.retrieve.1.jsonindex a42553ecfd3..98097e86edd 100644--- a/corporate/tests/stripe_fixtures/billing_page_permissions--Customer.retrieve.1.json+++ b/corporate/tests/stripe_fixtures/billing_page_permissions--Customer.retrieve.1.json@@ -9,7 +9,7 @@"description": "zulip (Zulip Dev)","discount": null,"email": "[email protected]",- "id": "billing_page_permissions--Customer.create.1.json",+ "id": "billing_page_permissions--Customer.retrieve.1.json","invoice_prefix": "NORMALIZED","invoice_settings": {"custom_fields": null,@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -55,7 +55,7 @@"wallet": null},"created": 1000000000,- "customer": "billing_page_permissions--Customer.create.1.json",+ "customer": "billing_page_permissions--Customer.retrieve.1.json","id": "billing_page_permissions--Customer.retrieve.1.json","livemode": false,"metadata": {},diff --git a/corporate/tests/stripe_fixtures/billing_page_permissions--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/billing_page_permissions--Customer.retrieve.2.jsonindex a42553ecfd3..98097e86edd 100644--- a/corporate/tests/stripe_fixtures/billing_page_permissions--Customer.retrieve.2.json+++ b/corporate/tests/stripe_fixtures/billing_page_permissions--Customer.retrieve.2.json@@ -9,7 +9,7 @@"description": "zulip (Zulip Dev)","discount": null,"email": "[email protected]",- "id": "billing_page_permissions--Customer.create.1.json",+ "id": "billing_page_permissions--Customer.retrieve.1.json","invoice_prefix": "NORMALIZED","invoice_settings": {"custom_fields": null,@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -55,7 +55,7 @@"wallet": null},"created": 1000000000,- "customer": "billing_page_permissions--Customer.create.1.json",+ "customer": "billing_page_permissions--Customer.retrieve.1.json","id": "billing_page_permissions--Customer.retrieve.1.json","livemode": false,"metadata": {},diff --git a/corporate/tests/stripe_fixtures/billing_page_permissions--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/billing_page_permissions--Customer.retrieve.3.jsonindex a42553ecfd3..98097e86edd 100644--- a/corporate/tests/stripe_fixtures/billing_page_permissions--Customer.retrieve.3.json+++ b/corporate/tests/stripe_fixtures/billing_page_permissions--Customer.retrieve.3.json@@ -9,7 +9,7 @@"description": "zulip (Zulip Dev)","discount": null,"email": "[email protected]",- "id": "billing_page_permissions--Customer.create.1.json",+ "id": "billing_page_permissions--Customer.retrieve.1.json","invoice_prefix": "NORMALIZED","invoice_settings": {"custom_fields": null,@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -55,7 +55,7 @@"wallet": null},"created": 1000000000,- "customer": "billing_page_permissions--Customer.create.1.json",+ "customer": "billing_page_permissions--Customer.retrieve.1.json","id": "billing_page_permissions--Customer.retrieve.1.json","livemode": false,"metadata": {},diff --git a/corporate/tests/stripe_fixtures/billing_page_permissions--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/billing_page_permissions--Customer.retrieve.4.jsonindex a42553ecfd3..98097e86edd 100644--- a/corporate/tests/stripe_fixtures/billing_page_permissions--Customer.retrieve.4.json+++ b/corporate/tests/stripe_fixtures/billing_page_permissions--Customer.retrieve.4.json@@ -9,7 +9,7 @@"description": "zulip (Zulip Dev)","discount": null,"email": "[email protected]",- "id": "billing_page_permissions--Customer.create.1.json",+ "id": "billing_page_permissions--Customer.retrieve.1.json","invoice_prefix": "NORMALIZED","invoice_settings": {"custom_fields": null,@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -55,7 +55,7 @@"wallet": null},"created": 1000000000,- "customer": "billing_page_permissions--Customer.create.1.json",+ "customer": "billing_page_permissions--Customer.retrieve.1.json","id": "billing_page_permissions--Customer.retrieve.1.json","livemode": false,"metadata": {},diff --git a/corporate/tests/stripe_fixtures/billing_page_permissions--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/billing_page_permissions--Customer.retrieve.5.jsonindex fd9ee8a1d2a..98097e86edd 100644--- a/corporate/tests/stripe_fixtures/billing_page_permissions--Customer.retrieve.5.json+++ b/corporate/tests/stripe_fixtures/billing_page_permissions--Customer.retrieve.5.json@@ -2,14 +2,14 @@"address": null,"balance": 0,"created": 1000000000,- "currency": "usd",- "default_currency": "usd",+ "currency": null,+ "default_currency": null,"default_source": null,"delinquent": false,"description": "zulip (Zulip Dev)","discount": null,"email": "[email protected]",- "id": "billing_page_permissions--Customer.create.1.json",+ "id": "billing_page_permissions--Customer.retrieve.1.json","invoice_prefix": "NORMALIZED","invoice_settings": {"custom_fields": null,@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -55,7 +55,7 @@"wallet": null},"created": 1000000000,- "customer": "billing_page_permissions--Customer.create.1.json",+ "customer": "billing_page_permissions--Customer.retrieve.1.json","id": "billing_page_permissions--Customer.retrieve.1.json","livemode": false,"metadata": {},@@ -71,7 +71,7 @@"realm_str": "zulip"},"name": null,- "next_invoice_sequence": 2,+ "next_invoice_sequence": 1,"object": "customer","phone": null,"preferred_locales": [],diff --git a/corporate/tests/stripe_fixtures/billing_page_permissions--Customer.retrieve.6.json b/corporate/tests/stripe_fixtures/billing_page_permissions--Customer.retrieve.6.jsonindex fd9ee8a1d2a..b2b8656f9d4 100644--- a/corporate/tests/stripe_fixtures/billing_page_permissions--Customer.retrieve.6.json+++ b/corporate/tests/stripe_fixtures/billing_page_permissions--Customer.retrieve.6.json@@ -9,7 +9,7 @@"description": "zulip (Zulip Dev)","discount": null,"email": "[email protected]",- "id": "billing_page_permissions--Customer.create.1.json",+ "id": "billing_page_permissions--Customer.retrieve.1.json","invoice_prefix": "NORMALIZED","invoice_settings": {"custom_fields": null,@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -55,7 +55,7 @@"wallet": null},"created": 1000000000,- "customer": "billing_page_permissions--Customer.create.1.json",+ "customer": "billing_page_permissions--Customer.retrieve.1.json","id": "billing_page_permissions--Customer.retrieve.1.json","livemode": false,"metadata": {},diff --git a/corporate/tests/stripe_fixtures/billing_page_permissions--Customer.retrieve.7.json b/corporate/tests/stripe_fixtures/billing_page_permissions--Customer.retrieve.7.jsonnew file mode 100644index 00000000000..b2b8656f9d4--- /dev/null+++ b/corporate/tests/stripe_fixtures/billing_page_permissions--Customer.retrieve.7.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": "usd",+ "default_currency": "usd",+ "default_source": null,+ "delinquent": false,+ "description": "zulip (Zulip Dev)",+ "discount": null,+ "email": "[email protected]",+ "id": "billing_page_permissions--Customer.retrieve.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "billing_page_permissions--Customer.retrieve.1.json",+ "id": "billing_page_permissions--Customer.retrieve.1.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "realm_id": "1",+ "realm_str": "zulip"+ },+ "name": null,+ "next_invoice_sequence": 2,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/billing_page_permissions--Event.list.2.json b/corporate/tests/stripe_fixtures/billing_page_permissions--Event.list.2.jsonindex 95987f92021..ef5f0bfdb98 100644--- a/corporate/tests/stripe_fixtures/billing_page_permissions--Event.list.2.json+++ b/corporate/tests/stripe_fixtures/billing_page_permissions--Event.list.2.json@@ -1,5 +1,395 @@{"data": [+ {+ "api_version": "2020-08-27",+ "created": 1000000000,+ "data": {+ "object": {+ "account_country": "US",+ "account_name": "Kandra Labs, Inc.",+ "account_tax_ids": null,+ "amount_due": 48000,+ "amount_paid": 48000,+ "amount_remaining": 0,+ "amount_shipping": 0,+ "application": null,+ "application_fee_amount": null,+ "attempt_count": 1,+ "attempted": true,+ "auto_advance": false,+ "automatic_tax": {+ "enabled": false,+ "liability": null,+ "status": null+ },+ "automatically_finalizes_at": null,+ "billing_reason": "manual",+ "charge": "billing_page_permissions--Event.list.2.json",+ "collection_method": "charge_automatically",+ "created": 1000000000,+ "currency": "usd",+ "custom_fields": null,+ "customer": "billing_page_permissions--Customer.retrieve.1.json",+ "customer_address": null,+ "customer_email": "[email protected]",+ "customer_name": null,+ "customer_phone": null,+ "customer_shipping": null,+ "customer_tax_exempt": "none",+ "customer_tax_ids": [],+ "default_payment_method": null,+ "default_source": null,+ "default_tax_rates": [],+ "description": null,+ "discount": null,+ "discounts": [],+ "due_date": null,+ "effective_at": 1000000000,+ "ending_balance": 0,+ "footer": null,+ "from_invoice": null,+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",+ "id": "billing_page_permissions--Event.list.2.json",+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",+ "issuer": {+ "type": "self"+ },+ "last_finalization_error": null,+ "latest_revision": null,+ "lines": {+ "data": [+ {+ "amount": 48000,+ "amount_excluding_tax": 48000,+ "currency": "usd",+ "description": "Zulip Cloud Standard",+ "discount_amounts": [],+ "discountable": false,+ "discounts": [],+ "id": "billing_page_permissions--Event.list.2.json",+ "invoice": "billing_page_permissions--Event.list.2.json",+ "invoice_item": "billing_page_permissions--Event.list.2.json",+ "livemode": false,+ "metadata": {},+ "object": "line_item",+ "period": {+ "end": 1357015845,+ "start": 1325473445+ },+ "plan": null,+ "price": {+ "active": false,+ "billing_scheme": "per_unit",+ "created": 1000000000,+ "currency": "usd",+ "custom_unit_amount": null,+ "id": "billing_page_permissions--Event.list.2.json",+ "livemode": false,+ "lookup_key": null,+ "metadata": {},+ "nickname": null,+ "object": "price",+ "product": "prod_NORMALIZED",+ "recurring": null,+ "tax_behavior": "unspecified",+ "tiers_mode": null,+ "transform_quantity": null,+ "type": "one_time",+ "unit_amount": 8000,+ "unit_amount_decimal": "8000"+ },+ "proration": false,+ "proration_details": {+ "credited_items": null+ },+ "quantity": 6,+ "subscription": null,+ "tax_amounts": [],+ "tax_rates": [],+ "type": "invoiceitem",+ "unit_amount_excluding_tax": "8000"+ }+ ],+ "has_more": false,+ "object": "list",+ "total_count": 1,+ "url": "/v1/invoices/billing_page_permissions--Event.list.2.json/lines"+ },+ "livemode": false,+ "metadata": {+ "billing_schedule": "1",+ "current_plan_id": "None",+ "license_management": "automatic",+ "licenses": "6",+ "on_free_trial": "False",+ "plan_tier": "1",+ "user_id": "12"+ },+ "next_payment_attempt": null,+ "number": "NORMALIZED-0001",+ "object": "invoice",+ "on_behalf_of": null,+ "paid": true,+ "paid_out_of_band": false,+ "payment_intent": "billing_page_permissions--Event.list.2.json",+ "payment_settings": {+ "default_mandate": null,+ "payment_method_options": null,+ "payment_method_types": null+ },+ "period_end": 1000000000,+ "period_start": 1000000000,+ "post_payment_credit_notes_amount": 0,+ "pre_payment_credit_notes_amount": 0,+ "quote": null,+ "receipt_number": null,+ "rendering": {+ "amount_tax_display": null,+ "pdf": {+ "page_size": "letter"+ },+ "template": null,+ "template_version": null+ },+ "rendering_options": null,+ "shipping_cost": null,+ "shipping_details": null,+ "starting_balance": 0,+ "statement_descriptor": "Zulip Cloud Standard",+ "status": "paid",+ "status_transitions": {+ "finalized_at": 1000000000,+ "marked_uncollectible_at": null,+ "paid_at": 1000000000,+ "voided_at": null+ },+ "subscription": null,+ "subscription_details": {+ "metadata": null+ },+ "subtotal": 48000,+ "subtotal_excluding_tax": 48000,+ "tax": null,+ "test_clock": null,+ "total": 48000,+ "total_discount_amounts": [],+ "total_excluding_tax": 48000,+ "total_tax_amounts": [],+ "transfer_data": null,+ "webhooks_delivered_at": 1000000000+ }+ },+ "id": "billing_page_permissions--Event.list.2.json",+ "livemode": false,+ "object": "event",+ "pending_webhooks": 2,+ "request": {+ "id": "billing_page_permissions--Event.list.2.json",+ "idempotency_key": "00000000-0000-0000-0000-000000000000"+ },+ "type": "invoice.paid"+ },+ {+ "api_version": "2020-08-27",+ "created": 1000000000,+ "data": {+ "object": {+ "account_country": "US",+ "account_name": "Kandra Labs, Inc.",+ "account_tax_ids": null,+ "amount_due": 48000,+ "amount_paid": 48000,+ "amount_remaining": 0,+ "amount_shipping": 0,+ "application": null,+ "application_fee_amount": null,+ "attempt_count": 1,+ "attempted": true,+ "auto_advance": false,+ "automatic_tax": {+ "enabled": false,+ "liability": null,+ "status": null+ },+ "automatically_finalizes_at": null,+ "billing_reason": "manual",+ "charge": "billing_page_permissions--Event.list.2.json",+ "collection_method": "charge_automatically",+ "created": 1000000000,+ "currency": "usd",+ "custom_fields": null,+ "customer": "billing_page_permissions--Customer.retrieve.1.json",+ "customer_address": null,+ "customer_email": "[email protected]",+ "customer_name": null,+ "customer_phone": null,+ "customer_shipping": null,+ "customer_tax_exempt": "none",+ "customer_tax_ids": [],+ "default_payment_method": null,+ "default_source": null,+ "default_tax_rates": [],+ "description": null,+ "discount": null,+ "discounts": [],+ "due_date": null,+ "effective_at": 1000000000,+ "ending_balance": 0,+ "footer": null,+ "from_invoice": null,+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",+ "id": "billing_page_permissions--Event.list.2.json",+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",+ "issuer": {+ "type": "self"+ },+ "last_finalization_error": null,+ "latest_revision": null,+ "lines": {+ "data": [+ {+ "amount": 48000,+ "amount_excluding_tax": 48000,+ "currency": "usd",+ "description": "Zulip Cloud Standard",+ "discount_amounts": [],+ "discountable": false,+ "discounts": [],+ "id": "billing_page_permissions--Event.list.2.json",+ "invoice": "billing_page_permissions--Event.list.2.json",+ "invoice_item": "billing_page_permissions--Event.list.2.json",+ "livemode": false,+ "metadata": {},+ "object": "line_item",+ "period": {+ "end": 1357015845,+ "start": 1325473445+ },+ "plan": null,+ "price": {+ "active": false,+ "billing_scheme": "per_unit",+ "created": 1000000000,+ "currency": "usd",+ "custom_unit_amount": null,+ "id": "billing_page_permissions--Event.list.2.json",+ "livemode": false,+ "lookup_key": null,+ "metadata": {},+ "nickname": null,+ "object": "price",+ "product": "prod_NORMALIZED",+ "recurring": null,+ "tax_behavior": "unspecified",+ "tiers_mode": null,+ "transform_quantity": null,+ "type": "one_time",+ "unit_amount": 8000,+ "unit_amount_decimal": "8000"+ },+ "proration": false,+ "proration_details": {+ "credited_items": null+ },+ "quantity": 6,+ "subscription": null,+ "tax_amounts": [],+ "tax_rates": [],+ "type": "invoiceitem",+ "unit_amount_excluding_tax": "8000"+ }+ ],+ "has_more": false,+ "object": "list",+ "total_count": 1,+ "url": "/v1/invoices/billing_page_permissions--Event.list.2.json/lines"+ },+ "livemode": false,+ "metadata": {+ "billing_schedule": "1",+ "current_plan_id": "None",+ "license_management": "automatic",+ "licenses": "6",+ "on_free_trial": "False",+ "plan_tier": "1",+ "user_id": "12"+ },+ "next_payment_attempt": null,+ "number": "NORMALIZED-0001",+ "object": "invoice",+ "on_behalf_of": null,+ "paid": true,+ "paid_out_of_band": false,+ "payment_intent": "billing_page_permissions--Event.list.2.json",+ "payment_settings": {+ "default_mandate": null,+ "payment_method_options": null,+ "payment_method_types": null+ },+ "period_end": 1000000000,+ "period_start": 1000000000,+ "post_payment_credit_notes_amount": 0,+ "pre_payment_credit_notes_amount": 0,+ "quote": null,+ "receipt_number": null,+ "rendering": {+ "amount_tax_display": null,+ "pdf": {+ "page_size": "letter"+ },+ "template": null,+ "template_version": null+ },+ "rendering_options": null,+ "shipping_cost": null,+ "shipping_details": null,+ "starting_balance": 0,+ "statement_descriptor": "Zulip Cloud Standard",+ "status": "paid",+ "status_transitions": {+ "finalized_at": 1000000000,+ "marked_uncollectible_at": null,+ "paid_at": 1000000000,+ "voided_at": null+ },+ "subscription": null,+ "subscription_details": {+ "metadata": null+ },+ "subtotal": 48000,+ "subtotal_excluding_tax": 48000,+ "tax": null,+ "test_clock": null,+ "total": 48000,+ "total_discount_amounts": [],+ "total_excluding_tax": 48000,+ "total_tax_amounts": [],+ "transfer_data": null,+ "webhooks_delivered_at": 1000000000+ },+ "previous_attributes": {+ "amount_paid": 0,+ "amount_remaining": 48000,+ "attempt_count": 0,+ "attempted": false,+ "charge": null,+ "paid": false,+ "status": "open",+ "status_transitions": {+ "paid_at": null+ }+ }+ },+ "id": "billing_page_permissions--Event.list.2.json",+ "livemode": false,+ "object": "event",+ "pending_webhooks": 0,+ "request": {+ "id": "billing_page_permissions--Event.list.2.json",+ "idempotency_key": "00000000-0000-0000-0000-000000000000"+ },+ "type": "invoice.updated"+ },{"api_version": "2020-08-27","created": 1000000000,@@ -33,7 +423,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -44,7 +434,7 @@"captured": true,"created": 1000000000,"currency": "usd",- "customer": "billing_page_permissions--Customer.create.1.json",+ "customer": "billing_page_permissions--Customer.retrieve.1.json","description": "Payment for Invoice","destination": null,"dispute": null,@@ -82,8 +472,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -111,6 +501,7 @@},"type": "card"},+ "radar_options": {},"receipt_email": "[email protected]","receipt_number": null,"receipt_url": "https://pay.stripe.com/receipts/invoices/NORMALIZED?s=ap",@@ -142,7 +533,7 @@"confirmation_method": "automatic","created": 1000000000,"currency": "usd",- "customer": "billing_page_permissions--Customer.create.1.json",+ "customer": "billing_page_permissions--Customer.retrieve.1.json","description": "Payment for Invoice","id": "billing_page_permissions--Event.list.2.json","invoice": "billing_page_permissions--Event.list.2.json",@@ -209,7 +600,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -220,7 +611,7 @@"captured": true,"created": 1000000000,"currency": "usd",- "customer": "billing_page_permissions--Customer.create.1.json",+ "customer": "billing_page_permissions--Customer.retrieve.1.json","description": "Payment for Invoice","destination": null,"dispute": null,@@ -258,8 +649,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -287,6 +678,7 @@},"type": "card"},+ "radar_options": {},"receipt_email": "[email protected]","receipt_number": null,"receipt_url": "https://pay.stripe.com/receipts/invoices/NORMALIZED?s=ap",@@ -312,7 +704,7 @@"id": "billing_page_permissions--Event.list.2.json","livemode": false,"object": "event",- "pending_webhooks": 2,+ "pending_webhooks": 0,"request": {"id": "billing_page_permissions--Event.list.2.json","idempotency_key": "00000000-0000-0000-0000-000000000000"@@ -348,7 +740,7 @@"created": 1000000000,"currency": "usd","custom_fields": null,- "customer": "billing_page_permissions--Customer.create.1.json",+ "customer": "billing_page_permissions--Customer.retrieve.1.json","customer_address": null,"customer_email": "[email protected]","customer_name": null,@@ -392,7 +784,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -466,7 +858,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -493,7 +887,7 @@"total_excluding_tax": 48000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null}},"id": "billing_page_permissions--Event.list.2.json",@@ -535,7 +929,7 @@"created": 1000000000,"currency": "usd","custom_fields": null,- "customer": "billing_page_permissions--Customer.create.1.json",+ "customer": "billing_page_permissions--Customer.retrieve.1.json","customer_address": null,"customer_email": "[email protected]","customer_name": null,@@ -579,7 +973,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -653,7 +1047,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -680,7 +1076,7 @@"total_excluding_tax": 48000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null},"previous_attributes": {"effective_at": null,@@ -738,7 +1134,7 @@"confirmation_method": "automatic","created": 1000000000,"currency": "usd",- "customer": "billing_page_permissions--Customer.create.1.json",+ "customer": "billing_page_permissions--Customer.retrieve.1.json","description": "Payment for Invoice","id": "billing_page_permissions--Event.list.2.json","invoice": "billing_page_permissions--Event.list.2.json",@@ -816,7 +1212,7 @@"created": 1000000000,"currency": "usd","custom_fields": null,- "customer": "billing_page_permissions--Customer.create.1.json",+ "customer": "billing_page_permissions--Customer.retrieve.1.json","customer_address": null,"customer_email": "[email protected]","customer_name": null,@@ -860,7 +1256,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -934,7 +1330,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -981,7 +1379,7 @@"object": {"amount": 48000,"currency": "usd",- "customer": "billing_page_permissions--Customer.create.1.json",+ "customer": "billing_page_permissions--Customer.retrieve.1.json","date": 1000000000,"description": "Zulip Cloud Standard","discountable": false,@@ -992,7 +1390,7 @@"metadata": {},"object": "invoiceitem","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -1051,7 +1449,7 @@"description": "zulip (Zulip Dev)","discount": null,"email": "[email protected]",- "id": "billing_page_permissions--Customer.create.1.json",+ "id": "billing_page_permissions--Customer.retrieve.1.json","invoice_prefix": "NORMALIZED","invoice_settings": {"custom_fields": null,@@ -1089,7 +1487,7 @@"type": "customer.updated"}],- "has_more": false,+ "has_more": true,"object": "list","url": "/v1/events"}diff --git a/corporate/tests/stripe_fixtures/billing_page_permissions--Event.list.3.json b/corporate/tests/stripe_fixtures/billing_page_permissions--Event.list.3.jsonindex 9f2fd7d8261..7b2c090d51b 100644--- a/corporate/tests/stripe_fixtures/billing_page_permissions--Event.list.3.json+++ b/corporate/tests/stripe_fixtures/billing_page_permissions--Event.list.3.json@@ -147,7 +147,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -180,398 +182,12 @@"id": "billing_page_permissions--Event.list.3.json","livemode": false,"object": "event",- "pending_webhooks": 2,- "request": {- "id": "billing_page_permissions--Event.list.2.json",- "idempotency_key": "00000000-0000-0000-0000-000000000000"- },- "type": "invoice.payment_succeeded"- },- {- "api_version": "2020-08-27",- "created": 1000000000,- "data": {- "object": {- "account_country": "US",- "account_name": "Kandra Labs, Inc.",- "account_tax_ids": null,- "amount_due": 48000,- "amount_paid": 48000,- "amount_remaining": 0,- "amount_shipping": 0,- "application": null,- "application_fee_amount": null,- "attempt_count": 1,- "attempted": true,- "auto_advance": false,- "automatic_tax": {- "enabled": false,- "liability": null,- "status": null- },- "automatically_finalizes_at": null,- "billing_reason": "manual",- "charge": "ch_NORMALIZED",- "collection_method": "charge_automatically",- "created": 1000000000,- "currency": "usd",- "custom_fields": null,- "customer": "cus_NORMALIZED",- "customer_address": null,- "customer_email": "[email protected]",- "customer_name": null,- "customer_phone": null,- "customer_shipping": null,- "customer_tax_exempt": "none",- "customer_tax_ids": [],- "default_payment_method": null,- "default_source": null,- "default_tax_rates": [],- "description": null,- "discount": null,- "discounts": [],- "due_date": null,- "effective_at": 1000000000,- "ending_balance": 0,- "footer": null,- "from_invoice": null,- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",- "id": "billing_page_permissions--Event.list.2.json",- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",- "issuer": {- "type": "self"- },- "last_finalization_error": null,- "latest_revision": null,- "lines": {- "data": [- {- "amount": 48000,- "amount_excluding_tax": 48000,- "currency": "usd",- "description": "Zulip Cloud Standard",- "discount_amounts": [],- "discountable": false,- "discounts": [],- "id": "billing_page_permissions--Event.list.2.json",- "invoice": "billing_page_permissions--Event.list.2.json",- "invoice_item": "ii_NORMALIZED",- "livemode": false,- "metadata": {},- "object": "line_item",- "period": {- "end": 1357095845,- "start": 1325473445- },- "plan": null,- "price": {- "active": false,- "billing_scheme": "per_unit",- "created": 1000000000,- "currency": "usd",- "custom_unit_amount": null,- "id": "billing_page_permissions--Event.list.2.json",- "livemode": false,- "lookup_key": null,- "metadata": {},- "nickname": null,- "object": "price",- "product": "prod_NORMALIZED",- "recurring": null,- "tax_behavior": "unspecified",- "tiers_mode": null,- "transform_quantity": null,- "type": "one_time",- "unit_amount": 8000,- "unit_amount_decimal": "8000"- },- "proration": false,- "proration_details": {- "credited_items": null- },- "quantity": 6,- "subscription": null,- "tax_amounts": [],- "tax_rates": [],- "type": "invoiceitem",- "unit_amount_excluding_tax": "8000"- }- ],- "has_more": false,- "object": "list",- "total_count": 1,- "url": "/v1/invoices/billing_page_permissions--Event.list.2.json/lines"- },- "livemode": false,- "metadata": {- "billing_schedule": "1",- "current_plan_id": "None",- "license_management": "automatic",- "licenses": "6",- "on_free_trial": "False",- "plan_tier": "1",- "user_id": "12"- },- "next_payment_attempt": null,- "number": "NORMALIZED",- "object": "invoice",- "on_behalf_of": null,- "paid": true,- "paid_out_of_band": false,- "payment_intent": "pi_NORMALIZED",- "payment_settings": {- "default_mandate": null,- "payment_method_options": null,- "payment_method_types": null- },- "period_end": 1000000000,- "period_start": 1000000000,- "post_payment_credit_notes_amount": 0,- "pre_payment_credit_notes_amount": 0,- "quote": null,- "receipt_number": null,- "rendering": {- "amount_tax_display": null,- "pdf": {- "page_size": "letter"- }- },- "rendering_options": null,- "shipping_cost": null,- "shipping_details": null,- "starting_balance": 0,- "statement_descriptor": "Zulip Cloud Standard",- "status": "paid",- "status_transitions": {- "finalized_at": 1000000000,- "marked_uncollectible_at": null,- "paid_at": 1000000000,- "voided_at": null- },- "subscription": null,- "subscription_details": {- "metadata": null- },- "subtotal": 48000,- "subtotal_excluding_tax": 48000,- "tax": null,- "test_clock": null,- "total": 48000,- "total_discount_amounts": [],- "total_excluding_tax": 48000,- "total_tax_amounts": [],- "transfer_data": null,- "webhooks_delivered_at": 1000000000- }- },- "id": "billing_page_permissions--Event.list.3.json",- "livemode": false,- "object": "event",- "pending_webhooks": 0,- "request": {- "id": "billing_page_permissions--Event.list.2.json",- "idempotency_key": "00000000-0000-0000-0000-000000000000"- },- "type": "invoice.paid"- },- {- "api_version": "2020-08-27",- "created": 1000000000,- "data": {- "object": {- "account_country": "US",- "account_name": "Kandra Labs, Inc.",- "account_tax_ids": null,- "amount_due": 48000,- "amount_paid": 48000,- "amount_remaining": 0,- "amount_shipping": 0,- "application": null,- "application_fee_amount": null,- "attempt_count": 1,- "attempted": true,- "auto_advance": false,- "automatic_tax": {- "enabled": false,- "liability": null,- "status": null- },- "automatically_finalizes_at": null,- "billing_reason": "manual",- "charge": "ch_NORMALIZED",- "collection_method": "charge_automatically",- "created": 1000000000,- "currency": "usd",- "custom_fields": null,- "customer": "cus_NORMALIZED",- "customer_address": null,- "customer_email": "[email protected]",- "customer_name": null,- "customer_phone": null,- "customer_shipping": null,- "customer_tax_exempt": "none",- "customer_tax_ids": [],- "default_payment_method": null,- "default_source": null,- "default_tax_rates": [],- "description": null,- "discount": null,- "discounts": [],- "due_date": null,- "effective_at": 1000000000,- "ending_balance": 0,- "footer": null,- "from_invoice": null,- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",- "id": "billing_page_permissions--Event.list.2.json",- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",- "issuer": {- "type": "self"- },- "last_finalization_error": null,- "latest_revision": null,- "lines": {- "data": [- {- "amount": 48000,- "amount_excluding_tax": 48000,- "currency": "usd",- "description": "Zulip Cloud Standard",- "discount_amounts": [],- "discountable": false,- "discounts": [],- "id": "billing_page_permissions--Event.list.2.json",- "invoice": "billing_page_permissions--Event.list.2.json",- "invoice_item": "ii_NORMALIZED",- "livemode": false,- "metadata": {},- "object": "line_item",- "period": {- "end": 1357095845,- "start": 1325473445- },- "plan": null,- "price": {- "active": false,- "billing_scheme": "per_unit",- "created": 1000000000,- "currency": "usd",- "custom_unit_amount": null,- "id": "billing_page_permissions--Event.list.2.json",- "livemode": false,- "lookup_key": null,- "metadata": {},- "nickname": null,- "object": "price",- "product": "prod_NORMALIZED",- "recurring": null,- "tax_behavior": "unspecified",- "tiers_mode": null,- "transform_quantity": null,- "type": "one_time",- "unit_amount": 8000,- "unit_amount_decimal": "8000"- },- "proration": false,- "proration_details": {- "credited_items": null- },- "quantity": 6,- "subscription": null,- "tax_amounts": [],- "tax_rates": [],- "type": "invoiceitem",- "unit_amount_excluding_tax": "8000"- }- ],- "has_more": false,- "object": "list",- "total_count": 1,- "url": "/v1/invoices/billing_page_permissions--Event.list.2.json/lines"- },- "livemode": false,- "metadata": {- "billing_schedule": "1",- "current_plan_id": "None",- "license_management": "automatic",- "licenses": "6",- "on_free_trial": "False",- "plan_tier": "1",- "user_id": "12"- },- "next_payment_attempt": null,- "number": "NORMALIZED",- "object": "invoice",- "on_behalf_of": null,- "paid": true,- "paid_out_of_band": false,- "payment_intent": "pi_NORMALIZED",- "payment_settings": {- "default_mandate": null,- "payment_method_options": null,- "payment_method_types": null- },- "period_end": 1000000000,- "period_start": 1000000000,- "post_payment_credit_notes_amount": 0,- "pre_payment_credit_notes_amount": 0,- "quote": null,- "receipt_number": null,- "rendering": {- "amount_tax_display": null,- "pdf": {- "page_size": "letter"- }- },- "rendering_options": null,- "shipping_cost": null,- "shipping_details": null,- "starting_balance": 0,- "statement_descriptor": "Zulip Cloud Standard",- "status": "paid",- "status_transitions": {- "finalized_at": 1000000000,- "marked_uncollectible_at": null,- "paid_at": 1000000000,- "voided_at": null- },- "subscription": null,- "subscription_details": {- "metadata": null- },- "subtotal": 48000,- "subtotal_excluding_tax": 48000,- "tax": null,- "test_clock": null,- "total": 48000,- "total_discount_amounts": [],- "total_excluding_tax": 48000,- "total_tax_amounts": [],- "transfer_data": null,- "webhooks_delivered_at": 1000000000- },- "previous_attributes": {- "amount_paid": 0,- "amount_remaining": 48000,- "attempt_count": 0,- "attempted": false,- "charge": null,- "paid": false,- "status": "open",- "status_transitions": {- "paid_at": null- }- }- },- "id": "billing_page_permissions--Event.list.3.json",- "livemode": false,- "object": "event","pending_webhooks": 0,"request": {"id": "billing_page_permissions--Event.list.2.json","idempotency_key": "00000000-0000-0000-0000-000000000000"},- "type": "invoice.updated"+ "type": "invoice.payment_succeeded"}],"has_more": false,diff --git a/corporate/tests/stripe_fixtures/billing_page_permissions--Invoice.create.1.json b/corporate/tests/stripe_fixtures/billing_page_permissions--Invoice.create.1.jsonindex 1a1597ef219..69aa36d94d1 100644--- a/corporate/tests/stripe_fixtures/billing_page_permissions--Invoice.create.1.json+++ b/corporate/tests/stripe_fixtures/billing_page_permissions--Invoice.create.1.json@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/billing_page_permissions--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/billing_page_permissions--Invoice.finalize_invoice.1.jsonindex 9282b7ac72c..35726218cdf 100644--- a/corporate/tests/stripe_fixtures/billing_page_permissions--Invoice.finalize_invoice.1.json+++ b/corporate/tests/stripe_fixtures/billing_page_permissions--Invoice.finalize_invoice.1.json@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -168,5 +170,5 @@"total_excluding_tax": 48000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null}diff --git a/corporate/tests/stripe_fixtures/billing_page_permissions--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/billing_page_permissions--Invoice.pay.1.jsonindex 3a76a579d13..95ad5038b5e 100644--- a/corporate/tests/stripe_fixtures/billing_page_permissions--Invoice.pay.1.json+++ b/corporate/tests/stripe_fixtures/billing_page_permissions--Invoice.pay.1.json@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/billing_page_permissions--PaymentMethod.create.1.json b/corporate/tests/stripe_fixtures/billing_page_permissions--PaymentMethod.create.1.jsonindex 2405c535457..c26abc3c8af 100644--- a/corporate/tests/stripe_fixtures/billing_page_permissions--PaymentMethod.create.1.json+++ b/corporate/tests/stripe_fixtures/billing_page_permissions--PaymentMethod.create.1.json@@ -6,7 +6,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -22,8 +22,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/cancel_downgrade_at_end_of_free_trial--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/cancel_downgrade_at_end_of_free_trial--Customer.retrieve.1.jsonindex a3bfe717d84..9cefc86ad08 100644--- a/corporate/tests/stripe_fixtures/cancel_downgrade_at_end_of_free_trial--Customer.retrieve.1.json+++ b/corporate/tests/stripe_fixtures/cancel_downgrade_at_end_of_free_trial--Customer.retrieve.1.json@@ -9,7 +9,7 @@"description": "zulip (Zulip Dev)","discount": null,"email": "[email protected]",- "id": "cancel_downgrade_at_end_of_free_trial--Customer.create.1.json",+ "id": "cancel_downgrade_at_end_of_free_trial--Customer.retrieve.1.json","invoice_prefix": "NORMALIZED","invoice_settings": {"custom_fields": null,@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -55,7 +55,7 @@"wallet": null},"created": 1000000000,- "customer": "cancel_downgrade_at_end_of_free_trial--Customer.create.1.json",+ "customer": "cancel_downgrade_at_end_of_free_trial--Customer.retrieve.1.json","id": "cancel_downgrade_at_end_of_free_trial--Customer.retrieve.1.json","livemode": false,"metadata": {},diff --git a/corporate/tests/stripe_fixtures/cancel_downgrade_at_end_of_free_trial--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/cancel_downgrade_at_end_of_free_trial--Customer.retrieve.2.jsonindex a3bfe717d84..9cefc86ad08 100644--- a/corporate/tests/stripe_fixtures/cancel_downgrade_at_end_of_free_trial--Customer.retrieve.2.json+++ b/corporate/tests/stripe_fixtures/cancel_downgrade_at_end_of_free_trial--Customer.retrieve.2.json@@ -9,7 +9,7 @@"description": "zulip (Zulip Dev)","discount": null,"email": "[email protected]",- "id": "cancel_downgrade_at_end_of_free_trial--Customer.create.1.json",+ "id": "cancel_downgrade_at_end_of_free_trial--Customer.retrieve.1.json","invoice_prefix": "NORMALIZED","invoice_settings": {"custom_fields": null,@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -55,7 +55,7 @@"wallet": null},"created": 1000000000,- "customer": "cancel_downgrade_at_end_of_free_trial--Customer.create.1.json",+ "customer": "cancel_downgrade_at_end_of_free_trial--Customer.retrieve.1.json","id": "cancel_downgrade_at_end_of_free_trial--Customer.retrieve.1.json","livemode": false,"metadata": {},diff --git a/corporate/tests/stripe_fixtures/cancel_downgrade_at_end_of_free_trial--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/cancel_downgrade_at_end_of_free_trial--Customer.retrieve.3.jsonindex a3bfe717d84..9cefc86ad08 100644--- a/corporate/tests/stripe_fixtures/cancel_downgrade_at_end_of_free_trial--Customer.retrieve.3.json+++ b/corporate/tests/stripe_fixtures/cancel_downgrade_at_end_of_free_trial--Customer.retrieve.3.json@@ -9,7 +9,7 @@"description": "zulip (Zulip Dev)","discount": null,"email": "[email protected]",- "id": "cancel_downgrade_at_end_of_free_trial--Customer.create.1.json",+ "id": "cancel_downgrade_at_end_of_free_trial--Customer.retrieve.1.json","invoice_prefix": "NORMALIZED","invoice_settings": {"custom_fields": null,@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -55,7 +55,7 @@"wallet": null},"created": 1000000000,- "customer": "cancel_downgrade_at_end_of_free_trial--Customer.create.1.json",+ "customer": "cancel_downgrade_at_end_of_free_trial--Customer.retrieve.1.json","id": "cancel_downgrade_at_end_of_free_trial--Customer.retrieve.1.json","livemode": false,"metadata": {},diff --git a/corporate/tests/stripe_fixtures/cancel_downgrade_at_end_of_free_trial--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/cancel_downgrade_at_end_of_free_trial--Customer.retrieve.4.jsonindex a3bfe717d84..9cefc86ad08 100644--- a/corporate/tests/stripe_fixtures/cancel_downgrade_at_end_of_free_trial--Customer.retrieve.4.json+++ b/corporate/tests/stripe_fixtures/cancel_downgrade_at_end_of_free_trial--Customer.retrieve.4.json@@ -9,7 +9,7 @@"description": "zulip (Zulip Dev)","discount": null,"email": "[email protected]",- "id": "cancel_downgrade_at_end_of_free_trial--Customer.create.1.json",+ "id": "cancel_downgrade_at_end_of_free_trial--Customer.retrieve.1.json","invoice_prefix": "NORMALIZED","invoice_settings": {"custom_fields": null,@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -55,7 +55,7 @@"wallet": null},"created": 1000000000,- "customer": "cancel_downgrade_at_end_of_free_trial--Customer.create.1.json",+ "customer": "cancel_downgrade_at_end_of_free_trial--Customer.retrieve.1.json","id": "cancel_downgrade_at_end_of_free_trial--Customer.retrieve.1.json","livemode": false,"metadata": {},diff --git a/corporate/tests/stripe_fixtures/cancel_downgrade_at_end_of_free_trial--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/cancel_downgrade_at_end_of_free_trial--Customer.retrieve.5.jsonnew file mode 100644index 00000000000..9cefc86ad08--- /dev/null+++ b/corporate/tests/stripe_fixtures/cancel_downgrade_at_end_of_free_trial--Customer.retrieve.5.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": null,+ "default_currency": null,+ "default_source": null,+ "delinquent": false,+ "description": "zulip (Zulip Dev)",+ "discount": null,+ "email": "[email protected]",+ "id": "cancel_downgrade_at_end_of_free_trial--Customer.retrieve.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "cancel_downgrade_at_end_of_free_trial--Customer.retrieve.1.json",+ "id": "cancel_downgrade_at_end_of_free_trial--Customer.retrieve.1.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "realm_id": "1",+ "realm_str": "zulip"+ },+ "name": null,+ "next_invoice_sequence": 1,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/cancel_downgrade_at_end_of_free_trial--PaymentMethod.create.1.json b/corporate/tests/stripe_fixtures/cancel_downgrade_at_end_of_free_trial--PaymentMethod.create.1.jsonindex f5e9055dcc3..8646c71401b 100644--- a/corporate/tests/stripe_fixtures/cancel_downgrade_at_end_of_free_trial--PaymentMethod.create.1.json+++ b/corporate/tests/stripe_fixtures/cancel_downgrade_at_end_of_free_trial--PaymentMethod.create.1.json@@ -6,7 +6,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -22,8 +22,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--Customer.retrieve.1.jsonindex 9b2ee1319b8..0238af281bd 100644--- a/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--Customer.retrieve.1.json+++ b/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--Customer.retrieve.1.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--Customer.retrieve.2.jsonindex 9b2ee1319b8..0238af281bd 100644--- a/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--Customer.retrieve.2.json+++ b/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--Customer.retrieve.2.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--Customer.retrieve.3.jsonindex 9b2ee1319b8..0238af281bd 100644--- a/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--Customer.retrieve.3.json+++ b/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--Customer.retrieve.3.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--Customer.retrieve.4.jsonnew file mode 100644index 00000000000..0238af281bd--- /dev/null+++ b/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--Customer.retrieve.4.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": null,+ "default_currency": null,+ "default_source": null,+ "delinquent": false,+ "description": "zulip (Zulip Dev)",+ "discount": null,+ "email": "[email protected]",+ "id": "card_attached_to_customer_but_payment_fails--Customer.create.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "0341",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "card_attached_to_customer_but_payment_fails--Customer.create.1.json",+ "id": "card_attached_to_customer_but_payment_fails--Customer.retrieve.1.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "realm_id": "1",+ "realm_str": "zulip"+ },+ "name": null,+ "next_invoice_sequence": 1,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--Invoice.create.1.json b/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--Invoice.create.1.jsonindex 0bfb180b36a..25c36d320e7 100644--- a/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--Invoice.create.1.json+++ b/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--Invoice.create.1.json@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--Invoice.finalize_invoice.1.jsonindex c91ef43fdef..c31bf3b728c 100644--- a/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--Invoice.finalize_invoice.1.json+++ b/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--Invoice.finalize_invoice.1.json@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--Invoice.pay.1.jsonindex 806685b9c12..af82b8a69ca 100644--- a/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--Invoice.pay.1.json+++ b/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--Invoice.pay.1.json@@ -37,7 +37,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -86,8 +86,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -115,6 +115,7 @@},"type": "card"},+ "radar_options": {},"receipt_email": "[email protected]","receipt_number": null,"receipt_url": null,@@ -158,7 +159,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -174,8 +175,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -242,7 +243,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -258,8 +259,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -283,7 +284,7 @@"object": "payment_method","type": "card"},- "request_log_url": "https://dashboard.stripe.com/test/logs/req_NORMALIZED?t=1724918793",+ "request_log_url": "https://dashboard.stripe.com/test/logs/req_NORMALIZED?t=1726724584","setup_intent": null,"source": null,"type": "card_error"@@ -296,12 +297,12 @@"Access-Control-Max-Age": "300","Cache-Control": "no-cache, no-store","Connection": "keep-alive",- "Content-Length": "9409",+ "Content-Length": "1455","Content-Security-Policy": "report-uri https://q.stripe.com/csp-report?p=v1%2Finvoices%2F%3Ainvoice%2Fpay; block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self'","Content-Type": "application/json","Cross-Origin-Opener-Policy-Report-Only": "same-origin; report-to=\"coop\"","Date": "NORMALIZED DATETIME",- "Idempotency-Key": "e18cf8e1-1653-4d09-85e6-bf38340605a1",+ "Idempotency-Key": "515dca87-6c02-40cc-868a-68cf7d716801","Original-Request": "req_NORMALIZED","Report-To": "{\"group\": \"coop\",\"max_age\": 8640,\"endpoints\": [{\"url\": \"https://q.stripe.com/coop-report?s=billing-api-srv\"}],\"include_subdomains\": true}","Reporting-Endpoints": "coop=\"https://q.stripe.com/coop-report?s=billing-api-srv\"",@@ -315,7 +316,7 @@"X-Stripe-Priority-Routing-Enabled": "true","X-Stripe-Routing-Context-Priority-Tier": "api-testmode"},- "http_body": "{\"error\": {\"charge\": \"card_attached_to_customer_but_payment_fails--Invoice.pay.1.json\", \"code\": \"card_declined\", \"decline_code\": \"generic_decline\", \"doc_url\": \"https://stripe.com/docs/error-codes/card-declined\", \"message\": \"Your card was declined.\", \"payment_intent\": {\"id\": \"card_attached_to_customer_but_payment_fails--Invoice.pay.1.json\", \"object\": \"payment_intent\", \"amount\": 48000, \"amount_capturable\": 0, \"amount_details\": {\"tip\": {}}, \"amount_received\": 0, \"application\": null, \"application_fee_amount\": null, \"automatic_payment_methods\": null, \"canceled_at\": null, \"cancellation_reason\": null, \"capture_method\": \"automatic\", \"charges\": {\"object\": \"list\", \"data\": [{\"id\": \"card_attached_to_customer_but_payment_fails--Invoice.pay.1.json\", \"object\": \"charge\", \"amount\": 48000, \"amount_captured\": 0, \"amount_refunded\": 0, \"application\": null, \"application_fee\": null, \"application_fee_amount\": null, \"balance_transaction\": null, \"billing_details\": {\"address\": {\"city\": \"San Francisco\", \"country\": \"US\", \"line1\": \"123 Main St\", \"line2\": null, \"postal_code\": \"94105\", \"state\": \"CA\"}, \"email\": null, \"name\": \"John Doe\", \"phone\": null}, \"calculated_statement_descriptor\": \"ZULIP CLOUD STANDARD\", \"captured\": false, \"created\": 1000000000, \"currency\": \"usd\", \"customer\": \"cus_NORMALIZED\", \"description\": \"Payment for Invoice\", \"destination\": null, \"dispute\": null, \"disputed\": false, \"failure_balance_transaction\": null, \"failure_code\": \"card_declined\", \"failure_message\": \"Your card was declined.\", \"fraud_details\": {}, \"invoice\": \"in_NORMALIZED\", \"livemode\": false, \"metadata\": {}, \"on_behalf_of\": null, \"order\": null, \"outcome\": {\"network_status\": \"declined_by_network\", \"reason\": \"generic_decline\", \"risk_level\": \"normal\", \"risk_score\": 33, \"seller_message\": \"The bank did not return any further details with this decline.\", \"type\": \"issuer_declined\"}, \"paid\": false, \"payment_intent\": \"card_attached_to_customer_but_payment_fails--Invoice.pay.1.json\", \"payment_method\": \"card_attached_to_customer_but_payment_fails--Customer.retrieve.1.json\", \"payment_method_details\": {\"card\": {\"amount_authorized\": null, \"authorization_code\": null, \"brand\": \"visa\", \"checks\": {\"address_line1_check\": \"pass\", \"address_postal_code_check\": \"pass\", \"cvc_check\": \"pass\"}, \"country\": \"US\", \"exp_month\": 8, \"exp_year\": 2025, \"extended_authorization\": {\"status\": \"disabled\"}, \"fingerprint\": \"NORMALIZED\", \"funding\": \"credit\", \"incremental_authorization\": {\"status\": \"unavailable\"}, \"installments\": null, \"last4\": \"0341\", \"mandate\": null, \"multicapture\": {\"status\": \"unavailable\"}, \"network\": \"visa\", \"network_token\": {\"used\": false}, \"overcapture\": {\"maximum_amount_capturable\": 48000, \"status\": \"unavailable\"}, \"three_d_secure\": null, \"wallet\": null}, \"type\": \"card\"}, \"receipt_email\": \"[email protected]\", \"receipt_number\": null, \"receipt_url\": null, \"refunded\": false, \"refunds\": {\"object\": \"list\", \"data\": [], \"has_more\": false, \"total_count\": 0, \"url\": \"/v1/charges/card_attached_to_customer_but_payment_fails--Invoice.pay.1.json/refunds\"}, \"review\": null, \"shipping\": null, \"source\": null, \"source_transfer\": null, \"statement_descriptor\": \"Zulip Cloud Standard\", \"statement_descriptor_suffix\": null, \"status\": \"failed\", \"transfer_data\": null, \"transfer_group\": null}], \"has_more\": false, \"total_count\": 1, \"url\": \"/v1/charges?payment_intent=card_attached_to_customer_but_payment_fails--Invoice.pay.1.json\"}, \"client_secret\": \"NORMALIZED\", \"confirmation_method\": \"automatic\", \"created\": 1000000000, \"currency\": \"usd\", \"customer\": \"cus_NORMALIZED\", \"description\": \"Payment for Invoice\", \"invoice\": \"in_NORMALIZED\", \"last_payment_error\": {\"charge\": \"card_attached_to_customer_but_payment_fails--Invoice.pay.1.json\", \"code\": \"card_declined\", \"decline_code\": \"generic_decline\", \"doc_url\": \"https://stripe.com/docs/error-codes/card-declined\", \"message\": \"Your card was declined.\", \"payment_method\": {\"id\": \"card_attached_to_customer_but_payment_fails--Customer.retrieve.1.json\", \"object\": \"payment_method\", \"allow_redisplay\": \"unspecified\", \"billing_details\": {\"address\": {\"city\": \"San Francisco\", \"country\": \"US\", \"line1\": \"123 Main St\", \"line2\": null, \"postal_code\": \"94105\", \"state\": \"CA\"}, \"email\": null, \"name\": \"John Doe\", \"phone\": null}, \"card\": {\"brand\": \"visa\", \"checks\": {\"address_line1_check\": \"pass\", \"address_postal_code_check\": \"pass\", \"cvc_check\": \"pass\"}, \"country\": \"US\", \"display_brand\": \"visa\", \"exp_month\": 8, \"exp_year\": 2025, \"fingerprint\": \"NORMALIZED\", \"funding\": \"credit\", \"generated_from\": null, \"last4\": \"0341\", \"networks\": {\"available\": [\"visa\"], \"preferred\": null}, \"three_d_secure_usage\": {\"supported\": true}, \"wallet\": null}, \"created\": 1000000000, \"customer\": \"cus_NORMALIZED\", \"livemode\": false, \"metadata\": {}, \"type\": \"card\"}, \"type\": \"card_error\"}, \"latest_charge\": \"card_attached_to_customer_but_payment_fails--Invoice.pay.1.json\", \"livemode\": false, \"metadata\": {}, \"next_action\": null, \"on_behalf_of\": null, \"payment_method\": null, \"payment_method_configuration_details\": null, \"payment_method_options\": {\"card\": {\"installments\": null, \"mandate_options\": null, \"network\": null, \"request_three_d_secure\": \"automatic\"}, \"cashapp\": {}}, \"payment_method_types\": [\"card\", \"cashapp\"], \"processing\": null, \"receipt_email\": \"[email protected]\", \"review\": null, \"setup_future_usage\": null, \"shipping\": null, \"source\": null, \"statement_descriptor\": \"Zulip Cloud Standard\", \"statement_descriptor_suffix\": null, \"status\": \"requires_payment_method\", \"transfer_data\": null, \"transfer_group\": null}, \"payment_method\": {\"id\": \"card_attached_to_customer_but_payment_fails--Customer.retrieve.1.json\", \"object\": \"payment_method\", \"allow_redisplay\": \"unspecified\", \"billing_details\": {\"address\": {\"city\": \"San Francisco\", \"country\": \"US\", \"line1\": \"123 Main St\", \"line2\": null, \"postal_code\": \"94105\", \"state\": \"CA\"}, \"email\": null, \"name\": \"John Doe\", \"phone\": null}, \"card\": {\"brand\": \"visa\", \"checks\": {\"address_line1_check\": \"pass\", \"address_postal_code_check\": \"pass\", \"cvc_check\": \"pass\"}, \"country\": \"US\", \"display_brand\": \"visa\", \"exp_month\": 8, \"exp_year\": 2025, \"fingerprint\": \"NORMALIZED\", \"funding\": \"credit\", \"generated_from\": null, \"last4\": \"0341\", \"networks\": {\"available\": [\"visa\"], \"preferred\": null}, \"three_d_secure_usage\": {\"supported\": true}, \"wallet\": null}, \"created\": 1000000000, \"customer\": \"cus_NORMALIZED\", \"livemode\": false, \"metadata\": {}, \"type\": \"card\"}, \"request_log_url\": \"https://dashboard.stripe.com/test/logs/req_NORMALIZED?t=1724918793\", \"type\": \"card_error\"}}",+ "http_body": "{\"error\": {\"charge\": \"card_attached_to_customer_but_payment_fails--Invoice.pay.1.json\", \"code\": \"card_declined\", \"decline_code\": \"generic_decline\", \"doc_url\": \"https://stripe.com/docs/error-codes/card-declined\", \"message\": \"Your card was declined.\", \"payment_intent\": {\"id\": \"card_attached_to_customer_but_payment_fails--Invoice.pay.1.json\", \"object\": \"payment_intent\", \"amount\": 48000, \"amount_capturable\": 0, \"amount_details\": {\"tip\": {}}, \"amount_received\": 0, \"application\": null, \"application_fee_amount\": null, \"automatic_payment_methods\": null, \"canceled_at\": null, \"cancellation_reason\": null, \"capture_method\": \"automatic\", \"charges\": {\"object\": \"list\", \"data\": [{\"id\": \"card_attached_to_customer_but_payment_fails--Invoice.pay.1.json\", \"object\": \"charge\", \"amount\": 48000, \"amount_captured\": 0, \"amount_refunded\": 0, \"application\": null, \"application_fee\": null, \"application_fee_amount\": null, \"balance_transaction\": null, \"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}, \"calculated_statement_descriptor\": \"ZULIP CLOUD STANDARD\", \"captured\": false, \"created\": 1000000000, \"currency\": \"usd\", \"customer\": \"cus_NORMALIZED\", \"description\": \"Payment for Invoice\", \"destination\": null, \"dispute\": null, \"disputed\": false, \"failure_balance_transaction\": null, \"failure_code\": \"card_declined\", \"failure_message\": \"Your card was declined.\", \"fraud_details\": {}, \"invoice\": \"in_NORMALIZED\", \"livemode\": false, \"metadata\": {}, \"on_behalf_of\": null, \"order\": null, \"outcome\": {\"network_status\": \"declined_by_network\", \"reason\": \"generic_decline\", \"risk_level\": \"normal\", \"risk_score\": 30, \"seller_message\": \"The bank did not return any further details with this decline.\", \"type\": \"issuer_declined\"}, \"paid\": false, \"payment_intent\": \"card_attached_to_customer_but_payment_fails--Invoice.pay.1.json\", \"payment_method\": \"card_attached_to_customer_but_payment_fails--Customer.retrieve.1.json\", \"payment_method_details\": {\"card\": {\"amount_authorized\": null, \"authorization_code\": null, \"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\": \"0341\", \"mandate\": null, \"multicapture\": {\"status\": \"unavailable\"}, \"network\": \"visa\", \"network_token\": {\"used\": false}, \"overcapture\": {\"maximum_amount_capturable\": 48000, \"status\": \"unavailable\"}, \"three_d_secure\": null, \"wallet\": null}, \"type\": \"card\"}, \"radar_options\": {}, \"receipt_email\": \"[email protected]\", \"receipt_number\": null, \"receipt_url\": null, \"refunded\": false, \"refunds\": {\"object\": \"list\", \"data\": [], \"has_more\": false, \"total_count\": 0, \"url\": \"/v1/charges/card_attached_to_customer_but_payment_fails--Invoice.pay.1.json/refunds\"}, \"review\": null, \"shipping\": null, \"source\": null, \"source_transfer\": null, \"statement_descriptor\": \"Zulip Cloud Standard\", \"statement_descriptor_suffix\": null, \"status\": \"failed\", \"transfer_data\": null, \"transfer_group\": null}], \"has_more\": false, \"total_count\": 1, \"url\": \"/v1/charges?payment_intent=card_attached_to_customer_but_payment_fails--Invoice.pay.1.json\"}, \"client_secret\": \"NORMALIZED\", \"confirmation_method\": \"automatic\", \"created\": 1000000000, \"currency\": \"usd\", \"customer\": \"cus_NORMALIZED\", \"description\": \"Payment for Invoice\", \"invoice\": \"in_NORMALIZED\", \"last_payment_error\": {\"charge\": \"card_attached_to_customer_but_payment_fails--Invoice.pay.1.json\", \"code\": \"card_declined\", \"decline_code\": \"generic_decline\", \"doc_url\": \"https://stripe.com/docs/error-codes/card-declined\", \"message\": \"Your card was declined.\", \"payment_method\": {\"id\": \"card_attached_to_customer_but_payment_fails--Customer.retrieve.1.json\", \"object\": \"payment_method\", \"allow_redisplay\": \"unspecified\", \"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}, \"card\": {\"brand\": \"visa\", \"checks\": {\"address_line1_check\": \"pass\", \"address_postal_code_check\": \"pass\", \"cvc_check\": \"pass\"}, \"country\": \"US\", \"display_brand\": \"visa\", \"exp_month\": 1, \"exp_year\": 9999, \"fingerprint\": \"NORMALIZED\", \"funding\": \"credit\", \"generated_from\": null, \"last4\": \"0341\", \"networks\": {\"available\": [\"visa\"], \"preferred\": null}, \"three_d_secure_usage\": {\"supported\": true}, \"wallet\": null}, \"created\": 1000000000, \"customer\": \"cus_NORMALIZED\", \"livemode\": false, \"metadata\": {}, \"type\": \"card\"}, \"type\": \"card_error\"}, \"latest_charge\": \"card_attached_to_customer_but_payment_fails--Invoice.pay.1.json\", \"livemode\": false, \"metadata\": {}, \"next_action\": null, \"on_behalf_of\": null, \"payment_method\": null, \"payment_method_configuration_details\": null, \"payment_method_options\": {\"card\": {\"installments\": null, \"mandate_options\": null, \"network\": null, \"request_three_d_secure\": \"automatic\"}, \"cashapp\": {}}, \"payment_method_types\": [\"card\", \"cashapp\"], \"processing\": null, \"receipt_email\": \"[email protected]\", \"review\": null, \"setup_future_usage\": null, \"shipping\": null, \"source\": null, \"statement_descriptor\": \"Zulip Cloud Standard\", \"statement_descriptor_suffix\": null, \"status\": \"requires_payment_method\", \"transfer_data\": null, \"transfer_group\": null}, \"payment_method\": {\"id\": \"card_attached_to_customer_but_payment_fails--Customer.retrieve.1.json\", \"object\": \"payment_method\", \"allow_redisplay\": \"unspecified\", \"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}, \"card\": {\"brand\": \"visa\", \"checks\": {\"address_line1_check\": \"pass\", \"address_postal_code_check\": \"pass\", \"cvc_check\": \"pass\"}, \"country\": \"US\", \"display_brand\": \"visa\", \"exp_month\": 1, \"exp_year\": 9999, \"fingerprint\": \"NORMALIZED\", \"funding\": \"credit\", \"generated_from\": null, \"last4\": \"0341\", \"networks\": {\"available\": [\"visa\"], \"preferred\": null}, \"three_d_secure_usage\": {\"supported\": true}, \"wallet\": null}, \"created\": 1000000000, \"customer\": \"cus_NORMALIZED\", \"livemode\": false, \"metadata\": {}, \"type\": \"card\"}, \"request_log_url\": \"https://dashboard.stripe.com/test/logs/req_NORMALIZED?t=1726724584\", \"type\": \"card_error\"}}","http_status": 402,"json_body": {"error": {@@ -353,7 +354,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -402,8 +403,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -431,6 +432,7 @@},"type": "card"},+ "radar_options": {},"receipt_email": "[email protected]","receipt_number": null,"receipt_url": null,@@ -480,7 +482,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -496,8 +498,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -564,7 +566,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -580,8 +582,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -605,7 +607,7 @@"object": "payment_method","type": "card"},- "request_log_url": "https://dashboard.stripe.com/test/logs/req_NORMALIZED?t=1724918793",+ "request_log_url": "https://dashboard.stripe.com/test/logs/req_NORMALIZED?t=1726724584","type": "card_error"}},diff --git a/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--Invoice.void_invoice.1.json b/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--Invoice.void_invoice.1.jsonindex ab79de5966c..32bcab0b8d9 100644--- a/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--Invoice.void_invoice.1.json+++ b/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--Invoice.void_invoice.1.json@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -168,5 +170,5 @@"total_excluding_tax": 48000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null}diff --git a/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--PaymentMethod.create.1.json b/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--PaymentMethod.create.1.jsonindex e6bae267f35..5098c56b2ab 100644--- a/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--PaymentMethod.create.1.json+++ b/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--PaymentMethod.create.1.json@@ -6,7 +6,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -22,8 +22,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/change_plan_tier_from_standard_to_plus--Invoice.create.1.json b/corporate/tests/stripe_fixtures/change_plan_tier_from_standard_to_plus--Invoice.create.1.jsonindex e43f97fc3be..e5b0e37570a 100644--- a/corporate/tests/stripe_fixtures/change_plan_tier_from_standard_to_plus--Invoice.create.1.json+++ b/corporate/tests/stripe_fixtures/change_plan_tier_from_standard_to_plus--Invoice.create.1.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/change_plan_tier_from_standard_to_plus--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/change_plan_tier_from_standard_to_plus--Invoice.finalize_invoice.1.jsonindex 42fccd58fb2..acf15509000 100644--- a/corporate/tests/stripe_fixtures/change_plan_tier_from_standard_to_plus--Invoice.finalize_invoice.1.json+++ b/corporate/tests/stripe_fixtures/change_plan_tier_from_standard_to_plus--Invoice.finalize_invoice.1.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/change_plan_tier_from_standard_to_plus--Invoice.list.1.json b/corporate/tests/stripe_fixtures/change_plan_tier_from_standard_to_plus--Invoice.list.1.jsonindex c5631e30f60..7dbf594cec1 100644--- a/corporate/tests/stripe_fixtures/change_plan_tier_from_standard_to_plus--Invoice.list.1.json+++ b/corporate/tests/stripe_fixtures/change_plan_tier_from_standard_to_plus--Invoice.list.1.json@@ -135,7 +135,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.1.jsonindex c60bafff466..bec3f0a3561 100644--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.1.json+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.1.json@@ -9,7 +9,7 @@"description": "zulip (Zulip Dev)","discount": null,"email": "[email protected]",- "id": "check_upgrade_parameters--Customer.create.1.json",+ "id": "check_upgrade_parameters--Customer.retrieve.1.json","invoice_prefix": "NORMALIZED","invoice_settings": {"custom_fields": null,@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -55,7 +55,7 @@"wallet": null},"created": 1000000000,- "customer": "check_upgrade_parameters--Customer.create.1.json",+ "customer": "check_upgrade_parameters--Customer.retrieve.1.json","id": "check_upgrade_parameters--Customer.retrieve.1.json","livemode": false,"metadata": {},diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.10.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.10.jsonindex 7389c71bd2d..124997e7e59 100644--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.10.json+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.10.json@@ -9,7 +9,7 @@"description": "zulip (Zulip Dev)","discount": null,"email": "[email protected]",- "id": "check_upgrade_parameters--Customer.create.1.json",+ "id": "check_upgrade_parameters--Customer.retrieve.1.json","invoice_prefix": "NORMALIZED","invoice_settings": {"custom_fields": null,@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -55,7 +55,7 @@"wallet": null},"created": 1000000000,- "customer": "check_upgrade_parameters--Customer.create.1.json",+ "customer": "check_upgrade_parameters--Customer.retrieve.1.json","id": "check_upgrade_parameters--Customer.retrieve.10.json","livemode": false,"metadata": {},diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.11.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.11.jsonindex 81351514acb..124997e7e59 100644--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.11.json+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.11.json@@ -9,7 +9,7 @@"description": "zulip (Zulip Dev)","discount": null,"email": "[email protected]",- "id": "check_upgrade_parameters--Customer.create.1.json",+ "id": "check_upgrade_parameters--Customer.retrieve.1.json","invoice_prefix": "NORMALIZED","invoice_settings": {"custom_fields": null,@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -55,8 +55,8 @@"wallet": null},"created": 1000000000,- "customer": "check_upgrade_parameters--Customer.create.1.json",- "id": "check_upgrade_parameters--Customer.retrieve.11.json",+ "customer": "check_upgrade_parameters--Customer.retrieve.1.json",+ "id": "check_upgrade_parameters--Customer.retrieve.10.json","livemode": false,"metadata": {},"object": "payment_method",diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.12.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.12.jsonindex 81351514acb..124997e7e59 100644--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.12.json+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.12.json@@ -9,7 +9,7 @@"description": "zulip (Zulip Dev)","discount": null,"email": "[email protected]",- "id": "check_upgrade_parameters--Customer.create.1.json",+ "id": "check_upgrade_parameters--Customer.retrieve.1.json","invoice_prefix": "NORMALIZED","invoice_settings": {"custom_fields": null,@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -55,8 +55,8 @@"wallet": null},"created": 1000000000,- "customer": "check_upgrade_parameters--Customer.create.1.json",- "id": "check_upgrade_parameters--Customer.retrieve.11.json",+ "customer": "check_upgrade_parameters--Customer.retrieve.1.json",+ "id": "check_upgrade_parameters--Customer.retrieve.10.json","livemode": false,"metadata": {},"object": "payment_method",diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.13.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.13.jsonindex adbac1f5da8..45a70d2fb21 100644--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.13.json+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.13.json@@ -9,7 +9,7 @@"description": "zulip (Zulip Dev)","discount": null,"email": "[email protected]",- "id": "check_upgrade_parameters--Customer.create.1.json",+ "id": "check_upgrade_parameters--Customer.retrieve.1.json","invoice_prefix": "NORMALIZED","invoice_settings": {"custom_fields": null,@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -55,7 +55,7 @@"wallet": null},"created": 1000000000,- "customer": "check_upgrade_parameters--Customer.create.1.json",+ "customer": "check_upgrade_parameters--Customer.retrieve.1.json","id": "check_upgrade_parameters--Customer.retrieve.13.json","livemode": false,"metadata": {},diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.14.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.14.jsonindex adbac1f5da8..45a70d2fb21 100644--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.14.json+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.14.json@@ -9,7 +9,7 @@"description": "zulip (Zulip Dev)","discount": null,"email": "[email protected]",- "id": "check_upgrade_parameters--Customer.create.1.json",+ "id": "check_upgrade_parameters--Customer.retrieve.1.json","invoice_prefix": "NORMALIZED","invoice_settings": {"custom_fields": null,@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -55,7 +55,7 @@"wallet": null},"created": 1000000000,- "customer": "check_upgrade_parameters--Customer.create.1.json",+ "customer": "check_upgrade_parameters--Customer.retrieve.1.json","id": "check_upgrade_parameters--Customer.retrieve.13.json","livemode": false,"metadata": {},diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.15.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.15.jsonindex 958945d3b16..45a70d2fb21 100644--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.15.json+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.15.json@@ -9,7 +9,7 @@"description": "zulip (Zulip Dev)","discount": null,"email": "[email protected]",- "id": "check_upgrade_parameters--Customer.create.1.json",+ "id": "check_upgrade_parameters--Customer.retrieve.1.json","invoice_prefix": "NORMALIZED","invoice_settings": {"custom_fields": null,@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -55,8 +55,8 @@"wallet": null},"created": 1000000000,- "customer": "check_upgrade_parameters--Customer.create.1.json",- "id": "check_upgrade_parameters--Customer.retrieve.15.json",+ "customer": "check_upgrade_parameters--Customer.retrieve.1.json",+ "id": "check_upgrade_parameters--Customer.retrieve.13.json","livemode": false,"metadata": {},"object": "payment_method",diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.16.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.16.jsonindex 958945d3b16..b448fde70a7 100644--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.16.json+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.16.json@@ -9,7 +9,7 @@"description": "zulip (Zulip Dev)","discount": null,"email": "[email protected]",- "id": "check_upgrade_parameters--Customer.create.1.json",+ "id": "check_upgrade_parameters--Customer.retrieve.1.json","invoice_prefix": "NORMALIZED","invoice_settings": {"custom_fields": null,@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -55,8 +55,8 @@"wallet": null},"created": 1000000000,- "customer": "check_upgrade_parameters--Customer.create.1.json",- "id": "check_upgrade_parameters--Customer.retrieve.15.json",+ "customer": "check_upgrade_parameters--Customer.retrieve.1.json",+ "id": "check_upgrade_parameters--Customer.retrieve.16.json","livemode": false,"metadata": {},"object": "payment_method",diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.17.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.17.jsonindex ff8832ae270..b448fde70a7 100644--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.17.json+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.17.json@@ -9,7 +9,7 @@"description": "zulip (Zulip Dev)","discount": null,"email": "[email protected]",- "id": "check_upgrade_parameters--Customer.create.1.json",+ "id": "check_upgrade_parameters--Customer.retrieve.1.json","invoice_prefix": "NORMALIZED","invoice_settings": {"custom_fields": null,@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -55,8 +55,8 @@"wallet": null},"created": 1000000000,- "customer": "check_upgrade_parameters--Customer.create.1.json",- "id": "check_upgrade_parameters--Customer.retrieve.17.json",+ "customer": "check_upgrade_parameters--Customer.retrieve.1.json",+ "id": "check_upgrade_parameters--Customer.retrieve.16.json","livemode": false,"metadata": {},"object": "payment_method",diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.18.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.18.jsonindex ff8832ae270..b448fde70a7 100644--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.18.json+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.18.json@@ -9,7 +9,7 @@"description": "zulip (Zulip Dev)","discount": null,"email": "[email protected]",- "id": "check_upgrade_parameters--Customer.create.1.json",+ "id": "check_upgrade_parameters--Customer.retrieve.1.json","invoice_prefix": "NORMALIZED","invoice_settings": {"custom_fields": null,@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -55,8 +55,8 @@"wallet": null},"created": 1000000000,- "customer": "check_upgrade_parameters--Customer.create.1.json",- "id": "check_upgrade_parameters--Customer.retrieve.17.json",+ "customer": "check_upgrade_parameters--Customer.retrieve.1.json",+ "id": "check_upgrade_parameters--Customer.retrieve.16.json","livemode": false,"metadata": {},"object": "payment_method",diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.19.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.19.jsonnew file mode 100644index 00000000000..ec72778bc0a--- /dev/null+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.19.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": null,+ "default_currency": null,+ "default_source": null,+ "delinquent": false,+ "description": "zulip (Zulip Dev)",+ "discount": null,+ "email": "[email protected]",+ "id": "check_upgrade_parameters--Customer.retrieve.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "check_upgrade_parameters--Customer.retrieve.1.json",+ "id": "check_upgrade_parameters--Customer.retrieve.19.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "realm_id": "1",+ "realm_str": "zulip"+ },+ "name": null,+ "next_invoice_sequence": 1,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.2.jsonindex c60bafff466..bec3f0a3561 100644--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.2.json+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.2.json@@ -9,7 +9,7 @@"description": "zulip (Zulip Dev)","discount": null,"email": "[email protected]",- "id": "check_upgrade_parameters--Customer.create.1.json",+ "id": "check_upgrade_parameters--Customer.retrieve.1.json","invoice_prefix": "NORMALIZED","invoice_settings": {"custom_fields": null,@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -55,7 +55,7 @@"wallet": null},"created": 1000000000,- "customer": "check_upgrade_parameters--Customer.create.1.json",+ "customer": "check_upgrade_parameters--Customer.retrieve.1.json","id": "check_upgrade_parameters--Customer.retrieve.1.json","livemode": false,"metadata": {},diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.20.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.20.jsonnew file mode 100644index 00000000000..ec72778bc0a--- /dev/null+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.20.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": null,+ "default_currency": null,+ "default_source": null,+ "delinquent": false,+ "description": "zulip (Zulip Dev)",+ "discount": null,+ "email": "[email protected]",+ "id": "check_upgrade_parameters--Customer.retrieve.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "check_upgrade_parameters--Customer.retrieve.1.json",+ "id": "check_upgrade_parameters--Customer.retrieve.19.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "realm_id": "1",+ "realm_str": "zulip"+ },+ "name": null,+ "next_invoice_sequence": 1,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.21.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.21.jsonnew file mode 100644index 00000000000..ec72778bc0a--- /dev/null+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.21.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": null,+ "default_currency": null,+ "default_source": null,+ "delinquent": false,+ "description": "zulip (Zulip Dev)",+ "discount": null,+ "email": "[email protected]",+ "id": "check_upgrade_parameters--Customer.retrieve.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "check_upgrade_parameters--Customer.retrieve.1.json",+ "id": "check_upgrade_parameters--Customer.retrieve.19.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "realm_id": "1",+ "realm_str": "zulip"+ },+ "name": null,+ "next_invoice_sequence": 1,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.22.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.22.jsonnew file mode 100644index 00000000000..8a629a4e08b--- /dev/null+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.22.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": null,+ "default_currency": null,+ "default_source": null,+ "delinquent": false,+ "description": "zulip (Zulip Dev)",+ "discount": null,+ "email": "[email protected]",+ "id": "check_upgrade_parameters--Customer.retrieve.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "check_upgrade_parameters--Customer.retrieve.1.json",+ "id": "check_upgrade_parameters--Customer.retrieve.22.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "realm_id": "1",+ "realm_str": "zulip"+ },+ "name": null,+ "next_invoice_sequence": 1,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.23.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.23.jsonnew file mode 100644index 00000000000..8a629a4e08b--- /dev/null+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.23.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": null,+ "default_currency": null,+ "default_source": null,+ "delinquent": false,+ "description": "zulip (Zulip Dev)",+ "discount": null,+ "email": "[email protected]",+ "id": "check_upgrade_parameters--Customer.retrieve.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "check_upgrade_parameters--Customer.retrieve.1.json",+ "id": "check_upgrade_parameters--Customer.retrieve.22.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "realm_id": "1",+ "realm_str": "zulip"+ },+ "name": null,+ "next_invoice_sequence": 1,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.24.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.24.jsonnew file mode 100644index 00000000000..8a629a4e08b--- /dev/null+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.24.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": null,+ "default_currency": null,+ "default_source": null,+ "delinquent": false,+ "description": "zulip (Zulip Dev)",+ "discount": null,+ "email": "[email protected]",+ "id": "check_upgrade_parameters--Customer.retrieve.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "check_upgrade_parameters--Customer.retrieve.1.json",+ "id": "check_upgrade_parameters--Customer.retrieve.22.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "realm_id": "1",+ "realm_str": "zulip"+ },+ "name": null,+ "next_invoice_sequence": 1,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.25.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.25.jsonnew file mode 100644index 00000000000..d8a33ba4126--- /dev/null+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.25.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": null,+ "default_currency": null,+ "default_source": null,+ "delinquent": false,+ "description": "zulip (Zulip Dev)",+ "discount": null,+ "email": "[email protected]",+ "id": "check_upgrade_parameters--Customer.retrieve.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "check_upgrade_parameters--Customer.retrieve.1.json",+ "id": "check_upgrade_parameters--Customer.retrieve.25.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "realm_id": "1",+ "realm_str": "zulip"+ },+ "name": null,+ "next_invoice_sequence": 1,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.26.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.26.jsonnew file mode 100644index 00000000000..d8a33ba4126--- /dev/null+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.26.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": null,+ "default_currency": null,+ "default_source": null,+ "delinquent": false,+ "description": "zulip (Zulip Dev)",+ "discount": null,+ "email": "[email protected]",+ "id": "check_upgrade_parameters--Customer.retrieve.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "check_upgrade_parameters--Customer.retrieve.1.json",+ "id": "check_upgrade_parameters--Customer.retrieve.25.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "realm_id": "1",+ "realm_str": "zulip"+ },+ "name": null,+ "next_invoice_sequence": 1,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.27.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.27.jsonnew file mode 100644index 00000000000..d8a33ba4126--- /dev/null+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.27.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": null,+ "default_currency": null,+ "default_source": null,+ "delinquent": false,+ "description": "zulip (Zulip Dev)",+ "discount": null,+ "email": "[email protected]",+ "id": "check_upgrade_parameters--Customer.retrieve.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "check_upgrade_parameters--Customer.retrieve.1.json",+ "id": "check_upgrade_parameters--Customer.retrieve.25.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "realm_id": "1",+ "realm_str": "zulip"+ },+ "name": null,+ "next_invoice_sequence": 1,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.3.jsonindex a095f315a03..bec3f0a3561 100644--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.3.json+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.3.json@@ -9,7 +9,7 @@"description": "zulip (Zulip Dev)","discount": null,"email": "[email protected]",- "id": "check_upgrade_parameters--Customer.create.1.json",+ "id": "check_upgrade_parameters--Customer.retrieve.1.json","invoice_prefix": "NORMALIZED","invoice_settings": {"custom_fields": null,@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -55,8 +55,8 @@"wallet": null},"created": 1000000000,- "customer": "check_upgrade_parameters--Customer.create.1.json",- "id": "check_upgrade_parameters--Customer.retrieve.3.json",+ "customer": "check_upgrade_parameters--Customer.retrieve.1.json",+ "id": "check_upgrade_parameters--Customer.retrieve.1.json","livemode": false,"metadata": {},"object": "payment_method",diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.4.jsonindex a095f315a03..1d84cc602bb 100644--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.4.json+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.4.json@@ -9,7 +9,7 @@"description": "zulip (Zulip Dev)","discount": null,"email": "[email protected]",- "id": "check_upgrade_parameters--Customer.create.1.json",+ "id": "check_upgrade_parameters--Customer.retrieve.1.json","invoice_prefix": "NORMALIZED","invoice_settings": {"custom_fields": null,@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -55,8 +55,8 @@"wallet": null},"created": 1000000000,- "customer": "check_upgrade_parameters--Customer.create.1.json",- "id": "check_upgrade_parameters--Customer.retrieve.3.json",+ "customer": "check_upgrade_parameters--Customer.retrieve.1.json",+ "id": "check_upgrade_parameters--Customer.retrieve.4.json","livemode": false,"metadata": {},"object": "payment_method",diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.5.jsonindex 99165dd4573..1d84cc602bb 100644--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.5.json+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.5.json@@ -9,7 +9,7 @@"description": "zulip (Zulip Dev)","discount": null,"email": "[email protected]",- "id": "check_upgrade_parameters--Customer.create.1.json",+ "id": "check_upgrade_parameters--Customer.retrieve.1.json","invoice_prefix": "NORMALIZED","invoice_settings": {"custom_fields": null,@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -55,8 +55,8 @@"wallet": null},"created": 1000000000,- "customer": "check_upgrade_parameters--Customer.create.1.json",- "id": "check_upgrade_parameters--Customer.retrieve.5.json",+ "customer": "check_upgrade_parameters--Customer.retrieve.1.json",+ "id": "check_upgrade_parameters--Customer.retrieve.4.json","livemode": false,"metadata": {},"object": "payment_method",diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.6.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.6.jsonindex 99165dd4573..1d84cc602bb 100644--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.6.json+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.6.json@@ -9,7 +9,7 @@"description": "zulip (Zulip Dev)","discount": null,"email": "[email protected]",- "id": "check_upgrade_parameters--Customer.create.1.json",+ "id": "check_upgrade_parameters--Customer.retrieve.1.json","invoice_prefix": "NORMALIZED","invoice_settings": {"custom_fields": null,@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -55,8 +55,8 @@"wallet": null},"created": 1000000000,- "customer": "check_upgrade_parameters--Customer.create.1.json",- "id": "check_upgrade_parameters--Customer.retrieve.5.json",+ "customer": "check_upgrade_parameters--Customer.retrieve.1.json",+ "id": "check_upgrade_parameters--Customer.retrieve.4.json","livemode": false,"metadata": {},"object": "payment_method",diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.7.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.7.jsonindex b55cd9c681e..75bf68adee8 100644--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.7.json+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.7.json@@ -9,7 +9,7 @@"description": "zulip (Zulip Dev)","discount": null,"email": "[email protected]",- "id": "check_upgrade_parameters--Customer.create.1.json",+ "id": "check_upgrade_parameters--Customer.retrieve.1.json","invoice_prefix": "NORMALIZED","invoice_settings": {"custom_fields": null,@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -55,7 +55,7 @@"wallet": null},"created": 1000000000,- "customer": "check_upgrade_parameters--Customer.create.1.json",+ "customer": "check_upgrade_parameters--Customer.retrieve.1.json","id": "check_upgrade_parameters--Customer.retrieve.7.json","livemode": false,"metadata": {},diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.8.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.8.jsonindex b55cd9c681e..75bf68adee8 100644--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.8.json+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.8.json@@ -9,7 +9,7 @@"description": "zulip (Zulip Dev)","discount": null,"email": "[email protected]",- "id": "check_upgrade_parameters--Customer.create.1.json",+ "id": "check_upgrade_parameters--Customer.retrieve.1.json","invoice_prefix": "NORMALIZED","invoice_settings": {"custom_fields": null,@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -55,7 +55,7 @@"wallet": null},"created": 1000000000,- "customer": "check_upgrade_parameters--Customer.create.1.json",+ "customer": "check_upgrade_parameters--Customer.retrieve.1.json","id": "check_upgrade_parameters--Customer.retrieve.7.json","livemode": false,"metadata": {},diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.9.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.9.jsonindex 7389c71bd2d..75bf68adee8 100644--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.9.json+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.9.json@@ -9,7 +9,7 @@"description": "zulip (Zulip Dev)","discount": null,"email": "[email protected]",- "id": "check_upgrade_parameters--Customer.create.1.json",+ "id": "check_upgrade_parameters--Customer.retrieve.1.json","invoice_prefix": "NORMALIZED","invoice_settings": {"custom_fields": null,@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -55,8 +55,8 @@"wallet": null},"created": 1000000000,- "customer": "check_upgrade_parameters--Customer.create.1.json",- "id": "check_upgrade_parameters--Customer.retrieve.10.json",+ "customer": "check_upgrade_parameters--Customer.retrieve.1.json",+ "id": "check_upgrade_parameters--Customer.retrieve.7.json","livemode": false,"metadata": {},"object": "payment_method",diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--PaymentMethod.create.1.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--PaymentMethod.create.1.jsonindex cdd29cb015e..2896d82c04c 100644--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--PaymentMethod.create.1.json+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--PaymentMethod.create.1.json@@ -6,7 +6,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -22,8 +22,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--PaymentMethod.create.2.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--PaymentMethod.create.2.jsonindex 9818f1c8ec5..365719d1102 100644--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--PaymentMethod.create.2.json+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--PaymentMethod.create.2.json@@ -6,7 +6,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -22,8 +22,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -41,7 +41,7 @@},"created": 1000000000,"customer": null,- "id": "check_upgrade_parameters--Customer.retrieve.3.json",+ "id": "check_upgrade_parameters--Customer.retrieve.4.json","livemode": false,"metadata": {},"object": "payment_method",diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--PaymentMethod.create.3.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--PaymentMethod.create.3.jsonindex 11766a3e027..20d72c95e2a 100644--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--PaymentMethod.create.3.json+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--PaymentMethod.create.3.json@@ -6,7 +6,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -22,8 +22,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -41,7 +41,7 @@},"created": 1000000000,"customer": null,- "id": "check_upgrade_parameters--Customer.retrieve.5.json",+ "id": "check_upgrade_parameters--Customer.retrieve.7.json","livemode": false,"metadata": {},"object": "payment_method",diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--PaymentMethod.create.4.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--PaymentMethod.create.4.jsonindex dad8073e190..7b8847b05b9 100644--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--PaymentMethod.create.4.json+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--PaymentMethod.create.4.json@@ -6,7 +6,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -22,8 +22,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -41,7 +41,7 @@},"created": 1000000000,"customer": null,- "id": "check_upgrade_parameters--Customer.retrieve.7.json",+ "id": "check_upgrade_parameters--Customer.retrieve.10.json","livemode": false,"metadata": {},"object": "payment_method",diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--PaymentMethod.create.5.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--PaymentMethod.create.5.jsonindex 47b1d887f34..0e5d41ed6c5 100644--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--PaymentMethod.create.5.json+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--PaymentMethod.create.5.json@@ -6,7 +6,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -22,8 +22,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -41,7 +41,7 @@},"created": 1000000000,"customer": null,- "id": "check_upgrade_parameters--Customer.retrieve.10.json",+ "id": "check_upgrade_parameters--Customer.retrieve.13.json","livemode": false,"metadata": {},"object": "payment_method",diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--PaymentMethod.create.6.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--PaymentMethod.create.6.jsonindex 8863407251b..f7339e81e03 100644--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--PaymentMethod.create.6.json+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--PaymentMethod.create.6.json@@ -6,7 +6,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -22,8 +22,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -41,7 +41,7 @@},"created": 1000000000,"customer": null,- "id": "check_upgrade_parameters--Customer.retrieve.11.json",+ "id": "check_upgrade_parameters--Customer.retrieve.16.json","livemode": false,"metadata": {},"object": "payment_method",diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--PaymentMethod.create.7.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--PaymentMethod.create.7.jsonindex bdaf5842782..4f6ef728ca7 100644--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--PaymentMethod.create.7.json+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--PaymentMethod.create.7.json@@ -6,7 +6,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -22,8 +22,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -41,7 +41,7 @@},"created": 1000000000,"customer": null,- "id": "check_upgrade_parameters--Customer.retrieve.13.json",+ "id": "check_upgrade_parameters--Customer.retrieve.19.json","livemode": false,"metadata": {},"object": "payment_method",diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--PaymentMethod.create.8.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--PaymentMethod.create.8.jsonindex f21026dc69e..29190dd9280 100644--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--PaymentMethod.create.8.json+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--PaymentMethod.create.8.json@@ -6,7 +6,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -22,8 +22,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -41,7 +41,7 @@},"created": 1000000000,"customer": null,- "id": "check_upgrade_parameters--Customer.retrieve.15.json",+ "id": "check_upgrade_parameters--Customer.retrieve.22.json","livemode": false,"metadata": {},"object": "payment_method",diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--PaymentMethod.create.9.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--PaymentMethod.create.9.jsonindex cf6d572a194..c95aae44ef7 100644--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--PaymentMethod.create.9.json+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--PaymentMethod.create.9.json@@ -6,7 +6,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -22,8 +22,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -41,7 +41,7 @@},"created": 1000000000,"customer": null,- "id": "check_upgrade_parameters--Customer.retrieve.17.json",+ "id": "check_upgrade_parameters--Customer.retrieve.25.json","livemode": false,"metadata": {},"object": "payment_method",diff --git a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Customer.retrieve.2.jsonindex 19dd71c5e4a..c6b1d674f46 100644--- a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Customer.retrieve.2.json+++ b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Customer.retrieve.2.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Customer.retrieve.3.jsonindex 19dd71c5e4a..c6b1d674f46 100644--- a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Customer.retrieve.3.json+++ b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Customer.retrieve.3.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Customer.retrieve.4.jsonindex 19dd71c5e4a..c6b1d674f46 100644--- a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Customer.retrieve.4.json+++ b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Customer.retrieve.4.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Customer.retrieve.5.jsonindex 19dd71c5e4a..c6b1d674f46 100644--- a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Customer.retrieve.5.json+++ b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Customer.retrieve.5.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Customer.retrieve.6.json b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Customer.retrieve.6.jsonindex a54c8e409c7..c6b1d674f46 100644--- a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Customer.retrieve.6.json+++ b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Customer.retrieve.6.json@@ -2,8 +2,8 @@"address": null,"balance": 0,"created": 1000000000,- "currency": "usd",- "default_currency": "usd",+ "currency": null,+ "default_currency": null,"default_source": null,"delinquent": false,"description": "zulip (Zulip Dev)",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -71,7 +71,7 @@"realm_str": "zulip"},"name": null,- "next_invoice_sequence": 2,+ "next_invoice_sequence": 1,"object": "customer","phone": null,"preferred_locales": [],diff --git a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Customer.retrieve.7.json b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Customer.retrieve.7.jsonnew file mode 100644index 00000000000..54786347ca6--- /dev/null+++ b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Customer.retrieve.7.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": "usd",+ "default_currency": "usd",+ "default_source": null,+ "delinquent": false,+ "description": "zulip (Zulip Dev)",+ "discount": null,+ "email": "[email protected]",+ "id": "customer_has_credit_card_as_default_payment_method--Customer.create.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "customer_has_credit_card_as_default_payment_method--Customer.create.1.json",+ "id": "customer_has_credit_card_as_default_payment_method--Customer.retrieve.2.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "realm_id": "1",+ "realm_str": "zulip"+ },+ "name": null,+ "next_invoice_sequence": 2,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Event.list.2.json b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Event.list.2.jsonindex 21923048e12..b3745987e53 100644--- a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Event.list.2.json+++ b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Event.list.2.json@@ -33,7 +33,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -82,8 +82,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -111,6 +111,7 @@},"type": "card"},+ "radar_options": {},"receipt_email": "[email protected]","receipt_number": null,"receipt_url": "https://pay.stripe.com/receipts/invoices/NORMALIZED?s=ap",@@ -209,7 +210,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -258,8 +259,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -287,6 +288,7 @@},"type": "card"},+ "radar_options": {},"receipt_email": "[email protected]","receipt_number": null,"receipt_url": "https://pay.stripe.com/receipts/invoices/NORMALIZED?s=ap",@@ -392,7 +394,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -466,7 +468,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -579,7 +583,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -653,7 +657,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -860,7 +866,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -934,7 +940,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -992,7 +1000,7 @@"metadata": {},"object": "invoiceitem","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,diff --git a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Event.list.3.json b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Event.list.3.jsonindex 92c238f6e24..e0a7b1ed34b 100644--- a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Event.list.3.json+++ b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Event.list.3.json@@ -49,7 +49,7 @@"footer": null,"from_invoice": null,"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",- "id": "customer_has_credit_card_as_default_payment_method--Event.list.2.json",+ "id": "customer_has_credit_card_as_default_payment_method--Event.list.3.json","invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap","issuer": {"type": "self"@@ -66,8 +66,8 @@"discount_amounts": [],"discountable": false,"discounts": [],- "id": "customer_has_credit_card_as_default_payment_method--Event.list.2.json",- "invoice": "customer_has_credit_card_as_default_payment_method--Event.list.2.json",+ "id": "customer_has_credit_card_as_default_payment_method--Event.list.3.json",+ "invoice": "customer_has_credit_card_as_default_payment_method--Event.list.3.json","invoice_item": "ii_NORMALIZED","livemode": false,"metadata": {},@@ -113,7 +113,7 @@"has_more": false,"object": "list","total_count": 1,- "url": "/v1/invoices/customer_has_credit_card_as_default_payment_method--Event.list.2.json/lines"+ "url": "/v1/invoices/customer_has_credit_card_as_default_payment_method--Event.list.3.json/lines"},"livemode": false,"metadata": {@@ -147,7 +147,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -174,13 +176,13 @@"total_excluding_tax": 48000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null}},"id": "customer_has_credit_card_as_default_payment_method--Event.list.3.json","livemode": false,"object": "event",- "pending_webhooks": 2,+ "pending_webhooks": 1,"request": {"id": "customer_has_credit_card_as_default_payment_method--Event.list.2.json","idempotency_key": "00000000-0000-0000-0000-000000000000"@@ -236,7 +238,7 @@"footer": null,"from_invoice": null,"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",- "id": "customer_has_credit_card_as_default_payment_method--Event.list.2.json",+ "id": "customer_has_credit_card_as_default_payment_method--Event.list.3.json","invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap","issuer": {"type": "self"@@ -253,8 +255,8 @@"discount_amounts": [],"discountable": false,"discounts": [],- "id": "customer_has_credit_card_as_default_payment_method--Event.list.2.json",- "invoice": "customer_has_credit_card_as_default_payment_method--Event.list.2.json",+ "id": "customer_has_credit_card_as_default_payment_method--Event.list.3.json",+ "invoice": "customer_has_credit_card_as_default_payment_method--Event.list.3.json","invoice_item": "ii_NORMALIZED","livemode": false,"metadata": {},@@ -300,7 +302,7 @@"has_more": false,"object": "list","total_count": 1,- "url": "/v1/invoices/customer_has_credit_card_as_default_payment_method--Event.list.2.json/lines"+ "url": "/v1/invoices/customer_has_credit_card_as_default_payment_method--Event.list.3.json/lines"},"livemode": false,"metadata": {@@ -334,7 +336,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -361,7 +365,7 @@"total_excluding_tax": 48000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null}},"id": "customer_has_credit_card_as_default_payment_method--Event.list.3.json",@@ -423,7 +427,7 @@"footer": null,"from_invoice": null,"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",- "id": "customer_has_credit_card_as_default_payment_method--Event.list.2.json",+ "id": "customer_has_credit_card_as_default_payment_method--Event.list.3.json","invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap","issuer": {"type": "self"@@ -440,8 +444,8 @@"discount_amounts": [],"discountable": false,"discounts": [],- "id": "customer_has_credit_card_as_default_payment_method--Event.list.2.json",- "invoice": "customer_has_credit_card_as_default_payment_method--Event.list.2.json",+ "id": "customer_has_credit_card_as_default_payment_method--Event.list.3.json",+ "invoice": "customer_has_credit_card_as_default_payment_method--Event.list.3.json","invoice_item": "ii_NORMALIZED","livemode": false,"metadata": {},@@ -487,7 +491,7 @@"has_more": false,"object": "list","total_count": 1,- "url": "/v1/invoices/customer_has_credit_card_as_default_payment_method--Event.list.2.json/lines"+ "url": "/v1/invoices/customer_has_credit_card_as_default_payment_method--Event.list.3.json/lines"},"livemode": false,"metadata": {@@ -521,7 +525,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -548,7 +554,7 @@"total_excluding_tax": 48000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null},"previous_attributes": {"amount_paid": 0,diff --git a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Invoice.create.1.json b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Invoice.create.1.jsonindex 8c4397863fc..ea4bc6001f8 100644--- a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Invoice.create.1.json+++ b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Invoice.create.1.json@@ -43,7 +43,7 @@"footer": null,"from_invoice": null,"hosted_invoice_url": null,- "id": "customer_has_credit_card_as_default_payment_method--Event.list.2.json",+ "id": "customer_has_credit_card_as_default_payment_method--Event.list.3.json","invoice_pdf": null,"issuer": {"type": "self"@@ -60,8 +60,8 @@"discount_amounts": [],"discountable": false,"discounts": [],- "id": "customer_has_credit_card_as_default_payment_method--Event.list.2.json",- "invoice": "customer_has_credit_card_as_default_payment_method--Event.list.2.json",+ "id": "customer_has_credit_card_as_default_payment_method--Event.list.3.json",+ "invoice": "customer_has_credit_card_as_default_payment_method--Event.list.3.json","invoice_item": "ii_NORMALIZED","livemode": false,"metadata": {},@@ -107,7 +107,7 @@"has_more": false,"object": "list","total_count": 1,- "url": "/v1/invoices/customer_has_credit_card_as_default_payment_method--Event.list.2.json/lines"+ "url": "/v1/invoices/customer_has_credit_card_as_default_payment_method--Event.list.3.json/lines"},"livemode": false,"metadata": {@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Invoice.finalize_invoice.1.jsonindex bc7edc3b536..18f558d44d0 100644--- a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Invoice.finalize_invoice.1.json+++ b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Invoice.finalize_invoice.1.json@@ -43,7 +43,7 @@"footer": null,"from_invoice": null,"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",- "id": "customer_has_credit_card_as_default_payment_method--Event.list.2.json",+ "id": "customer_has_credit_card_as_default_payment_method--Event.list.3.json","invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap","issuer": {"type": "self"@@ -60,8 +60,8 @@"discount_amounts": [],"discountable": false,"discounts": [],- "id": "customer_has_credit_card_as_default_payment_method--Event.list.2.json",- "invoice": "customer_has_credit_card_as_default_payment_method--Event.list.2.json",+ "id": "customer_has_credit_card_as_default_payment_method--Event.list.3.json",+ "invoice": "customer_has_credit_card_as_default_payment_method--Event.list.3.json","invoice_item": "ii_NORMALIZED","livemode": false,"metadata": {},@@ -107,7 +107,7 @@"has_more": false,"object": "list","total_count": 1,- "url": "/v1/invoices/customer_has_credit_card_as_default_payment_method--Event.list.2.json/lines"+ "url": "/v1/invoices/customer_has_credit_card_as_default_payment_method--Event.list.3.json/lines"},"livemode": false,"metadata": {@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Invoice.pay.1.jsonindex 7779103e485..816df86e94c 100644--- a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Invoice.pay.1.json+++ b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Invoice.pay.1.json@@ -43,7 +43,7 @@"footer": null,"from_invoice": null,"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",- "id": "customer_has_credit_card_as_default_payment_method--Event.list.2.json",+ "id": "customer_has_credit_card_as_default_payment_method--Event.list.3.json","invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap","issuer": {"type": "self"@@ -60,8 +60,8 @@"discount_amounts": [],"discountable": false,"discounts": [],- "id": "customer_has_credit_card_as_default_payment_method--Event.list.2.json",- "invoice": "customer_has_credit_card_as_default_payment_method--Event.list.2.json",+ "id": "customer_has_credit_card_as_default_payment_method--Event.list.3.json",+ "invoice": "customer_has_credit_card_as_default_payment_method--Event.list.3.json","invoice_item": "ii_NORMALIZED","livemode": false,"metadata": {},@@ -107,7 +107,7 @@"has_more": false,"object": "list","total_count": 1,- "url": "/v1/invoices/customer_has_credit_card_as_default_payment_method--Event.list.2.json/lines"+ "url": "/v1/invoices/customer_has_credit_card_as_default_payment_method--Event.list.3.json/lines"},"livemode": false,"metadata": {@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -168,5 +170,5 @@"total_excluding_tax": 48000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null}diff --git a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--InvoiceItem.create.1.jsonindex 4802aaf9ab1..c0098940929 100644--- a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--InvoiceItem.create.1.json+++ b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--InvoiceItem.create.1.json@@ -6,7 +6,7 @@"description": "Zulip Cloud Standard","discountable": false,"discounts": [],- "id": "customer_has_credit_card_as_default_payment_method--Event.list.2.json",+ "id": "customer_has_credit_card_as_default_payment_method--InvoiceItem.create.1.json","invoice": null,"livemode": false,"metadata": {},diff --git a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--PaymentMethod.create.1.json b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--PaymentMethod.create.1.jsonindex c15d13d8374..8d77fcc8021 100644--- a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--PaymentMethod.create.1.json+++ b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--PaymentMethod.create.1.json@@ -6,7 +6,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -22,8 +22,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/downgrade_at_end_of_free_trial--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/downgrade_at_end_of_free_trial--Customer.retrieve.1.jsonindex d3cf3028c35..ae01fdf5f48 100644--- a/corporate/tests/stripe_fixtures/downgrade_at_end_of_free_trial--Customer.retrieve.1.json+++ b/corporate/tests/stripe_fixtures/downgrade_at_end_of_free_trial--Customer.retrieve.1.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/downgrade_at_end_of_free_trial--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/downgrade_at_end_of_free_trial--Customer.retrieve.2.jsonindex d3cf3028c35..ae01fdf5f48 100644--- a/corporate/tests/stripe_fixtures/downgrade_at_end_of_free_trial--Customer.retrieve.2.json+++ b/corporate/tests/stripe_fixtures/downgrade_at_end_of_free_trial--Customer.retrieve.2.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/downgrade_at_end_of_free_trial--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/downgrade_at_end_of_free_trial--Customer.retrieve.3.jsonindex d3cf3028c35..ae01fdf5f48 100644--- a/corporate/tests/stripe_fixtures/downgrade_at_end_of_free_trial--Customer.retrieve.3.json+++ b/corporate/tests/stripe_fixtures/downgrade_at_end_of_free_trial--Customer.retrieve.3.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/downgrade_at_end_of_free_trial--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/downgrade_at_end_of_free_trial--Customer.retrieve.4.jsonindex d3cf3028c35..ae01fdf5f48 100644--- a/corporate/tests/stripe_fixtures/downgrade_at_end_of_free_trial--Customer.retrieve.4.json+++ b/corporate/tests/stripe_fixtures/downgrade_at_end_of_free_trial--Customer.retrieve.4.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/downgrade_at_end_of_free_trial--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/downgrade_at_end_of_free_trial--Customer.retrieve.5.jsonnew file mode 100644index 00000000000..ae01fdf5f48--- /dev/null+++ b/corporate/tests/stripe_fixtures/downgrade_at_end_of_free_trial--Customer.retrieve.5.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": null,+ "default_currency": null,+ "default_source": null,+ "delinquent": false,+ "description": "zulip (Zulip Dev)",+ "discount": null,+ "email": "[email protected]",+ "id": "downgrade_at_end_of_free_trial--Customer.create.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "downgrade_at_end_of_free_trial--Customer.create.1.json",+ "id": "downgrade_at_end_of_free_trial--Customer.retrieve.1.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "realm_id": "1",+ "realm_str": "zulip"+ },+ "name": null,+ "next_invoice_sequence": 1,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/downgrade_at_end_of_free_trial--PaymentMethod.create.1.json b/corporate/tests/stripe_fixtures/downgrade_at_end_of_free_trial--PaymentMethod.create.1.jsonindex 0e732290b79..4d70729a769 100644--- a/corporate/tests/stripe_fixtures/downgrade_at_end_of_free_trial--PaymentMethod.create.1.json+++ b/corporate/tests/stripe_fixtures/downgrade_at_end_of_free_trial--PaymentMethod.create.1.json@@ -6,7 +6,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -22,8 +22,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Event.list.1.json b/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Event.list.1.jsonindex aa069c266c1..9469d9b5d8d 100644--- a/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Event.list.1.json+++ b/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Event.list.1.json@@ -8,9 +8,9 @@"account_country": "US","account_name": "Kandra Labs, Inc.","account_tax_ids": null,- "amount_due": 24000,+ "amount_due": 70939,"amount_paid": 0,- "amount_remaining": 24000,+ "amount_remaining": 70939,"amount_shipping": 0,"application": null,"application_fee_amount": null,@@ -59,10 +59,10 @@"lines": {"data": [{- "amount": 24000,- "amount_excluding_tax": 24000,+ "amount": 72000,+ "amount_excluding_tax": 72000,"currency": "usd",- "description": "Zulip Cloud Standard - renewal",+ "description": "Zulip Cloud Plus - renewal","discount_amounts": [],"discountable": false,"discounts": [],@@ -73,8 +73,8 @@"metadata": {},"object": "line_item","period": {- "end": 1388631845,- "start": 1357095845+ "end": 1000000000,+ "start": 1000000000},"plan": null,"price": {@@ -95,8 +95,8 @@"tiers_mode": null,"transform_quantity": null,"type": "one_time",- "unit_amount": 4000,- "unit_amount_decimal": "4000"+ "unit_amount": 12000,+ "unit_amount_decimal": "12000"},"proration": false,"proration_details": {@@ -107,7 +107,7 @@"tax_amounts": [],"tax_rates": [],"type": "invoiceitem",- "unit_amount_excluding_tax": "4000"+ "unit_amount_excluding_tax": "12000"}],"has_more": false,@@ -139,13 +139,15 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,"shipping_details": null,- "starting_balance": 0,- "statement_descriptor": "Zulip Cloud Standard",+ "starting_balance": -1061,+ "statement_descriptor": "Zulip Cloud Plus","status": "open","status_transitions": {"finalized_at": 1000000000,@@ -157,16 +159,16 @@"subscription_details": {"metadata": null},- "subtotal": 24000,- "subtotal_excluding_tax": 24000,+ "subtotal": 72000,+ "subtotal_excluding_tax": 72000,"tax": null,"test_clock": null,- "total": 24000,+ "total": 72000,"total_discount_amounts": [],- "total_excluding_tax": 24000,+ "total_excluding_tax": 72000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null}},"id": "downgrade_realm_and_void_open_invoices--Event.list.1.json",diff --git a/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Event.list.2.json b/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Event.list.2.jsonindex 731854a94a9..f27c19e872b 100644--- a/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Event.list.2.json+++ b/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Event.list.2.json@@ -76,7 +76,7 @@"id": "downgrade_realm_and_void_open_invoices--Event.list.2.json","livemode": false,"object": "event",- "pending_webhooks": 2,+ "pending_webhooks": 1,"request": {"id": "downgrade_realm_and_void_open_invoices--Event.list.2.json","idempotency_key": "00000000-0000-0000-0000-000000000000"@@ -340,7 +340,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -527,7 +529,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -815,7 +819,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Event.list.3.json b/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Event.list.3.jsonindex fd9aaad488d..49b2bc839d3 100644--- a/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Event.list.3.json+++ b/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Event.list.3.json@@ -147,7 +147,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -334,7 +336,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Invoice.create.1.json b/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Invoice.create.1.jsonindex 35d85174d0a..45a1840e11d 100644--- a/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Invoice.create.1.json+++ b/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Invoice.create.1.json@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Invoice.create.2.json b/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Invoice.create.2.jsonindex f0dee0b1ff5..52bf119abf7 100644--- a/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Invoice.create.2.json+++ b/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Invoice.create.2.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Invoice.finalize_invoice.1.jsonindex d8cf1720c96..4d007488eae 100644--- a/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Invoice.finalize_invoice.1.json+++ b/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Invoice.finalize_invoice.1.json@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Invoice.finalize_invoice.2.json b/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Invoice.finalize_invoice.2.jsonindex 7ce941ec1ac..7fd5efcff7d 100644--- a/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Invoice.finalize_invoice.2.json+++ b/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Invoice.finalize_invoice.2.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Invoice.list.1.json b/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Invoice.list.1.jsonindex 3e43ba50b94..6637d75bd75 100644--- a/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Invoice.list.1.json+++ b/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Invoice.list.1.json@@ -135,7 +135,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -307,7 +309,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Invoice.pay.1.jsonindex 6d5fa73f6ca..0c838d48269 100644--- a/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Invoice.pay.1.json+++ b/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Invoice.pay.1.json@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Invoice.void_invoice.1.json b/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Invoice.void_invoice.1.jsonindex 7e523cc048c..3bfaaebe41b 100644--- a/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Invoice.void_invoice.1.json+++ b/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Invoice.void_invoice.1.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.1.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.1.jsonindex ea8443ff181..7b211d3c683 100644--- a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.1.json+++ b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.1.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.2.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.2.jsonindex f2e0bce4954..ad65c20c565 100644--- a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.2.json+++ b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.2.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.3.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.3.jsonindex 671455c28b4..16e704a3cdb 100644--- a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.3.json+++ b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.3.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.4.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.4.jsonindex d6dbf86edc8..b6813f1002e 100644--- a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.4.json+++ b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.4.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.5.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.5.jsonindex d0fca31552a..88b8625e18a 100644--- a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.5.json+++ b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.5.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.6.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.6.jsonindex 7f5075e6b55..fe6528be793 100644--- a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.6.json+++ b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.6.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.7.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.7.jsonindex fd364b47b3f..f9acaaa14ae 100644--- a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.7.json+++ b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.7.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.8.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.8.jsonindex 0a4ad9724a4..8f90bc6707c 100644--- a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.8.json+++ b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.8.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.finalize_invoice.1.jsonindex d0c577dab9c..a5f474bffd5 100644--- a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.finalize_invoice.1.json+++ b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.finalize_invoice.1.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -160,5 +162,5 @@"total_excluding_tax": 10000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null}diff --git a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.finalize_invoice.2.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.finalize_invoice.2.jsonindex 32f68e16eb8..ae8eecc7bee 100644--- a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.finalize_invoice.2.json+++ b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.finalize_invoice.2.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.finalize_invoice.3.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.finalize_invoice.3.jsonindex 753e9fa9763..ffec9057d11 100644--- a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.finalize_invoice.3.json+++ b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.finalize_invoice.3.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.finalize_invoice.4.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.finalize_invoice.4.jsonindex 7947c17cefb..e54a1367729 100644--- a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.finalize_invoice.4.json+++ b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.finalize_invoice.4.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -160,5 +162,5 @@"total_excluding_tax": 10000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null}diff --git a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.finalize_invoice.5.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.finalize_invoice.5.jsonindex 9f55726e77a..035eb3d210e 100644--- a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.finalize_invoice.5.json+++ b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.finalize_invoice.5.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.finalize_invoice.6.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.finalize_invoice.6.jsonindex 278fbfe31d6..8df7756273c 100644--- a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.finalize_invoice.6.json+++ b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.finalize_invoice.6.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.finalize_invoice.7.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.finalize_invoice.7.jsonindex 2e41b5cb58e..5e06295f8be 100644--- a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.finalize_invoice.7.json+++ b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.finalize_invoice.7.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.finalize_invoice.8.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.finalize_invoice.8.jsonindex 65361c0514b..66009084a0f 100644--- a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.finalize_invoice.8.json+++ b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.finalize_invoice.8.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.10.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.10.jsonindex 6874392836b..09408c5f802 100644--- a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.10.json+++ b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.10.json@@ -135,7 +135,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -299,7 +301,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.12.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.12.jsonindex 50d33e56c22..ceaa12d63a9 100644--- a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.12.json+++ b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.12.json@@ -135,7 +135,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.13.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.13.jsonindex a69d1d27552..d8d0ea6dcdc 100644--- a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.13.json+++ b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.13.json@@ -135,7 +135,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.14.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.14.jsonindex 26b08138479..9b0129728ad 100644--- a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.14.json+++ b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.14.json@@ -135,7 +135,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.15.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.15.jsonindex 02e6748a62d..65fcaa61179 100644--- a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.15.json+++ b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.15.json@@ -135,7 +135,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -299,7 +301,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.2.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.2.jsonindex c6518760d7a..7208b845e51 100644--- a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.2.json+++ b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.2.json@@ -135,7 +135,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.3.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.3.jsonindex c6518760d7a..7208b845e51 100644--- a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.3.json+++ b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.3.json@@ -135,7 +135,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.6.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.6.jsonindex 50d33e56c22..ceaa12d63a9 100644--- a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.6.json+++ b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.6.json@@ -135,7 +135,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.7.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.7.jsonindex 465141f8cd4..b1abe59bc55 100644--- a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.7.json+++ b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.7.json@@ -135,7 +135,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -299,7 +301,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.8.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.8.jsonindex 465141f8cd4..b1abe59bc55 100644--- a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.8.json+++ b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.8.json@@ -135,7 +135,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -299,7 +301,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.pay.1.jsonindex 184cd1b39e9..4b33a24f835 100644--- a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.pay.1.json+++ b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.pay.1.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.pay.2.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.pay.2.jsonindex cc62319ff2b..56e6936671b 100644--- a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.pay.2.json+++ b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.pay.2.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.void_invoice.1.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.void_invoice.1.jsonindex e92879fab9c..7281988f25a 100644--- a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.void_invoice.1.json+++ b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.void_invoice.1.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.void_invoice.2.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.void_invoice.2.jsonindex 14850f44ce2..3462deb1f26 100644--- a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.void_invoice.2.json+++ b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.void_invoice.2.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.void_invoice.3.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.void_invoice.3.jsonindex 5215acd2b97..9bf21647843 100644--- a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.void_invoice.3.json+++ b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.void_invoice.3.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/end_free_trial--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/end_free_trial--Customer.retrieve.1.jsonindex 1f8b0762bd8..dc7946c35a2 100644--- a/corporate/tests/stripe_fixtures/end_free_trial--Customer.retrieve.1.json+++ b/corporate/tests/stripe_fixtures/end_free_trial--Customer.retrieve.1.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/end_free_trial--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/end_free_trial--Customer.retrieve.2.jsonindex 1f8b0762bd8..dc7946c35a2 100644--- a/corporate/tests/stripe_fixtures/end_free_trial--Customer.retrieve.2.json+++ b/corporate/tests/stripe_fixtures/end_free_trial--Customer.retrieve.2.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/end_free_trial--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/end_free_trial--Customer.retrieve.3.jsonindex 1f8b0762bd8..dc7946c35a2 100644--- a/corporate/tests/stripe_fixtures/end_free_trial--Customer.retrieve.3.json+++ b/corporate/tests/stripe_fixtures/end_free_trial--Customer.retrieve.3.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/end_free_trial--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/end_free_trial--Customer.retrieve.4.jsonindex 1f8b0762bd8..dc7946c35a2 100644--- a/corporate/tests/stripe_fixtures/end_free_trial--Customer.retrieve.4.json+++ b/corporate/tests/stripe_fixtures/end_free_trial--Customer.retrieve.4.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/end_free_trial--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/end_free_trial--Customer.retrieve.5.jsonnew file mode 100644index 00000000000..dc7946c35a2--- /dev/null+++ b/corporate/tests/stripe_fixtures/end_free_trial--Customer.retrieve.5.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": null,+ "default_currency": null,+ "default_source": null,+ "delinquent": false,+ "description": "zulip (Zulip Dev)",+ "discount": null,+ "email": "[email protected]",+ "id": "end_free_trial--Customer.create.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "end_free_trial--Customer.create.1.json",+ "id": "end_free_trial--Customer.retrieve.1.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "realm_id": "1",+ "realm_str": "zulip"+ },+ "name": null,+ "next_invoice_sequence": 1,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/end_free_trial--PaymentMethod.create.1.json b/corporate/tests/stripe_fixtures/end_free_trial--PaymentMethod.create.1.jsonindex 5a204b678a7..3b1db7ed82d 100644--- a/corporate/tests/stripe_fixtures/end_free_trial--PaymentMethod.create.1.json+++ b/corporate/tests/stripe_fixtures/end_free_trial--PaymentMethod.create.1.json@@ -6,7 +6,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -22,8 +22,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/fixed_price_plans--Event.list.1.json b/corporate/tests/stripe_fixtures/fixed_price_plans--Event.list.1.jsonindex 9001509296d..d5e3a3b600b 100644--- a/corporate/tests/stripe_fixtures/fixed_price_plans--Event.list.1.json+++ b/corporate/tests/stripe_fixtures/fixed_price_plans--Event.list.1.json@@ -5,17 +5,228 @@"created": 1000000000,"data": {"object": {- "configuration": "bpc_NORMALIZED",+ "account_country": "US",+ "account_name": "Kandra Labs, Inc.",+ "account_tax_ids": null,+ "amount_due": 176000,+ "amount_paid": 176000,+ "amount_remaining": 0,+ "amount_shipping": 0,+ "application": null,+ "application_fee_amount": null,+ "attempt_count": 1,+ "attempted": true,+ "auto_advance": false,+ "automatic_tax": {+ "enabled": false,+ "liability": null,+ "status": null+ },+ "automatically_finalizes_at": null,+ "billing_reason": "manual",+ "charge": "ch_NORMALIZED",+ "collection_method": "charge_automatically","created": 1000000000,+ "currency": "usd",+ "custom_fields": null,"customer": "cus_NORMALIZED",- "flow": null,+ "customer_address": null,+ "customer_email": "[email protected]",+ "customer_name": null,+ "customer_phone": null,+ "customer_shipping": null,+ "customer_tax_exempt": "none",+ "customer_tax_ids": [],+ "default_payment_method": null,+ "default_source": null,+ "default_tax_rates": [],+ "description": null,+ "discount": null,+ "discounts": [],+ "due_date": null,+ "effective_at": 1000000000,+ "ending_balance": 0,+ "footer": null,+ "from_invoice": null,+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap","id": "fixed_price_plans--Event.list.1.json",+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",+ "issuer": {+ "type": "self"+ },+ "last_finalization_error": null,+ "latest_revision": null,+ "lines": {+ "data": [+ {+ "amount": -24000,+ "amount_excluding_tax": -24000,+ "currency": "usd",+ "description": "$20.00/month new customer discount",+ "discount_amounts": [],+ "discountable": false,+ "discounts": [],+ "id": "fixed_price_plans--Event.list.1.json",+ "invoice": "fixed_price_plans--Event.list.1.json",+ "invoice_item": "ii_NORMALIZED",+ "livemode": false,+ "metadata": {},+ "object": "line_item",+ "period": {+ "end": 1357095845,+ "start": 1325473445+ },+ "plan": null,+ "price": {+ "active": false,+ "billing_scheme": "per_unit",+ "created": 1000000000,+ "currency": "usd",+ "custom_unit_amount": null,+ "id": "fixed_price_plans--Event.list.1.json",+ "livemode": false,+ "lookup_key": null,+ "metadata": {},+ "nickname": null,+ "object": "price",+ "product": "prod_NORMALIZED",+ "recurring": null,+ "tax_behavior": "unspecified",+ "tiers_mode": null,+ "transform_quantity": null,+ "type": "one_time",+ "unit_amount": -24000,+ "unit_amount_decimal": "-24000"+ },+ "proration": false,+ "proration_details": {+ "credited_items": null+ },+ "quantity": 1,+ "subscription": null,+ "tax_amounts": [],+ "tax_rates": [],+ "type": "invoiceitem",+ "unit_amount_excluding_tax": "-24000"+ },+ {+ "amount": 200000,+ "amount_excluding_tax": 200000,+ "currency": "usd",+ "description": "Zulip Business",+ "discount_amounts": [],+ "discountable": false,+ "discounts": [],+ "id": "fixed_price_plans--Event.list.1.json",+ "invoice": "fixed_price_plans--Event.list.1.json",+ "invoice_item": "ii_NORMALIZED",+ "livemode": false,+ "metadata": {},+ "object": "line_item",+ "period": {+ "end": 1357095845,+ "start": 1325473445+ },+ "plan": null,+ "price": {+ "active": false,+ "billing_scheme": "per_unit",+ "created": 1000000000,+ "currency": "usd",+ "custom_unit_amount": null,+ "id": "fixed_price_plans--Event.list.1.json",+ "livemode": false,+ "lookup_key": null,+ "metadata": {},+ "nickname": null,+ "object": "price",+ "product": "prod_NORMALIZED",+ "recurring": null,+ "tax_behavior": "unspecified",+ "tiers_mode": null,+ "transform_quantity": null,+ "type": "one_time",+ "unit_amount": 8000,+ "unit_amount_decimal": "8000"+ },+ "proration": false,+ "proration_details": {+ "credited_items": null+ },+ "quantity": 25,+ "subscription": null,+ "tax_amounts": [],+ "tax_rates": [],+ "type": "invoiceitem",+ "unit_amount_excluding_tax": "8000"+ }+ ],+ "has_more": false,+ "object": "list",+ "total_count": 2,+ "url": "/v1/invoices/fixed_price_plans--Event.list.1.json/lines"+ },"livemode": false,- "locale": null,- "object": "billing_portal.session",+ "metadata": {+ "billing_schedule": "1",+ "current_plan_id": "None",+ "license_management": "automatic",+ "licenses": "25",+ "on_free_trial": "False",+ "plan_tier": "104"+ },+ "next_payment_attempt": null,+ "number": "NORMALIZED",+ "object": "invoice","on_behalf_of": null,- "return_url": "http://selfhosting.testserver/realm/f6d476f5-b66f-45ce-8623-a273ff4d7787/billing/",- "url": "https://billing.stripe.com/p/session/test_NORMALIZED"+ "paid": true,+ "paid_out_of_band": false,+ "payment_intent": "pi_NORMALIZED",+ "payment_settings": {+ "default_mandate": null,+ "payment_method_options": null,+ "payment_method_types": null+ },+ "period_end": 1000000000,+ "period_start": 1000000000,+ "post_payment_credit_notes_amount": 0,+ "pre_payment_credit_notes_amount": 0,+ "quote": null,+ "receipt_number": null,+ "rendering": {+ "amount_tax_display": null,+ "pdf": {+ "page_size": "letter"+ },+ "template": null,+ "template_version": null+ },+ "rendering_options": null,+ "shipping_cost": null,+ "shipping_details": null,+ "starting_balance": 0,+ "statement_descriptor": "Zulip Business",+ "status": "paid",+ "status_transitions": {+ "finalized_at": 1000000000,+ "marked_uncollectible_at": null,+ "paid_at": 1000000000,+ "voided_at": null+ },+ "subscription": null,+ "subscription_details": {+ "metadata": null+ },+ "subtotal": 176000,+ "subtotal_excluding_tax": 176000,+ "tax": null,+ "test_clock": null,+ "total": 176000,+ "total_discount_amounts": [],+ "total_excluding_tax": 176000,+ "total_tax_amounts": [],+ "transfer_data": null,+ "webhooks_delivered_at": 1000000000}},"id": "fixed_price_plans--Event.list.1.json",@@ -26,7 +237,7 @@"id": "fixed_price_plans--Event.list.1.json","idempotency_key": "00000000-0000-0000-0000-000000000000"},- "type": "billing_portal.session.created"+ "type": "invoice.payment_succeeded"}],"has_more": true,diff --git a/corporate/tests/stripe_fixtures/fixed_price_plans--Event.list.2.json b/corporate/tests/stripe_fixtures/fixed_price_plans--Event.list.2.jsonindex 41951c8ef15..f73b3bced5c 100644--- a/corporate/tests/stripe_fixtures/fixed_price_plans--Event.list.2.json+++ b/corporate/tests/stripe_fixtures/fixed_price_plans--Event.list.2.json@@ -1,5 +1,393 @@{"data": [+ {+ "api_version": "2020-08-27",+ "created": 1000000000,+ "data": {+ "object": {+ "account_country": "US",+ "account_name": "Kandra Labs, Inc.",+ "account_tax_ids": null,+ "amount_due": 984000,+ "amount_paid": 0,+ "amount_remaining": 984000,+ "amount_shipping": 0,+ "application": null,+ "application_fee_amount": null,+ "attempt_count": 0,+ "attempted": false,+ "auto_advance": false,+ "automatic_tax": {+ "enabled": false,+ "liability": null,+ "status": null+ },+ "automatically_finalizes_at": null,+ "billing_reason": "manual",+ "charge": null,+ "collection_method": "send_invoice",+ "created": 1000000000,+ "currency": "usd",+ "custom_fields": null,+ "customer": "fixed_price_plans--Customer.create.1.json",+ "customer_address": null,+ "customer_email": "[email protected]",+ "customer_name": null,+ "customer_phone": null,+ "customer_shipping": null,+ "customer_tax_exempt": "none",+ "customer_tax_ids": [],+ "default_payment_method": null,+ "default_source": null,+ "default_tax_rates": [],+ "description": null,+ "discount": null,+ "discounts": [],+ "due_date": 1000000000,+ "effective_at": 1000000000,+ "ending_balance": 0,+ "footer": null,+ "from_invoice": null,+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",+ "id": "fixed_price_plans--Event.list.2.json",+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",+ "issuer": {+ "type": "self"+ },+ "last_finalization_error": null,+ "latest_revision": null,+ "lines": {+ "data": [+ {+ "amount": 984000,+ "amount_excluding_tax": 984000,+ "currency": "usd",+ "description": "Zulip Cloud Standard",+ "discount_amounts": [],+ "discountable": false,+ "discounts": [],+ "id": "fixed_price_plans--Event.list.2.json",+ "invoice": "fixed_price_plans--Event.list.2.json",+ "invoice_item": "fixed_price_plans--Event.list.2.json",+ "livemode": false,+ "metadata": {},+ "object": "line_item",+ "period": {+ "end": 1357095845,+ "start": 1325473445+ },+ "plan": null,+ "price": {+ "active": false,+ "billing_scheme": "per_unit",+ "created": 1000000000,+ "currency": "usd",+ "custom_unit_amount": null,+ "id": "fixed_price_plans--Event.list.2.json",+ "livemode": false,+ "lookup_key": null,+ "metadata": {},+ "nickname": null,+ "object": "price",+ "product": "prod_NORMALIZED",+ "recurring": null,+ "tax_behavior": "unspecified",+ "tiers_mode": null,+ "transform_quantity": null,+ "type": "one_time",+ "unit_amount": 8000,+ "unit_amount_decimal": "8000"+ },+ "proration": false,+ "proration_details": {+ "credited_items": null+ },+ "quantity": 123,+ "subscription": null,+ "tax_amounts": [],+ "tax_rates": [],+ "type": "invoiceitem",+ "unit_amount_excluding_tax": "8000"+ }+ ],+ "has_more": false,+ "object": "list",+ "total_count": 1,+ "url": "/v1/invoices/fixed_price_plans--Event.list.2.json/lines"+ },+ "livemode": false,+ "metadata": {+ "billing_schedule": "1",+ "current_plan_id": "None",+ "license_management": "manual",+ "licenses": "123",+ "on_free_trial": "False",+ "plan_tier": "1",+ "user_id": "10"+ },+ "next_payment_attempt": null,+ "number": "NORMALIZED-0001",+ "object": "invoice",+ "on_behalf_of": null,+ "paid": true,+ "paid_out_of_band": true,+ "payment_intent": null,+ "payment_settings": {+ "default_mandate": null,+ "payment_method_options": null,+ "payment_method_types": null+ },+ "period_end": 1000000000,+ "period_start": 1000000000,+ "post_payment_credit_notes_amount": 0,+ "pre_payment_credit_notes_amount": 0,+ "quote": null,+ "receipt_number": null,+ "rendering": {+ "amount_tax_display": null,+ "pdf": {+ "page_size": "letter"+ },+ "template": null,+ "template_version": null+ },+ "rendering_options": null,+ "shipping_cost": null,+ "shipping_details": null,+ "starting_balance": 0,+ "statement_descriptor": "Zulip Cloud Standard",+ "status": "paid",+ "status_transitions": {+ "finalized_at": 1000000000,+ "marked_uncollectible_at": null,+ "paid_at": 1000000000,+ "voided_at": null+ },+ "subscription": null,+ "subscription_details": {+ "metadata": null+ },+ "subtotal": 984000,+ "subtotal_excluding_tax": 984000,+ "tax": null,+ "test_clock": null,+ "total": 984000,+ "total_discount_amounts": [],+ "total_excluding_tax": 984000,+ "total_tax_amounts": [],+ "transfer_data": null,+ "webhooks_delivered_at": 1000000000+ }+ },+ "id": "fixed_price_plans--Event.list.2.json",+ "livemode": false,+ "object": "event",+ "pending_webhooks": 0,+ "request": {+ "id": "fixed_price_plans--Event.list.2.json",+ "idempotency_key": "00000000-0000-0000-0000-000000000000"+ },+ "type": "invoice.paid"+ },+ {+ "api_version": "2020-08-27",+ "created": 1000000000,+ "data": {+ "object": {+ "account_country": "US",+ "account_name": "Kandra Labs, Inc.",+ "account_tax_ids": null,+ "amount_due": 984000,+ "amount_paid": 0,+ "amount_remaining": 984000,+ "amount_shipping": 0,+ "application": null,+ "application_fee_amount": null,+ "attempt_count": 0,+ "attempted": false,+ "auto_advance": false,+ "automatic_tax": {+ "enabled": false,+ "liability": null,+ "status": null+ },+ "automatically_finalizes_at": null,+ "billing_reason": "manual",+ "charge": null,+ "collection_method": "send_invoice",+ "created": 1000000000,+ "currency": "usd",+ "custom_fields": null,+ "customer": "fixed_price_plans--Customer.create.1.json",+ "customer_address": null,+ "customer_email": "[email protected]",+ "customer_name": null,+ "customer_phone": null,+ "customer_shipping": null,+ "customer_tax_exempt": "none",+ "customer_tax_ids": [],+ "default_payment_method": null,+ "default_source": null,+ "default_tax_rates": [],+ "description": null,+ "discount": null,+ "discounts": [],+ "due_date": 1000000000,+ "effective_at": 1000000000,+ "ending_balance": 0,+ "footer": null,+ "from_invoice": null,+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",+ "id": "fixed_price_plans--Event.list.2.json",+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",+ "issuer": {+ "type": "self"+ },+ "last_finalization_error": null,+ "latest_revision": null,+ "lines": {+ "data": [+ {+ "amount": 984000,+ "amount_excluding_tax": 984000,+ "currency": "usd",+ "description": "Zulip Cloud Standard",+ "discount_amounts": [],+ "discountable": false,+ "discounts": [],+ "id": "fixed_price_plans--Event.list.2.json",+ "invoice": "fixed_price_plans--Event.list.2.json",+ "invoice_item": "fixed_price_plans--Event.list.2.json",+ "livemode": false,+ "metadata": {},+ "object": "line_item",+ "period": {+ "end": 1357095845,+ "start": 1325473445+ },+ "plan": null,+ "price": {+ "active": false,+ "billing_scheme": "per_unit",+ "created": 1000000000,+ "currency": "usd",+ "custom_unit_amount": null,+ "id": "fixed_price_plans--Event.list.2.json",+ "livemode": false,+ "lookup_key": null,+ "metadata": {},+ "nickname": null,+ "object": "price",+ "product": "prod_NORMALIZED",+ "recurring": null,+ "tax_behavior": "unspecified",+ "tiers_mode": null,+ "transform_quantity": null,+ "type": "one_time",+ "unit_amount": 8000,+ "unit_amount_decimal": "8000"+ },+ "proration": false,+ "proration_details": {+ "credited_items": null+ },+ "quantity": 123,+ "subscription": null,+ "tax_amounts": [],+ "tax_rates": [],+ "type": "invoiceitem",+ "unit_amount_excluding_tax": "8000"+ }+ ],+ "has_more": false,+ "object": "list",+ "total_count": 1,+ "url": "/v1/invoices/fixed_price_plans--Event.list.2.json/lines"+ },+ "livemode": false,+ "metadata": {+ "billing_schedule": "1",+ "current_plan_id": "None",+ "license_management": "manual",+ "licenses": "123",+ "on_free_trial": "False",+ "plan_tier": "1",+ "user_id": "10"+ },+ "next_payment_attempt": null,+ "number": "NORMALIZED-0001",+ "object": "invoice",+ "on_behalf_of": null,+ "paid": true,+ "paid_out_of_band": true,+ "payment_intent": null,+ "payment_settings": {+ "default_mandate": null,+ "payment_method_options": null,+ "payment_method_types": null+ },+ "period_end": 1000000000,+ "period_start": 1000000000,+ "post_payment_credit_notes_amount": 0,+ "pre_payment_credit_notes_amount": 0,+ "quote": null,+ "receipt_number": null,+ "rendering": {+ "amount_tax_display": null,+ "pdf": {+ "page_size": "letter"+ },+ "template": null,+ "template_version": null+ },+ "rendering_options": null,+ "shipping_cost": null,+ "shipping_details": null,+ "starting_balance": 0,+ "statement_descriptor": "Zulip Cloud Standard",+ "status": "paid",+ "status_transitions": {+ "finalized_at": 1000000000,+ "marked_uncollectible_at": null,+ "paid_at": 1000000000,+ "voided_at": null+ },+ "subscription": null,+ "subscription_details": {+ "metadata": null+ },+ "subtotal": 984000,+ "subtotal_excluding_tax": 984000,+ "tax": null,+ "test_clock": null,+ "total": 984000,+ "total_discount_amounts": [],+ "total_excluding_tax": 984000,+ "total_tax_amounts": [],+ "transfer_data": null,+ "webhooks_delivered_at": 1000000000+ },+ "previous_attributes": {+ "auto_advance": true,+ "paid": false,+ "paid_out_of_band": false,+ "payment_intent": "fixed_price_plans--Event.list.2.json",+ "status": "open",+ "status_transitions": {+ "paid_at": null+ }+ }+ },+ "id": "fixed_price_plans--Event.list.2.json",+ "livemode": false,+ "object": "event",+ "pending_webhooks": 0,+ "request": {+ "id": "fixed_price_plans--Event.list.2.json",+ "idempotency_key": "00000000-0000-0000-0000-000000000000"+ },+ "type": "invoice.updated"+ },{"api_version": "2020-08-27","created": 1000000000,@@ -83,116 +471,6 @@},"type": "payment_intent.canceled"},- {- "api_version": "2020-08-27",- "created": 1000000000,- "data": {- "object": {- "ach_credit_transfer": {- "account_number": "test_NORMALIZED",- "bank_name": "TEST BANK",- "fingerprint": "NORMALIZED",- "refund_account_holder_name": null,- "refund_account_holder_type": null,- "refund_routing_number": null,- "routing_number": "110000000",- "swift_code": "TSTEZ122"- },- "amount": null,- "client_secret": "NORMALIZED",- "created": 1000000000,- "currency": "usd",- "customer": "fixed_price_plans--Customer.create.1.json",- "flow": "receiver",- "id": "fixed_price_plans--Event.list.2.json",- "livemode": false,- "metadata": {},- "object": "source",- "owner": {- "address": null,- "email": "[email protected]",- "name": null,- "phone": null,- "verified_address": null,- "verified_email": null,- "verified_name": null,- "verified_phone": null- },- "receiver": {- "address": "000000000-test_NORMALIZED",- "amount_charged": 0,- "amount_received": 0,- "amount_returned": 0,- "refund_attributes_method": "email",- "refund_attributes_status": "missing"- },- "statement_descriptor": null,- "status": "pending",- "type": "ach_credit_transfer",- "usage": "reusable"- }- },- "id": "fixed_price_plans--Event.list.2.json",- "livemode": false,- "object": "event",- "pending_webhooks": 0,- "request": {- "id": null,- "idempotency_key": "00000000-0000-0000-0000-000000000000"- },- "type": "customer.source.created"- },- {- "api_version": "2020-08-27",- "created": 1000000000,- "data": {- "object": {- "address": null,- "balance": 0,- "created": 1000000000,- "currency": "usd",- "default_currency": "usd",- "default_source": "fixed_price_plans--Event.list.2.json",- "delinquent": false,- "description": "zulip (Zulip Dev)",- "discount": null,- "email": "[email protected]",- "id": "fixed_price_plans--Customer.create.1.json",- "invoice_prefix": "NORMALIZED",- "invoice_settings": {- "custom_fields": null,- "default_payment_method": null,- "footer": null,- "rendering_options": null- },- "livemode": false,- "metadata": {- "realm_id": "1",- "realm_str": "zulip"- },- "name": null,- "next_invoice_sequence": 2,- "object": "customer",- "phone": null,- "preferred_locales": [],- "shipping": null,- "tax_exempt": "none",- "test_clock": null- },- "previous_attributes": {- "default_source": null- }- },- "id": "fixed_price_plans--Event.list.2.json",- "livemode": false,- "object": "event",- "pending_webhooks": 0,- "request": {- "id": null,- "idempotency_key": "00000000-0000-0000-0000-000000000000"- },- "type": "customer.updated"- },{"api_version": "2020-08-27","created": 1000000000,@@ -340,7 +618,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -527,7 +807,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -815,7 +1097,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/fixed_price_plans--Event.list.3.json b/corporate/tests/stripe_fixtures/fixed_price_plans--Event.list.3.jsonindex 7fb6ec90e26..3dd43afccf2 100644--- a/corporate/tests/stripe_fixtures/fixed_price_plans--Event.list.3.json+++ b/corporate/tests/stripe_fixtures/fixed_price_plans--Event.list.3.json@@ -5,176 +5,48 @@"created": 1000000000,"data": {"object": {- "account_country": "US",- "account_name": "Kandra Labs, Inc.",- "account_tax_ids": null,- "amount_due": 984000,- "amount_paid": 0,- "amount_remaining": 984000,- "amount_shipping": 0,- "application": null,- "application_fee_amount": null,- "attempt_count": 0,- "attempted": false,- "auto_advance": false,- "automatic_tax": {- "enabled": false,- "liability": null,- "status": null- },- "automatically_finalizes_at": null,- "billing_reason": "manual",- "charge": null,- "collection_method": "send_invoice",+ "ach_credit_transfer": {+ "account_number": "test_NORMALIZED",+ "bank_name": "TEST BANK",+ "fingerprint": "NORMALIZED",+ "refund_account_holder_name": null,+ "refund_account_holder_type": null,+ "refund_routing_number": null,+ "routing_number": "110000000",+ "swift_code": "TSTEZ122"+ },+ "amount": null,+ "client_secret": "NORMALIZED","created": 1000000000,"currency": "usd",- "custom_fields": null,- "customer": "cus_NORMALIZED",- "customer_address": null,- "customer_email": "[email protected]",- "customer_name": null,- "customer_phone": null,- "customer_shipping": null,- "customer_tax_exempt": "none",- "customer_tax_ids": [],- "default_payment_method": null,- "default_source": null,- "default_tax_rates": [],- "description": null,- "discount": null,- "discounts": [],- "due_date": 1000000000,- "effective_at": 1000000000,- "ending_balance": 0,- "footer": null,- "from_invoice": null,- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",- "id": "fixed_price_plans--Event.list.2.json",- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",- "issuer": {- "type": "self"- },- "last_finalization_error": null,- "latest_revision": null,- "lines": {- "data": [- {- "amount": 984000,- "amount_excluding_tax": 984000,- "currency": "usd",- "description": "Zulip Cloud Standard",- "discount_amounts": [],- "discountable": false,- "discounts": [],- "id": "fixed_price_plans--Event.list.2.json",- "invoice": "fixed_price_plans--Event.list.2.json",- "invoice_item": "ii_NORMALIZED",- "livemode": false,- "metadata": {},- "object": "line_item",- "period": {- "end": 1357095845,- "start": 1325473445- },- "plan": null,- "price": {- "active": false,- "billing_scheme": "per_unit",- "created": 1000000000,- "currency": "usd",- "custom_unit_amount": null,- "id": "fixed_price_plans--Event.list.2.json",- "livemode": false,- "lookup_key": null,- "metadata": {},- "nickname": null,- "object": "price",- "product": "prod_NORMALIZED",- "recurring": null,- "tax_behavior": "unspecified",- "tiers_mode": null,- "transform_quantity": null,- "type": "one_time",- "unit_amount": 8000,- "unit_amount_decimal": "8000"- },- "proration": false,- "proration_details": {- "credited_items": null- },- "quantity": 123,- "subscription": null,- "tax_amounts": [],- "tax_rates": [],- "type": "invoiceitem",- "unit_amount_excluding_tax": "8000"- }- ],- "has_more": false,- "object": "list",- "total_count": 1,- "url": "/v1/invoices/fixed_price_plans--Event.list.2.json/lines"- },+ "customer": "fixed_price_plans--Customer.create.1.json",+ "flow": "receiver",+ "id": "fixed_price_plans--Event.list.3.json","livemode": false,- "metadata": {- "billing_schedule": "1",- "current_plan_id": "None",- "license_management": "manual",- "licenses": "123",- "on_free_trial": "False",- "plan_tier": "1",- "user_id": "10"- },- "next_payment_attempt": null,- "number": "NORMALIZED",- "object": "invoice",- "on_behalf_of": null,- "paid": true,- "paid_out_of_band": true,- "payment_intent": null,- "payment_settings": {- "default_mandate": null,- "payment_method_options": null,- "payment_method_types": null- },- "period_end": 1000000000,- "period_start": 1000000000,- "post_payment_credit_notes_amount": 0,- "pre_payment_credit_notes_amount": 0,- "quote": null,- "receipt_number": null,- "rendering": {- "amount_tax_display": null,- "pdf": {- "page_size": "letter"- }- },- "rendering_options": null,- "shipping_cost": null,- "shipping_details": null,- "starting_balance": 0,- "statement_descriptor": "Zulip Cloud Standard",- "status": "paid",- "status_transitions": {- "finalized_at": 1000000000,- "marked_uncollectible_at": null,- "paid_at": 1000000000,- "voided_at": null- },- "subscription": null,- "subscription_details": {- "metadata": null- },- "subtotal": 984000,- "subtotal_excluding_tax": 984000,- "tax": null,- "test_clock": null,- "total": 984000,- "total_discount_amounts": [],- "total_excluding_tax": 984000,- "total_tax_amounts": [],- "transfer_data": null,- "webhooks_delivered_at": 1000000000+ "metadata": {},+ "object": "source",+ "owner": {+ "address": null,+ "email": "[email protected]",+ "name": null,+ "phone": null,+ "verified_address": null,+ "verified_email": null,+ "verified_name": null,+ "verified_phone": null+ },+ "receiver": {+ "address": "000000000-test_NORMALIZED",+ "amount_charged": 0,+ "amount_received": 0,+ "amount_returned": 0,+ "refund_attributes_method": "email",+ "refund_attributes_status": "missing"+ },+ "statement_descriptor": null,+ "status": "pending",+ "type": "ach_credit_transfer",+ "usage": "reusable"}},"id": "fixed_price_plans--Event.list.3.json",@@ -182,196 +54,50 @@"object": "event","pending_webhooks": 0,"request": {- "id": "fixed_price_plans--Event.list.2.json",+ "id": null,"idempotency_key": "00000000-0000-0000-0000-000000000000"},- "type": "invoice.paid"+ "type": "customer.source.created"},{"api_version": "2020-08-27","created": 1000000000,"data": {"object": {- "account_country": "US",- "account_name": "Kandra Labs, Inc.",- "account_tax_ids": null,- "amount_due": 984000,- "amount_paid": 0,- "amount_remaining": 984000,- "amount_shipping": 0,- "application": null,- "application_fee_amount": null,- "attempt_count": 0,- "attempted": false,- "auto_advance": false,- "automatic_tax": {- "enabled": false,- "liability": null,- "status": null- },- "automatically_finalizes_at": null,- "billing_reason": "manual",- "charge": null,- "collection_method": "send_invoice",+ "address": null,+ "balance": 0,"created": 1000000000,"currency": "usd",- "custom_fields": null,- "customer": "cus_NORMALIZED",- "customer_address": null,- "customer_email": "[email protected]",- "customer_name": null,- "customer_phone": null,- "customer_shipping": null,- "customer_tax_exempt": "none",- "customer_tax_ids": [],- "default_payment_method": null,- "default_source": null,- "default_tax_rates": [],- "description": null,+ "default_currency": "usd",+ "default_source": "fixed_price_plans--Event.list.3.json",+ "delinquent": false,+ "description": "zulip (Zulip Dev)","discount": null,- "discounts": [],- "due_date": 1000000000,- "effective_at": 1000000000,- "ending_balance": 0,- "footer": null,- "from_invoice": null,- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",- "id": "fixed_price_plans--Event.list.2.json",- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",- "issuer": {- "type": "self"- },- "last_finalization_error": null,- "latest_revision": null,- "lines": {- "data": [- {- "amount": 984000,- "amount_excluding_tax": 984000,- "currency": "usd",- "description": "Zulip Cloud Standard",- "discount_amounts": [],- "discountable": false,- "discounts": [],- "id": "fixed_price_plans--Event.list.2.json",- "invoice": "fixed_price_plans--Event.list.2.json",- "invoice_item": "ii_NORMALIZED",- "livemode": false,- "metadata": {},- "object": "line_item",- "period": {- "end": 1357095845,- "start": 1325473445- },- "plan": null,- "price": {- "active": false,- "billing_scheme": "per_unit",- "created": 1000000000,- "currency": "usd",- "custom_unit_amount": null,- "id": "fixed_price_plans--Event.list.2.json",- "livemode": false,- "lookup_key": null,- "metadata": {},- "nickname": null,- "object": "price",- "product": "prod_NORMALIZED",- "recurring": null,- "tax_behavior": "unspecified",- "tiers_mode": null,- "transform_quantity": null,- "type": "one_time",- "unit_amount": 8000,- "unit_amount_decimal": "8000"- },- "proration": false,- "proration_details": {- "credited_items": null- },- "quantity": 123,- "subscription": null,- "tax_amounts": [],- "tax_rates": [],- "type": "invoiceitem",- "unit_amount_excluding_tax": "8000"- }- ],- "has_more": false,- "object": "list",- "total_count": 1,- "url": "/v1/invoices/fixed_price_plans--Event.list.2.json/lines"+ "email": "[email protected]",+ "id": "fixed_price_plans--Customer.create.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": null,+ "footer": null,+ "rendering_options": null},"livemode": false,"metadata": {- "billing_schedule": "1",- "current_plan_id": "None",- "license_management": "manual",- "licenses": "123",- "on_free_trial": "False",- "plan_tier": "1",- "user_id": "10"- },- "next_payment_attempt": null,- "number": "NORMALIZED",- "object": "invoice",- "on_behalf_of": null,- "paid": true,- "paid_out_of_band": true,- "payment_intent": null,- "payment_settings": {- "default_mandate": null,- "payment_method_options": null,- "payment_method_types": null- },- "period_end": 1000000000,- "period_start": 1000000000,- "post_payment_credit_notes_amount": 0,- "pre_payment_credit_notes_amount": 0,- "quote": null,- "receipt_number": null,- "rendering": {- "amount_tax_display": null,- "pdf": {- "page_size": "letter"- }- },- "rendering_options": null,- "shipping_cost": null,- "shipping_details": null,- "starting_balance": 0,- "statement_descriptor": "Zulip Cloud Standard",- "status": "paid",- "status_transitions": {- "finalized_at": 1000000000,- "marked_uncollectible_at": null,- "paid_at": 1000000000,- "voided_at": null- },- "subscription": null,- "subscription_details": {- "metadata": null- },- "subtotal": 984000,- "subtotal_excluding_tax": 984000,- "tax": null,- "test_clock": null,- "total": 984000,- "total_discount_amounts": [],- "total_excluding_tax": 984000,- "total_tax_amounts": [],- "transfer_data": null,- "webhooks_delivered_at": 1000000000+ "realm_id": "1",+ "realm_str": "zulip"+ },+ "name": null,+ "next_invoice_sequence": 2,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null},"previous_attributes": {- "auto_advance": true,- "paid": false,- "paid_out_of_band": false,- "payment_intent": "pi_NORMALIZED",- "status": "open",- "status_transitions": {- "paid_at": null- }+ "default_source": null}},"id": "fixed_price_plans--Event.list.3.json",@@ -379,10 +105,10 @@"object": "event","pending_webhooks": 0,"request": {- "id": "fixed_price_plans--Event.list.2.json",+ "id": null,"idempotency_key": "00000000-0000-0000-0000-000000000000"},- "type": "invoice.updated"+ "type": "customer.updated"}],"has_more": false,diff --git a/corporate/tests/stripe_fixtures/fixed_price_plans--Invoice.create.1.json b/corporate/tests/stripe_fixtures/fixed_price_plans--Invoice.create.1.jsonindex 190042bf247..3a569217a6e 100644--- a/corporate/tests/stripe_fixtures/fixed_price_plans--Invoice.create.1.json+++ b/corporate/tests/stripe_fixtures/fixed_price_plans--Invoice.create.1.json@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/fixed_price_plans--Invoice.create.2.json b/corporate/tests/stripe_fixtures/fixed_price_plans--Invoice.create.2.jsonindex 4d698182b6f..9cd640e1e9e 100644--- a/corporate/tests/stripe_fixtures/fixed_price_plans--Invoice.create.2.json+++ b/corporate/tests/stripe_fixtures/fixed_price_plans--Invoice.create.2.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/fixed_price_plans--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/fixed_price_plans--Invoice.finalize_invoice.1.jsonindex a24d39b5a8c..14f707016f7 100644--- a/corporate/tests/stripe_fixtures/fixed_price_plans--Invoice.finalize_invoice.1.json+++ b/corporate/tests/stripe_fixtures/fixed_price_plans--Invoice.finalize_invoice.1.json@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/fixed_price_plans--Invoice.finalize_invoice.2.json b/corporate/tests/stripe_fixtures/fixed_price_plans--Invoice.finalize_invoice.2.jsonindex ac2b76e8980..55dca9d46e1 100644--- a/corporate/tests/stripe_fixtures/fixed_price_plans--Invoice.finalize_invoice.2.json+++ b/corporate/tests/stripe_fixtures/fixed_price_plans--Invoice.finalize_invoice.2.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/fixed_price_plans--Invoice.list.1.json b/corporate/tests/stripe_fixtures/fixed_price_plans--Invoice.list.1.jsonindex 53661b410fb..812ebffe29c 100644--- a/corporate/tests/stripe_fixtures/fixed_price_plans--Invoice.list.1.json+++ b/corporate/tests/stripe_fixtures/fixed_price_plans--Invoice.list.1.json@@ -135,7 +135,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -307,7 +309,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/fixed_price_plans--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/fixed_price_plans--Invoice.pay.1.jsonindex 21c3ea4e979..b3273427141 100644--- a/corporate/tests/stripe_fixtures/fixed_price_plans--Invoice.pay.1.json+++ b/corporate/tests/stripe_fixtures/fixed_price_plans--Invoice.pay.1.json@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Customer.retrieve.1.jsonindex 4a254fd45f3..cbf73f0957e 100644--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Customer.retrieve.1.json+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Customer.retrieve.1.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Customer.retrieve.2.jsonindex 4a254fd45f3..cbf73f0957e 100644--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Customer.retrieve.2.json+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Customer.retrieve.2.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Customer.retrieve.3.jsonindex 4a254fd45f3..cbf73f0957e 100644--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Customer.retrieve.3.json+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Customer.retrieve.3.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Customer.retrieve.4.jsonindex 4a254fd45f3..cbf73f0957e 100644--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Customer.retrieve.4.json+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Customer.retrieve.4.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Customer.retrieve.5.jsonindex 89d61182fe9..cbf73f0957e 100644--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Customer.retrieve.5.json+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Customer.retrieve.5.json@@ -2,8 +2,8 @@"address": null,"balance": 0,"created": 1000000000,- "currency": "usd",- "default_currency": "usd",+ "currency": null,+ "default_currency": null,"default_source": null,"delinquent": false,"description": "demo.example.com 6cde5f7a-1f7",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,10 +68,10 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,- "next_invoice_sequence": 2,+ "next_invoice_sequence": 1,"object": "customer","phone": null,"preferred_locales": [],diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Customer.retrieve.6.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Customer.retrieve.6.jsonnew file mode 100644index 00000000000..8048d6cd5d4--- /dev/null+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Customer.retrieve.6.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": "usd",+ "default_currency": "usd",+ "default_source": null,+ "delinquent": false,+ "description": "demo.example.com 6cde5f7a-1f7",+ "discount": null,+ "email": "[email protected]",+ "id": "free_trial_not_available_for_active_legacy_customer--Customer.create.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "free_trial_not_available_for_active_legacy_customer--Customer.create.1.json",+ "id": "free_trial_not_available_for_active_legacy_customer--Customer.retrieve.1.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "remote_server_str": "demo.example.com 6cde5f7a-1f7",+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"+ },+ "name": null,+ "next_invoice_sequence": 2,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Event.list.2.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Event.list.2.jsonindex 5af77ac5fbf..3651863e77a 100644--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Event.list.2.json+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Event.list.2.json@@ -33,7 +33,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -82,8 +82,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -111,6 +111,7 @@},"type": "card"},+ "radar_options": {},"receipt_email": "[email protected]","receipt_number": null,"receipt_url": "https://pay.stripe.com/receipts/invoices/NORMALIZED?s=ap",@@ -209,7 +210,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -258,8 +259,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -287,6 +288,7 @@},"type": "card"},+ "radar_options": {},"receipt_email": "[email protected]","receipt_number": null,"receipt_url": "https://pay.stripe.com/receipts/invoices/NORMALIZED?s=ap",@@ -516,7 +518,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -753,7 +757,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -1084,7 +1090,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -1274,7 +1282,7 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Event.list.3.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Event.list.3.jsonindex 614b063b30e..8753184b8ea 100644--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Event.list.3.json+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Event.list.3.json@@ -197,7 +197,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -230,7 +232,7 @@"id": "free_trial_not_available_for_active_legacy_customer--Event.list.3.json","livemode": false,"object": "event",- "pending_webhooks": 0,+ "pending_webhooks": 1,"request": {"id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json","idempotency_key": "00000000-0000-0000-0000-000000000000"@@ -434,7 +436,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -671,7 +675,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Invoice.create.1.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Invoice.create.1.jsonindex 963c5341db9..f58a5b160dc 100644--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Invoice.create.1.json+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Invoice.create.1.json@@ -191,7 +191,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Invoice.finalize_invoice.1.jsonindex 0c21dc1bc01..c0002479bfc 100644--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Invoice.finalize_invoice.1.json+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Invoice.finalize_invoice.1.json@@ -191,7 +191,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Invoice.pay.1.jsonindex db0772c6e28..3ba28ce81a0 100644--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Invoice.pay.1.json+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Invoice.pay.1.json@@ -191,7 +191,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--PaymentMethod.create.1.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--PaymentMethod.create.1.jsonindex 03bf5f48939..9a19d36742a 100644--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--PaymentMethod.create.1.json+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--PaymentMethod.create.1.json@@ -6,7 +6,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -22,8 +22,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Customer.retrieve.1.jsonindex e37d7aaf2c7..7a8a0e99253 100644--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Customer.retrieve.1.json+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Customer.retrieve.1.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Customer.retrieve.2.jsonindex e37d7aaf2c7..7a8a0e99253 100644--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Customer.retrieve.2.json+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Customer.retrieve.2.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Customer.retrieve.3.jsonindex e37d7aaf2c7..7a8a0e99253 100644--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Customer.retrieve.3.json+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Customer.retrieve.3.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Customer.retrieve.4.jsonindex e37d7aaf2c7..7a8a0e99253 100644--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Customer.retrieve.4.json+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Customer.retrieve.4.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Customer.retrieve.5.jsonindex 8d0d8dc2e5b..7a8a0e99253 100644--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Customer.retrieve.5.json+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Customer.retrieve.5.json@@ -2,8 +2,8 @@"address": null,"balance": 0,"created": 1000000000,- "currency": "usd",- "default_currency": "usd",+ "currency": null,+ "default_currency": null,"default_source": null,"delinquent": false,"description": "demo.example.com 6cde5f7a-1f7",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,10 +68,10 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,- "next_invoice_sequence": 2,+ "next_invoice_sequence": 1,"object": "customer","phone": null,"preferred_locales": [],diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Customer.retrieve.6.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Customer.retrieve.6.jsonnew file mode 100644index 00000000000..7b39c48644d--- /dev/null+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Customer.retrieve.6.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": "usd",+ "default_currency": "usd",+ "default_source": null,+ "delinquent": false,+ "description": "demo.example.com 6cde5f7a-1f7",+ "discount": null,+ "email": "[email protected]",+ "id": "free_trial_not_available_for_ended_legacy_customer--Customer.create.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "free_trial_not_available_for_ended_legacy_customer--Customer.create.1.json",+ "id": "free_trial_not_available_for_ended_legacy_customer--Customer.retrieve.1.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "remote_server_str": "demo.example.com 6cde5f7a-1f7",+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"+ },+ "name": null,+ "next_invoice_sequence": 2,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Event.list.2.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Event.list.2.jsonindex 46118d2d81d..a12780047b0 100644--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Event.list.2.json+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Event.list.2.json@@ -33,7 +33,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -82,8 +82,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -184,7 +184,7 @@"id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json","livemode": false,"object": "event",- "pending_webhooks": 1,+ "pending_webhooks": 0,"request": {"id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json","idempotency_key": "00000000-0000-0000-0000-000000000000"@@ -209,7 +209,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -258,8 +258,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -516,7 +516,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -543,7 +545,7 @@"total_excluding_tax": 4300,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null}},"id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",@@ -753,7 +755,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -780,7 +784,7 @@"total_excluding_tax": 4300,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null},"previous_attributes": {"effective_at": null,@@ -1084,7 +1088,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -1274,7 +1280,7 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Event.list.3.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Event.list.3.jsonindex 90acea9f4dd..980c5fd85ea 100644--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Event.list.3.json+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Event.list.3.json@@ -117,7 +117,7 @@"discount_amounts": [],"discountable": false,"discounts": [],- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",+ "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.3.json","invoice": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json","invoice_item": "ii_NORMALIZED","livemode": false,@@ -197,7 +197,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -230,7 +232,7 @@"id": "free_trial_not_available_for_ended_legacy_customer--Event.list.3.json","livemode": false,"object": "event",- "pending_webhooks": 1,+ "pending_webhooks": 2,"request": {"id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json","idempotency_key": "00000000-0000-0000-0000-000000000000"@@ -354,7 +356,7 @@"discount_amounts": [],"discountable": false,"discounts": [],- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",+ "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.3.json","invoice": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json","invoice_item": "ii_NORMALIZED","livemode": false,@@ -434,7 +436,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -591,7 +595,7 @@"discount_amounts": [],"discountable": false,"discounts": [],- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",+ "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.3.json","invoice": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json","invoice_item": "ii_NORMALIZED","livemode": false,@@ -671,7 +675,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Invoice.create.1.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Invoice.create.1.jsonindex eaaf1256987..a06ad96fccd 100644--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Invoice.create.1.json+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Invoice.create.1.json@@ -111,7 +111,7 @@"discount_amounts": [],"discountable": false,"discounts": [],- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",+ "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.3.json","invoice": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json","invoice_item": "ii_NORMALIZED","livemode": false,@@ -191,7 +191,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Invoice.finalize_invoice.1.jsonindex 554284783e6..6282c26c6e6 100644--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Invoice.finalize_invoice.1.json+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Invoice.finalize_invoice.1.json@@ -111,7 +111,7 @@"discount_amounts": [],"discountable": false,"discounts": [],- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",+ "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.3.json","invoice": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json","invoice_item": "ii_NORMALIZED","livemode": false,@@ -191,7 +191,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -218,5 +220,5 @@"total_excluding_tax": 4300,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null}diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Invoice.pay.1.jsonindex 2ff3a5a8474..6845dc71456 100644--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Invoice.pay.1.json+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Invoice.pay.1.json@@ -111,7 +111,7 @@"discount_amounts": [],"discountable": false,"discounts": [],- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",+ "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.3.json","invoice": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json","invoice_item": "ii_NORMALIZED","livemode": false,@@ -191,7 +191,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--PaymentMethod.create.1.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--PaymentMethod.create.1.jsonindex 61ef46badd4..212936f29c5 100644--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--PaymentMethod.create.1.json+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--PaymentMethod.create.1.json@@ -6,7 +6,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -22,8 +22,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Customer.retrieve.2.jsonindex 127674172b9..73993bcaace 100644--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Customer.retrieve.2.json+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Customer.retrieve.2.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Customer.retrieve.3.jsonindex 127674172b9..73993bcaace 100644--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Customer.retrieve.3.json+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Customer.retrieve.3.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Customer.retrieve.4.jsonindex 127674172b9..73993bcaace 100644--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Customer.retrieve.4.json+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Customer.retrieve.4.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Customer.retrieve.5.jsonindex 127674172b9..73993bcaace 100644--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Customer.retrieve.5.json+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Customer.retrieve.5.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Customer.retrieve.6.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Customer.retrieve.6.jsonindex 127674172b9..73993bcaace 100644--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Customer.retrieve.6.json+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Customer.retrieve.6.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Customer.retrieve.7.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Customer.retrieve.7.jsonindex 8516fbf6d17..73993bcaace 100644--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Customer.retrieve.7.json+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Customer.retrieve.7.json@@ -2,8 +2,8 @@"address": null,"balance": 0,"created": 1000000000,- "currency": "usd",- "default_currency": "usd",+ "currency": null,+ "default_currency": null,"default_source": null,"delinquent": false,"description": "zulip (Zulip Dev)",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -71,7 +71,7 @@"realm_str": "zulip"},"name": null,- "next_invoice_sequence": 4,+ "next_invoice_sequence": 1,"object": "customer","phone": null,"preferred_locales": [],diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Customer.retrieve.8.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Customer.retrieve.8.jsonnew file mode 100644index 00000000000..a22434762fc--- /dev/null+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Customer.retrieve.8.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": "usd",+ "default_currency": "usd",+ "default_source": null,+ "delinquent": false,+ "description": "zulip (Zulip Dev)",+ "discount": null,+ "email": "[email protected]",+ "id": "free_trial_upgrade_by_card--Customer.create.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "free_trial_upgrade_by_card--Customer.create.1.json",+ "id": "free_trial_upgrade_by_card--Customer.retrieve.2.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "realm_id": "1",+ "realm_str": "zulip"+ },+ "name": null,+ "next_invoice_sequence": 4,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.create.1.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.create.1.jsonindex b4530d9d347..8b7097da9c4 100644--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.create.1.json+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.create.1.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.create.2.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.create.2.jsonindex 8cf96eeb856..dfa5e25cadf 100644--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.create.2.json+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.create.2.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.create.3.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.create.3.jsonindex 38633da65cd..9e603418266 100644--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.create.3.json+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.create.3.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.finalize_invoice.1.jsonindex 2083c2da850..b996f741cea 100644--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.finalize_invoice.1.json+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.finalize_invoice.1.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,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.jsonindex 899597b5e02..4db91b4b165 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@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.finalize_invoice.3.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.finalize_invoice.3.jsonindex 27ede6bafac..28ad6fe14f9 100644--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.finalize_invoice.3.json+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.finalize_invoice.3.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -160,5 +162,5 @@"total_excluding_tax": 152000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null}diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.list.4.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.list.4.jsonindex ce77c30fd0b..143bc200192 100644--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.list.4.json+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.list.4.json@@ -135,7 +135,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.list.5.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.list.5.jsonindex 304b2632fb0..ceac173a58f 100644--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.list.5.json+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.list.5.json@@ -135,7 +135,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,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.jsonindex e1e088ef89a..920ca43b92f 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@@ -135,7 +135,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -299,7 +301,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,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.jsonindex fbfe9713ec7..bcc0c13bd01 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@@ -135,7 +135,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -162,7 +164,7 @@"total_excluding_tax": 152000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null},{"account_country": "US",@@ -299,7 +301,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -463,7 +467,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--PaymentMethod.create.1.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--PaymentMethod.create.1.jsonindex 61b9e3159a9..3fa3c74158b 100644--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--PaymentMethod.create.1.json+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--PaymentMethod.create.1.json@@ -6,7 +6,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -22,8 +22,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Event.list.1.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Event.list.1.jsonindex 82577316b8b..f462d0f3f62 100644--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Event.list.1.json+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Event.list.1.json@@ -139,7 +139,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -166,7 +168,7 @@"total_excluding_tax": 152000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null}},"id": "free_trial_upgrade_by_invoice--Event.list.1.json",diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Event.list.3.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Event.list.3.jsonindex dcf7c4f8c9f..5cd420748be 100644--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Event.list.3.json+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Event.list.3.json@@ -118,7 +118,7 @@"livemode": false,"metadata": {"billing_schedule": "1",- "current_plan_id": "33",+ "current_plan_id": "34","license_management": "manual","licenses": "123","on_free_trial": "True",@@ -147,7 +147,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -273,7 +275,7 @@"id": "free_trial_upgrade_by_invoice--Event.list.3.json","livemode": false,"object": "event",- "pending_webhooks": 0,+ "pending_webhooks": 1,"request": {"id": "free_trial_upgrade_by_invoice--Event.list.3.json","idempotency_key": "00000000-0000-0000-0000-000000000000"diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Event.list.4.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Event.list.4.jsonindex 06295ac7aff..b5165753e9f 100644--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Event.list.4.json+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Event.list.4.json@@ -118,7 +118,7 @@"livemode": false,"metadata": {"billing_schedule": "1",- "current_plan_id": "33",+ "current_plan_id": "34","license_management": "manual","licenses": "123","on_free_trial": "True",@@ -147,7 +147,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.create.1.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.create.1.jsonindex 58f468e0c7f..87060936dfd 100644--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.create.1.json+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.create.1.json@@ -112,7 +112,7 @@"livemode": false,"metadata": {"billing_schedule": "1",- "current_plan_id": "33",+ "current_plan_id": "34","license_management": "manual","licenses": "123","on_free_trial": "True",@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.finalize_invoice.1.jsonindex 8232adef61b..eb5efeadc5b 100644--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.finalize_invoice.1.json+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.finalize_invoice.1.json@@ -112,7 +112,7 @@"livemode": false,"metadata": {"billing_schedule": "1",- "current_plan_id": "33",+ "current_plan_id": "34","license_management": "manual","licenses": "123","on_free_trial": "True",@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.list.1.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.list.1.jsonindex 8254b5de78b..f0081b3a721 100644--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.list.1.json+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.list.1.json@@ -114,7 +114,7 @@"livemode": false,"metadata": {"billing_schedule": "1",- "current_plan_id": "33",+ "current_plan_id": "34","license_management": "manual","licenses": "123","on_free_trial": "True",@@ -143,7 +143,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.pay.1.jsonindex 3180bc0633f..15f54ee0453 100644--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.pay.1.json+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.pay.1.json@@ -112,7 +112,7 @@"livemode": false,"metadata": {"billing_schedule": "1",- "current_plan_id": "33",+ "current_plan_id": "34","license_management": "manual","licenses": "123","on_free_trial": "True",@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_customer_fails_to_pay--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_customer_fails_to_pay--Customer.retrieve.5.jsonnew file mode 100644index 00000000000..d8cd650ebcb--- /dev/null+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_customer_fails_to_pay--Customer.retrieve.5.json@@ -0,0 +1,33 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": "usd",+ "default_currency": "usd",+ "default_source": "src_NORMALIZED",+ "delinquent": false,+ "description": "zulip (Zulip Dev)",+ "discount": null,+ "email": "[email protected]",+ "id": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Customer.create.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": null,+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "realm_id": "1",+ "realm_str": "zulip"+ },+ "name": null,+ "next_invoice_sequence": 2,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}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.jsonindex 83a87109edd..36f5e6190b5 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@@ -118,7 +118,7 @@"livemode": false,"metadata": {"billing_schedule": "1",- "current_plan_id": "33",+ "current_plan_id": "34","license_management": "manual","licenses": "123","on_free_trial": "True",@@ -147,7 +147,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,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.jsonindex dbbfb4691da..85bf610f296 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@@ -5,48 +5,170 @@"created": 1000000000,"data": {"object": {- "ach_credit_transfer": {- "account_number": "test_NORMALIZED",- "bank_name": "TEST BANK",- "fingerprint": "NORMALIZED",- "refund_account_holder_name": null,- "refund_account_holder_type": null,- "refund_routing_number": null,- "routing_number": "110000000",- "swift_code": "TSTEZ122"+ "account_country": "US",+ "account_name": "Kandra Labs, Inc.",+ "account_tax_ids": null,+ "amount_due": 10000,+ "amount_paid": 0,+ "amount_remaining": 10000,+ "amount_shipping": 0,+ "application": null,+ "application_fee_amount": null,+ "attempt_count": 0,+ "attempted": false,+ "auto_advance": true,+ "automatic_tax": {+ "enabled": false,+ "liability": null,+ "status": null},- "amount": null,- "client_secret": "NORMALIZED",+ "automatically_finalizes_at": null,+ "billing_reason": "manual",+ "charge": null,+ "collection_method": "send_invoice","created": 1000000000,"currency": "usd",+ "custom_fields": null,"customer": "cus_NORMALIZED",- "flow": "receiver",+ "customer_address": null,+ "customer_email": "[email protected]",+ "customer_name": null,+ "customer_phone": null,+ "customer_shipping": null,+ "customer_tax_exempt": "none",+ "customer_tax_ids": [],+ "default_payment_method": null,+ "default_source": null,+ "default_tax_rates": [],+ "description": null,+ "discount": null,+ "discounts": [],+ "due_date": 1000000000,+ "effective_at": 1000000000,+ "ending_balance": 0,+ "footer": null,+ "from_invoice": null,+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap","id": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.2.json",+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",+ "issuer": {+ "type": "self"+ },+ "last_finalization_error": null,+ "latest_revision": null,+ "lines": {+ "data": [+ {+ "amount": 10000,+ "amount_excluding_tax": 10000,+ "currency": "usd",+ "description": "Zulip Cloud Standard",+ "discount_amounts": [],+ "discountable": false,+ "discounts": [],+ "id": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.2.json",+ "invoice": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.2.json",+ "invoice_item": "ii_NORMALIZED",+ "livemode": false,+ "metadata": {},+ "object": "line_item",+ "period": {+ "end": 1000000000,+ "start": 1000000000+ },+ "plan": null,+ "price": {+ "active": false,+ "billing_scheme": "per_unit",+ "created": 1000000000,+ "currency": "usd",+ "custom_unit_amount": null,+ "id": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.2.json",+ "livemode": false,+ "lookup_key": null,+ "metadata": {},+ "nickname": null,+ "object": "price",+ "product": "prod_NORMALIZED",+ "recurring": null,+ "tax_behavior": "unspecified",+ "tiers_mode": null,+ "transform_quantity": null,+ "type": "one_time",+ "unit_amount": 10000,+ "unit_amount_decimal": "10000"+ },+ "proration": false,+ "proration_details": {+ "credited_items": null+ },+ "quantity": 1,+ "subscription": null,+ "tax_amounts": [],+ "tax_rates": [],+ "type": "invoiceitem",+ "unit_amount_excluding_tax": "10000"+ }+ ],+ "has_more": false,+ "object": "list",+ "total_count": 1,+ "url": "/v1/invoices/free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.2.json/lines"+ },"livemode": false,"metadata": {},- "object": "source",- "owner": {- "address": null,- "email": "[email protected]",- "name": null,- "phone": null,- "verified_address": null,- "verified_email": null,- "verified_name": null,- "verified_phone": null+ "next_payment_attempt": null,+ "number": "NORMALIZED",+ "object": "invoice",+ "on_behalf_of": null,+ "paid": false,+ "paid_out_of_band": false,+ "payment_intent": "pi_NORMALIZED",+ "payment_settings": {+ "default_mandate": null,+ "payment_method_options": null,+ "payment_method_types": null+ },+ "period_end": 1000000000,+ "period_start": 1000000000,+ "post_payment_credit_notes_amount": 0,+ "pre_payment_credit_notes_amount": 0,+ "quote": null,+ "receipt_number": null,+ "rendering": {+ "amount_tax_display": null,+ "pdf": {+ "page_size": "letter"+ },+ "template": null,+ "template_version": null+ },+ "rendering_options": null,+ "shipping_cost": null,+ "shipping_details": null,+ "starting_balance": 0,+ "statement_descriptor": "Zulip Cloud Standard",+ "status": "open",+ "status_transitions": {+ "finalized_at": 1000000000,+ "marked_uncollectible_at": null,+ "paid_at": null,+ "voided_at": null},- "receiver": {- "address": "000000000-test_NORMALIZED",- "amount_charged": 0,- "amount_received": 0,- "amount_returned": 0,- "refund_attributes_method": "email",- "refund_attributes_status": "missing"+ "subscription": null,+ "subscription_details": {+ "metadata": null},- "statement_descriptor": null,- "status": "pending",- "type": "ach_credit_transfer",- "usage": "reusable"+ "subtotal": 10000,+ "subtotal_excluding_tax": 10000,+ "tax": null,+ "test_clock": null,+ "total": 10000,+ "total_discount_amounts": [],+ "total_excluding_tax": 10000,+ "total_tax_amounts": [],+ "transfer_data": null,+ "webhooks_delivered_at": 1000000000}},"id": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.2.json",@@ -55,9 +177,9 @@"pending_webhooks": 0,"request": {"id": null,- "idempotency_key": "00000000-0000-0000-0000-000000000000"+ "idempotency_key": null},- "type": "customer.source.created"+ "type": "invoice.sent"}],"has_more": true,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.jsonindex ff67c9e8c38..fc19e77e3c3 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,202 +1,5 @@{"data": [- {- "api_version": "2020-08-27",- "created": 1000000000,- "data": {- "object": {- "account_country": "US",- "account_name": "Kandra Labs, Inc.",- "account_tax_ids": null,- "amount_due": 984000,- "amount_paid": 0,- "amount_remaining": 984000,- "amount_shipping": 0,- "application": null,- "application_fee_amount": null,- "attempt_count": 0,- "attempted": false,- "auto_advance": false,- "automatic_tax": {- "enabled": false,- "liability": null,- "status": null- },- "automatically_finalizes_at": null,- "billing_reason": "manual",- "charge": null,- "collection_method": "send_invoice",- "created": 1000000000,- "currency": "usd",- "custom_fields": null,- "customer": "cus_NORMALIZED",- "customer_address": null,- "customer_email": "[email protected]",- "customer_name": null,- "customer_phone": null,- "customer_shipping": null,- "customer_tax_exempt": "none",- "customer_tax_ids": [],- "default_payment_method": null,- "default_source": null,- "default_tax_rates": [],- "description": null,- "discount": null,- "discounts": [],- "due_date": 1000000000,- "effective_at": 1000000000,- "ending_balance": 0,- "footer": null,- "from_invoice": null,- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",- "id": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.3.json",- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",- "issuer": {- "type": "self"- },- "last_finalization_error": null,- "latest_revision": null,- "lines": {- "data": [- {- "amount": 984000,- "amount_excluding_tax": 984000,- "currency": "usd",- "description": "Zulip Cloud Standard",- "discount_amounts": [],- "discountable": false,- "discounts": [],- "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.3.json",- "invoice_item": "ii_NORMALIZED",- "livemode": false,- "metadata": {},- "object": "line_item",- "period": {- "end": 1362193445,- "start": 1330657445- },- "plan": null,- "price": {- "active": false,- "billing_scheme": "per_unit",- "created": 1000000000,- "currency": "usd",- "custom_unit_amount": null,- "id": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.1.json",- "livemode": false,- "lookup_key": null,- "metadata": {},- "nickname": null,- "object": "price",- "product": "prod_NORMALIZED",- "recurring": null,- "tax_behavior": "unspecified",- "tiers_mode": null,- "transform_quantity": null,- "type": "one_time",- "unit_amount": 8000,- "unit_amount_decimal": "8000"- },- "proration": false,- "proration_details": {- "credited_items": null- },- "quantity": 123,- "subscription": null,- "tax_amounts": [],- "tax_rates": [],- "type": "invoiceitem",- "unit_amount_excluding_tax": "8000"- }- ],- "has_more": false,- "object": "list",- "total_count": 1,- "url": "/v1/invoices/free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.3.json/lines"- },- "livemode": false,- "metadata": {- "billing_schedule": "1",- "current_plan_id": "34",- "license_management": "manual",- "licenses": "123",- "on_free_trial": "True",- "plan_tier": "1",- "user_id": "10"- },- "next_payment_attempt": null,- "number": "NORMALIZED",- "object": "invoice",- "on_behalf_of": null,- "paid": true,- "paid_out_of_band": true,- "payment_intent": null,- "payment_settings": {- "default_mandate": null,- "payment_method_options": null,- "payment_method_types": null- },- "period_end": 1000000000,- "period_start": 1000000000,- "post_payment_credit_notes_amount": 0,- "pre_payment_credit_notes_amount": 0,- "quote": null,- "receipt_number": null,- "rendering": {- "amount_tax_display": null,- "pdf": {- "page_size": "letter"- }- },- "rendering_options": null,- "shipping_cost": null,- "shipping_details": null,- "starting_balance": 0,- "statement_descriptor": "Zulip Cloud Standard",- "status": "paid",- "status_transitions": {- "finalized_at": 1000000000,- "marked_uncollectible_at": null,- "paid_at": 1000000000,- "voided_at": null- },- "subscription": null,- "subscription_details": {- "metadata": null- },- "subtotal": 984000,- "subtotal_excluding_tax": 984000,- "tax": null,- "test_clock": null,- "total": 984000,- "total_discount_amounts": [],- "total_excluding_tax": 984000,- "total_tax_amounts": [],- "transfer_data": null,- "webhooks_delivered_at": 1000000000- },- "previous_attributes": {- "auto_advance": true,- "paid": false,- "paid_out_of_band": false,- "payment_intent": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.3.json",- "status": "open",- "status_transitions": {- "paid_at": null- }- }- },- "id": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.3.json",- "livemode": false,- "object": "event",- "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"- },- "type": "invoice.updated"- },{"api_version": "2020-08-27","created": 1000000000,@@ -228,7 +31,7 @@"customer": "cus_NORMALIZED","description": "Payment for Invoice","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.3.json",+ "invoice": "in_NORMALIZED","last_payment_error": null,"latest_charge": null,"livemode": false,@@ -273,7 +76,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--Event.list.4.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.4.jsonindex 4ba6952a9da..b64f360b1f9 100644--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.4.json+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.4.json@@ -49,7 +49,7 @@"footer": null,"from_invoice": null,"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",- "id": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.3.json",+ "id": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.4.json","invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap","issuer": {"type": "self"@@ -66,8 +66,8 @@"discount_amounts": [],"discountable": false,"discounts": [],- "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.3.json",+ "id": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.4.json",+ "invoice": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.4.json","invoice_item": "ii_NORMALIZED","livemode": false,"metadata": {},@@ -113,12 +113,12 @@"has_more": false,"object": "list","total_count": 1,- "url": "/v1/invoices/free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.3.json/lines"+ "url": "/v1/invoices/free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.4.json/lines"},"livemode": false,"metadata": {"billing_schedule": "1",- "current_plan_id": "34",+ "current_plan_id": "35","license_management": "manual","licenses": "123","on_free_trial": "True",@@ -147,7 +147,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -180,12 +182,211 @@"id": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.4.json","livemode": false,"object": "event",- "pending_webhooks": 1,+ "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"},"type": "invoice.paid"+ },+ {+ "api_version": "2020-08-27",+ "created": 1000000000,+ "data": {+ "object": {+ "account_country": "US",+ "account_name": "Kandra Labs, Inc.",+ "account_tax_ids": null,+ "amount_due": 984000,+ "amount_paid": 0,+ "amount_remaining": 984000,+ "amount_shipping": 0,+ "application": null,+ "application_fee_amount": null,+ "attempt_count": 0,+ "attempted": false,+ "auto_advance": false,+ "automatic_tax": {+ "enabled": false,+ "liability": null,+ "status": null+ },+ "automatically_finalizes_at": null,+ "billing_reason": "manual",+ "charge": null,+ "collection_method": "send_invoice",+ "created": 1000000000,+ "currency": "usd",+ "custom_fields": null,+ "customer": "cus_NORMALIZED",+ "customer_address": null,+ "customer_email": "[email protected]",+ "customer_name": null,+ "customer_phone": null,+ "customer_shipping": null,+ "customer_tax_exempt": "none",+ "customer_tax_ids": [],+ "default_payment_method": null,+ "default_source": null,+ "default_tax_rates": [],+ "description": null,+ "discount": null,+ "discounts": [],+ "due_date": 1000000000,+ "effective_at": 1000000000,+ "ending_balance": 0,+ "footer": null,+ "from_invoice": null,+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",+ "id": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.4.json",+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",+ "issuer": {+ "type": "self"+ },+ "last_finalization_error": null,+ "latest_revision": null,+ "lines": {+ "data": [+ {+ "amount": 984000,+ "amount_excluding_tax": 984000,+ "currency": "usd",+ "description": "Zulip Cloud Standard",+ "discount_amounts": [],+ "discountable": false,+ "discounts": [],+ "id": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.4.json",+ "invoice": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.4.json",+ "invoice_item": "ii_NORMALIZED",+ "livemode": false,+ "metadata": {},+ "object": "line_item",+ "period": {+ "end": 1362193445,+ "start": 1330657445+ },+ "plan": null,+ "price": {+ "active": false,+ "billing_scheme": "per_unit",+ "created": 1000000000,+ "currency": "usd",+ "custom_unit_amount": null,+ "id": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.1.json",+ "livemode": false,+ "lookup_key": null,+ "metadata": {},+ "nickname": null,+ "object": "price",+ "product": "prod_NORMALIZED",+ "recurring": null,+ "tax_behavior": "unspecified",+ "tiers_mode": null,+ "transform_quantity": null,+ "type": "one_time",+ "unit_amount": 8000,+ "unit_amount_decimal": "8000"+ },+ "proration": false,+ "proration_details": {+ "credited_items": null+ },+ "quantity": 123,+ "subscription": null,+ "tax_amounts": [],+ "tax_rates": [],+ "type": "invoiceitem",+ "unit_amount_excluding_tax": "8000"+ }+ ],+ "has_more": false,+ "object": "list",+ "total_count": 1,+ "url": "/v1/invoices/free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.4.json/lines"+ },+ "livemode": false,+ "metadata": {+ "billing_schedule": "1",+ "current_plan_id": "35",+ "license_management": "manual",+ "licenses": "123",+ "on_free_trial": "True",+ "plan_tier": "1",+ "user_id": "10"+ },+ "next_payment_attempt": null,+ "number": "NORMALIZED",+ "object": "invoice",+ "on_behalf_of": null,+ "paid": true,+ "paid_out_of_band": true,+ "payment_intent": null,+ "payment_settings": {+ "default_mandate": null,+ "payment_method_options": null,+ "payment_method_types": null+ },+ "period_end": 1000000000,+ "period_start": 1000000000,+ "post_payment_credit_notes_amount": 0,+ "pre_payment_credit_notes_amount": 0,+ "quote": null,+ "receipt_number": null,+ "rendering": {+ "amount_tax_display": null,+ "pdf": {+ "page_size": "letter"+ },+ "template": null,+ "template_version": null+ },+ "rendering_options": null,+ "shipping_cost": null,+ "shipping_details": null,+ "starting_balance": 0,+ "statement_descriptor": "Zulip Cloud Standard",+ "status": "paid",+ "status_transitions": {+ "finalized_at": 1000000000,+ "marked_uncollectible_at": null,+ "paid_at": 1000000000,+ "voided_at": null+ },+ "subscription": null,+ "subscription_details": {+ "metadata": null+ },+ "subtotal": 984000,+ "subtotal_excluding_tax": 984000,+ "tax": null,+ "test_clock": null,+ "total": 984000,+ "total_discount_amounts": [],+ "total_excluding_tax": 984000,+ "total_tax_amounts": [],+ "transfer_data": null,+ "webhooks_delivered_at": 1000000000+ },+ "previous_attributes": {+ "auto_advance": true,+ "paid": false,+ "paid_out_of_band": false,+ "payment_intent": "pi_NORMALIZED",+ "status": "open",+ "status_transitions": {+ "paid_at": null+ }+ }+ },+ "id": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.4.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.updated"}],"has_more": false,diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_customer_fails_to_pay--Invoice.create.1.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_customer_fails_to_pay--Invoice.create.1.jsonindex 58ea2bc1de2..c3ec099547d 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@@ -43,7 +43,7 @@"footer": null,"from_invoice": null,"hosted_invoice_url": null,- "id": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.3.json",+ "id": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.4.json","invoice_pdf": null,"issuer": {"type": "self"@@ -60,8 +60,8 @@"discount_amounts": [],"discountable": false,"discounts": [],- "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.3.json",+ "id": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.4.json",+ "invoice": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.4.json","invoice_item": "ii_NORMALIZED","livemode": false,"metadata": {},@@ -107,12 +107,12 @@"has_more": false,"object": "list","total_count": 1,- "url": "/v1/invoices/free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.3.json/lines"+ "url": "/v1/invoices/free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.4.json/lines"},"livemode": false,"metadata": {"billing_schedule": "1",- "current_plan_id": "34",+ "current_plan_id": "35","license_management": "manual","licenses": "123","on_free_trial": "True",@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,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.jsonindex 2491ce45aba..6c9a12a305a 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@@ -43,7 +43,7 @@"footer": null,"from_invoice": null,"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",- "id": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.3.json",+ "id": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.4.json","invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap","issuer": {"type": "self"@@ -60,8 +60,8 @@"discount_amounts": [],"discountable": false,"discounts": [],- "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.3.json",+ "id": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.4.json",+ "invoice": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.4.json","invoice_item": "ii_NORMALIZED","livemode": false,"metadata": {},@@ -107,12 +107,12 @@"has_more": false,"object": "list","total_count": 1,- "url": "/v1/invoices/free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.3.json/lines"+ "url": "/v1/invoices/free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.4.json/lines"},"livemode": false,"metadata": {"billing_schedule": "1",- "current_plan_id": "34",+ "current_plan_id": "35","license_management": "manual","licenses": "123","on_free_trial": "True",@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,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.jsonindex 1fe9b80ee46..f191953c683 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@@ -45,7 +45,7 @@"footer": null,"from_invoice": null,"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",- "id": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.3.json",+ "id": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.4.json","invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap","issuer": {"type": "self"@@ -62,8 +62,8 @@"discount_amounts": [],"discountable": false,"discounts": [],- "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.3.json",+ "id": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.4.json",+ "invoice": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.4.json","invoice_item": "ii_NORMALIZED","livemode": false,"metadata": {},@@ -109,12 +109,12 @@"has_more": false,"object": "list","total_count": 1,- "url": "/v1/invoices/free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.3.json/lines"+ "url": "/v1/invoices/free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.4.json/lines"},"livemode": false,"metadata": {"billing_schedule": "1",- "current_plan_id": "34",+ "current_plan_id": "35","license_management": "manual","licenses": "123","on_free_trial": "True",@@ -143,7 +143,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -170,7 +172,7 @@"total_excluding_tax": 984000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": null+ "webhooks_delivered_at": 1000000000}],"has_more": false,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.jsonindex bd16cdfee59..84bbdbff8f1 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@@ -43,7 +43,7 @@"footer": null,"from_invoice": null,"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",- "id": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.3.json",+ "id": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.4.json","invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap","issuer": {"type": "self"@@ -60,8 +60,8 @@"discount_amounts": [],"discountable": false,"discounts": [],- "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.3.json",+ "id": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.4.json",+ "invoice": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.4.json","invoice_item": "ii_NORMALIZED","livemode": false,"metadata": {},@@ -107,12 +107,12 @@"has_more": false,"object": "list","total_count": 1,- "url": "/v1/invoices/free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.3.json/lines"+ "url": "/v1/invoices/free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.4.json/lines"},"livemode": false,"metadata": {"billing_schedule": "1",- "current_plan_id": "34",+ "current_plan_id": "35","license_management": "manual","licenses": "123","on_free_trial": "True",@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,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.jsonindex 17dbbb0ee0c..3fb1c917aa1 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@@ -43,7 +43,7 @@"footer": null,"from_invoice": null,"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",- "id": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.3.json",+ "id": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.4.json","invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap","issuer": {"type": "self"@@ -60,8 +60,8 @@"discount_amounts": [],"discountable": false,"discounts": [],- "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.3.json",+ "id": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.4.json",+ "invoice": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.4.json","invoice_item": "ii_NORMALIZED","livemode": false,"metadata": {},@@ -107,12 +107,12 @@"has_more": false,"object": "list","total_count": 1,- "url": "/v1/invoices/free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.3.json/lines"+ "url": "/v1/invoices/free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.4.json/lines"},"livemode": false,"metadata": {"billing_schedule": "1",- "current_plan_id": "34",+ "current_plan_id": "35","license_management": "manual","licenses": "123","on_free_trial": "True",@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,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.jsonindex 17dbbb0ee0c..3fb1c917aa1 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@@ -43,7 +43,7 @@"footer": null,"from_invoice": null,"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",- "id": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.3.json",+ "id": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.4.json","invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap","issuer": {"type": "self"@@ -60,8 +60,8 @@"discount_amounts": [],"discountable": false,"discounts": [],- "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.3.json",+ "id": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.4.json",+ "invoice": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.4.json","invoice_item": "ii_NORMALIZED","livemode": false,"metadata": {},@@ -107,12 +107,12 @@"has_more": false,"object": "list","total_count": 1,- "url": "/v1/invoices/free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.3.json/lines"+ "url": "/v1/invoices/free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.4.json/lines"},"livemode": false,"metadata": {"billing_schedule": "1",- "current_plan_id": "34",+ "current_plan_id": "35","license_management": "manual","licenses": "123","on_free_trial": "True",@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/invoice_for_additional_license--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/invoice_for_additional_license--Customer.retrieve.1.jsonindex 8786897ce7f..ccfc22f1d04 100644--- a/corporate/tests/stripe_fixtures/invoice_for_additional_license--Customer.retrieve.1.json+++ b/corporate/tests/stripe_fixtures/invoice_for_additional_license--Customer.retrieve.1.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 9,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/invoice_for_additional_license--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/invoice_for_additional_license--Customer.retrieve.2.jsonindex 8786897ce7f..ccfc22f1d04 100644--- a/corporate/tests/stripe_fixtures/invoice_for_additional_license--Customer.retrieve.2.json+++ b/corporate/tests/stripe_fixtures/invoice_for_additional_license--Customer.retrieve.2.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 9,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/invoice_for_additional_license--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/invoice_for_additional_license--Customer.retrieve.3.jsonindex 8786897ce7f..ccfc22f1d04 100644--- a/corporate/tests/stripe_fixtures/invoice_for_additional_license--Customer.retrieve.3.json+++ b/corporate/tests/stripe_fixtures/invoice_for_additional_license--Customer.retrieve.3.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 9,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/invoice_for_additional_license--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/invoice_for_additional_license--Customer.retrieve.4.jsonindex 8786897ce7f..ccfc22f1d04 100644--- a/corporate/tests/stripe_fixtures/invoice_for_additional_license--Customer.retrieve.4.json+++ b/corporate/tests/stripe_fixtures/invoice_for_additional_license--Customer.retrieve.4.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 9,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/invoice_for_additional_license--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/invoice_for_additional_license--Customer.retrieve.5.jsonnew file mode 100644index 00000000000..ccfc22f1d04--- /dev/null+++ b/corporate/tests/stripe_fixtures/invoice_for_additional_license--Customer.retrieve.5.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": null,+ "default_currency": null,+ "default_source": null,+ "delinquent": false,+ "description": "zulip (Zulip Dev)",+ "discount": null,+ "email": "[email protected]",+ "id": "invoice_for_additional_license--Customer.create.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "invoice_for_additional_license--Customer.create.1.json",+ "id": "invoice_for_additional_license--Customer.retrieve.1.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "realm_id": "1",+ "realm_str": "zulip"+ },+ "name": null,+ "next_invoice_sequence": 1,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/invoice_for_additional_license--Event.list.2.json b/corporate/tests/stripe_fixtures/invoice_for_additional_license--Event.list.2.jsonindex 1fd21d2a131..13e1d960c28 100644--- a/corporate/tests/stripe_fixtures/invoice_for_additional_license--Event.list.2.json+++ b/corporate/tests/stripe_fixtures/invoice_for_additional_license--Event.list.2.json@@ -33,7 +33,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -82,8 +82,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 9,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -184,141 +184,13 @@"id": "invoice_for_additional_license--Event.list.2.json","livemode": false,"object": "event",- "pending_webhooks": 0,+ "pending_webhooks": 1,"request": {"id": "invoice_for_additional_license--Event.list.2.json","idempotency_key": "00000000-0000-0000-0000-000000000000"},"type": "payment_intent.succeeded"},- {- "api_version": "2020-08-27",- "created": 1000000000,- "data": {- "object": {- "amount": 48000,- "amount_captured": 48000,- "amount_refunded": 0,- "application": null,- "application_fee": null,- "application_fee_amount": null,- "balance_transaction": "txn_NORMALIZED",- "billing_details": {- "address": {- "city": "San Francisco",- "country": "US",- "line1": "123 Main St",- "line2": null,- "postal_code": "94105",- "state": "CA"- },- "email": null,- "name": "John Doe",- "phone": null- },- "calculated_statement_descriptor": "ZULIP CLOUD STANDARD",- "captured": true,- "created": 1000000000,- "currency": "usd",- "customer": "invoice_for_additional_license--Customer.create.1.json",- "description": "Payment for Invoice",- "destination": null,- "dispute": null,- "disputed": false,- "failure_balance_transaction": null,- "failure_code": null,- "failure_message": null,- "fraud_details": {},- "id": "invoice_for_additional_license--Event.list.2.json",- "invoice": "invoice_for_additional_license--Event.list.2.json",- "livemode": false,- "metadata": {},- "object": "charge",- "on_behalf_of": null,- "order": null,- "outcome": {- "network_status": "approved_by_network",- "reason": null,- "risk_level": "normal",- "risk_score": 0,- "seller_message": "Payment complete.",- "type": "authorized"- },- "paid": true,- "payment_intent": "invoice_for_additional_license--Event.list.2.json",- "payment_method": "pm_NORMALIZED",- "payment_method_details": {- "card": {- "amount_authorized": 48000,- "authorization_code": null,- "brand": "visa",- "checks": {- "address_line1_check": "pass",- "address_postal_code_check": "pass",- "cvc_check": "pass"- },- "country": "US",- "exp_month": 9,- "exp_year": 2025,- "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- },- "overcapture": {- "maximum_amount_capturable": 48000,- "status": "unavailable"- },- "three_d_secure": null,- "wallet": null- },- "type": "card"- },- "receipt_email": "[email protected]",- "receipt_number": null,- "receipt_url": "https://pay.stripe.com/receipts/invoices/NORMALIZED?s=ap",- "refunded": false,- "refunds": {- "data": [],- "has_more": false,- "object": "list",- "total_count": 0,- "url": "/v1/charges/invoice_for_additional_license--Event.list.2.json/refunds"- },- "review": null,- "shipping": null,- "source": null,- "source_transfer": null,- "statement_descriptor": "Zulip Cloud Standard",- "statement_descriptor_suffix": null,- "status": "succeeded",- "transfer_data": null,- "transfer_group": null- }- },- "id": "invoice_for_additional_license--Event.list.2.json",- "livemode": false,- "object": "event",- "pending_webhooks": 2,- "request": {- "id": "invoice_for_additional_license--Event.list.2.json",- "idempotency_key": "00000000-0000-0000-0000-000000000000"- },- "type": "charge.succeeded"- },{"api_version": "2020-08-27","created": 1000000000,@@ -392,7 +264,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -466,7 +338,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -579,7 +453,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -653,7 +527,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -860,7 +736,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -934,7 +810,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -992,7 +870,7 @@"metadata": {},"object": "invoiceitem","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,diff --git a/corporate/tests/stripe_fixtures/invoice_for_additional_license--Event.list.3.json b/corporate/tests/stripe_fixtures/invoice_for_additional_license--Event.list.3.jsonindex eeca41eb5ab..4984410ba80 100644--- a/corporate/tests/stripe_fixtures/invoice_for_additional_license--Event.list.3.json+++ b/corporate/tests/stripe_fixtures/invoice_for_additional_license--Event.list.3.json@@ -147,7 +147,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -180,7 +182,7 @@"id": "invoice_for_additional_license--Event.list.3.json","livemode": false,"object": "event",- "pending_webhooks": 1,+ "pending_webhooks": 2,"request": {"id": "invoice_for_additional_license--Event.list.2.json","idempotency_key": "00000000-0000-0000-0000-000000000000"@@ -334,7 +336,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -521,7 +525,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/invoice_for_additional_license--Invoice.create.1.json b/corporate/tests/stripe_fixtures/invoice_for_additional_license--Invoice.create.1.jsonindex 154b2f4f028..83ba2725e88 100644--- a/corporate/tests/stripe_fixtures/invoice_for_additional_license--Invoice.create.1.json+++ b/corporate/tests/stripe_fixtures/invoice_for_additional_license--Invoice.create.1.json@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/invoice_for_additional_license--Invoice.create.2.json b/corporate/tests/stripe_fixtures/invoice_for_additional_license--Invoice.create.2.jsonindex f107931315b..5d64aca5eeb 100644--- a/corporate/tests/stripe_fixtures/invoice_for_additional_license--Invoice.create.2.json+++ b/corporate/tests/stripe_fixtures/invoice_for_additional_license--Invoice.create.2.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/invoice_for_additional_license--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/invoice_for_additional_license--Invoice.finalize_invoice.1.jsonindex ade48396b9a..5b0436950ca 100644--- a/corporate/tests/stripe_fixtures/invoice_for_additional_license--Invoice.finalize_invoice.1.json+++ b/corporate/tests/stripe_fixtures/invoice_for_additional_license--Invoice.finalize_invoice.1.json@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,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.jsonindex 7fa6ea2ca21..b22b12bddbf 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@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/invoice_for_additional_license--Invoice.list.2.json b/corporate/tests/stripe_fixtures/invoice_for_additional_license--Invoice.list.2.jsonindex c22851d5310..72cbbcc4473 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@@ -135,7 +135,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -307,7 +309,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/invoice_for_additional_license--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/invoice_for_additional_license--Invoice.pay.1.jsonindex 03de03e4a76..d3e2d2e4e7c 100644--- a/corporate/tests/stripe_fixtures/invoice_for_additional_license--Invoice.pay.1.json+++ b/corporate/tests/stripe_fixtures/invoice_for_additional_license--Invoice.pay.1.json@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/invoice_for_additional_license--PaymentMethod.create.1.json b/corporate/tests/stripe_fixtures/invoice_for_additional_license--PaymentMethod.create.1.jsonindex 3d2ee375352..d94d94865e3 100644--- a/corporate/tests/stripe_fixtures/invoice_for_additional_license--PaymentMethod.create.1.json+++ b/corporate/tests/stripe_fixtures/invoice_for_additional_license--PaymentMethod.create.1.json@@ -6,7 +6,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -22,8 +22,8 @@},"country": "US","display_brand": "visa",- "exp_month": 9,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.create.1.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.create.1.jsonindex 3764968707e..4cdaa8f4419 100644--- a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.create.1.json+++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.create.1.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-95a","discount": null,"email": "[email protected]","id": "invoice_initial_remote_realm_upgrade--Customer.create.1.json",@@ -20,7 +20,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-95a9-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.modify.1.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.modify.1.jsonindex 09c51af1270..6a5e5f3fed3 100644--- a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.modify.1.json+++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.modify.1.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-95a","discount": null,"email": "[email protected]","id": "invoice_initial_remote_realm_upgrade--Customer.create.1.json",@@ -20,7 +20,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-95a9-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.retrieve.1.jsonindex d97acb50ead..1dc525d8f23 100644--- a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.retrieve.1.json+++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.retrieve.1.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-15a","discount": null,"email": "[email protected]","id": "invoice_initial_remote_realm_upgrade--Customer.create.1.json",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.retrieve.2.jsonindex d97acb50ead..1dc525d8f23 100644--- a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.retrieve.2.json+++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.retrieve.2.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-15a","discount": null,"email": "[email protected]","id": "invoice_initial_remote_realm_upgrade--Customer.create.1.json",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.retrieve.3.jsonindex d97acb50ead..1dc525d8f23 100644--- a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.retrieve.3.json+++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.retrieve.3.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-15a","discount": null,"email": "[email protected]","id": "invoice_initial_remote_realm_upgrade--Customer.create.1.json",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.retrieve.4.jsonindex d97acb50ead..1dc525d8f23 100644--- a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.retrieve.4.json+++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.retrieve.4.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-15a","discount": null,"email": "[email protected]","id": "invoice_initial_remote_realm_upgrade--Customer.create.1.json",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.retrieve.5.jsonnew file mode 100644index 00000000000..1dc525d8f23--- /dev/null+++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.retrieve.5.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": null,+ "default_currency": null,+ "default_source": null,+ "delinquent": false,+ "description": "zulip.testserver 3383e261-15a",+ "discount": null,+ "email": "[email protected]",+ "id": "invoice_initial_remote_realm_upgrade--Customer.create.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "invoice_initial_remote_realm_upgrade--Customer.create.1.json",+ "id": "invoice_initial_remote_realm_upgrade--Customer.retrieve.1.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "remote_realm_host": "zulip.testserver",+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"+ },+ "name": null,+ "next_invoice_sequence": 1,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Event.list.1.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Event.list.1.jsonindex 6262abc3f30..de9ebee636b 100644--- a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Event.list.1.json+++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Event.list.1.json@@ -12,7 +12,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-95a","discount": null,"email": "[email protected]","id": "invoice_initial_remote_realm_upgrade--Customer.create.1.json",@@ -26,7 +26,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-95a9-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Event.list.2.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Event.list.2.jsonindex 1b1e6d581b6..7c93b57f77c 100644--- a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Event.list.2.json+++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Event.list.2.json@@ -33,7 +33,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -82,8 +82,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -111,6 +111,7 @@},"type": "card"},+ "radar_options": {},"receipt_email": "[email protected]","receipt_number": null,"receipt_url": "https://pay.stripe.com/receipts/invoices/NORMALIZED?s=ap",@@ -184,7 +185,7 @@"id": "invoice_initial_remote_realm_upgrade--Event.list.2.json","livemode": false,"object": "event",- "pending_webhooks": 1,+ "pending_webhooks": 0,"request": {"id": "invoice_initial_remote_realm_upgrade--Event.list.2.json","idempotency_key": "00000000-0000-0000-0000-000000000000"@@ -209,7 +210,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -258,8 +259,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -287,6 +288,7 @@},"type": "card"},+ "radar_options": {},"receipt_email": "[email protected]","receipt_number": null,"receipt_url": "https://pay.stripe.com/receipts/invoices/NORMALIZED?s=ap",@@ -516,7 +518,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -753,7 +757,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -1084,7 +1090,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -1260,7 +1268,7 @@"default_currency": "usd","default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-15a","discount": null,"email": "[email protected]","id": "invoice_initial_remote_realm_upgrade--Customer.create.1.json",@@ -1274,7 +1282,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Event.list.3.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Event.list.3.jsonindex f5c9f8ec151..a607f2926b9 100644--- a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Event.list.3.json+++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Event.list.3.json@@ -197,7 +197,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -224,7 +226,7 @@"total_excluding_tax": 1850,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": null+ "webhooks_delivered_at": 1000000000}},"id": "invoice_initial_remote_realm_upgrade--Event.list.3.json",@@ -232,7 +234,7 @@"object": "event","pending_webhooks": 0,"request": {- "id": "invoice_initial_remote_realm_upgrade--Event.list.2.json",+ "id": "invoice_initial_remote_realm_upgrade--Event.list.3.json","idempotency_key": "00000000-0000-0000-0000-000000000000"},"type": "invoice.payment_succeeded"@@ -434,7 +436,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -461,7 +465,7 @@"total_excluding_tax": 1850,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": null+ "webhooks_delivered_at": 1000000000}},"id": "invoice_initial_remote_realm_upgrade--Event.list.3.json",@@ -469,7 +473,7 @@"object": "event","pending_webhooks": 0,"request": {- "id": "invoice_initial_remote_realm_upgrade--Event.list.2.json",+ "id": "invoice_initial_remote_realm_upgrade--Event.list.3.json","idempotency_key": "00000000-0000-0000-0000-000000000000"},"type": "invoice.paid"@@ -671,7 +675,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -698,7 +704,7 @@"total_excluding_tax": 1850,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": null+ "webhooks_delivered_at": 1000000000},"previous_attributes": {"amount_paid": 0,@@ -718,7 +724,7 @@"object": "event","pending_webhooks": 0,"request": {- "id": "invoice_initial_remote_realm_upgrade--Event.list.2.json",+ "id": "invoice_initial_remote_realm_upgrade--Event.list.3.json","idempotency_key": "00000000-0000-0000-0000-000000000000"},"type": "invoice.updated"diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Invoice.create.1.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Invoice.create.1.jsonindex b6a6a1abc23..898b518c591 100644--- a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Invoice.create.1.json+++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Invoice.create.1.json@@ -191,7 +191,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Invoice.finalize_invoice.1.jsonindex 962c28edad7..18f6eb2c1eb 100644--- a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Invoice.finalize_invoice.1.json+++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Invoice.finalize_invoice.1.json@@ -191,7 +191,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Invoice.list.2.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Invoice.list.2.jsonindex 83a64b26c93..686a9bb8d48 100644--- a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Invoice.list.2.json+++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Invoice.list.2.json@@ -193,7 +193,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Invoice.pay.1.jsonindex 9de641ddd3b..0df8e433611 100644--- a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Invoice.pay.1.json+++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Invoice.pay.1.json@@ -191,7 +191,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -218,5 +220,5 @@"total_excluding_tax": 1850,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": null+ "webhooks_delivered_at": 1000000000}diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--PaymentMethod.create.1.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--PaymentMethod.create.1.jsonindex 8faa2a8489e..4f7a8fc3547 100644--- a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--PaymentMethod.create.1.json+++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--PaymentMethod.create.1.json@@ -6,7 +6,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -22,8 +22,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--checkout.Session.create.1.jsonindex d929aa01cb0..bad3c6991f3 100644--- a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--checkout.Session.create.1.json+++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--checkout.Session.create.1.json@@ -9,7 +9,7 @@"status": null},"billing_address_collection": "required",- "cancel_url": "http://selfhosting.testserver/realm/f6d476f5-b66f-45ce-8623-a273ff4d7787/upgrade/?manual_license_management=false&tier=1",+ "cancel_url": "http://selfhosting.testserver/realm/3383e261-95a9-4f36-ae0c-4ecf80fab561/upgrade/?manual_license_management=false&tier=1","client_reference_id": null,"client_secret": null,"consent": null,@@ -73,7 +73,7 @@"status": "open","submit_type": null,"subscription": null,- "success_url": "http://selfhosting.testserver/realm/f6d476f5-b66f-45ce-8623-a273ff4d7787/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",+ "success_url": "http://selfhosting.testserver/realm/3383e261-95a9-4f36-ae0c-4ecf80fab561/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}","total_details": null,"ui_mode": "hosted","url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED"diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--checkout.Session.list.1.jsonindex dc0fa67ce87..c171bbf98d6 100644--- a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--checkout.Session.list.1.json+++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--checkout.Session.list.1.json@@ -11,7 +11,7 @@"status": null},"billing_address_collection": "required",- "cancel_url": "http://selfhosting.testserver/realm/f6d476f5-b66f-45ce-8623-a273ff4d7787/upgrade/?manual_license_management=false&tier=1",+ "cancel_url": "http://selfhosting.testserver/realm/3383e261-95a9-4f36-ae0c-4ecf80fab561/upgrade/?manual_license_management=false&tier=1","client_reference_id": null,"client_secret": null,"consent": null,@@ -75,7 +75,7 @@"status": "open","submit_type": null,"subscription": null,- "success_url": "http://selfhosting.testserver/realm/f6d476f5-b66f-45ce-8623-a273ff4d7787/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",+ "success_url": "http://selfhosting.testserver/realm/3383e261-95a9-4f36-ae0c-4ecf80fab561/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}","total_details": null,"ui_mode": "hosted","url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED"diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Customer.retrieve.1.jsonindex 68a705ec677..57eea283b25 100644--- a/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Customer.retrieve.1.json+++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Customer.retrieve.1.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Customer.retrieve.2.jsonindex 68a705ec677..57eea283b25 100644--- a/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Customer.retrieve.2.json+++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Customer.retrieve.2.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Customer.retrieve.3.jsonindex 68a705ec677..57eea283b25 100644--- a/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Customer.retrieve.3.json+++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Customer.retrieve.3.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Customer.retrieve.4.jsonindex 68a705ec677..57eea283b25 100644--- a/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Customer.retrieve.4.json+++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Customer.retrieve.4.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Customer.retrieve.5.jsonnew file mode 100644index 00000000000..57eea283b25--- /dev/null+++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Customer.retrieve.5.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": null,+ "default_currency": null,+ "default_source": null,+ "delinquent": false,+ "description": "demo.example.com 6cde5f7a-1f7",+ "discount": null,+ "email": "[email protected]",+ "id": "invoice_initial_remote_server_upgrade--Customer.create.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "invoice_initial_remote_server_upgrade--Customer.create.1.json",+ "id": "invoice_initial_remote_server_upgrade--Customer.retrieve.1.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "remote_server_str": "demo.example.com 6cde5f7a-1f7",+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"+ },+ "name": null,+ "next_invoice_sequence": 1,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Event.list.2.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Event.list.2.jsonindex 64687e667d3..6a77632e82a 100644--- a/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Event.list.2.json+++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Event.list.2.json@@ -33,7 +33,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -82,8 +82,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -111,6 +111,7 @@},"type": "card"},+ "radar_options": {},"receipt_email": "[email protected]","receipt_number": null,"receipt_url": "https://pay.stripe.com/receipts/invoices/NORMALIZED?s=ap",@@ -209,7 +210,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -258,8 +259,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -287,6 +288,7 @@},"type": "card"},+ "radar_options": {},"receipt_email": "[email protected]","receipt_number": null,"receipt_url": "https://pay.stripe.com/receipts/invoices/NORMALIZED?s=ap",@@ -319,6 +321,187 @@},"type": "charge.succeeded"},+ {+ "api_version": "2020-08-27",+ "created": 1000000000,+ "data": {+ "object": {+ "account_country": "US",+ "account_name": "Kandra Labs, Inc.",+ "account_tax_ids": null,+ "amount_due": 1200000,+ "amount_paid": 0,+ "amount_remaining": 1200000,+ "amount_shipping": 0,+ "application": null,+ "application_fee_amount": null,+ "attempt_count": 0,+ "attempted": false,+ "auto_advance": true,+ "automatic_tax": {+ "enabled": false,+ "liability": null,+ "status": null+ },+ "automatically_finalizes_at": null,+ "billing_reason": "manual",+ "charge": null,+ "collection_method": "send_invoice",+ "created": 1000000000,+ "currency": "usd",+ "custom_fields": null,+ "customer": "cus_NORMALIZED",+ "customer_address": null,+ "customer_email": "[email protected]",+ "customer_name": null,+ "customer_phone": null,+ "customer_shipping": null,+ "customer_tax_exempt": "none",+ "customer_tax_ids": [],+ "default_payment_method": null,+ "default_source": null,+ "default_tax_rates": [],+ "description": null,+ "discount": null,+ "discounts": [],+ "due_date": 1000000000,+ "effective_at": 1000000000,+ "ending_balance": 0,+ "footer": null,+ "from_invoice": null,+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",+ "id": "invoice_initial_remote_server_upgrade--Event.list.2.json",+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",+ "issuer": {+ "type": "self"+ },+ "last_finalization_error": null,+ "latest_revision": null,+ "lines": {+ "data": [+ {+ "amount": 1200000,+ "amount_excluding_tax": 1200000,+ "currency": "usd",+ "description": "Zulip Cloud Standard - renewal",+ "discount_amounts": [],+ "discountable": false,+ "discounts": [],+ "id": "invoice_initial_remote_server_upgrade--Event.list.2.json",+ "invoice": "invoice_initial_remote_server_upgrade--Event.list.2.json",+ "invoice_item": "ii_NORMALIZED",+ "livemode": false,+ "metadata": {},+ "object": "line_item",+ "period": {+ "end": 1388631845,+ "start": 1357015845+ },+ "plan": null,+ "price": {+ "active": false,+ "billing_scheme": "per_unit",+ "created": 1000000000,+ "currency": "usd",+ "custom_unit_amount": null,+ "id": "invoice_initial_remote_server_upgrade--Event.list.2.json",+ "livemode": false,+ "lookup_key": null,+ "metadata": {},+ "nickname": null,+ "object": "price",+ "product": "prod_NORMALIZED",+ "recurring": null,+ "tax_behavior": "unspecified",+ "tiers_mode": null,+ "transform_quantity": null,+ "type": "one_time",+ "unit_amount": 8000,+ "unit_amount_decimal": "8000"+ },+ "proration": false,+ "proration_details": {+ "credited_items": null+ },+ "quantity": 150,+ "subscription": null,+ "tax_amounts": [],+ "tax_rates": [],+ "type": "invoiceitem",+ "unit_amount_excluding_tax": "8000"+ }+ ],+ "has_more": false,+ "object": "list",+ "total_count": 1,+ "url": "/v1/invoices/invoice_initial_remote_server_upgrade--Event.list.2.json/lines"+ },+ "livemode": false,+ "metadata": {},+ "next_payment_attempt": null,+ "number": "NORMALIZED",+ "object": "invoice",+ "on_behalf_of": null,+ "paid": false,+ "paid_out_of_band": false,+ "payment_intent": "pi_NORMALIZED",+ "payment_settings": {+ "default_mandate": null,+ "payment_method_options": null,+ "payment_method_types": null+ },+ "period_end": 1000000000,+ "period_start": 1000000000,+ "post_payment_credit_notes_amount": 0,+ "pre_payment_credit_notes_amount": 0,+ "quote": null,+ "receipt_number": null,+ "rendering": {+ "amount_tax_display": null,+ "pdf": {+ "page_size": "letter"+ },+ "template": null,+ "template_version": null+ },+ "rendering_options": null,+ "shipping_cost": null,+ "shipping_details": null,+ "starting_balance": 0,+ "statement_descriptor": "Zulip Cloud Standard",+ "status": "open",+ "status_transitions": {+ "finalized_at": 1000000000,+ "marked_uncollectible_at": null,+ "paid_at": null,+ "voided_at": null+ },+ "subscription": null,+ "subscription_details": {+ "metadata": null+ },+ "subtotal": 1200000,+ "subtotal_excluding_tax": 1200000,+ "tax": null,+ "test_clock": null,+ "total": 1200000,+ "total_discount_amounts": [],+ "total_excluding_tax": 1200000,+ "total_tax_amounts": [],+ "transfer_data": null,+ "webhooks_delivered_at": 1000000000+ }+ },+ "id": "invoice_initial_remote_server_upgrade--Event.list.2.json",+ "livemode": false,+ "object": "event",+ "pending_webhooks": 1,+ "request": {+ "id": null,+ "idempotency_key": null+ },+ "type": "invoice.sent"+ },{"api_version": "2020-08-27","created": 1000000000,@@ -516,7 +699,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -543,7 +728,7 @@"total_excluding_tax": 4300,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null}},"id": "invoice_initial_remote_server_upgrade--Event.list.2.json",@@ -753,7 +938,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -780,7 +967,7 @@"total_excluding_tax": 4300,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null},"previous_attributes": {"effective_at": null,@@ -1084,7 +1271,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -1274,7 +1463,7 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Event.list.3.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Event.list.3.jsonindex 36d11f61004..18ee3fb05ef 100644--- a/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Event.list.3.json+++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Event.list.3.json@@ -49,7 +49,7 @@"footer": null,"from_invoice": null,"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",- "id": "invoice_initial_remote_server_upgrade--Event.list.2.json",+ "id": "invoice_initial_remote_server_upgrade--Event.list.3.json","invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap","issuer": {"type": "self"@@ -67,7 +67,7 @@"discountable": false,"discounts": [],"id": "invoice_initial_remote_server_upgrade--Event.list.2.json",- "invoice": "invoice_initial_remote_server_upgrade--Event.list.2.json",+ "invoice": "invoice_initial_remote_server_upgrade--Event.list.3.json","invoice_item": "ii_NORMALIZED","livemode": false,"metadata": {},@@ -118,7 +118,7 @@"discountable": false,"discounts": [],"id": "invoice_initial_remote_server_upgrade--Event.list.2.json",- "invoice": "invoice_initial_remote_server_upgrade--Event.list.2.json",+ "invoice": "invoice_initial_remote_server_upgrade--Event.list.3.json","invoice_item": "ii_NORMALIZED","livemode": false,"metadata": {},@@ -164,7 +164,7 @@"has_more": false,"object": "list","total_count": 2,- "url": "/v1/invoices/invoice_initial_remote_server_upgrade--Event.list.2.json/lines"+ "url": "/v1/invoices/invoice_initial_remote_server_upgrade--Event.list.3.json/lines"},"livemode": false,"metadata": {@@ -197,7 +197,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -230,9 +232,9 @@"id": "invoice_initial_remote_server_upgrade--Event.list.3.json","livemode": false,"object": "event",- "pending_webhooks": 0,+ "pending_webhooks": 2,"request": {- "id": "invoice_initial_remote_server_upgrade--Event.list.2.json",+ "id": "invoice_initial_remote_server_upgrade--Event.list.3.json","idempotency_key": "00000000-0000-0000-0000-000000000000"},"type": "invoice.payment_succeeded"@@ -286,7 +288,7 @@"footer": null,"from_invoice": null,"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",- "id": "invoice_initial_remote_server_upgrade--Event.list.2.json",+ "id": "invoice_initial_remote_server_upgrade--Event.list.3.json","invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap","issuer": {"type": "self"@@ -304,7 +306,7 @@"discountable": false,"discounts": [],"id": "invoice_initial_remote_server_upgrade--Event.list.2.json",- "invoice": "invoice_initial_remote_server_upgrade--Event.list.2.json",+ "invoice": "invoice_initial_remote_server_upgrade--Event.list.3.json","invoice_item": "ii_NORMALIZED","livemode": false,"metadata": {},@@ -355,7 +357,7 @@"discountable": false,"discounts": [],"id": "invoice_initial_remote_server_upgrade--Event.list.2.json",- "invoice": "invoice_initial_remote_server_upgrade--Event.list.2.json",+ "invoice": "invoice_initial_remote_server_upgrade--Event.list.3.json","invoice_item": "ii_NORMALIZED","livemode": false,"metadata": {},@@ -401,7 +403,7 @@"has_more": false,"object": "list","total_count": 2,- "url": "/v1/invoices/invoice_initial_remote_server_upgrade--Event.list.2.json/lines"+ "url": "/v1/invoices/invoice_initial_remote_server_upgrade--Event.list.3.json/lines"},"livemode": false,"metadata": {@@ -434,7 +436,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -469,7 +473,7 @@"object": "event","pending_webhooks": 0,"request": {- "id": "invoice_initial_remote_server_upgrade--Event.list.2.json",+ "id": "invoice_initial_remote_server_upgrade--Event.list.3.json","idempotency_key": "00000000-0000-0000-0000-000000000000"},"type": "invoice.paid"@@ -523,7 +527,7 @@"footer": null,"from_invoice": null,"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",- "id": "invoice_initial_remote_server_upgrade--Event.list.2.json",+ "id": "invoice_initial_remote_server_upgrade--Event.list.3.json","invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap","issuer": {"type": "self"@@ -541,7 +545,7 @@"discountable": false,"discounts": [],"id": "invoice_initial_remote_server_upgrade--Event.list.2.json",- "invoice": "invoice_initial_remote_server_upgrade--Event.list.2.json",+ "invoice": "invoice_initial_remote_server_upgrade--Event.list.3.json","invoice_item": "ii_NORMALIZED","livemode": false,"metadata": {},@@ -592,7 +596,7 @@"discountable": false,"discounts": [],"id": "invoice_initial_remote_server_upgrade--Event.list.2.json",- "invoice": "invoice_initial_remote_server_upgrade--Event.list.2.json",+ "invoice": "invoice_initial_remote_server_upgrade--Event.list.3.json","invoice_item": "ii_NORMALIZED","livemode": false,"metadata": {},@@ -638,7 +642,7 @@"has_more": false,"object": "list","total_count": 2,- "url": "/v1/invoices/invoice_initial_remote_server_upgrade--Event.list.2.json/lines"+ "url": "/v1/invoices/invoice_initial_remote_server_upgrade--Event.list.3.json/lines"},"livemode": false,"metadata": {@@ -671,7 +675,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -718,7 +724,7 @@"object": "event","pending_webhooks": 0,"request": {- "id": "invoice_initial_remote_server_upgrade--Event.list.2.json",+ "id": "invoice_initial_remote_server_upgrade--Event.list.3.json","idempotency_key": "00000000-0000-0000-0000-000000000000"},"type": "invoice.updated"diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Invoice.create.1.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Invoice.create.1.jsonindex 2096281027b..4f72e3562d2 100644--- a/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Invoice.create.1.json+++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Invoice.create.1.json@@ -43,7 +43,7 @@"footer": null,"from_invoice": null,"hosted_invoice_url": null,- "id": "invoice_initial_remote_server_upgrade--Event.list.2.json",+ "id": "invoice_initial_remote_server_upgrade--Event.list.3.json","invoice_pdf": null,"issuer": {"type": "self"@@ -61,7 +61,7 @@"discountable": false,"discounts": [],"id": "invoice_initial_remote_server_upgrade--Event.list.2.json",- "invoice": "invoice_initial_remote_server_upgrade--Event.list.2.json",+ "invoice": "invoice_initial_remote_server_upgrade--Event.list.3.json","invoice_item": "ii_NORMALIZED","livemode": false,"metadata": {},@@ -112,7 +112,7 @@"discountable": false,"discounts": [],"id": "invoice_initial_remote_server_upgrade--Event.list.2.json",- "invoice": "invoice_initial_remote_server_upgrade--Event.list.2.json",+ "invoice": "invoice_initial_remote_server_upgrade--Event.list.3.json","invoice_item": "ii_NORMALIZED","livemode": false,"metadata": {},@@ -158,7 +158,7 @@"has_more": false,"object": "list","total_count": 2,- "url": "/v1/invoices/invoice_initial_remote_server_upgrade--Event.list.2.json/lines"+ "url": "/v1/invoices/invoice_initial_remote_server_upgrade--Event.list.3.json/lines"},"livemode": false,"metadata": {@@ -191,7 +191,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Invoice.finalize_invoice.1.jsonindex ec8a77eab7f..59fa54b18cb 100644--- a/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Invoice.finalize_invoice.1.json+++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Invoice.finalize_invoice.1.json@@ -43,7 +43,7 @@"footer": null,"from_invoice": null,"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",- "id": "invoice_initial_remote_server_upgrade--Event.list.2.json",+ "id": "invoice_initial_remote_server_upgrade--Event.list.3.json","invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap","issuer": {"type": "self"@@ -61,7 +61,7 @@"discountable": false,"discounts": [],"id": "invoice_initial_remote_server_upgrade--Event.list.2.json",- "invoice": "invoice_initial_remote_server_upgrade--Event.list.2.json",+ "invoice": "invoice_initial_remote_server_upgrade--Event.list.3.json","invoice_item": "ii_NORMALIZED","livemode": false,"metadata": {},@@ -112,7 +112,7 @@"discountable": false,"discounts": [],"id": "invoice_initial_remote_server_upgrade--Event.list.2.json",- "invoice": "invoice_initial_remote_server_upgrade--Event.list.2.json",+ "invoice": "invoice_initial_remote_server_upgrade--Event.list.3.json","invoice_item": "ii_NORMALIZED","livemode": false,"metadata": {},@@ -158,7 +158,7 @@"has_more": false,"object": "list","total_count": 2,- "url": "/v1/invoices/invoice_initial_remote_server_upgrade--Event.list.2.json/lines"+ "url": "/v1/invoices/invoice_initial_remote_server_upgrade--Event.list.3.json/lines"},"livemode": false,"metadata": {@@ -191,7 +191,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -218,5 +220,5 @@"total_excluding_tax": 4300,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null}diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Invoice.list.2.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Invoice.list.2.jsonindex 591fb5691ce..3f72e4d3fb7 100644--- a/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Invoice.list.2.json+++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Invoice.list.2.json@@ -45,7 +45,7 @@"footer": null,"from_invoice": null,"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",- "id": "invoice_initial_remote_server_upgrade--Event.list.2.json",+ "id": "invoice_initial_remote_server_upgrade--Event.list.3.json","invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap","issuer": {"type": "self"@@ -63,7 +63,7 @@"discountable": false,"discounts": [],"id": "invoice_initial_remote_server_upgrade--Event.list.2.json",- "invoice": "invoice_initial_remote_server_upgrade--Event.list.2.json",+ "invoice": "invoice_initial_remote_server_upgrade--Event.list.3.json","invoice_item": "ii_NORMALIZED","livemode": false,"metadata": {},@@ -114,7 +114,7 @@"discountable": false,"discounts": [],"id": "invoice_initial_remote_server_upgrade--Event.list.2.json",- "invoice": "invoice_initial_remote_server_upgrade--Event.list.2.json",+ "invoice": "invoice_initial_remote_server_upgrade--Event.list.3.json","invoice_item": "ii_NORMALIZED","livemode": false,"metadata": {},@@ -160,7 +160,7 @@"has_more": false,"object": "list","total_count": 2,- "url": "/v1/invoices/invoice_initial_remote_server_upgrade--Event.list.2.json/lines"+ "url": "/v1/invoices/invoice_initial_remote_server_upgrade--Event.list.3.json/lines"},"livemode": false,"metadata": {@@ -193,7 +193,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Invoice.pay.1.jsonindex 38ee60329a3..56830f27071 100644--- a/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Invoice.pay.1.json+++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Invoice.pay.1.json@@ -43,7 +43,7 @@"footer": null,"from_invoice": null,"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",- "id": "invoice_initial_remote_server_upgrade--Event.list.2.json",+ "id": "invoice_initial_remote_server_upgrade--Event.list.3.json","invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap","issuer": {"type": "self"@@ -61,7 +61,7 @@"discountable": false,"discounts": [],"id": "invoice_initial_remote_server_upgrade--Event.list.2.json",- "invoice": "invoice_initial_remote_server_upgrade--Event.list.2.json",+ "invoice": "invoice_initial_remote_server_upgrade--Event.list.3.json","invoice_item": "ii_NORMALIZED","livemode": false,"metadata": {},@@ -112,7 +112,7 @@"discountable": false,"discounts": [],"id": "invoice_initial_remote_server_upgrade--Event.list.2.json",- "invoice": "invoice_initial_remote_server_upgrade--Event.list.2.json",+ "invoice": "invoice_initial_remote_server_upgrade--Event.list.3.json","invoice_item": "ii_NORMALIZED","livemode": false,"metadata": {},@@ -158,7 +158,7 @@"has_more": false,"object": "list","total_count": 2,- "url": "/v1/invoices/invoice_initial_remote_server_upgrade--Event.list.2.json/lines"+ "url": "/v1/invoices/invoice_initial_remote_server_upgrade--Event.list.3.json/lines"},"livemode": false,"metadata": {@@ -191,7 +191,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--PaymentMethod.create.1.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--PaymentMethod.create.1.jsonindex cbcbc4bcf28..e9ca12f84d6 100644--- a/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--PaymentMethod.create.1.json+++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--PaymentMethod.create.1.json@@ -6,7 +6,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -22,8 +22,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--Customer.retrieve.1.jsonindex 256ee7fbaa7..11f07edac03 100644--- a/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--Customer.retrieve.1.json+++ b/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--Customer.retrieve.1.json@@ -9,7 +9,7 @@"description": "zulip (Zulip Dev)","discount": null,"email": "[email protected]",- "id": "invoice_payment_succeeded_event_with_uncaught_exception--Customer.create.1.json",+ "id": "invoice_payment_succeeded_event_with_uncaught_exception--Customer.retrieve.1.json","invoice_prefix": "NORMALIZED","invoice_settings": {"custom_fields": null,@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -55,7 +55,7 @@"wallet": null},"created": 1000000000,- "customer": "invoice_payment_succeeded_event_with_uncaught_exception--Customer.create.1.json",+ "customer": "invoice_payment_succeeded_event_with_uncaught_exception--Customer.retrieve.1.json","id": "invoice_payment_succeeded_event_with_uncaught_exception--Customer.retrieve.1.json","livemode": false,"metadata": {},diff --git a/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--Customer.retrieve.2.jsonindex 256ee7fbaa7..11f07edac03 100644--- a/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--Customer.retrieve.2.json+++ b/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--Customer.retrieve.2.json@@ -9,7 +9,7 @@"description": "zulip (Zulip Dev)","discount": null,"email": "[email protected]",- "id": "invoice_payment_succeeded_event_with_uncaught_exception--Customer.create.1.json",+ "id": "invoice_payment_succeeded_event_with_uncaught_exception--Customer.retrieve.1.json","invoice_prefix": "NORMALIZED","invoice_settings": {"custom_fields": null,@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -55,7 +55,7 @@"wallet": null},"created": 1000000000,- "customer": "invoice_payment_succeeded_event_with_uncaught_exception--Customer.create.1.json",+ "customer": "invoice_payment_succeeded_event_with_uncaught_exception--Customer.retrieve.1.json","id": "invoice_payment_succeeded_event_with_uncaught_exception--Customer.retrieve.1.json","livemode": false,"metadata": {},diff --git a/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--Customer.retrieve.3.jsonindex 256ee7fbaa7..11f07edac03 100644--- a/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--Customer.retrieve.3.json+++ b/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--Customer.retrieve.3.json@@ -9,7 +9,7 @@"description": "zulip (Zulip Dev)","discount": null,"email": "[email protected]",- "id": "invoice_payment_succeeded_event_with_uncaught_exception--Customer.create.1.json",+ "id": "invoice_payment_succeeded_event_with_uncaught_exception--Customer.retrieve.1.json","invoice_prefix": "NORMALIZED","invoice_settings": {"custom_fields": null,@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -55,7 +55,7 @@"wallet": null},"created": 1000000000,- "customer": "invoice_payment_succeeded_event_with_uncaught_exception--Customer.create.1.json",+ "customer": "invoice_payment_succeeded_event_with_uncaught_exception--Customer.retrieve.1.json","id": "invoice_payment_succeeded_event_with_uncaught_exception--Customer.retrieve.1.json","livemode": false,"metadata": {},diff --git a/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--Customer.retrieve.4.jsonnew file mode 100644index 00000000000..11f07edac03--- /dev/null+++ b/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--Customer.retrieve.4.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": null,+ "default_currency": null,+ "default_source": null,+ "delinquent": false,+ "description": "zulip (Zulip Dev)",+ "discount": null,+ "email": "[email protected]",+ "id": "invoice_payment_succeeded_event_with_uncaught_exception--Customer.retrieve.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "invoice_payment_succeeded_event_with_uncaught_exception--Customer.retrieve.1.json",+ "id": "invoice_payment_succeeded_event_with_uncaught_exception--Customer.retrieve.1.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "realm_id": "1",+ "realm_str": "zulip"+ },+ "name": null,+ "next_invoice_sequence": 1,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--Event.list.2.json b/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--Event.list.2.jsonindex 2246ab38511..2fa875b2c43 100644--- a/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--Event.list.2.json+++ b/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--Event.list.2.json@@ -33,7 +33,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -44,7 +44,7 @@"captured": true,"created": 1000000000,"currency": "usd",- "customer": "invoice_payment_succeeded_event_with_uncaught_exception--Customer.create.1.json",+ "customer": "invoice_payment_succeeded_event_with_uncaught_exception--Customer.retrieve.1.json","description": "Payment for Invoice","destination": null,"dispute": null,@@ -82,8 +82,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -142,7 +142,7 @@"confirmation_method": "automatic","created": 1000000000,"currency": "usd",- "customer": "invoice_payment_succeeded_event_with_uncaught_exception--Customer.create.1.json",+ "customer": "invoice_payment_succeeded_event_with_uncaught_exception--Customer.retrieve.1.json","description": "Payment for Invoice","id": "invoice_payment_succeeded_event_with_uncaught_exception--Event.list.2.json","invoice": "invoice_payment_succeeded_event_with_uncaught_exception--Event.list.2.json",@@ -184,140 +184,12 @@"id": "invoice_payment_succeeded_event_with_uncaught_exception--Event.list.2.json","livemode": false,"object": "event",- "pending_webhooks": 0,- "request": {- "id": "invoice_payment_succeeded_event_with_uncaught_exception--Event.list.2.json",- "idempotency_key": "00000000-0000-0000-0000-000000000000"- },- "type": "payment_intent.succeeded"- },- {- "api_version": "2020-08-27",- "created": 1000000000,- "data": {- "object": {- "amount": 48000,- "amount_captured": 48000,- "amount_refunded": 0,- "application": null,- "application_fee": null,- "application_fee_amount": null,- "balance_transaction": "txn_NORMALIZED",- "billing_details": {- "address": {- "city": "San Francisco",- "country": "US",- "line1": "123 Main St",- "line2": null,- "postal_code": "94105",- "state": "CA"- },- "email": null,- "name": "John Doe",- "phone": null- },- "calculated_statement_descriptor": "ZULIP CLOUD STANDARD",- "captured": true,- "created": 1000000000,- "currency": "usd",- "customer": "invoice_payment_succeeded_event_with_uncaught_exception--Customer.create.1.json",- "description": "Payment for Invoice",- "destination": null,- "dispute": null,- "disputed": false,- "failure_balance_transaction": null,- "failure_code": null,- "failure_message": null,- "fraud_details": {},- "id": "invoice_payment_succeeded_event_with_uncaught_exception--Event.list.2.json",- "invoice": "invoice_payment_succeeded_event_with_uncaught_exception--Event.list.2.json",- "livemode": false,- "metadata": {},- "object": "charge",- "on_behalf_of": null,- "order": null,- "outcome": {- "network_status": "approved_by_network",- "reason": null,- "risk_level": "normal",- "risk_score": 0,- "seller_message": "Payment complete.",- "type": "authorized"- },- "paid": true,- "payment_intent": "invoice_payment_succeeded_event_with_uncaught_exception--Event.list.2.json",- "payment_method": "pm_NORMALIZED",- "payment_method_details": {- "card": {- "amount_authorized": 48000,- "authorization_code": null,- "brand": "visa",- "checks": {- "address_line1_check": "pass",- "address_postal_code_check": "pass",- "cvc_check": "pass"- },- "country": "US",- "exp_month": 8,- "exp_year": 2025,- "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- },- "overcapture": {- "maximum_amount_capturable": 48000,- "status": "unavailable"- },- "three_d_secure": null,- "wallet": null- },- "type": "card"- },- "receipt_email": "[email protected]",- "receipt_number": null,- "receipt_url": "https://pay.stripe.com/receipts/invoices/NORMALIZED?s=ap",- "refunded": false,- "refunds": {- "data": [],- "has_more": false,- "object": "list",- "total_count": 0,- "url": "/v1/charges/invoice_payment_succeeded_event_with_uncaught_exception--Event.list.2.json/refunds"- },- "review": null,- "shipping": null,- "source": null,- "source_transfer": null,- "statement_descriptor": "Zulip Cloud Standard",- "statement_descriptor_suffix": null,- "status": "succeeded",- "transfer_data": null,- "transfer_group": null- }- },- "id": "invoice_payment_succeeded_event_with_uncaught_exception--Event.list.2.json",- "livemode": false,- "object": "event","pending_webhooks": 2,"request": {"id": "invoice_payment_succeeded_event_with_uncaught_exception--Event.list.2.json","idempotency_key": "00000000-0000-0000-0000-000000000000"},- "type": "charge.succeeded"+ "type": "payment_intent.succeeded"},{"api_version": "2020-08-27",@@ -348,7 +220,7 @@"created": 1000000000,"currency": "usd","custom_fields": null,- "customer": "invoice_payment_succeeded_event_with_uncaught_exception--Customer.create.1.json",+ "customer": "invoice_payment_succeeded_event_with_uncaught_exception--Customer.retrieve.1.json","customer_address": null,"customer_email": "[email protected]","customer_name": null,@@ -466,7 +338,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -535,7 +409,7 @@"created": 1000000000,"currency": "usd","custom_fields": null,- "customer": "invoice_payment_succeeded_event_with_uncaught_exception--Customer.create.1.json",+ "customer": "invoice_payment_succeeded_event_with_uncaught_exception--Customer.retrieve.1.json","customer_address": null,"customer_email": "[email protected]","customer_name": null,@@ -653,7 +527,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -738,7 +614,7 @@"confirmation_method": "automatic","created": 1000000000,"currency": "usd",- "customer": "invoice_payment_succeeded_event_with_uncaught_exception--Customer.create.1.json",+ "customer": "invoice_payment_succeeded_event_with_uncaught_exception--Customer.retrieve.1.json","description": "Payment for Invoice","id": "invoice_payment_succeeded_event_with_uncaught_exception--Event.list.2.json","invoice": "invoice_payment_succeeded_event_with_uncaught_exception--Event.list.2.json",@@ -816,7 +692,7 @@"created": 1000000000,"currency": "usd","custom_fields": null,- "customer": "invoice_payment_succeeded_event_with_uncaught_exception--Customer.create.1.json",+ "customer": "invoice_payment_succeeded_event_with_uncaught_exception--Customer.retrieve.1.json","customer_address": null,"customer_email": "[email protected]","customer_name": null,@@ -934,7 +810,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -981,7 +859,7 @@"object": {"amount": 48000,"currency": "usd",- "customer": "invoice_payment_succeeded_event_with_uncaught_exception--Customer.create.1.json",+ "customer": "invoice_payment_succeeded_event_with_uncaught_exception--Customer.retrieve.1.json","date": 1000000000,"description": "Zulip Cloud Standard","discountable": false,@@ -1051,7 +929,7 @@"description": "zulip (Zulip Dev)","discount": null,"email": "[email protected]",- "id": "invoice_payment_succeeded_event_with_uncaught_exception--Customer.create.1.json",+ "id": "invoice_payment_succeeded_event_with_uncaught_exception--Customer.retrieve.1.json","invoice_prefix": "NORMALIZED","invoice_settings": {"custom_fields": null,diff --git a/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--Event.list.3.json b/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--Event.list.3.jsonindex 2853409ef6b..61998ee30e2 100644--- a/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--Event.list.3.json+++ b/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--Event.list.3.json@@ -147,7 +147,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -174,13 +176,13 @@"total_excluding_tax": 48000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null}},"id": "invoice_payment_succeeded_event_with_uncaught_exception--Event.list.3.json","livemode": false,"object": "event",- "pending_webhooks": 0,+ "pending_webhooks": 2,"request": {"id": "invoice_payment_succeeded_event_with_uncaught_exception--Event.list.2.json","idempotency_key": "00000000-0000-0000-0000-000000000000"@@ -334,7 +336,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -361,13 +365,13 @@"total_excluding_tax": 48000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null}},"id": "invoice_payment_succeeded_event_with_uncaught_exception--Event.list.3.json","livemode": false,"object": "event",- "pending_webhooks": 0,+ "pending_webhooks": 2,"request": {"id": "invoice_payment_succeeded_event_with_uncaught_exception--Event.list.2.json","idempotency_key": "00000000-0000-0000-0000-000000000000"@@ -521,7 +525,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -548,7 +554,7 @@"total_excluding_tax": 48000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null},"previous_attributes": {"amount_paid": 0,diff --git a/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--Invoice.create.1.json b/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--Invoice.create.1.jsonindex a99735dd6f8..f1feebdb2d1 100644--- a/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--Invoice.create.1.json+++ b/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--Invoice.create.1.json@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--Invoice.finalize_invoice.1.jsonindex cb25562805f..13fb0971207 100644--- a/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--Invoice.finalize_invoice.1.json+++ b/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--Invoice.finalize_invoice.1.json@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--Invoice.pay.1.jsonindex 4c2cbfdc79f..611bf44520f 100644--- a/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--Invoice.pay.1.json+++ b/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--Invoice.pay.1.json@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -168,5 +170,5 @@"total_excluding_tax": 48000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null}diff --git a/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--PaymentMethod.create.1.json b/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--PaymentMethod.create.1.jsonindex 14708913049..cb492c46e5a 100644--- a/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--PaymentMethod.create.1.json+++ b/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--PaymentMethod.create.1.json@@ -6,7 +6,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -22,8 +22,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/invoice_plan--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/invoice_plan--Customer.retrieve.1.jsonindex 5a596c520a3..d29b1768aff 100644--- a/corporate/tests/stripe_fixtures/invoice_plan--Customer.retrieve.1.json+++ b/corporate/tests/stripe_fixtures/invoice_plan--Customer.retrieve.1.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/invoice_plan--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/invoice_plan--Customer.retrieve.2.jsonindex 5a596c520a3..d29b1768aff 100644--- a/corporate/tests/stripe_fixtures/invoice_plan--Customer.retrieve.2.json+++ b/corporate/tests/stripe_fixtures/invoice_plan--Customer.retrieve.2.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/invoice_plan--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/invoice_plan--Customer.retrieve.3.jsonindex 5a596c520a3..d29b1768aff 100644--- a/corporate/tests/stripe_fixtures/invoice_plan--Customer.retrieve.3.json+++ b/corporate/tests/stripe_fixtures/invoice_plan--Customer.retrieve.3.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/invoice_plan--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/invoice_plan--Customer.retrieve.4.jsonindex 5a596c520a3..d29b1768aff 100644--- a/corporate/tests/stripe_fixtures/invoice_plan--Customer.retrieve.4.json+++ b/corporate/tests/stripe_fixtures/invoice_plan--Customer.retrieve.4.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/invoice_plan--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/invoice_plan--Customer.retrieve.5.jsonnew file mode 100644index 00000000000..d29b1768aff--- /dev/null+++ b/corporate/tests/stripe_fixtures/invoice_plan--Customer.retrieve.5.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": null,+ "default_currency": null,+ "default_source": null,+ "delinquent": false,+ "description": "zulip (Zulip Dev)",+ "discount": null,+ "email": "[email protected]",+ "id": "invoice_plan--Customer.create.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "invoice_plan--Customer.create.1.json",+ "id": "invoice_plan--Customer.retrieve.1.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "realm_id": "1",+ "realm_str": "zulip"+ },+ "name": null,+ "next_invoice_sequence": 1,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/invoice_plan--Event.list.2.json b/corporate/tests/stripe_fixtures/invoice_plan--Event.list.2.jsonindex 488994a2a2b..0e804007e7d 100644--- a/corporate/tests/stripe_fixtures/invoice_plan--Event.list.2.json+++ b/corporate/tests/stripe_fixtures/invoice_plan--Event.list.2.json@@ -33,7 +33,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -82,8 +82,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -111,6 +111,7 @@},"type": "card"},+ "radar_options": {},"receipt_email": "[email protected]","receipt_number": null,"receipt_url": "https://pay.stripe.com/receipts/invoices/NORMALIZED?s=ap",@@ -191,6 +192,135 @@},"type": "payment_intent.succeeded"},+ {+ "api_version": "2020-08-27",+ "created": 1000000000,+ "data": {+ "object": {+ "amount": 48000,+ "amount_captured": 48000,+ "amount_refunded": 0,+ "application": null,+ "application_fee": null,+ "application_fee_amount": null,+ "balance_transaction": "txn_NORMALIZED",+ "billing_details": {+ "address": {+ "city": "San Francisco",+ "country": "US",+ "line1": "123 Main St",+ "line2": null,+ "postal_code": "12345",+ "state": "CA"+ },+ "email": null,+ "name": "John Doe",+ "phone": null+ },+ "calculated_statement_descriptor": "ZULIP CLOUD STANDARD",+ "captured": true,+ "created": 1000000000,+ "currency": "usd",+ "customer": "invoice_plan--Customer.create.1.json",+ "description": "Payment for Invoice",+ "destination": null,+ "dispute": null,+ "disputed": false,+ "failure_balance_transaction": null,+ "failure_code": null,+ "failure_message": null,+ "fraud_details": {},+ "id": "invoice_plan--Event.list.2.json",+ "invoice": "invoice_plan--Event.list.2.json",+ "livemode": false,+ "metadata": {},+ "object": "charge",+ "on_behalf_of": null,+ "order": null,+ "outcome": {+ "network_status": "approved_by_network",+ "reason": null,+ "risk_level": "normal",+ "risk_score": 0,+ "seller_message": "Payment complete.",+ "type": "authorized"+ },+ "paid": true,+ "payment_intent": "invoice_plan--Event.list.2.json",+ "payment_method": "pm_NORMALIZED",+ "payment_method_details": {+ "card": {+ "amount_authorized": 48000,+ "authorization_code": null,+ "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+ },+ "overcapture": {+ "maximum_amount_capturable": 48000,+ "status": "unavailable"+ },+ "three_d_secure": null,+ "wallet": null+ },+ "type": "card"+ },+ "radar_options": {},+ "receipt_email": "[email protected]",+ "receipt_number": null,+ "receipt_url": "https://pay.stripe.com/receipts/invoices/NORMALIZED?s=ap",+ "refunded": false,+ "refunds": {+ "data": [],+ "has_more": false,+ "object": "list",+ "total_count": 0,+ "url": "/v1/charges/invoice_plan--Event.list.2.json/refunds"+ },+ "review": null,+ "shipping": null,+ "source": null,+ "source_transfer": null,+ "statement_descriptor": "Zulip Cloud Standard",+ "statement_descriptor_suffix": null,+ "status": "succeeded",+ "transfer_data": null,+ "transfer_group": null+ }+ },+ "id": "invoice_plan--Event.list.2.json",+ "livemode": false,+ "object": "event",+ "pending_webhooks": 2,+ "request": {+ "id": "invoice_plan--Event.list.2.json",+ "idempotency_key": "00000000-0000-0000-0000-000000000000"+ },+ "type": "charge.succeeded"+ },{"api_version": "2020-08-27","created": 1000000000,@@ -264,7 +394,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -338,7 +468,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -365,7 +497,7 @@"total_excluding_tax": 48000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null}},"id": "invoice_plan--Event.list.2.json",@@ -451,7 +583,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -525,7 +657,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -552,7 +686,7 @@"total_excluding_tax": 48000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null},"previous_attributes": {"effective_at": null,@@ -732,7 +866,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -806,7 +940,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -864,7 +1000,7 @@"metadata": {},"object": "invoiceitem","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,diff --git a/corporate/tests/stripe_fixtures/invoice_plan--Event.list.3.json b/corporate/tests/stripe_fixtures/invoice_plan--Event.list.3.jsonindex f60ddcb127b..ff71e6b46ff 100644--- a/corporate/tests/stripe_fixtures/invoice_plan--Event.list.3.json+++ b/corporate/tests/stripe_fixtures/invoice_plan--Event.list.3.json@@ -66,7 +66,7 @@"discount_amounts": [],"discountable": false,"discounts": [],- "id": "invoice_plan--Event.list.2.json",+ "id": "invoice_plan--Event.list.3.json","invoice": "invoice_plan--Event.list.2.json","invoice_item": "ii_NORMALIZED","livemode": false,@@ -147,7 +147,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -180,7 +182,196 @@"id": "invoice_plan--Event.list.3.json","livemode": false,"object": "event",- "pending_webhooks": 2,+ "pending_webhooks": 0,+ "request": {+ "id": "invoice_plan--Event.list.2.json",+ "idempotency_key": "00000000-0000-0000-0000-000000000000"+ },+ "type": "invoice.payment_succeeded"+ },+ {+ "api_version": "2020-08-27",+ "created": 1000000000,+ "data": {+ "object": {+ "account_country": "US",+ "account_name": "Kandra Labs, Inc.",+ "account_tax_ids": null,+ "amount_due": 48000,+ "amount_paid": 48000,+ "amount_remaining": 0,+ "amount_shipping": 0,+ "application": null,+ "application_fee_amount": null,+ "attempt_count": 1,+ "attempted": true,+ "auto_advance": false,+ "automatic_tax": {+ "enabled": false,+ "liability": null,+ "status": null+ },+ "automatically_finalizes_at": null,+ "billing_reason": "manual",+ "charge": "ch_NORMALIZED",+ "collection_method": "charge_automatically",+ "created": 1000000000,+ "currency": "usd",+ "custom_fields": null,+ "customer": "cus_NORMALIZED",+ "customer_address": null,+ "customer_email": "[email protected]",+ "customer_name": null,+ "customer_phone": null,+ "customer_shipping": null,+ "customer_tax_exempt": "none",+ "customer_tax_ids": [],+ "default_payment_method": null,+ "default_source": null,+ "default_tax_rates": [],+ "description": null,+ "discount": null,+ "discounts": [],+ "due_date": null,+ "effective_at": 1000000000,+ "ending_balance": 0,+ "footer": null,+ "from_invoice": null,+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",+ "id": "invoice_plan--Event.list.2.json",+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",+ "issuer": {+ "type": "self"+ },+ "last_finalization_error": null,+ "latest_revision": null,+ "lines": {+ "data": [+ {+ "amount": 48000,+ "amount_excluding_tax": 48000,+ "currency": "usd",+ "description": "Zulip Cloud Standard",+ "discount_amounts": [],+ "discountable": false,+ "discounts": [],+ "id": "invoice_plan--Event.list.3.json",+ "invoice": "invoice_plan--Event.list.2.json",+ "invoice_item": "ii_NORMALIZED",+ "livemode": false,+ "metadata": {},+ "object": "line_item",+ "period": {+ "end": 1357095845,+ "start": 1325473445+ },+ "plan": null,+ "price": {+ "active": false,+ "billing_scheme": "per_unit",+ "created": 1000000000,+ "currency": "usd",+ "custom_unit_amount": null,+ "id": "invoice_plan--Event.list.2.json",+ "livemode": false,+ "lookup_key": null,+ "metadata": {},+ "nickname": null,+ "object": "price",+ "product": "prod_NORMALIZED",+ "recurring": null,+ "tax_behavior": "unspecified",+ "tiers_mode": null,+ "transform_quantity": null,+ "type": "one_time",+ "unit_amount": 8000,+ "unit_amount_decimal": "8000"+ },+ "proration": false,+ "proration_details": {+ "credited_items": null+ },+ "quantity": 6,+ "subscription": null,+ "tax_amounts": [],+ "tax_rates": [],+ "type": "invoiceitem",+ "unit_amount_excluding_tax": "8000"+ }+ ],+ "has_more": false,+ "object": "list",+ "total_count": 1,+ "url": "/v1/invoices/invoice_plan--Event.list.2.json/lines"+ },+ "livemode": false,+ "metadata": {+ "billing_schedule": "1",+ "current_plan_id": "None",+ "license_management": "automatic",+ "licenses": "6",+ "on_free_trial": "False",+ "plan_tier": "1",+ "user_id": "10"+ },+ "next_payment_attempt": null,+ "number": "NORMALIZED",+ "object": "invoice",+ "on_behalf_of": null,+ "paid": true,+ "paid_out_of_band": false,+ "payment_intent": "pi_NORMALIZED",+ "payment_settings": {+ "default_mandate": null,+ "payment_method_options": null,+ "payment_method_types": null+ },+ "period_end": 1000000000,+ "period_start": 1000000000,+ "post_payment_credit_notes_amount": 0,+ "pre_payment_credit_notes_amount": 0,+ "quote": null,+ "receipt_number": null,+ "rendering": {+ "amount_tax_display": null,+ "pdf": {+ "page_size": "letter"+ },+ "template": null,+ "template_version": null+ },+ "rendering_options": null,+ "shipping_cost": null,+ "shipping_details": null,+ "starting_balance": 0,+ "statement_descriptor": "Zulip Cloud Standard",+ "status": "paid",+ "status_transitions": {+ "finalized_at": 1000000000,+ "marked_uncollectible_at": null,+ "paid_at": 1000000000,+ "voided_at": null+ },+ "subscription": null,+ "subscription_details": {+ "metadata": null+ },+ "subtotal": 48000,+ "subtotal_excluding_tax": 48000,+ "tax": null,+ "test_clock": null,+ "total": 48000,+ "total_discount_amounts": [],+ "total_excluding_tax": 48000,+ "total_tax_amounts": [],+ "transfer_data": null,+ "webhooks_delivered_at": 1000000000+ }+ },+ "id": "invoice_plan--Event.list.3.json",+ "livemode": false,+ "object": "event",+ "pending_webhooks": 0,"request": {"id": "invoice_plan--Event.list.2.json","idempotency_key": "00000000-0000-0000-0000-000000000000"@@ -253,7 +444,7 @@"discount_amounts": [],"discountable": false,"discounts": [],- "id": "invoice_plan--Event.list.2.json",+ "id": "invoice_plan--Event.list.3.json","invoice": "invoice_plan--Event.list.2.json","invoice_item": "ii_NORMALIZED","livemode": false,@@ -334,7 +525,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/invoice_plan--Event.list.4.json b/corporate/tests/stripe_fixtures/invoice_plan--Event.list.4.jsonindex fdc89679cbc..6d922067afe 100644--- a/corporate/tests/stripe_fixtures/invoice_plan--Event.list.4.json+++ b/corporate/tests/stripe_fixtures/invoice_plan--Event.list.4.json@@ -1,193 +1,5 @@{- "data": [- {- "api_version": "2020-08-27",- "created": 1000000000,- "data": {- "object": {- "account_country": "US",- "account_name": "Kandra Labs, Inc.",- "account_tax_ids": null,- "amount_due": 48000,- "amount_paid": 48000,- "amount_remaining": 0,- "amount_shipping": 0,- "application": null,- "application_fee_amount": null,- "attempt_count": 1,- "attempted": true,- "auto_advance": false,- "automatic_tax": {- "enabled": false,- "liability": null,- "status": null- },- "automatically_finalizes_at": null,- "billing_reason": "manual",- "charge": "ch_NORMALIZED",- "collection_method": "charge_automatically",- "created": 1000000000,- "currency": "usd",- "custom_fields": null,- "customer": "cus_NORMALIZED",- "customer_address": null,- "customer_email": "[email protected]",- "customer_name": null,- "customer_phone": null,- "customer_shipping": null,- "customer_tax_exempt": "none",- "customer_tax_ids": [],- "default_payment_method": null,- "default_source": null,- "default_tax_rates": [],- "description": null,- "discount": null,- "discounts": [],- "due_date": null,- "effective_at": 1000000000,- "ending_balance": 0,- "footer": null,- "from_invoice": null,- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",- "id": "invoice_plan--Event.list.2.json",- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",- "issuer": {- "type": "self"- },- "last_finalization_error": null,- "latest_revision": null,- "lines": {- "data": [- {- "amount": 48000,- "amount_excluding_tax": 48000,- "currency": "usd",- "description": "Zulip Cloud Standard",- "discount_amounts": [],- "discountable": false,- "discounts": [],- "id": "invoice_plan--Event.list.2.json",- "invoice": "invoice_plan--Event.list.2.json",- "invoice_item": "ii_NORMALIZED",- "livemode": false,- "metadata": {},- "object": "line_item",- "period": {- "end": 1357095845,- "start": 1325473445- },- "plan": null,- "price": {- "active": false,- "billing_scheme": "per_unit",- "created": 1000000000,- "currency": "usd",- "custom_unit_amount": null,- "id": "invoice_plan--Event.list.2.json",- "livemode": false,- "lookup_key": null,- "metadata": {},- "nickname": null,- "object": "price",- "product": "prod_NORMALIZED",- "recurring": null,- "tax_behavior": "unspecified",- "tiers_mode": null,- "transform_quantity": null,- "type": "one_time",- "unit_amount": 8000,- "unit_amount_decimal": "8000"- },- "proration": false,- "proration_details": {- "credited_items": null- },- "quantity": 6,- "subscription": null,- "tax_amounts": [],- "tax_rates": [],- "type": "invoiceitem",- "unit_amount_excluding_tax": "8000"- }- ],- "has_more": false,- "object": "list",- "total_count": 1,- "url": "/v1/invoices/invoice_plan--Event.list.2.json/lines"- },- "livemode": false,- "metadata": {- "billing_schedule": "1",- "current_plan_id": "None",- "license_management": "automatic",- "licenses": "6",- "on_free_trial": "False",- "plan_tier": "1",- "user_id": "10"- },- "next_payment_attempt": null,- "number": "NORMALIZED",- "object": "invoice",- "on_behalf_of": null,- "paid": true,- "paid_out_of_band": false,- "payment_intent": "pi_NORMALIZED",- "payment_settings": {- "default_mandate": null,- "payment_method_options": null,- "payment_method_types": null- },- "period_end": 1000000000,- "period_start": 1000000000,- "post_payment_credit_notes_amount": 0,- "pre_payment_credit_notes_amount": 0,- "quote": null,- "receipt_number": null,- "rendering": {- "amount_tax_display": null,- "pdf": {- "page_size": "letter"- }- },- "rendering_options": null,- "shipping_cost": null,- "shipping_details": null,- "starting_balance": 0,- "statement_descriptor": "Zulip Cloud Standard",- "status": "paid",- "status_transitions": {- "finalized_at": 1000000000,- "marked_uncollectible_at": null,- "paid_at": 1000000000,- "voided_at": null- },- "subscription": null,- "subscription_details": {- "metadata": null- },- "subtotal": 48000,- "subtotal_excluding_tax": 48000,- "tax": null,- "test_clock": null,- "total": 48000,- "total_discount_amounts": [],- "total_excluding_tax": 48000,- "total_tax_amounts": [],- "transfer_data": null,- "webhooks_delivered_at": 1000000000- }- },- "id": "invoice_plan--Event.list.4.json",- "livemode": false,- "object": "event",- "pending_webhooks": 0,- "request": {- "id": "invoice_plan--Event.list.2.json",- "idempotency_key": "00000000-0000-0000-0000-000000000000"- },- "type": "invoice.payment_succeeded"- }- ],+ "data": [],"has_more": false,"object": "list","url": "/v1/events"diff --git a/corporate/tests/stripe_fixtures/invoice_plan--Invoice.create.1.json b/corporate/tests/stripe_fixtures/invoice_plan--Invoice.create.1.jsonindex 67066742a17..ad838d33a62 100644--- a/corporate/tests/stripe_fixtures/invoice_plan--Invoice.create.1.json+++ b/corporate/tests/stripe_fixtures/invoice_plan--Invoice.create.1.json@@ -60,7 +60,7 @@"discount_amounts": [],"discountable": false,"discounts": [],- "id": "invoice_plan--Event.list.2.json",+ "id": "invoice_plan--Event.list.3.json","invoice": "invoice_plan--Event.list.2.json","invoice_item": "ii_NORMALIZED","livemode": false,@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/invoice_plan--Invoice.create.2.json b/corporate/tests/stripe_fixtures/invoice_plan--Invoice.create.2.jsonindex 6d2de8062bf..b476e252b10 100644--- a/corporate/tests/stripe_fixtures/invoice_plan--Invoice.create.2.json+++ b/corporate/tests/stripe_fixtures/invoice_plan--Invoice.create.2.json@@ -235,7 +235,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/invoice_plan--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/invoice_plan--Invoice.finalize_invoice.1.jsonindex 30ef5a976de..11c5dfe63de 100644--- a/corporate/tests/stripe_fixtures/invoice_plan--Invoice.finalize_invoice.1.json+++ b/corporate/tests/stripe_fixtures/invoice_plan--Invoice.finalize_invoice.1.json@@ -60,7 +60,7 @@"discount_amounts": [],"discountable": false,"discounts": [],- "id": "invoice_plan--Event.list.2.json",+ "id": "invoice_plan--Event.list.3.json","invoice": "invoice_plan--Event.list.2.json","invoice_item": "ii_NORMALIZED","livemode": false,@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -168,5 +170,5 @@"total_excluding_tax": 48000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null}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.jsonindex 6c8dedb45b0..5688c81950d 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@@ -235,7 +235,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/invoice_plan--Invoice.list.2.json b/corporate/tests/stripe_fixtures/invoice_plan--Invoice.list.2.jsonindex f7cb0b76f1f..4a9b1a439ad 100644--- a/corporate/tests/stripe_fixtures/invoice_plan--Invoice.list.2.json+++ b/corporate/tests/stripe_fixtures/invoice_plan--Invoice.list.2.json@@ -237,7 +237,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -328,7 +330,7 @@"discount_amounts": [],"discountable": false,"discounts": [],- "id": "invoice_plan--Event.list.2.json",+ "id": "invoice_plan--Event.list.3.json","invoice": "invoice_plan--Event.list.2.json","invoice_item": "ii_NORMALIZED","livemode": false,@@ -409,7 +411,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/invoice_plan--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/invoice_plan--Invoice.pay.1.jsonindex 04526e936f0..10b9eb9e95b 100644--- a/corporate/tests/stripe_fixtures/invoice_plan--Invoice.pay.1.json+++ b/corporate/tests/stripe_fixtures/invoice_plan--Invoice.pay.1.json@@ -60,7 +60,7 @@"discount_amounts": [],"discountable": false,"discounts": [],- "id": "invoice_plan--Event.list.2.json",+ "id": "invoice_plan--Event.list.3.json","invoice": "invoice_plan--Event.list.2.json","invoice_item": "ii_NORMALIZED","livemode": false,@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/invoice_plan--PaymentMethod.create.1.json b/corporate/tests/stripe_fixtures/invoice_plan--PaymentMethod.create.1.jsonindex 99172fa0035..fb1ba29080b 100644--- a/corporate/tests/stripe_fixtures/invoice_plan--PaymentMethod.create.1.json+++ b/corporate/tests/stripe_fixtures/invoice_plan--PaymentMethod.create.1.json@@ -6,7 +6,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -22,8 +22,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.create.1.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.create.1.jsonindex 43250648208..a3c9d1ec7bc 100644--- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.create.1.json+++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.create.1.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-95a","discount": null,"email": "[email protected]","id": "invoice_plans_as_needed--Customer.create.1.json",@@ -20,7 +20,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-95a9-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.modify.1.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.modify.1.jsonindex 41c78e5fc6d..b647d495fb0 100644--- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.modify.1.json+++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.modify.1.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-95a","discount": null,"email": "[email protected]","id": "invoice_plans_as_needed--Customer.create.1.json",@@ -20,7 +20,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-95a9-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.retrieve.1.jsonindex 1c14ba004e6..7e4651c1229 100644--- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.retrieve.1.json+++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.retrieve.1.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-15a","discount": null,"email": "[email protected]","id": "invoice_plans_as_needed--Customer.create.1.json",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.retrieve.2.jsonindex 1c14ba004e6..7e4651c1229 100644--- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.retrieve.2.json+++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.retrieve.2.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-15a","discount": null,"email": "[email protected]","id": "invoice_plans_as_needed--Customer.create.1.json",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.retrieve.3.jsonindex 1c14ba004e6..7e4651c1229 100644--- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.retrieve.3.json+++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.retrieve.3.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-15a","discount": null,"email": "[email protected]","id": "invoice_plans_as_needed--Customer.create.1.json",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.retrieve.4.jsonindex 1c14ba004e6..7e4651c1229 100644--- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.retrieve.4.json+++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.retrieve.4.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-15a","discount": null,"email": "[email protected]","id": "invoice_plans_as_needed--Customer.create.1.json",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.retrieve.5.jsonnew file mode 100644index 00000000000..7e4651c1229--- /dev/null+++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.retrieve.5.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": null,+ "default_currency": null,+ "default_source": null,+ "delinquent": false,+ "description": "zulip.testserver 3383e261-15a",+ "discount": null,+ "email": "[email protected]",+ "id": "invoice_plans_as_needed--Customer.create.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "invoice_plans_as_needed--Customer.create.1.json",+ "id": "invoice_plans_as_needed--Customer.retrieve.1.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "remote_realm_host": "zulip.testserver",+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"+ },+ "name": null,+ "next_invoice_sequence": 1,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Event.list.1.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Event.list.1.jsonindex eda09626d5c..a272e16a0ea 100644--- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Event.list.1.json+++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Event.list.1.json@@ -12,7 +12,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-95a","discount": null,"email": "[email protected]","id": "invoice_plans_as_needed--Customer.create.1.json",@@ -26,7 +26,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-95a9-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Event.list.2.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Event.list.2.jsonindex 7b1ae4a6cce..214104aeb80 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@@ -33,7 +33,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -82,8 +82,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -209,7 +209,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -258,8 +258,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -516,7 +516,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -753,7 +755,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -1084,7 +1088,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -1260,7 +1266,7 @@"default_currency": "usd","default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-15a","discount": null,"email": "[email protected]","id": "invoice_plans_as_needed--Customer.create.1.json",@@ -1274,7 +1280,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Event.list.3.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Event.list.3.jsonindex 7529f2ddb48..1497ccaf80e 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@@ -197,7 +197,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -230,7 +232,7 @@"id": "invoice_plans_as_needed--Event.list.3.json","livemode": false,"object": "event",- "pending_webhooks": 0,+ "pending_webhooks": 2,"request": {"id": "invoice_plans_as_needed--Event.list.2.json","idempotency_key": "00000000-0000-0000-0000-000000000000"@@ -434,7 +436,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -671,7 +675,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Invoice.create.1.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Invoice.create.1.jsonindex 3aad79ad61a..b04e52015db 100644--- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Invoice.create.1.json+++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Invoice.create.1.json@@ -191,7 +191,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Invoice.create.2.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Invoice.create.2.jsonindex bffedc93c86..31097b4ad05 100644--- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Invoice.create.2.json+++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Invoice.create.2.json@@ -235,7 +235,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,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.jsonindex 49139450f1a..57427ed984d 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@@ -191,7 +191,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": 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.jsonindex 069d06c5828..137f35b13a1 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@@ -235,7 +235,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,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.jsonindex 47c33edbb5c..233e2a697ae 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@@ -237,7 +237,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -459,7 +461,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,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.jsonindex aa88c7ba052..61f76449323 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@@ -191,7 +191,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--InvoiceItem.create.1.jsonindex b639e5c2533..e11c9280558 100644--- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--InvoiceItem.create.1.json+++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--InvoiceItem.create.1.json@@ -6,7 +6,7 @@"description": "Zulip Basic","discountable": false,"discounts": [],- "id": "invoice_plans_as_needed--Event.list.2.json",+ "id": "invoice_plans_as_needed--InvoiceItem.create.1.json","invoice": null,"livemode": false,"metadata": {},diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--PaymentMethod.create.1.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--PaymentMethod.create.1.jsonindex 457c0354402..89a33c57209 100644--- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--PaymentMethod.create.1.json+++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--PaymentMethod.create.1.json@@ -6,7 +6,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -22,8 +22,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": 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.jsonindex 7b3b55fc203..8a2421f9177 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@@ -9,7 +9,7 @@"status": null},"billing_address_collection": "required",- "cancel_url": "http://selfhosting.testserver/realm/f6d476f5-b66f-45ce-8623-a273ff4d7787/upgrade/?manual_license_management=false&tier=1",+ "cancel_url": "http://selfhosting.testserver/realm/3383e261-95a9-4f36-ae0c-4ecf80fab561/upgrade/?manual_license_management=false&tier=1","client_reference_id": null,"client_secret": null,"consent": null,@@ -73,7 +73,7 @@"status": "open","submit_type": null,"subscription": null,- "success_url": "http://selfhosting.testserver/realm/f6d476f5-b66f-45ce-8623-a273ff4d7787/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",+ "success_url": "http://selfhosting.testserver/realm/3383e261-95a9-4f36-ae0c-4ecf80fab561/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}","total_details": null,"ui_mode": "hosted","url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED"diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--checkout.Session.list.1.jsonindex cb9f270d417..c046f3476fd 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@@ -11,7 +11,7 @@"status": null},"billing_address_collection": "required",- "cancel_url": "http://selfhosting.testserver/realm/f6d476f5-b66f-45ce-8623-a273ff4d7787/upgrade/?manual_license_management=false&tier=1",+ "cancel_url": "http://selfhosting.testserver/realm/3383e261-95a9-4f36-ae0c-4ecf80fab561/upgrade/?manual_license_management=false&tier=1","client_reference_id": null,"client_secret": null,"consent": null,@@ -75,7 +75,7 @@"status": "open","submit_type": null,"subscription": null,- "success_url": "http://selfhosting.testserver/realm/f6d476f5-b66f-45ce-8623-a273ff4d7787/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",+ "success_url": "http://selfhosting.testserver/realm/3383e261-95a9-4f36-ae0c-4ecf80fab561/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}","total_details": null,"ui_mode": "hosted","url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED"diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Customer.retrieve.1.jsonindex 1eb687075a0..8c1066979a4 100644--- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Customer.retrieve.1.json+++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Customer.retrieve.1.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Customer.retrieve.2.jsonindex 1eb687075a0..8c1066979a4 100644--- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Customer.retrieve.2.json+++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Customer.retrieve.2.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Customer.retrieve.3.jsonindex 1eb687075a0..8c1066979a4 100644--- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Customer.retrieve.3.json+++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Customer.retrieve.3.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Customer.retrieve.4.jsonindex 1eb687075a0..8c1066979a4 100644--- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Customer.retrieve.4.json+++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Customer.retrieve.4.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Customer.retrieve.5.jsonnew file mode 100644index 00000000000..8c1066979a4--- /dev/null+++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Customer.retrieve.5.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": null,+ "default_currency": null,+ "default_source": null,+ "delinquent": false,+ "description": "demo.example.com 6cde5f7a-1f7",+ "discount": null,+ "email": "[email protected]",+ "id": "invoice_plans_as_needed_server--Customer.create.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "invoice_plans_as_needed_server--Customer.create.1.json",+ "id": "invoice_plans_as_needed_server--Customer.retrieve.1.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "remote_server_str": "demo.example.com 6cde5f7a-1f7",+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"+ },+ "name": null,+ "next_invoice_sequence": 1,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}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.jsonindex 0abb73a4b82..1532a39fd15 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@@ -33,7 +33,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -82,8 +82,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -209,7 +209,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -258,8 +258,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -516,7 +516,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -753,7 +755,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -1084,7 +1088,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -1274,7 +1280,7 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,"next_invoice_sequence": 1,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.jsonindex 87e8d421835..08bb1484173 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@@ -197,7 +197,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -230,7 +232,7 @@"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"@@ -434,7 +436,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -671,7 +675,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Invoice.create.1.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Invoice.create.1.jsonindex 23a74238331..99d787d351b 100644--- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Invoice.create.1.json+++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Invoice.create.1.json@@ -191,7 +191,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Invoice.create.2.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Invoice.create.2.jsonindex 8592851718c..5ff98c08229 100644--- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Invoice.create.2.json+++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Invoice.create.2.json@@ -235,7 +235,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,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.jsonindex 61d0e2e145e..6fc2c459107 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@@ -191,7 +191,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": 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.jsonindex 0e8bb75927e..0db44a7b028 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@@ -235,7 +235,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": 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.jsonindex ea96eb43a36..846bf3845cb 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@@ -237,7 +237,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -264,7 +266,7 @@"total_excluding_tax": 7685,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null},{"account_country": "US",@@ -459,7 +461,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,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.jsonindex a3ab6872a88..aa79c6ea1cf 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@@ -191,7 +191,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--PaymentMethod.create.1.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--PaymentMethod.create.1.jsonindex d5e0901d683..a2c09d41217 100644--- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--PaymentMethod.create.1.json+++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--PaymentMethod.create.1.json@@ -6,7 +6,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -22,8 +22,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--Customer.create.1.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--Customer.create.1.jsonindex 2b1dccfe388..ecc96417280 100644--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--Customer.create.1.json+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--Customer.create.1.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-95a","discount": null,"email": "[email protected]","id": "invoice_scheduled_upgrade_realm_legacy_plan--Customer.create.1.json",@@ -20,7 +20,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-95a9-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--Customer.modify.1.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--Customer.modify.1.jsonindex c6dfddf51db..27cf50c9170 100644--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--Customer.modify.1.json+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--Customer.modify.1.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-95a","discount": null,"email": "[email protected]","id": "invoice_scheduled_upgrade_realm_legacy_plan--Customer.create.1.json",@@ -20,7 +20,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-95a9-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--Customer.retrieve.1.jsonindex b29218eee24..492260167be 100644--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--Customer.retrieve.1.json+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--Customer.retrieve.1.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-15a","discount": null,"email": "[email protected]","id": "invoice_scheduled_upgrade_realm_legacy_plan--Customer.create.1.json",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--Customer.retrieve.2.jsonindex b29218eee24..492260167be 100644--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--Customer.retrieve.2.json+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--Customer.retrieve.2.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-15a","discount": null,"email": "[email protected]","id": "invoice_scheduled_upgrade_realm_legacy_plan--Customer.create.1.json",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--Customer.retrieve.3.jsonindex b29218eee24..492260167be 100644--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--Customer.retrieve.3.json+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--Customer.retrieve.3.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-15a","discount": null,"email": "[email protected]","id": "invoice_scheduled_upgrade_realm_legacy_plan--Customer.create.1.json",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--Customer.retrieve.4.jsonindex b29218eee24..492260167be 100644--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--Customer.retrieve.4.json+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--Customer.retrieve.4.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-15a","discount": null,"email": "[email protected]","id": "invoice_scheduled_upgrade_realm_legacy_plan--Customer.create.1.json",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--Customer.retrieve.5.jsonnew file mode 100644index 00000000000..492260167be--- /dev/null+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--Customer.retrieve.5.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": null,+ "default_currency": null,+ "default_source": null,+ "delinquent": false,+ "description": "zulip.testserver 3383e261-15a",+ "discount": null,+ "email": "[email protected]",+ "id": "invoice_scheduled_upgrade_realm_legacy_plan--Customer.create.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "invoice_scheduled_upgrade_realm_legacy_plan--Customer.create.1.json",+ "id": "invoice_scheduled_upgrade_realm_legacy_plan--Customer.retrieve.1.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "remote_realm_host": "zulip.testserver",+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"+ },+ "name": null,+ "next_invoice_sequence": 1,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--Invoice.create.1.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--Invoice.create.1.jsonindex c548033af2a..dce46aa6895 100644--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--Invoice.create.1.json+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--Invoice.create.1.json@@ -184,7 +184,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--Invoice.finalize_invoice.1.jsonindex c18ee4ba085..7d81545c602 100644--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--Invoice.finalize_invoice.1.json+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--Invoice.finalize_invoice.1.json@@ -184,7 +184,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--Invoice.list.2.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--Invoice.list.2.jsonindex 5e40b26e630..b9dd294e796 100644--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--Invoice.list.2.json+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--Invoice.list.2.json@@ -186,7 +186,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--PaymentMethod.create.1.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--PaymentMethod.create.1.jsonindex f54161c2635..c0c611c846a 100644--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--PaymentMethod.create.1.json+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--PaymentMethod.create.1.json@@ -6,7 +6,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -22,8 +22,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--checkout.Session.create.1.jsonindex 78f857228fe..cc0f9289c4b 100644--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--checkout.Session.create.1.json+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--checkout.Session.create.1.json@@ -9,7 +9,7 @@"status": null},"billing_address_collection": "required",- "cancel_url": "http://selfhosting.testserver/realm/f6d476f5-b66f-45ce-8623-a273ff4d7787/upgrade/?manual_license_management=false&tier=1",+ "cancel_url": "http://selfhosting.testserver/realm/3383e261-95a9-4f36-ae0c-4ecf80fab561/upgrade/?manual_license_management=false&tier=1","client_reference_id": null,"client_secret": null,"consent": null,@@ -73,7 +73,7 @@"status": "open","submit_type": null,"subscription": null,- "success_url": "http://selfhosting.testserver/realm/f6d476f5-b66f-45ce-8623-a273ff4d7787/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",+ "success_url": "http://selfhosting.testserver/realm/3383e261-95a9-4f36-ae0c-4ecf80fab561/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}","total_details": null,"ui_mode": "hosted","url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED"diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--checkout.Session.list.1.jsonindex 02ad105efd0..d87ff8bf169 100644--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--checkout.Session.list.1.json+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--checkout.Session.list.1.json@@ -11,7 +11,7 @@"status": null},"billing_address_collection": "required",- "cancel_url": "http://selfhosting.testserver/realm/f6d476f5-b66f-45ce-8623-a273ff4d7787/upgrade/?manual_license_management=false&tier=1",+ "cancel_url": "http://selfhosting.testserver/realm/3383e261-95a9-4f36-ae0c-4ecf80fab561/upgrade/?manual_license_management=false&tier=1","client_reference_id": null,"client_secret": null,"consent": null,@@ -75,7 +75,7 @@"status": "open","submit_type": null,"subscription": null,- "success_url": "http://selfhosting.testserver/realm/f6d476f5-b66f-45ce-8623-a273ff4d7787/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",+ "success_url": "http://selfhosting.testserver/realm/3383e261-95a9-4f36-ae0c-4ecf80fab561/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}","total_details": null,"ui_mode": "hosted","url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED"diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--Customer.retrieve.1.jsonindex 0acd0d58575..7b1e11d7750 100644--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--Customer.retrieve.1.json+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--Customer.retrieve.1.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--Customer.retrieve.2.jsonindex 0acd0d58575..7b1e11d7750 100644--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--Customer.retrieve.2.json+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--Customer.retrieve.2.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--Customer.retrieve.3.jsonindex 0acd0d58575..7b1e11d7750 100644--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--Customer.retrieve.3.json+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--Customer.retrieve.3.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--Customer.retrieve.4.jsonindex 0acd0d58575..7b1e11d7750 100644--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--Customer.retrieve.4.json+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--Customer.retrieve.4.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--Customer.retrieve.5.jsonnew file mode 100644index 00000000000..7b1e11d7750--- /dev/null+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--Customer.retrieve.5.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": null,+ "default_currency": null,+ "default_source": null,+ "delinquent": false,+ "description": "demo.example.com 6cde5f7a-1f7",+ "discount": null,+ "email": "[email protected]",+ "id": "invoice_scheduled_upgrade_server_legacy_plan--Customer.create.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "invoice_scheduled_upgrade_server_legacy_plan--Customer.create.1.json",+ "id": "invoice_scheduled_upgrade_server_legacy_plan--Customer.retrieve.1.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "remote_server_str": "demo.example.com 6cde5f7a-1f7",+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"+ },+ "name": null,+ "next_invoice_sequence": 1,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--Invoice.create.1.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--Invoice.create.1.jsonindex 37a5530f276..88c12937c9e 100644--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--Invoice.create.1.json+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--Invoice.create.1.json@@ -184,7 +184,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--Invoice.finalize_invoice.1.jsonindex 9e504dfe055..9a0714b3718 100644--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--Invoice.finalize_invoice.1.json+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--Invoice.finalize_invoice.1.json@@ -184,7 +184,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--Invoice.list.2.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--Invoice.list.2.jsonindex e0857549d06..cbac1e35169 100644--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--Invoice.list.2.json+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--Invoice.list.2.json@@ -186,7 +186,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--PaymentMethod.create.1.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--PaymentMethod.create.1.jsonindex dad211e99c6..918fa2dd2a3 100644--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--PaymentMethod.create.1.json+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--PaymentMethod.create.1.json@@ -6,7 +6,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -22,8 +22,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.create.1.json b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.create.1.jsonindex d557b3acd5a..832d760c9fd 100644--- a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.create.1.json+++ b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.create.1.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-95a","discount": null,"email": "[email protected]","id": "migrate_customer_server_to_realms_and_upgrade--Customer.create.1.json",@@ -20,7 +20,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-95a9-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.modify.1.json b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.modify.1.jsonindex 2429365e9ca..ee504ae9be1 100644--- a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.modify.1.json+++ b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.modify.1.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-95a","discount": null,"email": "[email protected]","id": "migrate_customer_server_to_realms_and_upgrade--Customer.create.1.json",@@ -20,7 +20,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-95a9-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.retrieve.1.jsonindex aca5fb9f9fe..01fe581ab46 100644--- a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.retrieve.1.json+++ b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.retrieve.1.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-15a","discount": null,"email": "[email protected]","id": "migrate_customer_server_to_realms_and_upgrade--Customer.create.1.json",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.retrieve.2.jsonindex aca5fb9f9fe..01fe581ab46 100644--- a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.retrieve.2.json+++ b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.retrieve.2.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-15a","discount": null,"email": "[email protected]","id": "migrate_customer_server_to_realms_and_upgrade--Customer.create.1.json",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.retrieve.3.jsonindex aca5fb9f9fe..01fe581ab46 100644--- a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.retrieve.3.json+++ b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.retrieve.3.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-15a","discount": null,"email": "[email protected]","id": "migrate_customer_server_to_realms_and_upgrade--Customer.create.1.json",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.retrieve.4.jsonindex aca5fb9f9fe..01fe581ab46 100644--- a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.retrieve.4.json+++ b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.retrieve.4.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-15a","discount": null,"email": "[email protected]","id": "migrate_customer_server_to_realms_and_upgrade--Customer.create.1.json",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.retrieve.5.jsonindex 63abc551ae5..01fe581ab46 100644--- a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.retrieve.5.json+++ b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.retrieve.5.json@@ -2,11 +2,11 @@"address": null,"balance": 0,"created": 1000000000,- "currency": "usd",- "default_currency": "usd",+ "currency": null,+ "default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-15a","discount": null,"email": "[email protected]","id": "migrate_customer_server_to_realms_and_upgrade--Customer.create.1.json",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,10 +68,10 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"},"name": null,- "next_invoice_sequence": 2,+ "next_invoice_sequence": 1,"object": "customer","phone": null,"preferred_locales": [],diff --git a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.retrieve.6.json b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.retrieve.6.jsonnew file mode 100644index 00000000000..50758e84037--- /dev/null+++ b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.retrieve.6.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": "usd",+ "default_currency": "usd",+ "default_source": null,+ "delinquent": false,+ "description": "zulip.testserver 3383e261-15a",+ "discount": null,+ "email": "[email protected]",+ "id": "migrate_customer_server_to_realms_and_upgrade--Customer.create.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "migrate_customer_server_to_realms_and_upgrade--Customer.create.1.json",+ "id": "migrate_customer_server_to_realms_and_upgrade--Customer.retrieve.1.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "remote_realm_host": "zulip.testserver",+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"+ },+ "name": null,+ "next_invoice_sequence": 2,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Event.list.1.json b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Event.list.1.jsonindex b4efd4b6dc8..c15b6a955e2 100644--- a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Event.list.1.json+++ b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Event.list.1.json@@ -12,7 +12,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-95a","discount": null,"email": "[email protected]","id": "migrate_customer_server_to_realms_and_upgrade--Customer.create.1.json",@@ -26,7 +26,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-95a9-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Event.list.2.json b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Event.list.2.jsonindex 111135694d7..cbb9725e3ef 100644--- a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Event.list.2.json+++ b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Event.list.2.json@@ -33,7 +33,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -82,8 +82,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -184,7 +184,7 @@"id": "migrate_customer_server_to_realms_and_upgrade--Event.list.2.json","livemode": false,"object": "event",- "pending_webhooks": 1,+ "pending_webhooks": 0,"request": {"id": "migrate_customer_server_to_realms_and_upgrade--Event.list.2.json","idempotency_key": "00000000-0000-0000-0000-000000000000"@@ -209,7 +209,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -258,8 +258,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -392,7 +392,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -443,7 +443,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -516,7 +516,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -629,7 +631,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -680,7 +682,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -753,7 +755,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -960,7 +964,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -1011,7 +1015,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -1084,7 +1088,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -1142,7 +1148,7 @@"metadata": {},"object": "invoiceitem","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -1204,7 +1210,7 @@"metadata": {},"object": "invoiceitem","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -1260,7 +1266,7 @@"default_currency": "usd","default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-15a","discount": null,"email": "[email protected]","id": "migrate_customer_server_to_realms_and_upgrade--Customer.create.1.json",@@ -1274,7 +1280,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Event.list.3.json b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Event.list.3.jsonindex 0f24daa6bc0..7fcdfc44a4d 100644--- a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Event.list.3.json+++ b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Event.list.3.json@@ -197,7 +197,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -224,7 +226,7 @@"total_excluding_tax": 176000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": null+ "webhooks_delivered_at": 1000000000}},"id": "migrate_customer_server_to_realms_and_upgrade--Event.list.3.json",@@ -434,7 +436,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -461,7 +465,7 @@"total_excluding_tax": 176000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": null+ "webhooks_delivered_at": 1000000000}},"id": "migrate_customer_server_to_realms_and_upgrade--Event.list.3.json",@@ -671,7 +675,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -698,7 +704,7 @@"total_excluding_tax": 176000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": null+ "webhooks_delivered_at": 1000000000},"previous_attributes": {"amount_paid": 0,diff --git a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Invoice.create.1.json b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Invoice.create.1.jsonindex 9af73edef96..0b5e78fa548 100644--- a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Invoice.create.1.json+++ b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Invoice.create.1.json@@ -191,7 +191,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Invoice.finalize_invoice.1.jsonindex 8c70149e7b9..2bfef778689 100644--- a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Invoice.finalize_invoice.1.json+++ b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Invoice.finalize_invoice.1.json@@ -191,7 +191,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Invoice.pay.1.jsonindex 3c3a4d41478..c68ec77276f 100644--- a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Invoice.pay.1.json+++ b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Invoice.pay.1.json@@ -191,7 +191,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -218,5 +220,5 @@"total_excluding_tax": 176000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": null+ "webhooks_delivered_at": 1000000000}diff --git a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--PaymentMethod.create.1.json b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--PaymentMethod.create.1.jsonindex 2345baf1b60..a41c2c1cdee 100644--- a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--PaymentMethod.create.1.json+++ b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--PaymentMethod.create.1.json@@ -6,7 +6,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -22,8 +22,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--checkout.Session.create.1.jsonindex 8295d04edf8..2b82cd6acd1 100644--- a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--checkout.Session.create.1.json+++ b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--checkout.Session.create.1.json@@ -9,7 +9,7 @@"status": null},"billing_address_collection": "required",- "cancel_url": "http://selfhosting.testserver/realm/f6d476f5-b66f-45ce-8623-a273ff4d7787/upgrade/?manual_license_management=false&tier=1",+ "cancel_url": "http://selfhosting.testserver/realm/3383e261-95a9-4f36-ae0c-4ecf80fab561/upgrade/?manual_license_management=false&tier=1","client_reference_id": null,"client_secret": null,"consent": null,@@ -73,7 +73,7 @@"status": "open","submit_type": null,"subscription": null,- "success_url": "http://selfhosting.testserver/realm/f6d476f5-b66f-45ce-8623-a273ff4d7787/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",+ "success_url": "http://selfhosting.testserver/realm/3383e261-95a9-4f36-ae0c-4ecf80fab561/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}","total_details": null,"ui_mode": "hosted","url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED"diff --git a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--checkout.Session.list.1.jsonindex 69822a98fd7..cc4b762806e 100644--- a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--checkout.Session.list.1.json+++ b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--checkout.Session.list.1.json@@ -11,7 +11,7 @@"status": null},"billing_address_collection": "required",- "cancel_url": "http://selfhosting.testserver/realm/f6d476f5-b66f-45ce-8623-a273ff4d7787/upgrade/?manual_license_management=false&tier=1",+ "cancel_url": "http://selfhosting.testserver/realm/3383e261-95a9-4f36-ae0c-4ecf80fab561/upgrade/?manual_license_management=false&tier=1","client_reference_id": null,"client_secret": null,"consent": null,@@ -75,7 +75,7 @@"status": "open","submit_type": null,"subscription": null,- "success_url": "http://selfhosting.testserver/realm/f6d476f5-b66f-45ce-8623-a273ff4d7787/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",+ "success_url": "http://selfhosting.testserver/realm/3383e261-95a9-4f36-ae0c-4ecf80fab561/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}","total_details": null,"ui_mode": "hosted","url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED"diff --git a/corporate/tests/stripe_fixtures/non_sponsorship_billing--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/non_sponsorship_billing--Customer.retrieve.1.jsonindex 58228e73c3b..35d754a20a8 100644--- a/corporate/tests/stripe_fixtures/non_sponsorship_billing--Customer.retrieve.1.json+++ b/corporate/tests/stripe_fixtures/non_sponsorship_billing--Customer.retrieve.1.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/non_sponsorship_billing--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/non_sponsorship_billing--Customer.retrieve.2.jsonindex 58228e73c3b..35d754a20a8 100644--- a/corporate/tests/stripe_fixtures/non_sponsorship_billing--Customer.retrieve.2.json+++ b/corporate/tests/stripe_fixtures/non_sponsorship_billing--Customer.retrieve.2.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/non_sponsorship_billing--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/non_sponsorship_billing--Customer.retrieve.3.jsonindex 58228e73c3b..35d754a20a8 100644--- a/corporate/tests/stripe_fixtures/non_sponsorship_billing--Customer.retrieve.3.json+++ b/corporate/tests/stripe_fixtures/non_sponsorship_billing--Customer.retrieve.3.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/non_sponsorship_billing--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/non_sponsorship_billing--Customer.retrieve.4.jsonindex 58228e73c3b..35d754a20a8 100644--- a/corporate/tests/stripe_fixtures/non_sponsorship_billing--Customer.retrieve.4.json+++ b/corporate/tests/stripe_fixtures/non_sponsorship_billing--Customer.retrieve.4.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/non_sponsorship_billing--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/non_sponsorship_billing--Customer.retrieve.5.jsonindex b6b89e62de3..35d754a20a8 100644--- a/corporate/tests/stripe_fixtures/non_sponsorship_billing--Customer.retrieve.5.json+++ b/corporate/tests/stripe_fixtures/non_sponsorship_billing--Customer.retrieve.5.json@@ -2,8 +2,8 @@"address": null,"balance": 0,"created": 1000000000,- "currency": "usd",- "default_currency": "usd",+ "currency": null,+ "default_currency": null,"default_source": null,"delinquent": false,"description": "demo.example.com 6cde5f7a-1f7",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,10 +68,10 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,- "next_invoice_sequence": 2,+ "next_invoice_sequence": 1,"object": "customer","phone": null,"preferred_locales": [],diff --git a/corporate/tests/stripe_fixtures/non_sponsorship_billing--Customer.retrieve.6.json b/corporate/tests/stripe_fixtures/non_sponsorship_billing--Customer.retrieve.6.jsonnew file mode 100644index 00000000000..ef1018409fc--- /dev/null+++ b/corporate/tests/stripe_fixtures/non_sponsorship_billing--Customer.retrieve.6.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": "usd",+ "default_currency": "usd",+ "default_source": null,+ "delinquent": false,+ "description": "demo.example.com 6cde5f7a-1f7",+ "discount": null,+ "email": "[email protected]",+ "id": "non_sponsorship_billing--Customer.create.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "non_sponsorship_billing--Customer.create.1.json",+ "id": "non_sponsorship_billing--Customer.retrieve.1.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "remote_server_str": "demo.example.com 6cde5f7a-1f7",+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"+ },+ "name": null,+ "next_invoice_sequence": 2,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/non_sponsorship_billing--Event.list.2.json b/corporate/tests/stripe_fixtures/non_sponsorship_billing--Event.list.2.jsonindex 221267df4aa..f660529a57c 100644--- a/corporate/tests/stripe_fixtures/non_sponsorship_billing--Event.list.2.json+++ b/corporate/tests/stripe_fixtures/non_sponsorship_billing--Event.list.2.json@@ -10,7 +10,7 @@"amount_details": {"tip": {}},- "amount_received": 176000,+ "amount_received": 0,"application": null,"application_fee_amount": null,"automatic_payment_methods": null,@@ -18,124 +18,10 @@"cancellation_reason": null,"capture_method": "automatic","charges": {- "data": [- {- "amount": 176000,- "amount_captured": 176000,- "amount_refunded": 0,- "application": null,- "application_fee": null,- "application_fee_amount": null,- "balance_transaction": "txn_NORMALIZED",- "billing_details": {- "address": {- "city": "San Francisco",- "country": "US",- "line1": "123 Main St",- "line2": null,- "postal_code": "94105",- "state": "CA"- },- "email": null,- "name": "John Doe",- "phone": null- },- "calculated_statement_descriptor": "ZULIP BUSINESS",- "captured": true,- "created": 1000000000,- "currency": "usd",- "customer": "non_sponsorship_billing--Customer.create.1.json",- "description": "Payment for Invoice",- "destination": null,- "dispute": null,- "disputed": false,- "failure_balance_transaction": null,- "failure_code": null,- "failure_message": null,- "fraud_details": {},- "id": "non_sponsorship_billing--Event.list.2.json",- "invoice": "non_sponsorship_billing--Event.list.2.json",- "livemode": false,- "metadata": {},- "object": "charge",- "on_behalf_of": null,- "order": null,- "outcome": {- "network_status": "approved_by_network",- "reason": null,- "risk_level": "normal",- "risk_score": 0,- "seller_message": "Payment complete.",- "type": "authorized"- },- "paid": true,- "payment_intent": "non_sponsorship_billing--Event.list.2.json",- "payment_method": "pm_NORMALIZED",- "payment_method_details": {- "card": {- "amount_authorized": 176000,- "authorization_code": null,- "brand": "visa",- "checks": {- "address_line1_check": "pass",- "address_postal_code_check": "pass",- "cvc_check": "pass"- },- "country": "US",- "exp_month": 8,- "exp_year": 2025,- "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- },- "overcapture": {- "maximum_amount_capturable": 176000,- "status": "unavailable"- },- "three_d_secure": null,- "wallet": null- },- "type": "card"- },- "receipt_email": "[email protected]",- "receipt_number": null,- "receipt_url": "https://pay.stripe.com/receipts/invoices/NORMALIZED?s=ap",- "refunded": false,- "refunds": {- "data": [],- "has_more": false,- "object": "list",- "total_count": 0,- "url": "/v1/charges/non_sponsorship_billing--Event.list.2.json/refunds"- },- "review": null,- "shipping": null,- "source": null,- "source_transfer": null,- "statement_descriptor": "Zulip Business",- "statement_descriptor_suffix": null,- "status": "succeeded",- "transfer_data": null,- "transfer_group": null- }- ],+ "data": [],"has_more": false,"object": "list",- "total_count": 1,+ "total_count": 0,"url": "/v1/charges?payment_intent=non_sponsorship_billing--Event.list.2.json"},"client_secret": "NORMALIZED",@@ -147,13 +33,13 @@"id": "non_sponsorship_billing--Event.list.2.json","invoice": "non_sponsorship_billing--Event.list.2.json","last_payment_error": null,- "latest_charge": "non_sponsorship_billing--Event.list.2.json",+ "latest_charge": null,"livemode": false,"metadata": {},"next_action": null,"object": "payment_intent","on_behalf_of": null,- "payment_method": "pm_NORMALIZED",+ "payment_method": null,"payment_method_configuration_details": null,"payment_method_options": {"card": {@@ -176,7 +62,7 @@"source": null,"statement_descriptor": "Zulip Business","statement_descriptor_suffix": null,- "status": "succeeded",+ "status": "requires_payment_method","transfer_data": null,"transfer_group": null}@@ -189,135 +75,290 @@"id": "non_sponsorship_billing--Event.list.2.json","idempotency_key": "00000000-0000-0000-0000-000000000000"},- "type": "payment_intent.succeeded"+ "type": "payment_intent.created"},{"api_version": "2020-08-27","created": 1000000000,"data": {"object": {- "amount": 176000,- "amount_captured": 176000,- "amount_refunded": 0,+ "account_country": "US",+ "account_name": "Kandra Labs, Inc.",+ "account_tax_ids": null,+ "amount_due": 80617,+ "amount_paid": 80617,+ "amount_remaining": 0,+ "amount_shipping": 0,"application": null,- "application_fee": null,"application_fee_amount": null,- "balance_transaction": "txn_NORMALIZED",- "billing_details": {- "address": {- "city": "San Francisco",- "country": "US",- "line1": "123 Main St",- "line2": null,- "postal_code": "94105",- "state": "CA"- },- "email": null,- "name": "John Doe",- "phone": null+ "attempt_count": 1,+ "attempted": true,+ "auto_advance": false,+ "automatic_tax": {+ "enabled": false,+ "liability": null,+ "status": null},- "calculated_statement_descriptor": "ZULIP BUSINESS",- "captured": true,+ "automatically_finalizes_at": null,+ "billing_reason": "manual",+ "charge": "non_sponsorship_billing--Event.list.2.json",+ "collection_method": "charge_automatically","created": 1000000000,"currency": "usd",- "customer": "non_sponsorship_billing--Customer.create.1.json",- "description": "Payment for Invoice",- "destination": null,- "dispute": null,- "disputed": false,- "failure_balance_transaction": null,- "failure_code": null,- "failure_message": null,- "fraud_details": {},+ "custom_fields": null,+ "customer": "cus_NORMALIZED",+ "customer_address": null,+ "customer_email": "[email protected]",+ "customer_name": null,+ "customer_phone": null,+ "customer_shipping": null,+ "customer_tax_exempt": "none",+ "customer_tax_ids": [],+ "default_payment_method": null,+ "default_source": null,+ "default_tax_rates": [],+ "description": null,+ "discount": null,+ "discounts": [],+ "due_date": null,+ "effective_at": 1000000000,+ "ending_balance": 0,+ "footer": null,+ "from_invoice": null,+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap","id": "non_sponsorship_billing--Event.list.2.json",- "invoice": "non_sponsorship_billing--Event.list.2.json",+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",+ "issuer": {+ "type": "self"+ },+ "last_finalization_error": null,+ "latest_revision": null,+ "lines": {+ "data": [+ {+ "amount": 7255,+ "amount_excluding_tax": 7255,+ "currency": "usd",+ "description": "Additional license (Feb 5, 2013 - Jan 2, 2014)",+ "discount_amounts": [],+ "discountable": false,+ "discounts": [],+ "id": "non_sponsorship_billing--Event.list.2.json",+ "invoice": "non_sponsorship_billing--Event.list.2.json",+ "invoice_item": "ii_NORMALIZED",+ "livemode": false,+ "metadata": {},+ "object": "line_item",+ "period": {+ "end": 1388631845,+ "start": 1360033445+ },+ "plan": null,+ "price": {+ "active": false,+ "billing_scheme": "per_unit",+ "created": 1000000000,+ "currency": "usd",+ "custom_unit_amount": null,+ "id": "non_sponsorship_billing--Event.list.2.json",+ "livemode": false,+ "lookup_key": null,+ "metadata": {},+ "nickname": null,+ "object": "price",+ "product": "prod_NORMALIZED",+ "recurring": null,+ "tax_behavior": "unspecified",+ "tiers_mode": null,+ "transform_quantity": null,+ "type": "one_time",+ "unit_amount": 7255,+ "unit_amount_decimal": "7255"+ },+ "proration": false,+ "proration_details": {+ "credited_items": null+ },+ "quantity": 1,+ "subscription": null,+ "tax_amounts": [],+ "tax_rates": [],+ "type": "invoiceitem",+ "unit_amount_excluding_tax": "7255"+ },+ {+ "amount": 56000,+ "amount_excluding_tax": 56000,+ "currency": "usd",+ "description": "Zulip Cloud Standard - renewal",+ "discount_amounts": [],+ "discountable": false,+ "discounts": [],+ "id": "non_sponsorship_billing--Event.list.2.json",+ "invoice": "non_sponsorship_billing--Event.list.2.json",+ "invoice_item": "ii_NORMALIZED",+ "livemode": false,+ "metadata": {},+ "object": "line_item",+ "period": {+ "end": 1388631845,+ "start": 1357015845+ },+ "plan": null,+ "price": {+ "active": false,+ "billing_scheme": "per_unit",+ "created": 1000000000,+ "currency": "usd",+ "custom_unit_amount": null,+ "id": "non_sponsorship_billing--Event.list.2.json",+ "livemode": false,+ "lookup_key": null,+ "metadata": {},+ "nickname": null,+ "object": "price",+ "product": "prod_NORMALIZED",+ "recurring": null,+ "tax_behavior": "unspecified",+ "tiers_mode": null,+ "transform_quantity": null,+ "type": "one_time",+ "unit_amount": 8000,+ "unit_amount_decimal": "8000"+ },+ "proration": false,+ "proration_details": {+ "credited_items": null+ },+ "quantity": 7,+ "subscription": null,+ "tax_amounts": [],+ "tax_rates": [],+ "type": "invoiceitem",+ "unit_amount_excluding_tax": "8000"+ },+ {+ "amount": 17442,+ "amount_excluding_tax": 17442,+ "currency": "usd",+ "description": "Additional license (Apr 11, 2012 - Jan 2, 2013)",+ "discount_amounts": [],+ "discountable": false,+ "discounts": [],+ "id": "non_sponsorship_billing--Event.list.2.json",+ "invoice": "non_sponsorship_billing--Event.list.2.json",+ "invoice_item": "ii_NORMALIZED",+ "livemode": false,+ "metadata": {},+ "object": "line_item",+ "period": {+ "end": 1357015845,+ "start": 1334113445+ },+ "plan": null,+ "price": {+ "active": false,+ "billing_scheme": "per_unit",+ "created": 1000000000,+ "currency": "usd",+ "custom_unit_amount": null,+ "id": "non_sponsorship_billing--Event.list.2.json",+ "livemode": false,+ "lookup_key": null,+ "metadata": {},+ "nickname": null,+ "object": "price",+ "product": "prod_NORMALIZED",+ "recurring": null,+ "tax_behavior": "unspecified",+ "tiers_mode": null,+ "transform_quantity": null,+ "type": "one_time",+ "unit_amount": 5814,+ "unit_amount_decimal": "5814"+ },+ "proration": false,+ "proration_details": {+ "credited_items": null+ },+ "quantity": 3,+ "subscription": null,+ "tax_amounts": [],+ "tax_rates": [],+ "type": "invoiceitem",+ "unit_amount_excluding_tax": "5814"+ }+ ],+ "has_more": false,+ "object": "list",+ "total_count": 3,+ "url": "/v1/invoices/non_sponsorship_billing--Event.list.2.json/lines"+ },"livemode": false,"metadata": {},- "object": "charge",+ "next_payment_attempt": null,+ "number": "NORMALIZED",+ "object": "invoice","on_behalf_of": null,- "order": null,- "outcome": {- "network_status": "approved_by_network",- "reason": null,- "risk_level": "normal",- "risk_score": 0,- "seller_message": "Payment complete.",- "type": "authorized"- },"paid": true,+ "paid_out_of_band": false,"payment_intent": "non_sponsorship_billing--Event.list.2.json",- "payment_method": "pm_NORMALIZED",- "payment_method_details": {- "card": {- "amount_authorized": 176000,- "authorization_code": null,- "brand": "visa",- "checks": {- "address_line1_check": "pass",- "address_postal_code_check": "pass",- "cvc_check": "pass"- },- "country": "US",- "exp_month": 8,- "exp_year": 2025,- "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- },- "overcapture": {- "maximum_amount_capturable": 176000,- "status": "unavailable"- },- "three_d_secure": null,- "wallet": null- },- "type": "card"+ "payment_settings": {+ "default_mandate": null,+ "payment_method_options": null,+ "payment_method_types": null},- "receipt_email": "[email protected]",+ "period_end": 1000000000,+ "period_start": 1000000000,+ "post_payment_credit_notes_amount": 0,+ "pre_payment_credit_notes_amount": 0,+ "quote": null,"receipt_number": null,- "receipt_url": "https://pay.stripe.com/receipts/invoices/NORMALIZED?s=ap",- "refunded": false,- "refunds": {- "data": [],- "has_more": false,- "object": "list",- "total_count": 0,- "url": "/v1/charges/non_sponsorship_billing--Event.list.2.json/refunds"+ "rendering": {+ "amount_tax_display": null,+ "pdf": {+ "page_size": "letter"+ },+ "template": null,+ "template_version": null},- "review": null,- "shipping": null,- "source": null,- "source_transfer": null,- "statement_descriptor": "Zulip Business",- "statement_descriptor_suffix": null,- "status": "succeeded",+ "rendering_options": null,+ "shipping_cost": null,+ "shipping_details": null,+ "starting_balance": 0,+ "statement_descriptor": "Zulip Cloud Standard",+ "status": "paid",+ "status_transitions": {+ "finalized_at": 1000000000,+ "marked_uncollectible_at": null,+ "paid_at": 1000000000,+ "voided_at": null+ },+ "subscription": null,+ "subscription_details": {+ "metadata": null+ },+ "subtotal": 80617,+ "subtotal_excluding_tax": 80617,+ "tax": null,+ "test_clock": null,+ "total": 80617,+ "total_discount_amounts": [],+ "total_excluding_tax": 80617,+ "total_tax_amounts": [],"transfer_data": null,- "transfer_group": null+ "webhooks_delivered_at": 1000000000}},"id": "non_sponsorship_billing--Event.list.2.json","livemode": false,"object": "event",- "pending_webhooks": 2,+ "pending_webhooks": 0,"request": {- "id": "non_sponsorship_billing--Event.list.2.json",- "idempotency_key": "00000000-0000-0000-0000-000000000000"+ "id": null,+ "idempotency_key": null},- "type": "charge.succeeded"+ "type": "invoice.payment_succeeded"},{"api_version": "2020-08-27",@@ -327,14 +368,14 @@"account_country": "US","account_name": "Kandra Labs, Inc.","account_tax_ids": null,- "amount_due": 176000,- "amount_paid": 0,- "amount_remaining": 176000,+ "amount_due": 80617,+ "amount_paid": 80617,+ "amount_remaining": 0,"amount_shipping": 0,"application": null,"application_fee_amount": null,- "attempt_count": 0,- "attempted": false,+ "attempt_count": 1,+ "attempted": true,"auto_advance": false,"automatic_tax": {"enabled": false,@@ -343,12 +384,12 @@},"automatically_finalizes_at": null,"billing_reason": "manual",- "charge": null,+ "charge": "non_sponsorship_billing--Event.list.2.json","collection_method": "charge_automatically","created": 1000000000,"currency": "usd","custom_fields": null,- "customer": "non_sponsorship_billing--Customer.create.1.json",+ "customer": "cus_NORMALIZED","customer_address": null,"customer_email": "[email protected]","customer_name": null,@@ -378,22 +419,22 @@"lines": {"data": [{- "amount": -24000,- "amount_excluding_tax": -24000,+ "amount": 7255,+ "amount_excluding_tax": 7255,"currency": "usd",- "description": "$20.00/month new customer discount",+ "description": "Additional license (Feb 5, 2013 - Jan 2, 2014)","discount_amounts": [],"discountable": false,"discounts": [],"id": "non_sponsorship_billing--Event.list.2.json","invoice": "non_sponsorship_billing--Event.list.2.json",- "invoice_item": "non_sponsorship_billing--Event.list.2.json",+ "invoice_item": "ii_NORMALIZED","livemode": false,"metadata": {},"object": "line_item","period": {- "end": 1357095845,- "start": 1325473445+ "end": 1388631845,+ "start": 1360033445},"plan": null,"price": {@@ -414,8 +455,8 @@"tiers_mode": null,"transform_quantity": null,"type": "one_time",- "unit_amount": -24000,- "unit_amount_decimal": "-24000"+ "unit_amount": 7255,+ "unit_amount_decimal": "7255"},"proration": false,"proration_details": {@@ -426,25 +467,25 @@"tax_amounts": [],"tax_rates": [],"type": "invoiceitem",- "unit_amount_excluding_tax": "-24000"+ "unit_amount_excluding_tax": "7255"},{- "amount": 200000,- "amount_excluding_tax": 200000,+ "amount": 56000,+ "amount_excluding_tax": 56000,"currency": "usd",- "description": "Zulip Business",+ "description": "Zulip Cloud Standard - renewal","discount_amounts": [],"discountable": false,"discounts": [],"id": "non_sponsorship_billing--Event.list.2.json","invoice": "non_sponsorship_billing--Event.list.2.json",- "invoice_item": "non_sponsorship_billing--Event.list.2.json",+ "invoice_item": "ii_NORMALIZED","livemode": false,"metadata": {},"object": "line_item","period": {- "end": 1357095845,- "start": 1325473445+ "end": 1388631845,+ "start": 1357015845},"plan": null,"price": {@@ -472,33 +513,77 @@"proration_details": {"credited_items": null},- "quantity": 25,+ "quantity": 7,"subscription": null,"tax_amounts": [],"tax_rates": [],"type": "invoiceitem","unit_amount_excluding_tax": "8000"+ },+ {+ "amount": 17442,+ "amount_excluding_tax": 17442,+ "currency": "usd",+ "description": "Additional license (Apr 11, 2012 - Jan 2, 2013)",+ "discount_amounts": [],+ "discountable": false,+ "discounts": [],+ "id": "non_sponsorship_billing--Event.list.2.json",+ "invoice": "non_sponsorship_billing--Event.list.2.json",+ "invoice_item": "ii_NORMALIZED",+ "livemode": false,+ "metadata": {},+ "object": "line_item",+ "period": {+ "end": 1357015845,+ "start": 1334113445+ },+ "plan": null,+ "price": {+ "active": false,+ "billing_scheme": "per_unit",+ "created": 1000000000,+ "currency": "usd",+ "custom_unit_amount": null,+ "id": "non_sponsorship_billing--Event.list.2.json",+ "livemode": false,+ "lookup_key": null,+ "metadata": {},+ "nickname": null,+ "object": "price",+ "product": "prod_NORMALIZED",+ "recurring": null,+ "tax_behavior": "unspecified",+ "tiers_mode": null,+ "transform_quantity": null,+ "type": "one_time",+ "unit_amount": 5814,+ "unit_amount_decimal": "5814"+ },+ "proration": false,+ "proration_details": {+ "credited_items": null+ },+ "quantity": 3,+ "subscription": null,+ "tax_amounts": [],+ "tax_rates": [],+ "type": "invoiceitem",+ "unit_amount_excluding_tax": "5814"}],"has_more": false,"object": "list",- "total_count": 2,+ "total_count": 3,"url": "/v1/invoices/non_sponsorship_billing--Event.list.2.json/lines"},"livemode": false,- "metadata": {- "billing_schedule": "1",- "current_plan_id": "None",- "license_management": "automatic",- "licenses": "25",- "on_free_trial": "False",- "plan_tier": "104"- },+ "metadata": {},"next_payment_attempt": null,- "number": "NORMALIZED-0001",+ "number": "NORMALIZED","object": "invoice","on_behalf_of": null,- "paid": false,+ "paid": true,"paid_out_of_band": false,"payment_intent": "non_sponsorship_billing--Event.list.2.json","payment_settings": {@@ -516,34 +601,36 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,"shipping_details": null,"starting_balance": 0,- "statement_descriptor": "Zulip Business",- "status": "open",+ "statement_descriptor": "Zulip Cloud Standard",+ "status": "paid","status_transitions": {"finalized_at": 1000000000,"marked_uncollectible_at": null,- "paid_at": null,+ "paid_at": 1000000000,"voided_at": null},"subscription": null,"subscription_details": {"metadata": null},- "subtotal": 176000,- "subtotal_excluding_tax": 176000,+ "subtotal": 80617,+ "subtotal_excluding_tax": 80617,"tax": null,"test_clock": null,- "total": 176000,+ "total": 80617,"total_discount_amounts": [],- "total_excluding_tax": 176000,+ "total_excluding_tax": 80617,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": null+ "webhooks_delivered_at": 1000000000}},"id": "non_sponsorship_billing--Event.list.2.json",@@ -551,10 +638,10 @@"object": "event","pending_webhooks": 0,"request": {- "id": "non_sponsorship_billing--Event.list.2.json",- "idempotency_key": "00000000-0000-0000-0000-000000000000"+ "id": null,+ "idempotency_key": null},- "type": "invoice.finalized"+ "type": "invoice.paid"},{"api_version": "2020-08-27",@@ -564,14 +651,14 @@"account_country": "US","account_name": "Kandra Labs, Inc.","account_tax_ids": null,- "amount_due": 176000,- "amount_paid": 0,- "amount_remaining": 176000,+ "amount_due": 80617,+ "amount_paid": 80617,+ "amount_remaining": 0,"amount_shipping": 0,"application": null,"application_fee_amount": null,- "attempt_count": 0,- "attempted": false,+ "attempt_count": 1,+ "attempted": true,"auto_advance": false,"automatic_tax": {"enabled": false,@@ -580,12 +667,12 @@},"automatically_finalizes_at": null,"billing_reason": "manual",- "charge": null,+ "charge": "non_sponsorship_billing--Event.list.2.json","collection_method": "charge_automatically","created": 1000000000,"currency": "usd","custom_fields": null,- "customer": "non_sponsorship_billing--Customer.create.1.json",+ "customer": "cus_NORMALIZED","customer_address": null,"customer_email": "[email protected]","customer_name": null,@@ -615,22 +702,22 @@"lines": {"data": [{- "amount": -24000,- "amount_excluding_tax": -24000,+ "amount": 7255,+ "amount_excluding_tax": 7255,"currency": "usd",- "description": "$20.00/month new customer discount",+ "description": "Additional license (Feb 5, 2013 - Jan 2, 2014)","discount_amounts": [],"discountable": false,"discounts": [],"id": "non_sponsorship_billing--Event.list.2.json","invoice": "non_sponsorship_billing--Event.list.2.json",- "invoice_item": "non_sponsorship_billing--Event.list.2.json",+ "invoice_item": "ii_NORMALIZED","livemode": false,"metadata": {},"object": "line_item","period": {- "end": 1357095845,- "start": 1325473445+ "end": 1388631845,+ "start": 1360033445},"plan": null,"price": {@@ -651,8 +738,8 @@"tiers_mode": null,"transform_quantity": null,"type": "one_time",- "unit_amount": -24000,- "unit_amount_decimal": "-24000"+ "unit_amount": 7255,+ "unit_amount_decimal": "7255"},"proration": false,"proration_details": {@@ -663,25 +750,25 @@"tax_amounts": [],"tax_rates": [],"type": "invoiceitem",- "unit_amount_excluding_tax": "-24000"+ "unit_amount_excluding_tax": "7255"},{- "amount": 200000,- "amount_excluding_tax": 200000,+ "amount": 56000,+ "amount_excluding_tax": 56000,"currency": "usd",- "description": "Zulip Business",+ "description": "Zulip Cloud Standard - renewal","discount_amounts": [],"discountable": false,"discounts": [],"id": "non_sponsorship_billing--Event.list.2.json","invoice": "non_sponsorship_billing--Event.list.2.json",- "invoice_item": "non_sponsorship_billing--Event.list.2.json",+ "invoice_item": "ii_NORMALIZED","livemode": false,"metadata": {},"object": "line_item","period": {- "end": 1357095845,- "start": 1325473445+ "end": 1388631845,+ "start": 1357015845},"plan": null,"price": {@@ -709,33 +796,77 @@"proration_details": {"credited_items": null},- "quantity": 25,+ "quantity": 7,"subscription": null,"tax_amounts": [],"tax_rates": [],"type": "invoiceitem","unit_amount_excluding_tax": "8000"+ },+ {+ "amount": 17442,+ "amount_excluding_tax": 17442,+ "currency": "usd",+ "description": "Additional license (Apr 11, 2012 - Jan 2, 2013)",+ "discount_amounts": [],+ "discountable": false,+ "discounts": [],+ "id": "non_sponsorship_billing--Event.list.2.json",+ "invoice": "non_sponsorship_billing--Event.list.2.json",+ "invoice_item": "ii_NORMALIZED",+ "livemode": false,+ "metadata": {},+ "object": "line_item",+ "period": {+ "end": 1357015845,+ "start": 1334113445+ },+ "plan": null,+ "price": {+ "active": false,+ "billing_scheme": "per_unit",+ "created": 1000000000,+ "currency": "usd",+ "custom_unit_amount": null,+ "id": "non_sponsorship_billing--Event.list.2.json",+ "livemode": false,+ "lookup_key": null,+ "metadata": {},+ "nickname": null,+ "object": "price",+ "product": "prod_NORMALIZED",+ "recurring": null,+ "tax_behavior": "unspecified",+ "tiers_mode": null,+ "transform_quantity": null,+ "type": "one_time",+ "unit_amount": 5814,+ "unit_amount_decimal": "5814"+ },+ "proration": false,+ "proration_details": {+ "credited_items": null+ },+ "quantity": 3,+ "subscription": null,+ "tax_amounts": [],+ "tax_rates": [],+ "type": "invoiceitem",+ "unit_amount_excluding_tax": "5814"}],"has_more": false,"object": "list",- "total_count": 2,+ "total_count": 3,"url": "/v1/invoices/non_sponsorship_billing--Event.list.2.json/lines"},"livemode": false,- "metadata": {- "billing_schedule": "1",- "current_plan_id": "None",- "license_management": "automatic",- "licenses": "25",- "on_free_trial": "False",- "plan_tier": "104"- },+ "metadata": {},"next_payment_attempt": null,- "number": "NORMALIZED-0001",+ "number": "NORMALIZED","object": "invoice","on_behalf_of": null,- "paid": false,+ "paid": true,"paid_out_of_band": false,"payment_intent": "non_sponsorship_billing--Event.list.2.json","payment_settings": {@@ -753,50 +884,49 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,"shipping_details": null,"starting_balance": 0,- "statement_descriptor": "Zulip Business",- "status": "open",+ "statement_descriptor": "Zulip Cloud Standard",+ "status": "paid","status_transitions": {"finalized_at": 1000000000,"marked_uncollectible_at": null,- "paid_at": null,+ "paid_at": 1000000000,"voided_at": null},"subscription": null,"subscription_details": {"metadata": null},- "subtotal": 176000,- "subtotal_excluding_tax": 176000,+ "subtotal": 80617,+ "subtotal_excluding_tax": 80617,"tax": null,"test_clock": null,- "total": 176000,+ "total": 80617,"total_discount_amounts": [],- "total_excluding_tax": 176000,+ "total_excluding_tax": 80617,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": null+ "webhooks_delivered_at": 1000000000},"previous_attributes": {- "effective_at": null,- "ending_balance": null,- "hosted_invoice_url": null,- "invoice_pdf": null,- "number": null,- "payment_intent": null,- "rendering": {- "pdf": {- "page_size": "auto"- }- },- "status": "draft",+ "amount_paid": 0,+ "amount_remaining": 80617,+ "attempt_count": 0,+ "attempted": false,+ "auto_advance": true,+ "charge": null,+ "next_payment_attempt": 1000000000,+ "paid": false,+ "status": "open","status_transitions": {- "finalized_at": null+ "paid_at": null}}},@@ -805,8 +935,8 @@"object": "event","pending_webhooks": 0,"request": {- "id": "non_sponsorship_billing--Event.list.2.json",- "idempotency_key": "00000000-0000-0000-0000-000000000000"+ "id": null,+ "idempotency_key": null},"type": "invoice.updated"},@@ -815,12 +945,12 @@"created": 1000000000,"data": {"object": {- "amount": 176000,+ "amount": 80617,"amount_capturable": 0,"amount_details": {"tip": {}},- "amount_received": 0,+ "amount_received": 80617,"application": null,"application_fee_amount": null,"automatic_payment_methods": null,@@ -828,28 +958,143 @@"cancellation_reason": null,"capture_method": "automatic","charges": {- "data": [],+ "data": [+ {+ "amount": 80617,+ "amount_captured": 80617,+ "amount_refunded": 0,+ "application": null,+ "application_fee": null,+ "application_fee_amount": null,+ "balance_transaction": "txn_NORMALIZED",+ "billing_details": {+ "address": {+ "city": "San Francisco",+ "country": "US",+ "line1": "123 Main St",+ "line2": null,+ "postal_code": "12345",+ "state": "CA"+ },+ "email": null,+ "name": "John Doe",+ "phone": null+ },+ "calculated_statement_descriptor": "ZULIP CLOUD STANDARD",+ "captured": true,+ "created": 1000000000,+ "currency": "usd",+ "customer": "cus_NORMALIZED",+ "description": "Payment for Invoice",+ "destination": null,+ "dispute": null,+ "disputed": false,+ "failure_balance_transaction": null,+ "failure_code": null,+ "failure_message": null,+ "fraud_details": {},+ "id": "non_sponsorship_billing--Event.list.2.json",+ "invoice": "non_sponsorship_billing--Event.list.2.json",+ "livemode": false,+ "metadata": {},+ "object": "charge",+ "on_behalf_of": null,+ "order": null,+ "outcome": {+ "network_status": "approved_by_network",+ "reason": null,+ "risk_level": "normal",+ "risk_score": 0,+ "seller_message": "Payment complete.",+ "type": "authorized"+ },+ "paid": true,+ "payment_intent": "non_sponsorship_billing--Event.list.2.json",+ "payment_method": "pm_NORMALIZED",+ "payment_method_details": {+ "card": {+ "amount_authorized": 80617,+ "authorization_code": null,+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": null+ },+ "country": "US",+ "exp_month": 1,+ "exp_year": 9999,+ "extended_authorization": {+ "status": "disabled"+ },+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "incremental_authorization": {+ "status": "unavailable"+ },+ "installments": null,+ "last4": "4242",+ "mandate": null,+ "multicapture": {+ "status": "unavailable"+ },+ "network": "visa",+ "network_token": {+ "used": false+ },+ "overcapture": {+ "maximum_amount_capturable": 80617,+ "status": "unavailable"+ },+ "three_d_secure": null,+ "wallet": null+ },+ "type": "card"+ },+ "radar_options": {},+ "receipt_email": "[email protected]",+ "receipt_number": null,+ "receipt_url": "https://pay.stripe.com/receipts/invoices/NORMALIZED?s=ap",+ "refunded": false,+ "refunds": {+ "data": [],+ "has_more": false,+ "object": "list",+ "total_count": 0,+ "url": "/v1/charges/non_sponsorship_billing--Event.list.2.json/refunds"+ },+ "review": null,+ "shipping": null,+ "source": null,+ "source_transfer": null,+ "statement_descriptor": "Zulip Cloud Standard",+ "statement_descriptor_suffix": null,+ "status": "succeeded",+ "transfer_data": null,+ "transfer_group": null+ }+ ],"has_more": false,"object": "list",- "total_count": 0,+ "total_count": 1,"url": "/v1/charges?payment_intent=non_sponsorship_billing--Event.list.2.json"},"client_secret": "NORMALIZED","confirmation_method": "automatic","created": 1000000000,"currency": "usd",- "customer": "non_sponsorship_billing--Customer.create.1.json",+ "customer": "cus_NORMALIZED","description": "Payment for Invoice","id": "non_sponsorship_billing--Event.list.2.json","invoice": "non_sponsorship_billing--Event.list.2.json","last_payment_error": null,- "latest_charge": null,+ "latest_charge": "non_sponsorship_billing--Event.list.2.json","livemode": false,"metadata": {},"next_action": null,"object": "payment_intent","on_behalf_of": null,- "payment_method": null,+ "payment_method": "pm_NORMALIZED","payment_method_configuration_details": null,"payment_method_options": {"card": {@@ -870,9 +1115,9 @@"setup_future_usage": null,"shipping": null,"source": null,- "statement_descriptor": "Zulip Business",+ "statement_descriptor": "Zulip Cloud Standard","statement_descriptor_suffix": null,- "status": "requires_payment_method",+ "status": "succeeded","transfer_data": null,"transfer_group": null}@@ -882,10 +1127,139 @@"object": "event","pending_webhooks": 0,"request": {- "id": "non_sponsorship_billing--Event.list.2.json",- "idempotency_key": "00000000-0000-0000-0000-000000000000"+ "id": null,+ "idempotency_key": "non_sponsorship_billing--Event.list.2.json-initial_attempt-11f2315c613dcb33d"},- "type": "payment_intent.created"+ "type": "payment_intent.succeeded"+ },+ {+ "api_version": "2020-08-27",+ "created": 1000000000,+ "data": {+ "object": {+ "amount": 80617,+ "amount_captured": 80617,+ "amount_refunded": 0,+ "application": null,+ "application_fee": null,+ "application_fee_amount": null,+ "balance_transaction": "txn_NORMALIZED",+ "billing_details": {+ "address": {+ "city": "San Francisco",+ "country": "US",+ "line1": "123 Main St",+ "line2": null,+ "postal_code": "12345",+ "state": "CA"+ },+ "email": null,+ "name": "John Doe",+ "phone": null+ },+ "calculated_statement_descriptor": "ZULIP CLOUD STANDARD",+ "captured": true,+ "created": 1000000000,+ "currency": "usd",+ "customer": "cus_NORMALIZED",+ "description": "Payment for Invoice",+ "destination": null,+ "dispute": null,+ "disputed": false,+ "failure_balance_transaction": null,+ "failure_code": null,+ "failure_message": null,+ "fraud_details": {},+ "id": "non_sponsorship_billing--Event.list.2.json",+ "invoice": "non_sponsorship_billing--Event.list.2.json",+ "livemode": false,+ "metadata": {},+ "object": "charge",+ "on_behalf_of": null,+ "order": null,+ "outcome": {+ "network_status": "approved_by_network",+ "reason": null,+ "risk_level": "normal",+ "risk_score": 0,+ "seller_message": "Payment complete.",+ "type": "authorized"+ },+ "paid": true,+ "payment_intent": "non_sponsorship_billing--Event.list.2.json",+ "payment_method": "pm_NORMALIZED",+ "payment_method_details": {+ "card": {+ "amount_authorized": 80617,+ "authorization_code": null,+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": null+ },+ "country": "US",+ "exp_month": 1,+ "exp_year": 9999,+ "extended_authorization": {+ "status": "disabled"+ },+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "incremental_authorization": {+ "status": "unavailable"+ },+ "installments": null,+ "last4": "4242",+ "mandate": null,+ "multicapture": {+ "status": "unavailable"+ },+ "network": "visa",+ "network_token": {+ "used": false+ },+ "overcapture": {+ "maximum_amount_capturable": 80617,+ "status": "unavailable"+ },+ "three_d_secure": null,+ "wallet": null+ },+ "type": "card"+ },+ "radar_options": {},+ "receipt_email": "[email protected]",+ "receipt_number": null,+ "receipt_url": "https://pay.stripe.com/receipts/invoices/NORMALIZED?s=ap",+ "refunded": false,+ "refunds": {+ "data": [],+ "has_more": false,+ "object": "list",+ "total_count": 0,+ "url": "/v1/charges/non_sponsorship_billing--Event.list.2.json/refunds"+ },+ "review": null,+ "shipping": null,+ "source": null,+ "source_transfer": null,+ "statement_descriptor": "Zulip Cloud Standard",+ "statement_descriptor_suffix": null,+ "status": "succeeded",+ "transfer_data": null,+ "transfer_group": null+ }+ },+ "id": "non_sponsorship_billing--Event.list.2.json",+ "livemode": false,+ "object": "event",+ "pending_webhooks": 0,+ "request": {+ "id": null,+ "idempotency_key": "non_sponsorship_billing--Event.list.2.json-initial_attempt-11f2315c613dcb33d"+ },+ "type": "charge.succeeded"},{"api_version": "2020-08-27",@@ -960,7 +1334,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -1011,7 +1385,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -1084,7 +1458,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -1142,7 +1518,7 @@"metadata": {},"object": "invoiceitem","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -1204,7 +1580,7 @@"metadata": {},"object": "invoiceitem","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -1274,7 +1650,7 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,"next_invoice_sequence": 1,@@ -1301,7 +1677,7 @@"type": "customer.updated"}],- "has_more": false,+ "has_more": true,"object": "list","url": "/v1/events"}diff --git a/corporate/tests/stripe_fixtures/non_sponsorship_billing--Event.list.3.json b/corporate/tests/stripe_fixtures/non_sponsorship_billing--Event.list.3.jsonindex a0e3dad2b0a..44ccb8a0c99 100644--- a/corporate/tests/stripe_fixtures/non_sponsorship_billing--Event.list.3.json+++ b/corporate/tests/stripe_fixtures/non_sponsorship_billing--Event.list.3.json@@ -24,7 +24,7 @@},"automatically_finalizes_at": null,"billing_reason": "manual",- "charge": "ch_NORMALIZED",+ "charge": "non_sponsorship_billing--Event.list.3.json","collection_method": "charge_automatically","created": 1000000000,"currency": "usd",@@ -73,7 +73,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -124,7 +124,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -181,7 +181,7 @@"on_behalf_of": null,"paid": true,"paid_out_of_band": false,- "payment_intent": "pi_NORMALIZED",+ "payment_intent": "non_sponsorship_billing--Event.list.2.json","payment_settings": {"default_mandate": null,"payment_method_options": null,@@ -197,7 +197,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -224,7 +226,7 @@"total_excluding_tax": 176000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": null+ "webhooks_delivered_at": 1000000000}},"id": "non_sponsorship_billing--Event.list.3.json",@@ -232,7 +234,7 @@"object": "event","pending_webhooks": 2,"request": {- "id": "non_sponsorship_billing--Event.list.2.json",+ "id": "non_sponsorship_billing--Event.list.3.json","idempotency_key": "00000000-0000-0000-0000-000000000000"},"type": "invoice.payment_succeeded"@@ -261,7 +263,7 @@},"automatically_finalizes_at": null,"billing_reason": "manual",- "charge": "ch_NORMALIZED",+ "charge": "non_sponsorship_billing--Event.list.3.json","collection_method": "charge_automatically","created": 1000000000,"currency": "usd",@@ -310,7 +312,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -361,7 +363,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -418,7 +420,7 @@"on_behalf_of": null,"paid": true,"paid_out_of_band": false,- "payment_intent": "pi_NORMALIZED",+ "payment_intent": "non_sponsorship_billing--Event.list.2.json","payment_settings": {"default_mandate": null,"payment_method_options": null,@@ -434,7 +436,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -461,7 +465,7 @@"total_excluding_tax": 176000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": null+ "webhooks_delivered_at": 1000000000}},"id": "non_sponsorship_billing--Event.list.3.json",@@ -469,7 +473,7 @@"object": "event","pending_webhooks": 0,"request": {- "id": "non_sponsorship_billing--Event.list.2.json",+ "id": "non_sponsorship_billing--Event.list.3.json","idempotency_key": "00000000-0000-0000-0000-000000000000"},"type": "invoice.paid"@@ -498,7 +502,7 @@},"automatically_finalizes_at": null,"billing_reason": "manual",- "charge": "ch_NORMALIZED",+ "charge": "non_sponsorship_billing--Event.list.3.json","collection_method": "charge_automatically","created": 1000000000,"currency": "usd",@@ -547,7 +551,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -598,7 +602,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -655,7 +659,7 @@"on_behalf_of": null,"paid": true,"paid_out_of_band": false,- "payment_intent": "pi_NORMALIZED",+ "payment_intent": "non_sponsorship_billing--Event.list.2.json","payment_settings": {"default_mandate": null,"payment_method_options": null,@@ -671,7 +675,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -698,7 +704,7 @@"total_excluding_tax": 176000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": null+ "webhooks_delivered_at": 1000000000},"previous_attributes": {"amount_paid": 0,@@ -717,6 +723,820 @@"livemode": false,"object": "event","pending_webhooks": 0,+ "request": {+ "id": "non_sponsorship_billing--Event.list.3.json",+ "idempotency_key": "00000000-0000-0000-0000-000000000000"+ },+ "type": "invoice.updated"+ },+ {+ "api_version": "2020-08-27",+ "created": 1000000000,+ "data": {+ "object": {+ "amount": 176000,+ "amount_capturable": 0,+ "amount_details": {+ "tip": {}+ },+ "amount_received": 176000,+ "application": null,+ "application_fee_amount": null,+ "automatic_payment_methods": null,+ "canceled_at": null,+ "cancellation_reason": null,+ "capture_method": "automatic",+ "charges": {+ "data": [+ {+ "amount": 176000,+ "amount_captured": 176000,+ "amount_refunded": 0,+ "application": null,+ "application_fee": null,+ "application_fee_amount": null,+ "balance_transaction": "txn_NORMALIZED",+ "billing_details": {+ "address": {+ "city": "San Francisco",+ "country": "US",+ "line1": "123 Main St",+ "line2": null,+ "postal_code": "12345",+ "state": "CA"+ },+ "email": null,+ "name": "John Doe",+ "phone": null+ },+ "calculated_statement_descriptor": "ZULIP BUSINESS",+ "captured": true,+ "created": 1000000000,+ "currency": "usd",+ "customer": "cus_NORMALIZED",+ "description": "Payment for Invoice",+ "destination": null,+ "dispute": null,+ "disputed": false,+ "failure_balance_transaction": null,+ "failure_code": null,+ "failure_message": null,+ "fraud_details": {},+ "id": "non_sponsorship_billing--Event.list.3.json",+ "invoice": "non_sponsorship_billing--Event.list.2.json",+ "livemode": false,+ "metadata": {},+ "object": "charge",+ "on_behalf_of": null,+ "order": null,+ "outcome": {+ "network_status": "approved_by_network",+ "reason": null,+ "risk_level": "normal",+ "risk_score": 0,+ "seller_message": "Payment complete.",+ "type": "authorized"+ },+ "paid": true,+ "payment_intent": "non_sponsorship_billing--Event.list.2.json",+ "payment_method": "pm_NORMALIZED",+ "payment_method_details": {+ "card": {+ "amount_authorized": 176000,+ "authorization_code": null,+ "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+ },+ "overcapture": {+ "maximum_amount_capturable": 176000,+ "status": "unavailable"+ },+ "three_d_secure": null,+ "wallet": null+ },+ "type": "card"+ },+ "receipt_email": "[email protected]",+ "receipt_number": null,+ "receipt_url": "https://pay.stripe.com/receipts/invoices/NORMALIZED?s=ap",+ "refunded": false,+ "refunds": {+ "data": [],+ "has_more": false,+ "object": "list",+ "total_count": 0,+ "url": "/v1/charges/non_sponsorship_billing--Event.list.3.json/refunds"+ },+ "review": null,+ "shipping": null,+ "source": null,+ "source_transfer": null,+ "statement_descriptor": "Zulip Business",+ "statement_descriptor_suffix": null,+ "status": "succeeded",+ "transfer_data": null,+ "transfer_group": null+ }+ ],+ "has_more": false,+ "object": "list",+ "total_count": 1,+ "url": "/v1/charges?payment_intent=non_sponsorship_billing--Event.list.2.json"+ },+ "client_secret": "NORMALIZED",+ "confirmation_method": "automatic",+ "created": 1000000000,+ "currency": "usd",+ "customer": "cus_NORMALIZED",+ "description": "Payment for Invoice",+ "id": "non_sponsorship_billing--Event.list.2.json",+ "invoice": "non_sponsorship_billing--Event.list.2.json",+ "last_payment_error": null,+ "latest_charge": "non_sponsorship_billing--Event.list.3.json",+ "livemode": false,+ "metadata": {},+ "next_action": null,+ "object": "payment_intent",+ "on_behalf_of": null,+ "payment_method": "pm_NORMALIZED",+ "payment_method_configuration_details": null,+ "payment_method_options": {+ "card": {+ "installments": null,+ "mandate_options": null,+ "network": null,+ "request_three_d_secure": "automatic"+ },+ "cashapp": {}+ },+ "payment_method_types": [+ "card",+ "cashapp"+ ],+ "processing": null,+ "receipt_email": "[email protected]",+ "review": null,+ "setup_future_usage": null,+ "shipping": null,+ "source": null,+ "statement_descriptor": "Zulip Business",+ "statement_descriptor_suffix": null,+ "status": "succeeded",+ "transfer_data": null,+ "transfer_group": null+ }+ },+ "id": "non_sponsorship_billing--Event.list.3.json",+ "livemode": false,+ "object": "event",+ "pending_webhooks": 0,+ "request": {+ "id": "non_sponsorship_billing--Event.list.3.json",+ "idempotency_key": "00000000-0000-0000-0000-000000000000"+ },+ "type": "payment_intent.succeeded"+ },+ {+ "api_version": "2020-08-27",+ "created": 1000000000,+ "data": {+ "object": {+ "amount": 176000,+ "amount_captured": 176000,+ "amount_refunded": 0,+ "application": null,+ "application_fee": null,+ "application_fee_amount": null,+ "balance_transaction": "txn_NORMALIZED",+ "billing_details": {+ "address": {+ "city": "San Francisco",+ "country": "US",+ "line1": "123 Main St",+ "line2": null,+ "postal_code": "12345",+ "state": "CA"+ },+ "email": null,+ "name": "John Doe",+ "phone": null+ },+ "calculated_statement_descriptor": "ZULIP BUSINESS",+ "captured": true,+ "created": 1000000000,+ "currency": "usd",+ "customer": "cus_NORMALIZED",+ "description": "Payment for Invoice",+ "destination": null,+ "dispute": null,+ "disputed": false,+ "failure_balance_transaction": null,+ "failure_code": null,+ "failure_message": null,+ "fraud_details": {},+ "id": "non_sponsorship_billing--Event.list.3.json",+ "invoice": "non_sponsorship_billing--Event.list.2.json",+ "livemode": false,+ "metadata": {},+ "object": "charge",+ "on_behalf_of": null,+ "order": null,+ "outcome": {+ "network_status": "approved_by_network",+ "reason": null,+ "risk_level": "normal",+ "risk_score": 0,+ "seller_message": "Payment complete.",+ "type": "authorized"+ },+ "paid": true,+ "payment_intent": "non_sponsorship_billing--Event.list.2.json",+ "payment_method": "pm_NORMALIZED",+ "payment_method_details": {+ "card": {+ "amount_authorized": 176000,+ "authorization_code": null,+ "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+ },+ "overcapture": {+ "maximum_amount_capturable": 176000,+ "status": "unavailable"+ },+ "three_d_secure": null,+ "wallet": null+ },+ "type": "card"+ },+ "receipt_email": "[email protected]",+ "receipt_number": null,+ "receipt_url": "https://pay.stripe.com/receipts/invoices/NORMALIZED?s=ap",+ "refunded": false,+ "refunds": {+ "data": [],+ "has_more": false,+ "object": "list",+ "total_count": 0,+ "url": "/v1/charges/non_sponsorship_billing--Event.list.3.json/refunds"+ },+ "review": null,+ "shipping": null,+ "source": null,+ "source_transfer": null,+ "statement_descriptor": "Zulip Business",+ "statement_descriptor_suffix": null,+ "status": "succeeded",+ "transfer_data": null,+ "transfer_group": null+ }+ },+ "id": "non_sponsorship_billing--Event.list.3.json",+ "livemode": false,+ "object": "event",+ "pending_webhooks": 0,+ "request": {+ "id": "non_sponsorship_billing--Event.list.3.json",+ "idempotency_key": "00000000-0000-0000-0000-000000000000"+ },+ "type": "charge.succeeded"+ },+ {+ "api_version": "2020-08-27",+ "created": 1000000000,+ "data": {+ "object": {+ "account_country": "US",+ "account_name": "Kandra Labs, Inc.",+ "account_tax_ids": null,+ "amount_due": 176000,+ "amount_paid": 0,+ "amount_remaining": 176000,+ "amount_shipping": 0,+ "application": null,+ "application_fee_amount": null,+ "attempt_count": 0,+ "attempted": false,+ "auto_advance": false,+ "automatic_tax": {+ "enabled": false,+ "liability": null,+ "status": null+ },+ "automatically_finalizes_at": null,+ "billing_reason": "manual",+ "charge": null,+ "collection_method": "charge_automatically",+ "created": 1000000000,+ "currency": "usd",+ "custom_fields": null,+ "customer": "cus_NORMALIZED",+ "customer_address": null,+ "customer_email": "[email protected]",+ "customer_name": null,+ "customer_phone": null,+ "customer_shipping": null,+ "customer_tax_exempt": "none",+ "customer_tax_ids": [],+ "default_payment_method": null,+ "default_source": null,+ "default_tax_rates": [],+ "description": null,+ "discount": null,+ "discounts": [],+ "due_date": null,+ "effective_at": 1000000000,+ "ending_balance": 0,+ "footer": null,+ "from_invoice": null,+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",+ "id": "non_sponsorship_billing--Event.list.2.json",+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",+ "issuer": {+ "type": "self"+ },+ "last_finalization_error": null,+ "latest_revision": null,+ "lines": {+ "data": [+ {+ "amount": -24000,+ "amount_excluding_tax": -24000,+ "currency": "usd",+ "description": "$20.00/month new customer discount",+ "discount_amounts": [],+ "discountable": false,+ "discounts": [],+ "id": "non_sponsorship_billing--Event.list.2.json",+ "invoice": "non_sponsorship_billing--Event.list.2.json",+ "invoice_item": "ii_NORMALIZED",+ "livemode": false,+ "metadata": {},+ "object": "line_item",+ "period": {+ "end": 1357015845,+ "start": 1325473445+ },+ "plan": null,+ "price": {+ "active": false,+ "billing_scheme": "per_unit",+ "created": 1000000000,+ "currency": "usd",+ "custom_unit_amount": null,+ "id": "non_sponsorship_billing--Event.list.2.json",+ "livemode": false,+ "lookup_key": null,+ "metadata": {},+ "nickname": null,+ "object": "price",+ "product": "prod_NORMALIZED",+ "recurring": null,+ "tax_behavior": "unspecified",+ "tiers_mode": null,+ "transform_quantity": null,+ "type": "one_time",+ "unit_amount": -24000,+ "unit_amount_decimal": "-24000"+ },+ "proration": false,+ "proration_details": {+ "credited_items": null+ },+ "quantity": 1,+ "subscription": null,+ "tax_amounts": [],+ "tax_rates": [],+ "type": "invoiceitem",+ "unit_amount_excluding_tax": "-24000"+ },+ {+ "amount": 200000,+ "amount_excluding_tax": 200000,+ "currency": "usd",+ "description": "Zulip Business",+ "discount_amounts": [],+ "discountable": false,+ "discounts": [],+ "id": "non_sponsorship_billing--Event.list.2.json",+ "invoice": "non_sponsorship_billing--Event.list.2.json",+ "invoice_item": "ii_NORMALIZED",+ "livemode": false,+ "metadata": {},+ "object": "line_item",+ "period": {+ "end": 1357015845,+ "start": 1325473445+ },+ "plan": null,+ "price": {+ "active": false,+ "billing_scheme": "per_unit",+ "created": 1000000000,+ "currency": "usd",+ "custom_unit_amount": null,+ "id": "non_sponsorship_billing--Event.list.2.json",+ "livemode": false,+ "lookup_key": null,+ "metadata": {},+ "nickname": null,+ "object": "price",+ "product": "prod_NORMALIZED",+ "recurring": null,+ "tax_behavior": "unspecified",+ "tiers_mode": null,+ "transform_quantity": null,+ "type": "one_time",+ "unit_amount": 8000,+ "unit_amount_decimal": "8000"+ },+ "proration": false,+ "proration_details": {+ "credited_items": null+ },+ "quantity": 25,+ "subscription": null,+ "tax_amounts": [],+ "tax_rates": [],+ "type": "invoiceitem",+ "unit_amount_excluding_tax": "8000"+ }+ ],+ "has_more": false,+ "object": "list",+ "total_count": 2,+ "url": "/v1/invoices/non_sponsorship_billing--Event.list.2.json/lines"+ },+ "livemode": false,+ "metadata": {+ "billing_schedule": "1",+ "current_plan_id": "None",+ "license_management": "automatic",+ "licenses": "25",+ "on_free_trial": "False",+ "plan_tier": "104"+ },+ "next_payment_attempt": null,+ "number": "NORMALIZED",+ "object": "invoice",+ "on_behalf_of": null,+ "paid": false,+ "paid_out_of_band": false,+ "payment_intent": "non_sponsorship_billing--Event.list.2.json",+ "payment_settings": {+ "default_mandate": null,+ "payment_method_options": null,+ "payment_method_types": null+ },+ "period_end": 1000000000,+ "period_start": 1000000000,+ "post_payment_credit_notes_amount": 0,+ "pre_payment_credit_notes_amount": 0,+ "quote": null,+ "receipt_number": null,+ "rendering": {+ "amount_tax_display": null,+ "pdf": {+ "page_size": "letter"+ },+ "template": null,+ "template_version": null+ },+ "rendering_options": null,+ "shipping_cost": null,+ "shipping_details": null,+ "starting_balance": 0,+ "statement_descriptor": "Zulip Business",+ "status": "open",+ "status_transitions": {+ "finalized_at": 1000000000,+ "marked_uncollectible_at": null,+ "paid_at": null,+ "voided_at": null+ },+ "subscription": null,+ "subscription_details": {+ "metadata": null+ },+ "subtotal": 176000,+ "subtotal_excluding_tax": 176000,+ "tax": null,+ "test_clock": null,+ "total": 176000,+ "total_discount_amounts": [],+ "total_excluding_tax": 176000,+ "total_tax_amounts": [],+ "transfer_data": null,+ "webhooks_delivered_at": null+ }+ },+ "id": "non_sponsorship_billing--Event.list.3.json",+ "livemode": false,+ "object": "event",+ "pending_webhooks": 0,+ "request": {+ "id": "non_sponsorship_billing--Event.list.2.json",+ "idempotency_key": "00000000-0000-0000-0000-000000000000"+ },+ "type": "invoice.finalized"+ },+ {+ "api_version": "2020-08-27",+ "created": 1000000000,+ "data": {+ "object": {+ "account_country": "US",+ "account_name": "Kandra Labs, Inc.",+ "account_tax_ids": null,+ "amount_due": 176000,+ "amount_paid": 0,+ "amount_remaining": 176000,+ "amount_shipping": 0,+ "application": null,+ "application_fee_amount": null,+ "attempt_count": 0,+ "attempted": false,+ "auto_advance": false,+ "automatic_tax": {+ "enabled": false,+ "liability": null,+ "status": null+ },+ "automatically_finalizes_at": null,+ "billing_reason": "manual",+ "charge": null,+ "collection_method": "charge_automatically",+ "created": 1000000000,+ "currency": "usd",+ "custom_fields": null,+ "customer": "cus_NORMALIZED",+ "customer_address": null,+ "customer_email": "[email protected]",+ "customer_name": null,+ "customer_phone": null,+ "customer_shipping": null,+ "customer_tax_exempt": "none",+ "customer_tax_ids": [],+ "default_payment_method": null,+ "default_source": null,+ "default_tax_rates": [],+ "description": null,+ "discount": null,+ "discounts": [],+ "due_date": null,+ "effective_at": 1000000000,+ "ending_balance": 0,+ "footer": null,+ "from_invoice": null,+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",+ "id": "non_sponsorship_billing--Event.list.2.json",+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",+ "issuer": {+ "type": "self"+ },+ "last_finalization_error": null,+ "latest_revision": null,+ "lines": {+ "data": [+ {+ "amount": -24000,+ "amount_excluding_tax": -24000,+ "currency": "usd",+ "description": "$20.00/month new customer discount",+ "discount_amounts": [],+ "discountable": false,+ "discounts": [],+ "id": "non_sponsorship_billing--Event.list.2.json",+ "invoice": "non_sponsorship_billing--Event.list.2.json",+ "invoice_item": "ii_NORMALIZED",+ "livemode": false,+ "metadata": {},+ "object": "line_item",+ "period": {+ "end": 1357015845,+ "start": 1325473445+ },+ "plan": null,+ "price": {+ "active": false,+ "billing_scheme": "per_unit",+ "created": 1000000000,+ "currency": "usd",+ "custom_unit_amount": null,+ "id": "non_sponsorship_billing--Event.list.2.json",+ "livemode": false,+ "lookup_key": null,+ "metadata": {},+ "nickname": null,+ "object": "price",+ "product": "prod_NORMALIZED",+ "recurring": null,+ "tax_behavior": "unspecified",+ "tiers_mode": null,+ "transform_quantity": null,+ "type": "one_time",+ "unit_amount": -24000,+ "unit_amount_decimal": "-24000"+ },+ "proration": false,+ "proration_details": {+ "credited_items": null+ },+ "quantity": 1,+ "subscription": null,+ "tax_amounts": [],+ "tax_rates": [],+ "type": "invoiceitem",+ "unit_amount_excluding_tax": "-24000"+ },+ {+ "amount": 200000,+ "amount_excluding_tax": 200000,+ "currency": "usd",+ "description": "Zulip Business",+ "discount_amounts": [],+ "discountable": false,+ "discounts": [],+ "id": "non_sponsorship_billing--Event.list.2.json",+ "invoice": "non_sponsorship_billing--Event.list.2.json",+ "invoice_item": "ii_NORMALIZED",+ "livemode": false,+ "metadata": {},+ "object": "line_item",+ "period": {+ "end": 1357015845,+ "start": 1325473445+ },+ "plan": null,+ "price": {+ "active": false,+ "billing_scheme": "per_unit",+ "created": 1000000000,+ "currency": "usd",+ "custom_unit_amount": null,+ "id": "non_sponsorship_billing--Event.list.2.json",+ "livemode": false,+ "lookup_key": null,+ "metadata": {},+ "nickname": null,+ "object": "price",+ "product": "prod_NORMALIZED",+ "recurring": null,+ "tax_behavior": "unspecified",+ "tiers_mode": null,+ "transform_quantity": null,+ "type": "one_time",+ "unit_amount": 8000,+ "unit_amount_decimal": "8000"+ },+ "proration": false,+ "proration_details": {+ "credited_items": null+ },+ "quantity": 25,+ "subscription": null,+ "tax_amounts": [],+ "tax_rates": [],+ "type": "invoiceitem",+ "unit_amount_excluding_tax": "8000"+ }+ ],+ "has_more": false,+ "object": "list",+ "total_count": 2,+ "url": "/v1/invoices/non_sponsorship_billing--Event.list.2.json/lines"+ },+ "livemode": false,+ "metadata": {+ "billing_schedule": "1",+ "current_plan_id": "None",+ "license_management": "automatic",+ "licenses": "25",+ "on_free_trial": "False",+ "plan_tier": "104"+ },+ "next_payment_attempt": null,+ "number": "NORMALIZED",+ "object": "invoice",+ "on_behalf_of": null,+ "paid": false,+ "paid_out_of_band": false,+ "payment_intent": "non_sponsorship_billing--Event.list.2.json",+ "payment_settings": {+ "default_mandate": null,+ "payment_method_options": null,+ "payment_method_types": null+ },+ "period_end": 1000000000,+ "period_start": 1000000000,+ "post_payment_credit_notes_amount": 0,+ "pre_payment_credit_notes_amount": 0,+ "quote": null,+ "receipt_number": null,+ "rendering": {+ "amount_tax_display": null,+ "pdf": {+ "page_size": "letter"+ },+ "template": null,+ "template_version": null+ },+ "rendering_options": null,+ "shipping_cost": null,+ "shipping_details": null,+ "starting_balance": 0,+ "statement_descriptor": "Zulip Business",+ "status": "open",+ "status_transitions": {+ "finalized_at": 1000000000,+ "marked_uncollectible_at": null,+ "paid_at": null,+ "voided_at": null+ },+ "subscription": null,+ "subscription_details": {+ "metadata": null+ },+ "subtotal": 176000,+ "subtotal_excluding_tax": 176000,+ "tax": null,+ "test_clock": null,+ "total": 176000,+ "total_discount_amounts": [],+ "total_excluding_tax": 176000,+ "total_tax_amounts": [],+ "transfer_data": null,+ "webhooks_delivered_at": null+ },+ "previous_attributes": {+ "effective_at": null,+ "ending_balance": null,+ "hosted_invoice_url": null,+ "invoice_pdf": null,+ "number": null,+ "payment_intent": null,+ "rendering": {+ "pdf": {+ "page_size": "auto"+ }+ },+ "status": "draft",+ "status_transitions": {+ "finalized_at": null+ }+ }+ },+ "id": "non_sponsorship_billing--Event.list.3.json",+ "livemode": false,+ "object": "event",+ "pending_webhooks": 0,"request": {"id": "non_sponsorship_billing--Event.list.2.json","idempotency_key": "00000000-0000-0000-0000-000000000000"diff --git a/corporate/tests/stripe_fixtures/non_sponsorship_billing--Invoice.create.1.json b/corporate/tests/stripe_fixtures/non_sponsorship_billing--Invoice.create.1.jsonindex 9aae8586f38..16a8ed64932 100644--- a/corporate/tests/stripe_fixtures/non_sponsorship_billing--Invoice.create.1.json+++ b/corporate/tests/stripe_fixtures/non_sponsorship_billing--Invoice.create.1.json@@ -60,7 +60,7 @@"discount_amounts": [],"discountable": false,"discounts": [],- "id": "non_sponsorship_billing--Event.list.2.json",+ "id": "non_sponsorship_billing--Invoice.create.1.json","invoice": "non_sponsorship_billing--Event.list.2.json","invoice_item": "ii_NORMALIZED","livemode": false,@@ -191,7 +191,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/non_sponsorship_billing--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/non_sponsorship_billing--Invoice.finalize_invoice.1.jsonindex 7cdd20bc0af..aab8a784c20 100644--- a/corporate/tests/stripe_fixtures/non_sponsorship_billing--Invoice.finalize_invoice.1.json+++ b/corporate/tests/stripe_fixtures/non_sponsorship_billing--Invoice.finalize_invoice.1.json@@ -60,7 +60,7 @@"discount_amounts": [],"discountable": false,"discounts": [],- "id": "non_sponsorship_billing--Event.list.2.json",+ "id": "non_sponsorship_billing--Invoice.create.1.json","invoice": "non_sponsorship_billing--Event.list.2.json","invoice_item": "ii_NORMALIZED","livemode": false,@@ -191,7 +191,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/non_sponsorship_billing--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/non_sponsorship_billing--Invoice.pay.1.jsonindex d2dbdab7f9a..9bf56694e04 100644--- a/corporate/tests/stripe_fixtures/non_sponsorship_billing--Invoice.pay.1.json+++ b/corporate/tests/stripe_fixtures/non_sponsorship_billing--Invoice.pay.1.json@@ -60,7 +60,7 @@"discount_amounts": [],"discountable": false,"discounts": [],- "id": "non_sponsorship_billing--Event.list.2.json",+ "id": "non_sponsorship_billing--Invoice.create.1.json","invoice": "non_sponsorship_billing--Event.list.2.json","invoice_item": "ii_NORMALIZED","livemode": false,@@ -191,7 +191,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -218,5 +220,5 @@"total_excluding_tax": 176000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": null+ "webhooks_delivered_at": 1000000000}diff --git a/corporate/tests/stripe_fixtures/non_sponsorship_billing--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/non_sponsorship_billing--InvoiceItem.create.1.jsonindex 7ff4319a554..98688d846e6 100644--- a/corporate/tests/stripe_fixtures/non_sponsorship_billing--InvoiceItem.create.1.json+++ b/corporate/tests/stripe_fixtures/non_sponsorship_billing--InvoiceItem.create.1.json@@ -6,7 +6,7 @@"description": "Zulip Business","discountable": false,"discounts": [],- "id": "non_sponsorship_billing--Event.list.2.json",+ "id": "non_sponsorship_billing--InvoiceItem.create.1.json","invoice": null,"livemode": false,"metadata": {},diff --git a/corporate/tests/stripe_fixtures/non_sponsorship_billing--PaymentMethod.create.1.json b/corporate/tests/stripe_fixtures/non_sponsorship_billing--PaymentMethod.create.1.jsonindex 7a884ddf78e..735c57676d4 100644--- a/corporate/tests/stripe_fixtures/non_sponsorship_billing--PaymentMethod.create.1.json+++ b/corporate/tests/stripe_fixtures/non_sponsorship_billing--PaymentMethod.create.1.json@@ -6,7 +6,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -22,8 +22,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/non_sponsorship_billing--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/non_sponsorship_billing--checkout.Session.create.1.jsonindex 37d47365642..f2c213e609b 100644--- a/corporate/tests/stripe_fixtures/non_sponsorship_billing--checkout.Session.create.1.json+++ b/corporate/tests/stripe_fixtures/non_sponsorship_billing--checkout.Session.create.1.json@@ -42,7 +42,7 @@"livemode": false,"locale": null,"metadata": {- "remote_server_user_id": "8",+ "remote_server_user_id": "1","type": "card_update"},"mode": "setup",diff --git a/corporate/tests/stripe_fixtures/non_sponsorship_billing--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/non_sponsorship_billing--checkout.Session.list.1.jsonindex d2c65f57be7..a4b00003a71 100644--- a/corporate/tests/stripe_fixtures/non_sponsorship_billing--checkout.Session.list.1.json+++ b/corporate/tests/stripe_fixtures/non_sponsorship_billing--checkout.Session.list.1.json@@ -44,7 +44,7 @@"livemode": false,"locale": null,"metadata": {- "remote_server_user_id": "8",+ "remote_server_user_id": "1","type": "card_update"},"mode": "setup",diff --git a/corporate/tests/stripe_fixtures/payment_method_string--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/payment_method_string--Customer.retrieve.1.jsonindex 32f85617cf5..15f7a6b0a32 100644--- a/corporate/tests/stripe_fixtures/payment_method_string--Customer.retrieve.1.json+++ b/corporate/tests/stripe_fixtures/payment_method_string--Customer.retrieve.1.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/payment_method_string--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/payment_method_string--Customer.retrieve.2.jsonindex 32f85617cf5..15f7a6b0a32 100644--- a/corporate/tests/stripe_fixtures/payment_method_string--Customer.retrieve.2.json+++ b/corporate/tests/stripe_fixtures/payment_method_string--Customer.retrieve.2.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/payment_method_string--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/payment_method_string--Customer.retrieve.3.jsonindex 32f85617cf5..15f7a6b0a32 100644--- a/corporate/tests/stripe_fixtures/payment_method_string--Customer.retrieve.3.json+++ b/corporate/tests/stripe_fixtures/payment_method_string--Customer.retrieve.3.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/payment_method_string--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/payment_method_string--Customer.retrieve.4.jsonindex d9fa4ad544b..15f7a6b0a32 100644--- a/corporate/tests/stripe_fixtures/payment_method_string--Customer.retrieve.4.json+++ b/corporate/tests/stripe_fixtures/payment_method_string--Customer.retrieve.4.json@@ -2,8 +2,8 @@"address": null,"balance": 0,"created": 1000000000,- "currency": "usd",- "default_currency": "usd",+ "currency": null,+ "default_currency": null,"default_source": null,"delinquent": false,"description": "zulip (Zulip Dev)",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -71,7 +71,7 @@"realm_str": "zulip"},"name": null,- "next_invoice_sequence": 2,+ "next_invoice_sequence": 1,"object": "customer","phone": null,"preferred_locales": [],diff --git a/corporate/tests/stripe_fixtures/payment_method_string--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/payment_method_string--Customer.retrieve.5.jsonnew file mode 100644index 00000000000..2048b96e18a--- /dev/null+++ b/corporate/tests/stripe_fixtures/payment_method_string--Customer.retrieve.5.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": "usd",+ "default_currency": "usd",+ "default_source": "src_NORMALIZED",+ "delinquent": false,+ "description": "zulip (Zulip Dev)",+ "discount": null,+ "email": "[email protected]",+ "id": "payment_method_string--Customer.create.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "payment_method_string--Customer.create.1.json",+ "id": "payment_method_string--Customer.retrieve.1.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "realm_id": "1",+ "realm_str": "zulip"+ },+ "name": null,+ "next_invoice_sequence": 2,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/payment_method_string--Event.list.2.json b/corporate/tests/stripe_fixtures/payment_method_string--Event.list.2.jsonindex 89442fe5089..7db4518aaad 100644--- a/corporate/tests/stripe_fixtures/payment_method_string--Event.list.2.json+++ b/corporate/tests/stripe_fixtures/payment_method_string--Event.list.2.json@@ -1,5 +1,198 @@{"data": [+ {+ "api_version": "2020-08-27",+ "created": 1000000000,+ "data": {+ "object": {+ "amount": 984000,+ "amount_capturable": 0,+ "amount_details": {+ "tip": {}+ },+ "amount_received": 0,+ "application": null,+ "application_fee_amount": null,+ "automatic_payment_methods": null,+ "canceled_at": 1000000000,+ "cancellation_reason": "requested_by_customer",+ "capture_method": "automatic",+ "charges": {+ "data": [],+ "has_more": false,+ "object": "list",+ "total_count": 0,+ "url": "/v1/charges?payment_intent=payment_method_string--Event.list.2.json"+ },+ "client_secret": "NORMALIZED",+ "confirmation_method": "automatic",+ "created": 1000000000,+ "currency": "usd",+ "customer": "payment_method_string--Customer.create.1.json",+ "description": "Payment for Invoice",+ "id": "payment_method_string--Event.list.2.json",+ "invoice": "payment_method_string--Event.list.2.json",+ "last_payment_error": null,+ "latest_charge": null,+ "livemode": false,+ "metadata": {},+ "next_action": null,+ "object": "payment_intent",+ "on_behalf_of": null,+ "payment_method": "pm_NORMALIZED",+ "payment_method_configuration_details": null,+ "payment_method_options": {+ "card": {+ "installments": null,+ "mandate_options": null,+ "network": null,+ "request_three_d_secure": "automatic"+ },+ "cashapp": {},+ "wechat_pay": {+ "app_id": null,+ "client": null+ }+ },+ "payment_method_types": [+ "ach_credit_transfer",+ "card",+ "cashapp",+ "wechat_pay"+ ],+ "processing": null,+ "receipt_email": "[email protected]",+ "review": null,+ "setup_future_usage": null,+ "shipping": null,+ "source": null,+ "statement_descriptor": "Zulip Cloud Standard",+ "statement_descriptor_suffix": null,+ "status": "canceled",+ "transfer_data": null,+ "transfer_group": null+ }+ },+ "id": "payment_method_string--Event.list.2.json",+ "livemode": false,+ "object": "event",+ "pending_webhooks": 0,+ "request": {+ "id": "payment_method_string--Event.list.2.json",+ "idempotency_key": "00000000-0000-0000-0000-000000000000"+ },+ "type": "payment_intent.canceled"+ },+ {+ "api_version": "2020-08-27",+ "created": 1000000000,+ "data": {+ "object": {+ "ach_credit_transfer": {+ "account_number": "test_NORMALIZED",+ "bank_name": "TEST BANK",+ "fingerprint": "NORMALIZED",+ "refund_account_holder_name": null,+ "refund_account_holder_type": null,+ "refund_routing_number": null,+ "routing_number": "110000000",+ "swift_code": "TSTEZ122"+ },+ "amount": null,+ "client_secret": "NORMALIZED",+ "created": 1000000000,+ "currency": "usd",+ "customer": "payment_method_string--Customer.create.1.json",+ "flow": "receiver",+ "id": "payment_method_string--Event.list.2.json",+ "livemode": false,+ "metadata": {},+ "object": "source",+ "owner": {+ "address": null,+ "email": "[email protected]",+ "name": null,+ "phone": null,+ "verified_address": null,+ "verified_email": null,+ "verified_name": null,+ "verified_phone": null+ },+ "receiver": {+ "address": "000000000-test_NORMALIZED",+ "amount_charged": 0,+ "amount_received": 0,+ "amount_returned": 0,+ "refund_attributes_method": "email",+ "refund_attributes_status": "missing"+ },+ "statement_descriptor": null,+ "status": "pending",+ "type": "ach_credit_transfer",+ "usage": "reusable"+ }+ },+ "id": "payment_method_string--Event.list.2.json",+ "livemode": false,+ "object": "event",+ "pending_webhooks": 0,+ "request": {+ "id": null,+ "idempotency_key": "00000000-0000-0000-0000-000000000000"+ },+ "type": "customer.source.created"+ },+ {+ "api_version": "2020-08-27",+ "created": 1000000000,+ "data": {+ "object": {+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": "usd",+ "default_currency": "usd",+ "default_source": "payment_method_string--Event.list.2.json",+ "delinquent": false,+ "description": "zulip (Zulip Dev)",+ "discount": null,+ "email": "[email protected]",+ "id": "payment_method_string--Customer.create.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": "pm_NORMALIZED",+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "realm_id": "1",+ "realm_str": "zulip"+ },+ "name": null,+ "next_invoice_sequence": 2,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+ },+ "previous_attributes": {+ "default_source": null+ }+ },+ "id": "payment_method_string--Event.list.2.json",+ "livemode": false,+ "object": "event",+ "pending_webhooks": 0,+ "request": {+ "id": null,+ "idempotency_key": "00000000-0000-0000-0000-000000000000"+ },+ "type": "customer.updated"+ },{"api_version": "2020-08-27","created": 1000000000,@@ -147,7 +340,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -175,107 +370,6 @@"total_tax_amounts": [],"transfer_data": null,"webhooks_delivered_at": null- },- "previous_attributes": {- "automatically_finalizes_at": 1000000000,- "effective_at": null,- "ending_balance": null,- "hosted_invoice_url": null,- "invoice_pdf": null,- "number": null,- "payment_intent": null,- "rendering": {- "pdf": {- "page_size": "auto"- }- },- "status": "draft",- "status_transitions": {- "finalized_at": null- }- }- },- "id": "payment_method_string--Event.list.2.json",- "livemode": false,- "object": "event",- "pending_webhooks": 0,- "request": {- "id": "payment_method_string--Event.list.2.json",- "idempotency_key": "00000000-0000-0000-0000-000000000000"- },- "type": "invoice.updated"- },- {- "api_version": "2020-08-27",- "created": 1000000000,- "data": {- "object": {- "amount": 984000,- "amount_capturable": 0,- "amount_details": {- "tip": {}- },- "amount_received": 0,- "application": null,- "application_fee_amount": null,- "automatic_payment_methods": null,- "canceled_at": null,- "cancellation_reason": null,- "capture_method": "automatic",- "charges": {- "data": [],- "has_more": false,- "object": "list",- "total_count": 0,- "url": "/v1/charges?payment_intent=payment_method_string--Event.list.2.json"- },- "client_secret": "NORMALIZED",- "confirmation_method": "automatic",- "created": 1000000000,- "currency": "usd",- "customer": "payment_method_string--Customer.create.1.json",- "description": "Payment for Invoice",- "id": "payment_method_string--Event.list.2.json",- "invoice": "payment_method_string--Event.list.2.json",- "last_payment_error": null,- "latest_charge": null,- "livemode": false,- "metadata": {},- "next_action": null,- "object": "payment_intent",- "on_behalf_of": null,- "payment_method": null,- "payment_method_configuration_details": null,- "payment_method_options": {- "card": {- "installments": null,- "mandate_options": null,- "network": null,- "request_three_d_secure": "automatic"- },- "cashapp": {},- "wechat_pay": {- "app_id": null,- "client": null- }- },- "payment_method_types": [- "ach_credit_transfer",- "card",- "cashapp",- "wechat_pay"- ],- "processing": null,- "receipt_email": "[email protected]",- "review": null,- "setup_future_usage": null,- "shipping": null,- "source": null,- "statement_descriptor": "Zulip Cloud Standard",- "statement_descriptor_suffix": null,- "status": "requires_payment_method",- "transfer_data": null,- "transfer_group": null}},"id": "payment_method_string--Event.list.2.json",@@ -286,7 +380,7 @@"id": "payment_method_string--Event.list.2.json","idempotency_key": "00000000-0000-0000-0000-000000000000"},- "type": "payment_intent.created"+ "type": "invoice.finalized"},{"api_version": "2020-08-27",@@ -310,7 +404,7 @@"liability": null,"status": null},- "automatically_finalizes_at": 1000000000,+ "automatically_finalizes_at": null,"billing_reason": "manual","charge": null,"collection_method": "send_invoice",@@ -332,13 +426,13 @@"discount": null,"discounts": [],"due_date": 1000000000,- "effective_at": null,- "ending_balance": null,+ "effective_at": 1000000000,+ "ending_balance": 0,"footer": null,"from_invoice": null,- "hosted_invoice_url": null,+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap","id": "payment_method_string--Event.list.2.json",- "invoice_pdf": null,+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap","issuer": {"type": "self"},@@ -414,12 +508,12 @@"user_id": "10"},"next_payment_attempt": null,- "number": null,+ "number": "NORMALIZED-0001","object": "invoice","on_behalf_of": null,"paid": false,"paid_out_of_band": false,- "payment_intent": null,+ "payment_intent": "payment_method_string--Event.list.2.json","payment_settings": {"default_mandate": null,"payment_method_options": null,@@ -434,17 +528,19 @@"rendering": {"amount_tax_display": null,"pdf": {- "page_size": "auto"- }+ "page_size": "letter"+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,"shipping_details": null,"starting_balance": 0,"statement_descriptor": "Zulip Cloud Standard",- "status": "draft",+ "status": "open","status_transitions": {- "finalized_at": null,+ "finalized_at": 1000000000,"marked_uncollectible_at": null,"paid_at": null,"voided_at": null@@ -463,6 +559,24 @@"total_tax_amounts": [],"transfer_data": null,"webhooks_delivered_at": null+ },+ "previous_attributes": {+ "automatically_finalizes_at": 1000000000,+ "effective_at": null,+ "ending_balance": null,+ "hosted_invoice_url": null,+ "invoice_pdf": null,+ "number": null,+ "payment_intent": null,+ "rendering": {+ "pdf": {+ "page_size": "auto"+ }+ },+ "status": "draft",+ "status_transitions": {+ "finalized_at": null+ }}},"id": "payment_method_string--Event.list.2.json",@@ -473,7 +587,7 @@"id": "payment_method_string--Event.list.2.json","idempotency_key": "00000000-0000-0000-0000-000000000000"},- "type": "invoice.created"+ "type": "invoice.updated"},{"api_version": "2020-08-27",@@ -481,102 +595,71 @@"data": {"object": {"amount": 984000,- "currency": "usd",- "customer": "payment_method_string--Customer.create.1.json",- "date": 1000000000,- "description": "Zulip Cloud Standard",- "discountable": false,- "discounts": [],- "id": "payment_method_string--Event.list.2.json",- "invoice": null,- "livemode": false,- "metadata": {},- "object": "invoiceitem",- "period": {- "end": 1000000000,- "start": 1000000000+ "amount_capturable": 0,+ "amount_details": {+ "tip": {}},- "plan": null,- "price": {- "active": false,- "billing_scheme": "per_unit",- "created": 1000000000,- "currency": "usd",- "custom_unit_amount": null,- "id": "payment_method_string--Event.list.2.json",- "livemode": false,- "lookup_key": null,- "metadata": {},- "nickname": null,- "object": "price",- "product": "prod_NORMALIZED",- "recurring": null,- "tax_behavior": "unspecified",- "tiers_mode": null,- "transform_quantity": null,- "type": "one_time",- "unit_amount": 8000,- "unit_amount_decimal": "8000"+ "amount_received": 0,+ "application": null,+ "application_fee_amount": null,+ "automatic_payment_methods": null,+ "canceled_at": null,+ "cancellation_reason": null,+ "capture_method": "automatic",+ "charges": {+ "data": [],+ "has_more": false,+ "object": "list",+ "total_count": 0,+ "url": "/v1/charges?payment_intent=payment_method_string--Event.list.2.json"},- "proration": false,- "quantity": 123,- "subscription": null,- "tax_rates": [],- "test_clock": null,- "unit_amount": 8000,- "unit_amount_decimal": "8000"- }- },- "id": "payment_method_string--Event.list.2.json",- "livemode": false,- "object": "event",- "pending_webhooks": 0,- "request": {- "id": "payment_method_string--Event.list.2.json",- "idempotency_key": "00000000-0000-0000-0000-000000000000"- },- "type": "invoiceitem.created"- },- {- "api_version": "2020-08-27",- "created": 1000000000,- "data": {- "object": {- "address": null,- "balance": 0,+ "client_secret": "NORMALIZED",+ "confirmation_method": "automatic","created": 1000000000,"currency": "usd",- "default_currency": "usd",- "default_source": null,- "delinquent": false,- "description": "zulip (Zulip Dev)",- "discount": null,- "email": "[email protected]",- "id": "payment_method_string--Customer.create.1.json",- "invoice_prefix": "NORMALIZED",- "invoice_settings": {- "custom_fields": null,- "default_payment_method": "pm_NORMALIZED",- "footer": null,- "rendering_options": null- },+ "customer": "payment_method_string--Customer.create.1.json",+ "description": "Payment for Invoice",+ "id": "payment_method_string--Event.list.2.json",+ "invoice": "payment_method_string--Event.list.2.json",+ "last_payment_error": null,+ "latest_charge": null,"livemode": false,- "metadata": {- "realm_id": "1",- "realm_str": "zulip"+ "metadata": {},+ "next_action": null,+ "object": "payment_intent",+ "on_behalf_of": null,+ "payment_method": null,+ "payment_method_configuration_details": null,+ "payment_method_options": {+ "card": {+ "installments": null,+ "mandate_options": null,+ "network": null,+ "request_three_d_secure": "automatic"+ },+ "cashapp": {},+ "wechat_pay": {+ "app_id": null,+ "client": null+ }},- "name": null,- "next_invoice_sequence": 1,- "object": "customer",- "phone": null,- "preferred_locales": [],+ "payment_method_types": [+ "ach_credit_transfer",+ "card",+ "cashapp",+ "wechat_pay"+ ],+ "processing": null,+ "receipt_email": "[email protected]",+ "review": null,+ "setup_future_usage": null,"shipping": null,- "tax_exempt": "none",- "test_clock": null- },- "previous_attributes": {- "currency": null,- "default_currency": null+ "source": null,+ "statement_descriptor": "Zulip Cloud Standard",+ "statement_descriptor_suffix": null,+ "status": "requires_payment_method",+ "transfer_data": null,+ "transfer_group": null}},"id": "payment_method_string--Event.list.2.json",@@ -587,7 +670,7 @@"id": "payment_method_string--Event.list.2.json","idempotency_key": "00000000-0000-0000-0000-000000000000"},- "type": "customer.updated"+ "type": "payment_intent.created"},{"api_version": "2020-08-27",@@ -597,28 +680,28 @@"account_country": "US","account_name": "Kandra Labs, Inc.","account_tax_ids": null,- "amount_due": 14166,- "amount_paid": 14166,- "amount_remaining": 0,+ "amount_due": 984000,+ "amount_paid": 0,+ "amount_remaining": 984000,"amount_shipping": 0,"application": null,"application_fee_amount": null,- "attempt_count": 1,- "attempted": true,- "auto_advance": false,+ "attempt_count": 0,+ "attempted": false,+ "auto_advance": true,"automatic_tax": {"enabled": false,"liability": null,"status": null},- "automatically_finalizes_at": null,+ "automatically_finalizes_at": 1000000000,"billing_reason": "manual",- "charge": "payment_method_string--Event.list.2.json",- "collection_method": "charge_automatically",+ "charge": null,+ "collection_method": "send_invoice","created": 1000000000,"currency": "usd","custom_fields": null,- "customer": "cus_NORMALIZED",+ "customer": "payment_method_string--Customer.create.1.json","customer_address": null,"customer_email": "[email protected]","customer_name": null,@@ -632,14 +715,14 @@"description": null,"discount": null,"discounts": [],- "due_date": null,- "effective_at": 1000000000,- "ending_balance": 0,+ "due_date": 1000000000,+ "effective_at": null,+ "ending_balance": null,"footer": null,"from_invoice": null,- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",+ "hosted_invoice_url": null,"id": "payment_method_string--Event.list.2.json",- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",+ "invoice_pdf": null,"issuer": {"type": "self"},@@ -648,22 +731,22 @@"lines": {"data": [{- "amount": 14166,- "amount_excluding_tax": 14166,+ "amount": 984000,+ "amount_excluding_tax": 984000,"currency": "usd",- "description": "Zulip Basic - renewal",+ "description": "Zulip Cloud Standard","discount_amounts": [],"discountable": false,"discounts": [],"id": "payment_method_string--Event.list.2.json","invoice": "payment_method_string--Event.list.2.json",- "invoice_item": "ii_NORMALIZED",+ "invoice_item": "payment_method_string--Event.list.2.json","livemode": false,"metadata": {},"object": "line_item","period": {- "end": 1359774245,- "start": 1357095845+ "end": 1000000000,+ "start": 1000000000},"plan": null,"price": {@@ -684,19 +767,19 @@"tiers_mode": null,"transform_quantity": null,"type": "one_time",- "unit_amount": 14166,- "unit_amount_decimal": "14166"+ "unit_amount": 8000,+ "unit_amount_decimal": "8000"},"proration": false,"proration_details": {"credited_items": null},- "quantity": 1,+ "quantity": 123,"subscription": null,"tax_amounts": [],"tax_rates": [],"type": "invoiceitem",- "unit_amount_excluding_tax": "14166"+ "unit_amount_excluding_tax": "8000"}],"has_more": false,@@ -705,14 +788,22 @@"url": "/v1/invoices/payment_method_string--Event.list.2.json/lines"},"livemode": false,- "metadata": {},+ "metadata": {+ "billing_schedule": "1",+ "current_plan_id": "None",+ "license_management": "manual",+ "licenses": "123",+ "on_free_trial": "False",+ "plan_tier": "1",+ "user_id": "10"+ },"next_payment_attempt": null,- "number": "NORMALIZED",+ "number": null,"object": "invoice","on_behalf_of": null,- "paid": true,+ "paid": false,"paid_out_of_band": false,- "payment_intent": "payment_method_string--Event.list.2.json",+ "payment_intent": null,"payment_settings": {"default_mandate": null,"payment_method_options": null,@@ -727,35 +818,37 @@"rendering": {"amount_tax_display": null,"pdf": {- "page_size": "letter"- }+ "page_size": "auto"+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,"shipping_details": null,"starting_balance": 0,- "statement_descriptor": "Zulip Basic",- "status": "paid",+ "statement_descriptor": "Zulip Cloud Standard",+ "status": "draft","status_transitions": {- "finalized_at": 1000000000,+ "finalized_at": null,"marked_uncollectible_at": null,- "paid_at": 1000000000,+ "paid_at": null,"voided_at": null},"subscription": null,"subscription_details": {"metadata": null},- "subtotal": 14166,- "subtotal_excluding_tax": 14166,+ "subtotal": 984000,+ "subtotal_excluding_tax": 984000,"tax": null,"test_clock": null,- "total": 14166,+ "total": 984000,"total_discount_amounts": [],- "total_excluding_tax": 14166,+ "total_excluding_tax": 984000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null}},"id": "payment_method_string--Event.list.2.json",@@ -763,178 +856,61 @@"object": "event","pending_webhooks": 0,"request": {- "id": null,- "idempotency_key": null+ "id": "payment_method_string--Event.list.2.json",+ "idempotency_key": "00000000-0000-0000-0000-000000000000"},- "type": "invoice.payment_succeeded"+ "type": "invoice.created"},{"api_version": "2020-08-27","created": 1000000000,"data": {"object": {- "account_country": "US",- "account_name": "Kandra Labs, Inc.",- "account_tax_ids": null,- "amount_due": 14166,- "amount_paid": 14166,- "amount_remaining": 0,- "amount_shipping": 0,- "application": null,- "application_fee_amount": null,- "attempt_count": 1,- "attempted": true,- "auto_advance": false,- "automatic_tax": {- "enabled": false,- "liability": null,- "status": null- },- "automatically_finalizes_at": null,- "billing_reason": "manual",- "charge": "payment_method_string--Event.list.2.json",- "collection_method": "charge_automatically",- "created": 1000000000,+ "amount": 984000,"currency": "usd",- "custom_fields": null,- "customer": "cus_NORMALIZED",- "customer_address": null,- "customer_email": "[email protected]",- "customer_name": null,- "customer_phone": null,- "customer_shipping": null,- "customer_tax_exempt": "none",- "customer_tax_ids": [],- "default_payment_method": null,- "default_source": null,- "default_tax_rates": [],- "description": null,- "discount": null,+ "customer": "payment_method_string--Customer.create.1.json",+ "date": 1000000000,+ "description": "Zulip Cloud Standard",+ "discountable": false,"discounts": [],- "due_date": null,- "effective_at": 1000000000,- "ending_balance": 0,- "footer": null,- "from_invoice": null,- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap","id": "payment_method_string--Event.list.2.json",- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",- "issuer": {- "type": "self"- },- "last_finalization_error": null,- "latest_revision": null,- "lines": {- "data": [- {- "amount": 14166,- "amount_excluding_tax": 14166,- "currency": "usd",- "description": "Zulip Basic - renewal",- "discount_amounts": [],- "discountable": false,- "discounts": [],- "id": "payment_method_string--Event.list.2.json",- "invoice": "payment_method_string--Event.list.2.json",- "invoice_item": "ii_NORMALIZED",- "livemode": false,- "metadata": {},- "object": "line_item",- "period": {- "end": 1359774245,- "start": 1357095845- },- "plan": null,- "price": {- "active": false,- "billing_scheme": "per_unit",- "created": 1000000000,- "currency": "usd",- "custom_unit_amount": null,- "id": "payment_method_string--Event.list.2.json",- "livemode": false,- "lookup_key": null,- "metadata": {},- "nickname": null,- "object": "price",- "product": "prod_NORMALIZED",- "recurring": null,- "tax_behavior": "unspecified",- "tiers_mode": null,- "transform_quantity": null,- "type": "one_time",- "unit_amount": 14166,- "unit_amount_decimal": "14166"- },- "proration": false,- "proration_details": {- "credited_items": null- },- "quantity": 1,- "subscription": null,- "tax_amounts": [],- "tax_rates": [],- "type": "invoiceitem",- "unit_amount_excluding_tax": "14166"- }- ],- "has_more": false,- "object": "list",- "total_count": 1,- "url": "/v1/invoices/payment_method_string--Event.list.2.json/lines"- },+ "invoice": null,"livemode": false,"metadata": {},- "next_payment_attempt": null,- "number": "NORMALIZED",- "object": "invoice",- "on_behalf_of": null,- "paid": true,- "paid_out_of_band": false,- "payment_intent": "payment_method_string--Event.list.2.json",- "payment_settings": {- "default_mandate": null,- "payment_method_options": null,- "payment_method_types": null- },- "period_end": 1000000000,- "period_start": 1000000000,- "post_payment_credit_notes_amount": 0,- "pre_payment_credit_notes_amount": 0,- "quote": null,- "receipt_number": null,- "rendering": {- "amount_tax_display": null,- "pdf": {- "page_size": "letter"- }+ "object": "invoiceitem",+ "period": {+ "end": 1000000000,+ "start": 1000000000},- "rendering_options": null,- "shipping_cost": null,- "shipping_details": null,- "starting_balance": 0,- "statement_descriptor": "Zulip Basic",- "status": "paid",- "status_transitions": {- "finalized_at": 1000000000,- "marked_uncollectible_at": null,- "paid_at": 1000000000,- "voided_at": null+ "plan": null,+ "price": {+ "active": false,+ "billing_scheme": "per_unit",+ "created": 1000000000,+ "currency": "usd",+ "custom_unit_amount": null,+ "id": "payment_method_string--Event.list.2.json",+ "livemode": false,+ "lookup_key": null,+ "metadata": {},+ "nickname": null,+ "object": "price",+ "product": "prod_NORMALIZED",+ "recurring": null,+ "tax_behavior": "unspecified",+ "tiers_mode": null,+ "transform_quantity": null,+ "type": "one_time",+ "unit_amount": 8000,+ "unit_amount_decimal": "8000"},+ "proration": false,+ "quantity": 123,"subscription": null,- "subscription_details": {- "metadata": null- },- "subtotal": 14166,- "subtotal_excluding_tax": 14166,- "tax": null,+ "tax_rates": [],"test_clock": null,- "total": 14166,- "total_discount_amounts": [],- "total_excluding_tax": 14166,- "total_tax_amounts": [],- "transfer_data": null,- "webhooks_delivered_at": 1000000000+ "unit_amount": 8000,+ "unit_amount_decimal": "8000"}},"id": "payment_method_string--Event.list.2.json",@@ -942,511 +918,51 @@"object": "event","pending_webhooks": 0,"request": {- "id": null,- "idempotency_key": null+ "id": "payment_method_string--Event.list.2.json",+ "idempotency_key": "00000000-0000-0000-0000-000000000000"},- "type": "invoice.paid"+ "type": "invoiceitem.created"},{"api_version": "2020-08-27","created": 1000000000,"data": {"object": {- "account_country": "US",- "account_name": "Kandra Labs, Inc.",- "account_tax_ids": null,- "amount_due": 14166,- "amount_paid": 14166,- "amount_remaining": 0,- "amount_shipping": 0,- "application": null,- "application_fee_amount": null,- "attempt_count": 1,- "attempted": true,- "auto_advance": false,- "automatic_tax": {- "enabled": false,- "liability": null,- "status": null- },- "automatically_finalizes_at": null,- "billing_reason": "manual",- "charge": "payment_method_string--Event.list.2.json",- "collection_method": "charge_automatically",+ "address": null,+ "balance": 0,"created": 1000000000,"currency": "usd",- "custom_fields": null,- "customer": "cus_NORMALIZED",- "customer_address": null,- "customer_email": "[email protected]",- "customer_name": null,- "customer_phone": null,- "customer_shipping": null,- "customer_tax_exempt": "none",- "customer_tax_ids": [],- "default_payment_method": null,+ "default_currency": "usd","default_source": null,- "default_tax_rates": [],- "description": null,+ "delinquent": false,+ "description": "zulip (Zulip Dev)","discount": null,- "discounts": [],- "due_date": null,- "effective_at": 1000000000,- "ending_balance": 0,- "footer": null,- "from_invoice": null,- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",- "id": "payment_method_string--Event.list.2.json",- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",- "issuer": {- "type": "self"- },- "last_finalization_error": null,- "latest_revision": null,- "lines": {- "data": [- {- "amount": 14166,- "amount_excluding_tax": 14166,- "currency": "usd",- "description": "Zulip Basic - renewal",- "discount_amounts": [],- "discountable": false,- "discounts": [],- "id": "payment_method_string--Event.list.2.json",- "invoice": "payment_method_string--Event.list.2.json",- "invoice_item": "ii_NORMALIZED",- "livemode": false,- "metadata": {},- "object": "line_item",- "period": {- "end": 1359774245,- "start": 1357095845- },- "plan": null,- "price": {- "active": false,- "billing_scheme": "per_unit",- "created": 1000000000,- "currency": "usd",- "custom_unit_amount": null,- "id": "payment_method_string--Event.list.2.json",- "livemode": false,- "lookup_key": null,- "metadata": {},- "nickname": null,- "object": "price",- "product": "prod_NORMALIZED",- "recurring": null,- "tax_behavior": "unspecified",- "tiers_mode": null,- "transform_quantity": null,- "type": "one_time",- "unit_amount": 14166,- "unit_amount_decimal": "14166"- },- "proration": false,- "proration_details": {- "credited_items": null- },- "quantity": 1,- "subscription": null,- "tax_amounts": [],- "tax_rates": [],- "type": "invoiceitem",- "unit_amount_excluding_tax": "14166"- }- ],- "has_more": false,- "object": "list",- "total_count": 1,- "url": "/v1/invoices/payment_method_string--Event.list.2.json/lines"+ "email": "[email protected]",+ "id": "payment_method_string--Customer.create.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": "pm_NORMALIZED",+ "footer": null,+ "rendering_options": null},"livemode": false,- "metadata": {},- "next_payment_attempt": null,- "number": "NORMALIZED",- "object": "invoice",- "on_behalf_of": null,- "paid": true,- "paid_out_of_band": false,- "payment_intent": "payment_method_string--Event.list.2.json",- "payment_settings": {- "default_mandate": null,- "payment_method_options": null,- "payment_method_types": null- },- "period_end": 1000000000,- "period_start": 1000000000,- "post_payment_credit_notes_amount": 0,- "pre_payment_credit_notes_amount": 0,- "quote": null,- "receipt_number": null,- "rendering": {- "amount_tax_display": null,- "pdf": {- "page_size": "letter"- }- },- "rendering_options": null,- "shipping_cost": null,- "shipping_details": null,- "starting_balance": 0,- "statement_descriptor": "Zulip Basic",- "status": "paid",- "status_transitions": {- "finalized_at": 1000000000,- "marked_uncollectible_at": null,- "paid_at": 1000000000,- "voided_at": null- },- "subscription": null,- "subscription_details": {- "metadata": null+ "metadata": {+ "realm_id": "1",+ "realm_str": "zulip"},- "subtotal": 14166,- "subtotal_excluding_tax": 14166,- "tax": null,- "test_clock": null,- "total": 14166,- "total_discount_amounts": [],- "total_excluding_tax": 14166,- "total_tax_amounts": [],- "transfer_data": null,- "webhooks_delivered_at": 1000000000+ "name": null,+ "next_invoice_sequence": 1,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null},"previous_attributes": {- "amount_paid": 0,- "amount_remaining": 14166,- "attempt_count": 0,- "attempted": false,- "auto_advance": true,- "charge": null,- "next_payment_attempt": 1000000000,- "paid": false,- "status": "open",- "status_transitions": {- "paid_at": null- }- }- },- "id": "payment_method_string--Event.list.2.json",- "livemode": false,- "object": "event",- "pending_webhooks": 0,- "request": {- "id": null,- "idempotency_key": null- },- "type": "invoice.updated"- },- {- "api_version": "2020-08-27",- "created": 1000000000,- "data": {- "object": {- "amount": 14166,- "amount_capturable": 0,- "amount_details": {- "tip": {}- },- "amount_received": 14166,- "application": null,- "application_fee_amount": null,- "automatic_payment_methods": null,- "canceled_at": null,- "cancellation_reason": null,- "capture_method": "automatic",- "charges": {- "data": [- {- "amount": 14166,- "amount_captured": 14166,- "amount_refunded": 0,- "application": null,- "application_fee": null,- "application_fee_amount": null,- "balance_transaction": "txn_NORMALIZED",- "billing_details": {- "address": {- "city": "San Francisco",- "country": "US",- "line1": "123 Main St",- "line2": null,- "postal_code": "94105",- "state": "CA"- },- "email": null,- "name": "John Doe",- "phone": null- },- "calculated_statement_descriptor": "ZULIP BASIC",- "captured": true,- "created": 1000000000,- "currency": "usd",- "customer": "cus_NORMALIZED",- "description": "Payment for Invoice",- "destination": null,- "dispute": null,- "disputed": false,- "failure_balance_transaction": null,- "failure_code": null,- "failure_message": null,- "fraud_details": {},- "id": "payment_method_string--Event.list.2.json",- "invoice": "payment_method_string--Event.list.2.json",- "livemode": false,- "metadata": {},- "object": "charge",- "on_behalf_of": null,- "order": null,- "outcome": {- "network_status": "approved_by_network",- "reason": null,- "risk_level": "normal",- "risk_score": 0,- "seller_message": "Payment complete.",- "type": "authorized"- },- "paid": true,- "payment_intent": "payment_method_string--Event.list.2.json",- "payment_method": "pm_NORMALIZED",- "payment_method_details": {- "card": {- "amount_authorized": 14166,- "authorization_code": null,- "brand": "visa",- "checks": {- "address_line1_check": "pass",- "address_postal_code_check": "pass",- "cvc_check": null- },- "country": "US",- "exp_month": 8,- "exp_year": 2025,- "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- },- "overcapture": {- "maximum_amount_capturable": 14166,- "status": "unavailable"- },- "three_d_secure": null,- "wallet": null- },- "type": "card"- },- "receipt_email": "[email protected]",- "receipt_number": null,- "receipt_url": "https://pay.stripe.com/receipts/invoices/NORMALIZED?s=ap",- "refunded": false,- "refunds": {- "data": [],- "has_more": false,- "object": "list",- "total_count": 0,- "url": "/v1/charges/payment_method_string--Event.list.2.json/refunds"- },- "review": null,- "shipping": null,- "source": null,- "source_transfer": null,- "statement_descriptor": "Zulip Basic",- "statement_descriptor_suffix": null,- "status": "succeeded",- "transfer_data": null,- "transfer_group": null- }- ],- "has_more": false,- "object": "list",- "total_count": 1,- "url": "/v1/charges?payment_intent=payment_method_string--Event.list.2.json"- },- "client_secret": "NORMALIZED",- "confirmation_method": "automatic",- "created": 1000000000,- "currency": "usd",- "customer": "cus_NORMALIZED",- "description": "Payment for Invoice",- "id": "payment_method_string--Event.list.2.json",- "invoice": "payment_method_string--Event.list.2.json",- "last_payment_error": null,- "latest_charge": "payment_method_string--Event.list.2.json",- "livemode": false,- "metadata": {},- "next_action": null,- "object": "payment_intent",- "on_behalf_of": null,- "payment_method": "pm_NORMALIZED",- "payment_method_configuration_details": null,- "payment_method_options": {- "card": {- "installments": null,- "mandate_options": null,- "network": null,- "request_three_d_secure": "automatic"- },- "cashapp": {}- },- "payment_method_types": [- "card",- "cashapp"- ],- "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": "payment_method_string--Event.list.2.json",- "livemode": false,- "object": "event",- "pending_webhooks": 0,- "request": {- "id": null,- "idempotency_key": "payment_method_string--Event.list.2.json-initial_attempt-7179a03aa1548811d"- },- "type": "payment_intent.succeeded"- },- {- "api_version": "2020-08-27",- "created": 1000000000,- "data": {- "object": {- "amount": 14166,- "amount_captured": 14166,- "amount_refunded": 0,- "application": null,- "application_fee": null,- "application_fee_amount": null,- "balance_transaction": "txn_NORMALIZED",- "billing_details": {- "address": {- "city": "San Francisco",- "country": "US",- "line1": "123 Main St",- "line2": null,- "postal_code": "94105",- "state": "CA"- },- "email": null,- "name": "John Doe",- "phone": null- },- "calculated_statement_descriptor": "ZULIP BASIC",- "captured": true,- "created": 1000000000,- "currency": "usd",- "customer": "cus_NORMALIZED",- "description": "Payment for Invoice",- "destination": null,- "dispute": null,- "disputed": false,- "failure_balance_transaction": null,- "failure_code": null,- "failure_message": null,- "fraud_details": {},- "id": "payment_method_string--Event.list.2.json",- "invoice": "payment_method_string--Event.list.2.json",- "livemode": false,- "metadata": {},- "object": "charge",- "on_behalf_of": null,- "order": null,- "outcome": {- "network_status": "approved_by_network",- "reason": null,- "risk_level": "normal",- "risk_score": 0,- "seller_message": "Payment complete.",- "type": "authorized"- },- "paid": true,- "payment_intent": "payment_method_string--Event.list.2.json",- "payment_method": "pm_NORMALIZED",- "payment_method_details": {- "card": {- "amount_authorized": 14166,- "authorization_code": null,- "brand": "visa",- "checks": {- "address_line1_check": "pass",- "address_postal_code_check": "pass",- "cvc_check": null- },- "country": "US",- "exp_month": 8,- "exp_year": 2025,- "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- },- "overcapture": {- "maximum_amount_capturable": 14166,- "status": "unavailable"- },- "three_d_secure": null,- "wallet": null- },- "type": "card"- },- "receipt_email": "[email protected]",- "receipt_number": null,- "receipt_url": "https://pay.stripe.com/receipts/invoices/NORMALIZED?s=ap",- "refunded": false,- "refunds": {- "data": [],- "has_more": false,- "object": "list",- "total_count": 0,- "url": "/v1/charges/payment_method_string--Event.list.2.json/refunds"- },- "review": null,- "shipping": null,- "source": null,- "source_transfer": null,- "statement_descriptor": "Zulip Basic",- "statement_descriptor_suffix": null,- "status": "succeeded",- "transfer_data": null,- "transfer_group": null+ "currency": null,+ "default_currency": null}},"id": "payment_method_string--Event.list.2.json",@@ -1454,13 +970,13 @@"object": "event","pending_webhooks": 0,"request": {- "id": null,- "idempotency_key": "payment_method_string--Event.list.2.json-initial_attempt-7179a03aa1548811d"+ "id": "payment_method_string--Event.list.2.json",+ "idempotency_key": "00000000-0000-0000-0000-000000000000"},- "type": "charge.succeeded"+ "type": "customer.updated"}],- "has_more": true,+ "has_more": false,"object": "list","url": "/v1/events"}diff --git a/corporate/tests/stripe_fixtures/payment_method_string--Event.list.3.json b/corporate/tests/stripe_fixtures/payment_method_string--Event.list.3.jsonindex c0126e9812b..fae8eb9879a 100644--- a/corporate/tests/stripe_fixtures/payment_method_string--Event.list.3.json+++ b/corporate/tests/stripe_fixtures/payment_method_string--Event.list.3.json@@ -147,7 +147,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -174,7 +176,7 @@"total_excluding_tax": 984000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": null+ "webhooks_delivered_at": 1000000000}},"id": "payment_method_string--Event.list.3.json",@@ -182,7 +184,7 @@"object": "event","pending_webhooks": 0,"request": {- "id": "payment_method_string--Event.list.3.json",+ "id": "payment_method_string--Event.list.2.json","idempotency_key": "00000000-0000-0000-0000-000000000000"},"type": "invoice.paid"@@ -334,7 +336,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -361,13 +365,13 @@"total_excluding_tax": 984000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": null+ "webhooks_delivered_at": 1000000000},"previous_attributes": {"auto_advance": true,"paid": false,"paid_out_of_band": false,- "payment_intent": "payment_method_string--Event.list.2.json",+ "payment_intent": "pi_NORMALIZED","status": "open","status_transitions": {"paid_at": null@@ -378,281 +382,11 @@"livemode": false,"object": "event","pending_webhooks": 0,- "request": {- "id": "payment_method_string--Event.list.3.json",- "idempotency_key": "00000000-0000-0000-0000-000000000000"- },- "type": "invoice.updated"- },- {- "api_version": "2020-08-27",- "created": 1000000000,- "data": {- "object": {- "amount": 984000,- "amount_capturable": 0,- "amount_details": {- "tip": {}- },- "amount_received": 0,- "application": null,- "application_fee_amount": null,- "automatic_payment_methods": null,- "canceled_at": 1000000000,- "cancellation_reason": "requested_by_customer",- "capture_method": "automatic",- "charges": {- "data": [],- "has_more": false,- "object": "list",- "total_count": 0,- "url": "/v1/charges?payment_intent=payment_method_string--Event.list.2.json"- },- "client_secret": "NORMALIZED",- "confirmation_method": "automatic",- "created": 1000000000,- "currency": "usd",- "customer": "cus_NORMALIZED",- "description": "Payment for Invoice",- "id": "payment_method_string--Event.list.2.json",- "invoice": "payment_method_string--Event.list.2.json",- "last_payment_error": null,- "latest_charge": null,- "livemode": false,- "metadata": {},- "next_action": null,- "object": "payment_intent",- "on_behalf_of": null,- "payment_method": "pm_NORMALIZED",- "payment_method_configuration_details": null,- "payment_method_options": {- "card": {- "installments": null,- "mandate_options": null,- "network": null,- "request_three_d_secure": "automatic"- },- "cashapp": {},- "wechat_pay": {- "app_id": null,- "client": null- }- },- "payment_method_types": [- "ach_credit_transfer",- "card",- "cashapp",- "wechat_pay"- ],- "processing": null,- "receipt_email": "[email protected]",- "review": null,- "setup_future_usage": null,- "shipping": null,- "source": null,- "statement_descriptor": "Zulip Cloud Standard",- "statement_descriptor_suffix": null,- "status": "canceled",- "transfer_data": null,- "transfer_group": null- }- },- "id": "payment_method_string--Event.list.3.json",- "livemode": false,- "object": "event",- "pending_webhooks": 0,- "request": {- "id": "payment_method_string--Event.list.3.json",- "idempotency_key": "00000000-0000-0000-0000-000000000000"- },- "type": "payment_intent.canceled"- },- {- "api_version": "2020-08-27",- "created": 1000000000,- "data": {- "object": {- "account_country": "US",- "account_name": "Kandra Labs, Inc.",- "account_tax_ids": null,- "amount_due": 984000,- "amount_paid": 0,- "amount_remaining": 984000,- "amount_shipping": 0,- "application": null,- "application_fee_amount": null,- "attempt_count": 0,- "attempted": false,- "auto_advance": true,- "automatic_tax": {- "enabled": false,- "liability": null,- "status": null- },- "automatically_finalizes_at": null,- "billing_reason": "manual",- "charge": null,- "collection_method": "send_invoice",- "created": 1000000000,- "currency": "usd",- "custom_fields": null,- "customer": "cus_NORMALIZED",- "customer_address": null,- "customer_email": "[email protected]",- "customer_name": null,- "customer_phone": null,- "customer_shipping": null,- "customer_tax_exempt": "none",- "customer_tax_ids": [],- "default_payment_method": null,- "default_source": null,- "default_tax_rates": [],- "description": null,- "discount": null,- "discounts": [],- "due_date": 1000000000,- "effective_at": 1000000000,- "ending_balance": 0,- "footer": null,- "from_invoice": null,- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",- "id": "payment_method_string--Event.list.2.json",- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",- "issuer": {- "type": "self"- },- "last_finalization_error": null,- "latest_revision": null,- "lines": {- "data": [- {- "amount": 984000,- "amount_excluding_tax": 984000,- "currency": "usd",- "description": "Zulip Cloud Standard",- "discount_amounts": [],- "discountable": false,- "discounts": [],- "id": "payment_method_string--Event.list.2.json",- "invoice": "payment_method_string--Event.list.2.json",- "invoice_item": "ii_NORMALIZED",- "livemode": false,- "metadata": {},- "object": "line_item",- "period": {- "end": 1000000000,- "start": 1000000000- },- "plan": null,- "price": {- "active": false,- "billing_scheme": "per_unit",- "created": 1000000000,- "currency": "usd",- "custom_unit_amount": null,- "id": "payment_method_string--Event.list.2.json",- "livemode": false,- "lookup_key": null,- "metadata": {},- "nickname": null,- "object": "price",- "product": "prod_NORMALIZED",- "recurring": null,- "tax_behavior": "unspecified",- "tiers_mode": null,- "transform_quantity": null,- "type": "one_time",- "unit_amount": 8000,- "unit_amount_decimal": "8000"- },- "proration": false,- "proration_details": {- "credited_items": null- },- "quantity": 123,- "subscription": null,- "tax_amounts": [],- "tax_rates": [],- "type": "invoiceitem",- "unit_amount_excluding_tax": "8000"- }- ],- "has_more": false,- "object": "list",- "total_count": 1,- "url": "/v1/invoices/payment_method_string--Event.list.2.json/lines"- },- "livemode": false,- "metadata": {- "billing_schedule": "1",- "current_plan_id": "None",- "license_management": "manual",- "licenses": "123",- "on_free_trial": "False",- "plan_tier": "1",- "user_id": "10"- },- "next_payment_attempt": null,- "number": "NORMALIZED",- "object": "invoice",- "on_behalf_of": null,- "paid": false,- "paid_out_of_band": false,- "payment_intent": "payment_method_string--Event.list.2.json",- "payment_settings": {- "default_mandate": null,- "payment_method_options": null,- "payment_method_types": null- },- "period_end": 1000000000,- "period_start": 1000000000,- "post_payment_credit_notes_amount": 0,- "pre_payment_credit_notes_amount": 0,- "quote": null,- "receipt_number": null,- "rendering": {- "amount_tax_display": null,- "pdf": {- "page_size": "letter"- }- },- "rendering_options": null,- "shipping_cost": null,- "shipping_details": null,- "starting_balance": 0,- "statement_descriptor": "Zulip Cloud Standard",- "status": "open",- "status_transitions": {- "finalized_at": 1000000000,- "marked_uncollectible_at": null,- "paid_at": null,- "voided_at": null- },- "subscription": null,- "subscription_details": {- "metadata": null- },- "subtotal": 984000,- "subtotal_excluding_tax": 984000,- "tax": null,- "test_clock": null,- "total": 984000,- "total_discount_amounts": [],- "total_excluding_tax": 984000,- "total_tax_amounts": [],- "transfer_data": null,- "webhooks_delivered_at": null- }- },- "id": "payment_method_string--Event.list.3.json",- "livemode": false,- "object": "event",- "pending_webhooks": 0,"request": {"id": "payment_method_string--Event.list.2.json","idempotency_key": "00000000-0000-0000-0000-000000000000"},- "type": "invoice.finalized"+ "type": "invoice.updated"}],"has_more": false,diff --git a/corporate/tests/stripe_fixtures/payment_method_string--Invoice.create.1.json b/corporate/tests/stripe_fixtures/payment_method_string--Invoice.create.1.jsonindex 03e384e74f9..8628f59a25d 100644--- a/corporate/tests/stripe_fixtures/payment_method_string--Invoice.create.1.json+++ b/corporate/tests/stripe_fixtures/payment_method_string--Invoice.create.1.json@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/payment_method_string--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/payment_method_string--Invoice.finalize_invoice.1.jsonindex 2c370f48510..9026e12ca69 100644--- a/corporate/tests/stripe_fixtures/payment_method_string--Invoice.finalize_invoice.1.json+++ b/corporate/tests/stripe_fixtures/payment_method_string--Invoice.finalize_invoice.1.json@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/payment_method_string--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/payment_method_string--Invoice.pay.1.jsonindex 59e95dbd7dd..d5792660588 100644--- a/corporate/tests/stripe_fixtures/payment_method_string--Invoice.pay.1.json+++ b/corporate/tests/stripe_fixtures/payment_method_string--Invoice.pay.1.json@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -168,5 +170,5 @@"total_excluding_tax": 984000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": null+ "webhooks_delivered_at": 1000000000}diff --git a/corporate/tests/stripe_fixtures/payment_method_string--PaymentMethod.create.1.json b/corporate/tests/stripe_fixtures/payment_method_string--PaymentMethod.create.1.jsonindex 7f286bfa542..5978a6b1620 100644--- a/corporate/tests/stripe_fixtures/payment_method_string--PaymentMethod.create.1.json+++ b/corporate/tests/stripe_fixtures/payment_method_string--PaymentMethod.create.1.json@@ -6,7 +6,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -22,8 +22,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/redirect_for_billing_page_downgrade_at_free_trial_end--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/redirect_for_billing_page_downgrade_at_free_trial_end--Customer.retrieve.1.jsonindex 76d82c41db6..6d7612930c0 100644--- a/corporate/tests/stripe_fixtures/redirect_for_billing_page_downgrade_at_free_trial_end--Customer.retrieve.1.json+++ b/corporate/tests/stripe_fixtures/redirect_for_billing_page_downgrade_at_free_trial_end--Customer.retrieve.1.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/redirect_for_billing_page_downgrade_at_free_trial_end--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/redirect_for_billing_page_downgrade_at_free_trial_end--Customer.retrieve.2.jsonindex 76d82c41db6..6d7612930c0 100644--- a/corporate/tests/stripe_fixtures/redirect_for_billing_page_downgrade_at_free_trial_end--Customer.retrieve.2.json+++ b/corporate/tests/stripe_fixtures/redirect_for_billing_page_downgrade_at_free_trial_end--Customer.retrieve.2.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/redirect_for_billing_page_downgrade_at_free_trial_end--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/redirect_for_billing_page_downgrade_at_free_trial_end--Customer.retrieve.3.jsonindex 76d82c41db6..6d7612930c0 100644--- a/corporate/tests/stripe_fixtures/redirect_for_billing_page_downgrade_at_free_trial_end--Customer.retrieve.3.json+++ b/corporate/tests/stripe_fixtures/redirect_for_billing_page_downgrade_at_free_trial_end--Customer.retrieve.3.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/redirect_for_billing_page_downgrade_at_free_trial_end--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/redirect_for_billing_page_downgrade_at_free_trial_end--Customer.retrieve.4.jsonindex 76d82c41db6..6d7612930c0 100644--- a/corporate/tests/stripe_fixtures/redirect_for_billing_page_downgrade_at_free_trial_end--Customer.retrieve.4.json+++ b/corporate/tests/stripe_fixtures/redirect_for_billing_page_downgrade_at_free_trial_end--Customer.retrieve.4.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/redirect_for_billing_page_downgrade_at_free_trial_end--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/redirect_for_billing_page_downgrade_at_free_trial_end--Customer.retrieve.5.jsonindex 76d82c41db6..6d7612930c0 100644--- a/corporate/tests/stripe_fixtures/redirect_for_billing_page_downgrade_at_free_trial_end--Customer.retrieve.5.json+++ b/corporate/tests/stripe_fixtures/redirect_for_billing_page_downgrade_at_free_trial_end--Customer.retrieve.5.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/redirect_for_billing_page_downgrade_at_free_trial_end--Customer.retrieve.6.json b/corporate/tests/stripe_fixtures/redirect_for_billing_page_downgrade_at_free_trial_end--Customer.retrieve.6.jsonnew file mode 100644index 00000000000..6d7612930c0--- /dev/null+++ b/corporate/tests/stripe_fixtures/redirect_for_billing_page_downgrade_at_free_trial_end--Customer.retrieve.6.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": null,+ "default_currency": null,+ "default_source": null,+ "delinquent": false,+ "description": "zulip (Zulip Dev)",+ "discount": null,+ "email": "[email protected]",+ "id": "redirect_for_billing_page_downgrade_at_free_trial_end--Customer.create.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "redirect_for_billing_page_downgrade_at_free_trial_end--Customer.create.1.json",+ "id": "redirect_for_billing_page_downgrade_at_free_trial_end--Customer.retrieve.1.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "realm_id": "1",+ "realm_str": "zulip"+ },+ "name": null,+ "next_invoice_sequence": 1,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/redirect_for_billing_page_downgrade_at_free_trial_end--PaymentMethod.create.1.json b/corporate/tests/stripe_fixtures/redirect_for_billing_page_downgrade_at_free_trial_end--PaymentMethod.create.1.jsonindex fbc85dbf909..233a6951a1f 100644--- a/corporate/tests/stripe_fixtures/redirect_for_billing_page_downgrade_at_free_trial_end--PaymentMethod.create.1.json+++ b/corporate/tests/stripe_fixtures/redirect_for_billing_page_downgrade_at_free_trial_end--PaymentMethod.create.1.json@@ -6,7 +6,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -22,8 +22,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.create.1.json b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.create.1.jsonindex 9123cda6691..74dea7fefaa 100644--- a/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.create.1.json+++ b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.create.1.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-95a","discount": null,"email": "[email protected]","id": "redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.create.1.json",@@ -20,7 +20,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-95a9-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.modify.1.json b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.modify.1.jsonindex 970480642ba..b511c821170 100644--- a/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.modify.1.json+++ b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.modify.1.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-95a","discount": null,"email": "[email protected]","id": "redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.create.1.json",@@ -20,7 +20,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-95a9-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.retrieve.1.jsonindex 8a143fcd6e2..dce552c9dc9 100644--- a/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.retrieve.1.json+++ b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.retrieve.1.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-15a","discount": null,"email": "[email protected]","id": "redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.create.1.json",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.retrieve.2.jsonindex 8a143fcd6e2..dce552c9dc9 100644--- a/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.retrieve.2.json+++ b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.retrieve.2.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-15a","discount": null,"email": "[email protected]","id": "redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.create.1.json",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.retrieve.3.jsonindex 8a143fcd6e2..dce552c9dc9 100644--- a/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.retrieve.3.json+++ b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.retrieve.3.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-15a","discount": null,"email": "[email protected]","id": "redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.create.1.json",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.retrieve.4.jsonindex 8a143fcd6e2..dce552c9dc9 100644--- a/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.retrieve.4.json+++ b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.retrieve.4.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-15a","discount": null,"email": "[email protected]","id": "redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.create.1.json",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.retrieve.5.jsonindex 8a143fcd6e2..dce552c9dc9 100644--- a/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.retrieve.5.json+++ b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.retrieve.5.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-15a","discount": null,"email": "[email protected]","id": "redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.create.1.json",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.retrieve.6.json b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.retrieve.6.jsonnew file mode 100644index 00000000000..dce552c9dc9--- /dev/null+++ b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.retrieve.6.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": null,+ "default_currency": null,+ "default_source": null,+ "delinquent": false,+ "description": "zulip.testserver 3383e261-15a",+ "discount": null,+ "email": "[email protected]",+ "id": "redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.create.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.create.1.json",+ "id": "redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.retrieve.1.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "remote_realm_host": "zulip.testserver",+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"+ },+ "name": null,+ "next_invoice_sequence": 1,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Event.list.1.json b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Event.list.1.jsonindex 1cdc23eb90b..35539ac8113 100644--- a/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Event.list.1.json+++ b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Event.list.1.json@@ -12,7 +12,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-95a","discount": null,"email": "[email protected]","id": "redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.create.1.json",@@ -26,7 +26,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-95a9-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--PaymentMethod.create.1.json b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--PaymentMethod.create.1.jsonindex bf4920ae763..9fdfbb18733 100644--- a/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--PaymentMethod.create.1.json+++ b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--PaymentMethod.create.1.json@@ -6,7 +6,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -22,8 +22,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--checkout.Session.create.1.jsonindex f2a54937df6..3aa75d0cd27 100644--- a/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--checkout.Session.create.1.json+++ b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--checkout.Session.create.1.json@@ -9,7 +9,7 @@"status": null},"billing_address_collection": "required",- "cancel_url": "http://selfhosting.testserver/realm/f6d476f5-b66f-45ce-8623-a273ff4d7787/upgrade/?manual_license_management=false&tier=1",+ "cancel_url": "http://selfhosting.testserver/realm/3383e261-95a9-4f36-ae0c-4ecf80fab561/upgrade/?manual_license_management=false&tier=1","client_reference_id": null,"client_secret": null,"consent": null,@@ -73,7 +73,7 @@"status": "open","submit_type": null,"subscription": null,- "success_url": "http://selfhosting.testserver/realm/f6d476f5-b66f-45ce-8623-a273ff4d7787/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",+ "success_url": "http://selfhosting.testserver/realm/3383e261-95a9-4f36-ae0c-4ecf80fab561/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}","total_details": null,"ui_mode": "hosted","url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED"diff --git a/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--checkout.Session.list.1.jsonindex c624ff2cb43..d87b5d1f5ef 100644--- a/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--checkout.Session.list.1.json+++ b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--checkout.Session.list.1.json@@ -11,7 +11,7 @@"status": null},"billing_address_collection": "required",- "cancel_url": "http://selfhosting.testserver/realm/f6d476f5-b66f-45ce-8623-a273ff4d7787/upgrade/?manual_license_management=false&tier=1",+ "cancel_url": "http://selfhosting.testserver/realm/3383e261-95a9-4f36-ae0c-4ecf80fab561/upgrade/?manual_license_management=false&tier=1","client_reference_id": null,"client_secret": null,"consent": null,@@ -75,7 +75,7 @@"status": "open","submit_type": null,"subscription": null,- "success_url": "http://selfhosting.testserver/realm/f6d476f5-b66f-45ce-8623-a273ff4d7787/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",+ "success_url": "http://selfhosting.testserver/realm/3383e261-95a9-4f36-ae0c-4ecf80fab561/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}","total_details": null,"ui_mode": "hosted","url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED"diff --git a/corporate/tests/stripe_fixtures/redirect_for_remote_server_billing_page_downgrade_at_free_trial_end--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/redirect_for_remote_server_billing_page_downgrade_at_free_trial_end--Customer.retrieve.1.jsonindex 04f496cc128..2ee445b1e6c 100644--- a/corporate/tests/stripe_fixtures/redirect_for_remote_server_billing_page_downgrade_at_free_trial_end--Customer.retrieve.1.json+++ b/corporate/tests/stripe_fixtures/redirect_for_remote_server_billing_page_downgrade_at_free_trial_end--Customer.retrieve.1.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/redirect_for_remote_server_billing_page_downgrade_at_free_trial_end--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/redirect_for_remote_server_billing_page_downgrade_at_free_trial_end--Customer.retrieve.2.jsonindex 04f496cc128..2ee445b1e6c 100644--- a/corporate/tests/stripe_fixtures/redirect_for_remote_server_billing_page_downgrade_at_free_trial_end--Customer.retrieve.2.json+++ b/corporate/tests/stripe_fixtures/redirect_for_remote_server_billing_page_downgrade_at_free_trial_end--Customer.retrieve.2.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/redirect_for_remote_server_billing_page_downgrade_at_free_trial_end--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/redirect_for_remote_server_billing_page_downgrade_at_free_trial_end--Customer.retrieve.3.jsonindex 04f496cc128..2ee445b1e6c 100644--- a/corporate/tests/stripe_fixtures/redirect_for_remote_server_billing_page_downgrade_at_free_trial_end--Customer.retrieve.3.json+++ b/corporate/tests/stripe_fixtures/redirect_for_remote_server_billing_page_downgrade_at_free_trial_end--Customer.retrieve.3.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/redirect_for_remote_server_billing_page_downgrade_at_free_trial_end--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/redirect_for_remote_server_billing_page_downgrade_at_free_trial_end--Customer.retrieve.4.jsonindex 04f496cc128..2ee445b1e6c 100644--- a/corporate/tests/stripe_fixtures/redirect_for_remote_server_billing_page_downgrade_at_free_trial_end--Customer.retrieve.4.json+++ b/corporate/tests/stripe_fixtures/redirect_for_remote_server_billing_page_downgrade_at_free_trial_end--Customer.retrieve.4.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/redirect_for_remote_server_billing_page_downgrade_at_free_trial_end--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/redirect_for_remote_server_billing_page_downgrade_at_free_trial_end--Customer.retrieve.5.jsonindex 04f496cc128..2ee445b1e6c 100644--- a/corporate/tests/stripe_fixtures/redirect_for_remote_server_billing_page_downgrade_at_free_trial_end--Customer.retrieve.5.json+++ b/corporate/tests/stripe_fixtures/redirect_for_remote_server_billing_page_downgrade_at_free_trial_end--Customer.retrieve.5.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/redirect_for_remote_server_billing_page_downgrade_at_free_trial_end--Customer.retrieve.6.json b/corporate/tests/stripe_fixtures/redirect_for_remote_server_billing_page_downgrade_at_free_trial_end--Customer.retrieve.6.jsonnew file mode 100644index 00000000000..2ee445b1e6c--- /dev/null+++ b/corporate/tests/stripe_fixtures/redirect_for_remote_server_billing_page_downgrade_at_free_trial_end--Customer.retrieve.6.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": null,+ "default_currency": null,+ "default_source": null,+ "delinquent": false,+ "description": "demo.example.com 6cde5f7a-1f7",+ "discount": null,+ "email": "[email protected]",+ "id": "redirect_for_remote_server_billing_page_downgrade_at_free_trial_end--Customer.create.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "redirect_for_remote_server_billing_page_downgrade_at_free_trial_end--Customer.create.1.json",+ "id": "redirect_for_remote_server_billing_page_downgrade_at_free_trial_end--Customer.retrieve.1.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "remote_server_str": "demo.example.com 6cde5f7a-1f7",+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"+ },+ "name": null,+ "next_invoice_sequence": 1,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/redirect_for_remote_server_billing_page_downgrade_at_free_trial_end--PaymentMethod.create.1.json b/corporate/tests/stripe_fixtures/redirect_for_remote_server_billing_page_downgrade_at_free_trial_end--PaymentMethod.create.1.jsonindex 6e4ffeb170b..5aa15aca6a5 100644--- a/corporate/tests/stripe_fixtures/redirect_for_remote_server_billing_page_downgrade_at_free_trial_end--PaymentMethod.create.1.json+++ b/corporate/tests/stripe_fixtures/redirect_for_remote_server_billing_page_downgrade_at_free_trial_end--PaymentMethod.create.1.json@@ -6,7 +6,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -22,8 +22,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/replace_payment_method--Customer.retrieve.1.jsonindex b4efeb86c65..5614fcf1e9d 100644--- a/corporate/tests/stripe_fixtures/replace_payment_method--Customer.retrieve.1.json+++ b/corporate/tests/stripe_fixtures/replace_payment_method--Customer.retrieve.1.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/replace_payment_method--Customer.retrieve.2.jsonindex b4efeb86c65..5614fcf1e9d 100644--- a/corporate/tests/stripe_fixtures/replace_payment_method--Customer.retrieve.2.json+++ b/corporate/tests/stripe_fixtures/replace_payment_method--Customer.retrieve.2.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/replace_payment_method--Customer.retrieve.3.jsonindex b4efeb86c65..5614fcf1e9d 100644--- a/corporate/tests/stripe_fixtures/replace_payment_method--Customer.retrieve.3.json+++ b/corporate/tests/stripe_fixtures/replace_payment_method--Customer.retrieve.3.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/replace_payment_method--Customer.retrieve.4.jsonindex b4efeb86c65..5614fcf1e9d 100644--- a/corporate/tests/stripe_fixtures/replace_payment_method--Customer.retrieve.4.json+++ b/corporate/tests/stripe_fixtures/replace_payment_method--Customer.retrieve.4.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/replace_payment_method--Customer.retrieve.5.jsonindex 1c7c0e538a9..5614fcf1e9d 100644--- a/corporate/tests/stripe_fixtures/replace_payment_method--Customer.retrieve.5.json+++ b/corporate/tests/stripe_fixtures/replace_payment_method--Customer.retrieve.5.json@@ -2,10 +2,10 @@"address": null,"balance": 0,"created": 1000000000,- "currency": "usd",- "default_currency": "usd",+ "currency": null,+ "default_currency": null,"default_source": null,- "delinquent": true,+ "delinquent": false,"description": "zulip (Zulip Dev)","discount": null,"email": "[email protected]",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,12 +37,12 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,- "last4": "0341",+ "last4": "4242","networks": {"available": ["visa"@@ -56,7 +56,7 @@},"created": 1000000000,"customer": "replace_payment_method--Customer.create.1.json",- "id": "replace_payment_method--Customer.retrieve.5.json",+ "id": "replace_payment_method--Customer.retrieve.1.json","livemode": false,"metadata": {},"object": "payment_method",@@ -71,7 +71,7 @@"realm_str": "zulip"},"name": null,- "next_invoice_sequence": 3,+ "next_invoice_sequence": 1,"object": "customer","phone": null,"preferred_locales": [],diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--Customer.retrieve.6.json b/corporate/tests/stripe_fixtures/replace_payment_method--Customer.retrieve.6.jsonindex 41896c2b140..d82c6688bf0 100644--- a/corporate/tests/stripe_fixtures/replace_payment_method--Customer.retrieve.6.json+++ b/corporate/tests/stripe_fixtures/replace_payment_method--Customer.retrieve.6.json@@ -13,7 +13,55 @@"invoice_prefix": "NORMALIZED","invoice_settings": {"custom_fields": null,- "default_payment_method": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "0341",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "replace_payment_method--Customer.create.1.json",+ "id": "replace_payment_method--Customer.retrieve.6.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },"footer": null,"rendering_options": null},diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--Customer.retrieve.7.json b/corporate/tests/stripe_fixtures/replace_payment_method--Customer.retrieve.7.jsonindex 8dcdb6ca7eb..41896c2b140 100644--- a/corporate/tests/stripe_fixtures/replace_payment_method--Customer.retrieve.7.json+++ b/corporate/tests/stripe_fixtures/replace_payment_method--Customer.retrieve.7.json@@ -5,7 +5,7 @@"currency": "usd","default_currency": "usd","default_source": null,- "delinquent": false,+ "delinquent": true,"description": "zulip (Zulip Dev)","discount": null,"email": "[email protected]",@@ -13,55 +13,7 @@"invoice_prefix": "NORMALIZED","invoice_settings": {"custom_fields": null,- "default_payment_method": {- "allow_redisplay": "unspecified",- "billing_details": {- "address": {- "city": "San Francisco",- "country": "US",- "line1": "123 Main St",- "line2": null,- "postal_code": "94105",- "state": "CA"- },- "email": null,- "name": "John Doe",- "phone": null- },- "card": {- "brand": "mastercard",- "checks": {- "address_line1_check": "pass",- "address_postal_code_check": "pass",- "cvc_check": "pass"- },- "country": "US",- "display_brand": "mastercard",- "exp_month": 8,- "exp_year": 2025,- "fingerprint": "NORMALIZED",- "funding": "credit",- "generated_from": null,- "last4": "4444",- "networks": {- "available": [- "mastercard"- ],- "preferred": null- },- "three_d_secure_usage": {- "supported": true- },- "wallet": null- },- "created": 1000000000,- "customer": "replace_payment_method--Customer.create.1.json",- "id": "replace_payment_method--Customer.retrieve.7.json",- "livemode": false,- "metadata": {},- "object": "payment_method",- "type": "card"- },+ "default_payment_method": null,"footer": null,"rendering_options": null},diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--Customer.retrieve.8.json b/corporate/tests/stripe_fixtures/replace_payment_method--Customer.retrieve.8.jsonnew file mode 100644index 00000000000..3116f9753d0--- /dev/null+++ b/corporate/tests/stripe_fixtures/replace_payment_method--Customer.retrieve.8.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": "usd",+ "default_currency": "usd",+ "default_source": null,+ "delinquent": false,+ "description": "zulip (Zulip Dev)",+ "discount": null,+ "email": "[email protected]",+ "id": "replace_payment_method--Customer.create.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "mastercard",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "mastercard",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4444",+ "networks": {+ "available": [+ "mastercard"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "replace_payment_method--Customer.create.1.json",+ "id": "replace_payment_method--Customer.retrieve.8.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "realm_id": "1",+ "realm_str": "zulip"+ },+ "name": null,+ "next_invoice_sequence": 3,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--Event.list.2.json b/corporate/tests/stripe_fixtures/replace_payment_method--Event.list.2.jsonindex 84075a0bdad..15072b7a66b 100644--- a/corporate/tests/stripe_fixtures/replace_payment_method--Event.list.2.json+++ b/corporate/tests/stripe_fixtures/replace_payment_method--Event.list.2.json@@ -33,7 +33,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -82,8 +82,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -111,6 +111,7 @@},"type": "card"},+ "radar_options": {},"receipt_email": "[email protected]","receipt_number": null,"receipt_url": "https://pay.stripe.com/receipts/invoices/NORMALIZED?s=ap",@@ -209,7 +210,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -258,8 +259,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -287,6 +288,7 @@},"type": "card"},+ "radar_options": {},"receipt_email": "[email protected]","receipt_number": null,"receipt_url": "https://pay.stripe.com/receipts/invoices/NORMALIZED?s=ap",@@ -392,7 +394,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -466,7 +468,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -493,7 +497,7 @@"total_excluding_tax": 48000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null}},"id": "replace_payment_method--Event.list.2.json",@@ -579,7 +583,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -653,7 +657,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -680,7 +686,7 @@"total_excluding_tax": 48000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null},"previous_attributes": {"effective_at": null,@@ -860,7 +866,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -934,7 +940,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -992,7 +1000,7 @@"metadata": {},"object": "invoiceitem","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--Event.list.3.json b/corporate/tests/stripe_fixtures/replace_payment_method--Event.list.3.jsonindex 326af5e7e85..a141c13ac3e 100644--- a/corporate/tests/stripe_fixtures/replace_payment_method--Event.list.3.json+++ b/corporate/tests/stripe_fixtures/replace_payment_method--Event.list.3.json@@ -147,7 +147,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -180,194 +182,7 @@"id": "replace_payment_method--Event.list.3.json","livemode": false,"object": "event",- "pending_webhooks": 0,- "request": {- "id": "replace_payment_method--Event.list.2.json",- "idempotency_key": "00000000-0000-0000-0000-000000000000"- },- "type": "invoice.payment_succeeded"- },- {- "api_version": "2020-08-27",- "created": 1000000000,- "data": {- "object": {- "account_country": "US",- "account_name": "Kandra Labs, Inc.",- "account_tax_ids": null,- "amount_due": 48000,- "amount_paid": 48000,- "amount_remaining": 0,- "amount_shipping": 0,- "application": null,- "application_fee_amount": null,- "attempt_count": 1,- "attempted": true,- "auto_advance": false,- "automatic_tax": {- "enabled": false,- "liability": null,- "status": null- },- "automatically_finalizes_at": null,- "billing_reason": "manual",- "charge": "ch_NORMALIZED",- "collection_method": "charge_automatically",- "created": 1000000000,- "currency": "usd",- "custom_fields": null,- "customer": "cus_NORMALIZED",- "customer_address": null,- "customer_email": "[email protected]",- "customer_name": null,- "customer_phone": null,- "customer_shipping": null,- "customer_tax_exempt": "none",- "customer_tax_ids": [],- "default_payment_method": null,- "default_source": null,- "default_tax_rates": [],- "description": null,- "discount": null,- "discounts": [],- "due_date": null,- "effective_at": 1000000000,- "ending_balance": 0,- "footer": null,- "from_invoice": null,- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",- "id": "replace_payment_method--Event.list.2.json",- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",- "issuer": {- "type": "self"- },- "last_finalization_error": null,- "latest_revision": null,- "lines": {- "data": [- {- "amount": 48000,- "amount_excluding_tax": 48000,- "currency": "usd",- "description": "Zulip Cloud Standard",- "discount_amounts": [],- "discountable": false,- "discounts": [],- "id": "replace_payment_method--Event.list.2.json",- "invoice": "replace_payment_method--Event.list.2.json",- "invoice_item": "ii_NORMALIZED",- "livemode": false,- "metadata": {},- "object": "line_item",- "period": {- "end": 1357095845,- "start": 1325473445- },- "plan": null,- "price": {- "active": false,- "billing_scheme": "per_unit",- "created": 1000000000,- "currency": "usd",- "custom_unit_amount": null,- "id": "replace_payment_method--Event.list.2.json",- "livemode": false,- "lookup_key": null,- "metadata": {},- "nickname": null,- "object": "price",- "product": "prod_NORMALIZED",- "recurring": null,- "tax_behavior": "unspecified",- "tiers_mode": null,- "transform_quantity": null,- "type": "one_time",- "unit_amount": 8000,- "unit_amount_decimal": "8000"- },- "proration": false,- "proration_details": {- "credited_items": null- },- "quantity": 6,- "subscription": null,- "tax_amounts": [],- "tax_rates": [],- "type": "invoiceitem",- "unit_amount_excluding_tax": "8000"- }- ],- "has_more": false,- "object": "list",- "total_count": 1,- "url": "/v1/invoices/replace_payment_method--Event.list.2.json/lines"- },- "livemode": false,- "metadata": {- "billing_schedule": "1",- "current_plan_id": "None",- "license_management": "automatic",- "licenses": "6",- "on_free_trial": "False",- "plan_tier": "1",- "user_id": "10"- },- "next_payment_attempt": null,- "number": "NORMALIZED",- "object": "invoice",- "on_behalf_of": null,- "paid": true,- "paid_out_of_band": false,- "payment_intent": "pi_NORMALIZED",- "payment_settings": {- "default_mandate": null,- "payment_method_options": null,- "payment_method_types": null- },- "period_end": 1000000000,- "period_start": 1000000000,- "post_payment_credit_notes_amount": 0,- "pre_payment_credit_notes_amount": 0,- "quote": null,- "receipt_number": null,- "rendering": {- "amount_tax_display": null,- "pdf": {- "page_size": "letter"- }- },- "rendering_options": null,- "shipping_cost": null,- "shipping_details": null,- "starting_balance": 0,- "statement_descriptor": "Zulip Cloud Standard",- "status": "paid",- "status_transitions": {- "finalized_at": 1000000000,- "marked_uncollectible_at": null,- "paid_at": 1000000000,- "voided_at": null- },- "subscription": null,- "subscription_details": {- "metadata": null- },- "subtotal": 48000,- "subtotal_excluding_tax": 48000,- "tax": null,- "test_clock": null,- "total": 48000,- "total_discount_amounts": [],- "total_excluding_tax": 48000,- "total_tax_amounts": [],- "transfer_data": null,- "webhooks_delivered_at": 1000000000- }- },- "id": "replace_payment_method--Event.list.3.json",- "livemode": false,- "object": "event",- "pending_webhooks": 0,+ "pending_webhooks": 2,"request": {"id": "replace_payment_method--Event.list.2.json","idempotency_key": "00000000-0000-0000-0000-000000000000"@@ -521,7 +336,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--Event.list.4.json b/corporate/tests/stripe_fixtures/replace_payment_method--Event.list.4.jsonindex 6d922067afe..df94781285a 100644--- a/corporate/tests/stripe_fixtures/replace_payment_method--Event.list.4.json+++ b/corporate/tests/stripe_fixtures/replace_payment_method--Event.list.4.json@@ -1,5 +1,195 @@{- "data": [],+ "data": [+ {+ "api_version": "2020-08-27",+ "created": 1000000000,+ "data": {+ "object": {+ "account_country": "US",+ "account_name": "Kandra Labs, Inc.",+ "account_tax_ids": null,+ "amount_due": 48000,+ "amount_paid": 48000,+ "amount_remaining": 0,+ "amount_shipping": 0,+ "application": null,+ "application_fee_amount": null,+ "attempt_count": 1,+ "attempted": true,+ "auto_advance": false,+ "automatic_tax": {+ "enabled": false,+ "liability": null,+ "status": null+ },+ "automatically_finalizes_at": null,+ "billing_reason": "manual",+ "charge": "ch_NORMALIZED",+ "collection_method": "charge_automatically",+ "created": 1000000000,+ "currency": "usd",+ "custom_fields": null,+ "customer": "cus_NORMALIZED",+ "customer_address": null,+ "customer_email": "[email protected]",+ "customer_name": null,+ "customer_phone": null,+ "customer_shipping": null,+ "customer_tax_exempt": "none",+ "customer_tax_ids": [],+ "default_payment_method": null,+ "default_source": null,+ "default_tax_rates": [],+ "description": null,+ "discount": null,+ "discounts": [],+ "due_date": null,+ "effective_at": 1000000000,+ "ending_balance": 0,+ "footer": null,+ "from_invoice": null,+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",+ "id": "replace_payment_method--Event.list.2.json",+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",+ "issuer": {+ "type": "self"+ },+ "last_finalization_error": null,+ "latest_revision": null,+ "lines": {+ "data": [+ {+ "amount": 48000,+ "amount_excluding_tax": 48000,+ "currency": "usd",+ "description": "Zulip Cloud Standard",+ "discount_amounts": [],+ "discountable": false,+ "discounts": [],+ "id": "replace_payment_method--Event.list.2.json",+ "invoice": "replace_payment_method--Event.list.2.json",+ "invoice_item": "ii_NORMALIZED",+ "livemode": false,+ "metadata": {},+ "object": "line_item",+ "period": {+ "end": 1357095845,+ "start": 1325473445+ },+ "plan": null,+ "price": {+ "active": false,+ "billing_scheme": "per_unit",+ "created": 1000000000,+ "currency": "usd",+ "custom_unit_amount": null,+ "id": "replace_payment_method--Event.list.2.json",+ "livemode": false,+ "lookup_key": null,+ "metadata": {},+ "nickname": null,+ "object": "price",+ "product": "prod_NORMALIZED",+ "recurring": null,+ "tax_behavior": "unspecified",+ "tiers_mode": null,+ "transform_quantity": null,+ "type": "one_time",+ "unit_amount": 8000,+ "unit_amount_decimal": "8000"+ },+ "proration": false,+ "proration_details": {+ "credited_items": null+ },+ "quantity": 6,+ "subscription": null,+ "tax_amounts": [],+ "tax_rates": [],+ "type": "invoiceitem",+ "unit_amount_excluding_tax": "8000"+ }+ ],+ "has_more": false,+ "object": "list",+ "total_count": 1,+ "url": "/v1/invoices/replace_payment_method--Event.list.2.json/lines"+ },+ "livemode": false,+ "metadata": {+ "billing_schedule": "1",+ "current_plan_id": "None",+ "license_management": "automatic",+ "licenses": "6",+ "on_free_trial": "False",+ "plan_tier": "1",+ "user_id": "10"+ },+ "next_payment_attempt": null,+ "number": "NORMALIZED",+ "object": "invoice",+ "on_behalf_of": null,+ "paid": true,+ "paid_out_of_band": false,+ "payment_intent": "pi_NORMALIZED",+ "payment_settings": {+ "default_mandate": null,+ "payment_method_options": null,+ "payment_method_types": null+ },+ "period_end": 1000000000,+ "period_start": 1000000000,+ "post_payment_credit_notes_amount": 0,+ "pre_payment_credit_notes_amount": 0,+ "quote": null,+ "receipt_number": null,+ "rendering": {+ "amount_tax_display": null,+ "pdf": {+ "page_size": "letter"+ },+ "template": null,+ "template_version": null+ },+ "rendering_options": null,+ "shipping_cost": null,+ "shipping_details": null,+ "starting_balance": 0,+ "statement_descriptor": "Zulip Cloud Standard",+ "status": "paid",+ "status_transitions": {+ "finalized_at": 1000000000,+ "marked_uncollectible_at": null,+ "paid_at": 1000000000,+ "voided_at": null+ },+ "subscription": null,+ "subscription_details": {+ "metadata": null+ },+ "subtotal": 48000,+ "subtotal_excluding_tax": 48000,+ "tax": null,+ "test_clock": null,+ "total": 48000,+ "total_discount_amounts": [],+ "total_excluding_tax": 48000,+ "total_tax_amounts": [],+ "transfer_data": null,+ "webhooks_delivered_at": 1000000000+ }+ },+ "id": "replace_payment_method--Event.list.4.json",+ "livemode": false,+ "object": "event",+ "pending_webhooks": 0,+ "request": {+ "id": "replace_payment_method--Event.list.2.json",+ "idempotency_key": "00000000-0000-0000-0000-000000000000"+ },+ "type": "invoice.payment_succeeded"+ }+ ],"has_more": false,"object": "list","url": "/v1/events"diff --git a/corporate/tests/stripe_fixtures/invoice_plan--Event.list.5.json b/corporate/tests/stripe_fixtures/replace_payment_method--Event.list.5.jsonsimilarity index 100%rename from corporate/tests/stripe_fixtures/invoice_plan--Event.list.5.jsonrename to corporate/tests/stripe_fixtures/replace_payment_method--Event.list.5.jsondiff --git a/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.create.1.json b/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.create.1.jsonindex 909a014d01a..1bc72b25652 100644--- a/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.create.1.json+++ b/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.create.1.json@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.create.2.json b/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.create.2.jsonindex 9b54942f20f..632e7f4489f 100644--- a/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.create.2.json+++ b/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.create.2.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.finalize_invoice.1.jsonindex 07de81b82fe..7bb3ef64d18 100644--- a/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.finalize_invoice.1.json+++ b/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.finalize_invoice.1.json@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -168,5 +170,5 @@"total_excluding_tax": 48000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null}diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.finalize_invoice.2.json b/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.finalize_invoice.2.jsonindex 6dac1eca7ae..4a688e96795 100644--- a/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.finalize_invoice.2.json+++ b/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.finalize_invoice.2.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.list.2.json b/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.list.2.jsonindex 7e75622690b..54a193f4629 100644--- a/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.list.2.json+++ b/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.list.2.json@@ -135,7 +135,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.list.3.json b/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.list.3.jsonindex 66d0da6435d..e3bb28118ac 100644--- a/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.list.3.json+++ b/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.list.3.json@@ -135,7 +135,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.list.4.json b/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.list.4.jsonindex ae1c0adf762..09852851029 100644--- a/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.list.4.json+++ b/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.list.4.json@@ -135,7 +135,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -307,7 +309,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.pay.1.jsonindex 5467d972f12..7cd301e112c 100644--- a/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.pay.1.json+++ b/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.pay.1.json@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.pay.2.json b/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.pay.2.jsonindex 3d1b81de9ba..d77839513ff 100644--- a/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.pay.2.json+++ b/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.pay.2.json@@ -37,7 +37,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -74,7 +74,7 @@},"paid": false,"payment_intent": "replace_payment_method--Invoice.pay.2.json",- "payment_method": "replace_payment_method--Customer.retrieve.5.json",+ "payment_method": "replace_payment_method--Customer.retrieve.6.json","payment_method_details": {"card": {"amount_authorized": null,@@ -86,8 +86,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -158,7 +158,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -174,8 +174,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -193,7 +193,7 @@},"created": 1000000000,"customer": "cus_NORMALIZED",- "id": "replace_payment_method--Customer.retrieve.5.json",+ "id": "replace_payment_method--Customer.retrieve.6.json","livemode": false,"metadata": {},"object": "payment_method",@@ -242,7 +242,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -258,8 +258,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -277,13 +277,13 @@},"created": 1000000000,"customer": "cus_NORMALIZED",- "id": "replace_payment_method--Customer.retrieve.5.json",+ "id": "replace_payment_method--Customer.retrieve.6.json","livemode": false,"metadata": {},"object": "payment_method","type": "card"},- "request_log_url": "https://dashboard.stripe.com/test/logs/req_NORMALIZED?t=1724918953",+ "request_log_url": "https://dashboard.stripe.com/test/logs/req_NORMALIZED?t=1726724750","setup_intent": null,"source": null,"type": "card_error"@@ -296,12 +296,12 @@"Access-Control-Max-Age": "300","Cache-Control": "no-cache, no-store","Connection": "keep-alive",- "Content-Length": "9355",+ "Content-Length": "1354","Content-Security-Policy": "report-uri https://q.stripe.com/csp-report?p=v1%2Finvoices%2F%3Ainvoice%2Fpay; block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self'","Content-Type": "application/json","Cross-Origin-Opener-Policy-Report-Only": "same-origin; report-to=\"coop\"","Date": "NORMALIZED DATETIME",- "Idempotency-Key": "03527859-0f64-4b80-b665-df3d284e16bb",+ "Idempotency-Key": "8a7e8b30-0a42-401b-844a-5a858f5af1a2","Original-Request": "req_NORMALIZED","Report-To": "{\"group\": \"coop\",\"max_age\": 8640,\"endpoints\": [{\"url\": \"https://q.stripe.com/coop-report?s=billing-api-srv\"}],\"include_subdomains\": true}","Reporting-Endpoints": "coop=\"https://q.stripe.com/coop-report?s=billing-api-srv\"",@@ -315,7 +315,7 @@"X-Stripe-Priority-Routing-Enabled": "true","X-Stripe-Routing-Context-Priority-Tier": "api-testmode"},- "http_body": "{\"error\": {\"charge\": \"replace_payment_method--Invoice.pay.2.json\", \"code\": \"card_declined\", \"decline_code\": \"generic_decline\", \"doc_url\": \"https://stripe.com/docs/error-codes/card-declined\", \"message\": \"Your card was declined.\", \"payment_intent\": {\"id\": \"replace_payment_method--Invoice.pay.2.json\", \"object\": \"payment_intent\", \"amount\": 5000, \"amount_capturable\": 0, \"amount_details\": {\"tip\": {}}, \"amount_received\": 0, \"application\": null, \"application_fee_amount\": null, \"automatic_payment_methods\": null, \"canceled_at\": null, \"cancellation_reason\": null, \"capture_method\": \"automatic\", \"charges\": {\"object\": \"list\", \"data\": [{\"id\": \"replace_payment_method--Invoice.pay.2.json\", \"object\": \"charge\", \"amount\": 5000, \"amount_captured\": 0, \"amount_refunded\": 0, \"application\": null, \"application_fee\": null, \"application_fee_amount\": null, \"balance_transaction\": null, \"billing_details\": {\"address\": {\"city\": \"San Francisco\", \"country\": \"US\", \"line1\": \"123 Main St\", \"line2\": null, \"postal_code\": \"94105\", \"state\": \"CA\"}, \"email\": null, \"name\": \"John Doe\", \"phone\": null}, \"calculated_statement_descriptor\": \"ZULIP\", \"captured\": false, \"created\": 1000000000, \"currency\": \"usd\", \"customer\": \"cus_NORMALIZED\", \"description\": \"Payment for Invoice\", \"destination\": null, \"dispute\": null, \"disputed\": false, \"failure_balance_transaction\": null, \"failure_code\": \"card_declined\", \"failure_message\": \"Your card was declined.\", \"fraud_details\": {}, \"invoice\": \"in_NORMALIZED\", \"livemode\": false, \"metadata\": {}, \"on_behalf_of\": null, \"order\": null, \"outcome\": {\"network_status\": \"declined_by_network\", \"reason\": \"generic_decline\", \"risk_level\": \"normal\", \"risk_score\": 50, \"seller_message\": \"The bank did not return any further details with this decline.\", \"type\": \"issuer_declined\"}, \"paid\": false, \"payment_intent\": \"replace_payment_method--Invoice.pay.2.json\", \"payment_method\": \"replace_payment_method--Customer.retrieve.5.json\", \"payment_method_details\": {\"card\": {\"amount_authorized\": null, \"authorization_code\": null, \"brand\": \"visa\", \"checks\": {\"address_line1_check\": \"pass\", \"address_postal_code_check\": \"pass\", \"cvc_check\": \"pass\"}, \"country\": \"US\", \"exp_month\": 8, \"exp_year\": 2025, \"extended_authorization\": {\"status\": \"disabled\"}, \"fingerprint\": \"NORMALIZED\", \"funding\": \"credit\", \"incremental_authorization\": {\"status\": \"unavailable\"}, \"installments\": null, \"last4\": \"0341\", \"mandate\": null, \"multicapture\": {\"status\": \"unavailable\"}, \"network\": \"visa\", \"network_token\": {\"used\": false}, \"overcapture\": {\"maximum_amount_capturable\": 5000, \"status\": \"unavailable\"}, \"three_d_secure\": null, \"wallet\": null}, \"type\": \"card\"}, \"receipt_email\": \"[email protected]\", \"receipt_number\": null, \"receipt_url\": null, \"refunded\": false, \"refunds\": {\"object\": \"list\", \"data\": [], \"has_more\": false, \"total_count\": 0, \"url\": \"/v1/charges/replace_payment_method--Invoice.pay.2.json/refunds\"}, \"review\": null, \"shipping\": null, \"source\": null, \"source_transfer\": null, \"statement_descriptor\": null, \"statement_descriptor_suffix\": null, \"status\": \"failed\", \"transfer_data\": null, \"transfer_group\": null}], \"has_more\": false, \"total_count\": 1, \"url\": \"/v1/charges?payment_intent=replace_payment_method--Invoice.pay.2.json\"}, \"client_secret\": \"NORMALIZED\", \"confirmation_method\": \"automatic\", \"created\": 1000000000, \"currency\": \"usd\", \"customer\": \"cus_NORMALIZED\", \"description\": \"Payment for Invoice\", \"invoice\": \"in_NORMALIZED\", \"last_payment_error\": {\"charge\": \"replace_payment_method--Invoice.pay.2.json\", \"code\": \"card_declined\", \"decline_code\": \"generic_decline\", \"doc_url\": \"https://stripe.com/docs/error-codes/card-declined\", \"message\": \"Your card was declined.\", \"payment_method\": {\"id\": \"replace_payment_method--Customer.retrieve.5.json\", \"object\": \"payment_method\", \"allow_redisplay\": \"unspecified\", \"billing_details\": {\"address\": {\"city\": \"San Francisco\", \"country\": \"US\", \"line1\": \"123 Main St\", \"line2\": null, \"postal_code\": \"94105\", \"state\": \"CA\"}, \"email\": null, \"name\": \"John Doe\", \"phone\": null}, \"card\": {\"brand\": \"visa\", \"checks\": {\"address_line1_check\": \"pass\", \"address_postal_code_check\": \"pass\", \"cvc_check\": \"pass\"}, \"country\": \"US\", \"display_brand\": \"visa\", \"exp_month\": 8, \"exp_year\": 2025, \"fingerprint\": \"NORMALIZED\", \"funding\": \"credit\", \"generated_from\": null, \"last4\": \"0341\", \"networks\": {\"available\": [\"visa\"], \"preferred\": null}, \"three_d_secure_usage\": {\"supported\": true}, \"wallet\": null}, \"created\": 1000000000, \"customer\": \"cus_NORMALIZED\", \"livemode\": false, \"metadata\": {}, \"type\": \"card\"}, \"type\": \"card_error\"}, \"latest_charge\": \"replace_payment_method--Invoice.pay.2.json\", \"livemode\": false, \"metadata\": {}, \"next_action\": null, \"on_behalf_of\": null, \"payment_method\": null, \"payment_method_configuration_details\": null, \"payment_method_options\": {\"card\": {\"installments\": null, \"mandate_options\": null, \"network\": null, \"request_three_d_secure\": \"automatic\"}, \"cashapp\": {}}, \"payment_method_types\": [\"card\", \"cashapp\"], \"processing\": null, \"receipt_email\": \"[email protected]\", \"review\": null, \"setup_future_usage\": null, \"shipping\": null, \"source\": null, \"statement_descriptor\": null, \"statement_descriptor_suffix\": null, \"status\": \"requires_payment_method\", \"transfer_data\": null, \"transfer_group\": null}, \"payment_method\": {\"id\": \"replace_payment_method--Customer.retrieve.5.json\", \"object\": \"payment_method\", \"allow_redisplay\": \"unspecified\", \"billing_details\": {\"address\": {\"city\": \"San Francisco\", \"country\": \"US\", \"line1\": \"123 Main St\", \"line2\": null, \"postal_code\": \"94105\", \"state\": \"CA\"}, \"email\": null, \"name\": \"John Doe\", \"phone\": null}, \"card\": {\"brand\": \"visa\", \"checks\": {\"address_line1_check\": \"pass\", \"address_postal_code_check\": \"pass\", \"cvc_check\": \"pass\"}, \"country\": \"US\", \"display_brand\": \"visa\", \"exp_month\": 8, \"exp_year\": 2025, \"fingerprint\": \"NORMALIZED\", \"funding\": \"credit\", \"generated_from\": null, \"last4\": \"0341\", \"networks\": {\"available\": [\"visa\"], \"preferred\": null}, \"three_d_secure_usage\": {\"supported\": true}, \"wallet\": null}, \"created\": 1000000000, \"customer\": \"cus_NORMALIZED\", \"livemode\": false, \"metadata\": {}, \"type\": \"card\"}, \"request_log_url\": \"https://dashboard.stripe.com/test/logs/req_NORMALIZED?t=1724918953\", \"type\": \"card_error\"}}",+ "http_body": "{\"error\": {\"charge\": \"replace_payment_method--Invoice.pay.2.json\", \"code\": \"card_declined\", \"decline_code\": \"generic_decline\", \"doc_url\": \"https://stripe.com/docs/error-codes/card-declined\", \"message\": \"Your card was declined.\", \"payment_intent\": {\"id\": \"replace_payment_method--Invoice.pay.2.json\", \"object\": \"payment_intent\", \"amount\": 5000, \"amount_capturable\": 0, \"amount_details\": {\"tip\": {}}, \"amount_received\": 0, \"application\": null, \"application_fee_amount\": null, \"automatic_payment_methods\": null, \"canceled_at\": null, \"cancellation_reason\": null, \"capture_method\": \"automatic\", \"charges\": {\"object\": \"list\", \"data\": [{\"id\": \"replace_payment_method--Invoice.pay.2.json\", \"object\": \"charge\", \"amount\": 5000, \"amount_captured\": 0, \"amount_refunded\": 0, \"application\": null, \"application_fee\": null, \"application_fee_amount\": null, \"balance_transaction\": null, \"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}, \"calculated_statement_descriptor\": \"ZULIP\", \"captured\": false, \"created\": 1000000000, \"currency\": \"usd\", \"customer\": \"cus_NORMALIZED\", \"description\": \"Payment for Invoice\", \"destination\": null, \"dispute\": null, \"disputed\": false, \"failure_balance_transaction\": null, \"failure_code\": \"card_declined\", \"failure_message\": \"Your card was declined.\", \"fraud_details\": {}, \"invoice\": \"in_NORMALIZED\", \"livemode\": false, \"metadata\": {}, \"on_behalf_of\": null, \"order\": null, \"outcome\": {\"network_status\": \"declined_by_network\", \"reason\": \"generic_decline\", \"risk_level\": \"normal\", \"risk_score\": 7, \"seller_message\": \"The bank did not return any further details with this decline.\", \"type\": \"issuer_declined\"}, \"paid\": false, \"payment_intent\": \"replace_payment_method--Invoice.pay.2.json\", \"payment_method\": \"replace_payment_method--Customer.retrieve.6.json\", \"payment_method_details\": {\"card\": {\"amount_authorized\": null, \"authorization_code\": null, \"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\": \"0341\", \"mandate\": null, \"multicapture\": {\"status\": \"unavailable\"}, \"network\": \"visa\", \"network_token\": {\"used\": false}, \"overcapture\": {\"maximum_amount_capturable\": 5000, \"status\": \"unavailable\"}, \"three_d_secure\": null, \"wallet\": null}, \"type\": \"card\"}, \"receipt_email\": \"[email protected]\", \"receipt_number\": null, \"receipt_url\": null, \"refunded\": false, \"refunds\": {\"object\": \"list\", \"data\": [], \"has_more\": false, \"total_count\": 0, \"url\": \"/v1/charges/replace_payment_method--Invoice.pay.2.json/refunds\"}, \"review\": null, \"shipping\": null, \"source\": null, \"source_transfer\": null, \"statement_descriptor\": null, \"statement_descriptor_suffix\": null, \"status\": \"failed\", \"transfer_data\": null, \"transfer_group\": null}], \"has_more\": false, \"total_count\": 1, \"url\": \"/v1/charges?payment_intent=replace_payment_method--Invoice.pay.2.json\"}, \"client_secret\": \"NORMALIZED\", \"confirmation_method\": \"automatic\", \"created\": 1000000000, \"currency\": \"usd\", \"customer\": \"cus_NORMALIZED\", \"description\": \"Payment for Invoice\", \"invoice\": \"in_NORMALIZED\", \"last_payment_error\": {\"charge\": \"replace_payment_method--Invoice.pay.2.json\", \"code\": \"card_declined\", \"decline_code\": \"generic_decline\", \"doc_url\": \"https://stripe.com/docs/error-codes/card-declined\", \"message\": \"Your card was declined.\", \"payment_method\": {\"id\": \"replace_payment_method--Customer.retrieve.6.json\", \"object\": \"payment_method\", \"allow_redisplay\": \"unspecified\", \"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}, \"card\": {\"brand\": \"visa\", \"checks\": {\"address_line1_check\": \"pass\", \"address_postal_code_check\": \"pass\", \"cvc_check\": \"pass\"}, \"country\": \"US\", \"display_brand\": \"visa\", \"exp_month\": 1, \"exp_year\": 9999, \"fingerprint\": \"NORMALIZED\", \"funding\": \"credit\", \"generated_from\": null, \"last4\": \"0341\", \"networks\": {\"available\": [\"visa\"], \"preferred\": null}, \"three_d_secure_usage\": {\"supported\": true}, \"wallet\": null}, \"created\": 1000000000, \"customer\": \"cus_NORMALIZED\", \"livemode\": false, \"metadata\": {}, \"type\": \"card\"}, \"type\": \"card_error\"}, \"latest_charge\": \"replace_payment_method--Invoice.pay.2.json\", \"livemode\": false, \"metadata\": {}, \"next_action\": null, \"on_behalf_of\": null, \"payment_method\": null, \"payment_method_configuration_details\": null, \"payment_method_options\": {\"card\": {\"installments\": null, \"mandate_options\": null, \"network\": null, \"request_three_d_secure\": \"automatic\"}, \"cashapp\": {}}, \"payment_method_types\": [\"card\", \"cashapp\"], \"processing\": null, \"receipt_email\": \"[email protected]\", \"review\": null, \"setup_future_usage\": null, \"shipping\": null, \"source\": null, \"statement_descriptor\": null, \"statement_descriptor_suffix\": null, \"status\": \"requires_payment_method\", \"transfer_data\": null, \"transfer_group\": null}, \"payment_method\": {\"id\": \"replace_payment_method--Customer.retrieve.6.json\", \"object\": \"payment_method\", \"allow_redisplay\": \"unspecified\", \"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}, \"card\": {\"brand\": \"visa\", \"checks\": {\"address_line1_check\": \"pass\", \"address_postal_code_check\": \"pass\", \"cvc_check\": \"pass\"}, \"country\": \"US\", \"display_brand\": \"visa\", \"exp_month\": 1, \"exp_year\": 9999, \"fingerprint\": \"NORMALIZED\", \"funding\": \"credit\", \"generated_from\": null, \"last4\": \"0341\", \"networks\": {\"available\": [\"visa\"], \"preferred\": null}, \"three_d_secure_usage\": {\"supported\": true}, \"wallet\": null}, \"created\": 1000000000, \"customer\": \"cus_NORMALIZED\", \"livemode\": false, \"metadata\": {}, \"type\": \"card\"}, \"request_log_url\": \"https://dashboard.stripe.com/test/logs/req_NORMALIZED?t=1726724750\", \"type\": \"card_error\"}}","http_status": 402,"json_body": {"error": {@@ -353,7 +353,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -390,7 +390,7 @@},"paid": false,"payment_intent": "replace_payment_method--Invoice.pay.2.json",- "payment_method": "replace_payment_method--Customer.retrieve.5.json",+ "payment_method": "replace_payment_method--Customer.retrieve.6.json","payment_method_details": {"card": {"amount_authorized": null,@@ -402,8 +402,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -480,7 +480,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -496,8 +496,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -515,7 +515,7 @@},"created": 1000000000,"customer": "cus_NORMALIZED",- "id": "replace_payment_method--Customer.retrieve.5.json",+ "id": "replace_payment_method--Customer.retrieve.6.json","livemode": false,"metadata": {},"object": "payment_method",@@ -564,7 +564,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -580,8 +580,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -599,13 +599,13 @@},"created": 1000000000,"customer": "cus_NORMALIZED",- "id": "replace_payment_method--Customer.retrieve.5.json",+ "id": "replace_payment_method--Customer.retrieve.6.json","livemode": false,"metadata": {},"object": "payment_method","type": "card"},- "request_log_url": "https://dashboard.stripe.com/test/logs/req_NORMALIZED?t=1724918953",+ "request_log_url": "https://dashboard.stripe.com/test/logs/req_NORMALIZED?t=1726724750","type": "card_error"}},diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.pay.3.json b/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.pay.3.jsonindex 9eaa5460367..787ccc0324a 100644--- a/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.pay.3.json+++ b/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.pay.3.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--PaymentMethod.create.1.json b/corporate/tests/stripe_fixtures/replace_payment_method--PaymentMethod.create.1.jsonindex 38cdb7ad9ea..d40f11acc13 100644--- a/corporate/tests/stripe_fixtures/replace_payment_method--PaymentMethod.create.1.json+++ b/corporate/tests/stripe_fixtures/replace_payment_method--PaymentMethod.create.1.json@@ -6,7 +6,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -22,8 +22,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--PaymentMethod.create.2.json b/corporate/tests/stripe_fixtures/replace_payment_method--PaymentMethod.create.2.jsonindex 57ee641343b..14d8341a653 100644--- a/corporate/tests/stripe_fixtures/replace_payment_method--PaymentMethod.create.2.json+++ b/corporate/tests/stripe_fixtures/replace_payment_method--PaymentMethod.create.2.json@@ -6,7 +6,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -22,8 +22,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--PaymentMethod.create.3.json b/corporate/tests/stripe_fixtures/replace_payment_method--PaymentMethod.create.3.jsonindex b2a896b63f5..5474d85bcea 100644--- a/corporate/tests/stripe_fixtures/replace_payment_method--PaymentMethod.create.3.json+++ b/corporate/tests/stripe_fixtures/replace_payment_method--PaymentMethod.create.3.json@@ -6,7 +6,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -22,8 +22,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -41,7 +41,7 @@},"created": 1000000000,"customer": null,- "id": "replace_payment_method--Customer.retrieve.5.json",+ "id": "replace_payment_method--Customer.retrieve.6.json","livemode": false,"metadata": {},"object": "payment_method",diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--PaymentMethod.create.4.json b/corporate/tests/stripe_fixtures/replace_payment_method--PaymentMethod.create.4.jsonindex 7988f3afb3b..3eb2537984a 100644--- a/corporate/tests/stripe_fixtures/replace_payment_method--PaymentMethod.create.4.json+++ b/corporate/tests/stripe_fixtures/replace_payment_method--PaymentMethod.create.4.json@@ -6,7 +6,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -22,8 +22,8 @@},"country": "US","display_brand": "mastercard",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -41,7 +41,7 @@},"created": 1000000000,"customer": null,- "id": "replace_payment_method--Customer.retrieve.7.json",+ "id": "replace_payment_method--Customer.retrieve.8.json","livemode": false,"metadata": {},"object": "payment_method",diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--PaymentMethod.detach.1.json b/corporate/tests/stripe_fixtures/replace_payment_method--PaymentMethod.detach.1.jsonindex 18cba436a21..7533ad85522 100644--- a/corporate/tests/stripe_fixtures/replace_payment_method--PaymentMethod.detach.1.json+++ b/corporate/tests/stripe_fixtures/replace_payment_method--PaymentMethod.detach.1.json@@ -6,7 +6,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -22,8 +22,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -41,7 +41,7 @@},"created": 1000000000,"customer": null,- "id": "replace_payment_method--Customer.retrieve.5.json",+ "id": "replace_payment_method--Customer.retrieve.6.json","livemode": false,"metadata": {},"object": "payment_method",diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--PaymentMethod.detach.2.json b/corporate/tests/stripe_fixtures/replace_payment_method--PaymentMethod.detach.2.jsonindex 078a94a3637..6b0bd89d904 100644--- a/corporate/tests/stripe_fixtures/replace_payment_method--PaymentMethod.detach.2.json+++ b/corporate/tests/stripe_fixtures/replace_payment_method--PaymentMethod.detach.2.json@@ -6,7 +6,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -22,8 +22,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--PaymentMethod.list.1.json b/corporate/tests/stripe_fixtures/replace_payment_method--PaymentMethod.list.1.jsonindex 4a6129121b0..fea910872ff 100644--- a/corporate/tests/stripe_fixtures/replace_payment_method--PaymentMethod.list.1.json+++ b/corporate/tests/stripe_fixtures/replace_payment_method--PaymentMethod.list.1.json@@ -8,7 +8,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -24,8 +24,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -43,7 +43,7 @@},"created": 1000000000,"customer": "cus_NORMALIZED",- "id": "replace_payment_method--Customer.retrieve.5.json",+ "id": "replace_payment_method--Customer.retrieve.6.json","livemode": false,"metadata": {},"object": "payment_method",@@ -57,7 +57,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -73,8 +73,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--PaymentMethod.list.2.json b/corporate/tests/stripe_fixtures/replace_payment_method--PaymentMethod.list.2.jsonindex 7d260879294..d865c1b1b83 100644--- a/corporate/tests/stripe_fixtures/replace_payment_method--PaymentMethod.list.2.json+++ b/corporate/tests/stripe_fixtures/replace_payment_method--PaymentMethod.list.2.json@@ -8,7 +8,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -24,8 +24,8 @@},"country": "US","display_brand": "mastercard",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -43,7 +43,7 @@},"created": 1000000000,"customer": "cus_NORMALIZED",- "id": "replace_payment_method--Customer.retrieve.7.json",+ "id": "replace_payment_method--Customer.retrieve.8.json","livemode": false,"metadata": {},"object": "payment_method",diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.create.2.json b/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.create.2.jsonindex 87d9366fa61..0a6b882e43b 100644--- a/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.create.2.json+++ b/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.create.2.json@@ -17,7 +17,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -33,8 +33,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -58,7 +58,7 @@"object": "payment_method","type": "card"},- "request_log_url": "https://dashboard.stripe.com/test/logs/req_NORMALIZED?t=1724918949",+ "request_log_url": "https://dashboard.stripe.com/test/logs/req_NORMALIZED?t=1726724746","setup_intent": {"application": null,"automatic_payment_methods": null,@@ -82,7 +82,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -98,8 +98,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -164,7 +164,7 @@"Content-Type": "application/json","Cross-Origin-Opener-Policy-Report-Only": "same-origin; report-to=\"coop\"","Date": "NORMALIZED DATETIME",- "Idempotency-Key": "65ba984a-296c-4de5-b41d-d33106864727",+ "Idempotency-Key": "6ac8ef14-fc05-473a-86a1-5eef5d312c0a","Original-Request": "req_NORMALIZED","Report-To": "{\"group\": \"coop\",\"max_age\": 8640,\"endpoints\": [{\"url\": \"https://q.stripe.com/coop-report?s=billing-api-srv\"}],\"include_subdomains\": true}","Reporting-Endpoints": "coop=\"https://q.stripe.com/coop-report?s=payins-bapi-srv\"",@@ -178,7 +178,7 @@"X-Stripe-Priority-Routing-Enabled": "true","X-Stripe-Routing-Context-Priority-Tier": "api-testmode"},- "http_body": "{\"error\": {\"code\": \"card_declined\", \"decline_code\": \"generic_decline\", \"doc_url\": \"https://stripe.com/docs/error-codes/card-declined\", \"message\": \"Your card was declined.\", \"payment_method\": {\"id\": \"replace_payment_method--PaymentMethod.create.2.json\", \"object\": \"payment_method\", \"allow_redisplay\": \"unspecified\", \"billing_details\": {\"address\": {\"city\": \"San Francisco\", \"country\": \"US\", \"line1\": \"123 Main St\", \"line2\": null, \"postal_code\": \"94105\", \"state\": \"CA\"}, \"email\": null, \"name\": \"John Doe\", \"phone\": null}, \"card\": {\"brand\": \"visa\", \"checks\": {\"address_line1_check\": \"pass\", \"address_postal_code_check\": \"pass\", \"cvc_check\": \"pass\"}, \"country\": \"US\", \"display_brand\": \"visa\", \"exp_month\": 8, \"exp_year\": 2025, \"fingerprint\": \"NORMALIZED\", \"funding\": \"credit\", \"generated_from\": null, \"last4\": \"0002\", \"networks\": {\"available\": [\"visa\"], \"preferred\": null}, \"three_d_secure_usage\": {\"supported\": true}, \"wallet\": null}, \"created\": 1000000000, \"customer\": null, \"livemode\": false, \"metadata\": {}, \"type\": \"card\"}, \"request_log_url\": \"https://dashboard.stripe.com/test/logs/req_NORMALIZED?t=1724918949\", \"setup_intent\": {\"id\": \"replace_payment_method--SetupIntent.create.2.json\", \"object\": \"setup_intent\", \"application\": null, \"automatic_payment_methods\": null, \"cancellation_reason\": null, \"client_secret\": \"NORMALIZED\", \"created\": 1000000000, \"customer\": \"cus_NORMALIZED\", \"description\": null, \"flow_directions\": null, \"last_setup_error\": {\"code\": \"card_declined\", \"decline_code\": \"generic_decline\", \"doc_url\": \"https://stripe.com/docs/error-codes/card-declined\", \"message\": \"Your card was declined.\", \"payment_method\": {\"id\": \"replace_payment_method--PaymentMethod.create.2.json\", \"object\": \"payment_method\", \"allow_redisplay\": \"unspecified\", \"billing_details\": {\"address\": {\"city\": \"San Francisco\", \"country\": \"US\", \"line1\": \"123 Main St\", \"line2\": null, \"postal_code\": \"94105\", \"state\": \"CA\"}, \"email\": null, \"name\": \"John Doe\", \"phone\": null}, \"card\": {\"brand\": \"visa\", \"checks\": {\"address_line1_check\": \"pass\", \"address_postal_code_check\": \"pass\", \"cvc_check\": \"pass\"}, \"country\": \"US\", \"display_brand\": \"visa\", \"exp_month\": 8, \"exp_year\": 2025, \"fingerprint\": \"NORMALIZED\", \"funding\": \"credit\", \"generated_from\": null, \"last4\": \"0002\", \"networks\": {\"available\": [\"visa\"], \"preferred\": null}, \"three_d_secure_usage\": {\"supported\": true}, \"wallet\": null}, \"created\": 1000000000, \"customer\": null, \"livemode\": false, \"metadata\": {}, \"type\": \"card\"}, \"type\": \"card_error\"}, \"latest_attempt\": \"setatt_NORMALIZED\", \"livemode\": false, \"mandate\": null, \"metadata\": {}, \"next_action\": null, \"on_behalf_of\": null, \"payment_method\": null, \"payment_method_configuration_details\": null, \"payment_method_options\": {\"card\": {\"mandate_options\": null, \"network\": null, \"request_three_d_secure\": \"automatic\"}}, \"payment_method_types\": [\"card\"], \"single_use_mandate\": null, \"status\": \"requires_payment_method\", \"usage\": \"off_session\"}, \"type\": \"card_error\"}}",+ "http_body": "{\"error\": {\"code\": \"card_declined\", \"decline_code\": \"generic_decline\", \"doc_url\": \"https://stripe.com/docs/error-codes/card-declined\", \"message\": \"Your card was declined.\", \"payment_method\": {\"id\": \"replace_payment_method--PaymentMethod.create.2.json\", \"object\": \"payment_method\", \"allow_redisplay\": \"unspecified\", \"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}, \"card\": {\"brand\": \"visa\", \"checks\": {\"address_line1_check\": \"pass\", \"address_postal_code_check\": \"pass\", \"cvc_check\": \"pass\"}, \"country\": \"US\", \"display_brand\": \"visa\", \"exp_month\": 1, \"exp_year\": 9999, \"fingerprint\": \"NORMALIZED\", \"funding\": \"credit\", \"generated_from\": null, \"last4\": \"0002\", \"networks\": {\"available\": [\"visa\"], \"preferred\": null}, \"three_d_secure_usage\": {\"supported\": true}, \"wallet\": null}, \"created\": 1000000000, \"customer\": null, \"livemode\": false, \"metadata\": {}, \"type\": \"card\"}, \"request_log_url\": \"https://dashboard.stripe.com/test/logs/req_NORMALIZED?t=1726724746\", \"setup_intent\": {\"id\": \"replace_payment_method--SetupIntent.create.2.json\", \"object\": \"setup_intent\", \"application\": null, \"automatic_payment_methods\": null, \"cancellation_reason\": null, \"client_secret\": \"NORMALIZED\", \"created\": 1000000000, \"customer\": \"cus_NORMALIZED\", \"description\": null, \"flow_directions\": null, \"last_setup_error\": {\"code\": \"card_declined\", \"decline_code\": \"generic_decline\", \"doc_url\": \"https://stripe.com/docs/error-codes/card-declined\", \"message\": \"Your card was declined.\", \"payment_method\": {\"id\": \"replace_payment_method--PaymentMethod.create.2.json\", \"object\": \"payment_method\", \"allow_redisplay\": \"unspecified\", \"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}, \"card\": {\"brand\": \"visa\", \"checks\": {\"address_line1_check\": \"pass\", \"address_postal_code_check\": \"pass\", \"cvc_check\": \"pass\"}, \"country\": \"US\", \"display_brand\": \"visa\", \"exp_month\": 1, \"exp_year\": 9999, \"fingerprint\": \"NORMALIZED\", \"funding\": \"credit\", \"generated_from\": null, \"last4\": \"0002\", \"networks\": {\"available\": [\"visa\"], \"preferred\": null}, \"three_d_secure_usage\": {\"supported\": true}, \"wallet\": null}, \"created\": 1000000000, \"customer\": null, \"livemode\": false, \"metadata\": {}, \"type\": \"card\"}, \"type\": \"card_error\"}, \"latest_attempt\": \"setatt_NORMALIZED\", \"livemode\": false, \"mandate\": null, \"metadata\": {}, \"next_action\": null, \"on_behalf_of\": null, \"payment_method\": null, \"payment_method_configuration_details\": null, \"payment_method_options\": {\"card\": {\"mandate_options\": null, \"network\": null, \"request_three_d_secure\": \"automatic\"}}, \"payment_method_types\": [\"card\"], \"single_use_mandate\": null, \"status\": \"requires_payment_method\", \"usage\": \"off_session\"}, \"type\": \"card_error\"}}","http_status": 402,"json_body": {"error": {@@ -194,7 +194,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -210,8 +210,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -235,7 +235,7 @@"object": "payment_method","type": "card"},- "request_log_url": "https://dashboard.stripe.com/test/logs/req_NORMALIZED?t=1724918949",+ "request_log_url": "https://dashboard.stripe.com/test/logs/req_NORMALIZED?t=1726724746","setup_intent": {"application": null,"automatic_payment_methods": null,@@ -259,7 +259,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -275,8 +275,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.create.1.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.create.1.jsonindex 869b8bab803..2e042b25070 100644--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.create.1.json+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.create.1.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-95a","discount": null,"email": "[email protected]","id": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.create.1.json",@@ -20,7 +20,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-95a9-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.modify.1.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.modify.1.jsonindex 320c69e15b2..1b657bc71eb 100644--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.modify.1.json+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.modify.1.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-95a","discount": null,"email": "[email protected]","id": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.create.1.json",@@ -20,7 +20,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-95a9-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.retrieve.1.jsonindex 95cf8d323eb..bef10213373 100644--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.retrieve.1.json+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.retrieve.1.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-15a","discount": null,"email": "[email protected]","id": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.create.1.json",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.retrieve.2.jsonindex 95cf8d323eb..bef10213373 100644--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.retrieve.2.json+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.retrieve.2.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-15a","discount": null,"email": "[email protected]","id": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.create.1.json",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.retrieve.3.jsonindex 95cf8d323eb..bef10213373 100644--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.retrieve.3.json+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.retrieve.3.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-15a","discount": null,"email": "[email protected]","id": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.create.1.json",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.retrieve.4.jsonindex 95cf8d323eb..bef10213373 100644--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.retrieve.4.json+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.retrieve.4.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-15a","discount": null,"email": "[email protected]","id": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.create.1.json",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.retrieve.5.jsonnew file mode 100644index 00000000000..bef10213373--- /dev/null+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.retrieve.5.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": null,+ "default_currency": null,+ "default_source": null,+ "delinquent": false,+ "description": "zulip.testserver 3383e261-15a",+ "discount": null,+ "email": "[email protected]",+ "id": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.create.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.create.1.json",+ "id": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.retrieve.1.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "remote_realm_host": "zulip.testserver",+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"+ },+ "name": null,+ "next_invoice_sequence": 1,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.1.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.1.jsonindex 6fa1d4bfd75..af0c2aa7cf5 100644--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.1.json+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.1.json@@ -12,7 +12,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-95a","discount": null,"email": "[email protected]","id": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.create.1.json",@@ -26,7 +26,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-95a9-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.2.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.2.jsonindex 8664da9b97b..15ee09e289a 100644--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.2.json+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.2.json@@ -33,7 +33,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -82,8 +82,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -184,7 +184,7 @@"id": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.2.json","livemode": false,"object": "event",- "pending_webhooks": 0,+ "pending_webhooks": 2,"request": {"id": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.2.json","idempotency_key": "00000000-0000-0000-0000-000000000000"@@ -209,7 +209,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -258,8 +258,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -392,7 +392,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -465,7 +465,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -578,7 +580,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -651,7 +653,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -858,7 +862,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -931,7 +935,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -989,7 +995,7 @@"metadata": {},"object": "invoiceitem","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -1045,7 +1051,7 @@"default_currency": "usd","default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-15a","discount": null,"email": "[email protected]","id": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.create.1.json",@@ -1059,7 +1065,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.3.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.3.jsonindex 86cf40d8dbe..1d825219a1a 100644--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.3.json+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.3.json@@ -146,7 +146,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -179,7 +181,7 @@"id": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.3.json","livemode": false,"object": "event",- "pending_webhooks": 0,+ "pending_webhooks": 2,"request": {"id": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.2.json","idempotency_key": "00000000-0000-0000-0000-000000000000"@@ -332,7 +334,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -518,7 +522,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.1.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.1.jsonindex 9e270cc0394..84cbae5ea8f 100644--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.1.json+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.1.json@@ -140,7 +140,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.10.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.10.jsonindex 27e501a37c4..a9e442f961a 100644--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.10.json+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.10.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.11.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.11.jsonindex f5f2000bf61..9a2da34a0cd 100644--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.11.json+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.11.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.12.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.12.jsonindex a547c6a6d2a..057f52ff6cb 100644--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.12.json+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.12.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.13.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.13.jsonindex 7a752efc42d..e4ae5836809 100644--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.13.json+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.13.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.2.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.2.jsonindex 8848912d0c1..8cc8323bff7 100644--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.2.json+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.2.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.3.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.3.jsonindex 4e6dd41ae27..7307c4d4850 100644--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.3.json+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.3.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.4.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.4.jsonindex 293e3694895..2fd34117b9a 100644--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.4.json+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.4.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.5.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.5.jsonindex 332873b4fe3..8a678ed2c6f 100644--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.5.json+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.5.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.6.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.6.jsonindex d9f19602573..bf25be33da4 100644--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.6.json+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.6.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.7.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.7.jsonindex d098e1b0b74..3b30ae024fa 100644--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.7.json+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.7.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.8.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.8.jsonindex 6d46cab57c8..5e2793078ea 100644--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.8.json+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.8.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.9.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.9.jsonindex e718ac52eeb..760fb1d4195 100644--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.9.json+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.9.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.1.jsonindex 0694d8ed9bc..7d7eecff3e8 100644--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.1.json+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.1.json@@ -140,7 +140,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.10.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.10.jsonindex 8af7df15649..e2d853545c5 100644--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.10.json+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.10.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -160,5 +162,5 @@"total_excluding_tax": 10000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null}diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.11.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.11.jsonindex 26152aa1636..7522b08a5f1 100644--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.11.json+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.11.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.12.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.12.jsonindex 36c05e42e36..9f5f85b0170 100644--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.12.json+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.12.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -160,5 +162,5 @@"total_excluding_tax": 10000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null}diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.13.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.13.jsonindex 4555e3f8e5f..f51d784a82d 100644--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.13.json+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.13.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -160,5 +162,5 @@"total_excluding_tax": 14166,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null}diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.2.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.2.jsonindex af0ae51dc4d..47ecb6129d0 100644--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.2.json+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.2.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.3.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.3.jsonindex 64d731bcd99..a25d24d96d7 100644--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.3.json+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.3.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.4.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.4.jsonindex 99551c2d8a4..194a633f391 100644--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.4.json+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.4.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -160,5 +162,5 @@"total_excluding_tax": 10000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": null+ "webhooks_delivered_at": 1000000000}diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.5.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.5.jsonindex c584868f2c2..8487a17ecef 100644--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.5.json+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.5.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -160,5 +162,5 @@"total_excluding_tax": 10000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null}diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.6.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.6.jsonindex 7c2405b33bd..71b2b5c0e3a 100644--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.6.json+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.6.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.7.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.7.jsonindex 5cf4a33ef65..a9fc27e626d 100644--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.7.json+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.7.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.8.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.8.jsonindex c35ad545844..34d9c38375a 100644--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.8.json+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.8.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -160,5 +162,5 @@"total_excluding_tax": 10000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null}diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.9.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.9.jsonindex 3ece371fbb2..c118d9c0889 100644--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.9.json+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.9.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.pay.1.jsonindex 759f11aa3ee..2d37fa9e442 100644--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.pay.1.json+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.pay.1.json@@ -140,7 +140,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--PaymentMethod.create.1.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--PaymentMethod.create.1.jsonindex c28fd6f52ee..f8b6a2dedc1 100644--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--PaymentMethod.create.1.json+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--PaymentMethod.create.1.json@@ -6,7 +6,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -22,8 +22,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--checkout.Session.create.1.jsonindex 783a0119b22..5dd783681ed 100644--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--checkout.Session.create.1.json+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--checkout.Session.create.1.json@@ -9,7 +9,7 @@"status": null},"billing_address_collection": "required",- "cancel_url": "http://selfhosting.testserver/realm/f6d476f5-b66f-45ce-8623-a273ff4d7787/upgrade/?manual_license_management=false&tier=1",+ "cancel_url": "http://selfhosting.testserver/realm/3383e261-95a9-4f36-ae0c-4ecf80fab561/upgrade/?manual_license_management=false&tier=1","client_reference_id": null,"client_secret": null,"consent": null,@@ -73,7 +73,7 @@"status": "open","submit_type": null,"subscription": null,- "success_url": "http://selfhosting.testserver/realm/f6d476f5-b66f-45ce-8623-a273ff4d7787/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",+ "success_url": "http://selfhosting.testserver/realm/3383e261-95a9-4f36-ae0c-4ecf80fab561/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}","total_details": null,"ui_mode": "hosted","url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED"diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--checkout.Session.list.1.jsonindex 941c1b9ba5b..f4ffa05a3af 100644--- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--checkout.Session.list.1.json+++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--checkout.Session.list.1.json@@ -11,7 +11,7 @@"status": null},"billing_address_collection": "required",- "cancel_url": "http://selfhosting.testserver/realm/f6d476f5-b66f-45ce-8623-a273ff4d7787/upgrade/?manual_license_management=false&tier=1",+ "cancel_url": "http://selfhosting.testserver/realm/3383e261-95a9-4f36-ae0c-4ecf80fab561/upgrade/?manual_license_management=false&tier=1","client_reference_id": null,"client_secret": null,"consent": null,@@ -75,7 +75,7 @@"status": "open","submit_type": null,"subscription": null,- "success_url": "http://selfhosting.testserver/realm/f6d476f5-b66f-45ce-8623-a273ff4d7787/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",+ "success_url": "http://selfhosting.testserver/realm/3383e261-95a9-4f36-ae0c-4ecf80fab561/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}","total_details": null,"ui_mode": "hosted","url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED"diff --git a/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.create.1.json b/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.create.1.jsonindex 27f261b8f2e..cb80ccaf4dc 100644--- a/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.create.1.json+++ b/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.create.1.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-95a","discount": null,"email": "[email protected]","id": "schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.create.1.json",@@ -20,7 +20,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-95a9-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.modify.1.json b/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.modify.1.jsonindex 9d451013a6a..00831564f36 100644--- a/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.modify.1.json+++ b/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.modify.1.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-95a","discount": null,"email": "[email protected]","id": "schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.create.1.json",@@ -20,7 +20,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-95a9-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.1.jsonindex b2d4242cdde..b4d2f2501ea 100644--- a/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.1.json+++ b/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.1.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-15a","discount": null,"email": "[email protected]","id": "schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.create.1.json",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.2.jsonindex b2d4242cdde..b4d2f2501ea 100644--- a/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.2.json+++ b/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.2.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-15a","discount": null,"email": "[email protected]","id": "schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.create.1.json",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.3.jsonindex b2d4242cdde..b4d2f2501ea 100644--- a/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.3.json+++ b/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.3.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-15a","discount": null,"email": "[email protected]","id": "schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.create.1.json",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.4.jsonindex b2d4242cdde..b4d2f2501ea 100644--- a/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.4.json+++ b/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.4.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-15a","discount": null,"email": "[email protected]","id": "schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.create.1.json",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.5.jsonnew file mode 100644index 00000000000..b4d2f2501ea--- /dev/null+++ b/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.5.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": null,+ "default_currency": null,+ "default_source": null,+ "delinquent": false,+ "description": "zulip.testserver 3383e261-15a",+ "discount": null,+ "email": "[email protected]",+ "id": "schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.create.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.create.1.json",+ "id": "schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.1.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "remote_realm_host": "zulip.testserver",+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"+ },+ "name": null,+ "next_invoice_sequence": 1,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--Invoice.create.1.json b/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--Invoice.create.1.jsonindex 87f994a02d1..e4460558b30 100644--- a/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--Invoice.create.1.json+++ b/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--Invoice.create.1.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--Invoice.finalize_invoice.1.jsonindex e88c7523a57..3e234bd38b2 100644--- a/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--Invoice.finalize_invoice.1.json+++ b/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--Invoice.finalize_invoice.1.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--PaymentMethod.create.1.json b/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--PaymentMethod.create.1.jsonindex 8f26f349bb6..b39cd58e149 100644--- a/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--PaymentMethod.create.1.json+++ b/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--PaymentMethod.create.1.json@@ -6,7 +6,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -22,8 +22,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--checkout.Session.create.1.jsonindex e9215a52fb7..1094efd7bb5 100644--- a/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--checkout.Session.create.1.json+++ b/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--checkout.Session.create.1.json@@ -9,7 +9,7 @@"status": null},"billing_address_collection": "required",- "cancel_url": "http://selfhosting.testserver/realm/f6d476f5-b66f-45ce-8623-a273ff4d7787/upgrade/?manual_license_management=false&tier=1",+ "cancel_url": "http://selfhosting.testserver/realm/3383e261-95a9-4f36-ae0c-4ecf80fab561/upgrade/?manual_license_management=false&tier=1","client_reference_id": null,"client_secret": null,"consent": null,@@ -73,7 +73,7 @@"status": "open","submit_type": null,"subscription": null,- "success_url": "http://selfhosting.testserver/realm/f6d476f5-b66f-45ce-8623-a273ff4d7787/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",+ "success_url": "http://selfhosting.testserver/realm/3383e261-95a9-4f36-ae0c-4ecf80fab561/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}","total_details": null,"ui_mode": "hosted","url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED"diff --git a/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--checkout.Session.list.1.jsonindex 6b5ce239fb7..d534a52d359 100644--- a/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--checkout.Session.list.1.json+++ b/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--checkout.Session.list.1.json@@ -11,7 +11,7 @@"status": null},"billing_address_collection": "required",- "cancel_url": "http://selfhosting.testserver/realm/f6d476f5-b66f-45ce-8623-a273ff4d7787/upgrade/?manual_license_management=false&tier=1",+ "cancel_url": "http://selfhosting.testserver/realm/3383e261-95a9-4f36-ae0c-4ecf80fab561/upgrade/?manual_license_management=false&tier=1","client_reference_id": null,"client_secret": null,"consent": null,@@ -75,7 +75,7 @@"status": "open","submit_type": null,"subscription": null,- "success_url": "http://selfhosting.testserver/realm/f6d476f5-b66f-45ce-8623-a273ff4d7787/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",+ "success_url": "http://selfhosting.testserver/realm/3383e261-95a9-4f36-ae0c-4ecf80fab561/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}","total_details": null,"ui_mode": "hosted","url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED"diff --git a/corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.1.jsonindex 6e51b5c6bf5..af9025d11cd 100644--- a/corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.1.json+++ b/corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.1.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.2.jsonindex 6e51b5c6bf5..af9025d11cd 100644--- a/corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.2.json+++ b/corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.2.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.3.jsonindex 6e51b5c6bf5..af9025d11cd 100644--- a/corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.3.json+++ b/corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.3.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.4.jsonindex 6e51b5c6bf5..af9025d11cd 100644--- a/corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.4.json+++ b/corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.4.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.5.jsonnew file mode 100644index 00000000000..af9025d11cd--- /dev/null+++ b/corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.5.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": null,+ "default_currency": null,+ "default_source": null,+ "delinquent": false,+ "description": "demo.example.com 6cde5f7a-1f7",+ "discount": null,+ "email": "[email protected]",+ "id": "schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Customer.create.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Customer.create.1.json",+ "id": "schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.1.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "remote_server_str": "demo.example.com 6cde5f7a-1f7",+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"+ },+ "name": null,+ "next_invoice_sequence": 1,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Invoice.create.1.json b/corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Invoice.create.1.jsonindex c2850a1d57a..e78bbdc9f0e 100644--- a/corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Invoice.create.1.json+++ b/corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Invoice.create.1.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Invoice.finalize_invoice.1.jsonindex b6c330b9e1e..b2c5f5ec729 100644--- a/corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Invoice.finalize_invoice.1.json+++ b/corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Invoice.finalize_invoice.1.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--PaymentMethod.create.1.json b/corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--PaymentMethod.create.1.jsonindex 6f54a5ddc96..87b8ca54e1d 100644--- a/corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--PaymentMethod.create.1.json+++ b/corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--PaymentMethod.create.1.json@@ -6,7 +6,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -22,8 +22,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Customer.retrieve.1.jsonindex ca4af5753bd..02602bf1910 100644--- a/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Customer.retrieve.1.json+++ b/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Customer.retrieve.1.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Customer.retrieve.2.jsonindex ca4af5753bd..02602bf1910 100644--- a/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Customer.retrieve.2.json+++ b/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Customer.retrieve.2.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Customer.retrieve.3.jsonindex ca4af5753bd..02602bf1910 100644--- a/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Customer.retrieve.3.json+++ b/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Customer.retrieve.3.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Customer.retrieve.4.jsonindex ca4af5753bd..02602bf1910 100644--- a/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Customer.retrieve.4.json+++ b/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Customer.retrieve.4.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Customer.retrieve.5.jsonindex 9b7a14eba01..02602bf1910 100644--- a/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Customer.retrieve.5.json+++ b/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Customer.retrieve.5.json@@ -2,8 +2,8 @@"address": null,"balance": 0,"created": 1000000000,- "currency": "usd",- "default_currency": "usd",+ "currency": null,+ "default_currency": null,"default_source": null,"delinquent": false,"description": "demo.example.com 6cde5f7a-1f7",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,10 +68,10 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,- "next_invoice_sequence": 3,+ "next_invoice_sequence": 1,"object": "customer","phone": null,"preferred_locales": [],diff --git a/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Customer.retrieve.6.json b/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Customer.retrieve.6.jsonnew file mode 100644index 00000000000..58332964113--- /dev/null+++ b/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Customer.retrieve.6.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": "usd",+ "default_currency": "usd",+ "default_source": null,+ "delinquent": false,+ "description": "demo.example.com 6cde5f7a-1f7",+ "discount": null,+ "email": "[email protected]",+ "id": "schedule_server_upgrade_to_fixed_price_business_plan--Customer.create.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "schedule_server_upgrade_to_fixed_price_business_plan--Customer.create.1.json",+ "id": "schedule_server_upgrade_to_fixed_price_business_plan--Customer.retrieve.1.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "remote_server_str": "demo.example.com 6cde5f7a-1f7",+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"+ },+ "name": null,+ "next_invoice_sequence": 3,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Event.list.2.json b/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Event.list.2.jsonindex 958716f9b0a..c5a501208f7 100644--- a/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Event.list.2.json+++ b/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Event.list.2.json@@ -33,7 +33,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -82,8 +82,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -191,6 +191,134 @@},"type": "payment_intent.succeeded"},+ {+ "api_version": "2020-08-27",+ "created": 1000000000,+ "data": {+ "object": {+ "amount": 51600,+ "amount_captured": 51600,+ "amount_refunded": 0,+ "application": null,+ "application_fee": null,+ "application_fee_amount": null,+ "balance_transaction": "txn_NORMALIZED",+ "billing_details": {+ "address": {+ "city": "San Francisco",+ "country": "US",+ "line1": "123 Main St",+ "line2": null,+ "postal_code": "12345",+ "state": "CA"+ },+ "email": null,+ "name": "John Doe",+ "phone": null+ },+ "calculated_statement_descriptor": "ZULIP BASIC",+ "captured": true,+ "created": 1000000000,+ "currency": "usd",+ "customer": "schedule_server_upgrade_to_fixed_price_business_plan--Customer.create.1.json",+ "description": "Payment for Invoice",+ "destination": null,+ "dispute": null,+ "disputed": false,+ "failure_balance_transaction": null,+ "failure_code": null,+ "failure_message": null,+ "fraud_details": {},+ "id": "schedule_server_upgrade_to_fixed_price_business_plan--Event.list.2.json",+ "invoice": "schedule_server_upgrade_to_fixed_price_business_plan--Event.list.2.json",+ "livemode": false,+ "metadata": {},+ "object": "charge",+ "on_behalf_of": null,+ "order": null,+ "outcome": {+ "network_status": "approved_by_network",+ "reason": null,+ "risk_level": "normal",+ "risk_score": 0,+ "seller_message": "Payment complete.",+ "type": "authorized"+ },+ "paid": true,+ "payment_intent": "schedule_server_upgrade_to_fixed_price_business_plan--Event.list.2.json",+ "payment_method": "pm_NORMALIZED",+ "payment_method_details": {+ "card": {+ "amount_authorized": 51600,+ "authorization_code": null,+ "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+ },+ "overcapture": {+ "maximum_amount_capturable": 51600,+ "status": "unavailable"+ },+ "three_d_secure": null,+ "wallet": null+ },+ "type": "card"+ },+ "receipt_email": "[email protected]",+ "receipt_number": null,+ "receipt_url": "https://pay.stripe.com/receipts/invoices/NORMALIZED?s=ap",+ "refunded": false,+ "refunds": {+ "data": [],+ "has_more": false,+ "object": "list",+ "total_count": 0,+ "url": "/v1/charges/schedule_server_upgrade_to_fixed_price_business_plan--Event.list.2.json/refunds"+ },+ "review": null,+ "shipping": null,+ "source": null,+ "source_transfer": null,+ "statement_descriptor": "Zulip Basic",+ "statement_descriptor_suffix": null,+ "status": "succeeded",+ "transfer_data": null,+ "transfer_group": null+ }+ },+ "id": "schedule_server_upgrade_to_fixed_price_business_plan--Event.list.2.json",+ "livemode": false,+ "object": "event",+ "pending_webhooks": 2,+ "request": {+ "id": "schedule_server_upgrade_to_fixed_price_business_plan--Event.list.2.json",+ "idempotency_key": "00000000-0000-0000-0000-000000000000"+ },+ "type": "charge.succeeded"+ },{"api_version": "2020-08-27","created": 1000000000,@@ -264,7 +392,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -315,7 +443,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -388,7 +516,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -501,7 +631,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -552,7 +682,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -625,7 +755,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -832,7 +964,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -883,7 +1015,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -956,7 +1088,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -1014,7 +1148,7 @@"metadata": {},"object": "invoiceitem","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -1076,7 +1210,7 @@"metadata": {},"object": "invoiceitem","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -1146,7 +1280,7 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Event.list.3.json b/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Event.list.3.jsonindex eb11dc3f966..5d31f620de5 100644--- a/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Event.list.3.json+++ b/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Event.list.3.json@@ -66,7 +66,7 @@"discount_amounts": [],"discountable": false,"discounts": [],- "id": "schedule_server_upgrade_to_fixed_price_business_plan--Event.list.2.json",+ "id": "schedule_server_upgrade_to_fixed_price_business_plan--Event.list.3.json","invoice": "schedule_server_upgrade_to_fixed_price_business_plan--Event.list.2.json","invoice_item": "ii_NORMALIZED","livemode": false,@@ -197,7 +197,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -224,7 +226,7 @@"total_excluding_tax": 51600,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": null+ "webhooks_delivered_at": 1000000000}},"id": "schedule_server_upgrade_to_fixed_price_business_plan--Event.list.3.json",@@ -303,7 +305,7 @@"discount_amounts": [],"discountable": false,"discounts": [],- "id": "schedule_server_upgrade_to_fixed_price_business_plan--Event.list.2.json",+ "id": "schedule_server_upgrade_to_fixed_price_business_plan--Event.list.3.json","invoice": "schedule_server_upgrade_to_fixed_price_business_plan--Event.list.2.json","invoice_item": "ii_NORMALIZED","livemode": false,@@ -434,7 +436,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -461,13 +465,13 @@"total_excluding_tax": 51600,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": null+ "webhooks_delivered_at": 1000000000}},"id": "schedule_server_upgrade_to_fixed_price_business_plan--Event.list.3.json","livemode": false,"object": "event",- "pending_webhooks": 0,+ "pending_webhooks": 2,"request": {"id": "schedule_server_upgrade_to_fixed_price_business_plan--Event.list.2.json","idempotency_key": "00000000-0000-0000-0000-000000000000"@@ -540,7 +544,7 @@"discount_amounts": [],"discountable": false,"discounts": [],- "id": "schedule_server_upgrade_to_fixed_price_business_plan--Event.list.2.json",+ "id": "schedule_server_upgrade_to_fixed_price_business_plan--Event.list.3.json","invoice": "schedule_server_upgrade_to_fixed_price_business_plan--Event.list.2.json","invoice_item": "ii_NORMALIZED","livemode": false,@@ -671,7 +675,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -698,7 +704,7 @@"total_excluding_tax": 51600,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": null+ "webhooks_delivered_at": 1000000000},"previous_attributes": {"amount_paid": 0,diff --git a/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Invoice.create.1.json b/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Invoice.create.1.jsonindex d861852b2d5..93e44126c50 100644--- a/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Invoice.create.1.json+++ b/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Invoice.create.1.json@@ -60,7 +60,7 @@"discount_amounts": [],"discountable": false,"discounts": [],- "id": "schedule_server_upgrade_to_fixed_price_business_plan--Event.list.2.json",+ "id": "schedule_server_upgrade_to_fixed_price_business_plan--Event.list.3.json","invoice": "schedule_server_upgrade_to_fixed_price_business_plan--Event.list.2.json","invoice_item": "ii_NORMALIZED","livemode": false,@@ -191,7 +191,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Invoice.create.2.json b/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Invoice.create.2.jsonindex 4aa9aee2b0d..425de61fb73 100644--- a/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Invoice.create.2.json+++ b/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Invoice.create.2.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Invoice.finalize_invoice.1.jsonindex bb003c2992d..e48de4109eb 100644--- a/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Invoice.finalize_invoice.1.json+++ b/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Invoice.finalize_invoice.1.json@@ -60,7 +60,7 @@"discount_amounts": [],"discountable": false,"discounts": [],- "id": "schedule_server_upgrade_to_fixed_price_business_plan--Event.list.2.json",+ "id": "schedule_server_upgrade_to_fixed_price_business_plan--Event.list.3.json","invoice": "schedule_server_upgrade_to_fixed_price_business_plan--Event.list.2.json","invoice_item": "ii_NORMALIZED","livemode": false,@@ -191,7 +191,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Invoice.finalize_invoice.2.json b/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Invoice.finalize_invoice.2.jsonindex 96ca818b760..9df18425861 100644--- a/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Invoice.finalize_invoice.2.json+++ b/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Invoice.finalize_invoice.2.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -160,5 +162,5 @@"total_excluding_tax": 120000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null}diff --git a/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Invoice.pay.1.jsonindex d2f0a269ce3..8f9294c304e 100644--- a/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Invoice.pay.1.json+++ b/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Invoice.pay.1.json@@ -60,7 +60,7 @@"discount_amounts": [],"discountable": false,"discounts": [],- "id": "schedule_server_upgrade_to_fixed_price_business_plan--Event.list.2.json",+ "id": "schedule_server_upgrade_to_fixed_price_business_plan--Event.list.3.json","invoice": "schedule_server_upgrade_to_fixed_price_business_plan--Event.list.2.json","invoice_item": "ii_NORMALIZED","livemode": false,@@ -191,7 +191,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -218,5 +220,5 @@"total_excluding_tax": 51600,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": null+ "webhooks_delivered_at": 1000000000}diff --git a/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--PaymentMethod.create.1.json b/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--PaymentMethod.create.1.jsonindex 03b90137343..5e683f8b4f0 100644--- a/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--PaymentMethod.create.1.json+++ b/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--PaymentMethod.create.1.json@@ -6,7 +6,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -22,8 +22,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.create.1.json b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.create.1.jsonindex 136b9148292..3affaa2348c 100644--- a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.create.1.json+++ b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.create.1.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-95a","discount": null,"email": "[email protected]","id": "schedule_upgrade_to_fixed_price_annual_business_plan--Customer.create.1.json",@@ -20,7 +20,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-95a9-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.modify.1.json b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.modify.1.jsonindex a52df58aa35..0b9ce087b9a 100644--- a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.modify.1.json+++ b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.modify.1.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-95a","discount": null,"email": "[email protected]","id": "schedule_upgrade_to_fixed_price_annual_business_plan--Customer.create.1.json",@@ -20,7 +20,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-95a9-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.retrieve.1.jsonindex 6b43d19420f..82593e0f44a 100644--- a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.retrieve.1.json+++ b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.retrieve.1.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-15a","discount": null,"email": "[email protected]","id": "schedule_upgrade_to_fixed_price_annual_business_plan--Customer.create.1.json",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.retrieve.2.jsonindex 6b43d19420f..82593e0f44a 100644--- a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.retrieve.2.json+++ b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.retrieve.2.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-15a","discount": null,"email": "[email protected]","id": "schedule_upgrade_to_fixed_price_annual_business_plan--Customer.create.1.json",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.retrieve.3.jsonindex 6b43d19420f..82593e0f44a 100644--- a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.retrieve.3.json+++ b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.retrieve.3.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-15a","discount": null,"email": "[email protected]","id": "schedule_upgrade_to_fixed_price_annual_business_plan--Customer.create.1.json",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.retrieve.4.jsonindex 6b43d19420f..82593e0f44a 100644--- a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.retrieve.4.json+++ b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.retrieve.4.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-15a","discount": null,"email": "[email protected]","id": "schedule_upgrade_to_fixed_price_annual_business_plan--Customer.create.1.json",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.retrieve.5.jsonindex c376d2a989d..82593e0f44a 100644--- a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.retrieve.5.json+++ b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.retrieve.5.json@@ -2,11 +2,11 @@"address": null,"balance": 0,"created": 1000000000,- "currency": "usd",- "default_currency": "usd",+ "currency": null,+ "default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-15a","discount": null,"email": "[email protected]","id": "schedule_upgrade_to_fixed_price_annual_business_plan--Customer.create.1.json",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,10 +68,10 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"},"name": null,- "next_invoice_sequence": 3,+ "next_invoice_sequence": 1,"object": "customer","phone": null,"preferred_locales": [],diff --git a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.retrieve.6.json b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.retrieve.6.jsonnew file mode 100644index 00000000000..568346cc75e--- /dev/null+++ b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.retrieve.6.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": "usd",+ "default_currency": "usd",+ "default_source": null,+ "delinquent": false,+ "description": "zulip.testserver 3383e261-15a",+ "discount": null,+ "email": "[email protected]",+ "id": "schedule_upgrade_to_fixed_price_annual_business_plan--Customer.create.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "schedule_upgrade_to_fixed_price_annual_business_plan--Customer.create.1.json",+ "id": "schedule_upgrade_to_fixed_price_annual_business_plan--Customer.retrieve.1.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "remote_realm_host": "zulip.testserver",+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"+ },+ "name": null,+ "next_invoice_sequence": 3,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Event.list.1.json b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Event.list.1.jsonindex d6b85e0c06e..fc24bb723a1 100644--- a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Event.list.1.json+++ b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Event.list.1.json@@ -12,7 +12,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-95a","discount": null,"email": "[email protected]","id": "schedule_upgrade_to_fixed_price_annual_business_plan--Customer.create.1.json",@@ -26,7 +26,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-95a9-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Event.list.2.json b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Event.list.2.jsonindex a82149271c6..26477ad3bd1 100644--- a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Event.list.2.json+++ b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Event.list.2.json@@ -33,7 +33,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -82,8 +82,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -209,7 +209,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -258,8 +258,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -392,7 +392,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -443,7 +443,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -516,7 +516,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -543,7 +545,7 @@"total_excluding_tax": 22200,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null}},"id": "schedule_upgrade_to_fixed_price_annual_business_plan--Event.list.2.json",@@ -629,7 +631,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -680,7 +682,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -753,7 +755,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -780,7 +784,7 @@"total_excluding_tax": 22200,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null},"previous_attributes": {"effective_at": null,@@ -960,7 +964,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -1011,7 +1015,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -1084,7 +1088,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -1142,7 +1148,7 @@"metadata": {},"object": "invoiceitem","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -1204,7 +1210,7 @@"metadata": {},"object": "invoiceitem","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -1260,7 +1266,7 @@"default_currency": "usd","default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-15a","discount": null,"email": "[email protected]","id": "schedule_upgrade_to_fixed_price_annual_business_plan--Customer.create.1.json",@@ -1274,7 +1280,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Event.list.3.json b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Event.list.3.jsonindex bd74903001f..7b6d6b3fcc0 100644--- a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Event.list.3.json+++ b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Event.list.3.json@@ -197,7 +197,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -434,7 +436,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -671,7 +675,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Invoice.create.1.json b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Invoice.create.1.jsonindex 2112cc1ca64..47ebccb505b 100644--- a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Invoice.create.1.json+++ b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Invoice.create.1.json@@ -191,7 +191,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Invoice.create.2.json b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Invoice.create.2.jsonindex 2a8d81e0154..d7f68294f84 100644--- a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Invoice.create.2.json+++ b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Invoice.create.2.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Invoice.finalize_invoice.1.jsonindex aa85ed9afbd..9ab449bc81f 100644--- a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Invoice.finalize_invoice.1.json+++ b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Invoice.finalize_invoice.1.json@@ -191,7 +191,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -218,5 +220,5 @@"total_excluding_tax": 22200,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null}diff --git a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Invoice.finalize_invoice.2.json b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Invoice.finalize_invoice.2.jsonindex bc6e24827c5..ed569288c64 100644--- a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Invoice.finalize_invoice.2.json+++ b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Invoice.finalize_invoice.2.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Invoice.pay.1.jsonindex 8deea5b3acd..9a25bb0f719 100644--- a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Invoice.pay.1.json+++ b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Invoice.pay.1.json@@ -191,7 +191,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--InvoiceItem.create.2.json b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--InvoiceItem.create.2.jsonindex 9d4d211c128..d53ddf90305 100644--- a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--InvoiceItem.create.2.json+++ b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--InvoiceItem.create.2.json@@ -6,7 +6,7 @@"description": "$20.00/month new customer discount","discountable": false,"discounts": [],- "id": "schedule_upgrade_to_fixed_price_annual_business_plan--Event.list.2.json",+ "id": "schedule_upgrade_to_fixed_price_annual_business_plan--InvoiceItem.create.2.json","invoice": null,"livemode": false,"metadata": {},diff --git a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--PaymentMethod.create.1.json b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--PaymentMethod.create.1.jsonindex fad02d5932f..2010845fe84 100644--- a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--PaymentMethod.create.1.json+++ b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--PaymentMethod.create.1.json@@ -6,7 +6,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -22,8 +22,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--checkout.Session.create.1.jsonindex 033bab74379..7e17dd603f8 100644--- a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--checkout.Session.create.1.json+++ b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--checkout.Session.create.1.json@@ -9,7 +9,7 @@"status": null},"billing_address_collection": "required",- "cancel_url": "http://selfhosting.testserver/realm/f6d476f5-b66f-45ce-8623-a273ff4d7787/upgrade/?manual_license_management=false&tier=1",+ "cancel_url": "http://selfhosting.testserver/realm/3383e261-95a9-4f36-ae0c-4ecf80fab561/upgrade/?manual_license_management=false&tier=1","client_reference_id": null,"client_secret": null,"consent": null,@@ -73,7 +73,7 @@"status": "open","submit_type": null,"subscription": null,- "success_url": "http://selfhosting.testserver/realm/f6d476f5-b66f-45ce-8623-a273ff4d7787/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",+ "success_url": "http://selfhosting.testserver/realm/3383e261-95a9-4f36-ae0c-4ecf80fab561/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}","total_details": null,"ui_mode": "hosted","url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED"diff --git a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--checkout.Session.list.1.jsonindex 18888889530..5e5337379d7 100644--- a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--checkout.Session.list.1.json+++ b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--checkout.Session.list.1.json@@ -11,7 +11,7 @@"status": null},"billing_address_collection": "required",- "cancel_url": "http://selfhosting.testserver/realm/f6d476f5-b66f-45ce-8623-a273ff4d7787/upgrade/?manual_license_management=false&tier=1",+ "cancel_url": "http://selfhosting.testserver/realm/3383e261-95a9-4f36-ae0c-4ecf80fab561/upgrade/?manual_license_management=false&tier=1","client_reference_id": null,"client_secret": null,"consent": null,@@ -75,7 +75,7 @@"status": "open","submit_type": null,"subscription": null,- "success_url": "http://selfhosting.testserver/realm/f6d476f5-b66f-45ce-8623-a273ff4d7787/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",+ "success_url": "http://selfhosting.testserver/realm/3383e261-95a9-4f36-ae0c-4ecf80fab561/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}","total_details": null,"ui_mode": "hosted","url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED"diff --git a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Customer.retrieve.1.jsonindex aac19a27c46..cff62ee4ddf 100644--- a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Customer.retrieve.1.json+++ b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Customer.retrieve.1.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Customer.retrieve.2.jsonindex aac19a27c46..cff62ee4ddf 100644--- a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Customer.retrieve.2.json+++ b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Customer.retrieve.2.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Customer.retrieve.3.jsonindex aac19a27c46..cff62ee4ddf 100644--- a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Customer.retrieve.3.json+++ b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Customer.retrieve.3.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Customer.retrieve.4.jsonindex aac19a27c46..cff62ee4ddf 100644--- a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Customer.retrieve.4.json+++ b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Customer.retrieve.4.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Customer.retrieve.5.jsonnew file mode 100644index 00000000000..cff62ee4ddf--- /dev/null+++ b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Customer.retrieve.5.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": null,+ "default_currency": null,+ "default_source": null,+ "delinquent": false,+ "description": "zulip (Zulip Dev)",+ "discount": null,+ "email": "[email protected]",+ "id": "sponsorship_access_for_realms_on_paid_plan--Customer.create.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "sponsorship_access_for_realms_on_paid_plan--Customer.create.1.json",+ "id": "sponsorship_access_for_realms_on_paid_plan--Customer.retrieve.1.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "realm_id": "1",+ "realm_str": "zulip"+ },+ "name": null,+ "next_invoice_sequence": 1,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Event.list.2.json b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Event.list.2.jsonindex 451223c30d8..f5fdeeebf3e 100644--- a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Event.list.2.json+++ b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Event.list.2.json@@ -33,7 +33,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -82,8 +82,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -111,6 +111,7 @@},"type": "card"},+ "radar_options": {},"receipt_email": "[email protected]","receipt_number": null,"receipt_url": "https://pay.stripe.com/receipts/invoices/NORMALIZED?s=ap",@@ -184,13 +185,142 @@"id": "sponsorship_access_for_realms_on_paid_plan--Event.list.2.json","livemode": false,"object": "event",- "pending_webhooks": 2,+ "pending_webhooks": 0,"request": {"id": "sponsorship_access_for_realms_on_paid_plan--Event.list.2.json","idempotency_key": "00000000-0000-0000-0000-000000000000"},"type": "payment_intent.succeeded"},+ {+ "api_version": "2020-08-27",+ "created": 1000000000,+ "data": {+ "object": {+ "amount": 48000,+ "amount_captured": 48000,+ "amount_refunded": 0,+ "application": null,+ "application_fee": null,+ "application_fee_amount": null,+ "balance_transaction": "txn_NORMALIZED",+ "billing_details": {+ "address": {+ "city": "San Francisco",+ "country": "US",+ "line1": "123 Main St",+ "line2": null,+ "postal_code": "12345",+ "state": "CA"+ },+ "email": null,+ "name": "John Doe",+ "phone": null+ },+ "calculated_statement_descriptor": "ZULIP CLOUD STANDARD",+ "captured": true,+ "created": 1000000000,+ "currency": "usd",+ "customer": "sponsorship_access_for_realms_on_paid_plan--Customer.create.1.json",+ "description": "Payment for Invoice",+ "destination": null,+ "dispute": null,+ "disputed": false,+ "failure_balance_transaction": null,+ "failure_code": null,+ "failure_message": null,+ "fraud_details": {},+ "id": "sponsorship_access_for_realms_on_paid_plan--Event.list.2.json",+ "invoice": "sponsorship_access_for_realms_on_paid_plan--Event.list.2.json",+ "livemode": false,+ "metadata": {},+ "object": "charge",+ "on_behalf_of": null,+ "order": null,+ "outcome": {+ "network_status": "approved_by_network",+ "reason": null,+ "risk_level": "normal",+ "risk_score": 0,+ "seller_message": "Payment complete.",+ "type": "authorized"+ },+ "paid": true,+ "payment_intent": "sponsorship_access_for_realms_on_paid_plan--Event.list.2.json",+ "payment_method": "pm_NORMALIZED",+ "payment_method_details": {+ "card": {+ "amount_authorized": 48000,+ "authorization_code": null,+ "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+ },+ "overcapture": {+ "maximum_amount_capturable": 48000,+ "status": "unavailable"+ },+ "three_d_secure": null,+ "wallet": null+ },+ "type": "card"+ },+ "radar_options": {},+ "receipt_email": "[email protected]",+ "receipt_number": null,+ "receipt_url": "https://pay.stripe.com/receipts/invoices/NORMALIZED?s=ap",+ "refunded": false,+ "refunds": {+ "data": [],+ "has_more": false,+ "object": "list",+ "total_count": 0,+ "url": "/v1/charges/sponsorship_access_for_realms_on_paid_plan--Event.list.2.json/refunds"+ },+ "review": null,+ "shipping": null,+ "source": null,+ "source_transfer": null,+ "statement_descriptor": "Zulip Cloud Standard",+ "statement_descriptor_suffix": null,+ "status": "succeeded",+ "transfer_data": null,+ "transfer_group": null+ }+ },+ "id": "sponsorship_access_for_realms_on_paid_plan--Event.list.2.json",+ "livemode": false,+ "object": "event",+ "pending_webhooks": 2,+ "request": {+ "id": "sponsorship_access_for_realms_on_paid_plan--Event.list.2.json",+ "idempotency_key": "00000000-0000-0000-0000-000000000000"+ },+ "type": "charge.succeeded"+ },{"api_version": "2020-08-27","created": 1000000000,@@ -264,7 +394,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -338,7 +468,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -451,7 +583,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -525,7 +657,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -732,7 +866,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -806,7 +940,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -864,7 +1000,7 @@"metadata": {},"object": "invoiceitem","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,diff --git a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Event.list.3.json b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Event.list.3.jsonindex 46ebc46fe71..ddb694357a8 100644--- a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Event.list.3.json+++ b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Event.list.3.json@@ -147,7 +147,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -180,7 +182,196 @@"id": "sponsorship_access_for_realms_on_paid_plan--Event.list.3.json","livemode": false,"object": "event",- "pending_webhooks": 2,+ "pending_webhooks": 0,+ "request": {+ "id": "sponsorship_access_for_realms_on_paid_plan--Event.list.2.json",+ "idempotency_key": "00000000-0000-0000-0000-000000000000"+ },+ "type": "invoice.payment_succeeded"+ },+ {+ "api_version": "2020-08-27",+ "created": 1000000000,+ "data": {+ "object": {+ "account_country": "US",+ "account_name": "Kandra Labs, Inc.",+ "account_tax_ids": null,+ "amount_due": 48000,+ "amount_paid": 48000,+ "amount_remaining": 0,+ "amount_shipping": 0,+ "application": null,+ "application_fee_amount": null,+ "attempt_count": 1,+ "attempted": true,+ "auto_advance": false,+ "automatic_tax": {+ "enabled": false,+ "liability": null,+ "status": null+ },+ "automatically_finalizes_at": null,+ "billing_reason": "manual",+ "charge": "ch_NORMALIZED",+ "collection_method": "charge_automatically",+ "created": 1000000000,+ "currency": "usd",+ "custom_fields": null,+ "customer": "cus_NORMALIZED",+ "customer_address": null,+ "customer_email": "[email protected]",+ "customer_name": null,+ "customer_phone": null,+ "customer_shipping": null,+ "customer_tax_exempt": "none",+ "customer_tax_ids": [],+ "default_payment_method": null,+ "default_source": null,+ "default_tax_rates": [],+ "description": null,+ "discount": null,+ "discounts": [],+ "due_date": null,+ "effective_at": 1000000000,+ "ending_balance": 0,+ "footer": null,+ "from_invoice": null,+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",+ "id": "sponsorship_access_for_realms_on_paid_plan--Event.list.2.json",+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",+ "issuer": {+ "type": "self"+ },+ "last_finalization_error": null,+ "latest_revision": null,+ "lines": {+ "data": [+ {+ "amount": 48000,+ "amount_excluding_tax": 48000,+ "currency": "usd",+ "description": "Zulip Cloud Standard",+ "discount_amounts": [],+ "discountable": false,+ "discounts": [],+ "id": "sponsorship_access_for_realms_on_paid_plan--Event.list.2.json",+ "invoice": "sponsorship_access_for_realms_on_paid_plan--Event.list.2.json",+ "invoice_item": "ii_NORMALIZED",+ "livemode": false,+ "metadata": {},+ "object": "line_item",+ "period": {+ "end": 1357095845,+ "start": 1325473445+ },+ "plan": null,+ "price": {+ "active": false,+ "billing_scheme": "per_unit",+ "created": 1000000000,+ "currency": "usd",+ "custom_unit_amount": null,+ "id": "sponsorship_access_for_realms_on_paid_plan--Event.list.2.json",+ "livemode": false,+ "lookup_key": null,+ "metadata": {},+ "nickname": null,+ "object": "price",+ "product": "prod_NORMALIZED",+ "recurring": null,+ "tax_behavior": "unspecified",+ "tiers_mode": null,+ "transform_quantity": null,+ "type": "one_time",+ "unit_amount": 8000,+ "unit_amount_decimal": "8000"+ },+ "proration": false,+ "proration_details": {+ "credited_items": null+ },+ "quantity": 6,+ "subscription": null,+ "tax_amounts": [],+ "tax_rates": [],+ "type": "invoiceitem",+ "unit_amount_excluding_tax": "8000"+ }+ ],+ "has_more": false,+ "object": "list",+ "total_count": 1,+ "url": "/v1/invoices/sponsorship_access_for_realms_on_paid_plan--Event.list.2.json/lines"+ },+ "livemode": false,+ "metadata": {+ "billing_schedule": "1",+ "current_plan_id": "None",+ "license_management": "automatic",+ "licenses": "6",+ "on_free_trial": "False",+ "plan_tier": "1",+ "user_id": "10"+ },+ "next_payment_attempt": null,+ "number": "NORMALIZED",+ "object": "invoice",+ "on_behalf_of": null,+ "paid": true,+ "paid_out_of_band": false,+ "payment_intent": "pi_NORMALIZED",+ "payment_settings": {+ "default_mandate": null,+ "payment_method_options": null,+ "payment_method_types": null+ },+ "period_end": 1000000000,+ "period_start": 1000000000,+ "post_payment_credit_notes_amount": 0,+ "pre_payment_credit_notes_amount": 0,+ "quote": null,+ "receipt_number": null,+ "rendering": {+ "amount_tax_display": null,+ "pdf": {+ "page_size": "letter"+ },+ "template": null,+ "template_version": null+ },+ "rendering_options": null,+ "shipping_cost": null,+ "shipping_details": null,+ "starting_balance": 0,+ "statement_descriptor": "Zulip Cloud Standard",+ "status": "paid",+ "status_transitions": {+ "finalized_at": 1000000000,+ "marked_uncollectible_at": null,+ "paid_at": 1000000000,+ "voided_at": null+ },+ "subscription": null,+ "subscription_details": {+ "metadata": null+ },+ "subtotal": 48000,+ "subtotal_excluding_tax": 48000,+ "tax": null,+ "test_clock": null,+ "total": 48000,+ "total_discount_amounts": [],+ "total_excluding_tax": 48000,+ "total_tax_amounts": [],+ "transfer_data": null,+ "webhooks_delivered_at": 1000000000+ }+ },+ "id": "sponsorship_access_for_realms_on_paid_plan--Event.list.3.json",+ "livemode": false,+ "object": "event",+ "pending_webhooks": 0,"request": {"id": "sponsorship_access_for_realms_on_paid_plan--Event.list.2.json","idempotency_key": "00000000-0000-0000-0000-000000000000"@@ -334,7 +525,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Event.list.4.json b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Event.list.4.jsonindex 120992d0a3e..6d922067afe 100644--- a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Event.list.4.json+++ b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Event.list.4.json@@ -1,193 +1,5 @@{- "data": [- {- "api_version": "2020-08-27",- "created": 1000000000,- "data": {- "object": {- "account_country": "US",- "account_name": "Kandra Labs, Inc.",- "account_tax_ids": null,- "amount_due": 48000,- "amount_paid": 48000,- "amount_remaining": 0,- "amount_shipping": 0,- "application": null,- "application_fee_amount": null,- "attempt_count": 1,- "attempted": true,- "auto_advance": false,- "automatic_tax": {- "enabled": false,- "liability": null,- "status": null- },- "automatically_finalizes_at": null,- "billing_reason": "manual",- "charge": "ch_NORMALIZED",- "collection_method": "charge_automatically",- "created": 1000000000,- "currency": "usd",- "custom_fields": null,- "customer": "cus_NORMALIZED",- "customer_address": null,- "customer_email": "[email protected]",- "customer_name": null,- "customer_phone": null,- "customer_shipping": null,- "customer_tax_exempt": "none",- "customer_tax_ids": [],- "default_payment_method": null,- "default_source": null,- "default_tax_rates": [],- "description": null,- "discount": null,- "discounts": [],- "due_date": null,- "effective_at": 1000000000,- "ending_balance": 0,- "footer": null,- "from_invoice": null,- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",- "id": "sponsorship_access_for_realms_on_paid_plan--Event.list.2.json",- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",- "issuer": {- "type": "self"- },- "last_finalization_error": null,- "latest_revision": null,- "lines": {- "data": [- {- "amount": 48000,- "amount_excluding_tax": 48000,- "currency": "usd",- "description": "Zulip Cloud Standard",- "discount_amounts": [],- "discountable": false,- "discounts": [],- "id": "sponsorship_access_for_realms_on_paid_plan--Event.list.2.json",- "invoice": "sponsorship_access_for_realms_on_paid_plan--Event.list.2.json",- "invoice_item": "ii_NORMALIZED",- "livemode": false,- "metadata": {},- "object": "line_item",- "period": {- "end": 1357095845,- "start": 1325473445- },- "plan": null,- "price": {- "active": false,- "billing_scheme": "per_unit",- "created": 1000000000,- "currency": "usd",- "custom_unit_amount": null,- "id": "sponsorship_access_for_realms_on_paid_plan--Event.list.2.json",- "livemode": false,- "lookup_key": null,- "metadata": {},- "nickname": null,- "object": "price",- "product": "prod_NORMALIZED",- "recurring": null,- "tax_behavior": "unspecified",- "tiers_mode": null,- "transform_quantity": null,- "type": "one_time",- "unit_amount": 8000,- "unit_amount_decimal": "8000"- },- "proration": false,- "proration_details": {- "credited_items": null- },- "quantity": 6,- "subscription": null,- "tax_amounts": [],- "tax_rates": [],- "type": "invoiceitem",- "unit_amount_excluding_tax": "8000"- }- ],- "has_more": false,- "object": "list",- "total_count": 1,- "url": "/v1/invoices/sponsorship_access_for_realms_on_paid_plan--Event.list.2.json/lines"- },- "livemode": false,- "metadata": {- "billing_schedule": "1",- "current_plan_id": "None",- "license_management": "automatic",- "licenses": "6",- "on_free_trial": "False",- "plan_tier": "1",- "user_id": "10"- },- "next_payment_attempt": null,- "number": "NORMALIZED",- "object": "invoice",- "on_behalf_of": null,- "paid": true,- "paid_out_of_band": false,- "payment_intent": "pi_NORMALIZED",- "payment_settings": {- "default_mandate": null,- "payment_method_options": null,- "payment_method_types": null- },- "period_end": 1000000000,- "period_start": 1000000000,- "post_payment_credit_notes_amount": 0,- "pre_payment_credit_notes_amount": 0,- "quote": null,- "receipt_number": null,- "rendering": {- "amount_tax_display": null,- "pdf": {- "page_size": "letter"- }- },- "rendering_options": null,- "shipping_cost": null,- "shipping_details": null,- "starting_balance": 0,- "statement_descriptor": "Zulip Cloud Standard",- "status": "paid",- "status_transitions": {- "finalized_at": 1000000000,- "marked_uncollectible_at": null,- "paid_at": 1000000000,- "voided_at": null- },- "subscription": null,- "subscription_details": {- "metadata": null- },- "subtotal": 48000,- "subtotal_excluding_tax": 48000,- "tax": null,- "test_clock": null,- "total": 48000,- "total_discount_amounts": [],- "total_excluding_tax": 48000,- "total_tax_amounts": [],- "transfer_data": null,- "webhooks_delivered_at": 1000000000- }- },- "id": "sponsorship_access_for_realms_on_paid_plan--Event.list.4.json",- "livemode": false,- "object": "event",- "pending_webhooks": 0,- "request": {- "id": "sponsorship_access_for_realms_on_paid_plan--Event.list.2.json",- "idempotency_key": "00000000-0000-0000-0000-000000000000"- },- "type": "invoice.payment_succeeded"- }- ],+ "data": [],"has_more": false,"object": "list","url": "/v1/events"diff --git a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Event.list.5.json b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Event.list.5.jsondeleted file mode 100644index 6d922067afe..00000000000--- a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Event.list.5.json+++ /dev/null@@ -1,6 +0,0 @@-{- "data": [],- "has_more": false,- "object": "list",- "url": "/v1/events"-}diff --git a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Invoice.create.1.json b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Invoice.create.1.jsonindex 01cb3651200..9a7d4a48bc4 100644--- a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Invoice.create.1.json+++ b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Invoice.create.1.json@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Invoice.finalize_invoice.1.jsonindex 779ff63afe8..8262c00d620 100644--- a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Invoice.finalize_invoice.1.json+++ b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Invoice.finalize_invoice.1.json@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Invoice.pay.1.jsonindex b8435d6fa75..fa2d7bc1d03 100644--- a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Invoice.pay.1.json+++ b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Invoice.pay.1.json@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--PaymentMethod.create.1.json b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--PaymentMethod.create.1.jsonindex c44e21de258..03c95292e62 100644--- a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--PaymentMethod.create.1.json+++ b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--PaymentMethod.create.1.json@@ -6,7 +6,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -22,8 +22,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Customer.retrieve.1.jsonindex 6dcda72778c..41070ccbd1d 100644--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Customer.retrieve.1.json+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Customer.retrieve.1.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Customer.retrieve.2.jsonindex 6dcda72778c..41070ccbd1d 100644--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Customer.retrieve.2.json+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Customer.retrieve.2.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Customer.retrieve.3.jsonindex 6dcda72778c..41070ccbd1d 100644--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Customer.retrieve.3.json+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Customer.retrieve.3.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Customer.retrieve.4.jsonnew file mode 100644index 00000000000..41070ccbd1d--- /dev/null+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Customer.retrieve.4.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": null,+ "default_currency": null,+ "default_source": null,+ "delinquent": false,+ "description": "zulip (Zulip Dev)",+ "discount": null,+ "email": "[email protected]",+ "id": "stripe_billing_portal_urls--Customer.create.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "stripe_billing_portal_urls--Customer.create.1.json",+ "id": "stripe_billing_portal_urls--Customer.retrieve.1.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "realm_id": "1",+ "realm_str": "zulip"+ },+ "name": null,+ "next_invoice_sequence": 1,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Event.list.2.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Event.list.2.jsonindex 7be99258309..6266734c936 100644--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Event.list.2.json+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Event.list.2.json@@ -1,5 +1,56 @@{"data": [+ {+ "api_version": "2020-08-27",+ "created": 1000000000,+ "data": {+ "object": {+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": "usd",+ "default_currency": "usd",+ "default_source": "src_NORMALIZED",+ "delinquent": false,+ "description": "zulip (Zulip Dev)",+ "discount": null,+ "email": "[email protected]",+ "id": "stripe_billing_portal_urls--Customer.create.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": "pm_NORMALIZED",+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "realm_id": "1",+ "realm_str": "zulip"+ },+ "name": null,+ "next_invoice_sequence": 2,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+ },+ "previous_attributes": {+ "default_source": null+ }+ },+ "id": "stripe_billing_portal_urls--Event.list.2.json",+ "livemode": false,+ "object": "event",+ "pending_webhooks": 0,+ "request": {+ "id": null,+ "idempotency_key": "00000000-0000-0000-0000-000000000000"+ },+ "type": "customer.updated"+ },{"api_version": "2020-08-27","created": 1000000000,@@ -147,7 +198,198 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null+ },+ "rendering_options": null,+ "shipping_cost": null,+ "shipping_details": null,+ "starting_balance": 0,+ "statement_descriptor": "Zulip Cloud Standard",+ "status": "paid",+ "status_transitions": {+ "finalized_at": 1000000000,+ "marked_uncollectible_at": null,+ "paid_at": 1000000000,+ "voided_at": null+ },+ "subscription": null,+ "subscription_details": {+ "metadata": null+ },+ "subtotal": 984000,+ "subtotal_excluding_tax": 984000,+ "tax": null,+ "test_clock": null,+ "total": 984000,+ "total_discount_amounts": [],+ "total_excluding_tax": 984000,+ "total_tax_amounts": [],+ "transfer_data": null,+ "webhooks_delivered_at": 1000000000+ }+ },+ "id": "stripe_billing_portal_urls--Event.list.2.json",+ "livemode": false,+ "object": "event",+ "pending_webhooks": 0,+ "request": {+ "id": "stripe_billing_portal_urls--Event.list.2.json",+ "idempotency_key": "00000000-0000-0000-0000-000000000000"+ },+ "type": "invoice.paid"+ },+ {+ "api_version": "2020-08-27",+ "created": 1000000000,+ "data": {+ "object": {+ "account_country": "US",+ "account_name": "Kandra Labs, Inc.",+ "account_tax_ids": null,+ "amount_due": 984000,+ "amount_paid": 0,+ "amount_remaining": 984000,+ "amount_shipping": 0,+ "application": null,+ "application_fee_amount": null,+ "attempt_count": 0,+ "attempted": false,+ "auto_advance": false,+ "automatic_tax": {+ "enabled": false,+ "liability": null,+ "status": null+ },+ "automatically_finalizes_at": null,+ "billing_reason": "manual",+ "charge": null,+ "collection_method": "send_invoice",+ "created": 1000000000,+ "currency": "usd",+ "custom_fields": null,+ "customer": "stripe_billing_portal_urls--Customer.create.1.json",+ "customer_address": null,+ "customer_email": "[email protected]",+ "customer_name": null,+ "customer_phone": null,+ "customer_shipping": null,+ "customer_tax_exempt": "none",+ "customer_tax_ids": [],+ "default_payment_method": null,+ "default_source": null,+ "default_tax_rates": [],+ "description": null,+ "discount": null,+ "discounts": [],+ "due_date": 1000000000,+ "effective_at": 1000000000,+ "ending_balance": 0,+ "footer": null,+ "from_invoice": null,+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",+ "id": "stripe_billing_portal_urls--Event.list.2.json",+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",+ "issuer": {+ "type": "self"+ },+ "last_finalization_error": null,+ "latest_revision": null,+ "lines": {+ "data": [+ {+ "amount": 984000,+ "amount_excluding_tax": 984000,+ "currency": "usd",+ "description": "Zulip Cloud Standard",+ "discount_amounts": [],+ "discountable": false,+ "discounts": [],+ "id": "stripe_billing_portal_urls--Event.list.2.json",+ "invoice": "stripe_billing_portal_urls--Event.list.2.json",+ "invoice_item": "stripe_billing_portal_urls--Event.list.2.json",+ "livemode": false,+ "metadata": {},+ "object": "line_item",+ "period": {+ "end": 1000000000,+ "start": 1000000000+ },+ "plan": null,+ "price": {+ "active": false,+ "billing_scheme": "per_unit",+ "created": 1000000000,+ "currency": "usd",+ "custom_unit_amount": null,+ "id": "stripe_billing_portal_urls--Event.list.2.json",+ "livemode": false,+ "lookup_key": null,+ "metadata": {},+ "nickname": null,+ "object": "price",+ "product": "prod_NORMALIZED",+ "recurring": null,+ "tax_behavior": "unspecified",+ "tiers_mode": null,+ "transform_quantity": null,+ "type": "one_time",+ "unit_amount": 8000,+ "unit_amount_decimal": "8000"+ },+ "proration": false,+ "proration_details": {+ "credited_items": null+ },+ "quantity": 123,+ "subscription": null,+ "tax_amounts": [],+ "tax_rates": [],+ "type": "invoiceitem",+ "unit_amount_excluding_tax": "8000"+ }+ ],+ "has_more": false,+ "object": "list",+ "total_count": 1,+ "url": "/v1/invoices/stripe_billing_portal_urls--Event.list.2.json/lines"+ },+ "livemode": false,+ "metadata": {+ "billing_schedule": "1",+ "current_plan_id": "None",+ "license_management": "manual",+ "licenses": "123",+ "on_free_trial": "False",+ "plan_tier": "1",+ "user_id": "10"+ },+ "next_payment_attempt": null,+ "number": "NORMALIZED-0001",+ "object": "invoice",+ "on_behalf_of": null,+ "paid": true,+ "paid_out_of_band": true,+ "payment_intent": null,+ "payment_settings": {+ "default_mandate": null,+ "payment_method_options": null,+ "payment_method_types": null+ },+ "period_end": 1000000000,+ "period_start": 1000000000,+ "post_payment_credit_notes_amount": 0,+ "pre_payment_credit_notes_amount": 0,+ "quote": null,+ "receipt_number": null,+ "rendering": {+ "amount_tax_display": null,+ "pdf": {+ "page_size": "letter"+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -190,7 +432,7 @@"id": "stripe_billing_portal_urls--Event.list.2.json","livemode": false,"object": "event",- "pending_webhooks": 2,+ "pending_webhooks": 0,"request": {"id": "stripe_billing_portal_urls--Event.list.2.json","idempotency_key": "00000000-0000-0000-0000-000000000000"@@ -280,116 +522,6 @@},"type": "payment_intent.canceled"},- {- "api_version": "2020-08-27",- "created": 1000000000,- "data": {- "object": {- "ach_credit_transfer": {- "account_number": "test_NORMALIZED",- "bank_name": "TEST BANK",- "fingerprint": "NORMALIZED",- "refund_account_holder_name": null,- "refund_account_holder_type": null,- "refund_routing_number": null,- "routing_number": "110000000",- "swift_code": "TSTEZ122"- },- "amount": null,- "client_secret": "NORMALIZED",- "created": 1000000000,- "currency": "usd",- "customer": "stripe_billing_portal_urls--Customer.create.1.json",- "flow": "receiver",- "id": "stripe_billing_portal_urls--Event.list.2.json",- "livemode": false,- "metadata": {},- "object": "source",- "owner": {- "address": null,- "email": "[email protected]",- "name": null,- "phone": null,- "verified_address": null,- "verified_email": null,- "verified_name": null,- "verified_phone": null- },- "receiver": {- "address": "000000000-test_NORMALIZED",- "amount_charged": 0,- "amount_received": 0,- "amount_returned": 0,- "refund_attributes_method": "email",- "refund_attributes_status": "missing"- },- "statement_descriptor": null,- "status": "pending",- "type": "ach_credit_transfer",- "usage": "reusable"- }- },- "id": "stripe_billing_portal_urls--Event.list.2.json",- "livemode": false,- "object": "event",- "pending_webhooks": 0,- "request": {- "id": null,- "idempotency_key": "00000000-0000-0000-0000-000000000000"- },- "type": "customer.source.created"- },- {- "api_version": "2020-08-27",- "created": 1000000000,- "data": {- "object": {- "address": null,- "balance": 0,- "created": 1000000000,- "currency": "usd",- "default_currency": "usd",- "default_source": "stripe_billing_portal_urls--Event.list.2.json",- "delinquent": false,- "description": "zulip (Zulip Dev)",- "discount": null,- "email": "[email protected]",- "id": "stripe_billing_portal_urls--Customer.create.1.json",- "invoice_prefix": "NORMALIZED",- "invoice_settings": {- "custom_fields": null,- "default_payment_method": "pm_NORMALIZED",- "footer": null,- "rendering_options": null- },- "livemode": false,- "metadata": {- "realm_id": "1",- "realm_str": "zulip"- },- "name": null,- "next_invoice_sequence": 2,- "object": "customer",- "phone": null,- "preferred_locales": [],- "shipping": null,- "tax_exempt": "none",- "test_clock": null- },- "previous_attributes": {- "default_source": null- }- },- "id": "stripe_billing_portal_urls--Event.list.2.json",- "livemode": false,- "object": "event",- "pending_webhooks": 0,- "request": {- "id": null,- "idempotency_key": "00000000-0000-0000-0000-000000000000"- },- "type": "customer.updated"- },{"api_version": "2020-08-27","created": 1000000000,@@ -537,7 +669,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -724,7 +858,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -1012,7 +1148,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -1167,7 +1305,7 @@"type": "customer.updated"}],- "has_more": false,+ "has_more": true,"object": "list","url": "/v1/events"}diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Event.list.3.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Event.list.3.jsonindex 7057c56670b..4e5162bdd9e 100644--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Event.list.3.json+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Event.list.3.json@@ -5,176 +5,48 @@"created": 1000000000,"data": {"object": {- "account_country": "US",- "account_name": "Kandra Labs, Inc.",- "account_tax_ids": null,- "amount_due": 984000,- "amount_paid": 0,- "amount_remaining": 984000,- "amount_shipping": 0,- "application": null,- "application_fee_amount": null,- "attempt_count": 0,- "attempted": false,- "auto_advance": false,- "automatic_tax": {- "enabled": false,- "liability": null,- "status": null+ "ach_credit_transfer": {+ "account_number": "test_NORMALIZED",+ "bank_name": "TEST BANK",+ "fingerprint": "NORMALIZED",+ "refund_account_holder_name": null,+ "refund_account_holder_type": null,+ "refund_routing_number": null,+ "routing_number": "110000000",+ "swift_code": "TSTEZ122"},- "automatically_finalizes_at": null,- "billing_reason": "manual",- "charge": null,- "collection_method": "send_invoice",+ "amount": null,+ "client_secret": "NORMALIZED","created": 1000000000,"currency": "usd",- "custom_fields": null,"customer": "cus_NORMALIZED",- "customer_address": null,- "customer_email": "[email protected]",- "customer_name": null,- "customer_phone": null,- "customer_shipping": null,- "customer_tax_exempt": "none",- "customer_tax_ids": [],- "default_payment_method": null,- "default_source": null,- "default_tax_rates": [],- "description": null,- "discount": null,- "discounts": [],- "due_date": 1000000000,- "effective_at": 1000000000,- "ending_balance": 0,- "footer": null,- "from_invoice": null,- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",- "id": "stripe_billing_portal_urls--Event.list.2.json",- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",- "issuer": {- "type": "self"- },- "last_finalization_error": null,- "latest_revision": null,- "lines": {- "data": [- {- "amount": 984000,- "amount_excluding_tax": 984000,- "currency": "usd",- "description": "Zulip Cloud Standard",- "discount_amounts": [],- "discountable": false,- "discounts": [],- "id": "stripe_billing_portal_urls--Event.list.2.json",- "invoice": "stripe_billing_portal_urls--Event.list.2.json",- "invoice_item": "ii_NORMALIZED",- "livemode": false,- "metadata": {},- "object": "line_item",- "period": {- "end": 1000000000,- "start": 1000000000- },- "plan": null,- "price": {- "active": false,- "billing_scheme": "per_unit",- "created": 1000000000,- "currency": "usd",- "custom_unit_amount": null,- "id": "stripe_billing_portal_urls--Event.list.2.json",- "livemode": false,- "lookup_key": null,- "metadata": {},- "nickname": null,- "object": "price",- "product": "prod_NORMALIZED",- "recurring": null,- "tax_behavior": "unspecified",- "tiers_mode": null,- "transform_quantity": null,- "type": "one_time",- "unit_amount": 8000,- "unit_amount_decimal": "8000"- },- "proration": false,- "proration_details": {- "credited_items": null- },- "quantity": 123,- "subscription": null,- "tax_amounts": [],- "tax_rates": [],- "type": "invoiceitem",- "unit_amount_excluding_tax": "8000"- }- ],- "has_more": false,- "object": "list",- "total_count": 1,- "url": "/v1/invoices/stripe_billing_portal_urls--Event.list.2.json/lines"- },+ "flow": "receiver",+ "id": "stripe_billing_portal_urls--Event.list.3.json","livemode": false,- "metadata": {- "billing_schedule": "1",- "current_plan_id": "None",- "license_management": "manual",- "licenses": "123",- "on_free_trial": "False",- "plan_tier": "1",- "user_id": "10"- },- "next_payment_attempt": null,- "number": "NORMALIZED",- "object": "invoice",- "on_behalf_of": null,- "paid": true,- "paid_out_of_band": true,- "payment_intent": null,- "payment_settings": {- "default_mandate": null,- "payment_method_options": null,- "payment_method_types": null- },- "period_end": 1000000000,- "period_start": 1000000000,- "post_payment_credit_notes_amount": 0,- "pre_payment_credit_notes_amount": 0,- "quote": null,- "receipt_number": null,- "rendering": {- "amount_tax_display": null,- "pdf": {- "page_size": "letter"- }- },- "rendering_options": null,- "shipping_cost": null,- "shipping_details": null,- "starting_balance": 0,- "statement_descriptor": "Zulip Cloud Standard",- "status": "paid",- "status_transitions": {- "finalized_at": 1000000000,- "marked_uncollectible_at": null,- "paid_at": 1000000000,- "voided_at": null+ "metadata": {},+ "object": "source",+ "owner": {+ "address": null,+ "email": "[email protected]",+ "name": null,+ "phone": null,+ "verified_address": null,+ "verified_email": null,+ "verified_name": null,+ "verified_phone": null},- "subscription": null,- "subscription_details": {- "metadata": null+ "receiver": {+ "address": "000000000-test_NORMALIZED",+ "amount_charged": 0,+ "amount_received": 0,+ "amount_returned": 0,+ "refund_attributes_method": "email",+ "refund_attributes_status": "missing"},- "subtotal": 984000,- "subtotal_excluding_tax": 984000,- "tax": null,- "test_clock": null,- "total": 984000,- "total_discount_amounts": [],- "total_excluding_tax": 984000,- "total_tax_amounts": [],- "transfer_data": null,- "webhooks_delivered_at": 1000000000+ "statement_descriptor": null,+ "status": "pending",+ "type": "ach_credit_transfer",+ "usage": "reusable"}},"id": "stripe_billing_portal_urls--Event.list.3.json",@@ -182,10 +54,10 @@"object": "event","pending_webhooks": 0,"request": {- "id": "stripe_billing_portal_urls--Event.list.2.json",+ "id": null,"idempotency_key": "00000000-0000-0000-0000-000000000000"},- "type": "invoice.paid"+ "type": "customer.source.created"}],"has_more": false,diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Invoice.create.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Invoice.create.1.jsonindex 66339f6117e..e2f58aebe56 100644--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Invoice.create.1.json+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Invoice.create.1.json@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Invoice.finalize_invoice.1.jsonindex f83c26300d4..d7cdb3bff8d 100644--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Invoice.finalize_invoice.1.json+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Invoice.finalize_invoice.1.json@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Invoice.pay.1.jsonindex 0fb4a51bf9c..c1d9140d539 100644--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Invoice.pay.1.json+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Invoice.pay.1.json@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--PaymentMethod.create.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--PaymentMethod.create.1.jsonindex b4455455391..8763f06509c 100644--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--PaymentMethod.create.1.json+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--PaymentMethod.create.1.json@@ -6,7 +6,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -22,8 +22,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--billing_portal.Configuration.create.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--billing_portal.Configuration.create.1.jsonindex 1b9c69064f9..948e51ca9b7 100644--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--billing_portal.Configuration.create.1.json+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--billing_portal.Configuration.create.1.json@@ -12,7 +12,8 @@"customer_update": {"allowed_updates": ["address",- "name"+ "name",+ "email"],"enabled": true},diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--billing_portal.Configuration.create.2.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--billing_portal.Configuration.create.2.jsonindex 021e8fc583b..3809095d7b9 100644--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--billing_portal.Configuration.create.2.json+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--billing_portal.Configuration.create.2.json@@ -12,7 +12,8 @@"customer_update": {"allowed_updates": ["address",- "name"+ "name",+ "email"],"enabled": true},diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.create.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.create.1.jsonindex da7376e057b..d80c32ba358 100644--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.create.1.json+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.create.1.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-95a","discount": null,"email": "[email protected]","id": "stripe_billing_portal_urls_for_remote_realm--Customer.create.1.json",@@ -20,7 +20,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-95a9-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.modify.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.modify.1.jsonindex 3e1292e17ef..46175fdc2ea 100644--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.modify.1.json+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.modify.1.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-95a","discount": null,"email": "[email protected]","id": "stripe_billing_portal_urls_for_remote_realm--Customer.create.1.json",@@ -20,7 +20,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-95a9-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.retrieve.1.jsonindex 9a56df05c88..df9db54b346 100644--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.retrieve.1.json+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.retrieve.1.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-15a","discount": null,"email": "[email protected]","id": "stripe_billing_portal_urls_for_remote_realm--Customer.create.1.json",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.retrieve.2.jsonindex 9a56df05c88..df9db54b346 100644--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.retrieve.2.json+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.retrieve.2.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-15a","discount": null,"email": "[email protected]","id": "stripe_billing_portal_urls_for_remote_realm--Customer.create.1.json",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.retrieve.3.jsonindex 9a56df05c88..df9db54b346 100644--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.retrieve.3.json+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.retrieve.3.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-15a","discount": null,"email": "[email protected]","id": "stripe_billing_portal_urls_for_remote_realm--Customer.create.1.json",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.retrieve.4.jsonindex 9a56df05c88..df9db54b346 100644--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.retrieve.4.json+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.retrieve.4.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-15a","discount": null,"email": "[email protected]","id": "stripe_billing_portal_urls_for_remote_realm--Customer.create.1.json",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.retrieve.5.jsonnew file mode 100644index 00000000000..df9db54b346--- /dev/null+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.retrieve.5.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": null,+ "default_currency": null,+ "default_source": null,+ "delinquent": false,+ "description": "zulip.testserver 3383e261-15a",+ "discount": null,+ "email": "[email protected]",+ "id": "stripe_billing_portal_urls_for_remote_realm--Customer.create.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "stripe_billing_portal_urls_for_remote_realm--Customer.create.1.json",+ "id": "stripe_billing_portal_urls_for_remote_realm--Customer.retrieve.1.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "remote_realm_host": "zulip.testserver",+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"+ },+ "name": null,+ "next_invoice_sequence": 1,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Event.list.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Event.list.1.jsonindex dcb89bb7fab..df9bdc923d1 100644--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Event.list.1.json+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Event.list.1.json@@ -12,7 +12,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-95a","discount": null,"email": "[email protected]","id": "stripe_billing_portal_urls_for_remote_realm--Customer.create.1.json",@@ -26,7 +26,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-95a9-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Event.list.2.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Event.list.2.jsonindex 4e7888b4431..fd81f33bc55 100644--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Event.list.2.json+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Event.list.2.json@@ -33,7 +33,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -82,8 +82,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -209,7 +209,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -258,8 +258,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -392,7 +392,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -443,7 +443,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -516,7 +516,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -629,7 +631,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -680,7 +682,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -753,7 +755,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -960,7 +964,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -1011,7 +1015,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -1084,7 +1088,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -1142,7 +1148,7 @@"metadata": {},"object": "invoiceitem","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -1204,7 +1210,7 @@"metadata": {},"object": "invoiceitem","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -1260,7 +1266,7 @@"default_currency": "usd","default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-15a","discount": null,"email": "[email protected]","id": "stripe_billing_portal_urls_for_remote_realm--Customer.create.1.json",@@ -1274,7 +1280,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Event.list.3.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Event.list.3.jsonindex 26e86104978..3a8665d76a8 100644--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Event.list.3.json+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Event.list.3.json@@ -117,7 +117,7 @@"discount_amounts": [],"discountable": false,"discounts": [],- "id": "stripe_billing_portal_urls_for_remote_realm--Event.list.2.json",+ "id": "stripe_billing_portal_urls_for_remote_realm--Event.list.3.json","invoice": "stripe_billing_portal_urls_for_remote_realm--Event.list.2.json","invoice_item": "ii_NORMALIZED","livemode": false,@@ -197,7 +197,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -224,15 +226,15 @@"total_excluding_tax": 176000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": null+ "webhooks_delivered_at": 1000000000}},"id": "stripe_billing_portal_urls_for_remote_realm--Event.list.3.json","livemode": false,"object": "event",- "pending_webhooks": 2,+ "pending_webhooks": 0,"request": {- "id": "stripe_billing_portal_urls_for_remote_realm--Event.list.2.json",+ "id": "stripe_billing_portal_urls_for_remote_realm--Event.list.3.json","idempotency_key": "00000000-0000-0000-0000-000000000000"},"type": "invoice.payment_succeeded"@@ -354,7 +356,7 @@"discount_amounts": [],"discountable": false,"discounts": [],- "id": "stripe_billing_portal_urls_for_remote_realm--Event.list.2.json",+ "id": "stripe_billing_portal_urls_for_remote_realm--Event.list.3.json","invoice": "stripe_billing_portal_urls_for_remote_realm--Event.list.2.json","invoice_item": "ii_NORMALIZED","livemode": false,@@ -434,7 +436,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -461,15 +465,15 @@"total_excluding_tax": 176000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": null+ "webhooks_delivered_at": 1000000000}},"id": "stripe_billing_portal_urls_for_remote_realm--Event.list.3.json","livemode": false,"object": "event",- "pending_webhooks": 1,+ "pending_webhooks": 0,"request": {- "id": "stripe_billing_portal_urls_for_remote_realm--Event.list.2.json",+ "id": "stripe_billing_portal_urls_for_remote_realm--Event.list.3.json","idempotency_key": "00000000-0000-0000-0000-000000000000"},"type": "invoice.paid"@@ -591,7 +595,7 @@"discount_amounts": [],"discountable": false,"discounts": [],- "id": "stripe_billing_portal_urls_for_remote_realm--Event.list.2.json",+ "id": "stripe_billing_portal_urls_for_remote_realm--Event.list.3.json","invoice": "stripe_billing_portal_urls_for_remote_realm--Event.list.2.json","invoice_item": "ii_NORMALIZED","livemode": false,@@ -671,7 +675,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -698,7 +704,7 @@"total_excluding_tax": 176000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": null+ "webhooks_delivered_at": 1000000000},"previous_attributes": {"amount_paid": 0,@@ -718,7 +724,7 @@"object": "event","pending_webhooks": 0,"request": {- "id": "stripe_billing_portal_urls_for_remote_realm--Event.list.2.json",+ "id": "stripe_billing_portal_urls_for_remote_realm--Event.list.3.json","idempotency_key": "00000000-0000-0000-0000-000000000000"},"type": "invoice.updated"diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Invoice.create.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Invoice.create.1.jsonindex 39fd6b6b9d5..1fbea7fde92 100644--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Invoice.create.1.json+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Invoice.create.1.json@@ -111,7 +111,7 @@"discount_amounts": [],"discountable": false,"discounts": [],- "id": "stripe_billing_portal_urls_for_remote_realm--Event.list.2.json",+ "id": "stripe_billing_portal_urls_for_remote_realm--Event.list.3.json","invoice": "stripe_billing_portal_urls_for_remote_realm--Event.list.2.json","invoice_item": "ii_NORMALIZED","livemode": false,@@ -191,7 +191,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Invoice.finalize_invoice.1.jsonindex e94637f6fdd..df6057a680f 100644--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Invoice.finalize_invoice.1.json+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Invoice.finalize_invoice.1.json@@ -111,7 +111,7 @@"discount_amounts": [],"discountable": false,"discounts": [],- "id": "stripe_billing_portal_urls_for_remote_realm--Event.list.2.json",+ "id": "stripe_billing_portal_urls_for_remote_realm--Event.list.3.json","invoice": "stripe_billing_portal_urls_for_remote_realm--Event.list.2.json","invoice_item": "ii_NORMALIZED","livemode": false,@@ -191,7 +191,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Invoice.pay.1.jsonindex 0f20db7d5a0..d09c6487435 100644--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Invoice.pay.1.json+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Invoice.pay.1.json@@ -111,7 +111,7 @@"discount_amounts": [],"discountable": false,"discounts": [],- "id": "stripe_billing_portal_urls_for_remote_realm--Event.list.2.json",+ "id": "stripe_billing_portal_urls_for_remote_realm--Event.list.3.json","invoice": "stripe_billing_portal_urls_for_remote_realm--Event.list.2.json","invoice_item": "ii_NORMALIZED","livemode": false,@@ -191,7 +191,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -218,5 +220,5 @@"total_excluding_tax": 176000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": null+ "webhooks_delivered_at": 1000000000}diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--PaymentMethod.create.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--PaymentMethod.create.1.jsonindex cb2a4cbd68d..21c39349a03 100644--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--PaymentMethod.create.1.json+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--PaymentMethod.create.1.json@@ -6,7 +6,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -22,8 +22,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--billing_portal.Configuration.create.2.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--billing_portal.Configuration.create.2.jsonindex 710cb661653..b5fbf9d44be 100644--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--billing_portal.Configuration.create.2.json+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--billing_portal.Configuration.create.2.json@@ -12,7 +12,8 @@"customer_update": {"allowed_updates": ["address",- "name"+ "name",+ "email"],"enabled": true},diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--billing_portal.Session.create.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--billing_portal.Session.create.1.jsonindex 2ebd395db66..cc822604fdd 100644--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--billing_portal.Session.create.1.json+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--billing_portal.Session.create.1.json@@ -8,6 +8,6 @@"locale": null,"object": "billing_portal.session","on_behalf_of": null,- "return_url": "http://selfhosting.testserver/realm/f6d476f5-b66f-45ce-8623-a273ff4d7787/billing/",+ "return_url": "http://selfhosting.testserver/realm/3383e261-95a9-4f36-ae0c-4ecf80fab561/billing/","url": "https://billing.stripe.com/p/session/test_NORMALIZED"}diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--billing_portal.Session.create.2.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--billing_portal.Session.create.2.jsonindex 1a40cb4e45b..88987250ab4 100644--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--billing_portal.Session.create.2.json+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--billing_portal.Session.create.2.json@@ -8,6 +8,6 @@"locale": null,"object": "billing_portal.session","on_behalf_of": null,- "return_url": "http://selfhosting.testserver/realm/f6d476f5-b66f-45ce-8623-a273ff4d7787/billing/",+ "return_url": "http://selfhosting.testserver/realm/3383e261-95a9-4f36-ae0c-4ecf80fab561/billing/","url": "https://billing.stripe.com/p/session/test_NORMALIZED"}diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--checkout.Session.create.1.jsonindex 24d12f0c848..560eadadfd5 100644--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--checkout.Session.create.1.json+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--checkout.Session.create.1.json@@ -9,7 +9,7 @@"status": null},"billing_address_collection": "required",- "cancel_url": "http://selfhosting.testserver/realm/f6d476f5-b66f-45ce-8623-a273ff4d7787/upgrade/?manual_license_management=false&tier=1",+ "cancel_url": "http://selfhosting.testserver/realm/3383e261-95a9-4f36-ae0c-4ecf80fab561/upgrade/?manual_license_management=false&tier=1","client_reference_id": null,"client_secret": null,"consent": null,@@ -73,7 +73,7 @@"status": "open","submit_type": null,"subscription": null,- "success_url": "http://selfhosting.testserver/realm/f6d476f5-b66f-45ce-8623-a273ff4d7787/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",+ "success_url": "http://selfhosting.testserver/realm/3383e261-95a9-4f36-ae0c-4ecf80fab561/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}","total_details": null,"ui_mode": "hosted","url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED"diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--checkout.Session.list.1.jsonindex 507e15aa095..b40eb6ccfa5 100644--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--checkout.Session.list.1.json+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--checkout.Session.list.1.json@@ -11,7 +11,7 @@"status": null},"billing_address_collection": "required",- "cancel_url": "http://selfhosting.testserver/realm/f6d476f5-b66f-45ce-8623-a273ff4d7787/upgrade/?manual_license_management=false&tier=1",+ "cancel_url": "http://selfhosting.testserver/realm/3383e261-95a9-4f36-ae0c-4ecf80fab561/upgrade/?manual_license_management=false&tier=1","client_reference_id": null,"client_secret": null,"consent": null,@@ -75,7 +75,7 @@"status": "open","submit_type": null,"subscription": null,- "success_url": "http://selfhosting.testserver/realm/f6d476f5-b66f-45ce-8623-a273ff4d7787/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",+ "success_url": "http://selfhosting.testserver/realm/3383e261-95a9-4f36-ae0c-4ecf80fab561/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}","total_details": null,"ui_mode": "hosted","url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED"diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--Customer.retrieve.1.jsonindex 874cf6bdf37..c33020ef8f7 100644--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--Customer.retrieve.1.json+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--Customer.retrieve.1.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--Customer.retrieve.2.jsonindex 874cf6bdf37..c33020ef8f7 100644--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--Customer.retrieve.2.json+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--Customer.retrieve.2.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--Customer.retrieve.3.jsonindex 874cf6bdf37..c33020ef8f7 100644--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--Customer.retrieve.3.json+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--Customer.retrieve.3.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--Customer.retrieve.4.jsonindex 874cf6bdf37..c33020ef8f7 100644--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--Customer.retrieve.4.json+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--Customer.retrieve.4.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--Customer.retrieve.5.jsonnew file mode 100644index 00000000000..c33020ef8f7--- /dev/null+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--Customer.retrieve.5.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": null,+ "default_currency": null,+ "default_source": null,+ "delinquent": false,+ "description": "demo.example.com 6cde5f7a-1f7",+ "discount": null,+ "email": "[email protected]",+ "id": "stripe_billing_portal_urls_for_remote_server--Customer.create.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "stripe_billing_portal_urls_for_remote_server--Customer.create.1.json",+ "id": "stripe_billing_portal_urls_for_remote_server--Customer.retrieve.1.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "remote_server_str": "demo.example.com 6cde5f7a-1f7",+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"+ },+ "name": null,+ "next_invoice_sequence": 1,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--Event.list.2.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--Event.list.2.jsonindex 3c0c941b11e..a7e99abbe3d 100644--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--Event.list.2.json+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--Event.list.2.json@@ -33,7 +33,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -82,8 +82,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -209,7 +209,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -258,8 +258,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -392,7 +392,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -443,7 +443,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -516,7 +516,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -629,7 +631,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -680,7 +682,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -753,7 +755,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -960,7 +964,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -1011,7 +1015,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -1084,7 +1088,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -1142,7 +1148,7 @@"metadata": {},"object": "invoiceitem","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -1204,7 +1210,7 @@"metadata": {},"object": "invoiceitem","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -1274,7 +1280,7 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--Event.list.3.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--Event.list.3.jsonindex fd341297d6f..8c6abe1e931 100644--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--Event.list.3.json+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--Event.list.3.json@@ -197,7 +197,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -230,7 +232,7 @@"id": "stripe_billing_portal_urls_for_remote_server--Event.list.3.json","livemode": false,"object": "event",- "pending_webhooks": 0,+ "pending_webhooks": 2,"request": {"id": "stripe_billing_portal_urls_for_remote_server--Event.list.2.json","idempotency_key": "00000000-0000-0000-0000-000000000000"@@ -434,7 +436,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -671,7 +675,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--Invoice.create.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--Invoice.create.1.jsonindex 3e6fb7491ab..d52f6de44be 100644--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--Invoice.create.1.json+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--Invoice.create.1.json@@ -191,7 +191,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--Invoice.finalize_invoice.1.jsonindex 6be533010db..d70ebc8805b 100644--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--Invoice.finalize_invoice.1.json+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--Invoice.finalize_invoice.1.json@@ -191,7 +191,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--Invoice.pay.1.jsonindex 9ae10154fed..a25617e4c22 100644--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--Invoice.pay.1.json+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--Invoice.pay.1.json@@ -191,7 +191,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--PaymentMethod.create.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--PaymentMethod.create.1.jsonindex f9dd84e6ef6..c864177993a 100644--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--PaymentMethod.create.1.json+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--PaymentMethod.create.1.json@@ -6,7 +6,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -22,8 +22,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--billing_portal.Configuration.create.2.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--billing_portal.Configuration.create.2.jsonindex 67e9ec24c12..886df9f7b4e 100644--- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--billing_portal.Configuration.create.2.json+++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--billing_portal.Configuration.create.2.json@@ -12,7 +12,8 @@"customer_update": {"allowed_updates": ["address",- "name"+ "name",+ "email"],"enabled": true},diff --git a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Customer.retrieve.1.jsonindex 0c6381e7092..9cf2765036b 100644--- a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Customer.retrieve.1.json+++ b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Customer.retrieve.1.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Customer.retrieve.2.jsonindex 0c6381e7092..9cf2765036b 100644--- a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Customer.retrieve.2.json+++ b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Customer.retrieve.2.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Customer.retrieve.3.jsonindex 0c6381e7092..9cf2765036b 100644--- a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Customer.retrieve.3.json+++ b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Customer.retrieve.3.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Customer.retrieve.4.jsonindex 0c6381e7092..9cf2765036b 100644--- a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Customer.retrieve.4.json+++ b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Customer.retrieve.4.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Customer.retrieve.5.jsonindex aa01c4c2c09..9cf2765036b 100644--- a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Customer.retrieve.5.json+++ b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Customer.retrieve.5.json@@ -2,8 +2,8 @@"address": null,"balance": 0,"created": 1000000000,- "currency": "usd",- "default_currency": "usd",+ "currency": null,+ "default_currency": null,"default_source": null,"delinquent": false,"description": "zulip (Zulip Dev)",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -71,7 +71,7 @@"realm_str": "zulip"},"name": null,- "next_invoice_sequence": 2,+ "next_invoice_sequence": 1,"object": "customer","phone": null,"preferred_locales": [],diff --git a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Customer.retrieve.6.json b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Customer.retrieve.6.jsonindex d04e59b69bd..491ebb01f2d 100644--- a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Customer.retrieve.6.json+++ b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Customer.retrieve.6.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -71,7 +71,7 @@"realm_str": "zulip"},"name": null,- "next_invoice_sequence": 4,+ "next_invoice_sequence": 2,"object": "customer","phone": null,"preferred_locales": [],diff --git a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Customer.retrieve.7.json b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Customer.retrieve.7.jsonnew file mode 100644index 00000000000..5d7a210114a--- /dev/null+++ b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Customer.retrieve.7.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": "usd",+ "default_currency": "usd",+ "default_source": null,+ "delinquent": false,+ "description": "zulip (Zulip Dev)",+ "discount": null,+ "email": "[email protected]",+ "id": "switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Customer.create.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Customer.create.1.json",+ "id": "switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Customer.retrieve.1.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "realm_id": "1",+ "realm_str": "zulip"+ },+ "name": null,+ "next_invoice_sequence": 4,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.2.json b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.2.jsonindex a2cba6bdf82..a10f7e86fb3 100644--- a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.2.json+++ b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.2.json@@ -33,7 +33,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -82,8 +82,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -111,6 +111,7 @@},"type": "card"},+ "radar_options": {},"receipt_email": "[email protected]","receipt_number": null,"receipt_url": "https://pay.stripe.com/receipts/invoices/NORMALIZED?s=ap",@@ -184,13 +185,142 @@"id": "switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.2.json","livemode": false,"object": "event",- "pending_webhooks": 2,+ "pending_webhooks": 0,"request": {"id": "switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.2.json","idempotency_key": "00000000-0000-0000-0000-000000000000"},"type": "payment_intent.succeeded"},+ {+ "api_version": "2020-08-27",+ "created": 1000000000,+ "data": {+ "object": {+ "amount": 48000,+ "amount_captured": 48000,+ "amount_refunded": 0,+ "application": null,+ "application_fee": null,+ "application_fee_amount": null,+ "balance_transaction": "txn_NORMALIZED",+ "billing_details": {+ "address": {+ "city": "San Francisco",+ "country": "US",+ "line1": "123 Main St",+ "line2": null,+ "postal_code": "12345",+ "state": "CA"+ },+ "email": null,+ "name": "John Doe",+ "phone": null+ },+ "calculated_statement_descriptor": "ZULIP CLOUD STANDARD",+ "captured": true,+ "created": 1000000000,+ "currency": "usd",+ "customer": "switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Customer.create.1.json",+ "description": "Payment for Invoice",+ "destination": null,+ "dispute": null,+ "disputed": false,+ "failure_balance_transaction": null,+ "failure_code": null,+ "failure_message": null,+ "fraud_details": {},+ "id": "switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.2.json",+ "invoice": "switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.2.json",+ "livemode": false,+ "metadata": {},+ "object": "charge",+ "on_behalf_of": null,+ "order": null,+ "outcome": {+ "network_status": "approved_by_network",+ "reason": null,+ "risk_level": "normal",+ "risk_score": 0,+ "seller_message": "Payment complete.",+ "type": "authorized"+ },+ "paid": true,+ "payment_intent": "switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.2.json",+ "payment_method": "pm_NORMALIZED",+ "payment_method_details": {+ "card": {+ "amount_authorized": 48000,+ "authorization_code": null,+ "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+ },+ "overcapture": {+ "maximum_amount_capturable": 48000,+ "status": "unavailable"+ },+ "three_d_secure": null,+ "wallet": null+ },+ "type": "card"+ },+ "radar_options": {},+ "receipt_email": "[email protected]",+ "receipt_number": null,+ "receipt_url": "https://pay.stripe.com/receipts/invoices/NORMALIZED?s=ap",+ "refunded": false,+ "refunds": {+ "data": [],+ "has_more": false,+ "object": "list",+ "total_count": 0,+ "url": "/v1/charges/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.2.json/refunds"+ },+ "review": null,+ "shipping": null,+ "source": null,+ "source_transfer": null,+ "statement_descriptor": "Zulip Cloud Standard",+ "statement_descriptor_suffix": null,+ "status": "succeeded",+ "transfer_data": null,+ "transfer_group": null+ }+ },+ "id": "switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.2.json",+ "livemode": false,+ "object": "event",+ "pending_webhooks": 2,+ "request": {+ "id": "switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.2.json",+ "idempotency_key": "00000000-0000-0000-0000-000000000000"+ },+ "type": "charge.succeeded"+ },{"api_version": "2020-08-27","created": 1000000000,@@ -264,7 +394,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -338,7 +468,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -451,7 +583,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -525,7 +657,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -732,7 +866,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -806,7 +940,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -864,7 +1000,7 @@"metadata": {},"object": "invoiceitem","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,diff --git a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.3.json b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.3.jsonindex 126a4d00513..8a2260e2dd6 100644--- a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.3.json+++ b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.3.json@@ -147,7 +147,387 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null+ },+ "rendering_options": null,+ "shipping_cost": null,+ "shipping_details": null,+ "starting_balance": 0,+ "statement_descriptor": "Zulip Cloud Standard",+ "status": "paid",+ "status_transitions": {+ "finalized_at": 1000000000,+ "marked_uncollectible_at": null,+ "paid_at": 1000000000,+ "voided_at": null+ },+ "subscription": null,+ "subscription_details": {+ "metadata": null+ },+ "subtotal": 48000,+ "subtotal_excluding_tax": 48000,+ "tax": null,+ "test_clock": null,+ "total": 48000,+ "total_discount_amounts": [],+ "total_excluding_tax": 48000,+ "total_tax_amounts": [],+ "transfer_data": null,+ "webhooks_delivered_at": 1000000000+ }+ },+ "id": "switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.3.json",+ "livemode": false,+ "object": "event",+ "pending_webhooks": 2,+ "request": {+ "id": "switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.2.json",+ "idempotency_key": "00000000-0000-0000-0000-000000000000"+ },+ "type": "invoice.payment_succeeded"+ },+ {+ "api_version": "2020-08-27",+ "created": 1000000000,+ "data": {+ "object": {+ "account_country": "US",+ "account_name": "Kandra Labs, Inc.",+ "account_tax_ids": null,+ "amount_due": 48000,+ "amount_paid": 48000,+ "amount_remaining": 0,+ "amount_shipping": 0,+ "application": null,+ "application_fee_amount": null,+ "attempt_count": 1,+ "attempted": true,+ "auto_advance": false,+ "automatic_tax": {+ "enabled": false,+ "liability": null,+ "status": null+ },+ "automatically_finalizes_at": null,+ "billing_reason": "manual",+ "charge": "ch_NORMALIZED",+ "collection_method": "charge_automatically",+ "created": 1000000000,+ "currency": "usd",+ "custom_fields": null,+ "customer": "cus_NORMALIZED",+ "customer_address": null,+ "customer_email": "[email protected]",+ "customer_name": null,+ "customer_phone": null,+ "customer_shipping": null,+ "customer_tax_exempt": "none",+ "customer_tax_ids": [],+ "default_payment_method": null,+ "default_source": null,+ "default_tax_rates": [],+ "description": null,+ "discount": null,+ "discounts": [],+ "due_date": null,+ "effective_at": 1000000000,+ "ending_balance": 0,+ "footer": null,+ "from_invoice": null,+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",+ "id": "switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.2.json",+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",+ "issuer": {+ "type": "self"+ },+ "last_finalization_error": null,+ "latest_revision": null,+ "lines": {+ "data": [+ {+ "amount": 48000,+ "amount_excluding_tax": 48000,+ "currency": "usd",+ "description": "Zulip Cloud Standard",+ "discount_amounts": [],+ "discountable": false,+ "discounts": [],+ "id": "switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.2.json",+ "invoice": "switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.2.json",+ "invoice_item": "ii_NORMALIZED",+ "livemode": false,+ "metadata": {},+ "object": "line_item",+ "period": {+ "end": 1357095845,+ "start": 1325473445+ },+ "plan": null,+ "price": {+ "active": false,+ "billing_scheme": "per_unit",+ "created": 1000000000,+ "currency": "usd",+ "custom_unit_amount": null,+ "id": "switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.2.json",+ "livemode": false,+ "lookup_key": null,+ "metadata": {},+ "nickname": null,+ "object": "price",+ "product": "prod_NORMALIZED",+ "recurring": null,+ "tax_behavior": "unspecified",+ "tiers_mode": null,+ "transform_quantity": null,+ "type": "one_time",+ "unit_amount": 8000,+ "unit_amount_decimal": "8000"+ },+ "proration": false,+ "proration_details": {+ "credited_items": null+ },+ "quantity": 6,+ "subscription": null,+ "tax_amounts": [],+ "tax_rates": [],+ "type": "invoiceitem",+ "unit_amount_excluding_tax": "8000"+ }+ ],+ "has_more": false,+ "object": "list",+ "total_count": 1,+ "url": "/v1/invoices/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.2.json/lines"+ },+ "livemode": false,+ "metadata": {+ "billing_schedule": "1",+ "current_plan_id": "None",+ "license_management": "automatic",+ "licenses": "6",+ "on_free_trial": "False",+ "plan_tier": "1",+ "user_id": "10"+ },+ "next_payment_attempt": null,+ "number": "NORMALIZED",+ "object": "invoice",+ "on_behalf_of": null,+ "paid": true,+ "paid_out_of_band": false,+ "payment_intent": "pi_NORMALIZED",+ "payment_settings": {+ "default_mandate": null,+ "payment_method_options": null,+ "payment_method_types": null+ },+ "period_end": 1000000000,+ "period_start": 1000000000,+ "post_payment_credit_notes_amount": 0,+ "pre_payment_credit_notes_amount": 0,+ "quote": null,+ "receipt_number": null,+ "rendering": {+ "amount_tax_display": null,+ "pdf": {+ "page_size": "letter"+ },+ "template": null,+ "template_version": null+ },+ "rendering_options": null,+ "shipping_cost": null,+ "shipping_details": null,+ "starting_balance": 0,+ "statement_descriptor": "Zulip Cloud Standard",+ "status": "paid",+ "status_transitions": {+ "finalized_at": 1000000000,+ "marked_uncollectible_at": null,+ "paid_at": 1000000000,+ "voided_at": null+ },+ "subscription": null,+ "subscription_details": {+ "metadata": null+ },+ "subtotal": 48000,+ "subtotal_excluding_tax": 48000,+ "tax": null,+ "test_clock": null,+ "total": 48000,+ "total_discount_amounts": [],+ "total_excluding_tax": 48000,+ "total_tax_amounts": [],+ "transfer_data": null,+ "webhooks_delivered_at": 1000000000+ }+ },+ "id": "switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.3.json",+ "livemode": false,+ "object": "event",+ "pending_webhooks": 0,+ "request": {+ "id": "switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.2.json",+ "idempotency_key": "00000000-0000-0000-0000-000000000000"+ },+ "type": "invoice.paid"+ },+ {+ "api_version": "2020-08-27",+ "created": 1000000000,+ "data": {+ "object": {+ "account_country": "US",+ "account_name": "Kandra Labs, Inc.",+ "account_tax_ids": null,+ "amount_due": 48000,+ "amount_paid": 48000,+ "amount_remaining": 0,+ "amount_shipping": 0,+ "application": null,+ "application_fee_amount": null,+ "attempt_count": 1,+ "attempted": true,+ "auto_advance": false,+ "automatic_tax": {+ "enabled": false,+ "liability": null,+ "status": null+ },+ "automatically_finalizes_at": null,+ "billing_reason": "manual",+ "charge": "ch_NORMALIZED",+ "collection_method": "charge_automatically",+ "created": 1000000000,+ "currency": "usd",+ "custom_fields": null,+ "customer": "cus_NORMALIZED",+ "customer_address": null,+ "customer_email": "[email protected]",+ "customer_name": null,+ "customer_phone": null,+ "customer_shipping": null,+ "customer_tax_exempt": "none",+ "customer_tax_ids": [],+ "default_payment_method": null,+ "default_source": null,+ "default_tax_rates": [],+ "description": null,+ "discount": null,+ "discounts": [],+ "due_date": null,+ "effective_at": 1000000000,+ "ending_balance": 0,+ "footer": null,+ "from_invoice": null,+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",+ "id": "switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.2.json",+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",+ "issuer": {+ "type": "self"+ },+ "last_finalization_error": null,+ "latest_revision": null,+ "lines": {+ "data": [+ {+ "amount": 48000,+ "amount_excluding_tax": 48000,+ "currency": "usd",+ "description": "Zulip Cloud Standard",+ "discount_amounts": [],+ "discountable": false,+ "discounts": [],+ "id": "switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.2.json",+ "invoice": "switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.2.json",+ "invoice_item": "ii_NORMALIZED",+ "livemode": false,+ "metadata": {},+ "object": "line_item",+ "period": {+ "end": 1357095845,+ "start": 1325473445+ },+ "plan": null,+ "price": {+ "active": false,+ "billing_scheme": "per_unit",+ "created": 1000000000,+ "currency": "usd",+ "custom_unit_amount": null,+ "id": "switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.2.json",+ "livemode": false,+ "lookup_key": null,+ "metadata": {},+ "nickname": null,+ "object": "price",+ "product": "prod_NORMALIZED",+ "recurring": null,+ "tax_behavior": "unspecified",+ "tiers_mode": null,+ "transform_quantity": null,+ "type": "one_time",+ "unit_amount": 8000,+ "unit_amount_decimal": "8000"+ },+ "proration": false,+ "proration_details": {+ "credited_items": null+ },+ "quantity": 6,+ "subscription": null,+ "tax_amounts": [],+ "tax_rates": [],+ "type": "invoiceitem",+ "unit_amount_excluding_tax": "8000"+ }+ ],+ "has_more": false,+ "object": "list",+ "total_count": 1,+ "url": "/v1/invoices/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.2.json/lines"+ },+ "livemode": false,+ "metadata": {+ "billing_schedule": "1",+ "current_plan_id": "None",+ "license_management": "automatic",+ "licenses": "6",+ "on_free_trial": "False",+ "plan_tier": "1",+ "user_id": "10"+ },+ "next_payment_attempt": null,+ "number": "NORMALIZED",+ "object": "invoice",+ "on_behalf_of": null,+ "paid": true,+ "paid_out_of_band": false,+ "payment_intent": "pi_NORMALIZED",+ "payment_settings": {+ "default_mandate": null,+ "payment_method_options": null,+ "payment_method_types": null+ },+ "period_end": 1000000000,+ "period_start": 1000000000,+ "post_payment_credit_notes_amount": 0,+ "pre_payment_credit_notes_amount": 0,+ "quote": null,+ "receipt_number": null,+ "rendering": {+ "amount_tax_display": null,+ "pdf": {+ "page_size": "letter"+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -192,7 +572,7 @@"id": "switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.3.json","livemode": false,"object": "event",- "pending_webhooks": 2,+ "pending_webhooks": 0,"request": {"id": "switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.2.json","idempotency_key": "00000000-0000-0000-0000-000000000000"diff --git a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.4.json b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.4.jsonindex 7ab564ee985..6d922067afe 100644--- a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.4.json+++ b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.4.json@@ -1,380 +1,5 @@{- "data": [- {- "api_version": "2020-08-27",- "created": 1000000000,- "data": {- "object": {- "account_country": "US",- "account_name": "Kandra Labs, Inc.",- "account_tax_ids": null,- "amount_due": 48000,- "amount_paid": 48000,- "amount_remaining": 0,- "amount_shipping": 0,- "application": null,- "application_fee_amount": null,- "attempt_count": 1,- "attempted": true,- "auto_advance": false,- "automatic_tax": {- "enabled": false,- "liability": null,- "status": null- },- "automatically_finalizes_at": null,- "billing_reason": "manual",- "charge": "ch_NORMALIZED",- "collection_method": "charge_automatically",- "created": 1000000000,- "currency": "usd",- "custom_fields": null,- "customer": "cus_NORMALIZED",- "customer_address": null,- "customer_email": "[email protected]",- "customer_name": null,- "customer_phone": null,- "customer_shipping": null,- "customer_tax_exempt": "none",- "customer_tax_ids": [],- "default_payment_method": null,- "default_source": null,- "default_tax_rates": [],- "description": null,- "discount": null,- "discounts": [],- "due_date": null,- "effective_at": 1000000000,- "ending_balance": 0,- "footer": null,- "from_invoice": null,- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",- "id": "switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.2.json",- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",- "issuer": {- "type": "self"- },- "last_finalization_error": null,- "latest_revision": null,- "lines": {- "data": [- {- "amount": 48000,- "amount_excluding_tax": 48000,- "currency": "usd",- "description": "Zulip Cloud Standard",- "discount_amounts": [],- "discountable": false,- "discounts": [],- "id": "switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.2.json",- "invoice": "switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.2.json",- "invoice_item": "ii_NORMALIZED",- "livemode": false,- "metadata": {},- "object": "line_item",- "period": {- "end": 1357095845,- "start": 1325473445- },- "plan": null,- "price": {- "active": false,- "billing_scheme": "per_unit",- "created": 1000000000,- "currency": "usd",- "custom_unit_amount": null,- "id": "switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.2.json",- "livemode": false,- "lookup_key": null,- "metadata": {},- "nickname": null,- "object": "price",- "product": "prod_NORMALIZED",- "recurring": null,- "tax_behavior": "unspecified",- "tiers_mode": null,- "transform_quantity": null,- "type": "one_time",- "unit_amount": 8000,- "unit_amount_decimal": "8000"- },- "proration": false,- "proration_details": {- "credited_items": null- },- "quantity": 6,- "subscription": null,- "tax_amounts": [],- "tax_rates": [],- "type": "invoiceitem",- "unit_amount_excluding_tax": "8000"- }- ],- "has_more": false,- "object": "list",- "total_count": 1,- "url": "/v1/invoices/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.2.json/lines"- },- "livemode": false,- "metadata": {- "billing_schedule": "1",- "current_plan_id": "None",- "license_management": "automatic",- "licenses": "6",- "on_free_trial": "False",- "plan_tier": "1",- "user_id": "10"- },- "next_payment_attempt": null,- "number": "NORMALIZED",- "object": "invoice",- "on_behalf_of": null,- "paid": true,- "paid_out_of_band": false,- "payment_intent": "pi_NORMALIZED",- "payment_settings": {- "default_mandate": null,- "payment_method_options": null,- "payment_method_types": null- },- "period_end": 1000000000,- "period_start": 1000000000,- "post_payment_credit_notes_amount": 0,- "pre_payment_credit_notes_amount": 0,- "quote": null,- "receipt_number": null,- "rendering": {- "amount_tax_display": null,- "pdf": {- "page_size": "letter"- }- },- "rendering_options": null,- "shipping_cost": null,- "shipping_details": null,- "starting_balance": 0,- "statement_descriptor": "Zulip Cloud Standard",- "status": "paid",- "status_transitions": {- "finalized_at": 1000000000,- "marked_uncollectible_at": null,- "paid_at": 1000000000,- "voided_at": null- },- "subscription": null,- "subscription_details": {- "metadata": null- },- "subtotal": 48000,- "subtotal_excluding_tax": 48000,- "tax": null,- "test_clock": null,- "total": 48000,- "total_discount_amounts": [],- "total_excluding_tax": 48000,- "total_tax_amounts": [],- "transfer_data": null,- "webhooks_delivered_at": 1000000000- }- },- "id": "switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.4.json",- "livemode": false,- "object": "event",- "pending_webhooks": 0,- "request": {- "id": "switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.2.json",- "idempotency_key": "00000000-0000-0000-0000-000000000000"- },- "type": "invoice.payment_succeeded"- },- {- "api_version": "2020-08-27",- "created": 1000000000,- "data": {- "object": {- "account_country": "US",- "account_name": "Kandra Labs, Inc.",- "account_tax_ids": null,- "amount_due": 48000,- "amount_paid": 48000,- "amount_remaining": 0,- "amount_shipping": 0,- "application": null,- "application_fee_amount": null,- "attempt_count": 1,- "attempted": true,- "auto_advance": false,- "automatic_tax": {- "enabled": false,- "liability": null,- "status": null- },- "automatically_finalizes_at": null,- "billing_reason": "manual",- "charge": "ch_NORMALIZED",- "collection_method": "charge_automatically",- "created": 1000000000,- "currency": "usd",- "custom_fields": null,- "customer": "cus_NORMALIZED",- "customer_address": null,- "customer_email": "[email protected]",- "customer_name": null,- "customer_phone": null,- "customer_shipping": null,- "customer_tax_exempt": "none",- "customer_tax_ids": [],- "default_payment_method": null,- "default_source": null,- "default_tax_rates": [],- "description": null,- "discount": null,- "discounts": [],- "due_date": null,- "effective_at": 1000000000,- "ending_balance": 0,- "footer": null,- "from_invoice": null,- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",- "id": "switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.2.json",- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",- "issuer": {- "type": "self"- },- "last_finalization_error": null,- "latest_revision": null,- "lines": {- "data": [- {- "amount": 48000,- "amount_excluding_tax": 48000,- "currency": "usd",- "description": "Zulip Cloud Standard",- "discount_amounts": [],- "discountable": false,- "discounts": [],- "id": "switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.2.json",- "invoice": "switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.2.json",- "invoice_item": "ii_NORMALIZED",- "livemode": false,- "metadata": {},- "object": "line_item",- "period": {- "end": 1357095845,- "start": 1325473445- },- "plan": null,- "price": {- "active": false,- "billing_scheme": "per_unit",- "created": 1000000000,- "currency": "usd",- "custom_unit_amount": null,- "id": "switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.2.json",- "livemode": false,- "lookup_key": null,- "metadata": {},- "nickname": null,- "object": "price",- "product": "prod_NORMALIZED",- "recurring": null,- "tax_behavior": "unspecified",- "tiers_mode": null,- "transform_quantity": null,- "type": "one_time",- "unit_amount": 8000,- "unit_amount_decimal": "8000"- },- "proration": false,- "proration_details": {- "credited_items": null- },- "quantity": 6,- "subscription": null,- "tax_amounts": [],- "tax_rates": [],- "type": "invoiceitem",- "unit_amount_excluding_tax": "8000"- }- ],- "has_more": false,- "object": "list",- "total_count": 1,- "url": "/v1/invoices/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.2.json/lines"- },- "livemode": false,- "metadata": {- "billing_schedule": "1",- "current_plan_id": "None",- "license_management": "automatic",- "licenses": "6",- "on_free_trial": "False",- "plan_tier": "1",- "user_id": "10"- },- "next_payment_attempt": null,- "number": "NORMALIZED",- "object": "invoice",- "on_behalf_of": null,- "paid": true,- "paid_out_of_band": false,- "payment_intent": "pi_NORMALIZED",- "payment_settings": {- "default_mandate": null,- "payment_method_options": null,- "payment_method_types": null- },- "period_end": 1000000000,- "period_start": 1000000000,- "post_payment_credit_notes_amount": 0,- "pre_payment_credit_notes_amount": 0,- "quote": null,- "receipt_number": null,- "rendering": {- "amount_tax_display": null,- "pdf": {- "page_size": "letter"- }- },- "rendering_options": null,- "shipping_cost": null,- "shipping_details": null,- "starting_balance": 0,- "statement_descriptor": "Zulip Cloud Standard",- "status": "paid",- "status_transitions": {- "finalized_at": 1000000000,- "marked_uncollectible_at": null,- "paid_at": 1000000000,- "voided_at": null- },- "subscription": null,- "subscription_details": {- "metadata": null- },- "subtotal": 48000,- "subtotal_excluding_tax": 48000,- "tax": null,- "test_clock": null,- "total": 48000,- "total_discount_amounts": [],- "total_excluding_tax": 48000,- "total_tax_amounts": [],- "transfer_data": null,- "webhooks_delivered_at": 1000000000- }- },- "id": "switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.4.json",- "livemode": false,- "object": "event",- "pending_webhooks": 0,- "request": {- "id": "switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.2.json",- "idempotency_key": "00000000-0000-0000-0000-000000000000"- },- "type": "invoice.paid"- }- ],+ "data": [],"has_more": false,"object": "list","url": "/v1/events"diff --git a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.5.json b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.5.jsondeleted file mode 100644index 6d922067afe..00000000000--- a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.5.json+++ /dev/null@@ -1,6 +0,0 @@-{- "data": [],- "has_more": false,- "object": "list",- "url": "/v1/events"-}diff --git a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Invoice.create.1.json b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Invoice.create.1.jsonindex 3ae71a860ea..345977edb4f 100644--- a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Invoice.create.1.json+++ b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Invoice.create.1.json@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Invoice.create.2.json b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Invoice.create.2.jsonindex badc1a59d60..84d396c2739 100644--- a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Invoice.create.2.json+++ b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Invoice.create.2.json@@ -184,7 +184,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Invoice.create.3.json b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Invoice.create.3.jsonindex c5ce3015599..aa889d12a24 100644--- a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Invoice.create.3.json+++ b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Invoice.create.3.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Invoice.finalize_invoice.1.jsonindex fff835643a7..f49383f1c95 100644--- a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Invoice.finalize_invoice.1.json+++ b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Invoice.finalize_invoice.1.json@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,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.jsonindex d0aeae4e925..cce180542e8 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@@ -184,7 +184,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Invoice.finalize_invoice.3.json b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Invoice.finalize_invoice.3.jsonindex e748db134c9..880a39e6771 100644--- a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Invoice.finalize_invoice.3.json+++ b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Invoice.finalize_invoice.3.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,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.jsonindex fc2cd1a5ef8..4a8e0a098c8 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@@ -186,7 +186,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -358,7 +360,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,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.jsonindex 35ddabadfe1..7929042685e 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@@ -135,7 +135,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -162,7 +164,7 @@"total_excluding_tax": 20000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null},{"account_country": "US",@@ -350,7 +352,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -522,7 +526,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Invoice.pay.1.jsonindex 77c17f94ad2..9e7313928c9 100644--- a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Invoice.pay.1.json+++ b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Invoice.pay.1.json@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--PaymentMethod.create.1.json b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--PaymentMethod.create.1.jsonindex 64dd2a15bf4..c0fde001282 100644--- a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--PaymentMethod.create.1.json+++ b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--PaymentMethod.create.1.json@@ -6,7 +6,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -22,8 +22,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.retrieve.1.jsonindex dbe1137ac9e..ebef1811ad8 100644--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.retrieve.1.json+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.retrieve.1.json@@ -9,7 +9,7 @@"description": "zulip (Zulip Dev)","discount": null,"email": "[email protected]",- "id": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.create.1.json",+ "id": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.retrieve.1.json","invoice_prefix": "NORMALIZED","invoice_settings": {"custom_fields": null,@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -55,7 +55,7 @@"wallet": null},"created": 1000000000,- "customer": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.create.1.json",+ "customer": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.retrieve.1.json","id": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.retrieve.1.json","livemode": false,"metadata": {},diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.retrieve.2.jsonindex dbe1137ac9e..ebef1811ad8 100644--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.retrieve.2.json+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.retrieve.2.json@@ -9,7 +9,7 @@"description": "zulip (Zulip Dev)","discount": null,"email": "[email protected]",- "id": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.create.1.json",+ "id": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.retrieve.1.json","invoice_prefix": "NORMALIZED","invoice_settings": {"custom_fields": null,@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -55,7 +55,7 @@"wallet": null},"created": 1000000000,- "customer": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.create.1.json",+ "customer": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.retrieve.1.json","id": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.retrieve.1.json","livemode": false,"metadata": {},diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.retrieve.3.jsonindex dbe1137ac9e..ebef1811ad8 100644--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.retrieve.3.json+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.retrieve.3.json@@ -9,7 +9,7 @@"description": "zulip (Zulip Dev)","discount": null,"email": "[email protected]",- "id": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.create.1.json",+ "id": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.retrieve.1.json","invoice_prefix": "NORMALIZED","invoice_settings": {"custom_fields": null,@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -55,7 +55,7 @@"wallet": null},"created": 1000000000,- "customer": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.create.1.json",+ "customer": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.retrieve.1.json","id": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.retrieve.1.json","livemode": false,"metadata": {},diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.retrieve.4.jsonindex dbe1137ac9e..ebef1811ad8 100644--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.retrieve.4.json+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.retrieve.4.json@@ -9,7 +9,7 @@"description": "zulip (Zulip Dev)","discount": null,"email": "[email protected]",- "id": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.create.1.json",+ "id": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.retrieve.1.json","invoice_prefix": "NORMALIZED","invoice_settings": {"custom_fields": null,@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -55,7 +55,7 @@"wallet": null},"created": 1000000000,- "customer": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.create.1.json",+ "customer": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.retrieve.1.json","id": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.retrieve.1.json","livemode": false,"metadata": {},diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.retrieve.5.jsonindex 2584b176d9c..ebef1811ad8 100644--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.retrieve.5.json+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.retrieve.5.json@@ -2,14 +2,14 @@"address": null,"balance": 0,"created": 1000000000,- "currency": "usd",- "default_currency": "usd",+ "currency": null,+ "default_currency": null,"default_source": null,"delinquent": false,"description": "zulip (Zulip Dev)","discount": null,"email": "[email protected]",- "id": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.create.1.json",+ "id": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.retrieve.1.json","invoice_prefix": "NORMALIZED","invoice_settings": {"custom_fields": null,@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -55,7 +55,7 @@"wallet": null},"created": 1000000000,- "customer": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.create.1.json",+ "customer": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.retrieve.1.json","id": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.retrieve.1.json","livemode": false,"metadata": {},@@ -71,7 +71,7 @@"realm_str": "zulip"},"name": null,- "next_invoice_sequence": 2,+ "next_invoice_sequence": 1,"object": "customer","phone": null,"preferred_locales": [],diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.retrieve.6.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.retrieve.6.jsonnew file mode 100644index 00000000000..d1180d139b0--- /dev/null+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.retrieve.6.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": "usd",+ "default_currency": "usd",+ "default_source": null,+ "delinquent": false,+ "description": "zulip (Zulip Dev)",+ "discount": null,+ "email": "[email protected]",+ "id": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.retrieve.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.retrieve.1.json",+ "id": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.retrieve.1.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "realm_id": "1",+ "realm_str": "zulip"+ },+ "name": null,+ "next_invoice_sequence": 2,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.2.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.2.jsonindex ef513a0414c..59ef7a1213e 100644--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.2.json+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.2.json@@ -33,7 +33,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -44,7 +44,7 @@"captured": true,"created": 1000000000,"currency": "usd",- "customer": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.create.1.json",+ "customer": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.retrieve.1.json","description": "Payment for Invoice","destination": null,"dispute": null,@@ -82,8 +82,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -142,7 +142,7 @@"confirmation_method": "automatic","created": 1000000000,"currency": "usd",- "customer": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.create.1.json",+ "customer": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.retrieve.1.json","description": "Payment for Invoice","id": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.2.json","invoice": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.2.json",@@ -209,7 +209,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -220,7 +220,7 @@"captured": true,"created": 1000000000,"currency": "usd",- "customer": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.create.1.json",+ "customer": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.retrieve.1.json","description": "Payment for Invoice","destination": null,"dispute": null,@@ -258,8 +258,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -348,7 +348,7 @@"created": 1000000000,"currency": "usd","custom_fields": null,- "customer": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.create.1.json",+ "customer": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.retrieve.1.json","customer_address": null,"customer_email": "[email protected]","customer_name": null,@@ -466,7 +466,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -535,7 +537,7 @@"created": 1000000000,"currency": "usd","custom_fields": null,- "customer": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.create.1.json",+ "customer": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.retrieve.1.json","customer_address": null,"customer_email": "[email protected]","customer_name": null,@@ -653,7 +655,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -738,7 +742,7 @@"confirmation_method": "automatic","created": 1000000000,"currency": "usd",- "customer": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.create.1.json",+ "customer": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.retrieve.1.json","description": "Payment for Invoice","id": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.2.json","invoice": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.2.json",@@ -816,7 +820,7 @@"created": 1000000000,"currency": "usd","custom_fields": null,- "customer": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.create.1.json",+ "customer": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.retrieve.1.json","customer_address": null,"customer_email": "[email protected]","customer_name": null,@@ -934,7 +938,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -981,7 +987,7 @@"object": {"amount": 4800,"currency": "usd",- "customer": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.create.1.json",+ "customer": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.retrieve.1.json","date": 1000000000,"description": "Zulip Cloud Standard","discountable": false,@@ -1051,7 +1057,7 @@"description": "zulip (Zulip Dev)","discount": null,"email": "[email protected]",- "id": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.create.1.json",+ "id": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.retrieve.1.json","invoice_prefix": "NORMALIZED","invoice_settings": {"custom_fields": null,diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.3.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.3.jsonindex 2d5e307a41f..c459f129596 100644--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.3.json+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.3.json@@ -147,7 +147,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -174,13 +176,13 @@"total_excluding_tax": 4800,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null}},"id": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.3.json","livemode": false,"object": "event",- "pending_webhooks": 0,+ "pending_webhooks": 2,"request": {"id": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.2.json","idempotency_key": "00000000-0000-0000-0000-000000000000"@@ -334,7 +336,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -361,7 +365,7 @@"total_excluding_tax": 4800,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null}},"id": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.3.json",@@ -521,7 +525,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -548,7 +554,7 @@"total_excluding_tax": 4800,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null},"previous_attributes": {"amount_paid": 0,diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.create.1.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.create.1.jsonindex c405dad48b6..0211c5055cf 100644--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.create.1.json+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.create.1.json@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.create.2.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.create.2.jsonindex 55c1c037a8b..8b9142fa2c0 100644--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.create.2.json+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.create.2.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.create.3.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.create.3.jsonindex 8f60f052dda..d59db576a2b 100644--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.create.3.json+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.create.3.json@@ -184,7 +184,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.create.4.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.create.4.jsonindex 0df496bfcea..0e6a7177617 100644--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.create.4.json+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.create.4.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.create.5.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.create.5.jsonindex 09141b1804b..15c3393fc11 100644--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.create.5.json+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.create.5.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.finalize_invoice.1.jsonindex e46f5950600..e13b96ba0de 100644--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.finalize_invoice.1.json+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.finalize_invoice.1.json@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.finalize_invoice.2.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.finalize_invoice.2.jsonindex 0a449ccd2d3..dfc1390b001 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@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,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.jsonindex 0977a0236a9..49a08d591bd 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@@ -184,7 +184,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,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.jsonindex 49957803bae..07fa6ca4188 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@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.finalize_invoice.5.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.finalize_invoice.5.jsonindex 07fbb0cd470..b44c435395c 100644--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.finalize_invoice.5.json+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.finalize_invoice.5.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,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.jsonindex e214204f290..7011b32651c 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@@ -186,7 +186,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -350,7 +352,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -522,7 +526,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,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.jsonindex 6482c33a4a4..2f454fa8a08 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@@ -135,7 +135,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -350,7 +352,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -514,7 +518,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -686,7 +692,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,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.jsonindex fcd9e05afb7..3a45ebb442a 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@@ -135,7 +135,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -299,7 +301,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -514,7 +518,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -678,7 +684,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -850,7 +858,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.pay.1.jsonindex add86341169..35e26a241ab 100644--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.pay.1.json+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.pay.1.json@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -168,5 +170,5 @@"total_excluding_tax": 4800,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null}diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--PaymentMethod.create.1.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--PaymentMethod.create.1.jsonindex 9a49a1fa7f1..30098babd54 100644--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--PaymentMethod.create.1.json+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--PaymentMethod.create.1.json@@ -6,7 +6,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -22,8 +22,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Customer.retrieve.1.jsonindex c48ff6df4e7..e555bdd480c 100644--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Customer.retrieve.1.json+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Customer.retrieve.1.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Customer.retrieve.2.jsonindex c48ff6df4e7..e555bdd480c 100644--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Customer.retrieve.2.json+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Customer.retrieve.2.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Customer.retrieve.3.jsonindex c48ff6df4e7..e555bdd480c 100644--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Customer.retrieve.3.json+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Customer.retrieve.3.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Customer.retrieve.4.jsonindex c48ff6df4e7..e555bdd480c 100644--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Customer.retrieve.4.json+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Customer.retrieve.4.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Customer.retrieve.5.jsonindex f1ff211d6bf..e555bdd480c 100644--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Customer.retrieve.5.json+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Customer.retrieve.5.json@@ -2,8 +2,8 @@"address": null,"balance": 0,"created": 1000000000,- "currency": "usd",- "default_currency": "usd",+ "currency": null,+ "default_currency": null,"default_source": null,"delinquent": false,"description": "zulip (Zulip Dev)",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -71,7 +71,7 @@"realm_str": "zulip"},"name": null,- "next_invoice_sequence": 2,+ "next_invoice_sequence": 1,"object": "customer","phone": null,"preferred_locales": [],diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Customer.retrieve.6.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Customer.retrieve.6.jsonnew file mode 100644index 00000000000..1221c6c717b--- /dev/null+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Customer.retrieve.6.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": "usd",+ "default_currency": "usd",+ "default_source": null,+ "delinquent": false,+ "description": "zulip (Zulip Dev)",+ "discount": null,+ "email": "[email protected]",+ "id": "switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Customer.create.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Customer.create.1.json",+ "id": "switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Customer.retrieve.1.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "realm_id": "1",+ "realm_str": "zulip"+ },+ "name": null,+ "next_invoice_sequence": 2,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.2.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.2.jsonindex c51c11eaf86..c1eac70bf4d 100644--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.2.json+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.2.json@@ -33,7 +33,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -82,8 +82,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -111,6 +111,7 @@},"type": "card"},+ "radar_options": {},"receipt_email": "[email protected]","receipt_number": null,"receipt_url": "https://pay.stripe.com/receipts/invoices/NORMALIZED?s=ap",@@ -209,7 +210,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -258,8 +259,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -287,6 +288,7 @@},"type": "card"},+ "radar_options": {},"receipt_email": "[email protected]","receipt_number": null,"receipt_url": "https://pay.stripe.com/receipts/invoices/NORMALIZED?s=ap",@@ -466,7 +468,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -493,7 +497,7 @@"total_excluding_tax": 28000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null}},"id": "switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.2.json",@@ -653,7 +657,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -680,7 +686,7 @@"total_excluding_tax": 28000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null},"previous_attributes": {"effective_at": null,@@ -934,7 +940,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.3.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.3.jsonindex bc3a69eaa6f..9a5ccf42767 100644--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.3.json+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.3.json@@ -147,7 +147,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -180,9 +182,9 @@"id": "switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.3.json","livemode": false,"object": "event",- "pending_webhooks": 0,+ "pending_webhooks": 2,"request": {- "id": "switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.2.json",+ "id": "switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.3.json","idempotency_key": "00000000-0000-0000-0000-000000000000"},"type": "invoice.payment_succeeded"@@ -334,7 +336,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -367,9 +371,9 @@"id": "switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.3.json","livemode": false,"object": "event",- "pending_webhooks": 0,+ "pending_webhooks": 1,"request": {- "id": "switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.2.json",+ "id": "switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.3.json","idempotency_key": "00000000-0000-0000-0000-000000000000"},"type": "invoice.paid"@@ -521,7 +525,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -568,7 +574,7 @@"object": "event","pending_webhooks": 0,"request": {- "id": "switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.2.json",+ "id": "switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.3.json","idempotency_key": "00000000-0000-0000-0000-000000000000"},"type": "invoice.updated"diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Invoice.create.1.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Invoice.create.1.jsonindex 231ca58977f..01cc50e6254 100644--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Invoice.create.1.json+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Invoice.create.1.json@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Invoice.create.2.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Invoice.create.2.jsonindex c6dcb647d4d..218134436d0 100644--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Invoice.create.2.json+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Invoice.create.2.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Invoice.create.3.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Invoice.create.3.jsonindex d54c606f504..3af98731436 100644--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Invoice.create.3.json+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Invoice.create.3.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Invoice.finalize_invoice.1.jsonindex 82696d5f2f4..87b5bc931ec 100644--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Invoice.finalize_invoice.1.json+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Invoice.finalize_invoice.1.json@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -168,5 +170,5 @@"total_excluding_tax": 28000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null}diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Invoice.finalize_invoice.2.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Invoice.finalize_invoice.2.jsonindex 6c3c36d38d6..ced33f81a6f 100644--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Invoice.finalize_invoice.2.json+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Invoice.finalize_invoice.2.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Invoice.finalize_invoice.3.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Invoice.finalize_invoice.3.jsonindex 356a70c36f7..6ab1e74854e 100644--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Invoice.finalize_invoice.3.json+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Invoice.finalize_invoice.3.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Invoice.list.2.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Invoice.list.2.jsonindex 07ceabcfdac..69a7c0c3aa1 100644--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Invoice.list.2.json+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Invoice.list.2.json@@ -135,7 +135,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -307,7 +309,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Invoice.list.3.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Invoice.list.3.jsonindex 5268698fa5e..07375d3e3c4 100644--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Invoice.list.3.json+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Invoice.list.3.json@@ -135,7 +135,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -299,7 +301,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -471,7 +475,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Invoice.pay.1.jsonindex ab684de3346..2ab55a885ee 100644--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Invoice.pay.1.json+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Invoice.pay.1.json@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--PaymentMethod.create.1.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--PaymentMethod.create.1.jsonindex 1d24af0651a..94378156c4c 100644--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--PaymentMethod.create.1.json+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--PaymentMethod.create.1.json@@ -6,7 +6,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -22,8 +22,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--Customer.retrieve.1.jsonindex 0dc3f5d01f2..3712b08eea1 100644--- a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--Customer.retrieve.1.json+++ b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--Customer.retrieve.1.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--Customer.retrieve.2.jsonindex 0dc3f5d01f2..3712b08eea1 100644--- a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--Customer.retrieve.2.json+++ b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--Customer.retrieve.2.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--Customer.retrieve.3.jsonindex 0dc3f5d01f2..3712b08eea1 100644--- a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--Customer.retrieve.3.json+++ b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--Customer.retrieve.3.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--Customer.retrieve.4.jsonindex 0dc3f5d01f2..3712b08eea1 100644--- a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--Customer.retrieve.4.json+++ b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--Customer.retrieve.4.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--Customer.retrieve.5.jsonnew file mode 100644index 00000000000..3712b08eea1--- /dev/null+++ b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--Customer.retrieve.5.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": null,+ "default_currency": null,+ "default_source": null,+ "delinquent": false,+ "description": "zulip (Zulip Dev)",+ "discount": null,+ "email": "[email protected]",+ "id": "switch_now_free_trial_from_annual_to_monthly--Customer.create.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "switch_now_free_trial_from_annual_to_monthly--Customer.create.1.json",+ "id": "switch_now_free_trial_from_annual_to_monthly--Customer.retrieve.1.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "realm_id": "1",+ "realm_str": "zulip"+ },+ "name": null,+ "next_invoice_sequence": 1,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--PaymentMethod.create.1.json b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--PaymentMethod.create.1.jsonindex 02dd0db21fb..6441bbedada 100644--- a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--PaymentMethod.create.1.json+++ b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--PaymentMethod.create.1.json@@ -6,7 +6,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -22,8 +22,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--Customer.retrieve.1.jsonindex 7ed3db8f427..8c3a45c383f 100644--- a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--Customer.retrieve.1.json+++ b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--Customer.retrieve.1.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--Customer.retrieve.2.jsonindex 7ed3db8f427..8c3a45c383f 100644--- a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--Customer.retrieve.2.json+++ b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--Customer.retrieve.2.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--Customer.retrieve.3.jsonindex 7ed3db8f427..8c3a45c383f 100644--- a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--Customer.retrieve.3.json+++ b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--Customer.retrieve.3.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--Customer.retrieve.4.jsonindex 7ed3db8f427..8c3a45c383f 100644--- a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--Customer.retrieve.4.json+++ b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--Customer.retrieve.4.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--Customer.retrieve.5.jsonnew file mode 100644index 00000000000..8c3a45c383f--- /dev/null+++ b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--Customer.retrieve.5.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": null,+ "default_currency": null,+ "default_source": null,+ "delinquent": false,+ "description": "zulip (Zulip Dev)",+ "discount": null,+ "email": "[email protected]",+ "id": "switch_now_free_trial_from_monthly_to_annual--Customer.create.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "switch_now_free_trial_from_monthly_to_annual--Customer.create.1.json",+ "id": "switch_now_free_trial_from_monthly_to_annual--Customer.retrieve.1.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "realm_id": "1",+ "realm_str": "zulip"+ },+ "name": null,+ "next_invoice_sequence": 1,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--PaymentMethod.create.1.json b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--PaymentMethod.create.1.jsonindex 03459fa0447..96f6dde3f5f 100644--- a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--PaymentMethod.create.1.json+++ b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--PaymentMethod.create.1.json@@ -6,7 +6,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -22,8 +22,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Customer.create_balance_transaction.1.json b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Customer.create_balance_transaction.1.jsonindex 2a9c2ad88b9..d3a2481f001 100644--- a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Customer.create_balance_transaction.1.json+++ b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Customer.create_balance_transaction.1.json@@ -1,11 +1,11 @@{- "amount": -1272,+ "amount": -1061,"created": 1000000000,"credit_note": null,"currency": "usd","customer": "cus_NORMALIZED","description": "Credit from early termination of active plan",- "ending_balance": -1272,+ "ending_balance": -1061,"id": "switch_realm_from_standard_to_plus_plan--Customer.create_balance_transaction.1.json","invoice": null,"livemode": false,diff --git a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Customer.retrieve.1.jsonindex c5fadd8f794..293c4b5c9bb 100644--- a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Customer.retrieve.1.json+++ b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Customer.retrieve.1.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Customer.retrieve.2.jsonindex c5fadd8f794..293c4b5c9bb 100644--- a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Customer.retrieve.2.json+++ b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Customer.retrieve.2.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Customer.retrieve.3.jsonindex c5fadd8f794..293c4b5c9bb 100644--- a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Customer.retrieve.3.json+++ b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Customer.retrieve.3.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Customer.retrieve.4.jsonindex c5fadd8f794..293c4b5c9bb 100644--- a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Customer.retrieve.4.json+++ b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Customer.retrieve.4.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Customer.retrieve.5.jsonnew file mode 100644index 00000000000..293c4b5c9bb--- /dev/null+++ b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Customer.retrieve.5.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": null,+ "default_currency": null,+ "default_source": null,+ "delinquent": false,+ "description": "zulip (Zulip Dev)",+ "discount": null,+ "email": "[email protected]",+ "id": "switch_realm_from_standard_to_plus_plan--Customer.create.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "switch_realm_from_standard_to_plus_plan--Customer.create.1.json",+ "id": "switch_realm_from_standard_to_plus_plan--Customer.retrieve.1.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "realm_id": "1",+ "realm_str": "zulip"+ },+ "name": null,+ "next_invoice_sequence": 1,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Event.list.2.json b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Event.list.2.jsonindex becaaf9a288..224108e170d 100644--- a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Event.list.2.json+++ b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Event.list.2.json@@ -33,7 +33,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -82,8 +82,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -111,6 +111,7 @@},"type": "card"},+ "radar_options": {},"receipt_email": "[email protected]","receipt_number": null,"receipt_url": "https://pay.stripe.com/receipts/invoices/NORMALIZED?s=ap",@@ -184,7 +185,7 @@"id": "switch_realm_from_standard_to_plus_plan--Event.list.2.json","livemode": false,"object": "event",- "pending_webhooks": 0,+ "pending_webhooks": 2,"request": {"id": "switch_realm_from_standard_to_plus_plan--Event.list.2.json","idempotency_key": "00000000-0000-0000-0000-000000000000"@@ -209,7 +210,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -258,8 +259,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -287,6 +288,7 @@},"type": "card"},+ "radar_options": {},"receipt_email": "[email protected]","receipt_number": null,"receipt_url": "https://pay.stripe.com/receipts/invoices/NORMALIZED?s=ap",@@ -392,7 +394,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -466,7 +468,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -579,7 +583,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -653,7 +657,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -860,7 +866,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -934,7 +940,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -992,7 +1000,7 @@"metadata": {},"object": "invoiceitem","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,diff --git a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Event.list.3.json b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Event.list.3.jsonindex 2a46c68e701..c9cf38432d0 100644--- a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Event.list.3.json+++ b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Event.list.3.json@@ -147,7 +147,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -180,7 +182,7 @@"id": "switch_realm_from_standard_to_plus_plan--Event.list.3.json","livemode": false,"object": "event",- "pending_webhooks": 0,+ "pending_webhooks": 2,"request": {"id": "switch_realm_from_standard_to_plus_plan--Event.list.2.json","idempotency_key": "00000000-0000-0000-0000-000000000000"@@ -334,7 +336,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -367,7 +371,7 @@"id": "switch_realm_from_standard_to_plus_plan--Event.list.3.json","livemode": false,"object": "event",- "pending_webhooks": 0,+ "pending_webhooks": 2,"request": {"id": "switch_realm_from_standard_to_plus_plan--Event.list.2.json","idempotency_key": "00000000-0000-0000-0000-000000000000"@@ -521,7 +525,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Invoice.create.1.json b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Invoice.create.1.jsonindex adb3a7ddf57..1cffb4ca52b 100644--- a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Invoice.create.1.json+++ b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Invoice.create.1.json@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Invoice.create.2.json b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Invoice.create.2.jsonindex 6b6470c2747..41d83333bd1 100644--- a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Invoice.create.2.json+++ b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Invoice.create.2.json@@ -2,9 +2,9 @@"account_country": "US","account_name": "Kandra Labs, Inc.","account_tax_ids": null,- "amount_due": 70728,+ "amount_due": 70939,"amount_paid": 0,- "amount_remaining": 70728,+ "amount_remaining": 70939,"amount_shipping": 0,"application": null,"application_fee_amount": null,@@ -133,12 +133,14 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,"shipping_details": null,- "starting_balance": -1272,+ "starting_balance": -1061,"statement_descriptor": "Zulip Cloud Plus","status": "draft","status_transitions": {diff --git a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Invoice.finalize_invoice.1.jsonindex c26386eaada..12fcb91fb3f 100644--- a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Invoice.finalize_invoice.1.json+++ b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Invoice.finalize_invoice.1.json@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Invoice.finalize_invoice.2.json b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Invoice.finalize_invoice.2.jsonindex 346959a30d6..7621974506b 100644--- a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Invoice.finalize_invoice.2.json+++ b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Invoice.finalize_invoice.2.json@@ -2,9 +2,9 @@"account_country": "US","account_name": "Kandra Labs, Inc.","account_tax_ids": null,- "amount_due": 70728,+ "amount_due": 70939,"amount_paid": 0,- "amount_remaining": 70728,+ "amount_remaining": 70939,"amount_shipping": 0,"application": null,"application_fee_amount": null,@@ -133,12 +133,14 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,"shipping_details": null,- "starting_balance": -1272,+ "starting_balance": -1061,"statement_descriptor": "Zulip Cloud Plus","status": "open","status_transitions": {diff --git a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Invoice.pay.1.jsonindex 8387c4084f3..3647077fb71 100644--- a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Invoice.pay.1.json+++ b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Invoice.pay.1.json@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--PaymentMethod.create.1.json b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--PaymentMethod.create.1.jsonindex 2ca91c78c61..6cc49519cd1 100644--- a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--PaymentMethod.create.1.json+++ b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--PaymentMethod.create.1.json@@ -6,7 +6,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -22,8 +22,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Event.list.2.json b/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Event.list.2.jsonindex 78a8d972ee3..58f6b4ba9ec 100644--- a/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Event.list.2.json+++ b/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Event.list.2.json@@ -147,7 +147,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -174,7 +176,7 @@"total_excluding_tax": 800000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null},"previous_attributes": {"auto_advance": true,@@ -427,7 +429,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -614,7 +618,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -902,7 +908,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Event.list.3.json b/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Event.list.3.jsonindex 6c933fc9fb6..329cb6e1bf6 100644--- a/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Event.list.3.json+++ b/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Event.list.3.json@@ -257,7 +257,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -284,7 +286,7 @@"total_excluding_tax": 800000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null}},"id": "update_licenses_of_manual_plan_from_billing_page--Event.list.3.json",diff --git a/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.create.1.json b/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.create.1.jsonindex e4fdb33b355..8c0a756506c 100644--- a/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.create.1.json+++ b/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.create.1.json@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.create.2.json b/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.create.2.jsonindex beadde70803..fd719c81111 100644--- a/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.create.2.json+++ b/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.create.2.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.create.3.json b/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.create.3.jsonindex 244f43b8341..06bfa8b69ea 100644--- a/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.create.3.json+++ b/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.create.3.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.create.4.json b/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.create.4.jsonindex 3fc25548dbc..32db4c95531 100644--- a/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.create.4.json+++ b/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.create.4.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.finalize_invoice.1.jsonindex b9fb8c43543..138eb569a1c 100644--- a/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.finalize_invoice.1.json+++ b/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.finalize_invoice.1.json@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,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.jsonindex 7319820e1db..4980e1d9046 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@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.finalize_invoice.3.json b/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.finalize_invoice.3.jsonindex 9dd61a53add..74a404aeced 100644--- a/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.finalize_invoice.3.json+++ b/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.finalize_invoice.3.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.finalize_invoice.4.json b/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.finalize_invoice.4.jsonindex 75dc944638e..a0be11c8d37 100644--- a/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.finalize_invoice.4.json+++ b/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.finalize_invoice.4.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,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.jsonindex debd30158f4..1634540913e 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@@ -135,7 +135,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -299,7 +301,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -471,7 +475,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,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.jsonindex 3ade53be91a..dea6f06275e 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@@ -135,7 +135,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -299,7 +301,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -463,7 +467,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -635,7 +641,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.pay.1.jsonindex cae8b18fb67..2f0c7274d6d 100644--- a/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.pay.1.json+++ b/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.pay.1.json@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -168,5 +170,5 @@"total_excluding_tax": 800000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null}diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card--Charge.list.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card--Charge.list.1.jsonindex af19b8a666f..afd06bbc3ef 100644--- a/corporate/tests/stripe_fixtures/upgrade_by_card--Charge.list.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_by_card--Charge.list.1.json@@ -14,7 +14,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -63,8 +63,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/upgrade_by_card--Customer.retrieve.2.jsonindex dbe969f45db..f89871fa238 100644--- a/corporate/tests/stripe_fixtures/upgrade_by_card--Customer.retrieve.2.json+++ b/corporate/tests/stripe_fixtures/upgrade_by_card--Customer.retrieve.2.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/upgrade_by_card--Customer.retrieve.3.jsonindex dbe969f45db..f89871fa238 100644--- a/corporate/tests/stripe_fixtures/upgrade_by_card--Customer.retrieve.3.json+++ b/corporate/tests/stripe_fixtures/upgrade_by_card--Customer.retrieve.3.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/upgrade_by_card--Customer.retrieve.4.jsonindex dbe969f45db..f89871fa238 100644--- a/corporate/tests/stripe_fixtures/upgrade_by_card--Customer.retrieve.4.json+++ b/corporate/tests/stripe_fixtures/upgrade_by_card--Customer.retrieve.4.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/upgrade_by_card--Customer.retrieve.5.jsonindex dbe969f45db..f89871fa238 100644--- a/corporate/tests/stripe_fixtures/upgrade_by_card--Customer.retrieve.5.json+++ b/corporate/tests/stripe_fixtures/upgrade_by_card--Customer.retrieve.5.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card--Customer.retrieve.6.json b/corporate/tests/stripe_fixtures/upgrade_by_card--Customer.retrieve.6.jsonindex a3b182d3ed8..f89871fa238 100644--- a/corporate/tests/stripe_fixtures/upgrade_by_card--Customer.retrieve.6.json+++ b/corporate/tests/stripe_fixtures/upgrade_by_card--Customer.retrieve.6.json@@ -2,8 +2,8 @@"address": null,"balance": 0,"created": 1000000000,- "currency": "usd",- "default_currency": "usd",+ "currency": null,+ "default_currency": null,"default_source": null,"delinquent": false,"description": "zulip (Zulip Dev)",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -71,7 +71,7 @@"realm_str": "zulip"},"name": null,- "next_invoice_sequence": 2,+ "next_invoice_sequence": 1,"object": "customer","phone": null,"preferred_locales": [],diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card--Customer.retrieve.7.json b/corporate/tests/stripe_fixtures/upgrade_by_card--Customer.retrieve.7.jsonnew file mode 100644index 00000000000..5b92f81ced8--- /dev/null+++ b/corporate/tests/stripe_fixtures/upgrade_by_card--Customer.retrieve.7.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": "usd",+ "default_currency": "usd",+ "default_source": null,+ "delinquent": false,+ "description": "zulip (Zulip Dev)",+ "discount": null,+ "email": "[email protected]",+ "id": "upgrade_by_card--Customer.create.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "upgrade_by_card--Customer.create.1.json",+ "id": "upgrade_by_card--Customer.retrieve.2.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "realm_id": "1",+ "realm_str": "zulip"+ },+ "name": null,+ "next_invoice_sequence": 2,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.1.jsonindex ab1aa348a86..ffacad07a5b 100644--- a/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.1.json@@ -139,7 +139,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.3.json b/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.3.jsonindex 3ee8ca1e686..0f5a50861f2 100644--- a/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.3.json+++ b/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.3.json@@ -33,7 +33,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -82,8 +82,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -184,7 +184,7 @@"id": "upgrade_by_card--Event.list.3.json","livemode": false,"object": "event",- "pending_webhooks": 1,+ "pending_webhooks": 0,"request": {"id": "upgrade_by_card--Event.list.3.json","idempotency_key": "00000000-0000-0000-0000-000000000000"@@ -209,7 +209,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -258,8 +258,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -392,7 +392,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -466,7 +466,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -579,7 +581,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -653,7 +655,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -860,7 +864,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -934,7 +938,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -992,7 +998,7 @@"metadata": {},"object": "invoiceitem","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.4.json b/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.4.jsonindex e41303f5898..d2140f4f7cb 100644--- a/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.4.json+++ b/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.4.json@@ -147,7 +147,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -180,9 +182,9 @@"id": "upgrade_by_card--Event.list.4.json","livemode": false,"object": "event",- "pending_webhooks": 1,+ "pending_webhooks": 0,"request": {- "id": "upgrade_by_card--Event.list.3.json",+ "id": "upgrade_by_card--Event.list.4.json","idempotency_key": "00000000-0000-0000-0000-000000000000"},"type": "invoice.payment_succeeded"@@ -334,7 +336,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -369,7 +373,7 @@"object": "event","pending_webhooks": 0,"request": {- "id": "upgrade_by_card--Event.list.3.json",+ "id": "upgrade_by_card--Event.list.4.json","idempotency_key": "00000000-0000-0000-0000-000000000000"},"type": "invoice.paid"@@ -521,7 +525,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -568,7 +574,7 @@"object": "event","pending_webhooks": 0,"request": {- "id": "upgrade_by_card--Event.list.3.json",+ "id": "upgrade_by_card--Event.list.4.json","idempotency_key": "00000000-0000-0000-0000-000000000000"},"type": "invoice.updated"diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card--Invoice.create.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card--Invoice.create.1.jsonindex f5725c84af3..68da6ff9097 100644--- a/corporate/tests/stripe_fixtures/upgrade_by_card--Invoice.create.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_by_card--Invoice.create.1.json@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card--Invoice.finalize_invoice.1.jsonindex b59d1af757c..77ed2cbc337 100644--- a/corporate/tests/stripe_fixtures/upgrade_by_card--Invoice.finalize_invoice.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_by_card--Invoice.finalize_invoice.1.json@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card--Invoice.list.2.json b/corporate/tests/stripe_fixtures/upgrade_by_card--Invoice.list.2.jsonindex a9205149989..88e82cf994e 100644--- a/corporate/tests/stripe_fixtures/upgrade_by_card--Invoice.list.2.json+++ b/corporate/tests/stripe_fixtures/upgrade_by_card--Invoice.list.2.json@@ -143,7 +143,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card--Invoice.pay.1.jsonindex e1f2e5d464c..1f954634b9a 100644--- a/corporate/tests/stripe_fixtures/upgrade_by_card--Invoice.pay.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_by_card--Invoice.pay.1.json@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card--PaymentMethod.create.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card--PaymentMethod.create.1.jsonindex 9326528495e..950a5fea98e 100644--- a/corporate/tests/stripe_fixtures/upgrade_by_card--PaymentMethod.create.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_by_card--PaymentMethod.create.1.json@@ -6,7 +6,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -22,8 +22,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Charge.list.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Charge.list.1.jsonindex bb749400cc8..467eff10e09 100644--- a/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Charge.list.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Charge.list.1.json@@ -14,7 +14,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -63,8 +63,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -92,6 +92,7 @@},"type": "card"},+ "radar_options": {},"receipt_email": "[email protected]","receipt_number": null,"receipt_url": "https://pay.stripe.com/receipts/invoices/NORMALIZED?s=ap",diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Customer.retrieve.1.jsonindex abd0eeadb01..c6103c13b7d 100644--- a/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Customer.retrieve.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Customer.retrieve.1.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Customer.retrieve.2.jsonindex abd0eeadb01..c6103c13b7d 100644--- a/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Customer.retrieve.2.json+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Customer.retrieve.2.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Customer.retrieve.3.jsonindex abd0eeadb01..c6103c13b7d 100644--- a/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Customer.retrieve.3.json+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Customer.retrieve.3.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Customer.retrieve.4.jsonindex abd0eeadb01..c6103c13b7d 100644--- a/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Customer.retrieve.4.json+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Customer.retrieve.4.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Customer.retrieve.5.jsonindex 7dd2080c597..c6103c13b7d 100644--- a/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Customer.retrieve.5.json+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Customer.retrieve.5.json@@ -2,8 +2,8 @@"address": null,"balance": 0,"created": 1000000000,- "currency": "usd",- "default_currency": "usd",+ "currency": null,+ "default_currency": null,"default_source": null,"delinquent": false,"description": "zulip (Zulip Dev)",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -71,7 +71,7 @@"realm_str": "zulip"},"name": null,- "next_invoice_sequence": 2,+ "next_invoice_sequence": 1,"object": "customer","phone": null,"preferred_locales": [],diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Customer.retrieve.6.json b/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Customer.retrieve.6.jsonnew file mode 100644index 00000000000..64309bbee17--- /dev/null+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Customer.retrieve.6.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": "usd",+ "default_currency": "usd",+ "default_source": null,+ "delinquent": false,+ "description": "zulip (Zulip Dev)",+ "discount": null,+ "email": "[email protected]",+ "id": "upgrade_by_card_to_plus_plan--Customer.create.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "upgrade_by_card_to_plus_plan--Customer.create.1.json",+ "id": "upgrade_by_card_to_plus_plan--Customer.retrieve.1.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "realm_id": "1",+ "realm_str": "zulip"+ },+ "name": null,+ "next_invoice_sequence": 2,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Event.list.2.json b/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Event.list.2.jsonindex bedb864392f..914583dc4bb 100644--- a/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Event.list.2.json+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Event.list.2.json@@ -33,7 +33,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -82,8 +82,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -111,6 +111,7 @@},"type": "card"},+ "radar_options": {},"receipt_email": "[email protected]","receipt_number": null,"receipt_url": "https://pay.stripe.com/receipts/invoices/NORMALIZED?s=ap",@@ -209,7 +210,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -258,8 +259,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -287,6 +288,7 @@},"type": "card"},+ "radar_options": {},"receipt_email": "[email protected]","receipt_number": null,"receipt_url": "https://pay.stripe.com/receipts/invoices/NORMALIZED?s=ap",@@ -392,7 +394,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -466,7 +468,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -579,7 +583,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -653,7 +657,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -860,7 +866,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -934,7 +940,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -992,7 +1000,7 @@"metadata": {},"object": "invoiceitem","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Event.list.3.json b/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Event.list.3.jsonindex e747f9844d6..ee0493540cc 100644--- a/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Event.list.3.json+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Event.list.3.json@@ -83,7 +83,7 @@"created": 1000000000,"currency": "usd","custom_unit_amount": null,- "id": "upgrade_by_card_to_plus_plan--Event.list.2.json",+ "id": "upgrade_by_card_to_plus_plan--Event.list.3.json","livemode": false,"lookup_key": null,"metadata": {},@@ -147,7 +147,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -180,7 +182,7 @@"id": "upgrade_by_card_to_plus_plan--Event.list.3.json","livemode": false,"object": "event",- "pending_webhooks": 2,+ "pending_webhooks": 0,"request": {"id": "upgrade_by_card_to_plus_plan--Event.list.2.json","idempotency_key": "00000000-0000-0000-0000-000000000000"@@ -270,7 +272,7 @@"created": 1000000000,"currency": "usd","custom_unit_amount": null,- "id": "upgrade_by_card_to_plus_plan--Event.list.2.json",+ "id": "upgrade_by_card_to_plus_plan--Event.list.3.json","livemode": false,"lookup_key": null,"metadata": {},@@ -334,7 +336,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -457,7 +461,7 @@"created": 1000000000,"currency": "usd","custom_unit_amount": null,- "id": "upgrade_by_card_to_plus_plan--Event.list.2.json",+ "id": "upgrade_by_card_to_plus_plan--Event.list.3.json","livemode": false,"lookup_key": null,"metadata": {},@@ -521,7 +525,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Invoice.create.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Invoice.create.1.jsonindex 65150ce1b04..96fc97ebb51 100644--- a/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Invoice.create.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Invoice.create.1.json@@ -77,7 +77,7 @@"created": 1000000000,"currency": "usd","custom_unit_amount": null,- "id": "upgrade_by_card_to_plus_plan--Event.list.2.json",+ "id": "upgrade_by_card_to_plus_plan--Event.list.3.json","livemode": false,"lookup_key": null,"metadata": {},@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Invoice.finalize_invoice.1.jsonindex a6980880174..8cd73592a71 100644--- a/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Invoice.finalize_invoice.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Invoice.finalize_invoice.1.json@@ -77,7 +77,7 @@"created": 1000000000,"currency": "usd","custom_unit_amount": null,- "id": "upgrade_by_card_to_plus_plan--Event.list.2.json",+ "id": "upgrade_by_card_to_plus_plan--Event.list.3.json","livemode": false,"lookup_key": null,"metadata": {},@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Invoice.list.2.json b/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Invoice.list.2.jsonindex 9bd43f95489..ae273b2b31e 100644--- a/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Invoice.list.2.json+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Invoice.list.2.json@@ -79,7 +79,7 @@"created": 1000000000,"currency": "usd","custom_unit_amount": null,- "id": "upgrade_by_card_to_plus_plan--Event.list.2.json",+ "id": "upgrade_by_card_to_plus_plan--Event.list.3.json","livemode": false,"lookup_key": null,"metadata": {},@@ -143,7 +143,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Invoice.pay.1.jsonindex f0e3b6a95f3..3ea87a29f96 100644--- a/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Invoice.pay.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Invoice.pay.1.json@@ -77,7 +77,7 @@"created": 1000000000,"currency": "usd","custom_unit_amount": null,- "id": "upgrade_by_card_to_plus_plan--Event.list.2.json",+ "id": "upgrade_by_card_to_plus_plan--Event.list.3.json","livemode": false,"lookup_key": null,"metadata": {},@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--InvoiceItem.create.1.jsonindex a9167129f33..c918ad1fa7d 100644--- a/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--InvoiceItem.create.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--InvoiceItem.create.1.json@@ -22,7 +22,7 @@"created": 1000000000,"currency": "usd","custom_unit_amount": null,- "id": "upgrade_by_card_to_plus_plan--Event.list.2.json",+ "id": "upgrade_by_card_to_plus_plan--Event.list.3.json","livemode": false,"lookup_key": null,"metadata": {},diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--PaymentMethod.create.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--PaymentMethod.create.1.jsonindex fab25470f6b..6b94319b8cf 100644--- a/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--PaymentMethod.create.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--PaymentMethod.create.1.json@@ -6,7 +6,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -22,8 +22,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--Charge.list.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--Charge.list.1.jsonindex edc79871f77..4e2aa4d9036 100644--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--Charge.list.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--Charge.list.1.json@@ -14,7 +14,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -63,8 +63,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 9,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -92,6 +92,7 @@},"type": "card"},+ "radar_options": {},"receipt_email": "[email protected]","receipt_number": null,"receipt_url": "https://pay.stripe.com/receipts/invoices/NORMALIZED?s=ap",diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--Customer.retrieve.1.jsonindex 03644507538..5ccf861587f 100644--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--Customer.retrieve.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--Customer.retrieve.1.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 9,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--Customer.retrieve.2.jsonindex 03644507538..5ccf861587f 100644--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--Customer.retrieve.2.json+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--Customer.retrieve.2.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 9,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--Event.list.2.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--Event.list.2.jsonindex 257ab29f173..5c905a5c2e9 100644--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--Event.list.2.json+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--Event.list.2.json@@ -33,7 +33,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -82,8 +82,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 9,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -111,6 +111,7 @@},"type": "card"},+ "radar_options": {},"receipt_email": "[email protected]","receipt_number": null,"receipt_url": "https://pay.stripe.com/receipts/invoices/NORMALIZED?s=ap",@@ -184,7 +185,7 @@"id": "upgrade_by_card_with_outdated_lower_seat_count--Event.list.2.json","livemode": false,"object": "event",- "pending_webhooks": 2,+ "pending_webhooks": 0,"request": {"id": "upgrade_by_card_with_outdated_lower_seat_count--Event.list.2.json","idempotency_key": "00000000-0000-0000-0000-000000000000"@@ -209,7 +210,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -258,8 +259,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 9,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -287,6 +288,7 @@},"type": "card"},+ "radar_options": {},"receipt_email": "[email protected]","receipt_number": null,"receipt_url": "https://pay.stripe.com/receipts/invoices/NORMALIZED?s=ap",@@ -392,7 +394,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -581,7 +583,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -864,7 +866,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -998,7 +1000,7 @@"metadata": {},"object": "invoiceitem","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -1093,6 +1095,187 @@"idempotency_key": "00000000-0000-0000-0000-000000000000"},"type": "customer.updated"+ },+ {+ "api_version": "2020-08-27",+ "created": 1000000000,+ "data": {+ "object": {+ "account_country": "US",+ "account_name": "Kandra Labs, Inc.",+ "account_tax_ids": null,+ "amount_due": 400000,+ "amount_paid": 0,+ "amount_remaining": 400000,+ "amount_shipping": 0,+ "application": null,+ "application_fee_amount": null,+ "attempt_count": 0,+ "attempted": false,+ "auto_advance": true,+ "automatic_tax": {+ "enabled": false,+ "liability": null,+ "status": null+ },+ "automatically_finalizes_at": null,+ "billing_reason": "manual",+ "charge": null,+ "collection_method": "send_invoice",+ "created": 1000000000,+ "currency": "usd",+ "custom_fields": null,+ "customer": "cus_NORMALIZED",+ "customer_address": null,+ "customer_email": "[email protected]",+ "customer_name": null,+ "customer_phone": null,+ "customer_shipping": null,+ "customer_tax_exempt": "none",+ "customer_tax_ids": [],+ "default_payment_method": null,+ "default_source": null,+ "default_tax_rates": [],+ "description": null,+ "discount": null,+ "discounts": [],+ "due_date": 1000000000,+ "effective_at": 1000000000,+ "ending_balance": 0,+ "footer": null,+ "from_invoice": null,+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",+ "id": "upgrade_by_card_with_outdated_lower_seat_count--Event.list.2.json",+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",+ "issuer": {+ "type": "self"+ },+ "last_finalization_error": null,+ "latest_revision": null,+ "lines": {+ "data": [+ {+ "amount": 400000,+ "amount_excluding_tax": 400000,+ "currency": "usd",+ "description": "Additional license (Jan 2, 2012 - Jan 2, 2013)",+ "discount_amounts": [],+ "discountable": false,+ "discounts": [],+ "id": "upgrade_by_card_with_outdated_lower_seat_count--Event.list.2.json",+ "invoice": "upgrade_by_card_with_outdated_lower_seat_count--Event.list.2.json",+ "invoice_item": "ii_NORMALIZED",+ "livemode": false,+ "metadata": {},+ "object": "line_item",+ "period": {+ "end": 1357015845,+ "start": 1325473445+ },+ "plan": null,+ "price": {+ "active": false,+ "billing_scheme": "per_unit",+ "created": 1000000000,+ "currency": "usd",+ "custom_unit_amount": null,+ "id": "upgrade_by_card_with_outdated_lower_seat_count--Event.list.2.json",+ "livemode": false,+ "lookup_key": null,+ "metadata": {},+ "nickname": null,+ "object": "price",+ "product": "prod_NORMALIZED",+ "recurring": null,+ "tax_behavior": "unspecified",+ "tiers_mode": null,+ "transform_quantity": null,+ "type": "one_time",+ "unit_amount": 8000,+ "unit_amount_decimal": "8000"+ },+ "proration": false,+ "proration_details": {+ "credited_items": null+ },+ "quantity": 50,+ "subscription": null,+ "tax_amounts": [],+ "tax_rates": [],+ "type": "invoiceitem",+ "unit_amount_excluding_tax": "8000"+ }+ ],+ "has_more": false,+ "object": "list",+ "total_count": 1,+ "url": "/v1/invoices/upgrade_by_card_with_outdated_lower_seat_count--Event.list.2.json/lines"+ },+ "livemode": false,+ "metadata": {},+ "next_payment_attempt": null,+ "number": "NORMALIZED",+ "object": "invoice",+ "on_behalf_of": null,+ "paid": false,+ "paid_out_of_band": false,+ "payment_intent": "pi_NORMALIZED",+ "payment_settings": {+ "default_mandate": null,+ "payment_method_options": null,+ "payment_method_types": null+ },+ "period_end": 1000000000,+ "period_start": 1000000000,+ "post_payment_credit_notes_amount": 0,+ "pre_payment_credit_notes_amount": 0,+ "quote": null,+ "receipt_number": null,+ "rendering": {+ "amount_tax_display": null,+ "pdf": {+ "page_size": "letter"+ },+ "template": null,+ "template_version": null+ },+ "rendering_options": null,+ "shipping_cost": null,+ "shipping_details": null,+ "starting_balance": 0,+ "statement_descriptor": "Zulip Cloud Standard",+ "status": "open",+ "status_transitions": {+ "finalized_at": 1000000000,+ "marked_uncollectible_at": null,+ "paid_at": null,+ "voided_at": null+ },+ "subscription": null,+ "subscription_details": {+ "metadata": null+ },+ "subtotal": 400000,+ "subtotal_excluding_tax": 400000,+ "tax": null,+ "test_clock": null,+ "total": 400000,+ "total_discount_amounts": [],+ "total_excluding_tax": 400000,+ "total_tax_amounts": [],+ "transfer_data": null,+ "webhooks_delivered_at": 1000000000+ }+ },+ "id": "upgrade_by_card_with_outdated_lower_seat_count--Event.list.2.json",+ "livemode": false,+ "object": "event",+ "pending_webhooks": 0,+ "request": {+ "id": null,+ "idempotency_key": null+ },+ "type": "invoice.sent"}],"has_more": false,diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--Event.list.3.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--Event.list.3.jsonindex a60c6229bfd..c565607527c 100644--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--Event.list.3.json+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--Event.list.3.json@@ -176,7 +176,7 @@"total_excluding_tax": 48000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": null+ "webhooks_delivered_at": 1000000000}},"id": "upgrade_by_card_with_outdated_lower_seat_count--Event.list.3.json",@@ -365,7 +365,7 @@"total_excluding_tax": 48000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": null+ "webhooks_delivered_at": 1000000000}},"id": "upgrade_by_card_with_outdated_lower_seat_count--Event.list.3.json",@@ -554,7 +554,7 @@"total_excluding_tax": 48000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": null+ "webhooks_delivered_at": 1000000000},"previous_attributes": {"amount_paid": 0,diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--Invoice.pay.1.jsonindex 6e5ae3d46c7..8a8ba5df76f 100644--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--Invoice.pay.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--Invoice.pay.1.json@@ -170,5 +170,5 @@"total_excluding_tax": 48000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": null+ "webhooks_delivered_at": 1000000000}diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--PaymentMethod.create.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--PaymentMethod.create.1.jsonindex 396a6a9540f..11b9db658ea 100644--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--PaymentMethod.create.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--PaymentMethod.create.1.json@@ -6,7 +6,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -22,8 +22,8 @@},"country": "US","display_brand": "visa",- "exp_month": 9,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Charge.list.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Charge.list.1.jsonindex f3f0f9eef08..9b77eb5d37f 100644--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Charge.list.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Charge.list.1.json@@ -14,7 +14,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -63,8 +63,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Customer.retrieve.1.jsonindex d09908e3793..6a8ca6ab31b 100644--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Customer.retrieve.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Customer.retrieve.1.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Customer.retrieve.2.jsonindex d09908e3793..6a8ca6ab31b 100644--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Customer.retrieve.2.json+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Customer.retrieve.2.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Event.list.2.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Event.list.2.jsonindex 4c89dd63e72..664111e0797 100644--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Event.list.2.json+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Event.list.2.json@@ -33,7 +33,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -82,8 +82,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -209,7 +209,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -258,8 +258,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -392,7 +392,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -466,7 +466,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -579,7 +581,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -653,7 +655,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -860,7 +864,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -934,7 +938,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -992,7 +998,7 @@"metadata": {},"object": "invoiceitem","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Event.list.3.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Event.list.3.jsonindex 63e38d156a2..deac3f645e5 100644--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Event.list.3.json+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Event.list.3.json@@ -66,7 +66,7 @@"discount_amounts": [],"discountable": false,"discounts": [],- "id": "upgrade_by_card_with_outdated_seat_count--Event.list.2.json",+ "id": "upgrade_by_card_with_outdated_seat_count--Event.list.3.json","invoice": "upgrade_by_card_with_outdated_seat_count--Event.list.2.json","invoice_item": "ii_NORMALIZED","livemode": false,@@ -147,7 +147,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -253,7 +255,7 @@"discount_amounts": [],"discountable": false,"discounts": [],- "id": "upgrade_by_card_with_outdated_seat_count--Event.list.2.json",+ "id": "upgrade_by_card_with_outdated_seat_count--Event.list.3.json","invoice": "upgrade_by_card_with_outdated_seat_count--Event.list.2.json","invoice_item": "ii_NORMALIZED","livemode": false,@@ -334,7 +336,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -367,7 +371,7 @@"id": "upgrade_by_card_with_outdated_seat_count--Event.list.3.json","livemode": false,"object": "event",- "pending_webhooks": 0,+ "pending_webhooks": 1,"request": {"id": "upgrade_by_card_with_outdated_seat_count--Event.list.2.json","idempotency_key": "00000000-0000-0000-0000-000000000000"@@ -440,7 +444,7 @@"discount_amounts": [],"discountable": false,"discounts": [],- "id": "upgrade_by_card_with_outdated_seat_count--Event.list.2.json",+ "id": "upgrade_by_card_with_outdated_seat_count--Event.list.3.json","invoice": "upgrade_by_card_with_outdated_seat_count--Event.list.2.json","invoice_item": "ii_NORMALIZED","livemode": false,@@ -521,7 +525,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,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.jsonindex 951cb5b42ce..3794aa42cc4 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@@ -139,7 +139,190 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null+ },+ "rendering_options": null,+ "shipping_cost": null,+ "shipping_details": null,+ "starting_balance": 0,+ "statement_descriptor": "Zulip Cloud Standard",+ "status": "open",+ "status_transitions": {+ "finalized_at": 1000000000,+ "marked_uncollectible_at": null,+ "paid_at": null,+ "voided_at": null+ },+ "subscription": null,+ "subscription_details": {+ "metadata": null+ },+ "subtotal": 136000,+ "subtotal_excluding_tax": 136000,+ "tax": null,+ "test_clock": null,+ "total": 136000,+ "total_discount_amounts": [],+ "total_excluding_tax": 136000,+ "total_tax_amounts": [],+ "transfer_data": null,+ "webhooks_delivered_at": null+ }+ },+ "id": "upgrade_by_card_with_outdated_seat_count--Event.list.4.json",+ "livemode": false,+ "object": "event",+ "pending_webhooks": 2,+ "request": {+ "id": "upgrade_by_card_with_outdated_seat_count--Event.list.4.json",+ "idempotency_key": "00000000-0000-0000-0000-000000000000"+ },+ "type": "invoice.finalized"+ },+ {+ "api_version": "2020-08-27",+ "created": 1000000000,+ "data": {+ "object": {+ "account_country": "US",+ "account_name": "Kandra Labs, Inc.",+ "account_tax_ids": null,+ "amount_due": 136000,+ "amount_paid": 0,+ "amount_remaining": 136000,+ "amount_shipping": 0,+ "application": null,+ "application_fee_amount": null,+ "attempt_count": 0,+ "attempted": false,+ "auto_advance": true,+ "automatic_tax": {+ "enabled": false,+ "liability": null,+ "status": null+ },+ "automatically_finalizes_at": null,+ "billing_reason": "manual",+ "charge": null,+ "collection_method": "charge_automatically",+ "created": 1000000000,+ "currency": "usd",+ "custom_fields": null,+ "customer": "cus_NORMALIZED",+ "customer_address": null,+ "customer_email": "[email protected]",+ "customer_name": null,+ "customer_phone": null,+ "customer_shipping": null,+ "customer_tax_exempt": "none",+ "customer_tax_ids": [],+ "default_payment_method": null,+ "default_source": null,+ "default_tax_rates": [],+ "description": null,+ "discount": null,+ "discounts": [],+ "due_date": null,+ "effective_at": 1000000000,+ "ending_balance": 0,+ "footer": null,+ "from_invoice": null,+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",+ "id": "upgrade_by_card_with_outdated_seat_count--Event.list.4.json",+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",+ "issuer": {+ "type": "self"+ },+ "last_finalization_error": null,+ "latest_revision": null,+ "lines": {+ "data": [+ {+ "amount": 136000,+ "amount_excluding_tax": 136000,+ "currency": "usd",+ "description": "Additional license (Jan 2, 2012 - Jan 2, 2013)",+ "discount_amounts": [],+ "discountable": false,+ "discounts": [],+ "id": "upgrade_by_card_with_outdated_seat_count--Event.list.4.json",+ "invoice": "upgrade_by_card_with_outdated_seat_count--Event.list.4.json",+ "invoice_item": "upgrade_by_card_with_outdated_seat_count--Event.list.4.json",+ "livemode": false,+ "metadata": {},+ "object": "line_item",+ "period": {+ "end": 1357095845,+ "start": 1325473445+ },+ "plan": null,+ "price": {+ "active": false,+ "billing_scheme": "per_unit",+ "created": 1000000000,+ "currency": "usd",+ "custom_unit_amount": null,+ "id": "upgrade_by_card_with_outdated_seat_count--Event.list.4.json",+ "livemode": false,+ "lookup_key": null,+ "metadata": {},+ "nickname": null,+ "object": "price",+ "product": "prod_NORMALIZED",+ "recurring": null,+ "tax_behavior": "unspecified",+ "tiers_mode": null,+ "transform_quantity": null,+ "type": "one_time",+ "unit_amount": 8000,+ "unit_amount_decimal": "8000"+ },+ "proration": false,+ "proration_details": {+ "credited_items": null+ },+ "quantity": 17,+ "subscription": null,+ "tax_amounts": [],+ "tax_rates": [],+ "type": "invoiceitem",+ "unit_amount_excluding_tax": "8000"+ }+ ],+ "has_more": false,+ "object": "list",+ "total_count": 1,+ "url": "/v1/invoices/upgrade_by_card_with_outdated_seat_count--Event.list.4.json/lines"+ },+ "livemode": false,+ "metadata": {},+ "next_payment_attempt": 1000000000,+ "number": "NORMALIZED",+ "object": "invoice",+ "on_behalf_of": null,+ "paid": false,+ "paid_out_of_band": false,+ "payment_intent": "upgrade_by_card_with_outdated_seat_count--Event.list.4.json",+ "payment_settings": {+ "default_mandate": null,+ "payment_method_options": null,+ "payment_method_types": null+ },+ "period_end": 1000000000,+ "period_start": 1000000000,+ "post_payment_credit_notes_amount": 0,+ "pre_payment_credit_notes_amount": 0,+ "quote": null,+ "receipt_number": null,+ "rendering": {+ "amount_tax_display": null,+ "pdf": {+ "page_size": "letter"+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -413,7 +596,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,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.jsonindex 000f2fb0c51..6d922067afe 100644--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Event.list.5.json+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Event.list.5.json@@ -1,185 +1,5 @@{- "data": [- {- "api_version": "2020-08-27",- "created": 1000000000,- "data": {- "object": {- "account_country": "US",- "account_name": "Kandra Labs, Inc.",- "account_tax_ids": null,- "amount_due": 136000,- "amount_paid": 0,- "amount_remaining": 136000,- "amount_shipping": 0,- "application": null,- "application_fee_amount": null,- "attempt_count": 0,- "attempted": false,- "auto_advance": true,- "automatic_tax": {- "enabled": false,- "liability": null,- "status": null- },- "automatically_finalizes_at": null,- "billing_reason": "manual",- "charge": null,- "collection_method": "charge_automatically",- "created": 1000000000,- "currency": "usd",- "custom_fields": null,- "customer": "cus_NORMALIZED",- "customer_address": null,- "customer_email": "[email protected]",- "customer_name": null,- "customer_phone": null,- "customer_shipping": null,- "customer_tax_exempt": "none",- "customer_tax_ids": [],- "default_payment_method": null,- "default_source": null,- "default_tax_rates": [],- "description": null,- "discount": null,- "discounts": [],- "due_date": null,- "effective_at": 1000000000,- "ending_balance": 0,- "footer": null,- "from_invoice": null,- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",- "id": "upgrade_by_card_with_outdated_seat_count--Event.list.4.json",- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",- "issuer": {- "type": "self"- },- "last_finalization_error": null,- "latest_revision": null,- "lines": {- "data": [- {- "amount": 136000,- "amount_excluding_tax": 136000,- "currency": "usd",- "description": "Additional license (Jan 2, 2012 - Jan 2, 2013)",- "discount_amounts": [],- "discountable": false,- "discounts": [],- "id": "upgrade_by_card_with_outdated_seat_count--Event.list.4.json",- "invoice": "upgrade_by_card_with_outdated_seat_count--Event.list.4.json",- "invoice_item": "ii_NORMALIZED",- "livemode": false,- "metadata": {},- "object": "line_item",- "period": {- "end": 1357095845,- "start": 1325473445- },- "plan": null,- "price": {- "active": false,- "billing_scheme": "per_unit",- "created": 1000000000,- "currency": "usd",- "custom_unit_amount": null,- "id": "upgrade_by_card_with_outdated_seat_count--Event.list.4.json",- "livemode": false,- "lookup_key": null,- "metadata": {},- "nickname": null,- "object": "price",- "product": "prod_NORMALIZED",- "recurring": null,- "tax_behavior": "unspecified",- "tiers_mode": null,- "transform_quantity": null,- "type": "one_time",- "unit_amount": 8000,- "unit_amount_decimal": "8000"- },- "proration": false,- "proration_details": {- "credited_items": null- },- "quantity": 17,- "subscription": null,- "tax_amounts": [],- "tax_rates": [],- "type": "invoiceitem",- "unit_amount_excluding_tax": "8000"- }- ],- "has_more": false,- "object": "list",- "total_count": 1,- "url": "/v1/invoices/upgrade_by_card_with_outdated_seat_count--Event.list.4.json/lines"- },- "livemode": false,- "metadata": {},- "next_payment_attempt": 1000000000,- "number": "NORMALIZED",- "object": "invoice",- "on_behalf_of": null,- "paid": false,- "paid_out_of_band": false,- "payment_intent": "pi_NORMALIZED",- "payment_settings": {- "default_mandate": null,- "payment_method_options": null,- "payment_method_types": null- },- "period_end": 1000000000,- "period_start": 1000000000,- "post_payment_credit_notes_amount": 0,- "pre_payment_credit_notes_amount": 0,- "quote": null,- "receipt_number": null,- "rendering": {- "amount_tax_display": null,- "pdf": {- "page_size": "letter"- }- },- "rendering_options": null,- "shipping_cost": null,- "shipping_details": null,- "starting_balance": 0,- "statement_descriptor": "Zulip Cloud Standard",- "status": "open",- "status_transitions": {- "finalized_at": 1000000000,- "marked_uncollectible_at": null,- "paid_at": null,- "voided_at": null- },- "subscription": null,- "subscription_details": {- "metadata": null- },- "subtotal": 136000,- "subtotal_excluding_tax": 136000,- "tax": null,- "test_clock": null,- "total": 136000,- "total_discount_amounts": [],- "total_excluding_tax": 136000,- "total_tax_amounts": [],- "transfer_data": null,- "webhooks_delivered_at": null- }- },- "id": "upgrade_by_card_with_outdated_seat_count--Event.list.5.json",- "livemode": false,- "object": "event",- "pending_webhooks": 0,- "request": {- "id": "upgrade_by_card_with_outdated_seat_count--Event.list.4.json",- "idempotency_key": "00000000-0000-0000-0000-000000000000"- },- "type": "invoice.finalized"- }- ],+ "data": [],"has_more": false,"object": "list","url": "/v1/events"diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Event.list.6.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Event.list.6.jsondeleted file mode 100644index 6d922067afe..00000000000--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Event.list.6.json+++ /dev/null@@ -1,6 +0,0 @@-{- "data": [],- "has_more": false,- "object": "list",- "url": "/v1/events"-}diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Invoice.create.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Invoice.create.1.jsonindex 7700697de5f..3dfaec9d7ab 100644--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Invoice.create.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Invoice.create.1.json@@ -60,7 +60,7 @@"discount_amounts": [],"discountable": false,"discounts": [],- "id": "upgrade_by_card_with_outdated_seat_count--Event.list.2.json",+ "id": "upgrade_by_card_with_outdated_seat_count--Event.list.3.json","invoice": "upgrade_by_card_with_outdated_seat_count--Event.list.2.json","invoice_item": "ii_NORMALIZED","livemode": false,@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Invoice.create.2.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Invoice.create.2.jsonindex 10825e03531..9e1fac9dd4c 100644--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Invoice.create.2.json+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Invoice.create.2.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Invoice.finalize_invoice.1.jsonindex 843868d640b..2cd2294ccce 100644--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Invoice.finalize_invoice.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Invoice.finalize_invoice.1.json@@ -60,7 +60,7 @@"discount_amounts": [],"discountable": false,"discounts": [],- "id": "upgrade_by_card_with_outdated_seat_count--Event.list.2.json",+ "id": "upgrade_by_card_with_outdated_seat_count--Event.list.3.json","invoice": "upgrade_by_card_with_outdated_seat_count--Event.list.2.json","invoice_item": "ii_NORMALIZED","livemode": false,@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,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.jsonindex 2fc570f5888..9f79c6d7d93 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@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Invoice.list.2.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Invoice.list.2.jsonindex c19f8cc8d2d..990cbb40359 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@@ -135,7 +135,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -226,7 +228,7 @@"discount_amounts": [],"discountable": false,"discounts": [],- "id": "upgrade_by_card_with_outdated_seat_count--Event.list.2.json",+ "id": "upgrade_by_card_with_outdated_seat_count--Event.list.3.json","invoice": "upgrade_by_card_with_outdated_seat_count--Event.list.2.json","invoice_item": "ii_NORMALIZED","livemode": false,@@ -307,7 +309,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Invoice.pay.1.jsonindex 09cfa7d4608..ec1518bfea9 100644--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Invoice.pay.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Invoice.pay.1.json@@ -60,7 +60,7 @@"discount_amounts": [],"discountable": false,"discounts": [],- "id": "upgrade_by_card_with_outdated_seat_count--Event.list.2.json",+ "id": "upgrade_by_card_with_outdated_seat_count--Event.list.3.json","invoice": "upgrade_by_card_with_outdated_seat_count--Event.list.2.json","invoice_item": "ii_NORMALIZED","livemode": false,@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--PaymentMethod.create.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--PaymentMethod.create.1.jsonindex 95979650c0f..0dd5c6abfb9 100644--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--PaymentMethod.create.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--PaymentMethod.create.1.json@@ -6,7 +6,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -22,8 +22,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Charge.list.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Charge.list.1.jsonindex 9359655d1b1..74b4f5c458e 100644--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Charge.list.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Charge.list.1.json@@ -14,7 +14,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -63,8 +63,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 9,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Customer.retrieve.1.jsonindex 2562e0b4220..7e4b0ea5b34 100644--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Customer.retrieve.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Customer.retrieve.1.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 9,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Customer.retrieve.2.jsonindex 2562e0b4220..7e4b0ea5b34 100644--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Customer.retrieve.2.json+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Customer.retrieve.2.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 9,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.jsonindex 7a893d89bdd..29d54293f86 100644--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json@@ -33,7 +33,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -82,8 +82,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 9,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -184,7 +184,7 @@"id": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json","livemode": false,"object": "event",- "pending_webhooks": 0,+ "pending_webhooks": 1,"request": {"id": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json","idempotency_key": "00000000-0000-0000-0000-000000000000"@@ -209,7 +209,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -258,8 +258,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 9,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -392,7 +392,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -495,7 +495,7 @@"total_excluding_tax": 40000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null}},"id": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json",@@ -581,7 +581,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -684,7 +684,7 @@"total_excluding_tax": 40000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null},"previous_attributes": {"effective_at": null,@@ -864,7 +864,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -998,7 +998,7 @@"metadata": {},"object": "invoiceitem","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.3.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.3.jsonindex 92539b43458..c59f2b83e3b 100644--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.3.json+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.3.json@@ -49,7 +49,7 @@"footer": null,"from_invoice": null,"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",- "id": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json",+ "id": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.3.json","invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap","issuer": {"type": "self"@@ -67,7 +67,7 @@"discountable": false,"discounts": [],"id": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json",- "invoice": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json",+ "invoice": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.3.json","invoice_item": "ii_NORMALIZED","livemode": false,"metadata": {},@@ -113,7 +113,7 @@"has_more": false,"object": "list","total_count": 1,- "url": "/v1/invoices/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json/lines"+ "url": "/v1/invoices/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.3.json/lines"},"livemode": false,"metadata": {@@ -182,7 +182,7 @@"id": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.3.json","livemode": false,"object": "event",- "pending_webhooks": 0,+ "pending_webhooks": 2,"request": {"id": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json","idempotency_key": "00000000-0000-0000-0000-000000000000"@@ -238,7 +238,7 @@"footer": null,"from_invoice": null,"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",- "id": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json",+ "id": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.3.json","invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap","issuer": {"type": "self"@@ -256,7 +256,7 @@"discountable": false,"discounts": [],"id": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json",- "invoice": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json",+ "invoice": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.3.json","invoice_item": "ii_NORMALIZED","livemode": false,"metadata": {},@@ -302,7 +302,7 @@"has_more": false,"object": "list","total_count": 1,- "url": "/v1/invoices/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json/lines"+ "url": "/v1/invoices/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.3.json/lines"},"livemode": false,"metadata": {@@ -427,7 +427,7 @@"footer": null,"from_invoice": null,"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",- "id": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json",+ "id": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.3.json","invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap","issuer": {"type": "self"@@ -445,7 +445,7 @@"discountable": false,"discounts": [],"id": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json",- "invoice": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json",+ "invoice": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.3.json","invoice_item": "ii_NORMALIZED","livemode": false,"metadata": {},@@ -491,7 +491,7 @@"has_more": false,"object": "list","total_count": 1,- "url": "/v1/invoices/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json/lines"+ "url": "/v1/invoices/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.3.json/lines"},"livemode": false,"metadata": {diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Invoice.create.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Invoice.create.1.jsonindex 957b5e08a3e..6ebb83f5fba 100644--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Invoice.create.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Invoice.create.1.json@@ -43,7 +43,7 @@"footer": null,"from_invoice": null,"hosted_invoice_url": null,- "id": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json",+ "id": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.3.json","invoice_pdf": null,"issuer": {"type": "self"@@ -61,7 +61,7 @@"discountable": false,"discounts": [],"id": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json",- "invoice": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json",+ "invoice": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.3.json","invoice_item": "ii_NORMALIZED","livemode": false,"metadata": {},@@ -107,7 +107,7 @@"has_more": false,"object": "list","total_count": 1,- "url": "/v1/invoices/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json/lines"+ "url": "/v1/invoices/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.3.json/lines"},"livemode": false,"metadata": {diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Invoice.finalize_invoice.1.jsonindex b67cbf845ee..9f90e98c72b 100644--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Invoice.finalize_invoice.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Invoice.finalize_invoice.1.json@@ -43,7 +43,7 @@"footer": null,"from_invoice": null,"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",- "id": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json",+ "id": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.3.json","invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap","issuer": {"type": "self"@@ -61,7 +61,7 @@"discountable": false,"discounts": [],"id": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json",- "invoice": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json",+ "invoice": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.3.json","invoice_item": "ii_NORMALIZED","livemode": false,"metadata": {},@@ -107,7 +107,7 @@"has_more": false,"object": "list","total_count": 1,- "url": "/v1/invoices/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json/lines"+ "url": "/v1/invoices/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.3.json/lines"},"livemode": false,"metadata": {@@ -170,5 +170,5 @@"total_excluding_tax": 40000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null}diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Invoice.list.2.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Invoice.list.2.jsonindex 774009d5cf6..877ea3c3694 100644--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Invoice.list.2.json+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Invoice.list.2.json@@ -45,7 +45,7 @@"footer": null,"from_invoice": null,"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",- "id": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json",+ "id": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.3.json","invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap","issuer": {"type": "self"@@ -63,7 +63,7 @@"discountable": false,"discounts": [],"id": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json",- "invoice": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json",+ "invoice": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.3.json","invoice_item": "ii_NORMALIZED","livemode": false,"metadata": {},@@ -109,7 +109,7 @@"has_more": false,"object": "list","total_count": 1,- "url": "/v1/invoices/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json/lines"+ "url": "/v1/invoices/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.3.json/lines"},"livemode": false,"metadata": {diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Invoice.pay.1.jsonindex b5caddfa80c..1ecda7bcafa 100644--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Invoice.pay.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Invoice.pay.1.json@@ -43,7 +43,7 @@"footer": null,"from_invoice": null,"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",- "id": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json",+ "id": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.3.json","invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap","issuer": {"type": "self"@@ -61,7 +61,7 @@"discountable": false,"discounts": [],"id": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json",- "invoice": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json",+ "invoice": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.3.json","invoice_item": "ii_NORMALIZED","livemode": false,"metadata": {},@@ -107,7 +107,7 @@"has_more": false,"object": "list","total_count": 1,- "url": "/v1/invoices/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json/lines"+ "url": "/v1/invoices/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.3.json/lines"},"livemode": false,"metadata": {diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--InvoiceItem.create.1.jsonindex 61ee109f458..a3e30061deb 100644--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--InvoiceItem.create.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--InvoiceItem.create.1.json@@ -6,7 +6,7 @@"description": "Zulip Cloud Standard","discountable": false,"discounts": [],- "id": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json",+ "id": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--InvoiceItem.create.1.json","invoice": null,"livemode": false,"metadata": {},diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--PaymentMethod.create.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--PaymentMethod.create.1.jsonindex fcd9d75d704..2ce37e6f2a5 100644--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--PaymentMethod.create.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--PaymentMethod.create.1.json@@ -6,7 +6,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -22,8 +22,8 @@},"country": "US","display_brand": "visa",- "exp_month": 9,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_by_invoice--Event.list.1.json b/corporate/tests/stripe_fixtures/upgrade_by_invoice--Event.list.1.jsonindex 9ec914a6eb8..200bafc4cfc 100644--- a/corporate/tests/stripe_fixtures/upgrade_by_invoice--Event.list.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_by_invoice--Event.list.1.json@@ -8,15 +8,15 @@"account_country": "US","account_name": "Kandra Labs, Inc.","account_tax_ids": null,- "amount_due": 136000,- "amount_paid": 0,- "amount_remaining": 136000,+ "amount_due": 40000,+ "amount_paid": 40000,+ "amount_remaining": 0,"amount_shipping": 0,"application": null,"application_fee_amount": null,- "attempt_count": 0,- "attempted": false,- "auto_advance": true,+ "attempt_count": 1,+ "attempted": true,+ "auto_advance": false,"automatic_tax": {"enabled": false,"liability": null,@@ -24,7 +24,7 @@},"automatically_finalizes_at": null,"billing_reason": "manual",- "charge": null,+ "charge": "ch_NORMALIZED","collection_method": "charge_automatically","created": 1000000000,"currency": "usd",@@ -59,10 +59,10 @@"lines": {"data": [{- "amount": 136000,- "amount_excluding_tax": 136000,+ "amount": 40000,+ "amount_excluding_tax": 40000,"currency": "usd",- "description": "Additional license (Jan 2, 2012 - Jan 2, 2013)",+ "description": "Zulip Cloud Standard","discount_amounts": [],"discountable": false,"discounts": [],@@ -102,7 +102,7 @@"proration_details": {"credited_items": null},- "quantity": 17,+ "quantity": 5,"subscription": null,"tax_amounts": [],"tax_rates": [],@@ -116,12 +116,20 @@"url": "/v1/invoices/upgrade_by_invoice--Event.list.1.json/lines"},"livemode": false,- "metadata": {},- "next_payment_attempt": 1000000000,+ "metadata": {+ "billing_schedule": "1",+ "current_plan_id": "None",+ "license_management": "automatic",+ "licenses": "5",+ "on_free_trial": "False",+ "plan_tier": "1",+ "user_id": "10"+ },+ "next_payment_attempt": null,"number": "NORMALIZED","object": "invoice","on_behalf_of": null,- "paid": false,+ "paid": true,"paid_out_of_band": false,"payment_intent": "pi_NORMALIZED","payment_settings": {@@ -139,34 +147,36 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,"shipping_details": null,"starting_balance": 0,"statement_descriptor": "Zulip Cloud Standard",- "status": "open",+ "status": "paid","status_transitions": {"finalized_at": 1000000000,"marked_uncollectible_at": null,- "paid_at": null,+ "paid_at": 1000000000,"voided_at": null},"subscription": null,"subscription_details": {"metadata": null},- "subtotal": 136000,- "subtotal_excluding_tax": 136000,+ "subtotal": 40000,+ "subtotal_excluding_tax": 40000,"tax": null,"test_clock": null,- "total": 136000,+ "total": 40000,"total_discount_amounts": [],- "total_excluding_tax": 136000,+ "total_excluding_tax": 40000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": null+ "webhooks_delivered_at": 1000000000}},"id": "upgrade_by_invoice--Event.list.1.json",@@ -177,7 +187,7 @@"id": "upgrade_by_invoice--Event.list.1.json","idempotency_key": "00000000-0000-0000-0000-000000000000"},- "type": "invoice.finalized"+ "type": "invoice.payment_succeeded"}],"has_more": true,diff --git a/corporate/tests/stripe_fixtures/upgrade_by_invoice--Event.list.2.json b/corporate/tests/stripe_fixtures/upgrade_by_invoice--Event.list.2.jsonindex 39121c28070..18d43cd866b 100644--- a/corporate/tests/stripe_fixtures/upgrade_by_invoice--Event.list.2.json+++ b/corporate/tests/stripe_fixtures/upgrade_by_invoice--Event.list.2.json@@ -276,7 +276,7 @@"created": 1000000000,"currency": "usd","custom_unit_amount": null,- "id": "upgrade_by_invoice--Event.list.2.json",+ "id": "upgrade_by_invoice--Event.list.1.json","livemode": false,"lookup_key": null,"metadata": {},@@ -340,7 +340,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -367,7 +369,7 @@"total_excluding_tax": 984000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null}},"id": "upgrade_by_invoice--Event.list.2.json",@@ -463,7 +465,7 @@"created": 1000000000,"currency": "usd","custom_unit_amount": null,- "id": "upgrade_by_invoice--Event.list.2.json",+ "id": "upgrade_by_invoice--Event.list.1.json","livemode": false,"lookup_key": null,"metadata": {},@@ -527,7 +529,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -554,7 +558,7 @@"total_excluding_tax": 984000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null},"previous_attributes": {"automatically_finalizes_at": 1000000000,@@ -751,7 +755,7 @@"created": 1000000000,"currency": "usd","custom_unit_amount": null,- "id": "upgrade_by_invoice--Event.list.2.json",+ "id": "upgrade_by_invoice--Event.list.1.json","livemode": false,"lookup_key": null,"metadata": {},@@ -815,7 +819,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -883,7 +889,7 @@"created": 1000000000,"currency": "usd","custom_unit_amount": null,- "id": "upgrade_by_invoice--Event.list.2.json",+ "id": "upgrade_by_invoice--Event.list.1.json","livemode": false,"lookup_key": null,"metadata": {},@@ -1018,7 +1024,7 @@"type": "customer.created"}],- "has_more": false,+ "has_more": true,"object": "list","url": "/v1/events"}diff --git a/corporate/tests/stripe_fixtures/upgrade_by_invoice--Event.list.3.json b/corporate/tests/stripe_fixtures/upgrade_by_invoice--Event.list.3.jsonindex ce8b81274cf..46afbc6827f 100644--- a/corporate/tests/stripe_fixtures/upgrade_by_invoice--Event.list.3.json+++ b/corporate/tests/stripe_fixtures/upgrade_by_invoice--Event.list.3.json@@ -83,7 +83,7 @@"created": 1000000000,"currency": "usd","custom_unit_amount": null,- "id": "upgrade_by_invoice--Event.list.2.json",+ "id": "upgrade_by_invoice--Event.list.1.json","livemode": false,"lookup_key": null,"metadata": {},@@ -147,7 +147,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -270,7 +272,7 @@"created": 1000000000,"currency": "usd","custom_unit_amount": null,- "id": "upgrade_by_invoice--Event.list.2.json",+ "id": "upgrade_by_invoice--Event.list.1.json","livemode": false,"lookup_key": null,"metadata": {},@@ -334,7 +336,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_by_invoice--Invoice.create.1.json b/corporate/tests/stripe_fixtures/upgrade_by_invoice--Invoice.create.1.jsonindex 56e1608c7ea..1ff40209e12 100644--- a/corporate/tests/stripe_fixtures/upgrade_by_invoice--Invoice.create.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_by_invoice--Invoice.create.1.json@@ -77,7 +77,7 @@"created": 1000000000,"currency": "usd","custom_unit_amount": null,- "id": "upgrade_by_invoice--Event.list.2.json",+ "id": "upgrade_by_invoice--Event.list.1.json","livemode": false,"lookup_key": null,"metadata": {},@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_by_invoice--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/upgrade_by_invoice--Invoice.finalize_invoice.1.jsonindex 5a3db95786e..d8a26e8d73e 100644--- a/corporate/tests/stripe_fixtures/upgrade_by_invoice--Invoice.finalize_invoice.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_by_invoice--Invoice.finalize_invoice.1.json@@ -77,7 +77,7 @@"created": 1000000000,"currency": "usd","custom_unit_amount": null,- "id": "upgrade_by_invoice--Event.list.2.json",+ "id": "upgrade_by_invoice--Event.list.1.json","livemode": false,"lookup_key": null,"metadata": {},@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -168,5 +170,5 @@"total_excluding_tax": 984000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null}diff --git a/corporate/tests/stripe_fixtures/upgrade_by_invoice--Invoice.list.1.json b/corporate/tests/stripe_fixtures/upgrade_by_invoice--Invoice.list.1.jsonindex 717f5333e8d..872567236d8 100644--- a/corporate/tests/stripe_fixtures/upgrade_by_invoice--Invoice.list.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_by_invoice--Invoice.list.1.json@@ -79,7 +79,7 @@"created": 1000000000,"currency": "usd","custom_unit_amount": null,- "id": "upgrade_by_invoice--Event.list.2.json",+ "id": "upgrade_by_invoice--Event.list.1.json","livemode": false,"lookup_key": null,"metadata": {},@@ -143,7 +143,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_by_invoice--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/upgrade_by_invoice--Invoice.pay.1.jsonindex ee2c36ff69b..444f3144902 100644--- a/corporate/tests/stripe_fixtures/upgrade_by_invoice--Invoice.pay.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_by_invoice--Invoice.pay.1.json@@ -77,7 +77,7 @@"created": 1000000000,"currency": "usd","custom_unit_amount": null,- "id": "upgrade_by_invoice--Event.list.2.json",+ "id": "upgrade_by_invoice--Event.list.1.json","livemode": false,"lookup_key": null,"metadata": {},@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_by_invoice--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/upgrade_by_invoice--InvoiceItem.create.1.jsonindex 3a65af3b6c8..32dd4f45cf5 100644--- a/corporate/tests/stripe_fixtures/upgrade_by_invoice--InvoiceItem.create.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_by_invoice--InvoiceItem.create.1.json@@ -22,7 +22,7 @@"created": 1000000000,"currency": "usd","custom_unit_amount": null,- "id": "upgrade_by_invoice--Event.list.2.json",+ "id": "upgrade_by_invoice--Event.list.1.json","livemode": false,"lookup_key": null,"metadata": {},diff --git a/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Event.list.1.json b/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Event.list.1.jsonindex 1ce52e1dab7..2007144ac55 100644--- a/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Event.list.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Event.list.1.json@@ -147,7 +147,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Event.list.2.json b/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Event.list.2.jsonindex 0b639fbab21..789aedbfd95 100644--- a/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Event.list.2.json+++ b/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Event.list.2.json@@ -340,7 +340,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -527,7 +529,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -815,7 +819,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Event.list.3.json b/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Event.list.3.jsonindex b3f88a7a1f0..75c9a3a74fb 100644--- a/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Event.list.3.json+++ b/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Event.list.3.json@@ -147,7 +147,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -334,7 +336,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Invoice.create.1.json b/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Invoice.create.1.jsonindex 9428c60b4b2..8a76f2e9655 100644--- a/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Invoice.create.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Invoice.create.1.json@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Invoice.finalize_invoice.1.jsonindex 4554ec49d6a..a58beeab485 100644--- a/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Invoice.finalize_invoice.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Invoice.finalize_invoice.1.json@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Invoice.list.1.json b/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Invoice.list.1.jsonindex d261b2fc9c3..e9486f3580d 100644--- a/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Invoice.list.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Invoice.list.1.json@@ -143,7 +143,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Invoice.pay.1.jsonindex 995e3f2a052..a8f89b4bf2e 100644--- a/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Invoice.pay.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Invoice.pay.1.json@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_legacy_plan--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/upgrade_legacy_plan--Customer.retrieve.1.jsonindex 835c1d5f0c4..41d28328e4d 100644--- a/corporate/tests/stripe_fixtures/upgrade_legacy_plan--Customer.retrieve.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_legacy_plan--Customer.retrieve.1.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/upgrade_legacy_plan--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/upgrade_legacy_plan--Customer.retrieve.2.jsonindex 835c1d5f0c4..41d28328e4d 100644--- a/corporate/tests/stripe_fixtures/upgrade_legacy_plan--Customer.retrieve.2.json+++ b/corporate/tests/stripe_fixtures/upgrade_legacy_plan--Customer.retrieve.2.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/upgrade_legacy_plan--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/upgrade_legacy_plan--Customer.retrieve.3.jsonindex 835c1d5f0c4..41d28328e4d 100644--- a/corporate/tests/stripe_fixtures/upgrade_legacy_plan--Customer.retrieve.3.json+++ b/corporate/tests/stripe_fixtures/upgrade_legacy_plan--Customer.retrieve.3.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/upgrade_legacy_plan--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/upgrade_legacy_plan--Customer.retrieve.4.jsonindex 835c1d5f0c4..41d28328e4d 100644--- a/corporate/tests/stripe_fixtures/upgrade_legacy_plan--Customer.retrieve.4.json+++ b/corporate/tests/stripe_fixtures/upgrade_legacy_plan--Customer.retrieve.4.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/upgrade_legacy_plan--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/upgrade_legacy_plan--Customer.retrieve.5.jsonindex 835c1d5f0c4..41d28328e4d 100644--- a/corporate/tests/stripe_fixtures/upgrade_legacy_plan--Customer.retrieve.5.json+++ b/corporate/tests/stripe_fixtures/upgrade_legacy_plan--Customer.retrieve.5.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/upgrade_legacy_plan--Customer.retrieve.6.json b/corporate/tests/stripe_fixtures/upgrade_legacy_plan--Customer.retrieve.6.jsonindex 835c1d5f0c4..41d28328e4d 100644--- a/corporate/tests/stripe_fixtures/upgrade_legacy_plan--Customer.retrieve.6.json+++ b/corporate/tests/stripe_fixtures/upgrade_legacy_plan--Customer.retrieve.6.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/upgrade_legacy_plan--Customer.retrieve.7.json b/corporate/tests/stripe_fixtures/upgrade_legacy_plan--Customer.retrieve.7.jsonnew file mode 100644index 00000000000..41d28328e4d--- /dev/null+++ b/corporate/tests/stripe_fixtures/upgrade_legacy_plan--Customer.retrieve.7.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": null,+ "default_currency": null,+ "default_source": null,+ "delinquent": false,+ "description": "demo.example.com 6cde5f7a-1f7",+ "discount": null,+ "email": "[email protected]",+ "id": "upgrade_legacy_plan--Customer.create.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "upgrade_legacy_plan--Customer.create.1.json",+ "id": "upgrade_legacy_plan--Customer.retrieve.1.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "remote_server_str": "demo.example.com 6cde5f7a-1f7",+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"+ },+ "name": null,+ "next_invoice_sequence": 1,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/upgrade_legacy_plan--PaymentMethod.create.1.json b/corporate/tests/stripe_fixtures/upgrade_legacy_plan--PaymentMethod.create.1.jsonindex 83ccd0b3713..51d77eaebd1 100644--- a/corporate/tests/stripe_fixtures/upgrade_legacy_plan--PaymentMethod.create.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_legacy_plan--PaymentMethod.create.1.json@@ -6,7 +6,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -22,8 +22,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.1.jsonindex 9535335d97b..5775217dc3f 100644--- a/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.1.json@@ -9,7 +9,7 @@"description": "zulip (Zulip Dev)","discount": null,"email": "[email protected]",- "id": "upgrade_license_counts--Customer.create.1.json",+ "id": "upgrade_license_counts--Customer.retrieve.1.json","invoice_prefix": "NORMALIZED","invoice_settings": {"custom_fields": null,@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -55,7 +55,7 @@"wallet": null},"created": 1000000000,- "customer": "upgrade_license_counts--Customer.create.1.json",+ "customer": "upgrade_license_counts--Customer.retrieve.1.json","id": "upgrade_license_counts--Customer.retrieve.1.json","livemode": false,"metadata": {},diff --git a/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.10.json b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.10.jsonindex 9535335d97b..5775217dc3f 100644--- a/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.10.json+++ b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.10.json@@ -9,7 +9,7 @@"description": "zulip (Zulip Dev)","discount": null,"email": "[email protected]",- "id": "upgrade_license_counts--Customer.create.1.json",+ "id": "upgrade_license_counts--Customer.retrieve.1.json","invoice_prefix": "NORMALIZED","invoice_settings": {"custom_fields": null,@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -55,7 +55,7 @@"wallet": null},"created": 1000000000,- "customer": "upgrade_license_counts--Customer.create.1.json",+ "customer": "upgrade_license_counts--Customer.retrieve.1.json","id": "upgrade_license_counts--Customer.retrieve.1.json","livemode": false,"metadata": {},diff --git a/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.11.json b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.11.jsonindex 9535335d97b..5775217dc3f 100644--- a/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.11.json+++ b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.11.json@@ -9,7 +9,7 @@"description": "zulip (Zulip Dev)","discount": null,"email": "[email protected]",- "id": "upgrade_license_counts--Customer.create.1.json",+ "id": "upgrade_license_counts--Customer.retrieve.1.json","invoice_prefix": "NORMALIZED","invoice_settings": {"custom_fields": null,@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -55,7 +55,7 @@"wallet": null},"created": 1000000000,- "customer": "upgrade_license_counts--Customer.create.1.json",+ "customer": "upgrade_license_counts--Customer.retrieve.1.json","id": "upgrade_license_counts--Customer.retrieve.1.json","livemode": false,"metadata": {},diff --git a/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.12.json b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.12.jsonindex 9535335d97b..5775217dc3f 100644--- a/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.12.json+++ b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.12.json@@ -9,7 +9,7 @@"description": "zulip (Zulip Dev)","discount": null,"email": "[email protected]",- "id": "upgrade_license_counts--Customer.create.1.json",+ "id": "upgrade_license_counts--Customer.retrieve.1.json","invoice_prefix": "NORMALIZED","invoice_settings": {"custom_fields": null,@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -55,7 +55,7 @@"wallet": null},"created": 1000000000,- "customer": "upgrade_license_counts--Customer.create.1.json",+ "customer": "upgrade_license_counts--Customer.retrieve.1.json","id": "upgrade_license_counts--Customer.retrieve.1.json","livemode": false,"metadata": {},diff --git a/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.13.json b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.13.jsonindex 9535335d97b..5775217dc3f 100644--- a/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.13.json+++ b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.13.json@@ -9,7 +9,7 @@"description": "zulip (Zulip Dev)","discount": null,"email": "[email protected]",- "id": "upgrade_license_counts--Customer.create.1.json",+ "id": "upgrade_license_counts--Customer.retrieve.1.json","invoice_prefix": "NORMALIZED","invoice_settings": {"custom_fields": null,@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -55,7 +55,7 @@"wallet": null},"created": 1000000000,- "customer": "upgrade_license_counts--Customer.create.1.json",+ "customer": "upgrade_license_counts--Customer.retrieve.1.json","id": "upgrade_license_counts--Customer.retrieve.1.json","livemode": false,"metadata": {},diff --git a/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.14.json b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.14.jsonindex 9535335d97b..5775217dc3f 100644--- a/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.14.json+++ b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.14.json@@ -9,7 +9,7 @@"description": "zulip (Zulip Dev)","discount": null,"email": "[email protected]",- "id": "upgrade_license_counts--Customer.create.1.json",+ "id": "upgrade_license_counts--Customer.retrieve.1.json","invoice_prefix": "NORMALIZED","invoice_settings": {"custom_fields": null,@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -55,7 +55,7 @@"wallet": null},"created": 1000000000,- "customer": "upgrade_license_counts--Customer.create.1.json",+ "customer": "upgrade_license_counts--Customer.retrieve.1.json","id": "upgrade_license_counts--Customer.retrieve.1.json","livemode": false,"metadata": {},diff --git a/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.15.json b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.15.jsonindex 9535335d97b..5775217dc3f 100644--- a/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.15.json+++ b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.15.json@@ -9,7 +9,7 @@"description": "zulip (Zulip Dev)","discount": null,"email": "[email protected]",- "id": "upgrade_license_counts--Customer.create.1.json",+ "id": "upgrade_license_counts--Customer.retrieve.1.json","invoice_prefix": "NORMALIZED","invoice_settings": {"custom_fields": null,@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -55,7 +55,7 @@"wallet": null},"created": 1000000000,- "customer": "upgrade_license_counts--Customer.create.1.json",+ "customer": "upgrade_license_counts--Customer.retrieve.1.json","id": "upgrade_license_counts--Customer.retrieve.1.json","livemode": false,"metadata": {},diff --git a/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.16.json b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.16.jsonindex 9535335d97b..5775217dc3f 100644--- a/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.16.json+++ b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.16.json@@ -9,7 +9,7 @@"description": "zulip (Zulip Dev)","discount": null,"email": "[email protected]",- "id": "upgrade_license_counts--Customer.create.1.json",+ "id": "upgrade_license_counts--Customer.retrieve.1.json","invoice_prefix": "NORMALIZED","invoice_settings": {"custom_fields": null,@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -55,7 +55,7 @@"wallet": null},"created": 1000000000,- "customer": "upgrade_license_counts--Customer.create.1.json",+ "customer": "upgrade_license_counts--Customer.retrieve.1.json","id": "upgrade_license_counts--Customer.retrieve.1.json","livemode": false,"metadata": {},diff --git a/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.17.json b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.17.jsonindex 9535335d97b..5775217dc3f 100644--- a/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.17.json+++ b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.17.json@@ -9,7 +9,7 @@"description": "zulip (Zulip Dev)","discount": null,"email": "[email protected]",- "id": "upgrade_license_counts--Customer.create.1.json",+ "id": "upgrade_license_counts--Customer.retrieve.1.json","invoice_prefix": "NORMALIZED","invoice_settings": {"custom_fields": null,@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -55,7 +55,7 @@"wallet": null},"created": 1000000000,- "customer": "upgrade_license_counts--Customer.create.1.json",+ "customer": "upgrade_license_counts--Customer.retrieve.1.json","id": "upgrade_license_counts--Customer.retrieve.1.json","livemode": false,"metadata": {},diff --git a/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.18.json b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.18.jsonindex 9535335d97b..5775217dc3f 100644--- a/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.18.json+++ b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.18.json@@ -9,7 +9,7 @@"description": "zulip (Zulip Dev)","discount": null,"email": "[email protected]",- "id": "upgrade_license_counts--Customer.create.1.json",+ "id": "upgrade_license_counts--Customer.retrieve.1.json","invoice_prefix": "NORMALIZED","invoice_settings": {"custom_fields": null,@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -55,7 +55,7 @@"wallet": null},"created": 1000000000,- "customer": "upgrade_license_counts--Customer.create.1.json",+ "customer": "upgrade_license_counts--Customer.retrieve.1.json","id": "upgrade_license_counts--Customer.retrieve.1.json","livemode": false,"metadata": {},diff --git a/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.19.json b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.19.jsonindex 9535335d97b..5775217dc3f 100644--- a/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.19.json+++ b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.19.json@@ -9,7 +9,7 @@"description": "zulip (Zulip Dev)","discount": null,"email": "[email protected]",- "id": "upgrade_license_counts--Customer.create.1.json",+ "id": "upgrade_license_counts--Customer.retrieve.1.json","invoice_prefix": "NORMALIZED","invoice_settings": {"custom_fields": null,@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -55,7 +55,7 @@"wallet": null},"created": 1000000000,- "customer": "upgrade_license_counts--Customer.create.1.json",+ "customer": "upgrade_license_counts--Customer.retrieve.1.json","id": "upgrade_license_counts--Customer.retrieve.1.json","livemode": false,"metadata": {},diff --git a/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.2.jsonindex 9535335d97b..5775217dc3f 100644--- a/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.2.json+++ b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.2.json@@ -9,7 +9,7 @@"description": "zulip (Zulip Dev)","discount": null,"email": "[email protected]",- "id": "upgrade_license_counts--Customer.create.1.json",+ "id": "upgrade_license_counts--Customer.retrieve.1.json","invoice_prefix": "NORMALIZED","invoice_settings": {"custom_fields": null,@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -55,7 +55,7 @@"wallet": null},"created": 1000000000,- "customer": "upgrade_license_counts--Customer.create.1.json",+ "customer": "upgrade_license_counts--Customer.retrieve.1.json","id": "upgrade_license_counts--Customer.retrieve.1.json","livemode": false,"metadata": {},diff --git a/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.20.json b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.20.jsonindex 9535335d97b..5775217dc3f 100644--- a/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.20.json+++ b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.20.json@@ -9,7 +9,7 @@"description": "zulip (Zulip Dev)","discount": null,"email": "[email protected]",- "id": "upgrade_license_counts--Customer.create.1.json",+ "id": "upgrade_license_counts--Customer.retrieve.1.json","invoice_prefix": "NORMALIZED","invoice_settings": {"custom_fields": null,@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -55,7 +55,7 @@"wallet": null},"created": 1000000000,- "customer": "upgrade_license_counts--Customer.create.1.json",+ "customer": "upgrade_license_counts--Customer.retrieve.1.json","id": "upgrade_license_counts--Customer.retrieve.1.json","livemode": false,"metadata": {},diff --git a/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.21.json b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.21.jsonindex 9535335d97b..5775217dc3f 100644--- a/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.21.json+++ b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.21.json@@ -9,7 +9,7 @@"description": "zulip (Zulip Dev)","discount": null,"email": "[email protected]",- "id": "upgrade_license_counts--Customer.create.1.json",+ "id": "upgrade_license_counts--Customer.retrieve.1.json","invoice_prefix": "NORMALIZED","invoice_settings": {"custom_fields": null,@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -55,7 +55,7 @@"wallet": null},"created": 1000000000,- "customer": "upgrade_license_counts--Customer.create.1.json",+ "customer": "upgrade_license_counts--Customer.retrieve.1.json","id": "upgrade_license_counts--Customer.retrieve.1.json","livemode": false,"metadata": {},diff --git a/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.22.json b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.22.jsonindex 9535335d97b..5775217dc3f 100644--- a/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.22.json+++ b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.22.json@@ -9,7 +9,7 @@"description": "zulip (Zulip Dev)","discount": null,"email": "[email protected]",- "id": "upgrade_license_counts--Customer.create.1.json",+ "id": "upgrade_license_counts--Customer.retrieve.1.json","invoice_prefix": "NORMALIZED","invoice_settings": {"custom_fields": null,@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -55,7 +55,7 @@"wallet": null},"created": 1000000000,- "customer": "upgrade_license_counts--Customer.create.1.json",+ "customer": "upgrade_license_counts--Customer.retrieve.1.json","id": "upgrade_license_counts--Customer.retrieve.1.json","livemode": false,"metadata": {},diff --git a/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.23.json b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.23.jsonindex 9535335d97b..5775217dc3f 100644--- a/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.23.json+++ b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.23.json@@ -9,7 +9,7 @@"description": "zulip (Zulip Dev)","discount": null,"email": "[email protected]",- "id": "upgrade_license_counts--Customer.create.1.json",+ "id": "upgrade_license_counts--Customer.retrieve.1.json","invoice_prefix": "NORMALIZED","invoice_settings": {"custom_fields": null,@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -55,7 +55,7 @@"wallet": null},"created": 1000000000,- "customer": "upgrade_license_counts--Customer.create.1.json",+ "customer": "upgrade_license_counts--Customer.retrieve.1.json","id": "upgrade_license_counts--Customer.retrieve.1.json","livemode": false,"metadata": {},diff --git a/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.24.json b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.24.jsonindex 9535335d97b..5775217dc3f 100644--- a/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.24.json+++ b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.24.json@@ -9,7 +9,7 @@"description": "zulip (Zulip Dev)","discount": null,"email": "[email protected]",- "id": "upgrade_license_counts--Customer.create.1.json",+ "id": "upgrade_license_counts--Customer.retrieve.1.json","invoice_prefix": "NORMALIZED","invoice_settings": {"custom_fields": null,@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -55,7 +55,7 @@"wallet": null},"created": 1000000000,- "customer": "upgrade_license_counts--Customer.create.1.json",+ "customer": "upgrade_license_counts--Customer.retrieve.1.json","id": "upgrade_license_counts--Customer.retrieve.1.json","livemode": false,"metadata": {},diff --git a/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.25.json b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.25.jsonindex 9535335d97b..5775217dc3f 100644--- a/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.25.json+++ b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.25.json@@ -9,7 +9,7 @@"description": "zulip (Zulip Dev)","discount": null,"email": "[email protected]",- "id": "upgrade_license_counts--Customer.create.1.json",+ "id": "upgrade_license_counts--Customer.retrieve.1.json","invoice_prefix": "NORMALIZED","invoice_settings": {"custom_fields": null,@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -55,7 +55,7 @@"wallet": null},"created": 1000000000,- "customer": "upgrade_license_counts--Customer.create.1.json",+ "customer": "upgrade_license_counts--Customer.retrieve.1.json","id": "upgrade_license_counts--Customer.retrieve.1.json","livemode": false,"metadata": {},diff --git a/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.26.json b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.26.jsonindex 9535335d97b..5775217dc3f 100644--- a/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.26.json+++ b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.26.json@@ -9,7 +9,7 @@"description": "zulip (Zulip Dev)","discount": null,"email": "[email protected]",- "id": "upgrade_license_counts--Customer.create.1.json",+ "id": "upgrade_license_counts--Customer.retrieve.1.json","invoice_prefix": "NORMALIZED","invoice_settings": {"custom_fields": null,@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -55,7 +55,7 @@"wallet": null},"created": 1000000000,- "customer": "upgrade_license_counts--Customer.create.1.json",+ "customer": "upgrade_license_counts--Customer.retrieve.1.json","id": "upgrade_license_counts--Customer.retrieve.1.json","livemode": false,"metadata": {},diff --git a/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.27.json b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.27.jsonindex 9535335d97b..5775217dc3f 100644--- a/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.27.json+++ b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.27.json@@ -9,7 +9,7 @@"description": "zulip (Zulip Dev)","discount": null,"email": "[email protected]",- "id": "upgrade_license_counts--Customer.create.1.json",+ "id": "upgrade_license_counts--Customer.retrieve.1.json","invoice_prefix": "NORMALIZED","invoice_settings": {"custom_fields": null,@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -55,7 +55,7 @@"wallet": null},"created": 1000000000,- "customer": "upgrade_license_counts--Customer.create.1.json",+ "customer": "upgrade_license_counts--Customer.retrieve.1.json","id": "upgrade_license_counts--Customer.retrieve.1.json","livemode": false,"metadata": {},diff --git a/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.28.json b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.28.jsonindex 9535335d97b..5775217dc3f 100644--- a/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.28.json+++ b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.28.json@@ -9,7 +9,7 @@"description": "zulip (Zulip Dev)","discount": null,"email": "[email protected]",- "id": "upgrade_license_counts--Customer.create.1.json",+ "id": "upgrade_license_counts--Customer.retrieve.1.json","invoice_prefix": "NORMALIZED","invoice_settings": {"custom_fields": null,@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -55,7 +55,7 @@"wallet": null},"created": 1000000000,- "customer": "upgrade_license_counts--Customer.create.1.json",+ "customer": "upgrade_license_counts--Customer.retrieve.1.json","id": "upgrade_license_counts--Customer.retrieve.1.json","livemode": false,"metadata": {},diff --git a/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.29.json b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.29.jsonnew file mode 100644index 00000000000..5775217dc3f--- /dev/null+++ b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.29.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": null,+ "default_currency": null,+ "default_source": null,+ "delinquent": false,+ "description": "zulip (Zulip Dev)",+ "discount": null,+ "email": "[email protected]",+ "id": "upgrade_license_counts--Customer.retrieve.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "upgrade_license_counts--Customer.retrieve.1.json",+ "id": "upgrade_license_counts--Customer.retrieve.1.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "realm_id": "1",+ "realm_str": "zulip"+ },+ "name": null,+ "next_invoice_sequence": 1,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.3.jsonindex 9535335d97b..5775217dc3f 100644--- a/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.3.json+++ b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.3.json@@ -9,7 +9,7 @@"description": "zulip (Zulip Dev)","discount": null,"email": "[email protected]",- "id": "upgrade_license_counts--Customer.create.1.json",+ "id": "upgrade_license_counts--Customer.retrieve.1.json","invoice_prefix": "NORMALIZED","invoice_settings": {"custom_fields": null,@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -55,7 +55,7 @@"wallet": null},"created": 1000000000,- "customer": "upgrade_license_counts--Customer.create.1.json",+ "customer": "upgrade_license_counts--Customer.retrieve.1.json","id": "upgrade_license_counts--Customer.retrieve.1.json","livemode": false,"metadata": {},diff --git a/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.30.json b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.30.jsonnew file mode 100644index 00000000000..5775217dc3f--- /dev/null+++ b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.30.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": null,+ "default_currency": null,+ "default_source": null,+ "delinquent": false,+ "description": "zulip (Zulip Dev)",+ "discount": null,+ "email": "[email protected]",+ "id": "upgrade_license_counts--Customer.retrieve.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "upgrade_license_counts--Customer.retrieve.1.json",+ "id": "upgrade_license_counts--Customer.retrieve.1.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "realm_id": "1",+ "realm_str": "zulip"+ },+ "name": null,+ "next_invoice_sequence": 1,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.31.json b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.31.jsonnew file mode 100644index 00000000000..5775217dc3f--- /dev/null+++ b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.31.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": null,+ "default_currency": null,+ "default_source": null,+ "delinquent": false,+ "description": "zulip (Zulip Dev)",+ "discount": null,+ "email": "[email protected]",+ "id": "upgrade_license_counts--Customer.retrieve.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "upgrade_license_counts--Customer.retrieve.1.json",+ "id": "upgrade_license_counts--Customer.retrieve.1.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "realm_id": "1",+ "realm_str": "zulip"+ },+ "name": null,+ "next_invoice_sequence": 1,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.32.json b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.32.jsonnew file mode 100644index 00000000000..5775217dc3f--- /dev/null+++ b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.32.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": null,+ "default_currency": null,+ "default_source": null,+ "delinquent": false,+ "description": "zulip (Zulip Dev)",+ "discount": null,+ "email": "[email protected]",+ "id": "upgrade_license_counts--Customer.retrieve.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "upgrade_license_counts--Customer.retrieve.1.json",+ "id": "upgrade_license_counts--Customer.retrieve.1.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "realm_id": "1",+ "realm_str": "zulip"+ },+ "name": null,+ "next_invoice_sequence": 1,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.33.json b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.33.jsonnew file mode 100644index 00000000000..5775217dc3f--- /dev/null+++ b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.33.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": null,+ "default_currency": null,+ "default_source": null,+ "delinquent": false,+ "description": "zulip (Zulip Dev)",+ "discount": null,+ "email": "[email protected]",+ "id": "upgrade_license_counts--Customer.retrieve.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "upgrade_license_counts--Customer.retrieve.1.json",+ "id": "upgrade_license_counts--Customer.retrieve.1.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "realm_id": "1",+ "realm_str": "zulip"+ },+ "name": null,+ "next_invoice_sequence": 1,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.34.json b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.34.jsonnew file mode 100644index 00000000000..5775217dc3f--- /dev/null+++ b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.34.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": null,+ "default_currency": null,+ "default_source": null,+ "delinquent": false,+ "description": "zulip (Zulip Dev)",+ "discount": null,+ "email": "[email protected]",+ "id": "upgrade_license_counts--Customer.retrieve.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "upgrade_license_counts--Customer.retrieve.1.json",+ "id": "upgrade_license_counts--Customer.retrieve.1.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "realm_id": "1",+ "realm_str": "zulip"+ },+ "name": null,+ "next_invoice_sequence": 1,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.35.json b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.35.jsonnew file mode 100644index 00000000000..5775217dc3f--- /dev/null+++ b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.35.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": null,+ "default_currency": null,+ "default_source": null,+ "delinquent": false,+ "description": "zulip (Zulip Dev)",+ "discount": null,+ "email": "[email protected]",+ "id": "upgrade_license_counts--Customer.retrieve.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "upgrade_license_counts--Customer.retrieve.1.json",+ "id": "upgrade_license_counts--Customer.retrieve.1.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "realm_id": "1",+ "realm_str": "zulip"+ },+ "name": null,+ "next_invoice_sequence": 1,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.36.json b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.36.jsonnew file mode 100644index 00000000000..5775217dc3f--- /dev/null+++ b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.36.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": null,+ "default_currency": null,+ "default_source": null,+ "delinquent": false,+ "description": "zulip (Zulip Dev)",+ "discount": null,+ "email": "[email protected]",+ "id": "upgrade_license_counts--Customer.retrieve.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "upgrade_license_counts--Customer.retrieve.1.json",+ "id": "upgrade_license_counts--Customer.retrieve.1.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "realm_id": "1",+ "realm_str": "zulip"+ },+ "name": null,+ "next_invoice_sequence": 1,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.37.json b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.37.jsonnew file mode 100644index 00000000000..5775217dc3f--- /dev/null+++ b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.37.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": null,+ "default_currency": null,+ "default_source": null,+ "delinquent": false,+ "description": "zulip (Zulip Dev)",+ "discount": null,+ "email": "[email protected]",+ "id": "upgrade_license_counts--Customer.retrieve.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "upgrade_license_counts--Customer.retrieve.1.json",+ "id": "upgrade_license_counts--Customer.retrieve.1.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "realm_id": "1",+ "realm_str": "zulip"+ },+ "name": null,+ "next_invoice_sequence": 1,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.38.json b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.38.jsonnew file mode 100644index 00000000000..5775217dc3f--- /dev/null+++ b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.38.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": null,+ "default_currency": null,+ "default_source": null,+ "delinquent": false,+ "description": "zulip (Zulip Dev)",+ "discount": null,+ "email": "[email protected]",+ "id": "upgrade_license_counts--Customer.retrieve.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "upgrade_license_counts--Customer.retrieve.1.json",+ "id": "upgrade_license_counts--Customer.retrieve.1.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "realm_id": "1",+ "realm_str": "zulip"+ },+ "name": null,+ "next_invoice_sequence": 1,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.39.json b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.39.jsonnew file mode 100644index 00000000000..5775217dc3f--- /dev/null+++ b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.39.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": null,+ "default_currency": null,+ "default_source": null,+ "delinquent": false,+ "description": "zulip (Zulip Dev)",+ "discount": null,+ "email": "[email protected]",+ "id": "upgrade_license_counts--Customer.retrieve.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "upgrade_license_counts--Customer.retrieve.1.json",+ "id": "upgrade_license_counts--Customer.retrieve.1.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "realm_id": "1",+ "realm_str": "zulip"+ },+ "name": null,+ "next_invoice_sequence": 1,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.4.jsonindex 9535335d97b..5775217dc3f 100644--- a/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.4.json+++ b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.4.json@@ -9,7 +9,7 @@"description": "zulip (Zulip Dev)","discount": null,"email": "[email protected]",- "id": "upgrade_license_counts--Customer.create.1.json",+ "id": "upgrade_license_counts--Customer.retrieve.1.json","invoice_prefix": "NORMALIZED","invoice_settings": {"custom_fields": null,@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -55,7 +55,7 @@"wallet": null},"created": 1000000000,- "customer": "upgrade_license_counts--Customer.create.1.json",+ "customer": "upgrade_license_counts--Customer.retrieve.1.json","id": "upgrade_license_counts--Customer.retrieve.1.json","livemode": false,"metadata": {},diff --git a/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.40.json b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.40.jsonnew file mode 100644index 00000000000..5775217dc3f--- /dev/null+++ b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.40.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": null,+ "default_currency": null,+ "default_source": null,+ "delinquent": false,+ "description": "zulip (Zulip Dev)",+ "discount": null,+ "email": "[email protected]",+ "id": "upgrade_license_counts--Customer.retrieve.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "upgrade_license_counts--Customer.retrieve.1.json",+ "id": "upgrade_license_counts--Customer.retrieve.1.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "realm_id": "1",+ "realm_str": "zulip"+ },+ "name": null,+ "next_invoice_sequence": 1,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.41.json b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.41.jsonnew file mode 100644index 00000000000..5775217dc3f--- /dev/null+++ b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.41.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": null,+ "default_currency": null,+ "default_source": null,+ "delinquent": false,+ "description": "zulip (Zulip Dev)",+ "discount": null,+ "email": "[email protected]",+ "id": "upgrade_license_counts--Customer.retrieve.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "upgrade_license_counts--Customer.retrieve.1.json",+ "id": "upgrade_license_counts--Customer.retrieve.1.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "realm_id": "1",+ "realm_str": "zulip"+ },+ "name": null,+ "next_invoice_sequence": 1,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.42.json b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.42.jsonnew file mode 100644index 00000000000..5775217dc3f--- /dev/null+++ b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.42.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": null,+ "default_currency": null,+ "default_source": null,+ "delinquent": false,+ "description": "zulip (Zulip Dev)",+ "discount": null,+ "email": "[email protected]",+ "id": "upgrade_license_counts--Customer.retrieve.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "upgrade_license_counts--Customer.retrieve.1.json",+ "id": "upgrade_license_counts--Customer.retrieve.1.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "realm_id": "1",+ "realm_str": "zulip"+ },+ "name": null,+ "next_invoice_sequence": 1,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.5.jsonindex 9535335d97b..5775217dc3f 100644--- a/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.5.json+++ b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.5.json@@ -9,7 +9,7 @@"description": "zulip (Zulip Dev)","discount": null,"email": "[email protected]",- "id": "upgrade_license_counts--Customer.create.1.json",+ "id": "upgrade_license_counts--Customer.retrieve.1.json","invoice_prefix": "NORMALIZED","invoice_settings": {"custom_fields": null,@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -55,7 +55,7 @@"wallet": null},"created": 1000000000,- "customer": "upgrade_license_counts--Customer.create.1.json",+ "customer": "upgrade_license_counts--Customer.retrieve.1.json","id": "upgrade_license_counts--Customer.retrieve.1.json","livemode": false,"metadata": {},diff --git a/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.6.json b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.6.jsonindex 9535335d97b..5775217dc3f 100644--- a/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.6.json+++ b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.6.json@@ -9,7 +9,7 @@"description": "zulip (Zulip Dev)","discount": null,"email": "[email protected]",- "id": "upgrade_license_counts--Customer.create.1.json",+ "id": "upgrade_license_counts--Customer.retrieve.1.json","invoice_prefix": "NORMALIZED","invoice_settings": {"custom_fields": null,@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -55,7 +55,7 @@"wallet": null},"created": 1000000000,- "customer": "upgrade_license_counts--Customer.create.1.json",+ "customer": "upgrade_license_counts--Customer.retrieve.1.json","id": "upgrade_license_counts--Customer.retrieve.1.json","livemode": false,"metadata": {},diff --git a/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.7.json b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.7.jsonindex 9535335d97b..5775217dc3f 100644--- a/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.7.json+++ b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.7.json@@ -9,7 +9,7 @@"description": "zulip (Zulip Dev)","discount": null,"email": "[email protected]",- "id": "upgrade_license_counts--Customer.create.1.json",+ "id": "upgrade_license_counts--Customer.retrieve.1.json","invoice_prefix": "NORMALIZED","invoice_settings": {"custom_fields": null,@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -55,7 +55,7 @@"wallet": null},"created": 1000000000,- "customer": "upgrade_license_counts--Customer.create.1.json",+ "customer": "upgrade_license_counts--Customer.retrieve.1.json","id": "upgrade_license_counts--Customer.retrieve.1.json","livemode": false,"metadata": {},diff --git a/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.8.json b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.8.jsonindex 9535335d97b..5775217dc3f 100644--- a/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.8.json+++ b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.8.json@@ -9,7 +9,7 @@"description": "zulip (Zulip Dev)","discount": null,"email": "[email protected]",- "id": "upgrade_license_counts--Customer.create.1.json",+ "id": "upgrade_license_counts--Customer.retrieve.1.json","invoice_prefix": "NORMALIZED","invoice_settings": {"custom_fields": null,@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -55,7 +55,7 @@"wallet": null},"created": 1000000000,- "customer": "upgrade_license_counts--Customer.create.1.json",+ "customer": "upgrade_license_counts--Customer.retrieve.1.json","id": "upgrade_license_counts--Customer.retrieve.1.json","livemode": false,"metadata": {},diff --git a/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.9.json b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.9.jsonindex 9535335d97b..5775217dc3f 100644--- a/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.9.json+++ b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.retrieve.9.json@@ -9,7 +9,7 @@"description": "zulip (Zulip Dev)","discount": null,"email": "[email protected]",- "id": "upgrade_license_counts--Customer.create.1.json",+ "id": "upgrade_license_counts--Customer.retrieve.1.json","invoice_prefix": "NORMALIZED","invoice_settings": {"custom_fields": null,@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -55,7 +55,7 @@"wallet": null},"created": 1000000000,- "customer": "upgrade_license_counts--Customer.create.1.json",+ "customer": "upgrade_license_counts--Customer.retrieve.1.json","id": "upgrade_license_counts--Customer.retrieve.1.json","livemode": false,"metadata": {},diff --git a/corporate/tests/stripe_fixtures/upgrade_license_counts--PaymentMethod.create.1.json b/corporate/tests/stripe_fixtures/upgrade_license_counts--PaymentMethod.create.1.jsonindex 870716c5aa9..8a69af78f5b 100644--- a/corporate/tests/stripe_fixtures/upgrade_license_counts--PaymentMethod.create.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_license_counts--PaymentMethod.create.1.json@@ -6,7 +6,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -22,8 +22,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_pay_by_invoice--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/upgrade_pay_by_invoice--Customer.retrieve.3.jsonnew file mode 100644index 00000000000..a78abd92c5f--- /dev/null+++ b/corporate/tests/stripe_fixtures/upgrade_pay_by_invoice--Customer.retrieve.3.json@@ -0,0 +1,33 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": "usd",+ "default_currency": "usd",+ "default_source": "src_NORMALIZED",+ "delinquent": false,+ "description": "zulip (Zulip Dev)",+ "discount": null,+ "email": "[email protected]",+ "id": "upgrade_pay_by_invoice--Customer.create.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": null,+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "realm_id": "1",+ "realm_str": "zulip"+ },+ "name": null,+ "next_invoice_sequence": 2,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/upgrade_pay_by_invoice--Invoice.create.1.json b/corporate/tests/stripe_fixtures/upgrade_pay_by_invoice--Invoice.create.1.jsonindex d7167f4deaa..844f03ff694 100644--- a/corporate/tests/stripe_fixtures/upgrade_pay_by_invoice--Invoice.create.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_pay_by_invoice--Invoice.create.1.json@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_pay_by_invoice--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/upgrade_pay_by_invoice--Invoice.finalize_invoice.1.jsonindex 15277c80de6..45fa3498ae6 100644--- a/corporate/tests/stripe_fixtures/upgrade_pay_by_invoice--Invoice.finalize_invoice.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_pay_by_invoice--Invoice.finalize_invoice.1.json@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_pay_by_invoice--Invoice.refresh.1.json b/corporate/tests/stripe_fixtures/upgrade_pay_by_invoice--Invoice.refresh.1.jsonindex a62df583b67..7d9c5a6c609 100644--- a/corporate/tests/stripe_fixtures/upgrade_pay_by_invoice--Invoice.refresh.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_pay_by_invoice--Invoice.refresh.1.json@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_pay_by_invoice--Invoice.retrieve.1.json b/corporate/tests/stripe_fixtures/upgrade_pay_by_invoice--Invoice.retrieve.1.jsonindex a62df583b67..7d9c5a6c609 100644--- a/corporate/tests/stripe_fixtures/upgrade_pay_by_invoice--Invoice.retrieve.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_pay_by_invoice--Invoice.retrieve.1.json@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Customer.retrieve.1.jsonindex 4a52dbc6db3..187d5c1b8e8 100644--- a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Customer.retrieve.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Customer.retrieve.1.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Customer.retrieve.2.jsonindex 4a52dbc6db3..187d5c1b8e8 100644--- a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Customer.retrieve.2.json+++ b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Customer.retrieve.2.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Customer.retrieve.3.jsonindex 4a52dbc6db3..187d5c1b8e8 100644--- a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Customer.retrieve.3.json+++ b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Customer.retrieve.3.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Customer.retrieve.4.jsonindex e85c8053713..187d5c1b8e8 100644--- a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Customer.retrieve.4.json+++ b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Customer.retrieve.4.json@@ -2,8 +2,8 @@"address": null,"balance": 0,"created": 1000000000,- "currency": "usd",- "default_currency": "usd",+ "currency": null,+ "default_currency": null,"default_source": null,"delinquent": false,"description": "zulip (Zulip Dev)",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -71,7 +71,7 @@"realm_str": "zulip"},"name": null,- "next_invoice_sequence": 2,+ "next_invoice_sequence": 1,"object": "customer","phone": null,"preferred_locales": [],diff --git a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Customer.retrieve.5.jsonnew file mode 100644index 00000000000..064cb2859bf--- /dev/null+++ b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Customer.retrieve.5.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": "usd",+ "default_currency": "usd",+ "default_source": null,+ "delinquent": false,+ "description": "zulip (Zulip Dev)",+ "discount": null,+ "email": "[email protected]",+ "id": "upgrade_race_condition_during_card_upgrade--Customer.create.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "upgrade_race_condition_during_card_upgrade--Customer.create.1.json",+ "id": "upgrade_race_condition_during_card_upgrade--Customer.retrieve.1.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "realm_id": "1",+ "realm_str": "zulip"+ },+ "name": null,+ "next_invoice_sequence": 2,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Event.list.2.json b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Event.list.2.jsonindex 554155ef226..17df626bfaf 100644--- a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Event.list.2.json+++ b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Event.list.2.json@@ -147,7 +147,198 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null+ },+ "rendering_options": null,+ "shipping_cost": null,+ "shipping_details": null,+ "starting_balance": 0,+ "statement_descriptor": "Zulip Cloud Standard",+ "status": "paid",+ "status_transitions": {+ "finalized_at": 1000000000,+ "marked_uncollectible_at": null,+ "paid_at": 1000000000,+ "voided_at": null+ },+ "subscription": null,+ "subscription_details": {+ "metadata": null+ },+ "subtotal": 48000,+ "subtotal_excluding_tax": 48000,+ "tax": null,+ "test_clock": null,+ "total": 48000,+ "total_discount_amounts": [],+ "total_excluding_tax": 48000,+ "total_tax_amounts": [],+ "transfer_data": null,+ "webhooks_delivered_at": 1000000000+ }+ },+ "id": "upgrade_race_condition_during_card_upgrade--Event.list.2.json",+ "livemode": false,+ "object": "event",+ "pending_webhooks": 0,+ "request": {+ "id": "upgrade_race_condition_during_card_upgrade--Event.list.2.json",+ "idempotency_key": "00000000-0000-0000-0000-000000000000"+ },+ "type": "invoice.paid"+ },+ {+ "api_version": "2020-08-27",+ "created": 1000000000,+ "data": {+ "object": {+ "account_country": "US",+ "account_name": "Kandra Labs, Inc.",+ "account_tax_ids": null,+ "amount_due": 48000,+ "amount_paid": 48000,+ "amount_remaining": 0,+ "amount_shipping": 0,+ "application": null,+ "application_fee_amount": null,+ "attempt_count": 1,+ "attempted": true,+ "auto_advance": false,+ "automatic_tax": {+ "enabled": false,+ "liability": null,+ "status": null+ },+ "automatically_finalizes_at": null,+ "billing_reason": "manual",+ "charge": "upgrade_race_condition_during_card_upgrade--Event.list.2.json",+ "collection_method": "charge_automatically",+ "created": 1000000000,+ "currency": "usd",+ "custom_fields": null,+ "customer": "upgrade_race_condition_during_card_upgrade--Customer.create.1.json",+ "customer_address": null,+ "customer_email": "[email protected]",+ "customer_name": null,+ "customer_phone": null,+ "customer_shipping": null,+ "customer_tax_exempt": "none",+ "customer_tax_ids": [],+ "default_payment_method": null,+ "default_source": null,+ "default_tax_rates": [],+ "description": null,+ "discount": null,+ "discounts": [],+ "due_date": null,+ "effective_at": 1000000000,+ "ending_balance": 0,+ "footer": null,+ "from_invoice": null,+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",+ "id": "upgrade_race_condition_during_card_upgrade--Event.list.2.json",+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",+ "issuer": {+ "type": "self"+ },+ "last_finalization_error": null,+ "latest_revision": null,+ "lines": {+ "data": [+ {+ "amount": 48000,+ "amount_excluding_tax": 48000,+ "currency": "usd",+ "description": "Zulip Cloud Standard",+ "discount_amounts": [],+ "discountable": false,+ "discounts": [],+ "id": "upgrade_race_condition_during_card_upgrade--Event.list.2.json",+ "invoice": "upgrade_race_condition_during_card_upgrade--Event.list.2.json",+ "invoice_item": "upgrade_race_condition_during_card_upgrade--Event.list.2.json",+ "livemode": false,+ "metadata": {},+ "object": "line_item",+ "period": {+ "end": 1000000000,+ "start": 1000000000+ },+ "plan": null,+ "price": {+ "active": false,+ "billing_scheme": "per_unit",+ "created": 1000000000,+ "currency": "usd",+ "custom_unit_amount": null,+ "id": "upgrade_race_condition_during_card_upgrade--Event.list.2.json",+ "livemode": false,+ "lookup_key": null,+ "metadata": {},+ "nickname": null,+ "object": "price",+ "product": "prod_NORMALIZED",+ "recurring": null,+ "tax_behavior": "unspecified",+ "tiers_mode": null,+ "transform_quantity": null,+ "type": "one_time",+ "unit_amount": 8000,+ "unit_amount_decimal": "8000"+ },+ "proration": false,+ "proration_details": {+ "credited_items": null+ },+ "quantity": 6,+ "subscription": null,+ "tax_amounts": [],+ "tax_rates": [],+ "type": "invoiceitem",+ "unit_amount_excluding_tax": "8000"+ }+ ],+ "has_more": false,+ "object": "list",+ "total_count": 1,+ "url": "/v1/invoices/upgrade_race_condition_during_card_upgrade--Event.list.2.json/lines"+ },+ "livemode": false,+ "metadata": {+ "billing_schedule": "1",+ "current_plan_id": "None",+ "license_management": "automatic",+ "licenses": "6",+ "on_free_trial": "False",+ "plan_tier": "1",+ "user_id": "10"+ },+ "next_payment_attempt": null,+ "number": "NORMALIZED-0001",+ "object": "invoice",+ "on_behalf_of": null,+ "paid": true,+ "paid_out_of_band": false,+ "payment_intent": "upgrade_race_condition_during_card_upgrade--Event.list.2.json",+ "payment_settings": {+ "default_mandate": null,+ "payment_method_options": null,+ "payment_method_types": null+ },+ "period_end": 1000000000,+ "period_start": 1000000000,+ "post_payment_credit_notes_amount": 0,+ "pre_payment_credit_notes_amount": 0,+ "quote": null,+ "receipt_number": null,+ "rendering": {+ "amount_tax_display": null,+ "pdf": {+ "page_size": "letter"+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -232,7 +423,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -281,8 +472,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -408,7 +599,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -457,8 +648,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -518,193 +709,6 @@},"type": "charge.succeeded"},- {- "api_version": "2020-08-27",- "created": 1000000000,- "data": {- "object": {- "account_country": "US",- "account_name": "Kandra Labs, Inc.",- "account_tax_ids": null,- "amount_due": 320000,- "amount_paid": 0,- "amount_remaining": 320000,- "amount_shipping": 0,- "application": null,- "application_fee_amount": null,- "attempt_count": 0,- "attempted": false,- "auto_advance": true,- "automatic_tax": {- "enabled": false,- "liability": null,- "status": null- },- "automatically_finalizes_at": null,- "billing_reason": "manual",- "charge": null,- "collection_method": "send_invoice",- "created": 1000000000,- "currency": "usd",- "custom_fields": null,- "customer": "cus_NORMALIZED",- "customer_address": null,- "customer_email": "[email protected]",- "customer_name": null,- "customer_phone": null,- "customer_shipping": null,- "customer_tax_exempt": "none",- "customer_tax_ids": [],- "default_payment_method": null,- "default_source": null,- "default_tax_rates": [],- "description": null,- "discount": null,- "discounts": [],- "due_date": 1000000000,- "effective_at": 1000000000,- "ending_balance": 0,- "footer": null,- "from_invoice": null,- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",- "id": "upgrade_race_condition_during_card_upgrade--Event.list.2.json",- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",- "issuer": {- "type": "self"- },- "last_finalization_error": null,- "latest_revision": null,- "lines": {- "data": [- {- "amount": 320000,- "amount_excluding_tax": 320000,- "currency": "usd",- "description": "Zulip Cloud Standard",- "discount_amounts": [],- "discountable": false,- "discounts": [],- "id": "upgrade_race_condition_during_card_upgrade--Event.list.2.json",- "invoice": "upgrade_race_condition_during_card_upgrade--Event.list.2.json",- "invoice_item": "ii_NORMALIZED",- "livemode": false,- "metadata": {},- "object": "line_item",- "period": {- "end": 1000000000,- "start": 1000000000- },- "plan": null,- "price": {- "active": false,- "billing_scheme": "per_unit",- "created": 1000000000,- "currency": "usd",- "custom_unit_amount": null,- "id": "upgrade_race_condition_during_card_upgrade--Event.list.2.json",- "livemode": false,- "lookup_key": null,- "metadata": {},- "nickname": null,- "object": "price",- "product": "prod_NORMALIZED",- "recurring": null,- "tax_behavior": "unspecified",- "tiers_mode": null,- "transform_quantity": null,- "type": "one_time",- "unit_amount": 8000,- "unit_amount_decimal": "8000"- },- "proration": false,- "proration_details": {- "credited_items": null- },- "quantity": 40,- "subscription": null,- "tax_amounts": [],- "tax_rates": [],- "type": "invoiceitem",- "unit_amount_excluding_tax": "8000"- }- ],- "has_more": false,- "object": "list",- "total_count": 1,- "url": "/v1/invoices/upgrade_race_condition_during_card_upgrade--Event.list.2.json/lines"- },- "livemode": false,- "metadata": {- "billing_schedule": "1",- "current_plan_id": "None",- "license_management": "manual",- "licenses": "40",- "on_free_trial": "False",- "plan_tier": "1",- "user_id": "10"- },- "next_payment_attempt": null,- "number": "NORMALIZED",- "object": "invoice",- "on_behalf_of": null,- "paid": false,- "paid_out_of_band": false,- "payment_intent": "pi_NORMALIZED",- "payment_settings": {- "default_mandate": null,- "payment_method_options": null,- "payment_method_types": null- },- "period_end": 1000000000,- "period_start": 1000000000,- "post_payment_credit_notes_amount": 0,- "pre_payment_credit_notes_amount": 0,- "quote": null,- "receipt_number": null,- "rendering": {- "amount_tax_display": null,- "pdf": {- "page_size": "letter"- }- },- "rendering_options": null,- "shipping_cost": null,- "shipping_details": null,- "starting_balance": 0,- "statement_descriptor": "Zulip Cloud Standard",- "status": "open",- "status_transitions": {- "finalized_at": 1000000000,- "marked_uncollectible_at": null,- "paid_at": null,- "voided_at": null- },- "subscription": null,- "subscription_details": {- "metadata": null- },- "subtotal": 320000,- "subtotal_excluding_tax": 320000,- "tax": null,- "test_clock": null,- "total": 320000,- "total_discount_amounts": [],- "total_excluding_tax": 320000,- "total_tax_amounts": [],- "transfer_data": null,- "webhooks_delivered_at": 1000000000- }- },- "id": "upgrade_race_condition_during_card_upgrade--Event.list.2.json",- "livemode": false,- "object": "event",- "pending_webhooks": 0,- "request": {- "id": null,- "idempotency_key": null- },- "type": "invoice.sent"- },{"api_version": "2020-08-27","created": 1000000000,@@ -852,7 +856,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -1039,7 +1045,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -1320,7 +1328,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Event.list.3.json b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Event.list.3.jsonindex 8aea13b8add..b51f729a0d6 100644--- a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Event.list.3.json+++ b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Event.list.3.json@@ -147,7 +147,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -186,193 +188,6 @@"idempotency_key": "00000000-0000-0000-0000-000000000000"},"type": "invoice.payment_succeeded"- },- {- "api_version": "2020-08-27",- "created": 1000000000,- "data": {- "object": {- "account_country": "US",- "account_name": "Kandra Labs, Inc.",- "account_tax_ids": null,- "amount_due": 48000,- "amount_paid": 48000,- "amount_remaining": 0,- "amount_shipping": 0,- "application": null,- "application_fee_amount": null,- "attempt_count": 1,- "attempted": true,- "auto_advance": false,- "automatic_tax": {- "enabled": false,- "liability": null,- "status": null- },- "automatically_finalizes_at": null,- "billing_reason": "manual",- "charge": "ch_NORMALIZED",- "collection_method": "charge_automatically",- "created": 1000000000,- "currency": "usd",- "custom_fields": null,- "customer": "cus_NORMALIZED",- "customer_address": null,- "customer_email": "[email protected]",- "customer_name": null,- "customer_phone": null,- "customer_shipping": null,- "customer_tax_exempt": "none",- "customer_tax_ids": [],- "default_payment_method": null,- "default_source": null,- "default_tax_rates": [],- "description": null,- "discount": null,- "discounts": [],- "due_date": null,- "effective_at": 1000000000,- "ending_balance": 0,- "footer": null,- "from_invoice": null,- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",- "id": "upgrade_race_condition_during_card_upgrade--Event.list.2.json",- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",- "issuer": {- "type": "self"- },- "last_finalization_error": null,- "latest_revision": null,- "lines": {- "data": [- {- "amount": 48000,- "amount_excluding_tax": 48000,- "currency": "usd",- "description": "Zulip Cloud Standard",- "discount_amounts": [],- "discountable": false,- "discounts": [],- "id": "upgrade_race_condition_during_card_upgrade--Event.list.2.json",- "invoice": "upgrade_race_condition_during_card_upgrade--Event.list.2.json",- "invoice_item": "ii_NORMALIZED",- "livemode": false,- "metadata": {},- "object": "line_item",- "period": {- "end": 1000000000,- "start": 1000000000- },- "plan": null,- "price": {- "active": false,- "billing_scheme": "per_unit",- "created": 1000000000,- "currency": "usd",- "custom_unit_amount": null,- "id": "upgrade_race_condition_during_card_upgrade--Event.list.2.json",- "livemode": false,- "lookup_key": null,- "metadata": {},- "nickname": null,- "object": "price",- "product": "prod_NORMALIZED",- "recurring": null,- "tax_behavior": "unspecified",- "tiers_mode": null,- "transform_quantity": null,- "type": "one_time",- "unit_amount": 8000,- "unit_amount_decimal": "8000"- },- "proration": false,- "proration_details": {- "credited_items": null- },- "quantity": 6,- "subscription": null,- "tax_amounts": [],- "tax_rates": [],- "type": "invoiceitem",- "unit_amount_excluding_tax": "8000"- }- ],- "has_more": false,- "object": "list",- "total_count": 1,- "url": "/v1/invoices/upgrade_race_condition_during_card_upgrade--Event.list.2.json/lines"- },- "livemode": false,- "metadata": {- "billing_schedule": "1",- "current_plan_id": "None",- "license_management": "automatic",- "licenses": "6",- "on_free_trial": "False",- "plan_tier": "1",- "user_id": "10"- },- "next_payment_attempt": null,- "number": "NORMALIZED",- "object": "invoice",- "on_behalf_of": null,- "paid": true,- "paid_out_of_band": false,- "payment_intent": "pi_NORMALIZED",- "payment_settings": {- "default_mandate": null,- "payment_method_options": null,- "payment_method_types": null- },- "period_end": 1000000000,- "period_start": 1000000000,- "post_payment_credit_notes_amount": 0,- "pre_payment_credit_notes_amount": 0,- "quote": null,- "receipt_number": null,- "rendering": {- "amount_tax_display": null,- "pdf": {- "page_size": "letter"- }- },- "rendering_options": null,- "shipping_cost": null,- "shipping_details": null,- "starting_balance": 0,- "statement_descriptor": "Zulip Cloud Standard",- "status": "paid",- "status_transitions": {- "finalized_at": 1000000000,- "marked_uncollectible_at": null,- "paid_at": 1000000000,- "voided_at": null- },- "subscription": null,- "subscription_details": {- "metadata": null- },- "subtotal": 48000,- "subtotal_excluding_tax": 48000,- "tax": null,- "test_clock": null,- "total": 48000,- "total_discount_amounts": [],- "total_excluding_tax": 48000,- "total_tax_amounts": [],- "transfer_data": null,- "webhooks_delivered_at": 1000000000- }- },- "id": "upgrade_race_condition_during_card_upgrade--Event.list.3.json",- "livemode": false,- "object": "event",- "pending_webhooks": 0,- "request": {- "id": "upgrade_race_condition_during_card_upgrade--Event.list.2.json",- "idempotency_key": "00000000-0000-0000-0000-000000000000"- },- "type": "invoice.paid"}],"has_more": false,diff --git a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Invoice.create.1.json b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Invoice.create.1.jsonindex d9c2a8878c2..7b959b37640 100644--- a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Invoice.create.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Invoice.create.1.json@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Invoice.finalize_invoice.1.jsonindex 5d5d476c390..bd8f69d1740 100644--- a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Invoice.finalize_invoice.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Invoice.finalize_invoice.1.json@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Invoice.list.2.json b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Invoice.list.2.jsonindex 07a7eee4d3b..c54be245008 100644--- a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Invoice.list.2.json+++ b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Invoice.list.2.json@@ -143,7 +143,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Invoice.pay.1.jsonindex d386b5b3545..a2b00b0cf17 100644--- a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Invoice.pay.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Invoice.pay.1.json@@ -141,7 +141,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--InvoiceItem.create.1.jsonindex 5c50ab59587..d254830a267 100644--- a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--InvoiceItem.create.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--InvoiceItem.create.1.json@@ -6,7 +6,7 @@"description": "Zulip Cloud Standard","discountable": false,"discounts": [],- "id": "upgrade_race_condition_during_card_upgrade--Event.list.2.json",+ "id": "upgrade_race_condition_during_card_upgrade--InvoiceItem.create.1.json","invoice": null,"livemode": false,"metadata": {},diff --git a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--PaymentMethod.create.1.json b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--PaymentMethod.create.1.jsonindex d5f4e1ba1fc..2d1853b8569 100644--- a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--PaymentMethod.create.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--PaymentMethod.create.1.json@@ -6,7 +6,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -22,8 +22,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.create.1.json b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.create.1.jsonindex 590201dd26d..76b4ef60b29 100644--- a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.create.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.create.1.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-95a","discount": null,"email": "[email protected]","id": "upgrade_remote_realm_user_to_monthly_basic_plan--Customer.create.1.json",@@ -20,7 +20,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-95a9-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.modify.1.json b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.modify.1.jsonindex 01a62391b61..1aad88437c9 100644--- a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.modify.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.modify.1.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-95a","discount": null,"email": "[email protected]","id": "upgrade_remote_realm_user_to_monthly_basic_plan--Customer.create.1.json",@@ -20,7 +20,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-95a9-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.1.jsonindex c5d3027c64d..7b591ad21e3 100644--- a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.1.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-15a","discount": null,"email": "[email protected]","id": "upgrade_remote_realm_user_to_monthly_basic_plan--Customer.create.1.json",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.2.jsonindex c5d3027c64d..7b591ad21e3 100644--- a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.2.json+++ b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.2.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-15a","discount": null,"email": "[email protected]","id": "upgrade_remote_realm_user_to_monthly_basic_plan--Customer.create.1.json",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.3.jsonindex c5d3027c64d..7b591ad21e3 100644--- a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.3.json+++ b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.3.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-15a","discount": null,"email": "[email protected]","id": "upgrade_remote_realm_user_to_monthly_basic_plan--Customer.create.1.json",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.4.jsonindex c5d3027c64d..7b591ad21e3 100644--- a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.4.json+++ b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.4.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-15a","discount": null,"email": "[email protected]","id": "upgrade_remote_realm_user_to_monthly_basic_plan--Customer.create.1.json",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.5.jsonindex 4c794921573..7b591ad21e3 100644--- a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.5.json+++ b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.5.json@@ -2,11 +2,11 @@"address": null,"balance": 0,"created": 1000000000,- "currency": "usd",- "default_currency": "usd",+ "currency": null,+ "default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-15a","discount": null,"email": "[email protected]","id": "upgrade_remote_realm_user_to_monthly_basic_plan--Customer.create.1.json",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,10 +68,10 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"},"name": null,- "next_invoice_sequence": 2,+ "next_invoice_sequence": 1,"object": "customer","phone": null,"preferred_locales": [],diff --git a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.6.json b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.6.jsonindex 4c794921573..f9f29118d61 100644--- a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.6.json+++ b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.6.json@@ -6,7 +6,7 @@"default_currency": "usd","default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-15a","discount": null,"email": "[email protected]","id": "upgrade_remote_realm_user_to_monthly_basic_plan--Customer.create.1.json",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 2,diff --git a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.7.json b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.7.jsonnew file mode 100644index 00000000000..f9f29118d61--- /dev/null+++ b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.7.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": "usd",+ "default_currency": "usd",+ "default_source": null,+ "delinquent": false,+ "description": "zulip.testserver 3383e261-15a",+ "discount": null,+ "email": "[email protected]",+ "id": "upgrade_remote_realm_user_to_monthly_basic_plan--Customer.create.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "upgrade_remote_realm_user_to_monthly_basic_plan--Customer.create.1.json",+ "id": "upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.1.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "remote_realm_host": "zulip.testserver",+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"+ },+ "name": null,+ "next_invoice_sequence": 2,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.1.json b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.1.jsonindex ba6ad066a99..71efc646220 100644--- a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.1.json@@ -12,7 +12,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-95a","discount": null,"email": "[email protected]","id": "upgrade_remote_realm_user_to_monthly_basic_plan--Customer.create.1.json",@@ -26,7 +26,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-95a9-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.2.json b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.2.jsonindex 75b4fd6c78c..9dff6280066 100644--- a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.2.json+++ b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.2.json@@ -33,7 +33,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -82,8 +82,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -209,7 +209,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -258,8 +258,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -516,7 +516,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -753,7 +755,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -1084,7 +1088,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -1260,7 +1266,7 @@"default_currency": "usd","default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-15a","discount": null,"email": "[email protected]","id": "upgrade_remote_realm_user_to_monthly_basic_plan--Customer.create.1.json",@@ -1274,7 +1280,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.3.json b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.3.jsonindex d866cefe908..46eab6e6bea 100644--- a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.3.json+++ b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.3.json@@ -197,7 +197,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -434,7 +436,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -671,7 +675,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Invoice.create.1.json b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Invoice.create.1.jsonindex 50276a2d676..744cf69e48e 100644--- a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Invoice.create.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Invoice.create.1.json@@ -191,7 +191,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Invoice.finalize_invoice.1.jsonindex 3d1483bbbb7..57ee246b7fb 100644--- a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Invoice.finalize_invoice.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Invoice.finalize_invoice.1.json@@ -191,7 +191,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Invoice.pay.1.jsonindex 5e472e7adcb..7eab4ae8b0c 100644--- a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Invoice.pay.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Invoice.pay.1.json@@ -191,7 +191,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--PaymentMethod.create.1.json b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--PaymentMethod.create.1.jsonindex c196c1c9b49..7773c68fe21 100644--- a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--PaymentMethod.create.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--PaymentMethod.create.1.json@@ -6,7 +6,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -22,8 +22,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--checkout.Session.create.1.jsonindex 808081c4cdf..d1af1336738 100644--- a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--checkout.Session.create.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--checkout.Session.create.1.json@@ -9,7 +9,7 @@"status": null},"billing_address_collection": "required",- "cancel_url": "http://selfhosting.testserver/realm/f6d476f5-b66f-45ce-8623-a273ff4d7787/upgrade/?manual_license_management=false&tier=1",+ "cancel_url": "http://selfhosting.testserver/realm/3383e261-95a9-4f36-ae0c-4ecf80fab561/upgrade/?manual_license_management=false&tier=1","client_reference_id": null,"client_secret": null,"consent": null,@@ -73,7 +73,7 @@"status": "open","submit_type": null,"subscription": null,- "success_url": "http://selfhosting.testserver/realm/f6d476f5-b66f-45ce-8623-a273ff4d7787/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",+ "success_url": "http://selfhosting.testserver/realm/3383e261-95a9-4f36-ae0c-4ecf80fab561/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}","total_details": null,"ui_mode": "hosted","url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED"diff --git a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--checkout.Session.list.1.jsonindex 4b3dda82cbc..a8d7db30740 100644--- a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--checkout.Session.list.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--checkout.Session.list.1.json@@ -11,7 +11,7 @@"status": null},"billing_address_collection": "required",- "cancel_url": "http://selfhosting.testserver/realm/f6d476f5-b66f-45ce-8623-a273ff4d7787/upgrade/?manual_license_management=false&tier=1",+ "cancel_url": "http://selfhosting.testserver/realm/3383e261-95a9-4f36-ae0c-4ecf80fab561/upgrade/?manual_license_management=false&tier=1","client_reference_id": null,"client_secret": null,"consent": null,@@ -75,7 +75,7 @@"status": "open","submit_type": null,"subscription": null,- "success_url": "http://selfhosting.testserver/realm/f6d476f5-b66f-45ce-8623-a273ff4d7787/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",+ "success_url": "http://selfhosting.testserver/realm/3383e261-95a9-4f36-ae0c-4ecf80fab561/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}","total_details": null,"ui_mode": "hosted","url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED"diff --git a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Customer.retrieve.1.jsonindex f7feab5e5cc..3b78381c3cd 100644--- a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Customer.retrieve.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Customer.retrieve.1.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Customer.retrieve.2.jsonindex f7feab5e5cc..3b78381c3cd 100644--- a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Customer.retrieve.2.json+++ b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Customer.retrieve.2.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Customer.retrieve.3.jsonindex f7feab5e5cc..3b78381c3cd 100644--- a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Customer.retrieve.3.json+++ b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Customer.retrieve.3.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Customer.retrieve.4.jsonindex f7feab5e5cc..3b78381c3cd 100644--- a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Customer.retrieve.4.json+++ b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Customer.retrieve.4.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Customer.retrieve.5.jsonindex 189d7e32c37..3b78381c3cd 100644--- a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Customer.retrieve.5.json+++ b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Customer.retrieve.5.json@@ -2,8 +2,8 @@"address": null,"balance": 0,"created": 1000000000,- "currency": "usd",- "default_currency": "usd",+ "currency": null,+ "default_currency": null,"default_source": null,"delinquent": false,"description": "demo.example.com 6cde5f7a-1f7",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,10 +68,10 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,- "next_invoice_sequence": 2,+ "next_invoice_sequence": 1,"object": "customer","phone": null,"preferred_locales": [],diff --git a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Customer.retrieve.6.json b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Customer.retrieve.6.jsonnew file mode 100644index 00000000000..1f0ebfa70f1--- /dev/null+++ b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Customer.retrieve.6.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": "usd",+ "default_currency": "usd",+ "default_source": null,+ "delinquent": false,+ "description": "demo.example.com 6cde5f7a-1f7",+ "discount": null,+ "email": "[email protected]",+ "id": "upgrade_server_to_fixed_price_monthly_basic_plan--Customer.create.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "upgrade_server_to_fixed_price_monthly_basic_plan--Customer.create.1.json",+ "id": "upgrade_server_to_fixed_price_monthly_basic_plan--Customer.retrieve.1.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "remote_server_str": "demo.example.com 6cde5f7a-1f7",+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"+ },+ "name": null,+ "next_invoice_sequence": 2,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.2.json b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.2.jsonindex e8bf207e7c6..c25a97cfa11 100644--- a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.2.json+++ b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.2.json@@ -33,7 +33,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -82,8 +82,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -209,7 +209,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -258,8 +258,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -392,7 +392,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -465,7 +465,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -578,7 +580,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -651,7 +653,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -858,7 +862,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -931,7 +935,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -989,7 +995,7 @@"metadata": {},"object": "invoiceitem","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -1059,7 +1065,7 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.3.json b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.3.jsonindex eae89cdb0f0..2edcfb1b80e 100644--- a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.3.json+++ b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.3.json@@ -146,7 +146,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -173,13 +175,13 @@"total_excluding_tax": 10000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null}},"id": "upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.3.json","livemode": false,"object": "event",- "pending_webhooks": 0,+ "pending_webhooks": 2,"request": {"id": "upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.2.json","idempotency_key": "00000000-0000-0000-0000-000000000000"@@ -332,7 +334,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -359,7 +363,7 @@"total_excluding_tax": 10000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null}},"id": "upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.3.json",@@ -518,7 +522,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -545,7 +551,7 @@"total_excluding_tax": 10000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null},"previous_attributes": {"amount_paid": 0,diff --git a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Invoice.create.1.json b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Invoice.create.1.jsonindex 786291592f3..62e20e08a9c 100644--- a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Invoice.create.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Invoice.create.1.json@@ -140,7 +140,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Invoice.finalize_invoice.1.jsonindex 9080b120d7d..c024df3bbfc 100644--- a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Invoice.finalize_invoice.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Invoice.finalize_invoice.1.json@@ -140,7 +140,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Invoice.pay.1.jsonindex b445a03181c..2c2fc92858e 100644--- a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Invoice.pay.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Invoice.pay.1.json@@ -140,7 +140,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -167,5 +169,5 @@"total_excluding_tax": 10000,"total_tax_amounts": [],"transfer_data": null,- "webhooks_delivered_at": 1000000000+ "webhooks_delivered_at": null}diff --git a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--PaymentMethod.create.1.json b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--PaymentMethod.create.1.jsonindex 4724eb903a4..133f6f63677 100644--- a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--PaymentMethod.create.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--PaymentMethod.create.1.json@@ -6,7 +6,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -22,8 +22,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Customer.retrieve.1.jsonindex 5c82a91dbee..66232078c7d 100644--- a/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Customer.retrieve.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Customer.retrieve.1.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Customer.retrieve.2.jsonindex 5c82a91dbee..66232078c7d 100644--- a/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Customer.retrieve.2.json+++ b/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Customer.retrieve.2.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Customer.retrieve.3.jsonindex 5c82a91dbee..66232078c7d 100644--- a/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Customer.retrieve.3.json+++ b/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Customer.retrieve.3.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Customer.retrieve.4.jsonindex 5c82a91dbee..66232078c7d 100644--- a/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Customer.retrieve.4.json+++ b/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Customer.retrieve.4.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Customer.retrieve.5.jsonindex f55209c68da..66232078c7d 100644--- a/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Customer.retrieve.5.json+++ b/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Customer.retrieve.5.json@@ -2,8 +2,8 @@"address": null,"balance": 0,"created": 1000000000,- "currency": "usd",- "default_currency": "usd",+ "currency": null,+ "default_currency": null,"default_source": null,"delinquent": false,"description": "demo.example.com 6cde5f7a-1f7",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,10 +68,10 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,- "next_invoice_sequence": 2,+ "next_invoice_sequence": 1,"object": "customer","phone": null,"preferred_locales": [],diff --git a/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Customer.retrieve.6.json b/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Customer.retrieve.6.jsonindex f55209c68da..56a5a0ab111 100644--- a/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Customer.retrieve.6.json+++ b/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Customer.retrieve.6.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,"next_invoice_sequence": 2,diff --git a/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Customer.retrieve.7.json b/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Customer.retrieve.7.jsonnew file mode 100644index 00000000000..56a5a0ab111--- /dev/null+++ b/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Customer.retrieve.7.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": "usd",+ "default_currency": "usd",+ "default_source": null,+ "delinquent": false,+ "description": "demo.example.com 6cde5f7a-1f7",+ "discount": null,+ "email": "[email protected]",+ "id": "upgrade_server_user_to_monthly_basic_plan--Customer.create.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "upgrade_server_user_to_monthly_basic_plan--Customer.create.1.json",+ "id": "upgrade_server_user_to_monthly_basic_plan--Customer.retrieve.1.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "remote_server_str": "demo.example.com 6cde5f7a-1f7",+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"+ },+ "name": null,+ "next_invoice_sequence": 2,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Event.list.2.json b/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Event.list.2.jsonindex 05a6040da4d..61ba9ca1e6d 100644--- a/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Event.list.2.json+++ b/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Event.list.2.json@@ -33,7 +33,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -82,8 +82,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -111,6 +111,7 @@},"type": "card"},+ "radar_options": {},"receipt_email": "[email protected]","receipt_number": null,"receipt_url": "https://pay.stripe.com/receipts/invoices/NORMALIZED?s=ap",@@ -209,7 +210,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -258,8 +259,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -287,6 +288,7 @@},"type": "card"},+ "radar_options": {},"receipt_email": "[email protected]","receipt_number": null,"receipt_url": "https://pay.stripe.com/receipts/invoices/NORMALIZED?s=ap",@@ -516,7 +518,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -753,7 +757,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -1084,7 +1090,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -1274,7 +1282,7 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Event.list.3.json b/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Event.list.3.jsonindex 0bf108b0034..2631e2eee1b 100644--- a/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Event.list.3.json+++ b/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Event.list.3.json@@ -197,7 +197,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -230,7 +232,7 @@"id": "upgrade_server_user_to_monthly_basic_plan--Event.list.3.json","livemode": false,"object": "event",- "pending_webhooks": 0,+ "pending_webhooks": 2,"request": {"id": "upgrade_server_user_to_monthly_basic_plan--Event.list.2.json","idempotency_key": "00000000-0000-0000-0000-000000000000"@@ -434,7 +436,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -671,7 +675,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Invoice.create.1.json b/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Invoice.create.1.jsonindex a7eb87ff9d3..ca0b75b53ce 100644--- a/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Invoice.create.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Invoice.create.1.json@@ -191,7 +191,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Invoice.finalize_invoice.1.jsonindex abf93ffb0ac..97638c7d517 100644--- a/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Invoice.finalize_invoice.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Invoice.finalize_invoice.1.json@@ -191,7 +191,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Invoice.pay.1.jsonindex 91fcc68cd02..9f92f5b0583 100644--- a/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Invoice.pay.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Invoice.pay.1.json@@ -191,7 +191,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--PaymentMethod.create.1.json b/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--PaymentMethod.create.1.jsonindex 6867c7efaf4..f618a5119e3 100644--- a/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--PaymentMethod.create.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--PaymentMethod.create.1.json@@ -6,7 +6,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -22,8 +22,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.create.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.create.1.jsonindex c0e9cf156bf..84da33678f2 100644--- a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.create.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.create.1.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-95a","discount": null,"email": "[email protected]","id": "upgrade_user_to_basic_plan_free_trial--Customer.create.1.json",@@ -20,7 +20,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-95a9-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.modify.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.modify.1.jsonindex 02a4bc9f6d5..fab776a8460 100644--- a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.modify.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.modify.1.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-95a","discount": null,"email": "[email protected]","id": "upgrade_user_to_basic_plan_free_trial--Customer.create.1.json",@@ -20,7 +20,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-95a9-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.1.jsonindex 87bc341df2d..519f1a94d0c 100644--- a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.1.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-15a","discount": null,"email": "[email protected]","id": "upgrade_user_to_basic_plan_free_trial--Customer.create.1.json",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.2.jsonindex 87bc341df2d..519f1a94d0c 100644--- a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.2.json+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.2.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-15a","discount": null,"email": "[email protected]","id": "upgrade_user_to_basic_plan_free_trial--Customer.create.1.json",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.3.jsonindex 87bc341df2d..519f1a94d0c 100644--- a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.3.json+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.3.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-15a","discount": null,"email": "[email protected]","id": "upgrade_user_to_basic_plan_free_trial--Customer.create.1.json",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.4.jsonindex 87bc341df2d..519f1a94d0c 100644--- a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.4.json+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.4.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-15a","discount": null,"email": "[email protected]","id": "upgrade_user_to_basic_plan_free_trial--Customer.create.1.json",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.5.jsonindex 87bc341df2d..519f1a94d0c 100644--- a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.5.json+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.5.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-15a","discount": null,"email": "[email protected]","id": "upgrade_user_to_basic_plan_free_trial--Customer.create.1.json",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.6.json b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.6.jsonindex 87bc341df2d..519f1a94d0c 100644--- a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.6.json+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.6.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-15a","discount": null,"email": "[email protected]","id": "upgrade_user_to_basic_plan_free_trial--Customer.create.1.json",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.7.json b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.7.jsonnew file mode 100644index 00000000000..519f1a94d0c--- /dev/null+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.7.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": null,+ "default_currency": null,+ "default_source": null,+ "delinquent": false,+ "description": "zulip.testserver 3383e261-15a",+ "discount": null,+ "email": "[email protected]",+ "id": "upgrade_user_to_basic_plan_free_trial--Customer.create.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "upgrade_user_to_basic_plan_free_trial--Customer.create.1.json",+ "id": "upgrade_user_to_basic_plan_free_trial--Customer.retrieve.1.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "remote_realm_host": "zulip.testserver",+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"+ },+ "name": null,+ "next_invoice_sequence": 1,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Event.list.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Event.list.1.jsonindex 93297511166..924f089e917 100644--- a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Event.list.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Event.list.1.json@@ -12,7 +12,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-95a","discount": null,"email": "[email protected]","id": "upgrade_user_to_basic_plan_free_trial--Customer.create.1.json",@@ -26,7 +26,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-95a9-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--PaymentMethod.create.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--PaymentMethod.create.1.jsonindex e812a1ff4bf..fd55fea2c80 100644--- a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--PaymentMethod.create.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--PaymentMethod.create.1.json@@ -6,7 +6,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -22,8 +22,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--checkout.Session.create.1.jsonindex d1a2ab334cc..7c69705262c 100644--- a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--checkout.Session.create.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--checkout.Session.create.1.json@@ -9,7 +9,7 @@"status": null},"billing_address_collection": "required",- "cancel_url": "http://selfhosting.testserver/realm/f6d476f5-b66f-45ce-8623-a273ff4d7787/upgrade/?manual_license_management=false&tier=1",+ "cancel_url": "http://selfhosting.testserver/realm/3383e261-95a9-4f36-ae0c-4ecf80fab561/upgrade/?manual_license_management=false&tier=1","client_reference_id": null,"client_secret": null,"consent": null,@@ -73,7 +73,7 @@"status": "open","submit_type": null,"subscription": null,- "success_url": "http://selfhosting.testserver/realm/f6d476f5-b66f-45ce-8623-a273ff4d7787/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",+ "success_url": "http://selfhosting.testserver/realm/3383e261-95a9-4f36-ae0c-4ecf80fab561/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}","total_details": null,"ui_mode": "hosted","url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED"diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--checkout.Session.list.1.jsonindex fafde0dda64..08167cb6264 100644--- a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--checkout.Session.list.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--checkout.Session.list.1.json@@ -11,7 +11,7 @@"status": null},"billing_address_collection": "required",- "cancel_url": "http://selfhosting.testserver/realm/f6d476f5-b66f-45ce-8623-a273ff4d7787/upgrade/?manual_license_management=false&tier=1",+ "cancel_url": "http://selfhosting.testserver/realm/3383e261-95a9-4f36-ae0c-4ecf80fab561/upgrade/?manual_license_management=false&tier=1","client_reference_id": null,"client_secret": null,"consent": null,@@ -75,7 +75,7 @@"status": "open","submit_type": null,"subscription": null,- "success_url": "http://selfhosting.testserver/realm/f6d476f5-b66f-45ce-8623-a273ff4d7787/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",+ "success_url": "http://selfhosting.testserver/realm/3383e261-95a9-4f36-ae0c-4ecf80fab561/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}","total_details": null,"ui_mode": "hosted","url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED"diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial_remote_server--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial_remote_server--Customer.retrieve.1.jsonindex b9289eef353..87255e62bea 100644--- a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial_remote_server--Customer.retrieve.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial_remote_server--Customer.retrieve.1.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial_remote_server--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial_remote_server--Customer.retrieve.2.jsonindex b9289eef353..87255e62bea 100644--- a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial_remote_server--Customer.retrieve.2.json+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial_remote_server--Customer.retrieve.2.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial_remote_server--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial_remote_server--Customer.retrieve.3.jsonindex b9289eef353..87255e62bea 100644--- a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial_remote_server--Customer.retrieve.3.json+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial_remote_server--Customer.retrieve.3.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial_remote_server--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial_remote_server--Customer.retrieve.4.jsonindex b9289eef353..87255e62bea 100644--- a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial_remote_server--Customer.retrieve.4.json+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial_remote_server--Customer.retrieve.4.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial_remote_server--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial_remote_server--Customer.retrieve.5.jsonindex b9289eef353..87255e62bea 100644--- a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial_remote_server--Customer.retrieve.5.json+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial_remote_server--Customer.retrieve.5.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial_remote_server--Customer.retrieve.6.json b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial_remote_server--Customer.retrieve.6.jsonindex b9289eef353..87255e62bea 100644--- a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial_remote_server--Customer.retrieve.6.json+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial_remote_server--Customer.retrieve.6.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_server_str": "demo.example.com 6cde5f7a-1f7",- "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial_remote_server--Customer.retrieve.7.json b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial_remote_server--Customer.retrieve.7.jsonnew file mode 100644index 00000000000..87255e62bea--- /dev/null+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial_remote_server--Customer.retrieve.7.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": null,+ "default_currency": null,+ "default_source": null,+ "delinquent": false,+ "description": "demo.example.com 6cde5f7a-1f7",+ "discount": null,+ "email": "[email protected]",+ "id": "upgrade_user_to_basic_plan_free_trial_remote_server--Customer.create.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "upgrade_user_to_basic_plan_free_trial_remote_server--Customer.create.1.json",+ "id": "upgrade_user_to_basic_plan_free_trial_remote_server--Customer.retrieve.1.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "remote_server_str": "demo.example.com 6cde5f7a-1f7",+ "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"+ },+ "name": null,+ "next_invoice_sequence": 1,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial_remote_server--PaymentMethod.create.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial_remote_server--PaymentMethod.create.1.jsonindex 579e8b5a2c6..74501c79433 100644--- a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial_remote_server--PaymentMethod.create.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial_remote_server--PaymentMethod.create.1.json@@ -6,7 +6,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -22,8 +22,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.create.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.create.1.jsonindex 0e72d10d55a..9dd8e52cf26 100644--- a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.create.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.create.1.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-95a","discount": null,"email": "[email protected]","id": "upgrade_user_to_business_plan--Customer.create.1.json",@@ -20,7 +20,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-95a9-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.modify.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.modify.1.jsonindex e5239d93639..8f2e1c46583 100644--- a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.modify.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.modify.1.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-95a","discount": null,"email": "[email protected]","id": "upgrade_user_to_business_plan--Customer.create.1.json",@@ -20,7 +20,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-95a9-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.1.jsonindex f1465065587..91ebaf337cd 100644--- a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.1.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-15a","discount": null,"email": "[email protected]","id": "upgrade_user_to_business_plan--Customer.create.1.json",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.2.jsonindex f1465065587..91ebaf337cd 100644--- a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.2.json+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.2.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-15a","discount": null,"email": "[email protected]","id": "upgrade_user_to_business_plan--Customer.create.1.json",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.3.jsonindex f1465065587..91ebaf337cd 100644--- a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.3.json+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.3.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-15a","discount": null,"email": "[email protected]","id": "upgrade_user_to_business_plan--Customer.create.1.json",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.4.jsonindex f1465065587..91ebaf337cd 100644--- a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.4.json+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.4.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-15a","discount": null,"email": "[email protected]","id": "upgrade_user_to_business_plan--Customer.create.1.json",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.5.jsonindex b5aab393d93..91ebaf337cd 100644--- a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.5.json+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.5.json@@ -2,11 +2,11 @@"address": null,"balance": 0,"created": 1000000000,- "currency": "usd",- "default_currency": "usd",+ "currency": null,+ "default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-15a","discount": null,"email": "[email protected]","id": "upgrade_user_to_business_plan--Customer.create.1.json",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,10 +68,10 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"},"name": null,- "next_invoice_sequence": 2,+ "next_invoice_sequence": 1,"object": "customer","phone": null,"preferred_locales": [],diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.6.json b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.6.jsonindex b5aab393d93..36e999c2085 100644--- a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.6.json+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.6.json@@ -6,7 +6,7 @@"default_currency": "usd","default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-15a","discount": null,"email": "[email protected]","id": "upgrade_user_to_business_plan--Customer.create.1.json",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 2,diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.7.json b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.7.jsonnew file mode 100644index 00000000000..36e999c2085--- /dev/null+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.7.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": "usd",+ "default_currency": "usd",+ "default_source": null,+ "delinquent": false,+ "description": "zulip.testserver 3383e261-15a",+ "discount": null,+ "email": "[email protected]",+ "id": "upgrade_user_to_business_plan--Customer.create.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "upgrade_user_to_business_plan--Customer.create.1.json",+ "id": "upgrade_user_to_business_plan--Customer.retrieve.1.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "remote_realm_host": "zulip.testserver",+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"+ },+ "name": null,+ "next_invoice_sequence": 2,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Event.list.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Event.list.1.jsonindex 468fa75354b..aa573fd70fc 100644--- a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Event.list.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Event.list.1.json@@ -12,7 +12,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-95a","discount": null,"email": "[email protected]","id": "upgrade_user_to_business_plan--Customer.create.1.json",@@ -26,7 +26,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-95a9-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Event.list.2.json b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Event.list.2.jsonindex d3dcf41ccd0..2a6d35c43bb 100644--- a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Event.list.2.json+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Event.list.2.json@@ -33,7 +33,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -82,8 +82,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -111,6 +111,7 @@},"type": "card"},+ "radar_options": {},"receipt_email": "[email protected]","receipt_number": null,"receipt_url": "https://pay.stripe.com/receipts/invoices/NORMALIZED?s=ap",@@ -209,7 +210,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -258,8 +259,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -287,6 +288,7 @@},"type": "card"},+ "radar_options": {},"receipt_email": "[email protected]","receipt_number": null,"receipt_url": "https://pay.stripe.com/receipts/invoices/NORMALIZED?s=ap",@@ -392,7 +394,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -443,7 +445,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -516,7 +518,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -629,7 +633,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -680,7 +684,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -753,7 +757,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -960,7 +966,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -1011,7 +1017,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -1084,7 +1090,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -1142,7 +1150,7 @@"metadata": {},"object": "invoiceitem","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -1204,7 +1212,7 @@"metadata": {},"object": "invoiceitem","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -1260,7 +1268,7 @@"default_currency": "usd","default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-15a","discount": null,"email": "[email protected]","id": "upgrade_user_to_business_plan--Customer.create.1.json",@@ -1274,7 +1282,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Event.list.3.json b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Event.list.3.jsonindex 5cd983c8837..4d88247d59f 100644--- a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Event.list.3.json+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Event.list.3.json@@ -197,7 +197,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -232,7 +234,7 @@"object": "event","pending_webhooks": 2,"request": {- "id": "upgrade_user_to_business_plan--Event.list.2.json",+ "id": "upgrade_user_to_business_plan--Event.list.3.json","idempotency_key": "00000000-0000-0000-0000-000000000000"},"type": "invoice.payment_succeeded"@@ -434,7 +436,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -469,7 +473,7 @@"object": "event","pending_webhooks": 0,"request": {- "id": "upgrade_user_to_business_plan--Event.list.2.json",+ "id": "upgrade_user_to_business_plan--Event.list.3.json","idempotency_key": "00000000-0000-0000-0000-000000000000"},"type": "invoice.paid"@@ -671,7 +675,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -718,7 +724,7 @@"object": "event","pending_webhooks": 0,"request": {- "id": "upgrade_user_to_business_plan--Event.list.2.json",+ "id": "upgrade_user_to_business_plan--Event.list.3.json","idempotency_key": "00000000-0000-0000-0000-000000000000"},"type": "invoice.updated"diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Invoice.create.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Invoice.create.1.jsonindex eb06ac2ef05..4a616fcf915 100644--- a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Invoice.create.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Invoice.create.1.json@@ -191,7 +191,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Invoice.finalize_invoice.1.jsonindex 5b0f0924785..869543367a8 100644--- a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Invoice.finalize_invoice.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Invoice.finalize_invoice.1.json@@ -191,7 +191,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Invoice.pay.1.jsonindex ac2d170e33a..cf68e907947 100644--- a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Invoice.pay.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Invoice.pay.1.json@@ -191,7 +191,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--PaymentMethod.create.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--PaymentMethod.create.1.jsonindex 73e40f381a9..62600308fe3 100644--- a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--PaymentMethod.create.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--PaymentMethod.create.1.json@@ -6,7 +6,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -22,8 +22,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--checkout.Session.create.1.jsonindex 4fee8f606bc..4d27032e5bb 100644--- a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--checkout.Session.create.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--checkout.Session.create.1.json@@ -9,7 +9,7 @@"status": null},"billing_address_collection": "required",- "cancel_url": "http://selfhosting.testserver/realm/f6d476f5-b66f-45ce-8623-a273ff4d7787/upgrade/?manual_license_management=false&tier=1",+ "cancel_url": "http://selfhosting.testserver/realm/3383e261-95a9-4f36-ae0c-4ecf80fab561/upgrade/?manual_license_management=false&tier=1","client_reference_id": null,"client_secret": null,"consent": null,@@ -73,7 +73,7 @@"status": "open","submit_type": null,"subscription": null,- "success_url": "http://selfhosting.testserver/realm/f6d476f5-b66f-45ce-8623-a273ff4d7787/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",+ "success_url": "http://selfhosting.testserver/realm/3383e261-95a9-4f36-ae0c-4ecf80fab561/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}","total_details": null,"ui_mode": "hosted","url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED"diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--checkout.Session.list.1.jsonindex cd8c4ff6941..551b6f3bcc7 100644--- a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--checkout.Session.list.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--checkout.Session.list.1.json@@ -11,7 +11,7 @@"status": null},"billing_address_collection": "required",- "cancel_url": "http://selfhosting.testserver/realm/f6d476f5-b66f-45ce-8623-a273ff4d7787/upgrade/?manual_license_management=false&tier=1",+ "cancel_url": "http://selfhosting.testserver/realm/3383e261-95a9-4f36-ae0c-4ecf80fab561/upgrade/?manual_license_management=false&tier=1","client_reference_id": null,"client_secret": null,"consent": null,@@ -75,7 +75,7 @@"status": "open","submit_type": null,"subscription": null,- "success_url": "http://selfhosting.testserver/realm/f6d476f5-b66f-45ce-8623-a273ff4d7787/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",+ "success_url": "http://selfhosting.testserver/realm/3383e261-95a9-4f36-ae0c-4ecf80fab561/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}","total_details": null,"ui_mode": "hosted","url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED"diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.create.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.create.1.jsonindex cdf3672cfc1..73b01f94551 100644--- a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.create.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.create.1.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-95a","discount": null,"email": "[email protected]","id": "upgrade_user_to_fixed_price_monthly_basic_plan--Customer.create.1.json",@@ -20,7 +20,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-95a9-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.modify.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.modify.1.jsonindex 3020ea16b77..953c920f410 100644--- a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.modify.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.modify.1.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-95a","discount": null,"email": "[email protected]","id": "upgrade_user_to_fixed_price_monthly_basic_plan--Customer.create.1.json",@@ -20,7 +20,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-95a9-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.retrieve.1.jsonindex 5dc33b2be2f..a06f67d6b90 100644--- a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.retrieve.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.retrieve.1.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-15a","discount": null,"email": "[email protected]","id": "upgrade_user_to_fixed_price_monthly_basic_plan--Customer.create.1.json",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.retrieve.2.jsonindex 5dc33b2be2f..a06f67d6b90 100644--- a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.retrieve.2.json+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.retrieve.2.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-15a","discount": null,"email": "[email protected]","id": "upgrade_user_to_fixed_price_monthly_basic_plan--Customer.create.1.json",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.retrieve.3.jsonindex 5dc33b2be2f..a06f67d6b90 100644--- a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.retrieve.3.json+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.retrieve.3.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-15a","discount": null,"email": "[email protected]","id": "upgrade_user_to_fixed_price_monthly_basic_plan--Customer.create.1.json",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.retrieve.4.jsonindex 5dc33b2be2f..a06f67d6b90 100644--- a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.retrieve.4.json+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.retrieve.4.json@@ -6,7 +6,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-15a","discount": null,"email": "[email protected]","id": "upgrade_user_to_fixed_price_monthly_basic_plan--Customer.create.1.json",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,7 +68,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.retrieve.5.jsonindex b4fa1a948cc..a06f67d6b90 100644--- a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.retrieve.5.json+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.retrieve.5.json@@ -2,11 +2,11 @@"address": null,"balance": 0,"created": 1000000000,- "currency": "usd",- "default_currency": "usd",+ "currency": null,+ "default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-15a","discount": null,"email": "[email protected]","id": "upgrade_user_to_fixed_price_monthly_basic_plan--Customer.create.1.json",@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,@@ -68,10 +68,10 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"},"name": null,- "next_invoice_sequence": 2,+ "next_invoice_sequence": 1,"object": "customer","phone": null,"preferred_locales": [],diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.retrieve.6.json b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.retrieve.6.jsonnew file mode 100644index 00000000000..9fbb2f5c360--- /dev/null+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.retrieve.6.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": "usd",+ "default_currency": "usd",+ "default_source": null,+ "delinquent": false,+ "description": "zulip.testserver 3383e261-15a",+ "discount": null,+ "email": "[email protected]",+ "id": "upgrade_user_to_fixed_price_monthly_basic_plan--Customer.create.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "upgrade_user_to_fixed_price_monthly_basic_plan--Customer.create.1.json",+ "id": "upgrade_user_to_fixed_price_monthly_basic_plan--Customer.retrieve.1.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "remote_realm_host": "zulip.testserver",+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"+ },+ "name": null,+ "next_invoice_sequence": 2,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.1.jsonindex 6e359fd0d4d..63c0f651326 100644--- a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.1.json@@ -12,7 +12,7 @@"default_currency": null,"default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-95a","discount": null,"email": "[email protected]","id": "upgrade_user_to_fixed_price_monthly_basic_plan--Customer.create.1.json",@@ -26,7 +26,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-95a9-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.2.json b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.2.jsonindex 608f521800b..c11124855f5 100644--- a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.2.json+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.2.json@@ -33,7 +33,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -82,8 +82,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -111,6 +111,7 @@},"type": "card"},+ "radar_options": {},"receipt_email": "[email protected]","receipt_number": null,"receipt_url": "https://pay.stripe.com/receipts/invoices/NORMALIZED?s=ap",@@ -209,7 +210,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -258,8 +259,8 @@"cvc_check": "pass"},"country": "US",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"extended_authorization": {"status": "disabled"},@@ -287,6 +288,7 @@},"type": "card"},+ "radar_options": {},"receipt_email": "[email protected]","receipt_number": null,"receipt_url": "https://pay.stripe.com/receipts/invoices/NORMALIZED?s=ap",@@ -392,7 +394,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -465,7 +467,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -578,7 +582,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -651,7 +655,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -858,7 +864,7 @@"metadata": {},"object": "line_item","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -931,7 +937,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -989,7 +997,7 @@"metadata": {},"object": "invoiceitem","period": {- "end": 1357095845,+ "end": 1357015845,"start": 1325473445},"plan": null,@@ -1045,7 +1053,7 @@"default_currency": "usd","default_source": null,"delinquent": false,- "description": "zulip.testserver f6d476f5-b66",+ "description": "zulip.testserver 3383e261-15a","discount": null,"email": "[email protected]","id": "upgrade_user_to_fixed_price_monthly_basic_plan--Customer.create.1.json",@@ -1059,7 +1067,7 @@"livemode": false,"metadata": {"remote_realm_host": "zulip.testserver",- "remote_realm_uuid": "f6d476f5-b66f-45ce-8623-a273ff4d7787"+ "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"},"name": null,"next_invoice_sequence": 1,diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.3.json b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.3.jsonindex 1931a524ed5..f6123c7c4e4 100644--- a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.3.json+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.3.json@@ -49,7 +49,7 @@"footer": null,"from_invoice": null,"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",- "id": "upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.2.json",+ "id": "upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.3.json","invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap","issuer": {"type": "self"@@ -67,7 +67,7 @@"discountable": false,"discounts": [],"id": "upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.2.json",- "invoice": "upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.2.json",+ "invoice": "upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.3.json","invoice_item": "ii_NORMALIZED","livemode": false,"metadata": {},@@ -113,7 +113,7 @@"has_more": false,"object": "list","total_count": 1,- "url": "/v1/invoices/upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.2.json/lines"+ "url": "/v1/invoices/upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.3.json/lines"},"livemode": false,"metadata": {@@ -146,7 +146,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -235,7 +237,7 @@"footer": null,"from_invoice": null,"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",- "id": "upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.2.json",+ "id": "upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.3.json","invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap","issuer": {"type": "self"@@ -253,7 +255,7 @@"discountable": false,"discounts": [],"id": "upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.2.json",- "invoice": "upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.2.json",+ "invoice": "upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.3.json","invoice_item": "ii_NORMALIZED","livemode": false,"metadata": {},@@ -299,7 +301,7 @@"has_more": false,"object": "list","total_count": 1,- "url": "/v1/invoices/upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.2.json/lines"+ "url": "/v1/invoices/upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.3.json/lines"},"livemode": false,"metadata": {@@ -332,7 +334,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,@@ -421,7 +425,7 @@"footer": null,"from_invoice": null,"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",- "id": "upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.2.json",+ "id": "upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.3.json","invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap","issuer": {"type": "self"@@ -439,7 +443,7 @@"discountable": false,"discounts": [],"id": "upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.2.json",- "invoice": "upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.2.json",+ "invoice": "upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.3.json","invoice_item": "ii_NORMALIZED","livemode": false,"metadata": {},@@ -485,7 +489,7 @@"has_more": false,"object": "list","total_count": 1,- "url": "/v1/invoices/upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.2.json/lines"+ "url": "/v1/invoices/upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.3.json/lines"},"livemode": false,"metadata": {@@ -518,7 +522,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Invoice.create.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Invoice.create.1.jsonindex 023004bcd2b..2acf7c9df8f 100644--- a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Invoice.create.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Invoice.create.1.json@@ -43,7 +43,7 @@"footer": null,"from_invoice": null,"hosted_invoice_url": null,- "id": "upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.2.json",+ "id": "upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.3.json","invoice_pdf": null,"issuer": {"type": "self"@@ -61,7 +61,7 @@"discountable": false,"discounts": [],"id": "upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.2.json",- "invoice": "upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.2.json",+ "invoice": "upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.3.json","invoice_item": "ii_NORMALIZED","livemode": false,"metadata": {},@@ -107,7 +107,7 @@"has_more": false,"object": "list","total_count": 1,- "url": "/v1/invoices/upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.2.json/lines"+ "url": "/v1/invoices/upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.3.json/lines"},"livemode": false,"metadata": {@@ -140,7 +140,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Invoice.finalize_invoice.1.jsonindex 23551a64664..40d000eeca3 100644--- a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Invoice.finalize_invoice.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Invoice.finalize_invoice.1.json@@ -43,7 +43,7 @@"footer": null,"from_invoice": null,"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",- "id": "upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.2.json",+ "id": "upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.3.json","invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap","issuer": {"type": "self"@@ -61,7 +61,7 @@"discountable": false,"discounts": [],"id": "upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.2.json",- "invoice": "upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.2.json",+ "invoice": "upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.3.json","invoice_item": "ii_NORMALIZED","livemode": false,"metadata": {},@@ -107,7 +107,7 @@"has_more": false,"object": "list","total_count": 1,- "url": "/v1/invoices/upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.2.json/lines"+ "url": "/v1/invoices/upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.3.json/lines"},"livemode": false,"metadata": {@@ -140,7 +140,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Invoice.pay.1.jsonindex 6083be4fd83..836e3d2a3c4 100644--- a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Invoice.pay.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Invoice.pay.1.json@@ -43,7 +43,7 @@"footer": null,"from_invoice": null,"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",- "id": "upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.2.json",+ "id": "upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.3.json","invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap","issuer": {"type": "self"@@ -61,7 +61,7 @@"discountable": false,"discounts": [],"id": "upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.2.json",- "invoice": "upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.2.json",+ "invoice": "upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.3.json","invoice_item": "ii_NORMALIZED","livemode": false,"metadata": {},@@ -107,7 +107,7 @@"has_more": false,"object": "list","total_count": 1,- "url": "/v1/invoices/upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.2.json/lines"+ "url": "/v1/invoices/upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.3.json/lines"},"livemode": false,"metadata": {@@ -140,7 +140,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--PaymentMethod.create.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--PaymentMethod.create.1.jsonindex 02dc81485e0..a379e662aff 100644--- a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--PaymentMethod.create.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--PaymentMethod.create.1.json@@ -6,7 +6,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -22,8 +22,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--checkout.Session.create.1.jsonindex 8e67b439fb7..7e4d8097b5d 100644--- a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--checkout.Session.create.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--checkout.Session.create.1.json@@ -9,7 +9,7 @@"status": null},"billing_address_collection": "required",- "cancel_url": "http://selfhosting.testserver/realm/f6d476f5-b66f-45ce-8623-a273ff4d7787/upgrade/?manual_license_management=false&tier=1",+ "cancel_url": "http://selfhosting.testserver/realm/3383e261-95a9-4f36-ae0c-4ecf80fab561/upgrade/?manual_license_management=false&tier=1","client_reference_id": null,"client_secret": null,"consent": null,@@ -73,7 +73,7 @@"status": "open","submit_type": null,"subscription": null,- "success_url": "http://selfhosting.testserver/realm/f6d476f5-b66f-45ce-8623-a273ff4d7787/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",+ "success_url": "http://selfhosting.testserver/realm/3383e261-95a9-4f36-ae0c-4ecf80fab561/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}","total_details": null,"ui_mode": "hosted","url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED"diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--checkout.Session.list.1.jsonindex 296d8bd0e15..824124e4050 100644--- a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--checkout.Session.list.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--checkout.Session.list.1.json@@ -11,7 +11,7 @@"status": null},"billing_address_collection": "required",- "cancel_url": "http://selfhosting.testserver/realm/f6d476f5-b66f-45ce-8623-a273ff4d7787/upgrade/?manual_license_management=false&tier=1",+ "cancel_url": "http://selfhosting.testserver/realm/3383e261-95a9-4f36-ae0c-4ecf80fab561/upgrade/?manual_license_management=false&tier=1","client_reference_id": null,"client_secret": null,"consent": null,@@ -75,7 +75,7 @@"status": "open","submit_type": null,"subscription": null,- "success_url": "http://selfhosting.testserver/realm/f6d476f5-b66f-45ce-8623-a273ff4d7787/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",+ "success_url": "http://selfhosting.testserver/realm/3383e261-95a9-4f36-ae0c-4ecf80fab561/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}","total_details": null,"ui_mode": "hosted","url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED"diff --git a/corporate/tests/stripe_fixtures/upgrade_with_uncaught_exception--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/upgrade_with_uncaught_exception--Customer.retrieve.1.jsonindex 8c3d75b97a7..86fd1159e62 100644--- a/corporate/tests/stripe_fixtures/upgrade_with_uncaught_exception--Customer.retrieve.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_with_uncaught_exception--Customer.retrieve.1.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_with_uncaught_exception--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/upgrade_with_uncaught_exception--Customer.retrieve.2.jsonindex 8c3d75b97a7..86fd1159e62 100644--- a/corporate/tests/stripe_fixtures/upgrade_with_uncaught_exception--Customer.retrieve.2.json+++ b/corporate/tests/stripe_fixtures/upgrade_with_uncaught_exception--Customer.retrieve.2.json@@ -21,7 +21,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -37,8 +37,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/upgrade_with_uncaught_exception--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/upgrade_with_uncaught_exception--Customer.retrieve.3.jsonnew file mode 100644index 00000000000..86fd1159e62--- /dev/null+++ b/corporate/tests/stripe_fixtures/upgrade_with_uncaught_exception--Customer.retrieve.3.json@@ -0,0 +1,81 @@+{+ "address": null,+ "balance": 0,+ "created": 1000000000,+ "currency": null,+ "default_currency": null,+ "default_source": null,+ "delinquent": false,+ "description": "zulip (Zulip Dev)",+ "discount": null,+ "email": "[email protected]",+ "id": "upgrade_with_uncaught_exception--Customer.create.1.json",+ "invoice_prefix": "NORMALIZED",+ "invoice_settings": {+ "custom_fields": null,+ "default_payment_method": {+ "allow_redisplay": "unspecified",+ "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+ },+ "card": {+ "brand": "visa",+ "checks": {+ "address_line1_check": "pass",+ "address_postal_code_check": "pass",+ "cvc_check": "pass"+ },+ "country": "US",+ "display_brand": "visa",+ "exp_month": 1,+ "exp_year": 9999,+ "fingerprint": "NORMALIZED",+ "funding": "credit",+ "generated_from": null,+ "last4": "4242",+ "networks": {+ "available": [+ "visa"+ ],+ "preferred": null+ },+ "three_d_secure_usage": {+ "supported": true+ },+ "wallet": null+ },+ "created": 1000000000,+ "customer": "upgrade_with_uncaught_exception--Customer.create.1.json",+ "id": "upgrade_with_uncaught_exception--Customer.retrieve.1.json",+ "livemode": false,+ "metadata": {},+ "object": "payment_method",+ "type": "card"+ },+ "footer": null,+ "rendering_options": null+ },+ "livemode": false,+ "metadata": {+ "realm_id": "1",+ "realm_str": "zulip"+ },+ "name": null,+ "next_invoice_sequence": 1,+ "object": "customer",+ "phone": null,+ "preferred_locales": [],+ "shipping": null,+ "tax_exempt": "none",+ "test_clock": null+}diff --git a/corporate/tests/stripe_fixtures/upgrade_with_uncaught_exception--PaymentMethod.create.1.json b/corporate/tests/stripe_fixtures/upgrade_with_uncaught_exception--PaymentMethod.create.1.jsonindex df02918dff6..2b623c4d0ec 100644--- a/corporate/tests/stripe_fixtures/upgrade_with_uncaught_exception--PaymentMethod.create.1.json+++ b/corporate/tests/stripe_fixtures/upgrade_with_uncaught_exception--PaymentMethod.create.1.json@@ -6,7 +6,7 @@"country": "US","line1": "123 Main St","line2": null,- "postal_code": "94105",+ "postal_code": "12345","state": "CA"},"email": null,@@ -22,8 +22,8 @@},"country": "US","display_brand": "visa",- "exp_month": 8,- "exp_year": 2025,+ "exp_month": 1,+ "exp_year": 9999,"fingerprint": "NORMALIZED","funding": "credit","generated_from": null,diff --git a/corporate/tests/stripe_fixtures/void_all_open_invoices--Invoice.create.1.json b/corporate/tests/stripe_fixtures/void_all_open_invoices--Invoice.create.1.jsonindex 937a96675d1..6b452f54341 100644--- a/corporate/tests/stripe_fixtures/void_all_open_invoices--Invoice.create.1.json+++ b/corporate/tests/stripe_fixtures/void_all_open_invoices--Invoice.create.1.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/void_all_open_invoices--Invoice.create.2.json b/corporate/tests/stripe_fixtures/void_all_open_invoices--Invoice.create.2.jsonindex 4a52d3cac37..f3e17e7070a 100644--- a/corporate/tests/stripe_fixtures/void_all_open_invoices--Invoice.create.2.json+++ b/corporate/tests/stripe_fixtures/void_all_open_invoices--Invoice.create.2.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "auto"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/void_all_open_invoices--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/void_all_open_invoices--Invoice.finalize_invoice.1.jsonindex 107be8a3bd3..73eb2e4e4bc 100644--- a/corporate/tests/stripe_fixtures/void_all_open_invoices--Invoice.finalize_invoice.1.json+++ b/corporate/tests/stripe_fixtures/void_all_open_invoices--Invoice.finalize_invoice.1.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/void_all_open_invoices--Invoice.finalize_invoice.2.json b/corporate/tests/stripe_fixtures/void_all_open_invoices--Invoice.finalize_invoice.2.jsonindex 1d45d508e55..878028a054b 100644--- a/corporate/tests/stripe_fixtures/void_all_open_invoices--Invoice.finalize_invoice.2.json+++ b/corporate/tests/stripe_fixtures/void_all_open_invoices--Invoice.finalize_invoice.2.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/void_all_open_invoices--Invoice.list.1.json b/corporate/tests/stripe_fixtures/void_all_open_invoices--Invoice.list.1.jsonindex a6aecc4debe..bf57e44b592 100644--- a/corporate/tests/stripe_fixtures/void_all_open_invoices--Invoice.list.1.json+++ b/corporate/tests/stripe_fixtures/void_all_open_invoices--Invoice.list.1.json@@ -135,7 +135,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/void_all_open_invoices--Invoice.list.3.json b/corporate/tests/stripe_fixtures/void_all_open_invoices--Invoice.list.3.jsonindex 16ac0049ff6..d5a5a6a16d8 100644--- a/corporate/tests/stripe_fixtures/void_all_open_invoices--Invoice.list.3.json+++ b/corporate/tests/stripe_fixtures/void_all_open_invoices--Invoice.list.3.json@@ -135,7 +135,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/void_all_open_invoices--Invoice.list.4.json b/corporate/tests/stripe_fixtures/void_all_open_invoices--Invoice.list.4.jsonindex 784b8471361..f6eab6d9212 100644--- a/corporate/tests/stripe_fixtures/void_all_open_invoices--Invoice.list.4.json+++ b/corporate/tests/stripe_fixtures/void_all_open_invoices--Invoice.list.4.json@@ -135,7 +135,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/void_all_open_invoices--Invoice.list.6.json b/corporate/tests/stripe_fixtures/void_all_open_invoices--Invoice.list.6.jsonindex 0b33511ac62..4f289305413 100644--- a/corporate/tests/stripe_fixtures/void_all_open_invoices--Invoice.list.6.json+++ b/corporate/tests/stripe_fixtures/void_all_open_invoices--Invoice.list.6.json@@ -135,7 +135,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/void_all_open_invoices--Invoice.void_invoice.1.json b/corporate/tests/stripe_fixtures/void_all_open_invoices--Invoice.void_invoice.1.jsonindex e21df6aca32..2be8ab6cc7b 100644--- a/corporate/tests/stripe_fixtures/void_all_open_invoices--Invoice.void_invoice.1.json+++ b/corporate/tests/stripe_fixtures/void_all_open_invoices--Invoice.void_invoice.1.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/stripe_fixtures/void_all_open_invoices--Invoice.void_invoice.2.json b/corporate/tests/stripe_fixtures/void_all_open_invoices--Invoice.void_invoice.2.jsonindex 261254ca16d..ed42960494d 100644--- a/corporate/tests/stripe_fixtures/void_all_open_invoices--Invoice.void_invoice.2.json+++ b/corporate/tests/stripe_fixtures/void_all_open_invoices--Invoice.void_invoice.2.json@@ -133,7 +133,9 @@"amount_tax_display": null,"pdf": {"page_size": "letter"- }+ },+ "template": null,+ "template_version": null},"rendering_options": null,"shipping_cost": null,diff --git a/corporate/tests/test_stripe.py b/corporate/tests/test_stripe.pyindex 01bc19f2175..36b14a1011c 100644--- a/corporate/tests/test_stripe.py+++ b/corporate/tests/test_stripe.py@@ -239,6 +239,9 @@ def normalize_fixture_data(# We'll replace "invoice_prefix": "A35BC4Q" with something like "invoice_prefix": "NORMA01"pattern_translations = {+ r'"exp_month": ([0-9]+)': "1",+ r'"exp_year": ([0-9]+)': "9999",+ r'"postal_code": "([0-9]+)"': "12345",r'"invoice_prefix": "([A-Za-z0-9]{7,8})"': "NORMALIZED",r'"fingerprint": "([A-Za-z0-9]{16})"': "NORMALIZED",r'"number": "([A-Za-z0-9]{7,8}-[A-Za-z0-9]{4})"': "NORMALIZED",